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/4291 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message | Hi @leondz, thanks for reporting.
Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions.
In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`.
Let me know if you need some help: I could push a commit to your repo with the fix. | ### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes | 103 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes
Hi @leondz, thanks for reporting.
Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions.
In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`.
Let me know if you need some help: I could push a commit to your repo with the fix. | [
-0.5941502452,
0.0154772494,
0.1116633341,
0.2606789768,
-0.152930513,
-0.1338221431,
0.2904717922,
0.2681366503,
0.0844315961,
0.2371055633,
0.0127624674,
0.1334278733,
-0.3677476943,
0.0229738876,
0.0893161371,
-0.2069136202,
-0.0901445225,
0.4387164414,
-0.1709370613,
-0.0357658453,
0.0000439229,
-0.0500817001,
-0.3697964549,
-0.0981756821,
0.2430106848,
0.1628290415,
-0.0169941429,
0.0875566378,
-0.2129042596,
-0.5013253689,
0.1568904668,
0.0290888045,
0.4434940815,
0.4764745831,
-0.0001143291,
0.0590150356,
0.5336082578,
-0.1721927971,
-0.2207333595,
-0.3665744364,
-0.1042753607,
0.0299767759,
0.3377231061,
-0.1147819608,
-0.2951819897,
-0.4295989871,
0.2964657545,
-0.2538515925,
0.3996419013,
0.2763581276,
0.1636177301,
0.4095644653,
-0.0791268945,
-0.0339843668,
0.0689692572,
0.2879213691,
-0.2252507508,
0.070765011,
0.0303247962,
0.2253851444,
-0.1104778945,
0.3227474093,
-0.1295972168,
0.0159947444,
0.3016057909,
0.0295168199,
-0.0843176395,
-0.2898899615,
-0.0100486055,
0.4630506635,
0.75978297,
-0.0745313317,
-0.054638911,
0.1322189569,
0.2434215695,
-0.1347715557,
0.1288358718,
0.2435569316,
-0.3353625536,
0.1350526065,
-0.1384792328,
-0.0922189429,
-0.2370916605,
-0.0845949426,
-0.1441578567,
0.1129646897,
-0.1270328313,
0.0747158304,
0.1418991238,
-0.0531422719,
0.0104744928,
-0.0828695968,
-0.1980441064,
-0.0453636386,
-0.2052705884,
-0.0374991484,
0.1801974028,
-0.3278357387,
-0.1177716479,
0.5059679747,
0.5098189712,
0.0792589262,
0.0793882012,
0.2004880458,
0.0849132985,
-0.132350713,
0.110612452,
0.0920038968,
0.2700298429,
-0.0637784004,
0.2326980382,
-0.2723047733,
-0.2461488396,
0.1393264681,
0.0132975057,
-0.2855447233,
0.3722068965,
-0.2950871885,
-0.1200428307,
0.1307469755,
-0.4762996435,
0.0533912517,
0.0127449539,
0.3302428722,
-0.4018425941,
0.1187695116,
0.2641046345,
0.1264961362,
-0.2791269422,
-0.3729017973,
-0.1162845269,
-0.0432897471,
-0.1977443695,
0.0276373941,
0.402592212,
-0.0834857821,
-0.0032104063,
-0.1097257808,
-0.1436003149,
0.0303836409,
0.3005194068,
-0.0617134459,
0.2661832273,
0.2871619463,
0.2963688672,
0.0762529299,
0.0609006658,
-0.3154716492,
-0.0533763096,
0.3552182317,
-0.025516605,
-0.163856253,
-0.3076989949,
0.1413361877,
-0.4597539902,
0.0263199136,
-0.4878700078,
0.1332459152,
-0.4504693151,
-0.5213211179,
-0.3146470189,
-0.1433103234,
-0.0631833971,
-0.0308598373,
0.6371549368,
0.6547688246,
-0.6462319493,
-0.0436743274,
-0.4195152819,
-0.3337060511,
0.3038482368,
0.036242038,
-0.0372022688,
-0.1720705032,
-0.2856006026,
0.095583275,
0.5270480514,
0.0318241715,
-0.3764595389,
0.2826695442,
-0.1322071254,
-0.0617800802,
0.0315856487,
0.1187549978,
0.2856101096,
0.0390027277,
-0.5029680133,
-0.1863673776,
0.1260086745,
-0.1085567921,
-0.30494681,
0.0062231445,
0.0530383959,
0.2351608872,
0.1965220571,
0.120221734,
-0.0721348301,
0.1775571704,
0.1413998008,
0.2355889231,
0.4079595208,
0.2077417374,
0.3541072309,
0.0400034003,
-0.1977529675,
-0.1701382697,
-0.4264080226,
0.0291855726,
0.0143180015,
0.1824581772,
0.1156389713,
0.0388647169,
-0.06458731,
-0.0776702315,
-0.2305270731,
-0.210997507,
0.1521054357,
0.2390356362,
-0.2236052305,
0.0952798724,
-0.3134433329,
0.0745911896,
-0.1209556684,
-0.0701011121,
-0.2386741787,
0.6265285015,
-0.2262289971,
-0.177688241,
-0.0464947708,
-0.063470602,
-0.2365184128,
-0.0476418808,
0.0269201268,
0.2215414643,
-0.2861153483,
0.0175314602,
0.0220094323,
0.0306313001,
0.1895122677,
-0.9186627269,
0.1714149117,
0.1536275148,
0.1311346442,
-0.1124401316,
-0.412709713,
-0.0315162428,
0.2327937782,
0.183725372,
0.0300519764,
0.0069894921,
0.0275063161,
-0.1149500832,
-0.2700667083,
-0.1032942012,
0.1273008883,
0.1774428636,
0.1729771793,
-0.0971588194,
-0.5576840639,
-0.1560449004,
-0.0718376562,
0.2308599651,
-0.02166868,
0.0931689814,
-0.4233149886,
-0.0084459847,
0.1549089849,
0.1271228641,
0.1608242691,
0.1464391053,
0.2777133882,
0.2064207345,
0.0562895723,
-0.0776684582,
-0.1434753239,
-0.045014143,
-0.0898784176,
0.1409924328,
-0.0962100849,
0.2244224101,
-0.1752946228,
-0.2784504592,
0.1916616559,
0.4294983447,
-0.2637165785,
-0.0321699418,
-0.4350876212,
-0.3543919921,
-0.1151124835,
0.1664984375,
-0.1836152822,
-0.2178589106,
-0.179418847,
0.4941994846,
0.0050914218,
0.0948795453,
-0.3751083612,
0.2324288189,
0.0819994286,
0.2545337081,
-0.2815338969,
0.0720102489,
-0.3631711304,
0.1604940742,
0.3185358047,
0.1557279676,
0.3065708876,
-0.1413014084,
0.1325986534,
-0.2842805684,
-0.2019464076,
0.1559815258,
0.2436573058,
0.009067731,
0.0448226593,
0.3969713151,
-0.1475197524,
-0.1392627507,
0.2854153812,
-0.2093854696,
-0.1654359996,
0.057795614,
-0.006791261,
0.0392412692,
-0.2319550067,
-0.1603737473,
-0.2265946418,
-0.5262544155,
0.0716880113,
-0.073531501,
0.1398599297,
0.0143164238,
0.1746157259,
0.2183092386,
-0.0397552475,
-0.2611753345,
0.084607549,
-0.3063941002,
0.3101693988,
-0.3783235848,
-0.5071271062,
0.4073181748,
0.0702966601,
0.040317867,
0.0057261363,
-0.8476647735,
0.1456041634,
0.1111366302,
-0.0095736682,
-0.0342346877,
-0.276955992,
0.1930356622,
0.067377381,
0.0178302824,
-0.0741650537,
-0.0976848751,
-0.0102184657,
-0.2523365915,
0.4114535153,
0.191570729,
0.394854784,
0.0258616693,
0.2563775778,
0.3870282471,
-0.0463127978,
0.3676632941,
-0.2059028,
0.6197297573,
-0.1257539243,
-0.0175102968,
0.0833940953,
0.2419942617,
0.1543847024,
0.2275824845,
0.043643564,
-0.2517355382,
-0.3891763091,
0.2420557886,
0.0282461774,
-0.2265811861,
0.2855305374,
-0.2113329172,
-0.0252526458,
0.0207603741,
0.1417780966,
-0.0200676806,
-0.2744263113,
-0.2842494249,
0.4708939493,
0.2631099224,
0.0857363343,
-0.3388928175,
0.343865037,
-0.447008878,
0.0138894022,
-0.0777893364,
0.422876507,
-0.1594686359,
-0.0388269983,
0.1295731068,
0.022523934,
0.2013153285,
-0.2414650768,
0.0348012783,
0.3943342566,
0.1130509377,
-0.3029448092,
-0.1239623725,
-0.1586229503,
-0.136936456,
0.130502373,
-0.0057863533,
-0.0870023221,
-0.2002398819,
0.359022975,
-0.1020404026,
-0.2362777293,
-0.3214558065,
-0.1168257892,
0.0305509176,
0.0981109664,
-0.1550045162,
-0.1522966176,
-0.1354222298,
-0.1813108027,
-0.0010713447,
-0.0652714297,
0.0468812957,
0.1905877292,
0.0801942945,
0.4163569808,
0.034709055,
0.2813803554,
0.3209666312,
0.174214825,
0.4530291855,
0.3894591331,
0.0763689652,
-0.1052616239,
0.5020315647,
-0.1448143721,
0.0704963133,
0.0661185011,
0.1549074799,
-0.1441289037,
0.3519827425,
0.1237688959,
-0.3788995445,
0.3590795398,
0.2335478216,
-0.3076376021,
-0.3736992776,
-0.4755598307,
0.4846490026,
0.0148653928,
0.1276731342,
0.2136386633,
0.1238357648,
0.0829627961,
0.0690210089,
-0.0185179748,
0.8461377025,
0.2070325017,
0.0202215668,
0.3457297385,
-0.0087844292,
0.196370542,
-0.0383142233,
0.0407849476,
-0.3314550221,
-0.463060528,
-0.1403217018,
-0.1268372983,
0.1349355876,
0.0943713039,
-0.308011353,
-0.1933513433,
0.3685699403,
0.1671334356,
0.1153712571,
0.1887414604,
0.0874465406,
0.0938178152,
0.096966207,
0.1559844464,
-0.1079799309,
0.300762862,
0.0019320258,
-0.1442150027,
0.0190557744,
-0.0272918474,
-0.5761521459,
0.22594136,
0.1949218512,
-0.1842586249,
0.0396036506,
-0.3388299346,
0.3068272471,
0.270786047,
-0.3327918649,
0.2780113518,
-0.2981599867,
0.1761681139,
0.1080228686,
-0.0738781989,
0.0294215959,
0.2726036608,
0.180334866,
-0.2774635255,
-0.2208392173,
0.2592914999,
-0.1618184596,
-0.1946543455,
0.1198949665,
-0.1021932587,
0.4448920488,
-0.0284947455,
0.1430937797,
0.0273169968,
-0.1559924632,
0.0427369438,
0.1203873456,
0.1310776174,
-0.0444427915,
-0.0120386193,
0.3223082125,
-0.1392180175,
0.0342219956,
0.5260997415,
-0.0906965509,
0.1105946973,
0.5690432191,
0.257304132,
-0.1144025177,
-0.1874643713,
0.1226682141,
0.4952023625,
-0.3077559173,
-0.0661024302,
-0.2463472635,
0.2111612558,
0.4379188716,
0.2522176802,
0.1708690077,
-0.3055122793,
-0.2263648212,
-0.3340679109,
-0.1744432747,
0.1209446415,
-0.1164733171,
0.3103097677,
-0.0472381227,
0.0247521363,
0.197315529,
-0.2324555814,
-0.3199236095,
-0.0184408836,
-0.1562668532,
0.069480598,
0.1268723458,
0.0045511033,
0.1466527283,
-0.1102472246,
0.0012927697,
0.0787976906,
-0.3430275321,
-0.1162360981,
-0.2037626654,
0.1607631445,
0.1040094048,
-0.2984414697,
-0.0761575401,
-0.0492671393,
-0.2699949145,
0.095282346,
-0.1735914052,
-0.062783666,
-0.1663514376,
0.0736265182,
0.2316929847,
0.1610842198,
-0.3707666993,
0.3622833192,
0.185622111,
0.4587868452,
-0.1911508888,
0.1304686666,
0.0629783645,
-0.0206074435,
-0.3432031274,
0.0233360231,
-0.0217113011,
-0.1129348353,
0.4992696941,
-0.1821292937,
0.4434138834,
-0.0398806669,
0.4819402993,
0.3712092042,
0.0218660086,
-0.0509227179,
0.5512432456,
0.15831168,
-0.1639169008,
0.320284158,
0.1127828285,
0.4649906754,
0.0831450075,
-0.0181486346,
-0.1728558838,
-0.0671463907,
-0.0041846936,
0.1730790138,
0.3002869785,
-0.2164314538,
0.2149406821,
0.4177623093,
-0.2102819085,
0.0690270439,
0.0334553197,
0.2184548825,
-0.0259589981,
0.2629742622,
0.0767930076,
0.2135236561,
0.0517882966,
0.2528543472,
-0.0460589901,
-0.5343078375,
-0.1047343016,
0.2326302379,
0.006382199,
0.2329644263,
0.012746078,
0.1972603202,
-0.1162689924,
0.0450209714,
-0.1658352911,
0.2039710283,
-0.1418293864,
0.1760438383,
-0.5118870735,
-0.1388290375,
-0.0836369917,
0.0588626303,
0.1677358001,
0.0418688208,
-0.227762416,
0.2700251639,
-0.1164029166,
-0.284675926,
-0.2188414931,
0.12106058,
0.0106690666,
-0.2501954734,
0.1815727204,
0.4443156421,
-0.0225501265,
0.1934145987,
0.4289497137,
0.2338000685,
0.3323462009,
0.2736908495,
-0.0145306652,
0.23130925,
-0.1597273648,
-0.0804770514,
0.0173205119,
0.4057659507,
-0.1950690001,
0.1976146251,
0.0590230599,
-0.1518639922,
0.2680940628,
-0.2535459697,
0.3100645542,
-0.01312852,
0.0532386862,
-0.1978149414,
-0.1422072798,
-0.1887307912,
-0.4362283349,
-0.2252277136,
0.097672753,
0.0298927184,
-0.0030486775,
-0.0715201497,
-0.2767507434,
0.0541422889,
0.1095544323,
0.3713501692,
0.4065033793,
0.0243959334,
0.0929100215,
-0.364446938,
-0.8054866195,
0.3159635067,
-0.1083531305,
-0.0763240159,
0.1350344867,
0.2264100015,
-0.1150057167,
0.1743037254,
-0.0659162924,
0.0170821566,
-0.0346929841,
0.4664407372,
-0.3589348495,
-0.2299095839,
0.2246567309,
0.1713311672,
-0.220544681,
-0.0784841552,
0.2546993494,
-0.1592403054,
0.0350007676,
-0.0659826174,
0.0123209404,
-0.284799546,
0.0995616987,
0.2980928421,
-0.0301746894,
0.4470245838,
0.142166853,
-0.2541333139,
-0.3089751899,
0.1521017998,
-0.1910653263,
-0.0412146412,
0.3676814735,
0.5103719234,
-0.0578181408,
0.0010653208,
-0.2208048999,
-0.0413183831,
-0.0176873691,
0.0414292999,
-0.6576736569,
-0.0335068926,
-0.1568508595,
0.0357262269,
0.2558899522,
-0.1250771433,
0.0352605321,
-0.2219291329,
-0.3823105395,
-0.209740594,
0.3522504866,
-0.3263478577,
0.1347814798,
-0.2660873234,
-0.2149320245,
-0.145790413,
0.0258554351,
-0.479943037,
-0.0219846945,
0.2943274975,
-0.1970777363,
0.3519704938,
-0.0151863173,
-0.1537107378,
0.1218231171,
-0.1365558803,
0.5629573464,
0.020917736,
-0.1748509258,
-0.0144348945,
-0.1541685909
] |
https://github.com/huggingface/datasets/issues/4291 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message | Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :) | ### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes | 37 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes
Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :) | [
-0.6053087711,
-0.0000201275,
0.0799933597,
0.2253192961,
-0.1501957178,
-0.1735897362,
0.2938115001,
0.2592690885,
0.0822659805,
0.301726222,
0.0461583324,
0.022501966,
-0.3796801269,
0.0506925099,
0.03596,
-0.1937340349,
-0.0915672556,
0.3536639512,
-0.1370633394,
-0.0472362041,
-0.0756078213,
-0.0037191762,
-0.3999133706,
-0.0477565229,
0.1961969137,
0.1561694741,
-0.0829183236,
-0.0286820009,
-0.2558894455,
-0.4636775553,
0.2054644525,
0.1238135695,
0.3929213583,
0.4485907853,
-0.0001192772,
0.0834411085,
0.5539522171,
-0.102578178,
-0.1196634844,
-0.3844614625,
-0.0721902847,
-0.0095718531,
0.35363096,
-0.0915513188,
-0.3670881391,
-0.4111126959,
0.3057406843,
-0.2640912533,
0.2740582824,
0.2770543098,
0.1354030669,
0.4375462532,
-0.1754001081,
-0.1505256444,
0.1659615636,
0.2888663113,
-0.1692209393,
0.001585643,
0.1400709152,
0.0975446925,
-0.0997872055,
0.2901645899,
-0.0880875885,
-0.0970715359,
0.2652718723,
0.095863618,
-0.1455849707,
-0.3172337115,
-0.0202031303,
0.4698252678,
0.8066284657,
-0.0384702906,
-0.1539165676,
0.1013440788,
0.2350113392,
-0.0339594893,
0.1932144463,
0.2421210706,
-0.2519103289,
0.1834480166,
-0.1799942106,
-0.0033692198,
-0.1999910027,
0.0040999893,
-0.2283171266,
0.0396893099,
-0.1354772449,
0.0785935149,
0.145089522,
-0.0003115304,
-0.0561790019,
-0.1821167022,
-0.2273864299,
-0.0434693061,
-0.1042960584,
0.0122233639,
0.2391905338,
-0.3924232423,
-0.1369440258,
0.5188081861,
0.4142097831,
0.1370666921,
0.0442603156,
0.2020860463,
0.1127815172,
-0.1769751906,
0.1368556917,
0.338306129,
0.306517154,
-0.0086880159,
0.3201614022,
-0.2139275074,
-0.1491423696,
0.0069056349,
-0.1353096217,
-0.2898711264,
0.3643853664,
-0.2885157466,
-0.2345031798,
0.211183235,
-0.4104499817,
0.0637505427,
0.0126737934,
0.3672566712,
-0.3555161655,
0.0490251742,
0.3241553307,
0.1322913617,
-0.3283002973,
-0.2251181901,
-0.1858362854,
0.0250512064,
-0.2317859381,
-0.0003003114,
0.3723363578,
0.12341775,
-0.0406462476,
-0.1042672619,
-0.1585452557,
0.0001009371,
0.175142765,
-0.0512480475,
0.2113666385,
0.3448687196,
0.2907159925,
0.0607685521,
0.0180003326,
-0.3365226984,
-0.0452704541,
0.3667688966,
0.1234362051,
-0.1177286655,
-0.2751761973,
0.1298562884,
-0.5374485254,
0.0264240056,
-0.4953741729,
0.1911562532,
-0.4559735656,
-0.3785144389,
-0.2894459665,
-0.1961871982,
0.0081411507,
0.0307119656,
0.6020917296,
0.6777383685,
-0.5689072609,
-0.079343915,
-0.3471742272,
-0.4304798543,
0.3041686416,
-0.0116674192,
-0.0288701914,
-0.1900769025,
-0.3225812614,
0.1816966832,
0.5332459807,
-0.0167490244,
-0.3464336693,
0.2373516858,
-0.1719155014,
-0.091134645,
0.0658691674,
0.085014686,
0.2090731263,
0.0698388293,
-0.4831224978,
-0.2582398057,
0.1423365176,
-0.1691525429,
-0.3288373351,
-0.0386133268,
0.0214468595,
0.2329680771,
0.3237445354,
0.0257265586,
-0.010056057,
0.0906783044,
0.2518519163,
0.1675707847,
0.3641337156,
0.2586050034,
0.4293773174,
0.0305669457,
-0.1940062195,
-0.2273605019,
-0.3996755183,
0.0277600493,
0.0386685915,
0.2079672366,
0.1062801406,
-0.0036756645,
-0.0763850287,
-0.0522679277,
-0.282764703,
-0.2260679752,
0.1023177654,
0.1067755967,
-0.2730692923,
0.1083703116,
-0.2692726254,
-0.00324497,
-0.1122832,
0.0492939055,
-0.2180530578,
0.5863927603,
-0.2171762586,
-0.1882075071,
0.0163488369,
-0.014802427,
-0.2500440776,
-0.0992065072,
0.0294077247,
0.1507961005,
-0.1491492689,
0.0836447775,
0.0327422731,
-0.0584900305,
0.1962769479,
-0.8871465921,
0.0910421535,
0.0646799207,
0.0378633887,
-0.08868476,
-0.4640695751,
0.0794581026,
0.2558695972,
0.1007624641,
-0.0273173489,
0.0546601489,
-0.0239385013,
-0.1768171787,
-0.2105389386,
-0.1884699017,
0.2387643903,
0.2301723063,
0.180383265,
-0.1655534059,
-0.5671557188,
-0.1394684315,
-0.1985439658,
0.1284202188,
-0.03102942,
0.0385583304,
-0.3120976985,
0.1216437593,
0.0895696059,
0.1598755717,
0.0776640624,
0.1536580622,
0.2215788513,
0.2471777052,
0.0576349832,
-0.1165381595,
-0.0277426038,
0.0252394974,
-0.1938333213,
0.1477909833,
-0.0973908305,
0.1915716231,
-0.1003811955,
-0.2489262521,
0.1640550494,
0.4643539488,
-0.3705774844,
-0.0523323976,
-0.4508478343,
-0.3079367578,
-0.1031866074,
0.1540240645,
-0.1241732463,
-0.2670580745,
-0.1791945547,
0.4320557714,
-0.1280402839,
0.1173322126,
-0.4587445259,
0.1155428588,
0.090247862,
0.2503669262,
-0.1605425626,
0.1606908143,
-0.4006852508,
0.1572640687,
0.3764458895,
0.1305505931,
0.3003644943,
-0.1634015888,
0.1298823804,
-0.3050156534,
-0.279353261,
0.159971416,
0.2305276543,
0.1213470623,
0.1684336066,
0.1986397654,
-0.1154959649,
-0.0648417324,
0.2593418062,
-0.083413735,
-0.1943667233,
0.09267243,
0.0020065876,
-0.141733855,
-0.2491230816,
-0.1999234855,
-0.1968772113,
-0.4478625655,
0.0507314093,
-0.1302194297,
0.0717451274,
0.0459658951,
0.227275297,
0.2494738996,
-0.1228026897,
-0.3184759319,
0.1401650012,
-0.2598867416,
0.3661050498,
-0.2986851335,
-0.5963428617,
0.3822773099,
-0.0575890541,
-0.1285912097,
0.0698116422,
-0.8463964462,
0.0727970153,
0.0760085359,
0.0417918116,
0.0638069957,
-0.2651492953,
0.124178268,
0.0784703195,
0.0582321584,
-0.0896664187,
-0.0445698164,
0.0422284417,
-0.3576522768,
0.3613865972,
0.052775003,
0.2549772859,
0.0059016189,
0.2106218785,
0.462572962,
0.0318965577,
0.2665117979,
-0.2187585682,
0.5919658542,
-0.016265668,
-0.0289022457,
0.1612624675,
0.2754821777,
0.1548810005,
0.2564843893,
-0.0106808851,
-0.1331185848,
-0.3283134997,
0.2906191945,
0.0260721259,
-0.2908224761,
0.2781724036,
-0.2083898783,
0.0167718511,
0.1062232703,
0.2367028594,
0.0055200276,
-0.3032808006,
-0.3268112242,
0.5229393244,
0.2518080771,
0.0266003925,
-0.3201159239,
0.3089135587,
-0.4773233831,
0.0758106634,
-0.0637929142,
0.3610317409,
-0.1665830165,
-0.0581019819,
0.0503442213,
0.0274966843,
0.3250753582,
-0.1482899785,
0.0567943975,
0.3569011986,
0.0216341894,
-0.3000946343,
-0.210961774,
-0.1791778356,
-0.0759555846,
0.0004848,
0.1738779843,
-0.0259941872,
-0.2637026906,
0.378431201,
-0.1057260484,
-0.2069255114,
-0.3332491815,
-0.038317468,
0.0038327635,
0.14974536,
-0.21761401,
-0.0699448586,
-0.0821509585,
-0.2880373299,
-0.0608110428,
-0.054048948,
0.0788920745,
0.2956702411,
0.0770718381,
0.4217192233,
-0.092031315,
0.3493589461,
0.3267092705,
0.0635659769,
0.4567932487,
0.379855901,
0.1104199067,
-0.1734907478,
0.5066099763,
-0.267157048,
0.1151777655,
0.0923768282,
0.1559916139,
-0.1367480308,
0.2959222496,
0.1649909019,
-0.3867965639,
0.3540689349,
0.2309581935,
-0.2546718121,
-0.3497831821,
-0.432100147,
0.4846552014,
0.0848271027,
0.1081737205,
0.1868225783,
0.2282957435,
0.0060152547,
-0.0326284841,
-0.0340377167,
0.7370910048,
0.2113694698,
0.017219035,
0.3595048785,
-0.0304587074,
0.0966646671,
-0.0089119906,
-0.0142812002,
-0.430054456,
-0.4971157014,
-0.1386430711,
-0.2134579122,
0.261256218,
0.0614677072,
-0.2152385563,
-0.1572306752,
0.4016522467,
0.1735162288,
0.1536718458,
0.0721835047,
0.0406743661,
0.2128369212,
0.2075231224,
0.1125313342,
-0.0663679913,
0.3000037968,
0.0158101115,
-0.0965472534,
-0.1559328139,
-0.0279247425,
-0.6183640361,
0.2137955278,
0.1242069602,
-0.211625576,
0.2150489092,
-0.3903817534,
0.4207869172,
0.3403140008,
-0.347576052,
0.2894828618,
-0.273001194,
0.1378870606,
0.0704960674,
-0.09902706,
0.0190446395,
0.2680931091,
0.1406096965,
-0.2877338827,
-0.2109372169,
0.1234423891,
-0.1102296263,
-0.0164695289,
0.0557112992,
-0.121324271,
0.3865692914,
-0.1395687312,
0.0710542202,
-0.0422573201,
-0.0885593146,
0.0051419539,
0.097200796,
0.1593797654,
-0.0664276183,
0.0620533638,
0.2900582254,
-0.1148501858,
0.0835291371,
0.4691383541,
-0.1672641039,
0.0468297414,
0.6227648258,
0.3141689003,
-0.110009782,
-0.1981063038,
0.1718765348,
0.5502776504,
-0.250838697,
0.0436138958,
-0.3288108706,
0.1688280255,
0.488451153,
0.2780680656,
0.1938567609,
-0.4906102121,
-0.102055274,
-0.3559999764,
-0.1133783832,
0.1478168964,
-0.1445064247,
0.3950254619,
-0.1089629158,
0.1812959015,
0.1719957143,
-0.3577342331,
-0.2876771688,
0.0870962888,
-0.0864099711,
0.0748361424,
0.1324767917,
0.0453574844,
0.0883379132,
-0.2105579078,
-0.0036967625,
0.057720907,
-0.3477294743,
-0.11975611,
-0.2520214319,
0.1644217968,
0.0544161238,
-0.2481925488,
0.0852594376,
0.0516843833,
-0.1473694742,
0.1036393791,
-0.1999046803,
-0.0317657255,
-0.1122254953,
0.1562521607,
0.2399612665,
0.1494192183,
-0.3147311211,
0.3881439269,
0.165604189,
0.4475440681,
-0.1912039071,
0.1299384683,
0.0955235511,
0.0193117056,
-0.2498566061,
-0.0101339892,
-0.0749382302,
-0.031470459,
0.4568181038,
-0.2440335453,
0.4633410871,
0.0777586922,
0.5264284015,
0.3731827736,
-0.0928795487,
-0.0642107651,
0.4989568293,
0.1386553943,
-0.2073108703,
0.3243557215,
0.2283135206,
0.5986735225,
0.0764493421,
-0.0262291003,
-0.1679169089,
-0.0736960024,
-0.0794388056,
0.2559531629,
0.2710799575,
-0.1276643276,
0.3690380752,
0.4916297495,
-0.1874079108,
0.1052737162,
0.0230227616,
0.2498616874,
0.0379672535,
0.4033236504,
0.0918233916,
0.2369761765,
0.0168606509,
0.3394041657,
-0.0166430082,
-0.5578356981,
0.0231069382,
0.1761545241,
-0.0342677943,
0.2050803453,
0.0909670666,
0.2537783682,
-0.206112355,
0.1286993325,
-0.1489126682,
0.2476373166,
-0.1636333168,
0.1196990684,
-0.497020036,
-0.1434753537,
-0.1303184927,
0.0505538806,
0.1217245013,
0.062261153,
-0.2298134714,
0.2022428215,
-0.1335076988,
-0.2563697696,
-0.1120570078,
0.0898773596,
0.0439519547,
-0.2696365118,
0.0892042518,
0.4771281481,
-0.0501493961,
0.2667553127,
0.4865610003,
0.2334650159,
0.2340014279,
0.1376376599,
-0.1141100973,
0.1694556177,
-0.1594899893,
-0.1096029282,
0.019799361,
0.3834149539,
-0.1365944743,
0.2174251229,
0.0465937182,
-0.1070659533,
0.2991840243,
-0.1920507103,
0.2677934468,
-0.0657022893,
0.1421916634,
-0.201755479,
-0.2073764801,
-0.1165366098,
-0.4866994917,
-0.1429436803,
0.12870875,
0.1035297215,
0.0640769228,
-0.0465188511,
-0.1814743131,
0.0337915756,
0.180748865,
0.2503276169,
0.453889221,
-0.0140261687,
0.0417707898,
-0.3341203928,
-0.7574344873,
0.3335330784,
-0.066357933,
-0.181041792,
0.1083145067,
0.1247197837,
-0.123254098,
0.1049591601,
-0.018933041,
0.0793050155,
0.0331026576,
0.5406765342,
-0.4341017902,
-0.275767386,
0.1266768575,
0.1011059731,
-0.2080074996,
-0.0474042967,
0.2397004366,
-0.1431109309,
-0.0115976501,
-0.14676781,
0.071091637,
-0.2370552272,
0.0731804967,
0.2284746915,
0.0287705362,
0.4398336112,
0.1483002901,
-0.2234603912,
-0.3829338551,
0.1425485164,
-0.1514500678,
-0.0018801746,
0.3111893535,
0.5176708698,
-0.098553054,
-0.030790329,
-0.1602376848,
-0.1222505271,
0.0039326791,
0.0727249607,
-0.645121038,
-0.0268263277,
-0.145628795,
-0.0451767631,
0.2844791412,
0.0246939007,
0.01904683,
-0.1690772176,
-0.329814136,
-0.26899755,
0.2975932062,
-0.3583940864,
0.1138354763,
-0.2124037445,
-0.2697161734,
-0.1860196143,
0.0097144628,
-0.4310154021,
0.0084850611,
0.3037337959,
-0.2605180442,
0.3448647261,
0.0239244401,
-0.0154999113,
-0.0181637369,
-0.0870576501,
0.6294339299,
0.0882897973,
-0.2219825536,
-0.0413502865,
-0.1716698706
] |
https://github.com/huggingface/datasets/issues/4287 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None | So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above.
As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered.
So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU.
I'll add the code in a PR linked to this issue in case you want to merge it! | ## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
| 102 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above.
As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered.
So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU.
I'll add the code in a PR linked to this issue in case you want to merge it! | [
-0.2677792013,
-0.1930617243,
-0.0503546819,
0.2116217315,
0.2999023795,
0.0705516487,
0.6779098511,
0.3354715109,
0.1389086396,
0.4872550368,
0.1502405405,
0.3312829435,
0.1982175112,
-0.3838970661,
-0.1113043576,
0.026361268,
0.2100861073,
0.2211518586,
0.0979964212,
0.0112956595,
-0.177514568,
0.1019165292,
-0.0020202897,
0.1137172058,
-0.5356395245,
0.0256011337,
-0.0485668182,
-0.1697057188,
0.0819108114,
-0.4138983786,
0.117064178,
-0.232299,
0.163465485,
0.6383319497,
-0.0001184857,
0.0760866851,
0.2688557804,
-0.1572678089,
-0.2099101245,
-0.0938901678,
-0.138294518,
-0.1355232298,
-0.1245266795,
-0.4097552299,
-0.0365439057,
-0.2017738074,
-0.0644812956,
-0.3826678097,
-0.2210728824,
0.304174155,
0.135673508,
-0.0405080467,
0.1465205997,
-0.1805744469,
0.0919256955,
-0.2255586833,
-0.4007888734,
-0.2110323906,
0.0188936945,
0.1128020659,
0.1141520366,
0.3374991417,
-0.0162682328,
-0.053549882,
-0.0280633345,
0.0649712309,
0.5522335768,
-0.3031113446,
0.0509035662,
0.1636683494,
0.1770268381,
-0.2434361577,
-0.295273453,
-0.1760010272,
0.1185250655,
-0.2467817217,
0.3819136322,
-0.3112471998,
-0.2169712484,
-0.0165351238,
0.1135793105,
0.0187697243,
0.03518489,
0.1877481788,
-0.0333564393,
0.1811662912,
-0.0500089303,
0.2051398605,
-0.0709695593,
-0.1600439399,
0.1044306755,
-0.282674104,
0.1555432677,
0.0514475927,
-0.7197321057,
0.0170728117,
0.1100983545,
-0.5740899444,
-0.1972285807,
-0.1041742936,
-0.1736025959,
0.0581314452,
0.1380948126,
0.3258379102,
-0.3228495419,
0.2221529931,
-0.0089613274,
0.1417237818,
0.2095215768,
0.2314281464,
0.1997854263,
-0.1213081032,
-0.2648592889,
-0.1973141432,
-0.3578031659,
-0.037157014,
0.2764658928,
-0.1399419308,
-0.612003386,
0.3015881181,
-0.2571416497,
0.2225394547,
0.3637178242,
0.4657812417,
0.1609994769,
-0.2492825091,
0.0273907613,
0.1433086693,
0.0054538739,
0.1020476073,
-0.1814744174,
-0.1315134168,
-0.1093587875,
0.1256220937,
0.1946565658,
-0.3070987165,
0.1454919279,
-0.3069573343,
-0.0073979376,
-0.100309737,
-0.1976178437,
-0.0555771664,
0.2342898697,
0.2483903468,
0.0298129153,
0.0592270717,
0.1765941828,
-0.2656787932,
-0.0712472051,
0.1841975451,
-0.2515280843,
-0.159730196,
-0.2966949046,
0.1389842033,
0.0116432058,
0.0269892178,
0.1856638789,
0.2037382871,
0.45598948,
0.027918214,
0.2254099846,
0.1931554526,
-0.2025149763,
-0.1387659311,
0.3272745609,
0.2465869337,
-0.2242040634,
-0.3134718537,
-0.0951400176,
-0.0938642323,
-0.0821989551,
0.0678243935,
0.057549037,
0.184644565,
-0.37646842,
0.2920623422,
0.3177112937,
-0.1874574572,
-0.2459539473,
-0.0700318068,
-0.1274102479,
-0.1495339721,
0.3183277547,
0.0724650472,
0.1718821079,
0.0870164856,
0.3471657336,
0.0436540768,
-0.1153765172,
-0.1117787361,
-0.0845763087,
-0.2577617466,
0.3251139522,
0.1603980362,
0.108716853,
0.1043329835,
-0.0160053466,
-0.3212739229,
-0.0775929093,
-0.241276145,
0.0817411691,
0.18565391,
0.5382339954,
0.195945099,
0.4102753699,
-0.1761276126,
-0.3003650904,
0.2351198643,
0.0705422908,
0.1185260415,
-0.473719269,
-0.1219217107,
0.0317416675,
-0.0633913353,
0.0202540625,
-0.0465919152,
0.0537548661,
-0.076922752,
-0.0057609924,
-0.1450968981,
-0.2824340463,
0.1871915609,
-0.282261461,
0.0571881533,
-0.3771569729,
0.3255268335,
-0.2016386688,
-0.2545164227,
-0.2661587894,
0.3665424585,
0.3191076815,
-0.1414272934,
-0.1778814048,
0.3329077661,
0.1556868553,
-0.1614269316,
0.1480285525,
0.0395488068,
-0.0476334617,
-0.1503721476,
0.058716923,
0.368163377,
0.2263403386,
0.0754127055,
0.0958296359,
0.2716928124,
0.2136946917,
0.2946972251,
-0.2133517116,
-0.0000882352,
0.2921955585,
0.0818619952,
-0.0094361985,
-0.3664700985,
0.095667623,
-0.0780750588,
0.2926338911,
-0.2285069525,
-0.0382071845,
-0.129747957,
0.1365670264,
-0.1019358188,
0.080845952,
0.1040691361,
-0.20155707,
0.2429390699,
0.1020051092,
-0.4362462163,
0.3610959351,
0.0690286681,
-0.2717648745,
-0.1604083478,
-0.0189515352,
-0.180044055,
0.2998146415,
0.3092927933,
-0.1313303411,
0.18568407,
0.0494904704,
-0.1344248801,
-0.1891598701,
-0.3536972106,
0.199925676,
0.22190395,
-0.5465424061,
0.2292004377,
-0.0884528533,
-0.1179596409,
-0.0571371578,
-0.2740374804,
-0.3020784557,
-0.1688844711,
0.1132076085,
-0.0100723263,
-0.0268242341,
0.56313169,
-0.031437207,
0.3451782465,
0.2669053376,
-0.2646978199,
-0.0772076547,
-0.1635281593,
-0.0340352915,
-0.0288732927,
-0.1362821907,
-0.2700231075,
0.2465084642,
0.0252350364,
-0.0092130415,
-0.3460000455,
-0.3333972991,
0.1512129456,
-0.2294059843,
0.1619107276,
-0.066783987,
-0.1452291608,
0.1149510965,
-0.2534681261,
0.0762385949,
0.0369256102,
-0.1363533586,
0.0226665027,
-0.0825523734,
-0.0956914946,
-0.2000350952,
-0.2439639419,
0.0384104885,
-0.3259360492,
-0.0251194015,
-0.0943819731,
0.1987321675,
-0.0554596893,
0.1266539842,
0.2989879847,
-0.0274074264,
0.0936590806,
-0.2795269787,
0.0578053184,
0.316002816,
-0.0934670344,
-0.2307391614,
0.0392481275,
-0.0759067386,
-0.0012875679,
0.0924601406,
-0.2826656401,
-0.1216920465,
-0.0236992221,
0.3240506947,
0.0115712425,
0.1782149225,
0.3946534693,
0.1758317351,
-0.0248788074,
-0.3753835559,
-0.2737493813,
0.0247015115,
-0.0929381773,
0.4036743939,
-0.0335531756,
0.4804115891,
-0.0595851764,
0.3195146024,
0.332816869,
-0.5132256746,
0.5454784632,
-0.1936355531,
0.187772736,
0.0658074021,
-0.1157518849,
0.2827404141,
0.0184189714,
-0.1489590406,
0.0457282662,
-0.3147218823,
-0.2004715353,
-0.0915209576,
0.176361829,
-0.205771938,
-0.2939653695,
-0.0931611508,
-0.2134668976,
0.244354561,
-0.069068566,
0.2559351623,
-0.2862651944,
-0.0110311992,
0.2518416941,
0.4071964622,
0.1255498827,
-0.2426512837,
0.0892506614,
-0.0963273719,
-0.3369405866,
0.4827110767,
0.0184914041,
0.5099805593,
-0.1719783694,
0.0733676925,
0.1026550978,
0.1234494448,
0.8018260002,
-0.2557468414,
-0.1581705958,
0.3423094153,
0.3089136183,
-0.2554649413,
-0.2847435474,
-0.186405763,
0.180602029,
0.0868937373,
0.5751954317,
-0.1090526804,
-0.1370633841,
0.1094109938,
-0.0535981245,
-0.0763965324,
-0.2722495198,
-0.3742819428,
-0.0535001457,
-0.3180500567,
0.092193678,
-0.0947589949,
0.4154827893,
0.0888297558,
0.0046350867,
-0.3758727014,
0.0135714849,
0.0898389369,
0.23176153,
0.1532207578,
-0.0336796083,
0.3831858933,
-0.0679872036,
0.2392570078,
0.4289000928,
0.2425881177,
-0.0259666238,
-0.2498857826,
0.4352636933,
0.1420716643,
0.2369507104,
0.2851185203,
-0.1435502619,
0.1513002664,
-0.0778532326,
0.4545581341,
-0.3414155841,
0.0528200492,
0.4134407938,
0.2575814724,
-0.3164115548,
-0.2541102767,
0.4271711111,
0.1545818597,
0.0115628829,
0.2661199272,
0.3731884658,
-0.2132826746,
0.6635655761,
-0.0271133892,
0.8349602222,
0.1417266876,
-0.1361642629,
0.3292039335,
0.019131884,
0.4266368449,
-0.2621032894,
0.3030054271,
-0.36033988,
-0.2495633364,
-0.072745271,
-0.0706654191,
0.4493254125,
0.0557388961,
-0.1136083826,
0.2471146584,
-0.0684440434,
0.1738487631,
-0.0673468262,
-0.0311246011,
0.0653612688,
-0.570002079,
-0.1243764237,
0.1013353989,
0.073608093,
0.3620577753,
0.0472622178,
0.0865836963,
-0.4278534651,
-0.1301414669,
-0.3313692808,
0.0341733433,
-0.0335203968,
0.2654316723,
-0.1244590655,
-0.2336265445,
0.1903569698,
-0.2871500254,
0.5703133345,
-0.1071150452,
-0.2100858688,
0.3500594199,
-0.0225411132,
-0.0797283128,
-0.100082323,
-0.2246901542,
0.3307578862,
0.0695901588,
-0.3794130385,
0.1227923706,
0.0705380216,
-0.078665182,
-0.0268511884,
-0.072358273,
-0.0519427769,
-0.225620091,
-0.0245044585,
-0.1347044706,
0.2477797568,
-0.2440111935,
0.1126614809,
0.0810519978,
-0.4638236761,
0.2543738484,
-0.1965155751,
-0.3668318391,
-0.0758303925,
0.5537821054,
-0.0278033055,
-0.1105353534,
0.2354791611,
-0.1581863761,
-0.2709082067,
-0.0588878244,
-0.3328418136,
0.230014652,
-0.2249239385,
-0.134459123,
0.0472764894,
-0.3598711491,
-0.0762181059,
0.0007363491,
-0.1119198799,
0.3196648657,
-0.2088094503,
-0.1486584097,
-0.3978235126,
0.0638981238,
0.04302283,
0.3486230075,
0.0142490873,
0.1369826347,
-0.216274187,
-0.1777753383,
-0.2571475506,
0.0449540168,
-0.2627476752,
0.464545697,
-0.2965943515,
-0.1160293296,
0.2956578135,
-0.1968620867,
0.1271817088,
0.1477946043,
-0.0821426287,
-0.1739617884,
-0.1555579454,
0.1838450432,
0.1633325368,
-0.073325634,
-0.402630955,
-0.1589907706,
-0.2902145982,
-0.2810215056,
0.381005168,
0.295348227,
-0.0849058703,
0.2101287991,
0.0439727679,
-0.0579666421,
0.2062323689,
0.0928546116,
0.1886805594,
0.5146371722,
0.1700724214,
0.3236709535,
-0.6910559535,
0.2287747562,
-0.3531604111,
0.2041759342,
0.1243717149,
0.0811413825,
0.1878709793,
-0.306869477,
-0.1384533048,
-0.197834745,
0.0208867602,
0.2984208465,
-0.3283818066,
-0.2406269014,
0.2352151424,
0.1495817304,
-0.1251096576,
-0.054758165,
0.2422744334,
-0.2709947526,
0.3088201582,
0.3453473449,
0.3499438167,
0.0567620359,
-0.3531430364,
-0.0404630452,
0.3619587421,
0.1221084818,
-0.0491790473,
0.031946037,
0.0101659838,
0.2422092706,
0.2994847298,
0.0252175275,
0.3604408205,
0.826420188,
-0.1172439829,
0.2991402447,
0.22480838,
0.0309933126,
0.0712762475,
-0.0968818218,
0.364972353,
-0.1809900552,
-0.0952790231,
-0.0940562785,
-0.0834374353,
-0.1962089241,
-0.3054342568,
0.0289233532,
-0.2022219747,
-0.0464718565,
-0.2253268957,
-0.180399701,
0.110579364,
0.0823109597,
-0.1130440384,
-0.2422738224,
0.129007116,
-0.1942477673,
0.0044648247,
0.1347661167,
-0.3401270509,
0.1514830291,
-0.2119870484,
0.642534554,
0.5679425597,
-0.0926989838,
0.0970448479,
0.2238154262,
-0.1354351491,
-0.0202754941,
0.2093816698,
0.6584562659,
0.181210354,
-0.0892754123,
0.2834928632,
0.2227999419,
-0.1206423193,
0.0502900183,
0.1236753911,
-0.0901558399,
0.0368403718,
0.2777967155,
0.1009956151,
-0.1337872297,
-0.4207533598,
0.1571459621,
0.4895614088,
-0.0734510794,
0.146378845,
-0.4583052397,
0.1374952346,
-0.2793770134,
0.0074038357,
-0.4224885702,
0.0485527627,
0.5376588106,
-0.1823661625,
0.1943314672,
0.1332865953,
0.0381299369,
-0.3240101933,
0.1859717965,
0.0725806504,
0.176380083,
-0.3565992713,
-0.0638613403,
-0.2463026941,
0.3766397536,
-0.0809156522,
0.0476277359,
0.1262308359,
0.3178581595,
-0.1748661846,
-0.165140599,
0.1994993389,
-0.0318377912,
0.3572437465,
0.5178941488,
-0.3093318343,
-0.1866321266,
-0.4723141193,
-0.0808935538,
0.2226084173,
-0.2989882529,
-0.0046888702,
0.0000069908,
-0.0542126335,
-0.0699218661,
-0.0172746424,
0.0681575835,
0.0202240683,
0.8401679397,
-0.0192954503,
0.3667723536,
-0.1382204443,
-0.0756554604,
-0.2239338011,
-0.200959906,
-0.2226107121,
0.2323860377,
0.0624145307,
0.0109192096,
-0.0645748675,
-0.3882268965,
-0.2513391078,
0.5986821055,
0.1300269067,
-0.2277822196,
-0.1363095194,
0.2950300872,
-0.2472484708,
0.4100046158,
0.0559491031,
0.0091474373,
0.1543093622,
0.5739112496,
-0.0888167173,
-0.4936059415,
0.754250586,
-0.0743944347,
-0.1260400862,
-0.2725193799,
0.3739637136,
0.3908613622,
0.0905999467,
-0.8467720151,
-0.0328277498,
0.3328855038,
-0.1986327469,
-0.2221771479,
-0.111014843,
-0.0324489549,
0.0075858273,
-0.0946630314,
0.1081183478,
-0.1000948548,
0.181354031,
0.2981963754,
-0.1381296515
] |
https://github.com/huggingface/datasets/issues/4287 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None | Adding here the complete error traceback!
```
Traceback (most recent call last):
File "/home/alvarobartt/lol.py", line 12, in <module>
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index
super().add_faiss_index(
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index
faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors
self.faiss_index = self._faiss_index_to_device(index, self.device)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device
faiss_res = faiss.StandardGpuResources()
NameError: name 'faiss' is not defined
``` | ## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
| 66 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
Adding here the complete error traceback!
```
Traceback (most recent call last):
File "/home/alvarobartt/lol.py", line 12, in <module>
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index
super().add_faiss_index(
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index
faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors
self.faiss_index = self._faiss_index_to_device(index, self.device)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device
faiss_res = faiss.StandardGpuResources()
NameError: name 'faiss' is not defined
``` | [
-0.2677792013,
-0.1930617243,
-0.0503546819,
0.2116217315,
0.2999023795,
0.0705516487,
0.6779098511,
0.3354715109,
0.1389086396,
0.4872550368,
0.1502405405,
0.3312829435,
0.1982175112,
-0.3838970661,
-0.1113043576,
0.026361268,
0.2100861073,
0.2211518586,
0.0979964212,
0.0112956595,
-0.177514568,
0.1019165292,
-0.0020202897,
0.1137172058,
-0.5356395245,
0.0256011337,
-0.0485668182,
-0.1697057188,
0.0819108114,
-0.4138983786,
0.117064178,
-0.232299,
0.163465485,
0.6383319497,
-0.0001184857,
0.0760866851,
0.2688557804,
-0.1572678089,
-0.2099101245,
-0.0938901678,
-0.138294518,
-0.1355232298,
-0.1245266795,
-0.4097552299,
-0.0365439057,
-0.2017738074,
-0.0644812956,
-0.3826678097,
-0.2210728824,
0.304174155,
0.135673508,
-0.0405080467,
0.1465205997,
-0.1805744469,
0.0919256955,
-0.2255586833,
-0.4007888734,
-0.2110323906,
0.0188936945,
0.1128020659,
0.1141520366,
0.3374991417,
-0.0162682328,
-0.053549882,
-0.0280633345,
0.0649712309,
0.5522335768,
-0.3031113446,
0.0509035662,
0.1636683494,
0.1770268381,
-0.2434361577,
-0.295273453,
-0.1760010272,
0.1185250655,
-0.2467817217,
0.3819136322,
-0.3112471998,
-0.2169712484,
-0.0165351238,
0.1135793105,
0.0187697243,
0.03518489,
0.1877481788,
-0.0333564393,
0.1811662912,
-0.0500089303,
0.2051398605,
-0.0709695593,
-0.1600439399,
0.1044306755,
-0.282674104,
0.1555432677,
0.0514475927,
-0.7197321057,
0.0170728117,
0.1100983545,
-0.5740899444,
-0.1972285807,
-0.1041742936,
-0.1736025959,
0.0581314452,
0.1380948126,
0.3258379102,
-0.3228495419,
0.2221529931,
-0.0089613274,
0.1417237818,
0.2095215768,
0.2314281464,
0.1997854263,
-0.1213081032,
-0.2648592889,
-0.1973141432,
-0.3578031659,
-0.037157014,
0.2764658928,
-0.1399419308,
-0.612003386,
0.3015881181,
-0.2571416497,
0.2225394547,
0.3637178242,
0.4657812417,
0.1609994769,
-0.2492825091,
0.0273907613,
0.1433086693,
0.0054538739,
0.1020476073,
-0.1814744174,
-0.1315134168,
-0.1093587875,
0.1256220937,
0.1946565658,
-0.3070987165,
0.1454919279,
-0.3069573343,
-0.0073979376,
-0.100309737,
-0.1976178437,
-0.0555771664,
0.2342898697,
0.2483903468,
0.0298129153,
0.0592270717,
0.1765941828,
-0.2656787932,
-0.0712472051,
0.1841975451,
-0.2515280843,
-0.159730196,
-0.2966949046,
0.1389842033,
0.0116432058,
0.0269892178,
0.1856638789,
0.2037382871,
0.45598948,
0.027918214,
0.2254099846,
0.1931554526,
-0.2025149763,
-0.1387659311,
0.3272745609,
0.2465869337,
-0.2242040634,
-0.3134718537,
-0.0951400176,
-0.0938642323,
-0.0821989551,
0.0678243935,
0.057549037,
0.184644565,
-0.37646842,
0.2920623422,
0.3177112937,
-0.1874574572,
-0.2459539473,
-0.0700318068,
-0.1274102479,
-0.1495339721,
0.3183277547,
0.0724650472,
0.1718821079,
0.0870164856,
0.3471657336,
0.0436540768,
-0.1153765172,
-0.1117787361,
-0.0845763087,
-0.2577617466,
0.3251139522,
0.1603980362,
0.108716853,
0.1043329835,
-0.0160053466,
-0.3212739229,
-0.0775929093,
-0.241276145,
0.0817411691,
0.18565391,
0.5382339954,
0.195945099,
0.4102753699,
-0.1761276126,
-0.3003650904,
0.2351198643,
0.0705422908,
0.1185260415,
-0.473719269,
-0.1219217107,
0.0317416675,
-0.0633913353,
0.0202540625,
-0.0465919152,
0.0537548661,
-0.076922752,
-0.0057609924,
-0.1450968981,
-0.2824340463,
0.1871915609,
-0.282261461,
0.0571881533,
-0.3771569729,
0.3255268335,
-0.2016386688,
-0.2545164227,
-0.2661587894,
0.3665424585,
0.3191076815,
-0.1414272934,
-0.1778814048,
0.3329077661,
0.1556868553,
-0.1614269316,
0.1480285525,
0.0395488068,
-0.0476334617,
-0.1503721476,
0.058716923,
0.368163377,
0.2263403386,
0.0754127055,
0.0958296359,
0.2716928124,
0.2136946917,
0.2946972251,
-0.2133517116,
-0.0000882352,
0.2921955585,
0.0818619952,
-0.0094361985,
-0.3664700985,
0.095667623,
-0.0780750588,
0.2926338911,
-0.2285069525,
-0.0382071845,
-0.129747957,
0.1365670264,
-0.1019358188,
0.080845952,
0.1040691361,
-0.20155707,
0.2429390699,
0.1020051092,
-0.4362462163,
0.3610959351,
0.0690286681,
-0.2717648745,
-0.1604083478,
-0.0189515352,
-0.180044055,
0.2998146415,
0.3092927933,
-0.1313303411,
0.18568407,
0.0494904704,
-0.1344248801,
-0.1891598701,
-0.3536972106,
0.199925676,
0.22190395,
-0.5465424061,
0.2292004377,
-0.0884528533,
-0.1179596409,
-0.0571371578,
-0.2740374804,
-0.3020784557,
-0.1688844711,
0.1132076085,
-0.0100723263,
-0.0268242341,
0.56313169,
-0.031437207,
0.3451782465,
0.2669053376,
-0.2646978199,
-0.0772076547,
-0.1635281593,
-0.0340352915,
-0.0288732927,
-0.1362821907,
-0.2700231075,
0.2465084642,
0.0252350364,
-0.0092130415,
-0.3460000455,
-0.3333972991,
0.1512129456,
-0.2294059843,
0.1619107276,
-0.066783987,
-0.1452291608,
0.1149510965,
-0.2534681261,
0.0762385949,
0.0369256102,
-0.1363533586,
0.0226665027,
-0.0825523734,
-0.0956914946,
-0.2000350952,
-0.2439639419,
0.0384104885,
-0.3259360492,
-0.0251194015,
-0.0943819731,
0.1987321675,
-0.0554596893,
0.1266539842,
0.2989879847,
-0.0274074264,
0.0936590806,
-0.2795269787,
0.0578053184,
0.316002816,
-0.0934670344,
-0.2307391614,
0.0392481275,
-0.0759067386,
-0.0012875679,
0.0924601406,
-0.2826656401,
-0.1216920465,
-0.0236992221,
0.3240506947,
0.0115712425,
0.1782149225,
0.3946534693,
0.1758317351,
-0.0248788074,
-0.3753835559,
-0.2737493813,
0.0247015115,
-0.0929381773,
0.4036743939,
-0.0335531756,
0.4804115891,
-0.0595851764,
0.3195146024,
0.332816869,
-0.5132256746,
0.5454784632,
-0.1936355531,
0.187772736,
0.0658074021,
-0.1157518849,
0.2827404141,
0.0184189714,
-0.1489590406,
0.0457282662,
-0.3147218823,
-0.2004715353,
-0.0915209576,
0.176361829,
-0.205771938,
-0.2939653695,
-0.0931611508,
-0.2134668976,
0.244354561,
-0.069068566,
0.2559351623,
-0.2862651944,
-0.0110311992,
0.2518416941,
0.4071964622,
0.1255498827,
-0.2426512837,
0.0892506614,
-0.0963273719,
-0.3369405866,
0.4827110767,
0.0184914041,
0.5099805593,
-0.1719783694,
0.0733676925,
0.1026550978,
0.1234494448,
0.8018260002,
-0.2557468414,
-0.1581705958,
0.3423094153,
0.3089136183,
-0.2554649413,
-0.2847435474,
-0.186405763,
0.180602029,
0.0868937373,
0.5751954317,
-0.1090526804,
-0.1370633841,
0.1094109938,
-0.0535981245,
-0.0763965324,
-0.2722495198,
-0.3742819428,
-0.0535001457,
-0.3180500567,
0.092193678,
-0.0947589949,
0.4154827893,
0.0888297558,
0.0046350867,
-0.3758727014,
0.0135714849,
0.0898389369,
0.23176153,
0.1532207578,
-0.0336796083,
0.3831858933,
-0.0679872036,
0.2392570078,
0.4289000928,
0.2425881177,
-0.0259666238,
-0.2498857826,
0.4352636933,
0.1420716643,
0.2369507104,
0.2851185203,
-0.1435502619,
0.1513002664,
-0.0778532326,
0.4545581341,
-0.3414155841,
0.0528200492,
0.4134407938,
0.2575814724,
-0.3164115548,
-0.2541102767,
0.4271711111,
0.1545818597,
0.0115628829,
0.2661199272,
0.3731884658,
-0.2132826746,
0.6635655761,
-0.0271133892,
0.8349602222,
0.1417266876,
-0.1361642629,
0.3292039335,
0.019131884,
0.4266368449,
-0.2621032894,
0.3030054271,
-0.36033988,
-0.2495633364,
-0.072745271,
-0.0706654191,
0.4493254125,
0.0557388961,
-0.1136083826,
0.2471146584,
-0.0684440434,
0.1738487631,
-0.0673468262,
-0.0311246011,
0.0653612688,
-0.570002079,
-0.1243764237,
0.1013353989,
0.073608093,
0.3620577753,
0.0472622178,
0.0865836963,
-0.4278534651,
-0.1301414669,
-0.3313692808,
0.0341733433,
-0.0335203968,
0.2654316723,
-0.1244590655,
-0.2336265445,
0.1903569698,
-0.2871500254,
0.5703133345,
-0.1071150452,
-0.2100858688,
0.3500594199,
-0.0225411132,
-0.0797283128,
-0.100082323,
-0.2246901542,
0.3307578862,
0.0695901588,
-0.3794130385,
0.1227923706,
0.0705380216,
-0.078665182,
-0.0268511884,
-0.072358273,
-0.0519427769,
-0.225620091,
-0.0245044585,
-0.1347044706,
0.2477797568,
-0.2440111935,
0.1126614809,
0.0810519978,
-0.4638236761,
0.2543738484,
-0.1965155751,
-0.3668318391,
-0.0758303925,
0.5537821054,
-0.0278033055,
-0.1105353534,
0.2354791611,
-0.1581863761,
-0.2709082067,
-0.0588878244,
-0.3328418136,
0.230014652,
-0.2249239385,
-0.134459123,
0.0472764894,
-0.3598711491,
-0.0762181059,
0.0007363491,
-0.1119198799,
0.3196648657,
-0.2088094503,
-0.1486584097,
-0.3978235126,
0.0638981238,
0.04302283,
0.3486230075,
0.0142490873,
0.1369826347,
-0.216274187,
-0.1777753383,
-0.2571475506,
0.0449540168,
-0.2627476752,
0.464545697,
-0.2965943515,
-0.1160293296,
0.2956578135,
-0.1968620867,
0.1271817088,
0.1477946043,
-0.0821426287,
-0.1739617884,
-0.1555579454,
0.1838450432,
0.1633325368,
-0.073325634,
-0.402630955,
-0.1589907706,
-0.2902145982,
-0.2810215056,
0.381005168,
0.295348227,
-0.0849058703,
0.2101287991,
0.0439727679,
-0.0579666421,
0.2062323689,
0.0928546116,
0.1886805594,
0.5146371722,
0.1700724214,
0.3236709535,
-0.6910559535,
0.2287747562,
-0.3531604111,
0.2041759342,
0.1243717149,
0.0811413825,
0.1878709793,
-0.306869477,
-0.1384533048,
-0.197834745,
0.0208867602,
0.2984208465,
-0.3283818066,
-0.2406269014,
0.2352151424,
0.1495817304,
-0.1251096576,
-0.054758165,
0.2422744334,
-0.2709947526,
0.3088201582,
0.3453473449,
0.3499438167,
0.0567620359,
-0.3531430364,
-0.0404630452,
0.3619587421,
0.1221084818,
-0.0491790473,
0.031946037,
0.0101659838,
0.2422092706,
0.2994847298,
0.0252175275,
0.3604408205,
0.826420188,
-0.1172439829,
0.2991402447,
0.22480838,
0.0309933126,
0.0712762475,
-0.0968818218,
0.364972353,
-0.1809900552,
-0.0952790231,
-0.0940562785,
-0.0834374353,
-0.1962089241,
-0.3054342568,
0.0289233532,
-0.2022219747,
-0.0464718565,
-0.2253268957,
-0.180399701,
0.110579364,
0.0823109597,
-0.1130440384,
-0.2422738224,
0.129007116,
-0.1942477673,
0.0044648247,
0.1347661167,
-0.3401270509,
0.1514830291,
-0.2119870484,
0.642534554,
0.5679425597,
-0.0926989838,
0.0970448479,
0.2238154262,
-0.1354351491,
-0.0202754941,
0.2093816698,
0.6584562659,
0.181210354,
-0.0892754123,
0.2834928632,
0.2227999419,
-0.1206423193,
0.0502900183,
0.1236753911,
-0.0901558399,
0.0368403718,
0.2777967155,
0.1009956151,
-0.1337872297,
-0.4207533598,
0.1571459621,
0.4895614088,
-0.0734510794,
0.146378845,
-0.4583052397,
0.1374952346,
-0.2793770134,
0.0074038357,
-0.4224885702,
0.0485527627,
0.5376588106,
-0.1823661625,
0.1943314672,
0.1332865953,
0.0381299369,
-0.3240101933,
0.1859717965,
0.0725806504,
0.176380083,
-0.3565992713,
-0.0638613403,
-0.2463026941,
0.3766397536,
-0.0809156522,
0.0476277359,
0.1262308359,
0.3178581595,
-0.1748661846,
-0.165140599,
0.1994993389,
-0.0318377912,
0.3572437465,
0.5178941488,
-0.3093318343,
-0.1866321266,
-0.4723141193,
-0.0808935538,
0.2226084173,
-0.2989882529,
-0.0046888702,
0.0000069908,
-0.0542126335,
-0.0699218661,
-0.0172746424,
0.0681575835,
0.0202240683,
0.8401679397,
-0.0192954503,
0.3667723536,
-0.1382204443,
-0.0756554604,
-0.2239338011,
-0.200959906,
-0.2226107121,
0.2323860377,
0.0624145307,
0.0109192096,
-0.0645748675,
-0.3882268965,
-0.2513391078,
0.5986821055,
0.1300269067,
-0.2277822196,
-0.1363095194,
0.2950300872,
-0.2472484708,
0.4100046158,
0.0559491031,
0.0091474373,
0.1543093622,
0.5739112496,
-0.0888167173,
-0.4936059415,
0.754250586,
-0.0743944347,
-0.1260400862,
-0.2725193799,
0.3739637136,
0.3908613622,
0.0905999467,
-0.8467720151,
-0.0328277498,
0.3328855038,
-0.1986327469,
-0.2221771479,
-0.111014843,
-0.0324489549,
0.0075858273,
-0.0946630314,
0.1081183478,
-0.1000948548,
0.181354031,
0.2981963754,
-0.1381296515
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | Thanks for reporting, @vblagoje.
Indeed, I noticed some of these issues while reviewing this PR:
- #4259
This is in my TODO list. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 23 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
Thanks for reporting, @vblagoje.
Indeed, I noticed some of these issues while reviewing this PR:
- #4259
This is in my TODO list. | [
-0.1009263843,
0.2100123912,
-0.0518254675,
0.2251940221,
-0.1097796932,
-0.0576233305,
0.2680732906,
0.3371189237,
-0.0792645589,
0.2063141167,
0.1244209558,
0.5698289275,
0.4415481985,
0.3652537167,
-0.0546431914,
-0.1742747575,
0.3567141891,
0.0840137601,
0.1305603534,
-0.0909449831,
-0.2684164345,
0.5139862895,
-0.2818473279,
0.1131075397,
-0.0024438461,
-0.1088764444,
-0.4653171301,
-0.1198540479,
-0.0364536755,
-0.144887507,
0.042253077,
0.1093569472,
-0.3286170065,
0.2559754252,
-0.0001096412,
-0.2272857279,
-0.0773132816,
0.0476742983,
-0.2789717019,
-0.3161999583,
-0.0444226786,
-0.3308217227,
0.0382530242,
-0.2663817406,
0.1119307205,
-0.0484998114,
-0.1596239507,
0.047948841,
0.1941673607,
0.0503654256,
0.224331066,
-0.0243198425,
0.3201378286,
0.0627526343,
0.1628894806,
-0.0239095464,
-0.3419753611,
0.0198269226,
0.3297076821,
-0.0766778216,
0.2110074162,
0.2544213533,
-0.0106532853,
-0.1501399875,
-0.3070982099,
0.1239758134,
0.1198185682,
-0.2196583152,
0.1782588065,
0.5026726723,
0.1427845061,
-0.2504121959,
-0.4591214359,
-0.2557525039,
0.0590178259,
-0.0557803735,
0.2302814722,
0.3058753908,
0.1249659434,
-0.0625860766,
0.1367468536,
-0.0829636231,
0.1441460252,
0.0899337307,
-0.3396266401,
-0.1212370545,
-0.0430877469,
-0.0559925176,
-0.334818095,
-0.1833231002,
0.3674880266,
-0.1848717928,
-0.0834595859,
0.0852476954,
-0.4613160789,
-0.0845186785,
-0.1731689423,
-0.278344959,
-0.1413929164,
-0.2923742533,
0.213935107,
0.0039636279,
-0.2970674336,
0.1654313505,
-0.0458272099,
-0.1606400162,
-0.0710575655,
0.1188707873,
-0.1903491914,
0.0497265197,
0.1094164178,
-0.100382559,
0.005285894,
-0.1762996912,
-0.3626108468,
-0.1305007637,
0.3857432008,
-0.1165457368,
-0.2995650172,
0.3059235513,
-0.0718539655,
-0.0794139504,
-0.112426661,
0.0002455734,
-0.2547895014,
-0.115313977,
0.0944068283,
0.1451175362,
-0.0963382497,
-0.2837237418,
-0.1959989965,
-0.0018880959,
-0.0740692765,
0.0276003703,
0.137499541,
0.1794658005,
0.346455127,
0.366002351,
-0.1462429315,
0.014255275,
-0.0232469551,
-0.1170394048,
-0.0367529392,
0.1816735715,
-0.14489986,
-0.0827709138,
-0.0736654326,
-0.1873885989,
0.013131585,
0.2109992057,
-0.3556283116,
0.1063892618,
-0.2902392745,
0.2481044829,
0.1234381422,
-0.0326206461,
0.2104385197,
0.2176257521,
-0.0318210311,
-0.2434751987,
0.0793065429,
-0.0752493069,
0.2278319597,
-0.141663298,
0.1974045187,
0.2118673474,
-0.4880532622,
-0.0404963866,
0.0884481668,
0.2922270298,
-0.124145925,
-0.0476289392,
0.0830384716,
-0.1609409153,
-0.1168829948,
0.1702492833,
0.1287457049,
-0.1525616199,
-0.2393290699,
-0.1347995847,
0.2676386237,
0.0378799625,
0.0063899155,
-0.3533119559,
-0.04668504,
-0.0439308174,
0.0477917865,
0.0771761835,
-0.2449295521,
-0.1222815514,
-0.4172745347,
-0.1273055375,
-0.00255445,
0.2901490629,
-0.0009162475,
0.0009976893,
0.0227596723,
-0.3104479015,
0.1445827782,
-0.0064364425,
-0.0993579999,
0.2136107981,
0.3118121326,
-0.0230684169,
0.1324468404,
0.1610923409,
-0.3506338298,
-0.0869009346,
-0.5583695173,
-0.0220929962,
-0.1133845896,
-0.0720314011,
-0.1377769113,
-0.0406433269,
0.1077146903,
0.1324867904,
0.1803771406,
-0.1072119325,
-0.0795150027,
0.1258906126,
-0.165187031,
-0.2191064507,
-0.201066792,
0.193218559,
-0.2639104128,
0.1504639089,
-0.2711706758,
-0.0859153345,
0.281519115,
0.2144113779,
0.322614193,
-0.198558107,
-0.0397369526,
0.4925363958,
0.0679379776,
-0.1657272726,
0.0555871353,
0.2825042903,
0.2520304024,
0.2165814787,
0.0039454694,
0.0485751033,
-0.0629545748,
-0.0072123781,
0.0349673443,
0.50063622,
-0.1590491235,
0.1358134598,
0.1022032425,
0.1962247491,
0.1967401356,
-0.2709746361,
0.0563847087,
-0.2297935188,
0.1597506106,
-0.0614496917,
0.3274123967,
-0.1586160958,
-0.3511632085,
0.2731753588,
0.5077377558,
-0.0193684753,
-0.0686835051,
0.0676764175,
0.0905400962,
0.1009967029,
0.0968727469,
-0.0037627388,
0.2152654827,
0.1815611869,
-0.3201690614,
0.1318323314,
0.1795662045,
-0.1539223492,
0.3975908458,
0.2093750685,
-0.3110725284,
0.0376385488,
0.1728659123,
0.2110511214,
-0.1523111761,
-0.0156265516,
0.3776569366,
0.0923072174,
-0.0931964517,
0.2744857371,
-0.1519401222,
-0.1920514256,
-0.1030779183,
-0.3751802444,
-0.2876753807,
-0.189942956,
0.1777264029,
0.0513116792,
-0.0855412185,
0.5102547407,
0.4035282135,
0.2855921686,
-0.2668792903,
0.365606755,
-0.4895308018,
-0.0605589263,
-0.2188266665,
0.1888480037,
0.1031134576,
-0.3325167,
0.1017686948,
-0.2111886293,
-0.1072418168,
-0.4667666256,
-0.5108636022,
0.1127591059,
-0.29099828,
0.2711438537,
0.082373403,
0.0506851301,
-0.4669666886,
-0.2574220002,
0.1938445568,
0.0646523312,
-0.1746846288,
0.1895431876,
-0.1510758549,
-0.3282027245,
-0.1720155776,
-0.281182766,
-0.1255694777,
-0.0573234297,
0.3623308539,
-0.1816643625,
0.2332026213,
0.3693728149,
-0.176040411,
-0.2582162917,
0.0808761045,
0.1430262178,
-0.3405611217,
-0.23061046,
0.1733336598,
-0.2331455648,
-0.302611798,
0.020048134,
-0.0075781648,
0.3305044174,
-0.1447216719,
-0.4214033186,
-0.1518364996,
0.0214277245,
0.0239002556,
0.1235085651,
0.0973496884,
0.2152563334,
0.2802807391,
-0.0890516862,
-0.2289848924,
-0.3188194633,
0.0277880244,
0.2785301208,
0.446361959,
-0.3551271856,
0.1592787504,
-0.1135889366,
-0.0314484537,
-0.0043514213,
0.3506532013,
0.1772461087,
0.0410330743,
0.0979587734,
-0.2138961852,
-0.1206075847,
0.0186457988,
-0.2866286337,
0.1055149734,
0.3142361939,
-0.292296201,
0.0847826079,
-0.1306322068,
0.0575815737,
-0.6104723215,
-0.3238409758,
-0.2088345736,
-0.1682159901,
0.3637024462,
0.3268859386,
0.0488247126,
-0.0660730526,
-0.0494036824,
0.3029884398,
0.013230511,
0.1056605503,
-0.1151926517,
-0.3425936103,
-0.070276238,
-0.1949481964,
0.3684501052,
-0.3872959912,
0.2317006141,
0.0572946072,
0.0987937301,
-0.0177340452,
0.216334939,
0.7720741034,
0.0792134777,
-0.4735856354,
0.2680613995,
-0.1569935232,
-0.1349532008,
-0.3505122066,
-0.0449683219,
0.0335658826,
0.4151805043,
0.006893212,
-0.4184963703,
-0.0308469329,
0.2092843503,
0.1772540808,
-0.255962044,
-0.0866039917,
-0.2733698487,
-0.0437954515,
0.0251217484,
-0.2949287891,
-0.1060507298,
0.1495948285,
0.044604443,
0.1025273055,
-0.0464166887,
-0.2519984841,
0.2513038814,
0.3360560536,
0.3397324085,
-0.2137840241,
0.484793067,
-0.1812843084,
0.2817265987,
0.4496484995,
0.4115256667,
-0.0181220695,
-0.3825556636,
0.1174987704,
-0.5721493363,
0.2478497028,
0.1819587499,
0.1467085928,
0.339450568,
-0.1164450422,
0.0316734016,
0.1010070965,
-0.1231723279,
0.269854635,
-0.0052057798,
-0.3811213076,
-0.2911936641,
0.3167140186,
-0.2113122046,
-0.1568022519,
0.5465932488,
0.325532496,
-0.049578324,
0.8692589402,
-0.1732665002,
0.8559390306,
0.0735444203,
-0.2092478275,
0.2736370564,
-0.4188936651,
0.2268695682,
-0.0331859626,
0.1795358509,
-0.5019341111,
-0.0884140208,
0.0992162824,
0.0990065858,
0.265660435,
0.2211024463,
-0.1061749607,
0.1902991384,
0.0010178209,
-0.3593478203,
-0.0459694974,
-0.0553069748,
0.2393826842,
-0.0756270662,
-0.1423899978,
0.0999407768,
0.0238763876,
-0.0065324912,
-0.1216032952,
0.0434702821,
-0.1948117316,
-0.0330939516,
-0.0248105805,
0.064490445,
-0.0539027639,
-0.0166573431,
0.4378455281,
-0.4568096101,
0.0092952764,
0.0952488482,
0.6670413613,
0.0488628782,
-0.1588385999,
0.3587812483,
0.2209471911,
-0.0264199208,
0.2426986247,
0.0626275092,
0.1265899688,
0.0271213725,
0.046445258,
0.0430429503,
-0.1551476866,
0.1923496127,
-0.3443814814,
-0.0950360447,
0.2435641736,
-0.2713225186,
0.0498698168,
-0.3483456969,
0.2933449149,
-0.4673756361,
0.1463910937,
0.0272522364,
0.0881230235,
0.2667184174,
-0.0072425306,
-0.0469310656,
-0.2838765383,
-0.1984839141,
-0.0619498752,
0.1977478713,
0.4583908617,
-0.0314533301,
0.0266392492,
-0.0819448233,
-0.0477036312,
0.086291194,
-0.2968996465,
-0.0015539008,
0.056075979,
-0.2127178758,
0.211392194,
0.8396200538,
0.1446299851,
0.1651257724,
0.2256997526,
-0.3633268178,
0.044079531,
-0.0063327355,
0.2265595049,
-0.0816610605,
0.2763522863,
0.2498502135,
-0.2774056792,
0.1408762336,
-0.3175768852,
0.2241612375,
-0.20194754,
0.331923604,
-0.7157125473,
-0.0549156964,
0.0444934331,
-0.2044286132,
0.1731183529,
-0.1675913781,
0.0504933894,
-0.2098578364,
-0.3488287032,
0.130620271,
0.1287272424,
0.049299594,
-0.2965890467,
-0.0066107493,
-0.0698789731,
-0.1677580625,
-0.1875580698,
0.0389314294,
0.1039529666,
0.1334566176,
-0.204073295,
0.0863274187,
-0.3346274793,
-0.1349903941,
0.103627637,
0.0202760566,
0.349211961,
0.0522055514,
-0.2873457372,
0.0284982268,
0.0501978025,
0.0348392315,
-0.3849096596,
-0.0535698496,
0.6435757279,
-0.2771763504,
0.0991064981,
0.0251141638,
0.1701027304,
0.2966198027,
-0.2951372266,
0.0144731877,
0.1982409209,
0.2721143663,
-0.534019351,
-0.1421034932,
0.3219995499,
0.0946458206,
0.0573932864,
0.1499042362,
0.4608080983,
-0.1978149265,
-0.0211043376,
0.1160221696,
0.2872008979,
0.0286042001,
0.0281562321,
0.4072289765,
0.1467960924,
0.4484164417,
0.511023283,
0.2105109245,
-0.3324302137,
0.2504319251,
-0.0581134893,
0.0618377849,
-0.141983822,
0.0930760428,
0.1739418954,
-0.1292765439,
0.4621665478,
-0.3282717466,
-0.0163494591,
0.1168945432,
0.0902344435,
-0.2595866024,
0.0248889904,
-0.2258997113,
-0.0244543124,
-0.1012341604,
-0.1959191412,
0.0275663286,
-0.1259201169,
-0.1001196578,
0.4126199782,
-0.0316539556,
-0.0714584291,
0.0320915133,
0.3161676228,
0.1369592696,
-0.0594962798,
-0.0467022881,
-0.256153971,
0.2381833047,
0.406242758,
-0.1513158828,
0.2619273961,
0.1262294203,
-0.3369145989,
0.1225881279,
0.3434933126,
0.1192603186,
0.0682732537,
-0.0939637199,
-0.1331099868,
-0.0315827467,
-0.0848526359,
0.2423167676,
0.1554320306,
0.3483055532,
0.3779917657,
0.1538869441,
0.0977838412,
-0.0854930505,
0.1103018522,
0.0909452364,
0.0402270928,
-0.3181944788,
-0.0406314209,
-0.1921457797,
-0.3732210696,
-0.1098447219,
-0.1496448815,
-0.1810819656,
-0.0315659679,
0.0458884984,
0.1325667948,
-0.0691383481,
0.1820524931,
0.1401595771,
0.1574241221,
0.0545598418,
0.3357809782,
0.1196985021,
-0.3121223748,
-0.4723947644,
-0.2209152132,
0.1471862793,
-0.0166546237,
0.2752978206,
0.3665795028,
0.1328061968,
0.3440547585,
-0.1112489551,
0.061223235,
-0.0446004905,
-0.3791801929,
0.2989430428,
-0.5998274684,
-0.0917731673,
-0.1127040014,
0.0619649142,
-0.0197581742,
0.2378126234,
0.2866752744,
0.0371192582,
-0.0390734151,
-0.1601813287,
0.0239211135,
0.1964659691,
0.0704028308,
0.3648019433,
0.1792725772,
-0.0976061597,
-0.0436987467,
-0.3078193069,
0.2053606212,
-0.080071494,
-0.1364662945,
0.5880196095,
-0.0684822351,
0.158833012,
0.2921808362,
-0.5144423246,
0.1098298654,
0.6035783291,
0.0952697843,
-0.1186399385,
-0.499430269,
0.3075223863,
0.3789219856,
0.1986837536,
0.1321590543,
0.3110571504,
-0.0876138955,
0.3579062521,
-0.387830615,
-0.26119259,
0.4151237905,
-0.2831667066,
0.0035107536,
-0.0772240162,
0.2843596935,
-0.2573533654,
-0.1023698226,
-0.6073067188,
-0.2867357135,
0.367197454,
-0.3029933572,
-0.1535066664,
0.0345654413,
-0.0772372484,
0.1964756548,
0.0000740926,
0.8225832582,
0.2425957322,
-0.1439451724,
0.08583799,
0.1413801908
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency.
For example, other datasets also flatten "question.stem" into "question":
- ai2_arc:
```python
question = data["question"]["stem"]
choices = data["question"]["choices"]
text_choices = [choice["text"] for choice in choices]
label_choices = [choice["label"] for choice in choices]
yield id_, {
"id": id_,
"answerKey": answerkey,
"question": question,
"choices": {"text": text_choices, "label": label_choices},
}
```
- commonsense_qa:
```python
question = data["question"]
stem = question["stem"]
yield id_, {
"answerKey": answerkey,
"question": stem,
"choices": {"label": labels, "text": texts},
}
```
- cos_e:
```python
"question": cqa["question"]["stem"],
```
- qasc
- quartz
- wiqa
Exceptions:
- exams
I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 132 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency.
For example, other datasets also flatten "question.stem" into "question":
- ai2_arc:
```python
question = data["question"]["stem"]
choices = data["question"]["choices"]
text_choices = [choice["text"] for choice in choices]
label_choices = [choice["label"] for choice in choices]
yield id_, {
"id": id_,
"answerKey": answerkey,
"question": question,
"choices": {"text": text_choices, "label": label_choices},
}
```
- commonsense_qa:
```python
question = data["question"]
stem = question["stem"]
yield id_, {
"answerKey": answerkey,
"question": stem,
"choices": {"label": labels, "text": texts},
}
```
- cos_e:
```python
"question": cqa["question"]["stem"],
```
- qasc
- quartz
- wiqa
Exceptions:
- exams
I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same. | [
-0.1097743586,
0.1326161772,
-0.0441396423,
0.251501888,
-0.2379210591,
-0.0238394011,
0.2634883523,
0.3610416353,
0.006400961,
0.1764746308,
0.096433647,
0.4849393666,
0.4549894035,
0.4911120832,
-0.148104012,
-0.160447374,
0.3868280947,
0.0276735201,
0.2539488673,
-0.0356515311,
-0.2659470141,
0.4672729969,
-0.2174430341,
0.0999923348,
0.0964768231,
-0.1398295164,
-0.4847763777,
-0.057913404,
0.0054192678,
0.0074244752,
0.1809109002,
0.1605218202,
-0.3850033581,
0.2002613395,
-0.0001139321,
-0.1369350851,
-0.0883787349,
0.0266066138,
-0.2319210321,
-0.2157822847,
0.052961275,
-0.2617893517,
-0.1228878275,
-0.2755648494,
0.0981127322,
0.0550665893,
-0.1491115838,
-0.2618976831,
0.1818795204,
-0.1574004143,
0.1525596827,
-0.0238076039,
0.3675931692,
0.1867574155,
0.0815778449,
-0.1015934274,
-0.2293050438,
0.0033499913,
0.2247362435,
0.0118484003,
0.2578726411,
0.303620398,
-0.0688908249,
-0.2904932201,
-0.3472497761,
0.1664650887,
0.1601463705,
-0.2673430145,
0.0248357467,
0.4789613485,
-0.0109285908,
-0.235559538,
-0.5180100799,
-0.3433983028,
0.038707424,
-0.1429570764,
0.1242312789,
0.2304447293,
0.1746181995,
-0.0223128721,
0.3207927346,
-0.182462275,
0.1485363841,
0.1652731001,
-0.3517591059,
-0.0104304515,
0.0170134138,
-0.0692647249,
-0.3648296297,
-0.1031913385,
0.4435928762,
-0.3173172772,
-0.0160327591,
0.0105056455,
-0.4281848073,
-0.1500117928,
-0.273696661,
-0.3439185023,
-0.0956541896,
-0.2881827354,
0.2985573709,
0.022994075,
-0.233034417,
0.1407809854,
-0.1006417871,
-0.0558719561,
-0.0019868331,
0.1179583743,
-0.2235388458,
0.0869905353,
0.0366495289,
-0.0824576169,
-0.0008301524,
-0.1000232249,
-0.3417010903,
-0.0723583922,
0.4922668338,
-0.0247177146,
-0.3859815598,
0.236907959,
-0.1312112361,
-0.0715423524,
-0.0843340531,
-0.0666469708,
-0.1734167039,
0.1304677129,
0.1017337292,
0.17043221,
-0.0557211153,
-0.2183282673,
-0.1628325582,
-0.0814050436,
0.045691248,
0.1077752709,
0.0427830815,
0.1075606123,
0.3035513759,
0.2609870732,
-0.0493855551,
0.1293660402,
-0.0696745291,
-0.1429932863,
0.0422015674,
0.1169750765,
-0.23676911,
-0.1403563619,
-0.01776544,
-0.2484626025,
0.058054544,
0.1993376911,
-0.405665189,
-0.0232921336,
-0.2336163223,
0.2024966329,
0.1131741032,
-0.0159433037,
0.1385367662,
0.2477846593,
0.0611143038,
-0.2313672155,
0.0562971607,
-0.1061240286,
0.1815368682,
-0.1666765511,
0.2162818015,
0.1965352744,
-0.4122449458,
-0.0134014776,
-0.1286965609,
0.3966889381,
-0.1489108056,
0.0586834513,
0.0443988368,
-0.0683440194,
-0.1563734561,
0.2003964633,
0.1304276884,
-0.2321345508,
-0.374922365,
-0.1660816222,
0.2656884491,
0.1556934267,
0.1086632088,
-0.3345250487,
-0.1152725294,
-0.1089905426,
0.1317033619,
0.0208079107,
-0.2419557273,
-0.2171495408,
-0.4325254858,
-0.2124896049,
0.1553419977,
0.1801257432,
-0.0255269408,
0.0034714132,
-0.12083368,
-0.2510540485,
0.2326427996,
-0.0000789152,
-0.1483455449,
0.1010521352,
0.3779268563,
-0.1242138445,
0.1174527928,
0.1150913835,
-0.5746988058,
-0.030064499,
-0.6786449552,
-0.1449201852,
-0.1288169324,
-0.251834929,
-0.038451273,
-0.0848690346,
0.0403755791,
0.157443881,
0.17506437,
-0.1348837465,
-0.045527339,
-0.0385652445,
-0.260984987,
-0.2688122392,
-0.1927360892,
0.2396469265,
-0.2286631018,
0.2453788519,
-0.2683630288,
0.0061454093,
0.2477331609,
0.2455510646,
0.3565663993,
-0.2620423436,
0.0887056664,
0.5120708942,
0.0380574204,
-0.2177447528,
-0.053816855,
0.2502329648,
0.2662848234,
0.2950715423,
0.023922924,
0.0712918714,
-0.0848159418,
-0.0774034709,
0.0736581534,
0.4827049971,
-0.1446056366,
0.2192671299,
0.1014419943,
0.0880510882,
0.0344993919,
-0.2184239775,
-0.0092668673,
-0.3117272258,
0.0229414944,
-0.1389649063,
0.2988815606,
-0.1470457464,
-0.3462943137,
0.4355352223,
0.5409053564,
-0.0042484445,
-0.0848383009,
0.1014391109,
0.1992357373,
0.097024776,
0.075270392,
-0.072544992,
0.2485430092,
0.1928688884,
-0.298776865,
0.1067136601,
0.2667938173,
-0.0843674019,
0.4443075955,
0.2617065907,
-0.2453444302,
0.1242909953,
0.1816359609,
0.246480301,
-0.1266372055,
-0.0781406462,
0.3060937524,
0.0027533907,
-0.12900424,
0.2617796361,
-0.127053082,
-0.2275789082,
-0.1454594582,
-0.4518143833,
-0.2638543844,
-0.2247776389,
0.2122166604,
0.1378516555,
-0.1852670461,
0.5181917548,
0.4227959812,
0.3277258873,
-0.2118456066,
0.3134724796,
-0.5174558759,
0.0297419615,
-0.1239391193,
0.1598781943,
0.1170919761,
-0.4179796278,
0.0387321264,
-0.1786053628,
-0.0890974253,
-0.4192763269,
-0.6379324794,
0.1106094122,
-0.3292036653,
0.165461421,
0.080334343,
0.201335609,
-0.4030192792,
-0.4229227304,
0.1720825881,
0.2590762377,
-0.1736132503,
0.1541871578,
-0.0599351376,
-0.3487952948,
-0.1016503051,
-0.2814889848,
-0.2110574394,
-0.1167338938,
0.3086922467,
-0.249491781,
0.2905518711,
0.3692623973,
-0.1721044332,
-0.3150828481,
0.0722795799,
0.1112132519,
-0.2756542861,
-0.2471312582,
0.1670705229,
-0.1506577134,
-0.1349555999,
-0.1658003032,
-0.1401347816,
0.3781979084,
-0.184490025,
-0.3242150545,
-0.0957909673,
0.0500807241,
-0.053921856,
0.1956447065,
0.1437063664,
0.2238171548,
0.3818650544,
-0.0204831753,
-0.1527151614,
-0.2278277874,
0.0483864509,
0.2852035761,
0.3930836618,
-0.3543849885,
0.0508620366,
-0.0169632938,
0.0335371979,
0.1770769358,
0.3453834951,
0.1043454036,
0.1741133779,
0.085886322,
-0.2435448319,
-0.1671387553,
-0.0715472996,
-0.2287997901,
0.0667539239,
0.2377080023,
-0.350117147,
0.0394821875,
-0.0620005392,
0.0315333679,
-0.5189899206,
-0.3875522614,
-0.1719101965,
-0.226571694,
0.353369832,
0.3154342175,
-0.0155550586,
0.0073049287,
-0.0108590005,
0.3977195323,
0.0169038214,
0.1522175968,
-0.1230573133,
-0.315335393,
-0.3102194667,
-0.1413558275,
0.4627591968,
-0.3599780202,
0.1981679052,
0.1759320647,
-0.0155125428,
-0.1297803223,
0.1527127922,
0.7660775781,
0.0829257369,
-0.5135418177,
0.2940250635,
-0.0865993127,
-0.1036761925,
-0.3375145495,
0.057513684,
0.0035671156,
0.4307492673,
0.2280939966,
-0.5632210374,
-0.0149352923,
0.1015349999,
0.2425939143,
-0.2797355354,
-0.1239687279,
-0.2287274897,
-0.0023829646,
-0.0262446646,
-0.231154874,
-0.0775360167,
0.232001707,
0.079661414,
0.0932470262,
-0.1651243865,
-0.3843822181,
0.2328846902,
0.1800967604,
0.405915916,
-0.173058033,
0.4700658321,
-0.1890891194,
0.3864487708,
0.3785930574,
0.4198212028,
0.0460541621,
-0.2023147941,
-0.0154213337,
-0.4291307032,
0.3105559051,
0.3204347789,
0.1822679937,
0.3888300657,
0.000993132,
0.0838979334,
0.0625961646,
-0.1935266852,
0.1843181849,
0.0306347478,
-0.4366153181,
-0.3393149376,
0.2915222347,
-0.2039181441,
-0.2291930318,
0.4974680841,
0.3780026734,
-0.0986322984,
0.8824451566,
-0.1571093202,
0.9794386625,
0.2037341744,
-0.1459952593,
0.3811954558,
-0.1224293932,
0.1476225406,
-0.0426182151,
0.1852971762,
-0.4120436013,
-0.1451181173,
0.0860406309,
0.0816071108,
0.2815209031,
0.2387799323,
-0.1553445309,
0.2907504141,
0.0358540304,
-0.3333656192,
-0.0773357674,
0.0177638121,
0.1783324927,
-0.0715415031,
-0.1739069819,
-0.0036963425,
0.0612568855,
-0.0061482145,
-0.1024986356,
0.0029744687,
-0.1696345061,
-0.0574898161,
0.062301591,
0.07673195,
-0.2052787989,
0.0409261584,
0.3093675673,
-0.4988069832,
0.0172318034,
0.083840929,
0.7103011608,
0.0659713969,
0.0027818577,
0.2345374227,
0.3422036767,
-0.0848111287,
0.2973736227,
-0.0815070048,
0.1457799971,
0.0571479872,
0.0838046819,
0.0432694219,
-0.1187578291,
0.2134902179,
-0.3214099109,
-0.1791062951,
0.2767014503,
-0.2891270518,
0.0042895968,
-0.1942338645,
0.2204031348,
-0.4162171185,
0.0839955658,
0.024259951,
0.0666624755,
0.2395160198,
-0.0836211294,
-0.014378773,
-0.2466915846,
-0.1777969599,
0.0938922018,
0.3256411552,
0.4560348094,
-0.1205666736,
0.046523273,
-0.0224406309,
-0.0455287658,
0.0286218468,
-0.099192284,
0.0572034903,
0.0518082008,
-0.2311883569,
0.0857979357,
0.7464829683,
0.2314580828,
0.2285173088,
0.1221896484,
-0.3248083293,
-0.0090099741,
0.2098962218,
0.2423278838,
-0.0146309426,
0.2803833783,
0.2181926966,
-0.4034715593,
0.1186025888,
-0.2827788293,
0.1659014225,
-0.0892531872,
0.2588096559,
-0.6593565345,
-0.0065081986,
0.1219422072,
-0.2284170538,
0.1578781456,
-0.177112475,
0.1459392905,
-0.1767701805,
-0.3078810275,
0.1345811486,
0.1028705165,
0.1273893416,
-0.142796725,
0.0307553671,
0.0260114688,
-0.1779370904,
-0.1235928908,
-0.0608401336,
0.2122113258,
0.1533197165,
-0.3174437582,
0.0640734136,
-0.3582108915,
-0.1039741859,
0.0700335801,
-0.0481161997,
0.3114537299,
0.142729491,
-0.3573384881,
0.0014674555,
0.1781362891,
0.0465840213,
-0.4318416715,
0.0442668796,
0.7221921086,
-0.2277940065,
-0.0542858653,
-0.0044936109,
0.1619775891,
0.2565866411,
-0.2838603854,
-0.0096994601,
0.0773508027,
0.24262923,
-0.5789577961,
-0.047928717,
0.2664564252,
0.0082868682,
0.1420884132,
0.2397485822,
0.4003153443,
-0.2191600353,
-0.0373851806,
0.1288276464,
0.2618264258,
0.1671447009,
0.1011000574,
0.3663035929,
0.1752530336,
0.5033140779,
0.4916257858,
0.2436356097,
-0.182741493,
0.1457698047,
0.063815929,
-0.0090025496,
-0.107901305,
0.0041905367,
0.2079649568,
0.0180786215,
0.3652297258,
-0.1747031212,
0.1008375138,
0.1459258199,
0.1638458371,
-0.209114477,
0.0815863386,
-0.3186057508,
0.091406785,
-0.0117245046,
-0.2274354249,
-0.003858105,
-0.2079250515,
-0.1353875101,
0.3794543445,
-0.1710147262,
-0.0699841827,
-0.0831619203,
0.1997404844,
0.0939103067,
-0.0283905771,
0.0909624025,
-0.2273091823,
0.3274763525,
0.4901710749,
-0.2089743763,
0.3316179216,
0.3097829223,
-0.4471168518,
0.0762471259,
0.3841513991,
0.1532026529,
-0.0171737857,
-0.2064031065,
-0.0549248047,
0.0541172102,
-0.165728271,
0.160935536,
-0.0120513923,
0.2563720047,
0.1860842109,
0.2445603311,
0.0707045868,
-0.0884947032,
0.0681690127,
0.1879161745,
0.1001813114,
-0.3758581281,
0.0644885376,
-0.2310765982,
-0.3452651799,
0.0030519816,
-0.1659977585,
-0.211677283,
-0.1408896744,
0.0702654421,
0.0689822361,
-0.0767301321,
0.2214146852,
0.1156567037,
0.2451763749,
0.0462586209,
0.2154214382,
0.0134389978,
-0.3520790935,
-0.4181019366,
-0.1978958845,
0.1320774853,
0.0397787653,
0.34100914,
0.3438510001,
0.1442616582,
0.4004642963,
-0.0909475386,
0.0727102682,
-0.0493636243,
-0.4624989629,
0.2876475453,
-0.5645508766,
-0.0265640952,
-0.0917651579,
0.0916822553,
-0.0035299433,
0.1134653091,
0.2303836942,
0.0732837841,
-0.0645256415,
-0.0519951023,
0.201382637,
0.179541111,
-0.2014748752,
0.2402785867,
0.1941233873,
-0.1924176663,
-0.070681572,
-0.3504210413,
0.2710880041,
-0.0499289855,
-0.2259753048,
0.5704772472,
-0.0035794531,
0.2458711863,
0.2107554078,
-0.5354071856,
0.0911499262,
0.5161125064,
0.1900074333,
-0.2357141823,
-0.5775598288,
0.4134142697,
0.2809973955,
0.2135027647,
0.1066075042,
0.4640437067,
-0.1183604077,
0.3973375559,
-0.3557237089,
-0.2840926051,
0.4370101094,
-0.2562057078,
0.0300556067,
-0.0100481007,
0.282785207,
-0.1806952953,
0.01976192,
-0.4986234605,
-0.3273220956,
0.3398217261,
-0.3813390732,
-0.1946465969,
-0.0220698658,
-0.0124067739,
0.0612321086,
-0.0504375324,
0.784917891,
0.1974279433,
-0.2776813209,
-0.004824271,
0.0877256915
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | @albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 107 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
@albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq | [
-0.0696031824,
0.2296478003,
-0.0100900801,
0.0402288064,
-0.1834874302,
-0.1042137891,
0.319383949,
0.3728416562,
-0.0084602879,
0.1532329619,
0.0812204257,
0.3126558065,
0.5082780123,
0.2665573657,
-0.1158585623,
-0.245972991,
0.3876905143,
0.1590896994,
0.0666596964,
-0.1644399017,
-0.2158473581,
0.3688813746,
-0.1924868524,
0.229605034,
0.1179269925,
-0.0768638253,
-0.460231632,
-0.1250721067,
0.0000285526,
-0.1360206455,
0.0393473245,
0.3687199652,
-0.2468781769,
0.2535470426,
-0.0001078641,
-0.1946755052,
-0.0464920253,
0.1143710539,
-0.2850138843,
-0.2117994279,
0.0114881815,
-0.2760747075,
-0.1555109769,
-0.1835090965,
0.0781672746,
0.0257272255,
-0.1205443516,
-0.1718740761,
0.0202819519,
-0.1878926754,
0.2011324167,
-0.0693089142,
0.2001219988,
0.09862113,
0.2986964881,
0.1908412427,
-0.3160247207,
-0.1359655261,
0.2559081018,
-0.0796411335,
0.172449857,
0.3941915035,
-0.0020535521,
-0.1584800333,
-0.1582529098,
0.0856369063,
0.0743026584,
-0.0754493251,
0.1620190442,
0.7886561751,
0.2469025254,
-0.2067466527,
-0.4667553902,
-0.2679791451,
-0.0074329996,
0.0001957609,
0.1689700782,
0.2789776027,
0.2035883218,
-0.0120463865,
0.2613493204,
-0.1730069369,
0.1263400316,
0.1596776396,
-0.4020984769,
-0.284606576,
-0.0293315444,
-0.0341492258,
-0.4117086232,
-0.2079411,
0.1418245137,
-0.2136274129,
-0.1214390993,
-0.0486856736,
-0.2751647532,
-0.1530784518,
-0.119207412,
-0.2220359296,
0.0575319789,
-0.412748903,
0.2000184059,
0.0274831429,
-0.3903745711,
0.1110265031,
0.0170325618,
-0.3224205971,
-0.0602531657,
0.0445677415,
-0.1308726221,
0.1536912918,
0.1702961326,
-0.0618941411,
0.1338481158,
-0.0564725287,
-0.499199003,
-0.1716262102,
0.3712953031,
-0.1937269121,
-0.3502106369,
0.3883861005,
-0.019887168,
-0.1236194968,
-0.2079337388,
0.0539519265,
-0.1510806382,
0.0865786001,
0.0997683629,
0.160415411,
-0.1202649772,
-0.2795260251,
-0.1537479013,
0.0201881193,
-0.004678512,
0.1687164158,
0.0884287879,
0.1286206245,
0.1250651479,
0.3350716829,
-0.1154183745,
0.1522701085,
0.0239189826,
-0.2501380146,
0.0866942406,
0.1242215857,
-0.3181289136,
-0.0928897187,
-0.1042449623,
-0.1033549979,
-0.0332416743,
0.2140455395,
-0.3373625875,
0.1700284481,
-0.3033414781,
0.2553762794,
0.1250355095,
-0.056669198,
0.2018340379,
0.2573332787,
-0.1382351667,
-0.2928123772,
0.2027490288,
-0.1258959919,
0.2024250776,
-0.1517146677,
0.0606567636,
0.3241967559,
-0.4737028182,
-0.0357554108,
0.0964709297,
0.352640152,
-0.0959916115,
-0.0214303173,
-0.0993586853,
-0.0491411015,
-0.1073005646,
0.1985854506,
0.0782830045,
-0.255828023,
-0.1632890701,
-0.0393157117,
0.278934896,
0.0905505493,
0.0100147715,
-0.3963422477,
0.0106875487,
-0.161578849,
-0.0994874984,
-0.0988079235,
-0.1594026983,
-0.1323218793,
-0.4348160625,
-0.2168442905,
-0.067705974,
0.1818798929,
0.0435793176,
-0.1467618048,
0.0748762563,
-0.0415210836,
0.3228680193,
-0.1006831154,
-0.0424549654,
0.1500799209,
0.377099514,
0.0172500815,
0.1662045866,
0.1761326045,
-0.3448503315,
-0.1111211404,
-0.5325245857,
-0.1221327409,
0.1451998651,
-0.2550848424,
-0.0314851552,
-0.2018545717,
0.1034043506,
0.1097299233,
0.2036617845,
-0.0470537581,
-0.192343697,
0.0730236918,
-0.1822303981,
-0.1045263857,
-0.1359561086,
0.2321664691,
-0.0166648105,
0.1995251924,
-0.1784273237,
0.1072958633,
0.2081708461,
0.1909949034,
0.3404949307,
-0.1537513733,
0.0262676235,
0.3947635591,
0.0688626617,
-0.1320857555,
0.0153781753,
0.3280013502,
0.3196361661,
0.2130314857,
0.1744673848,
0.0565102026,
0.0061228946,
-0.0878005996,
-0.0606979243,
0.4383126795,
-0.0852039605,
0.1017052159,
0.0815561935,
0.0602030121,
0.044443544,
-0.2375166118,
0.0144316051,
-0.2739398777,
0.1222718433,
-0.058064606,
0.2378386408,
-0.1290924996,
-0.23894611,
0.3914740384,
0.6482895017,
-0.0100838179,
-0.0938526616,
0.1628198773,
0.1130887493,
0.0930275172,
0.2293612063,
-0.1191484034,
0.2146212012,
0.2094039172,
-0.3093629777,
0.1246579736,
0.1629592925,
-0.1301350743,
0.3430815339,
0.2611314058,
-0.1460606754,
0.0318001732,
0.1446853429,
0.2648164332,
-0.1750513166,
-0.239999339,
0.2573033571,
-0.1093204767,
-0.1500407755,
0.248375833,
-0.149507463,
-0.0320326239,
-0.0668060854,
-0.2417822778,
-0.2483551949,
-0.2763034403,
0.1566925049,
0.0683524385,
-0.1753715128,
0.2720606029,
0.1248478442,
0.3851288259,
-0.3690246642,
0.328646332,
-0.4920906723,
0.1217366681,
-0.2863212228,
0.1710444838,
0.0328657776,
-0.3764327765,
0.1774441153,
-0.20749937,
-0.1673381776,
-0.5746415257,
-0.6637226939,
0.2495167404,
-0.3124956489,
0.0363298878,
0.173734799,
0.0923259929,
-0.6263770461,
-0.231152609,
0.0806939974,
0.1109649837,
-0.1410902441,
0.1481944621,
-0.1676063836,
-0.1185649112,
-0.1557625979,
-0.3343429565,
-0.0898023248,
-0.1443950683,
0.3780383468,
-0.2561936677,
0.214413926,
0.4877122045,
-0.2778663933,
-0.2457567602,
-0.0996501595,
0.2701756954,
-0.4299853444,
-0.2034659386,
0.1219896227,
-0.265609771,
-0.3593102694,
-0.0514257252,
-0.0914778858,
0.3019790649,
-0.0317384638,
-0.4091457427,
-0.064920783,
0.0692012981,
0.0029039313,
0.0159954168,
0.1816910207,
0.27900213,
0.1883378476,
-0.1044042856,
-0.2142485678,
-0.1808731705,
0.0779492259,
0.2458804995,
0.4659023583,
-0.2716847062,
0.0555198751,
0.0289958511,
0.1235661879,
0.063189283,
0.457559973,
0.3480699658,
0.2020812482,
0.2117083669,
-0.2431608588,
0.0587545037,
0.1609728336,
-0.2132671475,
0.1062645093,
0.3341735303,
-0.22469078,
0.0685696453,
-0.0653824285,
0.0308238752,
-0.5297787786,
-0.4418598711,
-0.0920335427,
-0.2406026721,
0.2859292328,
0.3097967505,
0.1940310001,
-0.077698119,
-0.1311575472,
0.459641248,
0.2273559123,
0.2022646964,
-0.0872344598,
-0.3523531854,
-0.0485561229,
-0.1509984732,
0.449172169,
-0.3587692976,
0.3188934028,
0.0206650738,
-0.0504281633,
-0.026772242,
0.0312553272,
0.5746680498,
0.0354879946,
-0.43757236,
0.2689489722,
-0.1330820918,
0.0244521778,
-0.3724324107,
-0.0905417278,
-0.196619764,
0.2331434339,
-0.1313021928,
-0.6180852056,
-0.2150965035,
0.1259801388,
0.038096983,
-0.1976663172,
-0.2198389024,
-0.2133510113,
-0.0723523945,
-0.0679103583,
-0.3726087809,
-0.069712095,
0.1390255094,
-0.0868759826,
0.0697715059,
-0.1384427845,
-0.1437706053,
0.2967101038,
0.1771461964,
0.3629650474,
-0.0776810497,
0.3815391362,
-0.1740054041,
0.3287403882,
0.5683431625,
0.3478129804,
0.0446083359,
-0.1153294668,
0.1872665435,
-0.5689080954,
0.2546128631,
0.4183632433,
0.2751156688,
0.350073576,
0.0273871943,
0.1056024358,
-0.1148590595,
0.0240051895,
0.2426151782,
-0.1683688909,
-0.5273302197,
-0.2649078667,
0.2989833355,
-0.1007201672,
-0.2194141299,
0.4401059747,
0.7184060216,
-0.0378830172,
0.8356882334,
-0.0869708657,
1.0262875557,
0.0421639644,
0.0433506109,
0.2748911381,
-0.3377830386,
0.2972128689,
-0.246985808,
0.0570254363,
-0.4488586783,
-0.1527376026,
-0.0051700352,
0.0950762853,
0.4571219981,
0.1832383871,
0.0112496056,
0.2882126272,
0.0976339206,
-0.0900072679,
-0.0659119114,
-0.0019937935,
0.0135920485,
-0.1246871799,
-0.0402902141,
0.1376139224,
-0.0282081384,
0.0881829038,
-0.2107426375,
-0.023485221,
-0.2281863242,
-0.1112757921,
0.0376884863,
0.0066504329,
0.0674034283,
-0.1500714421,
0.4083313644,
-0.3489128053,
0.1552578062,
-0.1935434192,
0.7438077331,
0.1775080115,
-0.1498911232,
0.2480340004,
0.157885015,
0.0000395464,
0.2723700702,
-0.08247412,
0.2571640909,
-0.0091155162,
0.0258540493,
0.059294045,
-0.1869819462,
0.1805791557,
-0.3997626305,
-0.2153986096,
0.3853855431,
-0.2461225539,
0.1816170067,
-0.151828289,
0.2774574459,
-0.2990747094,
0.1574231833,
0.0379299968,
0.1043577194,
0.2104976177,
0.1312261224,
-0.0575155579,
-0.3873955905,
-0.1699643284,
0.0519761294,
0.0253975932,
0.4092175364,
-0.0946325883,
-0.1146201193,
-0.0770723447,
-0.085504055,
0.2415272444,
-0.2572834492,
-0.2158302367,
0.1351887435,
-0.2380883694,
0.1752777249,
0.7735232115,
0.1382731199,
0.0455733947,
0.2408797294,
-0.3171110451,
0.0605327561,
0.1505354494,
-0.0178247467,
-0.0452444144,
0.4606648088,
0.1109479293,
-0.3285834491,
0.0472815707,
-0.3610382378,
0.1299521923,
-0.0037913183,
0.2519104779,
-0.74686867,
-0.0310012475,
-0.0802560374,
-0.1981415302,
0.1880059689,
-0.1504579633,
-0.0763405636,
-0.1958998442,
-0.4253174961,
0.1517904401,
0.1423773021,
0.1035007164,
-0.1528234929,
-0.0454512984,
-0.0194713864,
-0.1413959563,
-0.0934225172,
0.0016972595,
0.1449973434,
0.2413550019,
-0.0360191464,
0.0882909521,
-0.3178389072,
-0.0484260842,
0.2309349179,
0.1359750628,
0.171840772,
0.1142713875,
-0.281208843,
-0.0013338767,
-0.0001277499,
0.2056273073,
-0.1682724953,
-0.007853372,
0.5881760716,
-0.1308362782,
0.1727700084,
-0.0161494408,
0.1383463144,
0.3321656585,
-0.2772145271,
-0.1656869501,
0.2568793893,
0.2702168524,
-0.3807605803,
-0.1849170774,
0.1031587198,
0.059897393,
0.0647839904,
0.2112043798,
0.5977261662,
-0.2737560272,
-0.0270009153,
0.1436394304,
0.1824153662,
-0.0841941759,
-0.0696939453,
0.3393566012,
0.0112173446,
0.5447097421,
0.4411687255,
0.2687282264,
-0.2871575654,
0.1440004408,
0.0256738346,
0.0302330907,
-0.0250511132,
0.1499406397,
0.1928397864,
-0.1780608594,
0.5613921881,
-0.1351788491,
0.1588914394,
0.0283278618,
0.1764391065,
-0.3791718781,
0.2482656837,
-0.2988900244,
-0.0223742183,
-0.186538741,
-0.2365151197,
0.0494637825,
-0.2035901099,
-0.0336614028,
0.2512710392,
-0.1335879564,
-0.1783314794,
-0.019544119,
0.3867735863,
0.1532831192,
0.0285180509,
-0.0252676718,
-0.1014410183,
0.1348752975,
0.4785366654,
-0.1586521715,
0.2012434155,
0.0080989292,
-0.3369815946,
0.1947408468,
0.3069112897,
0.0137720006,
0.0696429461,
-0.1295771897,
-0.1931057572,
-0.0472503155,
-0.0138045484,
0.2352529019,
0.0173694286,
0.2774946094,
0.2626667321,
0.2401933968,
0.0948474556,
-0.0602800399,
0.0070417565,
0.0028921496,
0.0228171647,
-0.3785491288,
0.0825845599,
-0.1251353472,
-0.1042193174,
0.0189982653,
-0.1416653246,
-0.1990324259,
-0.1632674932,
0.1522008479,
0.1935599446,
0.0476657376,
0.0401873887,
0.1227731928,
0.2091655284,
-0.1714830548,
0.2552039921,
-0.0606924146,
-0.3017765582,
-0.2546449602,
-0.1682251543,
0.0830149055,
-0.0800319836,
0.1634855717,
0.2931206822,
0.1140805036,
0.4347024262,
-0.1282475889,
0.0673772618,
-0.0633615479,
-0.3583955765,
0.3047113419,
-0.4338856339,
-0.0263747573,
-0.0759461522,
0.088940464,
-0.104678154,
0.1115249917,
0.4254392982,
0.1584561467,
-0.0392262526,
-0.2260873467,
0.0958639681,
0.2147522122,
-0.1520932913,
0.2303376496,
0.2107989043,
-0.2264616638,
-0.1180132627,
-0.4756059349,
0.122901313,
0.0057394193,
-0.1347248405,
0.5090206265,
-0.2616987824,
0.1247309372,
0.3941831291,
-0.6035907865,
0.1646506041,
0.5223122835,
0.0760593414,
0.0215270109,
-0.5713090897,
0.3831680119,
0.3763612509,
0.103110224,
0.1308057159,
0.2499993891,
0.0104182549,
0.3519023955,
-0.3713920116,
-0.3835077286,
0.4825029969,
-0.291329056,
0.0362211913,
-0.0529258586,
0.3773244917,
-0.2167601734,
-0.0573678762,
-0.62322402,
-0.2404246777,
0.3108644783,
-0.3280769587,
-0.111615032,
-0.0490995459,
-0.1134832725,
0.0052284715,
-0.1140274256,
0.757545948,
0.0928391218,
-0.2280109674,
0.0360917374,
0.1256202608
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I'm opening a PR that adds the missing fields.
Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 18 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I'm opening a PR that adds the missing fields.
Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna | [
-0.1227659434,
0.1294834018,
-0.0531327948,
0.2436132431,
-0.1115282178,
-0.0573373921,
0.1977688372,
0.2891437709,
-0.115660876,
0.2128254175,
0.1821909398,
0.4630895257,
0.37812379,
0.3454271257,
-0.0517650545,
-0.3028847873,
0.3833729029,
0.1199520379,
0.2903484404,
-0.0097328937,
-0.2617138326,
0.4804413021,
-0.3111643493,
0.1456240267,
0.0606265515,
-0.1175338924,
-0.4741399884,
-0.0885008499,
-0.0695976019,
-0.1171175241,
0.0329109132,
0.1738624424,
-0.29921031,
0.2272765934,
-0.0001115036,
-0.1767384708,
-0.0957512185,
0.0382845402,
-0.2103365809,
-0.2624767721,
-0.0572989173,
-0.3349642754,
-0.1145700216,
-0.2542567253,
0.0750597641,
-0.1084403098,
-0.1459991783,
0.0179546885,
0.0932157189,
0.0680731311,
0.1937107891,
-0.0296376143,
0.3744158745,
0.0864877328,
0.1934262961,
-0.0575396121,
-0.3595840931,
-0.0100524845,
0.3006980419,
-0.0263599455,
0.2761845291,
0.1768283397,
-0.0354530439,
-0.1663951725,
-0.3157791495,
0.1727365851,
0.129355967,
-0.1915602237,
0.1732870042,
0.4257300496,
0.0966125801,
-0.2577462494,
-0.457293272,
-0.2639892995,
0.0073604845,
-0.1520213038,
0.2117086202,
0.2656594217,
0.1055848673,
-0.0488575473,
0.1760716885,
-0.1050131395,
0.1470010579,
0.0997324064,
-0.3217182755,
-0.1179335043,
0.0170783065,
-0.0177785717,
-0.3173140883,
-0.1964939684,
0.4314584434,
-0.2086995542,
-0.0804776624,
0.0139196888,
-0.3882031143,
-0.0969555154,
-0.1194167435,
-0.2539887726,
-0.1374586672,
-0.221458599,
0.0988516137,
0.0020823383,
-0.2735094428,
0.1231499612,
-0.1331828833,
-0.1584863365,
-0.0640497357,
0.2421085685,
-0.2459201068,
0.1263545901,
0.0539033227,
-0.1044862792,
0.0753054023,
-0.2187895924,
-0.3298302591,
-0.102562435,
0.4273863137,
-0.0753173977,
-0.3060821891,
0.3053895533,
-0.0833459273,
-0.085962683,
-0.1277032644,
0.0360777937,
-0.2658692598,
0.00109128,
0.1006582007,
0.1081224307,
-0.1107575521,
-0.2436734736,
-0.2003214359,
0.0338806435,
-0.0694766715,
0.0505347699,
0.0993649513,
0.2018514872,
0.2790077031,
0.3210913241,
-0.1651395261,
0.0207875725,
-0.0432005599,
-0.1567286253,
-0.0297005698,
0.1557582319,
-0.189579457,
-0.1727979034,
-0.1457662731,
-0.2252675295,
0.0560465865,
0.2262821794,
-0.2934701443,
0.0704142228,
-0.2920824289,
0.2486936599,
0.1028761342,
-0.0648102537,
0.202364549,
0.2036436796,
-0.1215250567,
-0.2953962088,
0.1192035004,
-0.0661068559,
0.2310603559,
-0.141550824,
0.2451856136,
0.2159565091,
-0.4761734307,
0.0169275086,
0.1729526222,
0.2636411488,
-0.0949213132,
-0.0716294795,
0.0844311044,
-0.1926233172,
-0.1709378511,
0.1019343287,
0.1432536095,
-0.21985434,
-0.2468984723,
-0.1720296443,
0.2358918786,
0.0505826175,
0.1664778292,
-0.3376272321,
-0.0937113464,
-0.0191646926,
0.0847072154,
0.0170153454,
-0.3435070217,
-0.1635674536,
-0.4360638261,
-0.1005596146,
-0.0045318953,
0.2611822784,
0.0102104377,
-0.0067828866,
-0.0073438757,
-0.2149258405,
0.1653945893,
0.0191702452,
-0.1370357573,
0.2273194045,
0.3431299925,
0.0024915722,
0.0901403576,
0.0278123375,
-0.3589978516,
-0.0752972737,
-0.5677214861,
-0.0894886106,
-0.1092192382,
-0.0865556076,
-0.1470210701,
-0.0260540359,
0.1151372716,
0.1055311114,
0.1590503454,
0.0149064008,
-0.055512093,
0.028620299,
-0.1817696542,
-0.2387735844,
-0.2334938496,
0.1872779429,
-0.2748403549,
0.1702752113,
-0.3251534104,
-0.0579887405,
0.1258346736,
0.2945931256,
0.3319773972,
-0.2358253747,
0.054921478,
0.5029608607,
0.1028287709,
-0.1955350637,
0.1301609278,
0.2393957227,
0.2222971171,
0.2265912741,
-0.0206646118,
0.0178151149,
-0.0860928595,
0.0277852267,
-0.0366938822,
0.5197253823,
-0.1242089048,
0.0951521099,
0.1264326721,
0.0772211403,
0.1951890588,
-0.2844772935,
0.0635278374,
-0.2143609524,
0.1527556479,
-0.0160785969,
0.3517082334,
-0.1698877811,
-0.4633815885,
0.241739586,
0.5189926028,
-0.0235862546,
-0.1254297495,
0.0866568312,
0.1243805811,
0.1088788658,
0.067982167,
-0.0598792993,
0.2594279647,
0.2369303256,
-0.3302018046,
0.167219013,
0.2142619342,
-0.1110283062,
0.403808713,
0.2749055624,
-0.3918888271,
0.123985827,
0.2421784401,
0.2290454209,
-0.1030397043,
-0.0795378461,
0.3744899333,
0.061518874,
-0.0857164413,
0.2430693954,
-0.115616262,
-0.2369739562,
-0.209985584,
-0.3497955799,
-0.2407313734,
-0.1152426973,
0.1840033233,
0.1039342731,
-0.0843765661,
0.528783977,
0.3818038702,
0.1957977861,
-0.3022129536,
0.251601547,
-0.4906474948,
0.0478497259,
-0.1930364072,
0.1969322264,
0.0936819091,
-0.3598352969,
0.1608750224,
-0.2226646543,
-0.1219842508,
-0.5356273651,
-0.5556455255,
0.0864238068,
-0.2615892887,
0.2382650077,
0.1416539997,
0.0404229723,
-0.4078267813,
-0.3700217009,
0.2249289304,
0.1187511683,
-0.2064422369,
0.2014658153,
-0.1614038497,
-0.335888803,
-0.1385357678,
-0.3677569628,
-0.080664359,
-0.0821336731,
0.3650188744,
-0.1025463343,
0.228974551,
0.3289300203,
-0.1298049539,
-0.2909533381,
0.0979060605,
0.1153638586,
-0.251889497,
-0.1769761741,
0.0944933966,
-0.1645527482,
-0.2252820134,
0.02619965,
-0.048145812,
0.2118772715,
-0.1297398359,
-0.3867567778,
-0.23605977,
0.0413243771,
0.1241029277,
0.1693953574,
0.077617906,
0.2897634208,
0.3109038472,
-0.1027288139,
-0.1665300131,
-0.4273247421,
-0.0180261377,
0.3021514416,
0.4634048045,
-0.3625275493,
0.1608625799,
-0.1240990907,
0.0023474186,
0.0094806645,
0.3506607711,
0.1515037715,
-0.0052683195,
0.0718127638,
-0.2306974828,
-0.1277490109,
0.0316177346,
-0.2316506058,
0.0585433096,
0.2887188792,
-0.294200778,
0.1125950068,
-0.1488188207,
0.1061367691,
-0.5178530216,
-0.3060031235,
-0.1865828186,
-0.160848543,
0.3870385289,
0.2780505419,
0.012462277,
-0.1357076466,
-0.0561649054,
0.2939872146,
0.0258513503,
0.0657458156,
-0.0785290673,
-0.3588758111,
-0.0103737265,
-0.1426103413,
0.422932595,
-0.2860358357,
0.2489162683,
0.1301641464,
0.0998185501,
0.0053231018,
0.2126433551,
0.7972444892,
0.0315617323,
-0.4688004553,
0.302439332,
-0.1197976395,
-0.0319883898,
-0.32829988,
-0.0313431658,
-0.0186174903,
0.437977165,
0.1388610899,
-0.4520823359,
-0.0188289285,
0.2419734895,
0.2381821722,
-0.2459292561,
-0.074821569,
-0.2716242373,
-0.0631896928,
-0.0122863557,
-0.2078570575,
-0.0740655512,
0.2199373692,
0.113617152,
0.1106212586,
-0.0790067017,
-0.2644731104,
0.2604279816,
0.2837175131,
0.3572390079,
-0.2024771869,
0.437782824,
-0.224340871,
0.3011211157,
0.4790894985,
0.3902092278,
0.0053430819,
-0.4359076023,
0.0998991504,
-0.5236309171,
0.2256714404,
0.177844584,
0.1896972209,
0.3772082627,
-0.0664846823,
0.0849997103,
0.1225889325,
-0.104095608,
0.2761091888,
-0.0157690104,
-0.3889243007,
-0.3084338605,
0.2473216504,
-0.2022996545,
-0.1692667454,
0.4423814714,
0.3534352779,
-0.049697794,
0.9052365422,
-0.23526977,
0.9310003519,
0.0504797027,
-0.2425623834,
0.2710794508,
-0.4328080714,
0.2700551748,
-0.1203609705,
0.2359977365,
-0.5181067586,
-0.1577053964,
0.0900911167,
0.0877592117,
0.2624492645,
0.2051600069,
-0.1191251501,
0.2523733675,
0.043698404,
-0.3519421518,
-0.0200384147,
-0.0201821979,
0.2961990237,
-0.0045860591,
-0.1460127085,
0.0416388363,
0.0230057221,
-0.0264114253,
-0.1382807344,
0.0329402275,
-0.1594154984,
-0.0429602154,
-0.0306768864,
0.0530267693,
-0.1027335748,
-0.036929097,
0.435574919,
-0.4692651033,
-0.0758379921,
0.1702310741,
0.6946984529,
0.0292822178,
-0.1147402599,
0.3861618042,
0.2650388479,
-0.072560139,
0.2786453068,
-0.0025961469,
0.1573778242,
0.028179612,
0.0517747141,
0.102137804,
-0.1830603331,
0.0869922116,
-0.3640324473,
-0.0979759768,
0.3637430072,
-0.2758002877,
0.0110187912,
-0.3319992721,
0.2565335333,
-0.4959950447,
0.123962149,
-0.0158705618,
0.1225644872,
0.2212996781,
-0.031442333,
-0.0600146987,
-0.2707334757,
-0.2629671395,
-0.073470585,
0.1835182458,
0.4372507632,
-0.0157404784,
0.0016239829,
-0.0522298031,
-0.1351684928,
0.0255957916,
-0.2900261283,
-0.0126250368,
0.1309180856,
-0.2370335162,
0.2933890224,
0.8270550966,
0.1849595159,
0.1377265602,
0.2103327215,
-0.3168667257,
0.026810145,
-0.0546114892,
0.290648222,
-0.091551207,
0.4083641171,
0.3413814902,
-0.2920485735,
0.1348320842,
-0.3003430963,
0.1879256517,
-0.2479501516,
0.303907454,
-0.7324174047,
-0.0214158744,
0.0046019973,
-0.2280011326,
0.1704419702,
-0.1775668263,
0.0521031581,
-0.1815687418,
-0.3394848406,
0.1412887424,
0.1097955182,
0.0572007038,
-0.3014431,
0.0226826109,
0.000537607,
-0.1457262635,
-0.2104511559,
0.0725267231,
0.1250723749,
0.0921286121,
-0.236161679,
0.1439383626,
-0.4263331294,
-0.1549978256,
0.1247405186,
0.0279304739,
0.3446722925,
0.0830086023,
-0.3231664896,
0.0120611703,
0.0538546331,
0.0284845736,
-0.3018507659,
-0.0128941974,
0.6438711286,
-0.2483634502,
0.0534958728,
-0.0040789992,
0.2113294601,
0.2914757133,
-0.2818869054,
0.0593402907,
0.2022076249,
0.2397367209,
-0.567116797,
-0.119717896,
0.3210221529,
0.0538231693,
0.0769441724,
0.1798098385,
0.4685710967,
-0.1739064455,
-0.0270178579,
0.1347606182,
0.2508195937,
0.0013564804,
-0.022929864,
0.4606135488,
0.165039137,
0.4246288836,
0.5513445139,
0.2517766356,
-0.2753793597,
0.2397169918,
-0.0021751975,
0.0244708546,
-0.1631890535,
0.0936710984,
0.1272818297,
-0.1404579878,
0.5015010238,
-0.3174087703,
0.0452761538,
0.0731407478,
0.1120059341,
-0.2818336487,
0.046042338,
-0.1867114007,
0.0558692962,
-0.0803974122,
-0.1864292473,
-0.0106482357,
-0.085781984,
-0.1190582961,
0.3817881346,
-0.0304393619,
-0.0718708411,
0.0509204492,
0.3453859389,
0.099413693,
-0.0642895326,
0.0026720995,
-0.2425035387,
0.2131692618,
0.3935344219,
-0.2334592193,
0.2876051068,
0.1720986813,
-0.3992298245,
0.1464208215,
0.267349273,
0.0848378688,
-0.0173958745,
-0.1246391386,
-0.114099592,
-0.0545876063,
-0.0753420368,
0.1728267968,
0.1003947258,
0.3005588353,
0.3896973729,
0.1270169467,
0.0934839472,
-0.0959645361,
0.1593383551,
0.0931778923,
0.0106139733,
-0.4173464179,
0.0477498658,
-0.1416768581,
-0.4048498571,
-0.0838072971,
-0.110524103,
-0.0704644173,
-0.041889932,
-0.006949143,
0.1371657699,
-0.0385466367,
0.2213146091,
0.1282764673,
0.2091664821,
-0.0657712817,
0.3741938174,
0.1207345352,
-0.305418402,
-0.4476357102,
-0.1793344766,
0.1913489848,
0.0721634477,
0.2102836072,
0.4021537006,
0.143010065,
0.3653482795,
-0.1624164581,
-0.0366756432,
0.001270761,
-0.3429919183,
0.3362573087,
-0.5514027476,
-0.0841142982,
-0.0861212909,
0.0953220129,
0.0291713905,
0.1775506288,
0.2629627883,
0.0922372043,
-0.0335221663,
-0.1707147658,
0.0708326846,
0.2319627404,
0.0355931483,
0.3394762874,
0.148320049,
-0.0469811186,
-0.1070332006,
-0.278762877,
0.2217554301,
-0.0301835071,
-0.2635975182,
0.5513608456,
-0.0922337994,
0.1529086679,
0.3110049367,
-0.5364219546,
0.1412920952,
0.5675958395,
0.1173081398,
-0.0587514602,
-0.4865901768,
0.3406098187,
0.3336185515,
0.2185287178,
0.124203302,
0.3331138194,
-0.0943714306,
0.3457241654,
-0.4066906571,
-0.3158182502,
0.4238841236,
-0.2337876707,
0.0034082078,
-0.0463922881,
0.2940777242,
-0.2256067246,
-0.0992402658,
-0.6285580993,
-0.3294949234,
0.3771766722,
-0.287697643,
-0.1582081467,
-0.0120708765,
-0.1471597403,
0.1740896553,
0.0317044854,
0.8797950745,
0.2091995627,
-0.10173475,
0.0753023103,
0.1399415135
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case). | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 26 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case). | [
-0.1161505356,
0.1762668341,
-0.0998141393,
0.2082637399,
-0.117515862,
-0.067944631,
0.2634468973,
0.3842664659,
-0.0682339072,
0.2268134803,
0.0829303637,
0.5433103442,
0.3696924746,
0.374489814,
-0.0723104253,
-0.1654941887,
0.2737470865,
0.0790645778,
0.0742814839,
-0.0737501755,
-0.2772864997,
0.4863911271,
-0.2478753775,
0.1263599247,
-0.0173006803,
-0.0689552799,
-0.4230710268,
-0.0818825662,
-0.0776616186,
-0.1128557324,
0.0236231089,
0.0905775353,
-0.2878525853,
0.2855876684,
-0.0001039611,
-0.2040238082,
-0.1029008701,
0.016638929,
-0.2745752037,
-0.3155653179,
-0.0625000447,
-0.2827523351,
-0.0228265841,
-0.3079061806,
0.0283305757,
-0.0746189207,
-0.1330302209,
0.0362829827,
0.2423204035,
0.109177269,
0.2800573409,
-0.0366080776,
0.3084506392,
0.0872450322,
0.1979925036,
-0.0720163211,
-0.3100848496,
0.0493777134,
0.275647521,
-0.0370132476,
0.1984854043,
0.3345745206,
-0.0073393113,
-0.1663631201,
-0.3395026028,
0.1237379611,
0.1451829672,
-0.2142664641,
0.1994116306,
0.4345284402,
0.140697524,
-0.229367435,
-0.4140453637,
-0.1950009614,
0.0871017352,
0.0065516136,
0.1302559525,
0.2665212154,
0.0974124074,
-0.0211019497,
0.1986638159,
-0.0972030014,
0.087101914,
0.1360362768,
-0.3380749226,
-0.0190095864,
-0.0554935858,
-0.04202988,
-0.3384497464,
-0.1862933785,
0.3455228508,
-0.1355032027,
-0.0522471964,
0.0849867463,
-0.4293118715,
-0.0927634314,
-0.1133905277,
-0.2603659928,
-0.0867137387,
-0.3093693554,
0.209497869,
0.038483683,
-0.1880082786,
0.1611951888,
-0.0983721316,
-0.1684163511,
-0.0119011626,
0.0938895866,
-0.1774171442,
0.0835959762,
0.0318263732,
-0.1086203232,
-0.0003453539,
-0.1978135556,
-0.3115185797,
-0.0807544291,
0.4885975718,
-0.1168295667,
-0.2789550126,
0.2509898543,
-0.0757602379,
-0.0863249674,
-0.1022852063,
0.1180620566,
-0.2399753928,
-0.1147844642,
0.0883718878,
0.1448533684,
-0.1070464924,
-0.2465524673,
-0.2602136433,
0.0047857692,
-0.0428153016,
-0.0045183967,
0.1395770907,
0.1415013373,
0.3251699209,
0.3179630637,
-0.1487002671,
0.0040556244,
0.0178212188,
-0.1341715157,
0.0499025658,
0.1909600794,
-0.1317247301,
-0.073873736,
-0.0367433392,
-0.1831253767,
0.0450733677,
0.251337409,
-0.4002464712,
0.0646225736,
-0.2806537747,
0.2998212576,
0.1551377177,
-0.0261790529,
0.1702262461,
0.2366894037,
0.0158688016,
-0.2360410839,
0.0848966986,
-0.0527100749,
0.2143972069,
-0.1937698573,
0.22608383,
0.1470684409,
-0.4692806602,
-0.0124614025,
0.0516174622,
0.2656969428,
-0.1624744236,
-0.0453695618,
0.0437521078,
-0.1041747779,
-0.101020284,
0.2361855954,
0.1349918693,
-0.1779551208,
-0.2616645992,
-0.132616356,
0.1886616945,
0.0202896614,
0.0040240157,
-0.3284062147,
-0.0587316081,
0.0224262625,
0.050037194,
0.0695556253,
-0.1957745254,
-0.0745369941,
-0.4424241483,
-0.1358467042,
-0.0091457572,
0.2606329918,
0.0382566378,
-0.0517784357,
0.0433983207,
-0.2837475836,
0.216997236,
-0.0322632268,
-0.0847253874,
0.1967955828,
0.3808196783,
-0.0952734351,
0.1505289227,
0.0497955419,
-0.3753676414,
-0.0786412507,
-0.5623027086,
-0.0061643785,
-0.2038078755,
-0.1636136919,
-0.2155459374,
-0.0545330197,
0.100349009,
0.1010088995,
0.2583276629,
-0.0975087509,
-0.081031628,
0.0535620376,
-0.1708596051,
-0.1962126344,
-0.1490837485,
0.1388361007,
-0.262571156,
0.188849166,
-0.2881686687,
-0.0800054967,
0.2341862321,
0.2018252611,
0.3368148804,
-0.1874921024,
-0.0099294083,
0.4728310406,
-0.0242722537,
-0.1281564385,
0.0444731005,
0.1807563454,
0.1571734697,
0.1908341646,
-0.0373196751,
0.0646163225,
-0.0344994105,
0.0136086484,
0.0323697291,
0.5313248634,
-0.1247313172,
0.1122451499,
0.0888451189,
0.1604669392,
0.188558355,
-0.281727016,
0.074578166,
-0.2457058579,
0.0861222371,
-0.0327708349,
0.2651014626,
-0.1466148645,
-0.3386495113,
0.3058727682,
0.5816290975,
-0.0018498363,
0.021254722,
0.0500007086,
0.0603066981,
0.0839022249,
0.1256485432,
-0.0095961373,
0.1865544319,
0.2287824154,
-0.2318186909,
0.127583459,
0.2199300081,
-0.1522220522,
0.4072504044,
0.1439539045,
-0.2241385728,
0.1113509685,
0.1973221749,
0.134993583,
-0.193662867,
0.0189080425,
0.3170987964,
0.1271078885,
-0.1464080662,
0.2463553697,
-0.1314216554,
-0.1791523397,
-0.0768753737,
-0.3673416376,
-0.2598343492,
-0.1653420627,
0.2216367275,
0.0701691955,
-0.1488023549,
0.4860240519,
0.4406915307,
0.2451149076,
-0.2136398107,
0.3129407763,
-0.4735951126,
-0.0562950559,
-0.1763980538,
0.2618391812,
0.0407952815,
-0.2819299102,
0.1080022156,
-0.2482580692,
-0.0768496916,
-0.4382807314,
-0.513191402,
0.0558779761,
-0.3506878912,
0.2944268584,
0.0944472477,
0.160281077,
-0.4880571961,
-0.2957557738,
0.173408553,
0.0852152333,
-0.1876088232,
0.1554163992,
-0.1047737524,
-0.2130278796,
-0.1804383844,
-0.348551482,
-0.2095427513,
-0.1127630919,
0.3611765206,
-0.1796553284,
0.249494344,
0.3568105996,
-0.1382676661,
-0.1979293227,
0.0803250298,
0.1736747921,
-0.3752736151,
-0.2353875637,
0.1732623428,
-0.2401869446,
-0.3293791115,
0.0034919386,
-0.0258795898,
0.3786913753,
-0.1570197195,
-0.3531202972,
-0.140611127,
0.0295630228,
0.0246117171,
0.1031479985,
0.1047216281,
0.2619678974,
0.2166335583,
-0.1548823416,
-0.2434277236,
-0.1901933402,
0.0001962214,
0.2206795663,
0.3922326863,
-0.3820078671,
0.1994882822,
-0.0549262427,
-0.0112124318,
-0.0499066897,
0.3765995204,
0.1901937276,
0.0389415547,
0.1284619123,
-0.2115111947,
-0.1767995209,
0.0248638522,
-0.237577185,
0.0492531918,
0.3221207261,
-0.300763607,
0.0745563209,
-0.1179613397,
0.0055833724,
-0.6239778399,
-0.3436446488,
-0.1725700647,
-0.0837450027,
0.315600276,
0.356297642,
0.0086775161,
-0.0942702368,
-0.0239870939,
0.2829868793,
0.0585684665,
0.038872499,
-0.1316912323,
-0.330976218,
-0.0459598415,
-0.2426130623,
0.4055451751,
-0.3332295716,
0.1591718197,
0.087447986,
0.0676396862,
-0.0251514055,
0.0973566398,
0.7164915204,
0.089378275,
-0.424639374,
0.2610907555,
-0.1263484657,
-0.1448194981,
-0.2815339863,
-0.0738063827,
0.0264155138,
0.3970377743,
0.0751614124,
-0.4663992226,
-0.0449186713,
0.2245634794,
0.1660794467,
-0.2599889636,
-0.0942963213,
-0.3293537199,
-0.0998536274,
-0.0319783911,
-0.2078591734,
-0.0532296598,
0.2163886279,
0.0508758947,
0.0276737642,
-0.1040849611,
-0.3228851259,
0.2385377586,
0.3469390869,
0.3414718211,
-0.1228845268,
0.4165399373,
-0.2262595445,
0.2684841156,
0.4010187984,
0.4134812653,
0.0292402022,
-0.3360221684,
0.0764673278,
-0.5280937552,
0.2640614808,
0.1752445251,
0.0467530675,
0.3676151633,
-0.1191592366,
0.0737230927,
0.0886152834,
-0.0519236065,
0.2587983012,
0.017304061,
-0.365724951,
-0.2438224554,
0.3588811755,
-0.2141179144,
-0.2181984335,
0.4823049307,
0.3102605641,
-0.1193504781,
0.8210312724,
-0.1455318779,
0.8783848286,
0.0601361915,
-0.18355079,
0.3386192024,
-0.3682381213,
0.2264683992,
-0.0218315721,
0.168886438,
-0.5070125461,
-0.1508196592,
0.1243946627,
0.1321375221,
0.2759355009,
0.273601681,
-0.1213440597,
0.1601071507,
-0.0061409683,
-0.3218987286,
-0.0465408936,
0.0142211067,
0.228878811,
-0.0566472709,
-0.2142933607,
0.1553014368,
-0.0027067657,
-0.0704436973,
-0.1039485335,
0.0400512628,
-0.2087172866,
-0.0898066685,
0.0517958477,
0.0843140781,
-0.1312540323,
0.0137076182,
0.3024519682,
-0.5209813118,
-0.0870154724,
0.0605053864,
0.6082133651,
0.078201443,
-0.1257760972,
0.3514012396,
0.1894428432,
-0.0254022945,
0.2188750356,
0.0366215967,
0.1707042307,
0.0009191118,
-0.0007781894,
0.1060130745,
-0.1159548908,
0.1172344089,
-0.2481515259,
-0.0647822097,
0.2118125707,
-0.3153561652,
-0.0132177919,
-0.2606682181,
0.2572786808,
-0.4795153141,
0.1931931525,
0.0207718983,
0.0209551118,
0.2562416196,
0.0272164773,
-0.1116138026,
-0.262662679,
-0.1120034978,
-0.0281983875,
0.2058794498,
0.4759533405,
-0.0203770362,
0.0013228194,
-0.1412914395,
-0.0495781787,
0.1485661119,
-0.2953934968,
-0.0106868204,
0.1053983271,
-0.200446412,
0.2003775537,
0.7700163722,
0.1651265472,
0.1686737239,
0.1945604533,
-0.3337332606,
-0.0354193412,
0.0722941905,
0.199398309,
-0.0537616424,
0.334562093,
0.2656873167,
-0.2807099223,
0.1656959802,
-0.4030259848,
0.2027240396,
-0.2176814973,
0.3391772509,
-0.7107682824,
-0.0817358419,
0.0881565064,
-0.176790759,
0.248184368,
-0.1367971152,
0.0268989354,
-0.302357465,
-0.327106446,
0.0988947973,
0.070063822,
0.0756753236,
-0.2830738425,
-0.0387546383,
-0.0697889104,
-0.107119374,
-0.1096252128,
0.0174166504,
0.1223751679,
0.1525789052,
-0.1841683388,
0.0749135241,
-0.301007092,
-0.172145769,
0.082591176,
-0.0309778042,
0.255148083,
0.1021787897,
-0.2990248501,
0.0326383188,
0.091518119,
0.0304191131,
-0.3581733108,
0.002903634,
0.5847670436,
-0.275557369,
0.0082861166,
-0.0298577119,
0.1968152076,
0.2168903649,
-0.2480537295,
0.0071882759,
0.171753943,
0.3385327458,
-0.5861024261,
-0.0802973956,
0.2679604888,
0.0147023387,
0.1478295922,
0.1420699507,
0.3247986436,
-0.1462526321,
0.0335585102,
0.1682349741,
0.217318356,
0.0522199646,
0.0123626757,
0.3951948285,
0.1159706563,
0.4019332528,
0.5160575509,
0.2544071376,
-0.2518053651,
0.2612201571,
-0.0861505121,
0.0967186391,
-0.1473428607,
0.0412573367,
0.1256573647,
-0.0512853041,
0.3847829103,
-0.2725307941,
-0.0043176794,
0.0828023851,
0.115315862,
-0.222084552,
0.0552167334,
-0.2410238534,
0.0099377306,
-0.0476253927,
-0.2435318679,
0.0140957357,
-0.1638172865,
-0.0923812911,
0.3353588283,
-0.0926393047,
-0.0753266588,
-0.0073744385,
0.2863304913,
0.1393615305,
-0.0241412707,
-0.0279774331,
-0.2495367378,
0.2343773097,
0.4089653492,
-0.2049571574,
0.2477422357,
0.1399078369,
-0.2872046232,
0.0895430222,
0.3408016562,
0.0796401426,
0.0272262674,
-0.1079759151,
-0.0708974004,
-0.057110507,
-0.126066193,
0.1561549902,
0.1017086506,
0.3310680687,
0.3840503693,
0.2008051127,
0.1834612936,
-0.1602077782,
0.1308434755,
0.164235577,
0.0217697006,
-0.2868916392,
-0.0714143738,
-0.1764991581,
-0.358815223,
-0.1138741747,
-0.2090851516,
-0.1937678605,
-0.0075024287,
0.0365419611,
0.0693736821,
-0.0422917567,
0.0943745971,
0.1708501428,
0.1803199947,
0.0768340528,
0.2496046871,
0.1989446729,
-0.3392300904,
-0.4411240518,
-0.2963802516,
0.1642396152,
0.0240145102,
0.2551873028,
0.2840351462,
0.1674188226,
0.3084024489,
-0.0916727185,
0.0569804609,
-0.0089162141,
-0.3167069256,
0.2572236657,
-0.5916234851,
-0.067103833,
-0.0615669303,
0.0857263878,
0.0266743023,
0.162269637,
0.2636268139,
0.0167618748,
0.0380546115,
-0.1896513551,
-0.01036241,
0.1949939728,
-0.0067015681,
0.3379686177,
0.1089947969,
-0.1020414829,
-0.1402897239,
-0.2433788329,
0.1891248375,
-0.0636318699,
-0.1865039915,
0.5584608316,
0.0354349017,
0.2717224956,
0.3334321678,
-0.4609058499,
0.1151877716,
0.5874646902,
0.121675998,
-0.1004333049,
-0.4577451944,
0.3313204646,
0.4072268009,
0.1447761357,
0.0319882371,
0.3380997181,
-0.1191733405,
0.3695591688,
-0.3933903277,
-0.3590605259,
0.4552843869,
-0.2834562361,
-0.0419328995,
-0.0582197607,
0.3202482462,
-0.2162524015,
-0.1223172545,
-0.5871608853,
-0.2459759563,
0.3565891087,
-0.2592827678,
-0.14364779,
0.0462297723,
-0.057450518,
0.2173639834,
-0.0163005404,
0.7663817406,
0.246430248,
-0.1427810043,
0.0277256686,
0.058896184
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 81 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new. | [
-0.1998205185,
0.2370988578,
-0.0784825236,
0.0383832976,
-0.0463750511,
-0.1121220514,
0.261579901,
0.4792057276,
-0.0928937942,
0.1985219419,
0.0985915437,
0.5298961401,
0.2929408848,
0.4118284881,
-0.169930324,
-0.23902376,
0.3220477998,
0.0963060707,
0.0373929888,
-0.0297699124,
-0.2773752511,
0.4006696641,
-0.200198397,
0.2162718475,
0.0107197464,
-0.1585648656,
-0.3610792756,
-0.0646193996,
-0.2465390861,
-0.2597967684,
-0.043891266,
0.133666262,
-0.1141779274,
0.2389492542,
-0.0001032298,
-0.1938910335,
-0.0162153505,
0.0479468778,
-0.3473055661,
-0.2557960451,
-0.0139475586,
-0.2987169027,
0.1325174272,
-0.2405081838,
0.0040544774,
-0.134462297,
-0.1044184193,
0.0730474442,
0.2347443104,
0.1115612164,
0.2914757133,
-0.0630372316,
0.2146610767,
-0.0482491814,
0.0782303587,
-0.0539085232,
-0.3029433191,
0.0646093935,
0.2851050198,
-0.0814452842,
0.1112827063,
0.3693178892,
0.0293924417,
-0.1277955025,
-0.1931435019,
0.1135857627,
0.2679796517,
-0.1832536608,
0.1381150484,
0.3778244555,
0.1863678694,
-0.2622228861,
-0.5149416327,
-0.185047552,
0.0676456541,
-0.0908424109,
0.0705581009,
0.2291251421,
0.068120636,
-0.0202272534,
0.2432045788,
-0.1368509978,
0.0494814217,
0.0431371927,
-0.4447058141,
0.0612423867,
-0.0346468501,
-0.0955074281,
-0.2979379892,
-0.2101939321,
0.3986323178,
-0.0265998933,
-0.0113748899,
0.0147636067,
-0.3054992557,
-0.1837223023,
-0.0489161536,
-0.2401827276,
-0.0670297146,
-0.2346080542,
0.1066427156,
-0.0033505124,
-0.2863813639,
0.0689620376,
-0.0158906691,
-0.2115444839,
0.0326232538,
0.0392361246,
-0.0905866548,
0.1374675035,
0.1984360814,
-0.1160759628,
-0.0263007451,
-0.2250663936,
-0.3707792461,
0.0145770721,
0.5224701762,
-0.1758760065,
-0.2654772401,
0.1506182104,
0.004803055,
0.0059804283,
-0.1979893446,
0.1639261395,
-0.1976360083,
0.0646768883,
0.1189693287,
0.1277625859,
-0.094069384,
-0.2020079792,
-0.2299276143,
-0.0103678778,
-0.0435888842,
-0.0299735274,
0.0607456192,
0.1464208066,
0.2042163461,
0.3688278496,
-0.2108076066,
0.0354425684,
0.0145673528,
-0.0247553028,
0.0658485889,
0.1762519628,
-0.2109217644,
-0.0627135038,
0.0830810145,
-0.1532115936,
-0.0143368393,
0.3369724751,
-0.2739043832,
0.0266774558,
-0.2911611199,
0.2905388772,
0.1507816464,
-0.0562749505,
0.2711255252,
0.3130825758,
-0.0827211365,
-0.2508015335,
0.0129883299,
-0.0867593661,
0.1503081918,
-0.0984965339,
0.1103978083,
0.205416888,
-0.5166162252,
-0.0188168157,
0.128258124,
0.2234387249,
-0.0775576532,
0.0189196728,
0.002997257,
-0.2300250381,
-0.0733155459,
0.1773726493,
0.1012827083,
-0.1410938203,
-0.1837271303,
-0.0839698315,
0.1371008754,
-0.0739221573,
0.0763825551,
-0.2898015976,
-0.0671227649,
-0.1025742367,
0.0498885773,
-0.0017456568,
-0.1700807661,
0.0536477044,
-0.4612780511,
-0.242309913,
-0.002864236,
0.2199138999,
0.1194805503,
0.0237898026,
-0.0390981846,
-0.1433980614,
0.2353885919,
-0.0518856347,
-0.0870458335,
0.1132153049,
0.4571614563,
-0.20647268,
0.0875993893,
0.1114552543,
-0.2422717512,
-0.1071833894,
-0.4896310866,
0.0463796295,
-0.0993774459,
-0.2356159836,
-0.3022111356,
-0.1086319312,
0.1151669472,
0.0907615721,
0.2523512542,
-0.0306421518,
-0.1306033432,
0.0369820856,
-0.2288012058,
-0.1430545449,
-0.1339362413,
0.191481337,
-0.2582805455,
0.0875584185,
-0.2627542019,
-0.0879357159,
0.2368009537,
0.1528705657,
0.3169937134,
-0.1752403229,
0.0466139801,
0.4932323098,
-0.0330643803,
-0.1096139997,
0.0631089434,
0.2489835024,
0.1788587421,
0.289247781,
-0.0493831001,
0.0978313684,
-0.0827014446,
0.1208643839,
-0.1750694066,
0.5863132477,
-0.0899432302,
0.1096534804,
0.174136892,
0.2030380666,
0.125625208,
-0.2711809278,
-0.0061890483,
-0.2653928697,
-0.0562187061,
-0.0294115972,
0.2119825929,
-0.1210849434,
-0.439443469,
0.3950172067,
0.6058949828,
0.0087818149,
0.0451276973,
0.1463063359,
0.0000689646,
0.0329016559,
0.1618921608,
0.031174941,
0.1716321111,
0.2589486837,
-0.139135018,
0.1627727598,
0.2002022117,
-0.1636454612,
0.4780522585,
0.0893876106,
-0.1905719042,
0.0034321614,
0.2120599151,
0.1565835029,
-0.1620077491,
0.0520750917,
0.2680381835,
0.1876590103,
-0.1235785708,
0.1731393486,
-0.1238359064,
-0.1179231852,
-0.0965239331,
-0.2809499204,
-0.1824324876,
-0.2336389124,
0.2391782254,
0.1003155261,
-0.1130850315,
0.4769405127,
0.4171312153,
0.2937075794,
-0.2029822022,
0.4174236655,
-0.4850844443,
-0.1683722138,
-0.0915306881,
0.2957091033,
0.153681159,
-0.2638557851,
0.0690223575,
-0.2572189271,
-0.1692383587,
-0.455270946,
-0.5544627905,
0.0483505614,
-0.3250362873,
0.1949595362,
0.1483696252,
0.2336512655,
-0.3876566291,
-0.2195435911,
0.1626629233,
0.0392103568,
-0.2732243836,
0.1251773387,
-0.2401102185,
-0.0609774068,
-0.2087866515,
-0.3720906079,
-0.1433979571,
-0.1945352703,
0.3988312483,
-0.2503168881,
0.1881338805,
0.3150852025,
-0.0868957192,
-0.271187216,
0.116486907,
0.0950997174,
-0.3267279267,
-0.2162289321,
0.1459926218,
-0.2399430275,
-0.3150312603,
0.0107055558,
0.0460242108,
0.3279111087,
-0.191835165,
-0.3293859661,
-0.2259616107,
-0.0589472093,
0.0369402543,
0.0848520324,
0.0701707527,
0.3200859427,
0.3417242169,
-0.2293599099,
-0.0971225351,
-0.2173163891,
-0.0286905486,
0.2196537554,
0.2919327319,
-0.3193594813,
0.2304579467,
0.0461046584,
0.1900873631,
-0.0341216847,
0.3429833055,
0.0846757218,
0.1143716276,
0.1455873549,
-0.291710645,
-0.0973381326,
0.0946827009,
-0.2263890803,
0.1175333858,
0.3279747367,
-0.3075986803,
0.0380407795,
-0.0810986608,
0.0954173356,
-0.5904294252,
-0.3252350986,
-0.1026939079,
-0.1993817687,
0.3439449966,
0.2739743888,
0.0796844959,
-0.1235810965,
0.0345453247,
0.2990583181,
0.091856055,
0.1772959381,
-0.1313043684,
-0.2711345851,
0.0745551214,
-0.2933966219,
0.3953533173,
-0.3127342463,
0.1619182378,
0.0516911894,
-0.0793588087,
-0.0712642446,
0.0740109608,
0.6153530478,
0.0614989251,
-0.4565382004,
0.3225724101,
-0.1085798666,
-0.2067983299,
-0.289060235,
-0.1432073712,
0.021136865,
0.351129055,
0.0572800823,
-0.4595963955,
-0.1402374953,
0.1942500174,
0.1017366573,
-0.1775458008,
0.0438373238,
-0.3760179281,
-0.1074062511,
-0.0780363157,
-0.0936284959,
-0.0196919423,
0.1764768064,
-0.12322779,
0.0391971432,
-0.1551086307,
-0.3302519619,
0.183695972,
0.3765234053,
0.3589832187,
-0.1121016592,
0.3146762252,
-0.1657027453,
0.2556402683,
0.4736274481,
0.3727113008,
0.0533514917,
-0.3569555283,
0.1924983859,
-0.4365504086,
0.2218942791,
0.3172607422,
0.0903326571,
0.3283293247,
-0.1119320691,
0.1187959909,
0.012525199,
-0.0400751233,
0.2129875273,
-0.0151700201,
-0.4101052284,
-0.228828907,
0.3355228901,
-0.1092698053,
-0.2688197494,
0.4390215576,
0.3364777863,
-0.0688337013,
0.8159006834,
-0.1240833104,
0.9092483521,
-0.1446987092,
-0.1250178814,
0.2554860711,
-0.3581863344,
0.3084590137,
-0.0332340486,
0.1777001321,
-0.5289087892,
-0.1841508001,
0.0733638555,
0.1555419862,
0.2672462463,
0.1981143802,
-0.2347009927,
0.1544677615,
-0.0789441094,
-0.3356941044,
0.0344180912,
0.0252418872,
0.0935731754,
-0.061260473,
-0.296014607,
0.1612891853,
-0.0854960606,
-0.0813371167,
-0.0853748322,
-0.0233146474,
-0.2200135142,
-0.0573144332,
0.0215340164,
-0.0000658041,
-0.136516124,
-0.0945498794,
0.2825743258,
-0.512003243,
-0.0690532476,
0.0682618544,
0.6774793267,
0.0277450141,
-0.0988021195,
0.3276601136,
0.073459506,
0.0307511855,
0.3182328343,
0.0702819452,
0.1622716337,
-0.0411602668,
0.0551521964,
0.1695881486,
-0.2065602094,
0.1165850461,
-0.3211285472,
-0.02283464,
0.1962859929,
-0.2507761717,
-0.008791144,
-0.2004925609,
0.2278426439,
-0.4297380745,
0.2021623403,
-0.0650750324,
0.0504206493,
0.1660928875,
0.0895478129,
-0.1095055491,
-0.2065092772,
-0.1189061776,
-0.0208332334,
0.1520659477,
0.4163092375,
-0.0227495339,
0.0417736806,
-0.1717629731,
-0.0063884328,
0.2911376953,
-0.2668014467,
0.0146431392,
0.0354921259,
-0.2377229184,
0.2039133459,
0.7473661304,
0.1197987646,
0.2084097117,
0.062602438,
-0.2800326347,
-0.040832743,
0.0909108445,
0.0497583002,
-0.0081183827,
0.3224799037,
0.3276510239,
-0.3232918084,
0.0238393676,
-0.4280058444,
0.2070728391,
-0.1351851225,
0.3182056844,
-0.7495480776,
-0.0851217359,
-0.0682068318,
-0.1706186235,
0.2382205129,
-0.1276085079,
-0.0252139065,
-0.2964405417,
-0.3112504482,
0.0940103382,
0.0766207948,
0.0730196387,
-0.2322117388,
0.0822480395,
-0.1797368973,
-0.0912313461,
-0.0401992276,
-0.0150065152,
0.0942535773,
0.1980194747,
-0.1509822756,
0.10936445,
-0.2510365546,
-0.2284488678,
0.1524770409,
0.0658798963,
0.213669017,
0.2256599069,
-0.3481064141,
0.0255610365,
0.1858640313,
0.1474058628,
-0.2377627492,
0.0500024408,
0.4743090272,
-0.188931495,
-0.0206108596,
-0.0473387465,
0.2175571322,
0.2391260862,
-0.1919049919,
0.0256073363,
0.1088538393,
0.3555814326,
-0.5912421346,
-0.0421551988,
0.1354893148,
0.0769303516,
0.1445989907,
0.1717709005,
0.3766643107,
-0.1541655809,
0.1885599494,
0.2204148918,
0.1299224198,
-0.0531508476,
0.0984450132,
0.4626913965,
0.1120657176,
0.3646607101,
0.4940544665,
0.1905432343,
-0.2210162729,
0.1996491253,
-0.0223082434,
0.1676296294,
-0.0733641535,
0.1582373828,
0.089214392,
-0.0783274248,
0.3205741644,
-0.2317974567,
0.0214402582,
0.012837939,
0.2271336168,
-0.155570522,
0.0169996247,
-0.3525318205,
0.0659774095,
-0.0988090634,
-0.2362078726,
-0.059747152,
-0.1723642498,
-0.0622067004,
0.262540251,
-0.08567103,
-0.135876447,
0.0080960011,
0.3445335925,
0.1302931905,
0.0637298226,
-0.1166067123,
-0.3045167625,
0.226176247,
0.4951324761,
-0.2086150795,
0.259177804,
0.1189088523,
-0.3167615235,
0.1280453354,
0.4280245602,
0.1561337262,
0.0864053667,
-0.1789672524,
0.047957994,
-0.1423756778,
-0.1084140539,
0.1473009139,
-0.0505627953,
0.4315102696,
0.4403366446,
0.1342498213,
0.1866895556,
-0.1280893236,
0.1956934035,
-0.023546394,
-0.0012820084,
-0.2871339619,
-0.05688278,
-0.0667007789,
-0.3671123087,
-0.0561173633,
-0.164641723,
-0.2372013479,
-0.019264929,
0.030931823,
0.1439068615,
-0.0232549999,
0.0548398234,
0.1672953665,
0.2927236259,
0.031105537,
0.2463089973,
0.2454237193,
-0.3015081882,
-0.4739496708,
-0.2566633523,
0.1369030774,
0.0816465691,
0.2683539093,
0.2701211572,
0.1080167815,
0.3214280307,
0.0039978297,
0.0156760756,
-0.1257499158,
-0.3043623567,
0.2747913301,
-0.6239225864,
-0.0515153259,
0.0825923234,
0.0182339828,
-0.012357872,
0.0893899873,
0.3053197265,
-0.0036315322,
0.077208668,
-0.1499097645,
0.0242473241,
0.1523926407,
0.1220250428,
0.325597018,
0.2438425571,
-0.1543174833,
-0.0865415484,
-0.3702514768,
0.1052551419,
-0.0885208547,
-0.3041943312,
0.5256761312,
0.0099361641,
0.3350537717,
0.3159710765,
-0.5402690172,
0.0571235605,
0.5804581642,
0.1355074644,
-0.07790564,
-0.5299730897,
0.2897223532,
0.4175796807,
0.1220326722,
0.0114040058,
0.3557329476,
-0.0348425359,
0.343646735,
-0.4622552097,
-0.3549788594,
0.4449535608,
-0.2065573484,
-0.086689122,
0.0210478622,
0.2236780226,
-0.1845294535,
-0.1018834263,
-0.6000642776,
-0.1756213009,
0.2635993958,
-0.1945212334,
-0.2237081081,
-0.0356881917,
-0.0631185323,
0.2128368765,
-0.1604551375,
0.8082326055,
0.2524476349,
-0.1558466554,
-0.1281211823,
-0.0375359878
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets.
There is always the tension between:
- preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset),
- and on the other hand performing some king of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure).
- Another advantage: datasets can easily be interchanged (or joined) to be used by the same model
Recently, in the BigScience BioMedical hackathon, they adopted a different approach:
- they implement a "source" config, respecting the original structure as much as possible
- they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 161 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets.
There is always the tension between:
- preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset),
- and on the other hand performing some king of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure).
- Another advantage: datasets can easily be interchanged (or joined) to be used by the same model
Recently, in the BigScience BioMedical hackathon, they adopted a different approach:
- they implement a "source" config, respecting the original structure as much as possible
- they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users. | [
-0.244081974,
0.2624767125,
-0.0215143748,
0.2153030038,
-0.2133324444,
-0.063490659,
0.3279465735,
0.3787684143,
0.0790012851,
0.2448695004,
0.0920588821,
0.5058540702,
0.2577792108,
0.5256162882,
-0.0657963902,
-0.0864537507,
0.3222070932,
-0.0016847457,
0.1259201318,
-0.0332097113,
-0.2707951963,
0.3219376504,
-0.1709600538,
0.1043871194,
0.1428175718,
-0.0399449766,
-0.3417810202,
-0.1384898275,
0.0216678437,
-0.0556600206,
0.0215739924,
0.1429429948,
-0.2502580881,
0.3122738898,
-0.0001125878,
-0.0990846828,
-0.1170588955,
0.0247351546,
-0.2829250097,
-0.2612345815,
-0.1522005051,
-0.3130830228,
-0.085845843,
-0.2250950634,
0.1091558784,
0.0708219111,
-0.0530223586,
-0.2014799416,
0.1056972742,
-0.0962442234,
0.162457943,
0.0244533699,
0.2243648767,
0.1887820959,
0.0876516923,
0.145497486,
-0.2560757697,
0.1021974981,
0.4588272274,
0.1188215017,
0.2518517971,
0.3702383041,
-0.0305448752,
-0.09068387,
-0.1424355805,
0.015196505,
0.0558176711,
-0.1968244016,
0.0462578312,
0.6054117084,
0.1472444236,
-0.209905833,
-0.5367063284,
-0.3190191388,
-0.0014907297,
-0.0820894614,
0.0620465502,
0.323435396,
0.1951521933,
0.0149360662,
0.1827814877,
-0.20195283,
0.1132201478,
0.151278764,
-0.3370800912,
-0.0148808975,
0.0393491425,
0.0231861435,
-0.5221725702,
-0.0330890603,
0.3732990026,
-0.218105346,
0.0222746283,
-0.1328948289,
-0.4370523095,
-0.1661534756,
-0.2469144762,
-0.2830930054,
0.0610680878,
-0.2374979556,
0.3128404617,
0.0309235565,
-0.1029569283,
0.198066771,
0.0239308625,
-0.207693696,
-0.1510951519,
0.1526000649,
-0.0644418001,
-0.0032952498,
-0.0399883576,
-0.0394967757,
0.0782404542,
-0.0989846587,
-0.4013640583,
-0.0899131596,
0.4437893629,
-0.10644117,
-0.2329270393,
0.2277949452,
-0.0672708526,
-0.0859648958,
-0.0650585815,
-0.0723330081,
-0.1935846657,
0.0345986336,
0.0117351301,
0.2197093219,
-0.0824294537,
-0.3044466674,
-0.1689798832,
-0.1660200804,
-0.011042973,
0.1442848444,
0.1084907874,
0.1600777656,
0.2555479109,
0.2959354818,
-0.184920609,
-0.0028741455,
0.1007332504,
-0.1201732531,
0.0152362473,
0.1522574276,
-0.1873694509,
-0.1677159071,
-0.1700241417,
-0.0772602409,
-0.1046850607,
0.2922754586,
-0.4605207145,
-0.0469591804,
-0.2382238954,
0.200414747,
0.0823912993,
0.0005815596,
0.0130726798,
0.3374343514,
-0.0397489443,
-0.3498173058,
0.0668698102,
-0.1071002483,
0.1021263227,
-0.1538417488,
0.2124991715,
0.1842785031,
-0.4019438624,
-0.0674873441,
0.1411878467,
0.4048882425,
-0.1980141401,
0.0258527137,
-0.1218426749,
0.0126704387,
-0.097204417,
0.1342114359,
0.2913089097,
-0.219724372,
-0.3691160679,
-0.1694416702,
0.261048466,
0.0484830737,
0.1170949116,
-0.2520833313,
-0.0223156102,
-0.1125092134,
0.030751409,
0.1195440069,
-0.271156311,
-0.123393707,
-0.4409736097,
-0.1863591075,
0.0964934155,
0.3140188456,
0.0981928185,
-0.0477526858,
0.0399079844,
-0.244576782,
0.19993563,
-0.1257564127,
-0.1508779675,
0.1160861999,
0.3408579826,
-0.0973980427,
-0.003909478,
0.1188412607,
-0.5085594058,
-0.0192680527,
-0.4814699292,
-0.183202818,
-0.0466572791,
-0.2196488678,
0.0140987849,
-0.1721493006,
0.0602051429,
0.1311450452,
0.1028436422,
-0.0045623365,
-0.1726895124,
-0.0423714891,
-0.3422117829,
-0.0275919102,
-0.2562107146,
0.2772022486,
-0.3756279647,
0.1617661119,
-0.3018533587,
-0.011002182,
0.2489248365,
0.2705902159,
0.1618912667,
-0.2918791771,
0.1231400669,
0.4181005657,
0.0041696834,
-0.2238512933,
0.0343080722,
0.3930398226,
0.2290639132,
0.2279182225,
0.0679672062,
0.0164630897,
-0.0684156939,
-0.1062347367,
0.0217415802,
0.4985008836,
-0.1907385141,
0.1894733906,
0.0970020667,
0.0638691112,
-0.0169087071,
-0.2064086199,
-0.1550230086,
-0.0533296876,
0.0323077925,
0.0552105047,
0.3825548291,
0.0008825695,
-0.4639362693,
0.2854018211,
0.6151414514,
0.0451861694,
0.0228654221,
0.121782355,
0.0811285824,
0.0220168065,
0.0776062384,
-0.0476598926,
0.3280905783,
0.2063089013,
-0.2247682363,
0.0804376975,
0.2391837537,
-0.0899492502,
0.3285054266,
0.2358717322,
-0.2295445502,
0.0591865778,
0.228391856,
0.223615095,
-0.0638745204,
-0.0725696608,
0.3102244437,
-0.0714153871,
-0.1536904126,
0.3449037671,
-0.0555502437,
-0.1400054246,
-0.314827472,
-0.3181684613,
-0.395925492,
-0.1937684417,
0.1878411025,
-0.0020371142,
-0.2004581243,
0.4969820678,
0.3700824678,
0.4885472059,
-0.4375545084,
0.2022910267,
-0.40125826,
-0.0282698721,
-0.1798640043,
0.1126999632,
0.2671349347,
-0.3610087633,
0.0695832893,
-0.2678537965,
-0.1390426457,
-0.3776910305,
-0.656473875,
0.1073639616,
-0.3104617894,
0.2782128453,
0.0562258884,
0.0704543591,
-0.3482403755,
-0.480437696,
0.0867852271,
0.1649170071,
-0.1435894072,
0.1668676883,
-0.1001446322,
-0.2250066251,
-0.0533999316,
-0.3928675354,
-0.2243209779,
-0.2000680715,
0.3705843389,
-0.2918745279,
0.2508517802,
0.3974412382,
-0.1721864045,
-0.4450572133,
0.0648374408,
0.2162248194,
-0.2577452958,
-0.3275820017,
0.134665966,
-0.1448572129,
-0.1755893379,
-0.1730333865,
0.0039079702,
0.4749498963,
0.0140084177,
-0.378757149,
-0.0708486885,
0.0443624705,
-0.044520393,
0.0995342731,
0.1809118986,
0.1752395779,
0.3077433705,
-0.0128268003,
-0.1105931327,
-0.2826232016,
0.0347187407,
0.1632359177,
0.4035330713,
-0.2850217819,
0.0737059712,
0.0544557236,
0.1299084723,
0.0673447922,
0.275360465,
0.1235369146,
0.1712962389,
0.2069483399,
-0.2637242973,
-0.1503321826,
0.2813255787,
-0.2193495929,
0.0017935351,
0.3186633289,
-0.2830317318,
0.0799231753,
-0.0844328627,
0.0795165822,
-0.5796131492,
-0.3837968707,
-0.0889609605,
-0.1594351232,
0.3694303334,
0.3268583417,
0.0105252098,
-0.1260314584,
-0.0120362863,
0.399182409,
0.2244013399,
0.1007142663,
-0.0021306458,
-0.3906502128,
-0.0564939268,
-0.1157607138,
0.4639098346,
-0.4560229182,
0.2955042124,
0.1749604642,
-0.0436544903,
-0.120401822,
0.1545832902,
0.6181171536,
0.1175153106,
-0.5078361034,
0.1059885919,
0.0163922962,
-0.0337732285,
-0.3630546033,
0.1206389144,
-0.0395639315,
0.4339200258,
0.1580569297,
-0.5505648255,
-0.0831441879,
0.1946406215,
0.2837172747,
-0.2225044519,
-0.0577183552,
-0.2416749299,
-0.0497223511,
-0.0194321666,
-0.2536526322,
-0.0512308367,
0.0965879858,
0.1865421981,
0.0717510134,
-0.3023971021,
-0.3557995558,
0.1836456805,
0.2867441475,
0.2918513417,
-0.1955308616,
0.4907647371,
-0.1808668822,
0.3099680245,
0.4819845259,
0.4545690715,
-0.0416625403,
-0.3299176991,
0.0809545144,
-0.4478636086,
0.3740393519,
0.3099287748,
0.2104804367,
0.1811572015,
-0.0492330566,
-0.0152212204,
-0.0760013461,
0.0047445768,
0.1555251926,
-0.0001411334,
-0.5094222426,
-0.4209137261,
0.3166482747,
-0.0236795079,
-0.2033906281,
0.5624879599,
0.3484379649,
-0.0795238465,
0.7739245296,
-0.0616459139,
1.0076570511,
0.1392732263,
0.0085887872,
0.2652909756,
-0.4144226611,
0.1910371929,
-0.1418118477,
0.1569660604,
-0.4694998562,
-0.2512719631,
0.060129229,
-0.0661752224,
0.3152081072,
0.3412532806,
-0.0488788113,
0.3279864192,
0.1032695174,
-0.2459805161,
-0.0966232568,
0.1625961512,
0.1685519814,
-0.0212284215,
-0.1695714146,
0.0382081456,
-0.124792926,
-0.0315214023,
-0.1627050638,
-0.0514632724,
-0.1981992722,
-0.0737320334,
0.0112632019,
0.0001408326,
-0.1627736092,
0.0091248704,
0.3756527603,
-0.5340589881,
0.0354077592,
0.0767794251,
0.7028309107,
0.0988067165,
0.0171797723,
0.2519141138,
0.2933141887,
0.0861098394,
0.2961773276,
-0.11208307,
0.2237724066,
0.0374514088,
0.1723106503,
-0.0291106664,
-0.1150880456,
0.0229499266,
-0.3629258871,
-0.1708574444,
0.3162291348,
-0.3145436943,
0.061621543,
-0.0517298654,
0.3097806871,
-0.3551225066,
0.0885227099,
0.0494332574,
0.0615401864,
0.3813039958,
-0.0324188322,
-0.0889791399,
-0.2849901319,
-0.3719842434,
0.0210321434,
0.2002916783,
0.3854746222,
-0.1690564901,
0.0277777016,
-0.0340861678,
0.078319855,
0.2592147887,
-0.1987282038,
-0.0875601396,
-0.0314545222,
-0.2821593881,
0.1804555655,
0.8706471324,
0.234218806,
0.0975112543,
0.2409481853,
-0.2512012124,
0.0198449716,
0.2112473845,
0.1308893412,
0.1172321439,
0.3097879291,
0.2157128155,
-0.5071626306,
0.2185927629,
-0.3060099185,
0.1290690005,
-0.1028737277,
0.2564130425,
-0.719301343,
0.000024524,
-0.0685412511,
-0.2498811483,
0.0943441465,
-0.230921492,
-0.0044794437,
-0.1709676087,
-0.3371839523,
0.1538912952,
0.15853329,
0.1803641319,
-0.2398754209,
0.0178369079,
0.0362583622,
-0.1491532922,
-0.0951101109,
0.039506983,
0.1681957841,
0.1987156272,
-0.1818486601,
0.1248781011,
-0.3358015418,
-0.028275989,
0.0590198748,
0.0251757018,
0.3523406088,
0.2157611251,
-0.2562930286,
0.0641672611,
0.0271702129,
0.1097868606,
-0.3450788558,
0.1270650476,
0.6107978225,
-0.1949035972,
0.0741318166,
0.0124970982,
0.1299145371,
0.4314774871,
-0.3140947223,
-0.1071701422,
0.1324692369,
0.2643510699,
-0.5089541674,
-0.10409493,
0.2057196647,
0.0094930306,
0.0721104667,
0.29860425,
0.53191787,
-0.0456591547,
-0.1692364663,
0.1477272362,
0.1920016259,
0.1063971221,
0.2045256495,
0.3366241157,
0.0801423714,
0.367416352,
0.5385742188,
0.2656748891,
-0.1684703082,
0.1455685198,
-0.0267732497,
0.1559483558,
-0.0395595022,
-0.0843742415,
0.2620101571,
0.0557644889,
0.4938130379,
-0.3083462715,
0.1728235781,
0.0649596974,
0.1116654426,
-0.2931692302,
-0.0876293108,
-0.3806214035,
0.1246460527,
-0.0989227518,
-0.1238008887,
0.0037756811,
-0.1629233062,
-0.1123255342,
0.3583055139,
-0.1349487007,
-0.1476141065,
-0.1297006756,
0.2766786814,
0.2328027189,
-0.0850489959,
0.0550171807,
-0.1488152295,
0.3227035105,
0.3702896535,
-0.2493624389,
0.2255048305,
0.000730173,
-0.3435977995,
0.1693456918,
0.3915585577,
0.117965661,
0.0211234763,
-0.1540203989,
-0.1296178699,
-0.019419102,
-0.0346864946,
0.0829559267,
-0.0160142034,
0.2595876455,
0.2505715787,
0.2092811465,
0.0727503598,
-0.0241903029,
0.1386114061,
0.0306466203,
-0.0693466961,
-0.4552711248,
0.0990171805,
-0.1299854815,
-0.3224802017,
0.0106511414,
-0.0971308947,
-0.2034967393,
-0.0907287002,
0.0766667947,
0.0835568756,
-0.0384745598,
0.1363606006,
0.1055124253,
0.2661750019,
0.1203169897,
0.2834956348,
0.0451880991,
-0.3881887496,
-0.3239956498,
-0.2696016729,
0.1223395988,
0.0065776613,
0.2753305137,
0.2831842303,
0.1279983371,
0.3731360734,
-0.0443318449,
-0.0600498132,
-0.0180729833,
-0.436108768,
0.2725165486,
-0.5864130259,
-0.1351915151,
-0.1584738642,
0.0455419682,
-0.062192291,
0.183660686,
0.2573317885,
0.0637290776,
-0.0575320758,
-0.1382818818,
0.0942721665,
0.3398605883,
-0.1406905502,
0.3241436183,
0.1526389718,
-0.1851630062,
-0.0189704876,
-0.4162162244,
0.1840908825,
-0.1431688666,
-0.3591044545,
0.6352970004,
-0.1799357533,
0.2452365011,
0.2155346274,
-0.4755837619,
-0.0229119454,
0.4781323373,
0.0980693325,
-0.1527500451,
-0.4506674111,
0.2942951024,
0.4264168441,
0.1411203146,
0.1850662977,
0.4646712542,
-0.0739254355,
0.33809039,
-0.4484182,
-0.2011739463,
0.3947967887,
-0.196105808,
0.0506716333,
-0.1191336662,
0.2877328396,
-0.1416059732,
0.0626619756,
-0.8177499771,
-0.3129561841,
0.3955681622,
-0.3796287477,
-0.1028529182,
0.0371234939,
0.0630406514,
-0.0284820795,
-0.055800233,
0.7830025554,
-0.0011535239,
-0.2839379311,
0.0140159009,
0.1077684239
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | @albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 69 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
@albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best. | [
-0.0945750922,
0.164955914,
-0.1062555909,
0.1807774007,
-0.1605589986,
-0.1824282259,
0.2929793894,
0.3721559942,
-0.0281362962,
0.237318486,
0.0815383717,
0.4941643178,
0.3443228602,
0.3875853419,
-0.1219676882,
-0.1653728038,
0.1791916639,
0.1058904976,
0.0738654286,
-0.0472123213,
-0.2771567404,
0.3801194429,
-0.1864519864,
0.1033055931,
-0.0044910195,
-0.0442848392,
-0.3907567263,
-0.0053220615,
-0.0989830121,
-0.064550288,
-0.0160138682,
0.1396737993,
-0.2838132977,
0.3003931046,
-0.0000995151,
-0.2122511119,
-0.1524277776,
-0.0022194863,
-0.2837035358,
-0.2915551364,
-0.0350603275,
-0.2864594758,
-0.0305471718,
-0.2509916425,
-0.046373114,
-0.0534532405,
-0.103564918,
0.05136659,
0.2675027549,
0.036676988,
0.3120251,
-0.0291644782,
0.2343193591,
0.120673269,
0.1309033185,
-0.061324928,
-0.3341351449,
0.0194007196,
0.3119696975,
-0.0499166846,
0.1385623962,
0.3251022398,
-0.0055235089,
-0.1912209094,
-0.2356843054,
0.0744583011,
0.1742497236,
-0.2208155245,
0.1414335221,
0.4658578634,
0.1353350878,
-0.1847065687,
-0.3956302702,
-0.2489245981,
0.0458334461,
0.0623226911,
0.1076930985,
0.2027467489,
0.0251355898,
-0.0185834393,
0.1888699532,
-0.0761992484,
0.0288244858,
0.1350667179,
-0.3899896741,
-0.0035599871,
-0.0426617861,
-0.0654872805,
-0.2960279286,
-0.1805910915,
0.3020912707,
-0.1202111319,
0.0362090655,
0.0398721509,
-0.4097029269,
-0.1138769388,
0.0176341906,
-0.2499773055,
-0.0459870175,
-0.2538667321,
0.287320286,
0.0785905719,
-0.1128492057,
0.1499838233,
-0.0833610296,
-0.1719057858,
-0.0077846362,
-0.0340820253,
-0.1399069577,
0.0614165626,
0.036596071,
-0.1083237082,
0.0139722144,
-0.1620420218,
-0.3057864308,
-0.0820149705,
0.4653048515,
-0.0705468208,
-0.2174635828,
0.2138094455,
-0.1133657172,
-0.0518438481,
-0.0666186363,
0.1220423281,
-0.2203944027,
-0.1144384146,
0.0585818626,
0.1497647464,
-0.1000517681,
-0.2040342391,
-0.2356167287,
-0.0316645093,
-0.1093045548,
0.0109147634,
0.1690513641,
0.2205840945,
0.2682305574,
0.3136677742,
-0.1328620017,
0.0651012585,
0.083393462,
-0.1283410639,
0.0889327377,
0.1609356403,
-0.1089238897,
-0.1607587337,
-0.0768189132,
-0.1720080376,
0.0074269692,
0.2754979134,
-0.2969548702,
0.0426976085,
-0.1943311989,
0.3190820515,
0.149766475,
-0.0152428951,
0.1577274203,
0.343293041,
0.0023645384,
-0.1967012733,
0.0088328458,
0.0351595916,
0.171089381,
-0.1821631938,
0.1880117953,
0.1859947443,
-0.4384117424,
0.0438689962,
0.0706623867,
0.299151212,
-0.1694058478,
-0.0350270569,
0.005248541,
-0.0648483112,
-0.0103353383,
0.2652813196,
0.1284437627,
-0.1578507274,
-0.2708673775,
-0.101572454,
0.0926468074,
0.0449596196,
0.0476244651,
-0.2658827305,
-0.0409044921,
-0.0895878077,
0.0071426588,
0.0951947272,
-0.1525666267,
-0.0348905697,
-0.4874155521,
-0.1566327512,
-0.049247358,
0.2992256582,
0.0195364896,
-0.090804033,
0.0176676232,
-0.295265764,
0.1866909713,
-0.0695774406,
-0.0897552073,
0.1368982643,
0.3785845339,
-0.1127656624,
0.0817358196,
0.0557633527,
-0.35486871,
-0.0639977083,
-0.5433819294,
0.0381315351,
-0.132954672,
-0.217352584,
-0.2211995274,
-0.0977144539,
0.0937995166,
0.1173561141,
0.3114743829,
-0.0612351298,
-0.0932333618,
-0.0669264123,
-0.1357065886,
-0.1504242867,
-0.2041024417,
0.1138578877,
-0.2185568511,
0.1183969826,
-0.2645216286,
-0.0354991406,
0.2293483764,
0.2160774469,
0.3259452581,
-0.135771513,
0.0848594457,
0.4133000076,
-0.0712656453,
-0.1775659919,
0.0073695951,
0.1974622607,
0.158174932,
0.2416898757,
-0.0235134196,
0.0845134854,
-0.0478855558,
-0.0099363187,
-0.0506859645,
0.5310109258,
-0.0692867786,
0.1302422434,
0.1114737168,
0.1158218086,
0.0913525298,
-0.3311796188,
0.0610131547,
-0.229228586,
0.0208457187,
0.0256371386,
0.2371453643,
-0.0735873133,
-0.3782963157,
0.3890346885,
0.595915556,
0.0423732921,
0.0961579755,
0.0250202678,
0.1209133565,
0.0719210878,
0.0956497267,
-0.035516195,
0.1159640551,
0.2838015258,
-0.1808016896,
0.0745526403,
0.1882955879,
-0.169944182,
0.3743565679,
0.1130916774,
-0.1392309815,
0.0687526166,
0.2212096304,
0.1050682738,
-0.2182841897,
-0.0418135226,
0.2569471598,
0.113968648,
-0.1334434897,
0.198955074,
-0.0682597831,
-0.1529253423,
0.003711784,
-0.3080114424,
-0.1912064552,
-0.1787893623,
0.2732321024,
0.0597300492,
-0.235328272,
0.444049716,
0.4304187,
0.3479865193,
-0.2753500044,
0.2340329885,
-0.4255044758,
-0.0583578907,
-0.16655837,
0.3149709702,
0.070076488,
-0.2602819204,
0.1305553615,
-0.2047947198,
-0.0618090183,
-0.4030606151,
-0.5852489471,
0.0514166653,
-0.3518231511,
0.3017702997,
0.0622430071,
0.1933711469,
-0.4906285107,
-0.2931060195,
0.154919669,
0.136981979,
-0.2206989974,
0.1503320932,
-0.0639989376,
-0.1679264903,
-0.1788979918,
-0.3754982352,
-0.1132364497,
-0.20277825,
0.4285014868,
-0.1967051029,
0.2596762776,
0.265711695,
-0.0907628089,
-0.2190186083,
0.1336602122,
0.2301319987,
-0.3561963141,
-0.2027752697,
0.207977429,
-0.2806920707,
-0.3336569071,
-0.0823129565,
-0.0546648726,
0.4031397402,
-0.1350965947,
-0.3119741678,
-0.1868122667,
0.033900518,
0.0407408066,
0.1352305114,
0.1238833815,
0.3069400787,
0.2054497153,
-0.2221668363,
-0.2370650172,
-0.1375478059,
0.0683593079,
0.1587040871,
0.3804445565,
-0.3390126824,
0.1482964009,
-0.0006984067,
0.0862365216,
-0.0711873397,
0.4041053057,
0.1763356477,
0.1069550365,
0.108837828,
-0.2341394275,
-0.1778414696,
0.041737169,
-0.2321940362,
0.0693014115,
0.324311167,
-0.2455967367,
-0.0041539082,
-0.1461806595,
-0.0175648183,
-0.6171479225,
-0.3598748446,
-0.0945105255,
-0.028323913,
0.2966676652,
0.3583484292,
0.0310683418,
-0.0622922257,
0.0143933007,
0.2652668655,
0.0809168071,
0.082665965,
-0.1591064632,
-0.3087907434,
0.0732848346,
-0.2784685791,
0.4061566889,
-0.3154142499,
0.0413333289,
0.1006537303,
-0.0347350575,
-0.086841464,
0.058858119,
0.6433230042,
0.0958650932,
-0.433305949,
0.2399842739,
-0.1444151998,
-0.1132581383,
-0.1597002745,
-0.0510714427,
0.0130997365,
0.387781471,
0.0871596485,
-0.5786213875,
-0.0196724553,
0.1407707632,
0.1425062865,
-0.2053462863,
-0.0920600891,
-0.3311223984,
-0.1422485113,
-0.0591535755,
-0.1508468837,
-0.0340569988,
0.2037920505,
0.0862808451,
-0.0222403109,
-0.1474241912,
-0.316727221,
0.277957499,
0.4062030315,
0.2765035331,
-0.1116367802,
0.3957833648,
-0.2022665143,
0.2502986789,
0.3662469387,
0.4133271873,
0.0742691383,
-0.2767438889,
0.1032384261,
-0.4965811968,
0.3145391643,
0.249566704,
0.0816373304,
0.3165463209,
-0.1234626099,
0.0668831766,
0.0610929541,
-0.1096996516,
0.1473766118,
-0.0427013002,
-0.326995641,
-0.2844073772,
0.3591323197,
-0.2353798002,
-0.3051628172,
0.4224852622,
0.3373740613,
-0.1024834886,
0.7656228542,
-0.0442369767,
0.9396677017,
0.0619281195,
-0.134341836,
0.4234226644,
-0.3800211549,
0.188730523,
-0.0710499734,
0.1426200122,
-0.4865724742,
-0.1036655083,
0.1285903007,
0.1198763475,
0.2286652476,
0.3379734457,
-0.1015125439,
0.1135521755,
0.021098068,
-0.3130268753,
-0.0023769727,
0.1169969812,
0.1659381092,
-0.1110289171,
-0.2770547271,
0.186960116,
0.0525880717,
-0.1518206745,
-0.1030207798,
-0.0289186314,
-0.2555291653,
-0.0340230018,
0.1141484976,
0.0643807128,
-0.1767443269,
-0.0123274531,
0.2570218444,
-0.5343416929,
-0.048542928,
0.0710945278,
0.5158628821,
0.1151919141,
-0.1125556156,
0.3008103967,
0.1985652447,
-0.0189239234,
0.2529326677,
-0.0383629873,
0.1849525273,
-0.0526678972,
-0.0013165878,
0.0670712888,
-0.1052637994,
0.0929447934,
-0.3322980106,
-0.0436855964,
0.2253641486,
-0.3051193953,
-0.042816408,
-0.1566416174,
0.2012841851,
-0.4313041568,
0.2236168236,
-0.0297346171,
0.0793717131,
0.1636912972,
0.0749421045,
-0.1055217981,
-0.253181994,
-0.1546451747,
-0.0116012804,
0.2196425349,
0.3662653267,
-0.0404085703,
-0.0482948199,
-0.1858191937,
-0.0681217238,
0.2099355906,
-0.2763135433,
-0.0500336364,
0.0880666748,
-0.2997808158,
0.1656386405,
0.7690189481,
0.1684358716,
0.1278986186,
0.2035951763,
-0.2573230267,
-0.0551825352,
0.127544865,
0.1948685348,
-0.038352564,
0.3110406101,
0.2946298122,
-0.3124388456,
0.1796079725,
-0.4704085588,
0.1546531022,
-0.1475118548,
0.3226907253,
-0.6918415427,
-0.1356508434,
0.0598052107,
-0.1562394798,
0.2693352699,
-0.1370638907,
-0.0412780643,
-0.3507052064,
-0.306560427,
0.0927855223,
0.0667157173,
0.0428888537,
-0.2424367964,
-0.0230522268,
-0.1339766681,
-0.1251713037,
-0.0408990234,
-0.0106189623,
0.1424338073,
0.0708790645,
-0.206457451,
0.0778022036,
-0.3135582209,
-0.1943057925,
0.1171257645,
-0.0614327155,
0.2407903075,
0.0447622873,
-0.308549583,
0.0100614158,
0.1912418902,
0.1080484837,
-0.3080606163,
0.0434491038,
0.5534461737,
-0.1625079513,
-0.009007208,
-0.0780799761,
0.1659110636,
0.1728319824,
-0.1905959845,
-0.01114693,
0.1252032518,
0.3859747946,
-0.6042981148,
-0.0616753176,
0.183572486,
-0.0584169403,
0.2412412167,
0.2158831656,
0.301035434,
-0.1045986935,
0.0463480242,
0.1260038018,
0.1890323311,
0.0265791267,
-0.0622377843,
0.3278681636,
0.0129087381,
0.4055565,
0.5518020391,
0.2695136666,
-0.2220447659,
0.2299796045,
-0.0865665078,
0.1214848012,
-0.1592661887,
0.0574602969,
0.0755005628,
0.0257971678,
0.4153178632,
-0.2472278923,
0.0160486847,
0.0608722679,
0.1348284632,
-0.2603424191,
0.0698209107,
-0.1777916998,
0.0601766706,
-0.0604263954,
-0.2639054358,
0.003221109,
-0.2010904104,
-0.1069033146,
0.3142531812,
-0.1328028142,
-0.0593389198,
-0.0802354366,
0.2833549678,
0.1021886617,
0.0499866977,
0.0002004998,
-0.2292296588,
0.2099286318,
0.482798636,
-0.2012555003,
0.2752377689,
0.1449464262,
-0.2342805713,
0.0728494003,
0.3186551332,
0.0589853898,
0.0248453952,
-0.1226228178,
-0.0236737933,
-0.0935845152,
-0.1568129212,
0.0088425642,
0.083370693,
0.381890595,
0.4156994224,
0.2214429528,
0.2144207805,
-0.2149938345,
0.1363873929,
0.204315111,
-0.0376161076,
-0.3035880327,
-0.1031387672,
-0.1330810785,
-0.327819705,
-0.0717576519,
-0.2011628449,
-0.1711435616,
0.012810003,
-0.0152873453,
0.0792203322,
-0.0307258256,
0.0684766099,
0.1836260259,
0.281724602,
0.106642969,
0.194706887,
0.218287006,
-0.3514604867,
-0.3783020079,
-0.3759889901,
0.1621979624,
-0.0139502268,
0.2027860582,
0.2530252039,
0.1909282506,
0.3716296256,
0.0247725751,
-0.0269459151,
0.0028324979,
-0.3255461752,
0.2025681436,
-0.5814427137,
-0.0563309267,
-0.0086247819,
0.049130179,
0.0382412411,
0.0946114585,
0.2241263837,
0.0722505674,
0.113363713,
-0.1802315414,
0.0152948005,
0.2077581584,
0.0030144462,
0.308355391,
0.1604087055,
-0.1088611558,
-0.1613595337,
-0.3197242022,
0.1671269238,
0.0093771257,
-0.2188772559,
0.4939146936,
0.1179934144,
0.3039818704,
0.3645519316,
-0.476885736,
0.1272563487,
0.5479239225,
0.171174407,
-0.0354340933,
-0.4595728517,
0.3305896223,
0.4112403095,
0.1283178031,
-0.0408140011,
0.3923974335,
-0.1397230774,
0.3051600754,
-0.3924394846,
-0.3132196665,
0.4487122893,
-0.2935205996,
-0.037875589,
-0.0285169017,
0.2818366289,
-0.1704479009,
-0.0593011975,
-0.5897092819,
-0.2641322017,
0.301594466,
-0.2711643279,
-0.1029693633,
0.0631672964,
-0.0946864113,
0.1494705826,
-0.0741808936,
0.7340408564,
0.1678726971,
-0.1753615439,
-0.0246347524,
-0.0034322329
] |
https://github.com/huggingface/datasets/issues/4271 | A typo in docs of datasets.disable_progress_bar | Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :) | ## Describe the bug
in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable". | 17 | A typo in docs of datasets.disable_progress_bar
## Describe the bug
in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable".
Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :) | [
-0.2229197919,
0.1155907437,
-0.1957840174,
-0.2332064658,
0.1984051019,
-0.018780956,
0.2855718732,
0.2007148415,
-0.1886951476,
0.3785544336,
0.2363237292,
0.3476401567,
0.1750877202,
0.3231857717,
-0.1807082295,
0.05160008,
0.0662440285,
0.2353480756,
-0.1192478538,
0.0976191685,
-0.2156188935,
-0.0787695274,
-0.3135316968,
0.1610238552,
-0.0999405235,
-0.0928426906,
0.1751818359,
-0.0495160334,
-0.2045707852,
-0.5483916402,
0.2211256027,
0.3761436343,
-0.0865531787,
0.2933128178,
-0.0000984403,
-0.0570368543,
0.5775362253,
0.2224652022,
-0.196736306,
0.0804649964,
-0.4307791293,
-0.3013757765,
0.2830670476,
-0.1467135102,
0.1921644211,
-0.2488399893,
0.084151797,
-0.248658672,
0.1549933404,
-0.05735071,
0.4014671743,
0.2081246227,
-0.0253470447,
-0.2618823051,
0.2603496015,
-0.1614094824,
-0.2056364268,
-0.0165291559,
0.1598385125,
-0.1195100546,
-0.3457562029,
0.4912675619,
0.059924446,
0.1963648498,
0.1573675573,
-0.1466393769,
0.130335182,
-0.2772006989,
0.1934325099,
-0.0389265418,
0.6014458537,
-0.4154236019,
-0.2229383588,
-0.1094050705,
-0.0636934862,
-0.1233336478,
0.1501975507,
-0.0136680109,
0.0419414006,
0.1471705139,
-0.2701701224,
-0.306199491,
-0.0827067122,
-0.0114475936,
-0.1012169048,
-0.1448511183,
-0.1163430065,
-0.0067809429,
-0.1413311064,
0.1541289836,
0.2276300341,
0.1975073218,
-0.2022558302,
-0.1100779697,
-0.3084982038,
-0.0450167544,
0.2144832164,
0.2353203595,
0.1443664432,
0.3407250643,
-0.1676422656,
0.0752003342,
0.0219241604,
0.0702032745,
0.1596526653,
0.045049347,
0.258005172,
-0.2053949982,
0.452512145,
-0.0547708459,
0.0398108438,
0.0399270914,
0.3543908,
-0.4041004181,
0.2071148902,
0.1054351628,
0.2479426712,
-0.3403216898,
-0.3461491466,
0.1626417786,
0.0237694941,
-0.1035871953,
0.0872048512,
0.1370184273,
0.0765380263,
-0.1170746386,
-0.031255722,
0.0749526098,
-0.0714146197,
-0.0273727607,
-0.3959845304,
0.0172809567,
-0.3836418986,
0.0423286185,
0.1106604934,
0.0570085086,
0.253349632,
0.1857759655,
-0.2199316621,
0.0625838116,
0.1819480658,
-0.0221343562,
0.0767647848,
0.4262475073,
-0.0045223078,
0.0508003049,
0.1107685491,
0.1095031798,
0.1362289637,
0.418094337,
-0.0418614037,
-0.2713926733,
-0.3100939989,
0.3273285329,
-0.1431175917,
-0.1270532906,
-0.0756643042,
0.2846988142,
0.0590009354,
-0.0932922065,
0.1752906442,
-0.0045273509,
-0.3644652069,
-0.0545466878,
0.1707588285,
0.1992583275,
-0.4645714164,
-0.0022817301,
0.0210445728,
-0.37017712,
0.2299242467,
0.1018558964,
-0.2559856474,
0.0281903688,
-0.1594495773,
0.2463548481,
0.0811337233,
-0.0675539449,
-0.438544333,
0.0678546429,
-0.1044607162,
-0.3502527177,
-0.1098867506,
-0.1136615947,
-0.0097054234,
-0.09850806,
-0.1727191657,
-0.1433970183,
0.0508835167,
0.0039144075,
-0.2265460044,
-0.2833886743,
0.0745835602,
0.0483338609,
0.20926781,
0.3154650927,
0.2383400053,
-0.1500244439,
0.3119063675,
0.0804134458,
0.17240417,
0.2401135266,
0.1944091767,
-0.1940510869,
0.0339595936,
-0.1626262069,
-0.0778367147,
0.1023433879,
-0.0207639411,
-0.1141055003,
0.1242760271,
-0.2556659579,
-0.2132737786,
-0.1044736952,
-0.1439940035,
0.0649199188,
0.3116973937,
-0.0394423492,
-0.1469849199,
-0.0256980862,
-0.2340632528,
0.1173262894,
-0.4386694133,
-0.0591635369,
0.1635655314,
0.1668137312,
0.0483219959,
-0.1752251983,
0.1135093048,
0.1076940075,
0.098677747,
0.2219713926,
-0.2393375635,
0.3838475347,
0.0075307088,
0.3230988085,
0.2562880218,
0.2459731102,
-0.0293675605,
-0.1085120142,
-0.0567204766,
0.1533909887,
-0.0061786515,
0.1544769853,
-0.2195065916,
0.0041811205,
0.1198475957,
0.1227800548,
0.115314059,
0.0192005895,
0.2718356252,
-0.0437818542,
-0.2071260363,
-0.2595513761,
0.0956260115,
0.1399833113,
0.2070002407,
-0.1848544925,
-0.1789056361,
0.1680510342,
0.4517270029,
0.1967943907,
-0.0557997786,
0.1169693321,
-0.2257679701,
-0.1456955373,
0.2070961297,
0.3106772304,
0.3954302967,
0.3480781913,
0.3241301775,
0.0725488365,
-0.0672366917,
-0.343155086,
0.0303296093,
0.2030620426,
0.0503211319,
0.1952121407,
0.2348558158,
-0.0697973818,
-0.6493399143,
-0.1062074602,
-0.1416415274,
0.2880268693,
-0.1849620193,
-0.1196633056,
-0.148288548,
-0.1180299744,
0.1744534522,
0.1023569256,
-0.0216887221,
-0.2944032252,
0.241106391,
0.3402102292,
-0.1539925933,
0.3584033251,
0.0669907853,
0.1544730067,
-0.0029355986,
0.4372837543,
-0.3027950823,
-0.1478398442,
0.0059069037,
0.2321466357,
-0.0579224303,
0.0021712356,
0.2942667902,
-0.0345822796,
0.0841889828,
-0.4045104086,
-0.1687056422,
0.1775917858,
-0.0422684625,
-0.025514327,
0.0791090205,
0.1675947011,
-0.1411899179,
0.3309294581,
0.0362137966,
-0.2055021971,
-0.1571456194,
-0.1558746547,
-0.1878534257,
-0.0236847773,
-0.2994593978,
-0.0955626592,
-0.0734325424,
-0.3905099928,
0.0512569882,
-0.0712078735,
-0.0567772761,
0.2447484285,
-0.0892986506,
0.1759669334,
0.1313778609,
-0.0752637908,
-0.3427338302,
-0.4918085039,
0.0708873868,
-0.2190901041,
-0.3995852172,
0.1060221866,
0.1748673916,
0.00683288,
-0.0386901647,
-0.4271921813,
-0.1249674559,
-0.4003716707,
-0.0054286132,
-0.2445761561,
-0.0012502669,
0.3867064416,
0.0232884921,
-0.3557620645,
-0.2199852616,
-0.3149738312,
0.145704776,
0.0185300615,
0.0254476517,
-0.3164151609,
0.0266640186,
0.0572808869,
0.3319734931,
0.1314513534,
0.0288758632,
0.2864024043,
-0.0447042845,
0.2110975236,
-0.1811967343,
-0.1463931203,
0.1071935222,
-0.0983486325,
0.0072868327,
0.1993073374,
-0.0016733581,
-0.2961312532,
-0.0705988258,
-0.0121465158,
-0.0433846898,
-0.1468428522,
-0.4033568203,
-0.1786356419,
0.1736798435,
0.2220254838,
0.2157218456,
-0.1202086434,
0.0643643811,
-0.0166435782,
0.1368849277,
0.2726162374,
-0.2774796188,
-0.2935123444,
0.1251392066,
-0.4272783697,
0.0669322535,
-0.0666520745,
0.0529321842,
-0.1138816178,
-0.0455382094,
0.3016259968,
0.0132491924,
0.5144385695,
-0.206167832,
0.0751795471,
0.1470347643,
0.1833788007,
-0.1256112754,
-0.1601672173,
-0.1391434371,
0.4205630124,
0.1722532064,
0.2092000246,
0.1187050641,
-0.1667722613,
0.1739277393,
-0.1185819358,
0.0034085969,
-0.4570742249,
-0.3658676445,
-0.1437802166,
-0.2650411725,
0.2220318168,
0.0696085989,
0.0092720101,
-0.3115871847,
-0.336133033,
-0.0356300399,
-0.162627548,
-0.2178284377,
0.1467825472,
0.1517466903,
0.0370312072,
0.1194386482,
0.0774439722,
0.2860640883,
0.222025454,
0.05468297,
0.246023044,
-0.0942074284,
0.3663462698,
-0.3722958863,
0.0553485751,
0.2775213122,
-0.2776469588,
0.3160920143,
-0.1080333069,
0.2466955185,
-0.1287562698,
-0.2021317333,
0.3426862657,
-0.0304332618,
-0.1122848839,
-0.1296393424,
0.2883580327,
0.007559102,
-0.1623648107,
0.2025413215,
0.0249175355,
-0.0834410042,
-0.2757064402,
-0.0375111662,
0.7426796556,
-0.0334520899,
-0.1380451173,
0.1358205229,
-0.2283022255,
0.3220163584,
0.1119791567,
0.1642050445,
-0.4315051436,
-0.3373176157,
-0.0380669162,
-0.0593302026,
0.239190802,
-0.1603134125,
-0.1908498257,
0.0864996165,
-0.2639448643,
0.1703835875,
-0.0654015839,
-0.026607519,
-0.065161705,
-0.1306500435,
-0.1415392309,
0.3012900651,
0.071532771,
0.1933518052,
-0.0922174826,
0.1168988496,
0.2073816061,
0.1061841026,
-0.3246264756,
0.016430581,
0.2150163203,
0.0817239583,
-0.0871782228,
-0.3832072616,
0.1161596552,
0.0054141264,
0.6305186749,
-0.0723051131,
-0.3233718574,
0.2185578644,
0.0572031513,
0.154926911,
-0.0110680088,
0.1351474971,
0.1720527112,
-0.3276139796,
-0.314189136,
0.0416751727,
0.0245801527,
-0.2900607884,
-0.1411180645,
0.1009937152,
0.1713564247,
-0.1022318453,
0.1517006159,
0.0941778868,
0.2594479322,
-0.3805502057,
0.3122260571,
0.2116302699,
-0.0013666162,
0.3058975339,
-0.0434072539,
-0.2855224907,
-0.1058099195,
0.3746729195,
-0.0471706353,
0.0885111541,
0.2705827355,
0.0297918655,
-0.3388720155,
-0.3901581764,
0.0259843227,
0.2904172242,
-0.2181683928,
0.0928302631,
0.0365209393,
0.2190667391,
0.0773642957,
0.165350318,
-0.1708789021,
0.1903454214,
-0.1844816506,
-0.2126555145,
-0.3821564615,
-0.0756227225,
-0.3617585897,
0.1674850136,
-0.1170069724,
0.2422586828,
0.1642328054,
-0.2095513344,
-0.4828166962,
0.1043827385,
-0.1916699558,
0.0223592129,
-0.0616142675,
-0.0395267718,
0.0107803103,
-0.1095150486,
0.1596180499,
-0.017824132,
-0.4208321869,
-0.3760478497,
-0.0505669154,
0.0542696975,
-0.0553492941,
-0.0916875526,
0.0708417445,
-0.0124040572,
-0.3808449209,
0.1595236212,
0.1495045722,
0.1893280298,
0.1264628768,
0.3020765781,
0.0382778011,
0.0895262361,
0.0124460915,
-0.172624588,
0.1446708143,
0.0576812848,
-0.0539278388,
0.1244270056,
-0.0065804548,
-0.0276465025,
0.2275311351,
0.1334490627,
0.0845587924,
0.5008245707,
-0.0754180029,
-0.301350832,
0.1236042827,
-0.0768087357,
0.5262035131,
0.0786519423,
-0.1487594545,
-0.161183387,
0.1398610473,
0.4366205037,
-0.3916623294,
0.0263541881,
0.3707644343,
-0.0100038275,
0.1842575818,
-0.0014318001,
0.1325761825,
0.1303467751,
0.0871000886,
0.3760141432,
0.1132241711,
-0.3436345756,
-0.0398073569,
0.2131901234,
-0.0741387382,
0.0238453671,
0.3503749967,
0.3093539476,
-0.0276505183,
0.5311850309,
0.1251447499,
0.4083385766,
0.3486517966,
0.318746388,
-0.2099704593,
-0.1797944009,
-0.0174340345,
0.2028117925,
-0.1287890524,
-0.3653080463,
0.0742626339,
0.1821201444,
-0.0846465752,
-0.2187217623,
-0.0993656963,
0.0415533222,
-0.1598417163,
-0.1765049994,
-0.3403042555,
-0.1716873199,
0.0837725773,
0.0425583832,
-0.0141740032,
0.3499788642,
0.2928695679,
-0.1814736426,
0.0509602502,
-0.3545149565,
0.0794479325,
0.1234138831,
0.2386512756,
0.0553499982,
-0.1003172398,
-0.1932812631,
0.1264372617,
0.1035679355,
0.3794704378,
0.1034772247,
0.1606203169,
-0.0117414147,
-0.2521603107,
0.0622228794,
-0.2785102427,
-0.176530987,
0.174758628,
-0.0017488896,
0.0483929962,
0.2178845108,
0.2599286437,
-0.2537257671,
0.4577459395,
0.1452037096,
0.1162128225,
-0.5175434947,
0.2394629568,
0.1341354251,
-0.2854494154,
0.0418839715,
-0.0961118266,
-0.1465419829,
-0.0157463793,
0.4080951214,
-0.1923330128,
0.0866920277,
-0.2239390314,
0.1954114884,
-0.1504388154,
0.2595711648,
0.1637840569,
0.3310199678,
-0.1081498787,
-0.3315902054,
-0.5028666258,
0.1777926385,
0.1743541807,
0.1925496459,
-0.0535769276,
0.0378599539,
-0.3170667589,
0.3019963205,
0.4104749858,
-0.1093757823,
0.0209717173,
-0.2024774849,
-0.2162163705,
0.1166908517,
0.0677550137,
-0.0121903159,
-0.092115812,
-0.1904399693,
0.181281969,
-0.0020266648,
0.2022673041,
0.0410378166,
0.0328881927,
0.0895207524,
-0.0968529657,
0.4912850857,
0.1340896338,
0.1044610888,
-0.2403553277,
0.0124600558,
-0.1672847122,
-0.2488929629,
-0.4418871999,
0.144613415,
-0.0821243897,
0.3392528296,
-0.0853482708,
0.0772004724,
0.0067135571,
0.4047376215,
0.180695504,
0.3794718087,
-0.2791559696,
0.3082979918,
0.1831535399,
0.1753866673,
-0.2353364229,
-0.2150694579,
0.0985858217,
0.3112955391,
-0.2942813039,
-0.4546124041,
0.5019847155,
-0.2152863145,
-0.3723546267,
-0.076423265,
0.2795972526,
0.2018608451,
-0.3445016742,
-0.3253343999,
0.0078411037,
0.1736467034,
-0.0240044165,
-0.2483028024,
0.4007062018,
-0.2415482551,
0.1452599019,
0.0238205325,
0.2798729539,
0.3750036955,
0.0471401475,
-0.0758552477,
-0.237327978
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word),
Pronunciation
([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙΛd/
([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wΓ»rd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙd/ | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 38 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word),
Pronunciation
([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙΛd/
([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wΓ»rd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙd/ | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Hi @i-am-neo, thanks for reporting.
Normally this dataset should be private and not accessible for public use. @cakiki, @lvwerra, any reason why is it public? I see many other Wikimedia datasets are also public.
Also note that last commit "Add metadata" (https://huggingface.co/datasets/bigscience-catalogue-lm-data/lm_en_wiktionary_filtered/commit/dc2f458dab50e00f35c94efb3cd4009996858609) introduced buggy data files (`data/file-01.jsonl.gz.lock`, `data/file-01.jsonl.gz.lock.lock`). The same bug appears in other datasets as well.
@i-am-neo, please note that in the near future we are planning to make public all datasets used for the BigScience project (at least all of them whose license allows to do that). Once public, they will be accessible for all the NLP community. | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 100 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Hi @i-am-neo, thanks for reporting.
Normally this dataset should be private and not accessible for public use. @cakiki, @lvwerra, any reason why is it public? I see many other Wikimedia datasets are also public.
Also note that last commit "Add metadata" (https://huggingface.co/datasets/bigscience-catalogue-lm-data/lm_en_wiktionary_filtered/commit/dc2f458dab50e00f35c94efb3cd4009996858609) introduced buggy data files (`data/file-01.jsonl.gz.lock`, `data/file-01.jsonl.gz.lock.lock`). The same bug appears in other datasets as well.
@i-am-neo, please note that in the near future we are planning to make public all datasets used for the BigScience project (at least all of them whose license allows to do that). Once public, they will be accessible for all the NLP community. | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Ah this must be a bug introduced at creation time since the repos were created programmatically; I'll go ahead and make them private; sorry about that! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 26 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Ah this must be a bug introduced at creation time since the repos were created programmatically; I'll go ahead and make them private; sorry about that! | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | All datasets are private now.
Re:that bug I think we're currently avoiding it by avoiding verifications. (i.e. `ignore_verifications=True`) | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 18 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
All datasets are private now.
Re:that bug I think we're currently avoiding it by avoiding verifications. (i.e. `ignore_verifications=True`) | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Thanks a lot, @cakiki.
@i-am-neo, I'm closing this issue for now because the dataset is not publicly available yet. Just stay tuned, as we will soon release all the BigScience open-license datasets. | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 32 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Thanks a lot, @cakiki.
@i-am-neo, I'm closing this issue for now because the dataset is not publicly available yet. Just stay tuned, as we will soon release all the BigScience open-license datasets. | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Thanks for letting me know, @albertvillanova @cakiki.
Any chance of having a subset alpha version in the meantime?
I only need two dicts out of wiktionary: 1) phoneme(as key): word, and 2) word(as key): its phonemes.
Would like to use it for a mini-poc [Robust ASR](https://github.com/huggingface/transformers/issues/13162#issuecomment-1096881290) decoding, cc @patrickvonplaten.
(Patrick, possible to email you so as not to litter github with comments? I have some observations after experiments training hubert on some YT AMI-like data (11.44% wer). Also wonder if a robust ASR is on your/HG's roadmap). Thanks! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 88 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Thanks for letting me know, @albertvillanova @cakiki.
Any chance of having a subset alpha version in the meantime?
I only need two dicts out of wiktionary: 1) phoneme(as key): word, and 2) word(as key): its phonemes.
Would like to use it for a mini-poc [Robust ASR](https://github.com/huggingface/transformers/issues/13162#issuecomment-1096881290) decoding, cc @patrickvonplaten.
(Patrick, possible to email you so as not to litter github with comments? I have some observations after experiments training hubert on some YT AMI-like data (11.44% wer). Also wonder if a robust ASR is on your/HG's roadmap). Thanks! | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Hey @i-am-neo,
Cool to hear that you're working on Robust ASR! Feel free to drop me a mail :-) | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 19 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Hey @i-am-neo,
Cool to hear that you're working on Robust ASR! Feel free to drop me a mail :-) | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | @i-am-neo This particular subset of the dataset was taken from the [CirrusSearch dumps](https://dumps.wikimedia.org/other/cirrussearch/current/)
You're specifically after the [enwiktionary-20220425-cirrussearch-content.json.gz](https://dumps.wikimedia.org/other/cirrussearch/current/enwiktionary-20220425-cirrussearch-content.json.gz) file | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 19 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
@i-am-neo This particular subset of the dataset was taken from the [CirrusSearch dumps](https://dumps.wikimedia.org/other/cirrussearch/current/)
You're specifically after the [enwiktionary-20220425-cirrussearch-content.json.gz](https://dumps.wikimedia.org/other/cirrussearch/current/enwiktionary-20220425-cirrussearch-content.json.gz) file | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | thanks @cakiki ! <del>I could access the gz file yesterday (but neglected to tuck it away somewhere safe), and today the link is throwing a 404. Can you help? </del> Never mind, got it! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 34 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
thanks @cakiki ! <del>I could access the gz file yesterday (but neglected to tuck it away somewhere safe), and today the link is throwing a 404. Can you help? </del> Never mind, got it! | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Hi @xflashxx, thanks for reporting.
Please note that this dataset was generated and shared by Webis Group: https://huggingface.co/webis
We are contacting the dataset owners to inform them about the issue you found. We'll keep you updated of their reply. | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 39 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Hi @xflashxx, thanks for reporting.
Please note that this dataset was generated and shared by Webis Group: https://huggingface.co/webis
We are contacting the dataset owners to inform them about the issue you found. We'll keep you updated of their reply. | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Thanks for reporting this @xflashxx. I'll have a look and get back to you on this. | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 16 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Thanks for reporting this @xflashxx. I'll have a look and get back to you on this. | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Hi @xflashxx and @albertvillanova,
I have updated the files with de-duplicated splits. Apparently the debate portals from which part of the examples were sourced had unique timestamps for some examples (up to 6%; updated counts in the README) without any actual content updated that lead to "new" items. The length of `ids_validation` and `ids_testing` is zero.
Regarding impact on scores:
1. We employed automatic evaluation (on a separate set of 1000 examples) only to justify the exclusion of the smaller models for manual evaluation (due to budget constraints). I am confident the ranking still stands (unsurprisingly, the bigger models doing better than those trained on the smaller splits). We also highlight this in the paper.
2. The examples used for manual evaluation have no overlap with any splits (also because they do not have any ground truth as we applied the trained models on an unlabeled sample to test its practical usage). I've added these two files to the dataset repository.
Hope this helps! | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 164 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Hi @xflashxx and @albertvillanova,
I have updated the files with de-duplicated splits. Apparently the debate portals from which part of the examples were sourced had unique timestamps for some examples (up to 6%; updated counts in the README) without any actual content updated that lead to "new" items. The length of `ids_validation` and `ids_testing` is zero.
Regarding impact on scores:
1. We employed automatic evaluation (on a separate set of 1000 examples) only to justify the exclusion of the smaller models for manual evaluation (due to budget constraints). I am confident the ranking still stands (unsurprisingly, the bigger models doing better than those trained on the smaller splits). We also highlight this in the paper.
2. The examples used for manual evaluation have no overlap with any splits (also because they do not have any ground truth as we applied the trained models on an unlabeled sample to test its practical usage). I've added these two files to the dataset repository.
Hope this helps! | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Thanks @shahbazsyed for your fast fix.
As a side note:
- Your email appearing as Point of Contact in the dataset README has a typo: @uni.leipzig.de instead of @uni-leipzig.de
- Your commits on the Hub are not linked to your profile on the Hub: this is because we use the email address to make this link; the email address used in your commit author and the email address set on your Hub account settings. | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 74 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Thanks @shahbazsyed for your fast fix.
As a side note:
- Your email appearing as Point of Contact in the dataset README has a typo: @uni.leipzig.de instead of @uni-leipzig.de
- Your commits on the Hub are not linked to your profile on the Hub: this is because we use the email address to make this link; the email address used in your commit author and the email address set on your Hub account settings. | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4248 | conll2003 dataset loads original data. | Thanks for reporting @sue99.
Unfortunately. I'm not able to reproduce your problem:
```python
In [1]: import datasets
...: from datasets import load_dataset
...: dataset = load_dataset("conll2003")
In [2]: dataset
Out[2]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 14042
})
validation: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3251
})
test: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3454
})
})
In [3]: dataset["train"][0]
Out[3]:
{'id': '0',
'tokens': ['EU',
'rejects',
'German',
'call',
'to',
'boycott',
'British',
'lamb',
'.'],
'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7],
'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0],
'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0]}
```
Just guessing: might be the case that you are calling `load_dataset` from a working directory that contains a local folder named `conll2003` (containing the raw data files)? If that is the case, `datasets` library gives precedence to the local folder over the dataset on the Hub. | ## Describe the bug
I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text.
Is this a bug or should I use another dataset_name like `lhoestq/conll2003` ?
## Steps to reproduce the bug
```python
import datasets
from datasets import load_dataset
dataset = load_dataset("conll2003")
```
## Expected results
{
"chunk_tags": [11, 12, 12, 21, 13, 11, 11, 21, 13, 11, 12, 13, 11, 21, 22, 11, 12, 17, 11, 21, 17, 11, 12, 12, 21, 22, 22, 13, 11, 0],
"id": "0",
"ner_tags": [0, 3, 4, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"pos_tags": [12, 22, 22, 38, 15, 22, 28, 38, 15, 16, 21, 35, 24, 35, 37, 16, 21, 15, 24, 41, 15, 16, 21, 21, 20, 37, 40, 35, 21, 7],
"tokens": ["The", "European", "Commission", "said", "on", "Thursday", "it", "disagreed", "with", "German", "advice", "to", "consumers", "to", "shun", "British", "lamb", "until", "scientists", "determine", "whether", "mad", "cow", "disease", "can", "be", "transmitted", "to", "sheep", "."]
}
## Actual results
```python
print(dataset)
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 219554
})
test: Dataset({
features: ['text'],
num_rows: 50350
})
validation: Dataset({
features: ['text'],
num_rows: 55044
})
})
```
```python
for i in range(20):
print(dataset['train'][i])
{'text': '-DOCSTART- -X- -X- O'}
{'text': ''}
{'text': 'EU NNP B-NP B-ORG'}
{'text': 'rejects VBZ B-VP O'}
{'text': 'German JJ B-NP B-MISC'}
{'text': 'call NN I-NP O'}
{'text': 'to TO B-VP O'}
{'text': 'boycott VB I-VP O'}
{'text': 'British JJ B-NP B-MISC'}
{'text': 'lamb NN I-NP O'}
{'text': '. . O O'}
{'text': ''}
{'text': 'Peter NNP B-NP B-PER'}
{'text': 'Blackburn NNP I-NP I-PER'}
{'text': ''}
{'text': 'BRUSSELS NNP B-NP B-LOC'}
{'text': '1996-08-22 CD I-NP O'}
{'text': ''}
{'text': 'The DT B-NP O'}
{'text': 'European NNP I-NP B-ORG'}
```
| 158 | conll2003 dataset loads original data.
## Describe the bug
I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text.
Is this a bug or should I use another dataset_name like `lhoestq/conll2003` ?
## Steps to reproduce the bug
```python
import datasets
from datasets import load_dataset
dataset = load_dataset("conll2003")
```
## Expected results
{
"chunk_tags": [11, 12, 12, 21, 13, 11, 11, 21, 13, 11, 12, 13, 11, 21, 22, 11, 12, 17, 11, 21, 17, 11, 12, 12, 21, 22, 22, 13, 11, 0],
"id": "0",
"ner_tags": [0, 3, 4, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"pos_tags": [12, 22, 22, 38, 15, 22, 28, 38, 15, 16, 21, 35, 24, 35, 37, 16, 21, 15, 24, 41, 15, 16, 21, 21, 20, 37, 40, 35, 21, 7],
"tokens": ["The", "European", "Commission", "said", "on", "Thursday", "it", "disagreed", "with", "German", "advice", "to", "consumers", "to", "shun", "British", "lamb", "until", "scientists", "determine", "whether", "mad", "cow", "disease", "can", "be", "transmitted", "to", "sheep", "."]
}
## Actual results
```python
print(dataset)
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 219554
})
test: Dataset({
features: ['text'],
num_rows: 50350
})
validation: Dataset({
features: ['text'],
num_rows: 55044
})
})
```
```python
for i in range(20):
print(dataset['train'][i])
{'text': '-DOCSTART- -X- -X- O'}
{'text': ''}
{'text': 'EU NNP B-NP B-ORG'}
{'text': 'rejects VBZ B-VP O'}
{'text': 'German JJ B-NP B-MISC'}
{'text': 'call NN I-NP O'}
{'text': 'to TO B-VP O'}
{'text': 'boycott VB I-VP O'}
{'text': 'British JJ B-NP B-MISC'}
{'text': 'lamb NN I-NP O'}
{'text': '. . O O'}
{'text': ''}
{'text': 'Peter NNP B-NP B-PER'}
{'text': 'Blackburn NNP I-NP I-PER'}
{'text': ''}
{'text': 'BRUSSELS NNP B-NP B-LOC'}
{'text': '1996-08-22 CD I-NP O'}
{'text': ''}
{'text': 'The DT B-NP O'}
{'text': 'European NNP I-NP B-ORG'}
```
Thanks for reporting @sue99.
Unfortunately. I'm not able to reproduce your problem:
```python
In [1]: import datasets
...: from datasets import load_dataset
...: dataset = load_dataset("conll2003")
In [2]: dataset
Out[2]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 14042
})
validation: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3251
})
test: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3454
})
})
In [3]: dataset["train"][0]
Out[3]:
{'id': '0',
'tokens': ['EU',
'rejects',
'German',
'call',
'to',
'boycott',
'British',
'lamb',
'.'],
'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7],
'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0],
'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0]}
```
Just guessing: might be the case that you are calling `load_dataset` from a working directory that contains a local folder named `conll2003` (containing the raw data files)? If that is the case, `datasets` library gives precedence to the local folder over the dataset on the Hub. | [
0.0448263213,
0.2318243235,
0.0067998567,
0.4537388086,
0.0293568652,
0.0392917953,
0.3254444003,
0.3471554816,
-0.4062146246,
-0.0317827091,
-0.1551049054,
0.396732986,
0.0610170625,
0.2233855128,
0.008579554,
0.1582965702,
0.2671114206,
0.3820191026,
-0.0271611772,
-0.1606874615,
-0.4656360447,
0.0440823101,
-0.2697820365,
0.060622409,
-0.3774574101,
0.2913784385,
0.1227748021,
0.3359757662,
-0.1259002537,
-0.3003683388,
0.3819499016,
0.1937045306,
0.2219436765,
0.2603473961,
-0.0001243889,
-0.0192409959,
0.2649604976,
-0.2659655213,
-0.2194975466,
-0.0826447904,
0.0838628486,
-0.0763314664,
0.2452257574,
-0.2941708267,
-0.2550196946,
-0.012199929,
-0.3003134429,
-0.3858022392,
0.2921506763,
0.270347029,
0.0988749266,
0.0368201211,
-0.3032774627,
0.0794728771,
0.4664376676,
-0.0261675809,
-0.1455048472,
0.3974698782,
0.129563868,
0.1230803877,
0.2120419145,
0.3488538265,
-0.1668091416,
0.1446722895,
0.0597898588,
0.1589240432,
-0.0465197712,
0.0158078913,
0.0245220475,
0.2006985992,
0.4102185667,
-0.0978350341,
-0.2401052713,
-0.1350582391,
0.0551175326,
-0.5829328299,
0.0788267702,
-0.0865387544,
-0.1946164817,
0.2578684986,
-0.2410968542,
-0.3459315002,
-0.1064889282,
0.1776340306,
-0.4502919912,
0.4956228435,
-0.0230797045,
0.2011940628,
-0.145647049,
0.1024948061,
0.6498841047,
-0.0235611573,
-0.1814509332,
-0.0730721951,
-0.194299683,
-0.0079776458,
-0.3065361977,
-0.1740090251,
0.0824810639,
0.1755888462,
-0.0958349705,
0.0836770386,
0.0349669009,
-0.2090182155,
0.1432762891,
-0.0487688333,
0.2355433702,
0.3679767549,
0.1002839282,
-0.1127094254,
-0.1059295908,
-0.0394406579,
-0.3138516843,
0.1820118725,
-0.0448712818,
-0.2669908106,
0.3142269552,
-0.2509042621,
-0.3820787072,
0.3532239199,
-0.2207642049,
-0.0794888139,
-0.1489764899,
0.4608438313,
-0.1466075629,
0.1574845314,
0.2900689244,
0.2347575426,
0.0691084862,
-0.3828029633,
-0.1133400276,
-0.4285889566,
-0.1298417598,
0.0042580734,
0.0020649568,
-0.2637699544,
0.2054966688,
0.0208826605,
-0.0669932514,
-0.2369274944,
-0.0468032621,
0.0075568184,
0.3068053126,
-0.0581651106,
-0.090438202,
0.2091644555,
0.0500965677,
-0.1468729675,
0.0231251679,
0.455719918,
-0.4526998699,
-0.240528211,
-0.5648736358,
0.0862321332,
-0.2498576939,
-0.0523241498,
0.4259244204,
-0.0984318331,
0.1287536174,
-0.0735684112,
-0.011968663,
-0.0385855287,
-0.4588788152,
-0.1618784219,
0.2753043175,
0.3777204752,
-0.4564000368,
-0.089375332,
-0.1668397635,
-0.043664597,
0.1516934186,
0.1373060644,
-0.068086639,
0.1844154745,
-0.2494932711,
-0.2349236161,
0.4245717525,
-0.3693083227,
-0.536866188,
0.1885433346,
0.0789401904,
0.357196182,
0.009639143,
-0.1867367476,
0.3557707667,
-0.0149558019,
0.2415635437,
0.0584281124,
0.2991384864,
-0.2032725215,
-0.2133903205,
-0.1440140009,
0.3277707994,
0.0643184558,
-0.1588292569,
0.179164052,
-0.1458713561,
0.028194597,
0.3759071827,
0.1061835811,
-0.0201194994,
0.2149078697,
0.2030422091,
0.2246910185,
0.0999900475,
0.1039069816,
-0.5491190553,
-0.0174118802,
-0.0111466795,
-0.0002314913,
0.3011357188,
-0.2209811956,
-0.6124382615,
0.0368050896,
-0.2436043769,
-0.2261929363,
0.0205768682,
0.2948037684,
0.0325972959,
0.1576065421,
-0.0238153357,
0.2894471288,
-0.1627153903,
0.0982214361,
-0.0393994115,
0.2551585734,
0.0820789859,
-0.1566713452,
-0.1504649669,
0.1728754044,
0.1502112001,
-0.021898713,
-0.0750624388,
0.4087532163,
0.2389223576,
0.1045098603,
-0.2892371416,
-0.055869054,
0.1279190332,
-0.0362013578,
0.0113982186,
0.1972478479,
0.0669183657,
-0.0113805067,
-0.0289708693,
0.2905336618,
0.4044435322,
-0.0951409489,
-0.1479786783,
-0.0788538605,
0.202597931,
-0.3363836408,
-0.0616735145,
-0.5342962146,
0.067145735,
0.2042281479,
0.3849778175,
0.1495521218,
-0.4110219479,
-0.1194099784,
0.4259318113,
-0.1068047434,
-0.0188124236,
0.1522651613,
-0.395200789,
-0.0963495299,
-0.0067036478,
0.0417489037,
0.347537905,
0.103856042,
-0.0541248284,
0.3582326472,
0.1383917183,
-0.049898576,
0.2774566412,
-0.1249296516,
0.1905676425,
0.3771478832,
-0.0433056913,
0.0040437924,
-0.1961155236,
0.1931494772,
0.1315931231,
0.0697517097,
-0.4316930771,
-0.0107637327,
-0.4004230499,
-0.1993741542,
-0.2595609426,
-0.3125596642,
-0.0159784947,
-0.0665677637,
-0.0501014963,
0.190109998,
-0.0187664721,
0.2329669148,
-0.4545711875,
0.1926630735,
0.0963276774,
-0.1528948694,
-0.2002650201,
-0.0582925826,
-0.3965318203,
-0.0043565328,
-0.0353185534,
-0.2426276952,
0.1594927162,
-0.5326331854,
0.1088377759,
-0.0712841898,
-0.2739363611,
0.425052315,
0.0242706481,
0.4644916058,
-0.0129252831,
-0.1039478406,
0.0907666013,
-0.1227237508,
-0.0615621097,
-0.0262912828,
-0.1114422753,
-0.1609793603,
0.1638056487,
0.1557527184,
-0.1190382838,
-0.4507129788,
-0.0496529229,
-0.1502767205,
-0.2716255784,
-0.0403764173,
0.1571302414,
0.0939809605,
-0.1552083343,
-0.0362653546,
-0.0016259452,
0.1693565995,
-0.5893480182,
-0.1293580681,
0.343084842,
-0.1169871464,
-0.2645248473,
-0.1576336622,
-0.2251275331,
-0.1706332415,
0.0185389761,
-0.4960561395,
0.2375543118,
0.2370987684,
0.0064401547,
-0.1153423935,
-0.2045422047,
0.209196493,
-0.0124957487,
0.2053453475,
-0.3234427571,
-0.2191362381,
0.0102569144,
-0.1244441047,
0.3511466682,
0.0816166997,
0.2880916297,
-0.1590131521,
0.4117560983,
0.1371786743,
-0.0638942793,
0.358792305,
-0.2820608616,
0.3791356087,
-0.1336128414,
-0.1000809222,
-0.2800198197,
-0.1389624625,
-0.0447697639,
0.5035549402,
-0.0996688828,
-0.1894102097,
-0.2123968005,
0.184133485,
-0.3997634053,
-0.0752697289,
-0.2055016905,
-0.3744496703,
0.2014377862,
0.1998991966,
0.3714770377,
0.2333239466,
-0.3209350109,
-0.0063639171,
0.1335989535,
0.1837019026,
-0.2681546807,
-0.3475033641,
0.3508737087,
-0.3033733666,
0.3854838908,
0.2486662716,
0.3580044508,
0.1939322352,
-0.2862458527,
0.1997600645,
0.0656307414,
0.8118964434,
-0.0560126603,
-0.018728653,
0.2588201165,
0.1150069311,
-0.3377585709,
-0.1234739423,
-0.23011446,
-0.1990335137,
0.5778025389,
0.5648505092,
-0.0911604688,
-0.2139631808,
0.2724898458,
-0.0198360812,
-0.3167949319,
-0.0646509081,
-0.2320542634,
-0.0946555361,
-0.0838568732,
-0.3629365563,
-0.2585020959,
0.1377018094,
-0.1955691576,
0.0247167088,
-0.1076179743,
0.1010637581,
0.2200922966,
0.2147052884,
0.5110974908,
0.1184478104,
0.4294701219,
0.1276708543,
0.3374727368,
0.2366152853,
0.7253125906,
0.1274916977,
-0.4262500107,
-0.0106026065,
-0.1449640542,
0.3050517738,
0.2206737995,
0.0901063755,
-0.091127798,
-0.2644488513,
-0.2653597593,
-0.3320485055,
0.1787532866,
0.4158866405,
-0.199222967,
-0.7025408745,
-0.3890787065,
0.360642314,
0.0741620511,
-0.2769097984,
0.043284297,
-0.2629130483,
-0.3517567813,
0.2905833721,
0.1150009707,
0.8994577527,
0.1430159658,
0.4274524152,
0.3634417653,
-0.3952364624,
0.111082159,
-0.0205736831,
-0.2090783566,
-0.431315124,
-0.1580788046,
-0.0806100294,
0.037256442,
0.0491713136,
0.0806295797,
-0.1051356867,
-0.0498271957,
-0.2751236558,
-0.0941779986,
0.319616437,
0.1775959134,
0.2612681687,
0.0993127301,
0.2685211599,
-0.0299386531,
0.0513394326,
0.1928394884,
-0.1283206046,
0.0267831292,
-0.1855323166,
-0.300106436,
-0.1545196474,
0.2412196547,
0.0283781849,
-0.0305856727,
0.1856676042,
-0.6402321458,
-0.122516267,
0.1703584939,
-0.0035864518,
0.2636041045,
-0.1846423596,
0.1819834262,
0.4903283417,
0.0415697843,
0.2928009927,
0.1037720144,
0.0895311311,
0.0246707555,
-0.2007724643,
0.1153419092,
0.0806885585,
-0.4143515527,
-0.0595343821,
0.0861209333,
0.1210318357,
-0.6722032428,
-0.3613201678,
0.0571854711,
0.4202467799,
-0.3415966034,
0.0749874413,
-0.2167281806,
-0.1588734835,
0.0113781029,
0.0443975478,
-0.4761115313,
-0.2427614182,
0.3422328532,
0.2764312625,
-0.0383292101,
0.4763402343,
-0.0641798899,
0.0150514739,
-0.0508520193,
0.383204937,
0.0621606186,
-0.2465202361,
0.0730824918,
0.1785504371,
0.0266786329,
-0.1042826846,
0.3788186014,
0.041200038,
-0.0291108713,
-0.0670221224,
-0.3240647018,
-0.0876728967,
0.0363564678,
0.0486578047,
0.2218828201,
0.1922198236,
0.1220965832,
-0.3005678356,
-0.1893497258,
-0.2056241035,
0.16054672,
0.2333850861,
0.1566520333,
0.1670348197,
0.1870233864,
-0.0678555518,
-0.0557462573,
0.0927194655,
0.0075184377,
0.0955781192,
-0.1315968484,
-0.3383884132,
0.2081458718,
-0.0203089938,
-0.4359892309,
-0.0875207707,
-0.0088573648,
-0.0798544437,
-0.0164643358,
0.0702304319,
0.3948937654,
0.173593238,
0.4346024096,
-0.2620294094,
0.1062548831,
-0.2132829577,
0.1215981022,
-0.0955534354,
0.5005697608,
-0.0120179774,
0.3111376762,
-0.223328203,
0.1292882413,
-0.1104627773,
-0.0446113199,
-0.0600312427,
0.0630705431,
0.4374804497,
-0.3671010137,
0.238483429,
0.2255637646,
0.273766607,
0.5754968524,
-0.6401849389,
-0.2723144591,
0.2303488702,
0.1132742167,
-0.2634979486,
-0.2263035476,
0.0483341664,
-0.0594335534,
-0.153984949,
0.2939557135,
0.1693708748,
0.034254469,
0.0266157463,
-0.0478071347,
0.2798761129,
0.4823154211,
0.4603537917,
0.4028947055,
0.033135809,
0.1546129882,
0.2473224699,
0.1213043854,
-0.0176284555,
0.3462450504,
0.534522891,
-0.0707586557,
0.0872700885,
0.3172734976,
0.0460392237,
-0.2671715617,
0.2488611788,
0.1500927806,
-0.558566153,
0.4539009333,
-0.1025522128,
0.0002930399,
0.2550254166,
-0.0647052377,
-0.4226824045,
0.0967773199,
-0.1073005572,
-0.3337792754,
-0.180399552,
-0.1400976032,
-0.0132589722,
0.2832758129,
-0.1806479096,
-0.1493061781,
-0.1125817448,
0.1093202084,
-0.2914686799,
-0.0463855974,
0.2536255717,
-0.0152512444,
0.0207339041,
-0.3651191294,
0.4534761906,
-0.0987001806,
0.1673193872,
0.4461270273,
0.2015666813,
0.3215470612,
0.2438428104,
0.0453629345,
-0.224915415,
-0.0603554994,
-0.0188972056,
-0.0501581132,
0.479619652,
0.321141541,
0.0869680718,
0.3520107269,
0.0748954266,
-0.115868248,
0.1930804402,
0.3312725127,
0.1350973994,
-0.5197607279,
-0.0029890202,
-0.0665477887,
-0.0068049952,
0.0587399453,
-0.086200431,
-0.0988120064,
0.2534838319,
0.460280925,
0.179531619,
0.218418479,
-0.0255507026,
0.0257954057,
-0.1640746742,
0.2948088944,
0.2935834229,
0.259326756,
-0.1189205498,
-0.5376132727,
-0.365034163,
0.4552611411,
0.02605257,
-0.217589125,
0.2880805135,
-0.206568256,
0.039876055,
0.2750070095,
-0.1226881966,
-0.0429733507,
-0.4455729425,
0.0510441251,
-0.1831437945,
-0.2848451436,
-0.1695933789,
0.3079339266,
-0.1426435858,
-0.5672039986,
-0.0112061789,
-0.1254392415,
-0.0898240507,
-0.1454678923,
-0.1141540483,
0.2307456583,
-0.0363692194,
0.67678684,
0.1204654053,
0.559949398,
-0.1479395926,
0.0848999172,
0.001002158,
-0.2422677726,
-0.2128595561,
0.2053864598,
-0.0060776048,
-0.1210276559,
-0.0895693824,
-0.0751503706,
0.0402023084,
0.3531614542,
0.3253371418,
-0.0580936559,
-0.3416033983,
-0.0733063221,
-0.0769854411,
-0.2192609459,
0.0087087741,
0.4589926898,
-0.1489325464,
0.2275440544,
-0.061094638,
-0.1805742085,
0.4301487505,
-0.2160041332,
-0.112476103,
-0.1248575971,
0.1237566099,
-0.1776825488,
-0.1918596625,
-0.5386752486,
0.006613974,
0.6520334482,
-0.0433419831,
-0.217286855,
0.2099923342,
-0.0338595696,
-0.1074008569,
0.0191083886,
0.8981156349,
0.2726399302,
-0.301077038,
-0.0329165272,
-0.2696448565
] |
https://github.com/huggingface/datasets/issues/4247 | The data preview of XGLUE | Thanks for reporting @czq1999.
Note that the dataset viewer uses the dataset in streaming mode and that not all datasets support streaming yet.
That is the case for XGLUE dataset (as the error message points out): this must be refactored to support streaming. | It seems that something wrong with the data previvew of XGLUE | 43 | The data preview of XGLUE
It seems that something wrong with the data previvew of XGLUE
Thanks for reporting @czq1999.
Note that the dataset viewer uses the dataset in streaming mode and that not all datasets support streaming yet.
That is the case for XGLUE dataset (as the error message points out): this must be refactored to support streaming. | [
-0.5521460772,
-0.2582035363,
-0.0797492862,
0.0360034965,
0.12222258,
-0.0657666773,
0.1930060834,
0.3570640087,
-0.1430572718,
0.2119454741,
0.055040326,
0.1502947807,
-0.0410023369,
0.2117510885,
-0.1211941168,
-0.1035284176,
-0.0353827253,
0.1561267525,
-0.0141941961,
-0.0330404416,
-0.1638244838,
-0.0195095297,
-0.1646510512,
0.3171937168,
-0.0606554225,
-0.1546962708,
0.1191888079,
0.1771352589,
-0.3687257767,
-0.251747489,
0.048193343,
-0.0355642661,
0.0474689826,
0.1351370811,
-0.0000888003,
0.0975460485,
0.499886781,
0.0236747134,
-0.0040276949,
0.0430624001,
-0.5484801531,
-0.1978577971,
0.0120648965,
0.0357297137,
-0.1740079373,
-0.2559501529,
0.0317936838,
-0.258189261,
0.3807075322,
0.2280840278,
0.4184271395,
0.259681344,
0.1005621254,
-0.3380866051,
0.1627213359,
-0.1984017789,
-0.2186639905,
0.2013801932,
0.2523840964,
0.0612889044,
-0.1150902584,
0.4063470364,
-0.0525492467,
0.0802041069,
-0.0007664168,
-0.1896661967,
0.1441680938,
-0.2202507257,
-0.0034507073,
0.1116089076,
0.4408992231,
-0.2135464847,
-0.2312538773,
-0.0532954,
0.1221787259,
-0.1537505984,
0.1411561817,
0.1134509295,
-0.0791075155,
0.0225289539,
-0.1311250627,
-0.1233579516,
-0.0834708884,
0.0190361682,
-0.1158148125,
0.1515354216,
-0.2204077542,
0.0935247242,
0.0400299467,
0.0098798834,
0.3467471898,
0.0021415912,
-0.3371056616,
-0.0921910629,
-0.2756007314,
-0.0092165191,
0.1530337334,
0.0866193399,
0.1142404303,
0.0124367746,
0.2963167429,
0.1788162887,
0.1145540625,
0.1492967308,
0.1443773508,
0.0063181575,
0.1353472918,
-0.1249778047,
0.2567706704,
-0.1090278327,
0.0714021623,
-0.1256189048,
-0.045323085,
-0.3390521705,
-0.3305176497,
0.0790421069,
0.3232431412,
-0.2281997502,
-0.5085455179,
0.0586189032,
-0.086222738,
0.2371060401,
0.0133403474,
0.2523847818,
0.011840432,
-0.0609504953,
0.1921246797,
0.2921146154,
-0.1393810511,
-0.444250524,
-0.2571558058,
-0.0267886687,
-0.2318235189,
0.0185312796,
0.0397347473,
-0.0855085179,
0.1430328637,
0.3098410964,
0.0545445941,
-0.0494296998,
0.1769216061,
-0.0053493772,
-0.1644320786,
0.1022186279,
0.1171389893,
0.1411959678,
0.3257892728,
0.193459034,
0.1594231278,
0.0555143245,
-0.0925413519,
-0.3519898653,
-0.2170336246,
0.3913525641,
0.1139276847,
0.0193204936,
0.0463148095,
0.2266849428,
-0.0758409798,
-0.2602515817,
-0.1324853003,
-0.0882875696,
-0.0058107548,
-0.1294579506,
0.1881761402,
0.1792836934,
-0.4906890094,
0.0086223874,
-0.1623191535,
-0.2964856625,
0.1888167411,
0.1101518124,
-0.2921293974,
-0.1897447258,
-0.3092607856,
0.2067917436,
0.169479847,
-0.0443647355,
-0.2102379948,
0.35328722,
-0.2146450728,
-0.0993909091,
-0.1346426308,
0.0191709641,
0.114986077,
-0.0534745194,
-0.0772179514,
0.1124432683,
-0.1030418277,
0.0120291896,
-0.2893353105,
0.0005555217,
-0.0712343007,
0.1524401605,
-0.0978633985,
-0.0107702184,
0.1681022942,
-0.0946865007,
0.2791934609,
-0.0286808629,
-0.0196651239,
0.2471819371,
0.2010483295,
-0.0535161346,
-0.2038792819,
0.1294535995,
-0.1301684827,
0.0219901279,
-0.2245401442,
0.0344933458,
0.1799128801,
-0.1156206205,
-0.1588547826,
0.0118489927,
-0.2184139788,
-0.1471191347,
0.3905778825,
0.1543702185,
-0.2248548865,
0.0624483265,
0.0316681787,
0.2059285492,
-0.1893921942,
-0.1226753443,
-0.1013594568,
0.1288669854,
-0.2235949337,
-0.2537909746,
0.1782698184,
-0.0796513855,
0.1483991593,
0.0468082614,
-0.0979934856,
0.4576847851,
-0.1106766686,
0.3131673038,
0.0578980707,
-0.0316651873,
0.0888571888,
-0.3673214912,
0.1442393959,
0.1342940927,
0.0536242984,
0.0234001148,
-0.0137657179,
0.268056035,
0.3848105371,
-0.1862356812,
-0.0494354665,
0.1401991546,
0.2628091276,
0.0197653547,
0.0169973169,
-0.1004290134,
0.2598278522,
-0.0537176654,
0.1447052956,
-0.1470516473,
-0.589155972,
0.1186017841,
0.2547588348,
0.0846184045,
0.1656753123,
0.0385913402,
-0.3462205529,
-0.1641684473,
0.1908355504,
0.0473727547,
0.1791192591,
0.1736556888,
0.1208590642,
0.2070504278,
-0.1533684582,
-0.2157839239,
0.1489031613,
-0.1565757394,
0.0104546696,
0.2434560955,
-0.0707005039,
-0.172941342,
-0.3832855821,
-0.0078735193,
0.1105625331,
0.1302899569,
-0.223397091,
-0.1889370978,
-0.1945175081,
-0.3783278465,
0.1052727401,
-0.0435157381,
-0.1147699654,
-0.3888983428,
0.2681459486,
0.173401624,
-0.2077656984,
0.3642449975,
0.0482304841,
0.1135423258,
0.255458951,
0.2944926322,
-0.2945454717,
0.0477109402,
-0.1489838213,
0.2767943442,
0.0773842558,
0.105759494,
0.2363510132,
0.0023717328,
0.2875940502,
-0.5034889579,
-0.1081457287,
0.1368195713,
-0.105138734,
0.3165581524,
0.1269257218,
0.115410462,
-0.0635661632,
-0.1252474487,
0.2586612999,
-0.3754669428,
-0.1659443676,
0.1718783975,
0.0599514097,
-0.1648587286,
-0.0685431212,
-0.0946601629,
-0.1687821448,
-0.5968081355,
-0.1450992525,
-0.2440503985,
-0.0441098399,
0.0445260219,
0.1199458614,
0.1396405101,
0.0683397427,
-0.1283340305,
-0.3231895566,
-0.3418361247,
0.1736714244,
-0.4000792801,
-0.4610069394,
0.0563647747,
0.304046154,
0.0783052742,
0.0988640785,
-0.366119206,
-0.0197482202,
-0.0886613354,
-0.0998033136,
0.1655189842,
-0.2427546829,
0.2755675614,
0.0208516605,
-0.3227523565,
-0.2797146738,
-0.0393538103,
-0.0108566266,
-0.0028734326,
0.1209481135,
-0.1615372896,
0.42413342,
0.0330663137,
0.3610997796,
0.2005713135,
-0.0201753434,
0.4782108366,
-0.0398558043,
0.3483369648,
-0.2137272805,
-0.2196187526,
0.1571885198,
-0.0155497687,
0.1307075918,
0.1171849445,
-0.128036499,
-0.3299545348,
-0.1291407794,
0.1918248385,
-0.0339179523,
-0.2152148485,
-0.1436080039,
0.0536142178,
0.1752668917,
0.0860759765,
0.0899617672,
0.0171171278,
-0.0058955494,
0.1368829757,
0.1068954915,
0.2494581342,
0.0503327399,
-0.068173945,
0.1989186853,
-0.4176978767,
0.3623743355,
-0.1199958995,
0.2870174348,
-0.3253901601,
-0.0929886103,
0.1295041442,
-0.050442744,
0.3899905086,
-0.4723747075,
-0.0357739702,
0.1887574196,
-0.0969027355,
-0.2844595015,
0.0200058892,
-0.2781220376,
0.2029189914,
0.2391070873,
0.1134161726,
-0.112757571,
-0.0822158381,
0.0985105857,
-0.0453674085,
-0.0273774359,
-0.0657631755,
-0.1614568979,
-0.1378906965,
-0.2015746832,
0.0716691315,
-0.0484451391,
0.0807668269,
-0.0933652595,
-0.1674913019,
-0.2401316017,
-0.1003740951,
-0.0248497184,
-0.0145216426,
0.3208483458,
-0.107077077,
0.1772949696,
0.128663376,
0.2434810847,
0.0978457332,
0.2661282122,
0.4694970846,
-0.0833020434,
0.2263551652,
-0.1434777826,
-0.080107592,
0.2601220906,
-0.0687138364,
0.0073690191,
-0.1286224574,
0.310926348,
-0.1854413599,
0.2073257864,
0.3285135031,
-0.0449942127,
-0.4785012007,
-0.1785286963,
0.2692704797,
-0.0147371227,
-0.0271396544,
0.5025724769,
-0.0647863671,
-0.12769036,
-0.1850714833,
0.1077349558,
0.8800461888,
0.1142832488,
-0.0899107233,
0.3177762032,
0.021184545,
0.0283668097,
-0.2200540602,
0.2012290061,
-0.3765649199,
-0.6541301012,
-0.0327610746,
-0.0707627162,
0.270960331,
0.0226940941,
-0.2272661477,
-0.138682425,
0.1341641247,
-0.1526644975,
-0.0345207453,
0.1952272207,
-0.2495958656,
0.0558346882,
0.0673730522,
0.4123190343,
-0.0071960972,
0.0087515544,
-0.1405392736,
-0.2405251414,
0.2326080948,
-0.160011664,
-0.3383329511,
0.2639125884,
-0.0319995768,
0.2076877207,
-0.3543663621,
-0.3552226424,
0.1069651917,
0.0823101103,
-0.0808592886,
0.0806723088,
-0.2209139317,
0.2187526375,
0.0241246037,
-0.2068980783,
-0.0445785895,
0.081348367,
0.1094150394,
-0.137040481,
-0.1077270955,
0.2859911919,
-0.0337827913,
-0.3879058659,
-0.3286479115,
-0.0725391358,
-0.1307973862,
-0.1706965864,
-0.1825227886,
-0.0412674211,
0.0177684203,
-0.3295808136,
0.3135082424,
0.1085683554,
-0.1356164664,
-0.0458404124,
-0.0553107187,
-0.2272298485,
-0.1436351985,
0.1944602281,
-0.1426937431,
0.086320132,
0.2301365733,
0.2361226678,
-0.237771526,
-0.3332372606,
0.1059671491,
0.5130283833,
-0.3311471343,
0.0334054306,
-0.0919215158,
-0.0275390111,
0.1932061017,
0.1819594353,
0.0509073883,
0.0393696949,
0.0890539587,
-0.3977228403,
-0.1354021281,
0.1011825651,
-0.1433086395,
0.2461346984,
-0.1202489287,
-0.0113866581,
0.2810584903,
-0.0483444408,
-0.5324070454,
-0.0346177444,
-0.2254307866,
0.0565117784,
-0.1240025014,
-0.0125021376,
0.1739706695,
0.0825434923,
0.3056165576,
0.0868495703,
-0.291618228,
-0.3337891102,
0.0792846754,
0.0378843695,
0.1909122616,
-0.1154778227,
0.1360284835,
-0.0415458009,
-0.2581203282,
0.0131730856,
0.1893973649,
-0.0571646765,
-0.1303885877,
-0.2224416882,
0.0088686636,
0.066112943,
0.0954345912,
-0.0000360708,
0.1544941217,
0.2473229617,
-0.225189805,
-0.0854763761,
0.0820187777,
-0.1213197783,
0.1186573729,
0.1290965229,
0.1451541334,
0.2000406533,
0.2620746493,
-0.2296316028,
0.2303405255,
0.0509793237,
0.5795539021,
0.1953478158,
-0.2200174928,
0.0694681555,
0.2382894605,
0.4371349812,
-0.2901331782,
-0.0810231119,
-0.1057265401,
0.0237616468,
0.1335316747,
-0.1296890527,
0.0365252271,
0.1743269861,
0.2442430109,
0.09044604,
0.223467052,
-0.2483456582,
0.1572927982,
0.2192920148,
-0.2122694552,
0.0420236886,
0.1838708818,
0.2643999457,
0.0645242259,
0.4474712014,
-0.0357692391,
0.2503798306,
0.4118991494,
0.1534194946,
-0.051711075,
-0.4567914903,
-0.1654102653,
0.2854644358,
-0.1106866226,
0.2408400476,
-0.0368203558,
-0.206678167,
-0.3084462285,
-0.1652568877,
-0.2829465568,
0.2251295745,
-0.156585753,
0.1057023779,
-0.15012604,
-0.0290102866,
-0.0839287713,
0.0965965018,
0.0853969529,
0.1304503977,
0.0881676301,
-0.010328006,
0.0014166513,
-0.3124621511,
0.1866514683,
0.1243985966,
-0.0496830419,
-0.1923836321,
0.2792298794,
0.0679599568,
0.2431176007,
0.2229131311,
0.2615630329,
0.3149984181,
0.3592893481,
-0.1065546572,
0.1611934006,
-0.0224200916,
-0.1065513119,
-0.0514805689,
0.213266924,
0.3184192777,
0.1891270876,
0.4521962702,
0.3416354656,
-0.2847613394,
0.0285844002,
0.0824435875,
0.2877831161,
-0.0394684635,
0.0603213832,
-0.1804062128,
0.0129316747,
-0.2140002698,
-0.2524725795,
-0.3626011014,
0.1341647357,
0.2779537737,
-0.0573732965,
0.0608397238,
-0.2207947522,
0.2240383923,
0.0185108725,
0.3115840554,
0.2200146765,
0.3199820817,
-0.1696661711,
-0.4481986761,
-0.5387302041,
0.2690964341,
0.1627668887,
-0.1289751232,
-0.0211375821,
0.0885348469,
0.0734685063,
0.0323299579,
0.0923317894,
0.1481535435,
0.0682153031,
0.1205114275,
-0.2371272296,
0.1074822843,
0.1288466454,
0.0833278894,
0.0973422602,
-0.2023861706,
0.2269893885,
0.0614400916,
0.322116524,
-0.0713998899,
0.0139159905,
-0.1850627959,
-0.1512145698,
0.4982863069,
0.0726112127,
0.3154709935,
-0.2162081897,
-0.0156562962,
-0.2933341563,
-0.3914507926,
-0.2921658754,
0.1774439812,
0.1055825204,
0.2452090532,
0.1289096624,
-0.1556754857,
-0.3152858317,
0.1707618237,
-0.002240605,
0.1797238588,
-0.2788821757,
0.2797351778,
-0.0498793535,
0.0337855741,
0.0612014495,
0.0514838658,
0.0692074001,
0.144329384,
-0.2086677104,
-0.3880790472,
0.3675264418,
0.0075769229,
-0.1696309298,
0.1411445588,
0.0742179602,
0.128146708,
-0.0471746586,
-0.451697737,
0.1112244129,
0.2001671791,
-0.061863374,
-0.0193020776,
0.053533107,
0.055670429,
-0.0660278499,
-0.0361535996,
0.3800405264,
0.2515885532,
-0.2122579068,
0.3719681799,
-0.1326687783
] |
https://github.com/huggingface/datasets/issues/4241 | NonMatchingChecksumError when attempting to download GLUE | Hi :)
I think your issue may be related to the older `nlp` library. I was able to download `glue` with the latest version of `datasets`. Can you try updating with:
```py
pip install -U datasets
```
Then you can download:
```py
from datasets import load_dataset
ds = load_dataset("glue", "rte")
``` | ## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
| 51 | NonMatchingChecksumError when attempting to download GLUE
## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
Hi :)
I think your issue may be related to the older `nlp` library. I was able to download `glue` with the latest version of `datasets`. Can you try updating with:
```py
pip install -U datasets
```
Then you can download:
```py
from datasets import load_dataset
ds = load_dataset("glue", "rte")
``` | [
0.101099439,
-0.0903691947,
0.0413370356,
0.3583336473,
0.1278837472,
0.0999461636,
-0.1866522282,
0.334582448,
0.4952836633,
-0.1053451374,
-0.1394158453,
0.1311296523,
-0.0658304244,
-0.1457225382,
0.0314150602,
0.1970958412,
-0.0847944096,
0.1571736187,
-0.1785757393,
0.0489648841,
-0.1996880174,
0.4330622554,
-0.1195221171,
0.0400452688,
0.0142885242,
0.1346404105,
0.0299508572,
0.1365995109,
-0.0534300283,
-0.2835942805,
0.3455580473,
-0.0092943152,
0.0213740561,
-0.0361829326,
-0.0001216182,
-0.0855286568,
0.5257833004,
-0.0884022266,
-0.1348887384,
-0.2959697545,
-0.3802344501,
-0.5503143072,
0.006686362,
-0.0961863622,
0.0966700912,
0.3906281888,
0.1722315997,
-0.0305031128,
0.0656267628,
0.1305409968,
0.180880338,
0.4154954553,
0.3072189689,
0.0706758127,
0.4552328885,
-0.2016348839,
-0.0543924384,
0.3369392753,
0.2345918119,
-0.260339886,
-0.124706462,
0.2610802948,
-0.1840945035,
0.2867007852,
0.0961391777,
-0.0830371231,
0.1531162858,
-0.3792448044,
0.0930569321,
0.3519522548,
0.1773492843,
-0.361227721,
-0.1388936937,
-0.3100644648,
0.0114055201,
0.0077702655,
0.4205722511,
0.301694721,
-0.175581485,
-0.0385964662,
-0.1704820544,
0.0901117697,
0.1161946356,
0.2151723206,
0.3863200545,
0.1761415601,
-0.087891154,
0.0824937895,
0.1476433873,
-0.1005117148,
-0.0082349181,
-0.1965816915,
-0.1290692687,
0.24699682,
-0.3864904046,
-0.0444015078,
-0.0158369057,
0.6644971371,
0.186142832,
0.2925412357,
-0.0091917403,
-0.0300581548,
-0.1446768641,
0.164421767,
0.1793481559,
0.3003145456,
0.1885636002,
-0.0740519464,
0.0794374123,
0.1653708518,
0.0496846437,
0.2257265747,
0.056852635,
-0.2562083304,
0.2907201052,
0.0941365734,
0.1916123182,
-0.3092260957,
-0.3434298933,
0.1204253882,
-0.1495734155,
0.0023383056,
0.025519168,
0.1229358986,
-0.3592915833,
0.1400871575,
-0.0234438665,
0.1242101341,
-0.2180605829,
-0.2892225385,
-0.1690935791,
0.1320880949,
-0.2442625016,
-0.1127693355,
0.3060969412,
-0.2334617972,
0.2131917179,
0.0010495752,
-0.2308911979,
-0.1710312515,
0.0370338336,
0.0423265658,
-0.1760254949,
0.295311898,
0.1015686244,
0.2707751393,
0.1043538973,
-0.0709829181,
-0.1861618459,
-0.102114819,
-0.1591663361,
-0.3060447574,
-0.0472279191,
0.1242613345,
-0.6101945639,
-0.2129115164,
0.2077888101,
-0.262126416,
0.2258610874,
-0.2571165264,
0.1307114065,
-0.179134652,
-0.2084932625,
-0.3809019625,
-0.1731003225,
0.4396273494,
0.1264043599,
-0.0725834295,
-0.2183259875,
-0.2440307289,
0.3470179141,
0.1256851703,
-0.0186994001,
-0.2357407659,
-0.371214956,
0.2576881945,
0.4374666214,
-0.3115463555,
-0.615057528,
0.3652874231,
-0.1699478179,
0.3036535382,
0.0924033225,
0.2290534526,
-0.1915282905,
-0.087327823,
0.1295110136,
0.1814254671,
0.1030652151,
-0.005244426,
-0.3172659278,
-0.278853327,
0.4282628894,
-0.0053898059,
-0.1309675574,
0.0855244547,
0.1065865979,
-0.1652021259,
0.2864404619,
0.2859564126,
0.0689797699,
0.1830971539,
0.1853307039,
0.0494204648,
0.0265989304,
-0.3794974983,
-0.7864261866,
0.3265945613,
-0.4060383141,
0.0249191094,
-0.106302239,
-0.0472038314,
-0.2402269989,
-0.1339791268,
-0.1107330397,
-0.0111942384,
0.0565652251,
0.2184283584,
0.5315441489,
-0.0785875022,
-0.0103803882,
0.5592598915,
0.1698939651,
0.1405278146,
-0.564915359,
0.2597989142,
-0.0109072048,
-0.1134623364,
0.046749115,
0.299439162,
0.303380549,
-0.120820336,
-0.0709302127,
0.4346717298,
0.0428387783,
0.1447127461,
-0.1746304333,
0.1481646597,
-0.106459789,
-0.0558200665,
0.0434386469,
0.5169597864,
0.0588609949,
-0.0042680879,
0.0824160874,
0.2952294052,
-0.0130675109,
0.3511835635,
0.0464502908,
0.3188763261,
0.1552820951,
-0.2473225445,
-0.1867333502,
-0.1834181398,
0.4812346995,
-0.1627133787,
0.0470326841,
0.1648611873,
-0.1568653733,
0.0219856817,
0.2626872361,
0.042109821,
0.1508561373,
-0.0483361483,
-0.0710478723,
-0.023757793,
0.08806137,
0.7036220431,
0.5566291213,
0.1360370964,
-0.0144872293,
0.1789040416,
-0.3305061162,
-0.0790420398,
0.0582510531,
0.1588170528,
0.0356884897,
0.4164256752,
0.3046116233,
-0.0988504663,
-0.3169163167,
0.0769681334,
-0.0149084106,
0.176068157,
-0.4334349632,
-0.1039408967,
-0.3194669187,
-0.5301976204,
-0.4441395402,
-0.2081441581,
-0.4918985367,
-0.3554680347,
-0.07142286,
0.2184194773,
0.0206688885,
0.1269293129,
-0.3943141401,
-0.1560414732,
-0.2795504928,
-0.1816097647,
-0.1269617677,
0.2198214233,
-0.3106191754,
-0.093555674,
0.2491829991,
0.1067038178,
0.4436160028,
-0.1633411646,
0.0350370854,
-0.4348596931,
-0.2006056458,
0.0641363636,
-0.0205983389,
0.0061178314,
0.5700236559,
-0.0590784885,
0.0419958718,
-0.2881832123,
0.374630332,
-0.2893909812,
-0.260016948,
0.2931277156,
0.0300070271,
0.0975061134,
-0.1183499917,
-0.0836592987,
-0.3031469584,
-0.4439691305,
0.2543147802,
0.1339675188,
0.2206530422,
0.3498122096,
-0.2994973958,
0.1899003536,
-0.1344214827,
0.1561602503,
-0.1234245524,
-0.1800743192,
0.3823332191,
0.1078597605,
-0.235804826,
0.0475925058,
-0.2174375951,
0.0270332843,
0.1604256183,
-0.4568112195,
-0.3046094775,
-0.4139271677,
-0.1937386841,
0.1440287828,
0.1968616992,
0.332200408,
-0.053044863,
0.0235060174,
-0.1448433846,
-0.2895031571,
0.1296968758,
0.2003522664,
0.392129302,
-0.0308010187,
0.2616482675,
0.1037624404,
0.2109063566,
0.4287275374,
0.1137284935,
0.2275078446,
0.0305451397,
0.423660934,
0.1387219429,
-0.2945234478,
-0.2855525911,
-0.1358964294,
0.2412418276,
0.0119880298,
0.0928435698,
-0.1104437262,
-0.2139082998,
-0.0450056233,
-0.1938159168,
-0.1534049809,
-0.0897170082,
-0.0478372537,
0.1450727731,
0.3582278788,
-0.055048015,
-0.0820687488,
-0.4420183599,
0.0190822035,
0.1489125192,
-0.1681204587,
0.1072147638,
-0.3244412243,
-0.1569762975,
-0.2332658768,
0.4224811792,
0.2047771364,
0.5302052498,
0.1784477085,
-0.1068870053,
0.1369622052,
0.0134925898,
0.5240296125,
-0.4548467398,
0.2998638749,
0.1082687154,
0.0853429064,
-0.5271272659,
-0.2226740271,
-0.1550499052,
0.1280427277,
0.5835399628,
0.1110405996,
-0.3861952126,
-0.0021311222,
0.3476581275,
0.1632363349,
-0.0477409847,
-0.5096207261,
-0.3427680731,
-0.0641896054,
-0.2162979543,
-0.2348634899,
-0.0099572847,
0.2137233019,
0.2468941063,
0.1556548774,
0.16094625,
-0.1925711483,
0.239227742,
-0.2256061733,
0.1833854765,
0.2023949623,
0.312672317,
0.0283417143,
0.303884089,
-0.5334825516,
0.5812399983,
-0.250261724,
-0.0965881422,
-0.0533786826,
0.0705083609,
0.0591904595,
0.1837901324,
0.025740156,
-0.0927427635,
0.1311678886,
-0.0610182546,
0.09626735,
-0.095465593,
0.1578193307,
-0.0061605247,
-0.1256788075,
-0.0959205627,
0.434027195,
0.0074956762,
-0.1353242844,
0.1509392709,
0.0718254894,
-0.080947727,
0.1126614809,
-0.2794699371,
0.9074915051,
0.1125950143,
0.0741699263,
0.0045774709,
-0.4574742615,
0.6560720205,
0.0360037461,
0.1841710657,
-0.4681775272,
-0.0851659104,
0.0496151708,
-0.261518091,
-0.1642327458,
0.0274852887,
-0.006474114,
0.5504635572,
0.0768271163,
0.1455234885,
0.0318949521,
0.2013777196,
-0.406156987,
-0.144018352,
-0.1673384905,
0.0405152701,
-0.2237807661,
0.7441254258,
-0.0709148645,
-0.1167253777,
0.1838988066,
-0.2870452404,
-0.4019761086,
0.239795506,
-0.3036515713,
0.134959206,
0.6077682376,
0.2034539282,
-0.1703047454,
-0.0500934683,
-0.0167699344,
0.0080901738,
-0.303635031,
-0.1195635349,
0.5427804589,
-0.0673611239,
0.4546707869,
0.1928350925,
0.3588045537,
-0.0666383132,
0.0899356008,
-0.1705348641,
0.0071052848,
-0.2070071399,
-0.0303747077,
0.0095550409,
0.0591516718,
-0.1838960499,
-0.3897128105,
0.0308423713,
0.1203036383,
-0.1013379171,
0.072641626,
0.2210551351,
-0.1793540865,
0.0849410892,
-0.0889282152,
-0.2805382907,
-0.0868550986,
0.639326036,
0.0148906158,
-0.3292558193,
0.2348353416,
-0.0278209765,
-0.2667513788,
-0.0802187398,
-0.2215144932,
-0.1944372803,
-0.5449784398,
0.0643362105,
-0.1978404373,
0.0986502022,
-0.0496320277,
0.182775408,
0.3685891628,
0.1563546807,
0.099389106,
-0.5790286064,
-0.0155591294,
0.1929788589,
0.1808634996,
0.1447670013,
-0.3560783863,
-0.0422383547,
0.3165520132,
-0.1422809064,
-0.2135180533,
-0.0034620608,
-0.1260601133,
-0.096875079,
0.3603157699,
0.0452148877,
-0.0137697766,
0.1061980724,
0.0720569789,
0.1168643013,
-0.3167319894,
-0.0884864181,
-0.1527445465,
0.1726250648,
0.0576401427,
-0.0788737386,
0.1688433439,
-0.2341234833,
-0.0215544645,
-0.0241283383,
-0.2971818149,
0.1161065325,
-0.1856836975,
0.0559199229,
0.088491708,
-0.1751755178,
0.0337446369,
0.2654244602,
-0.3047029972,
0.001371084,
0.0488989241,
0.0569290556,
-0.0179379135,
0.1143395379,
-0.0383437909,
-0.2061151862,
-0.198125422,
0.0067026219,
0.1854364425,
-0.3370613158,
-0.1511667222,
0.1748447865,
0.3853068948,
0.3413951099,
-0.1019892246,
-0.0074286209,
0.2127907872,
0.1538853049,
-0.3357884288,
0.1115773246,
0.4395034313,
0.1744283885,
-0.0161778908,
0.2779522538,
0.1178094745,
-0.3787252009,
0.6482075453,
0.1150418594,
0.3300818503,
-0.4150668979,
-0.0901857764,
0.3015820682,
0.0400961339,
-0.1584826261,
0.2599176764,
-0.1141850427,
-0.0285268351,
0.0114712603,
0.2364491671,
0.0076606059,
-0.1684253514,
0.1250667125,
-0.0540065989,
-0.2802579701,
0.0911533833,
0.4770280719,
0.1346816123,
0.2644304931,
0.055842407,
0.4429790974,
-0.1982059032,
0.1950742155,
-0.255790621,
0.1115606725,
-0.0445170701,
-0.0840536505,
0.2956761122,
-0.1029948443,
-0.237701878,
0.1543627679,
-0.0267936829,
-0.0149095794,
0.3393276036,
0.0043530553,
-0.025488507,
-0.4787937701,
-0.1214683875,
0.1192184389,
0.1126679257,
-0.4481798112,
0.2938625515,
-0.1179510653,
-0.0347725824,
-0.1189952195,
0.3610725105,
0.3655899167,
0.3478463292,
-0.1562780589,
-0.0862891525,
-0.0487674214,
0.1346686035,
-0.2093447596,
0.6926753521,
0.1750020236,
0.0286190622,
0.3427121043,
-0.0125410035,
-0.1084620878,
-0.0726463348,
-0.135587424,
-0.2506990135,
-0.0602509975,
0.7412414551,
-0.1498290449,
0.006200803,
-0.3056187034,
0.222334072,
-0.5224171877,
-0.1330801398,
-0.0056433156,
0.0394575633,
0.1830089688,
-0.1927319914,
0.05845204,
-0.221444115,
0.2404245287,
0.2617166042,
0.1175741926,
-0.1271021813,
-0.2558740675,
-0.797365427,
0.2613494396,
-0.214177832,
-0.0239094347,
0.0780986771,
0.2264165729,
-0.2673750222,
0.1264847517,
0.0694472119,
0.4015747905,
-0.2880692482,
-0.1184730306,
-0.0242753103,
-0.1497562081,
0.1772222072,
-0.2353207022,
0.1729653627,
-0.4081312418,
0.1238645762,
-0.0667568073,
-0.007959052,
-0.0747523829,
-0.0572951362,
-0.1151289791,
0.2697470784,
-0.0042096167,
0.2056191117,
0.4210775495,
0.1774130911,
-0.1560994387,
-0.479380846,
-0.1635795236,
-0.2104367018,
0.209322691,
-0.064231351,
0.2189341486,
-0.1647112966,
0.149555102,
-0.2719324529,
0.0607586466,
0.1878090352,
0.2095699459,
-0.0007250449,
0.153549239,
-0.2875117362,
0.2761823535,
-0.1154032946,
0.1351731271,
0.1231259778,
0.2047526389,
-0.2425276786,
-0.4174506366,
0.4511767626,
-0.3280895948,
-0.3406977952,
-0.0047030034,
0.553231895,
-0.0642698333,
-0.3466106057,
-0.5323320627,
-0.0979315862,
0.3741297126,
0.0277189799,
0.0151234446,
0.2187353671,
-0.4449160695,
0.0492247939,
0.1646099538,
-0.0157135259,
0.2340741754,
-0.3325507641,
0.2653930187,
-0.2055070698
] |
https://github.com/huggingface/datasets/issues/4241 | NonMatchingChecksumError when attempting to download GLUE | This appears to work. Thank you!
On Wed, Apr 27, 2022, 1:18 PM Steven Liu ***@***.***> wrote:
> Hi :)
>
> I think your issue may be related to the older nlp library. I was able to
> download glue with the latest version of datasets. Can you try updating
> with:
>
> pip install -U datasets
>
> Then you can download:
>
> from datasets import load_datasetds = load_dataset("glue", "rte")
>
> β
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/4241#issuecomment-1111267650>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACJUEKLUP2EL7ES3RRWJRPTVHFZHBANCNFSM5UPJBYXA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
| ## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
| 110 | NonMatchingChecksumError when attempting to download GLUE
## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
This appears to work. Thank you!
On Wed, Apr 27, 2022, 1:18 PM Steven Liu ***@***.***> wrote:
> Hi :)
>
> I think your issue may be related to the older nlp library. I was able to
> download glue with the latest version of datasets. Can you try updating
> with:
>
> pip install -U datasets
>
> Then you can download:
>
> from datasets import load_datasetds = load_dataset("glue", "rte")
>
> β
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/4241#issuecomment-1111267650>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACJUEKLUP2EL7ES3RRWJRPTVHFZHBANCNFSM5UPJBYXA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
| [
0.101099439,
-0.0903691947,
0.0413370356,
0.3583336473,
0.1278837472,
0.0999461636,
-0.1866522282,
0.334582448,
0.4952836633,
-0.1053451374,
-0.1394158453,
0.1311296523,
-0.0658304244,
-0.1457225382,
0.0314150602,
0.1970958412,
-0.0847944096,
0.1571736187,
-0.1785757393,
0.0489648841,
-0.1996880174,
0.4330622554,
-0.1195221171,
0.0400452688,
0.0142885242,
0.1346404105,
0.0299508572,
0.1365995109,
-0.0534300283,
-0.2835942805,
0.3455580473,
-0.0092943152,
0.0213740561,
-0.0361829326,
-0.0001216182,
-0.0855286568,
0.5257833004,
-0.0884022266,
-0.1348887384,
-0.2959697545,
-0.3802344501,
-0.5503143072,
0.006686362,
-0.0961863622,
0.0966700912,
0.3906281888,
0.1722315997,
-0.0305031128,
0.0656267628,
0.1305409968,
0.180880338,
0.4154954553,
0.3072189689,
0.0706758127,
0.4552328885,
-0.2016348839,
-0.0543924384,
0.3369392753,
0.2345918119,
-0.260339886,
-0.124706462,
0.2610802948,
-0.1840945035,
0.2867007852,
0.0961391777,
-0.0830371231,
0.1531162858,
-0.3792448044,
0.0930569321,
0.3519522548,
0.1773492843,
-0.361227721,
-0.1388936937,
-0.3100644648,
0.0114055201,
0.0077702655,
0.4205722511,
0.301694721,
-0.175581485,
-0.0385964662,
-0.1704820544,
0.0901117697,
0.1161946356,
0.2151723206,
0.3863200545,
0.1761415601,
-0.087891154,
0.0824937895,
0.1476433873,
-0.1005117148,
-0.0082349181,
-0.1965816915,
-0.1290692687,
0.24699682,
-0.3864904046,
-0.0444015078,
-0.0158369057,
0.6644971371,
0.186142832,
0.2925412357,
-0.0091917403,
-0.0300581548,
-0.1446768641,
0.164421767,
0.1793481559,
0.3003145456,
0.1885636002,
-0.0740519464,
0.0794374123,
0.1653708518,
0.0496846437,
0.2257265747,
0.056852635,
-0.2562083304,
0.2907201052,
0.0941365734,
0.1916123182,
-0.3092260957,
-0.3434298933,
0.1204253882,
-0.1495734155,
0.0023383056,
0.025519168,
0.1229358986,
-0.3592915833,
0.1400871575,
-0.0234438665,
0.1242101341,
-0.2180605829,
-0.2892225385,
-0.1690935791,
0.1320880949,
-0.2442625016,
-0.1127693355,
0.3060969412,
-0.2334617972,
0.2131917179,
0.0010495752,
-0.2308911979,
-0.1710312515,
0.0370338336,
0.0423265658,
-0.1760254949,
0.295311898,
0.1015686244,
0.2707751393,
0.1043538973,
-0.0709829181,
-0.1861618459,
-0.102114819,
-0.1591663361,
-0.3060447574,
-0.0472279191,
0.1242613345,
-0.6101945639,
-0.2129115164,
0.2077888101,
-0.262126416,
0.2258610874,
-0.2571165264,
0.1307114065,
-0.179134652,
-0.2084932625,
-0.3809019625,
-0.1731003225,
0.4396273494,
0.1264043599,
-0.0725834295,
-0.2183259875,
-0.2440307289,
0.3470179141,
0.1256851703,
-0.0186994001,
-0.2357407659,
-0.371214956,
0.2576881945,
0.4374666214,
-0.3115463555,
-0.615057528,
0.3652874231,
-0.1699478179,
0.3036535382,
0.0924033225,
0.2290534526,
-0.1915282905,
-0.087327823,
0.1295110136,
0.1814254671,
0.1030652151,
-0.005244426,
-0.3172659278,
-0.278853327,
0.4282628894,
-0.0053898059,
-0.1309675574,
0.0855244547,
0.1065865979,
-0.1652021259,
0.2864404619,
0.2859564126,
0.0689797699,
0.1830971539,
0.1853307039,
0.0494204648,
0.0265989304,
-0.3794974983,
-0.7864261866,
0.3265945613,
-0.4060383141,
0.0249191094,
-0.106302239,
-0.0472038314,
-0.2402269989,
-0.1339791268,
-0.1107330397,
-0.0111942384,
0.0565652251,
0.2184283584,
0.5315441489,
-0.0785875022,
-0.0103803882,
0.5592598915,
0.1698939651,
0.1405278146,
-0.564915359,
0.2597989142,
-0.0109072048,
-0.1134623364,
0.046749115,
0.299439162,
0.303380549,
-0.120820336,
-0.0709302127,
0.4346717298,
0.0428387783,
0.1447127461,
-0.1746304333,
0.1481646597,
-0.106459789,
-0.0558200665,
0.0434386469,
0.5169597864,
0.0588609949,
-0.0042680879,
0.0824160874,
0.2952294052,
-0.0130675109,
0.3511835635,
0.0464502908,
0.3188763261,
0.1552820951,
-0.2473225445,
-0.1867333502,
-0.1834181398,
0.4812346995,
-0.1627133787,
0.0470326841,
0.1648611873,
-0.1568653733,
0.0219856817,
0.2626872361,
0.042109821,
0.1508561373,
-0.0483361483,
-0.0710478723,
-0.023757793,
0.08806137,
0.7036220431,
0.5566291213,
0.1360370964,
-0.0144872293,
0.1789040416,
-0.3305061162,
-0.0790420398,
0.0582510531,
0.1588170528,
0.0356884897,
0.4164256752,
0.3046116233,
-0.0988504663,
-0.3169163167,
0.0769681334,
-0.0149084106,
0.176068157,
-0.4334349632,
-0.1039408967,
-0.3194669187,
-0.5301976204,
-0.4441395402,
-0.2081441581,
-0.4918985367,
-0.3554680347,
-0.07142286,
0.2184194773,
0.0206688885,
0.1269293129,
-0.3943141401,
-0.1560414732,
-0.2795504928,
-0.1816097647,
-0.1269617677,
0.2198214233,
-0.3106191754,
-0.093555674,
0.2491829991,
0.1067038178,
0.4436160028,
-0.1633411646,
0.0350370854,
-0.4348596931,
-0.2006056458,
0.0641363636,
-0.0205983389,
0.0061178314,
0.5700236559,
-0.0590784885,
0.0419958718,
-0.2881832123,
0.374630332,
-0.2893909812,
-0.260016948,
0.2931277156,
0.0300070271,
0.0975061134,
-0.1183499917,
-0.0836592987,
-0.3031469584,
-0.4439691305,
0.2543147802,
0.1339675188,
0.2206530422,
0.3498122096,
-0.2994973958,
0.1899003536,
-0.1344214827,
0.1561602503,
-0.1234245524,
-0.1800743192,
0.3823332191,
0.1078597605,
-0.235804826,
0.0475925058,
-0.2174375951,
0.0270332843,
0.1604256183,
-0.4568112195,
-0.3046094775,
-0.4139271677,
-0.1937386841,
0.1440287828,
0.1968616992,
0.332200408,
-0.053044863,
0.0235060174,
-0.1448433846,
-0.2895031571,
0.1296968758,
0.2003522664,
0.392129302,
-0.0308010187,
0.2616482675,
0.1037624404,
0.2109063566,
0.4287275374,
0.1137284935,
0.2275078446,
0.0305451397,
0.423660934,
0.1387219429,
-0.2945234478,
-0.2855525911,
-0.1358964294,
0.2412418276,
0.0119880298,
0.0928435698,
-0.1104437262,
-0.2139082998,
-0.0450056233,
-0.1938159168,
-0.1534049809,
-0.0897170082,
-0.0478372537,
0.1450727731,
0.3582278788,
-0.055048015,
-0.0820687488,
-0.4420183599,
0.0190822035,
0.1489125192,
-0.1681204587,
0.1072147638,
-0.3244412243,
-0.1569762975,
-0.2332658768,
0.4224811792,
0.2047771364,
0.5302052498,
0.1784477085,
-0.1068870053,
0.1369622052,
0.0134925898,
0.5240296125,
-0.4548467398,
0.2998638749,
0.1082687154,
0.0853429064,
-0.5271272659,
-0.2226740271,
-0.1550499052,
0.1280427277,
0.5835399628,
0.1110405996,
-0.3861952126,
-0.0021311222,
0.3476581275,
0.1632363349,
-0.0477409847,
-0.5096207261,
-0.3427680731,
-0.0641896054,
-0.2162979543,
-0.2348634899,
-0.0099572847,
0.2137233019,
0.2468941063,
0.1556548774,
0.16094625,
-0.1925711483,
0.239227742,
-0.2256061733,
0.1833854765,
0.2023949623,
0.312672317,
0.0283417143,
0.303884089,
-0.5334825516,
0.5812399983,
-0.250261724,
-0.0965881422,
-0.0533786826,
0.0705083609,
0.0591904595,
0.1837901324,
0.025740156,
-0.0927427635,
0.1311678886,
-0.0610182546,
0.09626735,
-0.095465593,
0.1578193307,
-0.0061605247,
-0.1256788075,
-0.0959205627,
0.434027195,
0.0074956762,
-0.1353242844,
0.1509392709,
0.0718254894,
-0.080947727,
0.1126614809,
-0.2794699371,
0.9074915051,
0.1125950143,
0.0741699263,
0.0045774709,
-0.4574742615,
0.6560720205,
0.0360037461,
0.1841710657,
-0.4681775272,
-0.0851659104,
0.0496151708,
-0.261518091,
-0.1642327458,
0.0274852887,
-0.006474114,
0.5504635572,
0.0768271163,
0.1455234885,
0.0318949521,
0.2013777196,
-0.406156987,
-0.144018352,
-0.1673384905,
0.0405152701,
-0.2237807661,
0.7441254258,
-0.0709148645,
-0.1167253777,
0.1838988066,
-0.2870452404,
-0.4019761086,
0.239795506,
-0.3036515713,
0.134959206,
0.6077682376,
0.2034539282,
-0.1703047454,
-0.0500934683,
-0.0167699344,
0.0080901738,
-0.303635031,
-0.1195635349,
0.5427804589,
-0.0673611239,
0.4546707869,
0.1928350925,
0.3588045537,
-0.0666383132,
0.0899356008,
-0.1705348641,
0.0071052848,
-0.2070071399,
-0.0303747077,
0.0095550409,
0.0591516718,
-0.1838960499,
-0.3897128105,
0.0308423713,
0.1203036383,
-0.1013379171,
0.072641626,
0.2210551351,
-0.1793540865,
0.0849410892,
-0.0889282152,
-0.2805382907,
-0.0868550986,
0.639326036,
0.0148906158,
-0.3292558193,
0.2348353416,
-0.0278209765,
-0.2667513788,
-0.0802187398,
-0.2215144932,
-0.1944372803,
-0.5449784398,
0.0643362105,
-0.1978404373,
0.0986502022,
-0.0496320277,
0.182775408,
0.3685891628,
0.1563546807,
0.099389106,
-0.5790286064,
-0.0155591294,
0.1929788589,
0.1808634996,
0.1447670013,
-0.3560783863,
-0.0422383547,
0.3165520132,
-0.1422809064,
-0.2135180533,
-0.0034620608,
-0.1260601133,
-0.096875079,
0.3603157699,
0.0452148877,
-0.0137697766,
0.1061980724,
0.0720569789,
0.1168643013,
-0.3167319894,
-0.0884864181,
-0.1527445465,
0.1726250648,
0.0576401427,
-0.0788737386,
0.1688433439,
-0.2341234833,
-0.0215544645,
-0.0241283383,
-0.2971818149,
0.1161065325,
-0.1856836975,
0.0559199229,
0.088491708,
-0.1751755178,
0.0337446369,
0.2654244602,
-0.3047029972,
0.001371084,
0.0488989241,
0.0569290556,
-0.0179379135,
0.1143395379,
-0.0383437909,
-0.2061151862,
-0.198125422,
0.0067026219,
0.1854364425,
-0.3370613158,
-0.1511667222,
0.1748447865,
0.3853068948,
0.3413951099,
-0.1019892246,
-0.0074286209,
0.2127907872,
0.1538853049,
-0.3357884288,
0.1115773246,
0.4395034313,
0.1744283885,
-0.0161778908,
0.2779522538,
0.1178094745,
-0.3787252009,
0.6482075453,
0.1150418594,
0.3300818503,
-0.4150668979,
-0.0901857764,
0.3015820682,
0.0400961339,
-0.1584826261,
0.2599176764,
-0.1141850427,
-0.0285268351,
0.0114712603,
0.2364491671,
0.0076606059,
-0.1684253514,
0.1250667125,
-0.0540065989,
-0.2802579701,
0.0911533833,
0.4770280719,
0.1346816123,
0.2644304931,
0.055842407,
0.4429790974,
-0.1982059032,
0.1950742155,
-0.255790621,
0.1115606725,
-0.0445170701,
-0.0840536505,
0.2956761122,
-0.1029948443,
-0.237701878,
0.1543627679,
-0.0267936829,
-0.0149095794,
0.3393276036,
0.0043530553,
-0.025488507,
-0.4787937701,
-0.1214683875,
0.1192184389,
0.1126679257,
-0.4481798112,
0.2938625515,
-0.1179510653,
-0.0347725824,
-0.1189952195,
0.3610725105,
0.3655899167,
0.3478463292,
-0.1562780589,
-0.0862891525,
-0.0487674214,
0.1346686035,
-0.2093447596,
0.6926753521,
0.1750020236,
0.0286190622,
0.3427121043,
-0.0125410035,
-0.1084620878,
-0.0726463348,
-0.135587424,
-0.2506990135,
-0.0602509975,
0.7412414551,
-0.1498290449,
0.006200803,
-0.3056187034,
0.222334072,
-0.5224171877,
-0.1330801398,
-0.0056433156,
0.0394575633,
0.1830089688,
-0.1927319914,
0.05845204,
-0.221444115,
0.2404245287,
0.2617166042,
0.1175741926,
-0.1271021813,
-0.2558740675,
-0.797365427,
0.2613494396,
-0.214177832,
-0.0239094347,
0.0780986771,
0.2264165729,
-0.2673750222,
0.1264847517,
0.0694472119,
0.4015747905,
-0.2880692482,
-0.1184730306,
-0.0242753103,
-0.1497562081,
0.1772222072,
-0.2353207022,
0.1729653627,
-0.4081312418,
0.1238645762,
-0.0667568073,
-0.007959052,
-0.0747523829,
-0.0572951362,
-0.1151289791,
0.2697470784,
-0.0042096167,
0.2056191117,
0.4210775495,
0.1774130911,
-0.1560994387,
-0.479380846,
-0.1635795236,
-0.2104367018,
0.209322691,
-0.064231351,
0.2189341486,
-0.1647112966,
0.149555102,
-0.2719324529,
0.0607586466,
0.1878090352,
0.2095699459,
-0.0007250449,
0.153549239,
-0.2875117362,
0.2761823535,
-0.1154032946,
0.1351731271,
0.1231259778,
0.2047526389,
-0.2425276786,
-0.4174506366,
0.4511767626,
-0.3280895948,
-0.3406977952,
-0.0047030034,
0.553231895,
-0.0642698333,
-0.3466106057,
-0.5323320627,
-0.0979315862,
0.3741297126,
0.0277189799,
0.0151234446,
0.2187353671,
-0.4449160695,
0.0492247939,
0.1646099538,
-0.0157135259,
0.2340741754,
-0.3325507641,
0.2653930187,
-0.2055070698
] |
https://github.com/huggingface/datasets/issues/4238 | Dataset caching policy | Hi @loretoparisi, thanks for reporting.
There is an option to force the redownload of the data files (and thus not using previously download and cached data files): `load_dataset(..., download_mode="force_redownload")`.
Please, let me know if this fixes your problem.
I can confirm you that your dataset loads without any problem for me:
```python
In [2]: ds = load_dataset("loretoparisi/tatoeba-sentences", data_files={"train": "train.csv", "test": "test.csv"}, delimiter="\t", column_names=['label', 'text'])
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['label', 'text'],
num_rows: 8256449
})
test: Dataset({
features: ['label', 'text'],
num_rows: 2061204
})
})
``` | ## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
| 87 | Dataset caching policy
## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
Hi @loretoparisi, thanks for reporting.
There is an option to force the redownload of the data files (and thus not using previously download and cached data files): `load_dataset(..., download_mode="force_redownload")`.
Please, let me know if this fixes your problem.
I can confirm you that your dataset loads without any problem for me:
```python
In [2]: ds = load_dataset("loretoparisi/tatoeba-sentences", data_files={"train": "train.csv", "test": "test.csv"}, delimiter="\t", column_names=['label', 'text'])
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['label', 'text'],
num_rows: 8256449
})
test: Dataset({
features: ['label', 'text'],
num_rows: 2061204
})
})
``` | [
0.0123936096,
0.2971666455,
-0.0013778415,
0.2417485565,
0.2187064886,
0.223115772,
0.2011682987,
0.3845502436,
0.047587432,
-0.114898473,
-0.0990488455,
-0.2024639547,
-0.043204993,
-0.1892879307,
-0.1385836452,
0.0513460636,
0.111731194,
-0.0098836049,
0.2588098049,
0.0954153836,
-0.0737708434,
0.117863901,
-0.1670916528,
-0.0787959769,
-0.367393434,
0.0166204907,
-0.0899960846,
-0.069326736,
0.1066928729,
-0.6206914783,
0.2522139847,
0.072450839,
0.2016528398,
0.2368706912,
-0.0001263648,
-0.1024664342,
0.1549502164,
-0.0820231736,
-0.2950689793,
0.1641110778,
-0.0856227875,
-0.2982957065,
-0.0182767455,
-0.1425967813,
0.1807876229,
-0.0793440118,
-0.0192516819,
-0.516964674,
0.4846031964,
0.4770778716,
0.1433763802,
0.0347182937,
-0.0920592025,
0.2908972502,
0.2127339691,
0.3287257552,
-0.2183058113,
0.1611050218,
0.0954905748,
-0.0793986619,
-0.0012770453,
0.2234777808,
-0.3259975016,
0.0802005455,
0.1258689165,
0.0620938875,
-0.2099142671,
-0.0586495511,
0.564494431,
0.1177013293,
0.5416299105,
-0.2061926872,
-0.5126444697,
-0.4321560562,
-0.1185015589,
-0.2246769071,
0.5172954798,
0.1825536489,
-0.1643292904,
0.2353673428,
-0.3708197474,
-0.373465538,
0.0563546866,
-0.2482875437,
0.0125569962,
-0.0332550816,
-0.0691288114,
-0.0859221071,
-0.3153804243,
-0.3343613148,
-0.0250364002,
-0.1866436303,
-0.1754441261,
0.3207187057,
-0.4284889996,
0.2038650215,
0.0504361019,
0.3530401587,
0.0095372405,
-0.0568257086,
0.027709337,
-0.1132237166,
-0.012364368,
-0.103492476,
-0.0161370225,
0.5280759335,
0.3833264709,
0.2247730047,
0.4180749357,
0.1071605161,
-0.122192435,
-0.0596748814,
0.1085663661,
-0.2088311762,
0.4692986906,
0.2980872989,
0.0874011666,
-0.2639745772,
-0.4008611441,
0.3987272382,
0.0792521611,
-0.0435008071,
0.0809764564,
0.1182874888,
-0.2654319108,
0.2469131202,
-0.3109485805,
-0.0344651118,
-0.268201828,
-0.1473113,
-0.1426729262,
-0.0044866884,
-0.0936849862,
0.132989943,
0.3898324072,
-0.2782138586,
0.0940937549,
0.0914928094,
0.1383266151,
0.0380824693,
-0.1030144989,
-0.3550890386,
0.1618324965,
0.2283445895,
-0.3626394272,
0.0737591013,
0.2123936713,
-0.4472793937,
-0.0907512605,
0.0906872153,
-0.4696445465,
-0.2500249445,
-0.0396823399,
0.0299207047,
-0.2703045309,
-0.022016976,
-0.2011903077,
-0.1221617162,
0.7679854631,
-0.1301229149,
0.138694793,
-0.0607174523,
-0.2074858993,
-0.2486397624,
0.024135815,
0.7459709644,
-0.3978332579,
-0.0034805415,
0.0223981403,
0.3345763981,
0.118897818,
0.3893784881,
0.0250516441,
0.0138421245,
-0.4760307968,
0.1359723955,
-0.0107975667,
-0.3261241019,
-0.529450953,
0.2354720235,
-0.0219719596,
0.0438959263,
0.4805414081,
-0.1311895996,
0.3278713822,
-0.1496676803,
0.2312702388,
0.0843562931,
0.0208963789,
-0.0518474467,
-0.2929527164,
-0.2801833451,
0.1734400541,
-0.1514915377,
0.1381094903,
0.1100740582,
0.1490080208,
-0.1044298708,
0.1303943694,
-0.1028587148,
0.3173862398,
0.3218125105,
0.1996958405,
0.3361393511,
0.1940688938,
-0.0133269336,
-0.5634203553,
0.3336996734,
-0.1510709524,
-0.0487962477,
-0.5828678608,
-0.3374966979,
-0.0046597715,
-0.0452592149,
-0.3498365879,
-0.2340483963,
0.0109602707,
0.2944903672,
0.2093049139,
0.0774855912,
-0.3025777638,
0.5547483563,
-0.1514557749,
0.0356560126,
-0.3149839342,
0.0344057307,
0.0354634002,
-0.1176335961,
-0.2977709472,
0.1621287763,
0.1365372837,
-0.064266406,
-0.3484889269,
0.3423914909,
0.1021603718,
0.1183243543,
0.1725016236,
0.3512911797,
0.1473367959,
0.0455283821,
0.1205660775,
0.1925427765,
0.0520296842,
0.1880880445,
-0.2764337063,
0.4564831853,
-0.3377994597,
0.3060477674,
-0.1606560647,
-0.0844261348,
0.3575418591,
0.0633732304,
-0.0494333319,
-0.4019527137,
0.333889842,
-0.0775111541,
0.2583097219,
0.175124824,
-0.1588616669,
-0.1345626414,
0.4126013517,
0.2732482255,
0.0417792797,
0.1923985928,
0.1799691617,
-0.2073259801,
0.1034266353,
0.3869751394,
0.2926307023,
-0.0477646813,
-0.0585029423,
-0.075618431,
0.3888523281,
-0.2236433774,
0.1844119132,
-0.2422158718,
-0.5531631112,
0.3378501832,
0.3072144985,
0.324903816,
-0.2500666678,
-0.090403229,
0.112732932,
0.2663859129,
-0.3754593432,
-0.0502152964,
-0.4189833403,
-0.4062885642,
-0.221305728,
0.2324907035,
-0.37585783,
-0.1734998375,
-0.1743537933,
-0.1857518703,
-0.0724671707,
-0.0137710497,
-0.1813276261,
0.2174972445,
-0.023300264,
-0.3834765553,
-0.192536369,
-0.1037821546,
-0.1774395704,
-0.1540046334,
0.2394246906,
-0.2570165396,
0.1734674275,
-0.4991287589,
-0.1461903602,
-0.4262441397,
-0.1157522574,
-0.0820190161,
0.1450815648,
0.0396534279,
0.0955616161,
0.2199554443,
-0.2006958872,
-0.040311262,
0.3219614327,
-0.1443939805,
-0.0064132335,
0.1055593342,
0.3380680978,
0.0959964097,
-0.098111324,
-0.053235583,
-0.1494610608,
-0.2081453949,
0.1131935865,
-0.2404411733,
0.0058440561,
0.2641096711,
-0.2923790216,
-0.1000035182,
-0.1252763569,
0.1726918817,
-0.0822476,
-0.4895117879,
0.4340184033,
0.0677335933,
-0.1480996609,
0.0062358659,
0.3059183955,
-0.0152393244,
0.2202232629,
-0.5601280928,
0.0038386381,
-0.3910726011,
0.6649289131,
0.0708654448,
0.1502586901,
0.2555817366,
-0.0082984772,
0.0410320014,
0.0715589076,
-0.229875043,
0.0185086634,
0.1150453016,
0.1087584719,
0.2441776693,
0.3302660584,
0.1421008557,
0.5426904559,
0.0429681391,
0.150930196,
0.5023105741,
0.1774828583,
0.4783696532,
-0.1697043628,
-0.405867368,
0.100357987,
-0.1692298651,
-0.3635139465,
0.1804776788,
0.1689960063,
0.2567850053,
-0.2230032831,
-0.0252756365,
-0.1526254117,
-0.1645915806,
0.1331984699,
-0.4737531841,
0.4249721766,
0.1899668276,
-0.1046013162,
-0.2555206418,
-0.4037130177,
-0.0381988622,
0.1602144241,
0.2247751206,
0.1194292828,
-0.0459373556,
-0.1298491508,
-0.2810018957,
0.2904259861,
0.2295810878,
0.7262058258,
-0.1800182462,
0.1063002795,
0.0734071136,
0.023687087,
0.4988805056,
0.0758222267,
0.1158448383,
-0.0697383881,
0.0223625023,
-0.0014742869,
-0.2985979319,
0.3196669519,
0.4175270498,
-0.0420243815,
0.3266119361,
0.0154723227,
-0.2111925334,
-0.3601840436,
0.3441717923,
-0.2327989489,
-0.0587960407,
-0.1795741916,
-0.0160385463,
-0.1305052191,
0.0499700904,
0.0812160522,
0.0279196166,
0.1814074963,
0.4388046563,
-0.0173616689,
-0.0999618992,
0.0335623063,
-0.290666312,
0.3134853244,
-0.0131524103,
0.0989710987,
-0.0031805208,
0.1123435721,
0.0509871989,
0.4183158875,
-0.0882338881,
-0.3790273368,
-0.1777638197,
-0.3097430766,
0.0433739424,
0.1704265922,
-0.3094181418,
0.066776216,
0.0916776806,
0.2714404762,
-0.0596447326,
-0.0808525756,
0.1092197821,
-0.0210290384,
0.0516261198,
-0.4814636111,
0.3047750592,
0.2219609022,
-0.0486807972,
-0.0928844959,
0.2003460377,
-0.3756881356,
0.2023397535,
0.1964794397,
0.6847473383,
0.0886077285,
0.2667199671,
-0.199315697,
0.0768861175,
0.7398189902,
-0.3023540676,
0.1679845005,
-0.139753297,
0.1570091695,
-0.0610636733,
0.1408559978,
0.2116463929,
-0.0521290675,
0.0274901818,
0.451736778,
-0.3623845875,
0.3814866543,
0.1236767322,
-0.0703952387,
-0.3189992905,
-0.1327591389,
-0.0813927874,
-0.0686197728,
-0.2553735077,
0.0133006452,
-0.0459213965,
0.177303955,
0.0585879162,
-0.07296177,
-0.4974429011,
-0.1644382328,
-0.00921016,
0.1995892823,
0.0592707805,
-0.2529404461,
0.0294323899,
0.3690403998,
0.5244757533,
0.2263179719,
-0.0573306493,
0.0360638723,
0.1889661103,
0.1006129533,
0.008475285,
0.065368861,
0.1256021559,
0.0397162996,
-0.02072143,
-0.200255692,
-0.181614697,
-0.3541405797,
-0.1060072705,
0.1296260208,
0.0684420168,
-0.1870573759,
-0.0106380088,
-0.3841298521,
0.2449789941,
-0.0677821487,
0.0377356857,
0.244273439,
-0.0904849842,
0.0170532055,
-0.227882728,
-0.2219500393,
-0.0397297628,
0.3476566076,
0.2146355808,
-0.3745096326,
0.6968064904,
-0.0372173563,
-0.0972825512,
-0.1158877015,
-0.0167586803,
-0.1795276403,
-0.5390040278,
0.1157499105,
-0.1199075952,
0.0374232978,
-0.0242806133,
-0.0958934203,
0.1143272966,
0.0824373215,
-0.1354274154,
-0.5628747344,
-0.2980926633,
-0.2138111442,
0.0595666803,
0.0248917136,
0.1486716866,
-0.259583801,
-0.0783189908,
-0.1857479811,
-0.1310025305,
-0.0298326034,
-0.200262472,
0.075910531,
0.1904688776,
0.2171371877,
-0.1816458553,
-0.2052714378,
-0.0564482287,
0.097410053,
0.1939874291,
-0.0759069026,
-0.0130256489,
0.2139453739,
-0.0488216467,
-0.0661000162,
-0.2247196138,
-0.0492416322,
-0.0794053525,
-0.2644955516,
0.0302021205,
0.3578816652,
-0.0345588773,
0.4326807857,
-0.1031742245,
0.1572814733,
0.0363041013,
0.3256640732,
0.0226185322,
0.1994966269,
0.0368305296,
0.3876142204,
-0.1242569834,
0.1455946565,
-0.2493016124,
0.0340588689,
-0.2740900218,
-0.0498438142,
-0.0119052241,
-0.7176524997,
-0.0478915945,
0.3184981942,
0.2566046417,
0.530341208,
-0.0977987945,
-0.2668829262,
0.3888122439,
0.0267445073,
-0.1388439536,
-0.1028251126,
0.2636796534,
0.1904943585,
-0.1171443909,
0.1074459255,
0.344394207,
-0.2272538543,
0.0452655368,
0.0624142662,
0.6229783297,
-0.1713073701,
0.122295469,
0.3410710692,
0.2598594129,
0.0863364562,
0.1955925822,
0.1053774953,
-0.0311067309,
0.5883740187,
0.0327053741,
0.0543914661,
0.3945005834,
0.3909545839,
-0.3196645081,
-0.6323393583,
0.4486406446,
0.14229092,
-0.2467745394,
0.1446685642,
-0.0190155935,
0.3927976489,
-0.0767466947,
-0.2162495255,
-0.1495244503,
0.1239941195,
-0.3076715767,
-0.2275854647,
0.0462825745,
-0.2569926083,
-0.0426562428,
0.1699811369,
-0.0587928072,
0.3385640979,
0.2130113542,
-0.0027180943,
-0.2035451829,
-0.3313350081,
0.105897598,
0.0301937312,
0.3501743078,
-0.3610579371,
0.0734479576,
0.3541795611,
-0.1493665576,
0.0048905374,
0.190592438,
0.5870632529,
0.3003974855,
0.0680241734,
0.0731520951,
-0.2649991214,
0.0658928826,
-0.1408921778,
0.5814990401,
-0.2781247199,
-0.0510250293,
0.1392040402,
-0.0431959219,
-0.0150332609,
0.4320270717,
-0.1441588551,
0.3355379999,
-0.0652602464,
0.0472871624,
-0.0250149984,
-0.1433459073,
0.0552621633,
0.1071826965,
-0.1661215276,
-0.1895052046,
0.5579113364,
0.0092238765,
0.1001620144,
-0.2233538628,
0.0092601823,
-0.0416547954,
0.5770375133,
0.8015142679,
0.1574266106,
-0.0463093109,
0.0608372018,
-0.7923559546,
-0.0391496345,
-0.015249718,
0.0785267353,
0.0953041464,
0.0247142185,
-0.1123635992,
0.0399008282,
-0.1507737935,
0.1580253989,
-0.0342543423,
0.0070495615,
-0.18516545,
-0.0996041223,
0.0014868397,
0.1831905544,
0.0542866401,
-0.483975023,
0.2823937535,
-0.1108330563,
-0.0731429234,
-0.091878064,
-0.1048251688,
0.1755601317,
-0.1069601327,
0.0669329464,
0.4307732582,
0.1914646327,
0.3429851532,
-0.0721826926,
-0.3610788286,
0.1016121432,
-0.0766109973,
0.1687029749,
-0.0125959283,
0.4070680737,
-0.5156904459,
0.0264034979,
-0.1890791059,
0.4230325818,
-0.2197486013,
0.0602230467,
-0.0356812403,
-0.0848700479,
-0.0696710572,
0.0351364091,
0.0653060749,
0.2273832113,
0.0020751338,
0.1894111633,
-0.4079123437,
-0.2233608067,
0.321988672,
-0.6194617152,
-0.350741446,
-0.0883711502,
0.408141315,
0.1611013263,
-0.3031413555,
-0.3618788421,
0.1399899125,
0.3250719905,
0.0266627017,
-0.3687986135,
-0.0600638092,
-0.1723571718,
0.1622224897,
0.02654914,
0.4425603151,
0.0808607116,
0.07672894,
0.1723782867,
-0.1925548166
] |
https://github.com/huggingface/datasets/issues/4238 | Dataset caching policy | @albertvillanova thank you, it seems it still does not work using:
```python
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
download_mode="force_redownload"
)
```
[This](https://colab.research.google.com/drive/1EA6FWo5pHxU8rPHHRn24NlHqRPiOlPTr?usp=sharing) is my notebook!
The problem is that the download file's revision for `test.csv` is not correctly parsed
![Schermata 2022-04-27 alle 18 09 41](https://user-images.githubusercontent.com/163333/165563507-0be53eb6-8f61-49b0-b959-306e59281de3.png)
If you download that file `test.csv` from the repo, the line `\\N` is not there anymore (it was there at the first file upload).
My impression is that the Apache Arrow file is still cached - so server side, despite of enabling a forced download. For what I can see I get those two arrow files, but I cannot grep the bad line (`\\N`) since are binary files:
```
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/csv-test.arrow
!head /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/dataset_info.json
```
| ## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
| 125 | Dataset caching policy
## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
@albertvillanova thank you, it seems it still does not work using:
```python
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
download_mode="force_redownload"
)
```
[This](https://colab.research.google.com/drive/1EA6FWo5pHxU8rPHHRn24NlHqRPiOlPTr?usp=sharing) is my notebook!
The problem is that the download file's revision for `test.csv` is not correctly parsed
![Schermata 2022-04-27 alle 18 09 41](https://user-images.githubusercontent.com/163333/165563507-0be53eb6-8f61-49b0-b959-306e59281de3.png)
If you download that file `test.csv` from the repo, the line `\\N` is not there anymore (it was there at the first file upload).
My impression is that the Apache Arrow file is still cached - so server side, despite of enabling a forced download. For what I can see I get those two arrow files, but I cannot grep the bad line (`\\N`) since are binary files:
```
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/csv-test.arrow
!head /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/dataset_info.json
```
| [
0.0123936096,
0.2971666455,
-0.0013778415,
0.2417485565,
0.2187064886,
0.223115772,
0.2011682987,
0.3845502436,
0.047587432,
-0.114898473,
-0.0990488455,
-0.2024639547,
-0.043204993,
-0.1892879307,
-0.1385836452,
0.0513460636,
0.111731194,
-0.0098836049,
0.2588098049,
0.0954153836,
-0.0737708434,
0.117863901,
-0.1670916528,
-0.0787959769,
-0.367393434,
0.0166204907,
-0.0899960846,
-0.069326736,
0.1066928729,
-0.6206914783,
0.2522139847,
0.072450839,
0.2016528398,
0.2368706912,
-0.0001263648,
-0.1024664342,
0.1549502164,
-0.0820231736,
-0.2950689793,
0.1641110778,
-0.0856227875,
-0.2982957065,
-0.0182767455,
-0.1425967813,
0.1807876229,
-0.0793440118,
-0.0192516819,
-0.516964674,
0.4846031964,
0.4770778716,
0.1433763802,
0.0347182937,
-0.0920592025,
0.2908972502,
0.2127339691,
0.3287257552,
-0.2183058113,
0.1611050218,
0.0954905748,
-0.0793986619,
-0.0012770453,
0.2234777808,
-0.3259975016,
0.0802005455,
0.1258689165,
0.0620938875,
-0.2099142671,
-0.0586495511,
0.564494431,
0.1177013293,
0.5416299105,
-0.2061926872,
-0.5126444697,
-0.4321560562,
-0.1185015589,
-0.2246769071,
0.5172954798,
0.1825536489,
-0.1643292904,
0.2353673428,
-0.3708197474,
-0.373465538,
0.0563546866,
-0.2482875437,
0.0125569962,
-0.0332550816,
-0.0691288114,
-0.0859221071,
-0.3153804243,
-0.3343613148,
-0.0250364002,
-0.1866436303,
-0.1754441261,
0.3207187057,
-0.4284889996,
0.2038650215,
0.0504361019,
0.3530401587,
0.0095372405,
-0.0568257086,
0.027709337,
-0.1132237166,
-0.012364368,
-0.103492476,
-0.0161370225,
0.5280759335,
0.3833264709,
0.2247730047,
0.4180749357,
0.1071605161,
-0.122192435,
-0.0596748814,
0.1085663661,
-0.2088311762,
0.4692986906,
0.2980872989,
0.0874011666,
-0.2639745772,
-0.4008611441,
0.3987272382,
0.0792521611,
-0.0435008071,
0.0809764564,
0.1182874888,
-0.2654319108,
0.2469131202,
-0.3109485805,
-0.0344651118,
-0.268201828,
-0.1473113,
-0.1426729262,
-0.0044866884,
-0.0936849862,
0.132989943,
0.3898324072,
-0.2782138586,
0.0940937549,
0.0914928094,
0.1383266151,
0.0380824693,
-0.1030144989,
-0.3550890386,
0.1618324965,
0.2283445895,
-0.3626394272,
0.0737591013,
0.2123936713,
-0.4472793937,
-0.0907512605,
0.0906872153,
-0.4696445465,
-0.2500249445,
-0.0396823399,
0.0299207047,
-0.2703045309,
-0.022016976,
-0.2011903077,
-0.1221617162,
0.7679854631,
-0.1301229149,
0.138694793,
-0.0607174523,
-0.2074858993,
-0.2486397624,
0.024135815,
0.7459709644,
-0.3978332579,
-0.0034805415,
0.0223981403,
0.3345763981,
0.118897818,
0.3893784881,
0.0250516441,
0.0138421245,
-0.4760307968,
0.1359723955,
-0.0107975667,
-0.3261241019,
-0.529450953,
0.2354720235,
-0.0219719596,
0.0438959263,
0.4805414081,
-0.1311895996,
0.3278713822,
-0.1496676803,
0.2312702388,
0.0843562931,
0.0208963789,
-0.0518474467,
-0.2929527164,
-0.2801833451,
0.1734400541,
-0.1514915377,
0.1381094903,
0.1100740582,
0.1490080208,
-0.1044298708,
0.1303943694,
-0.1028587148,
0.3173862398,
0.3218125105,
0.1996958405,
0.3361393511,
0.1940688938,
-0.0133269336,
-0.5634203553,
0.3336996734,
-0.1510709524,
-0.0487962477,
-0.5828678608,
-0.3374966979,
-0.0046597715,
-0.0452592149,
-0.3498365879,
-0.2340483963,
0.0109602707,
0.2944903672,
0.2093049139,
0.0774855912,
-0.3025777638,
0.5547483563,
-0.1514557749,
0.0356560126,
-0.3149839342,
0.0344057307,
0.0354634002,
-0.1176335961,
-0.2977709472,
0.1621287763,
0.1365372837,
-0.064266406,
-0.3484889269,
0.3423914909,
0.1021603718,
0.1183243543,
0.1725016236,
0.3512911797,
0.1473367959,
0.0455283821,
0.1205660775,
0.1925427765,
0.0520296842,
0.1880880445,
-0.2764337063,
0.4564831853,
-0.3377994597,
0.3060477674,
-0.1606560647,
-0.0844261348,
0.3575418591,
0.0633732304,
-0.0494333319,
-0.4019527137,
0.333889842,
-0.0775111541,
0.2583097219,
0.175124824,
-0.1588616669,
-0.1345626414,
0.4126013517,
0.2732482255,
0.0417792797,
0.1923985928,
0.1799691617,
-0.2073259801,
0.1034266353,
0.3869751394,
0.2926307023,
-0.0477646813,
-0.0585029423,
-0.075618431,
0.3888523281,
-0.2236433774,
0.1844119132,
-0.2422158718,
-0.5531631112,
0.3378501832,
0.3072144985,
0.324903816,
-0.2500666678,
-0.090403229,
0.112732932,
0.2663859129,
-0.3754593432,
-0.0502152964,
-0.4189833403,
-0.4062885642,
-0.221305728,
0.2324907035,
-0.37585783,
-0.1734998375,
-0.1743537933,
-0.1857518703,
-0.0724671707,
-0.0137710497,
-0.1813276261,
0.2174972445,
-0.023300264,
-0.3834765553,
-0.192536369,
-0.1037821546,
-0.1774395704,
-0.1540046334,
0.2394246906,
-0.2570165396,
0.1734674275,
-0.4991287589,
-0.1461903602,
-0.4262441397,
-0.1157522574,
-0.0820190161,
0.1450815648,
0.0396534279,
0.0955616161,
0.2199554443,
-0.2006958872,
-0.040311262,
0.3219614327,
-0.1443939805,
-0.0064132335,
0.1055593342,
0.3380680978,
0.0959964097,
-0.098111324,
-0.053235583,
-0.1494610608,
-0.2081453949,
0.1131935865,
-0.2404411733,
0.0058440561,
0.2641096711,
-0.2923790216,
-0.1000035182,
-0.1252763569,
0.1726918817,
-0.0822476,
-0.4895117879,
0.4340184033,
0.0677335933,
-0.1480996609,
0.0062358659,
0.3059183955,
-0.0152393244,
0.2202232629,
-0.5601280928,
0.0038386381,
-0.3910726011,
0.6649289131,
0.0708654448,
0.1502586901,
0.2555817366,
-0.0082984772,
0.0410320014,
0.0715589076,
-0.229875043,
0.0185086634,
0.1150453016,
0.1087584719,
0.2441776693,
0.3302660584,
0.1421008557,
0.5426904559,
0.0429681391,
0.150930196,
0.5023105741,
0.1774828583,
0.4783696532,
-0.1697043628,
-0.405867368,
0.100357987,
-0.1692298651,
-0.3635139465,
0.1804776788,
0.1689960063,
0.2567850053,
-0.2230032831,
-0.0252756365,
-0.1526254117,
-0.1645915806,
0.1331984699,
-0.4737531841,
0.4249721766,
0.1899668276,
-0.1046013162,
-0.2555206418,
-0.4037130177,
-0.0381988622,
0.1602144241,
0.2247751206,
0.1194292828,
-0.0459373556,
-0.1298491508,
-0.2810018957,
0.2904259861,
0.2295810878,
0.7262058258,
-0.1800182462,
0.1063002795,
0.0734071136,
0.023687087,
0.4988805056,
0.0758222267,
0.1158448383,
-0.0697383881,
0.0223625023,
-0.0014742869,
-0.2985979319,
0.3196669519,
0.4175270498,
-0.0420243815,
0.3266119361,
0.0154723227,
-0.2111925334,
-0.3601840436,
0.3441717923,
-0.2327989489,
-0.0587960407,
-0.1795741916,
-0.0160385463,
-0.1305052191,
0.0499700904,
0.0812160522,
0.0279196166,
0.1814074963,
0.4388046563,
-0.0173616689,
-0.0999618992,
0.0335623063,
-0.290666312,
0.3134853244,
-0.0131524103,
0.0989710987,
-0.0031805208,
0.1123435721,
0.0509871989,
0.4183158875,
-0.0882338881,
-0.3790273368,
-0.1777638197,
-0.3097430766,
0.0433739424,
0.1704265922,
-0.3094181418,
0.066776216,
0.0916776806,
0.2714404762,
-0.0596447326,
-0.0808525756,
0.1092197821,
-0.0210290384,
0.0516261198,
-0.4814636111,
0.3047750592,
0.2219609022,
-0.0486807972,
-0.0928844959,
0.2003460377,
-0.3756881356,
0.2023397535,
0.1964794397,
0.6847473383,
0.0886077285,
0.2667199671,
-0.199315697,
0.0768861175,
0.7398189902,
-0.3023540676,
0.1679845005,
-0.139753297,
0.1570091695,
-0.0610636733,
0.1408559978,
0.2116463929,
-0.0521290675,
0.0274901818,
0.451736778,
-0.3623845875,
0.3814866543,
0.1236767322,
-0.0703952387,
-0.3189992905,
-0.1327591389,
-0.0813927874,
-0.0686197728,
-0.2553735077,
0.0133006452,
-0.0459213965,
0.177303955,
0.0585879162,
-0.07296177,
-0.4974429011,
-0.1644382328,
-0.00921016,
0.1995892823,
0.0592707805,
-0.2529404461,
0.0294323899,
0.3690403998,
0.5244757533,
0.2263179719,
-0.0573306493,
0.0360638723,
0.1889661103,
0.1006129533,
0.008475285,
0.065368861,
0.1256021559,
0.0397162996,
-0.02072143,
-0.200255692,
-0.181614697,
-0.3541405797,
-0.1060072705,
0.1296260208,
0.0684420168,
-0.1870573759,
-0.0106380088,
-0.3841298521,
0.2449789941,
-0.0677821487,
0.0377356857,
0.244273439,
-0.0904849842,
0.0170532055,
-0.227882728,
-0.2219500393,
-0.0397297628,
0.3476566076,
0.2146355808,
-0.3745096326,
0.6968064904,
-0.0372173563,
-0.0972825512,
-0.1158877015,
-0.0167586803,
-0.1795276403,
-0.5390040278,
0.1157499105,
-0.1199075952,
0.0374232978,
-0.0242806133,
-0.0958934203,
0.1143272966,
0.0824373215,
-0.1354274154,
-0.5628747344,
-0.2980926633,
-0.2138111442,
0.0595666803,
0.0248917136,
0.1486716866,
-0.259583801,
-0.0783189908,
-0.1857479811,
-0.1310025305,
-0.0298326034,
-0.200262472,
0.075910531,
0.1904688776,
0.2171371877,
-0.1816458553,
-0.2052714378,
-0.0564482287,
0.097410053,
0.1939874291,
-0.0759069026,
-0.0130256489,
0.2139453739,
-0.0488216467,
-0.0661000162,
-0.2247196138,
-0.0492416322,
-0.0794053525,
-0.2644955516,
0.0302021205,
0.3578816652,
-0.0345588773,
0.4326807857,
-0.1031742245,
0.1572814733,
0.0363041013,
0.3256640732,
0.0226185322,
0.1994966269,
0.0368305296,
0.3876142204,
-0.1242569834,
0.1455946565,
-0.2493016124,
0.0340588689,
-0.2740900218,
-0.0498438142,
-0.0119052241,
-0.7176524997,
-0.0478915945,
0.3184981942,
0.2566046417,
0.530341208,
-0.0977987945,
-0.2668829262,
0.3888122439,
0.0267445073,
-0.1388439536,
-0.1028251126,
0.2636796534,
0.1904943585,
-0.1171443909,
0.1074459255,
0.344394207,
-0.2272538543,
0.0452655368,
0.0624142662,
0.6229783297,
-0.1713073701,
0.122295469,
0.3410710692,
0.2598594129,
0.0863364562,
0.1955925822,
0.1053774953,
-0.0311067309,
0.5883740187,
0.0327053741,
0.0543914661,
0.3945005834,
0.3909545839,
-0.3196645081,
-0.6323393583,
0.4486406446,
0.14229092,
-0.2467745394,
0.1446685642,
-0.0190155935,
0.3927976489,
-0.0767466947,
-0.2162495255,
-0.1495244503,
0.1239941195,
-0.3076715767,
-0.2275854647,
0.0462825745,
-0.2569926083,
-0.0426562428,
0.1699811369,
-0.0587928072,
0.3385640979,
0.2130113542,
-0.0027180943,
-0.2035451829,
-0.3313350081,
0.105897598,
0.0301937312,
0.3501743078,
-0.3610579371,
0.0734479576,
0.3541795611,
-0.1493665576,
0.0048905374,
0.190592438,
0.5870632529,
0.3003974855,
0.0680241734,
0.0731520951,
-0.2649991214,
0.0658928826,
-0.1408921778,
0.5814990401,
-0.2781247199,
-0.0510250293,
0.1392040402,
-0.0431959219,
-0.0150332609,
0.4320270717,
-0.1441588551,
0.3355379999,
-0.0652602464,
0.0472871624,
-0.0250149984,
-0.1433459073,
0.0552621633,
0.1071826965,
-0.1661215276,
-0.1895052046,
0.5579113364,
0.0092238765,
0.1001620144,
-0.2233538628,
0.0092601823,
-0.0416547954,
0.5770375133,
0.8015142679,
0.1574266106,
-0.0463093109,
0.0608372018,
-0.7923559546,
-0.0391496345,
-0.015249718,
0.0785267353,
0.0953041464,
0.0247142185,
-0.1123635992,
0.0399008282,
-0.1507737935,
0.1580253989,
-0.0342543423,
0.0070495615,
-0.18516545,
-0.0996041223,
0.0014868397,
0.1831905544,
0.0542866401,
-0.483975023,
0.2823937535,
-0.1108330563,
-0.0731429234,
-0.091878064,
-0.1048251688,
0.1755601317,
-0.1069601327,
0.0669329464,
0.4307732582,
0.1914646327,
0.3429851532,
-0.0721826926,
-0.3610788286,
0.1016121432,
-0.0766109973,
0.1687029749,
-0.0125959283,
0.4070680737,
-0.5156904459,
0.0264034979,
-0.1890791059,
0.4230325818,
-0.2197486013,
0.0602230467,
-0.0356812403,
-0.0848700479,
-0.0696710572,
0.0351364091,
0.0653060749,
0.2273832113,
0.0020751338,
0.1894111633,
-0.4079123437,
-0.2233608067,
0.321988672,
-0.6194617152,
-0.350741446,
-0.0883711502,
0.408141315,
0.1611013263,
-0.3031413555,
-0.3618788421,
0.1399899125,
0.3250719905,
0.0266627017,
-0.3687986135,
-0.0600638092,
-0.1723571718,
0.1622224897,
0.02654914,
0.4425603151,
0.0808607116,
0.07672894,
0.1723782867,
-0.1925548166
] |
https://github.com/huggingface/datasets/issues/4238 | Dataset caching policy | SOLVED! The problem was the with the file itself, using caching parameter helped indeed.
Thanks for helping! | ## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
| 17 | Dataset caching policy
## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
SOLVED! The problem was the with the file itself, using caching parameter helped indeed.
Thanks for helping! | [
0.0123936096,
0.2971666455,
-0.0013778415,
0.2417485565,
0.2187064886,
0.223115772,
0.2011682987,
0.3845502436,
0.047587432,
-0.114898473,
-0.0990488455,
-0.2024639547,
-0.043204993,
-0.1892879307,
-0.1385836452,
0.0513460636,
0.111731194,
-0.0098836049,
0.2588098049,
0.0954153836,
-0.0737708434,
0.117863901,
-0.1670916528,
-0.0787959769,
-0.367393434,
0.0166204907,
-0.0899960846,
-0.069326736,
0.1066928729,
-0.6206914783,
0.2522139847,
0.072450839,
0.2016528398,
0.2368706912,
-0.0001263648,
-0.1024664342,
0.1549502164,
-0.0820231736,
-0.2950689793,
0.1641110778,
-0.0856227875,
-0.2982957065,
-0.0182767455,
-0.1425967813,
0.1807876229,
-0.0793440118,
-0.0192516819,
-0.516964674,
0.4846031964,
0.4770778716,
0.1433763802,
0.0347182937,
-0.0920592025,
0.2908972502,
0.2127339691,
0.3287257552,
-0.2183058113,
0.1611050218,
0.0954905748,
-0.0793986619,
-0.0012770453,
0.2234777808,
-0.3259975016,
0.0802005455,
0.1258689165,
0.0620938875,
-0.2099142671,
-0.0586495511,
0.564494431,
0.1177013293,
0.5416299105,
-0.2061926872,
-0.5126444697,
-0.4321560562,
-0.1185015589,
-0.2246769071,
0.5172954798,
0.1825536489,
-0.1643292904,
0.2353673428,
-0.3708197474,
-0.373465538,
0.0563546866,
-0.2482875437,
0.0125569962,
-0.0332550816,
-0.0691288114,
-0.0859221071,
-0.3153804243,
-0.3343613148,
-0.0250364002,
-0.1866436303,
-0.1754441261,
0.3207187057,
-0.4284889996,
0.2038650215,
0.0504361019,
0.3530401587,
0.0095372405,
-0.0568257086,
0.027709337,
-0.1132237166,
-0.012364368,
-0.103492476,
-0.0161370225,
0.5280759335,
0.3833264709,
0.2247730047,
0.4180749357,
0.1071605161,
-0.122192435,
-0.0596748814,
0.1085663661,
-0.2088311762,
0.4692986906,
0.2980872989,
0.0874011666,
-0.2639745772,
-0.4008611441,
0.3987272382,
0.0792521611,
-0.0435008071,
0.0809764564,
0.1182874888,
-0.2654319108,
0.2469131202,
-0.3109485805,
-0.0344651118,
-0.268201828,
-0.1473113,
-0.1426729262,
-0.0044866884,
-0.0936849862,
0.132989943,
0.3898324072,
-0.2782138586,
0.0940937549,
0.0914928094,
0.1383266151,
0.0380824693,
-0.1030144989,
-0.3550890386,
0.1618324965,
0.2283445895,
-0.3626394272,
0.0737591013,
0.2123936713,
-0.4472793937,
-0.0907512605,
0.0906872153,
-0.4696445465,
-0.2500249445,
-0.0396823399,
0.0299207047,
-0.2703045309,
-0.022016976,
-0.2011903077,
-0.1221617162,
0.7679854631,
-0.1301229149,
0.138694793,
-0.0607174523,
-0.2074858993,
-0.2486397624,
0.024135815,
0.7459709644,
-0.3978332579,
-0.0034805415,
0.0223981403,
0.3345763981,
0.118897818,
0.3893784881,
0.0250516441,
0.0138421245,
-0.4760307968,
0.1359723955,
-0.0107975667,
-0.3261241019,
-0.529450953,
0.2354720235,
-0.0219719596,
0.0438959263,
0.4805414081,
-0.1311895996,
0.3278713822,
-0.1496676803,
0.2312702388,
0.0843562931,
0.0208963789,
-0.0518474467,
-0.2929527164,
-0.2801833451,
0.1734400541,
-0.1514915377,
0.1381094903,
0.1100740582,
0.1490080208,
-0.1044298708,
0.1303943694,
-0.1028587148,
0.3173862398,
0.3218125105,
0.1996958405,
0.3361393511,
0.1940688938,
-0.0133269336,
-0.5634203553,
0.3336996734,
-0.1510709524,
-0.0487962477,
-0.5828678608,
-0.3374966979,
-0.0046597715,
-0.0452592149,
-0.3498365879,
-0.2340483963,
0.0109602707,
0.2944903672,
0.2093049139,
0.0774855912,
-0.3025777638,
0.5547483563,
-0.1514557749,
0.0356560126,
-0.3149839342,
0.0344057307,
0.0354634002,
-0.1176335961,
-0.2977709472,
0.1621287763,
0.1365372837,
-0.064266406,
-0.3484889269,
0.3423914909,
0.1021603718,
0.1183243543,
0.1725016236,
0.3512911797,
0.1473367959,
0.0455283821,
0.1205660775,
0.1925427765,
0.0520296842,
0.1880880445,
-0.2764337063,
0.4564831853,
-0.3377994597,
0.3060477674,
-0.1606560647,
-0.0844261348,
0.3575418591,
0.0633732304,
-0.0494333319,
-0.4019527137,
0.333889842,
-0.0775111541,
0.2583097219,
0.175124824,
-0.1588616669,
-0.1345626414,
0.4126013517,
0.2732482255,
0.0417792797,
0.1923985928,
0.1799691617,
-0.2073259801,
0.1034266353,
0.3869751394,
0.2926307023,
-0.0477646813,
-0.0585029423,
-0.075618431,
0.3888523281,
-0.2236433774,
0.1844119132,
-0.2422158718,
-0.5531631112,
0.3378501832,
0.3072144985,
0.324903816,
-0.2500666678,
-0.090403229,
0.112732932,
0.2663859129,
-0.3754593432,
-0.0502152964,
-0.4189833403,
-0.4062885642,
-0.221305728,
0.2324907035,
-0.37585783,
-0.1734998375,
-0.1743537933,
-0.1857518703,
-0.0724671707,
-0.0137710497,
-0.1813276261,
0.2174972445,
-0.023300264,
-0.3834765553,
-0.192536369,
-0.1037821546,
-0.1774395704,
-0.1540046334,
0.2394246906,
-0.2570165396,
0.1734674275,
-0.4991287589,
-0.1461903602,
-0.4262441397,
-0.1157522574,
-0.0820190161,
0.1450815648,
0.0396534279,
0.0955616161,
0.2199554443,
-0.2006958872,
-0.040311262,
0.3219614327,
-0.1443939805,
-0.0064132335,
0.1055593342,
0.3380680978,
0.0959964097,
-0.098111324,
-0.053235583,
-0.1494610608,
-0.2081453949,
0.1131935865,
-0.2404411733,
0.0058440561,
0.2641096711,
-0.2923790216,
-0.1000035182,
-0.1252763569,
0.1726918817,
-0.0822476,
-0.4895117879,
0.4340184033,
0.0677335933,
-0.1480996609,
0.0062358659,
0.3059183955,
-0.0152393244,
0.2202232629,
-0.5601280928,
0.0038386381,
-0.3910726011,
0.6649289131,
0.0708654448,
0.1502586901,
0.2555817366,
-0.0082984772,
0.0410320014,
0.0715589076,
-0.229875043,
0.0185086634,
0.1150453016,
0.1087584719,
0.2441776693,
0.3302660584,
0.1421008557,
0.5426904559,
0.0429681391,
0.150930196,
0.5023105741,
0.1774828583,
0.4783696532,
-0.1697043628,
-0.405867368,
0.100357987,
-0.1692298651,
-0.3635139465,
0.1804776788,
0.1689960063,
0.2567850053,
-0.2230032831,
-0.0252756365,
-0.1526254117,
-0.1645915806,
0.1331984699,
-0.4737531841,
0.4249721766,
0.1899668276,
-0.1046013162,
-0.2555206418,
-0.4037130177,
-0.0381988622,
0.1602144241,
0.2247751206,
0.1194292828,
-0.0459373556,
-0.1298491508,
-0.2810018957,
0.2904259861,
0.2295810878,
0.7262058258,
-0.1800182462,
0.1063002795,
0.0734071136,
0.023687087,
0.4988805056,
0.0758222267,
0.1158448383,
-0.0697383881,
0.0223625023,
-0.0014742869,
-0.2985979319,
0.3196669519,
0.4175270498,
-0.0420243815,
0.3266119361,
0.0154723227,
-0.2111925334,
-0.3601840436,
0.3441717923,
-0.2327989489,
-0.0587960407,
-0.1795741916,
-0.0160385463,
-0.1305052191,
0.0499700904,
0.0812160522,
0.0279196166,
0.1814074963,
0.4388046563,
-0.0173616689,
-0.0999618992,
0.0335623063,
-0.290666312,
0.3134853244,
-0.0131524103,
0.0989710987,
-0.0031805208,
0.1123435721,
0.0509871989,
0.4183158875,
-0.0882338881,
-0.3790273368,
-0.1777638197,
-0.3097430766,
0.0433739424,
0.1704265922,
-0.3094181418,
0.066776216,
0.0916776806,
0.2714404762,
-0.0596447326,
-0.0808525756,
0.1092197821,
-0.0210290384,
0.0516261198,
-0.4814636111,
0.3047750592,
0.2219609022,
-0.0486807972,
-0.0928844959,
0.2003460377,
-0.3756881356,
0.2023397535,
0.1964794397,
0.6847473383,
0.0886077285,
0.2667199671,
-0.199315697,
0.0768861175,
0.7398189902,
-0.3023540676,
0.1679845005,
-0.139753297,
0.1570091695,
-0.0610636733,
0.1408559978,
0.2116463929,
-0.0521290675,
0.0274901818,
0.451736778,
-0.3623845875,
0.3814866543,
0.1236767322,
-0.0703952387,
-0.3189992905,
-0.1327591389,
-0.0813927874,
-0.0686197728,
-0.2553735077,
0.0133006452,
-0.0459213965,
0.177303955,
0.0585879162,
-0.07296177,
-0.4974429011,
-0.1644382328,
-0.00921016,
0.1995892823,
0.0592707805,
-0.2529404461,
0.0294323899,
0.3690403998,
0.5244757533,
0.2263179719,
-0.0573306493,
0.0360638723,
0.1889661103,
0.1006129533,
0.008475285,
0.065368861,
0.1256021559,
0.0397162996,
-0.02072143,
-0.200255692,
-0.181614697,
-0.3541405797,
-0.1060072705,
0.1296260208,
0.0684420168,
-0.1870573759,
-0.0106380088,
-0.3841298521,
0.2449789941,
-0.0677821487,
0.0377356857,
0.244273439,
-0.0904849842,
0.0170532055,
-0.227882728,
-0.2219500393,
-0.0397297628,
0.3476566076,
0.2146355808,
-0.3745096326,
0.6968064904,
-0.0372173563,
-0.0972825512,
-0.1158877015,
-0.0167586803,
-0.1795276403,
-0.5390040278,
0.1157499105,
-0.1199075952,
0.0374232978,
-0.0242806133,
-0.0958934203,
0.1143272966,
0.0824373215,
-0.1354274154,
-0.5628747344,
-0.2980926633,
-0.2138111442,
0.0595666803,
0.0248917136,
0.1486716866,
-0.259583801,
-0.0783189908,
-0.1857479811,
-0.1310025305,
-0.0298326034,
-0.200262472,
0.075910531,
0.1904688776,
0.2171371877,
-0.1816458553,
-0.2052714378,
-0.0564482287,
0.097410053,
0.1939874291,
-0.0759069026,
-0.0130256489,
0.2139453739,
-0.0488216467,
-0.0661000162,
-0.2247196138,
-0.0492416322,
-0.0794053525,
-0.2644955516,
0.0302021205,
0.3578816652,
-0.0345588773,
0.4326807857,
-0.1031742245,
0.1572814733,
0.0363041013,
0.3256640732,
0.0226185322,
0.1994966269,
0.0368305296,
0.3876142204,
-0.1242569834,
0.1455946565,
-0.2493016124,
0.0340588689,
-0.2740900218,
-0.0498438142,
-0.0119052241,
-0.7176524997,
-0.0478915945,
0.3184981942,
0.2566046417,
0.530341208,
-0.0977987945,
-0.2668829262,
0.3888122439,
0.0267445073,
-0.1388439536,
-0.1028251126,
0.2636796534,
0.1904943585,
-0.1171443909,
0.1074459255,
0.344394207,
-0.2272538543,
0.0452655368,
0.0624142662,
0.6229783297,
-0.1713073701,
0.122295469,
0.3410710692,
0.2598594129,
0.0863364562,
0.1955925822,
0.1053774953,
-0.0311067309,
0.5883740187,
0.0327053741,
0.0543914661,
0.3945005834,
0.3909545839,
-0.3196645081,
-0.6323393583,
0.4486406446,
0.14229092,
-0.2467745394,
0.1446685642,
-0.0190155935,
0.3927976489,
-0.0767466947,
-0.2162495255,
-0.1495244503,
0.1239941195,
-0.3076715767,
-0.2275854647,
0.0462825745,
-0.2569926083,
-0.0426562428,
0.1699811369,
-0.0587928072,
0.3385640979,
0.2130113542,
-0.0027180943,
-0.2035451829,
-0.3313350081,
0.105897598,
0.0301937312,
0.3501743078,
-0.3610579371,
0.0734479576,
0.3541795611,
-0.1493665576,
0.0048905374,
0.190592438,
0.5870632529,
0.3003974855,
0.0680241734,
0.0731520951,
-0.2649991214,
0.0658928826,
-0.1408921778,
0.5814990401,
-0.2781247199,
-0.0510250293,
0.1392040402,
-0.0431959219,
-0.0150332609,
0.4320270717,
-0.1441588551,
0.3355379999,
-0.0652602464,
0.0472871624,
-0.0250149984,
-0.1433459073,
0.0552621633,
0.1071826965,
-0.1661215276,
-0.1895052046,
0.5579113364,
0.0092238765,
0.1001620144,
-0.2233538628,
0.0092601823,
-0.0416547954,
0.5770375133,
0.8015142679,
0.1574266106,
-0.0463093109,
0.0608372018,
-0.7923559546,
-0.0391496345,
-0.015249718,
0.0785267353,
0.0953041464,
0.0247142185,
-0.1123635992,
0.0399008282,
-0.1507737935,
0.1580253989,
-0.0342543423,
0.0070495615,
-0.18516545,
-0.0996041223,
0.0014868397,
0.1831905544,
0.0542866401,
-0.483975023,
0.2823937535,
-0.1108330563,
-0.0731429234,
-0.091878064,
-0.1048251688,
0.1755601317,
-0.1069601327,
0.0669329464,
0.4307732582,
0.1914646327,
0.3429851532,
-0.0721826926,
-0.3610788286,
0.1016121432,
-0.0766109973,
0.1687029749,
-0.0125959283,
0.4070680737,
-0.5156904459,
0.0264034979,
-0.1890791059,
0.4230325818,
-0.2197486013,
0.0602230467,
-0.0356812403,
-0.0848700479,
-0.0696710572,
0.0351364091,
0.0653060749,
0.2273832113,
0.0020751338,
0.1894111633,
-0.4079123437,
-0.2233608067,
0.321988672,
-0.6194617152,
-0.350741446,
-0.0883711502,
0.408141315,
0.1611013263,
-0.3031413555,
-0.3618788421,
0.1399899125,
0.3250719905,
0.0266627017,
-0.3687986135,
-0.0600638092,
-0.1723571718,
0.1622224897,
0.02654914,
0.4425603151,
0.0808607116,
0.07672894,
0.1723782867,
-0.1925548166
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Thanks for reporting. I understand it's an error in the dataset script. To reproduce:
```python
>>> import datasets as ds
>>> split_names = ds.get_dataset_split_names("mozilla-foundation/common_voice_8_0", use_auth_token="**********")
Downloading builder script: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 10.9k/10.9k [00:00<00:00, 10.9MB/s]
Downloading extra modules: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.98k/2.98k [00:00<00:00, 3.36MB/s]
Downloading extra modules: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 53.1k/53.1k [00:00<00:00, 650kB/s]
No config specified, defaulting to: common_voice/en
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 153, in _split_generators
self._log_download(self.config.name, bundle_version, hf_auth_token)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 139, in _log_download
email = HfApi().whoami(auth_token)["email"]
KeyError: 'email'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
``` | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 151 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Thanks for reporting. I understand it's an error in the dataset script. To reproduce:
```python
>>> import datasets as ds
>>> split_names = ds.get_dataset_split_names("mozilla-foundation/common_voice_8_0", use_auth_token="**********")
Downloading builder script: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 10.9k/10.9k [00:00<00:00, 10.9MB/s]
Downloading extra modules: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.98k/2.98k [00:00<00:00, 3.36MB/s]
Downloading extra modules: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 53.1k/53.1k [00:00<00:00, 650kB/s]
No config specified, defaulting to: common_voice/en
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 153, in _split_generators
self._log_download(self.config.name, bundle_version, hf_auth_token)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 139, in _log_download
email = HfApi().whoami(auth_token)["email"]
KeyError: 'email'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
``` | [
-0.6561425328,
-0.004003874,
0.0054231901,
0.1310704499,
0.2854442596,
0.2682386339,
0.4165343642,
0.3768597543,
0.1568085253,
0.109484069,
-0.2961753607,
-0.0419526771,
-0.2016284615,
-0.134046182,
0.0574726276,
0.144657135,
-0.1379270107,
0.2300461233,
0.4713993371,
-0.1087595969,
-0.095306538,
0.1899505854,
-0.4361649454,
-0.0596319251,
-0.3213803768,
-0.0233557727,
-0.073837392,
0.2103644907,
-0.1761886477,
-0.581572175,
0.088089399,
0.204358995,
0.1440666914,
0.3822388053,
-0.000120593,
0.1361112148,
0.3740230799,
0.0270714611,
-0.1417051554,
-0.0770524815,
-0.1716799289,
0.1251588315,
0.1751465946,
0.0419433154,
-0.0658147261,
-0.0595080368,
-0.0411299616,
-0.5866153836,
0.2798015773,
0.2627886236,
0.1835896224,
0.0126938401,
0.1893961877,
0.1631327271,
-0.0775625855,
0.1900337636,
-0.0978629962,
0.2088560462,
-0.013605902,
0.221015349,
0.0931257457,
0.1845868081,
-0.1132811606,
-0.140577808,
-0.0721095055,
-0.0595079921,
-0.1664901376,
-0.4646846652,
0.3115743995,
0.2355963439,
0.7882734537,
-0.3587973416,
-0.1727570891,
-0.0911853909,
0.1639146954,
-0.2275277674,
0.1784490198,
0.2559907734,
-0.1266655922,
0.3226568401,
-0.161561653,
-0.2547989786,
0.1161305234,
0.1885984391,
-0.1610791087,
0.2289329767,
-0.2086130828,
0.0484605432,
0.0904521421,
0.0648888126,
0.0097273067,
0.0323009603,
-0.0079374779,
0.3394326568,
-0.1982607841,
-0.0480527766,
0.0164663028,
-0.1426835954,
0.2313329875,
0.0500804335,
-0.0069401851,
0.0807131082,
-0.0450063758,
-0.0059332694,
0.1502186507,
0.1314039379,
0.3113311529,
0.3643580377,
0.1737876385,
0.243496716,
0.1399264038,
-0.1525883526,
-0.253867507,
-0.2887414992,
0.1528005451,
-0.1550787687,
0.5338347554,
-0.2306228429,
-0.327897191,
0.1678280234,
-0.0813485608,
-0.2261916697,
0.2386358529,
0.4896348715,
0.0763012245,
0.2658552825,
0.2082652897,
0.1738086045,
-0.1336090118,
-0.1691688448,
-0.1136749536,
-0.0549987182,
-0.2473417073,
0.1636812091,
0.2695918083,
-0.4645121694,
0.2495431453,
0.0477206819,
0.3610280454,
-0.2180978805,
-0.2471016496,
0.2480442077,
-0.1238882244,
0.1325411052,
0.2112250477,
0.361107558,
0.134638831,
-0.2368189692,
-0.1367329955,
0.1451753378,
-0.1332201362,
-0.2837592661,
-0.3306616545,
0.1272481978,
-0.1152685061,
0.0609898902,
0.3822704852,
0.0582916811,
0.1110274568,
-0.2866750658,
-0.0817494169,
0.0136456843,
-0.110499911,
-0.0856461972,
0.4975485206,
0.6625698805,
-0.321816802,
-0.1162488908,
-0.5413201451,
-0.0983368456,
-0.0801076218,
0.0373926945,
-0.0984823778,
-0.2696497738,
-0.3908696771,
0.1555042416,
0.8233067989,
-0.3098914623,
-0.4651504755,
0.4288798869,
0.117181696,
-0.0697449669,
0.1201274246,
-0.3396926522,
-0.0150199244,
0.051428739,
-0.0355356969,
0.0337598175,
0.0748926848,
-0.085292615,
-0.1512542218,
-0.14913553,
-0.0299447719,
0.1708539128,
0.0779429898,
0.160768941,
0.1485487819,
0.0167637151,
0.6047717333,
0.2706793547,
0.1394846439,
0.0749846771,
0.2056770474,
0.0003373669,
0.0504621156,
-0.1163514778,
-0.2447475344,
0.2339598536,
0.099989444,
-0.1635264158,
-0.0542216375,
-0.2141601592,
-0.3621358573,
0.0051006977,
-0.4061993659,
-0.0884082317,
0.0555416234,
0.2585830688,
-0.0243286155,
-0.0104322787,
-0.2514054477,
-0.285061568,
0.3428552151,
0.2538770139,
0.0489021242,
0.4533397853,
-0.20447734,
-0.0634631515,
0.1484978497,
0.2496325374,
0.054112833,
0.0929323658,
-0.0692353845,
0.3675214946,
-0.0288587399,
0.1626604497,
0.0285358503,
-0.0068235165,
0.0953673199,
-0.5219935179,
0.6353205442,
0.0908909813,
-0.0760336146,
0.0379134901,
0.1357197613,
0.0908357278,
0.2400163114,
0.0447827093,
0.0169164445,
0.3338451087,
-0.0015065672,
0.0675569922,
0.0654945374,
-0.4145182669,
0.1372196674,
-0.0683389306,
0.6825829148,
-0.093835339,
-0.5671577454,
0.0820145234,
0.6491979361,
-0.0120373098,
0.0224636905,
-0.0594004244,
-0.4081903398,
0.0849062651,
0.1006896719,
-0.2948718965,
0.2523972988,
0.1653080583,
-0.1576942652,
0.4188084602,
0.040907532,
-0.0608131178,
0.1969885081,
0.0958195552,
0.0749992356,
0.2490259707,
-0.2826402485,
-0.0077420073,
-0.3539453447,
-0.463994205,
-0.1073820069,
0.0795182735,
-0.4945600927,
-0.1497209221,
-0.1308526993,
0.00668965,
-0.2465171516,
-0.0379408784,
-0.3801368773,
-0.32981354,
-0.0536520556,
0.075229302,
0.2042718977,
0.2202468514,
-0.5546537638,
-0.1356497854,
0.1713712066,
0.0196706988,
-0.1575725079,
0.194676429,
-0.2311463505,
0.0017826356,
0.288469702,
-0.1606832892,
-0.1258435249,
-0.3789615035,
0.0897552967,
-0.1769885272,
-0.1934793144,
0.1357643157,
0.1231382042,
0.0073993122,
0.1334006041,
-0.0164928138,
0.158717826,
-0.1118259206,
0.3283584416,
-0.0339390635,
0.0524014011,
0.1026512086,
0.053819783,
-0.2069312185,
-0.0158594418,
-0.3836068511,
-0.10737212,
-0.5368224382,
0.0573139377,
0.0332703069,
0.1125686988,
0.2148694247,
0.0910604373,
0.0044692843,
-0.3055878878,
0.2403778732,
-0.1654026657,
-0.3441016376,
0.3704248071,
-0.2694292963,
-0.233172372,
0.25853163,
-0.1756199449,
0.4928230047,
-0.2137142271,
-0.4206870198,
0.4923171699,
-0.1303451359,
0.2304918766,
-0.1187266707,
0.0121048195,
0.1664776206,
0.302972734,
0.0951320902,
-0.1044759974,
-0.175175339,
-0.362349689,
-0.0689245686,
0.2080126703,
-0.0721435994,
0.3506106734,
-0.1110566035,
0.7606479526,
0.3564975858,
0.1359945685,
0.1827113628,
-0.2510711849,
0.480264008,
-0.0012876267,
-0.3529037535,
0.3592377007,
0.2651104927,
0.0710280016,
0.4500789046,
0.0320962705,
-0.1012113392,
-0.2701404393,
-0.0164204258,
-0.3475954235,
-0.3229843378,
-0.0990164876,
-0.5305114388,
0.0902152732,
0.0194499884,
0.2557264566,
0.0539539009,
-0.058910694,
-0.094552502,
0.4101984799,
0.0187814869,
0.0430856571,
0.083626397,
0.0164185409,
-0.4600337446,
0.2401614189,
-0.2130231112,
0.2793564796,
-0.2060447782,
-0.0737390071,
0.0450607017,
0.2268900722,
0.225573048,
0.0130981691,
-0.0410250947,
0.3080486059,
0.103223443,
-0.3781842589,
-0.1668434292,
-0.0053793169,
0.2262071222,
-0.1337747127,
-0.177730009,
-0.1493625194,
-0.0704405084,
0.3333546519,
0.1108951718,
-0.049725391,
-0.3191538453,
-0.1716107279,
0.1444515437,
-0.4604651034,
-0.2106357366,
-0.1290837079,
0.029886499,
-0.3053309917,
-0.0503274649,
0.3019591272,
-0.4067071378,
0.3067944944,
0.149401933,
0.0866915211,
0.0402448103,
0.3973551393,
0.5313232541,
0.2428802401,
0.0582815446,
0.6532734036,
0.3175140619,
-0.4883925617,
0.0182425231,
0.0598568916,
0.3396727741,
0.0730873793,
-0.2393368334,
-0.2291770428,
0.3183628917,
0.2216476649,
-0.0710215271,
-0.172718659,
0.5620816946,
0.133111164,
-0.4003137946,
-0.4171763659,
0.2170151174,
-0.083739832,
-0.0035566958,
0.2092540115,
0.0068955021,
-0.079072997,
-0.1177438647,
-0.4801333845,
0.7148758173,
0.2187373787,
-0.1140858829,
0.2422340214,
-0.0731209144,
-0.0974448398,
-0.0045538857,
-0.0815759897,
-0.1810079962,
-0.1730379462,
0.022960484,
-0.1584770232,
0.3931729496,
0.3188039958,
-0.5133062601,
0.1688118577,
-0.2801713347,
-0.2633058727,
0.1219802126,
0.3110850453,
-0.4043814838,
0.0495604165,
-0.0165451095,
0.0462522693,
-0.0662952289,
0.5286539197,
-0.0147264674,
0.0848970935,
-0.0548732802,
-0.3618143499,
-0.3388924897,
0.3298495114,
-0.2254801691,
-0.1610485911,
0.1584177315,
-0.0142536806,
0.7971377373,
0.1415546685,
0.0611181445,
0.2676756382,
-0.2552806735,
0.2410931587,
0.0310363919,
-0.1497900784,
0.0936750174,
0.2287026793,
0.3531041145,
-0.0456023589,
-0.48983711,
0.2887153625,
-0.0497088693,
0.089427866,
-0.2386393547,
-0.2239359915,
0.3966575265,
-0.4108697772,
0.1821849346,
-0.0104144923,
0.0296411347,
-0.0420395397,
0.0847000927,
0.3081162274,
-0.0604509674,
0.0211303104,
0.142233476,
0.1221538559,
-0.0505993478,
0.1777327955,
0.0198636446,
-0.0415944159,
0.4010296464,
0.0487778932,
-0.1836479604,
-0.2116940171,
-0.2202427983,
0.1526728123,
-0.2864474654,
-0.1424750686,
-0.0300664324,
0.0938108936,
0.0647900403,
-0.1571302712,
-0.1341735721,
0.1181107312,
-0.169038251,
-0.4508935213,
-0.2159717381,
0.1149086803,
-0.1169202998,
0.162388131,
-0.1617584527,
0.4811196923,
0.241325289,
-0.006624924,
-0.2536821961,
-0.0263005123,
0.0697698742,
-0.0604280867,
0.0837931782,
-0.0556578301,
0.0729677677,
-0.0177083649,
0.2307476848,
-0.1914231926,
-0.2160287648,
-0.0451633707,
0.0214769263,
0.1725383252,
0.1311559081,
-0.1698176116,
0.344735533,
0.1979504079,
-0.3591592312,
-0.1590565443,
0.0649882033,
0.0635321066,
-0.04754043,
0.0272699278,
0.0084577492,
-0.357134968,
-0.1763850749,
0.0297039431,
-0.1598840505,
0.2997164726,
0.014952248,
0.3926473558,
-0.1924975663,
-0.1535043716,
-0.1270792186,
0.0857498124,
-0.0329795256,
0.0530564748,
0.4680733383,
-0.3138730526,
0.1259340197,
0.1660804152,
0.3977280259,
0.1769106984,
-0.1124499813,
0.193334952,
0.2024877518,
0.1191237271,
-0.5042485595,
0.1466300637,
0.1106726378,
-0.0191946868,
0.1772565246,
0.03373079,
-0.0585073046,
-0.0921302736,
0.0470454022,
0.0056178574,
0.2470084429,
0.1429539323,
0.4164430201,
0.3270046413,
-0.1497080177,
0.1774499267,
0.4047247469,
0.0984481126,
0.0992493704,
0.3459056318,
-0.622160852,
0.1097742021,
-0.1515408754,
-0.0305324011,
0.3384506404,
-0.3952785432,
0.0971322954,
0.1261933893,
-0.2213772833,
-0.0777378976,
-0.2880426943,
0.3499585986,
-0.2696026564,
0.2168397009,
-0.1465816647,
0.2575061321,
-0.1594211906,
0.2819506526,
0.0592504628,
-0.1123453751,
-0.3596458435,
-0.1827933341,
0.2387730032,
-0.3429827988,
0.1533938199,
0.0168078821,
-0.3495777845,
-0.1924386322,
0.085080795,
0.1653479785,
0.0772208869,
-0.2499206215,
0.1691165417,
-0.044983115,
-0.0944331661,
0.3265188336,
0.6442953944,
0.5560629964,
0.050388407,
0.327172488,
-0.1418156773,
0.3324838877,
-0.1314030588,
0.0753599331,
-0.1370108873,
0.1150389612,
0.2489339709,
0.1094063371,
0.0800248161,
-0.136738658,
-0.4368442297,
-0.0130226305,
0.285238564,
-0.3921763897,
-0.0071395258,
-0.5302839279,
-0.1990671009,
-0.1990127116,
-0.0447224379,
-0.5312963128,
-0.1359631866,
0.3549051881,
0.0381868333,
-0.0922624245,
-0.4646948576,
0.0105639976,
0.2308065444,
-0.041089464,
0.2955460548,
0.0599426478,
0.1924576908,
-0.3412266076,
-0.5168863535,
0.2941106558,
0.3160489798,
-0.2079347223,
-0.0927475393,
0.0339699276,
-0.0658697486,
0.0760067031,
0.5357164145,
0.0389333479,
-0.1158874035,
-0.0234434064,
0.0244373344,
-0.3355987668,
0.0549919195,
0.2501283884,
-0.0868443325,
-0.1595084667,
0.2525751889,
-0.3260988891,
-0.0282561667,
-0.1608092189,
0.3036962748,
-0.0981316268,
-0.4200744629,
0.3788346648,
0.0504896194,
0.4934882224,
-0.111016728,
-0.0529046766,
-0.2154830992,
-0.1853328645,
-0.08539325,
0.2482280135,
0.0028822157,
0.3881594241,
-0.1837255955,
-0.2465016544,
-0.19499816,
0.0526049174,
0.0604828596,
-0.1027673408,
-0.1506115794,
0.1220756397,
-0.2088956535,
0.3195099533,
0.2846774757,
0.0566261597,
-0.1264583617,
-0.1319914609,
-0.126838401,
-0.4514089823,
0.4368926585,
0.0251796264,
-0.2089773268,
-0.3764719963,
0.2247162312,
-0.2646787465,
-0.1912423968,
-0.2710284293,
0.239651069,
0.3196539581,
-0.0518856719,
0.0704682693,
0.0316800363,
-0.2081864029,
-0.1224749535,
-0.0402533263,
0.4102576971,
0.0025106065,
-0.0645008683,
0.1102685407,
-0.0553387478
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Thanks for reporting @patrickvonplaten and thanks for the investigation @severo.
Unfortunately I'm not able to reproduce the error.
I think the error has to do with authentication with `huggingface_hub`, because the exception is thrown from these code lines: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/blob/main/common_voice_8_0.py#L137-L139
```python
from huggingface_hub import HfApi, HfFolder
if isinstance(auth_token, bool):
email = HfApi().whoami(auth_token)
email = HfApi().whoami(auth_token)["email"]
```
Could you please verify the previous code with the `auth_token` you pass to `load_dataset(..., use_auth_token=auth_token,...`? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 70 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Thanks for reporting @patrickvonplaten and thanks for the investigation @severo.
Unfortunately I'm not able to reproduce the error.
I think the error has to do with authentication with `huggingface_hub`, because the exception is thrown from these code lines: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/blob/main/common_voice_8_0.py#L137-L139
```python
from huggingface_hub import HfApi, HfFolder
if isinstance(auth_token, bool):
email = HfApi().whoami(auth_token)
email = HfApi().whoami(auth_token)["email"]
```
Could you please verify the previous code with the `auth_token` you pass to `load_dataset(..., use_auth_token=auth_token,...`? | [
-0.3818594217,
-0.2081790715,
0.0576239452,
0.2595281303,
0.2959937453,
0.3319201767,
0.3500491679,
0.1816910803,
0.2192064673,
0.0894685835,
-0.5308890939,
-0.1895972043,
-0.136817351,
-0.2363358289,
0.1168588027,
0.0489676781,
-0.0462487526,
0.1060479879,
0.5292467475,
-0.1349978149,
0.0129346866,
0.1752549559,
-0.4182132781,
0.2086270601,
-0.3655785322,
-0.223791942,
-0.0834583491,
0.3409718275,
-0.1480693817,
-0.5022247434,
0.0657805577,
0.0664910674,
0.1010731906,
0.3351443708,
-0.0001159692,
0.1934725195,
0.2953518927,
0.0914320722,
-0.0651079938,
-0.1135741323,
-0.039726954,
0.3106776178,
0.0637409762,
0.2539423406,
-0.0948313773,
0.0116352187,
0.0008639303,
-0.4398345053,
0.431879133,
0.3939186037,
0.1532270759,
0.2173142135,
0.3227089047,
0.1527992636,
-0.053540688,
0.1493868679,
-0.0529338978,
0.296672523,
0.0780942291,
0.2811422646,
0.0829141811,
0.1740059406,
-0.0331488177,
-0.1660679579,
-0.0910948887,
-0.0182918776,
-0.2277190387,
-0.1749007106,
0.1240017787,
0.1872700751,
0.6590700746,
-0.2755386233,
-0.2194065899,
0.0338395089,
0.1854036897,
-0.1245852709,
0.2425644398,
0.2331777215,
-0.1590662301,
0.3362694979,
-0.1610645801,
-0.3634683192,
-0.1309421808,
0.1816131175,
-0.0254012849,
0.0953009352,
-0.1344465315,
0.0615910776,
0.1105384976,
-0.0531227551,
0.0120678693,
0.1114240363,
-0.1036853045,
0.4123508632,
-0.2113718837,
-0.0876495019,
0.0320219025,
0.0820211843,
0.3111400306,
-0.0475253128,
0.0034066595,
0.0890768915,
-0.2309187502,
0.1225280389,
0.1482707411,
0.084641926,
0.2566949129,
0.1964293718,
0.269444555,
0.2474646717,
0.1531983614,
-0.1062476933,
-0.3372659087,
-0.1983430982,
-0.0267974157,
-0.1542903781,
0.4733007848,
-0.3472929597,
-0.326063931,
0.2176445723,
-0.2133185863,
-0.0619465336,
0.2855883837,
0.5224424005,
0.0410029106,
0.1599668264,
0.2044221759,
0.2654497921,
-0.2087472528,
-0.0440059714,
-0.0923046395,
0.0391955934,
-0.1217528805,
0.0198091678,
0.2894654572,
-0.6270244122,
0.0961572751,
0.0480110645,
0.4596892297,
-0.2872561812,
-0.2148602754,
0.0799190179,
-0.2256634831,
0.0352010392,
0.1864803135,
0.180200398,
0.1839887202,
-0.1093022749,
-0.0430209376,
0.0114532327,
-0.1740669906,
-0.3195071816,
-0.2733239532,
0.1205219999,
-0.0042071808,
0.0253753494,
0.2752272785,
-0.0244847164,
-0.1661667079,
-0.369823128,
-0.0698020682,
0.1932187974,
0.0896987841,
0.049452439,
0.2831193805,
0.5264354944,
0.0154945794,
-0.0461179651,
-0.2742593288,
-0.2830864787,
-0.2764569521,
0.2618521154,
-0.1959084719,
-0.250534296,
-0.4286296368,
0.4130472243,
0.4586894214,
-0.5707864165,
-0.5317319632,
0.2278275937,
0.0640322044,
-0.0262079425,
-0.0842384994,
-0.2726294696,
-0.0565858334,
0.0278200209,
0.113491714,
0.0050903368,
0.1215288788,
0.0456571169,
-0.0557249784,
-0.0730098262,
-0.0855477825,
0.1547869742,
-0.1053089574,
0.2189814895,
0.2649226785,
0.0564693473,
0.5601183176,
0.1231209934,
0.069894217,
0.099490948,
0.2519982159,
0.0017878026,
-0.0946993455,
-0.0565887317,
0.0334547311,
0.1866931021,
0.1870710552,
-0.0542493053,
0.0192810707,
-0.2293777913,
-0.3430115879,
0.094054684,
-0.3044178486,
0.0264186691,
0.1055686995,
0.2008686662,
-0.0338876918,
0.0643397793,
-0.0742929056,
0.0950081497,
0.224694863,
0.2507315874,
0.0941192731,
0.4340097904,
-0.1936071366,
0.0318267196,
0.0817036107,
0.1955117136,
0.0831768811,
0.0515409932,
-0.0772660822,
0.3155006766,
-0.0487341955,
0.2361294031,
0.0229066014,
-0.0445763841,
0.1996160895,
-0.5553611517,
0.4343589544,
0.0231428277,
0.0730603263,
0.0127121769,
0.1772395223,
0.1645191461,
0.234800905,
-0.0310195722,
-0.000584729,
0.3626870215,
0.0632029995,
0.2367976904,
0.0332308374,
-0.1270736754,
0.1768880934,
-0.1013371572,
0.6630595922,
-0.3435401917,
-0.7223595977,
-0.0899089128,
0.4284305871,
0.0033668063,
0.16804941,
-0.0532046184,
-0.3983492553,
0.1111990437,
0.3032984436,
-0.5512855053,
0.2572219372,
0.1161661372,
-0.1179077029,
0.4783034623,
0.0145967109,
0.0061520189,
0.1705445647,
0.0633246824,
0.069043085,
0.105174832,
-0.2101235539,
0.0596921593,
-0.4947453439,
-0.3642538488,
-0.220532313,
0.0076883826,
-0.5782777071,
-0.1641024947,
0.0805501938,
0.0611632578,
-0.0618759282,
-0.1971524507,
-0.5366534591,
-0.2207690775,
-0.011829854,
0.250158608,
0.2320491076,
0.0904791653,
-0.3380450606,
0.1478216946,
0.1056616753,
0.1699150056,
-0.1171063855,
0.1263041645,
-0.190174818,
0.0447243899,
0.2067144215,
-0.1055628061,
-0.0681231022,
-0.3724746108,
0.3475180566,
-0.229957521,
-0.1422384679,
0.1399272531,
0.0292489044,
0.0390343033,
0.0068585095,
0.0682063848,
-0.122430414,
-0.0716286898,
0.2761169374,
-0.1369375437,
-0.1863934994,
0.1676674932,
0.1336460263,
-0.093101196,
0.0436678305,
-0.1952800453,
-0.2134028077,
-0.4596097469,
0.2307121605,
-0.1007288471,
0.1189735755,
0.2364793867,
-0.0363395847,
0.2681334913,
-0.2945606709,
0.1842873991,
-0.2967645824,
-0.469293803,
0.091131337,
-0.2457764596,
-0.3136011362,
0.2943797112,
-0.0630731955,
0.4383156896,
-0.2312072963,
-0.4566831887,
0.1905536652,
0.0052659418,
0.0859756842,
-0.1452582031,
-0.0008399426,
0.3305298388,
0.1016299278,
0.1524521559,
-0.0179232005,
-0.2124048024,
-0.3426826596,
0.0721739978,
0.0203507282,
-0.1858116537,
0.1931795925,
-0.0925703198,
0.8038676977,
0.34195593,
0.3183121681,
0.3614681959,
-0.2002099305,
0.3733717799,
0.0944165811,
-0.4032409787,
0.4203062356,
0.1968753934,
0.0275352616,
0.4648473263,
0.1575003564,
-0.052212853,
-0.2878299654,
-0.3227240741,
-0.4151635766,
-0.4055906534,
-0.1206252649,
-0.5274922252,
0.0349478386,
0.0989557207,
0.2237288803,
-0.0309853926,
-0.1355679631,
0.0357203633,
0.4595641494,
0.0448738337,
0.0133741871,
0.0278457142,
-0.0614564642,
-0.5249901414,
0.3485371172,
-0.1275981963,
0.5301097035,
-0.2743408382,
-0.024985943,
0.1037983447,
0.1355689913,
0.188031584,
0.0255363956,
-0.0946321413,
0.1707977504,
0.0327197649,
-0.5143497586,
0.0224287193,
-0.1208580211,
0.1645316631,
-0.1718489677,
0.0604006574,
-0.141087085,
-0.0383614413,
0.0406598113,
-0.0820809901,
0.0176107399,
-0.1940610707,
-0.1328769922,
0.0429914892,
-0.5238640904,
0.111847572,
0.0057651615,
0.1159884259,
-0.2500181794,
0.1621584743,
0.1094592139,
-0.2339777499,
0.4151486158,
0.0973965228,
0.0248843748,
0.0029568453,
0.2687405944,
0.6173628569,
0.4146389067,
-0.0237692911,
0.64289397,
0.3346780837,
-0.4204298854,
-0.030756332,
0.1261521876,
0.3155841529,
0.2536799908,
-0.0529692434,
-0.0501518026,
0.2353163511,
0.0175543334,
-0.246897161,
-0.0792227313,
0.3489641547,
0.3153947294,
-0.4495006204,
-0.0425283425,
0.1607552767,
-0.1427161992,
-0.0974347442,
0.2392577678,
0.3751954436,
-0.1255986243,
-0.0266337097,
-0.5253360271,
0.8577902913,
0.2396001816,
0.0862254947,
0.2683737576,
-0.0677577853,
-0.0951197818,
-0.1032446921,
0.0808721781,
-0.1463527977,
-0.2158352137,
-0.049043268,
-0.2296998054,
0.3832470477,
0.2273010015,
-0.3447735906,
0.0303347874,
-0.1579372883,
-0.1676876247,
0.0044044727,
0.2900507152,
-0.5957642794,
-0.0011621196,
-0.1925417185,
0.1200868487,
-0.062138401,
0.5775271058,
-0.148123607,
0.0342224576,
-0.1529109925,
-0.4219873548,
-0.3077859282,
0.3329372704,
-0.1682663262,
-0.0799353048,
0.2585197687,
0.0479774773,
0.7305327654,
0.0738497823,
0.2783250809,
0.1816293597,
-0.4462370574,
0.2053344995,
-0.120841749,
-0.2020869702,
-0.0285814181,
0.0818702728,
0.2550293207,
-0.0941484571,
-0.5202371478,
0.3352642059,
-0.1577768177,
-0.1066843271,
-0.2544674277,
-0.0672293231,
0.2532201707,
-0.2857368588,
0.1727946997,
-0.003494563,
-0.0199240353,
0.0106882025,
0.0717818961,
0.3582236469,
-0.1392103136,
-0.1127616391,
0.2731578946,
0.225368619,
0.0492348261,
0.2895276845,
-0.1537571698,
-0.0510659702,
0.4141519368,
0.0769364238,
-0.1221073791,
-0.2184315771,
-0.2311856449,
0.2496823519,
-0.2664602101,
-0.2622099817,
-0.09786883,
0.0039887931,
-0.0238251891,
-0.1044872701,
0.0644122139,
0.0588459447,
-0.0109678265,
-0.49925524,
-0.4703781605,
0.2268709689,
-0.1298615634,
0.0981633514,
-0.0331845582,
0.4027513564,
0.1447342634,
-0.0066589699,
-0.266132623,
0.1115372628,
-0.057603199,
-0.0828817561,
-0.0926650465,
-0.1120904684,
0.1896558851,
-0.1559185088,
0.1599523872,
0.0509546846,
-0.2690065205,
-0.0671730191,
0.118981801,
0.1501208693,
0.2228072137,
-0.3502287865,
0.3101513982,
0.2252450138,
-0.2392449379,
-0.035438735,
0.0944552794,
0.157063216,
-0.0624160282,
-0.1006012708,
0.0904162899,
-0.1036552042,
-0.1981481761,
0.0037912284,
-0.0844909623,
0.4023412466,
-0.0105940243,
0.1356299818,
-0.2213891,
-0.1493798941,
-0.0076126633,
0.2120420039,
0.2455297261,
0.001250797,
0.3482765257,
-0.1985550076,
0.0711885691,
-0.0064949552,
0.3615739048,
-0.0872756317,
-0.2616744936,
0.1966445595,
0.3142498136,
0.1651057452,
-0.3949651718,
0.0414960422,
0.051652167,
-0.1047001928,
0.058555156,
-0.0601753555,
0.0217893776,
0.000736115,
-0.0744608343,
0.0322930887,
0.1494671106,
0.2963051498,
0.1225965694,
0.1126197204,
-0.3947515786,
0.0634261966,
0.3584439456,
0.0126270913,
0.149648577,
0.1934369504,
-0.7532004714,
0.0555956326,
-0.2386969626,
0.0868806988,
0.3742178977,
-0.3788796365,
0.0434493162,
0.011054934,
-0.1428221166,
-0.104487285,
-0.3160599172,
0.4863744378,
-0.353959024,
0.0369545966,
-0.2893908322,
0.252643466,
-0.3118744791,
0.1976915002,
0.2538948059,
-0.1347998232,
-0.1716153771,
-0.1936366111,
0.1311066449,
-0.3900981247,
0.0314153619,
0.0008523446,
-0.2568022311,
-0.3244231045,
-0.1057901829,
0.3875309825,
0.0625798255,
-0.0456881709,
0.2069614232,
-0.0740214437,
-0.1667813063,
0.4222257435,
0.7251500487,
0.450743556,
-0.1724507511,
0.2726412416,
0.0300911888,
0.2155350596,
-0.0015349939,
0.1799725145,
-0.019127721,
0.3493618965,
0.3290109634,
0.1445387602,
0.0815709308,
-0.0884500742,
-0.2989081144,
-0.2099357247,
0.2699377537,
-0.4344168603,
0.0018388876,
-0.6620000601,
-0.1773474663,
-0.3668066263,
-0.0303362031,
-0.4786824882,
-0.0030254517,
0.3158365488,
-0.0418320633,
0.0088919261,
-0.4414021671,
0.0055081462,
0.2015472203,
-0.0679707751,
0.5265378952,
0.1332239509,
0.1150145605,
-0.3597566485,
-0.5383048058,
0.3571959734,
0.2995770574,
0.002663977,
-0.1016112417,
-0.2054784149,
0.018015651,
-0.0030750136,
0.3653419614,
0.0913165212,
-0.246872291,
-0.2054573148,
-0.103683047,
-0.166180104,
0.2037968487,
0.0548642687,
-0.1051132455,
-0.1020122841,
0.3815465868,
-0.1584850401,
-0.0202558674,
-0.1432229877,
0.4644099176,
-0.3351427913,
-0.4952490032,
0.3725384772,
0.1357262433,
0.3341907263,
-0.1086708456,
-0.0105011771,
-0.1050594449,
-0.2320156246,
-0.0632500127,
0.085087046,
-0.050766129,
0.4826260805,
-0.1166169792,
-0.3127087355,
-0.0373521857,
-0.0334268399,
0.092939347,
-0.0908126161,
-0.3040826917,
0.2868676782,
-0.4514607787,
0.2525303066,
0.2519367337,
0.1301742494,
-0.0375548713,
-0.2006590813,
-0.1201447546,
-0.3173253834,
0.521556139,
-0.1872473955,
-0.1051871702,
-0.2803945243,
0.4113774896,
-0.1524034441,
-0.4450328648,
-0.3945396543,
0.2260279953,
0.1597943157,
-0.0438147336,
-0.0107770134,
-0.1010888889,
-0.1399290264,
-0.0415402502,
-0.0429128632,
0.3550975323,
0.0441450551,
0.0538326129,
0.3761520088,
-0.0080621308
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | OK, thanks for digging a bit into it. Indeed, the error occurs with the dataset-viewer, but not with a normal user token, because we use an app token, and it does not have a related email!
```python
>>> from huggingface_hub import HfApi, HfFolder
>>> auth_token = "hf_app_******"
>>> t = HfApi().whoami(auth_token)
>>> t
{'type': 'app', 'name': 'dataset-preview-backend'}
>>> t["email"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'email'
```
Note also that the doc (https://huggingface.co/docs/huggingface_hub/package_reference/hf_api#huggingface_hub.HfApi.whoami) does not state that `whoami` should return an `email` key.
@SBrandeis @julien-c: do you think the app token should have an email associated, like the users? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 105 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
OK, thanks for digging a bit into it. Indeed, the error occurs with the dataset-viewer, but not with a normal user token, because we use an app token, and it does not have a related email!
```python
>>> from huggingface_hub import HfApi, HfFolder
>>> auth_token = "hf_app_******"
>>> t = HfApi().whoami(auth_token)
>>> t
{'type': 'app', 'name': 'dataset-preview-backend'}
>>> t["email"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'email'
```
Note also that the doc (https://huggingface.co/docs/huggingface_hub/package_reference/hf_api#huggingface_hub.HfApi.whoami) does not state that `whoami` should return an `email` key.
@SBrandeis @julien-c: do you think the app token should have an email associated, like the users? | [
-0.2868961394,
-0.1114272773,
0.054076951,
0.0521808229,
0.2599704862,
0.1541742533,
0.5229559541,
0.2172734588,
0.2576426268,
0.1800563484,
-0.5013438463,
-0.2839031816,
-0.0835964233,
-0.018772684,
0.026273394,
0.0892328024,
-0.0147990091,
0.0623915866,
0.4439668953,
-0.2027258426,
-0.1073847935,
0.1397350132,
-0.194793269,
0.4170069993,
-0.3792050779,
-0.100184828,
-0.148032099,
0.3187802136,
-0.0577252246,
-0.3893383741,
0.0566991456,
0.0613778867,
0.0840580016,
0.1843585223,
-0.0001204251,
0.2173437923,
0.4333310425,
0.120751366,
-0.1726997048,
-0.1751376837,
0.3533343971,
0.4137229919,
0.1092517972,
0.122698471,
-0.125603199,
0.0860597342,
-0.0701271892,
-0.4099159837,
0.4026727676,
0.2996587753,
0.1028093845,
0.2651830912,
0.1975974292,
0.2262071818,
0.1089573577,
0.2851126194,
-0.0332560167,
0.0897809938,
0.0675535575,
-0.0010908404,
0.1341499537,
0.2082287371,
-0.0563598573,
-0.0921555012,
-0.0523605086,
0.0828395784,
-0.1873904616,
-0.291875273,
0.1397755146,
0.1277609169,
0.5161698461,
-0.2496646196,
-0.1755955219,
-0.0384939015,
0.0663578361,
-0.1769807041,
0.2161383629,
0.0038752491,
-0.1050323471,
0.2729219794,
-0.1448024511,
-0.1692107171,
0.0486785471,
0.2883458436,
-0.1144148931,
0.2833461165,
-0.1419600844,
0.1453548819,
0.0363620222,
-0.1741238683,
-0.1342394501,
0.0501718894,
0.0727913529,
0.5265953541,
-0.0785507336,
-0.1468570083,
0.123157829,
-0.1736539453,
0.2622258365,
-0.1152729839,
-0.1380888224,
0.0736707598,
-0.2890015841,
0.0568454191,
0.3494338989,
0.0916087776,
0.3400451839,
0.3662419915,
0.340724647,
0.0716517419,
0.2114827186,
-0.1804734766,
-0.3227257133,
-0.0084295897,
0.0900151655,
-0.1961080581,
0.3871904016,
-0.214781642,
-0.3510162532,
0.2814204991,
-0.3045766652,
-0.1105625629,
0.1788806617,
0.4960236251,
0.0373111777,
0.1084196493,
0.1756714284,
0.1293221414,
-0.1718792021,
0.0316678993,
-0.0663063377,
-0.0915648565,
-0.0445098616,
0.1755393445,
0.2183133066,
-0.616987586,
0.1293364316,
0.0115915807,
0.6600551605,
-0.1341618598,
-0.2616853416,
0.1355152577,
-0.2164286077,
0.1311206073,
0.021902835,
0.3927401006,
0.3343045413,
-0.3336304724,
-0.0978338346,
0.0194709785,
-0.2603822649,
-0.3590401113,
-0.2580870688,
0.0984545052,
-0.160073474,
0.0561957546,
0.1570703238,
-0.0745682418,
-0.0860024095,
-0.1698163301,
0.1204543412,
0.1340397745,
0.0602024011,
0.1553725302,
0.330167681,
0.3443759382,
-0.0105337547,
-0.3719489574,
-0.2399176806,
-0.1868617535,
-0.1543323249,
0.3020905554,
-0.0540895797,
-0.0772332996,
-0.3757863641,
0.369286567,
0.3034480214,
-0.5338541865,
-0.504801929,
0.1710426956,
-0.0376817323,
0.026826581,
-0.1988302916,
-0.2661329806,
0.1223722398,
-0.0215485059,
0.3048942387,
-0.0734462738,
0.1179336384,
0.07366395,
-0.1094848812,
-0.2412392348,
-0.3052126169,
0.2054890841,
0.0923128128,
0.1480296403,
0.2194587141,
0.1068104208,
0.5145202279,
0.0967486575,
0.1423991919,
0.0133989872,
0.3492041528,
0.1012137532,
0.0394083709,
-0.0457822271,
0.1778778881,
0.1491684467,
0.1053545848,
0.0527372435,
-0.1584696621,
-0.2663202584,
-0.3214271665,
0.0644151494,
-0.2964698374,
-0.1418299824,
0.028331738,
0.0519817173,
-0.1208877191,
0.2555200458,
-0.1575794667,
0.0615060069,
0.3336765766,
0.1765345335,
0.1801520139,
0.5518132448,
-0.2457853556,
-0.0032373976,
0.0653348044,
0.266816467,
0.2014115304,
0.0172978323,
0.0267540738,
0.2541031837,
-0.1103895307,
0.0822305232,
-0.0912896544,
0.2707068324,
0.3353666365,
-0.2462831885,
0.3613312244,
-0.077731505,
-0.0161306076,
-0.0775642172,
0.2061467022,
0.3085312843,
0.3838112354,
0.1345810294,
-0.0767583027,
0.3682284355,
-0.1388893872,
0.1715148836,
-0.0561920106,
-0.2766789496,
0.1231014505,
-0.3229568601,
0.4427593052,
-0.3890259862,
-0.5869247317,
-0.0261676498,
0.6088613868,
-0.0799423903,
0.0471676998,
0.001069365,
-0.6515498757,
0.1510838419,
0.2368849963,
-0.6038607359,
0.1657550633,
0.0833352357,
-0.2432789952,
0.5286106467,
0.0565495118,
0.1514246762,
0.1610008627,
0.0062674233,
-0.0205574818,
0.0336550027,
-0.2053480148,
0.0584051125,
-0.3881586492,
-0.2232695967,
-0.2766708732,
0.1142416075,
-0.6176943183,
-0.1157789454,
-0.0040785451,
-0.0060767969,
0.1905205399,
-0.4303975403,
-0.4715015292,
-0.4421295822,
0.0833877549,
0.1422985494,
0.1381832361,
0.0436451621,
-0.3031486869,
0.0530531034,
0.143511951,
0.1261160076,
-0.2300033271,
0.1337678581,
-0.0990429893,
0.0407306813,
0.1203000098,
-0.0734406263,
-0.0396085344,
-0.2780363858,
0.3346633017,
-0.3411409855,
-0.3196768761,
0.3009841442,
0.006318375,
0.1508496553,
0.1158245206,
-0.0007815724,
-0.1596658081,
-0.2972940505,
0.3137167394,
-0.2311154306,
-0.2943923771,
0.1972483695,
0.0870382637,
-0.1306094527,
0.0353548229,
-0.032399375,
-0.1402105391,
-0.3077564836,
0.2243863791,
-0.0297676846,
0.1777117699,
0.1309599727,
-0.0659749657,
0.2286881953,
-0.4495869875,
-0.0930330679,
-0.3793690801,
-0.4064612985,
0.2686637044,
-0.3574323952,
-0.3385027051,
0.2035974711,
-0.0483302549,
0.2979920506,
-0.4815993011,
-0.3884243369,
0.055877924,
-0.1638437659,
0.1366732866,
0.0352125242,
0.0682566389,
0.2351160645,
0.0020120398,
0.0602584369,
0.0062223435,
-0.2107678652,
-0.1657509804,
0.1314434707,
0.0100709526,
-0.1628051698,
0.2522832453,
-0.0642600134,
1.0560592413,
0.1721005142,
0.3151407242,
0.1903136969,
-0.1302105784,
0.4150901437,
0.0204340965,
-0.4644974768,
0.3782862723,
0.1365864873,
0.071227327,
0.5356251597,
0.0849088877,
-0.0241978522,
-0.1429842263,
-0.2731942832,
-0.3066400588,
-0.4612725675,
-0.1710254252,
-0.4936254025,
-0.1529070139,
0.1018070579,
0.197253257,
-0.1076463759,
-0.0757331476,
0.1028872803,
0.4774157405,
-0.0359739177,
0.0718770772,
-0.0319619663,
-0.058474075,
-0.5831488967,
0.290879488,
-0.1497909129,
0.3832583725,
-0.1808605641,
-0.1551826745,
0.0510342047,
0.1128158197,
0.1967516541,
0.1507976502,
-0.1809979379,
0.0512615405,
-0.0323285162,
-0.3040091693,
-0.0077569392,
-0.1084323302,
0.1226699799,
-0.1071902141,
0.3432634771,
-0.109942764,
-0.2395550609,
0.045964241,
-0.3409726024,
-0.0488327853,
-0.2738786638,
-0.1810579002,
0.001354893,
-0.5135451555,
0.0551828258,
0.0573512688,
0.020469185,
-0.255304873,
0.1617475599,
0.0811554864,
-0.1298378855,
0.3313728273,
-0.0642573684,
-0.1135118529,
-0.049484469,
0.2542704642,
0.7222577929,
0.5145218372,
0.0259919427,
0.5672490597,
0.429284066,
-0.2849287093,
-0.074549295,
0.0857501179,
0.2011357993,
0.2865615189,
-0.0304519422,
0.1009449288,
0.2559731901,
0.2724110782,
-0.175997436,
-0.021921955,
0.3784891963,
0.3272143602,
-0.4583279192,
-0.1068809777,
0.1841284633,
-0.168747887,
-0.1287371814,
0.153784588,
0.75128299,
-0.0033000107,
0.0536217019,
-0.3418418467,
0.8587337732,
0.1655920446,
0.0386372395,
0.1619564146,
-0.1048228964,
0.0645731837,
-0.2112924755,
-0.1605528146,
-0.1299357116,
-0.280108422,
-0.0578053743,
-0.0410580523,
0.3252680302,
0.1310998052,
-0.2009351701,
0.0244132951,
-0.0685503334,
-0.2218251675,
-0.0223206151,
0.2070250958,
-0.492667824,
0.0456398949,
-0.0028750291,
0.1063137874,
0.0530522577,
0.7083500028,
0.0393659137,
-0.1093119383,
-0.2922387719,
-0.5481680632,
-0.3346357346,
0.0948110223,
-0.3203180432,
-0.2096466422,
0.306199193,
0.184819296,
0.5979791284,
-0.0845825896,
0.4049162269,
0.1325375289,
-0.3294119239,
0.0611126609,
-0.0312667713,
-0.1471181661,
-0.0801669955,
0.0519087538,
0.3487503827,
-0.1137114763,
-0.5420908928,
0.2875915468,
-0.0574868582,
-0.1385721713,
-0.1718662977,
-0.0302191116,
0.1991552263,
-0.2850140929,
0.1606153399,
0.0557777286,
-0.0895168856,
-0.0218387786,
0.0360084735,
0.2667576671,
-0.0061930614,
-0.0579693131,
0.1712968796,
0.2087732852,
-0.0225042924,
0.3785245121,
-0.3057326078,
-0.2468703538,
0.4902884364,
0.0002183758,
-0.2500407994,
-0.0924429148,
-0.0701010749,
0.5726214051,
-0.2033890635,
-0.2800238729,
-0.1201381683,
0.0112509513,
0.024813341,
0.1029979661,
0.0265245922,
-0.0608381033,
-0.1966089606,
-0.3183638155,
-0.4347276688,
0.2934987843,
-0.2207096964,
0.038578447,
-0.058061298,
0.3429792821,
0.1045023873,
-0.0766721815,
-0.2385696173,
-0.009802782,
-0.1426730603,
-0.0683299005,
0.1388898939,
-0.089099586,
0.3413825035,
-0.207566157,
0.1332700104,
-0.042180527,
-0.2105230838,
-0.1179679334,
-0.0782275796,
0.1763607413,
0.315833807,
-0.3287399411,
0.3149557412,
0.3022599816,
-0.0858846158,
-0.1625424623,
0.2107147276,
0.3952264488,
0.019757051,
0.0482296348,
0.1355821937,
-0.0942020416,
-0.1440533102,
-0.1222310662,
0.0641897619,
0.4821217656,
-0.1282274872,
0.0853109658,
-0.2682045996,
-0.0051907264,
0.1756947339,
0.3324035406,
0.1371475011,
-0.0455972739,
0.4158143997,
-0.2101756632,
0.0694432408,
0.1480614245,
0.2728184462,
-0.0900917053,
-0.3306915164,
0.0461690724,
0.4251645803,
0.1113984585,
-0.3196529448,
-0.0488685556,
-0.161498785,
-0.0968583748,
0.1143281013,
0.0761812404,
-0.0259041507,
0.0053268163,
-0.0132996878,
0.0065684984,
0.2280113846,
0.0950799659,
0.1266638339,
0.3640493751,
-0.3177200854,
0.1291839182,
0.4785379767,
0.0851218104,
0.0406564623,
0.3366435468,
-0.6280321479,
-0.0589383021,
-0.0815607905,
0.1480287313,
0.4779292345,
-0.2769849002,
0.1486769021,
0.0618313551,
-0.0689885616,
-0.0207246058,
-0.1918940246,
0.3566143811,
-0.1320739537,
0.2109929174,
-0.0814938396,
0.222669825,
-0.1446769983,
0.1445960253,
0.2512537837,
-0.1276020408,
-0.3587648571,
-0.2885822654,
0.0206004586,
-0.3564467132,
-0.0146331415,
-0.1489036083,
-0.3197976947,
-0.2557533383,
-0.2002058923,
0.3529807329,
0.1815345138,
-0.0449606329,
0.0448264927,
-0.0512137003,
-0.0913644955,
0.4747235477,
0.6740885973,
0.4399600923,
-0.0409460366,
0.2886544466,
0.1852495223,
0.1163601503,
-0.147940129,
0.2595909536,
0.0334460102,
0.2890909612,
0.0750913173,
0.0404674821,
0.0275564492,
-0.1459373832,
-0.2990348339,
-0.2283016443,
0.3499568701,
-0.244931221,
0.2190813869,
-0.711540997,
-0.1892391443,
-0.2809393704,
-0.0033742245,
-0.4887070954,
-0.0225814767,
0.1807853431,
0.021512486,
0.1311977059,
-0.568911314,
-0.000282177,
0.1059630215,
-0.1268512905,
0.581181705,
0.0522521362,
0.2496820241,
-0.1258330196,
-0.482409209,
0.22885786,
0.1799363196,
0.0329249613,
0.006751874,
-0.1956421733,
0.2004838139,
0.1216341332,
0.4542793334,
0.1533633173,
-0.4441285729,
-0.1604831219,
-0.0460050553,
-0.0326364376,
0.0996197239,
0.1713151932,
-0.0522152297,
-0.1146322265,
0.2863945663,
-0.1120172068,
-0.0277058948,
-0.2286149412,
0.4110289216,
-0.3094927371,
-0.5146023631,
0.2663414776,
0.2847550809,
0.3428767323,
-0.1468849331,
0.0479327366,
-0.0755528733,
-0.1291236877,
-0.2579481602,
-0.0884455666,
-0.0711438879,
0.4574633241,
0.0314330198,
-0.6105041504,
-0.0326716006,
-0.0578301102,
0.0464931987,
-0.2495932132,
-0.2135555297,
0.2689816654,
-0.3352736831,
0.1292811185,
0.1995378137,
0.1754188687,
-0.005708077,
-0.175171718,
-0.1427316219,
-0.3716394901,
0.4607825279,
-0.329546243,
0.0333349183,
-0.267599076,
0.2547487319,
-0.1026714742,
-0.3286082447,
-0.3509122431,
0.1460822225,
0.1917377263,
-0.0774891451,
-0.0530523546,
-0.0706049353,
-0.0707772151,
-0.0212189388,
-0.1599197537,
0.5427927375,
0.1841909736,
0.1211048886,
0.240424484,
-0.1166746989
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | We can workaround this with
```python
email = HfApi().whoami(auth_token).get("email", "system@huggingface.co")
```
in the common voice scripts | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 16 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
We can workaround this with
```python
email = HfApi().whoami(auth_token).get("email", "system@huggingface.co")
```
in the common voice scripts | [
-0.4095231295,
0.0020364104,
0.0243135188,
0.146247983,
0.2652965188,
0.2654664814,
0.4983243048,
0.3220642507,
0.3277715743,
0.2375538051,
-0.5881981254,
-0.2214309275,
0.0245003197,
0.0251563713,
0.2471105903,
0.0379921906,
-0.1972731203,
0.1432468742,
0.3389151096,
-0.2024685293,
-0.032703951,
0.0783917233,
-0.2067918777,
0.2223894149,
-0.1827600002,
-0.1597011685,
-0.242271781,
0.4021184444,
-0.002825439,
-0.3776333928,
-0.0316066407,
0.2188205868,
0.1868147105,
0.1827961951,
-0.0001094196,
0.1927136183,
0.4278788567,
0.0475711934,
-0.0894590914,
-0.0975688919,
0.1208332404,
0.2626068592,
0.1217378154,
0.094657667,
-0.2206158787,
-0.063467361,
0.1419084668,
-0.5289818048,
0.3323993683,
0.3564035594,
0.1883834153,
0.207812205,
0.0832855925,
0.1949603409,
0.1147636846,
0.1261135638,
-0.0230323728,
0.0072656246,
0.1312955618,
0.22783494,
0.0798306167,
0.2049570084,
-0.003546,
-0.230021134,
-0.2633578181,
0.2481694818,
-0.1412241608,
-0.2639778852,
0.2134860903,
0.1988313198,
0.5939075947,
-0.226758033,
-0.1599364281,
0.1486585438,
0.0422473624,
-0.2770854831,
0.1401269138,
0.2389515191,
-0.2022548914,
0.2989360094,
-0.1305092573,
-0.1585634202,
-0.1354341954,
0.2562534213,
-0.1053296626,
0.3406786323,
-0.1108366996,
-0.0259123743,
0.0579131059,
-0.052866973,
0.00324734,
0.0676933825,
0.1261556447,
0.352956295,
-0.0113633443,
-0.1190205738,
0.1691236347,
-0.2231116295,
0.3862529993,
0.0062175477,
0.0508908406,
0.2924116552,
-0.1749304682,
-0.0369295515,
0.2731951475,
-0.1020030975,
0.2779817283,
0.2817975581,
0.4907807708,
0.2748304307,
0.1702087373,
-0.2577558756,
-0.3377166092,
0.0726531371,
0.1994701177,
-0.0609529689,
0.3739828765,
-0.3058968186,
-0.3022986948,
0.1830822527,
-0.1946165711,
-0.1905408651,
0.0767161101,
0.5923423767,
-0.0374209099,
0.1078701839,
0.1150152311,
0.1138830855,
-0.197316736,
-0.029759584,
-0.1968678534,
-0.047118485,
-0.0405799747,
0.0701660365,
0.2611654103,
-0.4457635283,
0.1941941828,
-0.1503422856,
0.6046065092,
-0.0312468857,
-0.0988431126,
0.1845177263,
-0.0651626885,
0.1855990589,
0.2584882081,
0.0775130987,
0.1337387413,
-0.1705448329,
-0.1591219753,
0.0898623243,
-0.0860228688,
-0.2711709738,
-0.2099296451,
0.2096272111,
0.1300888509,
-0.0822483599,
0.3909384906,
-0.012668265,
-0.17594482,
-0.2767807841,
-0.027302485,
0.2031156421,
0.1186555475,
0.0572054237,
0.4038031101,
0.3447987437,
-0.0716261193,
-0.1584733725,
-0.2723267972,
-0.2439525425,
-0.1831490993,
0.2988263369,
-0.0529611371,
-0.3138637245,
-0.3297160566,
0.2962136269,
0.5339968204,
-0.5630581379,
-0.4392895103,
0.1526240408,
0.0929537341,
0.0622512698,
0.0332339294,
-0.1990249902,
0.1449305713,
0.1041391566,
0.1736104935,
0.230777055,
0.05670885,
0.1260943264,
-0.0279317051,
-0.1963029653,
-0.2545321286,
0.1565270871,
0.1910212636,
0.0995030254,
0.2750103474,
-0.1525477767,
0.6661467552,
-0.0232165866,
0.0537507795,
0.1479224265,
0.1990569085,
-0.0027352644,
0.0314254873,
-0.1367360801,
0.1230817661,
0.0562161878,
0.0651147887,
0.0511122607,
-0.0596765615,
-0.3675555587,
-0.3306655586,
0.001687587,
-0.272334218,
-0.0811022073,
0.1896525323,
0.3229326904,
-0.007533913,
0.1917410046,
-0.0680542588,
0.0847138613,
0.3914942741,
0.1710556895,
0.1588059068,
0.4965259731,
-0.2434475273,
0.0706936568,
0.2032492608,
0.1975115389,
0.0811216235,
0.0481608398,
0.0165956896,
0.0701279938,
-0.1278975904,
0.2178532034,
0.0713631809,
0.1255715489,
0.2303213924,
-0.4480302036,
0.4249596894,
0.3493265212,
-0.0062635271,
0.0424776748,
-0.069127433,
0.322614789,
0.2981140614,
-0.0603615157,
0.2674869597,
0.2076251209,
0.1290943325,
-0.0003814212,
-0.033203423,
-0.2253498286,
-0.1373045146,
-0.1638943553,
0.6512545347,
-0.2698913813,
-0.8290802836,
0.028465163,
0.8027486205,
-0.0454727374,
0.0913589373,
-0.0936212912,
-0.6131052375,
-0.0022466599,
0.2481000721,
-0.5318960547,
0.0413680561,
0.3051361442,
0.0232542697,
0.4563534856,
0.0814501569,
0.0340250246,
0.1290748864,
-0.0258648787,
0.0333063267,
0.1071831509,
-0.0216472987,
0.0287546888,
-0.5776331425,
-0.2812432945,
-0.3400544524,
-0.0971815959,
-0.4578571618,
-0.0808669031,
-0.0543458834,
-0.0552883446,
0.0037297474,
-0.0490127504,
-0.2886350155,
-0.290525943,
0.1156925485,
0.1537787169,
0.1039958,
0.0692698807,
-0.4137776196,
0.0517629571,
0.2522603869,
0.1483545601,
-0.2723201513,
0.1613542587,
-0.3087028563,
0.1281907856,
0.0801776648,
-0.1117067933,
0.0376777239,
-0.296051085,
0.2651402354,
-0.3209290802,
-0.2039067745,
0.2876220644,
0.1157804057,
0.0543095209,
-0.0831368417,
-0.073598519,
-0.1482092589,
0.0269283131,
0.2344821841,
-0.215966329,
-0.2713258564,
0.0983486697,
0.0142233428,
-0.0669654459,
-0.0247221943,
-0.3469003439,
-0.327578783,
-0.3786556125,
0.083338134,
0.0055000894,
0.1476050466,
0.0750163496,
-0.1887687892,
0.1716427952,
-0.3423747122,
0.0620200485,
-0.2051534504,
-0.4287617505,
0.3789331019,
-0.4110793769,
-0.4037519097,
0.1403773576,
-0.1255555302,
0.2663928866,
-0.26704669,
-0.3346449137,
0.1360753179,
-0.0698052943,
0.0600351766,
0.0070764604,
0.1472149938,
0.3617826104,
0.100420326,
-0.1060339063,
-0.1234554723,
-0.1905680895,
-0.1989869028,
-0.0211863294,
-0.0098891426,
-0.1586038172,
0.2180593163,
-0.0161360744,
0.9828834534,
0.1225120723,
0.2577780485,
0.2104891092,
-0.3356346488,
0.3596498668,
0.1499953419,
-0.31152004,
0.3158492446,
0.2107171863,
0.0449013114,
0.6205459237,
0.0824509859,
-0.1074204892,
-0.2096976191,
-0.2124072313,
-0.3234891593,
-0.2991758287,
-0.1921718717,
-0.4294312596,
-0.0213500597,
0.0592318065,
0.2579843104,
-0.0667619035,
-0.121237509,
0.2544982135,
0.3117060959,
-0.1792772114,
0.1508807093,
0.1169779748,
-0.0148553401,
-0.3543696404,
0.3983813226,
-0.0686478168,
0.1949408948,
-0.0743635744,
-0.120489724,
0.1005709842,
-0.0050633824,
0.1001474112,
0.0266265422,
-0.2018437088,
0.1732802987,
-0.0639500245,
-0.1221142337,
0.0601321645,
-0.2950720787,
0.0100827813,
-0.2030518651,
0.0145762907,
-0.129543826,
-0.149458617,
0.1607454419,
-0.2042835653,
-0.1139373481,
-0.166529417,
-0.1603974998,
-0.041129712,
-0.4768490195,
0.0223012604,
-0.1386864632,
-0.0212151371,
-0.3814383149,
-0.0833031908,
0.1776443422,
-0.0887718499,
0.3026212454,
0.1275630593,
-0.027042307,
-0.1452365518,
0.2098961473,
0.547293067,
0.574593246,
0.0464194305,
0.5761632919,
0.4231189787,
-0.4154666066,
-0.1580874175,
-0.055506628,
0.4026757479,
0.1209518388,
-0.117794551,
-0.1559924036,
0.3231828809,
0.1407573074,
0.0541252233,
-0.1037524566,
0.3852938116,
0.2386910319,
-0.355784595,
-0.23482728,
0.1156047136,
-0.0923525169,
-0.0736681297,
0.1004486457,
0.2107428312,
-0.1308858395,
-0.1060638577,
-0.3822976351,
0.7001500726,
0.0862104818,
0.1584726423,
0.2178952992,
-0.2000707835,
-0.2269333154,
-0.117895633,
-0.0101031074,
-0.2465489656,
-0.1068886369,
-0.0703866482,
-0.065472275,
0.2732780874,
0.2285586298,
-0.3387247324,
0.1217753962,
-0.1402571946,
-0.2695190012,
0.0758519024,
0.3268202543,
-0.4496545196,
-0.0092348382,
-0.1994420141,
0.1499598771,
-0.0740741268,
0.504227221,
0.0356279984,
-0.2127586305,
-0.1253199428,
-0.3931192458,
-0.1102576107,
0.3564916849,
-0.2289008498,
-0.1220583767,
0.1939759552,
0.0853198469,
0.3172625899,
-0.0957694426,
0.2434880883,
0.2904349566,
-0.2748723626,
0.0465413965,
0.0290784482,
-0.0174876899,
-0.0397799462,
0.1293326467,
0.4555408061,
-0.1834358722,
-0.5169002414,
0.339815557,
0.042820435,
-0.1419732869,
-0.2942477465,
-0.1196090281,
0.3255223036,
-0.1298082024,
0.2364501953,
0.0374071188,
-0.0485897735,
-0.0647841766,
0.1356032789,
0.2848550081,
-0.1051679552,
-0.1378646195,
0.3573057652,
0.2479161769,
-0.0843303427,
0.2575146556,
-0.0405419245,
-0.1714737862,
0.4659648538,
0.084409602,
-0.1787452698,
-0.2442519069,
-0.1661802381,
0.3487425447,
0.0279357731,
-0.1970370114,
-0.1162826717,
0.0048743421,
-0.0725532621,
0.0778324753,
-0.1853795797,
-0.0586221516,
-0.1551221758,
-0.391951412,
-0.3959800601,
0.2556974888,
-0.1472911835,
0.1633789837,
0.1286509335,
0.2799342573,
0.102243565,
-0.1610576063,
-0.3604988754,
-0.0968428031,
0.0178461857,
-0.1723403335,
0.0756963044,
-0.0475709327,
0.2018498033,
-0.0022680575,
0.2453577965,
-0.1753807217,
-0.149382174,
-0.202634275,
0.003203697,
0.1076269224,
0.0979730263,
-0.2153236717,
0.246413812,
0.2236562073,
-0.2469602376,
-0.1577099711,
0.2888419032,
0.2200477421,
0.032739222,
0.0949513912,
0.0453515723,
-0.2805547118,
-0.069283098,
-0.1285692751,
-0.0847680643,
0.2699794471,
-0.1634649336,
0.2070039511,
-0.2304102629,
-0.1503248513,
0.2697722018,
0.1651128083,
0.361292541,
0.1892415136,
0.4473550916,
-0.2512055635,
-0.030881498,
0.1864175051,
0.3460605145,
-0.1689061671,
-0.2373768389,
0.2088302225,
0.2291546911,
0.2288900167,
-0.4951925576,
0.0281939376,
-0.1240890622,
-0.3327299654,
0.0861656368,
0.0608620569,
-0.0433885641,
0.0067570573,
0.1326345503,
-0.0106746899,
0.083333157,
0.020384999,
0.0470604636,
0.1400588006,
-0.4044212103,
0.1397071481,
0.4288198352,
0.0494205803,
0.1006957144,
0.3208620846,
-0.4111725986,
-0.0223654956,
-0.0070722997,
0.0929013267,
0.2976396084,
-0.3086199462,
0.1504617631,
-0.1613848954,
-0.1852205694,
-0.0088589247,
-0.1456955373,
0.3096089363,
0.0577067956,
0.2370492518,
-0.2057086378,
0.2459017485,
-0.1636512578,
0.1657892615,
0.291936487,
-0.153083995,
-0.1782578975,
-0.0914396644,
0.2231665254,
-0.2193258703,
0.1322920918,
-0.0906530693,
-0.1870512068,
-0.2133497298,
0.0409025326,
0.2738808692,
0.1083403826,
-0.1348112077,
0.0660591722,
-0.1510997862,
-0.1076767519,
0.2489170879,
0.6565270424,
0.2456158996,
-0.0831810758,
0.2005595416,
0.0303362627,
0.1617539823,
-0.2811760902,
0.0234779585,
-0.1312265545,
0.4641134739,
0.1465965956,
0.0212393217,
0.1321852207,
-0.1863654554,
-0.1750630438,
-0.1892008632,
0.1531144828,
-0.3255850673,
0.101146996,
-0.4603445828,
-0.2296047211,
-0.2635371983,
-0.2508557737,
-0.6011719108,
-0.2314706445,
0.3859605789,
0.0114565026,
0.1736731231,
-0.5614154935,
0.0726569593,
0.1401285678,
-0.0373795778,
0.4795394838,
0.1146570593,
0.3014341593,
-0.0574235655,
-0.5149940848,
0.2837609351,
0.3073301911,
-0.1371836811,
-0.1819283217,
-0.1930539906,
0.2739114761,
-0.0211846232,
0.5096980929,
-0.0544461943,
-0.2127359211,
-0.2437707037,
-0.148409456,
-0.1409821957,
0.0682762042,
0.2324044704,
-0.092578806,
-0.2485378236,
0.1116849855,
-0.241088599,
0.0891554281,
-0.1620506644,
0.3823186755,
-0.2464978248,
-0.4590024352,
0.2152916491,
0.1125795096,
0.5133965015,
-0.277648747,
0.1462625861,
0.0179705564,
-0.136863634,
-0.140401721,
0.1035974771,
-0.0963660032,
0.3877679706,
0.0259721167,
-0.5535507798,
-0.0886992365,
-0.0998720676,
0.0003994004,
-0.3125969768,
-0.012884533,
0.2098982781,
-0.3190429807,
0.0617212951,
0.2378132641,
0.0994137153,
-0.1196118966,
-0.3719259799,
-0.0565365106,
-0.3593907952,
0.328291893,
-0.2963142395,
-0.2528730035,
-0.4488342404,
0.2908834815,
-0.3308050931,
-0.1946897954,
-0.2062400728,
0.2813575268,
0.2250878513,
-0.1373201609,
0.019820109,
0.0549952537,
0.0662441552,
0.0838084146,
-0.1471394151,
0.4502892494,
0.2141239494,
0.0495649278,
-0.0975916684,
-0.1163917631
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Hmmm, does this mean that any person who downloads the common voice dataset will be logged as "system@huggingface.co"? If so, it would defeat the purpose of sending the user's email to the commonvoice API, right? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 35 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Hmmm, does this mean that any person who downloads the common voice dataset will be logged as "system@huggingface.co"? If so, it would defeat the purpose of sending the user's email to the commonvoice API, right? | [
-0.1696701944,
0.1444740295,
0.0457174219,
0.2471178919,
-0.0200229455,
0.3168714345,
0.5003870726,
0.0581495129,
0.3065966666,
-0.0658347681,
-0.356238693,
-0.1942665726,
-0.0795760378,
-0.109813571,
0.2577853203,
0.2352219075,
-0.012772751,
0.1207207665,
0.3894254565,
-0.3368721008,
-0.0650327727,
0.1487873644,
-0.2567525208,
0.1685274839,
-0.2674521506,
-0.1680471152,
-0.1476168782,
0.2181976736,
-0.1104325056,
-0.1833328903,
-0.0009877784,
0.2116365284,
0.0305200294,
0.1964889467,
-0.0001236418,
-0.0162212588,
0.3389793038,
0.1268910766,
-0.2304998189,
-0.0123234112,
-0.335355103,
0.309384197,
0.1744683087,
0.0599450655,
0.0319626629,
-0.0401544496,
0.2058165669,
-0.6824607253,
0.3626073897,
0.1300735027,
0.0545773432,
-0.0684350133,
0.0169806946,
0.210094437,
-0.2084031254,
0.2326566577,
-0.035437122,
0.0556128994,
-0.0643152446,
0.3026400506,
0.1036577374,
0.0721576735,
0.1103362441,
-0.1902239919,
-0.0676961467,
0.2021877766,
-0.2696988285,
-0.3381328285,
0.1577853709,
0.1526190639,
0.8610349298,
-0.1647202075,
-0.1900161207,
0.1047774777,
0.1616856903,
-0.3221175373,
0.2960388362,
0.2580267191,
-0.2492801398,
0.2499502003,
-0.1393003315,
-0.3364042938,
-0.0594484247,
0.2499721795,
-0.3393324018,
0.0757905692,
-0.3214439452,
-0.0342257991,
0.0460306779,
0.1009971797,
-0.281698823,
-0.0451772362,
0.2109937668,
0.4559106827,
-0.0543451682,
-0.2718265057,
0.0776029602,
0.0951762646,
0.1192869693,
0.099509947,
0.2468059063,
0.1325251609,
-0.3170123994,
-0.1053051874,
0.4842472374,
-0.1205603331,
0.2196616828,
0.2385187298,
0.3433713615,
-0.0138265267,
0.3857790828,
-0.1957535148,
-0.4318098426,
0.2282677591,
0.0458996743,
-0.2252506018,
0.3169440925,
-0.4371704459,
-0.3447434604,
0.3499059975,
-0.3051380217,
-0.0308306087,
0.1068888158,
0.2988147736,
-0.0765873194,
-0.0229475517,
0.130383566,
-0.0307151601,
-0.1231063679,
0.0679290742,
-0.0925531238,
-0.2819475532,
-0.2818252444,
0.1599203199,
0.2646994889,
-0.4973932803,
0.1898802966,
-0.1416032314,
0.4540891945,
0.0005071914,
-0.090173088,
0.2217243016,
-0.1220074221,
0.0197439101,
-0.0224144664,
0.4050757587,
-0.0885162354,
-0.0618042126,
-0.2272736877,
0.1600982845,
-0.2758057415,
-0.2538973093,
-0.1483842134,
0.094077751,
-0.0825481191,
-0.113669306,
0.3562026024,
-0.0711484998,
-0.0581928119,
-0.3040513396,
0.0958767682,
0.1957277805,
0.1960664839,
0.0875728279,
0.0798808634,
0.3878017366,
-0.188424319,
-0.2445067167,
-0.4541064501,
-0.298599124,
-0.2266094536,
0.2439158708,
-0.0529104322,
-0.4559850991,
-0.4551980793,
0.4076016247,
0.6409577131,
-0.4132588804,
-0.338406384,
0.1637256294,
-0.1738060266,
-0.0387180448,
0.1210491806,
-0.2175824046,
0.1071084961,
-0.1599974632,
0.0697437078,
0.0176164396,
0.1510195136,
0.03866487,
0.0139952721,
-0.188108474,
-0.2884821892,
0.0357962735,
-0.1108744368,
0.1505910158,
0.2777791619,
-0.0714904815,
0.6741788983,
0.3343598545,
0.1501781195,
0.0412363969,
0.2069399953,
-0.0530258082,
0.0496172085,
0.066922918,
0.0850054622,
-0.1758357286,
0.1082062796,
-0.0409724973,
0.2679082155,
-0.4834800959,
-0.1992108673,
-0.0803582296,
-0.4225882292,
0.0229784492,
-0.0168658122,
0.2607882321,
0.0078893648,
0.0412809849,
-0.0880349651,
-0.1143284813,
0.3743391931,
0.1253147423,
0.0121711334,
0.0927695259,
-0.0335813127,
0.3420111239,
-0.0384987108,
0.2520917058,
0.0286425818,
0.0435684659,
0.2320808321,
-0.0024900211,
-0.209682107,
0.3660030365,
0.0231393799,
0.4541222453,
0.1657929271,
-0.2564871609,
0.4509606361,
0.2574105561,
0.0028811872,
0.0554642417,
-0.1575803608,
0.2628371418,
0.454385221,
-0.0420336016,
-0.0699222162,
0.2409908473,
-0.0625731423,
0.0877448767,
-0.1208256483,
-0.1548853368,
-0.0709540322,
-0.0993074998,
0.6734238863,
-0.2212026864,
-0.8112596273,
0.0803634673,
0.488104403,
-0.030320473,
-0.0566304475,
-0.2049521357,
-0.5639746189,
0.0199624859,
0.2867696881,
-0.4129716754,
0.3034546375,
0.2747434676,
0.245868504,
0.3579985499,
0.237358436,
-0.0346649326,
0.1554118693,
0.0421147831,
-0.0143844197,
0.124476403,
-0.3729010224,
0.1081438735,
-0.4272907078,
-0.2201068252,
-0.1030598506,
-0.307959348,
-0.4074806869,
-0.1675641686,
-0.0290357191,
-0.0825605243,
-0.3484896421,
0.0293312985,
-0.3411601782,
-0.2437998056,
0.1314688474,
0.1328960657,
-0.0378039926,
0.0026376704,
-0.5623478889,
0.4611237347,
-0.014244426,
0.3259682953,
-0.4227150083,
0.3088787198,
-0.0612501688,
0.1020610109,
0.0593384951,
-0.1633824706,
0.0296540484,
-0.225304693,
0.3501110077,
-0.2425990552,
-0.2133827358,
0.367495656,
0.176434055,
-0.1835153997,
0.0064224941,
-0.1760602444,
-0.0809290707,
0.2578850091,
-0.1529333144,
-0.2120832205,
-0.1933772415,
-0.1656864434,
0.1357015818,
0.0994972587,
0.0060645714,
-0.1755816191,
-0.254316628,
-0.1946293563,
0.1715612561,
0.0452267081,
0.1502887905,
0.3515640497,
-0.2582078874,
0.144451797,
-0.3581276834,
0.1099763438,
-0.3767466545,
-0.3674285114,
0.2225749791,
-0.3451326787,
-0.1631499082,
0.2091717124,
-0.0440861396,
0.2366660535,
-0.130973801,
-0.3712940216,
0.1536388993,
0.0418379083,
0.0010018669,
0.3139320314,
0.1025788635,
0.3630253375,
0.0245274622,
-0.0269325394,
-0.0192775782,
-0.1382132471,
-0.3376460373,
0.2436941564,
0.2831068337,
-0.1332166046,
-0.0579571165,
-0.2136445642,
1.0313493013,
0.1707180142,
0.1636918783,
0.079076238,
-0.2325245589,
0.5246005058,
0.289886564,
-0.2140197009,
0.1494823992,
0.1925262362,
0.0261753835,
0.4168418646,
0.2424059659,
-0.120853357,
-0.2261600792,
-0.0255802553,
-0.2780741155,
-0.1878535897,
-0.2435633391,
-0.2339773029,
0.0777997822,
0.2714919746,
0.2770878673,
0.0075111361,
-0.1502283216,
0.0141436988,
0.4010440707,
0.0788140446,
0.0467873886,
0.1853801459,
0.0939804465,
-0.4050250351,
0.2889372706,
-0.2256556451,
0.0643513352,
-0.1546642929,
-0.1612035632,
0.2622926235,
0.2236131579,
0.2050602585,
0.1564370692,
-0.2518943846,
-0.1398605853,
0.2495859861,
0.1031240821,
0.0618939698,
-0.2974472642,
0.2160103321,
-0.2947586775,
-0.1148797646,
-0.0086854286,
-0.1900369078,
0.1565850377,
-0.1495435536,
-0.1798561066,
-0.081946142,
-0.1848638058,
-0.0172169115,
-0.1909374446,
0.0942305475,
-0.1061020643,
0.0689658076,
-0.4018400609,
-0.0472355187,
0.2679963708,
-0.0941659734,
0.3747861385,
-0.1803909391,
-0.0549386479,
0.1000182554,
-0.0020646586,
0.681851089,
0.7534114122,
-0.0448250249,
0.6597626805,
0.468111068,
-0.1624673307,
0.0935251191,
-0.1233666986,
0.3823853135,
0.5502835512,
-0.0284952112,
-0.3092667162,
0.3763149977,
0.0714760423,
-0.0046057133,
-0.0165463164,
0.3226153553,
0.3450996876,
-0.4722557366,
-0.1815768629,
0.1832287461,
0.0911101028,
-0.1643540859,
0.1839881837,
0.359141767,
-0.1333365887,
-0.3831192553,
-0.2948350012,
1.061260581,
0.443405807,
0.3256056905,
0.212280795,
-0.1171050966,
0.0559112802,
-0.0817842558,
0.1271838844,
-0.2129460275,
-0.0169162657,
-0.3463374674,
-0.2764980793,
0.3067031503,
0.2357301563,
-0.0671512857,
0.0218272787,
0.0271439701,
-0.1420681924,
0.1004625484,
0.3504035175,
-0.4646154642,
0.0528854094,
0.1814011633,
0.0115536721,
0.085560143,
0.7272953987,
-0.0197339747,
-0.3054167926,
-0.1394594908,
-0.4661754072,
-0.1218066663,
0.1691824347,
-0.1209012866,
-0.1415253431,
0.1337842196,
0.0655984581,
0.4710144103,
-0.1092676967,
0.0903947651,
-0.0064288597,
-0.3890672922,
0.0825356618,
-0.0248863567,
-0.0899294391,
0.135282129,
-0.0448255576,
0.2320851535,
-0.1155578047,
-0.2600906193,
0.2621026337,
-0.0755471438,
-0.0468604267,
-0.6584346294,
0.0165131055,
0.362390399,
-0.3600278199,
0.3468282819,
0.1836951971,
-0.2226085067,
0.0957685187,
0.0242843851,
0.3936712742,
0.0204804242,
0.0295179337,
0.2447349727,
0.2622901499,
-0.1936992556,
0.4656292498,
0.1144175231,
-0.3043749332,
0.4316125214,
-0.333013624,
-0.2156259716,
-0.1727729887,
-0.0627981126,
0.3993193209,
-0.3298276663,
-0.297717005,
0.0036279496,
-0.0334565863,
-0.2047291398,
0.0930194631,
-0.1382554322,
0.1815635413,
-0.2465508729,
-0.316414237,
-0.084593989,
0.1421070546,
-0.277626574,
0.2140541077,
-0.0754460543,
0.0689401925,
0.309604764,
-0.38231197,
-0.2209232152,
-0.0530133173,
0.25551036,
-0.0853174925,
0.2595820725,
0.14974159,
0.2144826353,
-0.0308059305,
0.1198338494,
-0.1619575173,
-0.1552873552,
-0.0354066752,
0.2153917998,
0.2107299417,
0.2181782424,
-0.2515171468,
0.253477633,
0.3380877376,
-0.32715258,
0.224470064,
0.0497279949,
0.0929281265,
0.1105610132,
-0.1865144521,
0.0434785672,
-0.0881126896,
-0.1584995091,
0.0353671275,
0.1467005014,
0.2991470397,
-0.2679618895,
0.162563622,
-0.2486735582,
-0.1680642962,
0.1494575441,
0.2001084536,
0.2659802139,
0.0437083393,
0.3886324167,
-0.2544764876,
0.166125536,
0.2919082046,
0.3593803346,
0.1633331329,
-0.2174840271,
0.0129332161,
0.3041700125,
0.1191104278,
-0.2185760587,
0.2278191,
-0.0630227849,
-0.1253259629,
-0.2575056553,
-0.0159756485,
-0.0794776976,
-0.055073522,
0.2817620933,
-0.0524243563,
0.0630593374,
0.1607624739,
0.3559252024,
0.0979918838,
-0.5946172476,
0.2355617136,
0.4926632643,
0.1556917876,
-0.1248161718,
0.1892463416,
-0.5210446715,
-0.1031526849,
0.1120970026,
-0.0146834832,
0.1764165163,
-0.3252497315,
0.2248850167,
0.0955699235,
-0.1634462029,
0.1058460176,
0.0610016063,
0.2231768221,
-0.2994135022,
0.3595791161,
-0.3632430136,
0.0830076411,
-0.2589507103,
0.3180634379,
0.1505308449,
-0.2628370821,
-0.0593946725,
-0.0073378454,
0.0729294792,
-0.3242998719,
0.0072016083,
-0.3212519288,
-0.2939056456,
-0.3795804381,
-0.1596900672,
0.1736576706,
0.2037114203,
-0.0627181977,
0.0677345246,
-0.3853457868,
-0.070675537,
0.4412961006,
0.6821466088,
0.198080793,
-0.0927077457,
0.5865591168,
-0.0288245548,
0.2578452229,
-0.2034781873,
0.1142013222,
-0.0075094062,
0.5035375357,
0.0897695124,
-0.0353355445,
0.0209506508,
-0.0063299746,
-0.1661971211,
-0.0656683519,
0.1862397492,
-0.3750017583,
0.1226083189,
-0.574804306,
-0.1445548236,
-0.2461121827,
-0.1607310027,
-0.5120924711,
-0.1927832663,
0.2264638692,
0.0759178624,
-0.0348888189,
-0.7131965756,
-0.0052743703,
0.1244780794,
-0.0468392819,
0.3638569117,
0.0517259091,
0.1959846169,
-0.0557932444,
-0.3849832416,
0.5141718388,
0.4168033004,
-0.1281901896,
-0.2952347994,
-0.2468748093,
0.2042051107,
0.2009267956,
0.2521946132,
0.0500115454,
-0.0677770749,
-0.1655803919,
0.0758968145,
-0.0766457096,
0.1531038284,
0.3875078559,
-0.0890343413,
-0.243638441,
0.4567966461,
-0.2174960971,
-0.021990357,
-0.1759423912,
0.3859414458,
-0.5130813122,
-0.0837253109,
0.1408529431,
0.0499361381,
0.3681749403,
-0.1302506924,
0.0724287778,
-0.0271650311,
0.1113677174,
-0.2442064285,
0.1987878829,
0.0007776838,
-0.0247107651,
0.0664481446,
-0.2557949126,
-0.0428926647,
-0.3094672263,
-0.0658814311,
-0.0220317561,
0.0663705468,
-0.000742294,
-0.4832879901,
0.1068853065,
0.3410538137,
0.1193088517,
-0.037115626,
-0.5185197592,
-0.106232278,
-0.2123138458,
0.3664746284,
-0.3294660151,
0.1021235958,
-0.3057563007,
0.3916806579,
-0.0854663625,
-0.1927403808,
-0.2151103318,
0.1601141691,
0.2761678994,
-0.2436316311,
0.128591314,
-0.0141567374,
-0.1556381285,
0.0253587738,
-0.1517102122,
0.4865681827,
0.2543554008,
-0.1187879518,
0.1776041538,
-0.1557795405
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | I agree with @severo: we cannot set our system email as default, allowing anybody not authenticated to by-pass the Common Voice usage policy.
Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
CC: @patrickvonplaten @lhoestq @SBrandeis @julien-c | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 61 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
I agree with @severo: we cannot set our system email as default, allowing anybody not authenticated to by-pass the Common Voice usage policy.
Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
CC: @patrickvonplaten @lhoestq @SBrandeis @julien-c | [
-0.4233382344,
0.2953563631,
0.0905707181,
-0.0621563978,
0.099763453,
0.1812495142,
0.7674459815,
0.2327231616,
0.2935930789,
0.1703319103,
-0.0979548171,
0.0021814017,
-0.0064492924,
-0.1200801954,
-0.0111923395,
0.2903728783,
-0.2454335988,
0.1893628985,
0.1547878832,
-0.1879290789,
-0.0789521784,
-0.0115279388,
-0.2579064667,
-0.0652331635,
-0.0671938211,
-0.1484672427,
0.0066122976,
0.3384521008,
-0.1235312894,
-0.4067033827,
0.0623403415,
0.2879841924,
0.0023793089,
-0.0792360604,
-0.0001072439,
-0.0505110472,
0.4962916672,
0.1392319649,
-0.0588048622,
0.1276811808,
-0.1150733605,
0.3824068308,
0.0218191165,
-0.1040944532,
-0.1248958185,
0.0892861187,
0.0936565623,
-0.6929329038,
0.477137208,
0.4681118429,
0.2153662592,
-0.0973077714,
-0.0490248017,
0.130845353,
-0.2248116136,
0.1094797328,
-0.0700435936,
-0.0117718773,
0.0268960148,
0.1375594884,
0.0240661688,
-0.0304673836,
-0.0308691971,
-0.2740543187,
-0.1377140582,
0.0744155198,
-0.0494580828,
-0.3751392663,
0.1602351367,
0.2922244072,
0.8587343693,
-0.1033569649,
0.1947626024,
0.1928828955,
0.0756107941,
-0.2657173872,
0.3846790493,
0.0557274185,
-0.1543738097,
0.3975122571,
-0.16738379,
-0.1042611599,
-0.0760854408,
0.088912867,
-0.2036587745,
0.1370081753,
-0.1558481753,
0.0302180033,
0.0139320046,
0.0267023034,
0.2951020598,
-0.0405587144,
0.0152014699,
0.2233926356,
0.0609805249,
-0.2454096526,
0.0865677819,
-0.189503938,
0.2344322801,
0.1626685858,
0.24605003,
0.216324091,
-0.1419855505,
-0.028805431,
0.2349186838,
-0.0953587145,
0.2938950062,
0.1804084778,
0.3747442365,
0.1495586187,
0.375587225,
-0.0536020212,
-0.249377504,
0.0463545732,
0.1719510555,
0.0529559366,
0.3513126373,
-0.3440456688,
-0.2341462821,
0.3392626941,
-0.0487364344,
-0.1340741664,
0.1440400034,
0.3235267997,
0.0348541178,
0.1980133206,
0.1002553701,
0.0047978209,
0.0032520492,
-0.06112995,
-0.0570287779,
-0.1612992585,
-0.2262619585,
0.0917355716,
0.3863495886,
-0.4406767786,
0.0632355809,
0.1013922542,
0.4308885932,
0.0099550085,
-0.034830045,
0.1312271059,
-0.1330004483,
-0.0738457069,
0.0081334477,
0.3835434914,
0.0547221117,
0.0198993329,
-0.0461441316,
0.1897916645,
-0.1143639162,
-0.3485927582,
-0.0502647273,
0.2026529014,
0.052884791,
-0.1077941433,
0.504994452,
0.0224378351,
-0.0911326706,
-0.2298962772,
-0.0060828319,
0.1839574426,
0.0489556156,
0.1447309256,
0.0320826769,
0.5131030083,
-0.2844920158,
0.0297547746,
-0.5368573666,
-0.2461690903,
0.0268636961,
-0.0001900899,
-0.2115801573,
-0.3371140957,
-0.2643442452,
0.1638465971,
0.3534050286,
-0.1879041195,
-0.4833619595,
0.046855323,
-0.0874166563,
-0.1514127403,
0.171229139,
-0.1242989674,
0.2027646452,
0.000691382,
-0.0048336573,
0.2312173992,
0.1259565651,
0.1607141346,
-0.1273127794,
-0.254453361,
-0.1040290967,
0.0030419945,
0.1447849423,
0.2336650044,
0.3167700768,
-0.025162695,
0.4435283244,
0.2056816518,
0.0735749751,
-0.0454731807,
0.2438955754,
-0.2379408479,
-0.0638542771,
0.0894966573,
0.1214461699,
0.005335696,
0.245220542,
0.133460924,
0.2630959153,
-0.2477944791,
-0.4098446369,
-0.1104800254,
-0.1813814938,
0.0714981556,
0.163215369,
0.4153912961,
-0.1573421657,
-0.1341294795,
-0.1106767356,
-0.1191177964,
0.2009207755,
-0.0077161063,
0.1998433322,
0.1554054916,
-0.173335135,
0.1787125915,
0.0438802652,
0.0112901898,
0.1032241285,
0.1237004027,
-0.0375597924,
0.1477492303,
-0.0433165655,
0.1545857787,
-0.0999792963,
0.1785350442,
-0.0875926912,
-0.4526892304,
0.4138153791,
0.3827386498,
-0.0266212355,
0.1058202162,
-0.2339655757,
0.3104703426,
0.2550871372,
-0.2947615981,
-0.1782937944,
0.3584683537,
-0.0415203907,
-0.0988579988,
-0.1104621068,
-0.1902689189,
-0.3526342511,
0.0415523052,
0.5808966756,
0.0181525219,
-0.6463232636,
-0.0504579507,
0.6911429167,
0.0716450736,
-0.0790994391,
-0.2304682434,
-0.2376014441,
-0.1882018298,
0.2219525874,
-0.3901032805,
0.1025998816,
0.1839968562,
0.0159036499,
0.4362363815,
0.0664579943,
-0.0452066846,
0.0647497401,
-0.2109288722,
0.1651023626,
-0.0178062581,
-0.0800650641,
0.140448153,
-0.488152951,
-0.283895731,
-0.015496999,
-0.1431572884,
-0.4723086953,
-0.2470200658,
-0.0299514309,
0.2013856769,
-0.0568846762,
0.1949265599,
-0.0691342652,
-0.1815335602,
0.1805744618,
0.062756367,
-0.1225767359,
0.1363533437,
-0.5826311707,
0.5189606547,
0.150726527,
0.203096509,
-0.3624378145,
0.4717496037,
-0.1901072562,
0.2215452343,
0.0814210251,
-0.2532559931,
-0.109418489,
-0.0691049695,
0.0449927077,
-0.2173288316,
-0.1432058811,
0.3307323456,
0.2695283592,
0.1518424749,
-0.1835335344,
-0.0836501569,
-0.1190443709,
0.1190684736,
-0.119622685,
-0.319668591,
-0.1245087385,
0.1658354104,
0.0447659343,
0.0423923507,
-0.1343927234,
-0.4771488905,
-0.2296965271,
-0.3083020747,
-0.1367562115,
0.0894119218,
0.1741540283,
0.1653181165,
-0.0928020924,
-0.0933736414,
-0.3339851797,
0.1478591263,
-0.2596540749,
-0.4808800817,
0.3693075478,
-0.3001879156,
-0.3149932623,
0.0790086091,
-0.0660960823,
0.2026498169,
-0.0640627891,
-0.2952249646,
0.1513976753,
-0.1647232324,
0.1602760106,
0.0851733759,
-0.02640686,
0.480080992,
0.1835549176,
-0.1326602697,
-0.0363405533,
-0.1029766947,
-0.1345874518,
0.1125913709,
0.0171987638,
0.0312227327,
0.2379861772,
-0.0109199546,
0.9867921472,
0.0920448005,
0.2423955202,
0.0589023195,
-0.1878373474,
0.356312722,
0.1051841006,
-0.1297277808,
0.416549325,
0.4354683757,
-0.0314903148,
0.4762471318,
-0.0795646831,
-0.2962886095,
-0.1591999531,
0.0747452974,
-0.2771711349,
-0.2261833996,
-0.0687997788,
-0.4573895931,
0.1483924538,
0.1666370183,
0.3152106106,
0.0492092334,
-0.2321839035,
-0.0133033972,
0.2708741724,
-0.1249885261,
0.1020663753,
0.001662285,
0.2747074664,
-0.3011900187,
0.2450286597,
-0.2987639606,
0.2863311172,
-0.0931225121,
-0.0015324713,
0.1386023611,
0.0068383543,
0.0023856347,
-0.0160124619,
-0.0996870175,
0.0671950951,
0.392468363,
0.0869550556,
-0.0461545363,
-0.3306409121,
-0.1068796664,
-0.2172299773,
-0.4455519617,
-0.027638495,
-0.070542492,
0.1129112244,
-0.3112815619,
-0.2097303569,
-0.2127838433,
0.0435242727,
-0.0214870535,
-0.2725388408,
0.1340152621,
-0.0124133155,
-0.0484885536,
-0.5640235543,
0.0142393531,
0.0727023184,
-0.0548582971,
0.319417417,
0.0537345074,
-0.1744510382,
0.011353109,
-0.0105912779,
0.4018306732,
0.3535455763,
0.0234765317,
0.5588415265,
0.5205464959,
-0.0533130728,
0.0255893227,
-0.1337621361,
0.2866280377,
0.375282675,
-0.2262628525,
-0.3488540649,
0.2709590793,
0.0391138345,
0.1532701105,
-0.1237324774,
0.1684012264,
0.0339177847,
-0.1439648122,
-0.328677386,
-0.1606735885,
0.0627962053,
-0.2103135139,
-0.0554222241,
-0.0068812217,
-0.0408551507,
-0.0852080211,
-0.2108567357,
0.7987172008,
0.1939627677,
-0.0345410705,
0.1161918491,
0.1656710207,
-0.1419900805,
-0.006100025,
0.039000161,
-0.1862030029,
-0.1315886676,
-0.1560118198,
-0.1835594922,
0.2687510848,
0.464514643,
-0.2409114987,
0.1227359325,
-0.1952974349,
-0.2867821157,
0.1488940418,
0.5003966689,
-0.5818321109,
-0.0209934395,
0.1362273991,
0.1842083782,
-0.0200784225,
0.2755757868,
0.1120856702,
-0.139001891,
0.0753408819,
-0.5390203595,
-0.140449509,
0.3940685093,
-0.1650962383,
-0.2463556528,
0.0907897428,
0.3148208559,
0.6176199913,
0.0388697535,
0.097060591,
0.4697798789,
-0.3391227722,
0.047856681,
0.1017512679,
0.036192704,
0.1385269612,
0.0468875356,
0.4620196223,
-0.0550484508,
-0.349699527,
0.2050093412,
-0.0674626231,
-0.1188037172,
-0.3580515087,
-0.0873781964,
0.463506192,
-0.2163930535,
0.3616442978,
0.1161035299,
-0.1350613534,
-0.0238857828,
0.2137402445,
0.1702047884,
0.1249832213,
0.149988085,
0.083285287,
0.1907114387,
-0.1920045614,
0.2049274445,
0.0468003452,
-0.0485449731,
0.2565455437,
-0.2116746306,
-0.0358354002,
-0.304173708,
-0.1153002083,
0.2631458938,
0.0087456582,
-0.2317482233,
-0.0673126876,
-0.09518677,
-0.0183349419,
-0.0769407824,
-0.204841122,
0.2064528018,
-0.2539486885,
-0.2893543839,
-0.3083866239,
-0.0351563245,
-0.0440477505,
0.1396373212,
0.0063191438,
0.0842946395,
0.0570663176,
-0.2130803764,
-0.4096172154,
-0.1444961578,
0.1244267523,
-0.041147463,
0.1841213256,
0.0236695632,
-0.0163294673,
-0.0692925975,
0.2019651532,
-0.2154465765,
-0.0960699022,
-0.2230936587,
0.1088771299,
0.1453714073,
0.2695964873,
-0.3573486209,
0.1471279413,
-0.0239340551,
-0.4704838693,
-0.0189273842,
0.101826556,
0.128721118,
0.0648408234,
-0.0305273961,
-0.0261381827,
-0.0289742853,
-0.0995090678,
-0.1466342658,
-0.3288842738,
0.1178985834,
-0.3762036562,
0.2833465338,
-0.1212087721,
-0.1864460856,
0.0820095986,
0.1243472174,
0.3888797164,
0.3514215648,
0.1641041487,
-0.1797552258,
0.0725544989,
0.1115967631,
0.19772093,
0.0605263524,
-0.3152236938,
0.0285292584,
0.2787552774,
0.3131703734,
-0.2977467179,
0.1576529294,
-0.395924747,
-0.0140957003,
0.0457306504,
0.0366521403,
0.0987916589,
-0.2485184819,
0.1762195081,
-0.1107792854,
0.0423082672,
-0.0693951324,
0.2097511739,
0.2158718854,
-0.6476302147,
0.1390953362,
0.6094949245,
-0.0200820453,
0.0102381334,
0.3133255839,
-0.1316855848,
-0.0623949468,
0.1659495234,
0.1258406937,
0.10198199,
-0.3031921685,
0.5214725733,
-0.056340795,
-0.1539968252,
0.0335346721,
0.1229765266,
-0.0300615914,
-0.0985945091,
0.4093815982,
-0.3508386314,
-0.0064744917,
-0.15602988,
0.1577564627,
-0.0289152246,
-0.1074124873,
-0.0906127393,
0.0003918601,
0.0390443988,
-0.1169895902,
-0.020035075,
-0.2061811984,
-0.4323667586,
-0.1191876382,
0.1242223233,
0.1979509741,
0.0950885639,
-0.1895404011,
0.1541464329,
-0.440092057,
-0.0866636559,
0.4207965434,
0.6267766356,
0.1000679433,
0.0784964263,
0.4536392689,
-0.0822198465,
0.3367314339,
-0.3272368908,
-0.0784650743,
-0.0127876746,
0.4818312824,
0.2107851356,
0.0172637925,
0.1748882383,
-0.1951279938,
-0.2963456511,
-0.1789943129,
0.2265108079,
-0.1877579391,
-0.0983817205,
-0.0274672024,
-0.1656865031,
-0.2109520137,
-0.0325274616,
-0.4190890491,
-0.2398744226,
0.3022334576,
0.0861163363,
0.232329458,
-0.7237006426,
0.0841962099,
0.284095794,
-0.1897737533,
0.1497576684,
-0.0748028457,
0.2687678933,
0.0357658155,
-0.5046497583,
0.4647850096,
0.3067144454,
-0.0472293757,
-0.1762204468,
-0.2841438949,
0.2265124321,
0.06812796,
0.2726211846,
0.1171233356,
-0.2338103354,
-0.0706878081,
-0.0159109067,
0.0208533797,
0.3161941171,
0.370672822,
-0.1120122001,
-0.3789967895,
0.3205159009,
-0.1109371781,
0.1224813163,
-0.1456010342,
0.1814865619,
-0.3380587995,
-0.0141823348,
0.1719993055,
0.2463552952,
0.3573560119,
-0.3184328079,
0.238273561,
-0.2494674623,
0.1350481957,
-0.3486397862,
-0.1219945848,
0.013366865,
0.1415394843,
0.2505427003,
-0.4073713124,
-0.0643719807,
-0.270169735,
-0.2158277333,
0.0415486693,
-0.1826001704,
0.1398119032,
-0.5174732804,
0.2348937243,
0.0312755369,
-0.0863825232,
0.0256703179,
-0.4430855513,
-0.0745718554,
-0.3091339171,
0.3459122181,
-0.0607087985,
-0.0929403231,
-0.5184538364,
0.3153918684,
-0.2680924535,
-0.0875949264,
0.1353672445,
0.1911246479,
0.1414789259,
-0.2699175179,
0.0906121284,
-0.1020966768,
-0.1820642352,
0.0550099611,
-0.162664026,
0.4691651464,
0.2229687124,
0.0681517273,
-0.287202239,
-0.1066097692
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Hmm I don't agree here.
Anybody can always just bypass the system by setting whatever email. As soon as someone has access to the downloading script it's trivial to tweak the code to not send the "correct" email but to just whatever and it would work.
Note that someone only has visibility on the code after having "signed" the access-mechanism so I think we can expect the users to have agreed to not do anything malicious.
I'm fine with both @lhoestq's solution or we find a way that forces the user to be logged in + being able to load the data for the datasets viewer. Wdyt @lhoestq @severo @albertvillanova ? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 111 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Hmm I don't agree here.
Anybody can always just bypass the system by setting whatever email. As soon as someone has access to the downloading script it's trivial to tweak the code to not send the "correct" email but to just whatever and it would work.
Note that someone only has visibility on the code after having "signed" the access-mechanism so I think we can expect the users to have agreed to not do anything malicious.
I'm fine with both @lhoestq's solution or we find a way that forces the user to be logged in + being able to load the data for the datasets viewer. Wdyt @lhoestq @severo @albertvillanova ? | [
-0.3276700377,
0.2826412618,
0.0286960993,
0.1016934812,
-0.0353756994,
0.0222149193,
0.6439489722,
0.076558128,
0.3533987701,
0.2049578875,
-0.250772357,
-0.1054484919,
-0.0896840245,
-0.0457500294,
0.1518868357,
0.3686565459,
-0.2056715786,
0.1514365524,
0.1459309459,
-0.1047728434,
-0.1652454734,
-0.1499930173,
-0.2767066061,
0.0489405394,
0.0311271213,
-0.1686149091,
-0.0786575004,
0.1734268069,
-0.3048938811,
-0.373246938,
0.0169319957,
0.4430586696,
0.0846099928,
0.2786065936,
-0.0001101863,
0.0020836387,
0.3867455423,
0.1154224724,
-0.2246278524,
0.2738187313,
-0.2780144513,
0.272955507,
-0.045243524,
-0.064888373,
0.0155638037,
0.192740202,
0.0766616836,
-0.6144830585,
0.6153852344,
0.2515274286,
0.157490626,
0.0604634173,
0.0325441919,
0.247049123,
0.0165666845,
0.1056070998,
0.0101477057,
0.1015093103,
0.2679613531,
0.1695254743,
0.0651576743,
0.1509379447,
-0.198302567,
-0.3722334206,
0.0286957733,
-0.0491290316,
-0.1526445448,
-0.3067625463,
-0.030229833,
0.2337405235,
0.7952952981,
0.0403946489,
-0.1743229032,
-0.1209971234,
0.099732399,
-0.174264878,
0.4788475335,
0.1303299665,
-0.1893553585,
0.4509945512,
-0.3562009633,
-0.1134469509,
0.01468731,
0.1987814307,
-0.1077818945,
-0.0208213143,
-0.0825012326,
0.028178487,
-0.2325535268,
0.0212286115,
0.3214941919,
-0.137949422,
0.0755108148,
0.4411667883,
0.1120350063,
-0.2328362614,
0.0233733151,
-0.0075600338,
0.3046206236,
0.1871423721,
0.185081616,
0.212086916,
-0.2100501359,
-0.0860341713,
0.3480094075,
-0.1372658461,
0.1855038255,
0.1732928902,
0.4434837699,
0.3620170057,
0.3060187399,
-0.0311507341,
-0.3310576975,
-0.0225489046,
0.1029111296,
0.1033842266,
0.2201027125,
-0.4060968459,
-0.2318404019,
0.3197879493,
-0.1423318088,
-0.0837767497,
0.1071364954,
0.3517378271,
-0.1030231267,
0.1175407767,
0.2433309704,
0.0560433082,
-0.1270939261,
-0.1124463528,
-0.0116386777,
-0.1853644699,
-0.3062338829,
0.1754396111,
0.4211941361,
-0.3270873725,
-0.0256035738,
0.0084978575,
0.308809042,
-0.1298590899,
-0.2582892179,
0.0654632747,
-0.2351370454,
-0.0435484834,
-0.1323395222,
0.2510224581,
-0.1481939107,
-0.0675700605,
0.038297873,
0.1886507422,
-0.0482765511,
-0.2733906507,
0.1574224383,
0.1724794209,
-0.2329681814,
-0.1402556151,
0.2675945163,
0.0583331324,
-0.1306373626,
-0.2882422805,
0.0159261636,
0.3018210828,
0.0111362133,
0.0858497545,
0.0646114647,
0.7405055165,
-0.1340877563,
-0.1165993363,
-0.4273559451,
-0.4409671724,
-0.1657409221,
-0.0707081705,
-0.275726378,
-0.0865926743,
-0.3792938888,
0.2002461702,
0.4311110973,
-0.3874661624,
-0.5614827275,
0.057643313,
-0.1322823465,
0.1518225074,
0.2351849079,
-0.0369249694,
0.1958876252,
-0.2636848986,
0.0133704413,
0.0647508129,
0.3427251875,
0.0527572893,
-0.2221804112,
-0.3021659255,
0.0042275833,
0.0621295646,
0.1635087729,
0.3537618518,
0.3498996794,
-0.2145074755,
0.6156651974,
0.2389987558,
0.0696517006,
-0.1639549881,
0.0499770306,
-0.1192433462,
-0.2758899927,
-0.0023620189,
-0.0477118008,
0.0686796531,
0.114377737,
-0.0326656587,
-0.128225401,
-0.4096731842,
-0.2174282074,
-0.026792774,
-0.157651633,
-0.0965409055,
0.0887698382,
0.1591859758,
-0.277806133,
-0.2728050351,
-0.1990334988,
-0.0126978559,
0.2399721742,
0.1990319788,
0.2141069025,
0.074670814,
-0.0516187586,
0.3567938507,
0.0369052216,
0.0559174791,
0.15576078,
0.1052333489,
0.0548657216,
0.1121384576,
-0.1367646903,
0.1686002314,
-0.045300588,
0.2480810881,
-0.018317489,
-0.2441820502,
0.3981560767,
0.2577301562,
0.1965713501,
0.0505691357,
-0.0925562829,
0.3460522592,
0.3215010166,
-0.2197321653,
-0.1700085402,
0.1773960888,
-0.1001263708,
-0.0544954464,
-0.1277044564,
-0.089332372,
-0.2047124505,
0.1881977767,
0.5323771834,
-0.010955343,
-0.5594024658,
0.0370206125,
0.6364459991,
0.0602371283,
-0.1026984453,
-0.2559868693,
-0.3240697384,
0.0096076019,
0.1049171314,
-0.2023670226,
0.1061855182,
0.2006997019,
0.1164325103,
0.4563674033,
0.2866413295,
-0.0882529989,
0.150319472,
-0.0261905938,
-0.0915113613,
0.0099485554,
-0.3949522376,
0.1293364614,
-0.3887825012,
-0.3810589612,
-0.0515882894,
-0.3282397389,
-0.4805990756,
-0.1494935155,
0.1087376475,
-0.0932932347,
-0.1724150479,
0.2204059362,
-0.1758578867,
-0.1669756025,
0.2362264395,
0.1621549278,
-0.2174995989,
-0.0254498031,
-0.5943486691,
0.4948780835,
-0.1481134146,
0.0239748862,
-0.1699603945,
0.4189013839,
-0.1562355906,
0.182774961,
0.2289908379,
-0.3450708687,
-0.0292816833,
-0.0893429741,
0.2291578352,
-0.1628542244,
-0.0365286246,
0.1793974042,
0.2172913104,
-0.0981510133,
-0.2283276021,
-0.0937239379,
0.0621785149,
0.1023363397,
-0.1582453698,
-0.2216598541,
-0.0827557072,
-0.1386968642,
0.4223152697,
-0.0040514274,
-0.0731584951,
-0.3582820296,
-0.2605392039,
-0.2251220345,
-0.0614521429,
0.137838155,
0.2332566977,
0.1145311892,
-0.1101691499,
0.0284170341,
-0.3850930035,
0.3127946854,
-0.1628730446,
-0.3492161036,
0.3064099252,
-0.1805765331,
-0.1599092633,
0.167973876,
-0.0218559541,
0.1374245584,
0.1824197769,
-0.3488959372,
0.0762279108,
-0.1741262525,
0.0896030888,
0.0480061769,
-0.1169983819,
0.394972831,
0.1491868645,
-0.1252644658,
-0.0088297054,
-0.0566826873,
-0.2623578906,
-0.197998181,
0.0625333339,
-0.0283759199,
0.0839400142,
0.0343875363,
0.7649751902,
0.2582694888,
0.363948822,
0.0602464862,
0.0765728951,
0.4536771774,
0.2313636541,
0.0496078841,
0.2278817147,
0.3595601916,
-0.1124970913,
0.3295023441,
0.0386222117,
-0.2434891909,
-0.4084302485,
-0.16712147,
-0.3000362813,
-0.3741429448,
-0.0983219966,
-0.3628505766,
-0.0319454409,
0.3828232884,
0.5475947261,
0.1453044415,
-0.217797175,
-0.0292436928,
0.4357060194,
0.2405562699,
0.1340445727,
0.0757784545,
0.263281256,
-0.2997917831,
0.2887085974,
-0.2176149935,
0.363996923,
0.0621984638,
-0.0837514848,
0.2632400095,
0.0481136777,
0.0369484313,
-0.0659090504,
0.0058036903,
-0.0601508319,
0.4205357134,
0.0698306188,
-0.1430023909,
-0.2119997889,
-0.0458234958,
-0.2739168704,
-0.3011757433,
-0.1525957137,
-0.0265051015,
0.0807428584,
-0.206273526,
-0.1505018175,
-0.3557728827,
0.060636159,
0.108966507,
-0.4051537514,
0.099989146,
0.2454653829,
-0.0627741814,
-0.413911581,
-0.1620908231,
-0.0480817072,
0.152008906,
0.3572084904,
-0.0306509845,
-0.2141933739,
0.0092299096,
-0.0363231041,
0.4259912074,
0.3916563392,
-0.0801962838,
0.7334531546,
0.3771037161,
-0.2049555779,
-0.1043338701,
-0.2800857127,
0.2213748544,
0.6570667028,
-0.1028251946,
-0.1959437877,
0.2588116825,
0.0013682951,
0.1107605845,
-0.2254087478,
0.0982328132,
0.1507893056,
-0.2545194924,
-0.5483997464,
-0.1071484312,
0.0047552558,
-0.2643622756,
-0.0266550593,
0.1940442026,
-0.0550500192,
-0.1954222918,
-0.3550063372,
1.1086332798,
0.2428841293,
0.2375324667,
0.0513414629,
0.0400444046,
-0.0502690747,
0.0287833419,
-0.0120436298,
-0.0069705416,
-0.2007214278,
-0.3155316412,
-0.3052561283,
0.0818033069,
0.443595171,
0.0243245326,
0.3045069277,
-0.3398273885,
0.0335957967,
0.2350007445,
0.3208365738,
-0.5075562596,
0.0030359945,
0.0409645699,
0.1348180175,
0.0060911174,
0.469843328,
-0.1511018127,
-0.2046301216,
-0.0168262552,
-0.4383658171,
-0.0756570473,
0.3357024193,
-0.2338881493,
-0.2259612828,
-0.0591951236,
0.2965034544,
0.6343994141,
0.1124159247,
0.0271640737,
0.397437036,
-0.3178528845,
0.1032689735,
-0.0437259525,
0.1632948965,
0.2015817612,
0.0789418668,
0.4177619815,
-0.0494967997,
-0.3098778427,
0.1979457587,
-0.0578185581,
-0.2809755504,
-0.1921567023,
0.0059944512,
0.3601536453,
-0.289849788,
0.4361819029,
0.2148678452,
-0.0425331481,
-0.0659371093,
0.1362301409,
0.1995058656,
0.1303808093,
0.1439657062,
-0.0005725159,
0.0574539267,
-0.150116533,
0.4502736628,
-0.030748941,
-0.2189728469,
0.3831341863,
-0.3785704374,
-0.3276692331,
-0.3190602064,
-0.2106259018,
0.1625000834,
-0.1875215918,
-0.2510299683,
-0.1983596534,
0.053657867,
-0.2519692481,
-0.1628649235,
-0.1361028552,
0.0611058474,
0.0716728494,
-0.3963908851,
-0.1702025086,
0.1102675349,
0.0270633604,
0.0286958367,
-0.0603223592,
0.2416182607,
0.0776694641,
-0.307734102,
-0.3521879315,
-0.1650327593,
0.1579976082,
-0.2590930164,
0.2934370935,
0.2601593435,
0.1839325875,
-0.021487141,
0.1124983579,
-0.1461204141,
-0.136868611,
-0.1534967273,
0.1151537225,
0.1875801384,
0.2674622238,
-0.3046253324,
0.1522645205,
-0.0027938883,
-0.2991346121,
0.0570485778,
0.1414521188,
0.2766940594,
0.2330700159,
-0.1178332716,
0.0268038753,
0.1790768206,
-0.3592765331,
0.0599176846,
-0.2138448954,
0.2162325829,
-0.3685111701,
0.122369878,
-0.1684273481,
-0.1422311962,
0.1695932597,
0.0515890121,
0.3202329576,
0.4488327205,
0.2769753337,
-0.0587528273,
0.138407439,
0.1870999038,
0.1340330988,
0.402894944,
-0.3156763911,
-0.1319885701,
0.2874776125,
0.2732684612,
-0.1418455392,
0.2686749399,
-0.3746756017,
-0.053613998,
-0.1319928467,
0.026987182,
-0.0519344136,
-0.1490721554,
0.0349297412,
-0.0822774097,
0.0463955291,
0.092781201,
0.3205246925,
0.2014715523,
-0.4596728086,
0.0430091433,
0.5024505258,
0.1095085591,
-0.0777637213,
0.3541826308,
-0.5122406483,
-0.2230547816,
0.1907809079,
0.0942293778,
0.0358178094,
-0.217152521,
0.2744324505,
0.1891600639,
-0.0555180088,
-0.0178553294,
0.2226846516,
0.0116670933,
-0.057510782,
0.381812185,
-0.2118830681,
-0.0509191342,
-0.139243871,
0.2652008533,
-0.1680482477,
-0.3114286065,
-0.2237645537,
-0.0501853935,
-0.0288052373,
-0.3546024859,
-0.0485792123,
-0.0379480831,
-0.3389200866,
-0.3206719756,
0.0936725214,
0.1955042034,
0.2876196504,
-0.3061201572,
0.0357008688,
-0.1329613328,
0.1185398698,
0.6756336093,
0.5947238803,
0.0032150475,
-0.06461256,
0.4602085054,
-0.0665726885,
0.2504345775,
-0.1165326983,
-0.0796228796,
0.0735260248,
0.320459038,
0.2550057769,
0.1905149966,
0.0970509797,
-0.1393773556,
-0.1152176782,
-0.1681370139,
0.1976025254,
-0.3370178044,
0.1649288088,
-0.1106844246,
-0.1374848932,
-0.2403934896,
-0.0807981119,
-0.3016121387,
-0.2100150883,
0.3125522435,
0.0059025688,
0.3084833324,
-0.705873251,
0.0538722724,
0.4428210855,
-0.185427025,
0.373369962,
0.0217995346,
0.1456709951,
0.2219669968,
-0.6306035519,
0.4190967381,
0.3184235096,
-0.1088696718,
-0.3468848169,
-0.4513708055,
0.1797079295,
0.1764487326,
0.2289700806,
0.1766713858,
-0.0733470544,
-0.0891218707,
-0.0337785669,
-0.071555756,
0.3725889623,
0.3799373209,
-0.0154867712,
-0.495149076,
0.4104396999,
-0.3749746978,
0.0479422025,
0.0606215708,
0.2728119791,
-0.4337407947,
-0.1638642401,
0.3009795547,
0.1892212629,
0.4562891126,
-0.2207221538,
0.1628946513,
-0.3791191876,
0.1269714236,
-0.4525518119,
-0.001886348,
-0.0808835775,
-0.0232560877,
0.2230319679,
0.026623033,
0.0200313069,
-0.2519927621,
-0.2644968331,
0.163092494,
-0.1883878112,
-0.0301987343,
-0.3224487603,
0.2353093177,
0.0811746195,
0.0863258541,
-0.1935866773,
-0.3666914701,
-0.1599436104,
-0.3213146627,
0.4038055241,
-0.0931526572,
-0.0471521057,
-0.3243626356,
0.459564209,
-0.0027386569,
-0.0164627321,
-0.091644235,
0.2739154696,
0.1083285362,
-0.3476336002,
0.0925036222,
0.0281483866,
-0.3304082155,
-0.0470056012,
-0.1797047108,
0.4291796982,
0.0453012101,
-0.0104241874,
-0.2301497906,
-0.1982878298
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | > Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
Yes, I agree we can forget about this @patrickvonplaten. After having had a look at Common Voice website, I've seen they only require sending an email (no auth is inplace on their side, contrary to what I had previously thought). Therefore, currently we impose stronger requirements than them: we require the user having logged in and accepted the access mechanism.
Currently the script as it is already requires the user being logged in:
```python
HfApi().whoami(auth_token)
```
throws an exception if None/invalid auth_token is passed.
On the other hand, we should agree on the way to allow the viewer to stream the data. | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 136 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
> Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead.
Yes, I agree we can forget about this @patrickvonplaten. After having had a look at Common Voice website, I've seen they only require sending an email (no auth is inplace on their side, contrary to what I had previously thought). Therefore, currently we impose stronger requirements than them: we require the user having logged in and accepted the access mechanism.
Currently the script as it is already requires the user being logged in:
```python
HfApi().whoami(auth_token)
```
throws an exception if None/invalid auth_token is passed.
On the other hand, we should agree on the way to allow the viewer to stream the data. | [
-0.4378187358,
0.2820081115,
-0.0171392243,
-0.0312947929,
0.0072664716,
0.0896093771,
0.5135827661,
0.3128056526,
0.1830434948,
0.1410139501,
-0.3661122322,
-0.1130832881,
-0.072842598,
-0.0658885613,
0.1129050553,
0.0829916894,
-0.1138803065,
0.2530531585,
0.3841428459,
-0.2583289146,
-0.0791174471,
-0.1674629599,
-0.4483187497,
0.023632871,
-0.0763110071,
-0.2118772119,
-0.1876411587,
0.3403355479,
-0.158589378,
-0.384516567,
-0.1121576801,
0.4093942046,
0.0101891439,
0.3094683588,
-0.0001077692,
-0.0149445627,
0.3373355269,
0.0883588269,
-0.041684065,
0.1104558632,
0.009011968,
0.2699041367,
0.1225728616,
-0.0488004722,
-0.0891804546,
-0.0223985855,
0.0074787117,
-0.5823135376,
0.4901538789,
0.3339170814,
0.2214778513,
0.0326720849,
0.0318681933,
0.4227985442,
-0.0045543239,
0.1820220798,
-0.0754803792,
-0.0260126591,
0.2463403195,
0.1726447493,
0.0227912106,
0.1811050177,
-0.1813785136,
-0.3121991158,
-0.2122677714,
-0.0444446951,
-0.2794733346,
-0.5161710382,
0.0540435649,
0.3330700397,
0.8484166861,
-0.251586318,
-0.1580506712,
0.1345838904,
-0.0014434329,
-0.2565355003,
0.1438647509,
0.1707631201,
-0.1909480393,
0.2970326841,
-0.1836190522,
-0.1208739728,
-0.2403204739,
0.0699702799,
-0.0030459578,
0.1860273182,
-0.0270885117,
0.0225611012,
-0.0965537354,
0.0594185591,
0.1694824249,
0.0711410418,
0.146489352,
0.4783707559,
-0.0356702209,
-0.3128488958,
0.0547955073,
-0.190998584,
0.2179585993,
0.0233527161,
0.3745632172,
0.2575894594,
-0.248840794,
0.0977257416,
0.3538190424,
-0.1773355603,
0.2361760139,
0.1880999058,
0.4013479054,
0.0216196943,
0.2800180614,
-0.1277000308,
-0.2750679255,
-0.0922388211,
0.2952773571,
-0.0666856617,
0.4009967744,
-0.3695462346,
-0.2854981422,
0.3671599925,
-0.200430274,
-0.174792856,
0.1230400726,
0.3566014469,
-0.0436035506,
0.2741397321,
0.1490336061,
0.0477824733,
-0.1219475269,
-0.1166549101,
-0.0333225951,
-0.0280186683,
-0.0517759807,
0.0385282263,
0.3771167994,
-0.3871000707,
0.0209963229,
-0.0329457596,
0.399276644,
-0.0399107821,
0.0324232057,
0.123873353,
-0.0562508479,
0.0316603072,
0.0594700761,
0.1112100407,
0.0324161984,
-0.1340069771,
-0.1322433352,
0.0777995661,
-0.0902207047,
-0.3013809621,
-0.0184531994,
0.2469601184,
0.0303682387,
-0.09388832,
0.4326627851,
0.0144855613,
-0.0882030427,
-0.4669658244,
0.0675727352,
0.1197752506,
0.043050468,
-0.0529467314,
0.299058646,
0.5209901929,
-0.2387748808,
0.1124047562,
-0.4149893224,
-0.1364418268,
-0.0869059935,
0.1301273555,
-0.1372086704,
-0.312654376,
-0.1789645851,
0.208130762,
0.6094938517,
-0.5083187222,
-0.3220131397,
0.2890003324,
-0.0045619472,
-0.0068997503,
0.0876128152,
-0.2011607736,
0.2201859951,
-0.1728172004,
0.0673639923,
0.1654643714,
0.0841132924,
0.0409184732,
-0.1739962548,
-0.1423352361,
-0.0960957259,
0.1687211245,
-0.0137762902,
0.0554724522,
0.3415168822,
-0.1178494766,
0.7056341171,
0.2358170152,
0.0855700076,
-0.1290055811,
0.416864574,
-0.2907498777,
-0.0611960106,
-0.0396629535,
0.1600836068,
0.0137016689,
0.1655735373,
-0.0612233914,
0.1793861091,
-0.3366988301,
-0.2180537134,
-0.0035623575,
-0.2933734357,
-0.0047867508,
0.2074425817,
0.0980049595,
-0.0602348782,
-0.0674977824,
-0.2349786758,
-0.036727719,
0.2792467177,
0.0134373968,
0.333422184,
0.3582626283,
-0.2611910999,
0.1870387197,
0.1941960156,
0.1303374767,
0.148327902,
0.1082988381,
0.0239813104,
0.1698196232,
-0.084872894,
0.2542249262,
-0.0730858371,
0.2263497412,
0.0810755193,
-0.4664202332,
0.6547856331,
0.2611540258,
0.1863562763,
-0.0332693681,
0.0242348667,
0.2530588806,
0.2375543118,
-0.0784082711,
0.1365589947,
0.2165653855,
-0.0478940308,
0.0159582384,
-0.117417939,
-0.0480528362,
-0.144503817,
-0.0088556344,
0.5395217538,
-0.1683498323,
-0.7596915364,
0.2067908794,
0.6599916816,
-0.088898927,
-0.0121482871,
-0.1223648638,
-0.3406326473,
-0.1706068963,
0.2870765626,
-0.3351684213,
0.1625520587,
0.2117143571,
0.0594195388,
0.430947125,
0.114234589,
-0.0444215313,
0.1606912464,
0.0746477246,
0.0122969067,
0.0376452468,
-0.1806058884,
0.1886728853,
-0.448546648,
-0.4069184959,
-0.0656716973,
-0.130353421,
-0.3973677158,
-0.0351914093,
0.0507740937,
0.1511020362,
0.0086281896,
-0.0314445868,
-0.1213747486,
-0.3216537833,
0.2290769666,
0.2462404072,
-0.1058726832,
0.0501149371,
-0.4813446999,
0.2258370221,
0.1582837552,
0.1349747479,
-0.3481027186,
0.3441741467,
-0.1229182407,
0.2195465863,
0.1047323644,
-0.1308389604,
0.0267214347,
-0.0874281451,
0.2374313176,
-0.1829233766,
-0.2527351975,
0.2110278159,
0.0596733578,
-0.0775977969,
-0.131649226,
-0.0248511415,
-0.0449595712,
-0.1225796789,
-0.0819550827,
-0.2781437337,
-0.1165944859,
0.1051631346,
0.0899020135,
-0.1584603041,
-0.0585967526,
-0.3697602749,
-0.3849270344,
-0.4459852278,
0.0305498652,
0.157679379,
0.2975449264,
0.0816138908,
-0.0980508253,
0.0294010062,
-0.2079728991,
0.2234869152,
-0.1998808682,
-0.3534651995,
0.4113299847,
-0.3731789887,
-0.4160788655,
0.2614044249,
0.0220914073,
0.3737316132,
-0.1012514085,
-0.3167950511,
0.2390439957,
0.0147838239,
0.0711359829,
0.0481068939,
0.0243746173,
0.3656806946,
0.2991913855,
-0.083576493,
-0.0022196213,
-0.0605153367,
-0.3272258341,
0.1648554653,
-0.0256713871,
-0.122940056,
0.1986220479,
-0.062950477,
0.9406852126,
0.1412901729,
0.2413070798,
0.1661653966,
-0.1129447222,
0.4408842921,
0.0252804719,
-0.1987773925,
0.4699341953,
0.1865473688,
-0.128824085,
0.4405254722,
0.0247004777,
-0.2633965313,
-0.3409617841,
-0.1362016499,
-0.2966170013,
-0.2659694552,
-0.0619153604,
-0.4346674085,
0.0295462385,
0.0995634943,
0.3591419458,
0.0119844479,
-0.2020257562,
-0.1283441484,
0.3541398346,
0.1609115601,
0.0810034946,
0.111156337,
0.027749721,
-0.3556640446,
0.2081726193,
-0.2297303677,
0.303014338,
-0.1096977741,
-0.0594627447,
0.1203695312,
0.0601956733,
-0.1285885423,
-0.1176890731,
-0.1657669097,
0.1802537739,
0.28660357,
-0.1399412453,
0.0579734631,
-0.2653037906,
0.0712223798,
-0.2397463471,
-0.3857487738,
-0.1288449466,
-0.0507722832,
0.1438617408,
-0.113882564,
-0.1488455683,
-0.1895852536,
-0.0086153569,
0.0426819436,
-0.4773967266,
0.0198343098,
0.0522460602,
-0.1922252029,
-0.5973083377,
-0.0919972658,
0.2543790638,
-0.0455902331,
0.4504948258,
0.1568407565,
-0.1105064154,
-0.084879458,
0.1198980436,
0.3877032995,
0.2372402549,
0.0012187969,
0.5603175759,
0.5252384543,
-0.0555039719,
0.0081940014,
-0.0696163327,
0.4374219179,
0.3630533516,
-0.0863809064,
-0.1898743659,
0.3563160598,
0.1148393229,
0.0354541168,
-0.0571850128,
0.205383122,
0.133277297,
-0.5102413297,
-0.4719624817,
0.1300561577,
-0.1468309611,
-0.1405249834,
0.0950471461,
0.0532120578,
-0.0068681473,
0.1086904407,
-0.2462566644,
0.913118422,
0.2651671171,
0.067239739,
0.216005668,
-0.0824182928,
-0.2941996455,
-0.1858721673,
-0.0723552331,
-0.1252141595,
-0.0863428265,
-0.1663707942,
-0.077513203,
0.2581120431,
0.3468589485,
-0.4222998321,
0.2174169868,
-0.1670358628,
-0.3780088723,
0.0818853155,
0.5075446963,
-0.3774168789,
-0.0532722063,
0.037654303,
0.1773652434,
-0.010240661,
0.3465308845,
0.0604440011,
-0.2979423702,
0.043152716,
-0.4988955557,
-0.1124478281,
0.3461303115,
-0.226158306,
-0.2349532098,
-0.0716045871,
0.0089761931,
0.7227212191,
-0.1210241467,
-0.0347098224,
0.4353791177,
-0.2751654685,
0.138790369,
0.2009329051,
-0.0065447711,
0.1138906628,
0.068981111,
0.4310766459,
-0.158267349,
-0.4918519855,
0.4087383747,
-0.1148375571,
-0.2145386636,
-0.1990923434,
-0.0599257685,
0.4934109151,
-0.2784362137,
0.2889768779,
0.1207232699,
-0.3178956211,
-0.0564985201,
0.1999730468,
0.3405175209,
-0.0475882366,
0.0747291222,
0.1748934686,
0.3464392424,
-0.1109565049,
0.1539157331,
0.0442742705,
-0.135470897,
0.3264219463,
0.0028589887,
-0.1548710614,
-0.3755821884,
-0.2463162094,
0.262142539,
-0.0810602605,
-0.3931864202,
-0.0523034036,
0.0377226993,
-0.0406173989,
-0.0396577567,
-0.2326103598,
0.0688157007,
-0.2240626812,
-0.3288523853,
-0.5001001954,
0.1014626697,
0.0288227927,
0.0450441577,
-0.1280137897,
0.1894278824,
0.1584779918,
-0.0129205771,
-0.4216402769,
-0.1971442699,
0.1710055172,
-0.122327961,
0.0681807995,
-0.0690472201,
0.0416022539,
-0.1131322533,
0.2737939358,
-0.2037182301,
-0.2238382548,
-0.1887044609,
0.1229993477,
0.1728944033,
0.3137179017,
-0.345744282,
0.1229861528,
0.0745066628,
-0.4937860072,
-0.0301404204,
0.0085522309,
0.0417434759,
0.0282937679,
0.0160855092,
-0.0088199116,
-0.1768780202,
-0.1435328275,
-0.0389599986,
-0.1442471892,
0.3116347194,
-0.1714343578,
0.2380313128,
-0.119472146,
-0.2540302873,
0.1834474653,
0.2053032815,
0.1931218356,
0.1906971484,
0.4732626081,
-0.1793283373,
0.1348806769,
-0.0472662374,
0.3454933167,
0.1774002016,
-0.1461557299,
0.0656652972,
0.2575713396,
0.2544702888,
-0.3554127514,
0.1240426004,
-0.3695872128,
-0.0313233882,
0.1363680959,
0.014082497,
-0.000170195,
-0.2253753841,
0.0472289026,
0.0483548902,
0.1229792014,
-0.0277757701,
0.1786258221,
0.0958763212,
-0.4754770994,
0.1279132664,
0.3168299496,
0.1108750105,
-0.0419593342,
0.2275875658,
-0.4889585376,
-0.0647492558,
0.2910696566,
-0.0063101607,
0.1538233012,
-0.0786974877,
0.2011053711,
0.0520533323,
-0.2148550451,
0.1460285485,
0.0649781153,
0.0085323434,
-0.0712780878,
0.2324315161,
-0.2585433125,
0.1003745645,
-0.0899642706,
0.2958646119,
0.1186013073,
-0.1608634293,
-0.078730166,
-0.1719962209,
0.1713983268,
-0.2217851877,
0.0742166042,
-0.0794570222,
-0.2607751787,
-0.0953275263,
0.1157416031,
0.2103073895,
0.2560728788,
-0.1826035976,
0.10211505,
-0.0719265416,
-0.0958987772,
0.3926455975,
0.4677743912,
0.2533332407,
0.0129712811,
0.1613485515,
0.1980664879,
0.2357166559,
-0.323245436,
0.1533449441,
-0.0012718783,
0.3853881061,
0.1441129893,
0.0537368953,
0.1577498168,
-0.1565941572,
-0.2507534027,
-0.0310460795,
0.175542146,
-0.2418478727,
0.1174170822,
-0.2104203105,
-0.3866785467,
-0.2679504752,
-0.1925606728,
-0.4220294058,
-0.1732831895,
0.3453668654,
0.0377859399,
0.0997592732,
-0.6880345345,
0.0824026316,
0.2342957556,
-0.0987365767,
0.3338076174,
0.1336069852,
0.1149058491,
0.002549554,
-0.5739606023,
0.2366114408,
0.2947492898,
-0.1403719634,
-0.1261076927,
-0.1331419647,
0.2390980273,
0.1229029521,
0.3456884921,
0.0561828986,
-0.2179189771,
-0.1025901139,
-0.1292083412,
-0.0943297446,
0.1906166524,
0.3594829142,
-0.1089586392,
-0.3539526761,
0.3779467046,
-0.3124950826,
0.1404391825,
-0.1304068118,
0.2882282734,
-0.2608386576,
-0.1769796759,
0.3078220487,
0.1332695782,
0.2744282484,
-0.2819114327,
0.0350837186,
-0.1281608343,
0.0838154107,
-0.2582378685,
-0.0946980268,
-0.0909352675,
0.2766830921,
0.2571798563,
-0.3040964007,
-0.0440098047,
-0.1775186956,
-0.1752289236,
-0.1350397617,
-0.1536156833,
0.2034770846,
-0.2534885108,
0.3398330808,
0.0868172348,
-0.0185931232,
-0.0685780942,
-0.4231358171,
-0.2025675625,
-0.3627282977,
0.4484578073,
-0.1584553123,
-0.0992309898,
-0.2916770279,
0.4169131815,
-0.2073757499,
-0.0528290682,
-0.1476710141,
0.1765175164,
0.1777086705,
-0.2636719942,
0.0283918343,
0.0106496401,
-0.2521773279,
-0.1253086776,
-0.0986906365,
0.4692528844,
0.0778864771,
-0.0260195825,
-0.0983491018,
-0.1788565814
] |
https://github.com/huggingface/datasets/issues/4230 | Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data? | Thanks for reporting @beyondguo.
Indeed, we generate this dataset from this raw data file URL: https://data.deepai.org/conll2003.zip
And that URL only contains the English version. | ![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png)
But on huggingface datasets:
![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png)
Where is the German data? | 24 | Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data?
![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png)
But on huggingface datasets:
![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png)
Where is the German data?
Thanks for reporting @beyondguo.
Indeed, we generate this dataset from this raw data file URL: https://data.deepai.org/conll2003.zip
And that URL only contains the English version. | [
0.241450116,
-0.2146852612,
-0.0759354979,
0.435505718,
-0.1448031962,
0.100564003,
0.2667833269,
-0.0426930152,
-0.4305933714,
0.2462078035,
-0.2756232321,
-0.1968287975,
0.3500419855,
0.3912379742,
0.1714205891,
0.0027181183,
0.2324377,
0.1060012281,
-0.3268754184,
-0.5004321337,
-0.294485569,
0.4673647881,
-0.1981758773,
-0.2001627684,
-0.3680095971,
0.418741405,
-0.1216318458,
0.2347957492,
-0.2254829258,
-0.1704820842,
0.6192387938,
-0.2008143067,
0.1827615201,
0.1320382953,
-0.0001244298,
-0.0431917123,
0.1887490153,
-0.4027318656,
-0.1004267856,
-0.09657038,
-0.2857123017,
-0.0386661477,
-0.0124435006,
-0.1294165552,
-0.1734560132,
0.1417911649,
-0.0848948061,
-0.0094163017,
0.1509375274,
0.1154625714,
0.0912277102,
0.2489277571,
-0.1798378974,
-0.115667358,
0.1629758179,
0.1455686241,
-0.2277545631,
0.0652017742,
0.138630867,
0.1728144288,
-0.0405530892,
0.3391871452,
0.3055771291,
-0.1106169894,
-0.0323887728,
0.1889073551,
-0.2219304889,
-0.3989972472,
0.3587523997,
0.4485549927,
0.3263055682,
0.0809172466,
-0.2781607509,
-0.047169365,
-0.2675578594,
-0.2628042698,
0.1630478203,
0.3029273748,
-0.2529267371,
0.3830700219,
-0.2287585884,
-0.4061354399,
-0.2173459381,
0.291734606,
-0.4048158228,
0.6394379139,
-0.2202782035,
0.0552225672,
0.1475010514,
0.283043474,
-0.0050744442,
-0.0378385931,
-0.0192378443,
0.049320329,
-0.0131020313,
-0.1948647946,
-0.1080489457,
0.1818686277,
0.3763928413,
0.0252927765,
-0.3777885735,
-0.029959118,
-0.2106720954,
-0.0167744104,
0.303953439,
0.136942327,
0.480815202,
-0.1313369423,
0.3081773818,
-0.3337629437,
0.2103630155,
0.0111808497,
-0.0598483123,
0.1449840516,
-0.4466406107,
-0.1607736051,
-0.2004078031,
-0.4483769536,
-0.2066464573,
-0.0131754102,
-0.0885589421,
-0.3481422365,
0.0282464661,
0.3956649005,
0.057638973,
0.1388214231,
-0.205416441,
0.3412880599,
-0.0947227553,
-0.4829421639,
-0.1524228752,
-0.0539158136,
-0.2620356679,
-0.1558696777,
0.1016839743,
-0.4924447834,
0.535872817,
0.0161687061,
-0.0139917629,
0.1501948684,
-0.0557732396,
-0.0378064178,
0.3949028254,
0.097661607,
0.0438312329,
0.149589628,
0.1998841166,
-0.1644874662,
-0.3313599527,
-0.0897752792,
-0.2716166675,
0.0892075822,
-0.3054083586,
-0.0444893651,
-0.3921565711,
-0.2207234055,
0.2979900241,
0.3136798441,
-0.1190697253,
0.0286505185,
0.1769037843,
0.2189458609,
-0.5851140618,
-0.0563242137,
0.3412004709,
0.3562873304,
-0.3330410719,
-0.32049191,
0.1452874094,
-0.2688241005,
0.1852371544,
0.3300923407,
-0.1810132116,
-0.3347397745,
-0.3937499225,
-0.0142823402,
0.0364133753,
-0.1700618863,
-0.3615095913,
0.0882201195,
0.1385421157,
0.0092349686,
0.1726930737,
-0.0764353201,
0.0038476554,
0.0264997706,
0.0349422693,
0.1008360982,
0.2696006894,
-0.3294909894,
0.1592723429,
-0.072884813,
0.3741582334,
0.0070484788,
-0.053970743,
0.2061125636,
0.2269206643,
-0.1518750489,
0.3241988719,
-0.0447576717,
0.2142712921,
0.6843752265,
0.0637446195,
0.1345206201,
0.1597545147,
0.197545886,
-0.3915112615,
0.1062674746,
0.0179867633,
0.3555735648,
0.1796656102,
0.0597109459,
-0.1915981621,
-0.0301965754,
-0.0857395902,
-0.4768825769,
-0.0216098297,
0.3559823036,
0.2571648061,
0.2365935147,
-0.0826641917,
0.4155926406,
0.1874200851,
-0.073993139,
-0.3110263646,
0.3460059166,
0.0712712854,
-0.0237145759,
-0.0052920724,
0.3740167916,
-0.0791976601,
-0.208618924,
0.0319697037,
-0.0220065713,
0.2725886405,
0.0590709783,
0.4058435261,
0.1663077325,
0.2162217349,
-0.2350915223,
0.027741015,
-0.0781358853,
-0.0397743359,
0.1057222337,
-0.1712536961,
0.3825592697,
0.4478970766,
0.1401925832,
0.0028891133,
0.1896737069,
0.1301361322,
-0.2168892175,
-0.225119099,
-0.5397644043,
0.2774809599,
0.0363329165,
0.5227508545,
0.4301806688,
-0.5926784277,
0.0296794455,
0.5521556139,
-0.0435841009,
0.0754491538,
0.2470488101,
-0.346529007,
-0.0566163324,
0.3428995907,
0.4278430939,
0.2136477977,
0.2416412234,
0.3874382675,
-0.0013891887,
0.1816480905,
-0.1051593497,
0.223339349,
-0.059166383,
0.2179113477,
-0.2714240551,
-0.0284152385,
-0.1556792408,
-0.4585414827,
0.2880946696,
-0.1353268027,
-0.1421411783,
0.0179752745,
0.045936659,
-0.5468419194,
-0.3406944871,
-0.1912167221,
-0.1707809865,
-0.5103985667,
-0.1060408279,
-0.0960397348,
-0.3603363335,
0.0781117603,
-0.1528121233,
-0.2191196233,
0.1364136189,
-0.24273628,
0.075834915,
-0.3484950364,
-0.2389979362,
-0.3735851347,
0.0047471174,
-0.144412145,
-0.179723829,
0.0867685303,
-0.5850490332,
0.0987159237,
0.0221725386,
-0.5976377726,
0.4357544184,
-0.2153151482,
-0.0210971255,
0.0515746512,
0.1985606551,
-0.4772593975,
0.1271844804,
0.2525012195,
0.1198258474,
-0.2962413728,
0.1782447547,
-0.0916713923,
0.0500914603,
-0.0938339084,
-0.3113160729,
-0.3167790174,
0.035741508,
0.2175224572,
-0.1953670382,
0.0304952599,
0.2861248553,
-0.1172478199,
-0.0807482451,
-0.5388548374,
0.2168184072,
-0.3914983273,
-0.5263745189,
0.3922739625,
-0.1693049371,
-0.41666466,
0.0495052189,
0.0081249457,
0.1895561069,
-0.2073766291,
-0.5317873955,
-0.1306527257,
-0.2865446806,
0.2782571912,
0.0193191189,
0.176945433,
0.3017416894,
-0.2188378125,
0.1226856187,
-0.3519257307,
-0.3075497746,
0.1683271527,
0.0296899099,
0.2888786495,
-0.1713962555,
-0.0649804696,
0.2120883912,
0.1687805653,
0.3122321367,
0.1655689627,
0.5164268613,
0.0861368328,
0.5721985698,
-0.0561016276,
-0.1675638855,
0.2328578681,
0.0454483405,
0.2759846747,
0.360548079,
0.3260761499,
-0.1798980087,
-0.3666693866,
-0.0948024318,
-0.1211625487,
-0.0502930097,
-0.1290370375,
0.3211709261,
0.3042151928,
0.0489107482,
0.1256856322,
0.0418458767,
-0.0298414622,
-0.0918899402,
0.1083768979,
0.1425516158,
0.2232379168,
-0.3778630793,
-0.1585346609,
-0.5128077269,
0.0650814846,
-0.0712115243,
0.4186734557,
-0.3154893219,
0.040489357,
0.1599268168,
0.2081939131,
0.7154914737,
-0.0286068097,
-0.0840276703,
-0.3526957631,
-0.394484669,
-0.532948792,
0.2726691961,
-0.0934096277,
-0.3343231976,
0.6760185361,
0.3919980824,
-0.1717745811,
-0.3923866451,
0.0752059147,
0.3290878534,
-0.1175858006,
0.0052281036,
-0.1830445528,
-0.1807863861,
-0.0784941763,
-0.1790237874,
0.0734451488,
-0.1145289764,
0.1895412505,
0.0790652931,
0.3095628321,
0.1264365613,
-0.0292517263,
0.2259477079,
0.1681942344,
0.1591178328,
-0.1838291138,
0.3532272279,
0.4081449509,
-0.0046289111,
0.642786324,
-0.0657467097,
-0.5646921992,
0.2813382745,
0.0488022827,
0.5235332847,
0.2629858255,
0.1786854565,
-0.0755351782,
0.1692403555,
-0.1527860612,
-0.3237448037,
0.0166072454,
0.2501061559,
0.2289896756,
-0.2124094069,
-0.2795919478,
0.3437131345,
-0.1101654246,
0.0411422811,
-0.2311635166,
0.2702565491,
-0.1089287773,
0.1704101562,
0.07178507,
0.9822686911,
0.3592432141,
0.4137246609,
0.1676220745,
-0.3200663924,
0.2768558562,
0.2287277132,
-0.2399184257,
-0.0405678563,
-0.1467864811,
-0.1945355535,
-0.132653743,
-0.1493050158,
0.0294283237,
-0.060396459,
0.1703501642,
0.1004958227,
-0.2708424926,
0.2231855094,
0.136183247,
-0.1784616411,
-0.1027763039,
0.0651149079,
-0.0046201935,
0.2262525707,
0.601514101,
0.0935295895,
-0.1490119845,
-0.4403187335,
-0.2400258034,
-0.3139371276,
0.1232367232,
-0.3020658195,
0.0548107065,
0.303014338,
-0.5119557381,
0.0364220254,
0.5810344815,
0.5008723736,
0.0379964188,
-0.2448272109,
0.1614508927,
0.1622713506,
0.1003391966,
0.2892275751,
-0.0499802008,
-0.0831980929,
-0.1167856976,
-0.358969152,
-0.0840543658,
-0.0509001724,
-0.0527094305,
-0.1938779205,
0.2568383813,
-0.4836370647,
0.0409452766,
-0.1473498791,
0.2239140421,
0.1339265108,
-0.2281848341,
0.0050350823,
0.3077243268,
0.0201568156,
-0.1958798319,
0.0251009632,
-0.4604476988,
-0.251575619,
0.2894109488,
0.0602926798,
0.1359951347,
0.2995513082,
0.1914111227,
-0.1438350081,
-0.1092882529,
0.2157126069,
0.1082746461,
-0.3828817308,
-0.2181408554,
0.0865055993,
0.009259671,
-0.412127763,
0.1652800441,
-0.0205040555,
-0.2953587174,
-0.1880334914,
-0.2906228304,
-0.0350588411,
0.2623248994,
-0.1963947862,
0.1415908337,
0.1420525312,
0.0746644661,
-0.0480769314,
-0.0737812668,
-0.1887141317,
-0.0419486649,
-0.0203903839,
-0.097703509,
0.1611531675,
-0.0470973328,
0.1831697226,
-0.1151476726,
-0.0154930279,
-0.1983475238,
-0.1261879653,
-0.088649191,
-0.1823122203,
0.1036704853,
0.0917644575,
-0.1507455409,
0.0077105942,
0.1161019728,
-0.0512115657,
-0.1277989298,
0.1301221997,
0.298252821,
0.1745993048,
0.4742082357,
-0.3560159504,
-0.0829471722,
0.1817032993,
0.170888111,
0.1855214387,
0.2539547682,
0.0983643532,
0.3434684873,
-0.0352840871,
0.0668346882,
0.1994776875,
0.0863015354,
-0.2979836166,
-0.126468733,
-0.0290958919,
-0.0182731748,
0.2794276178,
0.1638100445,
0.0191643964,
-0.014203541,
-0.1234566271,
0.1148333102,
0.3537417352,
0.0988295153,
-0.2069836259,
-0.1539523154,
0.0988705978,
0.2208559811,
0.0764923245,
0.1785641611,
0.2705297172,
0.1345767826,
0.4922556579,
-0.3178775012,
0.1459871829,
0.3445349038,
0.2976651788,
0.208529532,
0.0903944001,
0.2939818203,
0.0949467644,
0.2443409562,
0.0601105876,
-0.0033160225,
0.5129237771,
0.0124651687,
-0.073704429,
0.2005209923,
0.2055825293,
-0.1890848577,
0.0955424234,
0.1106863767,
-0.050806798,
0.0949550495,
-0.0492537245,
0.571252346,
-0.1177465171,
-0.0155851739,
-0.3336335123,
0.2994700372,
-0.0854363292,
-0.1807909459,
-0.0197139811,
-0.1353515387,
0.039609585,
0.2801901698,
-0.0514774062,
-0.3864881396,
-0.0389174744,
0.1617704481,
-0.1272819936,
-0.1779737324,
-0.1812586039,
0.1209260672,
-0.3105266094,
0.0161531903,
0.4337157011,
0.1446595788,
-0.1302079409,
0.0295595285,
0.3841898441,
0.1690031141,
-0.1724965274,
0.4721443951,
-0.1771738827,
0.1301402897,
-0.1403750926,
-0.2451565415,
0.1328189522,
0.318983078,
-0.0060125547,
0.3414826095,
0.0616377965,
0.0389680378,
-0.1622571498,
0.159457162,
0.0792268366,
-0.1013211086,
-0.1802797765,
-0.4150589406,
0.1580225974,
-0.0880276784,
-0.0455347635,
-0.5016361475,
0.2470210344,
0.1496071517,
-0.1496336758,
0.0189149342,
-0.1384736449,
-0.0093344729,
-0.1743347198,
0.1371356696,
0.3459754586,
0.2639029622,
-0.0024857458,
-0.6588703394,
-0.2146394104,
0.2106986493,
-0.0277709346,
-0.075119704,
-0.0722851828,
-0.0252763256,
0.3127169311,
0.1298638135,
0.0509145744,
0.210309267,
-0.1530829817,
0.1640060097,
-0.1794629097,
0.0618771017,
0.251328826,
0.4620853961,
-0.1744550467,
0.087618351,
0.3323718905,
0.1601622105,
-0.0661770105,
-0.1825340539,
0.2284642905,
-0.2074322701,
-0.1659841239,
0.2688733935,
0.3205892742,
0.3998617232,
-0.3611189425,
-0.130055666,
0.0989038646,
-0.2429351658,
-0.073777698,
0.0674371123,
-0.2290088385,
-0.0123302992,
-0.3308668435,
-0.3584827781,
0.1160638928,
0.5048750043,
0.117959328,
-0.0516013578,
0.1366364211,
0.1049753651,
-0.1102042273,
-0.2749273479,
0.3539326787,
0.3603772223,
0.0140960002,
-0.3449823558,
0.079215996,
0.0914564505,
0.195619151,
-0.2156492621,
-0.0720054582,
-0.1183875054,
-0.1322483271,
0.1934744269,
-0.1283583045,
-0.2040828764,
0.1030834839,
0.1147672161,
0.2430069298,
-0.183942765,
0.2309462726,
0.0588914305,
-0.2623920739,
-0.0619241036,
0.7732937336,
0.3933511078,
-0.5757271051,
0.136857599,
-0.169705376
] |
https://github.com/huggingface/datasets/issues/4221 | Dictionary Feature | Hi @jordiae,
Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
```python
"list_of_dict_feature": [
{
"key1_in_dict": datasets.Value("string"),
"key2_in_dict": datasets.Value("int32"),
...
}
],
```
Feel free to re-open this issue if that does not work for your use case. | Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance. | 48 | Dictionary Feature
Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance.
Hi @jordiae,
Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
```python
"list_of_dict_feature": [
{
"key1_in_dict": datasets.Value("string"),
"key2_in_dict": datasets.Value("int32"),
...
}
],
```
Feel free to re-open this issue if that does not work for your use case. | [
-0.046249602,
-0.4512825608,
-0.170710057,
0.1658608615,
0.093263872,
-0.0161834396,
0.1318405122,
0.1520017833,
0.4049992263,
0.1299023777,
0.1432440877,
0.223382771,
-0.070746623,
0.7212549448,
-0.1806515455,
-0.2812748551,
-0.0481466874,
0.1059780419,
0.0737303942,
0.073952347,
-0.1253979951,
0.1502588838,
-0.2813602984,
-0.1048052609,
-0.0397459157,
0.0884202421,
-0.2027263641,
-0.0714694262,
0.347345233,
-0.6424142122,
0.123168923,
0.4423502982,
0.0396260917,
-0.0616152324,
-0.0001189928,
-0.2761025131,
0.4679419994,
-0.2269837856,
-0.3569720089,
-0.2296674848,
-0.199814707,
-0.3822999299,
0.5282430053,
-0.2746614218,
-0.3254593611,
0.0205431636,
-0.0372579657,
-0.4556129277,
0.367881,
0.2061426342,
0.1467750669,
-0.2795571387,
0.0973109528,
-0.0669891611,
0.3817410171,
0.1910148114,
-0.0934451297,
0.1437963545,
0.6928072572,
-0.0551415794,
0.1309111714,
-0.2285545766,
-0.1546840072,
-0.3476566672,
0.5730137229,
0.090143837,
0.267570436,
-0.3771878779,
-0.359654814,
0.2192951441,
0.8294892907,
-0.1067890301,
-0.2861171663,
-0.3250894845,
-0.1882962286,
-0.4314510822,
0.1597897261,
-0.3037927449,
-0.0459428281,
0.1378307194,
0.1568042487,
-0.0713413358,
-0.088976562,
0.2812311351,
-0.0404208377,
0.1910972744,
0.0266956054,
-0.0235367902,
-0.1586868465,
-0.2278683335,
-0.0469960272,
-0.0702571124,
0.2840810716,
0.1217123717,
-0.223154068,
-0.1099509448,
-0.0205840599,
-0.0605249405,
0.1812093109,
0.248586759,
0.0800034702,
0.0705952719,
-0.3803007305,
-0.0179965552,
0.359307915,
0.2372664213,
0.4035008848,
-0.3601958156,
-0.0724302009,
0.276925236,
0.0469811857,
0.0886486173,
-0.0106550651,
-0.0637016222,
0.0556451492,
0.0773449466,
0.1296598464,
-0.1306475848,
-0.2417448461,
0.2022348195,
0.2086495012,
0.0122063989,
0.1516166776,
0.4181008041,
-0.2922096848,
0.2368131131,
0.0213952996,
0.2213555574,
0.1174701303,
0.059038166,
-0.0382067636,
0.0097807376,
-0.0412078872,
0.0462836586,
0.2541353106,
-0.0828811601,
0.2696802914,
0.0417940021,
0.2771687806,
-0.2652035356,
-0.0759028792,
-0.198762238,
-0.1253006458,
0.1631772369,
-0.1962165833,
0.009763794,
-0.0135485698,
-0.1114702895,
-0.2688688934,
0.2258906811,
-0.1395948082,
-0.0416631252,
-0.0601224415,
0.1419021487,
-0.1973285377,
-0.0230838694,
-0.0382767282,
0.2280866206,
0.1223533079,
-0.0543711856,
-0.2220020741,
0.0071188151,
-0.7168328762,
-0.3807497025,
-0.0536603071,
0.3040605485,
-0.5698955059,
-0.1325670481,
-0.0875264555,
0.0177258328,
-0.0082814638,
-0.0525143966,
0.0172168706,
0.2265293896,
-0.2068644166,
-0.0014503073,
0.2323720604,
-0.4347223043,
-0.1605602503,
0.3504544497,
0.0586431362,
0.1688178927,
0.2535909414,
0.3871676326,
0.5119778514,
-0.3412386179,
0.2434355468,
0.4065400064,
0.0434695035,
-0.1471085101,
0.1205266565,
-0.1337740123,
0.445345819,
0.1502158046,
-0.3017046154,
0.0290647373,
-0.2211325616,
-0.2671983838,
0.1764097214,
0.0397761762,
0.0167352688,
0.2715829015,
0.094026044,
0.566649735,
0.1651080996,
-0.2676758468,
-0.6147459149,
0.3075072765,
0.0063524581,
-0.2677968144,
0.0350964181,
-0.2073162049,
-0.4082702994,
0.2199755311,
-0.2012044936,
0.2515418828,
0.0364015736,
-0.1001542062,
-0.1090351343,
-0.0940639377,
-0.0963774398,
0.2330831885,
0.1894198209,
-0.1068899632,
-0.2856429815,
0.3583069444,
0.0179247763,
-0.0724951997,
0.2625323832,
0.3109193742,
0.2497436553,
-0.0529364683,
0.0386242904,
0.1483461261,
0.8869811296,
-0.3456225395,
-0.3866567314,
0.2108546644,
0.2854633927,
-0.0646300912,
0.2216624767,
0.2667868137,
0.191100806,
-0.3415016532,
-0.2751635611,
0.5970080495,
-0.2402753234,
0.2891125679,
-0.0674559921,
0.2141904533,
0.4508869946,
-0.0050322074,
-0.1291974634,
-0.3869549334,
0.1643774509,
-0.0465266854,
0.0836555213,
0.0411108211,
-0.2710931599,
0.1041809842,
0.0665127784,
-0.0794601068,
0.1976571232,
0.2773538828,
0.2292713374,
-0.1658056974,
-0.1020847932,
-0.3614659011,
0.1437122226,
0.1009107754,
-0.3632026017,
0.0466103107,
-0.0443613864,
-0.0748455226,
0.2180693597,
-0.2062769979,
0.1867044717,
0.2407663763,
0.1595994085,
-0.0981995389,
0.1215297207,
-0.3787432611,
-0.0019334218,
-0.1225768179,
-0.2961784899,
-0.2119769454,
-0.2687250078,
-0.1018810347,
0.310333699,
-0.2189504355,
0.0780742764,
-0.4335143566,
0.068624787,
0.1052973494,
-0.0226644054,
0.0829315633,
0.2285619974,
0.0658746064,
0.1621020138,
-0.1830590665,
-0.05840417,
-0.3823064864,
0.0641353801,
0.0023696311,
-0.0706431791,
0.369263649,
0.2841461003,
0.076757893,
-0.2435485274,
-0.2377451807,
-0.2604746222,
0.123521708,
0.0342575498,
0.1829411536,
0.3446880877,
0.197281763,
0.2992582023,
-0.0786399469,
0.0321304686,
0.394110173,
-0.3095476627,
0.1741800308,
0.1418125033,
-0.013493414,
0.0765871033,
-0.235574469,
-0.2443116903,
-0.308629483,
0.1322305799,
0.4134590626,
0.3325935304,
0.1554553062,
-0.008885975,
-0.0580807887,
0.1491835564,
0.3193129897,
-0.19596605,
0.5716267824,
0.1805756092,
-0.1946721971,
-0.3475163579,
0.0544553399,
-0.1825038642,
-0.075774312,
0.0263150968,
-0.2433121204,
-0.0414513573,
-0.3765144348,
0.3023117483,
0.0288425088,
0.0225378685,
0.2367355078,
0.2202737182,
0.1453631222,
-0.0642955527,
-0.1982217729,
0.1408779919,
0.0279875062,
-0.1301562041,
0.2775525153,
0.6170358658,
-0.5521563292,
0.2099923044,
0.2318207473,
-0.0563628636,
0.3486996889,
-0.1254516393,
-0.0999831185,
-0.4785789549,
0.0601745583,
-0.3370320797,
0.0017571339,
-0.2479835898,
0.2360033542,
-0.1649487317,
-0.1049449071,
-0.0973476022,
0.1036630422,
0.0159037691,
-0.0219855551,
0.0564398095,
-0.3701232374,
0.0828335434,
-0.1814056039,
0.0417651162,
-0.1170881018,
-0.1189045385,
0.0065741874,
0.0233389642,
0.2329667807,
-0.361261934,
-0.2807167172,
-0.0092913788,
-0.2129001617,
-0.0269943643,
0.2166492492,
0.0991116613,
-0.1988561302,
-0.0101523725,
-0.1292426884,
0.1360038221,
0.5552917123,
-0.1898207217,
0.1380555481,
0.1372266263,
-0.3800950348,
0.0906356797,
-0.0934029967,
-0.0580578595,
0.0888218731,
-0.1633864045,
0.3065549731,
-0.2904231846,
-0.2331285626,
-0.085464552,
0.4232659638,
-0.2745884955,
-0.4344219267,
-0.0608064234,
-0.0088130301,
-0.5277043581,
-0.5270119309,
0.2141359448,
0.0707802773,
-0.0751605853,
-0.4207072556,
-0.3179587126,
-0.2028736621,
0.09019012,
-0.1041796505,
0.3009878695,
-0.1051973552,
0.4469848275,
-0.1123402119,
0.1081910282,
-0.2539649606,
0.2400655299,
0.2642770708,
-0.3275774419,
-0.0068667405,
-0.1803945601,
0.1138453037,
0.1183241233,
-0.0263846796,
0.0791918486,
-0.4110857546,
-0.0470126607,
-0.3480218649,
-0.2842424512,
0.1197118089,
-0.0326705165,
-0.29630813,
-0.610684514,
0.322420001,
0.0783013031,
-0.3097091317,
-0.0204187315,
-0.1818652004,
-0.2126481831,
0.6980809569,
0.1697246432,
0.8080041409,
-0.2367161363,
0.0776059255,
0.4769248366,
0.2930557728,
0.2038347423,
0.2007444203,
-0.1710087508,
-0.4697274864,
-0.3482843935,
-0.0869784281,
-0.0327761546,
-0.1852401793,
0.2536846697,
-0.6104797721,
0.4843079746,
-0.5161294341,
-0.0840078667,
-0.0767057315,
0.1106656194,
0.3188463449,
-0.1316720694,
-0.1207899153,
0.0396294892,
0.2779881954,
-0.0630106628,
-0.2735729218,
-0.0199320428,
0.043572437,
0.1498797536,
-0.3977626264,
0.0254093185,
-0.0686855465,
0.2291389406,
-0.0014269103,
0.2433772236,
0.315652281,
0.6047175527,
0.1533823162,
0.1292870045,
-0.0736995414,
-0.0722482204,
-0.0769077316,
-0.0988730416,
-0.1194651276,
-0.0779108852,
0.3019707203,
-0.0052477536,
-0.1236798242,
0.0745419189,
-0.0523337647,
-0.0308601297,
-0.1108576655,
0.0798376128,
-0.1757641733,
-0.3581697941,
-0.6699895263,
-0.1816569567,
-0.1016958654,
0.0113749541,
0.0872465298,
0.3589833379,
0.0681452975,
0.0849186257,
0.065292418,
-0.0260209385,
-0.0554005578,
0.0036093132,
0.4552602768,
-0.1340445727,
0.4324486554,
0.5098875165,
-0.1528184563,
-0.1936437637,
-0.1354251504,
-0.0559156649,
-0.1335020363,
0.2796684802,
0.0328171514,
-0.352399677,
-0.1818494946,
0.6086480021,
0.0362791121,
0.2895681858,
-0.0096878661,
-0.3957570195,
-0.1968741715,
0.2034674287,
0.0940129012,
0.1949352324,
-0.3233680427,
-0.4421373308,
-0.1871782392,
0.0454199053,
-0.2079062462,
-0.2800553143,
-0.0322727598,
0.0591144748,
0.1435358077,
0.1205629036,
-0.137443617,
0.155335933,
0.1495114863,
-0.2017550319,
-0.0029916796,
-0.1529201865,
-0.0722791478,
0.1622056216,
0.017655801,
0.1654712111,
-0.2568818331,
-0.228907451,
-0.2302145213,
-0.3397035599,
-0.0486137941,
0.2048762888,
0.0616265647,
0.26638183,
0.327175498,
0.136503458,
-0.0062808986,
0.2683414519,
-0.0726013258,
0.2836204469,
-0.082041271,
-0.0585239343,
-0.180259943,
-0.1736923307,
-0.3478017449,
0.3070158958,
-0.135208264,
-0.1376637667,
0.3375943899,
0.2210403979,
0.0213251617,
0.3914761543,
0.1796311587,
0.4296334684,
-0.2072210163,
0.0782145411,
-0.0033391749,
0.1626951545,
-0.3803815842,
-0.3470334113,
0.1119398624,
0.1125970408,
0.0008323257,
0.3110020757,
0.114552252,
0.0013223067,
-0.119559966,
-0.0701922029,
-0.2128001153,
-0.1996897161,
0.0274999496,
0.2465978563,
0.4094802141,
-0.0927412212,
0.0496499725,
0.2706280351,
0.2925355434,
0.3338958025,
0.2348723561,
0.0749742091,
0.3227992952,
0.2361791283,
0.2447648346,
-0.2504471838,
0.1683991551,
0.5184009671,
-0.1367760599,
-0.1352581233,
0.2897870243,
-0.3292039037,
0.3011075258,
0.1267334819,
-0.2407540381,
0.1030997336,
0.012111621,
-0.3021205664,
0.241448611,
-0.0622077845,
-0.452041775,
-0.2457783967,
-0.1348153949,
-0.0812570676,
0.1806098521,
0.0033869355,
0.2856386602,
-0.2753641605,
0.7117035985,
0.0874574408,
0.2593799829,
-0.0586070493,
0.0904021338,
-0.0664175525,
0.1319217086,
0.1970617324,
-0.1178637445,
0.3038159609,
0.6028250456,
-0.3147420287,
0.1393565983,
-0.1232540384,
-0.3411880434,
-0.2419892401,
0.1734832674,
-0.1671851128,
0.3465702534,
0.3755081892,
0.0717974156,
-0.0350475423,
0.2135507017,
0.3740823865,
-0.1818882525,
-0.1626143754,
0.4997572601,
0.1622719318,
-0.0732484534,
0.0113806874,
0.1967005134,
-0.3975435197,
-0.3917452395,
0.2553153634,
0.3052212,
0.2863810062,
0.2976034284,
0.0709224567,
-0.2334834784,
0.2176710218,
0.2070723176,
0.446824342,
-0.1469655633,
0.0396976322,
-0.2028340846,
-0.1229193881,
0.0337556526,
-0.4310970902,
0.6553041935,
0.1517422199,
-0.0292394497,
0.226212576,
-0.1670312583,
-0.0187964588,
0.1214609817,
0.0447571948,
-0.2793579698,
-0.3097159266,
0.1199988052,
0.3209986985,
-0.1627558917,
-0.1228851676,
0.0758859515,
-0.0529287197,
0.051758457,
-0.2413004637,
0.097465001,
-0.1734104902,
0.1402684599,
0.0326282009,
-0.0842858404,
0.3476970196,
-0.133126393,
0.1864527315,
0.0530169122,
-0.1469322145,
0.0605896004,
0.240455389,
0.0700022131,
-0.0152175371,
-0.0855726972,
0.454236716,
0.0759774074,
0.0882800668,
0.0638260692,
-0.0800344646,
-0.5597096682,
0.2261675447,
-0.1811411381,
0.2190135121,
-0.047349114,
0.2678973079,
-0.1862896532,
0.2738000751,
0.2603799701,
-0.2737369835,
0.4179801643,
0.2398237735,
-0.1766735762,
0.0834861994,
-0.0135332597,
0.0595293641,
0.0868278444,
-0.0384227373,
0.0033102809,
0.3459967375,
0.0006057512,
-0.2081973255,
0.1088868454,
0.1227030233,
-0.0586316548,
-0.1708818376,
0.2910699248,
0.0994609743,
0.1702309698,
-0.3400926888,
-0.2648630142
] |
https://github.com/huggingface/datasets/issues/4221 | Dictionary Feature | > Hi @jordiae,
>
> Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
>
> ```python
> "list_of_dict_feature": [
> {
> "key1_in_dict": datasets.Value("string"),
> "key2_in_dict": datasets.Value("int32"),
> ...
> }
> ],
> ```
>
> Feel free to re-open this issue if that does not work for your use case.
Thank you | Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance. | 65 | Dictionary Feature
Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?
Thank you in advance.
> Hi @jordiae,
>
> Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
>
> ```python
> "list_of_dict_feature": [
> {
> "key1_in_dict": datasets.Value("string"),
> "key2_in_dict": datasets.Value("int32"),
> ...
> }
> ],
> ```
>
> Feel free to re-open this issue if that does not work for your use case.
Thank you | [
-0.0429693162,
-0.4704377353,
-0.1678056717,
0.1911447197,
0.0661601573,
-0.0045956159,
0.1355632991,
0.1641891599,
0.4212374985,
0.1347170472,
0.1320910752,
0.2042677552,
-0.085127905,
0.7377755642,
-0.1715188473,
-0.2838612199,
-0.0400621369,
0.0985410661,
0.0720809624,
0.0651337579,
-0.1098736003,
0.14833951,
-0.282238692,
-0.1230486557,
-0.014830038,
0.099099651,
-0.205032602,
-0.0863568187,
0.3466072083,
-0.6270552874,
0.1145044491,
0.4499593973,
0.0319555886,
-0.0642889962,
-0.0001205197,
-0.2599371672,
0.4574344158,
-0.2159334719,
-0.3611801863,
-0.2052757591,
-0.2063648701,
-0.3948021829,
0.5203175545,
-0.2871206403,
-0.3088027835,
0.0289495774,
-0.0467761569,
-0.4709153771,
0.3677733243,
0.1937672347,
0.1332467645,
-0.2727402449,
0.0808882341,
-0.054357633,
0.3946862817,
0.2014055699,
-0.1048343033,
0.163730219,
0.6974082589,
-0.0477019474,
0.1189360842,
-0.2285163999,
-0.1444529742,
-0.3574689627,
0.5789632201,
0.0692760721,
0.2422296256,
-0.3922006488,
-0.3392057717,
0.2242277712,
0.8672297001,
-0.0969508737,
-0.2697050273,
-0.3286168873,
-0.1966628879,
-0.4196618795,
0.159391731,
-0.3182512224,
-0.0530898906,
0.1402119547,
0.1450407058,
-0.0773038417,
-0.0909149125,
0.2604517043,
-0.0153467823,
0.1399206668,
0.0272492245,
-0.0401429757,
-0.1684522033,
-0.2289493978,
-0.042241171,
-0.0906159654,
0.2799790502,
0.1111545861,
-0.2226955444,
-0.1144511625,
-0.0271639284,
-0.0577414855,
0.1897265166,
0.2494761944,
0.0854887962,
0.0723983645,
-0.3772484362,
-0.0194644518,
0.3499037623,
0.2269113362,
0.4114252031,
-0.3595533371,
-0.0770329684,
0.2774990499,
0.0485524498,
0.0913434178,
-0.0176004879,
-0.0537259467,
0.0721302852,
0.0529685169,
0.1191203967,
-0.1450019777,
-0.2331784517,
0.195211187,
0.1863651276,
0.0126625849,
0.1621602774,
0.4231903851,
-0.3112890124,
0.2096297741,
0.0083998078,
0.2196212113,
0.1054713205,
0.0557128042,
-0.0278225075,
-0.0087261917,
-0.0539107546,
0.0443682298,
0.2593614459,
-0.0772727877,
0.2498550266,
0.0374190249,
0.266669631,
-0.27869609,
-0.086949721,
-0.1984587312,
-0.1286565214,
0.1398650408,
-0.1796713918,
0.0089692157,
-0.0239500944,
-0.0952753052,
-0.2570260763,
0.2263918519,
-0.1408737898,
-0.0557924807,
-0.0520811193,
0.1282781363,
-0.2017674148,
-0.0196912363,
-0.0326273888,
0.2371160239,
0.1242026612,
-0.0629752427,
-0.2309453785,
0.018482605,
-0.7297495008,
-0.3843669891,
-0.0553274266,
0.3350841701,
-0.5704236031,
-0.1310541779,
-0.1069889516,
0.0160687435,
0.0025796946,
-0.0488681756,
0.0251935069,
0.2374302298,
-0.2200978845,
-0.0120996283,
0.2434198409,
-0.4194359779,
-0.1888312548,
0.35346663,
0.067217201,
0.166905567,
0.2616818547,
0.3913342655,
0.5214036703,
-0.3344428539,
0.2122385204,
0.3922583163,
0.0438463911,
-0.1396683306,
0.1137662008,
-0.1230740026,
0.445822984,
0.1585558057,
-0.285372436,
0.0438471474,
-0.1920589507,
-0.2551847696,
0.177962333,
0.0452680402,
0.0313417315,
0.2592541277,
0.079187341,
0.5799187422,
0.1676922143,
-0.2711467445,
-0.6223829389,
0.3054470122,
-0.0072562671,
-0.2700938582,
0.067025274,
-0.2005797923,
-0.4199748337,
0.2083074898,
-0.1984320581,
0.254029572,
0.0246264283,
-0.0941756517,
-0.1109542847,
-0.1122768447,
-0.0881684273,
0.2438614964,
0.1757523865,
-0.101097025,
-0.2963375449,
0.3637978435,
0.0259921625,
-0.068206355,
0.2738375664,
0.3246902227,
0.2452081293,
-0.0482983515,
0.0361878872,
0.1210450009,
0.8892270327,
-0.3547438085,
-0.3784582913,
0.2209714949,
0.2830378711,
-0.0812357813,
0.2489000708,
0.255584687,
0.1916795373,
-0.3430196345,
-0.281594485,
0.5699647069,
-0.2481467724,
0.2800792158,
-0.0612875,
0.2197804302,
0.4321178496,
0.0043352991,
-0.1176931262,
-0.3936081827,
0.166650638,
-0.0400210507,
0.1149888486,
0.0238712467,
-0.2801136672,
0.1003493667,
0.0587949269,
-0.0666385517,
0.2112705559,
0.2897412181,
0.2427733243,
-0.1752025783,
-0.0914025009,
-0.3679579198,
0.1232929155,
0.0929025337,
-0.3488699794,
0.0599633902,
-0.0096654687,
-0.0665984228,
0.2231805772,
-0.2091850787,
0.1879824996,
0.2351406068,
0.1475766748,
-0.0922566503,
0.1208053455,
-0.3754296899,
-0.0018180892,
-0.1313171685,
-0.3162955642,
-0.2077574879,
-0.2735092938,
-0.1022862494,
0.3218830526,
-0.2074784636,
0.0832346454,
-0.419565022,
0.0638234839,
0.1159948185,
0.001697248,
0.0827226341,
0.2544096708,
0.0791424513,
0.1558482796,
-0.1901484579,
-0.0551463962,
-0.3643717766,
0.0685328543,
-0.0034508843,
-0.0498566516,
0.3821994364,
0.2964525521,
0.047797706,
-0.2427614033,
-0.2546735704,
-0.24202241,
0.1246832982,
0.0408010967,
0.1624813229,
0.3353115618,
0.1955304891,
0.265466392,
-0.0406072028,
0.019098958,
0.3972305059,
-0.3206771016,
0.1734580696,
0.1411875784,
-0.0110763386,
0.0845558196,
-0.2365294099,
-0.2602050006,
-0.2982485592,
0.134083584,
0.41278705,
0.3460389376,
0.1547751427,
0.0017386165,
-0.0531757027,
0.1577520519,
0.321107775,
-0.1935502589,
0.5660732388,
0.1810953021,
-0.1946115345,
-0.355003804,
0.0547766201,
-0.1852881312,
-0.0671508834,
0.0294196084,
-0.2463186085,
-0.0169738643,
-0.3761957288,
0.3262610137,
0.0463195071,
0.0425536409,
0.2474853843,
0.2113266289,
0.1662921607,
-0.0506154783,
-0.2153066397,
0.1385057718,
0.004147463,
-0.1210742742,
0.291195333,
0.6103336215,
-0.5833672881,
0.2267512232,
0.2389131337,
-0.0426310077,
0.3606213331,
-0.1387867033,
-0.0864120498,
-0.4743101001,
0.0341002494,
-0.3199351728,
-0.0203121398,
-0.2453767508,
0.2285148054,
-0.1666202992,
-0.1125181913,
-0.102076754,
0.0803801417,
-0.0007060174,
-0.0201340765,
0.0514707714,
-0.3898414373,
0.085102953,
-0.1789825708,
0.0467087254,
-0.1243071705,
-0.1323924363,
0.0191932879,
0.0394525528,
0.2429213077,
-0.3751875162,
-0.2918420136,
-0.0182459131,
-0.214156419,
-0.0418161936,
0.2122230083,
0.0973126814,
-0.2043107748,
0.0029875857,
-0.1245554164,
0.1548598558,
0.5807391405,
-0.1817255318,
0.1533964872,
0.1293037087,
-0.3806326091,
0.1014721394,
-0.0802016631,
-0.0602418743,
0.0958787799,
-0.1827404201,
0.2715817988,
-0.2892586589,
-0.2269496322,
-0.080737561,
0.4406329095,
-0.281098783,
-0.4758982658,
-0.0430322997,
0.0064667142,
-0.5391343236,
-0.5501671433,
0.2090351135,
0.0628307834,
-0.0736262053,
-0.4290340841,
-0.3143327236,
-0.1959165335,
0.0944627523,
-0.0859580263,
0.3035990894,
-0.1159366518,
0.4498221278,
-0.1186467931,
0.1047309861,
-0.2449400127,
0.2528445125,
0.2503005266,
-0.3492394388,
0.0142307216,
-0.1640627831,
0.1036115661,
0.1042684391,
-0.0222357363,
0.0605120845,
-0.4116000831,
-0.0493698008,
-0.3372838795,
-0.3075934947,
0.1161182374,
-0.0203890875,
-0.3011692166,
-0.6115106344,
0.3305914402,
0.083571516,
-0.3141230643,
-0.0186631847,
-0.1770674586,
-0.2061609924,
0.6861749887,
0.1632322073,
0.8188748956,
-0.2292823493,
0.0707064271,
0.497694999,
0.2781093121,
0.1991240978,
0.1973952055,
-0.1829585582,
-0.4760642946,
-0.3526699543,
-0.0892866105,
-0.0298436861,
-0.1913864166,
0.2760171592,
-0.5978083611,
0.4828034043,
-0.5174862742,
-0.0739725679,
-0.0933250114,
0.1208466515,
0.3119495511,
-0.1419981122,
-0.1297999024,
0.0318295285,
0.2947933972,
-0.0398293063,
-0.284090817,
-0.0142595237,
0.0356299914,
0.1582651287,
-0.4008289874,
0.0229376741,
-0.0450617261,
0.2125977576,
0.0167667139,
0.2452765554,
0.3642135859,
0.6223149896,
0.1572020799,
0.1498790383,
-0.0699650571,
-0.0991208106,
-0.0779758543,
-0.0947041512,
-0.1163724065,
-0.0818020478,
0.308874011,
-0.0150868176,
-0.1406020224,
0.0657022744,
-0.0426007137,
-0.0082472106,
-0.1095165983,
0.0788418949,
-0.1496267766,
-0.3746887445,
-0.665328145,
-0.1830615848,
-0.1210893318,
0.0170095414,
0.0711621046,
0.3624943495,
0.0752565041,
0.0914715901,
0.0638987571,
-0.0192763284,
-0.0489628874,
-0.0036644873,
0.4602409303,
-0.1371629536,
0.4401563108,
0.5107125044,
-0.165912956,
-0.1863009185,
-0.1349731982,
-0.0410600975,
-0.1367075592,
0.2683491409,
0.0251770187,
-0.3519144654,
-0.1999738514,
0.5697356462,
0.0464973301,
0.306134969,
-0.0001405651,
-0.4036199749,
-0.205512777,
0.1974143982,
0.0831392035,
0.1834571213,
-0.314326942,
-0.451020509,
-0.1626746505,
0.051553838,
-0.1887728572,
-0.2827401161,
0.0023420879,
0.0462836139,
0.1531008333,
0.1226855144,
-0.1561570466,
0.1408736706,
0.1288059056,
-0.1951477379,
-0.0035246448,
-0.1366000772,
-0.055245474,
0.1697296649,
0.016152842,
0.157784164,
-0.2510715425,
-0.2348280102,
-0.2367633581,
-0.3364038467,
-0.0490173176,
0.2011006027,
0.0731550679,
0.2551914155,
0.3351807892,
0.1288359463,
-0.0412229188,
0.2880110443,
-0.0712855905,
0.2845419943,
-0.093154192,
-0.0672062561,
-0.1526633799,
-0.1836322099,
-0.3548780084,
0.3009615839,
-0.1260094196,
-0.1479239762,
0.3634278178,
0.2186013162,
0.0364158787,
0.4026186764,
0.1486368775,
0.421310544,
-0.1970244944,
0.0718922541,
0.0113184974,
0.1442397684,
-0.3829606175,
-0.3480307162,
0.1227787733,
0.0877041221,
0.0048151356,
0.3098231852,
0.1085901856,
0.0080871191,
-0.1521996707,
-0.0717810392,
-0.2265311629,
-0.1791190356,
0.0134650189,
0.261420697,
0.3985028565,
-0.0835063159,
0.0699044168,
0.2843662202,
0.2599130571,
0.3345193565,
0.2469491512,
0.0898122713,
0.3154042661,
0.2591165304,
0.2474360913,
-0.2557630539,
0.1724549234,
0.5423032045,
-0.1452328861,
-0.1430142671,
0.281711787,
-0.3441195488,
0.3144917488,
0.1295330971,
-0.2424104512,
0.0991834849,
0.0048479089,
-0.2736860216,
0.2328706533,
-0.0671973303,
-0.4668712318,
-0.2387633026,
-0.1584493667,
-0.0998481661,
0.1744957715,
-0.0086621875,
0.2787289023,
-0.2625398636,
0.7088649869,
0.0955229849,
0.2622169554,
-0.0597564429,
0.0878467783,
-0.0929391533,
0.1453580409,
0.1862290502,
-0.0960745513,
0.3025284111,
0.5908000469,
-0.2902056277,
0.1319196969,
-0.100158833,
-0.3410929441,
-0.2412003875,
0.1894101053,
-0.1599883139,
0.336594373,
0.3536621034,
0.0453871228,
-0.025854744,
0.2148823142,
0.3865303695,
-0.1933884174,
-0.1711888015,
0.4797002971,
0.1650584787,
-0.0757745877,
0.0054365559,
0.1947041303,
-0.3924930394,
-0.3973152936,
0.2840461731,
0.296838522,
0.278528899,
0.2901187837,
0.0613256693,
-0.2259616554,
0.2346456051,
0.2222993076,
0.4461551607,
-0.1472891569,
0.0404047929,
-0.2170990407,
-0.1223871931,
0.0451604575,
-0.4246482849,
0.639621973,
0.1408871412,
-0.0289244819,
0.241789028,
-0.1564906687,
-0.019676201,
0.1426759958,
0.0390944965,
-0.2670777142,
-0.3043850362,
0.1025548726,
0.3364965916,
-0.1724909097,
-0.1253270805,
0.0973287672,
-0.0450756364,
0.0338112451,
-0.240072906,
0.1011572406,
-0.1871419698,
0.1365273744,
0.0252124388,
-0.0769859254,
0.3498878181,
-0.1255148202,
0.1681679785,
0.0680363253,
-0.1301601678,
0.058276251,
0.2709526122,
0.0866084471,
-0.0389070958,
-0.0793597475,
0.470202595,
0.0806052312,
0.0965636224,
0.0784904733,
-0.0691356063,
-0.5627831221,
0.2318922877,
-0.1754672229,
0.2357454151,
-0.0212429576,
0.2685269117,
-0.1862750053,
0.2735128999,
0.2534200549,
-0.2558312416,
0.4067483842,
0.2428268343,
-0.1636211723,
0.0646039844,
-0.0011137909,
0.0490295738,
0.0759347528,
-0.0323284566,
0.0059210695,
0.3539570272,
-0.0231914762,
-0.1575756371,
0.1152448654,
0.1198122427,
-0.0406788848,
-0.1745766699,
0.2960937321,
0.0955929086,
0.1829747409,
-0.3290899992,
-0.2660080492
] |
https://github.com/huggingface/datasets/issues/4217 | Big_Patent dataset broken | Thanks for reporting. The issue seems not to be directly related to the dataset viewer or the `datasets` library, but instead to it being hosted on Google Drive.
See related issues: https://github.com/huggingface/datasets/issues?q=is%3Aissue+is%3Aopen+drive.google.com
To quote [@lhoestq](https://github.com/huggingface/datasets/issues/4075#issuecomment-1087362551):
> PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
| ## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
| 62 | Big_Patent dataset broken
## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
Thanks for reporting. The issue seems not to be directly related to the dataset viewer or the `datasets` library, but instead to it being hosted on Google Drive.
See related issues: https://github.com/huggingface/datasets/issues?q=is%3Aissue+is%3Aopen+drive.google.com
To quote [@lhoestq](https://github.com/huggingface/datasets/issues/4075#issuecomment-1087362551):
> PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
| [
-0.4834668934,
0.104641214,
-0.0131414868,
0.3420283496,
0.1577983648,
0.0383427329,
0.1688533425,
0.2354457974,
0.2180176079,
-0.1323463321,
-0.0315063484,
-0.1041555107,
-0.2722391188,
0.4202748537,
0.2981956005,
0.1469314247,
0.1277819872,
0.017385602,
-0.0924532115,
0.1407030672,
-0.2119998634,
0.1171338931,
-0.2322455496,
-0.0436610803,
-0.1308280677,
0.0196890943,
0.0119585041,
0.0278633293,
-0.3111699522,
-0.6212768555,
-0.0232015122,
0.1120186523,
0.0132585028,
0.6372535229,
-0.0001170137,
0.0121227661,
0.2835841179,
0.064378351,
-0.1954828799,
0.0015054281,
-0.0466969498,
-0.0728158802,
-0.0995360836,
0.1178779304,
0.1243011132,
-0.4080304801,
0.154465422,
-0.1061596945,
0.060277421,
0.4338541329,
0.167744875,
0.0627540648,
0.4727403224,
-0.1179163307,
0.0676365942,
0.0373683237,
-0.130707711,
0.4472510219,
0.0969698727,
-0.1949571222,
-0.1155871004,
0.1067605168,
-0.2359167039,
-0.1136828512,
0.4440070391,
-0.1806278229,
-0.3739488423,
-0.3391382396,
0.2871483564,
0.4707916081,
0.5489801764,
-0.0697182119,
-0.3047060072,
-0.2458086759,
0.1427858919,
-0.3285986483,
0.3200212419,
0.3449636698,
0.2516527772,
0.2392545044,
-0.1941295266,
-0.4256746471,
-0.281226635,
0.2228533775,
-0.3112690747,
-0.0448148474,
-0.1355428249,
0.1208092719,
0.1246525347,
-0.1099864766,
-0.0208945256,
-0.0179947503,
-0.1427782923,
-0.0087158186,
-0.0284021925,
0.0541404858,
0.1514885128,
0.4299626946,
0.3273875415,
0.2345272005,
-0.0417352654,
0.0483418852,
-0.2623109818,
0.0019875411,
0.1422084123,
-0.0464161187,
-0.3171282113,
0.0674460009,
0.5703381896,
0.2360274047,
0.0633824691,
0.0202226825,
-0.1078175679,
-0.2126618028,
-0.328851223,
-0.3850155473,
0.4459056854,
-0.096846059,
-0.3567793071,
0.3077969253,
-0.210879311,
0.0921239704,
0.1061948165,
0.4070597887,
-0.1150916964,
-0.0919281468,
-0.0998926088,
0.0923706219,
-0.0739888474,
-0.2387170047,
-0.0675114542,
0.0683787614,
0.1380838007,
0.2179440856,
0.2942175269,
-0.3350930512,
0.1900715083,
-0.0774957761,
0.0619994365,
-0.1587910652,
-0.0365025587,
-0.1786335558,
-0.0251798518,
0.2634174228,
0.0522186272,
0.0441799909,
0.0507899895,
-0.369767487,
-0.0171329323,
0.1293041408,
-0.1222511977,
-0.1764279902,
-0.3367674947,
0.0981006995,
-0.6621643901,
-0.0627780333,
-0.2774625421,
0.163133651,
-0.3145906329,
-0.2534874082,
-0.0720968023,
-0.1887163371,
-0.041999016,
-0.1665057242,
0.2707700133,
0.6222119331,
-0.3741081357,
0.2027052492,
-0.1822732687,
-0.0308156386,
-0.380377382,
0.0824990347,
-0.1081205159,
0.248025164,
-0.4550224245,
-0.0559908859,
0.2173081934,
-0.1521511227,
-0.7441470623,
0.1073062345,
-0.1967584342,
-0.0136881871,
-0.0595600866,
0.031337183,
-0.0963134766,
-0.0397465229,
-0.1357091218,
-0.0279630125,
0.1396220326,
-0.0738886818,
-0.033408843,
-0.2202014923,
0.1026968509,
0.1573109627,
0.2711616158,
0.0508419648,
0.3370506465,
-0.0132203558,
0.2416160256,
0.0916701704,
-0.1631088853,
0.3274052739,
0.4361107647,
0.065160431,
0.086570181,
-0.2544757426,
-0.3845497668,
0.0487020686,
0.2722359598,
-0.1172706112,
-0.2122718841,
-0.0978149399,
-0.240878135,
-0.0119602736,
-0.1683567464,
-0.2509044707,
0.0537067205,
0.0604938529,
-0.1710150391,
0.327670902,
-0.1624094248,
-0.031262435,
0.2256584466,
0.1548061073,
-0.2649157345,
0.199509427,
0.0126749752,
0.064487271,
0.1379518509,
0.1568756849,
0.1922037303,
-0.1875431091,
0.0185276065,
0.3546532989,
-0.0801460296,
0.2512708008,
0.2626543641,
0.3722667396,
0.256601125,
-0.4789578319,
0.1062568948,
0.1078174561,
0.0455489606,
-0.0009179965,
-0.2910856009,
0.1551474333,
-0.1732620448,
-0.1389258951,
-0.0033259722,
0.2878322899,
0.0637937784,
-0.1004120111,
-0.0817972869,
-0.0186483208,
0.3991737068,
0.0939920396,
0.342725575,
-0.0055894335,
-0.4507690072,
0.1525511146,
0.4077531993,
-0.1745219529,
0.0406543314,
-0.0375531353,
-0.5376440883,
0.0970128626,
0.0993905291,
0.2559476793,
0.3754189312,
0.1470335424,
-0.0811396763,
0.170299232,
0.2087472826,
-0.2294714302,
0.1932689101,
0.1707135886,
-0.1833783835,
0.1545486748,
0.1193713322,
-0.0485762693,
-0.3455551863,
-0.2430789322,
0.00136938,
0.2484546304,
-0.3865132034,
0.1570989937,
-0.1725228429,
-0.1772734821,
-0.3872642517,
0.180961892,
-0.3480316997,
-0.2757409513,
-0.1457262486,
0.509931922,
0.0480949543,
-0.0684590563,
-0.5031000972,
0.2434807122,
0.0407406725,
-0.0111797601,
-0.1029591858,
0.0544737466,
-0.1583460271,
0.0528521463,
0.590890646,
-0.130534336,
0.3239356577,
0.0250550844,
-0.0641185194,
-0.6373456717,
-0.3246233761,
0.0032320637,
-0.3119246364,
0.2445955276,
0.0426084511,
0.1060778052,
0.0848139375,
0.1702257693,
0.0304516628,
-0.026078444,
0.2242319137,
0.0407425202,
0.0685784593,
-0.1566527039,
0.0013223458,
-0.2466512918,
0.0421057604,
-0.2341266125,
0.5732227564,
0.0585585535,
-0.0594615825,
0.0034694469,
-0.0562291257,
0.1547800899,
-0.0079332404,
-0.1853843182,
-0.1120804176,
-0.0741629004,
0.4787083864,
-0.3367298543,
-0.5930367708,
0.2408270538,
0.1910097003,
-0.0420696065,
-0.051192902,
-0.7720369101,
0.0885320976,
-0.1274522543,
-0.0219337288,
-0.0873812586,
-0.2929592729,
-0.1395179182,
0.0118208043,
0.0829376429,
-0.1171415597,
-0.0578293279,
-0.1196127385,
-0.215667069,
0.2699639797,
-0.0273542218,
0.2253768146,
-0.0762490109,
0.4235895276,
0.2192079574,
0.1188555285,
0.1639762372,
-0.3868443668,
0.636063993,
0.0967203751,
-0.4060645103,
0.2969851792,
0.0332811251,
0.0420440324,
0.1717955917,
-0.0203680899,
0.261202693,
-0.0966943353,
0.1884563267,
-0.1655806154,
-0.0924913213,
-0.0849727914,
-0.281737864,
-0.0917994455,
-0.0600764006,
0.1169151366,
0.0143045923,
-0.4276901186,
0.1040152982,
0.1662343144,
0.2004127353,
0.0695389137,
-0.1612099856,
-0.1465853602,
-0.5163622499,
0.3064154387,
-0.3047389388,
0.0837648883,
-0.1079490408,
0.0268930402,
0.0704617351,
0.042718485,
0.7142883539,
0.120274812,
-0.0541002378,
-0.0170377679,
0.0550578758,
-0.2129592001,
-0.1079062149,
-0.194523856,
0.2367740422,
0.0835182741,
0.2426855564,
-0.1276816428,
0.1253717244,
0.409054935,
0.3092296422,
-0.0432486124,
-0.0346555114,
-0.1219080314,
-0.316933006,
0.0997608975,
-0.2215729952,
0.088850677,
0.0402653925,
-0.2550776005,
0.0386438258,
-0.0506559014,
-0.175068453,
0.2592525184,
-0.0328692608,
0.2525988817,
-0.0021981793,
0.2010691315,
0.362297833,
0.170626983,
0.485601753,
0.6616960764,
0.2322962731,
-0.2818120122,
0.2305131853,
-0.0898878425,
-0.0367485918,
0.3589297533,
-0.1842263043,
0.041472964,
0.22468023,
0.3097265661,
-0.3407503963,
0.2789116204,
0.5714207292,
-0.0161713157,
-0.6062675714,
-0.2759951651,
0.5942257643,
0.0274136625,
-0.0142769311,
0.3786876798,
0.3547910452,
-0.1950612962,
-0.0678363815,
-0.2967737019,
0.7859034538,
-0.0310267843,
0.0748065189,
0.2268758416,
0.107053116,
0.5253902078,
-0.0774399117,
0.1068514585,
-0.3104043305,
-0.3130707741,
-0.2286906987,
-0.2815406919,
0.1021408662,
-0.2597772181,
-0.0585572384,
0.3564156294,
0.2896516025,
0.3280566633,
-0.1162440404,
0.5361650586,
-0.221588105,
0.2861787379,
0.142016843,
0.0745483786,
-0.0406998023,
0.4102210999,
-0.0736210793,
-0.1872398555,
-0.1799069941,
-0.1252834201,
-0.7686299682,
0.0220143832,
-0.2400035858,
0.1698114127,
0.0116212443,
-0.4734474421,
0.3663181961,
0.3047528267,
0.0470800847,
0.2690874934,
-0.5442120433,
0.3333304524,
-0.3025118113,
-0.2705168128,
0.216399774,
-0.0197794475,
0.2110149413,
-0.0161527172,
-0.1110485494,
0.1670351624,
0.1880714446,
0.0295757204,
-0.360984385,
0.0118096657,
0.0420522057,
-0.2454117388,
-0.0944831818,
-0.2382049114,
0.085604243,
-0.232491672,
0.0863000154,
0.1679842323,
0.2848787606,
-0.0991400555,
0.1459345967,
-0.1238734052,
-0.1598664224,
0.3275280297,
-0.2471944541,
-0.3408381343,
0.5827611089,
0.1804595888,
-0.1205324009,
-0.1340751201,
0.2452621609,
0.1986672282,
-0.2455825359,
0.0007136851,
-0.1633893549,
0.3555781841,
0.0684813708,
-0.1240973398,
0.003590971,
-0.1922119558,
-0.0390189253,
-0.2285548896,
-0.1298700124,
0.2293182015,
-0.097735934,
0.1256439239,
-0.0139698191,
0.0215524603,
-0.0196095612,
-0.1950750947,
-0.2318452895,
0.3071411848,
-0.0194730032,
-0.3883128762,
0.16964674,
0.2286741883,
0.1052196249,
-0.1942709684,
0.0513923578,
0.0256159399,
-0.1203395054,
-0.0899622366,
-0.1103071719,
0.1339464337,
0.0791915581,
-0.2982006073,
-0.1583513319,
-0.2414677441,
-0.0409737863,
0.0313648693,
0.1707320362,
0.1144980788,
0.1357930452,
-0.3143178523,
-0.0504093617,
-0.0526756793,
0.0428524539,
0.1013266593,
-0.0251501948,
0.2195001096,
0.2939210534,
0.262389034,
0.1284033805,
0.0327592567,
-0.2986309826,
0.0452460349,
-0.1488689482,
0.0685074553,
0.6593413949,
-0.3328305185,
0.0081554446,
0.1155507937,
0.4499816895,
0.4276749194,
-0.3966611028,
0.0858725384,
0.4411731064,
0.1054217741,
-0.2876016498,
0.0416747183,
0.3493263125,
0.1687146872,
0.0324202739,
0.031293273,
0.0156014916,
0.0623459369,
-0.3410559595,
0.1732254624,
0.6106492281,
0.1481025517,
0.3028061092,
0.2116984725,
-0.1748097837,
0.0609276108,
0.1973262727,
0.348023355,
0.2874392867,
0.8067832589,
-0.1153221726,
0.0635170341,
-0.1220650747,
-0.0327360332,
0.2073837966,
-0.2828801274,
-0.144658491,
0.0050908113,
-0.3425267041,
0.0146583179,
0.0386363305,
0.3712451458,
-0.4374453425,
-0.0191434454,
-0.3164049983,
0.2571122646,
0.0631371066,
0.2192356139,
0.111789763,
-0.1744877398,
0.126033172,
0.2345230728,
0.0496636294,
-0.3084154427,
0.038681943,
0.2464849651,
-0.3052717447,
-0.1798279732,
-0.1217487529,
-0.0540621802,
0.2989201844,
-0.1008404866,
-0.1645671427,
0.0597510636,
0.0798740312,
0.0809579194,
0.4073710144,
0.3968700469,
-0.0199128296,
0.1134416759,
-0.1578975767,
-0.0259149726,
-0.0965761542,
0.016270753,
0.1905148029,
0.1887370497,
0.1237536222,
0.1590515226,
0.0780743882,
-0.013524103,
0.2643616199,
-0.0833667442,
0.2441904843,
-0.375071615,
-0.0893192217,
-0.4447624981,
-0.2666526437,
-0.4011320472,
-0.3624508679,
-0.2045969367,
-0.0350443572,
0.3737795949,
0.0974156708,
0.0689879209,
-0.1988351643,
0.0250020716,
0.2186068147,
0.3465714157,
0.5203744769,
0.3331850171,
-0.123436138,
-0.1845083386,
-0.6219480634,
0.3399971426,
-0.1020593792,
0.1385107338,
-0.039807599,
-0.2373984605,
-0.1253935248,
-0.049115859,
0.0703279525,
0.2666772306,
0.0220810603,
0.0251515675,
-0.1486091465,
-0.105743885,
-0.0323579684,
0.178051129,
-0.2497233003,
0.1159466952,
0.4286106229,
-0.1934848279,
-0.0381561704,
-0.1056140959,
0.2288677245,
-0.4455747008,
-0.1517824531,
0.3439434767,
0.0708275512,
0.4219904244,
0.0315927453,
-0.1686105132,
-0.6223100424,
-0.3139055371,
-0.2148304284,
0.3909344673,
-0.0092968969,
0.1623060107,
-0.0171290375,
-0.3494926989,
-0.157494992,
0.4187229872,
-0.1996922791,
0.2029750198,
-0.1779979169,
-0.067307964,
-0.1988095492,
0.1647149771,
0.3000586629,
-0.0501488857,
-0.1654206514,
0.0425619297,
-0.1289103925,
-0.1696801037,
0.4922366142,
-0.480147928,
-0.0086188857,
0.1053380743,
0.2893526256,
0.2830290496,
-0.1280293912,
-0.4260095954,
0.0369837768,
0.2612662315,
0.0534195565,
-0.2077559084,
0.1833905727,
-0.2805331051,
0.1202219054,
0.1108858734,
0.7238495946,
-0.0014009282,
-0.4778092802,
0.2813482583,
0.0364133082
] |
https://github.com/huggingface/datasets/issues/4217 | Big_Patent dataset broken | We should find out if the dataset license allows redistribution and contact the data owners to propose them to host their data on our Hub. | ## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
| 25 | Big_Patent dataset broken
## Dataset viewer issue for '*big_patent*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)*
*Unable to view because it says FileNotFound, also cannot download it through the python API*
Am I the one who added this dataset ? No
We should find out if the dataset license allows redistribution and contact the data owners to propose them to host their data on our Hub. | [
-0.2477789819,
0.0562162139,
-0.0191622525,
0.4259560406,
0.0408797935,
-0.0157361049,
0.1593547463,
0.2846546471,
0.2502851188,
-0.0345466584,
-0.1826789826,
0.0505646504,
-0.3296605051,
0.306931138,
0.270731926,
0.2027589083,
0.1753144562,
-0.0609313212,
-0.0583923906,
-0.0332858898,
0.1193860099,
-0.0375475846,
-0.1214298978,
0.0343063027,
-0.3216637075,
0.1108129472,
0.0040012714,
-0.0195554737,
-0.4277798831,
-0.5958427191,
0.0431157388,
0.1574825644,
0.0637516677,
0.6245172024,
-0.0001135277,
0.0324739479,
0.0918037668,
0.0076800226,
0.1037893221,
0.2231527567,
-0.0752141625,
-0.0984354764,
-0.3211757839,
0.1018794775,
-0.0669308603,
-0.2654211223,
0.0340345539,
0.095283173,
0.1603114009,
0.4760963321,
0.1728434414,
0.1097186953,
0.4331765175,
-0.2518748045,
0.1098324656,
0.0231166966,
-0.1637527794,
0.4410643578,
0.2549797893,
-0.1071377322,
-0.2142675519,
0.2191622406,
-0.2229279131,
-0.0734716877,
0.3285545111,
-0.2155787945,
-0.0713763237,
-0.3233066797,
0.0722046196,
0.4039890766,
0.5055611134,
0.0211691856,
-0.2014103085,
-0.0640617013,
0.2700837851,
-0.3299200833,
0.0773497373,
0.2904391885,
0.1693695486,
0.3677118421,
-0.107565634,
-0.5588872433,
-0.3503519297,
0.1444010437,
-0.4597339034,
0.1770741791,
-0.1108837053,
0.1069492921,
-0.1619342268,
-0.0779800266,
0.3568909466,
0.0237400532,
-0.1019833609,
-0.0921626538,
0.0102104861,
-0.0327418782,
-0.0083991811,
0.4019443691,
0.2268912792,
0.165736407,
0.0032815374,
-0.0329900049,
-0.3733277023,
-0.054013215,
0.0029530202,
-0.0952603295,
-0.4759806693,
0.2293429077,
0.4313376844,
-0.0084120184,
0.0248155724,
0.0772271678,
-0.3248448074,
0.0589619242,
-0.4488993585,
-0.3561588824,
0.3443091512,
-0.1766787022,
-0.3023038208,
0.16459243,
-0.0744395256,
0.2488563806,
0.2920158207,
0.2617837787,
-0.1667208672,
-0.0031151923,
-0.2969335914,
0.0028285075,
-0.0549820252,
-0.2957243323,
-0.20066984,
0.1562405974,
0.2203496099,
0.0987421721,
0.252496779,
-0.2840020955,
0.1938241124,
-0.1268089414,
0.2541540265,
-0.0936054364,
-0.0281075016,
-0.0139492322,
-0.0048534288,
0.2512732148,
-0.1470047235,
0.0276058596,
-0.072496295,
-0.2649424672,
-0.0963484347,
0.1644976139,
-0.2940461934,
-0.4530950785,
-0.3750929534,
0.1315336078,
-0.5852465034,
-0.2609283626,
-0.2311489731,
0.0342382602,
-0.2674628496,
-0.2677254379,
-0.0196546838,
0.0002833214,
0.1117434427,
-0.1783110946,
0.1738471389,
0.3983829916,
-0.2524577975,
0.2174806446,
-0.1196762025,
0.1736465245,
-0.265391469,
0.1749518961,
-0.2341584414,
0.3533547223,
-0.3386547267,
-0.0106325876,
0.3233026266,
-0.4396128953,
-0.8709554076,
-0.2259235829,
-0.2741075456,
-0.2810182869,
0.149926737,
0.088252157,
0.0760725364,
-0.1494508088,
-0.0692076087,
0.0933588445,
0.2005817443,
-0.0507624596,
-0.089803867,
-0.1589644104,
0.1229165047,
0.2841273248,
0.4071845114,
0.0657666773,
0.1622777581,
0.2830612361,
0.2915273309,
0.1370211691,
-0.0607761443,
0.1063784882,
0.5180166364,
-0.0442385413,
0.0308513436,
-0.2150007486,
0.0411926359,
0.0508294366,
0.1926495284,
-0.0149826147,
0.0132468641,
-0.1840862781,
-0.4935233593,
-0.0885170475,
-0.2331612408,
-0.1838645488,
0.1350663751,
-0.1156956926,
-0.080494225,
0.1761967689,
-0.1997579038,
0.149124369,
0.0848651901,
0.0859771445,
-0.2589829266,
0.2853738964,
-0.0213509798,
0.1732619107,
-0.0178721324,
0.2827548385,
0.1061805636,
-0.1257333755,
0.1347451955,
0.14821738,
-0.200848192,
0.2596471906,
0.3046859503,
0.2495486438,
0.414992094,
-0.5091162324,
0.1889826506,
0.029107539,
0.0391988233,
0.0753052607,
-0.1106036082,
0.0642097369,
-0.1751029044,
-0.2741690278,
-0.1958424598,
0.3262774348,
0.1478824615,
0.0139509328,
-0.0847115144,
0.0390165485,
0.1925184429,
0.2225350142,
0.0656939223,
0.0064037032,
-0.1911017299,
0.2269553691,
0.4016898572,
-0.1566621065,
0.0744488835,
-0.0951697379,
-0.4489755929,
0.1590783298,
0.2787641287,
0.0408388302,
0.3788046241,
0.1357001215,
0.0766400695,
0.1239101589,
0.2858330309,
-0.22737813,
0.1964515597,
0.0283146668,
-0.1896989346,
0.1434176266,
0.1467466652,
-0.1330521107,
-0.4281603098,
-0.3014097512,
0.2235092223,
0.2983627319,
-0.2560966909,
-0.1182346568,
-0.1380306184,
0.0139808329,
-0.3417087793,
-0.1776933521,
-0.3156516254,
-0.2239896208,
0.1227998361,
0.5403930545,
0.1340972036,
-0.1617952585,
-0.5449892879,
0.3747397959,
-0.0524257757,
0.2101702243,
-0.1062800139,
-0.0033264193,
-0.1010918915,
0.1224830896,
0.425806433,
-0.0992939249,
0.26385957,
0.0561173074,
0.0868383124,
-0.5259376764,
-0.3375796378,
0.0412320755,
-0.2400784194,
0.1404086351,
-0.0343149826,
0.1057696119,
0.0297932439,
0.2019049376,
-0.0703269243,
-0.0859305412,
0.1189468578,
0.0557095744,
-0.0311126765,
-0.1108182222,
0.091160439,
-0.2029426843,
-0.3679437935,
-0.3289233446,
0.508105576,
0.0625530854,
-0.0662869737,
-0.1394302696,
-0.1177102327,
0.1370381564,
-0.0276447441,
-0.2235766649,
-0.2555424273,
-0.343819648,
0.4419540167,
-0.4067170322,
-0.4065268934,
0.2091522366,
0.2394952327,
0.0408753753,
-0.1835995466,
-0.7073447108,
-0.0193407219,
0.0277063176,
0.1718493998,
0.0062957173,
-0.1744506061,
-0.006077928,
-0.1211084649,
0.0454081744,
0.0000053668,
0.1856639981,
-0.1915773153,
0.0951847434,
0.2314626127,
-0.069115065,
-0.1306796819,
-0.0501873121,
0.4450891018,
0.2918937206,
0.2304238677,
0.2915856242,
-0.1806762516,
0.4566562474,
0.0771472678,
-0.4133323729,
0.3081809878,
0.1524159163,
0.0144301904,
0.1100958884,
0.0711130351,
0.427718401,
-0.0310381763,
-0.0281248596,
-0.1394833922,
-0.1836082786,
-0.154203862,
-0.2057660967,
-0.1504761875,
-0.1040817499,
0.0074845604,
-0.1839083284,
-0.5227752924,
0.1787064373,
0.1081821546,
0.1445904374,
0.0835024565,
-0.2610067725,
-0.137997672,
-0.5245214701,
0.19158189,
-0.3934320211,
0.065089114,
-0.0338759758,
0.1180024073,
0.1965138763,
0.0372109339,
0.6946869493,
0.0926468074,
-0.0833975077,
-0.1389404684,
0.2159809619,
-0.2033985704,
-0.1885856241,
-0.109925136,
0.3034231663,
-0.159358725,
0.2352577299,
-0.1405467093,
0.1076619029,
0.3717751801,
0.1116707101,
-0.155341059,
0.0698062778,
-0.0362683348,
-0.4179829061,
0.0380742699,
-0.1552533209,
0.2311676443,
0.1752945036,
-0.2855861187,
-0.0082203262,
-0.1409815848,
0.0408649966,
0.4008918703,
0.0759291574,
0.1886671931,
0.1137442291,
0.1237307638,
0.2203357816,
0.0209548343,
0.3087659478,
0.6771796942,
0.2705574036,
-0.283782959,
0.0764166191,
-0.1121035963,
0.0543527529,
0.4434892833,
-0.0846703276,
0.0817518905,
0.1641468704,
0.1616080403,
-0.3852699101,
0.369409591,
0.3742758632,
-0.1107651293,
-0.5664904118,
-0.1586859375,
0.5217396021,
0.1074040011,
-0.1175425574,
0.3023865223,
0.2747305036,
-0.1892457157,
0.0257659666,
-0.3203625381,
0.9440203309,
0.0757860541,
0.2275138646,
0.1448459178,
0.2845266759,
0.5382251143,
-0.3203983307,
0.2025224715,
-0.3197068572,
-0.3832743764,
-0.3004180491,
-0.1135954857,
0.0257486887,
-0.1769771427,
-0.0142665338,
0.2467109859,
0.305935055,
0.5079946518,
-0.2064080536,
0.4838531613,
-0.2654925883,
0.1206610724,
-0.0931662843,
0.1110868752,
-0.1408587843,
0.4732196033,
-0.1081176996,
-0.2435221374,
-0.3040399849,
-0.0477388948,
-0.6280497909,
-0.1441809237,
-0.0903810114,
0.2701698244,
-0.10589239,
-0.2813769877,
0.134306252,
0.1373605281,
0.1168903336,
0.2293868065,
-0.5614845753,
0.1912494302,
-0.1051764414,
-0.3858596385,
0.1604482979,
-0.0606348589,
0.0676716417,
-0.0982445106,
-0.2300371379,
0.3150574863,
0.2796334326,
-0.0201316848,
-0.5052195191,
0.1169161052,
0.3749631643,
-0.1832414865,
0.0022369251,
-0.0127961803,
-0.0144287637,
-0.1849115789,
0.1235423759,
0.2762911618,
-0.1312784404,
-0.0023373102,
0.1975136548,
-0.0685144961,
-0.0822557434,
0.3016733229,
0.0864417627,
-0.2121959925,
0.568205297,
-0.1187742054,
0.0813827664,
-0.1148044318,
0.3393159509,
0.2724938989,
-0.4732506871,
-0.069224,
-0.1165299639,
0.0316164047,
0.1844620258,
-0.0585177131,
0.2658241391,
-0.2343405634,
-0.2252908647,
-0.1504285336,
-0.2886781991,
0.1347648799,
0.0292647779,
0.2472795397,
-0.0616562702,
0.0453503989,
-0.241778776,
-0.1898724735,
-0.2655977607,
0.3695758283,
-0.0740878284,
-0.252859056,
-0.1531429589,
0.0950074866,
-0.1531444937,
-0.1488317698,
0.0392671302,
0.1147622839,
-0.1449795514,
-0.1582923681,
-0.081838727,
0.1551218927,
0.1311379373,
-0.1622062176,
-0.2285992652,
-0.1969518661,
-0.022074867,
0.2020899653,
0.2784758806,
0.1991008073,
0.2410459071,
-0.239451021,
0.2128702104,
-0.1141575649,
0.1076466814,
0.2947225869,
0.1930790991,
0.1676901132,
0.2429881543,
0.2899016738,
0.1943370849,
-0.0021604944,
-0.1992357373,
0.0714085028,
-0.0919777974,
0.1107418463,
0.7033231854,
-0.1341295242,
0.1845642775,
0.2143474519,
0.2560860217,
0.5507300496,
-0.3225910068,
0.1212770119,
0.3957205713,
0.1579990536,
-0.4248174131,
-0.2177961916,
0.3747658432,
0.0957059562,
-0.006308889,
0.0613412857,
0.1391431242,
0.209892571,
-0.4991375804,
0.2571229935,
0.440600425,
0.1244686916,
0.2998449802,
0.1904140711,
-0.2722383738,
-0.0503692366,
0.2111252844,
0.150349915,
0.114300102,
0.7677796483,
-0.0552303381,
0.4288974702,
-0.0023525117,
-0.194229424,
0.490149498,
-0.1778773814,
-0.1021429971,
-0.1287436932,
-0.1576109827,
0.1260508299,
0.0254982077,
0.2680869102,
-0.4460827708,
-0.1044064537,
-0.5055452585,
0.2033032775,
-0.0900790319,
0.1646182686,
0.1229059398,
-0.2078922093,
0.1729579568,
0.0299891531,
-0.0175694712,
-0.2800758481,
0.1128555238,
0.1987902969,
-0.4142377079,
-0.1172989011,
-0.2407944202,
0.0662295073,
0.4120368659,
-0.0727257952,
-0.1340332478,
0.0044774557,
-0.052378919,
0.0987109244,
0.4083206058,
0.3864868581,
-0.0723154917,
0.0481308177,
-0.0031779695,
0.1132521033,
-0.0977769643,
-0.094833456,
0.2412935942,
0.1809628308,
0.0663818344,
0.0870542675,
0.1250804514,
-0.0207022447,
0.1187053844,
-0.0446305834,
0.1107152626,
-0.2734479308,
0.0065742633,
-0.3220731914,
-0.3563789129,
-0.2506949902,
-0.3050197363,
-0.3007872701,
-0.049609486,
0.4362025857,
0.012427032,
0.1904512644,
-0.2891162038,
0.0471473858,
-0.0609383397,
0.4355835319,
0.3634759188,
0.1925595254,
-0.1477067918,
-0.0289142672,
-0.577750504,
0.4510143399,
-0.1175086498,
0.1545934081,
-0.0137808518,
-0.2638591528,
0.0123152649,
-0.0092491992,
-0.1724375039,
0.0001218154,
-0.0148380632,
0.197715804,
-0.2023783028,
-0.0364050567,
0.2707078159,
0.2182058394,
-0.1027024388,
-0.0274832863,
0.5621615648,
0.0387722366,
0.0010913513,
-0.060582839,
0.1414515078,
-0.1759781241,
-0.0362608656,
0.2705140114,
0.0084707718,
0.2449366301,
0.1112760305,
-0.0522340462,
-0.6938106418,
-0.3624879122,
-0.2600009739,
0.2961319983,
0.029263543,
0.1377324462,
0.0193654243,
-0.3553062975,
-0.066959098,
0.2212535739,
-0.1390904486,
0.1616661549,
-0.1621933132,
-0.138033241,
-0.3129091859,
0.0938575044,
0.2605369389,
-0.0816110075,
-0.1365680397,
-0.1015143171,
-0.0088427439,
-0.280721277,
0.6210668683,
-0.4469187558,
-0.0003240691,
-0.0946558714,
0.2639458477,
0.3438008726,
-0.1066352054,
-0.5415674448,
0.0920390561,
0.2989144325,
-0.1535086632,
0.0389719941,
0.3321882486,
-0.111957334,
0.1225309819,
0.0585813969,
0.786319077,
-0.1593443453,
-0.4898270965,
0.2189731747,
0.0522914194
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | Hi @pietrolesci, thanks for reporting.
Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**.
To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**.
However, for the moment `push_to_hub` does not support specifying different configurations. IMHO, we should implement this. | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 69 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
Hi @pietrolesci, thanks for reporting.
Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**.
To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**.
However, for the moment `push_to_hub` does not support specifying different configurations. IMHO, we should implement this. | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | Hi @albertvillanova,
Thanks a lot for your reply! I got it now. The strange thing for me was to have it correctly working (i.e., DatasetDict with different features in some datasets) locally and not on the Hub. It would be great to have configuration supported by `push_to_hub`. Personally, this latter functionality allowed me to iterate rather quickly on dataset curation.
Again, thanks for your time @albertvillanova!
Best,
Pietro | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 68 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
Hi @albertvillanova,
Thanks a lot for your reply! I got it now. The strange thing for me was to have it correctly working (i.e., DatasetDict with different features in some datasets) locally and not on the Hub. It would be great to have configuration supported by `push_to_hub`. Personally, this latter functionality allowed me to iterate rather quickly on dataset curation.
Again, thanks for your time @albertvillanova!
Best,
Pietro | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | Hi! Yes, we should override `DatasetDict.__setitem__` and throw an error if features dictionaries are different. `DatasetDict` is a subclass of `dict`, so `DatasetDict.{update/setdefault}` need to be overridden as well. We could avoid this by subclassing `UserDict`, but then we would get the name collision - `DatasetDict.data` vs. `UserDict.data`. This makes me think we should rename the `data` attribute of `DatasetDict`/`Dataset` for easier dict subclassing (would also simplify https://github.com/huggingface/datasets/pull/3997) and to follow good Python practices. Another option is to have a custom `UserDict` class in `py_utils`, but it can be hard to keep this class consistent with the built-in `UserDict`.
@albertvillanova @lhoestq wdyt? | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 102 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
Hi! Yes, we should override `DatasetDict.__setitem__` and throw an error if features dictionaries are different. `DatasetDict` is a subclass of `dict`, so `DatasetDict.{update/setdefault}` need to be overridden as well. We could avoid this by subclassing `UserDict`, but then we would get the name collision - `DatasetDict.data` vs. `UserDict.data`. This makes me think we should rename the `data` attribute of `DatasetDict`/`Dataset` for easier dict subclassing (would also simplify https://github.com/huggingface/datasets/pull/3997) and to follow good Python practices. Another option is to have a custom `UserDict` class in `py_utils`, but it can be hard to keep this class consistent with the built-in `UserDict`.
@albertvillanova @lhoestq wdyt? | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4211 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features | I would keep things simple and keep subclassing dict. Regarding the features check, I guess this can be done only for `push_to_hub` right ? It is the only function right now that requires the underlying datasets to be splits (e.g. train/test) and have the same features.
Note that later you will be able to push datasets with different features as different dataset **configurations** (similarly to the [GLUE subsets](https://huggingface.co/datasets/glue) for example). We will work on this soon | Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
``` | 76 | DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi there,
I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same.
Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli).
In short:
I have 3 feature mapping
```python
Tri_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]),
}
)
Ent_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]),
}
)
Con_features = Features(
{
"idx": Value(dtype="int64"),
"premise": Value(dtype="string"),
"hypothesis": Value(dtype="string"),
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]),
}
)
```
Then I create different datasets
```python
dataset_splits = {}
for split in df["split"].unique():
print(split)
df_split = df.loc[df["split"] == split].copy()
if split in Tri_dataset:
df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2})
ds = Dataset.from_pandas(df_split, features=Tri_features)
elif split in Ent_bin_dataset:
df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1})
ds = Dataset.from_pandas(df_split, features=Ent_features)
elif split in Con_bin_dataset:
df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1})
ds = Dataset.from_pandas(df_split, features=Con_features)
else:
print("ERROR:", split)
dataset_splits[split] = ds
datasets = DatasetDict(dataset_splits)
```
I then push to hub
```python
datasets.push_to_hub("pietrolesci/robust_nli", token="<token>")
```
Finally, I load it from the hub
```python
datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli")
```
And I get that
```python
datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features
```
since
```python
"label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"])
```
gets remapped to
```python
"label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"])
```
I would keep things simple and keep subclassing dict. Regarding the features check, I guess this can be done only for `push_to_hub` right ? It is the only function right now that requires the underlying datasets to be splits (e.g. train/test) and have the same features.
Note that later you will be able to push datasets with different features as different dataset **configurations** (similarly to the [GLUE subsets](https://huggingface.co/datasets/glue) for example). We will work on this soon | [
0.0950680673,
-0.5818799138,
-0.0149743548,
0.3464848101,
-0.0062353625,
-0.086014092,
0.3061930239,
0.1616925895,
0.3734932244,
-0.0174942464,
-0.2923354506,
0.6108020544,
0.1393585652,
0.3625233173,
0.0080397101,
0.1103166118,
0.2680215836,
0.1151718944,
-0.0468163006,
-0.3221379519,
-0.0480113216,
0.1760944128,
-0.0420507118,
0.0004377237,
-0.4595313966,
0.1891001463,
-0.1053518578,
0.2211643904,
0.1709446162,
-0.2980315089,
0.3451831639,
0.4599791467,
-0.0677099228,
0.1324415505,
-0.0001177119,
0.0637088865,
-0.1418782622,
-0.17928271,
-0.0350894071,
-0.098700963,
-0.1220571846,
-0.2516451776,
0.1771093458,
-0.4556095004,
-0.1078763083,
0.1786478162,
-0.3233380914,
-0.2246275693,
0.1941286325,
-0.2187995613,
0.1648913473,
0.2112070769,
-0.3408596814,
0.0299005155,
0.0158918984,
0.3173235953,
-0.2182468921,
0.0699780285,
0.1846176684,
0.0805530995,
-0.1592502296,
0.3277526498,
-0.1843241602,
0.1742788106,
0.2100188583,
-0.1052963883,
0.0728197247,
-0.1169546992,
0.0000658964,
0.0569470264,
-0.0150522878,
-0.2364818454,
-0.1893728375,
-0.4711377621,
-0.2746147513,
-0.0072100726,
0.0249510091,
0.001896312,
0.0337058157,
0.0492812805,
-0.1459965557,
-0.3572990596,
0.0608174279,
-0.0616162196,
-0.3145311773,
0.3043145835,
-0.0682179034,
0.284463048,
-0.0968516767,
0.0193360727,
0.2213823199,
-0.3127903938,
0.0582898743,
-0.0319215506,
-0.1847194284,
-0.0307731591,
0.1059764847,
-0.0143929822,
0.0682804957,
0.0231969245,
0.0228289999,
0.2286942005,
-0.6147760153,
-0.0110499561,
0.2737037539,
0.0995998457,
0.2922463715,
0.3191692233,
0.0180620383,
0.1209517568,
-0.5683785677,
0.1273586154,
0.165853858,
-0.0405728668,
0.2833562195,
0.0503730625,
0.4986459017,
-0.1646451801,
-0.2798305154,
0.0045297635,
-0.106113866,
0.0543719269,
0.0605051853,
0.0420502275,
0.0791091472,
0.313285768,
-0.2984767854,
0.1700925529,
-0.3618090153,
0.1041353643,
-0.3241876066,
-0.1115144193,
-0.1847055703,
0.0400842354,
0.3358695209,
-0.2438240349,
0.0909150615,
0.1688987315,
-0.4187852442,
-0.3341597617,
-0.3554285169,
-0.0004218915,
0.279772073,
-0.101744175,
-0.0449194014,
0.2712637186,
0.2442947626,
-0.0542509444,
-0.2768010199,
0.0164182857,
-0.32790941,
-0.0528313406,
0.3681181669,
0.140391618,
-0.2818254828,
0.0734374598,
-0.1426200122,
0.2256438434,
-0.1008983105,
0.0867141113,
0.0625260547,
-0.070114769,
-0.3941499293,
-0.2160442173,
-0.0182466824,
0.5277423859,
-0.2456432283,
-0.1373989731,
0.3270342648,
-0.0284314584,
-0.0648525804,
0.2615801394,
-0.2176378518,
0.0899461508,
-0.1311514825,
0.0036384638,
0.2944133282,
-0.241308108,
-0.6630863547,
0.0600778274,
-0.1653927863,
0.3494148254,
-0.2106210291,
0.3240299225,
0.2456364632,
0.0529129915,
0.1745781749,
0.3335517943,
0.1567418426,
0.1538953632,
-0.214538008,
-0.1934229434,
0.2332875878,
-0.1404781193,
-0.0063986024,
0.0842074752,
0.2654313445,
0.1956251711,
0.3405702114,
0.0706074312,
0.1452520937,
0.0385922454,
0.1122401878,
0.1709397137,
0.195453912,
0.0001046561,
-0.5417534113,
0.3672065735,
-0.0743361041,
-0.2584416568,
-0.1426011771,
-0.145914048,
-0.4099495709,
-0.1425902098,
-0.4940243661,
-0.0195198432,
0.0976450518,
0.0289591141,
-0.1018150821,
0.1075169668,
-0.0401516445,
0.4363601208,
0.044343546,
0.0243969038,
-0.3871605694,
0.7273919582,
0.1485185325,
-0.0561602451,
-0.0032061373,
0.3952327669,
0.2842456996,
-0.2556376159,
-0.1869362742,
-0.0746177658,
0.2594532073,
0.436411798,
0.0387044884,
-0.0066559203,
0.3411523104,
-0.0777531713,
0.2727324963,
0.0895600393,
0.1012846008,
-0.2605465353,
-0.3118344843,
0.424239397,
-0.1822202802,
0.1066817418,
-0.1213161349,
0.0294644628,
0.1713083535,
-0.1744870394,
0.0045007914,
-0.4727229178,
-0.2754196525,
0.0009053302,
0.120318234,
0.2523768842,
-0.0175921153,
0.1796109229,
0.5032579899,
0.2048027068,
-0.0290681329,
-0.1707737595,
-0.3502542078,
0.0041146316,
0.0609176271,
0.0923898742,
0.2067260444,
-0.0037564642,
-0.0772854388,
0.109972246,
-0.126711756,
-0.0717703849,
-0.0433661044,
-0.1432836503,
0.0966183692,
0.2602481842,
0.2619547248,
-0.0543881021,
-0.6132264733,
0.0556912571,
0.3455605805,
-0.0133637646,
-0.1395483911,
-0.0653960556,
-0.3397597373,
-0.0768868402,
-0.3288057745,
-0.4561465681,
-0.3137588799,
-0.2691441178,
-0.0024614062,
0.7002812624,
0.0106757339,
0.1589221209,
-0.0272341613,
0.1213158965,
-0.0088989688,
-0.2427311838,
0.1327541173,
-0.2306853384,
-0.0557280444,
-0.0423321836,
0.0837648511,
0.3336846232,
0.2694580853,
-0.0274256896,
0.1206452996,
-0.5092960596,
-0.1267872751,
-0.0119933877,
-0.1189781129,
-0.042528972,
-0.1129029095,
-0.0285165403,
-0.0612883978,
-0.0756630674,
0.2696448267,
-0.2165142298,
-0.1420682818,
-0.0472924225,
0.0666102245,
-0.171409294,
0.1955788881,
-0.4494319558,
-0.1357229203,
-0.2247967124,
0.157640934,
-0.0643364117,
0.1829789132,
0.2231731266,
-0.0807811469,
-0.2393407375,
0.2258687913,
-0.2346581966,
-0.3821237981,
0.1290913671,
-0.0027851686,
-0.0394539908,
-0.1888731271,
-0.1593683511,
-0.1744647771,
0.1327531934,
0.1103978083,
-0.4787458181,
-0.0742736608,
-0.269811213,
0.4028092623,
0.2504801154,
-0.0335566327,
0.3964939415,
0.128146559,
0.132608369,
-0.0827337056,
-0.3323234916,
0.247906372,
0.6320418119,
-0.1735194325,
-0.2274897546,
-0.0190889351,
-0.0867573172,
0.1867485642,
0.1488427967,
-0.0488717668,
0.6051712036,
0.1536334008,
0.1625968367,
-0.2353595495,
-0.4306308329,
-0.0722524375,
-0.0748171359,
-0.0577004254,
0.2817772627,
-0.0258868765,
-0.2112589031,
0.0631102845,
-0.4360710382,
0.1506540179,
-0.4569500685,
-0.241010502,
-0.3659280241,
-0.1050887704,
0.1823562235,
-0.0309350472,
-0.4290912151,
-0.1407387406,
0.0913144723,
-0.0356455445,
0.1540055871,
-0.0203001238,
-0.6295239925,
-0.1279316247,
-0.2321617901,
-0.0756418183,
0.1301861405,
0.2260336876,
0.0749454349,
0.055699449,
0.1388947368,
0.1397431791,
0.5114750266,
0.0095163723,
0.2708129287,
0.2364860624,
-0.1837983727,
-0.4808137119,
-0.3540259898,
0.0465467535,
0.426779896,
-0.2061131895,
0.8991658688,
0.0754342675,
-0.2108563632,
-0.1317287385,
0.2415241897,
-0.2803535163,
-0.1920575052,
-0.0048729316,
0.0084248492,
-0.3699399531,
0.0039063669,
-0.1487847865,
0.0002170467,
-0.1327578872,
-0.4204083383,
-0.1178868636,
-0.1760736108,
0.2212652117,
0.3561234474,
0.1965063512,
0.2987137437,
0.1476947367,
0.1919699609,
0.3841755092,
-0.2629866004,
0.7729689479,
0.030510826,
-0.1625703573,
-0.1959635466,
-0.0434821472,
-0.0393873639,
0.2961922884,
0.230470866,
0.1890601218,
-0.4041310549,
-0.1302331537,
-0.465665102,
0.1208395809,
0.1342728138,
-0.0487541519,
-0.3957085311,
-0.2122682184,
0.4780399501,
-0.1038723215,
-0.3312242329,
0.381852895,
-0.1824617833,
-0.2837473452,
0.5927190781,
-0.0784303546,
0.6941951513,
0.0010306868,
0.1020135581,
0.1637286991,
0.1072200388,
0.44573614,
0.1008984372,
-0.0567962639,
-0.4702634215,
-0.2401084006,
0.0488232635,
0.0626446232,
-0.1695892066,
0.0754004717,
-0.092257224,
0.2251339704,
0.0196797568,
0.2016504705,
-0.2018356472,
0.2156424373,
0.2561692894,
-0.1932555139,
-0.1841440797,
0.0997431278,
-0.0433477238,
0.3396388292,
-0.0310237817,
0.0495003536,
-0.1077930704,
-0.0043093911,
0.0875190496,
0.1346730441,
0.1301913708,
0.5092907548,
-0.0232419465,
0.0971642435,
-0.0816844702,
-0.128474474,
0.4338392317,
-0.091515325,
-0.0530229323,
-0.0495639406,
0.325825572,
-0.017803058,
-0.1086539328,
-0.1786848903,
0.1821916997,
0.218156755,
-0.4741460979,
-0.1673745811,
0.1764344126,
-0.3593784273,
-0.471195966,
0.053361766,
0.2224900573,
-0.4097928107,
-0.214590162,
0.0914777443,
-0.00265142,
-0.1512017101,
0.0785871968,
-0.2645253539,
-0.0162501726,
0.3844267428,
0.1286748648,
-0.4448886514,
0.0007177928,
0.3555176854,
0.3043012619,
0.0412248224,
0.3218723536,
-0.1850755215,
-0.0009803806,
-0.2141494155,
-0.0387387574,
0.0941980034,
-0.354552567,
0.0414595939,
-0.2801586688,
-0.1494091153,
0.2199317664,
0.4438208938,
0.0683293864,
0.2996069789,
0.0009846493,
-0.2165677249,
-0.1593233645,
-0.0043840613,
-0.0992505103,
0.345805645,
0.0916415453,
0.2404039204,
-0.1173042208,
0.5203128457,
-0.278762877,
0.2504071295,
0.0985094383,
0.3198120296,
-0.3182887733,
-0.1598252207,
-0.3909680843,
-0.1849664301,
0.0718372166,
-0.0288428441,
-0.1678706557,
-0.1904031038,
-0.2083636075,
0.1694651693,
0.1674512178,
0.0778068453,
-0.451510191,
-0.2735164165,
0.2452872097,
-0.3316919804,
0.3248008192,
0.651494205,
0.0232570972,
0.0562227815,
0.5371012092,
0.0632502437,
-0.021966299,
0.2612647414,
0.0536827669,
-0.0348969288,
0.0988742411,
0.0081218304,
-0.1294040233,
0.1176223084,
-0.3393938541,
0.0807081014,
0.1070588678,
0.1887220442,
0.1703011394,
-0.059922725,
0.0245599169,
0.2687556744,
0.1129041836,
0.1646705419,
-0.1153706014,
-0.3085023463,
0.0302263722,
0.2325204015,
-0.1687071174,
-0.4104084969,
0.7566382885,
0.0425591581,
0.1900649816,
0.2848900259,
0.5772430897,
-0.1406686008,
0.147886768,
0.0382318757,
0.5323241353,
-0.107888028,
0.4047444463,
0.2697120011,
0.0973068401,
-0.2189976126,
0.2478335947,
0.1455096006,
0.1816106737,
0.4400270581,
0.1939713806,
0.0244485084,
0.2845587432,
0.0720896795,
0.4172620475,
-0.0252616201,
-0.0628897399,
0.10486646,
-0.2750365734,
0.2027586997,
0.0119879153,
0.0079981731,
-0.3424533606,
-0.260531038,
-0.1544210911,
0.3084395826,
-0.2916769981,
-0.3251644373,
-0.1306426972,
-0.1686307788,
-0.2631806731,
0.0961992368,
-0.3659481704,
-0.0601078458,
0.4323916137,
-0.0038084958,
-0.2182587385,
0.0064996644,
0.0438869558,
0.2540252507,
0.4062713981,
-0.0232231002,
0.1179828346,
0.090263404,
-0.1274580657,
0.0154436417,
0.0913979411,
-0.0424864292,
0.3038787842,
-0.1400053799,
0.174065575,
0.270785898,
-0.0435310602,
-0.0327791646,
-0.0330935381,
-0.3947609067,
0.1191236675,
0.3757126033,
0.1388426572,
-0.0323626995,
-0.0293573216,
0.1743884832,
0.0458536334,
-0.1648015231,
0.4661773741,
0.0174197014,
-0.027507538,
0.0427779816,
-0.0030654659,
-0.2116800398,
-0.2779238224,
0.3712880313,
-0.2373943925,
0.4460168183,
-0.0956873149,
0.0796118602,
-0.2366585433,
0.371234566,
0.1805429608,
-0.2608047426,
-0.1586355716,
-0.0620333105,
-0.6452695727,
0.4140649736,
-0.1503862143,
-0.0916956142,
0.1873381585,
0.2454541177,
-0.0564330816,
-0.0166700408,
-0.3788853884,
0.1242234409,
-0.0591601953,
0.0098094493,
-0.2401360869,
-0.1214964688,
-0.0327074304,
-0.0333137289,
-0.0650218651,
-0.3487631083,
0.380092144,
0.0261319187,
0.0050030225,
0.0767499208,
0.0858563185,
0.1308989674,
0.0685434416,
0.0784846246,
0.1007965431,
0.2431459278,
-0.0259827171,
0.1433885694,
-0.3068067431,
-0.1598621458,
-0.2467747927,
-0.1682424694,
-0.0546641015,
0.4657409191,
0.0534423292,
0.139074564,
-0.0167437997,
0.1486172229,
0.262637496,
0.032216467,
0.0468716361,
0.1092389524,
-0.0895621255,
0.0967363343,
0.0090569789,
0.7228108644,
0.0388307422,
0.3496813178,
0.1571125984,
-0.4307048619,
0.3277838528,
-0.0389971323,
-0.5135701895,
0.0212820563,
0.3173384368,
0.1861610264,
-0.0772569105,
-0.1945966482,
-0.0576128066,
0.4295454323,
-0.2442879379,
-0.0474640951,
0.2996927798,
0.1470688432,
-0.1005225852,
-0.1213693097,
0.074974753,
0.2229496092,
-0.173902303,
0.3349334896,
-0.1689752936
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | Hi! Casting class labels from strings is currently not supported in the CSV loader, but you can get the same result with an additional map as follows:
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
```
@lhoestq IIRC, I suggested adding `cast_to_storage` to `ClassLabel` + `table_cast` to the packaged loaders if the `ClassLabel`/`Image`/`Audio` type is present in `features` to avoid this kind of error, but your concern was speed. IMO shouldn't be a problem if we do `table_cast` only when these features are present. | ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 134 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
Hi! Casting class labels from strings is currently not supported in the CSV loader, but you can get the same result with an additional map as follows:
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
```
@lhoestq IIRC, I suggested adding `cast_to_storage` to `ClassLabel` + `table_cast` to the packaged loaders if the `ClassLabel`/`Image`/`Audio` type is present in `features` to avoid this kind of error, but your concern was speed. IMO shouldn't be a problem if we do `table_cast` only when these features are present. | [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | @albertvillanova @mariosasko thank you, with that change now I get
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-9-eeb68eeb9bec>](https://localhost:8080/#) in <module>()
11 )
12 # You can make this part faster with num_proc=<some int>
---> 13 sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
14 sentences = sentences.shuffle()
8 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
2193 if processed_inputs is not None and not isinstance(processed_inputs, (Mapping, pa.Table)):
2194 raise TypeError(
-> 2195 f"Provided `function` which is applied to all elements of table returns a variable of type {type(processed_inputs)}. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects."
2196 )
2197 elif isinstance(indices, list) and isinstance(processed_inputs, Mapping):
TypeError: Provided `function` which is applied to all elements of table returns a variable of type <class 'int'>. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects.
```
the error is raised by [this](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L2221)
```
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
``` | ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 187 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
@albertvillanova @mariosasko thank you, with that change now I get
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-9-eeb68eeb9bec>](https://localhost:8080/#) in <module>()
11 )
12 # You can make this part faster with num_proc=<some int>
---> 13 sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features)
14 sentences = sentences.shuffle()
8 frames
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
2193 if processed_inputs is not None and not isinstance(processed_inputs, (Mapping, pa.Table)):
2194 raise TypeError(
-> 2195 f"Provided `function` which is applied to all elements of table returns a variable of type {type(processed_inputs)}. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects."
2196 )
2197 elif isinstance(indices, list) and isinstance(processed_inputs, Mapping):
TypeError: Provided `function` which is applied to all elements of table returns a variable of type <class 'int'>. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects.
```
the error is raised by [this](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L2221)
```
[/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices)
``` | [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | @mariosasko changed it like
```python
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
```
to avoid the above errorr. | ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 26 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
@mariosasko changed it like
```python
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
```
to avoid the above errorr. | [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4210 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' | Any update on this? Is this correct ?
> @mariosasko changed it like
>
> ```python
> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
> ```
>
> to avoid the above errorr.
| ### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
``` | 41 | TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
### System Info
```shell
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.10.0+cu111 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
### Who can help?
@LysandreJik
### Information
- [ ] The official example scripts
- [X] My own modified scripts
### Tasks
- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)
### Reproduction
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
features = features
```
ERROR:
```
ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None)
Value(dtype='string', id=None)
Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39
Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519...
Downloading data files: 100%
2/2 [00:18<00:00, 8.06s/it]
Downloading data: 100%
391M/391M [00:13<00:00, 35.3MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 36.5MB/s]
Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
ValueError: invalid literal for int() with base 10: 'cmn'
```
while loading without `features` it loads without errors
```
sentences = load_dataset("loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text']
)
```
but the `label` col seems to be wrong (without the `ClassLabel` object):
```
sentences['train'].features
{'label': Value(dtype='string', id=None),
'text': Value(dtype='string', id=None)}
```
The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences
Dataset format is:
```
ces Nechci vΔdΔt, co je tam uvnitΕ.
ces Kdo o tom chce slyΕ‘et?
deu Tom sagte, er fΓΌhle sich nicht wohl.
ber Mel-iyi-d anida-t tura ?
hun Gondom lesz rΓ‘ rΓΆgtΓΆn.
ber Mel-iyi-d anida-tt tura ?
deu Ich will dich nicht reden hΓΆren.
```
### Expected behavior
```shell
correctly load train and test files.
```
Any update on this? Is this correct ?
> @mariosasko changed it like
>
> ```python
> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
> ```
>
> to avoid the above errorr.
| [
-0.2058740258,
-0.5463367105,
-0.1671127826,
0.1710505188,
0.5628308058,
-0.0438255742,
0.3648130894,
0.4633278251,
0.3307608366,
0.1103612408,
-0.0379637405,
0.1857534945,
-0.1733210981,
0.0352142192,
-0.091168195,
-0.2792181075,
-0.0311877429,
0.0663471445,
-0.4036820829,
-0.126438126,
-0.1411067843,
0.0901830345,
-0.1253166944,
-0.083917968,
0.0333534107,
-0.0372173861,
0.3594253957,
-0.090459004,
-0.2028202862,
-0.0035617342,
0.1837964803,
-0.1603972316,
0.0774048492,
0.5127800703,
-0.0001060324,
0.2324672043,
0.0686569065,
-0.1796947569,
0.0101911742,
-0.0085518556,
0.1950659454,
-0.0376990773,
-0.090623863,
-0.4102005363,
-0.2619461119,
-0.2810545862,
-0.0734773278,
-0.3756055236,
0.5350925922,
0.4882688224,
0.2923410535,
0.5072133541,
0.3127987981,
-0.1825513244,
-0.0697038025,
0.237701416,
-0.2120956928,
0.0588576198,
0.1173160076,
0.4100356102,
0.0944552422,
0.1900083423,
-0.2708679438,
-0.0196632762,
0.1261900961,
-0.1607710719,
0.3450274169,
-0.2435237318,
0.0032066973,
0.0924772322,
0.1669000089,
-0.1516173333,
-0.2259166092,
0.0961832628,
-0.1749451309,
-0.0028387771,
-0.1610799432,
0.0710613355,
-0.0282997526,
0.1106591821,
-0.314753145,
0.1835265756,
-0.2631472647,
0.1348431557,
0.088858299,
0.3703709543,
-0.1138310134,
0.1015015915,
0.0988846868,
-0.2782007158,
0.35239923,
0.0122115407,
0.1391105354,
0.0014937433,
-0.068682842,
-0.215441972,
-0.0284981187,
-0.7406471968,
-0.0410460532,
-0.3243362904,
0.0097991917,
0.098226741,
0.0923341289,
0.0346296765,
0.0292108767,
0.2549786866,
-0.3426688612,
0.2487802356,
-0.0297389403,
0.0766860396,
-0.0403293446,
0.0114990463,
0.0699252635,
-0.0296102986,
-0.0832985938,
0.3470889628,
0.3344523311,
-0.0023752635,
-0.3205922842,
0.10790167,
-0.074732922,
0.1737370342,
0.3531581461,
0.3686737418,
-0.0349187218,
0.1612579376,
0.2112628818,
0.1711637229,
-0.1733183563,
-0.0921902359,
-0.2852333486,
0.302256465,
-0.1260493547,
-0.3701906502,
0.080184184,
0.5224432945,
0.1388194263,
-0.0118567925,
0.2376153916,
-0.2264205813,
0.0054611112,
-0.1919454485,
0.3753762841,
0.3932103813,
-0.0750773624,
-0.0608287081,
0.3566327393,
-0.177888155,
-0.1148369163,
0.2737701237,
-0.0771973878,
-0.0566444471,
-0.2002668828,
0.3057541549,
-0.1165436581,
-0.1646443456,
-0.0140976142,
-0.0840704739,
0.3025589883,
-0.1818978935,
0.1146316677,
-0.2176366001,
0.0889429078,
-0.2066797912,
0.1817540824,
-0.0528604835,
-0.1606626213,
0.0131154712,
-0.033482682,
0.0558959655,
0.2024392933,
0.3690714836,
-0.1266654134,
0.2325121909,
-0.088824071,
-0.0224506278,
0.2029462755,
-0.2884684801,
-0.1297895908,
0.0074136183,
0.0590894818,
-0.2027356774,
0.2180359811,
0.1754236072,
0.2898340225,
-0.0512968525,
-0.1339320242,
0.4632379413,
-0.0551117361,
0.3448135555,
-0.2171591073,
-0.2941993475,
0.1106601208,
0.2664009333,
0.3228002787,
0.1017186344,
-0.1292035133,
0.2581640482,
0.1922537684,
-0.2555150986,
0.0323601551,
0.1285437942,
0.4403906465,
-0.1441498101,
-0.0167190842,
-0.078996785,
-0.4179879129,
-0.0809908584,
-0.0656596422,
0.0389800183,
-0.1527919173,
-0.003254893,
-0.2663970292,
-0.036185801,
-0.1198848188,
0.0820543468,
0.2481205612,
-0.0461977609,
0.1409968138,
-0.2241833806,
-0.0774630904,
-0.1413867325,
0.0189327076,
-0.0118386941,
-0.2402744889,
0.334959358,
-0.3069896996,
-0.3138903081,
-0.0889958739,
0.1293852478,
0.3108738065,
-0.324960053,
-0.1669058204,
0.104465954,
0.0288777221,
-0.0095983734,
-0.2458525747,
0.3111941814,
0.1576760113,
-0.2568743229,
0.0848634392,
0.5069621205,
0.0768141001,
0.057877481,
-0.0941442996,
0.3892390728,
-0.0653590336,
-0.0606070273,
-0.0440323837,
0.0423681475,
0.3492108881,
-0.2085426003,
0.143456921,
-0.1895839423,
0.0092000989,
0.0836743042,
0.0372310765,
-0.1846771538,
-0.1697526574,
0.0207851101,
0.3995735049,
0.0888883919,
0.1618841439,
-0.1021926105,
0.1605548859,
0.0437750556,
-0.1253235042,
0.0097974399,
0.2098453343,
0.1149164438,
-0.110515222,
0.0311289635,
0.1041246578,
-0.0804076344,
0.184988752,
0.0848180279,
0.3341631889,
0.2294551581,
-0.1645934731,
0.0132807698,
-0.2779313028,
-0.2119697481,
0.2338669896,
0.3161315024,
-0.12941432,
0.1874316037,
-0.1395235509,
-0.2374024391,
-0.2972432673,
-0.0747515485,
0.0831683427,
-0.2865043581,
-0.1216835454,
0.2766495347,
-0.5804017782,
0.2881935835,
0.3099964857,
-0.0144273182,
0.3036273122,
-0.1909683645,
-0.2822850943,
0.0614971034,
0.2488302737,
0.1270565391,
0.2032082379,
-0.0801722482,
0.2827915549,
-0.0116741583,
0.1376187801,
-0.0808064789,
-0.5144478679,
0.0369382054,
-0.1006680503,
-0.0550441705,
-0.0398277864,
0.32627967,
-0.022390401,
-0.5168437958,
0.1564423442,
-0.6201517582,
-0.0861280113,
0.2405914813,
0.001410278,
-0.2774058282,
-0.2709531486,
-0.3688299358,
-0.2794176936,
-0.4907096028,
-0.0452877507,
0.0243276246,
0.0782518163,
0.2918908894,
0.3806444407,
0.2323734909,
0.3078478873,
0.1499225944,
-0.1940439641,
0.1753279418,
0.228244096,
-0.1901041865,
-0.3289215863,
-0.2492036223,
-0.1566482335,
0.2027225047,
-0.0955780372,
-0.1877944767,
-0.1908487082,
-0.3487737179,
-0.0973877534,
-0.1117501482,
-0.0723515525,
0.3219906092,
-0.0171686336,
-0.1570612937,
-0.0663261712,
0.0067101759,
0.0078939386,
0.1808440983,
-0.033370778,
-0.152741611,
0.3413669467,
0.1094756797,
0.2472997457,
0.1122871935,
-0.3196173608,
0.2660658658,
-0.0209107231,
0.2227959186,
-0.1998184621,
-0.2721836269,
0.0285926852,
0.0224591214,
-0.2521358728,
-0.0704896748,
-0.4447209835,
-0.1918935776,
-0.0409663171,
0.173457548,
-0.3277068436,
-0.2449155748,
0.1469759792,
0.2143327296,
-0.0807265341,
-0.0536791906,
0.1177532896,
-0.0976106003,
0.033866886,
0.1228638962,
0.1903547794,
-0.1218344495,
-0.0363598615,
-0.1323759258,
-0.2206008583,
-0.0121812411,
0.267601788,
-0.067018114,
0.4828374684,
-0.1378531754,
-0.1913564652,
-0.040117193,
-0.0191539321,
0.4925307035,
0.0867030099,
0.2432990372,
0.03757089,
0.0139984991,
-0.2272453457,
-0.184033528,
-0.3596010506,
-0.0230107233,
0.377917856,
0.4538722336,
-0.3448338509,
-0.1600858718,
0.3421184421,
0.087624982,
-0.0907659978,
0.0042549288,
-0.1941213608,
-0.4743171632,
-0.4139519036,
0.1027451828,
0.530356884,
0.4118692577,
-0.0809417441,
0.0520244762,
-0.1923602819,
-0.119872734,
0.117798306,
-0.0909959078,
0.2251261175,
0.0504561104,
0.1399694234,
-0.1704459786,
-0.2764976621,
0.0247395914,
0.3095152378,
0.1366020143,
-0.2345755398,
0.0617250614,
0.1292724609,
0.0209705103,
0.1469891071,
-0.0102297487,
-0.0659178495,
0.0627230704,
0.3820601702,
-0.0446833372,
0.053443417,
0.0492304564,
0.070873864,
-0.167738691,
-0.1651280671,
0.171654731,
-0.1138118356,
0.0840364769,
-0.0983551443,
0.0371635556,
-0.2842999995,
0.6224851012,
0.3881370127,
0.8093032837,
-0.1434506923,
0.1810502857,
0.3547424078,
0.0528006777,
0.1755897403,
0.0147700999,
0.1016152054,
-0.560192287,
-0.239176318,
0.0366726331,
-0.1643534303,
0.0718622729,
-0.0193401966,
-0.5239448547,
-0.0641000718,
-0.0553190634,
0.3788299263,
-0.1080497727,
0.2163046151,
0.2167898118,
-0.2219136804,
-0.1918763369,
0.1788294017,
-0.1209589466,
0.0707912222,
0.0371640585,
-0.3602228761,
-0.1189605221,
-0.1180747449,
-0.1570664495,
0.2145125121,
-0.0110536395,
0.4648868144,
0.1464470625,
-0.1612527966,
-0.0420816317,
0.1511614174,
0.229069829,
0.2789492011,
-0.1077248231,
0.1022463217,
-0.0665744022,
-0.0329595879,
-0.076056242,
0.0664733797,
0.3403444886,
-0.0204758886,
0.0232919566,
-0.0385857746,
0.0551054552,
-0.1936300248,
0.0520869717,
-0.2053769678,
-0.2473534942,
-0.5217531919,
-0.2035416067,
0.0629846603,
-0.4981679916,
-0.1804882139,
0.2138574421,
-0.003250439,
-0.3750745058,
0.2486923486,
0.2344364822,
-0.2373042852,
-0.0071182069,
0.2403000295,
0.2968222201,
-0.0187273435,
0.2680461109,
0.1754330099,
-0.2211254686,
-0.3220890462,
0.095101431,
0.0428276099,
-0.5210026503,
0.2870933712,
-0.3250692189,
-0.3471292555,
0.0914245173,
-0.00250286,
0.1125354543,
0.2926103771,
-0.1842609495,
-0.2441552579,
-0.4892579615,
0.242391482,
0.0116832629,
0.2358907461,
0.020579787,
0.2817345262,
-0.0710664392,
0.0332429335,
-0.46019274,
0.0460908599,
-0.3358787,
0.0881787464,
-0.16891177,
-0.5571727157,
0.107046023,
-0.0081409048,
0.2089713961,
0.0426950827,
-0.3289520442,
-0.2711529434,
-0.1295115203,
0.028536886,
0.1459765285,
-0.149195686,
-0.1012970805,
-0.2788999677,
-0.2622576356,
-0.0833622515,
0.0447545424,
0.2318487167,
0.0904178694,
0.2256846875,
0.1388594657,
0.1114350259,
-0.0181014054,
-0.077036649,
-0.0208173022,
0.1388026774,
0.0713966191,
0.1527343988,
0.0052246107,
-0.0488015302,
-0.2612768114,
0.0678185895,
0.3937556148,
-0.0843461305,
0.3125640452,
-0.2165520042,
-0.0310471803,
0.0657629445,
0.3974628448,
0.0406413786,
-0.4246017337,
0.0264307559,
-0.0753722191,
0.2946710289,
-0.2296070009,
-0.0882767737,
0.0620962158,
0.0463475063,
0.2015509158,
0.2553773224,
-0.1046290025,
0.1652102321,
0.4309176207,
0.2992331386,
0.4173389673,
-0.0818921626,
0.1347174197,
0.1861938536,
-0.2718972564,
-0.1418111324,
0.2442781776,
0.1014344692,
0.2186398953,
0.3944149613,
-0.2051373273,
0.0947931334,
-0.2111215293,
-0.1357300431,
0.2142552882,
0.0796013325,
-0.091796957,
0.1080016941,
-0.2276802808,
0.164167136,
-0.0471278019,
-0.0558544621,
-0.2296596617,
-0.000068264,
-0.2843836248,
0.1208273768,
-0.4259039164,
0.2273452282,
0.1863930523,
0.105484508,
-0.3405477405,
-0.2014196664,
0.0592442229,
0.0019962532,
-0.043080423,
0.164234221,
-0.0863453448,
0.4284532666,
0.0224234816,
0.1440993547,
-0.0185547303,
-0.3307959139,
0.165139541,
0.4618390799,
-0.0608106144,
-0.2200914621,
0.2863713503,
0.4150553346,
0.2264840752,
-0.2363422513,
0.2629530728,
0.0683605075,
-0.3372965157,
-0.0744847059,
0.2843070328,
0.3062033057,
0.3336184919,
0.2868262231,
0.2640824318,
-0.2991374135,
-0.1666556299,
0.1528553963,
0.008310861,
0.2482055426,
0.5052460432,
-0.0418701544,
-0.4077041745,
-0.0686031654,
-0.1974014342,
-0.5350337029,
-0.2064782679,
0.1075426489,
-0.2314076871,
0.26383394,
0.1656094193,
0.1325246692,
-0.0257342663,
0.5575472116,
-0.0234561283,
0.1785559803,
-0.4049807787,
0.1025912613,
-0.222391516,
0.2665467858,
0.3310826719,
0.0687109306,
0.1985699683,
0.2189537585,
0.1238905936,
0.1835174263,
-0.0276710317,
-0.2438267767,
0.156933099,
0.2294225693,
-0.0579549484,
0.0035186182,
0.0164830405,
0.0092698243,
0.2666772008,
-0.4339877069,
0.2716411352,
0.0088166054,
0.2757121325,
-0.3280782998,
0.0776313022,
-0.0038259185,
-0.142139852,
0.0882014707,
-0.0796647295,
0.5117201805,
-0.1819565594,
-0.1123145819,
0.2242079377,
-0.2020687312,
-0.1495587975,
0.1795028448,
0.2430046499,
0.3789004087,
0.1096352041,
0.0341851003,
-0.2756944001,
0.1485710442,
-0.0860385075,
-0.1794837266,
-0.1554077715,
0.3504404426,
-0.2647797763,
0.104934141,
-0.0201003645,
0.1318541467,
0.1608710289,
0.2491208166,
-0.3544086218,
-0.4123487175,
0.6665608287,
0.058869198,
-0.3451695144,
-0.0857329741,
0.0318886675,
-0.1323498487,
0.0408525951,
-0.7296362519,
0.2549422681,
-0.0165216532,
-0.2539709806,
-0.1664779186,
0.2007682025,
-0.0108907139,
-0.0075598387,
-0.0239946414,
0.4769183695,
0.2388567179,
-0.1805017889,
-0.183375001,
-0.1403684765
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Hi ! Maybe one of the objects in the function is not deterministic across sessions ? You can read more about it and how to investigate here: https://huggingface.co/docs/datasets/about_cache | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 28 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi ! Maybe one of the objects in the function is not deterministic across sessions ? You can read more about it and how to investigate here: https://huggingface.co/docs/datasets/about_cache | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Hi @apsdehal! Can you verify that replacing
```python
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
with
```python
USER_AGENT = get_datasets_user_agent()
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": USER_AGENT},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
fixes the issue? | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 88 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi @apsdehal! Can you verify that replacing
```python
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
with
```python
USER_AGENT = get_datasets_user_agent()
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": USER_AGENT},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
```
fixes the issue? | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Thanks @mariosasko. That does fix the issue. In general, I think these image downloading utilities since they are being used by a lot of image dataset should be provided as a part of `datasets` library right to keep the logic consistent and READMEs smaller? If they already exists, that is also great, please point me to those. I saw that `http_get` does exist. | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 63 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Thanks @mariosasko. That does fix the issue. In general, I think these image downloading utilities since they are being used by a lot of image dataset should be provided as a part of `datasets` library right to keep the logic consistent and READMEs smaller? If they already exists, that is also great, please point me to those. I saw that `http_get` does exist. | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | You can find my rationale (and a proposed solution) for why these utilities are not a part of `datasets` here: https://github.com/huggingface/datasets/pull/4100#issuecomment-1097994003. | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 21 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
You can find my rationale (and a proposed solution) for why these utilities are not a part of `datasets` here: https://github.com/huggingface/datasets/pull/4100#issuecomment-1097994003. | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4199 | Cache miss during reload for datasets using image fetch utilities through map | Makes sense. But, I think as the number of image datasets as grow, more people are copying pasting original code from docs to work as it is while we make fixes to them later. I think we do need a central place for these to avoid that confusion as well as more easier access to image datasets. Should we restart that discussion, possible on slack? | ## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 65 | Cache miss during reload for datasets using image fetch utilities through map
## Describe the bug
It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch.
## Steps to reproduce the bug
Using the example provided in `red_caps` dataset.
```python
from concurrent.futures import ThreadPoolExecutor
from functools import partial
import io
import urllib
import PIL.Image
import datasets
from datasets import load_dataset
from datasets.utils.file_utils import get_datasets_user_agent
def fetch_single_image(image_url, timeout=None, retries=0):
for _ in range(retries + 1):
try:
request = urllib.request.Request(
image_url,
data=None,
headers={"user-agent": get_datasets_user_agent()},
)
with urllib.request.urlopen(request, timeout=timeout) as req:
image = PIL.Image.open(io.BytesIO(req.read()))
break
except Exception:
image = None
return image
def fetch_images(batch, num_threads, timeout=None, retries=0):
fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries)
with ThreadPoolExecutor(max_workers=num_threads) as executor:
batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"]))
return batch
def process_image_urls(batch):
processed_batch_image_urls = []
for image_url in batch["image_url"]:
processed_example_image_urls = []
image_url_splits = re.findall(r"http\S+", image_url)
for image_url_split in image_url_splits:
if "imgur" in image_url_split and "," in image_url_split:
for image_url_part in image_url_split.split(","):
if not image_url_part:
continue
image_url_part = image_url_part.strip()
root, ext = os.path.splitext(image_url_part)
if not root.startswith("http"):
root = "http://i.imgur.com/" + root
root = root.split("#")[0]
if not ext:
ext = ".jpg"
ext = re.split(r"[?%]", ext)[0]
image_url_part = root + ext
processed_example_image_urls.append(image_url_part)
else:
processed_example_image_urls.append(image_url_split)
processed_batch_image_urls.append(processed_example_image_urls)
batch["image_url"] = processed_batch_image_urls
return batch
dset = load_dataset("red_caps", "jellyfish")
dset = dset.map(process_image_urls, batched=True, num_proc=4)
features = dset["train"].features.copy()
features["image"] = datasets.Sequence(datasets.Image())
num_threads = 5
dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads})
```
Run this in an interpretor or as a script twice and see that the cache is missed the second time.
## Expected results
At reload there should not be any cache miss
## Actual results
Every time script is run, cache is missed and dataset is built from scratch.
## Environment info
- `datasets` version: 2.1.1.dev0
- Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Makes sense. But, I think as the number of image datasets as grow, more people are copying pasting original code from docs to work as it is while we make fixes to them later. I think we do need a central place for these to avoid that confusion as well as more easier access to image datasets. Should we restart that discussion, possible on slack? | [
-0.5388091803,
-0.1422931403,
-0.0625115633,
0.2576912344,
0.0660191029,
0.0496222414,
0.1246499345,
-0.0102835521,
0.485123843,
0.1197426617,
-0.0498226732,
0.4438686967,
0.3680506647,
-0.1765505075,
-0.1030043662,
0.1202055439,
-0.026852401,
0.1637635529,
-0.182844162,
-0.1608161926,
-0.3092357814,
0.2084266245,
-0.3623568118,
-0.2980819046,
-0.1996029466,
-0.002970034,
-0.1684425622,
0.1212333366,
0.0278945509,
-0.4024114907,
0.3238579333,
0.2566543818,
0.1043135598,
0.4048788249,
-0.0001153614,
-0.1344270706,
0.2720872462,
-0.1250962764,
-0.0104723759,
-0.1111982837,
-0.3086093068,
-0.2532835901,
0.0939372182,
-0.41549474,
0.183552295,
0.2916425169,
0.2345446497,
-0.3937248588,
0.3496821225,
-0.0460568331,
0.2011282444,
0.2351736724,
-0.2515093684,
0.0579689778,
0.0873999521,
-0.0321977735,
0.0910172537,
0.1644153446,
0.2773283422,
-0.1365718991,
-0.3102950156,
0.5134250522,
-0.2853367627,
0.1822087467,
-0.1019851416,
0.0265386999,
0.1252616644,
-0.284686029,
0.1300564855,
-0.1656835675,
0.4854113162,
-0.0093907062,
-0.3884161711,
-0.1936206818,
-0.4249210358,
-0.0665058196,
0.2354646772,
0.1045282781,
0.0796734691,
0.0526351556,
-0.5150630474,
-0.0848908126,
0.2990432978,
0.124495551,
0.0300329495,
0.0745155066,
-0.0674472898,
0.2134025097,
-0.1621467024,
0.3482897282,
0.2535981238,
-0.2572987676,
-0.1036177799,
0.2846553922,
-0.3261966705,
0.1461802423,
0.1050088331,
0.044101648,
-0.0688124076,
-0.0260064378,
0.2277157307,
0.2027707994,
-0.0483475663,
0.3575034142,
0.1354943961,
0.0130448146,
0.000536635,
0.3917050362,
0.1755884439,
0.1935785562,
-0.3123553991,
-0.1041727588,
0.1865369081,
-0.0884165615,
0.437083751,
0.1764671952,
0.1004640236,
-0.0423454531,
0.0854886994,
-0.0690078661,
-0.2282300591,
-0.1856983751,
-0.1153735444,
0.1347233951,
-0.208197087,
0.3548333645,
0.2388383597,
-0.1030220017,
-0.3011070192,
-0.0902156755,
-0.2704845071,
-0.2335180491,
-0.1836479455,
0.2267375588,
0.0495838039,
-0.1077264026,
0.4084827602,
0.0599790439,
-0.1803714633,
-0.3364020884,
0.3869014084,
-0.2137597352,
0.1654432565,
0.149417311,
0.0661338121,
0.1256655008,
0.1458885074,
0.0677927732,
0.0067073395,
0.257625401,
-0.4860207438,
-0.0417557396,
0.2522518039,
0.1979472339,
-0.1309498549,
0.0947628319,
-0.4320312738,
-0.0127232252,
0.4820628166,
0.0493946522,
0.1812435538,
-0.096342206,
-0.4463657439,
-0.3406182528,
0.0138426377,
0.6789832115,
-0.1456809342,
-0.2210318595,
-0.1514838487,
0.0053251013,
0.2093817294,
0.0245165527,
-0.1725440323,
0.2053842843,
-0.531262219,
0.0888827145,
0.1487523615,
-0.4117074013,
-0.6002056003,
0.2565573454,
-0.0377983786,
0.1759770066,
-0.014795078,
0.3248441815,
0.5295739174,
-0.1184804067,
-0.1029442996,
0.3025984466,
-0.1564244777,
0.3233766556,
-0.2764518857,
-0.0618634447,
-0.0152892731,
0.0315515399,
0.2279400527,
0.2726482749,
0.2719177604,
-0.3450585902,
0.2618890405,
0.0761191472,
0.2465054095,
0.161281839,
-0.1975605041,
0.0788265318,
0.1901315898,
0.1125501245,
-0.4655463994,
0.3248233497,
-0.1516055763,
-0.2360995561,
0.0042195371,
-0.0556685664,
-0.1670176834,
-0.1653723568,
-0.2964023054,
-0.2672642767,
0.0817730278,
0.2501354516,
0.0097638294,
0.1664817631,
0.0945904106,
0.5646682978,
0.042722825,
0.1042374894,
-0.0657067597,
0.2966791689,
0.0525671579,
0.0823343024,
-0.2240431458,
-0.307980895,
0.3217377067,
-0.1376318187,
-0.2331338674,
0.4564603269,
0.2607676685,
0.434278667,
-0.0156821776,
-0.1712564677,
0.1057755277,
-0.1061887369,
0.1070088521,
-0.0188050549,
0.2216449976,
-0.1693441421,
0.2526167035,
0.0920696706,
0.1393102556,
-0.0563991554,
-0.1667529494,
0.0912119523,
0.1280708611,
-0.2222955227,
0.1571408063,
-0.2190762907,
0.0728902221,
-0.0228249505,
0.2142825127,
0.0412870832,
0.1429038942,
0.0527337231,
0.4853819609,
0.1600433588,
0.0842917413,
0.0593692437,
-0.0827849507,
-0.0675246418,
0.1141426936,
0.2985502779,
0.3663423955,
0.0538765416,
0.0419447459,
0.0094403252,
0.2007361501,
-0.0321514122,
0.0962180346,
0.1585372835,
0.2225070596,
-0.011047096,
0.1856264323,
0.0784408301,
-0.3671365082,
-0.1038582996,
0.3462377489,
0.0160885062,
0.0394550301,
-0.0185712632,
-0.0950139314,
-0.0509846993,
0.1159840599,
0.305686146,
0.0210302547,
-0.4192983508,
-0.1622755975,
0.4059544504,
0.0834540799,
0.3150652945,
-0.1469217241,
-0.1069435626,
0.1184314787,
-0.1953202337,
-0.3516010642,
-0.3146096468,
-0.1680051237,
-0.0494519807,
0.0460559949,
-0.3830378056,
0.4569521546,
-0.272195071,
-0.0630904585,
-0.3262608945,
-0.2513567805,
0.1131652221,
0.1139891446,
-0.1059659123,
-0.0303756967,
0.1228048578,
-0.3447494209,
0.3104196787,
0.1006174311,
-0.2456196249,
-0.393854022,
-0.1283269078,
0.0296658594,
0.0064874482,
-0.1237213388,
-0.4142180383,
-0.1321744174,
-0.2968364656,
-0.1388780773,
-0.160074681,
0.082571812,
-0.0098762056,
0.0524274819,
-0.2149509937,
-0.0770476609,
-0.2246501744,
-0.4897662401,
-0.2640126944,
0.1400340497,
-0.1651923507,
-0.204718411,
0.0574869178,
-0.261810869,
0.3163836896,
0.5731630325,
-0.6966409087,
-0.2867434323,
-0.2065727264,
0.0124836862,
-0.112608254,
0.0962691009,
0.2511671185,
0.1443571001,
-0.0673493147,
-0.2551213801,
-0.2258040458,
0.0104147354,
0.0837559998,
-0.0674224645,
-0.02257354,
0.27725631,
0.1668531001,
0.3151034713,
0.0968262628,
-0.036492683,
0.4151695669,
0.1892160177,
0.2373826951,
-0.1164035127,
-0.1288239211,
-0.0117460825,
-0.2716666162,
-0.0015882597,
-0.1896205246,
-0.0007311165,
-0.4575285912,
-0.2012013495,
-0.0363283083,
-0.4277953804,
-0.2997666299,
-0.0247070976,
-0.2209668159,
0.4131220877,
0.2821499109,
0.1058767885,
-0.3912023604,
-0.1796614975,
0.0432210863,
-0.0462905541,
0.6341548562,
0.0466210507,
-0.2643529475,
0.2647792101,
-0.1362600327,
0.3150092065,
0.2374100834,
0.2857639194,
0.2279465348,
0.1149718463,
0.1107122153,
0.1053241417,
0.6578534245,
-0.3484830558,
0.1891744733,
0.0074449107,
-0.3276085258,
-0.1667203754,
-0.0195338409,
0.1432492137,
0.4767276347,
-0.0092611052,
0.2149568051,
-0.0917414576,
0.0661905333,
-0.1424326003,
0.0277394336,
-0.1420565695,
-0.2631871402,
-0.0799010396,
-0.2206416279,
-0.3387677968,
0.0193607137,
-0.1306836009,
-0.2819462717,
0.0949814022,
-0.1546617299,
-0.0695067123,
0.2158500403,
-0.4394509792,
0.0077937189,
0.283836931,
-0.1617752314,
0.2971737385,
0.2559217215,
-0.2889594734,
0.0530633107,
0.5479388833,
-0.1014570296,
-0.116166234,
0.0836282447,
-0.0507328846,
-0.1113159582,
0.1236488223,
-0.0869657472,
0.0023952613,
0.1612758934,
0.070987463,
-0.3147363365,
0.0742731467,
0.1261950731,
0.1790335923,
-0.1964243352,
-0.6380593181,
0.1307888925,
0.0899862647,
-0.1003186554,
0.4859215617,
-0.4771525264,
-0.1532415897,
0.4665314853,
0.0845877975,
0.6797029376,
-0.3502425849,
0.0672098771,
0.0148413088,
-0.1361782551,
0.359856993,
0.0305554438,
0.2707557678,
-0.3870010674,
0.0569255836,
-0.0775779039,
-0.2284029424,
-0.050329186,
0.2015576363,
-0.1420084089,
0.3741326928,
0.2480002046,
0.2316887677,
0.1324166805,
-0.0494320877,
-0.2070031613,
-0.2468094379,
0.1877889037,
0.1067590788,
-0.0889651552,
0.2767064273,
-0.150550127,
0.0439402275,
0.0059184302,
-0.2285580188,
-0.0903603882,
0.0716737062,
-0.5004435778,
0.4374222755,
-0.2599570155,
-0.0208628178,
-0.1622359604,
0.3512479961,
-0.1853672713,
-0.0212582331,
0.0726990998,
0.2844637632,
0.1805647016,
0.2291978151,
0.23948358,
-0.0786806047,
0.2588625252,
0.1685050875,
-0.1607977897,
-0.1767392904,
-0.1192167848,
-0.2401973903,
-0.0571181588,
0.4174095392,
0.3503101468,
-0.0488440096,
-0.0948682576,
-0.1246383265,
-0.2349690944,
-0.1722321659,
0.0663244724,
0.270301193,
0.1054407433,
0.3770662546,
-0.1186317727,
-0.2462321371,
-0.0688209757,
0.5489092469,
0.2104665041,
-0.3482519686,
0.3372831643,
-0.0509499907,
-0.2350309491,
-0.1438682228,
-0.3529117703,
-0.3611236215,
-0.6210967302,
0.1753809005,
-0.2309589833,
0.1110181361,
0.0235602576,
-0.2193684429,
-0.1090781763,
-0.0461436808,
-0.0715853274,
-0.5186216235,
-0.2823275328,
-0.1100598127,
-0.3005130887,
-0.0183311962,
0.1857329011,
-0.0769488439,
0.0264810938,
0.1901181936,
-0.2648633718,
0.2768932283,
-0.1553762704,
0.2661966383,
0.159917146,
0.1028938815,
0.206473425,
-0.167306453,
0.0289105233,
0.3245439827,
-0.3369905353,
-0.146547839,
-0.0276215747,
0.143626079,
-0.0051826145,
-0.1927832812,
0.0239662826,
-0.106362395,
0.147849381,
-0.3252394497,
0.07902693,
0.2136470675,
-0.1414022893,
0.0804111063,
0.0243630055,
0.0363760442,
-0.057833679,
0.1580345929,
-0.4155874252,
0.1187523752,
-0.0620007627,
0.2741931975,
0.0628045946,
-0.0002785298,
0.051025521,
-0.1632766575,
0.0927711502,
0.0713367015,
0.6600543261,
-0.347987026,
0.0027486221,
0.0112348003,
0.278452009,
-0.1077802926,
-0.1231283769,
-0.2470199615,
0.1261348873,
0.2323844135,
-0.1874023676,
-0.0191925932,
0.7703559399,
0.2057472914,
0.0693611205,
0.199567765,
0.2047460079,
-0.1248484179,
-0.0572978221,
0.2450294793,
0.60144943,
-0.2946958244,
0.1795215309,
-0.0075890557,
0.1442109942,
0.2574104369,
0.0834329799,
0.2852137983,
0.0244955178,
0.1977985054,
0.3353343904,
0.3759309947,
0.1017617136,
0.241771698,
-0.2541458607,
-0.8483524919,
0.2164356261,
0.3106331527,
-0.1778481901,
0.4403851628,
-0.0676979199,
0.0749841258,
0.2499135435,
0.0449571349,
-0.1353445351,
0.242729485,
-0.2596841156,
0.0428155586,
0.2712404132,
0.0356542282,
-0.0783858374,
0.1409746408,
0.2365379483,
0.082175687,
0.6426134109,
0.0948067829,
-0.1667307764,
-0.1545536071,
-0.4155267179,
0.1070074737,
0.2578572631,
-0.2934649289,
0.1062314063,
0.1161265075,
-0.0054523055,
-0.1437711567,
0.3571884334,
0.2887170911,
0.271777302,
-0.0625136793,
0.1972270608,
0.2948037684,
0.0311456565,
-0.3145175874,
0.2707582116,
-0.15952079,
-0.1426607966,
0.0210763384,
0.1060887501,
-0.1494475454,
0.0748377666,
0.0864399374,
0.0049862894,
0.1242635027,
-0.1414439678,
0.0684139207,
-0.0673801154,
-0.0910431594,
0.0917214975,
-0.1926459521,
-0.258702755,
0.3583815396,
-0.2122402191,
0.2089779526,
-0.1731163114,
0.0572088063,
-0.0682728887,
0.101255402,
0.709826529,
0.2089060545,
-0.4419158399,
-0.1438095123,
-0.5076892376,
0.173256591,
-0.1433376074,
-0.0774962902,
-0.0194902048,
0.2461490333,
0.0585136525,
0.0115943933,
0.3134946227,
-0.1543738693,
0.3851774633,
0.3418079019,
-0.1670239568,
-0.5232175589,
0.0274095144,
-0.1497652233,
0.0336037278,
-0.582088232,
0.1985745877,
-0.1861384362,
0.199498415,
-0.2060323358,
-0.1180067286,
0.2805027366,
-0.0356002562,
0.6197189689,
0.3314342499,
0.0975739881,
-0.1519415975,
-0.1209619641,
-0.1317192912,
-0.1717382073,
0.0067226458,
-0.1713290513,
0.1314556003,
0.4526280463,
-0.4137362242,
-0.1275530607,
-0.3686807454,
0.1819134206,
0.0390190706,
-0.0563945211,
-0.2189394832,
0.0700622723,
-0.1064072177,
0.092699945,
-0.0827449113,
0.4726964533,
-0.0456637964,
0.3628140986,
-0.3272989392,
-0.359916985,
0.3638532758,
-0.4733114243,
-0.1474683583,
0.0376652963,
0.2643287182,
-0.0564982034,
-0.0417726859,
-0.3175781965,
0.0808687136,
0.3987441063,
-0.0212089494,
-0.2077235729,
0.121618174,
0.1442992389,
0.2304625064,
0.0622662418,
0.2198325545,
0.0009786998,
-0.2669609189,
0.2790629864,
-0.107957311
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | Hi! :)
I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please? |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 46 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
Hi! :)
I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please? | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | Hi @ahf876828330,
As @stevhliu pointed out, the proper way to load a dataset is not trying to load its metadata file.
In your case, as the dataset script is local, you should better point to your local loading script:
```python
dataset = load_dataset("dataset/opus_books.py")
```
Please, feel free to re-open this issue if the previous code snippet does not work for you. |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 61 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
Hi @ahf876828330,
As @stevhliu pointed out, the proper way to load a dataset is not trying to load its metadata file.
In your case, as the dataset script is local, you should better point to your local loading script:
```python
dataset = load_dataset("dataset/opus_books.py")
```
Please, feel free to re-open this issue if the previous code snippet does not work for you. | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | > Hi! :)
>
> I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please?
YesοΌyou are right!So if I have a metadata dataset local,How can I turn it to a dataset that can be used by the load_dataset() functionοΌAre there some examples? |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 77 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
> Hi! :)
>
> I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please?
YesοΌyou are right!So if I have a metadata dataset local,How can I turn it to a dataset that can be used by the load_dataset() functionοΌAre there some examples? | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4192 | load_dataset can't load local dataset,Unable to find ... | The metadata file isn't a dataset so you can't turn it into one. You should try @albertvillanova's code snippet above (now merged in the docs [here](https://huggingface.co/docs/datasets/master/en/loading#local-loading-script)), which uses your local loading script `opus_books.py` to:
1. Download the actual dataset.
2. Once the dataset is downloaded, `load_dataset` will load it for you. |
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset? | 51 | load_dataset can't load local dataset,Unable to find ...
Traceback (most recent call last):
File "/home/gs603/ahf/pretrained/model.py", line 48, in <module>
dataset = load_dataset("json",data_files="dataset/dataset_infos.json")
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset
**config_kwargs,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder
data_files=data_files,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory
download_mode=download_mode,
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module
data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained
![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png)
![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png)
the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
The metadata file isn't a dataset so you can't turn it into one. You should try @albertvillanova's code snippet above (now merged in the docs [here](https://huggingface.co/docs/datasets/master/en/loading#local-loading-script)), which uses your local loading script `opus_books.py` to:
1. Download the actual dataset.
2. Once the dataset is downloaded, `load_dataset` will load it for you. | [
-0.1754118204,
0.0892572477,
-0.1238672063,
0.1317975819,
0.3044528067,
0.059617009,
0.4345732033,
0.4015061557,
0.2219167948,
0.1424890012,
0.0361839049,
0.2007317394,
-0.0687808245,
0.2588721216,
0.009246666,
0.0185479969,
-0.1723025739,
0.2523019314,
0.073971346,
-0.174201563,
-0.2112789005,
0.2418318838,
0.027848335,
0.1173942015,
-0.1005750522,
0.1655556113,
0.1800219864,
0.34490484,
-0.4049100578,
-0.6614171863,
0.3138435185,
0.031158343,
0.1568319798,
0.320530951,
-0.000102549,
0.3772659004,
0.4112351239,
-0.0276079569,
-0.3889510036,
-0.2801309228,
-0.2690984309,
0.0282838475,
0.3179875314,
0.0204779971,
-0.3608302176,
-0.200593695,
-0.2220412344,
-0.4490517974,
0.2750030756,
0.4882833958,
0.3081128895,
0.231098175,
-0.0721584931,
-0.3881165981,
0.0198184066,
0.1770248264,
-0.0292751789,
0.52886343,
0.0377270728,
-0.2341789007,
0.1035137251,
0.1581628323,
0.0793953538,
0.0284675527,
0.0882125422,
-0.2072859257,
0.2171772122,
-0.219175607,
0.3798283935,
0.0547224432,
0.6315194368,
-0.1158464029,
-0.3141863644,
-0.0123116495,
0.1138486266,
-0.10287451,
0.2046783864,
0.045829732,
-0.1688976884,
0.20919168,
-0.1342585236,
-0.0759269372,
0.0124438927,
0.0808492154,
-0.3217006922,
0.1773283929,
-0.0329154991,
-0.0146151148,
-0.0769229606,
-0.011735403,
0.1764854342,
0.0757224038,
-0.1125755385,
0.2010473609,
-0.2126441151,
0.1046849042,
0.3609265983,
-0.0973182619,
-0.0318349637,
0.1725890934,
0.0162646063,
0.1104866564,
0.1687097102,
0.0838386789,
0.0914805755,
-0.0313818268,
0.1883701831,
0.0356862992,
0.0580233075,
0.0661233515,
-0.1720782965,
-0.0205512177,
-0.3940504193,
-0.344581604,
-0.0585467927,
-0.045496542,
0.2909518778,
-0.2911599874,
-0.2396679521,
0.0144002661,
-0.1853239685,
-0.0991476402,
0.1993577629,
0.497577101,
0.2355811894,
0.2227940261,
0.015198024,
0.2722530365,
-0.1118466258,
0.0649854615,
-0.3315716088,
-0.0373593159,
-0.2781309485,
0.0203541741,
0.1411546022,
-0.274751842,
0.4822354615,
-0.0563929863,
-0.3924454749,
0.0767449513,
0.1544392109,
-0.0835209638,
-0.1411973089,
0.4017682076,
-0.1220227107,
0.0572021827,
0.2312975228,
0.0705862641,
-0.109166272,
-0.1873900443,
-0.0098338872,
-0.4743787944,
-0.1384027451,
0.3405170143,
0.0255440958,
-0.1104249731,
0.0181351136,
0.0177696701,
0.0170054603,
-0.0979416594,
-0.2767786682,
-0.1495965272,
-0.2446840256,
-0.1369096786,
0.3972700834,
0.5598174334,
-0.3857534528,
-0.0520898215,
-0.1845663041,
-0.3364591897,
0.0810396969,
0.0316804722,
-0.4409795702,
0.4958360195,
-0.2494395971,
0.0287686419,
0.2702871263,
-0.3281018138,
-0.3054532111,
0.3795754611,
-0.1337427795,
-0.1947809011,
0.0663449764,
-0.3099856675,
-0.2311969995,
0.1847683638,
0.2118827403,
0.3373568058,
0.0375584662,
0.0252314974,
-0.2175353169,
-0.1350450367,
-0.0474074781,
0.4344930053,
0.2072371542,
0.1415724456,
0.3283971548,
-0.1808503568,
0.1772648096,
-0.0405489057,
-0.1632169187,
0.2780995667,
0.1951759756,
0.026435731,
-0.0409876853,
0.0993244424,
-0.2837718129,
0.2191359103,
-0.3463275433,
0.1268694997,
-0.315925926,
0.1371752769,
-0.4949304461,
0.0684916303,
-0.3787873089,
-0.0567807667,
0.2569245398,
0.3768236935,
0.1142341569,
0.1722537875,
-0.2782524526,
0.267976135,
0.1009132937,
-0.0514630154,
-0.1752588004,
0.3477750123,
-0.0727635771,
-0.1697760373,
0.1653921753,
0.0954305902,
0.1646150649,
-0.2072203755,
-0.1451621801,
0.3047004044,
0.1720846444,
0.1749238074,
0.2278972864,
-0.2666501701,
0.044275105,
-0.0181579348,
0.128488332,
-0.0186412856,
0.1925160736,
0.0529001169,
-0.1220208481,
0.22219491,
0.2891239226,
0.205655545,
0.1633911133,
0.0383985005,
0.3942523599,
-0.1134486049,
0.0190575365,
-0.1661203951,
0.0748773962,
0.3530032933,
0.3803364933,
0.230071798,
-0.2208120525,
0.1057660878,
0.4657373428,
-0.0516405776,
-0.1458438635,
-0.0250084512,
-0.2307233512,
-0.1291081607,
-0.0637749285,
0.3337620199,
0.4226687551,
0.1845540702,
-0.0389018394,
0.0031108847,
0.075289771,
-0.1089815721,
0.1407284439,
-0.1365965754,
0.3417122662,
0.3945151269,
0.0551677011,
-0.176708594,
-0.370087415,
-0.3006949425,
0.1664148867,
0.2772981822,
-0.1808462441,
0.0052814982,
-0.4011819363,
0.2139443755,
-0.0098292325,
-0.1010100618,
-0.079506427,
-0.3404192626,
-0.0157354791,
-0.0830063075,
-0.0670677871,
0.1065875143,
-0.3637861311,
0.0818713009,
0.1189363599,
-0.2313342541,
-0.0624644905,
-0.3092601597,
-0.1397186965,
0.0810677633,
0.2886584103,
0.0258772336,
0.2121613324,
-0.2166904509,
-0.1624976695,
-0.0462851487,
-0.0685267672,
0.1727992594,
0.1040331945,
0.079676263,
0.1615345925,
0.170505479,
0.0443752371,
-0.1217466816,
0.3942083716,
-0.1475079656,
-0.2194528133,
0.1478904039,
-0.0416107029,
-0.0628744364,
-0.0292963497,
-0.5031520128,
-0.5888147354,
-0.3946751356,
0.1067828238,
0.1754974276,
0.074661836,
0.1882751733,
0.2860588431,
0.2770675719,
-0.20365569,
-0.0760412812,
-0.1809357703,
-0.5880247951,
0.226789251,
-0.3660040796,
-0.2582665086,
-0.0187814292,
-0.0282587148,
0.4030710459,
-0.0448789559,
-0.2482688725,
-0.0264925528,
-0.1904010922,
0.1472155303,
-0.1371643394,
-0.1233015209,
0.2826705277,
0.1041350067,
-0.2540555596,
-0.085649237,
-0.0479377918,
0.1534429193,
0.0565056913,
-0.0014596215,
-0.0498308279,
0.4023944139,
-0.3189497292,
0.5021756291,
-0.1321512908,
-0.1537529379,
0.4545554221,
-0.0178778097,
0.2160854787,
-0.2835463881,
-0.3218407333,
-0.0065038488,
0.1784427315,
-0.0272994377,
0.120624572,
-0.0941152126,
-0.3274230063,
-0.2668359578,
-0.1913951337,
-0.2621435225,
-0.081510745,
0.0073712389,
-0.0715428218,
0.2882126272,
-0.0596990921,
0.1273894012,
-0.1062454209,
0.2316362411,
0.1236681491,
0.0970615372,
0.1014317423,
0.0560988337,
-0.4610570371,
0.0240166895,
-0.1644708961,
0.0491904132,
-0.1086943299,
0.310403496,
-0.2080439627,
-0.1626786292,
0.0483287387,
-0.0831756666,
0.2916000485,
-0.2622019649,
0.1852903366,
0.26506567,
-0.1606594622,
-0.3580448925,
-0.1581517011,
0.1581846476,
0.1291677207,
-0.1570274979,
0.3487570584,
0.0030353183,
-0.3250371516,
0.2051526457,
0.0160632674,
-0.2149486244,
-0.1627966911,
-0.2047469765,
-0.3406685591,
-0.271545738,
-0.2199999541,
-0.2075163573,
0.2224271894,
0.171810165,
-0.0770095363,
-0.1204376146,
0.006406521,
0.0069851168,
0.2544153035,
0.2376249731,
0.0223213173,
0.0758742616,
0.3095454276,
0.2924074531,
0.4549856484,
0.7814916968,
0.1486890614,
-0.2821571827,
0.1833965331,
-0.0462161973,
0.3119095564,
0.2156031281,
-0.1176732481,
-0.1417480856,
0.0239701755,
0.173891142,
-0.1707321554,
0.2706416845,
0.2103015035,
-0.3386396468,
-0.1765427887,
-0.5080039501,
0.325766027,
-0.2544552982,
0.0527136587,
-0.0178895388,
-0.0865162164,
-0.1654796004,
0.4113067091,
-0.073603943,
0.6224441528,
-0.1802383959,
-0.0845591202,
0.2444292903,
-0.1123828813,
0.0374790877,
-0.3633497953,
0.1496447325,
-0.2811683118,
0.0170419514,
-0.0047171982,
-0.1754679084,
0.1758488566,
0.1946679801,
0.07547196,
0.1809636056,
-0.1503387541,
0.0399281457,
-0.0293471664,
0.3210047781,
-0.0496207923,
-0.0716092363,
-0.2431740612,
0.2837352455,
0.025612412,
0.420132935,
-0.0506689399,
-0.2989140451,
-0.0848352388,
-0.1900107414,
-0.0289132223,
0.2473720163,
-0.3701399863,
0.2054001689,
-0.0513812974,
-0.1240992621,
-0.0059903855,
0.0868683234,
0.039465826,
0.0752517805,
-0.1895525306,
0.2213424146,
-0.1113250703,
-0.2088158876,
-0.2969558835,
0.1599836797,
0.2044896483,
-0.0950381383,
-0.4180892408,
0.0573610812,
-0.1447229534,
-0.2738863826,
-0.0220094267,
-0.0824222267,
-0.0230395421,
-0.115504615,
-0.2276082933,
-0.0359663107,
0.029947171,
-0.0961934328,
0.2217772603,
0.0404937379,
-0.1558905542,
-0.1381238252,
-0.0994066969,
-0.4210209846,
-0.1752854586,
0.573622942,
-0.0625800714,
0.0799083859,
0.6132894158,
0.1499447078,
-0.0374914035,
-0.4075959325,
-0.1245208755,
0.6449127197,
-0.2190644294,
-0.0026801566,
0.0879214406,
-0.0645787045,
0.173365429,
-0.0269282926,
0.1172017008,
-0.3126033247,
0.0572402067,
-0.4941405356,
-0.3921113014,
-0.0044977055,
-0.1438091993,
0.1750949025,
-0.0738080218,
0.2413703501,
0.1824522913,
-0.1250859946,
-0.4251793325,
0.0585387647,
-0.284137547,
0.0513308384,
0.197682634,
-0.1557044089,
0.2013684511,
-0.0879171342,
0.3622089028,
-0.197972104,
-0.2108758539,
-0.3679227829,
0.0640986338,
0.0692550912,
0.0035534301,
-0.0591170974,
0.0849361122,
-0.1391629279,
-0.0679967105,
0.0938133895,
0.0897610188,
0.1430657208,
0.0247105919,
0.1060190573,
-0.0195104666,
-0.1732519865,
0.0611342303,
-0.0031715457,
0.0006255233,
-0.0034726204,
-0.0239870753,
0.0630805343,
-0.0374078378,
-0.0510758981,
0.0685965866,
0.0205919426,
-0.101201795,
0.198286891,
0.2743832767,
-0.3543452621,
0.0418480001,
0.1751633584,
0.1706119925,
0.3076133728,
-0.2584965229,
0.1272262782,
0.2316078693,
0.3678612411,
-0.3404372036,
-0.1512429565,
-0.0328585729,
0.0197856426,
0.1607164741,
0.0491878502,
0.2741451859,
-0.0868610963,
0.0250927042,
0.0960968882,
0.3766967058,
0.0909121111,
0.0134067638,
0.4564003646,
0.0320855677,
-0.075690642,
0.0947888643,
0.3297460973,
0.221638009,
0.6467006803,
-0.107825771,
0.1845678389,
-0.2802915871,
0.1782789528,
-0.0749673396,
-0.5045813322,
0.1100018099,
0.284881115,
-0.1122776046,
-0.1272213459,
-0.0532599799,
0.1731542349,
0.0128855538,
-0.2953319252,
-0.1839646846,
0.1809837967,
-0.1377176642,
-0.1285751313,
-0.2776621878,
-0.3045413494,
-0.2806885242,
0.1713316888,
0.049760256,
0.0526851043,
0.1532447338,
0.1241677701,
-0.1252143681,
-0.1483237147,
0.061304599,
0.1337928176,
-0.1122198403,
-0.2258983105,
0.3206228614,
0.1044418737,
-0.0261640642,
-0.0014424877,
0.1664979607,
0.2778249085,
0.3523560166,
-0.1520183533,
0.10302414,
-0.0097890766,
-0.14413248,
-0.189183712,
0.0786161423,
-0.0711725503,
0.2066165656,
0.2363342196,
0.3146886826,
-0.2235383093,
0.1097252145,
-0.0013922497,
0.1672287136,
-0.0229536593,
0.3412015438,
0.1083901227,
-0.0085668555,
-0.1298818141,
0.0651229247,
-0.4786283672,
0.0415802002,
0.3302783072,
0.2957894802,
0.230159387,
-0.1829671413,
0.1435518861,
-0.0001556727,
0.4455426633,
0.1900868565,
0.1014230773,
-0.3366394043,
-0.210491091,
-0.4156793356,
-0.0496985018,
-0.1088321954,
0.0879734084,
0.1137142628,
0.0904482976,
0.2712876797,
0.0532687642,
0.1732734591,
0.201864779,
-0.035691902,
-0.0401173197,
-0.1642188281,
0.01932339,
-0.1404908299,
0.1033990756,
0.0358043164,
-0.4230645895,
0.1186300516,
-0.5297962427,
0.2520973086,
-0.1825565249,
-0.2041237801,
0.0554897226,
-0.1873265058,
0.4470168352,
-0.0805202499,
0.2546406388,
-0.0530694015,
-0.1315813363,
-0.2592814565,
-0.2901479304,
-0.0856732875,
0.2357432246,
0.0100025358,
0.3478620946,
-0.1417644769,
0.014740455,
-0.4055244923,
0.1120019555,
0.0181558188,
0.1820991188,
-0.1311501265,
0.0255847834,
0.0283785518,
0.0018717245,
0.3008186221,
0.0260019097,
-0.0225499962,
0.0366195031,
-0.2774406672,
-0.1356861442,
0.425649941,
-0.1225800291,
-0.2328281999,
0.1680173725,
0.1141591296,
0.0196197256,
0.1186424568,
-0.3386642039,
0.4681667984,
0.309430778,
-0.0921447054,
-0.1219352782,
0.2885731459,
0.2110388279,
-0.0062930272,
-0.0348697305,
-0.0948192328,
0.0155706694,
-0.06850826,
-0.3372615874,
-0.079856284
] |
https://github.com/huggingface/datasets/issues/4291 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message | Hi @leondz, thanks for reporting.
Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions.
In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`.
Let me know if you need some help: I could push a commit to your repo with the fix. | ### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes | 103 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes
Hi @leondz, thanks for reporting.
Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions.
In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`.
Let me know if you need some help: I could push a commit to your repo with the fix. | [
-0.5941502452,
0.0154772494,
0.1116633341,
0.2606789768,
-0.152930513,
-0.1338221431,
0.2904717922,
0.2681366503,
0.0844315961,
0.2371055633,
0.0127624674,
0.1334278733,
-0.3677476943,
0.0229738876,
0.0893161371,
-0.2069136202,
-0.0901445225,
0.4387164414,
-0.1709370613,
-0.0357658453,
0.0000439229,
-0.0500817001,
-0.3697964549,
-0.0981756821,
0.2430106848,
0.1628290415,
-0.0169941429,
0.0875566378,
-0.2129042596,
-0.5013253689,
0.1568904668,
0.0290888045,
0.4434940815,
0.4764745831,
-0.0001143291,
0.0590150356,
0.5336082578,
-0.1721927971,
-0.2207333595,
-0.3665744364,
-0.1042753607,
0.0299767759,
0.3377231061,
-0.1147819608,
-0.2951819897,
-0.4295989871,
0.2964657545,
-0.2538515925,
0.3996419013,
0.2763581276,
0.1636177301,
0.4095644653,
-0.0791268945,
-0.0339843668,
0.0689692572,
0.2879213691,
-0.2252507508,
0.070765011,
0.0303247962,
0.2253851444,
-0.1104778945,
0.3227474093,
-0.1295972168,
0.0159947444,
0.3016057909,
0.0295168199,
-0.0843176395,
-0.2898899615,
-0.0100486055,
0.4630506635,
0.75978297,
-0.0745313317,
-0.054638911,
0.1322189569,
0.2434215695,
-0.1347715557,
0.1288358718,
0.2435569316,
-0.3353625536,
0.1350526065,
-0.1384792328,
-0.0922189429,
-0.2370916605,
-0.0845949426,
-0.1441578567,
0.1129646897,
-0.1270328313,
0.0747158304,
0.1418991238,
-0.0531422719,
0.0104744928,
-0.0828695968,
-0.1980441064,
-0.0453636386,
-0.2052705884,
-0.0374991484,
0.1801974028,
-0.3278357387,
-0.1177716479,
0.5059679747,
0.5098189712,
0.0792589262,
0.0793882012,
0.2004880458,
0.0849132985,
-0.132350713,
0.110612452,
0.0920038968,
0.2700298429,
-0.0637784004,
0.2326980382,
-0.2723047733,
-0.2461488396,
0.1393264681,
0.0132975057,
-0.2855447233,
0.3722068965,
-0.2950871885,
-0.1200428307,
0.1307469755,
-0.4762996435,
0.0533912517,
0.0127449539,
0.3302428722,
-0.4018425941,
0.1187695116,
0.2641046345,
0.1264961362,
-0.2791269422,
-0.3729017973,
-0.1162845269,
-0.0432897471,
-0.1977443695,
0.0276373941,
0.402592212,
-0.0834857821,
-0.0032104063,
-0.1097257808,
-0.1436003149,
0.0303836409,
0.3005194068,
-0.0617134459,
0.2661832273,
0.2871619463,
0.2963688672,
0.0762529299,
0.0609006658,
-0.3154716492,
-0.0533763096,
0.3552182317,
-0.025516605,
-0.163856253,
-0.3076989949,
0.1413361877,
-0.4597539902,
0.0263199136,
-0.4878700078,
0.1332459152,
-0.4504693151,
-0.5213211179,
-0.3146470189,
-0.1433103234,
-0.0631833971,
-0.0308598373,
0.6371549368,
0.6547688246,
-0.6462319493,
-0.0436743274,
-0.4195152819,
-0.3337060511,
0.3038482368,
0.036242038,
-0.0372022688,
-0.1720705032,
-0.2856006026,
0.095583275,
0.5270480514,
0.0318241715,
-0.3764595389,
0.2826695442,
-0.1322071254,
-0.0617800802,
0.0315856487,
0.1187549978,
0.2856101096,
0.0390027277,
-0.5029680133,
-0.1863673776,
0.1260086745,
-0.1085567921,
-0.30494681,
0.0062231445,
0.0530383959,
0.2351608872,
0.1965220571,
0.120221734,
-0.0721348301,
0.1775571704,
0.1413998008,
0.2355889231,
0.4079595208,
0.2077417374,
0.3541072309,
0.0400034003,
-0.1977529675,
-0.1701382697,
-0.4264080226,
0.0291855726,
0.0143180015,
0.1824581772,
0.1156389713,
0.0388647169,
-0.06458731,
-0.0776702315,
-0.2305270731,
-0.210997507,
0.1521054357,
0.2390356362,
-0.2236052305,
0.0952798724,
-0.3134433329,
0.0745911896,
-0.1209556684,
-0.0701011121,
-0.2386741787,
0.6265285015,
-0.2262289971,
-0.177688241,
-0.0464947708,
-0.063470602,
-0.2365184128,
-0.0476418808,
0.0269201268,
0.2215414643,
-0.2861153483,
0.0175314602,
0.0220094323,
0.0306313001,
0.1895122677,
-0.9186627269,
0.1714149117,
0.1536275148,
0.1311346442,
-0.1124401316,
-0.412709713,
-0.0315162428,
0.2327937782,
0.183725372,
0.0300519764,
0.0069894921,
0.0275063161,
-0.1149500832,
-0.2700667083,
-0.1032942012,
0.1273008883,
0.1774428636,
0.1729771793,
-0.0971588194,
-0.5576840639,
-0.1560449004,
-0.0718376562,
0.2308599651,
-0.02166868,
0.0931689814,
-0.4233149886,
-0.0084459847,
0.1549089849,
0.1271228641,
0.1608242691,
0.1464391053,
0.2777133882,
0.2064207345,
0.0562895723,
-0.0776684582,
-0.1434753239,
-0.045014143,
-0.0898784176,
0.1409924328,
-0.0962100849,
0.2244224101,
-0.1752946228,
-0.2784504592,
0.1916616559,
0.4294983447,
-0.2637165785,
-0.0321699418,
-0.4350876212,
-0.3543919921,
-0.1151124835,
0.1664984375,
-0.1836152822,
-0.2178589106,
-0.179418847,
0.4941994846,
0.0050914218,
0.0948795453,
-0.3751083612,
0.2324288189,
0.0819994286,
0.2545337081,
-0.2815338969,
0.0720102489,
-0.3631711304,
0.1604940742,
0.3185358047,
0.1557279676,
0.3065708876,
-0.1413014084,
0.1325986534,
-0.2842805684,
-0.2019464076,
0.1559815258,
0.2436573058,
0.009067731,
0.0448226593,
0.3969713151,
-0.1475197524,
-0.1392627507,
0.2854153812,
-0.2093854696,
-0.1654359996,
0.057795614,
-0.006791261,
0.0392412692,
-0.2319550067,
-0.1603737473,
-0.2265946418,
-0.5262544155,
0.0716880113,
-0.073531501,
0.1398599297,
0.0143164238,
0.1746157259,
0.2183092386,
-0.0397552475,
-0.2611753345,
0.084607549,
-0.3063941002,
0.3101693988,
-0.3783235848,
-0.5071271062,
0.4073181748,
0.0702966601,
0.040317867,
0.0057261363,
-0.8476647735,
0.1456041634,
0.1111366302,
-0.0095736682,
-0.0342346877,
-0.276955992,
0.1930356622,
0.067377381,
0.0178302824,
-0.0741650537,
-0.0976848751,
-0.0102184657,
-0.2523365915,
0.4114535153,
0.191570729,
0.394854784,
0.0258616693,
0.2563775778,
0.3870282471,
-0.0463127978,
0.3676632941,
-0.2059028,
0.6197297573,
-0.1257539243,
-0.0175102968,
0.0833940953,
0.2419942617,
0.1543847024,
0.2275824845,
0.043643564,
-0.2517355382,
-0.3891763091,
0.2420557886,
0.0282461774,
-0.2265811861,
0.2855305374,
-0.2113329172,
-0.0252526458,
0.0207603741,
0.1417780966,
-0.0200676806,
-0.2744263113,
-0.2842494249,
0.4708939493,
0.2631099224,
0.0857363343,
-0.3388928175,
0.343865037,
-0.447008878,
0.0138894022,
-0.0777893364,
0.422876507,
-0.1594686359,
-0.0388269983,
0.1295731068,
0.022523934,
0.2013153285,
-0.2414650768,
0.0348012783,
0.3943342566,
0.1130509377,
-0.3029448092,
-0.1239623725,
-0.1586229503,
-0.136936456,
0.130502373,
-0.0057863533,
-0.0870023221,
-0.2002398819,
0.359022975,
-0.1020404026,
-0.2362777293,
-0.3214558065,
-0.1168257892,
0.0305509176,
0.0981109664,
-0.1550045162,
-0.1522966176,
-0.1354222298,
-0.1813108027,
-0.0010713447,
-0.0652714297,
0.0468812957,
0.1905877292,
0.0801942945,
0.4163569808,
0.034709055,
0.2813803554,
0.3209666312,
0.174214825,
0.4530291855,
0.3894591331,
0.0763689652,
-0.1052616239,
0.5020315647,
-0.1448143721,
0.0704963133,
0.0661185011,
0.1549074799,
-0.1441289037,
0.3519827425,
0.1237688959,
-0.3788995445,
0.3590795398,
0.2335478216,
-0.3076376021,
-0.3736992776,
-0.4755598307,
0.4846490026,
0.0148653928,
0.1276731342,
0.2136386633,
0.1238357648,
0.0829627961,
0.0690210089,
-0.0185179748,
0.8461377025,
0.2070325017,
0.0202215668,
0.3457297385,
-0.0087844292,
0.196370542,
-0.0383142233,
0.0407849476,
-0.3314550221,
-0.463060528,
-0.1403217018,
-0.1268372983,
0.1349355876,
0.0943713039,
-0.308011353,
-0.1933513433,
0.3685699403,
0.1671334356,
0.1153712571,
0.1887414604,
0.0874465406,
0.0938178152,
0.096966207,
0.1559844464,
-0.1079799309,
0.300762862,
0.0019320258,
-0.1442150027,
0.0190557744,
-0.0272918474,
-0.5761521459,
0.22594136,
0.1949218512,
-0.1842586249,
0.0396036506,
-0.3388299346,
0.3068272471,
0.270786047,
-0.3327918649,
0.2780113518,
-0.2981599867,
0.1761681139,
0.1080228686,
-0.0738781989,
0.0294215959,
0.2726036608,
0.180334866,
-0.2774635255,
-0.2208392173,
0.2592914999,
-0.1618184596,
-0.1946543455,
0.1198949665,
-0.1021932587,
0.4448920488,
-0.0284947455,
0.1430937797,
0.0273169968,
-0.1559924632,
0.0427369438,
0.1203873456,
0.1310776174,
-0.0444427915,
-0.0120386193,
0.3223082125,
-0.1392180175,
0.0342219956,
0.5260997415,
-0.0906965509,
0.1105946973,
0.5690432191,
0.257304132,
-0.1144025177,
-0.1874643713,
0.1226682141,
0.4952023625,
-0.3077559173,
-0.0661024302,
-0.2463472635,
0.2111612558,
0.4379188716,
0.2522176802,
0.1708690077,
-0.3055122793,
-0.2263648212,
-0.3340679109,
-0.1744432747,
0.1209446415,
-0.1164733171,
0.3103097677,
-0.0472381227,
0.0247521363,
0.197315529,
-0.2324555814,
-0.3199236095,
-0.0184408836,
-0.1562668532,
0.069480598,
0.1268723458,
0.0045511033,
0.1466527283,
-0.1102472246,
0.0012927697,
0.0787976906,
-0.3430275321,
-0.1162360981,
-0.2037626654,
0.1607631445,
0.1040094048,
-0.2984414697,
-0.0761575401,
-0.0492671393,
-0.2699949145,
0.095282346,
-0.1735914052,
-0.062783666,
-0.1663514376,
0.0736265182,
0.2316929847,
0.1610842198,
-0.3707666993,
0.3622833192,
0.185622111,
0.4587868452,
-0.1911508888,
0.1304686666,
0.0629783645,
-0.0206074435,
-0.3432031274,
0.0233360231,
-0.0217113011,
-0.1129348353,
0.4992696941,
-0.1821292937,
0.4434138834,
-0.0398806669,
0.4819402993,
0.3712092042,
0.0218660086,
-0.0509227179,
0.5512432456,
0.15831168,
-0.1639169008,
0.320284158,
0.1127828285,
0.4649906754,
0.0831450075,
-0.0181486346,
-0.1728558838,
-0.0671463907,
-0.0041846936,
0.1730790138,
0.3002869785,
-0.2164314538,
0.2149406821,
0.4177623093,
-0.2102819085,
0.0690270439,
0.0334553197,
0.2184548825,
-0.0259589981,
0.2629742622,
0.0767930076,
0.2135236561,
0.0517882966,
0.2528543472,
-0.0460589901,
-0.5343078375,
-0.1047343016,
0.2326302379,
0.006382199,
0.2329644263,
0.012746078,
0.1972603202,
-0.1162689924,
0.0450209714,
-0.1658352911,
0.2039710283,
-0.1418293864,
0.1760438383,
-0.5118870735,
-0.1388290375,
-0.0836369917,
0.0588626303,
0.1677358001,
0.0418688208,
-0.227762416,
0.2700251639,
-0.1164029166,
-0.284675926,
-0.2188414931,
0.12106058,
0.0106690666,
-0.2501954734,
0.1815727204,
0.4443156421,
-0.0225501265,
0.1934145987,
0.4289497137,
0.2338000685,
0.3323462009,
0.2736908495,
-0.0145306652,
0.23130925,
-0.1597273648,
-0.0804770514,
0.0173205119,
0.4057659507,
-0.1950690001,
0.1976146251,
0.0590230599,
-0.1518639922,
0.2680940628,
-0.2535459697,
0.3100645542,
-0.01312852,
0.0532386862,
-0.1978149414,
-0.1422072798,
-0.1887307912,
-0.4362283349,
-0.2252277136,
0.097672753,
0.0298927184,
-0.0030486775,
-0.0715201497,
-0.2767507434,
0.0541422889,
0.1095544323,
0.3713501692,
0.4065033793,
0.0243959334,
0.0929100215,
-0.364446938,
-0.8054866195,
0.3159635067,
-0.1083531305,
-0.0763240159,
0.1350344867,
0.2264100015,
-0.1150057167,
0.1743037254,
-0.0659162924,
0.0170821566,
-0.0346929841,
0.4664407372,
-0.3589348495,
-0.2299095839,
0.2246567309,
0.1713311672,
-0.220544681,
-0.0784841552,
0.2546993494,
-0.1592403054,
0.0350007676,
-0.0659826174,
0.0123209404,
-0.284799546,
0.0995616987,
0.2980928421,
-0.0301746894,
0.4470245838,
0.142166853,
-0.2541333139,
-0.3089751899,
0.1521017998,
-0.1910653263,
-0.0412146412,
0.3676814735,
0.5103719234,
-0.0578181408,
0.0010653208,
-0.2208048999,
-0.0413183831,
-0.0176873691,
0.0414292999,
-0.6576736569,
-0.0335068926,
-0.1568508595,
0.0357262269,
0.2558899522,
-0.1250771433,
0.0352605321,
-0.2219291329,
-0.3823105395,
-0.209740594,
0.3522504866,
-0.3263478577,
0.1347814798,
-0.2660873234,
-0.2149320245,
-0.145790413,
0.0258554351,
-0.479943037,
-0.0219846945,
0.2943274975,
-0.1970777363,
0.3519704938,
-0.0151863173,
-0.1537107378,
0.1218231171,
-0.1365558803,
0.5629573464,
0.020917736,
-0.1748509258,
-0.0144348945,
-0.1541685909
] |
https://github.com/huggingface/datasets/issues/4291 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message | Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :) | ### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes | 37 | Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
### Link
https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train
### Description
The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?
### Owner
Yes
Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :) | [
-0.6053087711,
-0.0000201275,
0.0799933597,
0.2253192961,
-0.1501957178,
-0.1735897362,
0.2938115001,
0.2592690885,
0.0822659805,
0.301726222,
0.0461583324,
0.022501966,
-0.3796801269,
0.0506925099,
0.03596,
-0.1937340349,
-0.0915672556,
0.3536639512,
-0.1370633394,
-0.0472362041,
-0.0756078213,
-0.0037191762,
-0.3999133706,
-0.0477565229,
0.1961969137,
0.1561694741,
-0.0829183236,
-0.0286820009,
-0.2558894455,
-0.4636775553,
0.2054644525,
0.1238135695,
0.3929213583,
0.4485907853,
-0.0001192772,
0.0834411085,
0.5539522171,
-0.102578178,
-0.1196634844,
-0.3844614625,
-0.0721902847,
-0.0095718531,
0.35363096,
-0.0915513188,
-0.3670881391,
-0.4111126959,
0.3057406843,
-0.2640912533,
0.2740582824,
0.2770543098,
0.1354030669,
0.4375462532,
-0.1754001081,
-0.1505256444,
0.1659615636,
0.2888663113,
-0.1692209393,
0.001585643,
0.1400709152,
0.0975446925,
-0.0997872055,
0.2901645899,
-0.0880875885,
-0.0970715359,
0.2652718723,
0.095863618,
-0.1455849707,
-0.3172337115,
-0.0202031303,
0.4698252678,
0.8066284657,
-0.0384702906,
-0.1539165676,
0.1013440788,
0.2350113392,
-0.0339594893,
0.1932144463,
0.2421210706,
-0.2519103289,
0.1834480166,
-0.1799942106,
-0.0033692198,
-0.1999910027,
0.0040999893,
-0.2283171266,
0.0396893099,
-0.1354772449,
0.0785935149,
0.145089522,
-0.0003115304,
-0.0561790019,
-0.1821167022,
-0.2273864299,
-0.0434693061,
-0.1042960584,
0.0122233639,
0.2391905338,
-0.3924232423,
-0.1369440258,
0.5188081861,
0.4142097831,
0.1370666921,
0.0442603156,
0.2020860463,
0.1127815172,
-0.1769751906,
0.1368556917,
0.338306129,
0.306517154,
-0.0086880159,
0.3201614022,
-0.2139275074,
-0.1491423696,
0.0069056349,
-0.1353096217,
-0.2898711264,
0.3643853664,
-0.2885157466,
-0.2345031798,
0.211183235,
-0.4104499817,
0.0637505427,
0.0126737934,
0.3672566712,
-0.3555161655,
0.0490251742,
0.3241553307,
0.1322913617,
-0.3283002973,
-0.2251181901,
-0.1858362854,
0.0250512064,
-0.2317859381,
-0.0003003114,
0.3723363578,
0.12341775,
-0.0406462476,
-0.1042672619,
-0.1585452557,
0.0001009371,
0.175142765,
-0.0512480475,
0.2113666385,
0.3448687196,
0.2907159925,
0.0607685521,
0.0180003326,
-0.3365226984,
-0.0452704541,
0.3667688966,
0.1234362051,
-0.1177286655,
-0.2751761973,
0.1298562884,
-0.5374485254,
0.0264240056,
-0.4953741729,
0.1911562532,
-0.4559735656,
-0.3785144389,
-0.2894459665,
-0.1961871982,
0.0081411507,
0.0307119656,
0.6020917296,
0.6777383685,
-0.5689072609,
-0.079343915,
-0.3471742272,
-0.4304798543,
0.3041686416,
-0.0116674192,
-0.0288701914,
-0.1900769025,
-0.3225812614,
0.1816966832,
0.5332459807,
-0.0167490244,
-0.3464336693,
0.2373516858,
-0.1719155014,
-0.091134645,
0.0658691674,
0.085014686,
0.2090731263,
0.0698388293,
-0.4831224978,
-0.2582398057,
0.1423365176,
-0.1691525429,
-0.3288373351,
-0.0386133268,
0.0214468595,
0.2329680771,
0.3237445354,
0.0257265586,
-0.010056057,
0.0906783044,
0.2518519163,
0.1675707847,
0.3641337156,
0.2586050034,
0.4293773174,
0.0305669457,
-0.1940062195,
-0.2273605019,
-0.3996755183,
0.0277600493,
0.0386685915,
0.2079672366,
0.1062801406,
-0.0036756645,
-0.0763850287,
-0.0522679277,
-0.282764703,
-0.2260679752,
0.1023177654,
0.1067755967,
-0.2730692923,
0.1083703116,
-0.2692726254,
-0.00324497,
-0.1122832,
0.0492939055,
-0.2180530578,
0.5863927603,
-0.2171762586,
-0.1882075071,
0.0163488369,
-0.014802427,
-0.2500440776,
-0.0992065072,
0.0294077247,
0.1507961005,
-0.1491492689,
0.0836447775,
0.0327422731,
-0.0584900305,
0.1962769479,
-0.8871465921,
0.0910421535,
0.0646799207,
0.0378633887,
-0.08868476,
-0.4640695751,
0.0794581026,
0.2558695972,
0.1007624641,
-0.0273173489,
0.0546601489,
-0.0239385013,
-0.1768171787,
-0.2105389386,
-0.1884699017,
0.2387643903,
0.2301723063,
0.180383265,
-0.1655534059,
-0.5671557188,
-0.1394684315,
-0.1985439658,
0.1284202188,
-0.03102942,
0.0385583304,
-0.3120976985,
0.1216437593,
0.0895696059,
0.1598755717,
0.0776640624,
0.1536580622,
0.2215788513,
0.2471777052,
0.0576349832,
-0.1165381595,
-0.0277426038,
0.0252394974,
-0.1938333213,
0.1477909833,
-0.0973908305,
0.1915716231,
-0.1003811955,
-0.2489262521,
0.1640550494,
0.4643539488,
-0.3705774844,
-0.0523323976,
-0.4508478343,
-0.3079367578,
-0.1031866074,
0.1540240645,
-0.1241732463,
-0.2670580745,
-0.1791945547,
0.4320557714,
-0.1280402839,
0.1173322126,
-0.4587445259,
0.1155428588,
0.090247862,
0.2503669262,
-0.1605425626,
0.1606908143,
-0.4006852508,
0.1572640687,
0.3764458895,
0.1305505931,
0.3003644943,
-0.1634015888,
0.1298823804,
-0.3050156534,
-0.279353261,
0.159971416,
0.2305276543,
0.1213470623,
0.1684336066,
0.1986397654,
-0.1154959649,
-0.0648417324,
0.2593418062,
-0.083413735,
-0.1943667233,
0.09267243,
0.0020065876,
-0.141733855,
-0.2491230816,
-0.1999234855,
-0.1968772113,
-0.4478625655,
0.0507314093,
-0.1302194297,
0.0717451274,
0.0459658951,
0.227275297,
0.2494738996,
-0.1228026897,
-0.3184759319,
0.1401650012,
-0.2598867416,
0.3661050498,
-0.2986851335,
-0.5963428617,
0.3822773099,
-0.0575890541,
-0.1285912097,
0.0698116422,
-0.8463964462,
0.0727970153,
0.0760085359,
0.0417918116,
0.0638069957,
-0.2651492953,
0.124178268,
0.0784703195,
0.0582321584,
-0.0896664187,
-0.0445698164,
0.0422284417,
-0.3576522768,
0.3613865972,
0.052775003,
0.2549772859,
0.0059016189,
0.2106218785,
0.462572962,
0.0318965577,
0.2665117979,
-0.2187585682,
0.5919658542,
-0.016265668,
-0.0289022457,
0.1612624675,
0.2754821777,
0.1548810005,
0.2564843893,
-0.0106808851,
-0.1331185848,
-0.3283134997,
0.2906191945,
0.0260721259,
-0.2908224761,
0.2781724036,
-0.2083898783,
0.0167718511,
0.1062232703,
0.2367028594,
0.0055200276,
-0.3032808006,
-0.3268112242,
0.5229393244,
0.2518080771,
0.0266003925,
-0.3201159239,
0.3089135587,
-0.4773233831,
0.0758106634,
-0.0637929142,
0.3610317409,
-0.1665830165,
-0.0581019819,
0.0503442213,
0.0274966843,
0.3250753582,
-0.1482899785,
0.0567943975,
0.3569011986,
0.0216341894,
-0.3000946343,
-0.210961774,
-0.1791778356,
-0.0759555846,
0.0004848,
0.1738779843,
-0.0259941872,
-0.2637026906,
0.378431201,
-0.1057260484,
-0.2069255114,
-0.3332491815,
-0.038317468,
0.0038327635,
0.14974536,
-0.21761401,
-0.0699448586,
-0.0821509585,
-0.2880373299,
-0.0608110428,
-0.054048948,
0.0788920745,
0.2956702411,
0.0770718381,
0.4217192233,
-0.092031315,
0.3493589461,
0.3267092705,
0.0635659769,
0.4567932487,
0.379855901,
0.1104199067,
-0.1734907478,
0.5066099763,
-0.267157048,
0.1151777655,
0.0923768282,
0.1559916139,
-0.1367480308,
0.2959222496,
0.1649909019,
-0.3867965639,
0.3540689349,
0.2309581935,
-0.2546718121,
-0.3497831821,
-0.432100147,
0.4846552014,
0.0848271027,
0.1081737205,
0.1868225783,
0.2282957435,
0.0060152547,
-0.0326284841,
-0.0340377167,
0.7370910048,
0.2113694698,
0.017219035,
0.3595048785,
-0.0304587074,
0.0966646671,
-0.0089119906,
-0.0142812002,
-0.430054456,
-0.4971157014,
-0.1386430711,
-0.2134579122,
0.261256218,
0.0614677072,
-0.2152385563,
-0.1572306752,
0.4016522467,
0.1735162288,
0.1536718458,
0.0721835047,
0.0406743661,
0.2128369212,
0.2075231224,
0.1125313342,
-0.0663679913,
0.3000037968,
0.0158101115,
-0.0965472534,
-0.1559328139,
-0.0279247425,
-0.6183640361,
0.2137955278,
0.1242069602,
-0.211625576,
0.2150489092,
-0.3903817534,
0.4207869172,
0.3403140008,
-0.347576052,
0.2894828618,
-0.273001194,
0.1378870606,
0.0704960674,
-0.09902706,
0.0190446395,
0.2680931091,
0.1406096965,
-0.2877338827,
-0.2109372169,
0.1234423891,
-0.1102296263,
-0.0164695289,
0.0557112992,
-0.121324271,
0.3865692914,
-0.1395687312,
0.0710542202,
-0.0422573201,
-0.0885593146,
0.0051419539,
0.097200796,
0.1593797654,
-0.0664276183,
0.0620533638,
0.2900582254,
-0.1148501858,
0.0835291371,
0.4691383541,
-0.1672641039,
0.0468297414,
0.6227648258,
0.3141689003,
-0.110009782,
-0.1981063038,
0.1718765348,
0.5502776504,
-0.250838697,
0.0436138958,
-0.3288108706,
0.1688280255,
0.488451153,
0.2780680656,
0.1938567609,
-0.4906102121,
-0.102055274,
-0.3559999764,
-0.1133783832,
0.1478168964,
-0.1445064247,
0.3950254619,
-0.1089629158,
0.1812959015,
0.1719957143,
-0.3577342331,
-0.2876771688,
0.0870962888,
-0.0864099711,
0.0748361424,
0.1324767917,
0.0453574844,
0.0883379132,
-0.2105579078,
-0.0036967625,
0.057720907,
-0.3477294743,
-0.11975611,
-0.2520214319,
0.1644217968,
0.0544161238,
-0.2481925488,
0.0852594376,
0.0516843833,
-0.1473694742,
0.1036393791,
-0.1999046803,
-0.0317657255,
-0.1122254953,
0.1562521607,
0.2399612665,
0.1494192183,
-0.3147311211,
0.3881439269,
0.165604189,
0.4475440681,
-0.1912039071,
0.1299384683,
0.0955235511,
0.0193117056,
-0.2498566061,
-0.0101339892,
-0.0749382302,
-0.031470459,
0.4568181038,
-0.2440335453,
0.4633410871,
0.0777586922,
0.5264284015,
0.3731827736,
-0.0928795487,
-0.0642107651,
0.4989568293,
0.1386553943,
-0.2073108703,
0.3243557215,
0.2283135206,
0.5986735225,
0.0764493421,
-0.0262291003,
-0.1679169089,
-0.0736960024,
-0.0794388056,
0.2559531629,
0.2710799575,
-0.1276643276,
0.3690380752,
0.4916297495,
-0.1874079108,
0.1052737162,
0.0230227616,
0.2498616874,
0.0379672535,
0.4033236504,
0.0918233916,
0.2369761765,
0.0168606509,
0.3394041657,
-0.0166430082,
-0.5578356981,
0.0231069382,
0.1761545241,
-0.0342677943,
0.2050803453,
0.0909670666,
0.2537783682,
-0.206112355,
0.1286993325,
-0.1489126682,
0.2476373166,
-0.1636333168,
0.1196990684,
-0.497020036,
-0.1434753537,
-0.1303184927,
0.0505538806,
0.1217245013,
0.062261153,
-0.2298134714,
0.2022428215,
-0.1335076988,
-0.2563697696,
-0.1120570078,
0.0898773596,
0.0439519547,
-0.2696365118,
0.0892042518,
0.4771281481,
-0.0501493961,
0.2667553127,
0.4865610003,
0.2334650159,
0.2340014279,
0.1376376599,
-0.1141100973,
0.1694556177,
-0.1594899893,
-0.1096029282,
0.019799361,
0.3834149539,
-0.1365944743,
0.2174251229,
0.0465937182,
-0.1070659533,
0.2991840243,
-0.1920507103,
0.2677934468,
-0.0657022893,
0.1421916634,
-0.201755479,
-0.2073764801,
-0.1165366098,
-0.4866994917,
-0.1429436803,
0.12870875,
0.1035297215,
0.0640769228,
-0.0465188511,
-0.1814743131,
0.0337915756,
0.180748865,
0.2503276169,
0.453889221,
-0.0140261687,
0.0417707898,
-0.3341203928,
-0.7574344873,
0.3335330784,
-0.066357933,
-0.181041792,
0.1083145067,
0.1247197837,
-0.123254098,
0.1049591601,
-0.018933041,
0.0793050155,
0.0331026576,
0.5406765342,
-0.4341017902,
-0.275767386,
0.1266768575,
0.1011059731,
-0.2080074996,
-0.0474042967,
0.2397004366,
-0.1431109309,
-0.0115976501,
-0.14676781,
0.071091637,
-0.2370552272,
0.0731804967,
0.2284746915,
0.0287705362,
0.4398336112,
0.1483002901,
-0.2234603912,
-0.3829338551,
0.1425485164,
-0.1514500678,
-0.0018801746,
0.3111893535,
0.5176708698,
-0.098553054,
-0.030790329,
-0.1602376848,
-0.1222505271,
0.0039326791,
0.0727249607,
-0.645121038,
-0.0268263277,
-0.145628795,
-0.0451767631,
0.2844791412,
0.0246939007,
0.01904683,
-0.1690772176,
-0.329814136,
-0.26899755,
0.2975932062,
-0.3583940864,
0.1138354763,
-0.2124037445,
-0.2697161734,
-0.1860196143,
0.0097144628,
-0.4310154021,
0.0084850611,
0.3037337959,
-0.2605180442,
0.3448647261,
0.0239244401,
-0.0154999113,
-0.0181637369,
-0.0870576501,
0.6294339299,
0.0882897973,
-0.2219825536,
-0.0413502865,
-0.1716698706
] |
https://github.com/huggingface/datasets/issues/4287 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None | So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above.
As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered.
So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU.
I'll add the code in a PR linked to this issue in case you want to merge it! | ## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
| 102 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above.
As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered.
So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU.
I'll add the code in a PR linked to this issue in case you want to merge it! | [
-0.2677792013,
-0.1930617243,
-0.0503546819,
0.2116217315,
0.2999023795,
0.0705516487,
0.6779098511,
0.3354715109,
0.1389086396,
0.4872550368,
0.1502405405,
0.3312829435,
0.1982175112,
-0.3838970661,
-0.1113043576,
0.026361268,
0.2100861073,
0.2211518586,
0.0979964212,
0.0112956595,
-0.177514568,
0.1019165292,
-0.0020202897,
0.1137172058,
-0.5356395245,
0.0256011337,
-0.0485668182,
-0.1697057188,
0.0819108114,
-0.4138983786,
0.117064178,
-0.232299,
0.163465485,
0.6383319497,
-0.0001184857,
0.0760866851,
0.2688557804,
-0.1572678089,
-0.2099101245,
-0.0938901678,
-0.138294518,
-0.1355232298,
-0.1245266795,
-0.4097552299,
-0.0365439057,
-0.2017738074,
-0.0644812956,
-0.3826678097,
-0.2210728824,
0.304174155,
0.135673508,
-0.0405080467,
0.1465205997,
-0.1805744469,
0.0919256955,
-0.2255586833,
-0.4007888734,
-0.2110323906,
0.0188936945,
0.1128020659,
0.1141520366,
0.3374991417,
-0.0162682328,
-0.053549882,
-0.0280633345,
0.0649712309,
0.5522335768,
-0.3031113446,
0.0509035662,
0.1636683494,
0.1770268381,
-0.2434361577,
-0.295273453,
-0.1760010272,
0.1185250655,
-0.2467817217,
0.3819136322,
-0.3112471998,
-0.2169712484,
-0.0165351238,
0.1135793105,
0.0187697243,
0.03518489,
0.1877481788,
-0.0333564393,
0.1811662912,
-0.0500089303,
0.2051398605,
-0.0709695593,
-0.1600439399,
0.1044306755,
-0.282674104,
0.1555432677,
0.0514475927,
-0.7197321057,
0.0170728117,
0.1100983545,
-0.5740899444,
-0.1972285807,
-0.1041742936,
-0.1736025959,
0.0581314452,
0.1380948126,
0.3258379102,
-0.3228495419,
0.2221529931,
-0.0089613274,
0.1417237818,
0.2095215768,
0.2314281464,
0.1997854263,
-0.1213081032,
-0.2648592889,
-0.1973141432,
-0.3578031659,
-0.037157014,
0.2764658928,
-0.1399419308,
-0.612003386,
0.3015881181,
-0.2571416497,
0.2225394547,
0.3637178242,
0.4657812417,
0.1609994769,
-0.2492825091,
0.0273907613,
0.1433086693,
0.0054538739,
0.1020476073,
-0.1814744174,
-0.1315134168,
-0.1093587875,
0.1256220937,
0.1946565658,
-0.3070987165,
0.1454919279,
-0.3069573343,
-0.0073979376,
-0.100309737,
-0.1976178437,
-0.0555771664,
0.2342898697,
0.2483903468,
0.0298129153,
0.0592270717,
0.1765941828,
-0.2656787932,
-0.0712472051,
0.1841975451,
-0.2515280843,
-0.159730196,
-0.2966949046,
0.1389842033,
0.0116432058,
0.0269892178,
0.1856638789,
0.2037382871,
0.45598948,
0.027918214,
0.2254099846,
0.1931554526,
-0.2025149763,
-0.1387659311,
0.3272745609,
0.2465869337,
-0.2242040634,
-0.3134718537,
-0.0951400176,
-0.0938642323,
-0.0821989551,
0.0678243935,
0.057549037,
0.184644565,
-0.37646842,
0.2920623422,
0.3177112937,
-0.1874574572,
-0.2459539473,
-0.0700318068,
-0.1274102479,
-0.1495339721,
0.3183277547,
0.0724650472,
0.1718821079,
0.0870164856,
0.3471657336,
0.0436540768,
-0.1153765172,
-0.1117787361,
-0.0845763087,
-0.2577617466,
0.3251139522,
0.1603980362,
0.108716853,
0.1043329835,
-0.0160053466,
-0.3212739229,
-0.0775929093,
-0.241276145,
0.0817411691,
0.18565391,
0.5382339954,
0.195945099,
0.4102753699,
-0.1761276126,
-0.3003650904,
0.2351198643,
0.0705422908,
0.1185260415,
-0.473719269,
-0.1219217107,
0.0317416675,
-0.0633913353,
0.0202540625,
-0.0465919152,
0.0537548661,
-0.076922752,
-0.0057609924,
-0.1450968981,
-0.2824340463,
0.1871915609,
-0.282261461,
0.0571881533,
-0.3771569729,
0.3255268335,
-0.2016386688,
-0.2545164227,
-0.2661587894,
0.3665424585,
0.3191076815,
-0.1414272934,
-0.1778814048,
0.3329077661,
0.1556868553,
-0.1614269316,
0.1480285525,
0.0395488068,
-0.0476334617,
-0.1503721476,
0.058716923,
0.368163377,
0.2263403386,
0.0754127055,
0.0958296359,
0.2716928124,
0.2136946917,
0.2946972251,
-0.2133517116,
-0.0000882352,
0.2921955585,
0.0818619952,
-0.0094361985,
-0.3664700985,
0.095667623,
-0.0780750588,
0.2926338911,
-0.2285069525,
-0.0382071845,
-0.129747957,
0.1365670264,
-0.1019358188,
0.080845952,
0.1040691361,
-0.20155707,
0.2429390699,
0.1020051092,
-0.4362462163,
0.3610959351,
0.0690286681,
-0.2717648745,
-0.1604083478,
-0.0189515352,
-0.180044055,
0.2998146415,
0.3092927933,
-0.1313303411,
0.18568407,
0.0494904704,
-0.1344248801,
-0.1891598701,
-0.3536972106,
0.199925676,
0.22190395,
-0.5465424061,
0.2292004377,
-0.0884528533,
-0.1179596409,
-0.0571371578,
-0.2740374804,
-0.3020784557,
-0.1688844711,
0.1132076085,
-0.0100723263,
-0.0268242341,
0.56313169,
-0.031437207,
0.3451782465,
0.2669053376,
-0.2646978199,
-0.0772076547,
-0.1635281593,
-0.0340352915,
-0.0288732927,
-0.1362821907,
-0.2700231075,
0.2465084642,
0.0252350364,
-0.0092130415,
-0.3460000455,
-0.3333972991,
0.1512129456,
-0.2294059843,
0.1619107276,
-0.066783987,
-0.1452291608,
0.1149510965,
-0.2534681261,
0.0762385949,
0.0369256102,
-0.1363533586,
0.0226665027,
-0.0825523734,
-0.0956914946,
-0.2000350952,
-0.2439639419,
0.0384104885,
-0.3259360492,
-0.0251194015,
-0.0943819731,
0.1987321675,
-0.0554596893,
0.1266539842,
0.2989879847,
-0.0274074264,
0.0936590806,
-0.2795269787,
0.0578053184,
0.316002816,
-0.0934670344,
-0.2307391614,
0.0392481275,
-0.0759067386,
-0.0012875679,
0.0924601406,
-0.2826656401,
-0.1216920465,
-0.0236992221,
0.3240506947,
0.0115712425,
0.1782149225,
0.3946534693,
0.1758317351,
-0.0248788074,
-0.3753835559,
-0.2737493813,
0.0247015115,
-0.0929381773,
0.4036743939,
-0.0335531756,
0.4804115891,
-0.0595851764,
0.3195146024,
0.332816869,
-0.5132256746,
0.5454784632,
-0.1936355531,
0.187772736,
0.0658074021,
-0.1157518849,
0.2827404141,
0.0184189714,
-0.1489590406,
0.0457282662,
-0.3147218823,
-0.2004715353,
-0.0915209576,
0.176361829,
-0.205771938,
-0.2939653695,
-0.0931611508,
-0.2134668976,
0.244354561,
-0.069068566,
0.2559351623,
-0.2862651944,
-0.0110311992,
0.2518416941,
0.4071964622,
0.1255498827,
-0.2426512837,
0.0892506614,
-0.0963273719,
-0.3369405866,
0.4827110767,
0.0184914041,
0.5099805593,
-0.1719783694,
0.0733676925,
0.1026550978,
0.1234494448,
0.8018260002,
-0.2557468414,
-0.1581705958,
0.3423094153,
0.3089136183,
-0.2554649413,
-0.2847435474,
-0.186405763,
0.180602029,
0.0868937373,
0.5751954317,
-0.1090526804,
-0.1370633841,
0.1094109938,
-0.0535981245,
-0.0763965324,
-0.2722495198,
-0.3742819428,
-0.0535001457,
-0.3180500567,
0.092193678,
-0.0947589949,
0.4154827893,
0.0888297558,
0.0046350867,
-0.3758727014,
0.0135714849,
0.0898389369,
0.23176153,
0.1532207578,
-0.0336796083,
0.3831858933,
-0.0679872036,
0.2392570078,
0.4289000928,
0.2425881177,
-0.0259666238,
-0.2498857826,
0.4352636933,
0.1420716643,
0.2369507104,
0.2851185203,
-0.1435502619,
0.1513002664,
-0.0778532326,
0.4545581341,
-0.3414155841,
0.0528200492,
0.4134407938,
0.2575814724,
-0.3164115548,
-0.2541102767,
0.4271711111,
0.1545818597,
0.0115628829,
0.2661199272,
0.3731884658,
-0.2132826746,
0.6635655761,
-0.0271133892,
0.8349602222,
0.1417266876,
-0.1361642629,
0.3292039335,
0.019131884,
0.4266368449,
-0.2621032894,
0.3030054271,
-0.36033988,
-0.2495633364,
-0.072745271,
-0.0706654191,
0.4493254125,
0.0557388961,
-0.1136083826,
0.2471146584,
-0.0684440434,
0.1738487631,
-0.0673468262,
-0.0311246011,
0.0653612688,
-0.570002079,
-0.1243764237,
0.1013353989,
0.073608093,
0.3620577753,
0.0472622178,
0.0865836963,
-0.4278534651,
-0.1301414669,
-0.3313692808,
0.0341733433,
-0.0335203968,
0.2654316723,
-0.1244590655,
-0.2336265445,
0.1903569698,
-0.2871500254,
0.5703133345,
-0.1071150452,
-0.2100858688,
0.3500594199,
-0.0225411132,
-0.0797283128,
-0.100082323,
-0.2246901542,
0.3307578862,
0.0695901588,
-0.3794130385,
0.1227923706,
0.0705380216,
-0.078665182,
-0.0268511884,
-0.072358273,
-0.0519427769,
-0.225620091,
-0.0245044585,
-0.1347044706,
0.2477797568,
-0.2440111935,
0.1126614809,
0.0810519978,
-0.4638236761,
0.2543738484,
-0.1965155751,
-0.3668318391,
-0.0758303925,
0.5537821054,
-0.0278033055,
-0.1105353534,
0.2354791611,
-0.1581863761,
-0.2709082067,
-0.0588878244,
-0.3328418136,
0.230014652,
-0.2249239385,
-0.134459123,
0.0472764894,
-0.3598711491,
-0.0762181059,
0.0007363491,
-0.1119198799,
0.3196648657,
-0.2088094503,
-0.1486584097,
-0.3978235126,
0.0638981238,
0.04302283,
0.3486230075,
0.0142490873,
0.1369826347,
-0.216274187,
-0.1777753383,
-0.2571475506,
0.0449540168,
-0.2627476752,
0.464545697,
-0.2965943515,
-0.1160293296,
0.2956578135,
-0.1968620867,
0.1271817088,
0.1477946043,
-0.0821426287,
-0.1739617884,
-0.1555579454,
0.1838450432,
0.1633325368,
-0.073325634,
-0.402630955,
-0.1589907706,
-0.2902145982,
-0.2810215056,
0.381005168,
0.295348227,
-0.0849058703,
0.2101287991,
0.0439727679,
-0.0579666421,
0.2062323689,
0.0928546116,
0.1886805594,
0.5146371722,
0.1700724214,
0.3236709535,
-0.6910559535,
0.2287747562,
-0.3531604111,
0.2041759342,
0.1243717149,
0.0811413825,
0.1878709793,
-0.306869477,
-0.1384533048,
-0.197834745,
0.0208867602,
0.2984208465,
-0.3283818066,
-0.2406269014,
0.2352151424,
0.1495817304,
-0.1251096576,
-0.054758165,
0.2422744334,
-0.2709947526,
0.3088201582,
0.3453473449,
0.3499438167,
0.0567620359,
-0.3531430364,
-0.0404630452,
0.3619587421,
0.1221084818,
-0.0491790473,
0.031946037,
0.0101659838,
0.2422092706,
0.2994847298,
0.0252175275,
0.3604408205,
0.826420188,
-0.1172439829,
0.2991402447,
0.22480838,
0.0309933126,
0.0712762475,
-0.0968818218,
0.364972353,
-0.1809900552,
-0.0952790231,
-0.0940562785,
-0.0834374353,
-0.1962089241,
-0.3054342568,
0.0289233532,
-0.2022219747,
-0.0464718565,
-0.2253268957,
-0.180399701,
0.110579364,
0.0823109597,
-0.1130440384,
-0.2422738224,
0.129007116,
-0.1942477673,
0.0044648247,
0.1347661167,
-0.3401270509,
0.1514830291,
-0.2119870484,
0.642534554,
0.5679425597,
-0.0926989838,
0.0970448479,
0.2238154262,
-0.1354351491,
-0.0202754941,
0.2093816698,
0.6584562659,
0.181210354,
-0.0892754123,
0.2834928632,
0.2227999419,
-0.1206423193,
0.0502900183,
0.1236753911,
-0.0901558399,
0.0368403718,
0.2777967155,
0.1009956151,
-0.1337872297,
-0.4207533598,
0.1571459621,
0.4895614088,
-0.0734510794,
0.146378845,
-0.4583052397,
0.1374952346,
-0.2793770134,
0.0074038357,
-0.4224885702,
0.0485527627,
0.5376588106,
-0.1823661625,
0.1943314672,
0.1332865953,
0.0381299369,
-0.3240101933,
0.1859717965,
0.0725806504,
0.176380083,
-0.3565992713,
-0.0638613403,
-0.2463026941,
0.3766397536,
-0.0809156522,
0.0476277359,
0.1262308359,
0.3178581595,
-0.1748661846,
-0.165140599,
0.1994993389,
-0.0318377912,
0.3572437465,
0.5178941488,
-0.3093318343,
-0.1866321266,
-0.4723141193,
-0.0808935538,
0.2226084173,
-0.2989882529,
-0.0046888702,
0.0000069908,
-0.0542126335,
-0.0699218661,
-0.0172746424,
0.0681575835,
0.0202240683,
0.8401679397,
-0.0192954503,
0.3667723536,
-0.1382204443,
-0.0756554604,
-0.2239338011,
-0.200959906,
-0.2226107121,
0.2323860377,
0.0624145307,
0.0109192096,
-0.0645748675,
-0.3882268965,
-0.2513391078,
0.5986821055,
0.1300269067,
-0.2277822196,
-0.1363095194,
0.2950300872,
-0.2472484708,
0.4100046158,
0.0559491031,
0.0091474373,
0.1543093622,
0.5739112496,
-0.0888167173,
-0.4936059415,
0.754250586,
-0.0743944347,
-0.1260400862,
-0.2725193799,
0.3739637136,
0.3908613622,
0.0905999467,
-0.8467720151,
-0.0328277498,
0.3328855038,
-0.1986327469,
-0.2221771479,
-0.111014843,
-0.0324489549,
0.0075858273,
-0.0946630314,
0.1081183478,
-0.1000948548,
0.181354031,
0.2981963754,
-0.1381296515
] |
https://github.com/huggingface/datasets/issues/4287 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None | Adding here the complete error traceback!
```
Traceback (most recent call last):
File "/home/alvarobartt/lol.py", line 12, in <module>
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index
super().add_faiss_index(
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index
faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors
self.faiss_index = self._faiss_index_to_device(index, self.device)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device
faiss_res = faiss.StandardGpuResources()
NameError: name 'faiss' is not defined
``` | ## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
| 66 | "NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
## Describe the bug
When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception.
All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from transformers import DPRContextEncoder, DPRContextEncoderTokenizer
import torch
torch.set_grad_enabled(False)
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base")
from datasets import load_dataset
ds = load_dataset('crime_and_punish', split='train[:100]')
ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()})
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
```
## Expected results
A new column named `embeddings` in the dataset that we're adding the index to.
## Actual results
An exception is triggered with the following message `NameError: name 'faiss' is not defined`.
## Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
Adding here the complete error traceback!
```
Traceback (most recent call last):
File "/home/alvarobartt/lol.py", line 12, in <module>
ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None`
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index
super().add_faiss_index(
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index
faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors
self.faiss_index = self._faiss_index_to_device(index, self.device)
File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device
faiss_res = faiss.StandardGpuResources()
NameError: name 'faiss' is not defined
``` | [
-0.2677792013,
-0.1930617243,
-0.0503546819,
0.2116217315,
0.2999023795,
0.0705516487,
0.6779098511,
0.3354715109,
0.1389086396,
0.4872550368,
0.1502405405,
0.3312829435,
0.1982175112,
-0.3838970661,
-0.1113043576,
0.026361268,
0.2100861073,
0.2211518586,
0.0979964212,
0.0112956595,
-0.177514568,
0.1019165292,
-0.0020202897,
0.1137172058,
-0.5356395245,
0.0256011337,
-0.0485668182,
-0.1697057188,
0.0819108114,
-0.4138983786,
0.117064178,
-0.232299,
0.163465485,
0.6383319497,
-0.0001184857,
0.0760866851,
0.2688557804,
-0.1572678089,
-0.2099101245,
-0.0938901678,
-0.138294518,
-0.1355232298,
-0.1245266795,
-0.4097552299,
-0.0365439057,
-0.2017738074,
-0.0644812956,
-0.3826678097,
-0.2210728824,
0.304174155,
0.135673508,
-0.0405080467,
0.1465205997,
-0.1805744469,
0.0919256955,
-0.2255586833,
-0.4007888734,
-0.2110323906,
0.0188936945,
0.1128020659,
0.1141520366,
0.3374991417,
-0.0162682328,
-0.053549882,
-0.0280633345,
0.0649712309,
0.5522335768,
-0.3031113446,
0.0509035662,
0.1636683494,
0.1770268381,
-0.2434361577,
-0.295273453,
-0.1760010272,
0.1185250655,
-0.2467817217,
0.3819136322,
-0.3112471998,
-0.2169712484,
-0.0165351238,
0.1135793105,
0.0187697243,
0.03518489,
0.1877481788,
-0.0333564393,
0.1811662912,
-0.0500089303,
0.2051398605,
-0.0709695593,
-0.1600439399,
0.1044306755,
-0.282674104,
0.1555432677,
0.0514475927,
-0.7197321057,
0.0170728117,
0.1100983545,
-0.5740899444,
-0.1972285807,
-0.1041742936,
-0.1736025959,
0.0581314452,
0.1380948126,
0.3258379102,
-0.3228495419,
0.2221529931,
-0.0089613274,
0.1417237818,
0.2095215768,
0.2314281464,
0.1997854263,
-0.1213081032,
-0.2648592889,
-0.1973141432,
-0.3578031659,
-0.037157014,
0.2764658928,
-0.1399419308,
-0.612003386,
0.3015881181,
-0.2571416497,
0.2225394547,
0.3637178242,
0.4657812417,
0.1609994769,
-0.2492825091,
0.0273907613,
0.1433086693,
0.0054538739,
0.1020476073,
-0.1814744174,
-0.1315134168,
-0.1093587875,
0.1256220937,
0.1946565658,
-0.3070987165,
0.1454919279,
-0.3069573343,
-0.0073979376,
-0.100309737,
-0.1976178437,
-0.0555771664,
0.2342898697,
0.2483903468,
0.0298129153,
0.0592270717,
0.1765941828,
-0.2656787932,
-0.0712472051,
0.1841975451,
-0.2515280843,
-0.159730196,
-0.2966949046,
0.1389842033,
0.0116432058,
0.0269892178,
0.1856638789,
0.2037382871,
0.45598948,
0.027918214,
0.2254099846,
0.1931554526,
-0.2025149763,
-0.1387659311,
0.3272745609,
0.2465869337,
-0.2242040634,
-0.3134718537,
-0.0951400176,
-0.0938642323,
-0.0821989551,
0.0678243935,
0.057549037,
0.184644565,
-0.37646842,
0.2920623422,
0.3177112937,
-0.1874574572,
-0.2459539473,
-0.0700318068,
-0.1274102479,
-0.1495339721,
0.3183277547,
0.0724650472,
0.1718821079,
0.0870164856,
0.3471657336,
0.0436540768,
-0.1153765172,
-0.1117787361,
-0.0845763087,
-0.2577617466,
0.3251139522,
0.1603980362,
0.108716853,
0.1043329835,
-0.0160053466,
-0.3212739229,
-0.0775929093,
-0.241276145,
0.0817411691,
0.18565391,
0.5382339954,
0.195945099,
0.4102753699,
-0.1761276126,
-0.3003650904,
0.2351198643,
0.0705422908,
0.1185260415,
-0.473719269,
-0.1219217107,
0.0317416675,
-0.0633913353,
0.0202540625,
-0.0465919152,
0.0537548661,
-0.076922752,
-0.0057609924,
-0.1450968981,
-0.2824340463,
0.1871915609,
-0.282261461,
0.0571881533,
-0.3771569729,
0.3255268335,
-0.2016386688,
-0.2545164227,
-0.2661587894,
0.3665424585,
0.3191076815,
-0.1414272934,
-0.1778814048,
0.3329077661,
0.1556868553,
-0.1614269316,
0.1480285525,
0.0395488068,
-0.0476334617,
-0.1503721476,
0.058716923,
0.368163377,
0.2263403386,
0.0754127055,
0.0958296359,
0.2716928124,
0.2136946917,
0.2946972251,
-0.2133517116,
-0.0000882352,
0.2921955585,
0.0818619952,
-0.0094361985,
-0.3664700985,
0.095667623,
-0.0780750588,
0.2926338911,
-0.2285069525,
-0.0382071845,
-0.129747957,
0.1365670264,
-0.1019358188,
0.080845952,
0.1040691361,
-0.20155707,
0.2429390699,
0.1020051092,
-0.4362462163,
0.3610959351,
0.0690286681,
-0.2717648745,
-0.1604083478,
-0.0189515352,
-0.180044055,
0.2998146415,
0.3092927933,
-0.1313303411,
0.18568407,
0.0494904704,
-0.1344248801,
-0.1891598701,
-0.3536972106,
0.199925676,
0.22190395,
-0.5465424061,
0.2292004377,
-0.0884528533,
-0.1179596409,
-0.0571371578,
-0.2740374804,
-0.3020784557,
-0.1688844711,
0.1132076085,
-0.0100723263,
-0.0268242341,
0.56313169,
-0.031437207,
0.3451782465,
0.2669053376,
-0.2646978199,
-0.0772076547,
-0.1635281593,
-0.0340352915,
-0.0288732927,
-0.1362821907,
-0.2700231075,
0.2465084642,
0.0252350364,
-0.0092130415,
-0.3460000455,
-0.3333972991,
0.1512129456,
-0.2294059843,
0.1619107276,
-0.066783987,
-0.1452291608,
0.1149510965,
-0.2534681261,
0.0762385949,
0.0369256102,
-0.1363533586,
0.0226665027,
-0.0825523734,
-0.0956914946,
-0.2000350952,
-0.2439639419,
0.0384104885,
-0.3259360492,
-0.0251194015,
-0.0943819731,
0.1987321675,
-0.0554596893,
0.1266539842,
0.2989879847,
-0.0274074264,
0.0936590806,
-0.2795269787,
0.0578053184,
0.316002816,
-0.0934670344,
-0.2307391614,
0.0392481275,
-0.0759067386,
-0.0012875679,
0.0924601406,
-0.2826656401,
-0.1216920465,
-0.0236992221,
0.3240506947,
0.0115712425,
0.1782149225,
0.3946534693,
0.1758317351,
-0.0248788074,
-0.3753835559,
-0.2737493813,
0.0247015115,
-0.0929381773,
0.4036743939,
-0.0335531756,
0.4804115891,
-0.0595851764,
0.3195146024,
0.332816869,
-0.5132256746,
0.5454784632,
-0.1936355531,
0.187772736,
0.0658074021,
-0.1157518849,
0.2827404141,
0.0184189714,
-0.1489590406,
0.0457282662,
-0.3147218823,
-0.2004715353,
-0.0915209576,
0.176361829,
-0.205771938,
-0.2939653695,
-0.0931611508,
-0.2134668976,
0.244354561,
-0.069068566,
0.2559351623,
-0.2862651944,
-0.0110311992,
0.2518416941,
0.4071964622,
0.1255498827,
-0.2426512837,
0.0892506614,
-0.0963273719,
-0.3369405866,
0.4827110767,
0.0184914041,
0.5099805593,
-0.1719783694,
0.0733676925,
0.1026550978,
0.1234494448,
0.8018260002,
-0.2557468414,
-0.1581705958,
0.3423094153,
0.3089136183,
-0.2554649413,
-0.2847435474,
-0.186405763,
0.180602029,
0.0868937373,
0.5751954317,
-0.1090526804,
-0.1370633841,
0.1094109938,
-0.0535981245,
-0.0763965324,
-0.2722495198,
-0.3742819428,
-0.0535001457,
-0.3180500567,
0.092193678,
-0.0947589949,
0.4154827893,
0.0888297558,
0.0046350867,
-0.3758727014,
0.0135714849,
0.0898389369,
0.23176153,
0.1532207578,
-0.0336796083,
0.3831858933,
-0.0679872036,
0.2392570078,
0.4289000928,
0.2425881177,
-0.0259666238,
-0.2498857826,
0.4352636933,
0.1420716643,
0.2369507104,
0.2851185203,
-0.1435502619,
0.1513002664,
-0.0778532326,
0.4545581341,
-0.3414155841,
0.0528200492,
0.4134407938,
0.2575814724,
-0.3164115548,
-0.2541102767,
0.4271711111,
0.1545818597,
0.0115628829,
0.2661199272,
0.3731884658,
-0.2132826746,
0.6635655761,
-0.0271133892,
0.8349602222,
0.1417266876,
-0.1361642629,
0.3292039335,
0.019131884,
0.4266368449,
-0.2621032894,
0.3030054271,
-0.36033988,
-0.2495633364,
-0.072745271,
-0.0706654191,
0.4493254125,
0.0557388961,
-0.1136083826,
0.2471146584,
-0.0684440434,
0.1738487631,
-0.0673468262,
-0.0311246011,
0.0653612688,
-0.570002079,
-0.1243764237,
0.1013353989,
0.073608093,
0.3620577753,
0.0472622178,
0.0865836963,
-0.4278534651,
-0.1301414669,
-0.3313692808,
0.0341733433,
-0.0335203968,
0.2654316723,
-0.1244590655,
-0.2336265445,
0.1903569698,
-0.2871500254,
0.5703133345,
-0.1071150452,
-0.2100858688,
0.3500594199,
-0.0225411132,
-0.0797283128,
-0.100082323,
-0.2246901542,
0.3307578862,
0.0695901588,
-0.3794130385,
0.1227923706,
0.0705380216,
-0.078665182,
-0.0268511884,
-0.072358273,
-0.0519427769,
-0.225620091,
-0.0245044585,
-0.1347044706,
0.2477797568,
-0.2440111935,
0.1126614809,
0.0810519978,
-0.4638236761,
0.2543738484,
-0.1965155751,
-0.3668318391,
-0.0758303925,
0.5537821054,
-0.0278033055,
-0.1105353534,
0.2354791611,
-0.1581863761,
-0.2709082067,
-0.0588878244,
-0.3328418136,
0.230014652,
-0.2249239385,
-0.134459123,
0.0472764894,
-0.3598711491,
-0.0762181059,
0.0007363491,
-0.1119198799,
0.3196648657,
-0.2088094503,
-0.1486584097,
-0.3978235126,
0.0638981238,
0.04302283,
0.3486230075,
0.0142490873,
0.1369826347,
-0.216274187,
-0.1777753383,
-0.2571475506,
0.0449540168,
-0.2627476752,
0.464545697,
-0.2965943515,
-0.1160293296,
0.2956578135,
-0.1968620867,
0.1271817088,
0.1477946043,
-0.0821426287,
-0.1739617884,
-0.1555579454,
0.1838450432,
0.1633325368,
-0.073325634,
-0.402630955,
-0.1589907706,
-0.2902145982,
-0.2810215056,
0.381005168,
0.295348227,
-0.0849058703,
0.2101287991,
0.0439727679,
-0.0579666421,
0.2062323689,
0.0928546116,
0.1886805594,
0.5146371722,
0.1700724214,
0.3236709535,
-0.6910559535,
0.2287747562,
-0.3531604111,
0.2041759342,
0.1243717149,
0.0811413825,
0.1878709793,
-0.306869477,
-0.1384533048,
-0.197834745,
0.0208867602,
0.2984208465,
-0.3283818066,
-0.2406269014,
0.2352151424,
0.1495817304,
-0.1251096576,
-0.054758165,
0.2422744334,
-0.2709947526,
0.3088201582,
0.3453473449,
0.3499438167,
0.0567620359,
-0.3531430364,
-0.0404630452,
0.3619587421,
0.1221084818,
-0.0491790473,
0.031946037,
0.0101659838,
0.2422092706,
0.2994847298,
0.0252175275,
0.3604408205,
0.826420188,
-0.1172439829,
0.2991402447,
0.22480838,
0.0309933126,
0.0712762475,
-0.0968818218,
0.364972353,
-0.1809900552,
-0.0952790231,
-0.0940562785,
-0.0834374353,
-0.1962089241,
-0.3054342568,
0.0289233532,
-0.2022219747,
-0.0464718565,
-0.2253268957,
-0.180399701,
0.110579364,
0.0823109597,
-0.1130440384,
-0.2422738224,
0.129007116,
-0.1942477673,
0.0044648247,
0.1347661167,
-0.3401270509,
0.1514830291,
-0.2119870484,
0.642534554,
0.5679425597,
-0.0926989838,
0.0970448479,
0.2238154262,
-0.1354351491,
-0.0202754941,
0.2093816698,
0.6584562659,
0.181210354,
-0.0892754123,
0.2834928632,
0.2227999419,
-0.1206423193,
0.0502900183,
0.1236753911,
-0.0901558399,
0.0368403718,
0.2777967155,
0.1009956151,
-0.1337872297,
-0.4207533598,
0.1571459621,
0.4895614088,
-0.0734510794,
0.146378845,
-0.4583052397,
0.1374952346,
-0.2793770134,
0.0074038357,
-0.4224885702,
0.0485527627,
0.5376588106,
-0.1823661625,
0.1943314672,
0.1332865953,
0.0381299369,
-0.3240101933,
0.1859717965,
0.0725806504,
0.176380083,
-0.3565992713,
-0.0638613403,
-0.2463026941,
0.3766397536,
-0.0809156522,
0.0476277359,
0.1262308359,
0.3178581595,
-0.1748661846,
-0.165140599,
0.1994993389,
-0.0318377912,
0.3572437465,
0.5178941488,
-0.3093318343,
-0.1866321266,
-0.4723141193,
-0.0808935538,
0.2226084173,
-0.2989882529,
-0.0046888702,
0.0000069908,
-0.0542126335,
-0.0699218661,
-0.0172746424,
0.0681575835,
0.0202240683,
0.8401679397,
-0.0192954503,
0.3667723536,
-0.1382204443,
-0.0756554604,
-0.2239338011,
-0.200959906,
-0.2226107121,
0.2323860377,
0.0624145307,
0.0109192096,
-0.0645748675,
-0.3882268965,
-0.2513391078,
0.5986821055,
0.1300269067,
-0.2277822196,
-0.1363095194,
0.2950300872,
-0.2472484708,
0.4100046158,
0.0559491031,
0.0091474373,
0.1543093622,
0.5739112496,
-0.0888167173,
-0.4936059415,
0.754250586,
-0.0743944347,
-0.1260400862,
-0.2725193799,
0.3739637136,
0.3908613622,
0.0905999467,
-0.8467720151,
-0.0328277498,
0.3328855038,
-0.1986327469,
-0.2221771479,
-0.111014843,
-0.0324489549,
0.0075858273,
-0.0946630314,
0.1081183478,
-0.1000948548,
0.181354031,
0.2981963754,
-0.1381296515
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | Thanks for reporting, @vblagoje.
Indeed, I noticed some of these issues while reviewing this PR:
- #4259
This is in my TODO list. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 23 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
Thanks for reporting, @vblagoje.
Indeed, I noticed some of these issues while reviewing this PR:
- #4259
This is in my TODO list. | [
-0.1009263843,
0.2100123912,
-0.0518254675,
0.2251940221,
-0.1097796932,
-0.0576233305,
0.2680732906,
0.3371189237,
-0.0792645589,
0.2063141167,
0.1244209558,
0.5698289275,
0.4415481985,
0.3652537167,
-0.0546431914,
-0.1742747575,
0.3567141891,
0.0840137601,
0.1305603534,
-0.0909449831,
-0.2684164345,
0.5139862895,
-0.2818473279,
0.1131075397,
-0.0024438461,
-0.1088764444,
-0.4653171301,
-0.1198540479,
-0.0364536755,
-0.144887507,
0.042253077,
0.1093569472,
-0.3286170065,
0.2559754252,
-0.0001096412,
-0.2272857279,
-0.0773132816,
0.0476742983,
-0.2789717019,
-0.3161999583,
-0.0444226786,
-0.3308217227,
0.0382530242,
-0.2663817406,
0.1119307205,
-0.0484998114,
-0.1596239507,
0.047948841,
0.1941673607,
0.0503654256,
0.224331066,
-0.0243198425,
0.3201378286,
0.0627526343,
0.1628894806,
-0.0239095464,
-0.3419753611,
0.0198269226,
0.3297076821,
-0.0766778216,
0.2110074162,
0.2544213533,
-0.0106532853,
-0.1501399875,
-0.3070982099,
0.1239758134,
0.1198185682,
-0.2196583152,
0.1782588065,
0.5026726723,
0.1427845061,
-0.2504121959,
-0.4591214359,
-0.2557525039,
0.0590178259,
-0.0557803735,
0.2302814722,
0.3058753908,
0.1249659434,
-0.0625860766,
0.1367468536,
-0.0829636231,
0.1441460252,
0.0899337307,
-0.3396266401,
-0.1212370545,
-0.0430877469,
-0.0559925176,
-0.334818095,
-0.1833231002,
0.3674880266,
-0.1848717928,
-0.0834595859,
0.0852476954,
-0.4613160789,
-0.0845186785,
-0.1731689423,
-0.278344959,
-0.1413929164,
-0.2923742533,
0.213935107,
0.0039636279,
-0.2970674336,
0.1654313505,
-0.0458272099,
-0.1606400162,
-0.0710575655,
0.1188707873,
-0.1903491914,
0.0497265197,
0.1094164178,
-0.100382559,
0.005285894,
-0.1762996912,
-0.3626108468,
-0.1305007637,
0.3857432008,
-0.1165457368,
-0.2995650172,
0.3059235513,
-0.0718539655,
-0.0794139504,
-0.112426661,
0.0002455734,
-0.2547895014,
-0.115313977,
0.0944068283,
0.1451175362,
-0.0963382497,
-0.2837237418,
-0.1959989965,
-0.0018880959,
-0.0740692765,
0.0276003703,
0.137499541,
0.1794658005,
0.346455127,
0.366002351,
-0.1462429315,
0.014255275,
-0.0232469551,
-0.1170394048,
-0.0367529392,
0.1816735715,
-0.14489986,
-0.0827709138,
-0.0736654326,
-0.1873885989,
0.013131585,
0.2109992057,
-0.3556283116,
0.1063892618,
-0.2902392745,
0.2481044829,
0.1234381422,
-0.0326206461,
0.2104385197,
0.2176257521,
-0.0318210311,
-0.2434751987,
0.0793065429,
-0.0752493069,
0.2278319597,
-0.141663298,
0.1974045187,
0.2118673474,
-0.4880532622,
-0.0404963866,
0.0884481668,
0.2922270298,
-0.124145925,
-0.0476289392,
0.0830384716,
-0.1609409153,
-0.1168829948,
0.1702492833,
0.1287457049,
-0.1525616199,
-0.2393290699,
-0.1347995847,
0.2676386237,
0.0378799625,
0.0063899155,
-0.3533119559,
-0.04668504,
-0.0439308174,
0.0477917865,
0.0771761835,
-0.2449295521,
-0.1222815514,
-0.4172745347,
-0.1273055375,
-0.00255445,
0.2901490629,
-0.0009162475,
0.0009976893,
0.0227596723,
-0.3104479015,
0.1445827782,
-0.0064364425,
-0.0993579999,
0.2136107981,
0.3118121326,
-0.0230684169,
0.1324468404,
0.1610923409,
-0.3506338298,
-0.0869009346,
-0.5583695173,
-0.0220929962,
-0.1133845896,
-0.0720314011,
-0.1377769113,
-0.0406433269,
0.1077146903,
0.1324867904,
0.1803771406,
-0.1072119325,
-0.0795150027,
0.1258906126,
-0.165187031,
-0.2191064507,
-0.201066792,
0.193218559,
-0.2639104128,
0.1504639089,
-0.2711706758,
-0.0859153345,
0.281519115,
0.2144113779,
0.322614193,
-0.198558107,
-0.0397369526,
0.4925363958,
0.0679379776,
-0.1657272726,
0.0555871353,
0.2825042903,
0.2520304024,
0.2165814787,
0.0039454694,
0.0485751033,
-0.0629545748,
-0.0072123781,
0.0349673443,
0.50063622,
-0.1590491235,
0.1358134598,
0.1022032425,
0.1962247491,
0.1967401356,
-0.2709746361,
0.0563847087,
-0.2297935188,
0.1597506106,
-0.0614496917,
0.3274123967,
-0.1586160958,
-0.3511632085,
0.2731753588,
0.5077377558,
-0.0193684753,
-0.0686835051,
0.0676764175,
0.0905400962,
0.1009967029,
0.0968727469,
-0.0037627388,
0.2152654827,
0.1815611869,
-0.3201690614,
0.1318323314,
0.1795662045,
-0.1539223492,
0.3975908458,
0.2093750685,
-0.3110725284,
0.0376385488,
0.1728659123,
0.2110511214,
-0.1523111761,
-0.0156265516,
0.3776569366,
0.0923072174,
-0.0931964517,
0.2744857371,
-0.1519401222,
-0.1920514256,
-0.1030779183,
-0.3751802444,
-0.2876753807,
-0.189942956,
0.1777264029,
0.0513116792,
-0.0855412185,
0.5102547407,
0.4035282135,
0.2855921686,
-0.2668792903,
0.365606755,
-0.4895308018,
-0.0605589263,
-0.2188266665,
0.1888480037,
0.1031134576,
-0.3325167,
0.1017686948,
-0.2111886293,
-0.1072418168,
-0.4667666256,
-0.5108636022,
0.1127591059,
-0.29099828,
0.2711438537,
0.082373403,
0.0506851301,
-0.4669666886,
-0.2574220002,
0.1938445568,
0.0646523312,
-0.1746846288,
0.1895431876,
-0.1510758549,
-0.3282027245,
-0.1720155776,
-0.281182766,
-0.1255694777,
-0.0573234297,
0.3623308539,
-0.1816643625,
0.2332026213,
0.3693728149,
-0.176040411,
-0.2582162917,
0.0808761045,
0.1430262178,
-0.3405611217,
-0.23061046,
0.1733336598,
-0.2331455648,
-0.302611798,
0.020048134,
-0.0075781648,
0.3305044174,
-0.1447216719,
-0.4214033186,
-0.1518364996,
0.0214277245,
0.0239002556,
0.1235085651,
0.0973496884,
0.2152563334,
0.2802807391,
-0.0890516862,
-0.2289848924,
-0.3188194633,
0.0277880244,
0.2785301208,
0.446361959,
-0.3551271856,
0.1592787504,
-0.1135889366,
-0.0314484537,
-0.0043514213,
0.3506532013,
0.1772461087,
0.0410330743,
0.0979587734,
-0.2138961852,
-0.1206075847,
0.0186457988,
-0.2866286337,
0.1055149734,
0.3142361939,
-0.292296201,
0.0847826079,
-0.1306322068,
0.0575815737,
-0.6104723215,
-0.3238409758,
-0.2088345736,
-0.1682159901,
0.3637024462,
0.3268859386,
0.0488247126,
-0.0660730526,
-0.0494036824,
0.3029884398,
0.013230511,
0.1056605503,
-0.1151926517,
-0.3425936103,
-0.070276238,
-0.1949481964,
0.3684501052,
-0.3872959912,
0.2317006141,
0.0572946072,
0.0987937301,
-0.0177340452,
0.216334939,
0.7720741034,
0.0792134777,
-0.4735856354,
0.2680613995,
-0.1569935232,
-0.1349532008,
-0.3505122066,
-0.0449683219,
0.0335658826,
0.4151805043,
0.006893212,
-0.4184963703,
-0.0308469329,
0.2092843503,
0.1772540808,
-0.255962044,
-0.0866039917,
-0.2733698487,
-0.0437954515,
0.0251217484,
-0.2949287891,
-0.1060507298,
0.1495948285,
0.044604443,
0.1025273055,
-0.0464166887,
-0.2519984841,
0.2513038814,
0.3360560536,
0.3397324085,
-0.2137840241,
0.484793067,
-0.1812843084,
0.2817265987,
0.4496484995,
0.4115256667,
-0.0181220695,
-0.3825556636,
0.1174987704,
-0.5721493363,
0.2478497028,
0.1819587499,
0.1467085928,
0.339450568,
-0.1164450422,
0.0316734016,
0.1010070965,
-0.1231723279,
0.269854635,
-0.0052057798,
-0.3811213076,
-0.2911936641,
0.3167140186,
-0.2113122046,
-0.1568022519,
0.5465932488,
0.325532496,
-0.049578324,
0.8692589402,
-0.1732665002,
0.8559390306,
0.0735444203,
-0.2092478275,
0.2736370564,
-0.4188936651,
0.2268695682,
-0.0331859626,
0.1795358509,
-0.5019341111,
-0.0884140208,
0.0992162824,
0.0990065858,
0.265660435,
0.2211024463,
-0.1061749607,
0.1902991384,
0.0010178209,
-0.3593478203,
-0.0459694974,
-0.0553069748,
0.2393826842,
-0.0756270662,
-0.1423899978,
0.0999407768,
0.0238763876,
-0.0065324912,
-0.1216032952,
0.0434702821,
-0.1948117316,
-0.0330939516,
-0.0248105805,
0.064490445,
-0.0539027639,
-0.0166573431,
0.4378455281,
-0.4568096101,
0.0092952764,
0.0952488482,
0.6670413613,
0.0488628782,
-0.1588385999,
0.3587812483,
0.2209471911,
-0.0264199208,
0.2426986247,
0.0626275092,
0.1265899688,
0.0271213725,
0.046445258,
0.0430429503,
-0.1551476866,
0.1923496127,
-0.3443814814,
-0.0950360447,
0.2435641736,
-0.2713225186,
0.0498698168,
-0.3483456969,
0.2933449149,
-0.4673756361,
0.1463910937,
0.0272522364,
0.0881230235,
0.2667184174,
-0.0072425306,
-0.0469310656,
-0.2838765383,
-0.1984839141,
-0.0619498752,
0.1977478713,
0.4583908617,
-0.0314533301,
0.0266392492,
-0.0819448233,
-0.0477036312,
0.086291194,
-0.2968996465,
-0.0015539008,
0.056075979,
-0.2127178758,
0.211392194,
0.8396200538,
0.1446299851,
0.1651257724,
0.2256997526,
-0.3633268178,
0.044079531,
-0.0063327355,
0.2265595049,
-0.0816610605,
0.2763522863,
0.2498502135,
-0.2774056792,
0.1408762336,
-0.3175768852,
0.2241612375,
-0.20194754,
0.331923604,
-0.7157125473,
-0.0549156964,
0.0444934331,
-0.2044286132,
0.1731183529,
-0.1675913781,
0.0504933894,
-0.2098578364,
-0.3488287032,
0.130620271,
0.1287272424,
0.049299594,
-0.2965890467,
-0.0066107493,
-0.0698789731,
-0.1677580625,
-0.1875580698,
0.0389314294,
0.1039529666,
0.1334566176,
-0.204073295,
0.0863274187,
-0.3346274793,
-0.1349903941,
0.103627637,
0.0202760566,
0.349211961,
0.0522055514,
-0.2873457372,
0.0284982268,
0.0501978025,
0.0348392315,
-0.3849096596,
-0.0535698496,
0.6435757279,
-0.2771763504,
0.0991064981,
0.0251141638,
0.1701027304,
0.2966198027,
-0.2951372266,
0.0144731877,
0.1982409209,
0.2721143663,
-0.534019351,
-0.1421034932,
0.3219995499,
0.0946458206,
0.0573932864,
0.1499042362,
0.4608080983,
-0.1978149265,
-0.0211043376,
0.1160221696,
0.2872008979,
0.0286042001,
0.0281562321,
0.4072289765,
0.1467960924,
0.4484164417,
0.511023283,
0.2105109245,
-0.3324302137,
0.2504319251,
-0.0581134893,
0.0618377849,
-0.141983822,
0.0930760428,
0.1739418954,
-0.1292765439,
0.4621665478,
-0.3282717466,
-0.0163494591,
0.1168945432,
0.0902344435,
-0.2595866024,
0.0248889904,
-0.2258997113,
-0.0244543124,
-0.1012341604,
-0.1959191412,
0.0275663286,
-0.1259201169,
-0.1001196578,
0.4126199782,
-0.0316539556,
-0.0714584291,
0.0320915133,
0.3161676228,
0.1369592696,
-0.0594962798,
-0.0467022881,
-0.256153971,
0.2381833047,
0.406242758,
-0.1513158828,
0.2619273961,
0.1262294203,
-0.3369145989,
0.1225881279,
0.3434933126,
0.1192603186,
0.0682732537,
-0.0939637199,
-0.1331099868,
-0.0315827467,
-0.0848526359,
0.2423167676,
0.1554320306,
0.3483055532,
0.3779917657,
0.1538869441,
0.0977838412,
-0.0854930505,
0.1103018522,
0.0909452364,
0.0402270928,
-0.3181944788,
-0.0406314209,
-0.1921457797,
-0.3732210696,
-0.1098447219,
-0.1496448815,
-0.1810819656,
-0.0315659679,
0.0458884984,
0.1325667948,
-0.0691383481,
0.1820524931,
0.1401595771,
0.1574241221,
0.0545598418,
0.3357809782,
0.1196985021,
-0.3121223748,
-0.4723947644,
-0.2209152132,
0.1471862793,
-0.0166546237,
0.2752978206,
0.3665795028,
0.1328061968,
0.3440547585,
-0.1112489551,
0.061223235,
-0.0446004905,
-0.3791801929,
0.2989430428,
-0.5998274684,
-0.0917731673,
-0.1127040014,
0.0619649142,
-0.0197581742,
0.2378126234,
0.2866752744,
0.0371192582,
-0.0390734151,
-0.1601813287,
0.0239211135,
0.1964659691,
0.0704028308,
0.3648019433,
0.1792725772,
-0.0976061597,
-0.0436987467,
-0.3078193069,
0.2053606212,
-0.080071494,
-0.1364662945,
0.5880196095,
-0.0684822351,
0.158833012,
0.2921808362,
-0.5144423246,
0.1098298654,
0.6035783291,
0.0952697843,
-0.1186399385,
-0.499430269,
0.3075223863,
0.3789219856,
0.1986837536,
0.1321590543,
0.3110571504,
-0.0876138955,
0.3579062521,
-0.387830615,
-0.26119259,
0.4151237905,
-0.2831667066,
0.0035107536,
-0.0772240162,
0.2843596935,
-0.2573533654,
-0.1023698226,
-0.6073067188,
-0.2867357135,
0.367197454,
-0.3029933572,
-0.1535066664,
0.0345654413,
-0.0772372484,
0.1964756548,
0.0000740926,
0.8225832582,
0.2425957322,
-0.1439451724,
0.08583799,
0.1413801908
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency.
For example, other datasets also flatten "question.stem" into "question":
- ai2_arc:
```python
question = data["question"]["stem"]
choices = data["question"]["choices"]
text_choices = [choice["text"] for choice in choices]
label_choices = [choice["label"] for choice in choices]
yield id_, {
"id": id_,
"answerKey": answerkey,
"question": question,
"choices": {"text": text_choices, "label": label_choices},
}
```
- commonsense_qa:
```python
question = data["question"]
stem = question["stem"]
yield id_, {
"answerKey": answerkey,
"question": stem,
"choices": {"label": labels, "text": texts},
}
```
- cos_e:
```python
"question": cqa["question"]["stem"],
```
- qasc
- quartz
- wiqa
Exceptions:
- exams
I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 132 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency.
For example, other datasets also flatten "question.stem" into "question":
- ai2_arc:
```python
question = data["question"]["stem"]
choices = data["question"]["choices"]
text_choices = [choice["text"] for choice in choices]
label_choices = [choice["label"] for choice in choices]
yield id_, {
"id": id_,
"answerKey": answerkey,
"question": question,
"choices": {"text": text_choices, "label": label_choices},
}
```
- commonsense_qa:
```python
question = data["question"]
stem = question["stem"]
yield id_, {
"answerKey": answerkey,
"question": stem,
"choices": {"label": labels, "text": texts},
}
```
- cos_e:
```python
"question": cqa["question"]["stem"],
```
- qasc
- quartz
- wiqa
Exceptions:
- exams
I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same. | [
-0.1097743586,
0.1326161772,
-0.0441396423,
0.251501888,
-0.2379210591,
-0.0238394011,
0.2634883523,
0.3610416353,
0.006400961,
0.1764746308,
0.096433647,
0.4849393666,
0.4549894035,
0.4911120832,
-0.148104012,
-0.160447374,
0.3868280947,
0.0276735201,
0.2539488673,
-0.0356515311,
-0.2659470141,
0.4672729969,
-0.2174430341,
0.0999923348,
0.0964768231,
-0.1398295164,
-0.4847763777,
-0.057913404,
0.0054192678,
0.0074244752,
0.1809109002,
0.1605218202,
-0.3850033581,
0.2002613395,
-0.0001139321,
-0.1369350851,
-0.0883787349,
0.0266066138,
-0.2319210321,
-0.2157822847,
0.052961275,
-0.2617893517,
-0.1228878275,
-0.2755648494,
0.0981127322,
0.0550665893,
-0.1491115838,
-0.2618976831,
0.1818795204,
-0.1574004143,
0.1525596827,
-0.0238076039,
0.3675931692,
0.1867574155,
0.0815778449,
-0.1015934274,
-0.2293050438,
0.0033499913,
0.2247362435,
0.0118484003,
0.2578726411,
0.303620398,
-0.0688908249,
-0.2904932201,
-0.3472497761,
0.1664650887,
0.1601463705,
-0.2673430145,
0.0248357467,
0.4789613485,
-0.0109285908,
-0.235559538,
-0.5180100799,
-0.3433983028,
0.038707424,
-0.1429570764,
0.1242312789,
0.2304447293,
0.1746181995,
-0.0223128721,
0.3207927346,
-0.182462275,
0.1485363841,
0.1652731001,
-0.3517591059,
-0.0104304515,
0.0170134138,
-0.0692647249,
-0.3648296297,
-0.1031913385,
0.4435928762,
-0.3173172772,
-0.0160327591,
0.0105056455,
-0.4281848073,
-0.1500117928,
-0.273696661,
-0.3439185023,
-0.0956541896,
-0.2881827354,
0.2985573709,
0.022994075,
-0.233034417,
0.1407809854,
-0.1006417871,
-0.0558719561,
-0.0019868331,
0.1179583743,
-0.2235388458,
0.0869905353,
0.0366495289,
-0.0824576169,
-0.0008301524,
-0.1000232249,
-0.3417010903,
-0.0723583922,
0.4922668338,
-0.0247177146,
-0.3859815598,
0.236907959,
-0.1312112361,
-0.0715423524,
-0.0843340531,
-0.0666469708,
-0.1734167039,
0.1304677129,
0.1017337292,
0.17043221,
-0.0557211153,
-0.2183282673,
-0.1628325582,
-0.0814050436,
0.045691248,
0.1077752709,
0.0427830815,
0.1075606123,
0.3035513759,
0.2609870732,
-0.0493855551,
0.1293660402,
-0.0696745291,
-0.1429932863,
0.0422015674,
0.1169750765,
-0.23676911,
-0.1403563619,
-0.01776544,
-0.2484626025,
0.058054544,
0.1993376911,
-0.405665189,
-0.0232921336,
-0.2336163223,
0.2024966329,
0.1131741032,
-0.0159433037,
0.1385367662,
0.2477846593,
0.0611143038,
-0.2313672155,
0.0562971607,
-0.1061240286,
0.1815368682,
-0.1666765511,
0.2162818015,
0.1965352744,
-0.4122449458,
-0.0134014776,
-0.1286965609,
0.3966889381,
-0.1489108056,
0.0586834513,
0.0443988368,
-0.0683440194,
-0.1563734561,
0.2003964633,
0.1304276884,
-0.2321345508,
-0.374922365,
-0.1660816222,
0.2656884491,
0.1556934267,
0.1086632088,
-0.3345250487,
-0.1152725294,
-0.1089905426,
0.1317033619,
0.0208079107,
-0.2419557273,
-0.2171495408,
-0.4325254858,
-0.2124896049,
0.1553419977,
0.1801257432,
-0.0255269408,
0.0034714132,
-0.12083368,
-0.2510540485,
0.2326427996,
-0.0000789152,
-0.1483455449,
0.1010521352,
0.3779268563,
-0.1242138445,
0.1174527928,
0.1150913835,
-0.5746988058,
-0.030064499,
-0.6786449552,
-0.1449201852,
-0.1288169324,
-0.251834929,
-0.038451273,
-0.0848690346,
0.0403755791,
0.157443881,
0.17506437,
-0.1348837465,
-0.045527339,
-0.0385652445,
-0.260984987,
-0.2688122392,
-0.1927360892,
0.2396469265,
-0.2286631018,
0.2453788519,
-0.2683630288,
0.0061454093,
0.2477331609,
0.2455510646,
0.3565663993,
-0.2620423436,
0.0887056664,
0.5120708942,
0.0380574204,
-0.2177447528,
-0.053816855,
0.2502329648,
0.2662848234,
0.2950715423,
0.023922924,
0.0712918714,
-0.0848159418,
-0.0774034709,
0.0736581534,
0.4827049971,
-0.1446056366,
0.2192671299,
0.1014419943,
0.0880510882,
0.0344993919,
-0.2184239775,
-0.0092668673,
-0.3117272258,
0.0229414944,
-0.1389649063,
0.2988815606,
-0.1470457464,
-0.3462943137,
0.4355352223,
0.5409053564,
-0.0042484445,
-0.0848383009,
0.1014391109,
0.1992357373,
0.097024776,
0.075270392,
-0.072544992,
0.2485430092,
0.1928688884,
-0.298776865,
0.1067136601,
0.2667938173,
-0.0843674019,
0.4443075955,
0.2617065907,
-0.2453444302,
0.1242909953,
0.1816359609,
0.246480301,
-0.1266372055,
-0.0781406462,
0.3060937524,
0.0027533907,
-0.12900424,
0.2617796361,
-0.127053082,
-0.2275789082,
-0.1454594582,
-0.4518143833,
-0.2638543844,
-0.2247776389,
0.2122166604,
0.1378516555,
-0.1852670461,
0.5181917548,
0.4227959812,
0.3277258873,
-0.2118456066,
0.3134724796,
-0.5174558759,
0.0297419615,
-0.1239391193,
0.1598781943,
0.1170919761,
-0.4179796278,
0.0387321264,
-0.1786053628,
-0.0890974253,
-0.4192763269,
-0.6379324794,
0.1106094122,
-0.3292036653,
0.165461421,
0.080334343,
0.201335609,
-0.4030192792,
-0.4229227304,
0.1720825881,
0.2590762377,
-0.1736132503,
0.1541871578,
-0.0599351376,
-0.3487952948,
-0.1016503051,
-0.2814889848,
-0.2110574394,
-0.1167338938,
0.3086922467,
-0.249491781,
0.2905518711,
0.3692623973,
-0.1721044332,
-0.3150828481,
0.0722795799,
0.1112132519,
-0.2756542861,
-0.2471312582,
0.1670705229,
-0.1506577134,
-0.1349555999,
-0.1658003032,
-0.1401347816,
0.3781979084,
-0.184490025,
-0.3242150545,
-0.0957909673,
0.0500807241,
-0.053921856,
0.1956447065,
0.1437063664,
0.2238171548,
0.3818650544,
-0.0204831753,
-0.1527151614,
-0.2278277874,
0.0483864509,
0.2852035761,
0.3930836618,
-0.3543849885,
0.0508620366,
-0.0169632938,
0.0335371979,
0.1770769358,
0.3453834951,
0.1043454036,
0.1741133779,
0.085886322,
-0.2435448319,
-0.1671387553,
-0.0715472996,
-0.2287997901,
0.0667539239,
0.2377080023,
-0.350117147,
0.0394821875,
-0.0620005392,
0.0315333679,
-0.5189899206,
-0.3875522614,
-0.1719101965,
-0.226571694,
0.353369832,
0.3154342175,
-0.0155550586,
0.0073049287,
-0.0108590005,
0.3977195323,
0.0169038214,
0.1522175968,
-0.1230573133,
-0.315335393,
-0.3102194667,
-0.1413558275,
0.4627591968,
-0.3599780202,
0.1981679052,
0.1759320647,
-0.0155125428,
-0.1297803223,
0.1527127922,
0.7660775781,
0.0829257369,
-0.5135418177,
0.2940250635,
-0.0865993127,
-0.1036761925,
-0.3375145495,
0.057513684,
0.0035671156,
0.4307492673,
0.2280939966,
-0.5632210374,
-0.0149352923,
0.1015349999,
0.2425939143,
-0.2797355354,
-0.1239687279,
-0.2287274897,
-0.0023829646,
-0.0262446646,
-0.231154874,
-0.0775360167,
0.232001707,
0.079661414,
0.0932470262,
-0.1651243865,
-0.3843822181,
0.2328846902,
0.1800967604,
0.405915916,
-0.173058033,
0.4700658321,
-0.1890891194,
0.3864487708,
0.3785930574,
0.4198212028,
0.0460541621,
-0.2023147941,
-0.0154213337,
-0.4291307032,
0.3105559051,
0.3204347789,
0.1822679937,
0.3888300657,
0.000993132,
0.0838979334,
0.0625961646,
-0.1935266852,
0.1843181849,
0.0306347478,
-0.4366153181,
-0.3393149376,
0.2915222347,
-0.2039181441,
-0.2291930318,
0.4974680841,
0.3780026734,
-0.0986322984,
0.8824451566,
-0.1571093202,
0.9794386625,
0.2037341744,
-0.1459952593,
0.3811954558,
-0.1224293932,
0.1476225406,
-0.0426182151,
0.1852971762,
-0.4120436013,
-0.1451181173,
0.0860406309,
0.0816071108,
0.2815209031,
0.2387799323,
-0.1553445309,
0.2907504141,
0.0358540304,
-0.3333656192,
-0.0773357674,
0.0177638121,
0.1783324927,
-0.0715415031,
-0.1739069819,
-0.0036963425,
0.0612568855,
-0.0061482145,
-0.1024986356,
0.0029744687,
-0.1696345061,
-0.0574898161,
0.062301591,
0.07673195,
-0.2052787989,
0.0409261584,
0.3093675673,
-0.4988069832,
0.0172318034,
0.083840929,
0.7103011608,
0.0659713969,
0.0027818577,
0.2345374227,
0.3422036767,
-0.0848111287,
0.2973736227,
-0.0815070048,
0.1457799971,
0.0571479872,
0.0838046819,
0.0432694219,
-0.1187578291,
0.2134902179,
-0.3214099109,
-0.1791062951,
0.2767014503,
-0.2891270518,
0.0042895968,
-0.1942338645,
0.2204031348,
-0.4162171185,
0.0839955658,
0.024259951,
0.0666624755,
0.2395160198,
-0.0836211294,
-0.014378773,
-0.2466915846,
-0.1777969599,
0.0938922018,
0.3256411552,
0.4560348094,
-0.1205666736,
0.046523273,
-0.0224406309,
-0.0455287658,
0.0286218468,
-0.099192284,
0.0572034903,
0.0518082008,
-0.2311883569,
0.0857979357,
0.7464829683,
0.2314580828,
0.2285173088,
0.1221896484,
-0.3248083293,
-0.0090099741,
0.2098962218,
0.2423278838,
-0.0146309426,
0.2803833783,
0.2181926966,
-0.4034715593,
0.1186025888,
-0.2827788293,
0.1659014225,
-0.0892531872,
0.2588096559,
-0.6593565345,
-0.0065081986,
0.1219422072,
-0.2284170538,
0.1578781456,
-0.177112475,
0.1459392905,
-0.1767701805,
-0.3078810275,
0.1345811486,
0.1028705165,
0.1273893416,
-0.142796725,
0.0307553671,
0.0260114688,
-0.1779370904,
-0.1235928908,
-0.0608401336,
0.2122113258,
0.1533197165,
-0.3174437582,
0.0640734136,
-0.3582108915,
-0.1039741859,
0.0700335801,
-0.0481161997,
0.3114537299,
0.142729491,
-0.3573384881,
0.0014674555,
0.1781362891,
0.0465840213,
-0.4318416715,
0.0442668796,
0.7221921086,
-0.2277940065,
-0.0542858653,
-0.0044936109,
0.1619775891,
0.2565866411,
-0.2838603854,
-0.0096994601,
0.0773508027,
0.24262923,
-0.5789577961,
-0.047928717,
0.2664564252,
0.0082868682,
0.1420884132,
0.2397485822,
0.4003153443,
-0.2191600353,
-0.0373851806,
0.1288276464,
0.2618264258,
0.1671447009,
0.1011000574,
0.3663035929,
0.1752530336,
0.5033140779,
0.4916257858,
0.2436356097,
-0.182741493,
0.1457698047,
0.063815929,
-0.0090025496,
-0.107901305,
0.0041905367,
0.2079649568,
0.0180786215,
0.3652297258,
-0.1747031212,
0.1008375138,
0.1459258199,
0.1638458371,
-0.209114477,
0.0815863386,
-0.3186057508,
0.091406785,
-0.0117245046,
-0.2274354249,
-0.003858105,
-0.2079250515,
-0.1353875101,
0.3794543445,
-0.1710147262,
-0.0699841827,
-0.0831619203,
0.1997404844,
0.0939103067,
-0.0283905771,
0.0909624025,
-0.2273091823,
0.3274763525,
0.4901710749,
-0.2089743763,
0.3316179216,
0.3097829223,
-0.4471168518,
0.0762471259,
0.3841513991,
0.1532026529,
-0.0171737857,
-0.2064031065,
-0.0549248047,
0.0541172102,
-0.165728271,
0.160935536,
-0.0120513923,
0.2563720047,
0.1860842109,
0.2445603311,
0.0707045868,
-0.0884947032,
0.0681690127,
0.1879161745,
0.1001813114,
-0.3758581281,
0.0644885376,
-0.2310765982,
-0.3452651799,
0.0030519816,
-0.1659977585,
-0.211677283,
-0.1408896744,
0.0702654421,
0.0689822361,
-0.0767301321,
0.2214146852,
0.1156567037,
0.2451763749,
0.0462586209,
0.2154214382,
0.0134389978,
-0.3520790935,
-0.4181019366,
-0.1978958845,
0.1320774853,
0.0397787653,
0.34100914,
0.3438510001,
0.1442616582,
0.4004642963,
-0.0909475386,
0.0727102682,
-0.0493636243,
-0.4624989629,
0.2876475453,
-0.5645508766,
-0.0265640952,
-0.0917651579,
0.0916822553,
-0.0035299433,
0.1134653091,
0.2303836942,
0.0732837841,
-0.0645256415,
-0.0519951023,
0.201382637,
0.179541111,
-0.2014748752,
0.2402785867,
0.1941233873,
-0.1924176663,
-0.070681572,
-0.3504210413,
0.2710880041,
-0.0499289855,
-0.2259753048,
0.5704772472,
-0.0035794531,
0.2458711863,
0.2107554078,
-0.5354071856,
0.0911499262,
0.5161125064,
0.1900074333,
-0.2357141823,
-0.5775598288,
0.4134142697,
0.2809973955,
0.2135027647,
0.1066075042,
0.4640437067,
-0.1183604077,
0.3973375559,
-0.3557237089,
-0.2840926051,
0.4370101094,
-0.2562057078,
0.0300556067,
-0.0100481007,
0.282785207,
-0.1806952953,
0.01976192,
-0.4986234605,
-0.3273220956,
0.3398217261,
-0.3813390732,
-0.1946465969,
-0.0220698658,
-0.0124067739,
0.0612321086,
-0.0504375324,
0.784917891,
0.1974279433,
-0.2776813209,
-0.004824271,
0.0877256915
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | @albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 107 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
@albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq | [
-0.0696031824,
0.2296478003,
-0.0100900801,
0.0402288064,
-0.1834874302,
-0.1042137891,
0.319383949,
0.3728416562,
-0.0084602879,
0.1532329619,
0.0812204257,
0.3126558065,
0.5082780123,
0.2665573657,
-0.1158585623,
-0.245972991,
0.3876905143,
0.1590896994,
0.0666596964,
-0.1644399017,
-0.2158473581,
0.3688813746,
-0.1924868524,
0.229605034,
0.1179269925,
-0.0768638253,
-0.460231632,
-0.1250721067,
0.0000285526,
-0.1360206455,
0.0393473245,
0.3687199652,
-0.2468781769,
0.2535470426,
-0.0001078641,
-0.1946755052,
-0.0464920253,
0.1143710539,
-0.2850138843,
-0.2117994279,
0.0114881815,
-0.2760747075,
-0.1555109769,
-0.1835090965,
0.0781672746,
0.0257272255,
-0.1205443516,
-0.1718740761,
0.0202819519,
-0.1878926754,
0.2011324167,
-0.0693089142,
0.2001219988,
0.09862113,
0.2986964881,
0.1908412427,
-0.3160247207,
-0.1359655261,
0.2559081018,
-0.0796411335,
0.172449857,
0.3941915035,
-0.0020535521,
-0.1584800333,
-0.1582529098,
0.0856369063,
0.0743026584,
-0.0754493251,
0.1620190442,
0.7886561751,
0.2469025254,
-0.2067466527,
-0.4667553902,
-0.2679791451,
-0.0074329996,
0.0001957609,
0.1689700782,
0.2789776027,
0.2035883218,
-0.0120463865,
0.2613493204,
-0.1730069369,
0.1263400316,
0.1596776396,
-0.4020984769,
-0.284606576,
-0.0293315444,
-0.0341492258,
-0.4117086232,
-0.2079411,
0.1418245137,
-0.2136274129,
-0.1214390993,
-0.0486856736,
-0.2751647532,
-0.1530784518,
-0.119207412,
-0.2220359296,
0.0575319789,
-0.412748903,
0.2000184059,
0.0274831429,
-0.3903745711,
0.1110265031,
0.0170325618,
-0.3224205971,
-0.0602531657,
0.0445677415,
-0.1308726221,
0.1536912918,
0.1702961326,
-0.0618941411,
0.1338481158,
-0.0564725287,
-0.499199003,
-0.1716262102,
0.3712953031,
-0.1937269121,
-0.3502106369,
0.3883861005,
-0.019887168,
-0.1236194968,
-0.2079337388,
0.0539519265,
-0.1510806382,
0.0865786001,
0.0997683629,
0.160415411,
-0.1202649772,
-0.2795260251,
-0.1537479013,
0.0201881193,
-0.004678512,
0.1687164158,
0.0884287879,
0.1286206245,
0.1250651479,
0.3350716829,
-0.1154183745,
0.1522701085,
0.0239189826,
-0.2501380146,
0.0866942406,
0.1242215857,
-0.3181289136,
-0.0928897187,
-0.1042449623,
-0.1033549979,
-0.0332416743,
0.2140455395,
-0.3373625875,
0.1700284481,
-0.3033414781,
0.2553762794,
0.1250355095,
-0.056669198,
0.2018340379,
0.2573332787,
-0.1382351667,
-0.2928123772,
0.2027490288,
-0.1258959919,
0.2024250776,
-0.1517146677,
0.0606567636,
0.3241967559,
-0.4737028182,
-0.0357554108,
0.0964709297,
0.352640152,
-0.0959916115,
-0.0214303173,
-0.0993586853,
-0.0491411015,
-0.1073005646,
0.1985854506,
0.0782830045,
-0.255828023,
-0.1632890701,
-0.0393157117,
0.278934896,
0.0905505493,
0.0100147715,
-0.3963422477,
0.0106875487,
-0.161578849,
-0.0994874984,
-0.0988079235,
-0.1594026983,
-0.1323218793,
-0.4348160625,
-0.2168442905,
-0.067705974,
0.1818798929,
0.0435793176,
-0.1467618048,
0.0748762563,
-0.0415210836,
0.3228680193,
-0.1006831154,
-0.0424549654,
0.1500799209,
0.377099514,
0.0172500815,
0.1662045866,
0.1761326045,
-0.3448503315,
-0.1111211404,
-0.5325245857,
-0.1221327409,
0.1451998651,
-0.2550848424,
-0.0314851552,
-0.2018545717,
0.1034043506,
0.1097299233,
0.2036617845,
-0.0470537581,
-0.192343697,
0.0730236918,
-0.1822303981,
-0.1045263857,
-0.1359561086,
0.2321664691,
-0.0166648105,
0.1995251924,
-0.1784273237,
0.1072958633,
0.2081708461,
0.1909949034,
0.3404949307,
-0.1537513733,
0.0262676235,
0.3947635591,
0.0688626617,
-0.1320857555,
0.0153781753,
0.3280013502,
0.3196361661,
0.2130314857,
0.1744673848,
0.0565102026,
0.0061228946,
-0.0878005996,
-0.0606979243,
0.4383126795,
-0.0852039605,
0.1017052159,
0.0815561935,
0.0602030121,
0.044443544,
-0.2375166118,
0.0144316051,
-0.2739398777,
0.1222718433,
-0.058064606,
0.2378386408,
-0.1290924996,
-0.23894611,
0.3914740384,
0.6482895017,
-0.0100838179,
-0.0938526616,
0.1628198773,
0.1130887493,
0.0930275172,
0.2293612063,
-0.1191484034,
0.2146212012,
0.2094039172,
-0.3093629777,
0.1246579736,
0.1629592925,
-0.1301350743,
0.3430815339,
0.2611314058,
-0.1460606754,
0.0318001732,
0.1446853429,
0.2648164332,
-0.1750513166,
-0.239999339,
0.2573033571,
-0.1093204767,
-0.1500407755,
0.248375833,
-0.149507463,
-0.0320326239,
-0.0668060854,
-0.2417822778,
-0.2483551949,
-0.2763034403,
0.1566925049,
0.0683524385,
-0.1753715128,
0.2720606029,
0.1248478442,
0.3851288259,
-0.3690246642,
0.328646332,
-0.4920906723,
0.1217366681,
-0.2863212228,
0.1710444838,
0.0328657776,
-0.3764327765,
0.1774441153,
-0.20749937,
-0.1673381776,
-0.5746415257,
-0.6637226939,
0.2495167404,
-0.3124956489,
0.0363298878,
0.173734799,
0.0923259929,
-0.6263770461,
-0.231152609,
0.0806939974,
0.1109649837,
-0.1410902441,
0.1481944621,
-0.1676063836,
-0.1185649112,
-0.1557625979,
-0.3343429565,
-0.0898023248,
-0.1443950683,
0.3780383468,
-0.2561936677,
0.214413926,
0.4877122045,
-0.2778663933,
-0.2457567602,
-0.0996501595,
0.2701756954,
-0.4299853444,
-0.2034659386,
0.1219896227,
-0.265609771,
-0.3593102694,
-0.0514257252,
-0.0914778858,
0.3019790649,
-0.0317384638,
-0.4091457427,
-0.064920783,
0.0692012981,
0.0029039313,
0.0159954168,
0.1816910207,
0.27900213,
0.1883378476,
-0.1044042856,
-0.2142485678,
-0.1808731705,
0.0779492259,
0.2458804995,
0.4659023583,
-0.2716847062,
0.0555198751,
0.0289958511,
0.1235661879,
0.063189283,
0.457559973,
0.3480699658,
0.2020812482,
0.2117083669,
-0.2431608588,
0.0587545037,
0.1609728336,
-0.2132671475,
0.1062645093,
0.3341735303,
-0.22469078,
0.0685696453,
-0.0653824285,
0.0308238752,
-0.5297787786,
-0.4418598711,
-0.0920335427,
-0.2406026721,
0.2859292328,
0.3097967505,
0.1940310001,
-0.077698119,
-0.1311575472,
0.459641248,
0.2273559123,
0.2022646964,
-0.0872344598,
-0.3523531854,
-0.0485561229,
-0.1509984732,
0.449172169,
-0.3587692976,
0.3188934028,
0.0206650738,
-0.0504281633,
-0.026772242,
0.0312553272,
0.5746680498,
0.0354879946,
-0.43757236,
0.2689489722,
-0.1330820918,
0.0244521778,
-0.3724324107,
-0.0905417278,
-0.196619764,
0.2331434339,
-0.1313021928,
-0.6180852056,
-0.2150965035,
0.1259801388,
0.038096983,
-0.1976663172,
-0.2198389024,
-0.2133510113,
-0.0723523945,
-0.0679103583,
-0.3726087809,
-0.069712095,
0.1390255094,
-0.0868759826,
0.0697715059,
-0.1384427845,
-0.1437706053,
0.2967101038,
0.1771461964,
0.3629650474,
-0.0776810497,
0.3815391362,
-0.1740054041,
0.3287403882,
0.5683431625,
0.3478129804,
0.0446083359,
-0.1153294668,
0.1872665435,
-0.5689080954,
0.2546128631,
0.4183632433,
0.2751156688,
0.350073576,
0.0273871943,
0.1056024358,
-0.1148590595,
0.0240051895,
0.2426151782,
-0.1683688909,
-0.5273302197,
-0.2649078667,
0.2989833355,
-0.1007201672,
-0.2194141299,
0.4401059747,
0.7184060216,
-0.0378830172,
0.8356882334,
-0.0869708657,
1.0262875557,
0.0421639644,
0.0433506109,
0.2748911381,
-0.3377830386,
0.2972128689,
-0.246985808,
0.0570254363,
-0.4488586783,
-0.1527376026,
-0.0051700352,
0.0950762853,
0.4571219981,
0.1832383871,
0.0112496056,
0.2882126272,
0.0976339206,
-0.0900072679,
-0.0659119114,
-0.0019937935,
0.0135920485,
-0.1246871799,
-0.0402902141,
0.1376139224,
-0.0282081384,
0.0881829038,
-0.2107426375,
-0.023485221,
-0.2281863242,
-0.1112757921,
0.0376884863,
0.0066504329,
0.0674034283,
-0.1500714421,
0.4083313644,
-0.3489128053,
0.1552578062,
-0.1935434192,
0.7438077331,
0.1775080115,
-0.1498911232,
0.2480340004,
0.157885015,
0.0000395464,
0.2723700702,
-0.08247412,
0.2571640909,
-0.0091155162,
0.0258540493,
0.059294045,
-0.1869819462,
0.1805791557,
-0.3997626305,
-0.2153986096,
0.3853855431,
-0.2461225539,
0.1816170067,
-0.151828289,
0.2774574459,
-0.2990747094,
0.1574231833,
0.0379299968,
0.1043577194,
0.2104976177,
0.1312261224,
-0.0575155579,
-0.3873955905,
-0.1699643284,
0.0519761294,
0.0253975932,
0.4092175364,
-0.0946325883,
-0.1146201193,
-0.0770723447,
-0.085504055,
0.2415272444,
-0.2572834492,
-0.2158302367,
0.1351887435,
-0.2380883694,
0.1752777249,
0.7735232115,
0.1382731199,
0.0455733947,
0.2408797294,
-0.3171110451,
0.0605327561,
0.1505354494,
-0.0178247467,
-0.0452444144,
0.4606648088,
0.1109479293,
-0.3285834491,
0.0472815707,
-0.3610382378,
0.1299521923,
-0.0037913183,
0.2519104779,
-0.74686867,
-0.0310012475,
-0.0802560374,
-0.1981415302,
0.1880059689,
-0.1504579633,
-0.0763405636,
-0.1958998442,
-0.4253174961,
0.1517904401,
0.1423773021,
0.1035007164,
-0.1528234929,
-0.0454512984,
-0.0194713864,
-0.1413959563,
-0.0934225172,
0.0016972595,
0.1449973434,
0.2413550019,
-0.0360191464,
0.0882909521,
-0.3178389072,
-0.0484260842,
0.2309349179,
0.1359750628,
0.171840772,
0.1142713875,
-0.281208843,
-0.0013338767,
-0.0001277499,
0.2056273073,
-0.1682724953,
-0.007853372,
0.5881760716,
-0.1308362782,
0.1727700084,
-0.0161494408,
0.1383463144,
0.3321656585,
-0.2772145271,
-0.1656869501,
0.2568793893,
0.2702168524,
-0.3807605803,
-0.1849170774,
0.1031587198,
0.059897393,
0.0647839904,
0.2112043798,
0.5977261662,
-0.2737560272,
-0.0270009153,
0.1436394304,
0.1824153662,
-0.0841941759,
-0.0696939453,
0.3393566012,
0.0112173446,
0.5447097421,
0.4411687255,
0.2687282264,
-0.2871575654,
0.1440004408,
0.0256738346,
0.0302330907,
-0.0250511132,
0.1499406397,
0.1928397864,
-0.1780608594,
0.5613921881,
-0.1351788491,
0.1588914394,
0.0283278618,
0.1764391065,
-0.3791718781,
0.2482656837,
-0.2988900244,
-0.0223742183,
-0.186538741,
-0.2365151197,
0.0494637825,
-0.2035901099,
-0.0336614028,
0.2512710392,
-0.1335879564,
-0.1783314794,
-0.019544119,
0.3867735863,
0.1532831192,
0.0285180509,
-0.0252676718,
-0.1014410183,
0.1348752975,
0.4785366654,
-0.1586521715,
0.2012434155,
0.0080989292,
-0.3369815946,
0.1947408468,
0.3069112897,
0.0137720006,
0.0696429461,
-0.1295771897,
-0.1931057572,
-0.0472503155,
-0.0138045484,
0.2352529019,
0.0173694286,
0.2774946094,
0.2626667321,
0.2401933968,
0.0948474556,
-0.0602800399,
0.0070417565,
0.0028921496,
0.0228171647,
-0.3785491288,
0.0825845599,
-0.1251353472,
-0.1042193174,
0.0189982653,
-0.1416653246,
-0.1990324259,
-0.1632674932,
0.1522008479,
0.1935599446,
0.0476657376,
0.0401873887,
0.1227731928,
0.2091655284,
-0.1714830548,
0.2552039921,
-0.0606924146,
-0.3017765582,
-0.2546449602,
-0.1682251543,
0.0830149055,
-0.0800319836,
0.1634855717,
0.2931206822,
0.1140805036,
0.4347024262,
-0.1282475889,
0.0673772618,
-0.0633615479,
-0.3583955765,
0.3047113419,
-0.4338856339,
-0.0263747573,
-0.0759461522,
0.088940464,
-0.104678154,
0.1115249917,
0.4254392982,
0.1584561467,
-0.0392262526,
-0.2260873467,
0.0958639681,
0.2147522122,
-0.1520932913,
0.2303376496,
0.2107989043,
-0.2264616638,
-0.1180132627,
-0.4756059349,
0.122901313,
0.0057394193,
-0.1347248405,
0.5090206265,
-0.2616987824,
0.1247309372,
0.3941831291,
-0.6035907865,
0.1646506041,
0.5223122835,
0.0760593414,
0.0215270109,
-0.5713090897,
0.3831680119,
0.3763612509,
0.103110224,
0.1308057159,
0.2499993891,
0.0104182549,
0.3519023955,
-0.3713920116,
-0.3835077286,
0.4825029969,
-0.291329056,
0.0362211913,
-0.0529258586,
0.3773244917,
-0.2167601734,
-0.0573678762,
-0.62322402,
-0.2404246777,
0.3108644783,
-0.3280769587,
-0.111615032,
-0.0490995459,
-0.1134832725,
0.0052284715,
-0.1140274256,
0.757545948,
0.0928391218,
-0.2280109674,
0.0360917374,
0.1256202608
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I'm opening a PR that adds the missing fields.
Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 18 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I'm opening a PR that adds the missing fields.
Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna | [
-0.1227659434,
0.1294834018,
-0.0531327948,
0.2436132431,
-0.1115282178,
-0.0573373921,
0.1977688372,
0.2891437709,
-0.115660876,
0.2128254175,
0.1821909398,
0.4630895257,
0.37812379,
0.3454271257,
-0.0517650545,
-0.3028847873,
0.3833729029,
0.1199520379,
0.2903484404,
-0.0097328937,
-0.2617138326,
0.4804413021,
-0.3111643493,
0.1456240267,
0.0606265515,
-0.1175338924,
-0.4741399884,
-0.0885008499,
-0.0695976019,
-0.1171175241,
0.0329109132,
0.1738624424,
-0.29921031,
0.2272765934,
-0.0001115036,
-0.1767384708,
-0.0957512185,
0.0382845402,
-0.2103365809,
-0.2624767721,
-0.0572989173,
-0.3349642754,
-0.1145700216,
-0.2542567253,
0.0750597641,
-0.1084403098,
-0.1459991783,
0.0179546885,
0.0932157189,
0.0680731311,
0.1937107891,
-0.0296376143,
0.3744158745,
0.0864877328,
0.1934262961,
-0.0575396121,
-0.3595840931,
-0.0100524845,
0.3006980419,
-0.0263599455,
0.2761845291,
0.1768283397,
-0.0354530439,
-0.1663951725,
-0.3157791495,
0.1727365851,
0.129355967,
-0.1915602237,
0.1732870042,
0.4257300496,
0.0966125801,
-0.2577462494,
-0.457293272,
-0.2639892995,
0.0073604845,
-0.1520213038,
0.2117086202,
0.2656594217,
0.1055848673,
-0.0488575473,
0.1760716885,
-0.1050131395,
0.1470010579,
0.0997324064,
-0.3217182755,
-0.1179335043,
0.0170783065,
-0.0177785717,
-0.3173140883,
-0.1964939684,
0.4314584434,
-0.2086995542,
-0.0804776624,
0.0139196888,
-0.3882031143,
-0.0969555154,
-0.1194167435,
-0.2539887726,
-0.1374586672,
-0.221458599,
0.0988516137,
0.0020823383,
-0.2735094428,
0.1231499612,
-0.1331828833,
-0.1584863365,
-0.0640497357,
0.2421085685,
-0.2459201068,
0.1263545901,
0.0539033227,
-0.1044862792,
0.0753054023,
-0.2187895924,
-0.3298302591,
-0.102562435,
0.4273863137,
-0.0753173977,
-0.3060821891,
0.3053895533,
-0.0833459273,
-0.085962683,
-0.1277032644,
0.0360777937,
-0.2658692598,
0.00109128,
0.1006582007,
0.1081224307,
-0.1107575521,
-0.2436734736,
-0.2003214359,
0.0338806435,
-0.0694766715,
0.0505347699,
0.0993649513,
0.2018514872,
0.2790077031,
0.3210913241,
-0.1651395261,
0.0207875725,
-0.0432005599,
-0.1567286253,
-0.0297005698,
0.1557582319,
-0.189579457,
-0.1727979034,
-0.1457662731,
-0.2252675295,
0.0560465865,
0.2262821794,
-0.2934701443,
0.0704142228,
-0.2920824289,
0.2486936599,
0.1028761342,
-0.0648102537,
0.202364549,
0.2036436796,
-0.1215250567,
-0.2953962088,
0.1192035004,
-0.0661068559,
0.2310603559,
-0.141550824,
0.2451856136,
0.2159565091,
-0.4761734307,
0.0169275086,
0.1729526222,
0.2636411488,
-0.0949213132,
-0.0716294795,
0.0844311044,
-0.1926233172,
-0.1709378511,
0.1019343287,
0.1432536095,
-0.21985434,
-0.2468984723,
-0.1720296443,
0.2358918786,
0.0505826175,
0.1664778292,
-0.3376272321,
-0.0937113464,
-0.0191646926,
0.0847072154,
0.0170153454,
-0.3435070217,
-0.1635674536,
-0.4360638261,
-0.1005596146,
-0.0045318953,
0.2611822784,
0.0102104377,
-0.0067828866,
-0.0073438757,
-0.2149258405,
0.1653945893,
0.0191702452,
-0.1370357573,
0.2273194045,
0.3431299925,
0.0024915722,
0.0901403576,
0.0278123375,
-0.3589978516,
-0.0752972737,
-0.5677214861,
-0.0894886106,
-0.1092192382,
-0.0865556076,
-0.1470210701,
-0.0260540359,
0.1151372716,
0.1055311114,
0.1590503454,
0.0149064008,
-0.055512093,
0.028620299,
-0.1817696542,
-0.2387735844,
-0.2334938496,
0.1872779429,
-0.2748403549,
0.1702752113,
-0.3251534104,
-0.0579887405,
0.1258346736,
0.2945931256,
0.3319773972,
-0.2358253747,
0.054921478,
0.5029608607,
0.1028287709,
-0.1955350637,
0.1301609278,
0.2393957227,
0.2222971171,
0.2265912741,
-0.0206646118,
0.0178151149,
-0.0860928595,
0.0277852267,
-0.0366938822,
0.5197253823,
-0.1242089048,
0.0951521099,
0.1264326721,
0.0772211403,
0.1951890588,
-0.2844772935,
0.0635278374,
-0.2143609524,
0.1527556479,
-0.0160785969,
0.3517082334,
-0.1698877811,
-0.4633815885,
0.241739586,
0.5189926028,
-0.0235862546,
-0.1254297495,
0.0866568312,
0.1243805811,
0.1088788658,
0.067982167,
-0.0598792993,
0.2594279647,
0.2369303256,
-0.3302018046,
0.167219013,
0.2142619342,
-0.1110283062,
0.403808713,
0.2749055624,
-0.3918888271,
0.123985827,
0.2421784401,
0.2290454209,
-0.1030397043,
-0.0795378461,
0.3744899333,
0.061518874,
-0.0857164413,
0.2430693954,
-0.115616262,
-0.2369739562,
-0.209985584,
-0.3497955799,
-0.2407313734,
-0.1152426973,
0.1840033233,
0.1039342731,
-0.0843765661,
0.528783977,
0.3818038702,
0.1957977861,
-0.3022129536,
0.251601547,
-0.4906474948,
0.0478497259,
-0.1930364072,
0.1969322264,
0.0936819091,
-0.3598352969,
0.1608750224,
-0.2226646543,
-0.1219842508,
-0.5356273651,
-0.5556455255,
0.0864238068,
-0.2615892887,
0.2382650077,
0.1416539997,
0.0404229723,
-0.4078267813,
-0.3700217009,
0.2249289304,
0.1187511683,
-0.2064422369,
0.2014658153,
-0.1614038497,
-0.335888803,
-0.1385357678,
-0.3677569628,
-0.080664359,
-0.0821336731,
0.3650188744,
-0.1025463343,
0.228974551,
0.3289300203,
-0.1298049539,
-0.2909533381,
0.0979060605,
0.1153638586,
-0.251889497,
-0.1769761741,
0.0944933966,
-0.1645527482,
-0.2252820134,
0.02619965,
-0.048145812,
0.2118772715,
-0.1297398359,
-0.3867567778,
-0.23605977,
0.0413243771,
0.1241029277,
0.1693953574,
0.077617906,
0.2897634208,
0.3109038472,
-0.1027288139,
-0.1665300131,
-0.4273247421,
-0.0180261377,
0.3021514416,
0.4634048045,
-0.3625275493,
0.1608625799,
-0.1240990907,
0.0023474186,
0.0094806645,
0.3506607711,
0.1515037715,
-0.0052683195,
0.0718127638,
-0.2306974828,
-0.1277490109,
0.0316177346,
-0.2316506058,
0.0585433096,
0.2887188792,
-0.294200778,
0.1125950068,
-0.1488188207,
0.1061367691,
-0.5178530216,
-0.3060031235,
-0.1865828186,
-0.160848543,
0.3870385289,
0.2780505419,
0.012462277,
-0.1357076466,
-0.0561649054,
0.2939872146,
0.0258513503,
0.0657458156,
-0.0785290673,
-0.3588758111,
-0.0103737265,
-0.1426103413,
0.422932595,
-0.2860358357,
0.2489162683,
0.1301641464,
0.0998185501,
0.0053231018,
0.2126433551,
0.7972444892,
0.0315617323,
-0.4688004553,
0.302439332,
-0.1197976395,
-0.0319883898,
-0.32829988,
-0.0313431658,
-0.0186174903,
0.437977165,
0.1388610899,
-0.4520823359,
-0.0188289285,
0.2419734895,
0.2381821722,
-0.2459292561,
-0.074821569,
-0.2716242373,
-0.0631896928,
-0.0122863557,
-0.2078570575,
-0.0740655512,
0.2199373692,
0.113617152,
0.1106212586,
-0.0790067017,
-0.2644731104,
0.2604279816,
0.2837175131,
0.3572390079,
-0.2024771869,
0.437782824,
-0.224340871,
0.3011211157,
0.4790894985,
0.3902092278,
0.0053430819,
-0.4359076023,
0.0998991504,
-0.5236309171,
0.2256714404,
0.177844584,
0.1896972209,
0.3772082627,
-0.0664846823,
0.0849997103,
0.1225889325,
-0.104095608,
0.2761091888,
-0.0157690104,
-0.3889243007,
-0.3084338605,
0.2473216504,
-0.2022996545,
-0.1692667454,
0.4423814714,
0.3534352779,
-0.049697794,
0.9052365422,
-0.23526977,
0.9310003519,
0.0504797027,
-0.2425623834,
0.2710794508,
-0.4328080714,
0.2700551748,
-0.1203609705,
0.2359977365,
-0.5181067586,
-0.1577053964,
0.0900911167,
0.0877592117,
0.2624492645,
0.2051600069,
-0.1191251501,
0.2523733675,
0.043698404,
-0.3519421518,
-0.0200384147,
-0.0201821979,
0.2961990237,
-0.0045860591,
-0.1460127085,
0.0416388363,
0.0230057221,
-0.0264114253,
-0.1382807344,
0.0329402275,
-0.1594154984,
-0.0429602154,
-0.0306768864,
0.0530267693,
-0.1027335748,
-0.036929097,
0.435574919,
-0.4692651033,
-0.0758379921,
0.1702310741,
0.6946984529,
0.0292822178,
-0.1147402599,
0.3861618042,
0.2650388479,
-0.072560139,
0.2786453068,
-0.0025961469,
0.1573778242,
0.028179612,
0.0517747141,
0.102137804,
-0.1830603331,
0.0869922116,
-0.3640324473,
-0.0979759768,
0.3637430072,
-0.2758002877,
0.0110187912,
-0.3319992721,
0.2565335333,
-0.4959950447,
0.123962149,
-0.0158705618,
0.1225644872,
0.2212996781,
-0.031442333,
-0.0600146987,
-0.2707334757,
-0.2629671395,
-0.073470585,
0.1835182458,
0.4372507632,
-0.0157404784,
0.0016239829,
-0.0522298031,
-0.1351684928,
0.0255957916,
-0.2900261283,
-0.0126250368,
0.1309180856,
-0.2370335162,
0.2933890224,
0.8270550966,
0.1849595159,
0.1377265602,
0.2103327215,
-0.3168667257,
0.026810145,
-0.0546114892,
0.290648222,
-0.091551207,
0.4083641171,
0.3413814902,
-0.2920485735,
0.1348320842,
-0.3003430963,
0.1879256517,
-0.2479501516,
0.303907454,
-0.7324174047,
-0.0214158744,
0.0046019973,
-0.2280011326,
0.1704419702,
-0.1775668263,
0.0521031581,
-0.1815687418,
-0.3394848406,
0.1412887424,
0.1097955182,
0.0572007038,
-0.3014431,
0.0226826109,
0.000537607,
-0.1457262635,
-0.2104511559,
0.0725267231,
0.1250723749,
0.0921286121,
-0.236161679,
0.1439383626,
-0.4263331294,
-0.1549978256,
0.1247405186,
0.0279304739,
0.3446722925,
0.0830086023,
-0.3231664896,
0.0120611703,
0.0538546331,
0.0284845736,
-0.3018507659,
-0.0128941974,
0.6438711286,
-0.2483634502,
0.0534958728,
-0.0040789992,
0.2113294601,
0.2914757133,
-0.2818869054,
0.0593402907,
0.2022076249,
0.2397367209,
-0.567116797,
-0.119717896,
0.3210221529,
0.0538231693,
0.0769441724,
0.1798098385,
0.4685710967,
-0.1739064455,
-0.0270178579,
0.1347606182,
0.2508195937,
0.0013564804,
-0.022929864,
0.4606135488,
0.165039137,
0.4246288836,
0.5513445139,
0.2517766356,
-0.2753793597,
0.2397169918,
-0.0021751975,
0.0244708546,
-0.1631890535,
0.0936710984,
0.1272818297,
-0.1404579878,
0.5015010238,
-0.3174087703,
0.0452761538,
0.0731407478,
0.1120059341,
-0.2818336487,
0.046042338,
-0.1867114007,
0.0558692962,
-0.0803974122,
-0.1864292473,
-0.0106482357,
-0.085781984,
-0.1190582961,
0.3817881346,
-0.0304393619,
-0.0718708411,
0.0509204492,
0.3453859389,
0.099413693,
-0.0642895326,
0.0026720995,
-0.2425035387,
0.2131692618,
0.3935344219,
-0.2334592193,
0.2876051068,
0.1720986813,
-0.3992298245,
0.1464208215,
0.267349273,
0.0848378688,
-0.0173958745,
-0.1246391386,
-0.114099592,
-0.0545876063,
-0.0753420368,
0.1728267968,
0.1003947258,
0.3005588353,
0.3896973729,
0.1270169467,
0.0934839472,
-0.0959645361,
0.1593383551,
0.0931778923,
0.0106139733,
-0.4173464179,
0.0477498658,
-0.1416768581,
-0.4048498571,
-0.0838072971,
-0.110524103,
-0.0704644173,
-0.041889932,
-0.006949143,
0.1371657699,
-0.0385466367,
0.2213146091,
0.1282764673,
0.2091664821,
-0.0657712817,
0.3741938174,
0.1207345352,
-0.305418402,
-0.4476357102,
-0.1793344766,
0.1913489848,
0.0721634477,
0.2102836072,
0.4021537006,
0.143010065,
0.3653482795,
-0.1624164581,
-0.0366756432,
0.001270761,
-0.3429919183,
0.3362573087,
-0.5514027476,
-0.0841142982,
-0.0861212909,
0.0953220129,
0.0291713905,
0.1775506288,
0.2629627883,
0.0922372043,
-0.0335221663,
-0.1707147658,
0.0708326846,
0.2319627404,
0.0355931483,
0.3394762874,
0.148320049,
-0.0469811186,
-0.1070332006,
-0.278762877,
0.2217554301,
-0.0301835071,
-0.2635975182,
0.5513608456,
-0.0922337994,
0.1529086679,
0.3110049367,
-0.5364219546,
0.1412920952,
0.5675958395,
0.1173081398,
-0.0587514602,
-0.4865901768,
0.3406098187,
0.3336185515,
0.2185287178,
0.124203302,
0.3331138194,
-0.0943714306,
0.3457241654,
-0.4066906571,
-0.3158182502,
0.4238841236,
-0.2337876707,
0.0034082078,
-0.0463922881,
0.2940777242,
-0.2256067246,
-0.0992402658,
-0.6285580993,
-0.3294949234,
0.3771766722,
-0.287697643,
-0.1582081467,
-0.0120708765,
-0.1471597403,
0.1740896553,
0.0317044854,
0.8797950745,
0.2091995627,
-0.10173475,
0.0753023103,
0.1399415135
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case). | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 26 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case). | [
-0.1161505356,
0.1762668341,
-0.0998141393,
0.2082637399,
-0.117515862,
-0.067944631,
0.2634468973,
0.3842664659,
-0.0682339072,
0.2268134803,
0.0829303637,
0.5433103442,
0.3696924746,
0.374489814,
-0.0723104253,
-0.1654941887,
0.2737470865,
0.0790645778,
0.0742814839,
-0.0737501755,
-0.2772864997,
0.4863911271,
-0.2478753775,
0.1263599247,
-0.0173006803,
-0.0689552799,
-0.4230710268,
-0.0818825662,
-0.0776616186,
-0.1128557324,
0.0236231089,
0.0905775353,
-0.2878525853,
0.2855876684,
-0.0001039611,
-0.2040238082,
-0.1029008701,
0.016638929,
-0.2745752037,
-0.3155653179,
-0.0625000447,
-0.2827523351,
-0.0228265841,
-0.3079061806,
0.0283305757,
-0.0746189207,
-0.1330302209,
0.0362829827,
0.2423204035,
0.109177269,
0.2800573409,
-0.0366080776,
0.3084506392,
0.0872450322,
0.1979925036,
-0.0720163211,
-0.3100848496,
0.0493777134,
0.275647521,
-0.0370132476,
0.1984854043,
0.3345745206,
-0.0073393113,
-0.1663631201,
-0.3395026028,
0.1237379611,
0.1451829672,
-0.2142664641,
0.1994116306,
0.4345284402,
0.140697524,
-0.229367435,
-0.4140453637,
-0.1950009614,
0.0871017352,
0.0065516136,
0.1302559525,
0.2665212154,
0.0974124074,
-0.0211019497,
0.1986638159,
-0.0972030014,
0.087101914,
0.1360362768,
-0.3380749226,
-0.0190095864,
-0.0554935858,
-0.04202988,
-0.3384497464,
-0.1862933785,
0.3455228508,
-0.1355032027,
-0.0522471964,
0.0849867463,
-0.4293118715,
-0.0927634314,
-0.1133905277,
-0.2603659928,
-0.0867137387,
-0.3093693554,
0.209497869,
0.038483683,
-0.1880082786,
0.1611951888,
-0.0983721316,
-0.1684163511,
-0.0119011626,
0.0938895866,
-0.1774171442,
0.0835959762,
0.0318263732,
-0.1086203232,
-0.0003453539,
-0.1978135556,
-0.3115185797,
-0.0807544291,
0.4885975718,
-0.1168295667,
-0.2789550126,
0.2509898543,
-0.0757602379,
-0.0863249674,
-0.1022852063,
0.1180620566,
-0.2399753928,
-0.1147844642,
0.0883718878,
0.1448533684,
-0.1070464924,
-0.2465524673,
-0.2602136433,
0.0047857692,
-0.0428153016,
-0.0045183967,
0.1395770907,
0.1415013373,
0.3251699209,
0.3179630637,
-0.1487002671,
0.0040556244,
0.0178212188,
-0.1341715157,
0.0499025658,
0.1909600794,
-0.1317247301,
-0.073873736,
-0.0367433392,
-0.1831253767,
0.0450733677,
0.251337409,
-0.4002464712,
0.0646225736,
-0.2806537747,
0.2998212576,
0.1551377177,
-0.0261790529,
0.1702262461,
0.2366894037,
0.0158688016,
-0.2360410839,
0.0848966986,
-0.0527100749,
0.2143972069,
-0.1937698573,
0.22608383,
0.1470684409,
-0.4692806602,
-0.0124614025,
0.0516174622,
0.2656969428,
-0.1624744236,
-0.0453695618,
0.0437521078,
-0.1041747779,
-0.101020284,
0.2361855954,
0.1349918693,
-0.1779551208,
-0.2616645992,
-0.132616356,
0.1886616945,
0.0202896614,
0.0040240157,
-0.3284062147,
-0.0587316081,
0.0224262625,
0.050037194,
0.0695556253,
-0.1957745254,
-0.0745369941,
-0.4424241483,
-0.1358467042,
-0.0091457572,
0.2606329918,
0.0382566378,
-0.0517784357,
0.0433983207,
-0.2837475836,
0.216997236,
-0.0322632268,
-0.0847253874,
0.1967955828,
0.3808196783,
-0.0952734351,
0.1505289227,
0.0497955419,
-0.3753676414,
-0.0786412507,
-0.5623027086,
-0.0061643785,
-0.2038078755,
-0.1636136919,
-0.2155459374,
-0.0545330197,
0.100349009,
0.1010088995,
0.2583276629,
-0.0975087509,
-0.081031628,
0.0535620376,
-0.1708596051,
-0.1962126344,
-0.1490837485,
0.1388361007,
-0.262571156,
0.188849166,
-0.2881686687,
-0.0800054967,
0.2341862321,
0.2018252611,
0.3368148804,
-0.1874921024,
-0.0099294083,
0.4728310406,
-0.0242722537,
-0.1281564385,
0.0444731005,
0.1807563454,
0.1571734697,
0.1908341646,
-0.0373196751,
0.0646163225,
-0.0344994105,
0.0136086484,
0.0323697291,
0.5313248634,
-0.1247313172,
0.1122451499,
0.0888451189,
0.1604669392,
0.188558355,
-0.281727016,
0.074578166,
-0.2457058579,
0.0861222371,
-0.0327708349,
0.2651014626,
-0.1466148645,
-0.3386495113,
0.3058727682,
0.5816290975,
-0.0018498363,
0.021254722,
0.0500007086,
0.0603066981,
0.0839022249,
0.1256485432,
-0.0095961373,
0.1865544319,
0.2287824154,
-0.2318186909,
0.127583459,
0.2199300081,
-0.1522220522,
0.4072504044,
0.1439539045,
-0.2241385728,
0.1113509685,
0.1973221749,
0.134993583,
-0.193662867,
0.0189080425,
0.3170987964,
0.1271078885,
-0.1464080662,
0.2463553697,
-0.1314216554,
-0.1791523397,
-0.0768753737,
-0.3673416376,
-0.2598343492,
-0.1653420627,
0.2216367275,
0.0701691955,
-0.1488023549,
0.4860240519,
0.4406915307,
0.2451149076,
-0.2136398107,
0.3129407763,
-0.4735951126,
-0.0562950559,
-0.1763980538,
0.2618391812,
0.0407952815,
-0.2819299102,
0.1080022156,
-0.2482580692,
-0.0768496916,
-0.4382807314,
-0.513191402,
0.0558779761,
-0.3506878912,
0.2944268584,
0.0944472477,
0.160281077,
-0.4880571961,
-0.2957557738,
0.173408553,
0.0852152333,
-0.1876088232,
0.1554163992,
-0.1047737524,
-0.2130278796,
-0.1804383844,
-0.348551482,
-0.2095427513,
-0.1127630919,
0.3611765206,
-0.1796553284,
0.249494344,
0.3568105996,
-0.1382676661,
-0.1979293227,
0.0803250298,
0.1736747921,
-0.3752736151,
-0.2353875637,
0.1732623428,
-0.2401869446,
-0.3293791115,
0.0034919386,
-0.0258795898,
0.3786913753,
-0.1570197195,
-0.3531202972,
-0.140611127,
0.0295630228,
0.0246117171,
0.1031479985,
0.1047216281,
0.2619678974,
0.2166335583,
-0.1548823416,
-0.2434277236,
-0.1901933402,
0.0001962214,
0.2206795663,
0.3922326863,
-0.3820078671,
0.1994882822,
-0.0549262427,
-0.0112124318,
-0.0499066897,
0.3765995204,
0.1901937276,
0.0389415547,
0.1284619123,
-0.2115111947,
-0.1767995209,
0.0248638522,
-0.237577185,
0.0492531918,
0.3221207261,
-0.300763607,
0.0745563209,
-0.1179613397,
0.0055833724,
-0.6239778399,
-0.3436446488,
-0.1725700647,
-0.0837450027,
0.315600276,
0.356297642,
0.0086775161,
-0.0942702368,
-0.0239870939,
0.2829868793,
0.0585684665,
0.038872499,
-0.1316912323,
-0.330976218,
-0.0459598415,
-0.2426130623,
0.4055451751,
-0.3332295716,
0.1591718197,
0.087447986,
0.0676396862,
-0.0251514055,
0.0973566398,
0.7164915204,
0.089378275,
-0.424639374,
0.2610907555,
-0.1263484657,
-0.1448194981,
-0.2815339863,
-0.0738063827,
0.0264155138,
0.3970377743,
0.0751614124,
-0.4663992226,
-0.0449186713,
0.2245634794,
0.1660794467,
-0.2599889636,
-0.0942963213,
-0.3293537199,
-0.0998536274,
-0.0319783911,
-0.2078591734,
-0.0532296598,
0.2163886279,
0.0508758947,
0.0276737642,
-0.1040849611,
-0.3228851259,
0.2385377586,
0.3469390869,
0.3414718211,
-0.1228845268,
0.4165399373,
-0.2262595445,
0.2684841156,
0.4010187984,
0.4134812653,
0.0292402022,
-0.3360221684,
0.0764673278,
-0.5280937552,
0.2640614808,
0.1752445251,
0.0467530675,
0.3676151633,
-0.1191592366,
0.0737230927,
0.0886152834,
-0.0519236065,
0.2587983012,
0.017304061,
-0.365724951,
-0.2438224554,
0.3588811755,
-0.2141179144,
-0.2181984335,
0.4823049307,
0.3102605641,
-0.1193504781,
0.8210312724,
-0.1455318779,
0.8783848286,
0.0601361915,
-0.18355079,
0.3386192024,
-0.3682381213,
0.2264683992,
-0.0218315721,
0.168886438,
-0.5070125461,
-0.1508196592,
0.1243946627,
0.1321375221,
0.2759355009,
0.273601681,
-0.1213440597,
0.1601071507,
-0.0061409683,
-0.3218987286,
-0.0465408936,
0.0142211067,
0.228878811,
-0.0566472709,
-0.2142933607,
0.1553014368,
-0.0027067657,
-0.0704436973,
-0.1039485335,
0.0400512628,
-0.2087172866,
-0.0898066685,
0.0517958477,
0.0843140781,
-0.1312540323,
0.0137076182,
0.3024519682,
-0.5209813118,
-0.0870154724,
0.0605053864,
0.6082133651,
0.078201443,
-0.1257760972,
0.3514012396,
0.1894428432,
-0.0254022945,
0.2188750356,
0.0366215967,
0.1707042307,
0.0009191118,
-0.0007781894,
0.1060130745,
-0.1159548908,
0.1172344089,
-0.2481515259,
-0.0647822097,
0.2118125707,
-0.3153561652,
-0.0132177919,
-0.2606682181,
0.2572786808,
-0.4795153141,
0.1931931525,
0.0207718983,
0.0209551118,
0.2562416196,
0.0272164773,
-0.1116138026,
-0.262662679,
-0.1120034978,
-0.0281983875,
0.2058794498,
0.4759533405,
-0.0203770362,
0.0013228194,
-0.1412914395,
-0.0495781787,
0.1485661119,
-0.2953934968,
-0.0106868204,
0.1053983271,
-0.200446412,
0.2003775537,
0.7700163722,
0.1651265472,
0.1686737239,
0.1945604533,
-0.3337332606,
-0.0354193412,
0.0722941905,
0.199398309,
-0.0537616424,
0.334562093,
0.2656873167,
-0.2807099223,
0.1656959802,
-0.4030259848,
0.2027240396,
-0.2176814973,
0.3391772509,
-0.7107682824,
-0.0817358419,
0.0881565064,
-0.176790759,
0.248184368,
-0.1367971152,
0.0268989354,
-0.302357465,
-0.327106446,
0.0988947973,
0.070063822,
0.0756753236,
-0.2830738425,
-0.0387546383,
-0.0697889104,
-0.107119374,
-0.1096252128,
0.0174166504,
0.1223751679,
0.1525789052,
-0.1841683388,
0.0749135241,
-0.301007092,
-0.172145769,
0.082591176,
-0.0309778042,
0.255148083,
0.1021787897,
-0.2990248501,
0.0326383188,
0.091518119,
0.0304191131,
-0.3581733108,
0.002903634,
0.5847670436,
-0.275557369,
0.0082861166,
-0.0298577119,
0.1968152076,
0.2168903649,
-0.2480537295,
0.0071882759,
0.171753943,
0.3385327458,
-0.5861024261,
-0.0802973956,
0.2679604888,
0.0147023387,
0.1478295922,
0.1420699507,
0.3247986436,
-0.1462526321,
0.0335585102,
0.1682349741,
0.217318356,
0.0522199646,
0.0123626757,
0.3951948285,
0.1159706563,
0.4019332528,
0.5160575509,
0.2544071376,
-0.2518053651,
0.2612201571,
-0.0861505121,
0.0967186391,
-0.1473428607,
0.0412573367,
0.1256573647,
-0.0512853041,
0.3847829103,
-0.2725307941,
-0.0043176794,
0.0828023851,
0.115315862,
-0.222084552,
0.0552167334,
-0.2410238534,
0.0099377306,
-0.0476253927,
-0.2435318679,
0.0140957357,
-0.1638172865,
-0.0923812911,
0.3353588283,
-0.0926393047,
-0.0753266588,
-0.0073744385,
0.2863304913,
0.1393615305,
-0.0241412707,
-0.0279774331,
-0.2495367378,
0.2343773097,
0.4089653492,
-0.2049571574,
0.2477422357,
0.1399078369,
-0.2872046232,
0.0895430222,
0.3408016562,
0.0796401426,
0.0272262674,
-0.1079759151,
-0.0708974004,
-0.057110507,
-0.126066193,
0.1561549902,
0.1017086506,
0.3310680687,
0.3840503693,
0.2008051127,
0.1834612936,
-0.1602077782,
0.1308434755,
0.164235577,
0.0217697006,
-0.2868916392,
-0.0714143738,
-0.1764991581,
-0.358815223,
-0.1138741747,
-0.2090851516,
-0.1937678605,
-0.0075024287,
0.0365419611,
0.0693736821,
-0.0422917567,
0.0943745971,
0.1708501428,
0.1803199947,
0.0768340528,
0.2496046871,
0.1989446729,
-0.3392300904,
-0.4411240518,
-0.2963802516,
0.1642396152,
0.0240145102,
0.2551873028,
0.2840351462,
0.1674188226,
0.3084024489,
-0.0916727185,
0.0569804609,
-0.0089162141,
-0.3167069256,
0.2572236657,
-0.5916234851,
-0.067103833,
-0.0615669303,
0.0857263878,
0.0266743023,
0.162269637,
0.2636268139,
0.0167618748,
0.0380546115,
-0.1896513551,
-0.01036241,
0.1949939728,
-0.0067015681,
0.3379686177,
0.1089947969,
-0.1020414829,
-0.1402897239,
-0.2433788329,
0.1891248375,
-0.0636318699,
-0.1865039915,
0.5584608316,
0.0354349017,
0.2717224956,
0.3334321678,
-0.4609058499,
0.1151877716,
0.5874646902,
0.121675998,
-0.1004333049,
-0.4577451944,
0.3313204646,
0.4072268009,
0.1447761357,
0.0319882371,
0.3380997181,
-0.1191733405,
0.3695591688,
-0.3933903277,
-0.3590605259,
0.4552843869,
-0.2834562361,
-0.0419328995,
-0.0582197607,
0.3202482462,
-0.2162524015,
-0.1223172545,
-0.5871608853,
-0.2459759563,
0.3565891087,
-0.2592827678,
-0.14364779,
0.0462297723,
-0.057450518,
0.2173639834,
-0.0163005404,
0.7663817406,
0.246430248,
-0.1427810043,
0.0277256686,
0.058896184
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 81 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new. | [
-0.1998205185,
0.2370988578,
-0.0784825236,
0.0383832976,
-0.0463750511,
-0.1121220514,
0.261579901,
0.4792057276,
-0.0928937942,
0.1985219419,
0.0985915437,
0.5298961401,
0.2929408848,
0.4118284881,
-0.169930324,
-0.23902376,
0.3220477998,
0.0963060707,
0.0373929888,
-0.0297699124,
-0.2773752511,
0.4006696641,
-0.200198397,
0.2162718475,
0.0107197464,
-0.1585648656,
-0.3610792756,
-0.0646193996,
-0.2465390861,
-0.2597967684,
-0.043891266,
0.133666262,
-0.1141779274,
0.2389492542,
-0.0001032298,
-0.1938910335,
-0.0162153505,
0.0479468778,
-0.3473055661,
-0.2557960451,
-0.0139475586,
-0.2987169027,
0.1325174272,
-0.2405081838,
0.0040544774,
-0.134462297,
-0.1044184193,
0.0730474442,
0.2347443104,
0.1115612164,
0.2914757133,
-0.0630372316,
0.2146610767,
-0.0482491814,
0.0782303587,
-0.0539085232,
-0.3029433191,
0.0646093935,
0.2851050198,
-0.0814452842,
0.1112827063,
0.3693178892,
0.0293924417,
-0.1277955025,
-0.1931435019,
0.1135857627,
0.2679796517,
-0.1832536608,
0.1381150484,
0.3778244555,
0.1863678694,
-0.2622228861,
-0.5149416327,
-0.185047552,
0.0676456541,
-0.0908424109,
0.0705581009,
0.2291251421,
0.068120636,
-0.0202272534,
0.2432045788,
-0.1368509978,
0.0494814217,
0.0431371927,
-0.4447058141,
0.0612423867,
-0.0346468501,
-0.0955074281,
-0.2979379892,
-0.2101939321,
0.3986323178,
-0.0265998933,
-0.0113748899,
0.0147636067,
-0.3054992557,
-0.1837223023,
-0.0489161536,
-0.2401827276,
-0.0670297146,
-0.2346080542,
0.1066427156,
-0.0033505124,
-0.2863813639,
0.0689620376,
-0.0158906691,
-0.2115444839,
0.0326232538,
0.0392361246,
-0.0905866548,
0.1374675035,
0.1984360814,
-0.1160759628,
-0.0263007451,
-0.2250663936,
-0.3707792461,
0.0145770721,
0.5224701762,
-0.1758760065,
-0.2654772401,
0.1506182104,
0.004803055,
0.0059804283,
-0.1979893446,
0.1639261395,
-0.1976360083,
0.0646768883,
0.1189693287,
0.1277625859,
-0.094069384,
-0.2020079792,
-0.2299276143,
-0.0103678778,
-0.0435888842,
-0.0299735274,
0.0607456192,
0.1464208066,
0.2042163461,
0.3688278496,
-0.2108076066,
0.0354425684,
0.0145673528,
-0.0247553028,
0.0658485889,
0.1762519628,
-0.2109217644,
-0.0627135038,
0.0830810145,
-0.1532115936,
-0.0143368393,
0.3369724751,
-0.2739043832,
0.0266774558,
-0.2911611199,
0.2905388772,
0.1507816464,
-0.0562749505,
0.2711255252,
0.3130825758,
-0.0827211365,
-0.2508015335,
0.0129883299,
-0.0867593661,
0.1503081918,
-0.0984965339,
0.1103978083,
0.205416888,
-0.5166162252,
-0.0188168157,
0.128258124,
0.2234387249,
-0.0775576532,
0.0189196728,
0.002997257,
-0.2300250381,
-0.0733155459,
0.1773726493,
0.1012827083,
-0.1410938203,
-0.1837271303,
-0.0839698315,
0.1371008754,
-0.0739221573,
0.0763825551,
-0.2898015976,
-0.0671227649,
-0.1025742367,
0.0498885773,
-0.0017456568,
-0.1700807661,
0.0536477044,
-0.4612780511,
-0.242309913,
-0.002864236,
0.2199138999,
0.1194805503,
0.0237898026,
-0.0390981846,
-0.1433980614,
0.2353885919,
-0.0518856347,
-0.0870458335,
0.1132153049,
0.4571614563,
-0.20647268,
0.0875993893,
0.1114552543,
-0.2422717512,
-0.1071833894,
-0.4896310866,
0.0463796295,
-0.0993774459,
-0.2356159836,
-0.3022111356,
-0.1086319312,
0.1151669472,
0.0907615721,
0.2523512542,
-0.0306421518,
-0.1306033432,
0.0369820856,
-0.2288012058,
-0.1430545449,
-0.1339362413,
0.191481337,
-0.2582805455,
0.0875584185,
-0.2627542019,
-0.0879357159,
0.2368009537,
0.1528705657,
0.3169937134,
-0.1752403229,
0.0466139801,
0.4932323098,
-0.0330643803,
-0.1096139997,
0.0631089434,
0.2489835024,
0.1788587421,
0.289247781,
-0.0493831001,
0.0978313684,
-0.0827014446,
0.1208643839,
-0.1750694066,
0.5863132477,
-0.0899432302,
0.1096534804,
0.174136892,
0.2030380666,
0.125625208,
-0.2711809278,
-0.0061890483,
-0.2653928697,
-0.0562187061,
-0.0294115972,
0.2119825929,
-0.1210849434,
-0.439443469,
0.3950172067,
0.6058949828,
0.0087818149,
0.0451276973,
0.1463063359,
0.0000689646,
0.0329016559,
0.1618921608,
0.031174941,
0.1716321111,
0.2589486837,
-0.139135018,
0.1627727598,
0.2002022117,
-0.1636454612,
0.4780522585,
0.0893876106,
-0.1905719042,
0.0034321614,
0.2120599151,
0.1565835029,
-0.1620077491,
0.0520750917,
0.2680381835,
0.1876590103,
-0.1235785708,
0.1731393486,
-0.1238359064,
-0.1179231852,
-0.0965239331,
-0.2809499204,
-0.1824324876,
-0.2336389124,
0.2391782254,
0.1003155261,
-0.1130850315,
0.4769405127,
0.4171312153,
0.2937075794,
-0.2029822022,
0.4174236655,
-0.4850844443,
-0.1683722138,
-0.0915306881,
0.2957091033,
0.153681159,
-0.2638557851,
0.0690223575,
-0.2572189271,
-0.1692383587,
-0.455270946,
-0.5544627905,
0.0483505614,
-0.3250362873,
0.1949595362,
0.1483696252,
0.2336512655,
-0.3876566291,
-0.2195435911,
0.1626629233,
0.0392103568,
-0.2732243836,
0.1251773387,
-0.2401102185,
-0.0609774068,
-0.2087866515,
-0.3720906079,
-0.1433979571,
-0.1945352703,
0.3988312483,
-0.2503168881,
0.1881338805,
0.3150852025,
-0.0868957192,
-0.271187216,
0.116486907,
0.0950997174,
-0.3267279267,
-0.2162289321,
0.1459926218,
-0.2399430275,
-0.3150312603,
0.0107055558,
0.0460242108,
0.3279111087,
-0.191835165,
-0.3293859661,
-0.2259616107,
-0.0589472093,
0.0369402543,
0.0848520324,
0.0701707527,
0.3200859427,
0.3417242169,
-0.2293599099,
-0.0971225351,
-0.2173163891,
-0.0286905486,
0.2196537554,
0.2919327319,
-0.3193594813,
0.2304579467,
0.0461046584,
0.1900873631,
-0.0341216847,
0.3429833055,
0.0846757218,
0.1143716276,
0.1455873549,
-0.291710645,
-0.0973381326,
0.0946827009,
-0.2263890803,
0.1175333858,
0.3279747367,
-0.3075986803,
0.0380407795,
-0.0810986608,
0.0954173356,
-0.5904294252,
-0.3252350986,
-0.1026939079,
-0.1993817687,
0.3439449966,
0.2739743888,
0.0796844959,
-0.1235810965,
0.0345453247,
0.2990583181,
0.091856055,
0.1772959381,
-0.1313043684,
-0.2711345851,
0.0745551214,
-0.2933966219,
0.3953533173,
-0.3127342463,
0.1619182378,
0.0516911894,
-0.0793588087,
-0.0712642446,
0.0740109608,
0.6153530478,
0.0614989251,
-0.4565382004,
0.3225724101,
-0.1085798666,
-0.2067983299,
-0.289060235,
-0.1432073712,
0.021136865,
0.351129055,
0.0572800823,
-0.4595963955,
-0.1402374953,
0.1942500174,
0.1017366573,
-0.1775458008,
0.0438373238,
-0.3760179281,
-0.1074062511,
-0.0780363157,
-0.0936284959,
-0.0196919423,
0.1764768064,
-0.12322779,
0.0391971432,
-0.1551086307,
-0.3302519619,
0.183695972,
0.3765234053,
0.3589832187,
-0.1121016592,
0.3146762252,
-0.1657027453,
0.2556402683,
0.4736274481,
0.3727113008,
0.0533514917,
-0.3569555283,
0.1924983859,
-0.4365504086,
0.2218942791,
0.3172607422,
0.0903326571,
0.3283293247,
-0.1119320691,
0.1187959909,
0.012525199,
-0.0400751233,
0.2129875273,
-0.0151700201,
-0.4101052284,
-0.228828907,
0.3355228901,
-0.1092698053,
-0.2688197494,
0.4390215576,
0.3364777863,
-0.0688337013,
0.8159006834,
-0.1240833104,
0.9092483521,
-0.1446987092,
-0.1250178814,
0.2554860711,
-0.3581863344,
0.3084590137,
-0.0332340486,
0.1777001321,
-0.5289087892,
-0.1841508001,
0.0733638555,
0.1555419862,
0.2672462463,
0.1981143802,
-0.2347009927,
0.1544677615,
-0.0789441094,
-0.3356941044,
0.0344180912,
0.0252418872,
0.0935731754,
-0.061260473,
-0.296014607,
0.1612891853,
-0.0854960606,
-0.0813371167,
-0.0853748322,
-0.0233146474,
-0.2200135142,
-0.0573144332,
0.0215340164,
-0.0000658041,
-0.136516124,
-0.0945498794,
0.2825743258,
-0.512003243,
-0.0690532476,
0.0682618544,
0.6774793267,
0.0277450141,
-0.0988021195,
0.3276601136,
0.073459506,
0.0307511855,
0.3182328343,
0.0702819452,
0.1622716337,
-0.0411602668,
0.0551521964,
0.1695881486,
-0.2065602094,
0.1165850461,
-0.3211285472,
-0.02283464,
0.1962859929,
-0.2507761717,
-0.008791144,
-0.2004925609,
0.2278426439,
-0.4297380745,
0.2021623403,
-0.0650750324,
0.0504206493,
0.1660928875,
0.0895478129,
-0.1095055491,
-0.2065092772,
-0.1189061776,
-0.0208332334,
0.1520659477,
0.4163092375,
-0.0227495339,
0.0417736806,
-0.1717629731,
-0.0063884328,
0.2911376953,
-0.2668014467,
0.0146431392,
0.0354921259,
-0.2377229184,
0.2039133459,
0.7473661304,
0.1197987646,
0.2084097117,
0.062602438,
-0.2800326347,
-0.040832743,
0.0909108445,
0.0497583002,
-0.0081183827,
0.3224799037,
0.3276510239,
-0.3232918084,
0.0238393676,
-0.4280058444,
0.2070728391,
-0.1351851225,
0.3182056844,
-0.7495480776,
-0.0851217359,
-0.0682068318,
-0.1706186235,
0.2382205129,
-0.1276085079,
-0.0252139065,
-0.2964405417,
-0.3112504482,
0.0940103382,
0.0766207948,
0.0730196387,
-0.2322117388,
0.0822480395,
-0.1797368973,
-0.0912313461,
-0.0401992276,
-0.0150065152,
0.0942535773,
0.1980194747,
-0.1509822756,
0.10936445,
-0.2510365546,
-0.2284488678,
0.1524770409,
0.0658798963,
0.213669017,
0.2256599069,
-0.3481064141,
0.0255610365,
0.1858640313,
0.1474058628,
-0.2377627492,
0.0500024408,
0.4743090272,
-0.188931495,
-0.0206108596,
-0.0473387465,
0.2175571322,
0.2391260862,
-0.1919049919,
0.0256073363,
0.1088538393,
0.3555814326,
-0.5912421346,
-0.0421551988,
0.1354893148,
0.0769303516,
0.1445989907,
0.1717709005,
0.3766643107,
-0.1541655809,
0.1885599494,
0.2204148918,
0.1299224198,
-0.0531508476,
0.0984450132,
0.4626913965,
0.1120657176,
0.3646607101,
0.4940544665,
0.1905432343,
-0.2210162729,
0.1996491253,
-0.0223082434,
0.1676296294,
-0.0733641535,
0.1582373828,
0.089214392,
-0.0783274248,
0.3205741644,
-0.2317974567,
0.0214402582,
0.012837939,
0.2271336168,
-0.155570522,
0.0169996247,
-0.3525318205,
0.0659774095,
-0.0988090634,
-0.2362078726,
-0.059747152,
-0.1723642498,
-0.0622067004,
0.262540251,
-0.08567103,
-0.135876447,
0.0080960011,
0.3445335925,
0.1302931905,
0.0637298226,
-0.1166067123,
-0.3045167625,
0.226176247,
0.4951324761,
-0.2086150795,
0.259177804,
0.1189088523,
-0.3167615235,
0.1280453354,
0.4280245602,
0.1561337262,
0.0864053667,
-0.1789672524,
0.047957994,
-0.1423756778,
-0.1084140539,
0.1473009139,
-0.0505627953,
0.4315102696,
0.4403366446,
0.1342498213,
0.1866895556,
-0.1280893236,
0.1956934035,
-0.023546394,
-0.0012820084,
-0.2871339619,
-0.05688278,
-0.0667007789,
-0.3671123087,
-0.0561173633,
-0.164641723,
-0.2372013479,
-0.019264929,
0.030931823,
0.1439068615,
-0.0232549999,
0.0548398234,
0.1672953665,
0.2927236259,
0.031105537,
0.2463089973,
0.2454237193,
-0.3015081882,
-0.4739496708,
-0.2566633523,
0.1369030774,
0.0816465691,
0.2683539093,
0.2701211572,
0.1080167815,
0.3214280307,
0.0039978297,
0.0156760756,
-0.1257499158,
-0.3043623567,
0.2747913301,
-0.6239225864,
-0.0515153259,
0.0825923234,
0.0182339828,
-0.012357872,
0.0893899873,
0.3053197265,
-0.0036315322,
0.077208668,
-0.1499097645,
0.0242473241,
0.1523926407,
0.1220250428,
0.325597018,
0.2438425571,
-0.1543174833,
-0.0865415484,
-0.3702514768,
0.1052551419,
-0.0885208547,
-0.3041943312,
0.5256761312,
0.0099361641,
0.3350537717,
0.3159710765,
-0.5402690172,
0.0571235605,
0.5804581642,
0.1355074644,
-0.07790564,
-0.5299730897,
0.2897223532,
0.4175796807,
0.1220326722,
0.0114040058,
0.3557329476,
-0.0348425359,
0.343646735,
-0.4622552097,
-0.3549788594,
0.4449535608,
-0.2065573484,
-0.086689122,
0.0210478622,
0.2236780226,
-0.1845294535,
-0.1018834263,
-0.6000642776,
-0.1756213009,
0.2635993958,
-0.1945212334,
-0.2237081081,
-0.0356881917,
-0.0631185323,
0.2128368765,
-0.1604551375,
0.8082326055,
0.2524476349,
-0.1558466554,
-0.1281211823,
-0.0375359878
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets.
There is always the tension between:
- preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset),
- and on the other hand performing some king of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure).
- Another advantage: datasets can easily be interchanged (or joined) to be used by the same model
Recently, in the BigScience BioMedical hackathon, they adopted a different approach:
- they implement a "source" config, respecting the original structure as much as possible
- they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 161 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets.
There is always the tension between:
- preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset),
- and on the other hand performing some king of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure).
- Another advantage: datasets can easily be interchanged (or joined) to be used by the same model
Recently, in the BigScience BioMedical hackathon, they adopted a different approach:
- they implement a "source" config, respecting the original structure as much as possible
- they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users. | [
-0.244081974,
0.2624767125,
-0.0215143748,
0.2153030038,
-0.2133324444,
-0.063490659,
0.3279465735,
0.3787684143,
0.0790012851,
0.2448695004,
0.0920588821,
0.5058540702,
0.2577792108,
0.5256162882,
-0.0657963902,
-0.0864537507,
0.3222070932,
-0.0016847457,
0.1259201318,
-0.0332097113,
-0.2707951963,
0.3219376504,
-0.1709600538,
0.1043871194,
0.1428175718,
-0.0399449766,
-0.3417810202,
-0.1384898275,
0.0216678437,
-0.0556600206,
0.0215739924,
0.1429429948,
-0.2502580881,
0.3122738898,
-0.0001125878,
-0.0990846828,
-0.1170588955,
0.0247351546,
-0.2829250097,
-0.2612345815,
-0.1522005051,
-0.3130830228,
-0.085845843,
-0.2250950634,
0.1091558784,
0.0708219111,
-0.0530223586,
-0.2014799416,
0.1056972742,
-0.0962442234,
0.162457943,
0.0244533699,
0.2243648767,
0.1887820959,
0.0876516923,
0.145497486,
-0.2560757697,
0.1021974981,
0.4588272274,
0.1188215017,
0.2518517971,
0.3702383041,
-0.0305448752,
-0.09068387,
-0.1424355805,
0.015196505,
0.0558176711,
-0.1968244016,
0.0462578312,
0.6054117084,
0.1472444236,
-0.209905833,
-0.5367063284,
-0.3190191388,
-0.0014907297,
-0.0820894614,
0.0620465502,
0.323435396,
0.1951521933,
0.0149360662,
0.1827814877,
-0.20195283,
0.1132201478,
0.151278764,
-0.3370800912,
-0.0148808975,
0.0393491425,
0.0231861435,
-0.5221725702,
-0.0330890603,
0.3732990026,
-0.218105346,
0.0222746283,
-0.1328948289,
-0.4370523095,
-0.1661534756,
-0.2469144762,
-0.2830930054,
0.0610680878,
-0.2374979556,
0.3128404617,
0.0309235565,
-0.1029569283,
0.198066771,
0.0239308625,
-0.207693696,
-0.1510951519,
0.1526000649,
-0.0644418001,
-0.0032952498,
-0.0399883576,
-0.0394967757,
0.0782404542,
-0.0989846587,
-0.4013640583,
-0.0899131596,
0.4437893629,
-0.10644117,
-0.2329270393,
0.2277949452,
-0.0672708526,
-0.0859648958,
-0.0650585815,
-0.0723330081,
-0.1935846657,
0.0345986336,
0.0117351301,
0.2197093219,
-0.0824294537,
-0.3044466674,
-0.1689798832,
-0.1660200804,
-0.011042973,
0.1442848444,
0.1084907874,
0.1600777656,
0.2555479109,
0.2959354818,
-0.184920609,
-0.0028741455,
0.1007332504,
-0.1201732531,
0.0152362473,
0.1522574276,
-0.1873694509,
-0.1677159071,
-0.1700241417,
-0.0772602409,
-0.1046850607,
0.2922754586,
-0.4605207145,
-0.0469591804,
-0.2382238954,
0.200414747,
0.0823912993,
0.0005815596,
0.0130726798,
0.3374343514,
-0.0397489443,
-0.3498173058,
0.0668698102,
-0.1071002483,
0.1021263227,
-0.1538417488,
0.2124991715,
0.1842785031,
-0.4019438624,
-0.0674873441,
0.1411878467,
0.4048882425,
-0.1980141401,
0.0258527137,
-0.1218426749,
0.0126704387,
-0.097204417,
0.1342114359,
0.2913089097,
-0.219724372,
-0.3691160679,
-0.1694416702,
0.261048466,
0.0484830737,
0.1170949116,
-0.2520833313,
-0.0223156102,
-0.1125092134,
0.030751409,
0.1195440069,
-0.271156311,
-0.123393707,
-0.4409736097,
-0.1863591075,
0.0964934155,
0.3140188456,
0.0981928185,
-0.0477526858,
0.0399079844,
-0.244576782,
0.19993563,
-0.1257564127,
-0.1508779675,
0.1160861999,
0.3408579826,
-0.0973980427,
-0.003909478,
0.1188412607,
-0.5085594058,
-0.0192680527,
-0.4814699292,
-0.183202818,
-0.0466572791,
-0.2196488678,
0.0140987849,
-0.1721493006,
0.0602051429,
0.1311450452,
0.1028436422,
-0.0045623365,
-0.1726895124,
-0.0423714891,
-0.3422117829,
-0.0275919102,
-0.2562107146,
0.2772022486,
-0.3756279647,
0.1617661119,
-0.3018533587,
-0.011002182,
0.2489248365,
0.2705902159,
0.1618912667,
-0.2918791771,
0.1231400669,
0.4181005657,
0.0041696834,
-0.2238512933,
0.0343080722,
0.3930398226,
0.2290639132,
0.2279182225,
0.0679672062,
0.0164630897,
-0.0684156939,
-0.1062347367,
0.0217415802,
0.4985008836,
-0.1907385141,
0.1894733906,
0.0970020667,
0.0638691112,
-0.0169087071,
-0.2064086199,
-0.1550230086,
-0.0533296876,
0.0323077925,
0.0552105047,
0.3825548291,
0.0008825695,
-0.4639362693,
0.2854018211,
0.6151414514,
0.0451861694,
0.0228654221,
0.121782355,
0.0811285824,
0.0220168065,
0.0776062384,
-0.0476598926,
0.3280905783,
0.2063089013,
-0.2247682363,
0.0804376975,
0.2391837537,
-0.0899492502,
0.3285054266,
0.2358717322,
-0.2295445502,
0.0591865778,
0.228391856,
0.223615095,
-0.0638745204,
-0.0725696608,
0.3102244437,
-0.0714153871,
-0.1536904126,
0.3449037671,
-0.0555502437,
-0.1400054246,
-0.314827472,
-0.3181684613,
-0.395925492,
-0.1937684417,
0.1878411025,
-0.0020371142,
-0.2004581243,
0.4969820678,
0.3700824678,
0.4885472059,
-0.4375545084,
0.2022910267,
-0.40125826,
-0.0282698721,
-0.1798640043,
0.1126999632,
0.2671349347,
-0.3610087633,
0.0695832893,
-0.2678537965,
-0.1390426457,
-0.3776910305,
-0.656473875,
0.1073639616,
-0.3104617894,
0.2782128453,
0.0562258884,
0.0704543591,
-0.3482403755,
-0.480437696,
0.0867852271,
0.1649170071,
-0.1435894072,
0.1668676883,
-0.1001446322,
-0.2250066251,
-0.0533999316,
-0.3928675354,
-0.2243209779,
-0.2000680715,
0.3705843389,
-0.2918745279,
0.2508517802,
0.3974412382,
-0.1721864045,
-0.4450572133,
0.0648374408,
0.2162248194,
-0.2577452958,
-0.3275820017,
0.134665966,
-0.1448572129,
-0.1755893379,
-0.1730333865,
0.0039079702,
0.4749498963,
0.0140084177,
-0.378757149,
-0.0708486885,
0.0443624705,
-0.044520393,
0.0995342731,
0.1809118986,
0.1752395779,
0.3077433705,
-0.0128268003,
-0.1105931327,
-0.2826232016,
0.0347187407,
0.1632359177,
0.4035330713,
-0.2850217819,
0.0737059712,
0.0544557236,
0.1299084723,
0.0673447922,
0.275360465,
0.1235369146,
0.1712962389,
0.2069483399,
-0.2637242973,
-0.1503321826,
0.2813255787,
-0.2193495929,
0.0017935351,
0.3186633289,
-0.2830317318,
0.0799231753,
-0.0844328627,
0.0795165822,
-0.5796131492,
-0.3837968707,
-0.0889609605,
-0.1594351232,
0.3694303334,
0.3268583417,
0.0105252098,
-0.1260314584,
-0.0120362863,
0.399182409,
0.2244013399,
0.1007142663,
-0.0021306458,
-0.3906502128,
-0.0564939268,
-0.1157607138,
0.4639098346,
-0.4560229182,
0.2955042124,
0.1749604642,
-0.0436544903,
-0.120401822,
0.1545832902,
0.6181171536,
0.1175153106,
-0.5078361034,
0.1059885919,
0.0163922962,
-0.0337732285,
-0.3630546033,
0.1206389144,
-0.0395639315,
0.4339200258,
0.1580569297,
-0.5505648255,
-0.0831441879,
0.1946406215,
0.2837172747,
-0.2225044519,
-0.0577183552,
-0.2416749299,
-0.0497223511,
-0.0194321666,
-0.2536526322,
-0.0512308367,
0.0965879858,
0.1865421981,
0.0717510134,
-0.3023971021,
-0.3557995558,
0.1836456805,
0.2867441475,
0.2918513417,
-0.1955308616,
0.4907647371,
-0.1808668822,
0.3099680245,
0.4819845259,
0.4545690715,
-0.0416625403,
-0.3299176991,
0.0809545144,
-0.4478636086,
0.3740393519,
0.3099287748,
0.2104804367,
0.1811572015,
-0.0492330566,
-0.0152212204,
-0.0760013461,
0.0047445768,
0.1555251926,
-0.0001411334,
-0.5094222426,
-0.4209137261,
0.3166482747,
-0.0236795079,
-0.2033906281,
0.5624879599,
0.3484379649,
-0.0795238465,
0.7739245296,
-0.0616459139,
1.0076570511,
0.1392732263,
0.0085887872,
0.2652909756,
-0.4144226611,
0.1910371929,
-0.1418118477,
0.1569660604,
-0.4694998562,
-0.2512719631,
0.060129229,
-0.0661752224,
0.3152081072,
0.3412532806,
-0.0488788113,
0.3279864192,
0.1032695174,
-0.2459805161,
-0.0966232568,
0.1625961512,
0.1685519814,
-0.0212284215,
-0.1695714146,
0.0382081456,
-0.124792926,
-0.0315214023,
-0.1627050638,
-0.0514632724,
-0.1981992722,
-0.0737320334,
0.0112632019,
0.0001408326,
-0.1627736092,
0.0091248704,
0.3756527603,
-0.5340589881,
0.0354077592,
0.0767794251,
0.7028309107,
0.0988067165,
0.0171797723,
0.2519141138,
0.2933141887,
0.0861098394,
0.2961773276,
-0.11208307,
0.2237724066,
0.0374514088,
0.1723106503,
-0.0291106664,
-0.1150880456,
0.0229499266,
-0.3629258871,
-0.1708574444,
0.3162291348,
-0.3145436943,
0.061621543,
-0.0517298654,
0.3097806871,
-0.3551225066,
0.0885227099,
0.0494332574,
0.0615401864,
0.3813039958,
-0.0324188322,
-0.0889791399,
-0.2849901319,
-0.3719842434,
0.0210321434,
0.2002916783,
0.3854746222,
-0.1690564901,
0.0277777016,
-0.0340861678,
0.078319855,
0.2592147887,
-0.1987282038,
-0.0875601396,
-0.0314545222,
-0.2821593881,
0.1804555655,
0.8706471324,
0.234218806,
0.0975112543,
0.2409481853,
-0.2512012124,
0.0198449716,
0.2112473845,
0.1308893412,
0.1172321439,
0.3097879291,
0.2157128155,
-0.5071626306,
0.2185927629,
-0.3060099185,
0.1290690005,
-0.1028737277,
0.2564130425,
-0.719301343,
0.000024524,
-0.0685412511,
-0.2498811483,
0.0943441465,
-0.230921492,
-0.0044794437,
-0.1709676087,
-0.3371839523,
0.1538912952,
0.15853329,
0.1803641319,
-0.2398754209,
0.0178369079,
0.0362583622,
-0.1491532922,
-0.0951101109,
0.039506983,
0.1681957841,
0.1987156272,
-0.1818486601,
0.1248781011,
-0.3358015418,
-0.028275989,
0.0590198748,
0.0251757018,
0.3523406088,
0.2157611251,
-0.2562930286,
0.0641672611,
0.0271702129,
0.1097868606,
-0.3450788558,
0.1270650476,
0.6107978225,
-0.1949035972,
0.0741318166,
0.0124970982,
0.1299145371,
0.4314774871,
-0.3140947223,
-0.1071701422,
0.1324692369,
0.2643510699,
-0.5089541674,
-0.10409493,
0.2057196647,
0.0094930306,
0.0721104667,
0.29860425,
0.53191787,
-0.0456591547,
-0.1692364663,
0.1477272362,
0.1920016259,
0.1063971221,
0.2045256495,
0.3366241157,
0.0801423714,
0.367416352,
0.5385742188,
0.2656748891,
-0.1684703082,
0.1455685198,
-0.0267732497,
0.1559483558,
-0.0395595022,
-0.0843742415,
0.2620101571,
0.0557644889,
0.4938130379,
-0.3083462715,
0.1728235781,
0.0649596974,
0.1116654426,
-0.2931692302,
-0.0876293108,
-0.3806214035,
0.1246460527,
-0.0989227518,
-0.1238008887,
0.0037756811,
-0.1629233062,
-0.1123255342,
0.3583055139,
-0.1349487007,
-0.1476141065,
-0.1297006756,
0.2766786814,
0.2328027189,
-0.0850489959,
0.0550171807,
-0.1488152295,
0.3227035105,
0.3702896535,
-0.2493624389,
0.2255048305,
0.000730173,
-0.3435977995,
0.1693456918,
0.3915585577,
0.117965661,
0.0211234763,
-0.1540203989,
-0.1296178699,
-0.019419102,
-0.0346864946,
0.0829559267,
-0.0160142034,
0.2595876455,
0.2505715787,
0.2092811465,
0.0727503598,
-0.0241903029,
0.1386114061,
0.0306466203,
-0.0693466961,
-0.4552711248,
0.0990171805,
-0.1299854815,
-0.3224802017,
0.0106511414,
-0.0971308947,
-0.2034967393,
-0.0907287002,
0.0766667947,
0.0835568756,
-0.0384745598,
0.1363606006,
0.1055124253,
0.2661750019,
0.1203169897,
0.2834956348,
0.0451880991,
-0.3881887496,
-0.3239956498,
-0.2696016729,
0.1223395988,
0.0065776613,
0.2753305137,
0.2831842303,
0.1279983371,
0.3731360734,
-0.0443318449,
-0.0600498132,
-0.0180729833,
-0.436108768,
0.2725165486,
-0.5864130259,
-0.1351915151,
-0.1584738642,
0.0455419682,
-0.062192291,
0.183660686,
0.2573317885,
0.0637290776,
-0.0575320758,
-0.1382818818,
0.0942721665,
0.3398605883,
-0.1406905502,
0.3241436183,
0.1526389718,
-0.1851630062,
-0.0189704876,
-0.4162162244,
0.1840908825,
-0.1431688666,
-0.3591044545,
0.6352970004,
-0.1799357533,
0.2452365011,
0.2155346274,
-0.4755837619,
-0.0229119454,
0.4781323373,
0.0980693325,
-0.1527500451,
-0.4506674111,
0.2942951024,
0.4264168441,
0.1411203146,
0.1850662977,
0.4646712542,
-0.0739254355,
0.33809039,
-0.4484182,
-0.2011739463,
0.3947967887,
-0.196105808,
0.0506716333,
-0.1191336662,
0.2877328396,
-0.1416059732,
0.0626619756,
-0.8177499771,
-0.3129561841,
0.3955681622,
-0.3796287477,
-0.1028529182,
0.0371234939,
0.0630406514,
-0.0284820795,
-0.055800233,
0.7830025554,
-0.0011535239,
-0.2839379311,
0.0140159009,
0.1077684239
] |
https://github.com/huggingface/datasets/issues/4276 | OpenBookQA has missing and inconsistent field names | @albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best. | ## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2 | 69 | OpenBookQA has missing and inconsistent field names
## Describe the bug
OpenBookQA implementation is inconsistent with the original dataset.
We need to:
1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format.
2. Add missing additional fields:
- 'fact1': row['fact1'],
- 'humanScore': row['humanScore'],
- 'clarity': row['clarity'],
- 'turkIdAnonymized': row['turkIdAnonymized']
3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Expected results
The structure and every data item in the original OpenBookQA matches our OpenBookQA version.
## Actual results
TBD
## Environment info
- `datasets` version: 2.1.0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
@albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best. | [
-0.0945750922,
0.164955914,
-0.1062555909,
0.1807774007,
-0.1605589986,
-0.1824282259,
0.2929793894,
0.3721559942,
-0.0281362962,
0.237318486,
0.0815383717,
0.4941643178,
0.3443228602,
0.3875853419,
-0.1219676882,
-0.1653728038,
0.1791916639,
0.1058904976,
0.0738654286,
-0.0472123213,
-0.2771567404,
0.3801194429,
-0.1864519864,
0.1033055931,
-0.0044910195,
-0.0442848392,
-0.3907567263,
-0.0053220615,
-0.0989830121,
-0.064550288,
-0.0160138682,
0.1396737993,
-0.2838132977,
0.3003931046,
-0.0000995151,
-0.2122511119,
-0.1524277776,
-0.0022194863,
-0.2837035358,
-0.2915551364,
-0.0350603275,
-0.2864594758,
-0.0305471718,
-0.2509916425,
-0.046373114,
-0.0534532405,
-0.103564918,
0.05136659,
0.2675027549,
0.036676988,
0.3120251,
-0.0291644782,
0.2343193591,
0.120673269,
0.1309033185,
-0.061324928,
-0.3341351449,
0.0194007196,
0.3119696975,
-0.0499166846,
0.1385623962,
0.3251022398,
-0.0055235089,
-0.1912209094,
-0.2356843054,
0.0744583011,
0.1742497236,
-0.2208155245,
0.1414335221,
0.4658578634,
0.1353350878,
-0.1847065687,
-0.3956302702,
-0.2489245981,
0.0458334461,
0.0623226911,
0.1076930985,
0.2027467489,
0.0251355898,
-0.0185834393,
0.1888699532,
-0.0761992484,
0.0288244858,
0.1350667179,
-0.3899896741,
-0.0035599871,
-0.0426617861,
-0.0654872805,
-0.2960279286,
-0.1805910915,
0.3020912707,
-0.1202111319,
0.0362090655,
0.0398721509,
-0.4097029269,
-0.1138769388,
0.0176341906,
-0.2499773055,
-0.0459870175,
-0.2538667321,
0.287320286,
0.0785905719,
-0.1128492057,
0.1499838233,
-0.0833610296,
-0.1719057858,
-0.0077846362,
-0.0340820253,
-0.1399069577,
0.0614165626,
0.036596071,
-0.1083237082,
0.0139722144,
-0.1620420218,
-0.3057864308,
-0.0820149705,
0.4653048515,
-0.0705468208,
-0.2174635828,
0.2138094455,
-0.1133657172,
-0.0518438481,
-0.0666186363,
0.1220423281,
-0.2203944027,
-0.1144384146,
0.0585818626,
0.1497647464,
-0.1000517681,
-0.2040342391,
-0.2356167287,
-0.0316645093,
-0.1093045548,
0.0109147634,
0.1690513641,
0.2205840945,
0.2682305574,
0.3136677742,
-0.1328620017,
0.0651012585,
0.083393462,
-0.1283410639,
0.0889327377,
0.1609356403,
-0.1089238897,
-0.1607587337,
-0.0768189132,
-0.1720080376,
0.0074269692,
0.2754979134,
-0.2969548702,
0.0426976085,
-0.1943311989,
0.3190820515,
0.149766475,
-0.0152428951,
0.1577274203,
0.343293041,
0.0023645384,
-0.1967012733,
0.0088328458,
0.0351595916,
0.171089381,
-0.1821631938,
0.1880117953,
0.1859947443,
-0.4384117424,
0.0438689962,
0.0706623867,
0.299151212,
-0.1694058478,
-0.0350270569,
0.005248541,
-0.0648483112,
-0.0103353383,
0.2652813196,
0.1284437627,
-0.1578507274,
-0.2708673775,
-0.101572454,
0.0926468074,
0.0449596196,
0.0476244651,
-0.2658827305,
-0.0409044921,
-0.0895878077,
0.0071426588,
0.0951947272,
-0.1525666267,
-0.0348905697,
-0.4874155521,
-0.1566327512,
-0.049247358,
0.2992256582,
0.0195364896,
-0.090804033,
0.0176676232,
-0.295265764,
0.1866909713,
-0.0695774406,
-0.0897552073,
0.1368982643,
0.3785845339,
-0.1127656624,
0.0817358196,
0.0557633527,
-0.35486871,
-0.0639977083,
-0.5433819294,
0.0381315351,
-0.132954672,
-0.217352584,
-0.2211995274,
-0.0977144539,
0.0937995166,
0.1173561141,
0.3114743829,
-0.0612351298,
-0.0932333618,
-0.0669264123,
-0.1357065886,
-0.1504242867,
-0.2041024417,
0.1138578877,
-0.2185568511,
0.1183969826,
-0.2645216286,
-0.0354991406,
0.2293483764,
0.2160774469,
0.3259452581,
-0.135771513,
0.0848594457,
0.4133000076,
-0.0712656453,
-0.1775659919,
0.0073695951,
0.1974622607,
0.158174932,
0.2416898757,
-0.0235134196,
0.0845134854,
-0.0478855558,
-0.0099363187,
-0.0506859645,
0.5310109258,
-0.0692867786,
0.1302422434,
0.1114737168,
0.1158218086,
0.0913525298,
-0.3311796188,
0.0610131547,
-0.229228586,
0.0208457187,
0.0256371386,
0.2371453643,
-0.0735873133,
-0.3782963157,
0.3890346885,
0.595915556,
0.0423732921,
0.0961579755,
0.0250202678,
0.1209133565,
0.0719210878,
0.0956497267,
-0.035516195,
0.1159640551,
0.2838015258,
-0.1808016896,
0.0745526403,
0.1882955879,
-0.169944182,
0.3743565679,
0.1130916774,
-0.1392309815,
0.0687526166,
0.2212096304,
0.1050682738,
-0.2182841897,
-0.0418135226,
0.2569471598,
0.113968648,
-0.1334434897,
0.198955074,
-0.0682597831,
-0.1529253423,
0.003711784,
-0.3080114424,
-0.1912064552,
-0.1787893623,
0.2732321024,
0.0597300492,
-0.235328272,
0.444049716,
0.4304187,
0.3479865193,
-0.2753500044,
0.2340329885,
-0.4255044758,
-0.0583578907,
-0.16655837,
0.3149709702,
0.070076488,
-0.2602819204,
0.1305553615,
-0.2047947198,
-0.0618090183,
-0.4030606151,
-0.5852489471,
0.0514166653,
-0.3518231511,
0.3017702997,
0.0622430071,
0.1933711469,
-0.4906285107,
-0.2931060195,
0.154919669,
0.136981979,
-0.2206989974,
0.1503320932,
-0.0639989376,
-0.1679264903,
-0.1788979918,
-0.3754982352,
-0.1132364497,
-0.20277825,
0.4285014868,
-0.1967051029,
0.2596762776,
0.265711695,
-0.0907628089,
-0.2190186083,
0.1336602122,
0.2301319987,
-0.3561963141,
-0.2027752697,
0.207977429,
-0.2806920707,
-0.3336569071,
-0.0823129565,
-0.0546648726,
0.4031397402,
-0.1350965947,
-0.3119741678,
-0.1868122667,
0.033900518,
0.0407408066,
0.1352305114,
0.1238833815,
0.3069400787,
0.2054497153,
-0.2221668363,
-0.2370650172,
-0.1375478059,
0.0683593079,
0.1587040871,
0.3804445565,
-0.3390126824,
0.1482964009,
-0.0006984067,
0.0862365216,
-0.0711873397,
0.4041053057,
0.1763356477,
0.1069550365,
0.108837828,
-0.2341394275,
-0.1778414696,
0.041737169,
-0.2321940362,
0.0693014115,
0.324311167,
-0.2455967367,
-0.0041539082,
-0.1461806595,
-0.0175648183,
-0.6171479225,
-0.3598748446,
-0.0945105255,
-0.028323913,
0.2966676652,
0.3583484292,
0.0310683418,
-0.0622922257,
0.0143933007,
0.2652668655,
0.0809168071,
0.082665965,
-0.1591064632,
-0.3087907434,
0.0732848346,
-0.2784685791,
0.4061566889,
-0.3154142499,
0.0413333289,
0.1006537303,
-0.0347350575,
-0.086841464,
0.058858119,
0.6433230042,
0.0958650932,
-0.433305949,
0.2399842739,
-0.1444151998,
-0.1132581383,
-0.1597002745,
-0.0510714427,
0.0130997365,
0.387781471,
0.0871596485,
-0.5786213875,
-0.0196724553,
0.1407707632,
0.1425062865,
-0.2053462863,
-0.0920600891,
-0.3311223984,
-0.1422485113,
-0.0591535755,
-0.1508468837,
-0.0340569988,
0.2037920505,
0.0862808451,
-0.0222403109,
-0.1474241912,
-0.316727221,
0.277957499,
0.4062030315,
0.2765035331,
-0.1116367802,
0.3957833648,
-0.2022665143,
0.2502986789,
0.3662469387,
0.4133271873,
0.0742691383,
-0.2767438889,
0.1032384261,
-0.4965811968,
0.3145391643,
0.249566704,
0.0816373304,
0.3165463209,
-0.1234626099,
0.0668831766,
0.0610929541,
-0.1096996516,
0.1473766118,
-0.0427013002,
-0.326995641,
-0.2844073772,
0.3591323197,
-0.2353798002,
-0.3051628172,
0.4224852622,
0.3373740613,
-0.1024834886,
0.7656228542,
-0.0442369767,
0.9396677017,
0.0619281195,
-0.134341836,
0.4234226644,
-0.3800211549,
0.188730523,
-0.0710499734,
0.1426200122,
-0.4865724742,
-0.1036655083,
0.1285903007,
0.1198763475,
0.2286652476,
0.3379734457,
-0.1015125439,
0.1135521755,
0.021098068,
-0.3130268753,
-0.0023769727,
0.1169969812,
0.1659381092,
-0.1110289171,
-0.2770547271,
0.186960116,
0.0525880717,
-0.1518206745,
-0.1030207798,
-0.0289186314,
-0.2555291653,
-0.0340230018,
0.1141484976,
0.0643807128,
-0.1767443269,
-0.0123274531,
0.2570218444,
-0.5343416929,
-0.048542928,
0.0710945278,
0.5158628821,
0.1151919141,
-0.1125556156,
0.3008103967,
0.1985652447,
-0.0189239234,
0.2529326677,
-0.0383629873,
0.1849525273,
-0.0526678972,
-0.0013165878,
0.0670712888,
-0.1052637994,
0.0929447934,
-0.3322980106,
-0.0436855964,
0.2253641486,
-0.3051193953,
-0.042816408,
-0.1566416174,
0.2012841851,
-0.4313041568,
0.2236168236,
-0.0297346171,
0.0793717131,
0.1636912972,
0.0749421045,
-0.1055217981,
-0.253181994,
-0.1546451747,
-0.0116012804,
0.2196425349,
0.3662653267,
-0.0404085703,
-0.0482948199,
-0.1858191937,
-0.0681217238,
0.2099355906,
-0.2763135433,
-0.0500336364,
0.0880666748,
-0.2997808158,
0.1656386405,
0.7690189481,
0.1684358716,
0.1278986186,
0.2035951763,
-0.2573230267,
-0.0551825352,
0.127544865,
0.1948685348,
-0.038352564,
0.3110406101,
0.2946298122,
-0.3124388456,
0.1796079725,
-0.4704085588,
0.1546531022,
-0.1475118548,
0.3226907253,
-0.6918415427,
-0.1356508434,
0.0598052107,
-0.1562394798,
0.2693352699,
-0.1370638907,
-0.0412780643,
-0.3507052064,
-0.306560427,
0.0927855223,
0.0667157173,
0.0428888537,
-0.2424367964,
-0.0230522268,
-0.1339766681,
-0.1251713037,
-0.0408990234,
-0.0106189623,
0.1424338073,
0.0708790645,
-0.206457451,
0.0778022036,
-0.3135582209,
-0.1943057925,
0.1171257645,
-0.0614327155,
0.2407903075,
0.0447622873,
-0.308549583,
0.0100614158,
0.1912418902,
0.1080484837,
-0.3080606163,
0.0434491038,
0.5534461737,
-0.1625079513,
-0.009007208,
-0.0780799761,
0.1659110636,
0.1728319824,
-0.1905959845,
-0.01114693,
0.1252032518,
0.3859747946,
-0.6042981148,
-0.0616753176,
0.183572486,
-0.0584169403,
0.2412412167,
0.2158831656,
0.301035434,
-0.1045986935,
0.0463480242,
0.1260038018,
0.1890323311,
0.0265791267,
-0.0622377843,
0.3278681636,
0.0129087381,
0.4055565,
0.5518020391,
0.2695136666,
-0.2220447659,
0.2299796045,
-0.0865665078,
0.1214848012,
-0.1592661887,
0.0574602969,
0.0755005628,
0.0257971678,
0.4153178632,
-0.2472278923,
0.0160486847,
0.0608722679,
0.1348284632,
-0.2603424191,
0.0698209107,
-0.1777916998,
0.0601766706,
-0.0604263954,
-0.2639054358,
0.003221109,
-0.2010904104,
-0.1069033146,
0.3142531812,
-0.1328028142,
-0.0593389198,
-0.0802354366,
0.2833549678,
0.1021886617,
0.0499866977,
0.0002004998,
-0.2292296588,
0.2099286318,
0.482798636,
-0.2012555003,
0.2752377689,
0.1449464262,
-0.2342805713,
0.0728494003,
0.3186551332,
0.0589853898,
0.0248453952,
-0.1226228178,
-0.0236737933,
-0.0935845152,
-0.1568129212,
0.0088425642,
0.083370693,
0.381890595,
0.4156994224,
0.2214429528,
0.2144207805,
-0.2149938345,
0.1363873929,
0.204315111,
-0.0376161076,
-0.3035880327,
-0.1031387672,
-0.1330810785,
-0.327819705,
-0.0717576519,
-0.2011628449,
-0.1711435616,
0.012810003,
-0.0152873453,
0.0792203322,
-0.0307258256,
0.0684766099,
0.1836260259,
0.281724602,
0.106642969,
0.194706887,
0.218287006,
-0.3514604867,
-0.3783020079,
-0.3759889901,
0.1621979624,
-0.0139502268,
0.2027860582,
0.2530252039,
0.1909282506,
0.3716296256,
0.0247725751,
-0.0269459151,
0.0028324979,
-0.3255461752,
0.2025681436,
-0.5814427137,
-0.0563309267,
-0.0086247819,
0.049130179,
0.0382412411,
0.0946114585,
0.2241263837,
0.0722505674,
0.113363713,
-0.1802315414,
0.0152948005,
0.2077581584,
0.0030144462,
0.308355391,
0.1604087055,
-0.1088611558,
-0.1613595337,
-0.3197242022,
0.1671269238,
0.0093771257,
-0.2188772559,
0.4939146936,
0.1179934144,
0.3039818704,
0.3645519316,
-0.476885736,
0.1272563487,
0.5479239225,
0.171174407,
-0.0354340933,
-0.4595728517,
0.3305896223,
0.4112403095,
0.1283178031,
-0.0408140011,
0.3923974335,
-0.1397230774,
0.3051600754,
-0.3924394846,
-0.3132196665,
0.4487122893,
-0.2935205996,
-0.037875589,
-0.0285169017,
0.2818366289,
-0.1704479009,
-0.0593011975,
-0.5897092819,
-0.2641322017,
0.301594466,
-0.2711643279,
-0.1029693633,
0.0631672964,
-0.0946864113,
0.1494705826,
-0.0741808936,
0.7340408564,
0.1678726971,
-0.1753615439,
-0.0246347524,
-0.0034322329
] |
https://github.com/huggingface/datasets/issues/4271 | A typo in docs of datasets.disable_progress_bar | Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :) | ## Describe the bug
in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable". | 17 | A typo in docs of datasets.disable_progress_bar
## Describe the bug
in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable".
Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :) | [
-0.2229197919,
0.1155907437,
-0.1957840174,
-0.2332064658,
0.1984051019,
-0.018780956,
0.2855718732,
0.2007148415,
-0.1886951476,
0.3785544336,
0.2363237292,
0.3476401567,
0.1750877202,
0.3231857717,
-0.1807082295,
0.05160008,
0.0662440285,
0.2353480756,
-0.1192478538,
0.0976191685,
-0.2156188935,
-0.0787695274,
-0.3135316968,
0.1610238552,
-0.0999405235,
-0.0928426906,
0.1751818359,
-0.0495160334,
-0.2045707852,
-0.5483916402,
0.2211256027,
0.3761436343,
-0.0865531787,
0.2933128178,
-0.0000984403,
-0.0570368543,
0.5775362253,
0.2224652022,
-0.196736306,
0.0804649964,
-0.4307791293,
-0.3013757765,
0.2830670476,
-0.1467135102,
0.1921644211,
-0.2488399893,
0.084151797,
-0.248658672,
0.1549933404,
-0.05735071,
0.4014671743,
0.2081246227,
-0.0253470447,
-0.2618823051,
0.2603496015,
-0.1614094824,
-0.2056364268,
-0.0165291559,
0.1598385125,
-0.1195100546,
-0.3457562029,
0.4912675619,
0.059924446,
0.1963648498,
0.1573675573,
-0.1466393769,
0.130335182,
-0.2772006989,
0.1934325099,
-0.0389265418,
0.6014458537,
-0.4154236019,
-0.2229383588,
-0.1094050705,
-0.0636934862,
-0.1233336478,
0.1501975507,
-0.0136680109,
0.0419414006,
0.1471705139,
-0.2701701224,
-0.306199491,
-0.0827067122,
-0.0114475936,
-0.1012169048,
-0.1448511183,
-0.1163430065,
-0.0067809429,
-0.1413311064,
0.1541289836,
0.2276300341,
0.1975073218,
-0.2022558302,
-0.1100779697,
-0.3084982038,
-0.0450167544,
0.2144832164,
0.2353203595,
0.1443664432,
0.3407250643,
-0.1676422656,
0.0752003342,
0.0219241604,
0.0702032745,
0.1596526653,
0.045049347,
0.258005172,
-0.2053949982,
0.452512145,
-0.0547708459,
0.0398108438,
0.0399270914,
0.3543908,
-0.4041004181,
0.2071148902,
0.1054351628,
0.2479426712,
-0.3403216898,
-0.3461491466,
0.1626417786,
0.0237694941,
-0.1035871953,
0.0872048512,
0.1370184273,
0.0765380263,
-0.1170746386,
-0.031255722,
0.0749526098,
-0.0714146197,
-0.0273727607,
-0.3959845304,
0.0172809567,
-0.3836418986,
0.0423286185,
0.1106604934,
0.0570085086,
0.253349632,
0.1857759655,
-0.2199316621,
0.0625838116,
0.1819480658,
-0.0221343562,
0.0767647848,
0.4262475073,
-0.0045223078,
0.0508003049,
0.1107685491,
0.1095031798,
0.1362289637,
0.418094337,
-0.0418614037,
-0.2713926733,
-0.3100939989,
0.3273285329,
-0.1431175917,
-0.1270532906,
-0.0756643042,
0.2846988142,
0.0590009354,
-0.0932922065,
0.1752906442,
-0.0045273509,
-0.3644652069,
-0.0545466878,
0.1707588285,
0.1992583275,
-0.4645714164,
-0.0022817301,
0.0210445728,
-0.37017712,
0.2299242467,
0.1018558964,
-0.2559856474,
0.0281903688,
-0.1594495773,
0.2463548481,
0.0811337233,
-0.0675539449,
-0.438544333,
0.0678546429,
-0.1044607162,
-0.3502527177,
-0.1098867506,
-0.1136615947,
-0.0097054234,
-0.09850806,
-0.1727191657,
-0.1433970183,
0.0508835167,
0.0039144075,
-0.2265460044,
-0.2833886743,
0.0745835602,
0.0483338609,
0.20926781,
0.3154650927,
0.2383400053,
-0.1500244439,
0.3119063675,
0.0804134458,
0.17240417,
0.2401135266,
0.1944091767,
-0.1940510869,
0.0339595936,
-0.1626262069,
-0.0778367147,
0.1023433879,
-0.0207639411,
-0.1141055003,
0.1242760271,
-0.2556659579,
-0.2132737786,
-0.1044736952,
-0.1439940035,
0.0649199188,
0.3116973937,
-0.0394423492,
-0.1469849199,
-0.0256980862,
-0.2340632528,
0.1173262894,
-0.4386694133,
-0.0591635369,
0.1635655314,
0.1668137312,
0.0483219959,
-0.1752251983,
0.1135093048,
0.1076940075,
0.098677747,
0.2219713926,
-0.2393375635,
0.3838475347,
0.0075307088,
0.3230988085,
0.2562880218,
0.2459731102,
-0.0293675605,
-0.1085120142,
-0.0567204766,
0.1533909887,
-0.0061786515,
0.1544769853,
-0.2195065916,
0.0041811205,
0.1198475957,
0.1227800548,
0.115314059,
0.0192005895,
0.2718356252,
-0.0437818542,
-0.2071260363,
-0.2595513761,
0.0956260115,
0.1399833113,
0.2070002407,
-0.1848544925,
-0.1789056361,
0.1680510342,
0.4517270029,
0.1967943907,
-0.0557997786,
0.1169693321,
-0.2257679701,
-0.1456955373,
0.2070961297,
0.3106772304,
0.3954302967,
0.3480781913,
0.3241301775,
0.0725488365,
-0.0672366917,
-0.343155086,
0.0303296093,
0.2030620426,
0.0503211319,
0.1952121407,
0.2348558158,
-0.0697973818,
-0.6493399143,
-0.1062074602,
-0.1416415274,
0.2880268693,
-0.1849620193,
-0.1196633056,
-0.148288548,
-0.1180299744,
0.1744534522,
0.1023569256,
-0.0216887221,
-0.2944032252,
0.241106391,
0.3402102292,
-0.1539925933,
0.3584033251,
0.0669907853,
0.1544730067,
-0.0029355986,
0.4372837543,
-0.3027950823,
-0.1478398442,
0.0059069037,
0.2321466357,
-0.0579224303,
0.0021712356,
0.2942667902,
-0.0345822796,
0.0841889828,
-0.4045104086,
-0.1687056422,
0.1775917858,
-0.0422684625,
-0.025514327,
0.0791090205,
0.1675947011,
-0.1411899179,
0.3309294581,
0.0362137966,
-0.2055021971,
-0.1571456194,
-0.1558746547,
-0.1878534257,
-0.0236847773,
-0.2994593978,
-0.0955626592,
-0.0734325424,
-0.3905099928,
0.0512569882,
-0.0712078735,
-0.0567772761,
0.2447484285,
-0.0892986506,
0.1759669334,
0.1313778609,
-0.0752637908,
-0.3427338302,
-0.4918085039,
0.0708873868,
-0.2190901041,
-0.3995852172,
0.1060221866,
0.1748673916,
0.00683288,
-0.0386901647,
-0.4271921813,
-0.1249674559,
-0.4003716707,
-0.0054286132,
-0.2445761561,
-0.0012502669,
0.3867064416,
0.0232884921,
-0.3557620645,
-0.2199852616,
-0.3149738312,
0.145704776,
0.0185300615,
0.0254476517,
-0.3164151609,
0.0266640186,
0.0572808869,
0.3319734931,
0.1314513534,
0.0288758632,
0.2864024043,
-0.0447042845,
0.2110975236,
-0.1811967343,
-0.1463931203,
0.1071935222,
-0.0983486325,
0.0072868327,
0.1993073374,
-0.0016733581,
-0.2961312532,
-0.0705988258,
-0.0121465158,
-0.0433846898,
-0.1468428522,
-0.4033568203,
-0.1786356419,
0.1736798435,
0.2220254838,
0.2157218456,
-0.1202086434,
0.0643643811,
-0.0166435782,
0.1368849277,
0.2726162374,
-0.2774796188,
-0.2935123444,
0.1251392066,
-0.4272783697,
0.0669322535,
-0.0666520745,
0.0529321842,
-0.1138816178,
-0.0455382094,
0.3016259968,
0.0132491924,
0.5144385695,
-0.206167832,
0.0751795471,
0.1470347643,
0.1833788007,
-0.1256112754,
-0.1601672173,
-0.1391434371,
0.4205630124,
0.1722532064,
0.2092000246,
0.1187050641,
-0.1667722613,
0.1739277393,
-0.1185819358,
0.0034085969,
-0.4570742249,
-0.3658676445,
-0.1437802166,
-0.2650411725,
0.2220318168,
0.0696085989,
0.0092720101,
-0.3115871847,
-0.336133033,
-0.0356300399,
-0.162627548,
-0.2178284377,
0.1467825472,
0.1517466903,
0.0370312072,
0.1194386482,
0.0774439722,
0.2860640883,
0.222025454,
0.05468297,
0.246023044,
-0.0942074284,
0.3663462698,
-0.3722958863,
0.0553485751,
0.2775213122,
-0.2776469588,
0.3160920143,
-0.1080333069,
0.2466955185,
-0.1287562698,
-0.2021317333,
0.3426862657,
-0.0304332618,
-0.1122848839,
-0.1296393424,
0.2883580327,
0.007559102,
-0.1623648107,
0.2025413215,
0.0249175355,
-0.0834410042,
-0.2757064402,
-0.0375111662,
0.7426796556,
-0.0334520899,
-0.1380451173,
0.1358205229,
-0.2283022255,
0.3220163584,
0.1119791567,
0.1642050445,
-0.4315051436,
-0.3373176157,
-0.0380669162,
-0.0593302026,
0.239190802,
-0.1603134125,
-0.1908498257,
0.0864996165,
-0.2639448643,
0.1703835875,
-0.0654015839,
-0.026607519,
-0.065161705,
-0.1306500435,
-0.1415392309,
0.3012900651,
0.071532771,
0.1933518052,
-0.0922174826,
0.1168988496,
0.2073816061,
0.1061841026,
-0.3246264756,
0.016430581,
0.2150163203,
0.0817239583,
-0.0871782228,
-0.3832072616,
0.1161596552,
0.0054141264,
0.6305186749,
-0.0723051131,
-0.3233718574,
0.2185578644,
0.0572031513,
0.154926911,
-0.0110680088,
0.1351474971,
0.1720527112,
-0.3276139796,
-0.314189136,
0.0416751727,
0.0245801527,
-0.2900607884,
-0.1411180645,
0.1009937152,
0.1713564247,
-0.1022318453,
0.1517006159,
0.0941778868,
0.2594479322,
-0.3805502057,
0.3122260571,
0.2116302699,
-0.0013666162,
0.3058975339,
-0.0434072539,
-0.2855224907,
-0.1058099195,
0.3746729195,
-0.0471706353,
0.0885111541,
0.2705827355,
0.0297918655,
-0.3388720155,
-0.3901581764,
0.0259843227,
0.2904172242,
-0.2181683928,
0.0928302631,
0.0365209393,
0.2190667391,
0.0773642957,
0.165350318,
-0.1708789021,
0.1903454214,
-0.1844816506,
-0.2126555145,
-0.3821564615,
-0.0756227225,
-0.3617585897,
0.1674850136,
-0.1170069724,
0.2422586828,
0.1642328054,
-0.2095513344,
-0.4828166962,
0.1043827385,
-0.1916699558,
0.0223592129,
-0.0616142675,
-0.0395267718,
0.0107803103,
-0.1095150486,
0.1596180499,
-0.017824132,
-0.4208321869,
-0.3760478497,
-0.0505669154,
0.0542696975,
-0.0553492941,
-0.0916875526,
0.0708417445,
-0.0124040572,
-0.3808449209,
0.1595236212,
0.1495045722,
0.1893280298,
0.1264628768,
0.3020765781,
0.0382778011,
0.0895262361,
0.0124460915,
-0.172624588,
0.1446708143,
0.0576812848,
-0.0539278388,
0.1244270056,
-0.0065804548,
-0.0276465025,
0.2275311351,
0.1334490627,
0.0845587924,
0.5008245707,
-0.0754180029,
-0.301350832,
0.1236042827,
-0.0768087357,
0.5262035131,
0.0786519423,
-0.1487594545,
-0.161183387,
0.1398610473,
0.4366205037,
-0.3916623294,
0.0263541881,
0.3707644343,
-0.0100038275,
0.1842575818,
-0.0014318001,
0.1325761825,
0.1303467751,
0.0871000886,
0.3760141432,
0.1132241711,
-0.3436345756,
-0.0398073569,
0.2131901234,
-0.0741387382,
0.0238453671,
0.3503749967,
0.3093539476,
-0.0276505183,
0.5311850309,
0.1251447499,
0.4083385766,
0.3486517966,
0.318746388,
-0.2099704593,
-0.1797944009,
-0.0174340345,
0.2028117925,
-0.1287890524,
-0.3653080463,
0.0742626339,
0.1821201444,
-0.0846465752,
-0.2187217623,
-0.0993656963,
0.0415533222,
-0.1598417163,
-0.1765049994,
-0.3403042555,
-0.1716873199,
0.0837725773,
0.0425583832,
-0.0141740032,
0.3499788642,
0.2928695679,
-0.1814736426,
0.0509602502,
-0.3545149565,
0.0794479325,
0.1234138831,
0.2386512756,
0.0553499982,
-0.1003172398,
-0.1932812631,
0.1264372617,
0.1035679355,
0.3794704378,
0.1034772247,
0.1606203169,
-0.0117414147,
-0.2521603107,
0.0622228794,
-0.2785102427,
-0.176530987,
0.174758628,
-0.0017488896,
0.0483929962,
0.2178845108,
0.2599286437,
-0.2537257671,
0.4577459395,
0.1452037096,
0.1162128225,
-0.5175434947,
0.2394629568,
0.1341354251,
-0.2854494154,
0.0418839715,
-0.0961118266,
-0.1465419829,
-0.0157463793,
0.4080951214,
-0.1923330128,
0.0866920277,
-0.2239390314,
0.1954114884,
-0.1504388154,
0.2595711648,
0.1637840569,
0.3310199678,
-0.1081498787,
-0.3315902054,
-0.5028666258,
0.1777926385,
0.1743541807,
0.1925496459,
-0.0535769276,
0.0378599539,
-0.3170667589,
0.3019963205,
0.4104749858,
-0.1093757823,
0.0209717173,
-0.2024774849,
-0.2162163705,
0.1166908517,
0.0677550137,
-0.0121903159,
-0.092115812,
-0.1904399693,
0.181281969,
-0.0020266648,
0.2022673041,
0.0410378166,
0.0328881927,
0.0895207524,
-0.0968529657,
0.4912850857,
0.1340896338,
0.1044610888,
-0.2403553277,
0.0124600558,
-0.1672847122,
-0.2488929629,
-0.4418871999,
0.144613415,
-0.0821243897,
0.3392528296,
-0.0853482708,
0.0772004724,
0.0067135571,
0.4047376215,
0.180695504,
0.3794718087,
-0.2791559696,
0.3082979918,
0.1831535399,
0.1753866673,
-0.2353364229,
-0.2150694579,
0.0985858217,
0.3112955391,
-0.2942813039,
-0.4546124041,
0.5019847155,
-0.2152863145,
-0.3723546267,
-0.076423265,
0.2795972526,
0.2018608451,
-0.3445016742,
-0.3253343999,
0.0078411037,
0.1736467034,
-0.0240044165,
-0.2483028024,
0.4007062018,
-0.2415482551,
0.1452599019,
0.0238205325,
0.2798729539,
0.3750036955,
0.0471401475,
-0.0758552477,
-0.237327978
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word),
Pronunciation
([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙΛd/
([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wΓ»rd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙd/ | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 38 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word),
Pronunciation
([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙΛd/
([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wΓ»rd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wΙd/ | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Hi @i-am-neo, thanks for reporting.
Normally this dataset should be private and not accessible for public use. @cakiki, @lvwerra, any reason why is it public? I see many other Wikimedia datasets are also public.
Also note that last commit "Add metadata" (https://huggingface.co/datasets/bigscience-catalogue-lm-data/lm_en_wiktionary_filtered/commit/dc2f458dab50e00f35c94efb3cd4009996858609) introduced buggy data files (`data/file-01.jsonl.gz.lock`, `data/file-01.jsonl.gz.lock.lock`). The same bug appears in other datasets as well.
@i-am-neo, please note that in the near future we are planning to make public all datasets used for the BigScience project (at least all of them whose license allows to do that). Once public, they will be accessible for all the NLP community. | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 100 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Hi @i-am-neo, thanks for reporting.
Normally this dataset should be private and not accessible for public use. @cakiki, @lvwerra, any reason why is it public? I see many other Wikimedia datasets are also public.
Also note that last commit "Add metadata" (https://huggingface.co/datasets/bigscience-catalogue-lm-data/lm_en_wiktionary_filtered/commit/dc2f458dab50e00f35c94efb3cd4009996858609) introduced buggy data files (`data/file-01.jsonl.gz.lock`, `data/file-01.jsonl.gz.lock.lock`). The same bug appears in other datasets as well.
@i-am-neo, please note that in the near future we are planning to make public all datasets used for the BigScience project (at least all of them whose license allows to do that). Once public, they will be accessible for all the NLP community. | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Ah this must be a bug introduced at creation time since the repos were created programmatically; I'll go ahead and make them private; sorry about that! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 26 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Ah this must be a bug introduced at creation time since the repos were created programmatically; I'll go ahead and make them private; sorry about that! | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | All datasets are private now.
Re:that bug I think we're currently avoiding it by avoiding verifications. (i.e. `ignore_verifications=True`) | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 18 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
All datasets are private now.
Re:that bug I think we're currently avoiding it by avoiding verifications. (i.e. `ignore_verifications=True`) | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Thanks a lot, @cakiki.
@i-am-neo, I'm closing this issue for now because the dataset is not publicly available yet. Just stay tuned, as we will soon release all the BigScience open-license datasets. | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 32 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Thanks a lot, @cakiki.
@i-am-neo, I'm closing this issue for now because the dataset is not publicly available yet. Just stay tuned, as we will soon release all the BigScience open-license datasets. | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Thanks for letting me know, @albertvillanova @cakiki.
Any chance of having a subset alpha version in the meantime?
I only need two dicts out of wiktionary: 1) phoneme(as key): word, and 2) word(as key): its phonemes.
Would like to use it for a mini-poc [Robust ASR](https://github.com/huggingface/transformers/issues/13162#issuecomment-1096881290) decoding, cc @patrickvonplaten.
(Patrick, possible to email you so as not to litter github with comments? I have some observations after experiments training hubert on some YT AMI-like data (11.44% wer). Also wonder if a robust ASR is on your/HG's roadmap). Thanks! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 88 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Thanks for letting me know, @albertvillanova @cakiki.
Any chance of having a subset alpha version in the meantime?
I only need two dicts out of wiktionary: 1) phoneme(as key): word, and 2) word(as key): its phonemes.
Would like to use it for a mini-poc [Robust ASR](https://github.com/huggingface/transformers/issues/13162#issuecomment-1096881290) decoding, cc @patrickvonplaten.
(Patrick, possible to email you so as not to litter github with comments? I have some observations after experiments training hubert on some YT AMI-like data (11.44% wer). Also wonder if a robust ASR is on your/HG's roadmap). Thanks! | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | Hey @i-am-neo,
Cool to hear that you're working on Robust ASR! Feel free to drop me a mail :-) | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 19 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
Hey @i-am-neo,
Cool to hear that you're working on Robust ASR! Feel free to drop me a mail :-) | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | @i-am-neo This particular subset of the dataset was taken from the [CirrusSearch dumps](https://dumps.wikimedia.org/other/cirrussearch/current/)
You're specifically after the [enwiktionary-20220425-cirrussearch-content.json.gz](https://dumps.wikimedia.org/other/cirrussearch/current/enwiktionary-20220425-cirrussearch-content.json.gz) file | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 19 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
@i-am-neo This particular subset of the dataset was taken from the [CirrusSearch dumps](https://dumps.wikimedia.org/other/cirrussearch/current/)
You're specifically after the [enwiktionary-20220425-cirrussearch-content.json.gz](https://dumps.wikimedia.org/other/cirrussearch/current/enwiktionary-20220425-cirrussearch-content.json.gz) file | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4268 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered | thanks @cakiki ! <del>I could access the gz file yesterday (but neglected to tuck it away somewhere safe), and today the link is throwing a 404. Can you help? </del> Never mind, got it! | ## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
| 34 | error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
## Describe the bug
Error generated when attempting to download dataset
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
ExpectedMoreDownloadedFiles Traceback (most recent call last)
[<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered")
3 frames
[/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name)
31 return
32 if len(set(expected_checksums) - set(recorded_checksums)) > 0:
---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
34 if len(set(recorded_checksums) - set(expected_checksums)) > 0:
35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums)))
ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'}
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
thanks @cakiki ! <del>I could access the gz file yesterday (but neglected to tuck it away somewhere safe), and today the link is throwing a 404. Can you help? </del> Never mind, got it! | [
-0.2923785746,
-0.0414035209,
-0.1572302878,
0.2814292014,
0.0499909259,
-0.0285517592,
0.1625797749,
0.5453563929,
0.2865177393,
0.0777813271,
-0.168789044,
0.2441957742,
-0.1849417686,
-0.0490182601,
-0.0428375825,
0.0211599749,
-0.0528010242,
-0.1682505608,
-0.2153728455,
-0.0532671474,
-0.2370812893,
0.181700781,
-0.1096780151,
-0.1858239472,
0.2069411129,
-0.1140325516,
0.1760243624,
0.2468897253,
-0.3102564216,
-0.3532398343,
-0.0307222866,
-0.0613413565,
0.1408164352,
0.2884539664,
-0.0001048582,
-0.0333315916,
0.4238373935,
-0.2157741338,
-0.3314876258,
-0.2955612838,
-0.3213742673,
-0.2894915044,
-0.0268839244,
-0.3024510741,
0.2805395722,
-0.0974683166,
-0.1821083874,
-0.2052160949,
0.2140982449,
0.3210104108,
0.3282192945,
0.1349918544,
0.2758903503,
-0.1221913695,
0.3785416484,
-0.0413575135,
0.022433335,
0.4331904054,
0.3113667965,
0.1489269882,
-0.0518825501,
0.3362361789,
-0.148846522,
0.1204843745,
0.1093102396,
0.01071891,
0.0270627439,
-0.2118667811,
0.2079152465,
0.2775227726,
0.4446953237,
-0.241684854,
-0.4317794442,
-0.3021026552,
-0.0022348915,
-0.3895514309,
0.2196149379,
0.4127164781,
-0.1998990625,
0.1016279906,
-0.0287261643,
-0.0284731016,
-0.0399804041,
0.2492901236,
-0.056694109,
0.1895591766,
0.0522897802,
0.0440710299,
0.101363644,
-0.2609747052,
0.1998426169,
-0.2082021981,
-0.1980365217,
0.0647346973,
-0.2194779664,
-0.1952336133,
0.1080380157,
0.1981893927,
0.3190006316,
0.1578463763,
-0.1518890113,
0.0115326401,
0.1361013353,
0.0253562331,
0.2678481042,
0.0825104564,
-0.4023614824,
0.3246602714,
0.2697930336,
0.4571757019,
0.1638487577,
0.216838479,
0.1461554319,
-0.2815046906,
0.0695635751,
0.1131108627,
0.1703318059,
-0.2363537252,
-0.4247169197,
0.1316587329,
-0.2067680508,
-0.043202091,
0.104928799,
0.3566287458,
-0.1581600904,
-0.0042896047,
0.122247681,
0.0395481475,
-0.1403517425,
-0.1630939394,
-0.1612826586,
0.3140999079,
0.0655128583,
-0.2526753843,
0.3126744032,
-0.1697213054,
0.388866812,
-0.0808265209,
-0.024545582,
-0.1968973577,
0.1751328111,
-0.1182586104,
0.0816919431,
0.4336025715,
0.0449292213,
0.0413240567,
0.1552280188,
-0.170794338,
-0.1018211842,
0.1724528968,
-0.2603506446,
-0.1839224994,
-0.1428055465,
0.3375995159,
-0.1324733049,
0.0025363625,
-0.2354692817,
-0.0945840329,
0.1620416939,
-0.0250122491,
0.034442585,
-0.166899085,
0.0762027726,
-0.1673564762,
0.1124645174,
0.4594709277,
-0.399184227,
0.0404924601,
-0.3377887011,
-0.170023948,
0.1189554408,
0.1610441655,
-0.364594996,
0.3503319025,
-0.2474317551,
-0.0256103966,
0.5102394819,
-0.3939996958,
-0.7960937619,
0.2291478515,
-0.3173540831,
0.1774206907,
-0.0589662753,
0.1513349861,
0.2699801326,
-0.0038053961,
0.1388984174,
0.0770361647,
0.0356291197,
0.0264307708,
-0.3412952125,
-0.0725827888,
0.2134068608,
0.1527852267,
0.1383559555,
-0.0604106151,
0.2097764164,
0.2546498775,
0.4838971198,
0.0862028301,
0.0223742537,
0.1803556681,
0.2710557282,
-0.0643088222,
-0.0286734328,
-0.074788034,
-0.3305380344,
0.1743660867,
-0.3938860595,
-0.0532268733,
-0.5412214398,
-0.0038514233,
-0.4744915962,
0.0621133633,
-0.1218877956,
-0.1665435433,
0.2334944457,
0.1561936587,
0.0515018553,
-0.0545419231,
0.0063394844,
0.4334279895,
-0.097322382,
0.0599318184,
-0.2802316844,
0.1994725764,
-0.180395022,
-0.0435063951,
0.0927416831,
-0.1900028288,
0.2261232883,
-0.1249662936,
-0.2060066313,
0.3546816111,
0.2581908703,
0.0262217112,
-0.1245426014,
-0.0397173017,
0.2134389281,
-0.1812132597,
0.1068689525,
0.2366646528,
0.3265242577,
0.1463146508,
-0.3787161708,
0.2951194942,
-0.0992408022,
-0.0788127035,
0.0609691851,
-0.0810284317,
0.2846021652,
-0.0652035847,
-0.0319548026,
-0.2303908169,
0.3336648941,
0.3264441788,
-0.0849760324,
-0.1383920163,
-0.0507230945,
0.0955830887,
0.5174328685,
0.0174866021,
0.2039304227,
0.1388794333,
0.0767971054,
-0.0963398442,
0.068700254,
0.4084709287,
0.506578505,
0.2115621865,
-0.0887179971,
0.0373143591,
0.1005858853,
-0.2070862204,
0.2609803081,
0.0298943724,
0.0275342725,
0.2342581153,
0.2364243865,
-0.0144864488,
-0.1983856857,
-0.3359374404,
0.0640173927,
0.3788403571,
-0.1485491842,
-0.1037026197,
-0.3071555793,
-0.0065813195,
-0.1926596165,
0.0224937629,
-0.0546302795,
-0.3486826718,
-0.0221690182,
0.3084957302,
-0.1978915036,
0.0663289055,
-0.2789720595,
-0.0692474395,
0.2657970786,
-0.1872233599,
0.0809793547,
0.0263751931,
-0.1423320919,
0.1407056451,
0.3288151324,
0.0519927293,
0.3806819916,
0.0499751493,
-0.1871871799,
-0.4483882785,
-0.3514977396,
-0.0420167148,
-0.0695772022,
0.2781917453,
0.3377683759,
0.2806733251,
0.0778236315,
-0.0901712775,
-0.031357564,
0.1613828987,
-0.2040580511,
-0.0540495515,
0.0495475382,
-0.0426509641,
-0.212700367,
-0.4419006705,
-0.3972080946,
-0.4870702326,
-0.1089358702,
0.021360334,
0.2313240319,
0.0286147501,
0.0657870024,
0.1142568141,
0.1020718962,
0.1103980318,
-0.1750168949,
-0.2533191741,
0.3172065318,
-0.3564910591,
-0.4775798321,
0.0509908646,
-0.1009347886,
0.0253378563,
0.0923955739,
-0.5353688598,
0.1286059171,
-0.0262307897,
0.1033296064,
-0.0480447635,
-0.1253813654,
0.1424299926,
0.0201373678,
-0.0926221684,
-0.2679794431,
-0.021287607,
-0.1398284286,
-0.2192837447,
0.39466241,
-0.1572470069,
0.3164728582,
0.0766081885,
0.3585457504,
0.2280853391,
0.0179376211,
0.3332449794,
0.2891539335,
0.2208589166,
-0.0862482637,
-0.3794327974,
-0.0327436812,
0.1129222065,
0.0406729467,
0.2487491518,
-0.2000155151,
-0.427511692,
-0.1804386079,
0.057703115,
-0.3584861457,
-0.2440395206,
-0.0020135217,
0.1696668565,
0.0131361159,
0.1596017927,
0.1176348925,
-0.1616303921,
0.0267849732,
-0.0471416563,
0.1550521404,
-0.0666078404,
0.1233884618,
-0.0823737532,
0.0442763641,
-0.1772255301,
0.1364485919,
0.107479766,
0.4074114561,
0.0730372593,
0.0351845995,
-0.0773859844,
-0.3007648587,
0.5904011726,
-0.0112259369,
0.3115172982,
-0.0656383932,
-0.0228989366,
-0.291036129,
-0.0735211149,
-0.3277397454,
-0.0619729683,
0.3422116637,
0.2250502706,
-0.3832868338,
0.1326798499,
-0.0395547003,
0.017154932,
-0.0486239865,
-0.1953846067,
-0.1142801493,
-0.5711029172,
-0.4278568923,
-0.02541578,
0.0993401855,
0.3440417349,
-0.1890026778,
-0.1046184376,
0.1034863964,
0.0129524749,
0.0771262869,
0.0180638246,
0.2949352264,
0.0969103351,
0.3318148851,
0.0111210449,
0.4193200469,
0.3044734299,
0.6435570717,
-0.0153185241,
-0.1343490034,
0.1597364992,
-0.020628754,
-0.340500325,
0.2576613426,
-0.1682247818,
0.0227816869,
0.1810479462,
0.1171625331,
0.1583190709,
0.2147182077,
0.0638568476,
0.0843708664,
-0.3709561229,
-0.1419986039,
0.4147665203,
-0.0122174416,
0.0126361279,
0.3176361024,
-0.1065958589,
-0.2798047364,
-0.0369356051,
0.1025790349,
0.7800714374,
0.1858661771,
-0.0346068367,
0.2821183801,
-0.1329612583,
0.3418008387,
-0.0415533036,
0.2486394793,
-0.2829703987,
-0.1942823082,
-0.0900425166,
-0.23665075,
0.1383067071,
-0.094482325,
-0.2990511954,
0.1529105157,
-0.1215049699,
-0.0712250844,
-0.0593618415,
0.4998767674,
-0.1753744036,
-0.1568050981,
-0.3271229863,
0.2737339139,
-0.0968374386,
0.2338029295,
-0.2079294324,
-0.2179089934,
-0.2894856036,
-0.3907411098,
-0.3588908315,
0.1120302752,
-0.1320018172,
0.2717322409,
-0.0710317641,
-0.0911531076,
0.1466403902,
0.0199148171,
-0.0788838044,
0.3375189006,
-0.1408594847,
0.1794107705,
-0.0932424217,
-0.0856559128,
0.1578809172,
0.1566444486,
0.2043206692,
-0.2265359908,
-0.1399219185,
0.0072694309,
-0.0298898146,
-0.1234369054,
0.0783342198,
0.090732865,
-0.0167699587,
-0.2758491635,
-0.2724547088,
-0.06099426,
-0.2319539785,
-0.2816797495,
0.2017519772,
0.1762402952,
-0.1682387739,
0.1158106551,
0.2009875178,
-0.3794726133,
-0.288338691,
0.5457729101,
-0.0404315144,
-0.0673676059,
0.3909109533,
0.0900588483,
-0.2963806093,
-0.3107836843,
-0.0379548818,
-0.2615093887,
-0.2131336033,
0.2508823872,
-0.2104078978,
0.1290205568,
-0.0178526994,
0.1205836236,
0.1268985718,
0.1804384142,
0.108846806,
-0.6116678119,
-0.1752656251,
0.2096791863,
-0.1757296771,
0.2425877303,
-0.2635930479,
0.0086667659,
-0.131108135,
0.0131076928,
-0.4092978537,
0.1119146571,
-0.2226198316,
0.0558570065,
0.0137016308,
-0.0235057157,
0.0804090351,
0.2276908904,
0.2788037658,
0.399219662,
-0.187489599,
-0.3154125512,
-0.1193987802,
0.1175550297,
-0.0313577093,
-0.2516780794,
0.0736225247,
-0.3280541003,
-0.1159349605,
0.1496283263,
0.1397646666,
0.0521598533,
-0.0196969304,
-0.1778328121,
0.4126924574,
-0.1581472456,
-0.0552254766,
0.1588581055,
-0.0219233278,
-0.0240211934,
-0.0499361902,
0.2150892615,
0.044420477,
-0.0262969211,
-0.3747867942,
-0.022018332,
0.0999019369,
0.1912261099,
0.4644661546,
-0.1349102706,
0.0058611389,
0.2534863949,
0.1839476079,
0.349234134,
-0.1822359115,
-0.0716562122,
0.1342575103,
0.3312245607,
-0.4762817621,
-0.0206408668,
0.0547955967,
0.1487313509,
0.0825967267,
0.2200609446,
-0.0853399038,
-0.0547466017,
0.0148949297,
0.1033077911,
0.51406914,
0.0399647243,
0.1417973638,
0.3999735713,
-0.2559893429,
-0.063038379,
0.2088027894,
0.043351613,
0.197341457,
0.3940808475,
-0.1714198589,
0.3311378956,
-0.1625997871,
-0.0256404486,
-0.0437913425,
-0.4208476543,
0.0310860351,
0.3115212321,
-0.0161232203,
0.2678172588,
0.0446782224,
-0.1445794553,
0.1071431935,
0.0390103348,
-0.1758776456,
0.3037645817,
-0.1862384677,
-0.034733329,
-0.1279202551,
-0.3328615725,
-0.1231236011,
0.1204981655,
0.0775851607,
-0.2718220353,
0.1905570179,
0.3381198943,
-0.2007162273,
-0.5028092265,
-0.103824757,
0.0046493807,
0.0473696552,
-0.3874830306,
0.1031720489,
0.4317591488,
0.0566466637,
0.0653750151,
0.0841201395,
0.3748915195,
0.5216267705,
0.0621310882,
-0.161125347,
0.0396628194,
-0.041002512,
-0.0968680903,
0.3038139045,
0.103325434,
0.0806119367,
0.359459728,
0.2420630753,
-0.2365051955,
0.1737934947,
0.1368823647,
0.0394264348,
-0.0872671381,
0.2431357354,
-0.0879860148,
0.2301579416,
-0.3438949585,
-0.062944822,
-0.3841106892,
-0.205008015,
0.194442153,
0.0538053215,
0.2803029716,
-0.1483445913,
0.1035071164,
-0.1939720958,
0.3162064254,
0.2660987675,
0.3846208453,
-0.2137842476,
-0.0469060242,
-0.5024280548,
0.1724726409,
-0.346996218,
-0.1295777112,
-0.1455878466,
0.2240305692,
-0.118400082,
0.2047991157,
0.0748171285,
0.1087777391,
-0.0199392531,
0.1825401783,
-0.3406282663,
-0.2378991991,
0.1222532541,
-0.0062028826,
0.1046955511,
-0.4333774149,
0.1686771512,
-0.4030472934,
0.208211109,
-0.3700033724,
-0.1381946057,
-0.0405407287,
0.2870667875,
0.3991278708,
0.2666448057,
0.4219020605,
-0.1721803993,
-0.4623817801,
-0.5068796277,
-0.2178313136,
-0.1217797995,
0.1986500472,
0.2184195071,
0.6369150281,
0.0296888351,
-0.0746037513,
-0.1033614129,
0.4448701143,
-0.13086842,
-0.0580458902,
-0.1972834468,
-0.1436203569,
-0.1096158624,
0.0656554028,
-0.0511646159,
0.1483440846,
-0.0219370686,
0.3588072658,
-0.3942278028,
-0.3856465518,
0.6613796949,
-0.3881804943,
-0.1596189588,
-0.1009051055,
0.2502729893,
-0.1218318343,
-0.1491242349,
-0.455260694,
0.2276095748,
0.428763032,
-0.0128906015,
-0.1326039582,
0.1505882889,
-0.0781833678,
0.1307359338,
-0.0386901386,
0.4313363433,
0.0674165785,
-0.220816046,
0.0933674201,
-0.1452369988
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Hi @xflashxx, thanks for reporting.
Please note that this dataset was generated and shared by Webis Group: https://huggingface.co/webis
We are contacting the dataset owners to inform them about the issue you found. We'll keep you updated of their reply. | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 39 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Hi @xflashxx, thanks for reporting.
Please note that this dataset was generated and shared by Webis Group: https://huggingface.co/webis
We are contacting the dataset owners to inform them about the issue you found. We'll keep you updated of their reply. | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Thanks for reporting this @xflashxx. I'll have a look and get back to you on this. | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 16 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Thanks for reporting this @xflashxx. I'll have a look and get back to you on this. | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Hi @xflashxx and @albertvillanova,
I have updated the files with de-duplicated splits. Apparently the debate portals from which part of the examples were sourced had unique timestamps for some examples (up to 6%; updated counts in the README) without any actual content updated that lead to "new" items. The length of `ids_validation` and `ids_testing` is zero.
Regarding impact on scores:
1. We employed automatic evaluation (on a separate set of 1000 examples) only to justify the exclusion of the smaller models for manual evaluation (due to budget constraints). I am confident the ranking still stands (unsurprisingly, the bigger models doing better than those trained on the smaller splits). We also highlight this in the paper.
2. The examples used for manual evaluation have no overlap with any splits (also because they do not have any ground truth as we applied the trained models on an unlabeled sample to test its practical usage). I've added these two files to the dataset repository.
Hope this helps! | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 164 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Hi @xflashxx and @albertvillanova,
I have updated the files with de-duplicated splits. Apparently the debate portals from which part of the examples were sourced had unique timestamps for some examples (up to 6%; updated counts in the README) without any actual content updated that lead to "new" items. The length of `ids_validation` and `ids_testing` is zero.
Regarding impact on scores:
1. We employed automatic evaluation (on a separate set of 1000 examples) only to justify the exclusion of the smaller models for manual evaluation (due to budget constraints). I am confident the ranking still stands (unsurprisingly, the bigger models doing better than those trained on the smaller splits). We also highlight this in the paper.
2. The examples used for manual evaluation have no overlap with any splits (also because they do not have any ground truth as we applied the trained models on an unlabeled sample to test its practical usage). I've added these two files to the dataset repository.
Hope this helps! | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4261 | data leakage in `webis/conclugen` dataset | Thanks @shahbazsyed for your fast fix.
As a side note:
- Your email appearing as Point of Contact in the dataset README has a typo: @uni.leipzig.de instead of @uni-leipzig.de
- Your commits on the Hub are not linked to your profile on the Hub: this is because we use the email address to make this link; the email address used in your commit author and the email address set on your Hub account settings. | ## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0 | 74 | data leakage in `webis/conclugen` dataset
## Describe the bug
Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results.
Furthermore, all splits contain duplicate samples.
## Steps to reproduce the bug
```python
from datasets import load_dataset
training = load_dataset("webis/conclugen", "base", split="train")
validation = load_dataset("webis/conclugen", "base", split="validation")
testing = load_dataset("webis/conclugen", "base", split="test")
# collect which sample id's are present in the training split
ids_validation = list()
ids_testing = list()
for train_sample in training:
train_argument = train_sample["argument"]
train_conclusion = train_sample["conclusion"]
train_id = train_sample["id"]
# test if current sample is in validation split
if train_argument in validation["argument"]:
for validation_sample in validation:
validation_argument = validation_sample["argument"]
validation_conclusion = validation_sample["conclusion"]
validation_id = validation_sample["id"]
if train_argument == validation_argument and train_conclusion == validation_conclusion:
ids_validation.append(validation_id)
# test if current sample is in test split
if train_argument in testing["argument"]:
for testing_sample in testing:
testing_argument = testing_sample["argument"]
testing_conclusion = testing_sample["conclusion"]
testing_id = testing_sample["id"]
if train_argument == testing_argument and train_conclusion == testing_conclusion:
ids_testing.append(testing_id)
```
## Expected results
Length of both lists `ids_validation` and `ids_testing` should be zero.
## Actual results
Length of `ids_validation` = `2556`
Length of `ids_testing` = `287`
Furthermore, there seems to be duplicate samples in (at least) the *training* split, since:
`print(len(set(ids_validation)))` = `950`
`print(len(set(ids_testing)))` = `101`
All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.4
- Platform: macOS-12.3.1-arm64-arm-64bit
- Python version: 3.9.10
- PyArrow version: 7.0.0
Thanks @shahbazsyed for your fast fix.
As a side note:
- Your email appearing as Point of Contact in the dataset README has a typo: @uni.leipzig.de instead of @uni-leipzig.de
- Your commits on the Hub are not linked to your profile on the Hub: this is because we use the email address to make this link; the email address used in your commit author and the email address set on your Hub account settings. | [
-0.36332196,
-0.0242240075,
-0.1429641396,
0.402130723,
-0.3650673032,
-0.0415427275,
0.2132989019,
0.3561701775,
-0.1063962504,
-0.1708764583,
-0.1198273748,
0.3781647682,
0.1482660472,
-0.1364054382,
0.0034131473,
-0.0325714909,
0.0117843514,
0.0138980728,
-0.1497119665,
-0.1416250318,
-0.0917620882,
-0.077948235,
-0.2060245425,
0.0527013205,
-0.0171949361,
-0.1431310475,
-0.2288804054,
0.029700879,
-0.0348292068,
-0.2237255275,
0.2134005725,
0.1298481673,
-0.0306135789,
0.2692907155,
-0.0001190686,
-0.0390059352,
0.1522105038,
-0.1052996889,
-0.3868152201,
0.113888897,
-0.7554745674,
-0.1205685809,
0.0355377123,
-0.135519594,
0.1614336371,
-0.0456097573,
-0.4770208299,
-0.1425347924,
0.5739991069,
0.3902168274,
0.1463796794,
0.3937812746,
0.0974643975,
0.0859819427,
-0.0199133437,
0.0811167806,
0.0731415823,
0.1102245525,
0.1096175835,
-0.0967494175,
0.0915758163,
0.4329280853,
-0.2043185979,
-0.0728304163,
-0.3327332139,
0.1536067426,
0.0729450285,
-0.2895525992,
-0.0744905695,
0.138390094,
0.1133596525,
-0.2317872494,
-0.4519497156,
-0.2605682611,
-0.1836568415,
0.0181665849,
0.1066023633,
0.5403934121,
-0.0901674703,
0.4152606726,
-0.3220816851,
-0.0099227093,
-0.0354457051,
0.0484371409,
-0.0743450075,
0.0791024566,
0.1859384626,
0.0178177003,
0.119027257,
0.1117592528,
-0.1203319356,
-0.2385437489,
-0.0978276581,
0.0226494782,
-0.1091757491,
-0.2662197351,
-0.0305773169,
-0.1886886507,
0.2594994009,
0.346319586,
0.1387574524,
-0.3040825725,
0.1755755693,
0.2031044811,
0.7018611431,
0.1315502375,
-0.1031468958,
0.5667780042,
0.1297549307,
-0.046328187,
-0.0482345857,
0.0349961221,
0.4792036116,
0.0346818492,
0.3159838915,
-0.183106631,
0.2739709318,
-0.0556105077,
-0.5984289646,
0.1331205368,
-0.3744575083,
-0.1200581715,
0.1085519046,
0.0698695704,
-0.1806812286,
0.28148368,
0.2933531702,
0.4517903328,
-0.303704977,
-0.5134310126,
-0.2839006484,
-0.2411982864,
-0.4231164753,
0.1008323953,
-0.0528470278,
0.2315009534,
0.2190931588,
0.3810255229,
-0.1728273183,
-0.2488094866,
0.1840186566,
-0.087277256,
0.0499435142,
0.1009448022,
-0.0082416162,
0.0386677198,
0.0701499507,
0.0850585923,
-0.1143653095,
0.1320246309,
-0.323731035,
-0.1052608415,
-0.2110152394,
0.130172953,
-0.1874259412,
0.314924866,
0.1458457857,
0.128635928,
0.38393417,
0.1558094621,
-0.0658200979,
-0.1261459589,
-0.0514690988,
-0.1929834485,
0.1721153259,
0.6767818332,
0.0140123656,
-0.1978211105,
0.1810679883,
0.0289945398,
0.2821219862,
0.293308109,
-0.2448359728,
0.368317157,
-0.012946777,
0.0525057502,
0.2605208158,
-0.2709012032,
-0.5945890546,
0.1214221939,
0.1391863227,
0.2939580083,
0.1475943029,
-0.1194100156,
0.2400604337,
-0.0263600405,
0.1446816027,
0.1340637356,
-0.1515321583,
-0.0070425509,
-0.407066524,
-0.3797287643,
0.135112077,
-0.1476572007,
0.023132531,
0.1340032071,
0.1611863226,
-0.0126920575,
0.5123282671,
0.0818381011,
0.0182598867,
0.061206419,
0.2165184617,
0.0664429292,
0.0743562728,
-0.0702011064,
-0.1711992323,
-0.0662577152,
-0.08976008,
-0.0150224697,
-0.1664074957,
-0.0456582382,
-0.1323791444,
0.146419093,
-0.1847636253,
-0.3378699124,
0.1065924317,
0.1457354128,
-0.0790485516,
-0.0196800977,
-0.0255302377,
0.1254718006,
-0.0685152337,
0.0657225102,
-0.1465099454,
0.4118940234,
0.0208679121,
-0.1492480338,
-0.1603879631,
0.1590708941,
0.0784425586,
-0.0147489281,
-0.1558878422,
0.4487401843,
0.4631208479,
-0.0013891652,
0.0189357754,
0.0491452366,
0.3902369738,
-0.5439520478,
0.019976465,
0.3756179512,
-0.0737434924,
0.0686775148,
-0.0187086891,
0.3401438594,
0.0219895225,
0.0759986937,
0.0832015872,
0.2657468915,
0.0842813402,
-0.2800939381,
-0.0024759395,
-0.3638886511,
-0.0738974959,
-0.2389096171,
0.3339602053,
0.1186395064,
-0.2792108655,
0.1396704167,
-0.1094684303,
-0.1447114944,
0.0790736973,
0.013109033,
-0.1745111048,
-0.0791603401,
0.0395980813,
0.1510694474,
0.6801630259,
0.0701594353,
0.1866099983,
-0.1644313186,
-0.0046939855,
-0.0596479736,
0.3265652061,
0.0905196518,
-0.2490723133,
0.1334775537,
0.0999103189,
0.0785669833,
0.0585955493,
0.2242278457,
-0.0026935227,
-0.0169732962,
-0.3133391738,
0.3918763995,
-0.2991699278,
0.0788768157,
-0.471316278,
-0.2844308317,
0.3026446104,
-0.1128219813,
0.0839131474,
-0.0485206321,
-0.1846406013,
-0.0652943552,
0.1064685583,
0.3964874148,
0.2042201757,
0.113017045,
0.04528597,
-0.1309812069,
-0.2711625099,
0.0278199147,
0.2823479176,
-0.1547227055,
0.1100748181,
-0.0931019783,
-0.3419739008,
-0.1362827271,
-0.2974627614,
0.1426054984,
0.3618694246,
0.5280236006,
0.1477293521,
-0.1218876839,
0.0217304882,
-0.3410456181,
0.0144450581,
-0.1193739995,
-0.2189913392,
0.1269833148,
-0.0517093278,
-0.1222400516,
0.0351920538,
-0.6232655644,
-0.4613194764,
-0.0794417188,
0.0380128175,
-0.1084445938,
-0.0028653119,
0.3385064304,
-0.0097165322,
-0.3089002669,
0.0519188419,
0.1849757135,
-0.1708561182,
-0.1094614193,
0.1678691804,
-0.2265812159,
-0.1907278895,
-0.3099999726,
-0.102416642,
0.3917346001,
0.3071902394,
-0.3493902087,
0.2461938262,
-0.0312837362,
0.3806972802,
-0.5309261084,
-0.0410740413,
-0.0521012731,
0.1173285842,
0.0369302481,
-0.1988159269,
0.3363437951,
0.2389562726,
-0.0671611801,
0.5478172302,
-0.2363046855,
0.0193661992,
0.1859528422,
0.7166900635,
0.7908546925,
-0.2655791044,
-0.021555474,
-0.0323399939,
-0.1028693765,
0.1306619495,
-0.4211115241,
-0.0757766441,
-0.0174820609,
-0.30090487,
0.2387372553,
0.0116675338,
-0.361192733,
-0.1626225561,
0.1848434359,
-0.327026546,
-0.4203015566,
0.0291757435,
0.0902484283,
0.3902220726,
0.2275000066,
0.0713981315,
-0.0325342678,
-0.2253475338,
-0.0481481701,
0.0162528343,
-0.0012082647,
0.0216660239,
-0.0026195075,
0.0911123306,
-0.0393081531,
-0.0628140718,
0.0801138505,
0.1826417446,
-0.0100790169,
-0.0850267932,
0.0036340882,
0.3724610507,
0.6208635569,
-0.1514885873,
0.0582102127,
-0.0548644252,
0.1859098822,
-0.2130122185,
-0.033206176,
-0.2678339779,
-0.0999762267,
0.9386274815,
-0.004575558,
-0.1938240379,
-0.0052663716,
0.4023320973,
0.1027639061,
-0.2078710049,
-0.0789417922,
-0.1680141687,
-0.0390212089,
-0.0164584331,
0.2112865299,
0.1949586421,
0.1093608141,
-0.189741388,
-0.1723018885,
-0.1177903637,
-0.1464872509,
0.0666022599,
0.1813551635,
0.4978112876,
-0.2874653637,
0.3692555726,
-0.0054748589,
-0.0045499373,
0.2463385612,
0.4340744913,
-0.0710034221,
-0.370262593,
-0.0470227785,
-0.2551766336,
0.2581683993,
0.3014222383,
0.0310218446,
0.004803332,
-0.2951261103,
0.262642473,
-0.3175852299,
0.0410306156,
0.1002293974,
-0.0813696086,
-0.1541978419,
-0.3208070099,
-0.0150233926,
-0.0130079323,
-0.3312633932,
0.3713918626,
-0.3322058916,
-0.331775099,
0.3117571771,
0.2861383855,
0.9963933825,
0.3367155194,
-0.0885916203,
0.2450333089,
-0.1189180464,
0.1285077333,
-0.1815546304,
-0.1568141729,
0.0358439088,
-0.16302149,
0.1185232997,
-0.1651228517,
0.133179158,
0.0235399846,
-0.2793505192,
0.0512919612,
-0.4328808486,
0.2479215264,
0.26257357,
0.0409808233,
0.2268936336,
0.1533263475,
0.0856137425,
0.0517315716,
-0.0114896307,
-0.0196316652,
-0.0566391312,
-0.2196900249,
-0.0235003941,
-0.0849298164,
-0.2396716774,
0.2713049352,
-0.4123503864,
0.5566850901,
0.0022871888,
-0.0282970723,
-0.0963379815,
0.663636446,
0.247612983,
-0.043443121,
0.0757891238,
0.1680683494,
0.0650609136,
0.2629297376,
0.0082887728,
-0.1488484144,
0.4845561385,
0.0973062515,
-0.346696645,
0.0171160419,
0.044866994,
-0.2108722627,
-0.223695457,
0.2528188527,
0.2692221999,
-0.3612026274,
0.2382060736,
-0.1261110902,
0.0484481901,
-0.2461665273,
0.0804292113,
0.2375946492,
-0.3606632948,
0.4666610062,
-0.3592317104,
-0.3010484874,
-0.0814496875,
0.3948071003,
0.3901964426,
-0.0064146626,
0.1959183663,
-0.3457223773,
-0.1181583554,
-0.2315072715,
0.163706407,
-0.2335006744,
-0.3383143246,
0.2227334231,
-0.5556389093,
0.1254330873,
-0.2047968507,
0.0254729725,
0.0439458638,
0.224912107,
0.0065901284,
-0.6524282098,
0.0518715829,
0.124577947,
0.093546465,
0.067072399,
-0.0986124575,
0.3461927474,
-0.3416067958,
0.3989979625,
-0.2622123659,
-0.0235740598,
0.0180160813,
0.1382604837,
0.1566556841,
-0.0170280058,
0.084719643,
-0.2175275981,
0.0537419543,
-0.033902701,
0.057099279,
-0.142146647,
-0.2792113125,
0.1127859056,
-0.1338299662,
-0.0959601626,
-0.1605391204,
-0.097105369,
0.2395406067,
-0.0696246922,
0.1542236805,
-0.0727888718,
0.1852061898,
-0.0709825382,
-0.062510632,
-0.1273988634,
-0.1876121312,
0.0955576524,
-0.0983368978,
0.1360654831,
0.0314480625,
0.3662619293,
-0.0304750875,
-0.0767020807,
-0.2871260643,
0.0634168461,
0.1197636276,
0.1798138171,
0.0818037018,
-0.1122571975,
-0.032491833,
0.1030875444,
0.0711047873,
0.4355326295,
-0.3293004334,
0.0420352779,
-0.1127941832,
0.2308754027,
-0.0537034199,
-0.0795112997,
0.0627142787,
0.1696926504,
-0.0666472986,
0.3745976686,
0.3034933507,
-0.1723678857,
0.0981654227,
-0.140195787,
0.2701460123,
-0.1031420678,
0.6103987098,
0.8242201805,
0.007024324,
0.1084555164,
-0.1536821425,
-0.1477366835,
0.3387256861,
0.2360477448,
-0.1609559655,
0.7677118778,
-0.029637279,
-0.0345103294,
0.0367628895,
0.1609759778,
-0.0235489272,
0.0773134455,
-0.3030443788,
0.2025551349,
-0.0725646615,
0.352655232,
-0.3180423677,
-0.3592552543,
-0.2815717161,
0.0280545093,
-0.1326447576,
-0.0019577157,
-0.4110690951,
-0.2260142267,
-0.1946728379,
0.0914732218,
0.168363601,
-0.0731962696,
0.2967986166,
0.1587083787,
-0.0866467133,
-0.3970248103,
-0.4306512177,
0.4005749822,
0.1146436185,
-0.3422311544,
0.2056191862,
0.2762196958,
-0.0381136611,
0.0738075376,
0.4109475315,
0.3706376255,
0.436397016,
0.0563671887,
-0.1838746816,
0.1990635097,
-0.2111617029,
-0.2411460876,
0.1708738953,
0.0427914932,
-0.1089596599,
0.1623125821,
0.0992964283,
-0.1690346301,
0.0104366718,
0.3649052382,
0.1858058572,
-0.5423957705,
0.3081740439,
-0.3156813383,
0.0199701041,
0.0063128825,
-0.332116574,
-0.1336089522,
0.2190331221,
0.2393356115,
-0.2609136999,
0.1510228366,
0.156841144,
0.0368592478,
0.0668016821,
0.1266166717,
-0.1922139525,
-0.0758229047,
-0.3533601165,
-0.2638110816,
-0.4237475991,
0.1086481586,
0.0393405296,
-0.0174753387,
-0.0365194008,
0.3689975142,
-0.3358143866,
0.2624946535,
-0.1276496649,
-0.0484131761,
0.2248681039,
0.1962350309,
-0.5598347187,
-0.2096147984,
-0.0803283975,
0.1377453357,
0.1723922491,
-0.2320547253,
0.1809180379,
0.137019068,
-0.0709963813,
0.0420293324,
-0.2068841904,
0.1445130855,
0.2137176543,
0.2946116626,
0.3501234055,
0.7239644527,
0.0142834308,
-0.2817309499,
-0.0615031682,
-0.4726160467,
-0.1624019444,
0.1066096202,
-0.0915311128,
0.1937284917,
-0.2815417051,
-0.1551231444,
-0.1543229073,
0.0836483985,
0.3785752654,
-0.3037132025,
-0.4284696877,
-0.1060515046,
-0.0541564003,
0.3086943924,
0.3233095706,
0.3632128239,
-0.4018068016,
0.2180061191,
0.116106838,
-0.2815406024,
0.1687108278,
-0.3476576209,
-0.0799794495,
-0.184680745,
0.3125843704,
-0.2369873822,
-0.017232744,
-0.6048095226,
-0.2870177329,
0.3584399819,
-0.1647156626,
-0.2190792859,
0.2475245893,
0.5531334877,
-0.0905905291,
-0.0046846867,
0.4444277287,
0.2552662194,
-0.3594415486,
0.7340829372,
-0.2306004167
] |
https://github.com/huggingface/datasets/issues/4248 | conll2003 dataset loads original data. | Thanks for reporting @sue99.
Unfortunately. I'm not able to reproduce your problem:
```python
In [1]: import datasets
...: from datasets import load_dataset
...: dataset = load_dataset("conll2003")
In [2]: dataset
Out[2]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 14042
})
validation: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3251
})
test: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3454
})
})
In [3]: dataset["train"][0]
Out[3]:
{'id': '0',
'tokens': ['EU',
'rejects',
'German',
'call',
'to',
'boycott',
'British',
'lamb',
'.'],
'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7],
'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0],
'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0]}
```
Just guessing: might be the case that you are calling `load_dataset` from a working directory that contains a local folder named `conll2003` (containing the raw data files)? If that is the case, `datasets` library gives precedence to the local folder over the dataset on the Hub. | ## Describe the bug
I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text.
Is this a bug or should I use another dataset_name like `lhoestq/conll2003` ?
## Steps to reproduce the bug
```python
import datasets
from datasets import load_dataset
dataset = load_dataset("conll2003")
```
## Expected results
{
"chunk_tags": [11, 12, 12, 21, 13, 11, 11, 21, 13, 11, 12, 13, 11, 21, 22, 11, 12, 17, 11, 21, 17, 11, 12, 12, 21, 22, 22, 13, 11, 0],
"id": "0",
"ner_tags": [0, 3, 4, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"pos_tags": [12, 22, 22, 38, 15, 22, 28, 38, 15, 16, 21, 35, 24, 35, 37, 16, 21, 15, 24, 41, 15, 16, 21, 21, 20, 37, 40, 35, 21, 7],
"tokens": ["The", "European", "Commission", "said", "on", "Thursday", "it", "disagreed", "with", "German", "advice", "to", "consumers", "to", "shun", "British", "lamb", "until", "scientists", "determine", "whether", "mad", "cow", "disease", "can", "be", "transmitted", "to", "sheep", "."]
}
## Actual results
```python
print(dataset)
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 219554
})
test: Dataset({
features: ['text'],
num_rows: 50350
})
validation: Dataset({
features: ['text'],
num_rows: 55044
})
})
```
```python
for i in range(20):
print(dataset['train'][i])
{'text': '-DOCSTART- -X- -X- O'}
{'text': ''}
{'text': 'EU NNP B-NP B-ORG'}
{'text': 'rejects VBZ B-VP O'}
{'text': 'German JJ B-NP B-MISC'}
{'text': 'call NN I-NP O'}
{'text': 'to TO B-VP O'}
{'text': 'boycott VB I-VP O'}
{'text': 'British JJ B-NP B-MISC'}
{'text': 'lamb NN I-NP O'}
{'text': '. . O O'}
{'text': ''}
{'text': 'Peter NNP B-NP B-PER'}
{'text': 'Blackburn NNP I-NP I-PER'}
{'text': ''}
{'text': 'BRUSSELS NNP B-NP B-LOC'}
{'text': '1996-08-22 CD I-NP O'}
{'text': ''}
{'text': 'The DT B-NP O'}
{'text': 'European NNP I-NP B-ORG'}
```
| 158 | conll2003 dataset loads original data.
## Describe the bug
I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text.
Is this a bug or should I use another dataset_name like `lhoestq/conll2003` ?
## Steps to reproduce the bug
```python
import datasets
from datasets import load_dataset
dataset = load_dataset("conll2003")
```
## Expected results
{
"chunk_tags": [11, 12, 12, 21, 13, 11, 11, 21, 13, 11, 12, 13, 11, 21, 22, 11, 12, 17, 11, 21, 17, 11, 12, 12, 21, 22, 22, 13, 11, 0],
"id": "0",
"ner_tags": [0, 3, 4, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"pos_tags": [12, 22, 22, 38, 15, 22, 28, 38, 15, 16, 21, 35, 24, 35, 37, 16, 21, 15, 24, 41, 15, 16, 21, 21, 20, 37, 40, 35, 21, 7],
"tokens": ["The", "European", "Commission", "said", "on", "Thursday", "it", "disagreed", "with", "German", "advice", "to", "consumers", "to", "shun", "British", "lamb", "until", "scientists", "determine", "whether", "mad", "cow", "disease", "can", "be", "transmitted", "to", "sheep", "."]
}
## Actual results
```python
print(dataset)
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 219554
})
test: Dataset({
features: ['text'],
num_rows: 50350
})
validation: Dataset({
features: ['text'],
num_rows: 55044
})
})
```
```python
for i in range(20):
print(dataset['train'][i])
{'text': '-DOCSTART- -X- -X- O'}
{'text': ''}
{'text': 'EU NNP B-NP B-ORG'}
{'text': 'rejects VBZ B-VP O'}
{'text': 'German JJ B-NP B-MISC'}
{'text': 'call NN I-NP O'}
{'text': 'to TO B-VP O'}
{'text': 'boycott VB I-VP O'}
{'text': 'British JJ B-NP B-MISC'}
{'text': 'lamb NN I-NP O'}
{'text': '. . O O'}
{'text': ''}
{'text': 'Peter NNP B-NP B-PER'}
{'text': 'Blackburn NNP I-NP I-PER'}
{'text': ''}
{'text': 'BRUSSELS NNP B-NP B-LOC'}
{'text': '1996-08-22 CD I-NP O'}
{'text': ''}
{'text': 'The DT B-NP O'}
{'text': 'European NNP I-NP B-ORG'}
```
Thanks for reporting @sue99.
Unfortunately. I'm not able to reproduce your problem:
```python
In [1]: import datasets
...: from datasets import load_dataset
...: dataset = load_dataset("conll2003")
In [2]: dataset
Out[2]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 14042
})
validation: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3251
})
test: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3454
})
})
In [3]: dataset["train"][0]
Out[3]:
{'id': '0',
'tokens': ['EU',
'rejects',
'German',
'call',
'to',
'boycott',
'British',
'lamb',
'.'],
'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7],
'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0],
'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0]}
```
Just guessing: might be the case that you are calling `load_dataset` from a working directory that contains a local folder named `conll2003` (containing the raw data files)? If that is the case, `datasets` library gives precedence to the local folder over the dataset on the Hub. | [
0.0448263213,
0.2318243235,
0.0067998567,
0.4537388086,
0.0293568652,
0.0392917953,
0.3254444003,
0.3471554816,
-0.4062146246,
-0.0317827091,
-0.1551049054,
0.396732986,
0.0610170625,
0.2233855128,
0.008579554,
0.1582965702,
0.2671114206,
0.3820191026,
-0.0271611772,
-0.1606874615,
-0.4656360447,
0.0440823101,
-0.2697820365,
0.060622409,
-0.3774574101,
0.2913784385,
0.1227748021,
0.3359757662,
-0.1259002537,
-0.3003683388,
0.3819499016,
0.1937045306,
0.2219436765,
0.2603473961,
-0.0001243889,
-0.0192409959,
0.2649604976,
-0.2659655213,
-0.2194975466,
-0.0826447904,
0.0838628486,
-0.0763314664,
0.2452257574,
-0.2941708267,
-0.2550196946,
-0.012199929,
-0.3003134429,
-0.3858022392,
0.2921506763,
0.270347029,
0.0988749266,
0.0368201211,
-0.3032774627,
0.0794728771,
0.4664376676,
-0.0261675809,
-0.1455048472,
0.3974698782,
0.129563868,
0.1230803877,
0.2120419145,
0.3488538265,
-0.1668091416,
0.1446722895,
0.0597898588,
0.1589240432,
-0.0465197712,
0.0158078913,
0.0245220475,
0.2006985992,
0.4102185667,
-0.0978350341,
-0.2401052713,
-0.1350582391,
0.0551175326,
-0.5829328299,
0.0788267702,
-0.0865387544,
-0.1946164817,
0.2578684986,
-0.2410968542,
-0.3459315002,
-0.1064889282,
0.1776340306,
-0.4502919912,
0.4956228435,
-0.0230797045,
0.2011940628,
-0.145647049,
0.1024948061,
0.6498841047,
-0.0235611573,
-0.1814509332,
-0.0730721951,
-0.194299683,
-0.0079776458,
-0.3065361977,
-0.1740090251,
0.0824810639,
0.1755888462,
-0.0958349705,
0.0836770386,
0.0349669009,
-0.2090182155,
0.1432762891,
-0.0487688333,
0.2355433702,
0.3679767549,
0.1002839282,
-0.1127094254,
-0.1059295908,
-0.0394406579,
-0.3138516843,
0.1820118725,
-0.0448712818,
-0.2669908106,
0.3142269552,
-0.2509042621,
-0.3820787072,
0.3532239199,
-0.2207642049,
-0.0794888139,
-0.1489764899,
0.4608438313,
-0.1466075629,
0.1574845314,
0.2900689244,
0.2347575426,
0.0691084862,
-0.3828029633,
-0.1133400276,
-0.4285889566,
-0.1298417598,
0.0042580734,
0.0020649568,
-0.2637699544,
0.2054966688,
0.0208826605,
-0.0669932514,
-0.2369274944,
-0.0468032621,
0.0075568184,
0.3068053126,
-0.0581651106,
-0.090438202,
0.2091644555,
0.0500965677,
-0.1468729675,
0.0231251679,
0.455719918,
-0.4526998699,
-0.240528211,
-0.5648736358,
0.0862321332,
-0.2498576939,
-0.0523241498,
0.4259244204,
-0.0984318331,
0.1287536174,
-0.0735684112,
-0.011968663,
-0.0385855287,
-0.4588788152,
-0.1618784219,
0.2753043175,
0.3777204752,
-0.4564000368,
-0.089375332,
-0.1668397635,
-0.043664597,
0.1516934186,
0.1373060644,
-0.068086639,
0.1844154745,
-0.2494932711,
-0.2349236161,
0.4245717525,
-0.3693083227,
-0.536866188,
0.1885433346,
0.0789401904,
0.357196182,
0.009639143,
-0.1867367476,
0.3557707667,
-0.0149558019,
0.2415635437,
0.0584281124,
0.2991384864,
-0.2032725215,
-0.2133903205,
-0.1440140009,
0.3277707994,
0.0643184558,
-0.1588292569,
0.179164052,
-0.1458713561,
0.028194597,
0.3759071827,
0.1061835811,
-0.0201194994,
0.2149078697,
0.2030422091,
0.2246910185,
0.0999900475,
0.1039069816,
-0.5491190553,
-0.0174118802,
-0.0111466795,
-0.0002314913,
0.3011357188,
-0.2209811956,
-0.6124382615,
0.0368050896,
-0.2436043769,
-0.2261929363,
0.0205768682,
0.2948037684,
0.0325972959,
0.1576065421,
-0.0238153357,
0.2894471288,
-0.1627153903,
0.0982214361,
-0.0393994115,
0.2551585734,
0.0820789859,
-0.1566713452,
-0.1504649669,
0.1728754044,
0.1502112001,
-0.021898713,
-0.0750624388,
0.4087532163,
0.2389223576,
0.1045098603,
-0.2892371416,
-0.055869054,
0.1279190332,
-0.0362013578,
0.0113982186,
0.1972478479,
0.0669183657,
-0.0113805067,
-0.0289708693,
0.2905336618,
0.4044435322,
-0.0951409489,
-0.1479786783,
-0.0788538605,
0.202597931,
-0.3363836408,
-0.0616735145,
-0.5342962146,
0.067145735,
0.2042281479,
0.3849778175,
0.1495521218,
-0.4110219479,
-0.1194099784,
0.4259318113,
-0.1068047434,
-0.0188124236,
0.1522651613,
-0.395200789,
-0.0963495299,
-0.0067036478,
0.0417489037,
0.347537905,
0.103856042,
-0.0541248284,
0.3582326472,
0.1383917183,
-0.049898576,
0.2774566412,
-0.1249296516,
0.1905676425,
0.3771478832,
-0.0433056913,
0.0040437924,
-0.1961155236,
0.1931494772,
0.1315931231,
0.0697517097,
-0.4316930771,
-0.0107637327,
-0.4004230499,
-0.1993741542,
-0.2595609426,
-0.3125596642,
-0.0159784947,
-0.0665677637,
-0.0501014963,
0.190109998,
-0.0187664721,
0.2329669148,
-0.4545711875,
0.1926630735,
0.0963276774,
-0.1528948694,
-0.2002650201,
-0.0582925826,
-0.3965318203,
-0.0043565328,
-0.0353185534,
-0.2426276952,
0.1594927162,
-0.5326331854,
0.1088377759,
-0.0712841898,
-0.2739363611,
0.425052315,
0.0242706481,
0.4644916058,
-0.0129252831,
-0.1039478406,
0.0907666013,
-0.1227237508,
-0.0615621097,
-0.0262912828,
-0.1114422753,
-0.1609793603,
0.1638056487,
0.1557527184,
-0.1190382838,
-0.4507129788,
-0.0496529229,
-0.1502767205,
-0.2716255784,
-0.0403764173,
0.1571302414,
0.0939809605,
-0.1552083343,
-0.0362653546,
-0.0016259452,
0.1693565995,
-0.5893480182,
-0.1293580681,
0.343084842,
-0.1169871464,
-0.2645248473,
-0.1576336622,
-0.2251275331,
-0.1706332415,
0.0185389761,
-0.4960561395,
0.2375543118,
0.2370987684,
0.0064401547,
-0.1153423935,
-0.2045422047,
0.209196493,
-0.0124957487,
0.2053453475,
-0.3234427571,
-0.2191362381,
0.0102569144,
-0.1244441047,
0.3511466682,
0.0816166997,
0.2880916297,
-0.1590131521,
0.4117560983,
0.1371786743,
-0.0638942793,
0.358792305,
-0.2820608616,
0.3791356087,
-0.1336128414,
-0.1000809222,
-0.2800198197,
-0.1389624625,
-0.0447697639,
0.5035549402,
-0.0996688828,
-0.1894102097,
-0.2123968005,
0.184133485,
-0.3997634053,
-0.0752697289,
-0.2055016905,
-0.3744496703,
0.2014377862,
0.1998991966,
0.3714770377,
0.2333239466,
-0.3209350109,
-0.0063639171,
0.1335989535,
0.1837019026,
-0.2681546807,
-0.3475033641,
0.3508737087,
-0.3033733666,
0.3854838908,
0.2486662716,
0.3580044508,
0.1939322352,
-0.2862458527,
0.1997600645,
0.0656307414,
0.8118964434,
-0.0560126603,
-0.018728653,
0.2588201165,
0.1150069311,
-0.3377585709,
-0.1234739423,
-0.23011446,
-0.1990335137,
0.5778025389,
0.5648505092,
-0.0911604688,
-0.2139631808,
0.2724898458,
-0.0198360812,
-0.3167949319,
-0.0646509081,
-0.2320542634,
-0.0946555361,
-0.0838568732,
-0.3629365563,
-0.2585020959,
0.1377018094,
-0.1955691576,
0.0247167088,
-0.1076179743,
0.1010637581,
0.2200922966,
0.2147052884,
0.5110974908,
0.1184478104,
0.4294701219,
0.1276708543,
0.3374727368,
0.2366152853,
0.7253125906,
0.1274916977,
-0.4262500107,
-0.0106026065,
-0.1449640542,
0.3050517738,
0.2206737995,
0.0901063755,
-0.091127798,
-0.2644488513,
-0.2653597593,
-0.3320485055,
0.1787532866,
0.4158866405,
-0.199222967,
-0.7025408745,
-0.3890787065,
0.360642314,
0.0741620511,
-0.2769097984,
0.043284297,
-0.2629130483,
-0.3517567813,
0.2905833721,
0.1150009707,
0.8994577527,
0.1430159658,
0.4274524152,
0.3634417653,
-0.3952364624,
0.111082159,
-0.0205736831,
-0.2090783566,
-0.431315124,
-0.1580788046,
-0.0806100294,
0.037256442,
0.0491713136,
0.0806295797,
-0.1051356867,
-0.0498271957,
-0.2751236558,
-0.0941779986,
0.319616437,
0.1775959134,
0.2612681687,
0.0993127301,
0.2685211599,
-0.0299386531,
0.0513394326,
0.1928394884,
-0.1283206046,
0.0267831292,
-0.1855323166,
-0.300106436,
-0.1545196474,
0.2412196547,
0.0283781849,
-0.0305856727,
0.1856676042,
-0.6402321458,
-0.122516267,
0.1703584939,
-0.0035864518,
0.2636041045,
-0.1846423596,
0.1819834262,
0.4903283417,
0.0415697843,
0.2928009927,
0.1037720144,
0.0895311311,
0.0246707555,
-0.2007724643,
0.1153419092,
0.0806885585,
-0.4143515527,
-0.0595343821,
0.0861209333,
0.1210318357,
-0.6722032428,
-0.3613201678,
0.0571854711,
0.4202467799,
-0.3415966034,
0.0749874413,
-0.2167281806,
-0.1588734835,
0.0113781029,
0.0443975478,
-0.4761115313,
-0.2427614182,
0.3422328532,
0.2764312625,
-0.0383292101,
0.4763402343,
-0.0641798899,
0.0150514739,
-0.0508520193,
0.383204937,
0.0621606186,
-0.2465202361,
0.0730824918,
0.1785504371,
0.0266786329,
-0.1042826846,
0.3788186014,
0.041200038,
-0.0291108713,
-0.0670221224,
-0.3240647018,
-0.0876728967,
0.0363564678,
0.0486578047,
0.2218828201,
0.1922198236,
0.1220965832,
-0.3005678356,
-0.1893497258,
-0.2056241035,
0.16054672,
0.2333850861,
0.1566520333,
0.1670348197,
0.1870233864,
-0.0678555518,
-0.0557462573,
0.0927194655,
0.0075184377,
0.0955781192,
-0.1315968484,
-0.3383884132,
0.2081458718,
-0.0203089938,
-0.4359892309,
-0.0875207707,
-0.0088573648,
-0.0798544437,
-0.0164643358,
0.0702304319,
0.3948937654,
0.173593238,
0.4346024096,
-0.2620294094,
0.1062548831,
-0.2132829577,
0.1215981022,
-0.0955534354,
0.5005697608,
-0.0120179774,
0.3111376762,
-0.223328203,
0.1292882413,
-0.1104627773,
-0.0446113199,
-0.0600312427,
0.0630705431,
0.4374804497,
-0.3671010137,
0.238483429,
0.2255637646,
0.273766607,
0.5754968524,
-0.6401849389,
-0.2723144591,
0.2303488702,
0.1132742167,
-0.2634979486,
-0.2263035476,
0.0483341664,
-0.0594335534,
-0.153984949,
0.2939557135,
0.1693708748,
0.034254469,
0.0266157463,
-0.0478071347,
0.2798761129,
0.4823154211,
0.4603537917,
0.4028947055,
0.033135809,
0.1546129882,
0.2473224699,
0.1213043854,
-0.0176284555,
0.3462450504,
0.534522891,
-0.0707586557,
0.0872700885,
0.3172734976,
0.0460392237,
-0.2671715617,
0.2488611788,
0.1500927806,
-0.558566153,
0.4539009333,
-0.1025522128,
0.0002930399,
0.2550254166,
-0.0647052377,
-0.4226824045,
0.0967773199,
-0.1073005572,
-0.3337792754,
-0.180399552,
-0.1400976032,
-0.0132589722,
0.2832758129,
-0.1806479096,
-0.1493061781,
-0.1125817448,
0.1093202084,
-0.2914686799,
-0.0463855974,
0.2536255717,
-0.0152512444,
0.0207339041,
-0.3651191294,
0.4534761906,
-0.0987001806,
0.1673193872,
0.4461270273,
0.2015666813,
0.3215470612,
0.2438428104,
0.0453629345,
-0.224915415,
-0.0603554994,
-0.0188972056,
-0.0501581132,
0.479619652,
0.321141541,
0.0869680718,
0.3520107269,
0.0748954266,
-0.115868248,
0.1930804402,
0.3312725127,
0.1350973994,
-0.5197607279,
-0.0029890202,
-0.0665477887,
-0.0068049952,
0.0587399453,
-0.086200431,
-0.0988120064,
0.2534838319,
0.460280925,
0.179531619,
0.218418479,
-0.0255507026,
0.0257954057,
-0.1640746742,
0.2948088944,
0.2935834229,
0.259326756,
-0.1189205498,
-0.5376132727,
-0.365034163,
0.4552611411,
0.02605257,
-0.217589125,
0.2880805135,
-0.206568256,
0.039876055,
0.2750070095,
-0.1226881966,
-0.0429733507,
-0.4455729425,
0.0510441251,
-0.1831437945,
-0.2848451436,
-0.1695933789,
0.3079339266,
-0.1426435858,
-0.5672039986,
-0.0112061789,
-0.1254392415,
-0.0898240507,
-0.1454678923,
-0.1141540483,
0.2307456583,
-0.0363692194,
0.67678684,
0.1204654053,
0.559949398,
-0.1479395926,
0.0848999172,
0.001002158,
-0.2422677726,
-0.2128595561,
0.2053864598,
-0.0060776048,
-0.1210276559,
-0.0895693824,
-0.0751503706,
0.0402023084,
0.3531614542,
0.3253371418,
-0.0580936559,
-0.3416033983,
-0.0733063221,
-0.0769854411,
-0.2192609459,
0.0087087741,
0.4589926898,
-0.1489325464,
0.2275440544,
-0.061094638,
-0.1805742085,
0.4301487505,
-0.2160041332,
-0.112476103,
-0.1248575971,
0.1237566099,
-0.1776825488,
-0.1918596625,
-0.5386752486,
0.006613974,
0.6520334482,
-0.0433419831,
-0.217286855,
0.2099923342,
-0.0338595696,
-0.1074008569,
0.0191083886,
0.8981156349,
0.2726399302,
-0.301077038,
-0.0329165272,
-0.2696448565
] |
https://github.com/huggingface/datasets/issues/4247 | The data preview of XGLUE | Thanks for reporting @czq1999.
Note that the dataset viewer uses the dataset in streaming mode and that not all datasets support streaming yet.
That is the case for XGLUE dataset (as the error message points out): this must be refactored to support streaming. | It seems that something wrong with the data previvew of XGLUE | 43 | The data preview of XGLUE
It seems that something wrong with the data previvew of XGLUE
Thanks for reporting @czq1999.
Note that the dataset viewer uses the dataset in streaming mode and that not all datasets support streaming yet.
That is the case for XGLUE dataset (as the error message points out): this must be refactored to support streaming. | [
-0.5521460772,
-0.2582035363,
-0.0797492862,
0.0360034965,
0.12222258,
-0.0657666773,
0.1930060834,
0.3570640087,
-0.1430572718,
0.2119454741,
0.055040326,
0.1502947807,
-0.0410023369,
0.2117510885,
-0.1211941168,
-0.1035284176,
-0.0353827253,
0.1561267525,
-0.0141941961,
-0.0330404416,
-0.1638244838,
-0.0195095297,
-0.1646510512,
0.3171937168,
-0.0606554225,
-0.1546962708,
0.1191888079,
0.1771352589,
-0.3687257767,
-0.251747489,
0.048193343,
-0.0355642661,
0.0474689826,
0.1351370811,
-0.0000888003,
0.0975460485,
0.499886781,
0.0236747134,
-0.0040276949,
0.0430624001,
-0.5484801531,
-0.1978577971,
0.0120648965,
0.0357297137,
-0.1740079373,
-0.2559501529,
0.0317936838,
-0.258189261,
0.3807075322,
0.2280840278,
0.4184271395,
0.259681344,
0.1005621254,
-0.3380866051,
0.1627213359,
-0.1984017789,
-0.2186639905,
0.2013801932,
0.2523840964,
0.0612889044,
-0.1150902584,
0.4063470364,
-0.0525492467,
0.0802041069,
-0.0007664168,
-0.1896661967,
0.1441680938,
-0.2202507257,
-0.0034507073,
0.1116089076,
0.4408992231,
-0.2135464847,
-0.2312538773,
-0.0532954,
0.1221787259,
-0.1537505984,
0.1411561817,
0.1134509295,
-0.0791075155,
0.0225289539,
-0.1311250627,
-0.1233579516,
-0.0834708884,
0.0190361682,
-0.1158148125,
0.1515354216,
-0.2204077542,
0.0935247242,
0.0400299467,
0.0098798834,
0.3467471898,
0.0021415912,
-0.3371056616,
-0.0921910629,
-0.2756007314,
-0.0092165191,
0.1530337334,
0.0866193399,
0.1142404303,
0.0124367746,
0.2963167429,
0.1788162887,
0.1145540625,
0.1492967308,
0.1443773508,
0.0063181575,
0.1353472918,
-0.1249778047,
0.2567706704,
-0.1090278327,
0.0714021623,
-0.1256189048,
-0.045323085,
-0.3390521705,
-0.3305176497,
0.0790421069,
0.3232431412,
-0.2281997502,
-0.5085455179,
0.0586189032,
-0.086222738,
0.2371060401,
0.0133403474,
0.2523847818,
0.011840432,
-0.0609504953,
0.1921246797,
0.2921146154,
-0.1393810511,
-0.444250524,
-0.2571558058,
-0.0267886687,
-0.2318235189,
0.0185312796,
0.0397347473,
-0.0855085179,
0.1430328637,
0.3098410964,
0.0545445941,
-0.0494296998,
0.1769216061,
-0.0053493772,
-0.1644320786,
0.1022186279,
0.1171389893,
0.1411959678,
0.3257892728,
0.193459034,
0.1594231278,
0.0555143245,
-0.0925413519,
-0.3519898653,
-0.2170336246,
0.3913525641,
0.1139276847,
0.0193204936,
0.0463148095,
0.2266849428,
-0.0758409798,
-0.2602515817,
-0.1324853003,
-0.0882875696,
-0.0058107548,
-0.1294579506,
0.1881761402,
0.1792836934,
-0.4906890094,
0.0086223874,
-0.1623191535,
-0.2964856625,
0.1888167411,
0.1101518124,
-0.2921293974,
-0.1897447258,
-0.3092607856,
0.2067917436,
0.169479847,
-0.0443647355,
-0.2102379948,
0.35328722,
-0.2146450728,
-0.0993909091,
-0.1346426308,
0.0191709641,
0.114986077,
-0.0534745194,
-0.0772179514,
0.1124432683,
-0.1030418277,
0.0120291896,
-0.2893353105,
0.0005555217,
-0.0712343007,
0.1524401605,
-0.0978633985,
-0.0107702184,
0.1681022942,
-0.0946865007,
0.2791934609,
-0.0286808629,
-0.0196651239,
0.2471819371,
0.2010483295,
-0.0535161346,
-0.2038792819,
0.1294535995,
-0.1301684827,
0.0219901279,
-0.2245401442,
0.0344933458,
0.1799128801,
-0.1156206205,
-0.1588547826,
0.0118489927,
-0.2184139788,
-0.1471191347,
0.3905778825,
0.1543702185,
-0.2248548865,
0.0624483265,
0.0316681787,
0.2059285492,
-0.1893921942,
-0.1226753443,
-0.1013594568,
0.1288669854,
-0.2235949337,
-0.2537909746,
0.1782698184,
-0.0796513855,
0.1483991593,
0.0468082614,
-0.0979934856,
0.4576847851,
-0.1106766686,
0.3131673038,
0.0578980707,
-0.0316651873,
0.0888571888,
-0.3673214912,
0.1442393959,
0.1342940927,
0.0536242984,
0.0234001148,
-0.0137657179,
0.268056035,
0.3848105371,
-0.1862356812,
-0.0494354665,
0.1401991546,
0.2628091276,
0.0197653547,
0.0169973169,
-0.1004290134,
0.2598278522,
-0.0537176654,
0.1447052956,
-0.1470516473,
-0.589155972,
0.1186017841,
0.2547588348,
0.0846184045,
0.1656753123,
0.0385913402,
-0.3462205529,
-0.1641684473,
0.1908355504,
0.0473727547,
0.1791192591,
0.1736556888,
0.1208590642,
0.2070504278,
-0.1533684582,
-0.2157839239,
0.1489031613,
-0.1565757394,
0.0104546696,
0.2434560955,
-0.0707005039,
-0.172941342,
-0.3832855821,
-0.0078735193,
0.1105625331,
0.1302899569,
-0.223397091,
-0.1889370978,
-0.1945175081,
-0.3783278465,
0.1052727401,
-0.0435157381,
-0.1147699654,
-0.3888983428,
0.2681459486,
0.173401624,
-0.2077656984,
0.3642449975,
0.0482304841,
0.1135423258,
0.255458951,
0.2944926322,
-0.2945454717,
0.0477109402,
-0.1489838213,
0.2767943442,
0.0773842558,
0.105759494,
0.2363510132,
0.0023717328,
0.2875940502,
-0.5034889579,
-0.1081457287,
0.1368195713,
-0.105138734,
0.3165581524,
0.1269257218,
0.115410462,
-0.0635661632,
-0.1252474487,
0.2586612999,
-0.3754669428,
-0.1659443676,
0.1718783975,
0.0599514097,
-0.1648587286,
-0.0685431212,
-0.0946601629,
-0.1687821448,
-0.5968081355,
-0.1450992525,
-0.2440503985,
-0.0441098399,
0.0445260219,
0.1199458614,
0.1396405101,
0.0683397427,
-0.1283340305,
-0.3231895566,
-0.3418361247,
0.1736714244,
-0.4000792801,
-0.4610069394,
0.0563647747,
0.304046154,
0.0783052742,
0.0988640785,
-0.366119206,
-0.0197482202,
-0.0886613354,
-0.0998033136,
0.1655189842,
-0.2427546829,
0.2755675614,
0.0208516605,
-0.3227523565,
-0.2797146738,
-0.0393538103,
-0.0108566266,
-0.0028734326,
0.1209481135,
-0.1615372896,
0.42413342,
0.0330663137,
0.3610997796,
0.2005713135,
-0.0201753434,
0.4782108366,
-0.0398558043,
0.3483369648,
-0.2137272805,
-0.2196187526,
0.1571885198,
-0.0155497687,
0.1307075918,
0.1171849445,
-0.128036499,
-0.3299545348,
-0.1291407794,
0.1918248385,
-0.0339179523,
-0.2152148485,
-0.1436080039,
0.0536142178,
0.1752668917,
0.0860759765,
0.0899617672,
0.0171171278,
-0.0058955494,
0.1368829757,
0.1068954915,
0.2494581342,
0.0503327399,
-0.068173945,
0.1989186853,
-0.4176978767,
0.3623743355,
-0.1199958995,
0.2870174348,
-0.3253901601,
-0.0929886103,
0.1295041442,
-0.050442744,
0.3899905086,
-0.4723747075,
-0.0357739702,
0.1887574196,
-0.0969027355,
-0.2844595015,
0.0200058892,
-0.2781220376,
0.2029189914,
0.2391070873,
0.1134161726,
-0.112757571,
-0.0822158381,
0.0985105857,
-0.0453674085,
-0.0273774359,
-0.0657631755,
-0.1614568979,
-0.1378906965,
-0.2015746832,
0.0716691315,
-0.0484451391,
0.0807668269,
-0.0933652595,
-0.1674913019,
-0.2401316017,
-0.1003740951,
-0.0248497184,
-0.0145216426,
0.3208483458,
-0.107077077,
0.1772949696,
0.128663376,
0.2434810847,
0.0978457332,
0.2661282122,
0.4694970846,
-0.0833020434,
0.2263551652,
-0.1434777826,
-0.080107592,
0.2601220906,
-0.0687138364,
0.0073690191,
-0.1286224574,
0.310926348,
-0.1854413599,
0.2073257864,
0.3285135031,
-0.0449942127,
-0.4785012007,
-0.1785286963,
0.2692704797,
-0.0147371227,
-0.0271396544,
0.5025724769,
-0.0647863671,
-0.12769036,
-0.1850714833,
0.1077349558,
0.8800461888,
0.1142832488,
-0.0899107233,
0.3177762032,
0.021184545,
0.0283668097,
-0.2200540602,
0.2012290061,
-0.3765649199,
-0.6541301012,
-0.0327610746,
-0.0707627162,
0.270960331,
0.0226940941,
-0.2272661477,
-0.138682425,
0.1341641247,
-0.1526644975,
-0.0345207453,
0.1952272207,
-0.2495958656,
0.0558346882,
0.0673730522,
0.4123190343,
-0.0071960972,
0.0087515544,
-0.1405392736,
-0.2405251414,
0.2326080948,
-0.160011664,
-0.3383329511,
0.2639125884,
-0.0319995768,
0.2076877207,
-0.3543663621,
-0.3552226424,
0.1069651917,
0.0823101103,
-0.0808592886,
0.0806723088,
-0.2209139317,
0.2187526375,
0.0241246037,
-0.2068980783,
-0.0445785895,
0.081348367,
0.1094150394,
-0.137040481,
-0.1077270955,
0.2859911919,
-0.0337827913,
-0.3879058659,
-0.3286479115,
-0.0725391358,
-0.1307973862,
-0.1706965864,
-0.1825227886,
-0.0412674211,
0.0177684203,
-0.3295808136,
0.3135082424,
0.1085683554,
-0.1356164664,
-0.0458404124,
-0.0553107187,
-0.2272298485,
-0.1436351985,
0.1944602281,
-0.1426937431,
0.086320132,
0.2301365733,
0.2361226678,
-0.237771526,
-0.3332372606,
0.1059671491,
0.5130283833,
-0.3311471343,
0.0334054306,
-0.0919215158,
-0.0275390111,
0.1932061017,
0.1819594353,
0.0509073883,
0.0393696949,
0.0890539587,
-0.3977228403,
-0.1354021281,
0.1011825651,
-0.1433086395,
0.2461346984,
-0.1202489287,
-0.0113866581,
0.2810584903,
-0.0483444408,
-0.5324070454,
-0.0346177444,
-0.2254307866,
0.0565117784,
-0.1240025014,
-0.0125021376,
0.1739706695,
0.0825434923,
0.3056165576,
0.0868495703,
-0.291618228,
-0.3337891102,
0.0792846754,
0.0378843695,
0.1909122616,
-0.1154778227,
0.1360284835,
-0.0415458009,
-0.2581203282,
0.0131730856,
0.1893973649,
-0.0571646765,
-0.1303885877,
-0.2224416882,
0.0088686636,
0.066112943,
0.0954345912,
-0.0000360708,
0.1544941217,
0.2473229617,
-0.225189805,
-0.0854763761,
0.0820187777,
-0.1213197783,
0.1186573729,
0.1290965229,
0.1451541334,
0.2000406533,
0.2620746493,
-0.2296316028,
0.2303405255,
0.0509793237,
0.5795539021,
0.1953478158,
-0.2200174928,
0.0694681555,
0.2382894605,
0.4371349812,
-0.2901331782,
-0.0810231119,
-0.1057265401,
0.0237616468,
0.1335316747,
-0.1296890527,
0.0365252271,
0.1743269861,
0.2442430109,
0.09044604,
0.223467052,
-0.2483456582,
0.1572927982,
0.2192920148,
-0.2122694552,
0.0420236886,
0.1838708818,
0.2643999457,
0.0645242259,
0.4474712014,
-0.0357692391,
0.2503798306,
0.4118991494,
0.1534194946,
-0.051711075,
-0.4567914903,
-0.1654102653,
0.2854644358,
-0.1106866226,
0.2408400476,
-0.0368203558,
-0.206678167,
-0.3084462285,
-0.1652568877,
-0.2829465568,
0.2251295745,
-0.156585753,
0.1057023779,
-0.15012604,
-0.0290102866,
-0.0839287713,
0.0965965018,
0.0853969529,
0.1304503977,
0.0881676301,
-0.010328006,
0.0014166513,
-0.3124621511,
0.1866514683,
0.1243985966,
-0.0496830419,
-0.1923836321,
0.2792298794,
0.0679599568,
0.2431176007,
0.2229131311,
0.2615630329,
0.3149984181,
0.3592893481,
-0.1065546572,
0.1611934006,
-0.0224200916,
-0.1065513119,
-0.0514805689,
0.213266924,
0.3184192777,
0.1891270876,
0.4521962702,
0.3416354656,
-0.2847613394,
0.0285844002,
0.0824435875,
0.2877831161,
-0.0394684635,
0.0603213832,
-0.1804062128,
0.0129316747,
-0.2140002698,
-0.2524725795,
-0.3626011014,
0.1341647357,
0.2779537737,
-0.0573732965,
0.0608397238,
-0.2207947522,
0.2240383923,
0.0185108725,
0.3115840554,
0.2200146765,
0.3199820817,
-0.1696661711,
-0.4481986761,
-0.5387302041,
0.2690964341,
0.1627668887,
-0.1289751232,
-0.0211375821,
0.0885348469,
0.0734685063,
0.0323299579,
0.0923317894,
0.1481535435,
0.0682153031,
0.1205114275,
-0.2371272296,
0.1074822843,
0.1288466454,
0.0833278894,
0.0973422602,
-0.2023861706,
0.2269893885,
0.0614400916,
0.322116524,
-0.0713998899,
0.0139159905,
-0.1850627959,
-0.1512145698,
0.4982863069,
0.0726112127,
0.3154709935,
-0.2162081897,
-0.0156562962,
-0.2933341563,
-0.3914507926,
-0.2921658754,
0.1774439812,
0.1055825204,
0.2452090532,
0.1289096624,
-0.1556754857,
-0.3152858317,
0.1707618237,
-0.002240605,
0.1797238588,
-0.2788821757,
0.2797351778,
-0.0498793535,
0.0337855741,
0.0612014495,
0.0514838658,
0.0692074001,
0.144329384,
-0.2086677104,
-0.3880790472,
0.3675264418,
0.0075769229,
-0.1696309298,
0.1411445588,
0.0742179602,
0.128146708,
-0.0471746586,
-0.451697737,
0.1112244129,
0.2001671791,
-0.061863374,
-0.0193020776,
0.053533107,
0.055670429,
-0.0660278499,
-0.0361535996,
0.3800405264,
0.2515885532,
-0.2122579068,
0.3719681799,
-0.1326687783
] |
https://github.com/huggingface/datasets/issues/4241 | NonMatchingChecksumError when attempting to download GLUE | Hi :)
I think your issue may be related to the older `nlp` library. I was able to download `glue` with the latest version of `datasets`. Can you try updating with:
```py
pip install -U datasets
```
Then you can download:
```py
from datasets import load_dataset
ds = load_dataset("glue", "rte")
``` | ## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
| 51 | NonMatchingChecksumError when attempting to download GLUE
## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
Hi :)
I think your issue may be related to the older `nlp` library. I was able to download `glue` with the latest version of `datasets`. Can you try updating with:
```py
pip install -U datasets
```
Then you can download:
```py
from datasets import load_dataset
ds = load_dataset("glue", "rte")
``` | [
0.101099439,
-0.0903691947,
0.0413370356,
0.3583336473,
0.1278837472,
0.0999461636,
-0.1866522282,
0.334582448,
0.4952836633,
-0.1053451374,
-0.1394158453,
0.1311296523,
-0.0658304244,
-0.1457225382,
0.0314150602,
0.1970958412,
-0.0847944096,
0.1571736187,
-0.1785757393,
0.0489648841,
-0.1996880174,
0.4330622554,
-0.1195221171,
0.0400452688,
0.0142885242,
0.1346404105,
0.0299508572,
0.1365995109,
-0.0534300283,
-0.2835942805,
0.3455580473,
-0.0092943152,
0.0213740561,
-0.0361829326,
-0.0001216182,
-0.0855286568,
0.5257833004,
-0.0884022266,
-0.1348887384,
-0.2959697545,
-0.3802344501,
-0.5503143072,
0.006686362,
-0.0961863622,
0.0966700912,
0.3906281888,
0.1722315997,
-0.0305031128,
0.0656267628,
0.1305409968,
0.180880338,
0.4154954553,
0.3072189689,
0.0706758127,
0.4552328885,
-0.2016348839,
-0.0543924384,
0.3369392753,
0.2345918119,
-0.260339886,
-0.124706462,
0.2610802948,
-0.1840945035,
0.2867007852,
0.0961391777,
-0.0830371231,
0.1531162858,
-0.3792448044,
0.0930569321,
0.3519522548,
0.1773492843,
-0.361227721,
-0.1388936937,
-0.3100644648,
0.0114055201,
0.0077702655,
0.4205722511,
0.301694721,
-0.175581485,
-0.0385964662,
-0.1704820544,
0.0901117697,
0.1161946356,
0.2151723206,
0.3863200545,
0.1761415601,
-0.087891154,
0.0824937895,
0.1476433873,
-0.1005117148,
-0.0082349181,
-0.1965816915,
-0.1290692687,
0.24699682,
-0.3864904046,
-0.0444015078,
-0.0158369057,
0.6644971371,
0.186142832,
0.2925412357,
-0.0091917403,
-0.0300581548,
-0.1446768641,
0.164421767,
0.1793481559,
0.3003145456,
0.1885636002,
-0.0740519464,
0.0794374123,
0.1653708518,
0.0496846437,
0.2257265747,
0.056852635,
-0.2562083304,
0.2907201052,
0.0941365734,
0.1916123182,
-0.3092260957,
-0.3434298933,
0.1204253882,
-0.1495734155,
0.0023383056,
0.025519168,
0.1229358986,
-0.3592915833,
0.1400871575,
-0.0234438665,
0.1242101341,
-0.2180605829,
-0.2892225385,
-0.1690935791,
0.1320880949,
-0.2442625016,
-0.1127693355,
0.3060969412,
-0.2334617972,
0.2131917179,
0.0010495752,
-0.2308911979,
-0.1710312515,
0.0370338336,
0.0423265658,
-0.1760254949,
0.295311898,
0.1015686244,
0.2707751393,
0.1043538973,
-0.0709829181,
-0.1861618459,
-0.102114819,
-0.1591663361,
-0.3060447574,
-0.0472279191,
0.1242613345,
-0.6101945639,
-0.2129115164,
0.2077888101,
-0.262126416,
0.2258610874,
-0.2571165264,
0.1307114065,
-0.179134652,
-0.2084932625,
-0.3809019625,
-0.1731003225,
0.4396273494,
0.1264043599,
-0.0725834295,
-0.2183259875,
-0.2440307289,
0.3470179141,
0.1256851703,
-0.0186994001,
-0.2357407659,
-0.371214956,
0.2576881945,
0.4374666214,
-0.3115463555,
-0.615057528,
0.3652874231,
-0.1699478179,
0.3036535382,
0.0924033225,
0.2290534526,
-0.1915282905,
-0.087327823,
0.1295110136,
0.1814254671,
0.1030652151,
-0.005244426,
-0.3172659278,
-0.278853327,
0.4282628894,
-0.0053898059,
-0.1309675574,
0.0855244547,
0.1065865979,
-0.1652021259,
0.2864404619,
0.2859564126,
0.0689797699,
0.1830971539,
0.1853307039,
0.0494204648,
0.0265989304,
-0.3794974983,
-0.7864261866,
0.3265945613,
-0.4060383141,
0.0249191094,
-0.106302239,
-0.0472038314,
-0.2402269989,
-0.1339791268,
-0.1107330397,
-0.0111942384,
0.0565652251,
0.2184283584,
0.5315441489,
-0.0785875022,
-0.0103803882,
0.5592598915,
0.1698939651,
0.1405278146,
-0.564915359,
0.2597989142,
-0.0109072048,
-0.1134623364,
0.046749115,
0.299439162,
0.303380549,
-0.120820336,
-0.0709302127,
0.4346717298,
0.0428387783,
0.1447127461,
-0.1746304333,
0.1481646597,
-0.106459789,
-0.0558200665,
0.0434386469,
0.5169597864,
0.0588609949,
-0.0042680879,
0.0824160874,
0.2952294052,
-0.0130675109,
0.3511835635,
0.0464502908,
0.3188763261,
0.1552820951,
-0.2473225445,
-0.1867333502,
-0.1834181398,
0.4812346995,
-0.1627133787,
0.0470326841,
0.1648611873,
-0.1568653733,
0.0219856817,
0.2626872361,
0.042109821,
0.1508561373,
-0.0483361483,
-0.0710478723,
-0.023757793,
0.08806137,
0.7036220431,
0.5566291213,
0.1360370964,
-0.0144872293,
0.1789040416,
-0.3305061162,
-0.0790420398,
0.0582510531,
0.1588170528,
0.0356884897,
0.4164256752,
0.3046116233,
-0.0988504663,
-0.3169163167,
0.0769681334,
-0.0149084106,
0.176068157,
-0.4334349632,
-0.1039408967,
-0.3194669187,
-0.5301976204,
-0.4441395402,
-0.2081441581,
-0.4918985367,
-0.3554680347,
-0.07142286,
0.2184194773,
0.0206688885,
0.1269293129,
-0.3943141401,
-0.1560414732,
-0.2795504928,
-0.1816097647,
-0.1269617677,
0.2198214233,
-0.3106191754,
-0.093555674,
0.2491829991,
0.1067038178,
0.4436160028,
-0.1633411646,
0.0350370854,
-0.4348596931,
-0.2006056458,
0.0641363636,
-0.0205983389,
0.0061178314,
0.5700236559,
-0.0590784885,
0.0419958718,
-0.2881832123,
0.374630332,
-0.2893909812,
-0.260016948,
0.2931277156,
0.0300070271,
0.0975061134,
-0.1183499917,
-0.0836592987,
-0.3031469584,
-0.4439691305,
0.2543147802,
0.1339675188,
0.2206530422,
0.3498122096,
-0.2994973958,
0.1899003536,
-0.1344214827,
0.1561602503,
-0.1234245524,
-0.1800743192,
0.3823332191,
0.1078597605,
-0.235804826,
0.0475925058,
-0.2174375951,
0.0270332843,
0.1604256183,
-0.4568112195,
-0.3046094775,
-0.4139271677,
-0.1937386841,
0.1440287828,
0.1968616992,
0.332200408,
-0.053044863,
0.0235060174,
-0.1448433846,
-0.2895031571,
0.1296968758,
0.2003522664,
0.392129302,
-0.0308010187,
0.2616482675,
0.1037624404,
0.2109063566,
0.4287275374,
0.1137284935,
0.2275078446,
0.0305451397,
0.423660934,
0.1387219429,
-0.2945234478,
-0.2855525911,
-0.1358964294,
0.2412418276,
0.0119880298,
0.0928435698,
-0.1104437262,
-0.2139082998,
-0.0450056233,
-0.1938159168,
-0.1534049809,
-0.0897170082,
-0.0478372537,
0.1450727731,
0.3582278788,
-0.055048015,
-0.0820687488,
-0.4420183599,
0.0190822035,
0.1489125192,
-0.1681204587,
0.1072147638,
-0.3244412243,
-0.1569762975,
-0.2332658768,
0.4224811792,
0.2047771364,
0.5302052498,
0.1784477085,
-0.1068870053,
0.1369622052,
0.0134925898,
0.5240296125,
-0.4548467398,
0.2998638749,
0.1082687154,
0.0853429064,
-0.5271272659,
-0.2226740271,
-0.1550499052,
0.1280427277,
0.5835399628,
0.1110405996,
-0.3861952126,
-0.0021311222,
0.3476581275,
0.1632363349,
-0.0477409847,
-0.5096207261,
-0.3427680731,
-0.0641896054,
-0.2162979543,
-0.2348634899,
-0.0099572847,
0.2137233019,
0.2468941063,
0.1556548774,
0.16094625,
-0.1925711483,
0.239227742,
-0.2256061733,
0.1833854765,
0.2023949623,
0.312672317,
0.0283417143,
0.303884089,
-0.5334825516,
0.5812399983,
-0.250261724,
-0.0965881422,
-0.0533786826,
0.0705083609,
0.0591904595,
0.1837901324,
0.025740156,
-0.0927427635,
0.1311678886,
-0.0610182546,
0.09626735,
-0.095465593,
0.1578193307,
-0.0061605247,
-0.1256788075,
-0.0959205627,
0.434027195,
0.0074956762,
-0.1353242844,
0.1509392709,
0.0718254894,
-0.080947727,
0.1126614809,
-0.2794699371,
0.9074915051,
0.1125950143,
0.0741699263,
0.0045774709,
-0.4574742615,
0.6560720205,
0.0360037461,
0.1841710657,
-0.4681775272,
-0.0851659104,
0.0496151708,
-0.261518091,
-0.1642327458,
0.0274852887,
-0.006474114,
0.5504635572,
0.0768271163,
0.1455234885,
0.0318949521,
0.2013777196,
-0.406156987,
-0.144018352,
-0.1673384905,
0.0405152701,
-0.2237807661,
0.7441254258,
-0.0709148645,
-0.1167253777,
0.1838988066,
-0.2870452404,
-0.4019761086,
0.239795506,
-0.3036515713,
0.134959206,
0.6077682376,
0.2034539282,
-0.1703047454,
-0.0500934683,
-0.0167699344,
0.0080901738,
-0.303635031,
-0.1195635349,
0.5427804589,
-0.0673611239,
0.4546707869,
0.1928350925,
0.3588045537,
-0.0666383132,
0.0899356008,
-0.1705348641,
0.0071052848,
-0.2070071399,
-0.0303747077,
0.0095550409,
0.0591516718,
-0.1838960499,
-0.3897128105,
0.0308423713,
0.1203036383,
-0.1013379171,
0.072641626,
0.2210551351,
-0.1793540865,
0.0849410892,
-0.0889282152,
-0.2805382907,
-0.0868550986,
0.639326036,
0.0148906158,
-0.3292558193,
0.2348353416,
-0.0278209765,
-0.2667513788,
-0.0802187398,
-0.2215144932,
-0.1944372803,
-0.5449784398,
0.0643362105,
-0.1978404373,
0.0986502022,
-0.0496320277,
0.182775408,
0.3685891628,
0.1563546807,
0.099389106,
-0.5790286064,
-0.0155591294,
0.1929788589,
0.1808634996,
0.1447670013,
-0.3560783863,
-0.0422383547,
0.3165520132,
-0.1422809064,
-0.2135180533,
-0.0034620608,
-0.1260601133,
-0.096875079,
0.3603157699,
0.0452148877,
-0.0137697766,
0.1061980724,
0.0720569789,
0.1168643013,
-0.3167319894,
-0.0884864181,
-0.1527445465,
0.1726250648,
0.0576401427,
-0.0788737386,
0.1688433439,
-0.2341234833,
-0.0215544645,
-0.0241283383,
-0.2971818149,
0.1161065325,
-0.1856836975,
0.0559199229,
0.088491708,
-0.1751755178,
0.0337446369,
0.2654244602,
-0.3047029972,
0.001371084,
0.0488989241,
0.0569290556,
-0.0179379135,
0.1143395379,
-0.0383437909,
-0.2061151862,
-0.198125422,
0.0067026219,
0.1854364425,
-0.3370613158,
-0.1511667222,
0.1748447865,
0.3853068948,
0.3413951099,
-0.1019892246,
-0.0074286209,
0.2127907872,
0.1538853049,
-0.3357884288,
0.1115773246,
0.4395034313,
0.1744283885,
-0.0161778908,
0.2779522538,
0.1178094745,
-0.3787252009,
0.6482075453,
0.1150418594,
0.3300818503,
-0.4150668979,
-0.0901857764,
0.3015820682,
0.0400961339,
-0.1584826261,
0.2599176764,
-0.1141850427,
-0.0285268351,
0.0114712603,
0.2364491671,
0.0076606059,
-0.1684253514,
0.1250667125,
-0.0540065989,
-0.2802579701,
0.0911533833,
0.4770280719,
0.1346816123,
0.2644304931,
0.055842407,
0.4429790974,
-0.1982059032,
0.1950742155,
-0.255790621,
0.1115606725,
-0.0445170701,
-0.0840536505,
0.2956761122,
-0.1029948443,
-0.237701878,
0.1543627679,
-0.0267936829,
-0.0149095794,
0.3393276036,
0.0043530553,
-0.025488507,
-0.4787937701,
-0.1214683875,
0.1192184389,
0.1126679257,
-0.4481798112,
0.2938625515,
-0.1179510653,
-0.0347725824,
-0.1189952195,
0.3610725105,
0.3655899167,
0.3478463292,
-0.1562780589,
-0.0862891525,
-0.0487674214,
0.1346686035,
-0.2093447596,
0.6926753521,
0.1750020236,
0.0286190622,
0.3427121043,
-0.0125410035,
-0.1084620878,
-0.0726463348,
-0.135587424,
-0.2506990135,
-0.0602509975,
0.7412414551,
-0.1498290449,
0.006200803,
-0.3056187034,
0.222334072,
-0.5224171877,
-0.1330801398,
-0.0056433156,
0.0394575633,
0.1830089688,
-0.1927319914,
0.05845204,
-0.221444115,
0.2404245287,
0.2617166042,
0.1175741926,
-0.1271021813,
-0.2558740675,
-0.797365427,
0.2613494396,
-0.214177832,
-0.0239094347,
0.0780986771,
0.2264165729,
-0.2673750222,
0.1264847517,
0.0694472119,
0.4015747905,
-0.2880692482,
-0.1184730306,
-0.0242753103,
-0.1497562081,
0.1772222072,
-0.2353207022,
0.1729653627,
-0.4081312418,
0.1238645762,
-0.0667568073,
-0.007959052,
-0.0747523829,
-0.0572951362,
-0.1151289791,
0.2697470784,
-0.0042096167,
0.2056191117,
0.4210775495,
0.1774130911,
-0.1560994387,
-0.479380846,
-0.1635795236,
-0.2104367018,
0.209322691,
-0.064231351,
0.2189341486,
-0.1647112966,
0.149555102,
-0.2719324529,
0.0607586466,
0.1878090352,
0.2095699459,
-0.0007250449,
0.153549239,
-0.2875117362,
0.2761823535,
-0.1154032946,
0.1351731271,
0.1231259778,
0.2047526389,
-0.2425276786,
-0.4174506366,
0.4511767626,
-0.3280895948,
-0.3406977952,
-0.0047030034,
0.553231895,
-0.0642698333,
-0.3466106057,
-0.5323320627,
-0.0979315862,
0.3741297126,
0.0277189799,
0.0151234446,
0.2187353671,
-0.4449160695,
0.0492247939,
0.1646099538,
-0.0157135259,
0.2340741754,
-0.3325507641,
0.2653930187,
-0.2055070698
] |
https://github.com/huggingface/datasets/issues/4241 | NonMatchingChecksumError when attempting to download GLUE | This appears to work. Thank you!
On Wed, Apr 27, 2022, 1:18 PM Steven Liu ***@***.***> wrote:
> Hi :)
>
> I think your issue may be related to the older nlp library. I was able to
> download glue with the latest version of datasets. Can you try updating
> with:
>
> pip install -U datasets
>
> Then you can download:
>
> from datasets import load_datasetds = load_dataset("glue", "rte")
>
> β
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/4241#issuecomment-1111267650>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACJUEKLUP2EL7ES3RRWJRPTVHFZHBANCNFSM5UPJBYXA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
| ## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
| 110 | NonMatchingChecksumError when attempting to download GLUE
## Describe the bug
I am trying to download the GLUE dataset from the NLP module but get an error (see below).
## Steps to reproduce the bug
```python
import nlp
nlp.__version__ # '0.2.0'
nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
```
## Expected results
I expect the dataset to download without an error.
## Actual results
```
INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports.
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py
INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json
INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4
INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb
INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805
Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0...
Downloading: 100%|ββββββββββ| 73.0/73.0 [00:00<00:00, 73.9kB/s]
INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-7-669a8343dcc1> in <module>
----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload")
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
458 # Checksums verification
459 if verify_infos:
--> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
461 for split_generator in split_generators:
462 if str(split_generator.split_info.name).lower() == "all":
~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa
- Python version: 3.6.13
- PyArrow version: 6.0.1
- Pandas version: 1.1.5
This appears to work. Thank you!
On Wed, Apr 27, 2022, 1:18 PM Steven Liu ***@***.***> wrote:
> Hi :)
>
> I think your issue may be related to the older nlp library. I was able to
> download glue with the latest version of datasets. Can you try updating
> with:
>
> pip install -U datasets
>
> Then you can download:
>
> from datasets import load_datasetds = load_dataset("glue", "rte")
>
> β
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/4241#issuecomment-1111267650>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACJUEKLUP2EL7ES3RRWJRPTVHFZHBANCNFSM5UPJBYXA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
| [
0.101099439,
-0.0903691947,
0.0413370356,
0.3583336473,
0.1278837472,
0.0999461636,
-0.1866522282,
0.334582448,
0.4952836633,
-0.1053451374,
-0.1394158453,
0.1311296523,
-0.0658304244,
-0.1457225382,
0.0314150602,
0.1970958412,
-0.0847944096,
0.1571736187,
-0.1785757393,
0.0489648841,
-0.1996880174,
0.4330622554,
-0.1195221171,
0.0400452688,
0.0142885242,
0.1346404105,
0.0299508572,
0.1365995109,
-0.0534300283,
-0.2835942805,
0.3455580473,
-0.0092943152,
0.0213740561,
-0.0361829326,
-0.0001216182,
-0.0855286568,
0.5257833004,
-0.0884022266,
-0.1348887384,
-0.2959697545,
-0.3802344501,
-0.5503143072,
0.006686362,
-0.0961863622,
0.0966700912,
0.3906281888,
0.1722315997,
-0.0305031128,
0.0656267628,
0.1305409968,
0.180880338,
0.4154954553,
0.3072189689,
0.0706758127,
0.4552328885,
-0.2016348839,
-0.0543924384,
0.3369392753,
0.2345918119,
-0.260339886,
-0.124706462,
0.2610802948,
-0.1840945035,
0.2867007852,
0.0961391777,
-0.0830371231,
0.1531162858,
-0.3792448044,
0.0930569321,
0.3519522548,
0.1773492843,
-0.361227721,
-0.1388936937,
-0.3100644648,
0.0114055201,
0.0077702655,
0.4205722511,
0.301694721,
-0.175581485,
-0.0385964662,
-0.1704820544,
0.0901117697,
0.1161946356,
0.2151723206,
0.3863200545,
0.1761415601,
-0.087891154,
0.0824937895,
0.1476433873,
-0.1005117148,
-0.0082349181,
-0.1965816915,
-0.1290692687,
0.24699682,
-0.3864904046,
-0.0444015078,
-0.0158369057,
0.6644971371,
0.186142832,
0.2925412357,
-0.0091917403,
-0.0300581548,
-0.1446768641,
0.164421767,
0.1793481559,
0.3003145456,
0.1885636002,
-0.0740519464,
0.0794374123,
0.1653708518,
0.0496846437,
0.2257265747,
0.056852635,
-0.2562083304,
0.2907201052,
0.0941365734,
0.1916123182,
-0.3092260957,
-0.3434298933,
0.1204253882,
-0.1495734155,
0.0023383056,
0.025519168,
0.1229358986,
-0.3592915833,
0.1400871575,
-0.0234438665,
0.1242101341,
-0.2180605829,
-0.2892225385,
-0.1690935791,
0.1320880949,
-0.2442625016,
-0.1127693355,
0.3060969412,
-0.2334617972,
0.2131917179,
0.0010495752,
-0.2308911979,
-0.1710312515,
0.0370338336,
0.0423265658,
-0.1760254949,
0.295311898,
0.1015686244,
0.2707751393,
0.1043538973,
-0.0709829181,
-0.1861618459,
-0.102114819,
-0.1591663361,
-0.3060447574,
-0.0472279191,
0.1242613345,
-0.6101945639,
-0.2129115164,
0.2077888101,
-0.262126416,
0.2258610874,
-0.2571165264,
0.1307114065,
-0.179134652,
-0.2084932625,
-0.3809019625,
-0.1731003225,
0.4396273494,
0.1264043599,
-0.0725834295,
-0.2183259875,
-0.2440307289,
0.3470179141,
0.1256851703,
-0.0186994001,
-0.2357407659,
-0.371214956,
0.2576881945,
0.4374666214,
-0.3115463555,
-0.615057528,
0.3652874231,
-0.1699478179,
0.3036535382,
0.0924033225,
0.2290534526,
-0.1915282905,
-0.087327823,
0.1295110136,
0.1814254671,
0.1030652151,
-0.005244426,
-0.3172659278,
-0.278853327,
0.4282628894,
-0.0053898059,
-0.1309675574,
0.0855244547,
0.1065865979,
-0.1652021259,
0.2864404619,
0.2859564126,
0.0689797699,
0.1830971539,
0.1853307039,
0.0494204648,
0.0265989304,
-0.3794974983,
-0.7864261866,
0.3265945613,
-0.4060383141,
0.0249191094,
-0.106302239,
-0.0472038314,
-0.2402269989,
-0.1339791268,
-0.1107330397,
-0.0111942384,
0.0565652251,
0.2184283584,
0.5315441489,
-0.0785875022,
-0.0103803882,
0.5592598915,
0.1698939651,
0.1405278146,
-0.564915359,
0.2597989142,
-0.0109072048,
-0.1134623364,
0.046749115,
0.299439162,
0.303380549,
-0.120820336,
-0.0709302127,
0.4346717298,
0.0428387783,
0.1447127461,
-0.1746304333,
0.1481646597,
-0.106459789,
-0.0558200665,
0.0434386469,
0.5169597864,
0.0588609949,
-0.0042680879,
0.0824160874,
0.2952294052,
-0.0130675109,
0.3511835635,
0.0464502908,
0.3188763261,
0.1552820951,
-0.2473225445,
-0.1867333502,
-0.1834181398,
0.4812346995,
-0.1627133787,
0.0470326841,
0.1648611873,
-0.1568653733,
0.0219856817,
0.2626872361,
0.042109821,
0.1508561373,
-0.0483361483,
-0.0710478723,
-0.023757793,
0.08806137,
0.7036220431,
0.5566291213,
0.1360370964,
-0.0144872293,
0.1789040416,
-0.3305061162,
-0.0790420398,
0.0582510531,
0.1588170528,
0.0356884897,
0.4164256752,
0.3046116233,
-0.0988504663,
-0.3169163167,
0.0769681334,
-0.0149084106,
0.176068157,
-0.4334349632,
-0.1039408967,
-0.3194669187,
-0.5301976204,
-0.4441395402,
-0.2081441581,
-0.4918985367,
-0.3554680347,
-0.07142286,
0.2184194773,
0.0206688885,
0.1269293129,
-0.3943141401,
-0.1560414732,
-0.2795504928,
-0.1816097647,
-0.1269617677,
0.2198214233,
-0.3106191754,
-0.093555674,
0.2491829991,
0.1067038178,
0.4436160028,
-0.1633411646,
0.0350370854,
-0.4348596931,
-0.2006056458,
0.0641363636,
-0.0205983389,
0.0061178314,
0.5700236559,
-0.0590784885,
0.0419958718,
-0.2881832123,
0.374630332,
-0.2893909812,
-0.260016948,
0.2931277156,
0.0300070271,
0.0975061134,
-0.1183499917,
-0.0836592987,
-0.3031469584,
-0.4439691305,
0.2543147802,
0.1339675188,
0.2206530422,
0.3498122096,
-0.2994973958,
0.1899003536,
-0.1344214827,
0.1561602503,
-0.1234245524,
-0.1800743192,
0.3823332191,
0.1078597605,
-0.235804826,
0.0475925058,
-0.2174375951,
0.0270332843,
0.1604256183,
-0.4568112195,
-0.3046094775,
-0.4139271677,
-0.1937386841,
0.1440287828,
0.1968616992,
0.332200408,
-0.053044863,
0.0235060174,
-0.1448433846,
-0.2895031571,
0.1296968758,
0.2003522664,
0.392129302,
-0.0308010187,
0.2616482675,
0.1037624404,
0.2109063566,
0.4287275374,
0.1137284935,
0.2275078446,
0.0305451397,
0.423660934,
0.1387219429,
-0.2945234478,
-0.2855525911,
-0.1358964294,
0.2412418276,
0.0119880298,
0.0928435698,
-0.1104437262,
-0.2139082998,
-0.0450056233,
-0.1938159168,
-0.1534049809,
-0.0897170082,
-0.0478372537,
0.1450727731,
0.3582278788,
-0.055048015,
-0.0820687488,
-0.4420183599,
0.0190822035,
0.1489125192,
-0.1681204587,
0.1072147638,
-0.3244412243,
-0.1569762975,
-0.2332658768,
0.4224811792,
0.2047771364,
0.5302052498,
0.1784477085,
-0.1068870053,
0.1369622052,
0.0134925898,
0.5240296125,
-0.4548467398,
0.2998638749,
0.1082687154,
0.0853429064,
-0.5271272659,
-0.2226740271,
-0.1550499052,
0.1280427277,
0.5835399628,
0.1110405996,
-0.3861952126,
-0.0021311222,
0.3476581275,
0.1632363349,
-0.0477409847,
-0.5096207261,
-0.3427680731,
-0.0641896054,
-0.2162979543,
-0.2348634899,
-0.0099572847,
0.2137233019,
0.2468941063,
0.1556548774,
0.16094625,
-0.1925711483,
0.239227742,
-0.2256061733,
0.1833854765,
0.2023949623,
0.312672317,
0.0283417143,
0.303884089,
-0.5334825516,
0.5812399983,
-0.250261724,
-0.0965881422,
-0.0533786826,
0.0705083609,
0.0591904595,
0.1837901324,
0.025740156,
-0.0927427635,
0.1311678886,
-0.0610182546,
0.09626735,
-0.095465593,
0.1578193307,
-0.0061605247,
-0.1256788075,
-0.0959205627,
0.434027195,
0.0074956762,
-0.1353242844,
0.1509392709,
0.0718254894,
-0.080947727,
0.1126614809,
-0.2794699371,
0.9074915051,
0.1125950143,
0.0741699263,
0.0045774709,
-0.4574742615,
0.6560720205,
0.0360037461,
0.1841710657,
-0.4681775272,
-0.0851659104,
0.0496151708,
-0.261518091,
-0.1642327458,
0.0274852887,
-0.006474114,
0.5504635572,
0.0768271163,
0.1455234885,
0.0318949521,
0.2013777196,
-0.406156987,
-0.144018352,
-0.1673384905,
0.0405152701,
-0.2237807661,
0.7441254258,
-0.0709148645,
-0.1167253777,
0.1838988066,
-0.2870452404,
-0.4019761086,
0.239795506,
-0.3036515713,
0.134959206,
0.6077682376,
0.2034539282,
-0.1703047454,
-0.0500934683,
-0.0167699344,
0.0080901738,
-0.303635031,
-0.1195635349,
0.5427804589,
-0.0673611239,
0.4546707869,
0.1928350925,
0.3588045537,
-0.0666383132,
0.0899356008,
-0.1705348641,
0.0071052848,
-0.2070071399,
-0.0303747077,
0.0095550409,
0.0591516718,
-0.1838960499,
-0.3897128105,
0.0308423713,
0.1203036383,
-0.1013379171,
0.072641626,
0.2210551351,
-0.1793540865,
0.0849410892,
-0.0889282152,
-0.2805382907,
-0.0868550986,
0.639326036,
0.0148906158,
-0.3292558193,
0.2348353416,
-0.0278209765,
-0.2667513788,
-0.0802187398,
-0.2215144932,
-0.1944372803,
-0.5449784398,
0.0643362105,
-0.1978404373,
0.0986502022,
-0.0496320277,
0.182775408,
0.3685891628,
0.1563546807,
0.099389106,
-0.5790286064,
-0.0155591294,
0.1929788589,
0.1808634996,
0.1447670013,
-0.3560783863,
-0.0422383547,
0.3165520132,
-0.1422809064,
-0.2135180533,
-0.0034620608,
-0.1260601133,
-0.096875079,
0.3603157699,
0.0452148877,
-0.0137697766,
0.1061980724,
0.0720569789,
0.1168643013,
-0.3167319894,
-0.0884864181,
-0.1527445465,
0.1726250648,
0.0576401427,
-0.0788737386,
0.1688433439,
-0.2341234833,
-0.0215544645,
-0.0241283383,
-0.2971818149,
0.1161065325,
-0.1856836975,
0.0559199229,
0.088491708,
-0.1751755178,
0.0337446369,
0.2654244602,
-0.3047029972,
0.001371084,
0.0488989241,
0.0569290556,
-0.0179379135,
0.1143395379,
-0.0383437909,
-0.2061151862,
-0.198125422,
0.0067026219,
0.1854364425,
-0.3370613158,
-0.1511667222,
0.1748447865,
0.3853068948,
0.3413951099,
-0.1019892246,
-0.0074286209,
0.2127907872,
0.1538853049,
-0.3357884288,
0.1115773246,
0.4395034313,
0.1744283885,
-0.0161778908,
0.2779522538,
0.1178094745,
-0.3787252009,
0.6482075453,
0.1150418594,
0.3300818503,
-0.4150668979,
-0.0901857764,
0.3015820682,
0.0400961339,
-0.1584826261,
0.2599176764,
-0.1141850427,
-0.0285268351,
0.0114712603,
0.2364491671,
0.0076606059,
-0.1684253514,
0.1250667125,
-0.0540065989,
-0.2802579701,
0.0911533833,
0.4770280719,
0.1346816123,
0.2644304931,
0.055842407,
0.4429790974,
-0.1982059032,
0.1950742155,
-0.255790621,
0.1115606725,
-0.0445170701,
-0.0840536505,
0.2956761122,
-0.1029948443,
-0.237701878,
0.1543627679,
-0.0267936829,
-0.0149095794,
0.3393276036,
0.0043530553,
-0.025488507,
-0.4787937701,
-0.1214683875,
0.1192184389,
0.1126679257,
-0.4481798112,
0.2938625515,
-0.1179510653,
-0.0347725824,
-0.1189952195,
0.3610725105,
0.3655899167,
0.3478463292,
-0.1562780589,
-0.0862891525,
-0.0487674214,
0.1346686035,
-0.2093447596,
0.6926753521,
0.1750020236,
0.0286190622,
0.3427121043,
-0.0125410035,
-0.1084620878,
-0.0726463348,
-0.135587424,
-0.2506990135,
-0.0602509975,
0.7412414551,
-0.1498290449,
0.006200803,
-0.3056187034,
0.222334072,
-0.5224171877,
-0.1330801398,
-0.0056433156,
0.0394575633,
0.1830089688,
-0.1927319914,
0.05845204,
-0.221444115,
0.2404245287,
0.2617166042,
0.1175741926,
-0.1271021813,
-0.2558740675,
-0.797365427,
0.2613494396,
-0.214177832,
-0.0239094347,
0.0780986771,
0.2264165729,
-0.2673750222,
0.1264847517,
0.0694472119,
0.4015747905,
-0.2880692482,
-0.1184730306,
-0.0242753103,
-0.1497562081,
0.1772222072,
-0.2353207022,
0.1729653627,
-0.4081312418,
0.1238645762,
-0.0667568073,
-0.007959052,
-0.0747523829,
-0.0572951362,
-0.1151289791,
0.2697470784,
-0.0042096167,
0.2056191117,
0.4210775495,
0.1774130911,
-0.1560994387,
-0.479380846,
-0.1635795236,
-0.2104367018,
0.209322691,
-0.064231351,
0.2189341486,
-0.1647112966,
0.149555102,
-0.2719324529,
0.0607586466,
0.1878090352,
0.2095699459,
-0.0007250449,
0.153549239,
-0.2875117362,
0.2761823535,
-0.1154032946,
0.1351731271,
0.1231259778,
0.2047526389,
-0.2425276786,
-0.4174506366,
0.4511767626,
-0.3280895948,
-0.3406977952,
-0.0047030034,
0.553231895,
-0.0642698333,
-0.3466106057,
-0.5323320627,
-0.0979315862,
0.3741297126,
0.0277189799,
0.0151234446,
0.2187353671,
-0.4449160695,
0.0492247939,
0.1646099538,
-0.0157135259,
0.2340741754,
-0.3325507641,
0.2653930187,
-0.2055070698
] |
https://github.com/huggingface/datasets/issues/4238 | Dataset caching policy | Hi @loretoparisi, thanks for reporting.
There is an option to force the redownload of the data files (and thus not using previously download and cached data files): `load_dataset(..., download_mode="force_redownload")`.
Please, let me know if this fixes your problem.
I can confirm you that your dataset loads without any problem for me:
```python
In [2]: ds = load_dataset("loretoparisi/tatoeba-sentences", data_files={"train": "train.csv", "test": "test.csv"}, delimiter="\t", column_names=['label', 'text'])
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['label', 'text'],
num_rows: 8256449
})
test: Dataset({
features: ['label', 'text'],
num_rows: 2061204
})
})
``` | ## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
| 87 | Dataset caching policy
## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
Hi @loretoparisi, thanks for reporting.
There is an option to force the redownload of the data files (and thus not using previously download and cached data files): `load_dataset(..., download_mode="force_redownload")`.
Please, let me know if this fixes your problem.
I can confirm you that your dataset loads without any problem for me:
```python
In [2]: ds = load_dataset("loretoparisi/tatoeba-sentences", data_files={"train": "train.csv", "test": "test.csv"}, delimiter="\t", column_names=['label', 'text'])
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['label', 'text'],
num_rows: 8256449
})
test: Dataset({
features: ['label', 'text'],
num_rows: 2061204
})
})
``` | [
0.0123936096,
0.2971666455,
-0.0013778415,
0.2417485565,
0.2187064886,
0.223115772,
0.2011682987,
0.3845502436,
0.047587432,
-0.114898473,
-0.0990488455,
-0.2024639547,
-0.043204993,
-0.1892879307,
-0.1385836452,
0.0513460636,
0.111731194,
-0.0098836049,
0.2588098049,
0.0954153836,
-0.0737708434,
0.117863901,
-0.1670916528,
-0.0787959769,
-0.367393434,
0.0166204907,
-0.0899960846,
-0.069326736,
0.1066928729,
-0.6206914783,
0.2522139847,
0.072450839,
0.2016528398,
0.2368706912,
-0.0001263648,
-0.1024664342,
0.1549502164,
-0.0820231736,
-0.2950689793,
0.1641110778,
-0.0856227875,
-0.2982957065,
-0.0182767455,
-0.1425967813,
0.1807876229,
-0.0793440118,
-0.0192516819,
-0.516964674,
0.4846031964,
0.4770778716,
0.1433763802,
0.0347182937,
-0.0920592025,
0.2908972502,
0.2127339691,
0.3287257552,
-0.2183058113,
0.1611050218,
0.0954905748,
-0.0793986619,
-0.0012770453,
0.2234777808,
-0.3259975016,
0.0802005455,
0.1258689165,
0.0620938875,
-0.2099142671,
-0.0586495511,
0.564494431,
0.1177013293,
0.5416299105,
-0.2061926872,
-0.5126444697,
-0.4321560562,
-0.1185015589,
-0.2246769071,
0.5172954798,
0.1825536489,
-0.1643292904,
0.2353673428,
-0.3708197474,
-0.373465538,
0.0563546866,
-0.2482875437,
0.0125569962,
-0.0332550816,
-0.0691288114,
-0.0859221071,
-0.3153804243,
-0.3343613148,
-0.0250364002,
-0.1866436303,
-0.1754441261,
0.3207187057,
-0.4284889996,
0.2038650215,
0.0504361019,
0.3530401587,
0.0095372405,
-0.0568257086,
0.027709337,
-0.1132237166,
-0.012364368,
-0.103492476,
-0.0161370225,
0.5280759335,
0.3833264709,
0.2247730047,
0.4180749357,
0.1071605161,
-0.122192435,
-0.0596748814,
0.1085663661,
-0.2088311762,
0.4692986906,
0.2980872989,
0.0874011666,
-0.2639745772,
-0.4008611441,
0.3987272382,
0.0792521611,
-0.0435008071,
0.0809764564,
0.1182874888,
-0.2654319108,
0.2469131202,
-0.3109485805,
-0.0344651118,
-0.268201828,
-0.1473113,
-0.1426729262,
-0.0044866884,
-0.0936849862,
0.132989943,
0.3898324072,
-0.2782138586,
0.0940937549,
0.0914928094,
0.1383266151,
0.0380824693,
-0.1030144989,
-0.3550890386,
0.1618324965,
0.2283445895,
-0.3626394272,
0.0737591013,
0.2123936713,
-0.4472793937,
-0.0907512605,
0.0906872153,
-0.4696445465,
-0.2500249445,
-0.0396823399,
0.0299207047,
-0.2703045309,
-0.022016976,
-0.2011903077,
-0.1221617162,
0.7679854631,
-0.1301229149,
0.138694793,
-0.0607174523,
-0.2074858993,
-0.2486397624,
0.024135815,
0.7459709644,
-0.3978332579,
-0.0034805415,
0.0223981403,
0.3345763981,
0.118897818,
0.3893784881,
0.0250516441,
0.0138421245,
-0.4760307968,
0.1359723955,
-0.0107975667,
-0.3261241019,
-0.529450953,
0.2354720235,
-0.0219719596,
0.0438959263,
0.4805414081,
-0.1311895996,
0.3278713822,
-0.1496676803,
0.2312702388,
0.0843562931,
0.0208963789,
-0.0518474467,
-0.2929527164,
-0.2801833451,
0.1734400541,
-0.1514915377,
0.1381094903,
0.1100740582,
0.1490080208,
-0.1044298708,
0.1303943694,
-0.1028587148,
0.3173862398,
0.3218125105,
0.1996958405,
0.3361393511,
0.1940688938,
-0.0133269336,
-0.5634203553,
0.3336996734,
-0.1510709524,
-0.0487962477,
-0.5828678608,
-0.3374966979,
-0.0046597715,
-0.0452592149,
-0.3498365879,
-0.2340483963,
0.0109602707,
0.2944903672,
0.2093049139,
0.0774855912,
-0.3025777638,
0.5547483563,
-0.1514557749,
0.0356560126,
-0.3149839342,
0.0344057307,
0.0354634002,
-0.1176335961,
-0.2977709472,
0.1621287763,
0.1365372837,
-0.064266406,
-0.3484889269,
0.3423914909,
0.1021603718,
0.1183243543,
0.1725016236,
0.3512911797,
0.1473367959,
0.0455283821,
0.1205660775,
0.1925427765,
0.0520296842,
0.1880880445,
-0.2764337063,
0.4564831853,
-0.3377994597,
0.3060477674,
-0.1606560647,
-0.0844261348,
0.3575418591,
0.0633732304,
-0.0494333319,
-0.4019527137,
0.333889842,
-0.0775111541,
0.2583097219,
0.175124824,
-0.1588616669,
-0.1345626414,
0.4126013517,
0.2732482255,
0.0417792797,
0.1923985928,
0.1799691617,
-0.2073259801,
0.1034266353,
0.3869751394,
0.2926307023,
-0.0477646813,
-0.0585029423,
-0.075618431,
0.3888523281,
-0.2236433774,
0.1844119132,
-0.2422158718,
-0.5531631112,
0.3378501832,
0.3072144985,
0.324903816,
-0.2500666678,
-0.090403229,
0.112732932,
0.2663859129,
-0.3754593432,
-0.0502152964,
-0.4189833403,
-0.4062885642,
-0.221305728,
0.2324907035,
-0.37585783,
-0.1734998375,
-0.1743537933,
-0.1857518703,
-0.0724671707,
-0.0137710497,
-0.1813276261,
0.2174972445,
-0.023300264,
-0.3834765553,
-0.192536369,
-0.1037821546,
-0.1774395704,
-0.1540046334,
0.2394246906,
-0.2570165396,
0.1734674275,
-0.4991287589,
-0.1461903602,
-0.4262441397,
-0.1157522574,
-0.0820190161,
0.1450815648,
0.0396534279,
0.0955616161,
0.2199554443,
-0.2006958872,
-0.040311262,
0.3219614327,
-0.1443939805,
-0.0064132335,
0.1055593342,
0.3380680978,
0.0959964097,
-0.098111324,
-0.053235583,
-0.1494610608,
-0.2081453949,
0.1131935865,
-0.2404411733,
0.0058440561,
0.2641096711,
-0.2923790216,
-0.1000035182,
-0.1252763569,
0.1726918817,
-0.0822476,
-0.4895117879,
0.4340184033,
0.0677335933,
-0.1480996609,
0.0062358659,
0.3059183955,
-0.0152393244,
0.2202232629,
-0.5601280928,
0.0038386381,
-0.3910726011,
0.6649289131,
0.0708654448,
0.1502586901,
0.2555817366,
-0.0082984772,
0.0410320014,
0.0715589076,
-0.229875043,
0.0185086634,
0.1150453016,
0.1087584719,
0.2441776693,
0.3302660584,
0.1421008557,
0.5426904559,
0.0429681391,
0.150930196,
0.5023105741,
0.1774828583,
0.4783696532,
-0.1697043628,
-0.405867368,
0.100357987,
-0.1692298651,
-0.3635139465,
0.1804776788,
0.1689960063,
0.2567850053,
-0.2230032831,
-0.0252756365,
-0.1526254117,
-0.1645915806,
0.1331984699,
-0.4737531841,
0.4249721766,
0.1899668276,
-0.1046013162,
-0.2555206418,
-0.4037130177,
-0.0381988622,
0.1602144241,
0.2247751206,
0.1194292828,
-0.0459373556,
-0.1298491508,
-0.2810018957,
0.2904259861,
0.2295810878,
0.7262058258,
-0.1800182462,
0.1063002795,
0.0734071136,
0.023687087,
0.4988805056,
0.0758222267,
0.1158448383,
-0.0697383881,
0.0223625023,
-0.0014742869,
-0.2985979319,
0.3196669519,
0.4175270498,
-0.0420243815,
0.3266119361,
0.0154723227,
-0.2111925334,
-0.3601840436,
0.3441717923,
-0.2327989489,
-0.0587960407,
-0.1795741916,
-0.0160385463,
-0.1305052191,
0.0499700904,
0.0812160522,
0.0279196166,
0.1814074963,
0.4388046563,
-0.0173616689,
-0.0999618992,
0.0335623063,
-0.290666312,
0.3134853244,
-0.0131524103,
0.0989710987,
-0.0031805208,
0.1123435721,
0.0509871989,
0.4183158875,
-0.0882338881,
-0.3790273368,
-0.1777638197,
-0.3097430766,
0.0433739424,
0.1704265922,
-0.3094181418,
0.066776216,
0.0916776806,
0.2714404762,
-0.0596447326,
-0.0808525756,
0.1092197821,
-0.0210290384,
0.0516261198,
-0.4814636111,
0.3047750592,
0.2219609022,
-0.0486807972,
-0.0928844959,
0.2003460377,
-0.3756881356,
0.2023397535,
0.1964794397,
0.6847473383,
0.0886077285,
0.2667199671,
-0.199315697,
0.0768861175,
0.7398189902,
-0.3023540676,
0.1679845005,
-0.139753297,
0.1570091695,
-0.0610636733,
0.1408559978,
0.2116463929,
-0.0521290675,
0.0274901818,
0.451736778,
-0.3623845875,
0.3814866543,
0.1236767322,
-0.0703952387,
-0.3189992905,
-0.1327591389,
-0.0813927874,
-0.0686197728,
-0.2553735077,
0.0133006452,
-0.0459213965,
0.177303955,
0.0585879162,
-0.07296177,
-0.4974429011,
-0.1644382328,
-0.00921016,
0.1995892823,
0.0592707805,
-0.2529404461,
0.0294323899,
0.3690403998,
0.5244757533,
0.2263179719,
-0.0573306493,
0.0360638723,
0.1889661103,
0.1006129533,
0.008475285,
0.065368861,
0.1256021559,
0.0397162996,
-0.02072143,
-0.200255692,
-0.181614697,
-0.3541405797,
-0.1060072705,
0.1296260208,
0.0684420168,
-0.1870573759,
-0.0106380088,
-0.3841298521,
0.2449789941,
-0.0677821487,
0.0377356857,
0.244273439,
-0.0904849842,
0.0170532055,
-0.227882728,
-0.2219500393,
-0.0397297628,
0.3476566076,
0.2146355808,
-0.3745096326,
0.6968064904,
-0.0372173563,
-0.0972825512,
-0.1158877015,
-0.0167586803,
-0.1795276403,
-0.5390040278,
0.1157499105,
-0.1199075952,
0.0374232978,
-0.0242806133,
-0.0958934203,
0.1143272966,
0.0824373215,
-0.1354274154,
-0.5628747344,
-0.2980926633,
-0.2138111442,
0.0595666803,
0.0248917136,
0.1486716866,
-0.259583801,
-0.0783189908,
-0.1857479811,
-0.1310025305,
-0.0298326034,
-0.200262472,
0.075910531,
0.1904688776,
0.2171371877,
-0.1816458553,
-0.2052714378,
-0.0564482287,
0.097410053,
0.1939874291,
-0.0759069026,
-0.0130256489,
0.2139453739,
-0.0488216467,
-0.0661000162,
-0.2247196138,
-0.0492416322,
-0.0794053525,
-0.2644955516,
0.0302021205,
0.3578816652,
-0.0345588773,
0.4326807857,
-0.1031742245,
0.1572814733,
0.0363041013,
0.3256640732,
0.0226185322,
0.1994966269,
0.0368305296,
0.3876142204,
-0.1242569834,
0.1455946565,
-0.2493016124,
0.0340588689,
-0.2740900218,
-0.0498438142,
-0.0119052241,
-0.7176524997,
-0.0478915945,
0.3184981942,
0.2566046417,
0.530341208,
-0.0977987945,
-0.2668829262,
0.3888122439,
0.0267445073,
-0.1388439536,
-0.1028251126,
0.2636796534,
0.1904943585,
-0.1171443909,
0.1074459255,
0.344394207,
-0.2272538543,
0.0452655368,
0.0624142662,
0.6229783297,
-0.1713073701,
0.122295469,
0.3410710692,
0.2598594129,
0.0863364562,
0.1955925822,
0.1053774953,
-0.0311067309,
0.5883740187,
0.0327053741,
0.0543914661,
0.3945005834,
0.3909545839,
-0.3196645081,
-0.6323393583,
0.4486406446,
0.14229092,
-0.2467745394,
0.1446685642,
-0.0190155935,
0.3927976489,
-0.0767466947,
-0.2162495255,
-0.1495244503,
0.1239941195,
-0.3076715767,
-0.2275854647,
0.0462825745,
-0.2569926083,
-0.0426562428,
0.1699811369,
-0.0587928072,
0.3385640979,
0.2130113542,
-0.0027180943,
-0.2035451829,
-0.3313350081,
0.105897598,
0.0301937312,
0.3501743078,
-0.3610579371,
0.0734479576,
0.3541795611,
-0.1493665576,
0.0048905374,
0.190592438,
0.5870632529,
0.3003974855,
0.0680241734,
0.0731520951,
-0.2649991214,
0.0658928826,
-0.1408921778,
0.5814990401,
-0.2781247199,
-0.0510250293,
0.1392040402,
-0.0431959219,
-0.0150332609,
0.4320270717,
-0.1441588551,
0.3355379999,
-0.0652602464,
0.0472871624,
-0.0250149984,
-0.1433459073,
0.0552621633,
0.1071826965,
-0.1661215276,
-0.1895052046,
0.5579113364,
0.0092238765,
0.1001620144,
-0.2233538628,
0.0092601823,
-0.0416547954,
0.5770375133,
0.8015142679,
0.1574266106,
-0.0463093109,
0.0608372018,
-0.7923559546,
-0.0391496345,
-0.015249718,
0.0785267353,
0.0953041464,
0.0247142185,
-0.1123635992,
0.0399008282,
-0.1507737935,
0.1580253989,
-0.0342543423,
0.0070495615,
-0.18516545,
-0.0996041223,
0.0014868397,
0.1831905544,
0.0542866401,
-0.483975023,
0.2823937535,
-0.1108330563,
-0.0731429234,
-0.091878064,
-0.1048251688,
0.1755601317,
-0.1069601327,
0.0669329464,
0.4307732582,
0.1914646327,
0.3429851532,
-0.0721826926,
-0.3610788286,
0.1016121432,
-0.0766109973,
0.1687029749,
-0.0125959283,
0.4070680737,
-0.5156904459,
0.0264034979,
-0.1890791059,
0.4230325818,
-0.2197486013,
0.0602230467,
-0.0356812403,
-0.0848700479,
-0.0696710572,
0.0351364091,
0.0653060749,
0.2273832113,
0.0020751338,
0.1894111633,
-0.4079123437,
-0.2233608067,
0.321988672,
-0.6194617152,
-0.350741446,
-0.0883711502,
0.408141315,
0.1611013263,
-0.3031413555,
-0.3618788421,
0.1399899125,
0.3250719905,
0.0266627017,
-0.3687986135,
-0.0600638092,
-0.1723571718,
0.1622224897,
0.02654914,
0.4425603151,
0.0808607116,
0.07672894,
0.1723782867,
-0.1925548166
] |
https://github.com/huggingface/datasets/issues/4238 | Dataset caching policy | @albertvillanova thank you, it seems it still does not work using:
```python
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
download_mode="force_redownload"
)
```
[This](https://colab.research.google.com/drive/1EA6FWo5pHxU8rPHHRn24NlHqRPiOlPTr?usp=sharing) is my notebook!
The problem is that the download file's revision for `test.csv` is not correctly parsed
![Schermata 2022-04-27 alle 18 09 41](https://user-images.githubusercontent.com/163333/165563507-0be53eb6-8f61-49b0-b959-306e59281de3.png)
If you download that file `test.csv` from the repo, the line `\\N` is not there anymore (it was there at the first file upload).
My impression is that the Apache Arrow file is still cached - so server side, despite of enabling a forced download. For what I can see I get those two arrow files, but I cannot grep the bad line (`\\N`) since are binary files:
```
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/csv-test.arrow
!head /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/dataset_info.json
```
| ## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
| 125 | Dataset caching policy
## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
@albertvillanova thank you, it seems it still does not work using:
```python
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
download_mode="force_redownload"
)
```
[This](https://colab.research.google.com/drive/1EA6FWo5pHxU8rPHHRn24NlHqRPiOlPTr?usp=sharing) is my notebook!
The problem is that the download file's revision for `test.csv` is not correctly parsed
![Schermata 2022-04-27 alle 18 09 41](https://user-images.githubusercontent.com/163333/165563507-0be53eb6-8f61-49b0-b959-306e59281de3.png)
If you download that file `test.csv` from the repo, the line `\\N` is not there anymore (it was there at the first file upload).
My impression is that the Apache Arrow file is still cached - so server side, despite of enabling a forced download. For what I can see I get those two arrow files, but I cannot grep the bad line (`\\N`) since are binary files:
```
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
!ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/csv-test.arrow
!head /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/dataset_info.json
```
| [
0.0123936096,
0.2971666455,
-0.0013778415,
0.2417485565,
0.2187064886,
0.223115772,
0.2011682987,
0.3845502436,
0.047587432,
-0.114898473,
-0.0990488455,
-0.2024639547,
-0.043204993,
-0.1892879307,
-0.1385836452,
0.0513460636,
0.111731194,
-0.0098836049,
0.2588098049,
0.0954153836,
-0.0737708434,
0.117863901,
-0.1670916528,
-0.0787959769,
-0.367393434,
0.0166204907,
-0.0899960846,
-0.069326736,
0.1066928729,
-0.6206914783,
0.2522139847,
0.072450839,
0.2016528398,
0.2368706912,
-0.0001263648,
-0.1024664342,
0.1549502164,
-0.0820231736,
-0.2950689793,
0.1641110778,
-0.0856227875,
-0.2982957065,
-0.0182767455,
-0.1425967813,
0.1807876229,
-0.0793440118,
-0.0192516819,
-0.516964674,
0.4846031964,
0.4770778716,
0.1433763802,
0.0347182937,
-0.0920592025,
0.2908972502,
0.2127339691,
0.3287257552,
-0.2183058113,
0.1611050218,
0.0954905748,
-0.0793986619,
-0.0012770453,
0.2234777808,
-0.3259975016,
0.0802005455,
0.1258689165,
0.0620938875,
-0.2099142671,
-0.0586495511,
0.564494431,
0.1177013293,
0.5416299105,
-0.2061926872,
-0.5126444697,
-0.4321560562,
-0.1185015589,
-0.2246769071,
0.5172954798,
0.1825536489,
-0.1643292904,
0.2353673428,
-0.3708197474,
-0.373465538,
0.0563546866,
-0.2482875437,
0.0125569962,
-0.0332550816,
-0.0691288114,
-0.0859221071,
-0.3153804243,
-0.3343613148,
-0.0250364002,
-0.1866436303,
-0.1754441261,
0.3207187057,
-0.4284889996,
0.2038650215,
0.0504361019,
0.3530401587,
0.0095372405,
-0.0568257086,
0.027709337,
-0.1132237166,
-0.012364368,
-0.103492476,
-0.0161370225,
0.5280759335,
0.3833264709,
0.2247730047,
0.4180749357,
0.1071605161,
-0.122192435,
-0.0596748814,
0.1085663661,
-0.2088311762,
0.4692986906,
0.2980872989,
0.0874011666,
-0.2639745772,
-0.4008611441,
0.3987272382,
0.0792521611,
-0.0435008071,
0.0809764564,
0.1182874888,
-0.2654319108,
0.2469131202,
-0.3109485805,
-0.0344651118,
-0.268201828,
-0.1473113,
-0.1426729262,
-0.0044866884,
-0.0936849862,
0.132989943,
0.3898324072,
-0.2782138586,
0.0940937549,
0.0914928094,
0.1383266151,
0.0380824693,
-0.1030144989,
-0.3550890386,
0.1618324965,
0.2283445895,
-0.3626394272,
0.0737591013,
0.2123936713,
-0.4472793937,
-0.0907512605,
0.0906872153,
-0.4696445465,
-0.2500249445,
-0.0396823399,
0.0299207047,
-0.2703045309,
-0.022016976,
-0.2011903077,
-0.1221617162,
0.7679854631,
-0.1301229149,
0.138694793,
-0.0607174523,
-0.2074858993,
-0.2486397624,
0.024135815,
0.7459709644,
-0.3978332579,
-0.0034805415,
0.0223981403,
0.3345763981,
0.118897818,
0.3893784881,
0.0250516441,
0.0138421245,
-0.4760307968,
0.1359723955,
-0.0107975667,
-0.3261241019,
-0.529450953,
0.2354720235,
-0.0219719596,
0.0438959263,
0.4805414081,
-0.1311895996,
0.3278713822,
-0.1496676803,
0.2312702388,
0.0843562931,
0.0208963789,
-0.0518474467,
-0.2929527164,
-0.2801833451,
0.1734400541,
-0.1514915377,
0.1381094903,
0.1100740582,
0.1490080208,
-0.1044298708,
0.1303943694,
-0.1028587148,
0.3173862398,
0.3218125105,
0.1996958405,
0.3361393511,
0.1940688938,
-0.0133269336,
-0.5634203553,
0.3336996734,
-0.1510709524,
-0.0487962477,
-0.5828678608,
-0.3374966979,
-0.0046597715,
-0.0452592149,
-0.3498365879,
-0.2340483963,
0.0109602707,
0.2944903672,
0.2093049139,
0.0774855912,
-0.3025777638,
0.5547483563,
-0.1514557749,
0.0356560126,
-0.3149839342,
0.0344057307,
0.0354634002,
-0.1176335961,
-0.2977709472,
0.1621287763,
0.1365372837,
-0.064266406,
-0.3484889269,
0.3423914909,
0.1021603718,
0.1183243543,
0.1725016236,
0.3512911797,
0.1473367959,
0.0455283821,
0.1205660775,
0.1925427765,
0.0520296842,
0.1880880445,
-0.2764337063,
0.4564831853,
-0.3377994597,
0.3060477674,
-0.1606560647,
-0.0844261348,
0.3575418591,
0.0633732304,
-0.0494333319,
-0.4019527137,
0.333889842,
-0.0775111541,
0.2583097219,
0.175124824,
-0.1588616669,
-0.1345626414,
0.4126013517,
0.2732482255,
0.0417792797,
0.1923985928,
0.1799691617,
-0.2073259801,
0.1034266353,
0.3869751394,
0.2926307023,
-0.0477646813,
-0.0585029423,
-0.075618431,
0.3888523281,
-0.2236433774,
0.1844119132,
-0.2422158718,
-0.5531631112,
0.3378501832,
0.3072144985,
0.324903816,
-0.2500666678,
-0.090403229,
0.112732932,
0.2663859129,
-0.3754593432,
-0.0502152964,
-0.4189833403,
-0.4062885642,
-0.221305728,
0.2324907035,
-0.37585783,
-0.1734998375,
-0.1743537933,
-0.1857518703,
-0.0724671707,
-0.0137710497,
-0.1813276261,
0.2174972445,
-0.023300264,
-0.3834765553,
-0.192536369,
-0.1037821546,
-0.1774395704,
-0.1540046334,
0.2394246906,
-0.2570165396,
0.1734674275,
-0.4991287589,
-0.1461903602,
-0.4262441397,
-0.1157522574,
-0.0820190161,
0.1450815648,
0.0396534279,
0.0955616161,
0.2199554443,
-0.2006958872,
-0.040311262,
0.3219614327,
-0.1443939805,
-0.0064132335,
0.1055593342,
0.3380680978,
0.0959964097,
-0.098111324,
-0.053235583,
-0.1494610608,
-0.2081453949,
0.1131935865,
-0.2404411733,
0.0058440561,
0.2641096711,
-0.2923790216,
-0.1000035182,
-0.1252763569,
0.1726918817,
-0.0822476,
-0.4895117879,
0.4340184033,
0.0677335933,
-0.1480996609,
0.0062358659,
0.3059183955,
-0.0152393244,
0.2202232629,
-0.5601280928,
0.0038386381,
-0.3910726011,
0.6649289131,
0.0708654448,
0.1502586901,
0.2555817366,
-0.0082984772,
0.0410320014,
0.0715589076,
-0.229875043,
0.0185086634,
0.1150453016,
0.1087584719,
0.2441776693,
0.3302660584,
0.1421008557,
0.5426904559,
0.0429681391,
0.150930196,
0.5023105741,
0.1774828583,
0.4783696532,
-0.1697043628,
-0.405867368,
0.100357987,
-0.1692298651,
-0.3635139465,
0.1804776788,
0.1689960063,
0.2567850053,
-0.2230032831,
-0.0252756365,
-0.1526254117,
-0.1645915806,
0.1331984699,
-0.4737531841,
0.4249721766,
0.1899668276,
-0.1046013162,
-0.2555206418,
-0.4037130177,
-0.0381988622,
0.1602144241,
0.2247751206,
0.1194292828,
-0.0459373556,
-0.1298491508,
-0.2810018957,
0.2904259861,
0.2295810878,
0.7262058258,
-0.1800182462,
0.1063002795,
0.0734071136,
0.023687087,
0.4988805056,
0.0758222267,
0.1158448383,
-0.0697383881,
0.0223625023,
-0.0014742869,
-0.2985979319,
0.3196669519,
0.4175270498,
-0.0420243815,
0.3266119361,
0.0154723227,
-0.2111925334,
-0.3601840436,
0.3441717923,
-0.2327989489,
-0.0587960407,
-0.1795741916,
-0.0160385463,
-0.1305052191,
0.0499700904,
0.0812160522,
0.0279196166,
0.1814074963,
0.4388046563,
-0.0173616689,
-0.0999618992,
0.0335623063,
-0.290666312,
0.3134853244,
-0.0131524103,
0.0989710987,
-0.0031805208,
0.1123435721,
0.0509871989,
0.4183158875,
-0.0882338881,
-0.3790273368,
-0.1777638197,
-0.3097430766,
0.0433739424,
0.1704265922,
-0.3094181418,
0.066776216,
0.0916776806,
0.2714404762,
-0.0596447326,
-0.0808525756,
0.1092197821,
-0.0210290384,
0.0516261198,
-0.4814636111,
0.3047750592,
0.2219609022,
-0.0486807972,
-0.0928844959,
0.2003460377,
-0.3756881356,
0.2023397535,
0.1964794397,
0.6847473383,
0.0886077285,
0.2667199671,
-0.199315697,
0.0768861175,
0.7398189902,
-0.3023540676,
0.1679845005,
-0.139753297,
0.1570091695,
-0.0610636733,
0.1408559978,
0.2116463929,
-0.0521290675,
0.0274901818,
0.451736778,
-0.3623845875,
0.3814866543,
0.1236767322,
-0.0703952387,
-0.3189992905,
-0.1327591389,
-0.0813927874,
-0.0686197728,
-0.2553735077,
0.0133006452,
-0.0459213965,
0.177303955,
0.0585879162,
-0.07296177,
-0.4974429011,
-0.1644382328,
-0.00921016,
0.1995892823,
0.0592707805,
-0.2529404461,
0.0294323899,
0.3690403998,
0.5244757533,
0.2263179719,
-0.0573306493,
0.0360638723,
0.1889661103,
0.1006129533,
0.008475285,
0.065368861,
0.1256021559,
0.0397162996,
-0.02072143,
-0.200255692,
-0.181614697,
-0.3541405797,
-0.1060072705,
0.1296260208,
0.0684420168,
-0.1870573759,
-0.0106380088,
-0.3841298521,
0.2449789941,
-0.0677821487,
0.0377356857,
0.244273439,
-0.0904849842,
0.0170532055,
-0.227882728,
-0.2219500393,
-0.0397297628,
0.3476566076,
0.2146355808,
-0.3745096326,
0.6968064904,
-0.0372173563,
-0.0972825512,
-0.1158877015,
-0.0167586803,
-0.1795276403,
-0.5390040278,
0.1157499105,
-0.1199075952,
0.0374232978,
-0.0242806133,
-0.0958934203,
0.1143272966,
0.0824373215,
-0.1354274154,
-0.5628747344,
-0.2980926633,
-0.2138111442,
0.0595666803,
0.0248917136,
0.1486716866,
-0.259583801,
-0.0783189908,
-0.1857479811,
-0.1310025305,
-0.0298326034,
-0.200262472,
0.075910531,
0.1904688776,
0.2171371877,
-0.1816458553,
-0.2052714378,
-0.0564482287,
0.097410053,
0.1939874291,
-0.0759069026,
-0.0130256489,
0.2139453739,
-0.0488216467,
-0.0661000162,
-0.2247196138,
-0.0492416322,
-0.0794053525,
-0.2644955516,
0.0302021205,
0.3578816652,
-0.0345588773,
0.4326807857,
-0.1031742245,
0.1572814733,
0.0363041013,
0.3256640732,
0.0226185322,
0.1994966269,
0.0368305296,
0.3876142204,
-0.1242569834,
0.1455946565,
-0.2493016124,
0.0340588689,
-0.2740900218,
-0.0498438142,
-0.0119052241,
-0.7176524997,
-0.0478915945,
0.3184981942,
0.2566046417,
0.530341208,
-0.0977987945,
-0.2668829262,
0.3888122439,
0.0267445073,
-0.1388439536,
-0.1028251126,
0.2636796534,
0.1904943585,
-0.1171443909,
0.1074459255,
0.344394207,
-0.2272538543,
0.0452655368,
0.0624142662,
0.6229783297,
-0.1713073701,
0.122295469,
0.3410710692,
0.2598594129,
0.0863364562,
0.1955925822,
0.1053774953,
-0.0311067309,
0.5883740187,
0.0327053741,
0.0543914661,
0.3945005834,
0.3909545839,
-0.3196645081,
-0.6323393583,
0.4486406446,
0.14229092,
-0.2467745394,
0.1446685642,
-0.0190155935,
0.3927976489,
-0.0767466947,
-0.2162495255,
-0.1495244503,
0.1239941195,
-0.3076715767,
-0.2275854647,
0.0462825745,
-0.2569926083,
-0.0426562428,
0.1699811369,
-0.0587928072,
0.3385640979,
0.2130113542,
-0.0027180943,
-0.2035451829,
-0.3313350081,
0.105897598,
0.0301937312,
0.3501743078,
-0.3610579371,
0.0734479576,
0.3541795611,
-0.1493665576,
0.0048905374,
0.190592438,
0.5870632529,
0.3003974855,
0.0680241734,
0.0731520951,
-0.2649991214,
0.0658928826,
-0.1408921778,
0.5814990401,
-0.2781247199,
-0.0510250293,
0.1392040402,
-0.0431959219,
-0.0150332609,
0.4320270717,
-0.1441588551,
0.3355379999,
-0.0652602464,
0.0472871624,
-0.0250149984,
-0.1433459073,
0.0552621633,
0.1071826965,
-0.1661215276,
-0.1895052046,
0.5579113364,
0.0092238765,
0.1001620144,
-0.2233538628,
0.0092601823,
-0.0416547954,
0.5770375133,
0.8015142679,
0.1574266106,
-0.0463093109,
0.0608372018,
-0.7923559546,
-0.0391496345,
-0.015249718,
0.0785267353,
0.0953041464,
0.0247142185,
-0.1123635992,
0.0399008282,
-0.1507737935,
0.1580253989,
-0.0342543423,
0.0070495615,
-0.18516545,
-0.0996041223,
0.0014868397,
0.1831905544,
0.0542866401,
-0.483975023,
0.2823937535,
-0.1108330563,
-0.0731429234,
-0.091878064,
-0.1048251688,
0.1755601317,
-0.1069601327,
0.0669329464,
0.4307732582,
0.1914646327,
0.3429851532,
-0.0721826926,
-0.3610788286,
0.1016121432,
-0.0766109973,
0.1687029749,
-0.0125959283,
0.4070680737,
-0.5156904459,
0.0264034979,
-0.1890791059,
0.4230325818,
-0.2197486013,
0.0602230467,
-0.0356812403,
-0.0848700479,
-0.0696710572,
0.0351364091,
0.0653060749,
0.2273832113,
0.0020751338,
0.1894111633,
-0.4079123437,
-0.2233608067,
0.321988672,
-0.6194617152,
-0.350741446,
-0.0883711502,
0.408141315,
0.1611013263,
-0.3031413555,
-0.3618788421,
0.1399899125,
0.3250719905,
0.0266627017,
-0.3687986135,
-0.0600638092,
-0.1723571718,
0.1622224897,
0.02654914,
0.4425603151,
0.0808607116,
0.07672894,
0.1723782867,
-0.1925548166
] |
https://github.com/huggingface/datasets/issues/4238 | Dataset caching policy | SOLVED! The problem was the with the file itself, using caching parameter helped indeed.
Thanks for helping! | ## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
| 17 | Dataset caching policy
## Describe the bug
I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error
```
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences")
print(dataset_builder.cache_dir)
print(dataset_builder.info.features)
print(dataset_builder.info.splits)
```
```
Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd
/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519
None
None
```
and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`.
Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it?
Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last.
Thank you.
## Steps to reproduce the bug
```python
from datasets import load_dataset,Features,Value,ClassLabel
class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"]
features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')})
num_labels = features['label'].num_classes
data_files = { "train": "train.csv", "test": "test.csv" }
sentences = load_dataset(
"loretoparisi/tatoeba-sentences",
data_files=data_files,
delimiter='\t',
column_names=['label', 'text'],
)
# You can make this part faster with num_proc=<some int>
sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
sentences = sentences.shuffle()
```
## Expected results
Properly tokenize dataset file `test.csv` without issues.
## Actual results
Specify the actual results or traceback.
```
Downloading data files: 100%
2/2 [00:16<00:00, 7.34s/it]
Downloading data: 100%
391M/391M [00:12<00:00, 36.6MB/s]
Downloading data: 100%
92.4M/92.4M [00:02<00:00, 40.0MB/s]
Extracting data files: 100%
2/2 [00:00<00:00, 47.66it/s]
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data.
100%
2/2 [00:00<00:00, 25.94it/s]
11%
942339/8256449 [01:55<13:11, 9245.85ex/s]
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
[<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>()
12 )
13 # You can make this part faster with num_proc=<some int>
---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features)
15 sentences = sentences.shuffle()
10 frames
[/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values)
852 if value not in self._str2int:
853 value = str(value).strip()
--> 854 output.append(self._str2int[str(value)])
855 else:
856 # No names provided, try to integerize
KeyError: '\\N'
```
## Environment info
```
- `datasets` version: 2.1.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
- ```
```
- `transformers` version: 4.18.0
- Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): 1.11.0+cu113 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
- ```
SOLVED! The problem was the with the file itself, using caching parameter helped indeed.
Thanks for helping! | [
0.0123936096,
0.2971666455,
-0.0013778415,
0.2417485565,
0.2187064886,
0.223115772,
0.2011682987,
0.3845502436,
0.047587432,
-0.114898473,
-0.0990488455,
-0.2024639547,
-0.043204993,
-0.1892879307,
-0.1385836452,
0.0513460636,
0.111731194,
-0.0098836049,
0.2588098049,
0.0954153836,
-0.0737708434,
0.117863901,
-0.1670916528,
-0.0787959769,
-0.367393434,
0.0166204907,
-0.0899960846,
-0.069326736,
0.1066928729,
-0.6206914783,
0.2522139847,
0.072450839,
0.2016528398,
0.2368706912,
-0.0001263648,
-0.1024664342,
0.1549502164,
-0.0820231736,
-0.2950689793,
0.1641110778,
-0.0856227875,
-0.2982957065,
-0.0182767455,
-0.1425967813,
0.1807876229,
-0.0793440118,
-0.0192516819,
-0.516964674,
0.4846031964,
0.4770778716,
0.1433763802,
0.0347182937,
-0.0920592025,
0.2908972502,
0.2127339691,
0.3287257552,
-0.2183058113,
0.1611050218,
0.0954905748,
-0.0793986619,
-0.0012770453,
0.2234777808,
-0.3259975016,
0.0802005455,
0.1258689165,
0.0620938875,
-0.2099142671,
-0.0586495511,
0.564494431,
0.1177013293,
0.5416299105,
-0.2061926872,
-0.5126444697,
-0.4321560562,
-0.1185015589,
-0.2246769071,
0.5172954798,
0.1825536489,
-0.1643292904,
0.2353673428,
-0.3708197474,
-0.373465538,
0.0563546866,
-0.2482875437,
0.0125569962,
-0.0332550816,
-0.0691288114,
-0.0859221071,
-0.3153804243,
-0.3343613148,
-0.0250364002,
-0.1866436303,
-0.1754441261,
0.3207187057,
-0.4284889996,
0.2038650215,
0.0504361019,
0.3530401587,
0.0095372405,
-0.0568257086,
0.027709337,
-0.1132237166,
-0.012364368,
-0.103492476,
-0.0161370225,
0.5280759335,
0.3833264709,
0.2247730047,
0.4180749357,
0.1071605161,
-0.122192435,
-0.0596748814,
0.1085663661,
-0.2088311762,
0.4692986906,
0.2980872989,
0.0874011666,
-0.2639745772,
-0.4008611441,
0.3987272382,
0.0792521611,
-0.0435008071,
0.0809764564,
0.1182874888,
-0.2654319108,
0.2469131202,
-0.3109485805,
-0.0344651118,
-0.268201828,
-0.1473113,
-0.1426729262,
-0.0044866884,
-0.0936849862,
0.132989943,
0.3898324072,
-0.2782138586,
0.0940937549,
0.0914928094,
0.1383266151,
0.0380824693,
-0.1030144989,
-0.3550890386,
0.1618324965,
0.2283445895,
-0.3626394272,
0.0737591013,
0.2123936713,
-0.4472793937,
-0.0907512605,
0.0906872153,
-0.4696445465,
-0.2500249445,
-0.0396823399,
0.0299207047,
-0.2703045309,
-0.022016976,
-0.2011903077,
-0.1221617162,
0.7679854631,
-0.1301229149,
0.138694793,
-0.0607174523,
-0.2074858993,
-0.2486397624,
0.024135815,
0.7459709644,
-0.3978332579,
-0.0034805415,
0.0223981403,
0.3345763981,
0.118897818,
0.3893784881,
0.0250516441,
0.0138421245,
-0.4760307968,
0.1359723955,
-0.0107975667,
-0.3261241019,
-0.529450953,
0.2354720235,
-0.0219719596,
0.0438959263,
0.4805414081,
-0.1311895996,
0.3278713822,
-0.1496676803,
0.2312702388,
0.0843562931,
0.0208963789,
-0.0518474467,
-0.2929527164,
-0.2801833451,
0.1734400541,
-0.1514915377,
0.1381094903,
0.1100740582,
0.1490080208,
-0.1044298708,
0.1303943694,
-0.1028587148,
0.3173862398,
0.3218125105,
0.1996958405,
0.3361393511,
0.1940688938,
-0.0133269336,
-0.5634203553,
0.3336996734,
-0.1510709524,
-0.0487962477,
-0.5828678608,
-0.3374966979,
-0.0046597715,
-0.0452592149,
-0.3498365879,
-0.2340483963,
0.0109602707,
0.2944903672,
0.2093049139,
0.0774855912,
-0.3025777638,
0.5547483563,
-0.1514557749,
0.0356560126,
-0.3149839342,
0.0344057307,
0.0354634002,
-0.1176335961,
-0.2977709472,
0.1621287763,
0.1365372837,
-0.064266406,
-0.3484889269,
0.3423914909,
0.1021603718,
0.1183243543,
0.1725016236,
0.3512911797,
0.1473367959,
0.0455283821,
0.1205660775,
0.1925427765,
0.0520296842,
0.1880880445,
-0.2764337063,
0.4564831853,
-0.3377994597,
0.3060477674,
-0.1606560647,
-0.0844261348,
0.3575418591,
0.0633732304,
-0.0494333319,
-0.4019527137,
0.333889842,
-0.0775111541,
0.2583097219,
0.175124824,
-0.1588616669,
-0.1345626414,
0.4126013517,
0.2732482255,
0.0417792797,
0.1923985928,
0.1799691617,
-0.2073259801,
0.1034266353,
0.3869751394,
0.2926307023,
-0.0477646813,
-0.0585029423,
-0.075618431,
0.3888523281,
-0.2236433774,
0.1844119132,
-0.2422158718,
-0.5531631112,
0.3378501832,
0.3072144985,
0.324903816,
-0.2500666678,
-0.090403229,
0.112732932,
0.2663859129,
-0.3754593432,
-0.0502152964,
-0.4189833403,
-0.4062885642,
-0.221305728,
0.2324907035,
-0.37585783,
-0.1734998375,
-0.1743537933,
-0.1857518703,
-0.0724671707,
-0.0137710497,
-0.1813276261,
0.2174972445,
-0.023300264,
-0.3834765553,
-0.192536369,
-0.1037821546,
-0.1774395704,
-0.1540046334,
0.2394246906,
-0.2570165396,
0.1734674275,
-0.4991287589,
-0.1461903602,
-0.4262441397,
-0.1157522574,
-0.0820190161,
0.1450815648,
0.0396534279,
0.0955616161,
0.2199554443,
-0.2006958872,
-0.040311262,
0.3219614327,
-0.1443939805,
-0.0064132335,
0.1055593342,
0.3380680978,
0.0959964097,
-0.098111324,
-0.053235583,
-0.1494610608,
-0.2081453949,
0.1131935865,
-0.2404411733,
0.0058440561,
0.2641096711,
-0.2923790216,
-0.1000035182,
-0.1252763569,
0.1726918817,
-0.0822476,
-0.4895117879,
0.4340184033,
0.0677335933,
-0.1480996609,
0.0062358659,
0.3059183955,
-0.0152393244,
0.2202232629,
-0.5601280928,
0.0038386381,
-0.3910726011,
0.6649289131,
0.0708654448,
0.1502586901,
0.2555817366,
-0.0082984772,
0.0410320014,
0.0715589076,
-0.229875043,
0.0185086634,
0.1150453016,
0.1087584719,
0.2441776693,
0.3302660584,
0.1421008557,
0.5426904559,
0.0429681391,
0.150930196,
0.5023105741,
0.1774828583,
0.4783696532,
-0.1697043628,
-0.405867368,
0.100357987,
-0.1692298651,
-0.3635139465,
0.1804776788,
0.1689960063,
0.2567850053,
-0.2230032831,
-0.0252756365,
-0.1526254117,
-0.1645915806,
0.1331984699,
-0.4737531841,
0.4249721766,
0.1899668276,
-0.1046013162,
-0.2555206418,
-0.4037130177,
-0.0381988622,
0.1602144241,
0.2247751206,
0.1194292828,
-0.0459373556,
-0.1298491508,
-0.2810018957,
0.2904259861,
0.2295810878,
0.7262058258,
-0.1800182462,
0.1063002795,
0.0734071136,
0.023687087,
0.4988805056,
0.0758222267,
0.1158448383,
-0.0697383881,
0.0223625023,
-0.0014742869,
-0.2985979319,
0.3196669519,
0.4175270498,
-0.0420243815,
0.3266119361,
0.0154723227,
-0.2111925334,
-0.3601840436,
0.3441717923,
-0.2327989489,
-0.0587960407,
-0.1795741916,
-0.0160385463,
-0.1305052191,
0.0499700904,
0.0812160522,
0.0279196166,
0.1814074963,
0.4388046563,
-0.0173616689,
-0.0999618992,
0.0335623063,
-0.290666312,
0.3134853244,
-0.0131524103,
0.0989710987,
-0.0031805208,
0.1123435721,
0.0509871989,
0.4183158875,
-0.0882338881,
-0.3790273368,
-0.1777638197,
-0.3097430766,
0.0433739424,
0.1704265922,
-0.3094181418,
0.066776216,
0.0916776806,
0.2714404762,
-0.0596447326,
-0.0808525756,
0.1092197821,
-0.0210290384,
0.0516261198,
-0.4814636111,
0.3047750592,
0.2219609022,
-0.0486807972,
-0.0928844959,
0.2003460377,
-0.3756881356,
0.2023397535,
0.1964794397,
0.6847473383,
0.0886077285,
0.2667199671,
-0.199315697,
0.0768861175,
0.7398189902,
-0.3023540676,
0.1679845005,
-0.139753297,
0.1570091695,
-0.0610636733,
0.1408559978,
0.2116463929,
-0.0521290675,
0.0274901818,
0.451736778,
-0.3623845875,
0.3814866543,
0.1236767322,
-0.0703952387,
-0.3189992905,
-0.1327591389,
-0.0813927874,
-0.0686197728,
-0.2553735077,
0.0133006452,
-0.0459213965,
0.177303955,
0.0585879162,
-0.07296177,
-0.4974429011,
-0.1644382328,
-0.00921016,
0.1995892823,
0.0592707805,
-0.2529404461,
0.0294323899,
0.3690403998,
0.5244757533,
0.2263179719,
-0.0573306493,
0.0360638723,
0.1889661103,
0.1006129533,
0.008475285,
0.065368861,
0.1256021559,
0.0397162996,
-0.02072143,
-0.200255692,
-0.181614697,
-0.3541405797,
-0.1060072705,
0.1296260208,
0.0684420168,
-0.1870573759,
-0.0106380088,
-0.3841298521,
0.2449789941,
-0.0677821487,
0.0377356857,
0.244273439,
-0.0904849842,
0.0170532055,
-0.227882728,
-0.2219500393,
-0.0397297628,
0.3476566076,
0.2146355808,
-0.3745096326,
0.6968064904,
-0.0372173563,
-0.0972825512,
-0.1158877015,
-0.0167586803,
-0.1795276403,
-0.5390040278,
0.1157499105,
-0.1199075952,
0.0374232978,
-0.0242806133,
-0.0958934203,
0.1143272966,
0.0824373215,
-0.1354274154,
-0.5628747344,
-0.2980926633,
-0.2138111442,
0.0595666803,
0.0248917136,
0.1486716866,
-0.259583801,
-0.0783189908,
-0.1857479811,
-0.1310025305,
-0.0298326034,
-0.200262472,
0.075910531,
0.1904688776,
0.2171371877,
-0.1816458553,
-0.2052714378,
-0.0564482287,
0.097410053,
0.1939874291,
-0.0759069026,
-0.0130256489,
0.2139453739,
-0.0488216467,
-0.0661000162,
-0.2247196138,
-0.0492416322,
-0.0794053525,
-0.2644955516,
0.0302021205,
0.3578816652,
-0.0345588773,
0.4326807857,
-0.1031742245,
0.1572814733,
0.0363041013,
0.3256640732,
0.0226185322,
0.1994966269,
0.0368305296,
0.3876142204,
-0.1242569834,
0.1455946565,
-0.2493016124,
0.0340588689,
-0.2740900218,
-0.0498438142,
-0.0119052241,
-0.7176524997,
-0.0478915945,
0.3184981942,
0.2566046417,
0.530341208,
-0.0977987945,
-0.2668829262,
0.3888122439,
0.0267445073,
-0.1388439536,
-0.1028251126,
0.2636796534,
0.1904943585,
-0.1171443909,
0.1074459255,
0.344394207,
-0.2272538543,
0.0452655368,
0.0624142662,
0.6229783297,
-0.1713073701,
0.122295469,
0.3410710692,
0.2598594129,
0.0863364562,
0.1955925822,
0.1053774953,
-0.0311067309,
0.5883740187,
0.0327053741,
0.0543914661,
0.3945005834,
0.3909545839,
-0.3196645081,
-0.6323393583,
0.4486406446,
0.14229092,
-0.2467745394,
0.1446685642,
-0.0190155935,
0.3927976489,
-0.0767466947,
-0.2162495255,
-0.1495244503,
0.1239941195,
-0.3076715767,
-0.2275854647,
0.0462825745,
-0.2569926083,
-0.0426562428,
0.1699811369,
-0.0587928072,
0.3385640979,
0.2130113542,
-0.0027180943,
-0.2035451829,
-0.3313350081,
0.105897598,
0.0301937312,
0.3501743078,
-0.3610579371,
0.0734479576,
0.3541795611,
-0.1493665576,
0.0048905374,
0.190592438,
0.5870632529,
0.3003974855,
0.0680241734,
0.0731520951,
-0.2649991214,
0.0658928826,
-0.1408921778,
0.5814990401,
-0.2781247199,
-0.0510250293,
0.1392040402,
-0.0431959219,
-0.0150332609,
0.4320270717,
-0.1441588551,
0.3355379999,
-0.0652602464,
0.0472871624,
-0.0250149984,
-0.1433459073,
0.0552621633,
0.1071826965,
-0.1661215276,
-0.1895052046,
0.5579113364,
0.0092238765,
0.1001620144,
-0.2233538628,
0.0092601823,
-0.0416547954,
0.5770375133,
0.8015142679,
0.1574266106,
-0.0463093109,
0.0608372018,
-0.7923559546,
-0.0391496345,
-0.015249718,
0.0785267353,
0.0953041464,
0.0247142185,
-0.1123635992,
0.0399008282,
-0.1507737935,
0.1580253989,
-0.0342543423,
0.0070495615,
-0.18516545,
-0.0996041223,
0.0014868397,
0.1831905544,
0.0542866401,
-0.483975023,
0.2823937535,
-0.1108330563,
-0.0731429234,
-0.091878064,
-0.1048251688,
0.1755601317,
-0.1069601327,
0.0669329464,
0.4307732582,
0.1914646327,
0.3429851532,
-0.0721826926,
-0.3610788286,
0.1016121432,
-0.0766109973,
0.1687029749,
-0.0125959283,
0.4070680737,
-0.5156904459,
0.0264034979,
-0.1890791059,
0.4230325818,
-0.2197486013,
0.0602230467,
-0.0356812403,
-0.0848700479,
-0.0696710572,
0.0351364091,
0.0653060749,
0.2273832113,
0.0020751338,
0.1894111633,
-0.4079123437,
-0.2233608067,
0.321988672,
-0.6194617152,
-0.350741446,
-0.0883711502,
0.408141315,
0.1611013263,
-0.3031413555,
-0.3618788421,
0.1399899125,
0.3250719905,
0.0266627017,
-0.3687986135,
-0.0600638092,
-0.1723571718,
0.1622224897,
0.02654914,
0.4425603151,
0.0808607116,
0.07672894,
0.1723782867,
-0.1925548166
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Thanks for reporting. I understand it's an error in the dataset script. To reproduce:
```python
>>> import datasets as ds
>>> split_names = ds.get_dataset_split_names("mozilla-foundation/common_voice_8_0", use_auth_token="**********")
Downloading builder script: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 10.9k/10.9k [00:00<00:00, 10.9MB/s]
Downloading extra modules: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.98k/2.98k [00:00<00:00, 3.36MB/s]
Downloading extra modules: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 53.1k/53.1k [00:00<00:00, 650kB/s]
No config specified, defaulting to: common_voice/en
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 153, in _split_generators
self._log_download(self.config.name, bundle_version, hf_auth_token)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 139, in _log_download
email = HfApi().whoami(auth_token)["email"]
KeyError: 'email'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
``` | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 151 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Thanks for reporting. I understand it's an error in the dataset script. To reproduce:
```python
>>> import datasets as ds
>>> split_names = ds.get_dataset_split_names("mozilla-foundation/common_voice_8_0", use_auth_token="**********")
Downloading builder script: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 10.9k/10.9k [00:00<00:00, 10.9MB/s]
Downloading extra modules: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.98k/2.98k [00:00<00:00, 3.36MB/s]
Downloading extra modules: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 53.1k/53.1k [00:00<00:00, 650kB/s]
No config specified, defaulting to: common_voice/en
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info
for split_generator in builder._split_generators(
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 153, in _split_generators
self._log_download(self.config.name, bundle_version, hf_auth_token)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 139, in _log_download
email = HfApi().whoami(auth_token)["email"]
KeyError: 'email'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
``` | [
-0.6561425328,
-0.004003874,
0.0054231901,
0.1310704499,
0.2854442596,
0.2682386339,
0.4165343642,
0.3768597543,
0.1568085253,
0.109484069,
-0.2961753607,
-0.0419526771,
-0.2016284615,
-0.134046182,
0.0574726276,
0.144657135,
-0.1379270107,
0.2300461233,
0.4713993371,
-0.1087595969,
-0.095306538,
0.1899505854,
-0.4361649454,
-0.0596319251,
-0.3213803768,
-0.0233557727,
-0.073837392,
0.2103644907,
-0.1761886477,
-0.581572175,
0.088089399,
0.204358995,
0.1440666914,
0.3822388053,
-0.000120593,
0.1361112148,
0.3740230799,
0.0270714611,
-0.1417051554,
-0.0770524815,
-0.1716799289,
0.1251588315,
0.1751465946,
0.0419433154,
-0.0658147261,
-0.0595080368,
-0.0411299616,
-0.5866153836,
0.2798015773,
0.2627886236,
0.1835896224,
0.0126938401,
0.1893961877,
0.1631327271,
-0.0775625855,
0.1900337636,
-0.0978629962,
0.2088560462,
-0.013605902,
0.221015349,
0.0931257457,
0.1845868081,
-0.1132811606,
-0.140577808,
-0.0721095055,
-0.0595079921,
-0.1664901376,
-0.4646846652,
0.3115743995,
0.2355963439,
0.7882734537,
-0.3587973416,
-0.1727570891,
-0.0911853909,
0.1639146954,
-0.2275277674,
0.1784490198,
0.2559907734,
-0.1266655922,
0.3226568401,
-0.161561653,
-0.2547989786,
0.1161305234,
0.1885984391,
-0.1610791087,
0.2289329767,
-0.2086130828,
0.0484605432,
0.0904521421,
0.0648888126,
0.0097273067,
0.0323009603,
-0.0079374779,
0.3394326568,
-0.1982607841,
-0.0480527766,
0.0164663028,
-0.1426835954,
0.2313329875,
0.0500804335,
-0.0069401851,
0.0807131082,
-0.0450063758,
-0.0059332694,
0.1502186507,
0.1314039379,
0.3113311529,
0.3643580377,
0.1737876385,
0.243496716,
0.1399264038,
-0.1525883526,
-0.253867507,
-0.2887414992,
0.1528005451,
-0.1550787687,
0.5338347554,
-0.2306228429,
-0.327897191,
0.1678280234,
-0.0813485608,
-0.2261916697,
0.2386358529,
0.4896348715,
0.0763012245,
0.2658552825,
0.2082652897,
0.1738086045,
-0.1336090118,
-0.1691688448,
-0.1136749536,
-0.0549987182,
-0.2473417073,
0.1636812091,
0.2695918083,
-0.4645121694,
0.2495431453,
0.0477206819,
0.3610280454,
-0.2180978805,
-0.2471016496,
0.2480442077,
-0.1238882244,
0.1325411052,
0.2112250477,
0.361107558,
0.134638831,
-0.2368189692,
-0.1367329955,
0.1451753378,
-0.1332201362,
-0.2837592661,
-0.3306616545,
0.1272481978,
-0.1152685061,
0.0609898902,
0.3822704852,
0.0582916811,
0.1110274568,
-0.2866750658,
-0.0817494169,
0.0136456843,
-0.110499911,
-0.0856461972,
0.4975485206,
0.6625698805,
-0.321816802,
-0.1162488908,
-0.5413201451,
-0.0983368456,
-0.0801076218,
0.0373926945,
-0.0984823778,
-0.2696497738,
-0.3908696771,
0.1555042416,
0.8233067989,
-0.3098914623,
-0.4651504755,
0.4288798869,
0.117181696,
-0.0697449669,
0.1201274246,
-0.3396926522,
-0.0150199244,
0.051428739,
-0.0355356969,
0.0337598175,
0.0748926848,
-0.085292615,
-0.1512542218,
-0.14913553,
-0.0299447719,
0.1708539128,
0.0779429898,
0.160768941,
0.1485487819,
0.0167637151,
0.6047717333,
0.2706793547,
0.1394846439,
0.0749846771,
0.2056770474,
0.0003373669,
0.0504621156,
-0.1163514778,
-0.2447475344,
0.2339598536,
0.099989444,
-0.1635264158,
-0.0542216375,
-0.2141601592,
-0.3621358573,
0.0051006977,
-0.4061993659,
-0.0884082317,
0.0555416234,
0.2585830688,
-0.0243286155,
-0.0104322787,
-0.2514054477,
-0.285061568,
0.3428552151,
0.2538770139,
0.0489021242,
0.4533397853,
-0.20447734,
-0.0634631515,
0.1484978497,
0.2496325374,
0.054112833,
0.0929323658,
-0.0692353845,
0.3675214946,
-0.0288587399,
0.1626604497,
0.0285358503,
-0.0068235165,
0.0953673199,
-0.5219935179,
0.6353205442,
0.0908909813,
-0.0760336146,
0.0379134901,
0.1357197613,
0.0908357278,
0.2400163114,
0.0447827093,
0.0169164445,
0.3338451087,
-0.0015065672,
0.0675569922,
0.0654945374,
-0.4145182669,
0.1372196674,
-0.0683389306,
0.6825829148,
-0.093835339,
-0.5671577454,
0.0820145234,
0.6491979361,
-0.0120373098,
0.0224636905,
-0.0594004244,
-0.4081903398,
0.0849062651,
0.1006896719,
-0.2948718965,
0.2523972988,
0.1653080583,
-0.1576942652,
0.4188084602,
0.040907532,
-0.0608131178,
0.1969885081,
0.0958195552,
0.0749992356,
0.2490259707,
-0.2826402485,
-0.0077420073,
-0.3539453447,
-0.463994205,
-0.1073820069,
0.0795182735,
-0.4945600927,
-0.1497209221,
-0.1308526993,
0.00668965,
-0.2465171516,
-0.0379408784,
-0.3801368773,
-0.32981354,
-0.0536520556,
0.075229302,
0.2042718977,
0.2202468514,
-0.5546537638,
-0.1356497854,
0.1713712066,
0.0196706988,
-0.1575725079,
0.194676429,
-0.2311463505,
0.0017826356,
0.288469702,
-0.1606832892,
-0.1258435249,
-0.3789615035,
0.0897552967,
-0.1769885272,
-0.1934793144,
0.1357643157,
0.1231382042,
0.0073993122,
0.1334006041,
-0.0164928138,
0.158717826,
-0.1118259206,
0.3283584416,
-0.0339390635,
0.0524014011,
0.1026512086,
0.053819783,
-0.2069312185,
-0.0158594418,
-0.3836068511,
-0.10737212,
-0.5368224382,
0.0573139377,
0.0332703069,
0.1125686988,
0.2148694247,
0.0910604373,
0.0044692843,
-0.3055878878,
0.2403778732,
-0.1654026657,
-0.3441016376,
0.3704248071,
-0.2694292963,
-0.233172372,
0.25853163,
-0.1756199449,
0.4928230047,
-0.2137142271,
-0.4206870198,
0.4923171699,
-0.1303451359,
0.2304918766,
-0.1187266707,
0.0121048195,
0.1664776206,
0.302972734,
0.0951320902,
-0.1044759974,
-0.175175339,
-0.362349689,
-0.0689245686,
0.2080126703,
-0.0721435994,
0.3506106734,
-0.1110566035,
0.7606479526,
0.3564975858,
0.1359945685,
0.1827113628,
-0.2510711849,
0.480264008,
-0.0012876267,
-0.3529037535,
0.3592377007,
0.2651104927,
0.0710280016,
0.4500789046,
0.0320962705,
-0.1012113392,
-0.2701404393,
-0.0164204258,
-0.3475954235,
-0.3229843378,
-0.0990164876,
-0.5305114388,
0.0902152732,
0.0194499884,
0.2557264566,
0.0539539009,
-0.058910694,
-0.094552502,
0.4101984799,
0.0187814869,
0.0430856571,
0.083626397,
0.0164185409,
-0.4600337446,
0.2401614189,
-0.2130231112,
0.2793564796,
-0.2060447782,
-0.0737390071,
0.0450607017,
0.2268900722,
0.225573048,
0.0130981691,
-0.0410250947,
0.3080486059,
0.103223443,
-0.3781842589,
-0.1668434292,
-0.0053793169,
0.2262071222,
-0.1337747127,
-0.177730009,
-0.1493625194,
-0.0704405084,
0.3333546519,
0.1108951718,
-0.049725391,
-0.3191538453,
-0.1716107279,
0.1444515437,
-0.4604651034,
-0.2106357366,
-0.1290837079,
0.029886499,
-0.3053309917,
-0.0503274649,
0.3019591272,
-0.4067071378,
0.3067944944,
0.149401933,
0.0866915211,
0.0402448103,
0.3973551393,
0.5313232541,
0.2428802401,
0.0582815446,
0.6532734036,
0.3175140619,
-0.4883925617,
0.0182425231,
0.0598568916,
0.3396727741,
0.0730873793,
-0.2393368334,
-0.2291770428,
0.3183628917,
0.2216476649,
-0.0710215271,
-0.172718659,
0.5620816946,
0.133111164,
-0.4003137946,
-0.4171763659,
0.2170151174,
-0.083739832,
-0.0035566958,
0.2092540115,
0.0068955021,
-0.079072997,
-0.1177438647,
-0.4801333845,
0.7148758173,
0.2187373787,
-0.1140858829,
0.2422340214,
-0.0731209144,
-0.0974448398,
-0.0045538857,
-0.0815759897,
-0.1810079962,
-0.1730379462,
0.022960484,
-0.1584770232,
0.3931729496,
0.3188039958,
-0.5133062601,
0.1688118577,
-0.2801713347,
-0.2633058727,
0.1219802126,
0.3110850453,
-0.4043814838,
0.0495604165,
-0.0165451095,
0.0462522693,
-0.0662952289,
0.5286539197,
-0.0147264674,
0.0848970935,
-0.0548732802,
-0.3618143499,
-0.3388924897,
0.3298495114,
-0.2254801691,
-0.1610485911,
0.1584177315,
-0.0142536806,
0.7971377373,
0.1415546685,
0.0611181445,
0.2676756382,
-0.2552806735,
0.2410931587,
0.0310363919,
-0.1497900784,
0.0936750174,
0.2287026793,
0.3531041145,
-0.0456023589,
-0.48983711,
0.2887153625,
-0.0497088693,
0.089427866,
-0.2386393547,
-0.2239359915,
0.3966575265,
-0.4108697772,
0.1821849346,
-0.0104144923,
0.0296411347,
-0.0420395397,
0.0847000927,
0.3081162274,
-0.0604509674,
0.0211303104,
0.142233476,
0.1221538559,
-0.0505993478,
0.1777327955,
0.0198636446,
-0.0415944159,
0.4010296464,
0.0487778932,
-0.1836479604,
-0.2116940171,
-0.2202427983,
0.1526728123,
-0.2864474654,
-0.1424750686,
-0.0300664324,
0.0938108936,
0.0647900403,
-0.1571302712,
-0.1341735721,
0.1181107312,
-0.169038251,
-0.4508935213,
-0.2159717381,
0.1149086803,
-0.1169202998,
0.162388131,
-0.1617584527,
0.4811196923,
0.241325289,
-0.006624924,
-0.2536821961,
-0.0263005123,
0.0697698742,
-0.0604280867,
0.0837931782,
-0.0556578301,
0.0729677677,
-0.0177083649,
0.2307476848,
-0.1914231926,
-0.2160287648,
-0.0451633707,
0.0214769263,
0.1725383252,
0.1311559081,
-0.1698176116,
0.344735533,
0.1979504079,
-0.3591592312,
-0.1590565443,
0.0649882033,
0.0635321066,
-0.04754043,
0.0272699278,
0.0084577492,
-0.357134968,
-0.1763850749,
0.0297039431,
-0.1598840505,
0.2997164726,
0.014952248,
0.3926473558,
-0.1924975663,
-0.1535043716,
-0.1270792186,
0.0857498124,
-0.0329795256,
0.0530564748,
0.4680733383,
-0.3138730526,
0.1259340197,
0.1660804152,
0.3977280259,
0.1769106984,
-0.1124499813,
0.193334952,
0.2024877518,
0.1191237271,
-0.5042485595,
0.1466300637,
0.1106726378,
-0.0191946868,
0.1772565246,
0.03373079,
-0.0585073046,
-0.0921302736,
0.0470454022,
0.0056178574,
0.2470084429,
0.1429539323,
0.4164430201,
0.3270046413,
-0.1497080177,
0.1774499267,
0.4047247469,
0.0984481126,
0.0992493704,
0.3459056318,
-0.622160852,
0.1097742021,
-0.1515408754,
-0.0305324011,
0.3384506404,
-0.3952785432,
0.0971322954,
0.1261933893,
-0.2213772833,
-0.0777378976,
-0.2880426943,
0.3499585986,
-0.2696026564,
0.2168397009,
-0.1465816647,
0.2575061321,
-0.1594211906,
0.2819506526,
0.0592504628,
-0.1123453751,
-0.3596458435,
-0.1827933341,
0.2387730032,
-0.3429827988,
0.1533938199,
0.0168078821,
-0.3495777845,
-0.1924386322,
0.085080795,
0.1653479785,
0.0772208869,
-0.2499206215,
0.1691165417,
-0.044983115,
-0.0944331661,
0.3265188336,
0.6442953944,
0.5560629964,
0.050388407,
0.327172488,
-0.1418156773,
0.3324838877,
-0.1314030588,
0.0753599331,
-0.1370108873,
0.1150389612,
0.2489339709,
0.1094063371,
0.0800248161,
-0.136738658,
-0.4368442297,
-0.0130226305,
0.285238564,
-0.3921763897,
-0.0071395258,
-0.5302839279,
-0.1990671009,
-0.1990127116,
-0.0447224379,
-0.5312963128,
-0.1359631866,
0.3549051881,
0.0381868333,
-0.0922624245,
-0.4646948576,
0.0105639976,
0.2308065444,
-0.041089464,
0.2955460548,
0.0599426478,
0.1924576908,
-0.3412266076,
-0.5168863535,
0.2941106558,
0.3160489798,
-0.2079347223,
-0.0927475393,
0.0339699276,
-0.0658697486,
0.0760067031,
0.5357164145,
0.0389333479,
-0.1158874035,
-0.0234434064,
0.0244373344,
-0.3355987668,
0.0549919195,
0.2501283884,
-0.0868443325,
-0.1595084667,
0.2525751889,
-0.3260988891,
-0.0282561667,
-0.1608092189,
0.3036962748,
-0.0981316268,
-0.4200744629,
0.3788346648,
0.0504896194,
0.4934882224,
-0.111016728,
-0.0529046766,
-0.2154830992,
-0.1853328645,
-0.08539325,
0.2482280135,
0.0028822157,
0.3881594241,
-0.1837255955,
-0.2465016544,
-0.19499816,
0.0526049174,
0.0604828596,
-0.1027673408,
-0.1506115794,
0.1220756397,
-0.2088956535,
0.3195099533,
0.2846774757,
0.0566261597,
-0.1264583617,
-0.1319914609,
-0.126838401,
-0.4514089823,
0.4368926585,
0.0251796264,
-0.2089773268,
-0.3764719963,
0.2247162312,
-0.2646787465,
-0.1912423968,
-0.2710284293,
0.239651069,
0.3196539581,
-0.0518856719,
0.0704682693,
0.0316800363,
-0.2081864029,
-0.1224749535,
-0.0402533263,
0.4102576971,
0.0025106065,
-0.0645008683,
0.1102685407,
-0.0553387478
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | Thanks for reporting @patrickvonplaten and thanks for the investigation @severo.
Unfortunately I'm not able to reproduce the error.
I think the error has to do with authentication with `huggingface_hub`, because the exception is thrown from these code lines: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/blob/main/common_voice_8_0.py#L137-L139
```python
from huggingface_hub import HfApi, HfFolder
if isinstance(auth_token, bool):
email = HfApi().whoami(auth_token)
email = HfApi().whoami(auth_token)["email"]
```
Could you please verify the previous code with the `auth_token` you pass to `load_dataset(..., use_auth_token=auth_token,...`? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 70 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
Thanks for reporting @patrickvonplaten and thanks for the investigation @severo.
Unfortunately I'm not able to reproduce the error.
I think the error has to do with authentication with `huggingface_hub`, because the exception is thrown from these code lines: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/blob/main/common_voice_8_0.py#L137-L139
```python
from huggingface_hub import HfApi, HfFolder
if isinstance(auth_token, bool):
email = HfApi().whoami(auth_token)
email = HfApi().whoami(auth_token)["email"]
```
Could you please verify the previous code with the `auth_token` you pass to `load_dataset(..., use_auth_token=auth_token,...`? | [
-0.3818594217,
-0.2081790715,
0.0576239452,
0.2595281303,
0.2959937453,
0.3319201767,
0.3500491679,
0.1816910803,
0.2192064673,
0.0894685835,
-0.5308890939,
-0.1895972043,
-0.136817351,
-0.2363358289,
0.1168588027,
0.0489676781,
-0.0462487526,
0.1060479879,
0.5292467475,
-0.1349978149,
0.0129346866,
0.1752549559,
-0.4182132781,
0.2086270601,
-0.3655785322,
-0.223791942,
-0.0834583491,
0.3409718275,
-0.1480693817,
-0.5022247434,
0.0657805577,
0.0664910674,
0.1010731906,
0.3351443708,
-0.0001159692,
0.1934725195,
0.2953518927,
0.0914320722,
-0.0651079938,
-0.1135741323,
-0.039726954,
0.3106776178,
0.0637409762,
0.2539423406,
-0.0948313773,
0.0116352187,
0.0008639303,
-0.4398345053,
0.431879133,
0.3939186037,
0.1532270759,
0.2173142135,
0.3227089047,
0.1527992636,
-0.053540688,
0.1493868679,
-0.0529338978,
0.296672523,
0.0780942291,
0.2811422646,
0.0829141811,
0.1740059406,
-0.0331488177,
-0.1660679579,
-0.0910948887,
-0.0182918776,
-0.2277190387,
-0.1749007106,
0.1240017787,
0.1872700751,
0.6590700746,
-0.2755386233,
-0.2194065899,
0.0338395089,
0.1854036897,
-0.1245852709,
0.2425644398,
0.2331777215,
-0.1590662301,
0.3362694979,
-0.1610645801,
-0.3634683192,
-0.1309421808,
0.1816131175,
-0.0254012849,
0.0953009352,
-0.1344465315,
0.0615910776,
0.1105384976,
-0.0531227551,
0.0120678693,
0.1114240363,
-0.1036853045,
0.4123508632,
-0.2113718837,
-0.0876495019,
0.0320219025,
0.0820211843,
0.3111400306,
-0.0475253128,
0.0034066595,
0.0890768915,
-0.2309187502,
0.1225280389,
0.1482707411,
0.084641926,
0.2566949129,
0.1964293718,
0.269444555,
0.2474646717,
0.1531983614,
-0.1062476933,
-0.3372659087,
-0.1983430982,
-0.0267974157,
-0.1542903781,
0.4733007848,
-0.3472929597,
-0.326063931,
0.2176445723,
-0.2133185863,
-0.0619465336,
0.2855883837,
0.5224424005,
0.0410029106,
0.1599668264,
0.2044221759,
0.2654497921,
-0.2087472528,
-0.0440059714,
-0.0923046395,
0.0391955934,
-0.1217528805,
0.0198091678,
0.2894654572,
-0.6270244122,
0.0961572751,
0.0480110645,
0.4596892297,
-0.2872561812,
-0.2148602754,
0.0799190179,
-0.2256634831,
0.0352010392,
0.1864803135,
0.180200398,
0.1839887202,
-0.1093022749,
-0.0430209376,
0.0114532327,
-0.1740669906,
-0.3195071816,
-0.2733239532,
0.1205219999,
-0.0042071808,
0.0253753494,
0.2752272785,
-0.0244847164,
-0.1661667079,
-0.369823128,
-0.0698020682,
0.1932187974,
0.0896987841,
0.049452439,
0.2831193805,
0.5264354944,
0.0154945794,
-0.0461179651,
-0.2742593288,
-0.2830864787,
-0.2764569521,
0.2618521154,
-0.1959084719,
-0.250534296,
-0.4286296368,
0.4130472243,
0.4586894214,
-0.5707864165,
-0.5317319632,
0.2278275937,
0.0640322044,
-0.0262079425,
-0.0842384994,
-0.2726294696,
-0.0565858334,
0.0278200209,
0.113491714,
0.0050903368,
0.1215288788,
0.0456571169,
-0.0557249784,
-0.0730098262,
-0.0855477825,
0.1547869742,
-0.1053089574,
0.2189814895,
0.2649226785,
0.0564693473,
0.5601183176,
0.1231209934,
0.069894217,
0.099490948,
0.2519982159,
0.0017878026,
-0.0946993455,
-0.0565887317,
0.0334547311,
0.1866931021,
0.1870710552,
-0.0542493053,
0.0192810707,
-0.2293777913,
-0.3430115879,
0.094054684,
-0.3044178486,
0.0264186691,
0.1055686995,
0.2008686662,
-0.0338876918,
0.0643397793,
-0.0742929056,
0.0950081497,
0.224694863,
0.2507315874,
0.0941192731,
0.4340097904,
-0.1936071366,
0.0318267196,
0.0817036107,
0.1955117136,
0.0831768811,
0.0515409932,
-0.0772660822,
0.3155006766,
-0.0487341955,
0.2361294031,
0.0229066014,
-0.0445763841,
0.1996160895,
-0.5553611517,
0.4343589544,
0.0231428277,
0.0730603263,
0.0127121769,
0.1772395223,
0.1645191461,
0.234800905,
-0.0310195722,
-0.000584729,
0.3626870215,
0.0632029995,
0.2367976904,
0.0332308374,
-0.1270736754,
0.1768880934,
-0.1013371572,
0.6630595922,
-0.3435401917,
-0.7223595977,
-0.0899089128,
0.4284305871,
0.0033668063,
0.16804941,
-0.0532046184,
-0.3983492553,
0.1111990437,
0.3032984436,
-0.5512855053,
0.2572219372,
0.1161661372,
-0.1179077029,
0.4783034623,
0.0145967109,
0.0061520189,
0.1705445647,
0.0633246824,
0.069043085,
0.105174832,
-0.2101235539,
0.0596921593,
-0.4947453439,
-0.3642538488,
-0.220532313,
0.0076883826,
-0.5782777071,
-0.1641024947,
0.0805501938,
0.0611632578,
-0.0618759282,
-0.1971524507,
-0.5366534591,
-0.2207690775,
-0.011829854,
0.250158608,
0.2320491076,
0.0904791653,
-0.3380450606,
0.1478216946,
0.1056616753,
0.1699150056,
-0.1171063855,
0.1263041645,
-0.190174818,
0.0447243899,
0.2067144215,
-0.1055628061,
-0.0681231022,
-0.3724746108,
0.3475180566,
-0.229957521,
-0.1422384679,
0.1399272531,
0.0292489044,
0.0390343033,
0.0068585095,
0.0682063848,
-0.122430414,
-0.0716286898,
0.2761169374,
-0.1369375437,
-0.1863934994,
0.1676674932,
0.1336460263,
-0.093101196,
0.0436678305,
-0.1952800453,
-0.2134028077,
-0.4596097469,
0.2307121605,
-0.1007288471,
0.1189735755,
0.2364793867,
-0.0363395847,
0.2681334913,
-0.2945606709,
0.1842873991,
-0.2967645824,
-0.469293803,
0.091131337,
-0.2457764596,
-0.3136011362,
0.2943797112,
-0.0630731955,
0.4383156896,
-0.2312072963,
-0.4566831887,
0.1905536652,
0.0052659418,
0.0859756842,
-0.1452582031,
-0.0008399426,
0.3305298388,
0.1016299278,
0.1524521559,
-0.0179232005,
-0.2124048024,
-0.3426826596,
0.0721739978,
0.0203507282,
-0.1858116537,
0.1931795925,
-0.0925703198,
0.8038676977,
0.34195593,
0.3183121681,
0.3614681959,
-0.2002099305,
0.3733717799,
0.0944165811,
-0.4032409787,
0.4203062356,
0.1968753934,
0.0275352616,
0.4648473263,
0.1575003564,
-0.052212853,
-0.2878299654,
-0.3227240741,
-0.4151635766,
-0.4055906534,
-0.1206252649,
-0.5274922252,
0.0349478386,
0.0989557207,
0.2237288803,
-0.0309853926,
-0.1355679631,
0.0357203633,
0.4595641494,
0.0448738337,
0.0133741871,
0.0278457142,
-0.0614564642,
-0.5249901414,
0.3485371172,
-0.1275981963,
0.5301097035,
-0.2743408382,
-0.024985943,
0.1037983447,
0.1355689913,
0.188031584,
0.0255363956,
-0.0946321413,
0.1707977504,
0.0327197649,
-0.5143497586,
0.0224287193,
-0.1208580211,
0.1645316631,
-0.1718489677,
0.0604006574,
-0.141087085,
-0.0383614413,
0.0406598113,
-0.0820809901,
0.0176107399,
-0.1940610707,
-0.1328769922,
0.0429914892,
-0.5238640904,
0.111847572,
0.0057651615,
0.1159884259,
-0.2500181794,
0.1621584743,
0.1094592139,
-0.2339777499,
0.4151486158,
0.0973965228,
0.0248843748,
0.0029568453,
0.2687405944,
0.6173628569,
0.4146389067,
-0.0237692911,
0.64289397,
0.3346780837,
-0.4204298854,
-0.030756332,
0.1261521876,
0.3155841529,
0.2536799908,
-0.0529692434,
-0.0501518026,
0.2353163511,
0.0175543334,
-0.246897161,
-0.0792227313,
0.3489641547,
0.3153947294,
-0.4495006204,
-0.0425283425,
0.1607552767,
-0.1427161992,
-0.0974347442,
0.2392577678,
0.3751954436,
-0.1255986243,
-0.0266337097,
-0.5253360271,
0.8577902913,
0.2396001816,
0.0862254947,
0.2683737576,
-0.0677577853,
-0.0951197818,
-0.1032446921,
0.0808721781,
-0.1463527977,
-0.2158352137,
-0.049043268,
-0.2296998054,
0.3832470477,
0.2273010015,
-0.3447735906,
0.0303347874,
-0.1579372883,
-0.1676876247,
0.0044044727,
0.2900507152,
-0.5957642794,
-0.0011621196,
-0.1925417185,
0.1200868487,
-0.062138401,
0.5775271058,
-0.148123607,
0.0342224576,
-0.1529109925,
-0.4219873548,
-0.3077859282,
0.3329372704,
-0.1682663262,
-0.0799353048,
0.2585197687,
0.0479774773,
0.7305327654,
0.0738497823,
0.2783250809,
0.1816293597,
-0.4462370574,
0.2053344995,
-0.120841749,
-0.2020869702,
-0.0285814181,
0.0818702728,
0.2550293207,
-0.0941484571,
-0.5202371478,
0.3352642059,
-0.1577768177,
-0.1066843271,
-0.2544674277,
-0.0672293231,
0.2532201707,
-0.2857368588,
0.1727946997,
-0.003494563,
-0.0199240353,
0.0106882025,
0.0717818961,
0.3582236469,
-0.1392103136,
-0.1127616391,
0.2731578946,
0.225368619,
0.0492348261,
0.2895276845,
-0.1537571698,
-0.0510659702,
0.4141519368,
0.0769364238,
-0.1221073791,
-0.2184315771,
-0.2311856449,
0.2496823519,
-0.2664602101,
-0.2622099817,
-0.09786883,
0.0039887931,
-0.0238251891,
-0.1044872701,
0.0644122139,
0.0588459447,
-0.0109678265,
-0.49925524,
-0.4703781605,
0.2268709689,
-0.1298615634,
0.0981633514,
-0.0331845582,
0.4027513564,
0.1447342634,
-0.0066589699,
-0.266132623,
0.1115372628,
-0.057603199,
-0.0828817561,
-0.0926650465,
-0.1120904684,
0.1896558851,
-0.1559185088,
0.1599523872,
0.0509546846,
-0.2690065205,
-0.0671730191,
0.118981801,
0.1501208693,
0.2228072137,
-0.3502287865,
0.3101513982,
0.2252450138,
-0.2392449379,
-0.035438735,
0.0944552794,
0.157063216,
-0.0624160282,
-0.1006012708,
0.0904162899,
-0.1036552042,
-0.1981481761,
0.0037912284,
-0.0844909623,
0.4023412466,
-0.0105940243,
0.1356299818,
-0.2213891,
-0.1493798941,
-0.0076126633,
0.2120420039,
0.2455297261,
0.001250797,
0.3482765257,
-0.1985550076,
0.0711885691,
-0.0064949552,
0.3615739048,
-0.0872756317,
-0.2616744936,
0.1966445595,
0.3142498136,
0.1651057452,
-0.3949651718,
0.0414960422,
0.051652167,
-0.1047001928,
0.058555156,
-0.0601753555,
0.0217893776,
0.000736115,
-0.0744608343,
0.0322930887,
0.1494671106,
0.2963051498,
0.1225965694,
0.1126197204,
-0.3947515786,
0.0634261966,
0.3584439456,
0.0126270913,
0.149648577,
0.1934369504,
-0.7532004714,
0.0555956326,
-0.2386969626,
0.0868806988,
0.3742178977,
-0.3788796365,
0.0434493162,
0.011054934,
-0.1428221166,
-0.104487285,
-0.3160599172,
0.4863744378,
-0.353959024,
0.0369545966,
-0.2893908322,
0.252643466,
-0.3118744791,
0.1976915002,
0.2538948059,
-0.1347998232,
-0.1716153771,
-0.1936366111,
0.1311066449,
-0.3900981247,
0.0314153619,
0.0008523446,
-0.2568022311,
-0.3244231045,
-0.1057901829,
0.3875309825,
0.0625798255,
-0.0456881709,
0.2069614232,
-0.0740214437,
-0.1667813063,
0.4222257435,
0.7251500487,
0.450743556,
-0.1724507511,
0.2726412416,
0.0300911888,
0.2155350596,
-0.0015349939,
0.1799725145,
-0.019127721,
0.3493618965,
0.3290109634,
0.1445387602,
0.0815709308,
-0.0884500742,
-0.2989081144,
-0.2099357247,
0.2699377537,
-0.4344168603,
0.0018388876,
-0.6620000601,
-0.1773474663,
-0.3668066263,
-0.0303362031,
-0.4786824882,
-0.0030254517,
0.3158365488,
-0.0418320633,
0.0088919261,
-0.4414021671,
0.0055081462,
0.2015472203,
-0.0679707751,
0.5265378952,
0.1332239509,
0.1150145605,
-0.3597566485,
-0.5383048058,
0.3571959734,
0.2995770574,
0.002663977,
-0.1016112417,
-0.2054784149,
0.018015651,
-0.0030750136,
0.3653419614,
0.0913165212,
-0.246872291,
-0.2054573148,
-0.103683047,
-0.166180104,
0.2037968487,
0.0548642687,
-0.1051132455,
-0.1020122841,
0.3815465868,
-0.1584850401,
-0.0202558674,
-0.1432229877,
0.4644099176,
-0.3351427913,
-0.4952490032,
0.3725384772,
0.1357262433,
0.3341907263,
-0.1086708456,
-0.0105011771,
-0.1050594449,
-0.2320156246,
-0.0632500127,
0.085087046,
-0.050766129,
0.4826260805,
-0.1166169792,
-0.3127087355,
-0.0373521857,
-0.0334268399,
0.092939347,
-0.0908126161,
-0.3040826917,
0.2868676782,
-0.4514607787,
0.2525303066,
0.2519367337,
0.1301742494,
-0.0375548713,
-0.2006590813,
-0.1201447546,
-0.3173253834,
0.521556139,
-0.1872473955,
-0.1051871702,
-0.2803945243,
0.4113774896,
-0.1524034441,
-0.4450328648,
-0.3945396543,
0.2260279953,
0.1597943157,
-0.0438147336,
-0.0107770134,
-0.1010888889,
-0.1399290264,
-0.0415402502,
-0.0429128632,
0.3550975323,
0.0441450551,
0.0538326129,
0.3761520088,
-0.0080621308
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | OK, thanks for digging a bit into it. Indeed, the error occurs with the dataset-viewer, but not with a normal user token, because we use an app token, and it does not have a related email!
```python
>>> from huggingface_hub import HfApi, HfFolder
>>> auth_token = "hf_app_******"
>>> t = HfApi().whoami(auth_token)
>>> t
{'type': 'app', 'name': 'dataset-preview-backend'}
>>> t["email"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'email'
```
Note also that the doc (https://huggingface.co/docs/huggingface_hub/package_reference/hf_api#huggingface_hub.HfApi.whoami) does not state that `whoami` should return an `email` key.
@SBrandeis @julien-c: do you think the app token should have an email associated, like the users? | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 105 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
OK, thanks for digging a bit into it. Indeed, the error occurs with the dataset-viewer, but not with a normal user token, because we use an app token, and it does not have a related email!
```python
>>> from huggingface_hub import HfApi, HfFolder
>>> auth_token = "hf_app_******"
>>> t = HfApi().whoami(auth_token)
>>> t
{'type': 'app', 'name': 'dataset-preview-backend'}
>>> t["email"]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'email'
```
Note also that the doc (https://huggingface.co/docs/huggingface_hub/package_reference/hf_api#huggingface_hub.HfApi.whoami) does not state that `whoami` should return an `email` key.
@SBrandeis @julien-c: do you think the app token should have an email associated, like the users? | [
-0.2868961394,
-0.1114272773,
0.054076951,
0.0521808229,
0.2599704862,
0.1541742533,
0.5229559541,
0.2172734588,
0.2576426268,
0.1800563484,
-0.5013438463,
-0.2839031816,
-0.0835964233,
-0.018772684,
0.026273394,
0.0892328024,
-0.0147990091,
0.0623915866,
0.4439668953,
-0.2027258426,
-0.1073847935,
0.1397350132,
-0.194793269,
0.4170069993,
-0.3792050779,
-0.100184828,
-0.148032099,
0.3187802136,
-0.0577252246,
-0.3893383741,
0.0566991456,
0.0613778867,
0.0840580016,
0.1843585223,
-0.0001204251,
0.2173437923,
0.4333310425,
0.120751366,
-0.1726997048,
-0.1751376837,
0.3533343971,
0.4137229919,
0.1092517972,
0.122698471,
-0.125603199,
0.0860597342,
-0.0701271892,
-0.4099159837,
0.4026727676,
0.2996587753,
0.1028093845,
0.2651830912,
0.1975974292,
0.2262071818,
0.1089573577,
0.2851126194,
-0.0332560167,
0.0897809938,
0.0675535575,
-0.0010908404,
0.1341499537,
0.2082287371,
-0.0563598573,
-0.0921555012,
-0.0523605086,
0.0828395784,
-0.1873904616,
-0.291875273,
0.1397755146,
0.1277609169,
0.5161698461,
-0.2496646196,
-0.1755955219,
-0.0384939015,
0.0663578361,
-0.1769807041,
0.2161383629,
0.0038752491,
-0.1050323471,
0.2729219794,
-0.1448024511,
-0.1692107171,
0.0486785471,
0.2883458436,
-0.1144148931,
0.2833461165,
-0.1419600844,
0.1453548819,
0.0363620222,
-0.1741238683,
-0.1342394501,
0.0501718894,
0.0727913529,
0.5265953541,
-0.0785507336,
-0.1468570083,
0.123157829,
-0.1736539453,
0.2622258365,
-0.1152729839,
-0.1380888224,
0.0736707598,
-0.2890015841,
0.0568454191,
0.3494338989,
0.0916087776,
0.3400451839,
0.3662419915,
0.340724647,
0.0716517419,
0.2114827186,
-0.1804734766,
-0.3227257133,
-0.0084295897,
0.0900151655,
-0.1961080581,
0.3871904016,
-0.214781642,
-0.3510162532,
0.2814204991,
-0.3045766652,
-0.1105625629,
0.1788806617,
0.4960236251,
0.0373111777,
0.1084196493,
0.1756714284,
0.1293221414,
-0.1718792021,
0.0316678993,
-0.0663063377,
-0.0915648565,
-0.0445098616,
0.1755393445,
0.2183133066,
-0.616987586,
0.1293364316,
0.0115915807,
0.6600551605,
-0.1341618598,
-0.2616853416,
0.1355152577,
-0.2164286077,
0.1311206073,
0.021902835,
0.3927401006,
0.3343045413,
-0.3336304724,
-0.0978338346,
0.0194709785,
-0.2603822649,
-0.3590401113,
-0.2580870688,
0.0984545052,
-0.160073474,
0.0561957546,
0.1570703238,
-0.0745682418,
-0.0860024095,
-0.1698163301,
0.1204543412,
0.1340397745,
0.0602024011,
0.1553725302,
0.330167681,
0.3443759382,
-0.0105337547,
-0.3719489574,
-0.2399176806,
-0.1868617535,
-0.1543323249,
0.3020905554,
-0.0540895797,
-0.0772332996,
-0.3757863641,
0.369286567,
0.3034480214,
-0.5338541865,
-0.504801929,
0.1710426956,
-0.0376817323,
0.026826581,
-0.1988302916,
-0.2661329806,
0.1223722398,
-0.0215485059,
0.3048942387,
-0.0734462738,
0.1179336384,
0.07366395,
-0.1094848812,
-0.2412392348,
-0.3052126169,
0.2054890841,
0.0923128128,
0.1480296403,
0.2194587141,
0.1068104208,
0.5145202279,
0.0967486575,
0.1423991919,
0.0133989872,
0.3492041528,
0.1012137532,
0.0394083709,
-0.0457822271,
0.1778778881,
0.1491684467,
0.1053545848,
0.0527372435,
-0.1584696621,
-0.2663202584,
-0.3214271665,
0.0644151494,
-0.2964698374,
-0.1418299824,
0.028331738,
0.0519817173,
-0.1208877191,
0.2555200458,
-0.1575794667,
0.0615060069,
0.3336765766,
0.1765345335,
0.1801520139,
0.5518132448,
-0.2457853556,
-0.0032373976,
0.0653348044,
0.266816467,
0.2014115304,
0.0172978323,
0.0267540738,
0.2541031837,
-0.1103895307,
0.0822305232,
-0.0912896544,
0.2707068324,
0.3353666365,
-0.2462831885,
0.3613312244,
-0.077731505,
-0.0161306076,
-0.0775642172,
0.2061467022,
0.3085312843,
0.3838112354,
0.1345810294,
-0.0767583027,
0.3682284355,
-0.1388893872,
0.1715148836,
-0.0561920106,
-0.2766789496,
0.1231014505,
-0.3229568601,
0.4427593052,
-0.3890259862,
-0.5869247317,
-0.0261676498,
0.6088613868,
-0.0799423903,
0.0471676998,
0.001069365,
-0.6515498757,
0.1510838419,
0.2368849963,
-0.6038607359,
0.1657550633,
0.0833352357,
-0.2432789952,
0.5286106467,
0.0565495118,
0.1514246762,
0.1610008627,
0.0062674233,
-0.0205574818,
0.0336550027,
-0.2053480148,
0.0584051125,
-0.3881586492,
-0.2232695967,
-0.2766708732,
0.1142416075,
-0.6176943183,
-0.1157789454,
-0.0040785451,
-0.0060767969,
0.1905205399,
-0.4303975403,
-0.4715015292,
-0.4421295822,
0.0833877549,
0.1422985494,
0.1381832361,
0.0436451621,
-0.3031486869,
0.0530531034,
0.143511951,
0.1261160076,
-0.2300033271,
0.1337678581,
-0.0990429893,
0.0407306813,
0.1203000098,
-0.0734406263,
-0.0396085344,
-0.2780363858,
0.3346633017,
-0.3411409855,
-0.3196768761,
0.3009841442,
0.006318375,
0.1508496553,
0.1158245206,
-0.0007815724,
-0.1596658081,
-0.2972940505,
0.3137167394,
-0.2311154306,
-0.2943923771,
0.1972483695,
0.0870382637,
-0.1306094527,
0.0353548229,
-0.032399375,
-0.1402105391,
-0.3077564836,
0.2243863791,
-0.0297676846,
0.1777117699,
0.1309599727,
-0.0659749657,
0.2286881953,
-0.4495869875,
-0.0930330679,
-0.3793690801,
-0.4064612985,
0.2686637044,
-0.3574323952,
-0.3385027051,
0.2035974711,
-0.0483302549,
0.2979920506,
-0.4815993011,
-0.3884243369,
0.055877924,
-0.1638437659,
0.1366732866,
0.0352125242,
0.0682566389,
0.2351160645,
0.0020120398,
0.0602584369,
0.0062223435,
-0.2107678652,
-0.1657509804,
0.1314434707,
0.0100709526,
-0.1628051698,
0.2522832453,
-0.0642600134,
1.0560592413,
0.1721005142,
0.3151407242,
0.1903136969,
-0.1302105784,
0.4150901437,
0.0204340965,
-0.4644974768,
0.3782862723,
0.1365864873,
0.071227327,
0.5356251597,
0.0849088877,
-0.0241978522,
-0.1429842263,
-0.2731942832,
-0.3066400588,
-0.4612725675,
-0.1710254252,
-0.4936254025,
-0.1529070139,
0.1018070579,
0.197253257,
-0.1076463759,
-0.0757331476,
0.1028872803,
0.4774157405,
-0.0359739177,
0.0718770772,
-0.0319619663,
-0.058474075,
-0.5831488967,
0.290879488,
-0.1497909129,
0.3832583725,
-0.1808605641,
-0.1551826745,
0.0510342047,
0.1128158197,
0.1967516541,
0.1507976502,
-0.1809979379,
0.0512615405,
-0.0323285162,
-0.3040091693,
-0.0077569392,
-0.1084323302,
0.1226699799,
-0.1071902141,
0.3432634771,
-0.109942764,
-0.2395550609,
0.045964241,
-0.3409726024,
-0.0488327853,
-0.2738786638,
-0.1810579002,
0.001354893,
-0.5135451555,
0.0551828258,
0.0573512688,
0.020469185,
-0.255304873,
0.1617475599,
0.0811554864,
-0.1298378855,
0.3313728273,
-0.0642573684,
-0.1135118529,
-0.049484469,
0.2542704642,
0.7222577929,
0.5145218372,
0.0259919427,
0.5672490597,
0.429284066,
-0.2849287093,
-0.074549295,
0.0857501179,
0.2011357993,
0.2865615189,
-0.0304519422,
0.1009449288,
0.2559731901,
0.2724110782,
-0.175997436,
-0.021921955,
0.3784891963,
0.3272143602,
-0.4583279192,
-0.1068809777,
0.1841284633,
-0.168747887,
-0.1287371814,
0.153784588,
0.75128299,
-0.0033000107,
0.0536217019,
-0.3418418467,
0.8587337732,
0.1655920446,
0.0386372395,
0.1619564146,
-0.1048228964,
0.0645731837,
-0.2112924755,
-0.1605528146,
-0.1299357116,
-0.280108422,
-0.0578053743,
-0.0410580523,
0.3252680302,
0.1310998052,
-0.2009351701,
0.0244132951,
-0.0685503334,
-0.2218251675,
-0.0223206151,
0.2070250958,
-0.492667824,
0.0456398949,
-0.0028750291,
0.1063137874,
0.0530522577,
0.7083500028,
0.0393659137,
-0.1093119383,
-0.2922387719,
-0.5481680632,
-0.3346357346,
0.0948110223,
-0.3203180432,
-0.2096466422,
0.306199193,
0.184819296,
0.5979791284,
-0.0845825896,
0.4049162269,
0.1325375289,
-0.3294119239,
0.0611126609,
-0.0312667713,
-0.1471181661,
-0.0801669955,
0.0519087538,
0.3487503827,
-0.1137114763,
-0.5420908928,
0.2875915468,
-0.0574868582,
-0.1385721713,
-0.1718662977,
-0.0302191116,
0.1991552263,
-0.2850140929,
0.1606153399,
0.0557777286,
-0.0895168856,
-0.0218387786,
0.0360084735,
0.2667576671,
-0.0061930614,
-0.0579693131,
0.1712968796,
0.2087732852,
-0.0225042924,
0.3785245121,
-0.3057326078,
-0.2468703538,
0.4902884364,
0.0002183758,
-0.2500407994,
-0.0924429148,
-0.0701010749,
0.5726214051,
-0.2033890635,
-0.2800238729,
-0.1201381683,
0.0112509513,
0.024813341,
0.1029979661,
0.0265245922,
-0.0608381033,
-0.1966089606,
-0.3183638155,
-0.4347276688,
0.2934987843,
-0.2207096964,
0.038578447,
-0.058061298,
0.3429792821,
0.1045023873,
-0.0766721815,
-0.2385696173,
-0.009802782,
-0.1426730603,
-0.0683299005,
0.1388898939,
-0.089099586,
0.3413825035,
-0.207566157,
0.1332700104,
-0.042180527,
-0.2105230838,
-0.1179679334,
-0.0782275796,
0.1763607413,
0.315833807,
-0.3287399411,
0.3149557412,
0.3022599816,
-0.0858846158,
-0.1625424623,
0.2107147276,
0.3952264488,
0.019757051,
0.0482296348,
0.1355821937,
-0.0942020416,
-0.1440533102,
-0.1222310662,
0.0641897619,
0.4821217656,
-0.1282274872,
0.0853109658,
-0.2682045996,
-0.0051907264,
0.1756947339,
0.3324035406,
0.1371475011,
-0.0455972739,
0.4158143997,
-0.2101756632,
0.0694432408,
0.1480614245,
0.2728184462,
-0.0900917053,
-0.3306915164,
0.0461690724,
0.4251645803,
0.1113984585,
-0.3196529448,
-0.0488685556,
-0.161498785,
-0.0968583748,
0.1143281013,
0.0761812404,
-0.0259041507,
0.0053268163,
-0.0132996878,
0.0065684984,
0.2280113846,
0.0950799659,
0.1266638339,
0.3640493751,
-0.3177200854,
0.1291839182,
0.4785379767,
0.0851218104,
0.0406564623,
0.3366435468,
-0.6280321479,
-0.0589383021,
-0.0815607905,
0.1480287313,
0.4779292345,
-0.2769849002,
0.1486769021,
0.0618313551,
-0.0689885616,
-0.0207246058,
-0.1918940246,
0.3566143811,
-0.1320739537,
0.2109929174,
-0.0814938396,
0.222669825,
-0.1446769983,
0.1445960253,
0.2512537837,
-0.1276020408,
-0.3587648571,
-0.2885822654,
0.0206004586,
-0.3564467132,
-0.0146331415,
-0.1489036083,
-0.3197976947,
-0.2557533383,
-0.2002058923,
0.3529807329,
0.1815345138,
-0.0449606329,
0.0448264927,
-0.0512137003,
-0.0913644955,
0.4747235477,
0.6740885973,
0.4399600923,
-0.0409460366,
0.2886544466,
0.1852495223,
0.1163601503,
-0.147940129,
0.2595909536,
0.0334460102,
0.2890909612,
0.0750913173,
0.0404674821,
0.0275564492,
-0.1459373832,
-0.2990348339,
-0.2283016443,
0.3499568701,
-0.244931221,
0.2190813869,
-0.711540997,
-0.1892391443,
-0.2809393704,
-0.0033742245,
-0.4887070954,
-0.0225814767,
0.1807853431,
0.021512486,
0.1311977059,
-0.568911314,
-0.000282177,
0.1059630215,
-0.1268512905,
0.581181705,
0.0522521362,
0.2496820241,
-0.1258330196,
-0.482409209,
0.22885786,
0.1799363196,
0.0329249613,
0.006751874,
-0.1956421733,
0.2004838139,
0.1216341332,
0.4542793334,
0.1533633173,
-0.4441285729,
-0.1604831219,
-0.0460050553,
-0.0326364376,
0.0996197239,
0.1713151932,
-0.0522152297,
-0.1146322265,
0.2863945663,
-0.1120172068,
-0.0277058948,
-0.2286149412,
0.4110289216,
-0.3094927371,
-0.5146023631,
0.2663414776,
0.2847550809,
0.3428767323,
-0.1468849331,
0.0479327366,
-0.0755528733,
-0.1291236877,
-0.2579481602,
-0.0884455666,
-0.0711438879,
0.4574633241,
0.0314330198,
-0.6105041504,
-0.0326716006,
-0.0578301102,
0.0464931987,
-0.2495932132,
-0.2135555297,
0.2689816654,
-0.3352736831,
0.1292811185,
0.1995378137,
0.1754188687,
-0.005708077,
-0.175171718,
-0.1427316219,
-0.3716394901,
0.4607825279,
-0.329546243,
0.0333349183,
-0.267599076,
0.2547487319,
-0.1026714742,
-0.3286082447,
-0.3509122431,
0.1460822225,
0.1917377263,
-0.0774891451,
-0.0530523546,
-0.0706049353,
-0.0707772151,
-0.0212189388,
-0.1599197537,
0.5427927375,
0.1841909736,
0.1211048886,
0.240424484,
-0.1166746989
] |
https://github.com/huggingface/datasets/issues/4237 | Common Voice 8 doesn't show datasets viewer | We can workaround this with
```python
email = HfApi().whoami(auth_token).get("email", "system@huggingface.co")
```
in the common voice scripts | https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 | 16 | Common Voice 8 doesn't show datasets viewer
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
We can workaround this with
```python
email = HfApi().whoami(auth_token).get("email", "system@huggingface.co")
```
in the common voice scripts | [
-0.4095231295,
0.0020364104,
0.0243135188,
0.146247983,
0.2652965188,
0.2654664814,
0.4983243048,
0.3220642507,
0.3277715743,
0.2375538051,
-0.5881981254,
-0.2214309275,
0.0245003197,
0.0251563713,
0.2471105903,
0.0379921906,
-0.1972731203,
0.1432468742,
0.3389151096,
-0.2024685293,
-0.032703951,
0.0783917233,
-0.2067918777,
0.2223894149,
-0.1827600002,
-0.1597011685,
-0.242271781,
0.4021184444,
-0.002825439,
-0.3776333928,
-0.0316066407,
0.2188205868,
0.1868147105,
0.1827961951,
-0.0001094196,
0.1927136183,
0.4278788567,
0.0475711934,
-0.0894590914,
-0.0975688919,
0.1208332404,
0.2626068592,
0.1217378154,
0.094657667,
-0.2206158787,
-0.063467361,
0.1419084668,
-0.5289818048,
0.3323993683,
0.3564035594,
0.1883834153,
0.207812205,
0.0832855925,
0.1949603409,
0.1147636846,
0.1261135638,
-0.0230323728,
0.0072656246,
0.1312955618,
0.22783494,
0.0798306167,
0.2049570084,
-0.003546,
-0.230021134,
-0.2633578181,
0.2481694818,
-0.1412241608,
-0.2639778852,
0.2134860903,
0.1988313198,
0.5939075947,
-0.226758033,
-0.1599364281,
0.1486585438,
0.0422473624,
-0.2770854831,
0.1401269138,
0.2389515191,
-0.2022548914,
0.2989360094,
-0.1305092573,
-0.1585634202,
-0.1354341954,
0.2562534213,
-0.1053296626,
0.3406786323,
-0.1108366996,
-0.0259123743,
0.0579131059,
-0.052866973,
0.00324734,
0.0676933825,
0.1261556447,
0.352956295,
-0.0113633443,
-0.1190205738,
0.1691236347,
-0.2231116295,
0.3862529993,
0.0062175477,
0.0508908406,
0.2924116552,
-0.1749304682,
-0.0369295515,
0.2731951475,
-0.1020030975,
0.2779817283,
0.2817975581,
0.4907807708,
0.2748304307,
0.1702087373,
-0.2577558756,
-0.3377166092,
0.0726531371,
0.1994701177,
-0.0609529689,
0.3739828765,
-0.3058968186,
-0.3022986948,
0.1830822527,
-0.1946165711,
-0.1905408651,
0.0767161101,
0.5923423767,
-0.0374209099,
0.1078701839,
0.1150152311,
0.1138830855,
-0.197316736,
-0.029759584,
-0.1968678534,
-0.047118485,
-0.0405799747,
0.0701660365,
0.2611654103,
-0.4457635283,
0.1941941828,
-0.1503422856,
0.6046065092,
-0.0312468857,
-0.0988431126,
0.1845177263,
-0.0651626885,
0.1855990589,
0.2584882081,
0.0775130987,
0.1337387413,
-0.1705448329,
-0.1591219753,
0.0898623243,
-0.0860228688,
-0.2711709738,
-0.2099296451,
0.2096272111,
0.1300888509,
-0.0822483599,
0.3909384906,
-0.012668265,
-0.17594482,
-0.2767807841,
-0.027302485,
0.2031156421,
0.1186555475,
0.0572054237,
0.4038031101,
0.3447987437,
-0.0716261193,
-0.1584733725,
-0.2723267972,
-0.2439525425,
-0.1831490993,
0.2988263369,
-0.0529611371,
-0.3138637245,
-0.3297160566,
0.2962136269,
0.5339968204,
-0.5630581379,
-0.4392895103,
0.1526240408,
0.0929537341,
0.0622512698,
0.0332339294,
-0.1990249902,
0.1449305713,
0.1041391566,
0.1736104935,
0.230777055,
0.05670885,
0.1260943264,
-0.0279317051,
-0.1963029653,
-0.2545321286,
0.1565270871,
0.1910212636,
0.0995030254,
0.2750103474,
-0.1525477767,
0.6661467552,
-0.0232165866,
0.0537507795,
0.1479224265,
0.1990569085,
-0.0027352644,
0.0314254873,
-0.1367360801,
0.1230817661,
0.0562161878,
0.0651147887,
0.0511122607,
-0.0596765615,
-0.3675555587,
-0.3306655586,
0.001687587,
-0.272334218,
-0.0811022073,
0.1896525323,
0.3229326904,
-0.007533913,
0.1917410046,
-0.0680542588,
0.0847138613,
0.3914942741,
0.1710556895,
0.1588059068,
0.4965259731,
-0.2434475273,
0.0706936568,
0.2032492608,
0.1975115389,
0.0811216235,
0.0481608398,
0.0165956896,
0.0701279938,
-0.1278975904,
0.2178532034,
0.0713631809,
0.1255715489,
0.2303213924,
-0.4480302036,
0.4249596894,
0.3493265212,
-0.0062635271,
0.0424776748,
-0.069127433,
0.322614789,
0.2981140614,
-0.0603615157,
0.2674869597,
0.2076251209,
0.1290943325,
-0.0003814212,
-0.033203423,
-0.2253498286,
-0.1373045146,
-0.1638943553,
0.6512545347,
-0.2698913813,
-0.8290802836,
0.028465163,
0.8027486205,
-0.0454727374,
0.0913589373,
-0.0936212912,
-0.6131052375,
-0.0022466599,
0.2481000721,
-0.5318960547,
0.0413680561,
0.3051361442,
0.0232542697,
0.4563534856,
0.0814501569,
0.0340250246,
0.1290748864,
-0.0258648787,
0.0333063267,
0.1071831509,
-0.0216472987,
0.0287546888,
-0.5776331425,
-0.2812432945,
-0.3400544524,
-0.0971815959,
-0.4578571618,
-0.0808669031,
-0.0543458834,
-0.0552883446,
0.0037297474,
-0.0490127504,
-0.2886350155,
-0.290525943,
0.1156925485,
0.1537787169,
0.1039958,
0.0692698807,
-0.4137776196,
0.0517629571,
0.2522603869,
0.1483545601,
-0.2723201513,
0.1613542587,
-0.3087028563,
0.1281907856,
0.0801776648,
-0.1117067933,
0.0376777239,
-0.296051085,
0.2651402354,
-0.3209290802,
-0.2039067745,
0.2876220644,
0.1157804057,
0.0543095209,
-0.0831368417,
-0.073598519,
-0.1482092589,
0.0269283131,
0.2344821841,
-0.215966329,
-0.2713258564,
0.0983486697,
0.0142233428,
-0.0669654459,
-0.0247221943,
-0.3469003439,
-0.327578783,
-0.3786556125,
0.083338134,
0.0055000894,
0.1476050466,
0.0750163496,
-0.1887687892,
0.1716427952,
-0.3423747122,
0.0620200485,
-0.2051534504,
-0.4287617505,
0.3789331019,
-0.4110793769,
-0.4037519097,
0.1403773576,
-0.1255555302,
0.2663928866,
-0.26704669,
-0.3346449137,
0.1360753179,
-0.0698052943,
0.0600351766,
0.0070764604,
0.1472149938,
0.3617826104,
0.100420326,
-0.1060339063,
-0.1234554723,
-0.1905680895,
-0.1989869028,
-0.0211863294,
-0.0098891426,
-0.1586038172,
0.2180593163,
-0.0161360744,
0.9828834534,
0.1225120723,
0.2577780485,
0.2104891092,
-0.3356346488,
0.3596498668,
0.1499953419,
-0.31152004,
0.3158492446,
0.2107171863,
0.0449013114,
0.6205459237,
0.0824509859,
-0.1074204892,
-0.2096976191,
-0.2124072313,
-0.3234891593,
-0.2991758287,
-0.1921718717,
-0.4294312596,
-0.0213500597,
0.0592318065,
0.2579843104,
-0.0667619035,
-0.121237509,
0.2544982135,
0.3117060959,
-0.1792772114,
0.1508807093,
0.1169779748,
-0.0148553401,
-0.3543696404,
0.3983813226,
-0.0686478168,
0.1949408948,
-0.0743635744,
-0.120489724,
0.1005709842,
-0.0050633824,
0.1001474112,
0.0266265422,
-0.2018437088,
0.1732802987,
-0.0639500245,
-0.1221142337,
0.0601321645,
-0.2950720787,
0.0100827813,
-0.2030518651,
0.0145762907,
-0.129543826,
-0.149458617,
0.1607454419,
-0.2042835653,
-0.1139373481,
-0.166529417,
-0.1603974998,
-0.041129712,
-0.4768490195,
0.0223012604,
-0.1386864632,
-0.0212151371,
-0.3814383149,
-0.0833031908,
0.1776443422,
-0.0887718499,
0.3026212454,
0.1275630593,
-0.027042307,
-0.1452365518,
0.2098961473,
0.547293067,
0.574593246,
0.0464194305,
0.5761632919,
0.4231189787,
-0.4154666066,
-0.1580874175,
-0.055506628,
0.4026757479,
0.1209518388,
-0.117794551,
-0.1559924036,
0.3231828809,
0.1407573074,
0.0541252233,
-0.1037524566,
0.3852938116,
0.2386910319,
-0.355784595,
-0.23482728,
0.1156047136,
-0.0923525169,
-0.0736681297,
0.1004486457,
0.2107428312,
-0.1308858395,
-0.1060638577,
-0.3822976351,
0.7001500726,
0.0862104818,
0.1584726423,
0.2178952992,
-0.2000707835,
-0.2269333154,
-0.117895633,
-0.0101031074,
-0.2465489656,
-0.1068886369,
-0.0703866482,
-0.065472275,
0.2732780874,
0.2285586298,
-0.3387247324,
0.1217753962,
-0.1402571946,
-0.2695190012,
0.0758519024,
0.3268202543,
-0.4496545196,
-0.0092348382,
-0.1994420141,
0.1499598771,
-0.0740741268,
0.504227221,
0.0356279984,
-0.2127586305,
-0.1253199428,
-0.3931192458,
-0.1102576107,
0.3564916849,
-0.2289008498,
-0.1220583767,
0.1939759552,
0.0853198469,
0.3172625899,
-0.0957694426,
0.2434880883,
0.2904349566,
-0.2748723626,
0.0465413965,
0.0290784482,
-0.0174876899,
-0.0397799462,
0.1293326467,
0.4555408061,
-0.1834358722,
-0.5169002414,
0.339815557,
0.042820435,
-0.1419732869,
-0.2942477465,
-0.1196090281,
0.3255223036,
-0.1298082024,
0.2364501953,
0.0374071188,
-0.0485897735,
-0.0647841766,
0.1356032789,
0.2848550081,
-0.1051679552,
-0.1378646195,
0.3573057652,
0.2479161769,
-0.0843303427,
0.2575146556,
-0.0405419245,
-0.1714737862,
0.4659648538,
0.084409602,
-0.1787452698,
-0.2442519069,
-0.1661802381,
0.3487425447,
0.0279357731,
-0.1970370114,
-0.1162826717,
0.0048743421,
-0.0725532621,
0.0778324753,
-0.1853795797,
-0.0586221516,
-0.1551221758,
-0.391951412,
-0.3959800601,
0.2556974888,
-0.1472911835,
0.1633789837,
0.1286509335,
0.2799342573,
0.102243565,
-0.1610576063,
-0.3604988754,
-0.0968428031,
0.0178461857,
-0.1723403335,
0.0756963044,
-0.0475709327,
0.2018498033,
-0.0022680575,
0.2453577965,
-0.1753807217,
-0.149382174,
-0.202634275,
0.003203697,
0.1076269224,
0.0979730263,
-0.2153236717,
0.246413812,
0.2236562073,
-0.2469602376,
-0.1577099711,
0.2888419032,
0.2200477421,
0.032739222,
0.0949513912,
0.0453515723,
-0.2805547118,
-0.069283098,
-0.1285692751,
-0.0847680643,
0.2699794471,
-0.1634649336,
0.2070039511,
-0.2304102629,
-0.1503248513,
0.2697722018,
0.1651128083,
0.361292541,
0.1892415136,
0.4473550916,
-0.2512055635,
-0.030881498,
0.1864175051,
0.3460605145,
-0.1689061671,
-0.2373768389,
0.2088302225,
0.2291546911,
0.2288900167,
-0.4951925576,
0.0281939376,
-0.1240890622,
-0.3327299654,
0.0861656368,
0.0608620569,
-0.0433885641,
0.0067570573,
0.1326345503,
-0.0106746899,
0.083333157,
0.020384999,
0.0470604636,
0.1400588006,
-0.4044212103,
0.1397071481,
0.4288198352,
0.0494205803,
0.1006957144,
0.3208620846,
-0.4111725986,
-0.0223654956,
-0.0070722997,
0.0929013267,
0.2976396084,
-0.3086199462,
0.1504617631,
-0.1613848954,
-0.1852205694,
-0.0088589247,
-0.1456955373,
0.3096089363,
0.0577067956,
0.2370492518,
-0.2057086378,
0.2459017485,
-0.1636512578,
0.1657892615,
0.291936487,
-0.153083995,
-0.1782578975,
-0.0914396644,
0.2231665254,
-0.2193258703,
0.1322920918,
-0.0906530693,
-0.1870512068,
-0.2133497298,
0.0409025326,
0.2738808692,
0.1083403826,
-0.1348112077,
0.0660591722,
-0.1510997862,
-0.1076767519,
0.2489170879,
0.6565270424,
0.2456158996,
-0.0831810758,
0.2005595416,
0.0303362627,
0.1617539823,
-0.2811760902,
0.0234779585,
-0.1312265545,
0.4641134739,
0.1465965956,
0.0212393217,
0.1321852207,
-0.1863654554,
-0.1750630438,
-0.1892008632,
0.1531144828,
-0.3255850673,
0.101146996,
-0.4603445828,
-0.2296047211,
-0.2635371983,
-0.2508557737,
-0.6011719108,
-0.2314706445,
0.3859605789,
0.0114565026,
0.1736731231,
-0.5614154935,
0.0726569593,
0.1401285678,
-0.0373795778,
0.4795394838,
0.1146570593,
0.3014341593,
-0.0574235655,
-0.5149940848,
0.2837609351,
0.3073301911,
-0.1371836811,
-0.1819283217,
-0.1930539906,
0.2739114761,
-0.0211846232,
0.5096980929,
-0.0544461943,
-0.2127359211,
-0.2437707037,
-0.148409456,
-0.1409821957,
0.0682762042,
0.2324044704,
-0.092578806,
-0.2485378236,
0.1116849855,
-0.241088599,
0.0891554281,
-0.1620506644,
0.3823186755,
-0.2464978248,
-0.4590024352,
0.2152916491,
0.1125795096,
0.5133965015,
-0.277648747,
0.1462625861,
0.0179705564,
-0.136863634,
-0.140401721,
0.1035974771,
-0.0963660032,
0.3877679706,
0.0259721167,
-0.5535507798,
-0.0886992365,
-0.0998720676,
0.0003994004,
-0.3125969768,
-0.012884533,
0.2098982781,
-0.3190429807,
0.0617212951,
0.2378132641,
0.0994137153,
-0.1196118966,
-0.3719259799,
-0.0565365106,
-0.3593907952,
0.328291893,
-0.2963142395,
-0.2528730035,
-0.4488342404,
0.2908834815,
-0.3308050931,
-0.1946897954,
-0.2062400728,
0.2813575268,
0.2250878513,
-0.1373201609,
0.019820109,
0.0549952537,
0.0662441552,
0.0838084146,
-0.1471394151,
0.4502892494,
0.2141239494,
0.0495649278,
-0.0975916684,
-0.1163917631
] |