html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2945 | Protect master branch | @lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution. | 64 | Protect master branch
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution.
@lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | [
-0.15531952679157257,
-0.1002306342124939,
-0.0703212171792984,
-0.07981692999601364,
-0.10425391793251038,
-0.18798768520355225,
0.010403447784483433,
0.2728639543056488,
-0.009848886169493198,
-0.08413966745138168,
0.2926151156425476,
-0.07787521183490753,
-0.1324571818113327,
0.2158902883529663,
-0.0562291257083416,
0.17054565250873566,
0.2003232091665268,
-0.04079793021082878,
-0.09233273565769196,
0.027923399582505226,
0.02260850928723812,
-0.06870285421609879,
0.08319995552301407,
0.04363008216023445,
-0.18378226459026337,
0.005401227157562971,
-0.014811803586781025,
0.15649625658988953,
-0.4397662281990051,
-0.4695700705051422,
0.1452464908361435,
0.23224036395549774,
0.025106294080615044,
0.5705346465110779,
-0.00010436370212119073,
-0.0003455299010965973,
0.1694866269826889,
-0.04060080274939537,
-0.1401023119688034,
-0.2154635787010193,
-0.49010729789733887,
-0.44479578733444214,
-0.07006344199180603,
-0.008354135788977146,
0.1288069784641266,
0.05286785960197449,
-0.13249990344047546,
0.023845769464969635,
0.38484516739845276,
0.10555234551429749,
0.23861092329025269,
-0.10285189002752304,
0.18124035000801086,
0.0137694226577878,
0.3920089304447174,
0.5474526882171631,
-0.06663452088832855,
0.3031995892524719,
0.054018065333366394,
0.0006758928066119552,
0.06110583618283272,
0.17410853505134583,
-0.0823725163936615,
-0.286670058965683,
0.2270195335149765,
-0.17799131572246552,
0.5181743502616882,
-0.4243534207344055,
-0.24158386886119843,
-0.08311760425567627,
0.05237932875752449,
-0.17814625799655914,
-0.4089038074016571,
-0.241937056183815,
-0.1499476432800293,
0.007633797824382782,
0.06778036803007126,
0.24686414003372192,
0.039739787578582764,
0.003649464575573802,
-0.3773652911186218,
-0.27180883288383484,
-0.004407730884850025,
0.0492042638361454,
0.1419408917427063,
-0.16262944042682648,
0.06642632186412811,
-0.12703843414783478,
0.2942226231098175,
-0.04732835292816162,
-0.14698359370231628,
-0.3676341772079468,
-0.2413337528705597,
-0.012587533332407475,
-0.10261356830596924,
-0.1957472562789917,
-0.2462063580751419,
-0.3248276114463806,
0.4251306653022766,
0.3889685869216919,
-0.38327258825302124,
0.013739803805947304,
-0.030489405617117882,
-0.08101645112037659,
0.20718491077423096,
0.11785817891359329,
-0.010490071028470993,
0.05848859250545502,
0.5307133197784424,
0.3144407868385315,
0.005158527754247189,
0.3255855441093445,
0.30156993865966797,
0.003047175006940961,
0.03444604575634003,
0.5741187930107117,
0.4289446771144867,
-0.262920618057251,
0.12764763832092285,
0.19597367942333221,
-0.3412007689476013,
-0.38450801372528076,
0.07113105058670044,
-0.08617232739925385,
0.11032578349113464,
0.027133630588650703,
-0.11471155285835266,
0.06680163741111755,
0.045190632343292236,
-0.03808610513806343,
-0.30790287256240845,
-0.14148540794849396,
-0.37440037727355957,
-0.06853056699037552,
0.186040461063385,
-0.45710450410842896,
0.1491675227880478,
0.43252432346343994,
-0.06803739070892334,
-0.19928444921970367,
0.044552337378263474,
0.12922582030296326,
0.055587347596883774,
0.29611945152282715,
-0.15379787981510162,
-0.4526282846927643,
0.22359661757946014,
0.13133300840854645,
-0.0668996125459671,
0.19400425255298615,
-0.1598995476961136,
-0.2616221606731415,
-0.10497579723596573,
0.2977657914161682,
-0.1482723206281662,
0.3071562647819519,
-0.5237662196159363,
0.03637342154979706,
-0.004483797121793032,
0.3506705164909363,
0.4910375475883484,
0.3025479316711426,
0.32807865738868713,
-0.16859371960163116,
0.06175652891397476,
0.19034552574157715,
0.3235115110874176,
-0.05168657749891281,
0.06230420991778374,
-0.2877364754676819,
0.10950364917516708,
0.14507333934307098,
-0.31216010451316833,
0.01755587011575699,
-0.005236246157437563,
-0.1312820464372635,
0.010776033625006676,
-0.07140670716762543,
-0.11198782175779343,
-0.09892980009317398,
-0.36668553948402405,
0.06940320134162903,
-0.04073728248476982,
-0.10077716410160065,
0.20795726776123047,
-0.3201755881309509,
-0.09479382634162903,
0.20508162677288055,
-0.14812302589416504,
0.020898478105664253,
-0.29198744893074036,
-0.6061381101608276,
-0.1636558175086975,
-0.0634387955069542,
0.12491443753242493,
0.22756393253803253,
0.3607693612575531,
-0.00503105903044343,
-0.028361745178699493,
-0.1714027225971222,
-0.009397406131029129,
0.1125069111585617,
0.3421365022659302,
-0.14967811107635498,
-0.24154196679592133,
0.13224638998508453,
-0.354588121175766,
0.09114091098308563,
-0.07851210236549377,
-0.009774935431778431,
0.03444841131567955,
-0.315788209438324,
0.34127968549728394,
-0.044052962213754654,
-0.12080135941505432,
-0.11415072530508041,
0.2415170967578888,
0.09595165401697159,
-0.17473354935646057,
-0.20392122864723206,
-0.20740646123886108,
0.2601909339427948,
-0.24083061516284943,
0.30186569690704346,
0.13001373410224915,
0.10263737291097641,
-0.14118081331253052,
-0.03645326569676399,
-0.025096364319324493,
0.3619363009929657,
0.23630425333976746,
-0.08991744369268417,
-0.0591583289206028,
0.16876062750816345,
-0.04906313866376877,
0.20357011258602142,
0.22469453513622284,
0.42524245381355286,
0.3736156225204468,
-0.10268167406320572,
0.06260106712579727,
-0.09179246425628662,
-0.07872448116540909,
0.024594513699412346,
-0.3291274607181549,
0.3280373811721802,
0.07369436323642731,
-0.1394646316766739,
-0.1740320771932602,
-0.10333257168531418,
-0.1740742176771164,
-0.22026918828487396,
-0.17077264189720154,
-0.012951225973665714,
-0.16909807920455933,
0.19436493515968323,
-0.33659201860427856,
0.2223694622516632,
-0.2772078812122345,
0.14857926964759827,
0.015052537433803082,
-0.25160685181617737,
-0.10240118205547333,
0.0682978555560112,
-0.0059672133065760136,
-0.13271483778953552,
0.12417104095220566,
0.37738320231437683,
0.1278747320175171,
0.1700998842716217,
0.004274277947843075,
0.020151330158114433,
0.2572828233242035,
-0.11643599718809128,
0.3533257842063904,
0.14430703222751617,
-0.10544520616531372,
0.054064542055130005,
0.33645594120025635,
0.18121865391731262,
0.06433171778917313,
0.34691932797431946,
-0.003324149176478386,
0.035258226096630096,
-0.2084069699048996,
-0.045984745025634766,
-0.26021048426628113,
-0.5283417701721191,
0.21923768520355225,
-0.11063802987337112,
-0.3552161455154419,
-0.008504314348101616,
-0.04536616429686546,
0.04741809889674187,
-0.5248720645904541,
0.13602997362613678,
0.18358106911182404,
0.2905261218547821,
-0.31780317425727844,
-0.11997797340154648,
0.12631574273109436,
-0.02259518764913082,
0.012344174087047577,
0.12856005132198334,
0.36316001415252686,
-0.22668103873729706,
0.459450900554657,
0.23898117244243622,
-0.16955658793449402,
-0.47264015674591064,
-0.34341326355934143,
0.019130084663629532,
-0.20393632352352142,
-0.11797474324703217,
0.009818697348237038,
-0.0989307165145874,
0.09215410053730011,
-0.35854029655456543,
-0.32571232318878174,
-0.018773891031742096,
-0.3730047345161438,
-0.16009575128555298,
0.06959563493728638,
0.06288591027259827,
-0.23461760580539703,
-0.1140403002500534,
-0.3865898847579956,
-0.28215277194976807,
0.47935575246810913,
-0.016432981938123703,
0.11565907299518585,
-0.043173301964998245,
-0.2923773527145386,
-0.04591802507638931,
0.08748285472393036,
0.1366390585899353,
-0.000044830892875324935,
-0.3609323501586914,
0.03256666287779808,
-0.04066038131713867,
-0.029347043484449387,
0.35260987281799316,
0.18549099564552307,
-0.4302407503128052,
0.07125172019004822,
-0.3217605650424957,
-0.1558188945055008,
-0.05208456888794899,
0.4864443242549896,
0.3141201436519623,
-0.09737382084131241,
0.07108031213283539,
0.10355085879564285,
-0.1919003278017044,
0.055089160799980164,
-0.1816122680902481,
0.1472240686416626,
0.3454882502555847,
0.28571847081184387,
0.03789980337023735,
0.14586755633354187,
0.025497399270534515,
0.7140877842903137,
0.3778497874736786,
-0.05965737625956535,
0.21033748984336853,
0.31069713830947876,
-0.027717936784029007,
0.0039905970916152,
-0.26015663146972656,
0.06504698097705841,
-0.10124312341213226,
-0.000021042458683950827,
0.08670398592948914,
-0.1295781433582306,
-0.1229654923081398,
-0.011210812255740166,
-0.4777138829231262,
0.00915592722594738,
-0.41467639803886414,
-0.2396632730960846,
-0.3181843161582947,
0.1842498630285263,
-0.022525612264871597,
-0.4854884743690491,
0.1313801109790802,
0.053771089762449265,
0.23057636618614197,
0.2159711867570877,
0.21420615911483765,
0.18121565878391266,
-0.020259149372577667,
-0.05108439922332764,
-0.12007374316453934,
-0.06772612035274506,
-0.0043310122564435005,
0.14525043964385986,
0.0905802845954895,
-0.16704106330871582,
0.03180547058582306,
0.06955026835203171,
0.329990953207016,
-0.014868647791445255,
0.14029142260551453,
-0.17080718278884888,
-0.5094850659370422,
0.6086311936378479,
-0.3185943365097046,
0.13940280675888062,
0.2990989089012146,
0.5112244486808777,
0.43976345658302307,
-0.2954540252685547,
-0.19531670212745667,
0.2071225494146347,
0.03255609795451164,
0.19783642888069153,
0.17735029757022858,
0.1449771672487259,
0.27830713987350464,
-0.49038106203079224,
0.28877419233322144,
0.15483331680297852,
-0.2504819929599762,
-0.15517601370811462,
-0.0039055286906659603,
-0.027050260454416275,
0.12646284699440002,
-0.026303596794605255,
-0.24539798498153687,
0.009127466008067131,
-0.10943756997585297,
0.17344564199447632,
0.13292022049427032,
0.06982778757810593,
0.4152195155620575,
0.594659149646759,
0.13493406772613525,
-0.3891986608505249,
-0.048201270401477814,
-0.1750735640525818,
-0.07428334653377533,
0.3271436095237732,
0.19835104048252106,
0.24822799861431122,
0.020348481833934784,
0.17768624424934387,
-0.12347229570150375,
-0.2662383019924164,
-0.20336684584617615,
-0.03849121928215027,
-0.07674269378185272,
0.007589299697428942,
0.08732911199331284,
-0.0458977036178112,
-0.09099221974611282,
0.013048730790615082,
0.13999849557876587,
-0.3660997450351715,
0.16378498077392578,
0.6180498600006104,
0.9825441837310791,
0.39756709337234497,
0.08903370797634125,
-0.25465646386146545,
-0.32738280296325684,
0.32599085569381714,
-0.3401079773902893,
-0.16645076870918274,
-0.24701723456382751,
-0.12358801811933517,
-0.18424609303474426,
-0.3403116464614868,
-0.03869447112083435,
-0.4898473620414734,
-0.3528556227684021,
0.1351126879453659,
-0.21805518865585327,
0.5279190540313721,
0.008177612908184528,
0.12338604778051376,
0.19101881980895996,
-0.12231443077325821,
0.25515133142471313,
0.19827066361904144,
0.06181138753890991,
0.10409525036811829,
-0.004027710761874914,
-0.4687904119491577,
-0.0022326919715851545,
0.020538879558444023,
-0.3772697448730469,
0.0891471803188324,
-0.34377795457839966,
0.03884703665971756,
-0.20635327696800232,
-0.31605222821235657,
0.11582726985216141,
-0.08704768866300583,
0.6059404611587524,
0.16662999987602234,
-0.07945197075605392,
-0.04462064057588577,
0.29138895869255066,
0.4645250141620636,
-0.22885167598724365,
-0.2195305973291397,
0.5223727822303772,
-0.21336379647254944,
-0.13021734356880188,
-0.20476163923740387,
-0.0803343877196312,
-0.2370925396680832,
-0.26094791293144226,
-0.12804299592971802,
-0.32823267579078674,
0.07950174063444138,
0.0417141318321228,
0.2636535167694092,
-0.09106969833374023,
-0.16760607063770294,
0.18599306046962738,
0.11548547446727753,
-0.1075727567076683,
-0.11858490109443665,
-0.16952039301395416,
-0.2610395550727844,
-0.06781601905822754,
0.20160098373889923,
0.16160546243190765,
-0.12060696631669998,
-0.07676412910223007,
0.09965729713439941,
-0.24433663487434387,
-0.2207898646593094,
-0.20729225873947144,
0.10598790645599365,
-0.1394687443971634,
0.09298136085271835,
-0.5486781001091003,
-0.32993441820144653,
0.051746830344200134,
0.2461933195590973,
0.2794158160686493,
0.33049848675727844,
0.11800039559602737,
-0.09977074712514877,
-0.22444932162761688,
0.218643456697464,
-0.3279264569282532,
0.16864924132823944,
0.023584164679050446,
0.15881133079528809,
-0.02600964345037937,
0.040430232882499695,
-0.3905956447124481,
0.16031545400619507,
-0.12548045814037323,
-0.021126115694642067,
-0.2255210131406784,
-0.10175339132547379,
-0.0006301145767793059,
-0.30818623304367065,
0.03248762711882591,
0.023433173075318336,
-0.19575658440589905,
-0.2830151319503784,
0.09266888350248337,
0.065695621073246,
0.06478946655988693,
-0.05701356753706932,
-0.05746068060398102,
-0.10815755277872086,
0.08275330066680908,
0.27203232049942017,
0.23969247937202454,
-0.15849129855632782,
0.1097131222486496,
-0.032224759459495544,
0.17108850181102753,
0.11058501899242401,
-0.02477268874645233,
0.08924166858196259,
0.014632507227361202,
-0.2658015787601471,
-0.03537481650710106,
0.26715999841690063,
-0.18174627423286438,
-0.21714390814304352,
-0.26853957772254944,
0.18883568048477173,
0.10563383996486664,
0.5840901136398315,
0.20288021862506866,
0.14421692490577698,
-0.4050825536251068,
0.1754089593887329,
-0.05319758132100105,
-0.0036355708725750446,
-0.16923554241657257,
-0.0969402864575386,
-0.08496216684579849,
0.27936020493507385,
-0.08671915531158447,
-0.30359721183776855,
0.2713839113712311,
0.1881815791130066,
0.0007485296810045838,
0.10497120022773743,
0.5280755758285522,
0.12962067127227783,
-0.18965227901935577,
0.42213574051856995,
0.27124306559562683,
-0.0876760333776474,
0.49490007758140564,
0.47023290395736694,
-0.11318214237689972,
-0.02032512053847313,
-0.08273597061634064,
0.11661382764577866,
0.23068732023239136,
-0.2540964186191559,
0.12847207486629486,
0.2962189018726349,
0.6462966799736023,
-0.1688840389251709,
0.39355477690696716,
-0.033096227794885635,
0.3437396287918091,
0.19799332320690155,
0.05874063819646835,
-0.2460494339466095,
0.39270922541618347,
0.21170756220817566,
0.330151230096817,
-0.6189894080162048,
0.1363731324672699,
0.4914030134677887,
0.049282655119895935,
0.199581578373909,
-0.40010568499565125,
-0.04923287406563759,
-0.05847601220011711,
-0.048312991857528687,
-0.07818276435136795,
0.16349563002586365,
0.12373755872249603,
0.2829662263393402,
0.006584235932677984,
-0.08837808668613434,
-0.04344049468636513,
0.18504810333251953,
0.24156180024147034,
-0.11699779331684113,
-0.18117307126522064,
0.35775500535964966,
-0.276198148727417,
0.06649363040924072,
0.2154606133699417,
0.1350686103105545,
-0.07471626251935959,
-0.06863386183977127,
0.18023458123207092,
0.45039457082748413,
-0.1699340045452118,
0.022511504590511322,
0.05574961379170418,
-0.1625676304101944,
0.15771736204624176,
0.08014728873968124,
0.2580326497554779,
-0.05334081873297691,
0.11280255019664764,
0.03542693704366684,
-0.41529789566993713,
-0.025322267785668373,
0.43308109045028687,
0.556464433670044,
-0.3377304971218109,
0.4601389467716217,
0.11926820129156113,
0.2847006022930145,
-0.03268490359187126,
0.4374353885650635,
-0.04712602123618126,
0.11639229208230972,
-0.005153660662472248,
0.1430787742137909,
0.028089698404073715,
0.25758814811706543,
0.14149977266788483,
-0.03334528207778931,
-0.15928876399993896,
0.03010641224682331,
-0.1215411052107811,
0.1274351179599762,
0.2968396544456482,
0.17307066917419434,
0.419888973236084,
-0.29471391439437866,
0.12756891548633575,
0.12823450565338135,
-0.08756951987743378,
-0.3413965702056885,
0.009521656669676304,
0.09408494830131531,
-0.36052924394607544,
0.004247516393661499,
0.22248147428035736,
-0.06943992525339127,
-0.024194512516260147,
0.11893364042043686,
0.40947774052619934,
0.19279032945632935,
0.11209263652563095,
0.10513085126876831,
-0.04934779927134514,
0.32094308733940125,
-0.39184579253196716,
0.22496171295642853,
0.189223051071167,
-0.10292981564998627,
-0.22188851237297058,
-0.05109889805316925,
0.0073660146445035934,
0.021280335262417793,
-0.43550899624824524,
-0.1401803195476532,
-0.16222603619098663,
0.42098402976989746,
-0.1355971246957779,
0.06829797476530075,
-0.37221774458885193,
0.06876685470342636,
-0.03713426738977432,
0.2683561146259308,
-0.3000992238521576,
0.08640863001346588,
0.05254732817411423,
0.017337964847683907,
0.08837056905031204,
0.1305798441171646,
0.06843451410531998,
0.25285086035728455,
-0.35231563448905945,
-0.12488924711942673,
0.35866209864616394,
-0.019470620900392532,
0.09103628247976303,
-0.21726886928081512,
0.41820433735847473,
0.465445876121521,
-0.1480814516544342,
-0.3321150243282318,
-0.263518363237381,
-0.01115625910460949,
-0.27983394265174866,
-0.5420891642570496,
0.298637717962265,
0.13786809146404266,
0.19743824005126953,
-0.10587076097726822,
0.03660714253783226,
-0.07432663440704346,
-0.15276366472244263,
0.061171870678663254,
-0.19878600537776947
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 50 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 28 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 22 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 27 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 109 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | [
-0.22893071174621582,
0.38345417380332947,
0.04034576937556267,
0.25503984093666077,
-0.012111208401620388,
0.2622571289539337,
0.5036684274673462,
0.13295303285121918,
0.34428197145462036,
0.1357172727584839,
-0.10897453129291534,
0.07728376984596252,
0.07315050810575485,
-0.0056993099860847,
-0.12562286853790283,
0.0789283961057663,
0.03644532710313797,
-0.00538852671161294,
0.21494989097118378,
0.10395482927560806,
-0.42388343811035156,
0.10729541629552841,
-0.1728552281856537,
0.1861153393983841,
0.026095272973179817,
-0.13634201884269714,
0.12126047164201736,
0.36073023080825806,
-0.03078894503414631,
-0.39220666885375977,
0.3530231714248657,
0.06345352530479431,
0.4639183282852173,
0.2582460641860962,
-0.00011924601858481765,
-0.013706821016967297,
0.23068411648273468,
0.12449928373098373,
-0.07372736185789108,
0.08710000663995743,
-0.18398518860340118,
-0.14096763730049133,
0.16523005068302155,
-0.09768626093864441,
0.17674390971660614,
0.3634915351867676,
-0.10213719308376312,
-0.20092986524105072,
-0.013041604310274124,
0.3790339529514313,
0.15730014443397522,
-0.03818519786000252,
-0.1186790019273758,
-0.07520411908626556,
0.4933358132839203,
-0.15929806232452393,
-0.1331799328327179,
0.27983829379081726,
0.079025037586689,
-0.11457046866416931,
-0.09899155795574188,
0.19957301020622253,
-0.16214941442012787,
0.14715783298015594,
0.018658237531781197,
0.031129587441682816,
0.21623118221759796,
-0.4581093490123749,
0.3521411120891571,
0.15125790238380432,
0.9656504988670349,
-0.19557349383831024,
-0.19140425324440002,
-0.08874901384115219,
0.013303599320352077,
-0.03300262987613678,
0.43260353803634644,
0.4286230206489563,
-0.3245687484741211,
0.2523709833621979,
0.06596919894218445,
0.08356534689664841,
-0.08255057036876678,
-0.0019088556291535497,
0.07128514349460602,
0.14865177869796753,
-0.05047028511762619,
0.11955656856298447,
-0.11473099887371063,
-0.08340056240558624,
0.38633522391319275,
-0.2138272076845169,
-0.2546020448207855,
0.19166679680347443,
-0.33943691849708557,
0.28987035155296326,
0.05345321074128151,
0.7778058648109436,
0.1578780710697174,
0.315530002117157,
0.12502416968345642,
-0.05405185744166374,
0.21362419426441193,
0.06518997251987457,
0.008593139238655567,
0.3214893937110901,
-0.11223886907100677,
-0.01692315563559532,
0.4271060824394226,
0.11744195967912674,
-0.08161666989326477,
-0.00899034459143877,
-0.020045751705765724,
-0.42947375774383545,
0.3538792133331299,
0.10540711134672165,
0.40811875462532043,
-0.2856420576572418,
-0.12170076370239258,
-0.00029498085496015847,
0.15813182294368744,
-0.02397100068628788,
0.05888279527425766,
0.5011532306671143,
-0.27177122235298157,
0.04268356040120125,
0.06825164705514908,
0.17944522202014923,
0.018610548228025436,
0.09776043146848679,
-0.08779969811439514,
-0.08900279551744461,
-0.26671814918518066,
-0.05143817514181137,
0.40864694118499756,
-0.3225748538970947,
0.09556466341018677,
0.25667718052864075,
0.027048228308558464,
-0.17929419875144958,
0.19183211028575897,
-0.04149749502539635,
-0.03285691514611244,
0.357686847448349,
0.39729568362236023,
0.33763399720191956,
0.17493268847465515,
-0.21229636669158936,
-0.03499547392129898,
0.18631133437156677,
-0.48729023337364197,
-0.402504026889801,
-0.03366352990269661,
0.1213274672627449,
-0.0833243578672409,
0.06320510804653168,
-0.19803698360919952,
-0.048257313668727875,
0.3823130130767822,
-0.3008549213409424,
-0.06183571740984917,
-0.013725735247135162,
-0.22062009572982788,
-0.5042764544487,
0.04070750251412392,
0.4012893736362457,
-0.3596988618373871,
0.13036705553531647,
-0.09155408293008804,
-0.26408642530441284,
0.1504325270652771,
0.0056374757550656796,
0.005634412635117769,
0.36168181896209717,
-0.281220018863678,
0.015607284381985664,
0.2774582505226135,
-0.39389458298683167,
-1.0015971660614014,
-0.021002883091568947,
0.07309971004724503,
0.16604261100292206,
0.24440614879131317,
0.11913692951202393,
0.36593806743621826,
-0.03034602291882038,
0.17047683894634247,
0.31871286034584045,
0.13007496297359467,
0.11197409778833389,
-0.06299635767936707,
-0.20385506749153137,
0.2796611785888672,
0.1339266002178192,
0.08833891898393631,
0.3009036183357239,
0.3125998079776764,
-0.05693408101797104,
0.25109538435935974,
-0.18726147711277008,
0.11680440604686737,
0.19251590967178345,
0.011495418846607208,
-0.03513600304722786,
0.13751450181007385,
-0.12773755192756653,
-0.42040935158729553,
0.3514481484889984,
-0.008116873912513256,
0.08516720682382584,
0.07597919553518295,
-0.2027428150177002,
-0.31846415996551514,
0.09134064614772797,
-0.5447551012039185,
-0.28899693489074707,
0.08510623127222061,
0.2938993275165558,
0.21242493391036987,
0.02368175983428955,
0.18916365504264832,
0.33741435408592224,
-0.20822709798812866,
0.12719608843326569,
-0.18114061653614044,
0.038606200367212296,
-0.18833735585212708,
-0.1364489048719406,
-0.212247833609581,
0.046915505081415176,
0.2001284509897232,
0.2527484893798828,
-0.21343302726745605,
0.19610178470611572,
0.15121343731880188,
0.03749867156147957,
-0.3785577416419983,
-0.05955607444047928,
-0.02237769588828087,
0.12173015624284744,
0.1568485051393509,
0.13817834854125977,
0.14832361042499542,
-0.04439444839954376,
-0.19221928715705872,
0.13775406777858734,
-0.15963444113731384,
0.1437312811613083,
-0.32665136456489563,
0.24303637444972992,
0.24470621347427368,
0.09005036950111389,
0.0856967568397522,
0.034452907741069794,
0.3054705262184143,
0.02411777898669243,
0.07459583878517151,
-0.28580430150032043,
0.10126132518053055,
-0.07780792564153671,
0.0593024305999279,
0.022547272965312004,
0.0812816470861435,
0.2497536689043045,
-0.17460127174854279,
0.016886264085769653,
0.2869936525821686,
0.34967926144599915,
0.537713885307312,
-0.04098670929670334,
0.05155003070831299,
0.06679680198431015,
0.04791204258799553,
0.08966902643442154,
0.11925143748521805,
0.08577132970094681,
-0.07022726535797119,
0.26344889402389526,
0.12843379378318787,
0.22416602075099945,
-0.06479745358228683,
-0.11386076360940933,
-0.1075415164232254,
0.41942983865737915,
-0.48751407861709595,
-0.08438762277364731,
0.10005546361207962,
0.07484029233455658,
0.18120118975639343,
-0.24284745752811432,
-0.08878229558467865,
-0.14609871804714203,
-0.24304574728012085,
0.31163668632507324,
0.09407051652669907,
0.08353719860315323,
-0.5119575262069702,
0.16444151103496552,
0.00753771560266614,
-0.20180627703666687,
-0.11375715583562851,
0.12387923151254654,
-0.16583380103111267,
-0.014107504859566689,
0.18624503910541534,
-0.1799398809671402,
0.1873876452445984,
-0.29515889286994934,
0.24375160038471222,
-0.390175998210907,
-0.19543245434761047,
0.015109993517398834,
0.05788565054535866,
0.40984150767326355,
0.12543119490146637,
0.15510693192481995,
0.18641065061092377,
-0.3417645990848541,
0.05660281330347061,
-0.10751939564943314,
-0.15106113255023956,
0.23337101936340332,
-0.055026426911354065,
0.09385569393634796,
0.034196607768535614,
-0.2493751347064972,
-0.5408245921134949,
-0.25017887353897095,
-0.009575989097356796,
0.38588982820510864,
0.0983009934425354,
-0.0028514296282082796,
-0.1126534640789032,
0.0033437306992709637,
0.2670297622680664,
0.39376792311668396,
-0.21082803606987,
-0.24920208752155304,
0.21024949848651886,
-0.20926794409751892,
-0.33469927310943604,
0.08194943517446518,
-0.10423080623149872,
0.04457079619169235,
0.25238361954689026,
-0.4788488447666168,
-0.09063442051410675,
-0.3600657880306244,
0.40960779786109924,
-0.23261570930480957,
0.0938282385468483,
0.3463048040866852,
0.08929312974214554,
0.14639881253242493,
-0.04174871742725372,
-0.2757164239883423,
-0.06513574719429016,
-0.2946411967277527,
-0.06823215633630753,
0.3381982743740082,
0.42744946479797363,
-0.0575701966881752,
0.3770320415496826,
0.3002278804779053,
0.3604494333267212,
0.33447137475013733,
0.04584134742617607,
0.3711138665676117,
0.05426103249192238,
-0.25947368144989014,
0.10877546668052673,
-0.19434639811515808,
-0.14016082882881165,
0.3007431924343109,
0.08898238837718964,
-0.19526419043540955,
-0.05253170058131218,
-0.3804522752761841,
-0.28078943490982056,
-0.2852860689163208,
-0.09924264252185822,
-0.24633212387561798,
0.25375625491142273,
0.11914075165987015,
0.11004309356212616,
-0.44624432921409607,
-0.3691142499446869,
0.028844371438026428,
0.5546329021453857,
-0.3098390996456146,
0.11157537251710892,
-0.3508033752441406,
0.13669882714748383,
-0.6549721956253052,
0.25224554538726807,
0.03402520716190338,
0.49580591917037964,
-0.17412416636943817,
0.1266971230506897,
-0.001508296118117869,
-0.10742900520563126,
0.5570680499076843,
-0.6522980332374573,
0.4618300795555115,
0.05812261998653412,
0.11573108285665512,
0.010197237133979797,
-0.22434519231319427,
-0.092256098985672,
0.24168004095554352,
0.13694162666797638,
0.21455484628677368,
0.16392184793949127,
0.04404178261756897,
0.07620903104543686,
0.16659311950206757,
-0.20013225078582764,
-0.2790578603744507,
-0.2271348237991333,
-0.3418879806995392,
-0.3903852105140686,
0.1280060112476349,
0.04219944775104523,
0.1854700744152069,
-0.15174368023872375,
0.11716164648532867,
-0.40468841791152954,
0.23697781562805176,
0.1301802098751068,
0.16028229892253876,
0.18779192864894867,
0.06457541882991791,
0.21815897524356842,
-0.04804522916674614,
0.07534824311733246,
-0.1291564404964447,
0.5240870118141174,
-0.2804771065711975,
-0.328378826379776,
-0.052490558475255966,
-0.19998587667942047,
-0.11711730062961578,
0.11224228888750076,
-0.32655733823776245,
-0.05009191855788231,
-0.13848181068897247,
-0.13273753225803375,
-0.31433072686195374,
0.11707457154989243,
0.042603518813848495,
-0.13543406128883362,
-0.3776836097240448,
-0.32019370794296265,
0.3641437888145447,
0.21170039474964142,
-0.44672754406929016,
0.3404744863510132,
0.11984780430793762,
-0.4280627369880676,
0.18246927857398987,
0.05175996199250221,
0.7466566562652588,
0.07988975942134857,
0.27802109718322754,
0.09727665036916733,
-0.11229541152715683,
0.20011721551418304,
0.11617837846279144,
0.05655701085925102,
-0.3728865385055542,
-0.4541018009185791,
-0.09887207299470901,
-0.22054283320903778,
-0.13453729450702667,
-0.024941012263298035,
-0.23379337787628174,
0.28174498677253723,
-0.11297839134931564,
0.3188052475452423,
0.27431026101112366,
0.04803721234202385,
-0.3741956651210785,
-0.3764997124671936,
-0.12099436670541763,
0.1251862645149231,
-0.19382382929325104,
0.1358688622713089,
-0.22749030590057373,
0.09111547470092773,
0.0849042534828186,
-0.16739493608474731,
-0.439121812582016,
0.1967896819114685,
-0.41144585609436035,
0.1381167471408844,
-0.2974178194999695,
-0.38368257880210876,
0.08779988437891006,
0.5960642099380493,
0.2849672734737396,
0.36045941710472107,
-0.15430274605751038,
0.06006646156311035,
0.0793893113732338,
0.11794499307870865,
0.024958236142992973,
0.007455222308635712,
0.19626374542713165,
-0.08069345355033875,
-0.2981882393360138,
-0.015169097110629082,
-0.2781275510787964,
-0.32153040170669556,
-0.10555335879325867,
0.2862679660320282,
0.40390580892562866,
-0.3201121985912323,
-0.2076888084411621,
-0.3106459975242615,
0.0849744901061058,
-0.2798958718776703,
0.09370280057191849,
0.04704267159104347,
-0.07560098171234131,
0.3795402944087982,
-0.33688846230506897,
-0.4257122576236725,
-0.14751797914505005,
0.5242763757705688,
-0.07907763868570328,
-0.1337568312883377,
0.5711382031440735,
-0.04850258678197861,
-0.1785394549369812,
-0.01303212158381939,
0.1454923301935196,
-0.10098370164632797,
-0.462458997964859,
-0.1003439649939537,
-0.12253681570291519,
0.1078280657529831,
-0.029106764122843742,
0.1698503941297531,
0.2787976562976837,
-0.09631042927503586,
0.05340376868844032,
-0.7581392526626587,
-0.2621003985404968,
-0.11298495531082153,
-0.23114360868930817,
0.17163528501987457,
0.18311098217964172,
-0.44054165482521057,
-0.13530507683753967,
-0.2840811014175415,
-0.20300285518169403,
0.04410116747021675,
-0.21473312377929688,
-0.12944115698337555,
0.2779017388820648,
0.15455743670463562,
-0.0013405324425548315,
0.12451344728469849,
-0.0026248025242239237,
0.09265869110822678,
0.12275480479001999,
-0.1713695228099823,
-0.1237097829580307,
0.14752425253391266,
0.10378194600343704,
-0.09179996699094772,
0.02675393782556057,
-0.3284252882003784,
-0.07359739392995834,
-0.09842593967914581,
0.3940446078777313,
0.2593080699443817,
-0.028158046305179596,
0.06791697442531586,
-0.12768319249153137,
0.2894713878631592,
-0.282705157995224,
0.41511934995651245,
-0.34728360176086426,
-0.025129759684205055,
-0.013372783549129963,
0.33476918935775757,
-0.14131681621074677,
0.05412660539150238,
-0.11745351552963257,
-0.08249408006668091,
0.15325380861759186,
0.067897267639637,
0.06460632383823395,
-0.376911997795105,
0.08502594381570816,
0.17875732481479645,
0.05933389440178871,
0.062364619225263596,
-0.23318301141262054,
0.014841051772236824,
0.24504970014095306,
0.15899209678173065,
-0.09227003902196884,
-0.12948736548423767,
-0.012007330544292927,
-0.32347744703292847,
-0.17904458940029144,
0.300415575504303,
0.16395732760429382,
-0.38362547755241394,
0.13599158823490143,
-0.032405078411102295,
0.5581639409065247,
-0.2246948480606079,
-0.05772072821855545,
0.48134925961494446,
-0.217400923371315,
0.27380892634391785,
0.21858574450016022,
0.2596437335014343,
-0.08438002318143845,
0.5514782667160034,
0.18204264342784882,
0.13673822581768036,
-0.005867613013833761,
-0.17204803228378296,
-0.10305269807577133,
-0.6628075242042542,
0.2800290286540985,
0.06525342166423798,
-0.07369038462638855,
0.05094338208436966,
-0.029616674408316612,
-0.008635994046926498,
-0.30411526560783386,
-0.0021537726279348135,
-0.43828174471855164,
-0.2168944627046585,
-0.18088336288928986,
-0.28365960717201233,
0.06843540817499161,
-0.23384349048137665,
0.1725391447544098,
0.09277639538049698,
-0.17077668011188507,
-0.1451970338821411,
-0.06997746974229813,
-0.042751602828502655,
-0.3035745620727539,
-0.26846855878829956,
0.1116325706243515,
0.413367360830307,
-0.26629287004470825,
-0.19269175827503204,
0.08904916048049927,
0.0064426325261592865,
0.23958103358745575,
0.08864258229732513,
0.09613598883152008,
0.7200034856796265,
0.36966121196746826,
-0.18670624494552612,
-0.08271225541830063,
0.20437964797019958,
0.08498020470142365,
-0.10133524984121323,
0.309562623500824,
0.199266254901886,
0.17723193764686584,
0.34535670280456543,
0.11968446522951126,
-0.12446644902229309,
0.03745849430561066,
0.0380600243806839,
-0.008947567082941532,
-0.08347941935062408,
0.18735980987548828,
-0.1764344573020935,
-0.16842319071292877,
0.1405666619539261,
0.19802317023277283,
-0.07277752459049225,
0.17002661526203156,
0.23236849904060364,
0.06273744255304337,
0.19450883567333221,
-0.19005323946475983,
0.020061666145920753,
0.1487801969051361,
0.3155462145805359,
0.350362628698349,
0.09806998074054718,
-0.23355355858802795,
-0.06835892796516418,
-0.5775802135467529,
0.25459498167037964,
-0.018225178122520447,
-0.3800153434276581,
-0.0322347916662693,
-0.13248799741268158,
-0.33680084347724915,
0.10613581538200378,
0.16192278265953064,
-0.1090966984629631,
0.055557966232299805,
0.26689621806144714,
-0.1567607969045639,
-0.2936112582683563,
0.3894384503364563,
-0.03776903823018074,
-0.07810088247060776,
-0.6786635518074036,
0.036601223051548004,
-0.08875979483127594,
0.0320076122879982,
-0.15069922804832458,
-0.16663858294487,
0.03414991870522499,
-0.026073869317770004,
0.5437771677970886,
0.2644130289554596,
0.4555602967739105,
0.007837960496544838,
0.0918126329779625,
-0.56220543384552,
-0.06879788637161255,
-0.145289808511734,
-0.033694542944431305,
-0.07782627642154694,
0.2713484466075897,
-0.22750431299209595,
0.04143651947379112,
-0.12419257313013077,
0.16709397733211517,
0.2662993371486664,
0.37954187393188477,
-0.005456461571156979,
0.22790507972240448,
0.18094301223754883,
0.15719006955623627,
0.3478442132472992,
0.06997168064117432,
-0.09617949277162552,
0.4460369944572449,
-0.24093376100063324,
-0.34204792976379395,
0.21094903349876404,
-0.3941512405872345,
-0.3340475559234619,
-0.019207797944545746,
0.3251573145389557,
-0.2549189627170563,
-0.15313370525836945,
-0.23796367645263672,
0.20610877871513367,
0.24783959984779358,
-0.14348021149635315,
-0.3868975341320038,
0.1413452923297882,
-0.157035231590271,
0.14029145240783691,
-0.022752247750759125,
0.034223780035972595,
0.010134917683899403,
-0.22539018094539642,
0.17086750268936157,
-0.23743696510791779
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 194 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | [
-0.22893071174621582,
0.38345417380332947,
0.04034576937556267,
0.25503984093666077,
-0.012111208401620388,
0.2622571289539337,
0.5036684274673462,
0.13295303285121918,
0.34428197145462036,
0.1357172727584839,
-0.10897453129291534,
0.07728376984596252,
0.07315050810575485,
-0.0056993099860847,
-0.12562286853790283,
0.0789283961057663,
0.03644532710313797,
-0.00538852671161294,
0.21494989097118378,
0.10395482927560806,
-0.42388343811035156,
0.10729541629552841,
-0.1728552281856537,
0.1861153393983841,
0.026095272973179817,
-0.13634201884269714,
0.12126047164201736,
0.36073023080825806,
-0.03078894503414631,
-0.39220666885375977,
0.3530231714248657,
0.06345352530479431,
0.4639183282852173,
0.2582460641860962,
-0.00011924601858481765,
-0.013706821016967297,
0.23068411648273468,
0.12449928373098373,
-0.07372736185789108,
0.08710000663995743,
-0.18398518860340118,
-0.14096763730049133,
0.16523005068302155,
-0.09768626093864441,
0.17674390971660614,
0.3634915351867676,
-0.10213719308376312,
-0.20092986524105072,
-0.013041604310274124,
0.3790339529514313,
0.15730014443397522,
-0.03818519786000252,
-0.1186790019273758,
-0.07520411908626556,
0.4933358132839203,
-0.15929806232452393,
-0.1331799328327179,
0.27983829379081726,
0.079025037586689,
-0.11457046866416931,
-0.09899155795574188,
0.19957301020622253,
-0.16214941442012787,
0.14715783298015594,
0.018658237531781197,
0.031129587441682816,
0.21623118221759796,
-0.4581093490123749,
0.3521411120891571,
0.15125790238380432,
0.9656504988670349,
-0.19557349383831024,
-0.19140425324440002,
-0.08874901384115219,
0.013303599320352077,
-0.03300262987613678,
0.43260353803634644,
0.4286230206489563,
-0.3245687484741211,
0.2523709833621979,
0.06596919894218445,
0.08356534689664841,
-0.08255057036876678,
-0.0019088556291535497,
0.07128514349460602,
0.14865177869796753,
-0.05047028511762619,
0.11955656856298447,
-0.11473099887371063,
-0.08340056240558624,
0.38633522391319275,
-0.2138272076845169,
-0.2546020448207855,
0.19166679680347443,
-0.33943691849708557,
0.28987035155296326,
0.05345321074128151,
0.7778058648109436,
0.1578780710697174,
0.315530002117157,
0.12502416968345642,
-0.05405185744166374,
0.21362419426441193,
0.06518997251987457,
0.008593139238655567,
0.3214893937110901,
-0.11223886907100677,
-0.01692315563559532,
0.4271060824394226,
0.11744195967912674,
-0.08161666989326477,
-0.00899034459143877,
-0.020045751705765724,
-0.42947375774383545,
0.3538792133331299,
0.10540711134672165,
0.40811875462532043,
-0.2856420576572418,
-0.12170076370239258,
-0.00029498085496015847,
0.15813182294368744,
-0.02397100068628788,
0.05888279527425766,
0.5011532306671143,
-0.27177122235298157,
0.04268356040120125,
0.06825164705514908,
0.17944522202014923,
0.018610548228025436,
0.09776043146848679,
-0.08779969811439514,
-0.08900279551744461,
-0.26671814918518066,
-0.05143817514181137,
0.40864694118499756,
-0.3225748538970947,
0.09556466341018677,
0.25667718052864075,
0.027048228308558464,
-0.17929419875144958,
0.19183211028575897,
-0.04149749502539635,
-0.03285691514611244,
0.357686847448349,
0.39729568362236023,
0.33763399720191956,
0.17493268847465515,
-0.21229636669158936,
-0.03499547392129898,
0.18631133437156677,
-0.48729023337364197,
-0.402504026889801,
-0.03366352990269661,
0.1213274672627449,
-0.0833243578672409,
0.06320510804653168,
-0.19803698360919952,
-0.048257313668727875,
0.3823130130767822,
-0.3008549213409424,
-0.06183571740984917,
-0.013725735247135162,
-0.22062009572982788,
-0.5042764544487,
0.04070750251412392,
0.4012893736362457,
-0.3596988618373871,
0.13036705553531647,
-0.09155408293008804,
-0.26408642530441284,
0.1504325270652771,
0.0056374757550656796,
0.005634412635117769,
0.36168181896209717,
-0.281220018863678,
0.015607284381985664,
0.2774582505226135,
-0.39389458298683167,
-1.0015971660614014,
-0.021002883091568947,
0.07309971004724503,
0.16604261100292206,
0.24440614879131317,
0.11913692951202393,
0.36593806743621826,
-0.03034602291882038,
0.17047683894634247,
0.31871286034584045,
0.13007496297359467,
0.11197409778833389,
-0.06299635767936707,
-0.20385506749153137,
0.2796611785888672,
0.1339266002178192,
0.08833891898393631,
0.3009036183357239,
0.3125998079776764,
-0.05693408101797104,
0.25109538435935974,
-0.18726147711277008,
0.11680440604686737,
0.19251590967178345,
0.011495418846607208,
-0.03513600304722786,
0.13751450181007385,
-0.12773755192756653,
-0.42040935158729553,
0.3514481484889984,
-0.008116873912513256,
0.08516720682382584,
0.07597919553518295,
-0.2027428150177002,
-0.31846415996551514,
0.09134064614772797,
-0.5447551012039185,
-0.28899693489074707,
0.08510623127222061,
0.2938993275165558,
0.21242493391036987,
0.02368175983428955,
0.18916365504264832,
0.33741435408592224,
-0.20822709798812866,
0.12719608843326569,
-0.18114061653614044,
0.038606200367212296,
-0.18833735585212708,
-0.1364489048719406,
-0.212247833609581,
0.046915505081415176,
0.2001284509897232,
0.2527484893798828,
-0.21343302726745605,
0.19610178470611572,
0.15121343731880188,
0.03749867156147957,
-0.3785577416419983,
-0.05955607444047928,
-0.02237769588828087,
0.12173015624284744,
0.1568485051393509,
0.13817834854125977,
0.14832361042499542,
-0.04439444839954376,
-0.19221928715705872,
0.13775406777858734,
-0.15963444113731384,
0.1437312811613083,
-0.32665136456489563,
0.24303637444972992,
0.24470621347427368,
0.09005036950111389,
0.0856967568397522,
0.034452907741069794,
0.3054705262184143,
0.02411777898669243,
0.07459583878517151,
-0.28580430150032043,
0.10126132518053055,
-0.07780792564153671,
0.0593024305999279,
0.022547272965312004,
0.0812816470861435,
0.2497536689043045,
-0.17460127174854279,
0.016886264085769653,
0.2869936525821686,
0.34967926144599915,
0.537713885307312,
-0.04098670929670334,
0.05155003070831299,
0.06679680198431015,
0.04791204258799553,
0.08966902643442154,
0.11925143748521805,
0.08577132970094681,
-0.07022726535797119,
0.26344889402389526,
0.12843379378318787,
0.22416602075099945,
-0.06479745358228683,
-0.11386076360940933,
-0.1075415164232254,
0.41942983865737915,
-0.48751407861709595,
-0.08438762277364731,
0.10005546361207962,
0.07484029233455658,
0.18120118975639343,
-0.24284745752811432,
-0.08878229558467865,
-0.14609871804714203,
-0.24304574728012085,
0.31163668632507324,
0.09407051652669907,
0.08353719860315323,
-0.5119575262069702,
0.16444151103496552,
0.00753771560266614,
-0.20180627703666687,
-0.11375715583562851,
0.12387923151254654,
-0.16583380103111267,
-0.014107504859566689,
0.18624503910541534,
-0.1799398809671402,
0.1873876452445984,
-0.29515889286994934,
0.24375160038471222,
-0.390175998210907,
-0.19543245434761047,
0.015109993517398834,
0.05788565054535866,
0.40984150767326355,
0.12543119490146637,
0.15510693192481995,
0.18641065061092377,
-0.3417645990848541,
0.05660281330347061,
-0.10751939564943314,
-0.15106113255023956,
0.23337101936340332,
-0.055026426911354065,
0.09385569393634796,
0.034196607768535614,
-0.2493751347064972,
-0.5408245921134949,
-0.25017887353897095,
-0.009575989097356796,
0.38588982820510864,
0.0983009934425354,
-0.0028514296282082796,
-0.1126534640789032,
0.0033437306992709637,
0.2670297622680664,
0.39376792311668396,
-0.21082803606987,
-0.24920208752155304,
0.21024949848651886,
-0.20926794409751892,
-0.33469927310943604,
0.08194943517446518,
-0.10423080623149872,
0.04457079619169235,
0.25238361954689026,
-0.4788488447666168,
-0.09063442051410675,
-0.3600657880306244,
0.40960779786109924,
-0.23261570930480957,
0.0938282385468483,
0.3463048040866852,
0.08929312974214554,
0.14639881253242493,
-0.04174871742725372,
-0.2757164239883423,
-0.06513574719429016,
-0.2946411967277527,
-0.06823215633630753,
0.3381982743740082,
0.42744946479797363,
-0.0575701966881752,
0.3770320415496826,
0.3002278804779053,
0.3604494333267212,
0.33447137475013733,
0.04584134742617607,
0.3711138665676117,
0.05426103249192238,
-0.25947368144989014,
0.10877546668052673,
-0.19434639811515808,
-0.14016082882881165,
0.3007431924343109,
0.08898238837718964,
-0.19526419043540955,
-0.05253170058131218,
-0.3804522752761841,
-0.28078943490982056,
-0.2852860689163208,
-0.09924264252185822,
-0.24633212387561798,
0.25375625491142273,
0.11914075165987015,
0.11004309356212616,
-0.44624432921409607,
-0.3691142499446869,
0.028844371438026428,
0.5546329021453857,
-0.3098390996456146,
0.11157537251710892,
-0.3508033752441406,
0.13669882714748383,
-0.6549721956253052,
0.25224554538726807,
0.03402520716190338,
0.49580591917037964,
-0.17412416636943817,
0.1266971230506897,
-0.001508296118117869,
-0.10742900520563126,
0.5570680499076843,
-0.6522980332374573,
0.4618300795555115,
0.05812261998653412,
0.11573108285665512,
0.010197237133979797,
-0.22434519231319427,
-0.092256098985672,
0.24168004095554352,
0.13694162666797638,
0.21455484628677368,
0.16392184793949127,
0.04404178261756897,
0.07620903104543686,
0.16659311950206757,
-0.20013225078582764,
-0.2790578603744507,
-0.2271348237991333,
-0.3418879806995392,
-0.3903852105140686,
0.1280060112476349,
0.04219944775104523,
0.1854700744152069,
-0.15174368023872375,
0.11716164648532867,
-0.40468841791152954,
0.23697781562805176,
0.1301802098751068,
0.16028229892253876,
0.18779192864894867,
0.06457541882991791,
0.21815897524356842,
-0.04804522916674614,
0.07534824311733246,
-0.1291564404964447,
0.5240870118141174,
-0.2804771065711975,
-0.328378826379776,
-0.052490558475255966,
-0.19998587667942047,
-0.11711730062961578,
0.11224228888750076,
-0.32655733823776245,
-0.05009191855788231,
-0.13848181068897247,
-0.13273753225803375,
-0.31433072686195374,
0.11707457154989243,
0.042603518813848495,
-0.13543406128883362,
-0.3776836097240448,
-0.32019370794296265,
0.3641437888145447,
0.21170039474964142,
-0.44672754406929016,
0.3404744863510132,
0.11984780430793762,
-0.4280627369880676,
0.18246927857398987,
0.05175996199250221,
0.7466566562652588,
0.07988975942134857,
0.27802109718322754,
0.09727665036916733,
-0.11229541152715683,
0.20011721551418304,
0.11617837846279144,
0.05655701085925102,
-0.3728865385055542,
-0.4541018009185791,
-0.09887207299470901,
-0.22054283320903778,
-0.13453729450702667,
-0.024941012263298035,
-0.23379337787628174,
0.28174498677253723,
-0.11297839134931564,
0.3188052475452423,
0.27431026101112366,
0.04803721234202385,
-0.3741956651210785,
-0.3764997124671936,
-0.12099436670541763,
0.1251862645149231,
-0.19382382929325104,
0.1358688622713089,
-0.22749030590057373,
0.09111547470092773,
0.0849042534828186,
-0.16739493608474731,
-0.439121812582016,
0.1967896819114685,
-0.41144585609436035,
0.1381167471408844,
-0.2974178194999695,
-0.38368257880210876,
0.08779988437891006,
0.5960642099380493,
0.2849672734737396,
0.36045941710472107,
-0.15430274605751038,
0.06006646156311035,
0.0793893113732338,
0.11794499307870865,
0.024958236142992973,
0.007455222308635712,
0.19626374542713165,
-0.08069345355033875,
-0.2981882393360138,
-0.015169097110629082,
-0.2781275510787964,
-0.32153040170669556,
-0.10555335879325867,
0.2862679660320282,
0.40390580892562866,
-0.3201121985912323,
-0.2076888084411621,
-0.3106459975242615,
0.0849744901061058,
-0.2798958718776703,
0.09370280057191849,
0.04704267159104347,
-0.07560098171234131,
0.3795402944087982,
-0.33688846230506897,
-0.4257122576236725,
-0.14751797914505005,
0.5242763757705688,
-0.07907763868570328,
-0.1337568312883377,
0.5711382031440735,
-0.04850258678197861,
-0.1785394549369812,
-0.01303212158381939,
0.1454923301935196,
-0.10098370164632797,
-0.462458997964859,
-0.1003439649939537,
-0.12253681570291519,
0.1078280657529831,
-0.029106764122843742,
0.1698503941297531,
0.2787976562976837,
-0.09631042927503586,
0.05340376868844032,
-0.7581392526626587,
-0.2621003985404968,
-0.11298495531082153,
-0.23114360868930817,
0.17163528501987457,
0.18311098217964172,
-0.44054165482521057,
-0.13530507683753967,
-0.2840811014175415,
-0.20300285518169403,
0.04410116747021675,
-0.21473312377929688,
-0.12944115698337555,
0.2779017388820648,
0.15455743670463562,
-0.0013405324425548315,
0.12451344728469849,
-0.0026248025242239237,
0.09265869110822678,
0.12275480479001999,
-0.1713695228099823,
-0.1237097829580307,
0.14752425253391266,
0.10378194600343704,
-0.09179996699094772,
0.02675393782556057,
-0.3284252882003784,
-0.07359739392995834,
-0.09842593967914581,
0.3940446078777313,
0.2593080699443817,
-0.028158046305179596,
0.06791697442531586,
-0.12768319249153137,
0.2894713878631592,
-0.282705157995224,
0.41511934995651245,
-0.34728360176086426,
-0.025129759684205055,
-0.013372783549129963,
0.33476918935775757,
-0.14131681621074677,
0.05412660539150238,
-0.11745351552963257,
-0.08249408006668091,
0.15325380861759186,
0.067897267639637,
0.06460632383823395,
-0.376911997795105,
0.08502594381570816,
0.17875732481479645,
0.05933389440178871,
0.062364619225263596,
-0.23318301141262054,
0.014841051772236824,
0.24504970014095306,
0.15899209678173065,
-0.09227003902196884,
-0.12948736548423767,
-0.012007330544292927,
-0.32347744703292847,
-0.17904458940029144,
0.300415575504303,
0.16395732760429382,
-0.38362547755241394,
0.13599158823490143,
-0.032405078411102295,
0.5581639409065247,
-0.2246948480606079,
-0.05772072821855545,
0.48134925961494446,
-0.217400923371315,
0.27380892634391785,
0.21858574450016022,
0.2596437335014343,
-0.08438002318143845,
0.5514782667160034,
0.18204264342784882,
0.13673822581768036,
-0.005867613013833761,
-0.17204803228378296,
-0.10305269807577133,
-0.6628075242042542,
0.2800290286540985,
0.06525342166423798,
-0.07369038462638855,
0.05094338208436966,
-0.029616674408316612,
-0.008635994046926498,
-0.30411526560783386,
-0.0021537726279348135,
-0.43828174471855164,
-0.2168944627046585,
-0.18088336288928986,
-0.28365960717201233,
0.06843540817499161,
-0.23384349048137665,
0.1725391447544098,
0.09277639538049698,
-0.17077668011188507,
-0.1451970338821411,
-0.06997746974229813,
-0.042751602828502655,
-0.3035745620727539,
-0.26846855878829956,
0.1116325706243515,
0.413367360830307,
-0.26629287004470825,
-0.19269175827503204,
0.08904916048049927,
0.0064426325261592865,
0.23958103358745575,
0.08864258229732513,
0.09613598883152008,
0.7200034856796265,
0.36966121196746826,
-0.18670624494552612,
-0.08271225541830063,
0.20437964797019958,
0.08498020470142365,
-0.10133524984121323,
0.309562623500824,
0.199266254901886,
0.17723193764686584,
0.34535670280456543,
0.11968446522951126,
-0.12446644902229309,
0.03745849430561066,
0.0380600243806839,
-0.008947567082941532,
-0.08347941935062408,
0.18735980987548828,
-0.1764344573020935,
-0.16842319071292877,
0.1405666619539261,
0.19802317023277283,
-0.07277752459049225,
0.17002661526203156,
0.23236849904060364,
0.06273744255304337,
0.19450883567333221,
-0.19005323946475983,
0.020061666145920753,
0.1487801969051361,
0.3155462145805359,
0.350362628698349,
0.09806998074054718,
-0.23355355858802795,
-0.06835892796516418,
-0.5775802135467529,
0.25459498167037964,
-0.018225178122520447,
-0.3800153434276581,
-0.0322347916662693,
-0.13248799741268158,
-0.33680084347724915,
0.10613581538200378,
0.16192278265953064,
-0.1090966984629631,
0.055557966232299805,
0.26689621806144714,
-0.1567607969045639,
-0.2936112582683563,
0.3894384503364563,
-0.03776903823018074,
-0.07810088247060776,
-0.6786635518074036,
0.036601223051548004,
-0.08875979483127594,
0.0320076122879982,
-0.15069922804832458,
-0.16663858294487,
0.03414991870522499,
-0.026073869317770004,
0.5437771677970886,
0.2644130289554596,
0.4555602967739105,
0.007837960496544838,
0.0918126329779625,
-0.56220543384552,
-0.06879788637161255,
-0.145289808511734,
-0.033694542944431305,
-0.07782627642154694,
0.2713484466075897,
-0.22750431299209595,
0.04143651947379112,
-0.12419257313013077,
0.16709397733211517,
0.2662993371486664,
0.37954187393188477,
-0.005456461571156979,
0.22790507972240448,
0.18094301223754883,
0.15719006955623627,
0.3478442132472992,
0.06997168064117432,
-0.09617949277162552,
0.4460369944572449,
-0.24093376100063324,
-0.34204792976379395,
0.21094903349876404,
-0.3941512405872345,
-0.3340475559234619,
-0.019207797944545746,
0.3251573145389557,
-0.2549189627170563,
-0.15313370525836945,
-0.23796367645263672,
0.20610877871513367,
0.24783959984779358,
-0.14348021149635315,
-0.3868975341320038,
0.1413452923297882,
-0.157035231590271,
0.14029145240783691,
-0.022752247750759125,
0.034223780035972595,
0.010134917683899403,
-0.22539018094539642,
0.17086750268936157,
-0.23743696510791779
] |
https://github.com/huggingface/datasets/issues/2934 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows | I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1 | 99 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1
I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | [
0.04569048434495926,
0.3345080316066742,
0.1148887500166893,
0.08045100420713425,
0.23043039441108704,
0.11888763308525085,
0.3988848924636841,
0.2548752427101135,
-0.10991697013378143,
0.26743850111961365,
-0.3353854715824127,
0.4040723741054535,
-0.16448107361793518,
-0.1074628010392189,
-0.03426652029156685,
-0.10664339363574982,
0.05111090466380119,
0.14516478776931763,
-0.16666415333747864,
-0.12261202931404114,
-0.21033644676208496,
0.03519076481461525,
-0.1274755448102951,
0.07211562991142273,
-0.13876298069953918,
-0.2811446785926819,
0.010589288547635078,
0.10064353793859482,
0.24410796165466309,
-0.01835482381284237,
0.06827913224697113,
0.021176371723413467,
-0.1777963489294052,
0.47976216673851013,
-0.00011666516365949064,
0.4142077565193176,
-0.006127769593149424,
0.13015367090702057,
-0.2355813980102539,
0.0565105564892292,
-0.06903134286403656,
0.1760493516921997,
0.12455863505601883,
-0.05997300520539284,
0.1349686086177826,
-0.21777643263339996,
-0.025572625920176506,
0.08327341079711914,
0.28249555826187134,
0.42905789613723755,
0.17387717962265015,
0.6678112149238586,
0.04904932901263237,
-0.0070739733055233955,
0.3827844262123108,
0.06389723718166351,
-0.2742590606212616,
0.11617009341716766,
-0.2370096892118454,
-0.19351470470428467,
0.06556079536676407,
0.5781880617141724,
0.017382387071847916,
-0.0747983455657959,
-0.13468694686889648,
0.07937777042388916,
-0.24748478829860687,
-0.2132091224193573,
0.09915532916784286,
0.3864622712135315,
0.29421451687812805,
-0.3177286982536316,
-0.07044293731451035,
-0.1286844164133072,
-0.06478448957204819,
-0.14543475210666656,
0.19134795665740967,
-0.046207502484321594,
0.01738673634827137,
0.1348499059677124,
0.058215174823999405,
-0.16226674616336823,
-0.2615070343017578,
-0.006172614637762308,
-0.28108882904052734,
-0.10721979290246964,
0.085743747651577,
0.08013836294412613,
0.414106547832489,
-0.027151400223374367,
-0.06863734126091003,
0.04162922501564026,
0.020163822919130325,
0.13079150021076202,
-0.20230139791965485,
-0.18202054500579834,
-0.03925829380750656,
-0.1770305186510086,
-0.028179088607430458,
-0.07086220383644104,
0.23925217986106873,
-0.15704436600208282,
-0.24434460699558258,
0.06774009019136429,
0.16441959142684937,
-0.07058870792388916,
-0.6655335426330566,
0.14519962668418884,
0.2680506408214569,
-0.19333416223526,
-0.1119193509221077,
-0.028670962899923325,
0.0027096739504486322,
-0.49814271926879883,
0.2861166000366211,
-0.2107921987771988,
0.4638057351112366,
0.01741340011358261,
-0.5834481120109558,
0.1703357845544815,
-0.1943606436252594,
0.4077933728694916,
-0.0392659455537796,
0.34212321043014526,
-0.009724539704620838,
0.27936890721321106,
0.32364657521247864,
-0.003611842868849635,
-0.4970703423023224,
-0.01620112732052803,
-0.05466784909367561,
-0.03966287150979042,
-0.2995606064796448,
-0.33192288875579834,
0.16759267449378967,
0.043953295797109604,
-0.04784947261214256,
0.1728074848651886,
0.06108273193240166,
0.10257706046104431,
0.25394564867019653,
-0.28081557154655457,
0.5246314406394958,
0.481272429227829,
-0.07509786635637283,
0.2450946420431137,
0.09495793282985687,
-0.25070181488990784,
-0.12922216951847076,
0.35341736674308777,
-0.27107059955596924,
-0.15856488049030304,
-0.2603648602962494,
0.12456437945365906,
-0.12023301422595978,
-0.1552470624446869,
-0.22380197048187256,
0.045004695653915405,
0.034312713891267776,
-0.05954704061150551,
0.0862918496131897,
-0.13709202408790588,
-0.5523480772972107,
-0.26465579867362976,
0.01090381108224392,
0.3650909662246704,
-0.19915243983268738,
0.1795513778924942,
-0.025439122691750526,
-0.3931913673877716,
-0.15941114723682404,
0.26560088992118835,
0.06460469216108322,
0.31538259983062744,
-0.4097915589809418,
-0.1304868459701538,
0.48381921648979187,
-0.23206783831119537,
-0.45128390192985535,
0.23500579595565796,
-0.20899435877799988,
0.21425247192382812,
-0.3518174886703491,
0.13031725585460663,
0.2125168740749359,
-0.20666593313217163,
0.012362646870315075,
-0.00704522430896759,
-0.062310319393873215,
-0.009127614088356495,
-0.32360920310020447,
-0.010815215297043324,
-0.06801844388246536,
-0.19527074694633484,
-0.015727834776043892,
-0.012415988370776176,
0.1318649798631668,
-0.04939528554677963,
0.3902631998062134,
0.21969184279441833,
0.19332605600357056,
0.14174799621105194,
0.37566062808036804,
-0.17291313409805298,
-0.079088494181633,
0.04328899830579758,
-0.37751805782318115,
0.13952431082725525,
0.4056796729564667,
0.07770315557718277,
-0.12490466237068176,
-0.14793632924556732,
-0.014969377778470516,
0.19853731989860535,
-0.19194979965686798,
0.020080264657735825,
0.07844400405883789,
-0.11942453682422638,
-0.3427840769290924,
0.20975713431835175,
-0.00877363234758377,
-0.17803478240966797,
-0.27689093351364136,
0.08200854808092117,
0.10280267149209976,
0.4687248170375824,
0.26876410841941833,
-0.005573277827352285,
-0.2448136806488037,
0.19433872401714325,
-0.14946486055850983,
-0.03006231039762497,
-0.27190205454826355,
0.4269397258758545,
0.17477203905582428,
0.31781336665153503,
-0.1541973203420639,
0.5814438462257385,
0.10668511688709259,
-0.5981356501579285,
-0.2948669195175171,
0.3456801176071167,
0.13194772601127625,
-0.028623593971133232,
-0.01795557700097561,
0.14569814503192902,
-0.20072244107723236,
0.17132478952407837,
0.0537690669298172,
0.23926383256912231,
0.04082760587334633,
0.021463949233293533,
-0.03639742359519005,
-0.3410162627696991,
-0.048381369560956955,
0.3614162802696228,
-0.314629465341568,
0.2986149191856384,
-0.6084031462669373,
0.1965303272008896,
0.38666483759880066,
0.03110717236995697,
-0.16892489790916443,
0.23582983016967773,
-0.16949447989463806,
0.06172941252589226,
0.07153802365064621,
0.3181355893611908,
0.47605445981025696,
0.022362027317285538,
0.1727905124425888,
0.13679887354373932,
-0.19373983144760132,
-0.09025213122367859,
0.23736383020877838,
0.08871373534202576,
0.3124324381351471,
0.20392084121704102,
0.25704532861709595,
0.19310365617275238,
-0.3024032413959503,
0.03301851823925972,
0.13020390272140503,
0.1728959083557129,
-0.45257842540740967,
0.1747218370437622,
-0.18073859810829163,
-0.03884657472372055,
-0.3074897527694702,
0.011746024712920189,
0.03772128373384476,
-0.1348000019788742,
0.3154600262641907,
0.3967652916908264,
-0.4561235308647156,
0.15392284095287323,
-0.3289415240287781,
0.12903308868408203,
0.02276894822716713,
-0.29593154788017273,
0.18030238151550293,
-0.1691792756319046,
-0.27148374915122986,
0.03444297984242439,
0.3643863797187805,
-0.24427759647369385,
0.41803374886512756,
-0.001358054461888969,
-0.07474963366985321,
-0.15285345911979675,
-0.26316308975219727,
0.08977964520454407,
-0.09495367109775543,
0.1932281255722046,
0.2937166094779968,
0.33681046962738037,
-0.12326685339212418,
-0.13017632067203522,
0.14623390138149261,
-0.4851279854774475,
-0.17861317098140717,
0.1372668743133545,
-0.12271759659051895,
0.20901113748550415,
0.02039768546819687,
-0.1520884782075882,
0.07417665421962738,
-0.3432302176952362,
0.06708268076181412,
-0.19137947261333466,
0.1277281492948532,
0.6203323602676392,
0.15204089879989624,
-0.08000195771455765,
0.3789712190628052,
0.10767969489097595,
-0.1736004650592804,
-0.11273442953824997,
0.200913667678833,
-0.2037229984998703,
-0.42963331937789917,
0.2909046709537506,
0.03388914465904236,
0.13257920742034912,
0.29555875062942505,
-0.6434152722358704,
-0.16894185543060303,
-0.04373549297451973,
0.1776636242866516,
-0.10888684540987015,
-0.047007154673337936,
0.1665741205215454,
0.11643665283918381,
-0.11971478164196014,
-0.3432472348213196,
0.08278655260801315,
0.3821260929107666,
-0.2270808219909668,
-0.04858025535941124,
0.042270269244909286,
0.08824513852596283,
0.31357109546661377,
0.6243582963943481,
0.050832685083150864,
-0.34294360876083374,
0.02080320380628109,
-0.2982519268989563,
0.5073607563972473,
-0.15909042954444885,
-0.27957484126091003,
0.015800418332219124,
0.04203146696090698,
-0.13273632526397705,
0.24627377092838287,
-0.07957740128040314,
-0.21037942171096802,
0.057862211018800735,
0.21673285961151123,
-0.03759167343378067,
-0.5290262699127197,
0.13690251111984253,
-0.3965076804161072,
0.19836527109146118,
0.15099868178367615,
-0.04255435988306999,
-0.1581774353981018,
-0.4451105296611786,
0.22895953059196472,
0.20402097702026367,
0.09302591532468796,
-0.13661637902259827,
-0.19878970086574554,
-0.28238797187805176,
-0.3425534665584564,
0.0680471807718277,
0.1306472271680832,
0.5035338997840881,
0.0921354591846466,
-0.2987196743488312,
0.1360505223274231,
0.2798965275287628,
0.776917576789856,
-0.030115967616438866,
-0.09927569329738617,
0.27733317017555237,
0.322409451007843,
-0.4041953682899475,
0.055564187467098236,
-0.10501625388860703,
-0.004628431051969528,
0.028162652626633644,
0.24169474840164185,
0.07723578810691833,
-0.3887939453125,
0.21295006573200226,
0.17669084668159485,
-0.24771800637245178,
0.21103964745998383,
-0.39185574650764465,
-0.3986022472381592,
0.10136804729700089,
0.08784645795822144,
0.26049405336380005,
0.049755942076444626,
-0.10872011631727219,
-0.11151238530874252,
-0.30123645067214966,
-0.24823330342769623,
0.08814454823732376,
-0.015627099201083183,
0.3283710777759552,
0.37087178230285645,
0.39753374457359314,
0.05334113538265228,
0.5702843070030212,
0.39387044310569763,
0.4075013995170593,
-0.5431134104728699,
0.021427936851978302,
0.07550590485334396,
0.19113357365131378,
0.1251915544271469,
0.4420386254787445,
-0.18668562173843384,
0.053141579031944275,
-0.4151878356933594,
0.0002784962998703122,
-0.39237216114997864,
0.5302585363388062,
0.13951116800308228,
-0.20313425362110138,
-0.0013098272029310465,
-0.09223038703203201,
0.13336874544620514,
-0.010361961089074612,
-0.1489022672176361,
0.6897459626197815,
0.2165824919939041,
-0.18774867057800293,
0.2651527523994446,
0.1582137644290924,
1.1080399751663208,
-0.09356776624917984,
0.23346911370754242,
0.5235840082168579,
-0.26436951756477356,
0.21265444159507751,
-0.055380769073963165,
0.13531328737735748,
-0.06322542577981949,
-0.5360182523727417,
0.020139263942837715,
-0.012507637031376362,
-0.36082446575164795,
-0.20056098699569702,
0.18932735919952393,
0.0023704746272414923,
0.15720659494400024,
0.4106846749782562,
0.2291460782289505,
0.07762347906827927,
0.29594388604164124,
-0.21861925721168518,
0.03965679556131363,
0.02247215434908867,
0.4466589093208313,
-0.12662087380886078,
-0.20260705053806305,
-0.12232213467359543,
0.16594688594341278,
0.027123406529426575,
-0.03446482494473457,
-0.009640739299356937,
-0.7225637435913086,
0.2756163775920868,
0.04224785044789314,
-0.09043887257575989,
-0.024059729650616646,
0.4012310802936554,
0.37122341990470886,
-0.09887703508138657,
-0.15234783291816711,
0.28834250569343567,
0.37736260890960693,
0.29301249980926514,
0.09380709379911423,
-0.016786152496933937,
0.47509512305259705,
0.03830258548259735,
-0.08036285638809204,
0.1676330715417862,
-0.054472025483846664,
-0.05252282693982124,
-0.03709424287080765,
-0.1225823312997818,
0.038293756544589996,
-0.12055607885122299,
0.0445849783718586,
-0.09958477318286896,
-0.24590548872947693,
-0.057957831770181656,
0.10357740521430969,
-0.1804874688386917,
-0.10702654719352722,
0.23447264730930328,
-0.19273395836353302,
-0.43166929483413696,
0.23925663530826569,
0.39225488901138306,
-0.12051286548376083,
0.17103473842144012,
0.3036814033985138,
-0.07610428333282471,
-0.07312819361686707,
-0.2562386095523834,
0.3445345163345337,
0.037830617278814316,
-0.5670920610427856,
0.26459792256355286,
-0.1810763031244278,
0.32022824883461,
-0.1079883873462677,
0.5147184133529663,
-0.19703024625778198,
0.020940938964486122,
0.02216004952788353,
-0.13972251117229462,
-0.3977711498737335,
0.2361743301153183,
0.0018204948864877224,
0.4124107360839844,
-0.2537193298339844,
0.4747990071773529,
-0.12875311076641083,
-0.25279298424720764,
-0.29979804158210754,
0.23436760902404785,
-0.02811320312321186,
0.07879024744033813,
-0.10588620603084564,
0.057650741189718246,
0.3181123733520508,
-0.27795153856277466,
0.05769595503807068,
0.10732115805149078,
-0.13811130821704865,
-0.13849091529846191,
-0.16371403634548187,
0.1632772535085678,
0.02801792323589325,
-0.3234006464481354,
-0.01298031397163868,
-0.17387203872203827,
0.07629123330116272,
-0.1113801896572113,
0.32819420099258423,
0.07005321979522705,
-0.3296967148780823,
0.027098044753074646,
-0.2136467844247818,
0.13094158470630646,
0.13924722373485565,
0.007743805646896362,
-0.030592234805226326,
0.37586838006973267,
0.08969549834728241,
0.09814856946468353,
-0.23660928010940552,
-0.232526034116745,
-0.0303855761885643,
0.28426650166511536,
-0.03563797101378441,
-0.36006441712379456,
0.03771291300654411,
-0.05584776774048805,
-0.2938878536224365,
-0.05990532785654068,
0.3766299784183502,
0.17997591197490692,
-0.4634619951248169,
-0.13622406125068665,
0.25929751992225647,
0.22421704232692719,
-0.2404211312532425,
0.16245079040527344,
-0.12176788598299026,
0.019864441826939583,
0.03851177543401718,
0.16629663109779358,
0.18402715027332306,
-0.14655451476573944,
-0.14287807047367096,
0.1772318035364151,
-0.2008035033941269,
-0.20362499356269836,
0.031016342341899872,
0.515629231929779,
-0.03253570571541786,
0.2373231202363968,
-0.14765405654907227,
0.10366429388523102,
0.12641723453998566,
0.24815741181373596,
-0.07817842811346054,
0.4826433062553406,
0.19811038672924042,
-0.06543869525194168,
-0.035468339920043945,
-0.3134521245956421,
-0.05552200973033905,
0.16418957710266113,
-0.1238173395395279,
0.24218691885471344,
-0.03614959120750427,
0.22170917689800262,
0.15493157505989075,
-0.424582839012146,
-0.011748919263482094,
0.2324926257133484,
-0.08597971498966217,
-0.3671880066394806,
-0.3900306224822998,
-0.2080548107624054,
-0.27233466506004333,
0.03112444095313549,
-0.005528131499886513,
-0.08657389134168625,
0.009403719566762447,
0.10601382702589035,
-0.06628192216157913,
-0.28257784247398376,
-0.11982133239507675,
0.3330775499343872,
0.27780646085739136,
-0.23256680369377136,
0.06561271846294403,
-0.024809572845697403,
-0.06567813456058502,
-0.002108633751049638,
0.20820127427577972,
0.08352874219417572,
0.02842129021883011,
-0.1759396493434906,
0.011499717831611633,
-0.03465401381254196,
0.09226401150226593,
-0.04009263589978218,
0.21443790197372437,
-0.04891715571284294,
-0.14051979780197144,
0.21579746901988983,
-0.04918328672647476,
-0.0700250118970871,
0.1828448325395584,
0.05197210982441902,
0.09766726940870285,
-0.41822531819343567,
0.1498890072107315,
-0.00337915844283998,
-0.10168051719665527,
-0.22876253724098206,
-0.00511797284707427,
0.05086702108383179,
-0.10867926478385925,
0.4808008372783661,
-0.4602067768573761,
0.3644776940345764,
-0.08739165961742401,
0.0682189017534256,
-0.009531480260193348,
0.2219793051481247,
0.12710894644260406,
0.32923975586891174,
-0.2891252934932709,
-0.3842819035053253,
-0.5309658646583557,
0.26259884238243103,
-0.04950693994760513,
-0.05064510554075241,
0.2118176817893982,
0.03177186846733093,
-0.08889877796173096,
-0.06646006554365158,
0.0274049062281847,
-0.186546191573143,
0.11332305520772934,
0.267254501581192,
-0.2658275365829468,
-0.03609595075249672,
-0.4830034077167511,
0.09843222796916962,
0.019903231412172318,
-0.5478618741035461,
-0.18008148670196533,
-0.17627081274986267,
0.03751016780734062,
-0.08184590935707092,
-0.021552100777626038,
-0.016611026600003242,
0.5460249781608582,
0.524731457233429,
0.12545719742774963,
0.07549626380205154,
0.1195668876171112,
-0.10256149619817734,
-0.2674234211444855,
-0.17949964106082916,
-0.3766336739063263,
-0.18374685943126678,
0.007053588982671499,
-0.023796657100319862,
-0.05294432118535042,
0.19713756442070007,
0.013704869896173477,
-0.29777124524116516,
0.18019501864910126,
0.3653973340988159,
-0.4400826394557953,
0.19560566544532776,
-0.20590314269065857,
0.37253284454345703,
0.26284560561180115,
0.4234928488731384,
-0.1296609789133072,
0.21667811274528503,
-0.3998852074146271,
-0.38206881284713745,
0.4928813874721527,
-0.5328620672225952,
-0.0930066704750061,
-0.02459760196506977,
0.38428565859794617,
-0.09380289167165756,
0.03628716990351677,
-0.5819957256317139,
-0.17655575275421143,
0.3898158073425293,
-0.08349303156137466,
-0.5030673146247864,
0.17061160504817963,
0.13014675676822662,
0.13843436539173126,
0.11816684156656265,
0.591318666934967,
0.14017577469348907,
-0.193363219499588,
0.036497969180345535,
-0.2862136662006378
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 39 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | [
0.04933885484933853,
0.0920017659664154,
-0.07149408012628555,
0.40184855461120605,
0.4151674211025238,
0.23589497804641724,
0.6366622447967529,
0.24350276589393616,
0.2364589124917984,
0.2313295155763626,
0.018569065257906914,
0.007743521127849817,
-0.1442687064409256,
-0.31003695726394653,
-0.20153596997261047,
-0.24431446194648743,
-0.1581089347600937,
-0.041621673852205276,
-0.17707863450050354,
0.21771864593029022,
-0.1549791693687439,
0.3787364661693573,
0.02463798224925995,
0.15708373486995697,
-0.5360063314437866,
0.09007879346609116,
-0.12959621846675873,
0.3886745274066925,
-0.021506553515791893,
-0.3729909658432007,
0.051118530333042145,
-0.046716805547475815,
0.0688147097826004,
0.8113579750061035,
-0.00012206860264996067,
-0.3334414064884186,
0.3542337119579315,
-0.05629918724298477,
-0.32718947529792786,
-0.2243083417415619,
-0.1685817390680313,
-0.5117117762565613,
-0.03458474203944206,
-0.4988020360469818,
0.18721318244934082,
-0.09511900693178177,
-0.03319060057401657,
-0.8021567463874817,
0.04105241969227791,
0.37330588698387146,
0.1268746554851532,
-0.0783475711941719,
0.0910244807600975,
-0.25791993737220764,
0.33231183886528015,
-0.27798929810523987,
0.00408482551574707,
0.35640254616737366,
0.35569775104522705,
-0.09886761754751205,
-0.15465138852596283,
0.20321816205978394,
-0.03689749166369438,
0.02732490934431553,
0.24715805053710938,
0.07953757792711258,
-0.08748319000005722,
-0.32616478204727173,
0.29580578207969666,
0.42739391326904297,
0.47143781185150146,
-0.09306186437606812,
-0.27931275963783264,
-0.46769726276397705,
0.14249840378761292,
-0.12510563433170319,
0.4885307252407074,
-0.07624012976884842,
-0.2220747172832489,
0.15148845314979553,
-0.17041966319084167,
-0.01962113566696644,
-0.12359674274921417,
-0.11023875325918198,
-0.10197608172893524,
0.06506171822547913,
0.04050881788134575,
0.036279015243053436,
0.3111134469509125,
-0.34831497073173523,
0.2395959198474884,
0.00483670923858881,
0.0742739588022232,
0.2694602906703949,
-0.6542136073112488,
0.14691244065761566,
0.08426859229803085,
0.38549289107322693,
0.25348949432373047,
0.057643648236989975,
-0.26597294211387634,
-0.1483081579208374,
0.1947479546070099,
-0.010466131381690502,
-0.06495512276887894,
0.3742069602012634,
0.19444406032562256,
0.16128137707710266,
0.30124273896217346,
0.07794684171676636,
-0.3367469012737274,
-0.10693513602018356,
-0.07648740708827972,
-0.5534630417823792,
0.4451378881931305,
0.13359108567237854,
0.0741625502705574,
-0.3437119126319885,
0.1504577398300171,
0.5705776214599609,
0.10570475459098816,
-0.010490184649825096,
0.2287026196718216,
0.2733796536922455,
0.005435064435005188,
0.1107669398188591,
0.0830744281411171,
-0.08993672579526901,
-0.08896131813526154,
0.10083485394716263,
-0.14731234312057495,
-0.11073076725006104,
-0.22702015936374664,
0.11240983754396439,
0.0892057791352272,
-0.3083958923816681,
0.2792794108390808,
-0.2274651974439621,
0.31524017453193665,
-0.12495744973421097,
-0.08296910673379898,
-0.23774248361587524,
-0.06673227250576019,
0.15596722066402435,
-0.05910719558596611,
0.07391400635242462,
0.24521401524543762,
-0.26073330640792847,
-0.1920618861913681,
-0.07711149752140045,
-0.3397485911846161,
-0.2851874828338623,
-0.06172122433781624,
0.09470286220312119,
-0.1654944270849228,
0.21590197086334229,
0.24155490100383759,
-0.2671950161457062,
0.6555529236793518,
-0.07981947809457779,
0.012797564268112183,
-0.2747657001018524,
-0.14180991053581238,
0.007192613091319799,
0.04082440212368965,
0.5534658432006836,
0.13252376019954681,
-0.017562497407197952,
-0.06878942996263504,
0.1282823532819748,
0.008665884844958782,
0.37225937843322754,
0.18064512312412262,
-0.05359673872590065,
-0.42195266485214233,
0.31249362230300903,
0.22687137126922607,
-0.24028094112873077,
-0.48698586225509644,
0.3215387463569641,
-0.39430761337280273,
0.09949369728565216,
0.32291173934936523,
0.022883307188749313,
0.051710668951272964,
-0.02458256296813488,
0.28533849120140076,
0.18221305310726166,
-0.026096107438206673,
0.023495467379689217,
-0.20252421498298645,
-0.10733050853013992,
-0.04063059389591217,
0.16919536888599396,
0.010954631492495537,
0.06700100004673004,
0.07961951196193695,
-0.17519184947013855,
0.27156856656074524,
0.031463563442230225,
-0.2040444165468216,
0.37367984652519226,
0.1382422149181366,
0.32671841979026794,
0.18608227372169495,
-0.10632754862308502,
-0.5937502980232239,
0.2637211084365845,
-0.1218472346663475,
-0.178731769323349,
-0.21759292483329773,
-0.18680500984191895,
-0.17498883605003357,
-0.007290015462785959,
0.003460116684436798,
0.13513776659965515,
-0.020408688113093376,
0.28324952721595764,
0.1417793333530426,
-0.13176387548446655,
0.09344019740819931,
0.588379979133606,
-0.17024371027946472,
0.0175975002348423,
-0.47811800241470337,
-0.17112649977207184,
-0.11785336583852768,
-0.11253996938467026,
0.031506992876529694,
0.0016397241270169616,
0.3693963587284088,
-0.10896769165992737,
-0.3443511426448822,
0.4480753242969513,
0.33327677845954895,
0.09753290563821793,
-0.17892485857009888,
-0.004430653061717749,
-0.05686429142951965,
0.22077591717243195,
0.07267019152641296,
0.03981243818998337,
0.0077856299467384815,
0.014291604980826378,
-0.21357637643814087,
0.30001622438430786,
-0.14081594347953796,
0.27127715945243835,
0.028613608330488205,
0.16824106872081757,
0.2461790144443512,
-0.1318138688802719,
0.06434518843889236,
-0.17612244188785553,
0.6458843350410461,
-0.21635276079177856,
0.30484044551849365,
0.0547802709043026,
0.04523155093193054,
-0.14486248791217804,
0.6458196640014648,
0.0453927181661129,
-0.00017786309763323516,
0.19774273037910461,
0.15620157122612,
-0.04081527143716812,
-0.01937291957437992,
0.3064888119697571,
0.511144757270813,
0.1920585185289383,
-0.03012281097471714,
-0.2065059393644333,
0.3941577076911926,
-0.22383460402488708,
0.2563185691833496,
0.015908274799585342,
-0.0027932715602219105,
0.36570313572883606,
0.049618348479270935,
-0.12908749282360077,
0.05148397013545036,
-0.8095090985298157,
-0.05044228956103325,
0.22369785606861115,
-0.31980881094932556,
0.1480822116136551,
-0.13932599127292633,
-0.04320473596453667,
-0.02379995584487915,
0.0004900808562524617,
-0.08039888739585876,
-0.41628220677375793,
-0.18889357149600983,
0.27850598096847534,
-0.14183680713176727,
0.21453383564949036,
-0.11883573979139328,
-0.0032404116354882717,
0.27128273248672485,
-0.014538764022290707,
-0.29502764344215393,
-0.001612711464986205,
0.080344058573246,
-0.08376028388738632,
0.27207306027412415,
-0.5375038385391235,
0.08380357176065445,
-0.1256636381149292,
-0.06310714036226273,
-0.5083521008491516,
-0.24988044798374176,
0.11166753619909286,
-0.16848088800907135,
0.29356399178504944,
0.341366171836853,
0.20785711705684662,
0.16666245460510254,
0.05889717862010002,
0.004961259663105011,
-0.2622789442539215,
0.023669768124818802,
0.23266388475894928,
0.17790067195892334,
-0.022818012163043022,
-0.19179943203926086,
-0.023455079644918442,
-0.34637320041656494,
-0.41603314876556396,
0.3207847476005554,
0.03030286356806755,
0.22792796790599823,
0.34118932485580444,
-0.07087301462888718,
0.2978125214576721,
-0.017972813919186592,
0.24729210138320923,
-0.08790699392557144,
-0.44637012481689453,
0.41706112027168274,
-0.15252165496349335,
-0.2990589737892151,
-0.4318082928657532,
0.2980133593082428,
-0.03550943732261658,
0.10551924258470535,
-0.42236390709877014,
-0.1790710687637329,
-0.4012609124183655,
0.33898529410362244,
-0.33571988344192505,
0.005409501492977142,
0.19702006876468658,
-0.08520112931728363,
-0.05634867772459984,
-0.10693826526403427,
0.08490237593650818,
0.23251228034496307,
0.011036040261387825,
-0.009521141648292542,
0.09298138320446014,
0.29516664147377014,
-0.11607786267995834,
0.4532133638858795,
0.36166563630104065,
0.0753479152917862,
0.19537948071956635,
-0.13766928017139435,
0.1843574047088623,
-0.25903254747390747,
-0.12694580852985382,
0.023937860503792763,
0.17447146773338318,
-0.22158464789390564,
0.13420549035072327,
-0.0853910818696022,
0.01408260315656662,
-0.1333198845386505,
-0.05779215320944786,
0.1078079342842102,
-0.296029657125473,
0.007317005190998316,
0.04858604446053505,
0.05248980596661568,
0.031080305576324463,
0.14569465816020966,
-0.19488713145256042,
-0.1309104710817337,
-0.024089301005005836,
0.30847835540771484,
0.05407886952161789,
-0.02335614711046219,
-0.24687309563159943,
0.09151040017604828,
-0.337141752243042,
0.44400984048843384,
0.1830921471118927,
0.21379823982715607,
-0.06935959309339523,
-0.16017507016658783,
-0.08004874736070633,
0.04600682109594345,
0.6831169128417969,
0.09912963956594467,
0.3160930573940277,
0.15549607574939728,
0.25470346212387085,
-0.12308714538812637,
0.03917254880070686,
0.07955324649810791,
0.37018805742263794,
0.13904094696044922,
0.40793362259864807,
-0.23080970346927643,
0.03760886937379837,
-0.18331679701805115,
0.18554240465164185,
-0.11663326621055603,
-0.4492170512676239,
-0.026285815984010696,
0.00879646185785532,
-0.26368576288223267,
0.16162005066871643,
0.03360515087842941,
0.24422886967658997,
0.06167181581258774,
0.00491343904286623,
-0.06017690896987915,
-0.0747789591550827,
0.16015537083148956,
0.1748357117176056,
0.28126320242881775,
-0.4468778073787689,
0.2643655836582184,
-0.02755928784608841,
-0.1595296710729599,
0.23041296005249023,
0.5639731884002686,
-0.4439825117588043,
-0.24784277379512787,
0.4144729971885681,
-0.35655930638313293,
0.07643894106149673,
0.4287096858024597,
-0.31076616048812866,
-0.15842433273792267,
0.3582063615322113,
0.632159411907196,
0.1236555427312851,
0.025781644508242607,
0.03256829455494881,
0.13087403774261475,
-0.15302148461341858,
-0.33461111783981323,
0.21633082628250122,
0.24309517443180084,
-0.017835326492786407,
0.5360286831855774,
0.024251330643892288,
-0.3025454878807068,
0.26139312982559204,
-0.2059546560049057,
1.0209486484527588,
-0.18544873595237732,
0.18715083599090576,
-0.019080350175499916,
0.12876741588115692,
0.4992987811565399,
0.009290564805269241,
-0.08422483503818512,
-0.4268134832382202,
-0.48278552293777466,
0.1402025669813156,
-0.14980414509773254,
0.23977208137512207,
-0.03667781874537468,
-0.1301994025707245,
0.31392836570739746,
-0.259510338306427,
0.017761841416358948,
-0.17453143000602722,
0.4527932107448578,
-0.6466594338417053,
-0.25421401858329773,
-0.2503231167793274,
0.047983568161726,
-0.04398120567202568,
0.11015051603317261,
0.06171208620071411,
0.16868622601032257,
-0.3292619585990906,
-0.2781672179698944,
-0.22720623016357422,
0.037031758576631546,
-0.4157634973526001,
0.08352941274642944,
-0.24390196800231934,
-0.28220781683921814,
-0.0902421623468399,
0.28521203994750977,
-0.03205064684152603,
0.40133658051490784,
-0.20359548926353455,
0.09235063940286636,
0.08282206207513809,
0.09687257558107376,
0.07300009578466415,
-0.06324420869350433,
0.31769534945487976,
0.016897693276405334,
0.07435350865125656,
-0.28570443391799927,
0.005397516768425703,
-0.1422329694032669,
0.03248238563537598,
-0.02342655323445797,
0.1504138857126236,
-0.23082958161830902,
-0.32375603914260864,
-0.3392716646194458,
-0.20386222004890442,
-0.15043556690216064,
0.052160367369651794,
0.3335696756839752,
-0.238723486661911,
-0.008876784704625607,
-0.28575631976127625,
-0.4090464115142822,
-0.00966474786400795,
0.3055093288421631,
-0.1481093168258667,
-0.047204673290252686,
0.43272703886032104,
0.3000043034553528,
-0.21020984649658203,
-0.17791710793972015,
-0.019017288461327553,
-0.17999638617038727,
-0.6621259450912476,
0.0823080986738205,
0.03603966161608696,
-0.04271099343895912,
-0.24160660803318024,
-0.26683032512664795,
0.20536039769649506,
0.12652955949306488,
0.11139838397502899,
-0.4697990417480469,
-0.4082912504673004,
-0.2329966127872467,
-0.29766830801963806,
0.2016148567199707,
-0.05662452057003975,
-0.3551494777202606,
-0.25884193181991577,
0.03277324140071869,
-0.21220991015434265,
0.059993937611579895,
-0.14237312972545624,
-0.06183665618300438,
0.4633508324623108,
-0.1418495923280716,
0.22446034848690033,
-0.1397039294242859,
0.0463552325963974,
0.4012089669704437,
0.06941330432891846,
-0.18165132403373718,
-0.3011116683483124,
0.1451774388551712,
0.0411619208753109,
0.05858471617102623,
-0.06729105114936829,
-0.37864950299263,
-0.052751727402210236,
-0.27983254194259644,
0.13260354101657867,
0.3364620506763458,
0.2424451857805252,
0.07561851292848587,
0.09433045238256454,
0.09865346550941467,
-0.03252902999520302,
0.3306850790977478,
-0.16495035588741302,
-0.1383989304304123,
0.009523864835500717,
0.27259308099746704,
-0.21072541177272797,
0.11752629280090332,
-0.3212476074695587,
0.1536608189344406,
-0.009539267048239708,
-0.03618196025490761,
0.07528070360422134,
-0.02653687633574009,
-0.10968086868524551,
0.5564427375793457,
0.23271852731704712,
0.29203906655311584,
-0.2722921371459961,
-0.2302524596452713,
0.2756316363811493,
0.13391277194023132,
0.016583358868956566,
-0.20511597394943237,
0.10736642777919769,
-0.1286119967699051,
-0.09958518296480179,
0.3734358549118042,
-0.070633664727211,
-0.13558825850486755,
-0.18993759155273438,
-0.1248224601149559,
0.5824733972549438,
0.0935559794306755,
-0.06966741383075714,
0.2455468773841858,
-0.013626149855554104,
0.0776757001876831,
0.46137022972106934,
0.2502686083316803,
0.01693442277610302,
0.5474852323532104,
-0.31308767199516296,
0.029888371005654335,
-0.1627935767173767,
-0.006218683905899525,
-0.2004130482673645,
-0.44737735390663147,
0.1316620111465454,
0.3107805848121643,
-0.07245654612779617,
0.18736636638641357,
-0.14681874215602875,
0.3045753538608551,
-0.25019708275794983,
0.18190111219882965,
0.05436690151691437,
0.04922061413526535,
-0.10957296192646027,
-0.01426981296390295,
0.3495130240917206,
-0.025010066106915474,
-0.2757629156112671,
-0.004661718383431435,
-0.11504676938056946,
0.1466556042432785,
0.37960246205329895,
0.27335089445114136,
0.13359373807907104,
-0.17536208033561707,
0.004142636898905039,
0.21335792541503906,
0.16631412506103516,
-0.482230007648468,
0.14352229237556458,
0.3909597098827362,
-0.08867809921503067,
0.2622959315776825,
-0.0017310214461758733,
0.5537607073783875,
0.1397949755191803,
0.0983077883720398,
-0.0007229222683236003,
-0.10646230727434158,
-0.011388140730559826,
-0.13544151186943054,
0.44462358951568604,
-0.030879775062203407,
-0.10251303762197495,
0.3387672007083893,
0.028034670278429985,
-0.15769349038600922,
0.11466223001480103,
0.19288413226604462,
0.12371594458818436,
-0.17515292763710022,
0.20125780999660492,
0.015889905393123627,
-0.20776605606079102,
-0.17863249778747559,
0.1449802964925766,
-0.37866199016571045,
-0.16338379681110382,
0.25169116258621216,
0.04038402810692787,
0.26245856285095215,
-0.13559408485889435,
0.048980023711919785,
-0.11941149830818176,
0.1483439952135086,
0.3839922249317169,
0.24334971606731415,
-0.285336434841156,
-0.040562111884355545,
-0.6024462580680847,
0.22462815046310425,
-0.04877333715558052,
-0.17107395827770233,
0.04516017064452171,
-0.11297576129436493,
-0.047111548483371735,
-0.15180504322052002,
0.3878985047340393,
-0.01592809148132801,
0.11153426021337509,
0.2670120298862457,
-0.4752601683139801,
-0.22400572896003723,
0.1703026294708252,
-0.06630153954029083,
0.22723498940467834,
-0.3988768458366394,
0.13031946122646332,
-0.2667440176010132,
-0.013735116459429264,
-0.14266689121723175,
-0.19620195031166077,
0.12866783142089844,
0.3134690821170807,
0.3546343445777893,
0.11241412162780762,
0.2980175018310547,
0.060897938907146454,
-0.24986349046230316,
-0.3230273425579071,
0.11824808269739151,
-0.13211673498153687,
0.0156516432762146,
0.21996545791625977,
0.2973279654979706,
-0.4038832187652588,
-0.4329208731651306,
-0.3770737648010254,
0.5200780630111694,
-0.13458767533302307,
0.07144688814878464,
-0.12440542876720428,
-0.04934106394648552,
-0.030626477673649788,
0.27398917078971863,
0.26331189274787903,
0.23375670611858368,
0.07063744217157364,
0.4157320559024811,
-0.1906890869140625,
-0.29982975125312805,
0.6595062017440796,
-0.10658889263868332,
-0.42763060331344604,
0.09819768369197845,
0.4086526334285736,
0.07209689915180206,
-0.1614483892917633,
-0.47127142548561096,
0.15473872423171997,
0.3244370222091675,
0.07843304425477982,
-0.2918296456336975,
0.23153634369373322,
-0.283038854598999,
0.12893269956111908,
-0.10400543361902237,
0.2516619563102722,
0.26928257942199707,
-0.20871412754058838,
-0.05915946513414383,
-0.19673319160938263
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 67 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | [
0.04933885484933853,
0.0920017659664154,
-0.07149408012628555,
0.40184855461120605,
0.4151674211025238,
0.23589497804641724,
0.6366622447967529,
0.24350276589393616,
0.2364589124917984,
0.2313295155763626,
0.018569065257906914,
0.007743521127849817,
-0.1442687064409256,
-0.31003695726394653,
-0.20153596997261047,
-0.24431446194648743,
-0.1581089347600937,
-0.041621673852205276,
-0.17707863450050354,
0.21771864593029022,
-0.1549791693687439,
0.3787364661693573,
0.02463798224925995,
0.15708373486995697,
-0.5360063314437866,
0.09007879346609116,
-0.12959621846675873,
0.3886745274066925,
-0.021506553515791893,
-0.3729909658432007,
0.051118530333042145,
-0.046716805547475815,
0.0688147097826004,
0.8113579750061035,
-0.00012206860264996067,
-0.3334414064884186,
0.3542337119579315,
-0.05629918724298477,
-0.32718947529792786,
-0.2243083417415619,
-0.1685817390680313,
-0.5117117762565613,
-0.03458474203944206,
-0.4988020360469818,
0.18721318244934082,
-0.09511900693178177,
-0.03319060057401657,
-0.8021567463874817,
0.04105241969227791,
0.37330588698387146,
0.1268746554851532,
-0.0783475711941719,
0.0910244807600975,
-0.25791993737220764,
0.33231183886528015,
-0.27798929810523987,
0.00408482551574707,
0.35640254616737366,
0.35569775104522705,
-0.09886761754751205,
-0.15465138852596283,
0.20321816205978394,
-0.03689749166369438,
0.02732490934431553,
0.24715805053710938,
0.07953757792711258,
-0.08748319000005722,
-0.32616478204727173,
0.29580578207969666,
0.42739391326904297,
0.47143781185150146,
-0.09306186437606812,
-0.27931275963783264,
-0.46769726276397705,
0.14249840378761292,
-0.12510563433170319,
0.4885307252407074,
-0.07624012976884842,
-0.2220747172832489,
0.15148845314979553,
-0.17041966319084167,
-0.01962113566696644,
-0.12359674274921417,
-0.11023875325918198,
-0.10197608172893524,
0.06506171822547913,
0.04050881788134575,
0.036279015243053436,
0.3111134469509125,
-0.34831497073173523,
0.2395959198474884,
0.00483670923858881,
0.0742739588022232,
0.2694602906703949,
-0.6542136073112488,
0.14691244065761566,
0.08426859229803085,
0.38549289107322693,
0.25348949432373047,
0.057643648236989975,
-0.26597294211387634,
-0.1483081579208374,
0.1947479546070099,
-0.010466131381690502,
-0.06495512276887894,
0.3742069602012634,
0.19444406032562256,
0.16128137707710266,
0.30124273896217346,
0.07794684171676636,
-0.3367469012737274,
-0.10693513602018356,
-0.07648740708827972,
-0.5534630417823792,
0.4451378881931305,
0.13359108567237854,
0.0741625502705574,
-0.3437119126319885,
0.1504577398300171,
0.5705776214599609,
0.10570475459098816,
-0.010490184649825096,
0.2287026196718216,
0.2733796536922455,
0.005435064435005188,
0.1107669398188591,
0.0830744281411171,
-0.08993672579526901,
-0.08896131813526154,
0.10083485394716263,
-0.14731234312057495,
-0.11073076725006104,
-0.22702015936374664,
0.11240983754396439,
0.0892057791352272,
-0.3083958923816681,
0.2792794108390808,
-0.2274651974439621,
0.31524017453193665,
-0.12495744973421097,
-0.08296910673379898,
-0.23774248361587524,
-0.06673227250576019,
0.15596722066402435,
-0.05910719558596611,
0.07391400635242462,
0.24521401524543762,
-0.26073330640792847,
-0.1920618861913681,
-0.07711149752140045,
-0.3397485911846161,
-0.2851874828338623,
-0.06172122433781624,
0.09470286220312119,
-0.1654944270849228,
0.21590197086334229,
0.24155490100383759,
-0.2671950161457062,
0.6555529236793518,
-0.07981947809457779,
0.012797564268112183,
-0.2747657001018524,
-0.14180991053581238,
0.007192613091319799,
0.04082440212368965,
0.5534658432006836,
0.13252376019954681,
-0.017562497407197952,
-0.06878942996263504,
0.1282823532819748,
0.008665884844958782,
0.37225937843322754,
0.18064512312412262,
-0.05359673872590065,
-0.42195266485214233,
0.31249362230300903,
0.22687137126922607,
-0.24028094112873077,
-0.48698586225509644,
0.3215387463569641,
-0.39430761337280273,
0.09949369728565216,
0.32291173934936523,
0.022883307188749313,
0.051710668951272964,
-0.02458256296813488,
0.28533849120140076,
0.18221305310726166,
-0.026096107438206673,
0.023495467379689217,
-0.20252421498298645,
-0.10733050853013992,
-0.04063059389591217,
0.16919536888599396,
0.010954631492495537,
0.06700100004673004,
0.07961951196193695,
-0.17519184947013855,
0.27156856656074524,
0.031463563442230225,
-0.2040444165468216,
0.37367984652519226,
0.1382422149181366,
0.32671841979026794,
0.18608227372169495,
-0.10632754862308502,
-0.5937502980232239,
0.2637211084365845,
-0.1218472346663475,
-0.178731769323349,
-0.21759292483329773,
-0.18680500984191895,
-0.17498883605003357,
-0.007290015462785959,
0.003460116684436798,
0.13513776659965515,
-0.020408688113093376,
0.28324952721595764,
0.1417793333530426,
-0.13176387548446655,
0.09344019740819931,
0.588379979133606,
-0.17024371027946472,
0.0175975002348423,
-0.47811800241470337,
-0.17112649977207184,
-0.11785336583852768,
-0.11253996938467026,
0.031506992876529694,
0.0016397241270169616,
0.3693963587284088,
-0.10896769165992737,
-0.3443511426448822,
0.4480753242969513,
0.33327677845954895,
0.09753290563821793,
-0.17892485857009888,
-0.004430653061717749,
-0.05686429142951965,
0.22077591717243195,
0.07267019152641296,
0.03981243818998337,
0.0077856299467384815,
0.014291604980826378,
-0.21357637643814087,
0.30001622438430786,
-0.14081594347953796,
0.27127715945243835,
0.028613608330488205,
0.16824106872081757,
0.2461790144443512,
-0.1318138688802719,
0.06434518843889236,
-0.17612244188785553,
0.6458843350410461,
-0.21635276079177856,
0.30484044551849365,
0.0547802709043026,
0.04523155093193054,
-0.14486248791217804,
0.6458196640014648,
0.0453927181661129,
-0.00017786309763323516,
0.19774273037910461,
0.15620157122612,
-0.04081527143716812,
-0.01937291957437992,
0.3064888119697571,
0.511144757270813,
0.1920585185289383,
-0.03012281097471714,
-0.2065059393644333,
0.3941577076911926,
-0.22383460402488708,
0.2563185691833496,
0.015908274799585342,
-0.0027932715602219105,
0.36570313572883606,
0.049618348479270935,
-0.12908749282360077,
0.05148397013545036,
-0.8095090985298157,
-0.05044228956103325,
0.22369785606861115,
-0.31980881094932556,
0.1480822116136551,
-0.13932599127292633,
-0.04320473596453667,
-0.02379995584487915,
0.0004900808562524617,
-0.08039888739585876,
-0.41628220677375793,
-0.18889357149600983,
0.27850598096847534,
-0.14183680713176727,
0.21453383564949036,
-0.11883573979139328,
-0.0032404116354882717,
0.27128273248672485,
-0.014538764022290707,
-0.29502764344215393,
-0.001612711464986205,
0.080344058573246,
-0.08376028388738632,
0.27207306027412415,
-0.5375038385391235,
0.08380357176065445,
-0.1256636381149292,
-0.06310714036226273,
-0.5083521008491516,
-0.24988044798374176,
0.11166753619909286,
-0.16848088800907135,
0.29356399178504944,
0.341366171836853,
0.20785711705684662,
0.16666245460510254,
0.05889717862010002,
0.004961259663105011,
-0.2622789442539215,
0.023669768124818802,
0.23266388475894928,
0.17790067195892334,
-0.022818012163043022,
-0.19179943203926086,
-0.023455079644918442,
-0.34637320041656494,
-0.41603314876556396,
0.3207847476005554,
0.03030286356806755,
0.22792796790599823,
0.34118932485580444,
-0.07087301462888718,
0.2978125214576721,
-0.017972813919186592,
0.24729210138320923,
-0.08790699392557144,
-0.44637012481689453,
0.41706112027168274,
-0.15252165496349335,
-0.2990589737892151,
-0.4318082928657532,
0.2980133593082428,
-0.03550943732261658,
0.10551924258470535,
-0.42236390709877014,
-0.1790710687637329,
-0.4012609124183655,
0.33898529410362244,
-0.33571988344192505,
0.005409501492977142,
0.19702006876468658,
-0.08520112931728363,
-0.05634867772459984,
-0.10693826526403427,
0.08490237593650818,
0.23251228034496307,
0.011036040261387825,
-0.009521141648292542,
0.09298138320446014,
0.29516664147377014,
-0.11607786267995834,
0.4532133638858795,
0.36166563630104065,
0.0753479152917862,
0.19537948071956635,
-0.13766928017139435,
0.1843574047088623,
-0.25903254747390747,
-0.12694580852985382,
0.023937860503792763,
0.17447146773338318,
-0.22158464789390564,
0.13420549035072327,
-0.0853910818696022,
0.01408260315656662,
-0.1333198845386505,
-0.05779215320944786,
0.1078079342842102,
-0.296029657125473,
0.007317005190998316,
0.04858604446053505,
0.05248980596661568,
0.031080305576324463,
0.14569465816020966,
-0.19488713145256042,
-0.1309104710817337,
-0.024089301005005836,
0.30847835540771484,
0.05407886952161789,
-0.02335614711046219,
-0.24687309563159943,
0.09151040017604828,
-0.337141752243042,
0.44400984048843384,
0.1830921471118927,
0.21379823982715607,
-0.06935959309339523,
-0.16017507016658783,
-0.08004874736070633,
0.04600682109594345,
0.6831169128417969,
0.09912963956594467,
0.3160930573940277,
0.15549607574939728,
0.25470346212387085,
-0.12308714538812637,
0.03917254880070686,
0.07955324649810791,
0.37018805742263794,
0.13904094696044922,
0.40793362259864807,
-0.23080970346927643,
0.03760886937379837,
-0.18331679701805115,
0.18554240465164185,
-0.11663326621055603,
-0.4492170512676239,
-0.026285815984010696,
0.00879646185785532,
-0.26368576288223267,
0.16162005066871643,
0.03360515087842941,
0.24422886967658997,
0.06167181581258774,
0.00491343904286623,
-0.06017690896987915,
-0.0747789591550827,
0.16015537083148956,
0.1748357117176056,
0.28126320242881775,
-0.4468778073787689,
0.2643655836582184,
-0.02755928784608841,
-0.1595296710729599,
0.23041296005249023,
0.5639731884002686,
-0.4439825117588043,
-0.24784277379512787,
0.4144729971885681,
-0.35655930638313293,
0.07643894106149673,
0.4287096858024597,
-0.31076616048812866,
-0.15842433273792267,
0.3582063615322113,
0.632159411907196,
0.1236555427312851,
0.025781644508242607,
0.03256829455494881,
0.13087403774261475,
-0.15302148461341858,
-0.33461111783981323,
0.21633082628250122,
0.24309517443180084,
-0.017835326492786407,
0.5360286831855774,
0.024251330643892288,
-0.3025454878807068,
0.26139312982559204,
-0.2059546560049057,
1.0209486484527588,
-0.18544873595237732,
0.18715083599090576,
-0.019080350175499916,
0.12876741588115692,
0.4992987811565399,
0.009290564805269241,
-0.08422483503818512,
-0.4268134832382202,
-0.48278552293777466,
0.1402025669813156,
-0.14980414509773254,
0.23977208137512207,
-0.03667781874537468,
-0.1301994025707245,
0.31392836570739746,
-0.259510338306427,
0.017761841416358948,
-0.17453143000602722,
0.4527932107448578,
-0.6466594338417053,
-0.25421401858329773,
-0.2503231167793274,
0.047983568161726,
-0.04398120567202568,
0.11015051603317261,
0.06171208620071411,
0.16868622601032257,
-0.3292619585990906,
-0.2781672179698944,
-0.22720623016357422,
0.037031758576631546,
-0.4157634973526001,
0.08352941274642944,
-0.24390196800231934,
-0.28220781683921814,
-0.0902421623468399,
0.28521203994750977,
-0.03205064684152603,
0.40133658051490784,
-0.20359548926353455,
0.09235063940286636,
0.08282206207513809,
0.09687257558107376,
0.07300009578466415,
-0.06324420869350433,
0.31769534945487976,
0.016897693276405334,
0.07435350865125656,
-0.28570443391799927,
0.005397516768425703,
-0.1422329694032669,
0.03248238563537598,
-0.02342655323445797,
0.1504138857126236,
-0.23082958161830902,
-0.32375603914260864,
-0.3392716646194458,
-0.20386222004890442,
-0.15043556690216064,
0.052160367369651794,
0.3335696756839752,
-0.238723486661911,
-0.008876784704625607,
-0.28575631976127625,
-0.4090464115142822,
-0.00966474786400795,
0.3055093288421631,
-0.1481093168258667,
-0.047204673290252686,
0.43272703886032104,
0.3000043034553528,
-0.21020984649658203,
-0.17791710793972015,
-0.019017288461327553,
-0.17999638617038727,
-0.6621259450912476,
0.0823080986738205,
0.03603966161608696,
-0.04271099343895912,
-0.24160660803318024,
-0.26683032512664795,
0.20536039769649506,
0.12652955949306488,
0.11139838397502899,
-0.4697990417480469,
-0.4082912504673004,
-0.2329966127872467,
-0.29766830801963806,
0.2016148567199707,
-0.05662452057003975,
-0.3551494777202606,
-0.25884193181991577,
0.03277324140071869,
-0.21220991015434265,
0.059993937611579895,
-0.14237312972545624,
-0.06183665618300438,
0.4633508324623108,
-0.1418495923280716,
0.22446034848690033,
-0.1397039294242859,
0.0463552325963974,
0.4012089669704437,
0.06941330432891846,
-0.18165132403373718,
-0.3011116683483124,
0.1451774388551712,
0.0411619208753109,
0.05858471617102623,
-0.06729105114936829,
-0.37864950299263,
-0.052751727402210236,
-0.27983254194259644,
0.13260354101657867,
0.3364620506763458,
0.2424451857805252,
0.07561851292848587,
0.09433045238256454,
0.09865346550941467,
-0.03252902999520302,
0.3306850790977478,
-0.16495035588741302,
-0.1383989304304123,
0.009523864835500717,
0.27259308099746704,
-0.21072541177272797,
0.11752629280090332,
-0.3212476074695587,
0.1536608189344406,
-0.009539267048239708,
-0.03618196025490761,
0.07528070360422134,
-0.02653687633574009,
-0.10968086868524551,
0.5564427375793457,
0.23271852731704712,
0.29203906655311584,
-0.2722921371459961,
-0.2302524596452713,
0.2756316363811493,
0.13391277194023132,
0.016583358868956566,
-0.20511597394943237,
0.10736642777919769,
-0.1286119967699051,
-0.09958518296480179,
0.3734358549118042,
-0.070633664727211,
-0.13558825850486755,
-0.18993759155273438,
-0.1248224601149559,
0.5824733972549438,
0.0935559794306755,
-0.06966741383075714,
0.2455468773841858,
-0.013626149855554104,
0.0776757001876831,
0.46137022972106934,
0.2502686083316803,
0.01693442277610302,
0.5474852323532104,
-0.31308767199516296,
0.029888371005654335,
-0.1627935767173767,
-0.006218683905899525,
-0.2004130482673645,
-0.44737735390663147,
0.1316620111465454,
0.3107805848121643,
-0.07245654612779617,
0.18736636638641357,
-0.14681874215602875,
0.3045753538608551,
-0.25019708275794983,
0.18190111219882965,
0.05436690151691437,
0.04922061413526535,
-0.10957296192646027,
-0.01426981296390295,
0.3495130240917206,
-0.025010066106915474,
-0.2757629156112671,
-0.004661718383431435,
-0.11504676938056946,
0.1466556042432785,
0.37960246205329895,
0.27335089445114136,
0.13359373807907104,
-0.17536208033561707,
0.004142636898905039,
0.21335792541503906,
0.16631412506103516,
-0.482230007648468,
0.14352229237556458,
0.3909597098827362,
-0.08867809921503067,
0.2622959315776825,
-0.0017310214461758733,
0.5537607073783875,
0.1397949755191803,
0.0983077883720398,
-0.0007229222683236003,
-0.10646230727434158,
-0.011388140730559826,
-0.13544151186943054,
0.44462358951568604,
-0.030879775062203407,
-0.10251303762197495,
0.3387672007083893,
0.028034670278429985,
-0.15769349038600922,
0.11466223001480103,
0.19288413226604462,
0.12371594458818436,
-0.17515292763710022,
0.20125780999660492,
0.015889905393123627,
-0.20776605606079102,
-0.17863249778747559,
0.1449802964925766,
-0.37866199016571045,
-0.16338379681110382,
0.25169116258621216,
0.04038402810692787,
0.26245856285095215,
-0.13559408485889435,
0.048980023711919785,
-0.11941149830818176,
0.1483439952135086,
0.3839922249317169,
0.24334971606731415,
-0.285336434841156,
-0.040562111884355545,
-0.6024462580680847,
0.22462815046310425,
-0.04877333715558052,
-0.17107395827770233,
0.04516017064452171,
-0.11297576129436493,
-0.047111548483371735,
-0.15180504322052002,
0.3878985047340393,
-0.01592809148132801,
0.11153426021337509,
0.2670120298862457,
-0.4752601683139801,
-0.22400572896003723,
0.1703026294708252,
-0.06630153954029083,
0.22723498940467834,
-0.3988768458366394,
0.13031946122646332,
-0.2667440176010132,
-0.013735116459429264,
-0.14266689121723175,
-0.19620195031166077,
0.12866783142089844,
0.3134690821170807,
0.3546343445777893,
0.11241412162780762,
0.2980175018310547,
0.060897938907146454,
-0.24986349046230316,
-0.3230273425579071,
0.11824808269739151,
-0.13211673498153687,
0.0156516432762146,
0.21996545791625977,
0.2973279654979706,
-0.4038832187652588,
-0.4329208731651306,
-0.3770737648010254,
0.5200780630111694,
-0.13458767533302307,
0.07144688814878464,
-0.12440542876720428,
-0.04934106394648552,
-0.030626477673649788,
0.27398917078971863,
0.26331189274787903,
0.23375670611858368,
0.07063744217157364,
0.4157320559024811,
-0.1906890869140625,
-0.29982975125312805,
0.6595062017440796,
-0.10658889263868332,
-0.42763060331344604,
0.09819768369197845,
0.4086526334285736,
0.07209689915180206,
-0.1614483892917633,
-0.47127142548561096,
0.15473872423171997,
0.3244370222091675,
0.07843304425477982,
-0.2918296456336975,
0.23153634369373322,
-0.283038854598999,
0.12893269956111908,
-0.10400543361902237,
0.2516619563102722,
0.26928257942199707,
-0.20871412754058838,
-0.05915946513414383,
-0.19673319160938263
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 26 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | [
-0.38646507263183594,
-0.2204955667257309,
0.089481420814991,
0.4387413263320923,
0.2157086580991745,
0.12292304635047913,
-0.03690986707806587,
0.30938801169395447,
0.24227753281593323,
0.09550254046916962,
-0.22643105685710907,
0.42615339159965515,
-0.06417602300643921,
0.3035329282283783,
-0.009465343318879604,
-0.2584783136844635,
-0.004505916498601437,
0.23376570641994476,
-0.10492555797100067,
0.1268760710954666,
-0.0005552724469453096,
0.19412606954574585,
-0.24699288606643677,
-0.030423130840063095,
0.052229102700948715,
-0.1081046611070633,
0.012406800873577595,
0.2805251479148865,
-0.059583183377981186,
-0.4462355673313141,
0.12590479850769043,
-0.061548274010419846,
0.4121142029762268,
0.33757442235946655,
-0.00011450322199380025,
0.27344825863838196,
0.4721422493457794,
-0.12278413027524948,
-0.48534414172172546,
-0.21211446821689606,
-0.21866583824157715,
0.09612717479467392,
0.0428345762193203,
-0.15663401782512665,
-0.009134124033153057,
0.07111316919326782,
-0.04000481590628624,
-0.7192990183830261,
0.3178502321243286,
0.34563618898391724,
0.17784996330738068,
0.04260045662522316,
-0.048948585987091064,
0.026822403073310852,
0.06883880496025085,
-0.29866454005241394,
-0.09200708568096161,
0.12181729078292847,
0.23672711849212646,
0.2287401556968689,
-0.3595733046531677,
0.3845905661582947,
-0.06588800251483917,
0.06018400564789772,
0.09441512078046799,
0.09672340750694275,
-0.17495006322860718,
-0.46550488471984863,
-0.007394508458673954,
0.18841414153575897,
0.6776785850524902,
-0.25551655888557434,
-0.4161979854106903,
-0.23198845982551575,
-0.002171104308217764,
-0.6144577264785767,
0.1465313583612442,
0.14892703294754028,
-0.4673648774623871,
0.12806008756160736,
0.24596314132213593,
-0.008752889931201935,
-0.3279942572116852,
-0.04587315022945404,
-0.24679897725582123,
0.38822224736213684,
-0.07678597420454025,
-0.023727212101221085,
0.02729426696896553,
-0.08662906289100647,
0.4627741575241089,
-0.21103493869304657,
-0.284593790769577,
-0.06397910416126251,
-0.43975546956062317,
-0.0420655757188797,
-0.07651199400424957,
-0.09410949051380157,
0.16814643144607544,
0.2153896987438202,
0.29532068967819214,
0.08825264126062393,
0.15436404943466187,
0.09264442324638367,
0.3555268943309784,
0.3608669340610504,
0.05983154848217964,
0.1853773593902588,
0.13118089735507965,
0.09943187981843948,
0.13662415742874146,
-0.18189190328121185,
-0.14648891985416412,
-0.037280987948179245,
0.02816305123269558,
-0.013114196248352528,
0.26285871863365173,
-0.1912374496459961,
-0.4138478636741638,
0.02979208156466484,
-0.30572134256362915,
-0.07946714758872986,
0.0055909049697220325,
0.28171706199645996,
0.09583405405282974,
0.41878023743629456,
0.019458401948213577,
0.11786714196205139,
-0.23968325555324554,
-0.45739394426345825,
-0.08781107515096664,
-0.12471812963485718,
-0.0010084602981805801,
0.12334717810153961,
0.015335285104811192,
-0.18868324160575867,
0.1515735536813736,
-0.046537671238183975,
0.16210094094276428,
-0.0012184942606836557,
-0.020856020972132683,
-0.11005944013595581,
0.02162974514067173,
0.20498378574848175,
0.2180558294057846,
0.1640356034040451,
0.17951513826847076,
-0.19978520274162292,
-0.13068240880966187,
0.08862267434597015,
-0.14163312315940857,
-0.16712744534015656,
-0.17883774638175964,
0.2166469246149063,
-0.00940237008035183,
-0.35062694549560547,
-0.09378962218761444,
0.28146862983703613,
0.140959233045578,
-0.2037900984287262,
-0.1410701721906662,
-0.03914652392268181,
-0.12413221597671509,
-0.08651570975780487,
0.1792776882648468,
0.5796177387237549,
-0.18559148907661438,
-0.13802137970924377,
-0.15213879942893982,
0.0008940061670728028,
0.5833053588867188,
0.3344024121761322,
-0.06079140305519104,
0.08979673683643341,
-0.17072254419326782,
0.14765411615371704,
0.501713752746582,
-0.1436586230993271,
-0.5796038508415222,
0.5436659455299377,
-0.039608269929885864,
0.5637281537055969,
0.2707032263278961,
0.02253626473248005,
0.17423419654369354,
0.04311955347657204,
0.31352949142456055,
0.3299020826816559,
-0.1484595239162445,
0.007482044864445925,
-0.33346688747406006,
-0.03998412936925888,
0.4416947364807129,
0.1912287175655365,
0.0674290806055069,
0.2502861022949219,
-0.028874235227704048,
-0.06266791373491287,
0.36897778511047363,
-0.07525704801082611,
0.07634532451629639,
0.04100758582353592,
0.1468886286020279,
0.012037357315421104,
0.1379382610321045,
-0.20907683670520782,
-0.3106826841831207,
0.29723113775253296,
0.07493140548467636,
0.012709964998066425,
-0.3174341320991516,
0.20317277312278748,
-0.19064544141292572,
0.001747539034113288,
-0.2628929615020752,
-0.2590404450893402,
0.12431709468364716,
0.31708019971847534,
0.07562025636434555,
0.05058977007865906,
-0.30847641825675964,
0.7747218608856201,
-0.07825539261102676,
-0.013134672306478024,
-0.4549141228199005,
0.20249266922473907,
-0.07077696174383163,
-0.20145729184150696,
0.016439836472272873,
-0.12656566500663757,
0.06725526601076126,
-0.01619195006787777,
-0.25799131393432617,
0.3313199579715729,
-0.2366141527891159,
0.2640714645385742,
-0.195437490940094,
-0.1731969118118286,
0.28974464535713196,
-0.36447903513908386,
-0.08668441325426102,
0.2706027626991272,
0.10750366747379303,
0.1252097189426422,
-0.01769852824509144,
0.1480841189622879,
0.20709145069122314,
0.2361333966255188,
0.043448545038700104,
0.11434856802225113,
0.19616802036762238,
-0.08167482167482376,
-0.06868350505828857,
-0.08500941097736359,
0.32404857873916626,
-0.3548794388771057,
0.04674984887242317,
-0.19892343878746033,
-0.2722991406917572,
0.0823630690574646,
0.3586791157722473,
-0.1403828114271164,
-0.04927391931414604,
0.3303244113922119,
-0.28853198885917664,
-0.16390769183635712,
0.31456050276756287,
0.19400988519191742,
0.47233614325523376,
0.0815219134092331,
0.25733545422554016,
-0.045588232576847076,
-0.1886483132839203,
-0.07350599765777588,
0.3051699995994568,
0.13748376071453094,
0.03146367520093918,
0.24641123414039612,
0.03000643104314804,
0.16357459127902985,
-0.32291626930236816,
-0.3497171998023987,
-0.05663207918405533,
0.11234167963266373,
-0.32018744945526123,
0.3063015043735504,
-0.3882683515548706,
-0.46517419815063477,
0.04635077714920044,
0.15600866079330444,
0.06890499591827393,
-0.3235586881637573,
-0.18175466358661652,
0.23250547051429749,
-0.0038825261872261763,
0.16368405520915985,
-0.2682062089443207,
0.0895484983921051,
0.26717737317085266,
-0.013468741439282894,
-0.3418698310852051,
-0.18084736168384552,
-0.27296268939971924,
0.059197984635829926,
0.17499545216560364,
-0.4228045344352722,
0.1769193410873413,
0.007426348980516195,
-0.11605295538902283,
-0.14017337560653687,
-0.0764235332608223,
0.31978195905685425,
-0.15549951791763306,
0.15689551830291748,
-0.2774865925312042,
0.14939135313034058,
0.22136296331882477,
-0.25034913420677185,
0.12194833159446716,
0.09083358943462372,
-0.11878442764282227,
0.28012463450431824,
0.09408987313508987,
-0.024161122739315033,
-0.030583521351218224,
-0.3010804057121277,
-0.30246657133102417,
-0.6177492737770081,
0.05496867373585701,
0.045426145195961,
0.21355153620243073,
0.16430486738681793,
0.017034953460097313,
0.09682478755712509,
0.3292069435119629,
0.09916029125452042,
-0.11421212553977966,
-0.4199433922767639,
0.37474480271339417,
-0.16701515018939972,
-0.2868405878543854,
-0.3248364329338074,
-0.06815961003303528,
0.1972900629043579,
0.25892677903175354,
-0.5295243263244629,
0.2950165271759033,
-0.40810319781303406,
0.0848926454782486,
-0.383451908826828,
-0.09745605289936066,
-0.026151806116104126,
0.07628907263278961,
-0.0349893644452095,
-0.18785764276981354,
0.07074581831693649,
-0.11695167422294617,
0.0990077555179596,
0.2066105455160141,
0.10863049328327179,
0.36987099051475525,
0.10084988921880722,
0.3327505588531494,
0.4812106490135193,
-0.0195497814565897,
0.3407551944255829,
0.08289115875959396,
0.15380068123340607,
-0.10043346881866455,
-0.06278826296329498,
-0.09556203335523605,
-0.2280799001455307,
-0.026119768619537354,
0.09819924831390381,
-0.09621275961399078,
-0.5762304067611694,
-0.2840513288974762,
0.05491529405117035,
-0.06923674792051315,
-0.2383105605840683,
0.05288355425000191,
-0.5117751359939575,
0.042048029601573944,
-0.18725718557834625,
0.15833960473537445,
0.0807967558503151,
0.052001286298036575,
0.08604580909013748,
0.17725275456905365,
0.12616413831710815,
0.17211958765983582,
-0.18502168357372284,
-0.06390500068664551,
-0.4881904721260071,
0.18258608877658844,
0.1051265299320221,
0.42157500982284546,
-0.16781026124954224,
-0.1327168047428131,
0.0791148766875267,
-0.06520670652389526,
0.3487038314342499,
-0.2754172682762146,
0.003567031119018793,
0.26739397644996643,
0.1421356052160263,
-0.1415519267320633,
0.09176725149154663,
-0.3209458887577057,
0.1368289738893509,
0.23595453798770905,
0.09742030501365662,
-0.1718231588602066,
0.03334014117717743,
-0.08841989189386368,
-0.07249611616134644,
-0.1253027766942978,
-0.016398951411247253,
-0.17049619555473328,
-0.2492378056049347,
-0.15200993418693542,
-0.13424265384674072,
0.2032727599143982,
0.1256835013628006,
-0.012460173107683659,
-0.05679277703166008,
-0.046081703156232834,
-0.0396246574819088,
0.24185976386070251,
0.22132517397403717,
0.1399097591638565,
-0.07227986305952072,
0.22901111841201782,
0.0671992376446724,
0.28444504737854004,
0.2292165607213974,
0.8364327549934387,
0.1181943267583847,
-0.5624254941940308,
0.23508219420909882,
0.233955979347229,
0.16609929502010345,
0.13054032623767853,
-0.14823280274868011,
-0.008516823872923851,
-0.04038475826382637,
0.2698211371898651,
-0.3024732768535614,
0.2146550863981247,
0.21123285591602325,
-0.050721004605293274,
-0.5149303674697876,
-0.4357539117336273,
0.5883386731147766,
-0.03936795890331268,
-0.07619065791368484,
0.7872933149337769,
-0.1665048748254776,
-0.31715574860572815,
0.4775414764881134,
0.023435205221176147,
0.758588433265686,
0.09439537674188614,
0.2168685346841812,
0.24074816703796387,
-0.32072776556015015,
0.5003331899642944,
-0.23206846415996552,
0.3346687853336334,
-0.12060964107513428,
-0.33502957224845886,
-0.0831092968583107,
-0.10410945117473602,
0.1709023416042328,
-0.1476040482521057,
-0.630253791809082,
0.1709609180688858,
-0.05964387580752373,
-0.2528052031993866,
0.3353525996208191,
0.27422651648521423,
-0.6082698106765747,
-0.30629274249076843,
-0.06754982471466064,
0.13888274133205414,
-0.22135944664478302,
0.32396140694618225,
0.1382445991039276,
-0.22023369371891022,
-0.05157337337732315,
-0.08431024849414825,
-0.4702361226081848,
0.4758625328540802,
-0.2765568196773529,
0.1624138206243515,
-0.23903128504753113,
-0.4760982096195221,
0.1513126939535141,
0.26640215516090393,
-0.14213290810585022,
-0.22578595578670502,
-0.15825094282627106,
0.23504357039928436,
0.186054065823555,
0.12802377343177795,
0.09930692613124847,
0.15145832300186157,
0.3883589208126068,
0.05327742174267769,
-0.016812169924378395,
0.18844205141067505,
-0.008980035781860352,
-0.16062869131565094,
-0.06378158926963806,
0.055457454174757004,
0.3183138072490692,
-0.26818060874938965,
0.23685772716999054,
-0.10585100948810577,
0.04292551055550575,
-0.18425290286540985,
0.08697227388620377,
-0.0188316460698843,
-0.17405405640602112,
-0.07388780266046524,
-0.08129703998565674,
-0.21967612206935883,
-0.08474414795637131,
0.3771202266216278,
0.1454576998949051,
0.31797122955322266,
0.4994189143180847,
0.028116896748542786,
-0.17788046598434448,
-0.10367144644260406,
-0.05515022575855255,
-0.29313957691192627,
-0.2526122033596039,
0.0693599283695221,
-0.24147646129131317,
-0.16102829575538635,
-0.2706694006919861,
0.0038265285547822714,
0.04483765363693237,
-0.10355428606271744,
-0.11373868584632874,
-0.29936617612838745,
-0.19063684344291687,
-0.026614591479301453,
-0.12424375861883163,
0.21993061900138855,
-0.1722201555967331,
0.022203832864761353,
0.003119823755696416,
0.1290857046842575,
-0.2706838548183441,
-0.12285948544740677,
-0.0753692090511322,
0.0231177881360054,
0.2672103941440582,
0.029267728328704834,
0.25923383235931396,
0.10966919362545013,
0.14762282371520996,
0.31390470266342163,
-0.027674701064825058,
-0.16095387935638428,
-0.17879508435726166,
0.1384894847869873,
0.016531458124518394,
-0.3480512499809265,
-0.1548941731452942,
-0.056620627641677856,
0.012690648436546326,
-0.1251361072063446,
0.3503142297267914,
0.18123020231723785,
0.03809678927063942,
0.2706012427806854,
0.12401355057954788,
0.05633603781461716,
-0.23264764249324799,
0.15423683822155,
-0.26427310705184937,
0.24013081192970276,
0.08111181110143661,
0.09284059703350067,
-0.07553951442241669,
-0.011869016103446484,
-0.36461341381073,
0.062269773334264755,
0.10179439187049866,
-0.028017167001962662,
0.5909270644187927,
-0.42418044805526733,
0.17204473912715912,
-0.04977473244071007,
0.06602989882230759,
0.4045228064060211,
-0.22961901128292084,
-0.2089620977640152,
0.08508496731519699,
0.20005157589912415,
-0.043203115463256836,
-0.21262098848819733,
-0.4010482430458069,
-0.10164076089859009,
0.011238581500947475,
0.1459597498178482,
-0.10688982903957367,
-0.27218371629714966,
0.09996356815099716,
-0.21030835807323456,
0.48598355054855347,
0.3358429968357086,
0.2670665383338928,
0.48363861441612244,
-0.1811283528804779,
0.02284688875079155,
-0.22602511942386627,
0.020459234714508057,
0.19990667700767517,
0.2970433533191681,
0.0035515299532562494,
-0.007869645021855831,
-0.1613658219575882,
0.21781906485557556,
-0.18597492575645447,
-0.48219603300094604,
-0.07974769175052643,
0.10244756191968918,
-0.1647547483444214,
0.3901936113834381,
0.1489097774028778,
0.15216076374053955,
-0.27793532609939575,
-0.05192168802022934,
-0.04584174230694771,
-0.06612654030323029,
-0.014279885217547417,
-0.09607995301485062,
0.10687627643346786,
-0.012856383807957172,
-0.32792311906814575,
0.09760846942663193,
0.012399740517139435,
0.0633685365319252,
-0.019864294677972794,
0.2808055281639099,
-0.2884628474712372,
-0.11850133538246155,
-0.08222774416208267,
0.10431752353906631,
0.29992544651031494,
-0.35441502928733826,
0.44406911730766296,
0.3661908209323883,
-0.15686115622520447,
0.02825087308883667,
0.07000181823968887,
0.48160767555236816,
0.2853381633758545,
-0.17665058374404907,
0.09465013444423676,
0.33741673827171326,
-0.04363713040947914,
-0.040221404284238815,
0.04425401613116264,
0.2830949127674103,
0.17931993305683136,
0.4566899538040161,
0.08873934298753738,
-0.1485421061515808,
0.10457181930541992,
0.08143521845340729,
0.2538890540599823,
-0.2799384891986847,
0.46231991052627563,
-0.11950626224279404,
0.036692071706056595,
0.02724214643239975,
-0.33657217025756836,
-0.5624157786369324,
-0.02820464037358761,
0.03489604592323303,
-0.22850020229816437,
0.07452382147312164,
-0.008112424984574318,
0.06287827342748642,
0.11395472288131714,
0.4926682412624359,
0.32484114170074463,
-0.018845925107598305,
-0.22450955212116241,
-0.1508791595697403,
-0.2355838418006897,
0.23320233821868896,
-0.06747961789369583,
-0.12314850091934204,
0.1752849519252777,
0.2219228595495224,
-0.004841382149606943,
0.16804932057857513,
-0.15844488143920898,
0.02045494318008423,
-0.26728391647338867,
0.1405727118253708,
-0.3995799422264099,
-0.35156700015068054,
0.19196368753910065,
0.17357957363128662,
-0.04831157624721527,
-0.5764800906181335,
0.18813884258270264,
-0.15023888647556305,
0.16081784665584564,
0.09261315315961838,
-0.24184834957122803,
0.10114521533250809,
-0.27565798163414,
0.5297338366508484,
0.23311050236225128,
0.37920016050338745,
-0.18429502844810486,
-0.4119570255279541,
-0.09924660623073578,
-0.37623047828674316,
-0.27491453289985657,
-0.015584271401166916,
0.10833343118429184,
0.5696322321891785,
-0.14933380484580994,
-0.23738403618335724,
-0.3574709892272949,
0.32626238465309143,
0.060889631509780884,
-0.2656731903553009,
-0.27353888750076294,
0.17337049543857574,
-0.11945990473031998,
0.21312618255615234,
0.30505117774009705,
0.38034501671791077,
-0.028712939471006393,
0.16399507224559784,
-0.22351552546024323,
-0.43332117795944214,
0.5773109793663025,
-0.3461064398288727,
-0.26596689224243164,
0.24184110760688782,
0.06381378322839737,
0.32649803161621094,
0.2410198301076889,
-0.45966649055480957,
0.08936529606580734,
0.3556547164916992,
-0.2354130893945694,
-0.1511853188276291,
0.14214643836021423,
0.22597046196460724,
-0.06072015315294266,
-0.0850398913025856,
0.4553110897541046,
0.24239647388458252,
-0.24920444190502167,
0.17508156597614288,
-0.17863886058330536
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 46 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | [
-0.38646507263183594,
-0.2204955667257309,
0.089481420814991,
0.4387413263320923,
0.2157086580991745,
0.12292304635047913,
-0.03690986707806587,
0.30938801169395447,
0.24227753281593323,
0.09550254046916962,
-0.22643105685710907,
0.42615339159965515,
-0.06417602300643921,
0.3035329282283783,
-0.009465343318879604,
-0.2584783136844635,
-0.004505916498601437,
0.23376570641994476,
-0.10492555797100067,
0.1268760710954666,
-0.0005552724469453096,
0.19412606954574585,
-0.24699288606643677,
-0.030423130840063095,
0.052229102700948715,
-0.1081046611070633,
0.012406800873577595,
0.2805251479148865,
-0.059583183377981186,
-0.4462355673313141,
0.12590479850769043,
-0.061548274010419846,
0.4121142029762268,
0.33757442235946655,
-0.00011450322199380025,
0.27344825863838196,
0.4721422493457794,
-0.12278413027524948,
-0.48534414172172546,
-0.21211446821689606,
-0.21866583824157715,
0.09612717479467392,
0.0428345762193203,
-0.15663401782512665,
-0.009134124033153057,
0.07111316919326782,
-0.04000481590628624,
-0.7192990183830261,
0.3178502321243286,
0.34563618898391724,
0.17784996330738068,
0.04260045662522316,
-0.048948585987091064,
0.026822403073310852,
0.06883880496025085,
-0.29866454005241394,
-0.09200708568096161,
0.12181729078292847,
0.23672711849212646,
0.2287401556968689,
-0.3595733046531677,
0.3845905661582947,
-0.06588800251483917,
0.06018400564789772,
0.09441512078046799,
0.09672340750694275,
-0.17495006322860718,
-0.46550488471984863,
-0.007394508458673954,
0.18841414153575897,
0.6776785850524902,
-0.25551655888557434,
-0.4161979854106903,
-0.23198845982551575,
-0.002171104308217764,
-0.6144577264785767,
0.1465313583612442,
0.14892703294754028,
-0.4673648774623871,
0.12806008756160736,
0.24596314132213593,
-0.008752889931201935,
-0.3279942572116852,
-0.04587315022945404,
-0.24679897725582123,
0.38822224736213684,
-0.07678597420454025,
-0.023727212101221085,
0.02729426696896553,
-0.08662906289100647,
0.4627741575241089,
-0.21103493869304657,
-0.284593790769577,
-0.06397910416126251,
-0.43975546956062317,
-0.0420655757188797,
-0.07651199400424957,
-0.09410949051380157,
0.16814643144607544,
0.2153896987438202,
0.29532068967819214,
0.08825264126062393,
0.15436404943466187,
0.09264442324638367,
0.3555268943309784,
0.3608669340610504,
0.05983154848217964,
0.1853773593902588,
0.13118089735507965,
0.09943187981843948,
0.13662415742874146,
-0.18189190328121185,
-0.14648891985416412,
-0.037280987948179245,
0.02816305123269558,
-0.013114196248352528,
0.26285871863365173,
-0.1912374496459961,
-0.4138478636741638,
0.02979208156466484,
-0.30572134256362915,
-0.07946714758872986,
0.0055909049697220325,
0.28171706199645996,
0.09583405405282974,
0.41878023743629456,
0.019458401948213577,
0.11786714196205139,
-0.23968325555324554,
-0.45739394426345825,
-0.08781107515096664,
-0.12471812963485718,
-0.0010084602981805801,
0.12334717810153961,
0.015335285104811192,
-0.18868324160575867,
0.1515735536813736,
-0.046537671238183975,
0.16210094094276428,
-0.0012184942606836557,
-0.020856020972132683,
-0.11005944013595581,
0.02162974514067173,
0.20498378574848175,
0.2180558294057846,
0.1640356034040451,
0.17951513826847076,
-0.19978520274162292,
-0.13068240880966187,
0.08862267434597015,
-0.14163312315940857,
-0.16712744534015656,
-0.17883774638175964,
0.2166469246149063,
-0.00940237008035183,
-0.35062694549560547,
-0.09378962218761444,
0.28146862983703613,
0.140959233045578,
-0.2037900984287262,
-0.1410701721906662,
-0.03914652392268181,
-0.12413221597671509,
-0.08651570975780487,
0.1792776882648468,
0.5796177387237549,
-0.18559148907661438,
-0.13802137970924377,
-0.15213879942893982,
0.0008940061670728028,
0.5833053588867188,
0.3344024121761322,
-0.06079140305519104,
0.08979673683643341,
-0.17072254419326782,
0.14765411615371704,
0.501713752746582,
-0.1436586230993271,
-0.5796038508415222,
0.5436659455299377,
-0.039608269929885864,
0.5637281537055969,
0.2707032263278961,
0.02253626473248005,
0.17423419654369354,
0.04311955347657204,
0.31352949142456055,
0.3299020826816559,
-0.1484595239162445,
0.007482044864445925,
-0.33346688747406006,
-0.03998412936925888,
0.4416947364807129,
0.1912287175655365,
0.0674290806055069,
0.2502861022949219,
-0.028874235227704048,
-0.06266791373491287,
0.36897778511047363,
-0.07525704801082611,
0.07634532451629639,
0.04100758582353592,
0.1468886286020279,
0.012037357315421104,
0.1379382610321045,
-0.20907683670520782,
-0.3106826841831207,
0.29723113775253296,
0.07493140548467636,
0.012709964998066425,
-0.3174341320991516,
0.20317277312278748,
-0.19064544141292572,
0.001747539034113288,
-0.2628929615020752,
-0.2590404450893402,
0.12431709468364716,
0.31708019971847534,
0.07562025636434555,
0.05058977007865906,
-0.30847641825675964,
0.7747218608856201,
-0.07825539261102676,
-0.013134672306478024,
-0.4549141228199005,
0.20249266922473907,
-0.07077696174383163,
-0.20145729184150696,
0.016439836472272873,
-0.12656566500663757,
0.06725526601076126,
-0.01619195006787777,
-0.25799131393432617,
0.3313199579715729,
-0.2366141527891159,
0.2640714645385742,
-0.195437490940094,
-0.1731969118118286,
0.28974464535713196,
-0.36447903513908386,
-0.08668441325426102,
0.2706027626991272,
0.10750366747379303,
0.1252097189426422,
-0.01769852824509144,
0.1480841189622879,
0.20709145069122314,
0.2361333966255188,
0.043448545038700104,
0.11434856802225113,
0.19616802036762238,
-0.08167482167482376,
-0.06868350505828857,
-0.08500941097736359,
0.32404857873916626,
-0.3548794388771057,
0.04674984887242317,
-0.19892343878746033,
-0.2722991406917572,
0.0823630690574646,
0.3586791157722473,
-0.1403828114271164,
-0.04927391931414604,
0.3303244113922119,
-0.28853198885917664,
-0.16390769183635712,
0.31456050276756287,
0.19400988519191742,
0.47233614325523376,
0.0815219134092331,
0.25733545422554016,
-0.045588232576847076,
-0.1886483132839203,
-0.07350599765777588,
0.3051699995994568,
0.13748376071453094,
0.03146367520093918,
0.24641123414039612,
0.03000643104314804,
0.16357459127902985,
-0.32291626930236816,
-0.3497171998023987,
-0.05663207918405533,
0.11234167963266373,
-0.32018744945526123,
0.3063015043735504,
-0.3882683515548706,
-0.46517419815063477,
0.04635077714920044,
0.15600866079330444,
0.06890499591827393,
-0.3235586881637573,
-0.18175466358661652,
0.23250547051429749,
-0.0038825261872261763,
0.16368405520915985,
-0.2682062089443207,
0.0895484983921051,
0.26717737317085266,
-0.013468741439282894,
-0.3418698310852051,
-0.18084736168384552,
-0.27296268939971924,
0.059197984635829926,
0.17499545216560364,
-0.4228045344352722,
0.1769193410873413,
0.007426348980516195,
-0.11605295538902283,
-0.14017337560653687,
-0.0764235332608223,
0.31978195905685425,
-0.15549951791763306,
0.15689551830291748,
-0.2774865925312042,
0.14939135313034058,
0.22136296331882477,
-0.25034913420677185,
0.12194833159446716,
0.09083358943462372,
-0.11878442764282227,
0.28012463450431824,
0.09408987313508987,
-0.024161122739315033,
-0.030583521351218224,
-0.3010804057121277,
-0.30246657133102417,
-0.6177492737770081,
0.05496867373585701,
0.045426145195961,
0.21355153620243073,
0.16430486738681793,
0.017034953460097313,
0.09682478755712509,
0.3292069435119629,
0.09916029125452042,
-0.11421212553977966,
-0.4199433922767639,
0.37474480271339417,
-0.16701515018939972,
-0.2868405878543854,
-0.3248364329338074,
-0.06815961003303528,
0.1972900629043579,
0.25892677903175354,
-0.5295243263244629,
0.2950165271759033,
-0.40810319781303406,
0.0848926454782486,
-0.383451908826828,
-0.09745605289936066,
-0.026151806116104126,
0.07628907263278961,
-0.0349893644452095,
-0.18785764276981354,
0.07074581831693649,
-0.11695167422294617,
0.0990077555179596,
0.2066105455160141,
0.10863049328327179,
0.36987099051475525,
0.10084988921880722,
0.3327505588531494,
0.4812106490135193,
-0.0195497814565897,
0.3407551944255829,
0.08289115875959396,
0.15380068123340607,
-0.10043346881866455,
-0.06278826296329498,
-0.09556203335523605,
-0.2280799001455307,
-0.026119768619537354,
0.09819924831390381,
-0.09621275961399078,
-0.5762304067611694,
-0.2840513288974762,
0.05491529405117035,
-0.06923674792051315,
-0.2383105605840683,
0.05288355425000191,
-0.5117751359939575,
0.042048029601573944,
-0.18725718557834625,
0.15833960473537445,
0.0807967558503151,
0.052001286298036575,
0.08604580909013748,
0.17725275456905365,
0.12616413831710815,
0.17211958765983582,
-0.18502168357372284,
-0.06390500068664551,
-0.4881904721260071,
0.18258608877658844,
0.1051265299320221,
0.42157500982284546,
-0.16781026124954224,
-0.1327168047428131,
0.0791148766875267,
-0.06520670652389526,
0.3487038314342499,
-0.2754172682762146,
0.003567031119018793,
0.26739397644996643,
0.1421356052160263,
-0.1415519267320633,
0.09176725149154663,
-0.3209458887577057,
0.1368289738893509,
0.23595453798770905,
0.09742030501365662,
-0.1718231588602066,
0.03334014117717743,
-0.08841989189386368,
-0.07249611616134644,
-0.1253027766942978,
-0.016398951411247253,
-0.17049619555473328,
-0.2492378056049347,
-0.15200993418693542,
-0.13424265384674072,
0.2032727599143982,
0.1256835013628006,
-0.012460173107683659,
-0.05679277703166008,
-0.046081703156232834,
-0.0396246574819088,
0.24185976386070251,
0.22132517397403717,
0.1399097591638565,
-0.07227986305952072,
0.22901111841201782,
0.0671992376446724,
0.28444504737854004,
0.2292165607213974,
0.8364327549934387,
0.1181943267583847,
-0.5624254941940308,
0.23508219420909882,
0.233955979347229,
0.16609929502010345,
0.13054032623767853,
-0.14823280274868011,
-0.008516823872923851,
-0.04038475826382637,
0.2698211371898651,
-0.3024732768535614,
0.2146550863981247,
0.21123285591602325,
-0.050721004605293274,
-0.5149303674697876,
-0.4357539117336273,
0.5883386731147766,
-0.03936795890331268,
-0.07619065791368484,
0.7872933149337769,
-0.1665048748254776,
-0.31715574860572815,
0.4775414764881134,
0.023435205221176147,
0.758588433265686,
0.09439537674188614,
0.2168685346841812,
0.24074816703796387,
-0.32072776556015015,
0.5003331899642944,
-0.23206846415996552,
0.3346687853336334,
-0.12060964107513428,
-0.33502957224845886,
-0.0831092968583107,
-0.10410945117473602,
0.1709023416042328,
-0.1476040482521057,
-0.630253791809082,
0.1709609180688858,
-0.05964387580752373,
-0.2528052031993866,
0.3353525996208191,
0.27422651648521423,
-0.6082698106765747,
-0.30629274249076843,
-0.06754982471466064,
0.13888274133205414,
-0.22135944664478302,
0.32396140694618225,
0.1382445991039276,
-0.22023369371891022,
-0.05157337337732315,
-0.08431024849414825,
-0.4702361226081848,
0.4758625328540802,
-0.2765568196773529,
0.1624138206243515,
-0.23903128504753113,
-0.4760982096195221,
0.1513126939535141,
0.26640215516090393,
-0.14213290810585022,
-0.22578595578670502,
-0.15825094282627106,
0.23504357039928436,
0.186054065823555,
0.12802377343177795,
0.09930692613124847,
0.15145832300186157,
0.3883589208126068,
0.05327742174267769,
-0.016812169924378395,
0.18844205141067505,
-0.008980035781860352,
-0.16062869131565094,
-0.06378158926963806,
0.055457454174757004,
0.3183138072490692,
-0.26818060874938965,
0.23685772716999054,
-0.10585100948810577,
0.04292551055550575,
-0.18425290286540985,
0.08697227388620377,
-0.0188316460698843,
-0.17405405640602112,
-0.07388780266046524,
-0.08129703998565674,
-0.21967612206935883,
-0.08474414795637131,
0.3771202266216278,
0.1454576998949051,
0.31797122955322266,
0.4994189143180847,
0.028116896748542786,
-0.17788046598434448,
-0.10367144644260406,
-0.05515022575855255,
-0.29313957691192627,
-0.2526122033596039,
0.0693599283695221,
-0.24147646129131317,
-0.16102829575538635,
-0.2706694006919861,
0.0038265285547822714,
0.04483765363693237,
-0.10355428606271744,
-0.11373868584632874,
-0.29936617612838745,
-0.19063684344291687,
-0.026614591479301453,
-0.12424375861883163,
0.21993061900138855,
-0.1722201555967331,
0.022203832864761353,
0.003119823755696416,
0.1290857046842575,
-0.2706838548183441,
-0.12285948544740677,
-0.0753692090511322,
0.0231177881360054,
0.2672103941440582,
0.029267728328704834,
0.25923383235931396,
0.10966919362545013,
0.14762282371520996,
0.31390470266342163,
-0.027674701064825058,
-0.16095387935638428,
-0.17879508435726166,
0.1384894847869873,
0.016531458124518394,
-0.3480512499809265,
-0.1548941731452942,
-0.056620627641677856,
0.012690648436546326,
-0.1251361072063446,
0.3503142297267914,
0.18123020231723785,
0.03809678927063942,
0.2706012427806854,
0.12401355057954788,
0.05633603781461716,
-0.23264764249324799,
0.15423683822155,
-0.26427310705184937,
0.24013081192970276,
0.08111181110143661,
0.09284059703350067,
-0.07553951442241669,
-0.011869016103446484,
-0.36461341381073,
0.062269773334264755,
0.10179439187049866,
-0.028017167001962662,
0.5909270644187927,
-0.42418044805526733,
0.17204473912715912,
-0.04977473244071007,
0.06602989882230759,
0.4045228064060211,
-0.22961901128292084,
-0.2089620977640152,
0.08508496731519699,
0.20005157589912415,
-0.043203115463256836,
-0.21262098848819733,
-0.4010482430458069,
-0.10164076089859009,
0.011238581500947475,
0.1459597498178482,
-0.10688982903957367,
-0.27218371629714966,
0.09996356815099716,
-0.21030835807323456,
0.48598355054855347,
0.3358429968357086,
0.2670665383338928,
0.48363861441612244,
-0.1811283528804779,
0.02284688875079155,
-0.22602511942386627,
0.020459234714508057,
0.19990667700767517,
0.2970433533191681,
0.0035515299532562494,
-0.007869645021855831,
-0.1613658219575882,
0.21781906485557556,
-0.18597492575645447,
-0.48219603300094604,
-0.07974769175052643,
0.10244756191968918,
-0.1647547483444214,
0.3901936113834381,
0.1489097774028778,
0.15216076374053955,
-0.27793532609939575,
-0.05192168802022934,
-0.04584174230694771,
-0.06612654030323029,
-0.014279885217547417,
-0.09607995301485062,
0.10687627643346786,
-0.012856383807957172,
-0.32792311906814575,
0.09760846942663193,
0.012399740517139435,
0.0633685365319252,
-0.019864294677972794,
0.2808055281639099,
-0.2884628474712372,
-0.11850133538246155,
-0.08222774416208267,
0.10431752353906631,
0.29992544651031494,
-0.35441502928733826,
0.44406911730766296,
0.3661908209323883,
-0.15686115622520447,
0.02825087308883667,
0.07000181823968887,
0.48160767555236816,
0.2853381633758545,
-0.17665058374404907,
0.09465013444423676,
0.33741673827171326,
-0.04363713040947914,
-0.040221404284238815,
0.04425401613116264,
0.2830949127674103,
0.17931993305683136,
0.4566899538040161,
0.08873934298753738,
-0.1485421061515808,
0.10457181930541992,
0.08143521845340729,
0.2538890540599823,
-0.2799384891986847,
0.46231991052627563,
-0.11950626224279404,
0.036692071706056595,
0.02724214643239975,
-0.33657217025756836,
-0.5624157786369324,
-0.02820464037358761,
0.03489604592323303,
-0.22850020229816437,
0.07452382147312164,
-0.008112424984574318,
0.06287827342748642,
0.11395472288131714,
0.4926682412624359,
0.32484114170074463,
-0.018845925107598305,
-0.22450955212116241,
-0.1508791595697403,
-0.2355838418006897,
0.23320233821868896,
-0.06747961789369583,
-0.12314850091934204,
0.1752849519252777,
0.2219228595495224,
-0.004841382149606943,
0.16804932057857513,
-0.15844488143920898,
0.02045494318008423,
-0.26728391647338867,
0.1405727118253708,
-0.3995799422264099,
-0.35156700015068054,
0.19196368753910065,
0.17357957363128662,
-0.04831157624721527,
-0.5764800906181335,
0.18813884258270264,
-0.15023888647556305,
0.16081784665584564,
0.09261315315961838,
-0.24184834957122803,
0.10114521533250809,
-0.27565798163414,
0.5297338366508484,
0.23311050236225128,
0.37920016050338745,
-0.18429502844810486,
-0.4119570255279541,
-0.09924660623073578,
-0.37623047828674316,
-0.27491453289985657,
-0.015584271401166916,
0.10833343118429184,
0.5696322321891785,
-0.14933380484580994,
-0.23738403618335724,
-0.3574709892272949,
0.32626238465309143,
0.060889631509780884,
-0.2656731903553009,
-0.27353888750076294,
0.17337049543857574,
-0.11945990473031998,
0.21312618255615234,
0.30505117774009705,
0.38034501671791077,
-0.028712939471006393,
0.16399507224559784,
-0.22351552546024323,
-0.43332117795944214,
0.5773109793663025,
-0.3461064398288727,
-0.26596689224243164,
0.24184110760688782,
0.06381378322839737,
0.32649803161621094,
0.2410198301076889,
-0.45966649055480957,
0.08936529606580734,
0.3556547164916992,
-0.2354130893945694,
-0.1511853188276291,
0.14214643836021423,
0.22597046196460724,
-0.06072015315294266,
-0.0850398913025856,
0.4553110897541046,
0.24239647388458252,
-0.24920444190502167,
0.17508156597614288,
-0.17863886058330536
] |
https://github.com/huggingface/datasets/issues/2917 | windows download abnormal | Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | ## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
| 41 | windows download abnormal
## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | [
-0.12404882907867432,
-0.20182541012763977,
-0.07033970206975937,
0.18945950269699097,
0.214773491024971,
-0.1120501384139061,
0.02766747958958149,
0.07187360525131226,
0.28058135509490967,
0.08505606651306152,
0.16487334668636322,
0.11740700900554657,
0.15548129379749298,
0.10220390558242798,
0.15884733200073242,
-0.261504203081131,
0.030185703188180923,
0.03931013494729996,
-0.16915155947208405,
0.00886442232877016,
-0.3215377926826477,
0.08592832833528519,
-0.3066692650318146,
-0.1127145066857338,
0.16355884075164795,
0.03243996575474739,
-0.2886960804462433,
0.30047082901000977,
-0.25460004806518555,
-0.16940440237522125,
0.09936966747045517,
-0.07090836018323898,
0.1850663274526596,
0.35194993019104004,
-0.0001087431373889558,
0.08132565766572952,
0.3922838866710663,
0.023531267419457436,
0.01742839254438877,
-0.05817477032542229,
-0.2938908636569977,
-0.14136871695518494,
-0.19119451940059662,
-0.31517183780670166,
0.09970620274543762,
0.2347300946712494,
0.04543754458427429,
-0.1112285777926445,
0.24436266720294952,
0.4491448402404785,
0.3060820996761322,
0.4809371829032898,
-0.1150025799870491,
0.051726892590522766,
0.45546290278434753,
0.05056493729352951,
-0.1816767305135727,
0.24919936060905457,
0.3063495457172394,
-0.14193788170814514,
0.25700247287750244,
-0.059411194175481796,
-0.12101133912801743,
0.011558706872165203,
0.031003620475530624,
0.12063519656658173,
-0.04946434870362282,
-0.5093156695365906,
0.12343183159828186,
0.17437492311000824,
0.3126615583896637,
-0.15310905873775482,
-0.15854042768478394,
0.11584712564945221,
-0.14939960837364197,
-0.18569700419902802,
0.2733875513076782,
0.2762599289417267,
-0.139317125082016,
0.1871822625398636,
-0.2805481255054474,
0.17438751459121704,
-0.20567987859249115,
0.2596929669380188,
-0.11910749226808548,
0.3299073874950409,
-0.07594991475343704,
0.18944644927978516,
-0.17101441323757172,
0.31671786308288574,
0.037710558623075485,
-0.3272553086280823,
-0.015676995739340782,
-0.003989660646766424,
0.08568944036960602,
0.10570786893367767,
0.04935538023710251,
0.5118294954299927,
0.05730396881699562,
0.2643461525440216,
0.033488474786281586,
-0.05601891875267029,
0.24108992516994476,
0.07001876831054688,
0.09027250856161118,
0.09497997909784317,
-0.2958667278289795,
0.06604398041963577,
0.38178178668022156,
0.3139166831970215,
-0.006579607725143433,
-0.02620098367333412,
-0.033049676567316055,
-0.31550660729408264,
0.2965119183063507,
-0.0053918431513011456,
0.48603516817092896,
-0.04742739722132683,
-0.5569108724594116,
0.002635164884850383,
0.014628531411290169,
0.09089187532663345,
-0.0023529224563390017,
0.2526858150959015,
-0.32183223962783813,
-0.02258087322115898,
0.12337028980255127,
0.3000147044658661,
-0.12404509633779526,
0.1943567991256714,
0.0040630619041621685,
0.18068146705627441,
-0.2520693242549896,
-0.22607281804084778,
0.34758323431015015,
-0.06712930649518967,
0.12012475728988647,
0.19356180727481842,
-0.09145880490541458,
-0.042873892933130264,
0.013201480731368065,
-0.08051552623510361,
0.027182811871170998,
0.431601881980896,
0.1952560395002365,
0.3702535927295685,
-0.009459316730499268,
0.07807863503694534,
-0.07072684913873672,
0.2062932848930359,
-0.14631567895412445,
-0.024970078840851784,
0.021134696900844574,
0.26080191135406494,
-0.326589435338974,
-0.18855974078178406,
0.03979390487074852,
-0.26646628975868225,
-0.040910977870225906,
-0.02938823029398918,
0.24959832429885864,
-0.19647954404354095,
-0.28914812207221985,
-0.3841310739517212,
0.09299185872077942,
0.5247912406921387,
-0.3482264578342438,
0.20685118436813354,
0.06146376579999924,
-0.27144280076026917,
0.40142199397087097,
0.05861002579331398,
0.13095694780349731,
0.1605098396539688,
-0.4302997589111328,
0.041505321860313416,
0.11713143438100815,
-0.35013219714164734,
-0.49704304337501526,
0.35849782824516296,
-0.18995290994644165,
0.32069143652915955,
0.17838147282600403,
0.09198393672704697,
0.2939104437828064,
-0.08338167518377304,
-0.012038079090416431,
0.3098942041397095,
-0.02248322032392025,
0.05824341997504234,
-0.124578095972538,
-0.12976227700710297,
0.13000014424324036,
0.10852142423391342,
0.12085945904254913,
0.14329557120800018,
0.2932305335998535,
-0.13603951036930084,
0.31640273332595825,
0.17881958186626434,
0.09648897498846054,
0.2375456839799881,
0.255018025636673,
0.26808950304985046,
0.12365496158599854,
-0.2269860804080963,
0.0015703646931797266,
0.28610700368881226,
-0.0804179459810257,
-0.15903253853321075,
-0.2410326451063156,
-0.22180628776550293,
-0.5582578778266907,
0.022449517622590065,
-0.1886621117591858,
-0.22198134660720825,
0.16530141234397888,
0.1372600495815277,
0.2495531141757965,
0.04269436374306679,
0.07544667273759842,
0.17933697998523712,
-0.007186383008956909,
-0.06845969706773758,
0.07519033551216125,
0.36020541191101074,
-0.3439498841762543,
-0.05052374303340912,
-0.09659580141305923,
-0.072175994515419,
0.22991739213466644,
-0.05668514221906662,
-0.01522824913263321,
0.19726811349391937,
0.02026159130036831,
-0.04262928292155266,
0.036209382116794586,
0.0486600287258625,
0.016718430444598198,
-0.18056116998195648,
0.2716662883758545,
0.5724846124649048,
0.26855704188346863,
-0.09678363054990768,
-0.03222959116101265,
0.005361979827284813,
-0.07502537965774536,
0.017756089568138123,
-0.022257748991250992,
0.14869749546051025,
0.19364102184772491,
-0.18895947933197021,
-0.10111144930124283,
0.002101076999679208,
0.3638003170490265,
0.06130477413535118,
-0.09914214164018631,
-0.16853411495685577,
-0.1679936647415161,
0.16708090901374817,
0.5450260639190674,
-0.27523329854011536,
0.3014792799949646,
0.07062197476625443,
-0.09666360914707184,
0.2094733715057373,
-0.18009062111377716,
0.10591845959424973,
0.6080440282821655,
0.03329649567604065,
0.11296091973781586,
0.371154248714447,
0.008862954564392567,
-0.1436058133840561,
0.21492847800254822,
0.1461234986782074,
-0.29897046089172363,
0.17300468683242798,
-0.052078355103731155,
0.17691895365715027,
-0.20951510965824127,
-0.237602099776268,
-0.05715751275420189,
0.05267728492617607,
-0.34522247314453125,
0.24298909306526184,
-0.16144447028636932,
-0.17400068044662476,
-0.32915306091308594,
-0.08695710450410843,
-0.07667092978954315,
-0.06329367309808731,
0.024691568687558174,
0.28079426288604736,
-0.1450740396976471,
-0.1818348914384842,
-0.4370899796485901,
0.09258980304002762,
0.21191143989562988,
-0.3590196669101715,
-0.0015146126970648766,
0.1992022842168808,
-0.286377876996994,
0.13335874676704407,
0.15175561606884003,
-0.09841332584619522,
0.5485376119613647,
-0.5067276358604431,
0.057920992374420166,
-0.3667598366737366,
-0.10093610733747482,
-0.06549422442913055,
0.05530839040875435,
0.3579995036125183,
0.18263906240463257,
0.18574997782707214,
0.05481378734111786,
0.10315626114606857,
0.2081245630979538,
-0.23898044228553772,
-0.1795153021812439,
0.1597154438495636,
0.05648941174149513,
-0.3985370099544525,
-0.2559874355792999,
-0.24914605915546417,
-0.20666125416755676,
-0.35097235441207886,
0.016134556382894516,
0.11001006513834,
0.12698766589164734,
-0.10306878387928009,
0.008076969534158707,
0.037245359271764755,
0.07318701595067978,
0.22466939687728882,
-0.08302618563175201,
0.02635040320456028,
0.3867477774620056,
-0.04235018044710159,
-0.6439449191093445,
0.24056024849414825,
-0.018974922597408295,
-0.3578404188156128,
0.30524158477783203,
-0.5030601024627686,
-0.13239209353923798,
-0.28738030791282654,
0.2506049871444702,
0.0892273411154747,
0.27787986397743225,
0.33532726764678955,
-0.2777276039123535,
-0.02459641918540001,
-0.3039756119251251,
-0.06590742617845535,
-0.290185809135437,
-0.10967378318309784,
0.24289637804031372,
0.18268531560897827,
0.3031283915042877,
-0.02893810160458088,
0.2855461537837982,
0.22061161696910858,
0.12943963706493378,
0.4378712475299835,
-0.3864387273788452,
0.47416236996650696,
0.0013000715989619493,
-0.1765861213207245,
0.035116422921419144,
-0.27221763134002686,
0.018007900565862656,
0.23765705525875092,
0.022387772798538208,
-0.0049436055123806,
-0.2312292456626892,
-0.16560502350330353,
-0.23130953311920166,
-0.24787135422229767,
0.1438775360584259,
0.11068367213010788,
0.0407826192677021,
0.12416982650756836,
0.2241891473531723,
0.10284052789211273,
-0.15573421120643616,
0.11416448652744293,
0.5970380306243896,
-0.26156243681907654,
0.143966943025589,
0.022780798375606537,
-0.1640787273645401,
-0.46938812732696533,
0.07167521119117737,
0.10276421904563904,
0.4488421082496643,
-0.030166907235980034,
0.044342514127492905,
0.21562010049819946,
-0.16199639439582825,
0.7495212554931641,
-0.21511885523796082,
0.3322598338127136,
0.2032122164964676,
-0.006716196425259113,
-0.3780362904071808,
-0.258353054523468,
-0.5120753645896912,
0.1230989322066307,
0.08177563548088074,
-0.052924830466508865,
-0.055524908006191254,
0.1852331906557083,
0.11505769938230515,
0.2468608021736145,
-0.14289049804210663,
-0.38716068863868713,
-0.38851529359817505,
-0.6134722828865051,
-0.24454030394554138,
0.08509066700935364,
0.4038747549057007,
-0.043509043753147125,
-0.3796862065792084,
-0.16640354692935944,
-0.0642809346318245,
0.1533764749765396,
-0.0725112110376358,
-0.027729986235499382,
0.07959600538015366,
-0.017774799838662148,
0.1780821681022644,
-0.2506740987300873,
0.28624895215034485,
-0.17390820384025574,
0.659617006778717,
0.10549161583185196,
-0.14962241053581238,
0.16205883026123047,
-0.26835721731185913,
-0.20142051577568054,
0.2051972597837448,
-0.1649344265460968,
-0.22019943594932556,
-0.07972101867198944,
0.04925045743584633,
-0.3298473656177521,
-0.07996248453855515,
0.5729666352272034,
-0.10168347507715225,
-0.005418763030320406,
-0.2596151828765869,
0.1787784993648529,
0.013897281140089035,
-0.15584918856620789,
0.26747408509254456,
0.034885358065366745,
-0.09249893575906754,
-0.10834117233753204,
-0.2890721261501312,
0.6511149406433105,
0.2145090252161026,
0.23586612939834595,
0.25903040170669556,
-0.5253792405128479,
0.04198607802391052,
0.21368515491485596,
0.07386580854654312,
-0.20706380903720856,
-0.2838786542415619,
-0.03738349303603172,
-0.13326206803321838,
0.08258640766143799,
-0.034150853753089905,
-0.277936190366745,
0.22078785300254822,
-0.08658204972743988,
0.1747569888830185,
0.2744154632091522,
-0.15815934538841248,
-0.3131062090396881,
0.10845629125833511,
-0.03281603753566742,
0.19511719048023224,
0.23858901858329773,
0.6629056930541992,
-0.266217976808548,
0.018496159464120865,
-0.17159970104694366,
-0.27796605229377747,
-0.3965131938457489,
0.25503021478652954,
-0.13408435881137848,
0.007453844416886568,
-0.1599159836769104,
0.1396336555480957,
0.02254951186478138,
-0.01473710872232914,
0.0021659694612026215,
0.15718527138233185,
-0.2298114001750946,
0.08573846518993378,
0.13416102528572083,
-0.08223661035299301,
0.263003945350647,
-0.09940269589424133,
0.1180737242102623,
-0.24470752477645874,
-0.4229419231414795,
-0.07276049256324768,
0.02143966592848301,
-0.0027242579963058233,
-0.027712060138583183,
0.26394200325012207,
0.21877054870128632,
-0.18823304772377014,
-0.178481325507164,
-0.3920813798904419,
0.08386212587356567,
-0.07089439779520035,
0.21751545369625092,
0.04904622957110405,
0.08854327350854874,
0.5029727220535278,
-0.2861325740814209,
-0.23590268194675446,
-0.1554897129535675,
0.3932056725025177,
-0.16737063229084015,
-0.07556786388158798,
0.11023611575365067,
0.09486789256334305,
-0.30697304010391235,
-0.2523457407951355,
0.013135863468050957,
-0.3942270874977112,
-0.2205287516117096,
0.054007116705179214,
-0.05436982959508896,
0.2869071662425995,
-0.1471763402223587,
0.009005926549434662,
0.13357503712177277,
-0.057868581265211105,
-0.015184764750301838,
-0.6815165877342224,
0.12968051433563232,
-0.21979667246341705,
0.4122016429901123,
0.046644676476716995,
0.026245614513754845,
-0.15720713138580322,
0.4631689190864563,
-0.5489165782928467,
-0.3702109754085541,
-0.0008697127341292799,
0.04950487241148949,
-0.1290580779314041,
0.1779976487159729,
0.13027708232402802,
0.19987162947654724,
0.011894846335053444,
0.12122808396816254,
0.0002451168838888407,
-0.06618471443653107,
-0.24845196306705475,
-0.16501764953136444,
0.1045997366309166,
-0.0540887713432312,
-0.2632082998752594,
0.1900731325149536,
-0.45111656188964844,
0.009140689857304096,
0.18899014592170715,
0.14730429649353027,
0.3043759763240814,
-0.09577295929193497,
0.03665807843208313,
0.0956629291176796,
0.11463665962219238,
-0.23988774418830872,
0.24710200726985931,
-0.4936736226081848,
0.5263614654541016,
0.005651651415973902,
0.17131230235099792,
0.22471916675567627,
0.006555669941008091,
-0.054802268743515015,
-0.28135013580322266,
0.06270453333854675,
0.18262025713920593,
0.3916453719139099,
-0.11679676175117493,
0.26065489649772644,
-0.0006224996759556234,
0.283252090215683,
0.5525350570678711,
-0.3527146875858307,
-0.08935029059648514,
0.14336293935775757,
0.27581146359443665,
-0.25900691747665405,
-0.034685030579566956,
0.08422911912202835,
0.10917232185602188,
0.05762870982289314,
0.11799316108226776,
0.0555243082344532,
-0.2826644778251648,
-0.0912482738494873,
-0.05008995160460472,
0.4335026144981384,
0.367079496383667,
-0.18083792924880981,
0.3947139382362366,
0.006517725996673107,
0.1476496011018753,
-0.057669736444950104,
-0.02175161987543106,
-0.04860258102416992,
0.4234355092048645,
0.04098067432641983,
0.06926573812961578,
-0.10912548005580902,
0.02517450787127018,
-0.13157638907432556,
-0.20524561405181885,
0.07668452709913254,
-0.20125676691532135,
0.02545115537941456,
0.09771038591861725,
0.07705144584178925,
-0.15404798090457916,
-0.2748749852180481,
0.21779775619506836,
-0.3454122543334961,
-0.0678379163146019,
0.06947248429059982,
-0.01250758022069931,
-0.3036753833293915,
-0.0721508041024208,
-0.11966550350189209,
0.025266999378800392,
0.14733323454856873,
-0.005412915255874395,
0.2599419355392456,
0.07452727854251862,
-0.2369661033153534,
-0.31606996059417725,
0.012623023241758347,
-0.20480310916900635,
0.11341232061386108,
-0.2885008752346039,
0.07788949459791183,
0.3658394515514374,
0.1674332320690155,
0.10783862322568893,
0.11485135555267334,
0.5545538663864136,
0.38521793484687805,
-0.1072472557425499,
-0.06110503152012825,
0.07846132665872574,
-0.13316252827644348,
-0.32581469416618347,
0.4363556504249573,
0.0716327652335167,
0.1930941939353943,
0.23635120689868927,
0.21840626001358032,
-0.23010534048080444,
0.25840961933135986,
-0.030818521976470947,
-0.07956311106681824,
-0.058946818113327026,
0.17917443811893463,
-0.25059670209884644,
0.0937962457537651,
-0.3897891938686371,
-0.10139266401529312,
-0.4083535075187683,
-0.09858011454343796,
0.177219957113266,
-0.08799565583467484,
0.16670404374599457,
-0.34622105956077576,
0.10359318554401398,
0.037529826164245605,
0.21809984743595123,
0.3795768916606903,
0.3196724057197571,
-0.08816679567098618,
-0.05732347443699837,
-0.522614061832428,
0.3419148623943329,
-0.22584347426891327,
-0.5296083092689514,
-0.08779147267341614,
0.04472733289003372,
-0.6105859279632568,
0.07223638892173767,
0.34155401587486267,
0.2679617404937744,
-0.06360816210508347,
0.3222130835056305,
-0.1352425068616867,
-0.31212449073791504,
0.03358732908964157,
0.15257146954536438,
0.07591848820447922,
-0.5940468311309814,
0.2918207347393036,
-0.4170544445514679,
0.1697358936071396,
-0.2700897753238678,
-0.1863705962896347,
-0.011328689754009247,
-0.008855608291924,
0.5608648061752319,
0.15077824890613556,
0.519913911819458,
-0.1912190467119217,
-0.12568287551403046,
-0.46299242973327637,
0.07810118049383163,
-0.11269526183605194,
0.24695242941379547,
0.11667564511299133,
-0.18114429712295532,
0.019152266904711723,
-0.2678036689758301,
-0.06001652777194977,
0.3138542175292969,
-0.036840908229351044,
0.09058009833097458,
-0.057123202830553055,
-0.07280731946229935,
-0.18309298157691956,
0.14881804585456848,
0.08115115761756897,
0.14661413431167603,
-0.3787934184074402,
-0.10185223817825317,
-0.033774785697460175,
-0.5434586405754089,
0.27417105436325073,
-0.26988038420677185,
-0.333262175321579,
-0.2687217593193054,
0.23119118809700012,
-0.4032004475593567,
0.07304029166698456,
-0.022185828536748886,
0.15009690821170807,
0.16583342850208282,
-0.06748402863740921,
0.03998875245451927,
0.2936095893383026,
-0.37484610080718994,
0.040605686604976654,
0.2576873004436493,
0.4179149568080902,
-0.06966275721788406,
-0.1712900996208191,
0.30699968338012695,
-0.2148602157831192
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 16 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | [
0.16129031777381897,
-0.1380540132522583,
-0.020553605630993843,
0.2273857593536377,
0.11762427538633347,
-0.1575976014137268,
0.26700592041015625,
0.29656699299812317,
-0.5154976844787598,
0.2804076373577118,
0.14544202387332916,
0.4508611261844635,
-0.09352847188711166,
-0.18102094531059265,
0.06429947912693024,
-0.05757591873407364,
0.12214265763759613,
0.24844598770141602,
-0.07153445482254028,
-0.23429130017757416,
0.1333339810371399,
0.3007957637310028,
-0.2574562728404999,
-0.06466157734394073,
-0.2737525999546051,
0.08476104587316513,
-0.07666970044374466,
-0.2693383991718292,
-0.053286317735910416,
-0.4953400790691376,
0.15393921732902527,
0.01112260390073061,
0.10494495183229446,
0.333885133266449,
-0.00011551438365131617,
-0.0851757600903511,
0.03693706914782524,
0.09381227195262909,
-0.23824180662631989,
-0.15776199102401733,
-0.09692777693271637,
0.08862289786338806,
-0.06983958929777145,
-0.02705654501914978,
-0.08341070264577866,
0.19374743103981018,
0.052934471517801285,
-0.09816178679466248,
0.5147069096565247,
0.2915842831134796,
0.14006789028644562,
-0.010243181139230728,
-0.25212016701698303,
-0.06595297157764435,
0.3198692202568054,
0.03130759671330452,
0.0850752592086792,
-0.17802099883556366,
0.21372389793395996,
0.03147872909903526,
-0.05166777968406677,
0.6180683374404907,
-0.28133246302604675,
0.3980180323123932,
-0.23591457307338715,
0.12423025071620941,
-0.3711773455142975,
-0.5308330655097961,
0.2668363153934479,
0.21616514027118683,
0.6465563774108887,
-0.2296242117881775,
-0.20446719229221344,
-0.23786184191703796,
0.31990861892700195,
-0.1560651808977127,
-0.04216962307691574,
-0.016178563237190247,
-0.27280235290527344,
0.23506277799606323,
-0.009495165199041367,
0.04764770716428757,
-0.2204015552997589,
0.1288805454969406,
0.055811189115047455,
-0.1074199303984642,
-0.07313627004623413,
0.1385568529367447,
-0.177100270986557,
0.09940959513187408,
-0.0858645960688591,
0.27035829424858093,
-0.14426130056381226,
0.03412558510899544,
-0.14976219832897186,
-0.0674903616309166,
0.1925162822008133,
-0.30494239926338196,
0.2917179763317108,
-0.060219939798116684,
0.38555800914764404,
0.037437789142131805,
-0.1856716126203537,
-0.08810044825077057,
0.3239295482635498,
0.019808191806077957,
-0.023367639631032944,
0.14967654645442963,
0.22989748418331146,
-0.23406901955604553,
-0.2531854808330536,
0.0737159252166748,
-0.014418104663491249,
0.21627378463745117,
0.33187901973724365,
-0.2650298774242401,
0.28292450308799744,
-0.367644727230072,
-0.5658831596374512,
0.06424974650144577,
-0.44003787636756897,
-0.10303855687379837,
-0.25280117988586426,
0.18167364597320557,
0.16933077573776245,
0.30092698335647583,
0.14492502808570862,
0.22267648577690125,
0.0693393424153328,
-0.5628318786621094,
-0.181862011551857,
0.026798289269208908,
0.20986014604568481,
0.03084087185561657,
0.21132875978946686,
-0.32370656728744507,
0.33985117077827454,
0.34173399209976196,
0.1954524964094162,
-0.431598961353302,
-0.2874113619327545,
-0.13017676770687103,
0.025561165064573288,
0.00918591395020485,
-0.026490414515137672,
0.3916679322719574,
0.07382015138864517,
-0.01829017698764801,
0.007235511671751738,
0.06100687384605408,
-0.10655583441257477,
0.006864663679152727,
0.2134016752243042,
0.1364106982946396,
-0.08058805763721466,
-0.16711442172527313,
0.12324830144643784,
0.3605876863002777,
0.07794534415006638,
-0.30087003111839294,
0.003011014312505722,
-0.18274269998073578,
-0.3919641673564911,
-0.03865887597203255,
0.07733127474784851,
0.30246078968048096,
-0.3355480432510376,
0.09542734920978546,
0.17853452265262604,
0.4213982820510864,
0.39447492361068726,
0.24845446646213531,
-0.04651018977165222,
0.37343817949295044,
-0.1168164610862732,
0.30014440417289734,
0.20419789850711823,
-0.4621303975582123,
-0.39205417037010193,
0.21123547852039337,
-0.04960368946194649,
0.24641388654708862,
0.15489087998867035,
-0.16278348863124847,
0.30273357033729553,
0.14270706474781036,
0.37593552470207214,
0.1534786820411682,
0.14573612809181213,
0.03347920998930931,
-0.2446887493133545,
-0.05789254605770111,
0.08683080971240997,
-0.013140824623405933,
0.0021538157016038895,
0.09558330476284027,
0.03703802078962326,
0.23297028243541718,
0.5271515250205994,
0.0745839849114418,
0.09245159476995468,
0.10296731442213058,
0.16596442461013794,
-0.10123149305582047,
0.22397756576538086,
-0.26310065388679504,
0.25648611783981323,
-0.04889748990535736,
0.2068275362253189,
0.28379908204078674,
0.1540316939353943,
0.0793672651052475,
-0.3015449047088623,
-0.21888850629329681,
-0.29918819665908813,
-0.3250727653503418,
0.11458157747983932,
0.325737327337265,
-0.014431516639888287,
0.04204663261771202,
-0.18985819816589355,
0.340990275144577,
-0.22032669186592102,
-0.07418575882911682,
0.02330593578517437,
0.09916515648365021,
0.06385695189237595,
-0.2447071373462677,
0.5248858332633972,
0.2528992295265198,
0.18514926731586456,
0.2016844004392624,
-0.16694092750549316,
0.22355176508426666,
-0.01476768683642149,
0.021967770531773567,
-0.2637168765068054,
-0.32889217138290405,
0.10994819551706314,
-0.5017572045326233,
-0.11139501631259918,
0.234470933675766,
0.3181716799736023,
-0.004500135313719511,
-0.3036756217479706,
-0.1834707409143448,
0.13900797069072723,
0.2569388747215271,
-0.05544385313987732,
-0.06511906534433365,
0.3011586666107178,
0.06625332683324814,
-0.35379913449287415,
-0.3246975243091583,
0.2526895999908447,
-0.23498043417930603,
0.26622143387794495,
0.02028489112854004,
-0.34177690744400024,
0.15859894454479218,
0.3928951621055603,
0.2245115339756012,
0.08520857989788055,
0.2943885922431946,
-0.2468319535255432,
-0.02701767161488533,
-0.1227288618683815,
0.0949118435382843,
0.29076528549194336,
0.28810492157936096,
0.054302703589200974,
-0.3764550983905792,
-0.12874926626682281,
-0.11323264986276627,
0.13933609426021576,
-0.13075652718544006,
-0.35563036799430847,
0.4351167380809784,
0.3585449755191803,
0.08638732880353928,
-0.44938382506370544,
-0.13412883877754211,
-0.14240401983261108,
0.47036728262901306,
-0.3349604904651642,
-0.2316323220729828,
-0.43560534715652466,
-0.12055215239524841,
-0.10900525748729706,
0.06629104912281036,
0.07970362901687622,
0.22555093467235565,
0.21905618906021118,
-0.012712031602859497,
0.005456663202494383,
0.13679929077625275,
0.17199058830738068,
0.2340620905160904,
0.07120537757873535,
0.1117987111210823,
0.0863051488995552,
0.31914013624191284,
-0.30695730447769165,
-0.024270063266158104,
0.0259725209325552,
0.271612286567688,
0.10742910951375961,
-0.1422470360994339,
-0.16390246152877808,
-0.40679624676704407,
0.059018127620220184,
0.26756420731544495,
-0.3301687240600586,
0.5113493204116821,
0.11336309462785721,
0.16024896502494812,
-0.2251661717891693,
-0.31308114528656006,
0.002672378206625581,
-0.026887133717536926,
-0.1686864197254181,
0.3555678129196167,
0.08294320851564407,
-0.005614442750811577,
-0.04825615510344505,
-0.6989753842353821,
0.09939289838075638,
-0.25000911951065063,
0.2359435111284256,
-0.032867249101400375,
0.210378497838974,
0.364136278629303,
0.0606071874499321,
0.08127010613679886,
-0.05871165543794632,
0.20536987483501434,
-0.410209983587265,
-0.2545933127403259,
0.3561108708381653,
0.2606041431427002,
-0.334869384765625,
-0.3405698239803314,
0.05095813050866127,
0.2652951776981354,
-0.03222927451133728,
-0.40010866522789,
0.10035402327775955,
-0.2674662172794342,
0.14534880220890045,
-0.2972606122493744,
0.28261980414390564,
0.3854672312736511,
0.01299393642693758,
-0.1495048850774765,
-0.16922159492969513,
-0.10783372819423676,
0.2658356726169586,
0.3553732633590698,
0.005884075071662664,
0.10114717483520508,
0.06991369277238846,
-0.0593266487121582,
0.3506983816623688,
0.6459594964981079,
0.20251570641994476,
0.26000654697418213,
-0.1765541285276413,
0.09423520416021347,
-0.03249354287981987,
-0.39957985281944275,
0.027079885825514793,
-0.11732474714517593,
-0.06256716698408127,
0.49812012910842896,
-0.08999530225992203,
0.053631413727998734,
-0.16958802938461304,
-0.057277217507362366,
-0.3290625810623169,
-0.16864073276519775,
0.06749255210161209,
-0.23593968152999878,
0.18397429585456848,
0.17477549612522125,
0.052829522639513016,
0.16195206344127655,
0.03473503142595291,
-0.2861661911010742,
-0.2988380789756775,
0.2851739227771759,
-0.14997276663780212,
-0.0820305198431015,
-0.28361114859580994,
-0.3772892653942108,
-0.12410145252943039,
0.13858383893966675,
0.5095543265342712,
-0.21170029044151306,
-0.0375211238861084,
0.3600178360939026,
0.29147812724113464,
0.3810283839702606,
-0.30699458718299866,
0.09087704122066498,
0.01039059367030859,
0.22879087924957275,
0.005507475230842829,
0.005461586639285088,
-0.5205008387565613,
-0.1967584490776062,
-0.047500770539045334,
-0.043032363057136536,
-0.16689297556877136,
-0.008018327876925468,
0.10895929485559464,
0.39274394512176514,
-0.009747415781021118,
-0.24081115424633026,
-0.25576937198638916,
-0.07579302787780762,
-0.330142080783844,
0.16156549751758575,
0.34223127365112305,
0.0443936362862587,
-0.16513366997241974,
-0.12032518535852432,
0.160398930311203,
-0.06275173276662827,
0.5332371592521667,
0.07985947281122208,
0.3751766085624695,
0.07396548241376877,
0.3011752963066101,
0.274840384721756,
-0.3577800691127777,
-0.2591429054737091,
0.3608150780200958,
0.10096914321184158,
-0.14202553033828735,
-0.00367413810454309,
-0.3468615412712097,
0.32895755767822266,
0.49315735697746277,
-0.22319111227989197,
0.24192959070205688,
-0.29706159234046936,
0.25689417123794556,
-0.15294881165027618,
0.09574659913778305,
0.31952816247940063,
-0.07498335093259811,
-0.07518165558576584,
-0.41028690338134766,
0.3822799324989319,
-0.0364944227039814,
-0.19794853031635284,
0.34455108642578125,
0.09091875702142715,
-0.31038233637809753,
0.47125184535980225,
-0.25788408517837524,
0.8118341565132141,
0.22640711069107056,
0.36663028597831726,
0.3155019283294678,
0.13815124332904816,
0.32616445422172546,
-0.19600960612297058,
0.0902332067489624,
-0.022017505019903183,
-0.001816837233491242,
-0.02156050316989422,
0.058343373239040375,
-0.07785698771476746,
-0.04175933822989464,
-0.5769282579421997,
0.17752893269062042,
0.0647168755531311,
0.028871485963463783,
0.18680234253406525,
-0.011851622723042965,
-0.12949608266353607,
-0.10640740394592285,
0.12529924511909485,
0.03257158398628235,
-0.3839384913444519,
0.3074730932712555,
0.3099324405193329,
-0.024295998737215996,
0.03140447661280632,
-0.5837306380271912,
-0.8224815130233765,
-0.030167976394295692,
-0.08251769095659256,
-0.22594060003757477,
-0.19968006014823914,
-0.33362144231796265,
0.3681989312171936,
0.25859951972961426,
0.19155359268188477,
0.32565903663635254,
-0.13796840608119965,
-0.0852641686797142,
0.36824315786361694,
0.27765119075775146,
-0.26795655488967896,
-0.025591833516955376,
0.14451864361763,
-0.08603129535913467,
-0.3883321285247803,
0.17660360038280487,
0.05515820160508156,
0.09896335005760193,
-0.38806578516960144,
0.25383129715919495,
-0.11468029022216797,
-0.2331591099500656,
0.08573773503303528,
0.4289044141769409,
0.14151668548583984,
-0.5119705200195312,
0.10320746898651123,
0.12417197972536087,
-0.45886364579200745,
0.3286850154399872,
0.17258404195308685,
-0.47551974654197693,
-0.06376290321350098,
0.2593401074409485,
0.12836012244224548,
0.00025089102564379573,
0.6646650433540344,
-0.04148265719413757,
0.04838784784078598,
-0.37047579884529114,
0.040697112679481506,
-0.02092878706753254,
-0.2641952633857727,
0.17911243438720703,
0.058663174510002136,
0.17396269738674164,
-0.22652755677700043,
0.2535497546195984,
0.026514360681176186,
0.20480266213417053,
-0.2814755439758301,
-0.3617304861545563,
-0.06197768822312355,
-0.03145395219326019,
0.1234356090426445,
0.055240094661712646,
-0.2911967635154724,
0.11818579584360123,
0.06881601363420486,
0.31860870122909546,
-0.2981918752193451,
0.0059747216291725636,
-0.05179433897137642,
0.2173204869031906,
-0.08404245227575302,
0.08132035285234451,
-0.037809453904628754,
0.08517355471849442,
0.20004026591777802,
0.3185150623321533,
0.06729160249233246,
-0.15987001359462738,
-0.3062141239643097,
0.1838444024324417,
0.04174423590302467,
0.15626439452171326,
-0.04076856002211571,
0.10010576248168945,
0.1492387056350708,
-0.1337081789970398,
-0.10101119428873062,
0.334582656621933,
0.12536202371120453,
0.21837842464447021,
-0.029632417485117912,
0.03707204386591911,
0.1851569265127182,
-0.15986455976963043,
-0.1839771419763565,
-0.172458678483963,
0.33998581767082214,
0.18061360716819763,
0.04874395951628685,
-0.04819568619132042,
0.11862507462501526,
0.03992384672164917,
-0.13405188918113708,
0.11869537830352783,
-0.07783444970846176,
-0.2655766010284424,
0.1333700716495514,
0.28768590092658997,
-0.119479238986969,
0.3786885142326355,
-0.34599369764328003,
-0.11189965903759003,
0.09119497239589691,
0.2351439744234085,
-0.2654985785484314,
-0.1237107515335083,
-0.323249876499176,
-0.10655076801776886,
-0.05830879881978035,
0.27840471267700195,
-0.05983109399676323,
-0.4723799228668213,
0.12146705389022827,
-0.06493828445672989,
0.3360198438167572,
-0.5360026359558105,
-0.07342168688774109,
0.3985145390033722,
0.01497412659227848,
-0.36112016439437866,
-0.1933409869670868,
-0.015196992084383965,
0.02080165222287178,
0.545098602771759,
-0.36754390597343445,
0.13735799491405487,
-0.33860594034194946,
0.026388093829154968,
0.1915484219789505,
0.02560487389564514,
-0.03821989521384239,
0.40564191341400146,
-0.32718825340270996,
-0.04896286875009537,
-0.07162456959486008,
0.30504757165908813,
-0.1176728680729866,
0.033445704728364944,
-0.1280478686094284,
-0.05141457915306091,
-0.1239193007349968,
-0.12486206740140915,
-0.33803993463516235,
-0.27342891693115234,
-0.23037627339363098,
0.006182097364217043,
0.097541943192482,
-0.012555671855807304,
0.1405140459537506,
0.1916218400001526,
-0.26688432693481445,
-0.5332417488098145,
-0.19809405505657196,
-0.037783779203891754,
0.17207667231559753,
-0.390032023191452,
0.3403877019882202,
0.3084273934364319,
-0.22176991403102875,
0.2584379017353058,
0.24336442351341248,
0.519983172416687,
0.07158105820417404,
0.033447276800870895,
0.10651924461126328,
-0.5706883668899536,
-0.09190265089273453,
-0.051722537726163864,
0.3297680616378784,
-0.12424173206090927,
0.05875599384307861,
0.021863723173737526,
0.015872806310653687,
-0.09563980996608734,
0.029347727075219154,
0.22854650020599365,
-0.07562584429979324,
-0.5632570385932922,
0.21907790005207062,
-0.14116211235523224,
0.1117323562502861,
0.04065860062837601,
0.07498443871736526,
-0.47366926074028015,
0.4417385458946228,
0.342167466878891,
0.05759616568684578,
-0.010626780800521374,
0.00219025113619864,
0.08138876408338547,
-0.12637458741664886,
-0.11261280626058578,
0.26730480790138245,
0.15798674523830414,
-0.2770342230796814,
-0.15913544595241547,
-0.6735785603523254,
-0.0714835599064827,
-0.048805225640535355,
-0.004952764604240656,
0.0006286432035267353,
0.11898061633110046,
0.1586841493844986,
0.1362602412700653,
0.06926517933607101,
-0.026040753349661827,
-0.5322325825691223,
0.3291487395763397,
-0.21546295285224915,
-0.0053817229345440865,
-0.08778760582208633,
0.4366607069969177,
0.04148931801319122,
-0.10649824887514114,
0.01083523128181696,
0.09469112008810043,
0.03401884064078331,
0.06554783880710602,
0.005946216639131308,
0.01756274327635765,
-0.12066161632537842,
0.15823885798454285,
0.14234521985054016,
0.17081496119499207,
-0.23485422134399414,
0.18956536054611206,
-0.28325796127319336,
0.02929283306002617,
-0.19824345409870148,
0.15615646541118622,
0.2698149085044861,
0.5158424377441406,
-0.18345138430595398,
-0.0686844065785408,
-0.06360107660293579,
0.16536100208759308,
0.11124467104673386,
-0.06495928764343262,
-0.19141264259815216,
0.08976943045854568,
-0.00870022177696228,
0.27149662375450134,
-0.2622263729572296,
0.10594266653060913,
0.0038293928373605013,
0.0026382741052657366,
-0.4920395612716675,
-0.7109149694442749,
0.4522460103034973,
-0.403315007686615,
-0.5287761688232422,
-0.07965649664402008,
0.5906725525856018,
0.24035461246967316,
-0.03215355798602104,
-0.7086962461471558,
-0.03599023073911667,
0.3959988057613373,
0.24434871971607208,
-0.3021707832813263,
0.2129857838153839,
0.12193944305181503,
0.008531047962605953,
0.014424755237996578,
0.6226142048835754,
0.310524582862854,
-0.23275485634803772,
0.2679712772369385,
-0.46045801043510437
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 34 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | [
0.16129031777381897,
-0.1380540132522583,
-0.020553605630993843,
0.2273857593536377,
0.11762427538633347,
-0.1575976014137268,
0.26700592041015625,
0.29656699299812317,
-0.5154976844787598,
0.2804076373577118,
0.14544202387332916,
0.4508611261844635,
-0.09352847188711166,
-0.18102094531059265,
0.06429947912693024,
-0.05757591873407364,
0.12214265763759613,
0.24844598770141602,
-0.07153445482254028,
-0.23429130017757416,
0.1333339810371399,
0.3007957637310028,
-0.2574562728404999,
-0.06466157734394073,
-0.2737525999546051,
0.08476104587316513,
-0.07666970044374466,
-0.2693383991718292,
-0.053286317735910416,
-0.4953400790691376,
0.15393921732902527,
0.01112260390073061,
0.10494495183229446,
0.333885133266449,
-0.00011551438365131617,
-0.0851757600903511,
0.03693706914782524,
0.09381227195262909,
-0.23824180662631989,
-0.15776199102401733,
-0.09692777693271637,
0.08862289786338806,
-0.06983958929777145,
-0.02705654501914978,
-0.08341070264577866,
0.19374743103981018,
0.052934471517801285,
-0.09816178679466248,
0.5147069096565247,
0.2915842831134796,
0.14006789028644562,
-0.010243181139230728,
-0.25212016701698303,
-0.06595297157764435,
0.3198692202568054,
0.03130759671330452,
0.0850752592086792,
-0.17802099883556366,
0.21372389793395996,
0.03147872909903526,
-0.05166777968406677,
0.6180683374404907,
-0.28133246302604675,
0.3980180323123932,
-0.23591457307338715,
0.12423025071620941,
-0.3711773455142975,
-0.5308330655097961,
0.2668363153934479,
0.21616514027118683,
0.6465563774108887,
-0.2296242117881775,
-0.20446719229221344,
-0.23786184191703796,
0.31990861892700195,
-0.1560651808977127,
-0.04216962307691574,
-0.016178563237190247,
-0.27280235290527344,
0.23506277799606323,
-0.009495165199041367,
0.04764770716428757,
-0.2204015552997589,
0.1288805454969406,
0.055811189115047455,
-0.1074199303984642,
-0.07313627004623413,
0.1385568529367447,
-0.177100270986557,
0.09940959513187408,
-0.0858645960688591,
0.27035829424858093,
-0.14426130056381226,
0.03412558510899544,
-0.14976219832897186,
-0.0674903616309166,
0.1925162822008133,
-0.30494239926338196,
0.2917179763317108,
-0.060219939798116684,
0.38555800914764404,
0.037437789142131805,
-0.1856716126203537,
-0.08810044825077057,
0.3239295482635498,
0.019808191806077957,
-0.023367639631032944,
0.14967654645442963,
0.22989748418331146,
-0.23406901955604553,
-0.2531854808330536,
0.0737159252166748,
-0.014418104663491249,
0.21627378463745117,
0.33187901973724365,
-0.2650298774242401,
0.28292450308799744,
-0.367644727230072,
-0.5658831596374512,
0.06424974650144577,
-0.44003787636756897,
-0.10303855687379837,
-0.25280117988586426,
0.18167364597320557,
0.16933077573776245,
0.30092698335647583,
0.14492502808570862,
0.22267648577690125,
0.0693393424153328,
-0.5628318786621094,
-0.181862011551857,
0.026798289269208908,
0.20986014604568481,
0.03084087185561657,
0.21132875978946686,
-0.32370656728744507,
0.33985117077827454,
0.34173399209976196,
0.1954524964094162,
-0.431598961353302,
-0.2874113619327545,
-0.13017676770687103,
0.025561165064573288,
0.00918591395020485,
-0.026490414515137672,
0.3916679322719574,
0.07382015138864517,
-0.01829017698764801,
0.007235511671751738,
0.06100687384605408,
-0.10655583441257477,
0.006864663679152727,
0.2134016752243042,
0.1364106982946396,
-0.08058805763721466,
-0.16711442172527313,
0.12324830144643784,
0.3605876863002777,
0.07794534415006638,
-0.30087003111839294,
0.003011014312505722,
-0.18274269998073578,
-0.3919641673564911,
-0.03865887597203255,
0.07733127474784851,
0.30246078968048096,
-0.3355480432510376,
0.09542734920978546,
0.17853452265262604,
0.4213982820510864,
0.39447492361068726,
0.24845446646213531,
-0.04651018977165222,
0.37343817949295044,
-0.1168164610862732,
0.30014440417289734,
0.20419789850711823,
-0.4621303975582123,
-0.39205417037010193,
0.21123547852039337,
-0.04960368946194649,
0.24641388654708862,
0.15489087998867035,
-0.16278348863124847,
0.30273357033729553,
0.14270706474781036,
0.37593552470207214,
0.1534786820411682,
0.14573612809181213,
0.03347920998930931,
-0.2446887493133545,
-0.05789254605770111,
0.08683080971240997,
-0.013140824623405933,
0.0021538157016038895,
0.09558330476284027,
0.03703802078962326,
0.23297028243541718,
0.5271515250205994,
0.0745839849114418,
0.09245159476995468,
0.10296731442213058,
0.16596442461013794,
-0.10123149305582047,
0.22397756576538086,
-0.26310065388679504,
0.25648611783981323,
-0.04889748990535736,
0.2068275362253189,
0.28379908204078674,
0.1540316939353943,
0.0793672651052475,
-0.3015449047088623,
-0.21888850629329681,
-0.29918819665908813,
-0.3250727653503418,
0.11458157747983932,
0.325737327337265,
-0.014431516639888287,
0.04204663261771202,
-0.18985819816589355,
0.340990275144577,
-0.22032669186592102,
-0.07418575882911682,
0.02330593578517437,
0.09916515648365021,
0.06385695189237595,
-0.2447071373462677,
0.5248858332633972,
0.2528992295265198,
0.18514926731586456,
0.2016844004392624,
-0.16694092750549316,
0.22355176508426666,
-0.01476768683642149,
0.021967770531773567,
-0.2637168765068054,
-0.32889217138290405,
0.10994819551706314,
-0.5017572045326233,
-0.11139501631259918,
0.234470933675766,
0.3181716799736023,
-0.004500135313719511,
-0.3036756217479706,
-0.1834707409143448,
0.13900797069072723,
0.2569388747215271,
-0.05544385313987732,
-0.06511906534433365,
0.3011586666107178,
0.06625332683324814,
-0.35379913449287415,
-0.3246975243091583,
0.2526895999908447,
-0.23498043417930603,
0.26622143387794495,
0.02028489112854004,
-0.34177690744400024,
0.15859894454479218,
0.3928951621055603,
0.2245115339756012,
0.08520857989788055,
0.2943885922431946,
-0.2468319535255432,
-0.02701767161488533,
-0.1227288618683815,
0.0949118435382843,
0.29076528549194336,
0.28810492157936096,
0.054302703589200974,
-0.3764550983905792,
-0.12874926626682281,
-0.11323264986276627,
0.13933609426021576,
-0.13075652718544006,
-0.35563036799430847,
0.4351167380809784,
0.3585449755191803,
0.08638732880353928,
-0.44938382506370544,
-0.13412883877754211,
-0.14240401983261108,
0.47036728262901306,
-0.3349604904651642,
-0.2316323220729828,
-0.43560534715652466,
-0.12055215239524841,
-0.10900525748729706,
0.06629104912281036,
0.07970362901687622,
0.22555093467235565,
0.21905618906021118,
-0.012712031602859497,
0.005456663202494383,
0.13679929077625275,
0.17199058830738068,
0.2340620905160904,
0.07120537757873535,
0.1117987111210823,
0.0863051488995552,
0.31914013624191284,
-0.30695730447769165,
-0.024270063266158104,
0.0259725209325552,
0.271612286567688,
0.10742910951375961,
-0.1422470360994339,
-0.16390246152877808,
-0.40679624676704407,
0.059018127620220184,
0.26756420731544495,
-0.3301687240600586,
0.5113493204116821,
0.11336309462785721,
0.16024896502494812,
-0.2251661717891693,
-0.31308114528656006,
0.002672378206625581,
-0.026887133717536926,
-0.1686864197254181,
0.3555678129196167,
0.08294320851564407,
-0.005614442750811577,
-0.04825615510344505,
-0.6989753842353821,
0.09939289838075638,
-0.25000911951065063,
0.2359435111284256,
-0.032867249101400375,
0.210378497838974,
0.364136278629303,
0.0606071874499321,
0.08127010613679886,
-0.05871165543794632,
0.20536987483501434,
-0.410209983587265,
-0.2545933127403259,
0.3561108708381653,
0.2606041431427002,
-0.334869384765625,
-0.3405698239803314,
0.05095813050866127,
0.2652951776981354,
-0.03222927451133728,
-0.40010866522789,
0.10035402327775955,
-0.2674662172794342,
0.14534880220890045,
-0.2972606122493744,
0.28261980414390564,
0.3854672312736511,
0.01299393642693758,
-0.1495048850774765,
-0.16922159492969513,
-0.10783372819423676,
0.2658356726169586,
0.3553732633590698,
0.005884075071662664,
0.10114717483520508,
0.06991369277238846,
-0.0593266487121582,
0.3506983816623688,
0.6459594964981079,
0.20251570641994476,
0.26000654697418213,
-0.1765541285276413,
0.09423520416021347,
-0.03249354287981987,
-0.39957985281944275,
0.027079885825514793,
-0.11732474714517593,
-0.06256716698408127,
0.49812012910842896,
-0.08999530225992203,
0.053631413727998734,
-0.16958802938461304,
-0.057277217507362366,
-0.3290625810623169,
-0.16864073276519775,
0.06749255210161209,
-0.23593968152999878,
0.18397429585456848,
0.17477549612522125,
0.052829522639513016,
0.16195206344127655,
0.03473503142595291,
-0.2861661911010742,
-0.2988380789756775,
0.2851739227771759,
-0.14997276663780212,
-0.0820305198431015,
-0.28361114859580994,
-0.3772892653942108,
-0.12410145252943039,
0.13858383893966675,
0.5095543265342712,
-0.21170029044151306,
-0.0375211238861084,
0.3600178360939026,
0.29147812724113464,
0.3810283839702606,
-0.30699458718299866,
0.09087704122066498,
0.01039059367030859,
0.22879087924957275,
0.005507475230842829,
0.005461586639285088,
-0.5205008387565613,
-0.1967584490776062,
-0.047500770539045334,
-0.043032363057136536,
-0.16689297556877136,
-0.008018327876925468,
0.10895929485559464,
0.39274394512176514,
-0.009747415781021118,
-0.24081115424633026,
-0.25576937198638916,
-0.07579302787780762,
-0.330142080783844,
0.16156549751758575,
0.34223127365112305,
0.0443936362862587,
-0.16513366997241974,
-0.12032518535852432,
0.160398930311203,
-0.06275173276662827,
0.5332371592521667,
0.07985947281122208,
0.3751766085624695,
0.07396548241376877,
0.3011752963066101,
0.274840384721756,
-0.3577800691127777,
-0.2591429054737091,
0.3608150780200958,
0.10096914321184158,
-0.14202553033828735,
-0.00367413810454309,
-0.3468615412712097,
0.32895755767822266,
0.49315735697746277,
-0.22319111227989197,
0.24192959070205688,
-0.29706159234046936,
0.25689417123794556,
-0.15294881165027618,
0.09574659913778305,
0.31952816247940063,
-0.07498335093259811,
-0.07518165558576584,
-0.41028690338134766,
0.3822799324989319,
-0.0364944227039814,
-0.19794853031635284,
0.34455108642578125,
0.09091875702142715,
-0.31038233637809753,
0.47125184535980225,
-0.25788408517837524,
0.8118341565132141,
0.22640711069107056,
0.36663028597831726,
0.3155019283294678,
0.13815124332904816,
0.32616445422172546,
-0.19600960612297058,
0.0902332067489624,
-0.022017505019903183,
-0.001816837233491242,
-0.02156050316989422,
0.058343373239040375,
-0.07785698771476746,
-0.04175933822989464,
-0.5769282579421997,
0.17752893269062042,
0.0647168755531311,
0.028871485963463783,
0.18680234253406525,
-0.011851622723042965,
-0.12949608266353607,
-0.10640740394592285,
0.12529924511909485,
0.03257158398628235,
-0.3839384913444519,
0.3074730932712555,
0.3099324405193329,
-0.024295998737215996,
0.03140447661280632,
-0.5837306380271912,
-0.8224815130233765,
-0.030167976394295692,
-0.08251769095659256,
-0.22594060003757477,
-0.19968006014823914,
-0.33362144231796265,
0.3681989312171936,
0.25859951972961426,
0.19155359268188477,
0.32565903663635254,
-0.13796840608119965,
-0.0852641686797142,
0.36824315786361694,
0.27765119075775146,
-0.26795655488967896,
-0.025591833516955376,
0.14451864361763,
-0.08603129535913467,
-0.3883321285247803,
0.17660360038280487,
0.05515820160508156,
0.09896335005760193,
-0.38806578516960144,
0.25383129715919495,
-0.11468029022216797,
-0.2331591099500656,
0.08573773503303528,
0.4289044141769409,
0.14151668548583984,
-0.5119705200195312,
0.10320746898651123,
0.12417197972536087,
-0.45886364579200745,
0.3286850154399872,
0.17258404195308685,
-0.47551974654197693,
-0.06376290321350098,
0.2593401074409485,
0.12836012244224548,
0.00025089102564379573,
0.6646650433540344,
-0.04148265719413757,
0.04838784784078598,
-0.37047579884529114,
0.040697112679481506,
-0.02092878706753254,
-0.2641952633857727,
0.17911243438720703,
0.058663174510002136,
0.17396269738674164,
-0.22652755677700043,
0.2535497546195984,
0.026514360681176186,
0.20480266213417053,
-0.2814755439758301,
-0.3617304861545563,
-0.06197768822312355,
-0.03145395219326019,
0.1234356090426445,
0.055240094661712646,
-0.2911967635154724,
0.11818579584360123,
0.06881601363420486,
0.31860870122909546,
-0.2981918752193451,
0.0059747216291725636,
-0.05179433897137642,
0.2173204869031906,
-0.08404245227575302,
0.08132035285234451,
-0.037809453904628754,
0.08517355471849442,
0.20004026591777802,
0.3185150623321533,
0.06729160249233246,
-0.15987001359462738,
-0.3062141239643097,
0.1838444024324417,
0.04174423590302467,
0.15626439452171326,
-0.04076856002211571,
0.10010576248168945,
0.1492387056350708,
-0.1337081789970398,
-0.10101119428873062,
0.334582656621933,
0.12536202371120453,
0.21837842464447021,
-0.029632417485117912,
0.03707204386591911,
0.1851569265127182,
-0.15986455976963043,
-0.1839771419763565,
-0.172458678483963,
0.33998581767082214,
0.18061360716819763,
0.04874395951628685,
-0.04819568619132042,
0.11862507462501526,
0.03992384672164917,
-0.13405188918113708,
0.11869537830352783,
-0.07783444970846176,
-0.2655766010284424,
0.1333700716495514,
0.28768590092658997,
-0.119479238986969,
0.3786885142326355,
-0.34599369764328003,
-0.11189965903759003,
0.09119497239589691,
0.2351439744234085,
-0.2654985785484314,
-0.1237107515335083,
-0.323249876499176,
-0.10655076801776886,
-0.05830879881978035,
0.27840471267700195,
-0.05983109399676323,
-0.4723799228668213,
0.12146705389022827,
-0.06493828445672989,
0.3360198438167572,
-0.5360026359558105,
-0.07342168688774109,
0.3985145390033722,
0.01497412659227848,
-0.36112016439437866,
-0.1933409869670868,
-0.015196992084383965,
0.02080165222287178,
0.545098602771759,
-0.36754390597343445,
0.13735799491405487,
-0.33860594034194946,
0.026388093829154968,
0.1915484219789505,
0.02560487389564514,
-0.03821989521384239,
0.40564191341400146,
-0.32718825340270996,
-0.04896286875009537,
-0.07162456959486008,
0.30504757165908813,
-0.1176728680729866,
0.033445704728364944,
-0.1280478686094284,
-0.05141457915306091,
-0.1239193007349968,
-0.12486206740140915,
-0.33803993463516235,
-0.27342891693115234,
-0.23037627339363098,
0.006182097364217043,
0.097541943192482,
-0.012555671855807304,
0.1405140459537506,
0.1916218400001526,
-0.26688432693481445,
-0.5332417488098145,
-0.19809405505657196,
-0.037783779203891754,
0.17207667231559753,
-0.390032023191452,
0.3403877019882202,
0.3084273934364319,
-0.22176991403102875,
0.2584379017353058,
0.24336442351341248,
0.519983172416687,
0.07158105820417404,
0.033447276800870895,
0.10651924461126328,
-0.5706883668899536,
-0.09190265089273453,
-0.051722537726163864,
0.3297680616378784,
-0.12424173206090927,
0.05875599384307861,
0.021863723173737526,
0.015872806310653687,
-0.09563980996608734,
0.029347727075219154,
0.22854650020599365,
-0.07562584429979324,
-0.5632570385932922,
0.21907790005207062,
-0.14116211235523224,
0.1117323562502861,
0.04065860062837601,
0.07498443871736526,
-0.47366926074028015,
0.4417385458946228,
0.342167466878891,
0.05759616568684578,
-0.010626780800521374,
0.00219025113619864,
0.08138876408338547,
-0.12637458741664886,
-0.11261280626058578,
0.26730480790138245,
0.15798674523830414,
-0.2770342230796814,
-0.15913544595241547,
-0.6735785603523254,
-0.0714835599064827,
-0.048805225640535355,
-0.004952764604240656,
0.0006286432035267353,
0.11898061633110046,
0.1586841493844986,
0.1362602412700653,
0.06926517933607101,
-0.026040753349661827,
-0.5322325825691223,
0.3291487395763397,
-0.21546295285224915,
-0.0053817229345440865,
-0.08778760582208633,
0.4366607069969177,
0.04148931801319122,
-0.10649824887514114,
0.01083523128181696,
0.09469112008810043,
0.03401884064078331,
0.06554783880710602,
0.005946216639131308,
0.01756274327635765,
-0.12066161632537842,
0.15823885798454285,
0.14234521985054016,
0.17081496119499207,
-0.23485422134399414,
0.18956536054611206,
-0.28325796127319336,
0.02929283306002617,
-0.19824345409870148,
0.15615646541118622,
0.2698149085044861,
0.5158424377441406,
-0.18345138430595398,
-0.0686844065785408,
-0.06360107660293579,
0.16536100208759308,
0.11124467104673386,
-0.06495928764343262,
-0.19141264259815216,
0.08976943045854568,
-0.00870022177696228,
0.27149662375450134,
-0.2622263729572296,
0.10594266653060913,
0.0038293928373605013,
0.0026382741052657366,
-0.4920395612716675,
-0.7109149694442749,
0.4522460103034973,
-0.403315007686615,
-0.5287761688232422,
-0.07965649664402008,
0.5906725525856018,
0.24035461246967316,
-0.03215355798602104,
-0.7086962461471558,
-0.03599023073911667,
0.3959988057613373,
0.24434871971607208,
-0.3021707832813263,
0.2129857838153839,
0.12193944305181503,
0.008531047962605953,
0.014424755237996578,
0.6226142048835754,
0.310524582862854,
-0.23275485634803772,
0.2679712772369385,
-0.46045801043510437
] |
https://github.com/huggingface/datasets/issues/2904 | FORCE_REDOWNLOAD does not work | Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | ## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 99 | FORCE_REDOWNLOAD does not work
## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | [
-0.12534019351005554,
0.02078034169971943,
0.01851324364542961,
0.025714252144098282,
0.18210448324680328,
0.025193462148308754,
0.4788658916950226,
0.24383318424224854,
0.14579597115516663,
-0.23386971652507782,
-0.11628277599811554,
0.2687395215034485,
0.08507492393255234,
0.11211267858743668,
-0.01320269051939249,
0.3137483596801758,
0.1101020872592926,
0.2144833356142044,
-0.0722498968243599,
-0.005192765034735203,
-0.2910996973514557,
0.0634419396519661,
-0.18331824243068695,
-0.21956385672092438,
-0.20657651126384735,
0.29379916191101074,
-0.04269350692629814,
0.30260851979255676,
0.008405971340835094,
-0.37312039732933044,
0.18368098139762878,
0.25500670075416565,
0.18209755420684814,
0.6611079573631287,
-0.0001097160202334635,
0.061788398772478104,
0.1586238592863083,
-0.17931517958641052,
-0.1704430878162384,
-0.18580830097198486,
0.041996218264102936,
-0.04552863910794258,
-0.3461465537548065,
-0.08420885354280472,
-0.0005325815291143954,
-0.22075313329696655,
-0.1748756617307663,
-0.3461504876613617,
0.5304937362670898,
0.402801513671875,
0.23200711607933044,
-0.11041615903377533,
0.12024058401584625,
-0.07211793959140778,
0.17871244251728058,
0.1414143443107605,
-0.06995248794555664,
0.3557817339897156,
0.10452524572610855,
-0.20722325146198273,
-0.09063087403774261,
0.07144738733768463,
-0.1301327347755432,
0.051593177020549774,
-0.10077686607837677,
-0.026638390496373177,
0.3280925452709198,
-0.13608980178833008,
0.08565703779459,
0.1706220805644989,
0.6073062419891357,
-0.33771204948425293,
-0.41728442907333374,
0.007284526247531176,
0.018313923850655556,
-0.24427689611911774,
0.1650238037109375,
0.17924897372722626,
-0.007418763358145952,
0.3686659336090088,
-0.01261986419558525,
-0.02545204758644104,
0.0721382275223732,
-0.19480609893798828,
-0.030857687816023827,
-0.11782002449035645,
-0.10041670501232147,
-0.03621332719922066,
0.05162082985043526,
0.060248345136642456,
0.4213588535785675,
-0.021616192534565926,
-0.056680817157030106,
0.03428543731570244,
-0.02915239706635475,
-0.13422058522701263,
0.21530650556087494,
-0.3018360733985901,
0.07473673671483994,
-0.028192313387989998,
-0.07644761353731155,
-0.10773561149835587,
-0.059202227741479874,
0.04897985979914665,
0.07386142015457153,
0.2261446863412857,
-0.13872556388378143,
-0.09012013673782349,
0.3910105228424072,
0.17674121260643005,
-0.25137853622436523,
-0.07261870056390762,
0.029412871226668358,
-0.202727273106575,
0.5261004567146301,
-0.06476002186536789,
0.2614034116268158,
-0.1472218930721283,
-0.40446189045906067,
-0.01818140409886837,
-0.10707840323448181,
0.003265222068876028,
-0.274264395236969,
0.17676229774951935,
0.020774634554982185,
0.35306546092033386,
0.13414546847343445,
0.1856253296136856,
0.05813946947455406,
-0.20635703206062317,
-0.22263367474079132,
-0.12268716841936111,
-0.30918410420417786,
0.025152010843157768,
0.29478344321250916,
-0.17088261246681213,
0.3440059423446655,
0.5470415353775024,
-0.3297728896141052,
-0.5027303099632263,
-0.062135063111782074,
-0.03143242746591568,
0.14525175094604492,
0.29647350311279297,
-0.06330341100692749,
-0.08639830350875854,
0.26669952273368835,
-0.09013661742210388,
-0.016840049996972084,
0.355297327041626,
-0.09144729375839233,
-0.3069288730621338,
0.14365419745445251,
0.19756388664245605,
0.05110614746809006,
0.19584870338439941,
-0.12795069813728333,
0.015527860261499882,
0.30427223443984985,
-0.07051930576562881,
-0.04579640179872513,
-0.050077952444553375,
-0.013653249479830265,
-0.24845163524150848,
0.047666821628808975,
0.733782947063446,
-0.46811625361442566,
0.008141770027577877,
-0.29220107197761536,
-0.0890842080116272,
0.24045436084270477,
0.07852472364902496,
0.004703151993453503,
0.04239272326231003,
-0.4686901569366455,
-0.3603314459323883,
0.16675840318202972,
-0.1669526845216751,
-0.4369601011276245,
0.005820767022669315,
-0.21424207091331482,
0.25753310322761536,
0.16651500761508942,
-0.04497886821627617,
-0.15013587474822998,
-0.01723400130867958,
0.09704820811748505,
0.24900712072849274,
0.09239392727613449,
0.044823504984378815,
-0.32461726665496826,
-0.2888210713863373,
0.0455683209002018,
-0.1329660415649414,
0.2855157256126404,
0.4056812822818756,
0.35214361548423767,
0.1666208654642105,
0.36993882060050964,
0.062592513859272,
0.015510057099163532,
0.014386450871825218,
0.3367367386817932,
-0.01800963282585144,
0.03307594358921051,
0.1765211522579193,
-0.5221682190895081,
0.30751779675483704,
-0.03360413387417793,
-0.2515624463558197,
0.07289617508649826,
-0.07019562274217606,
-0.5719497203826904,
-0.22833910584449768,
-0.07209762185811996,
-0.38775426149368286,
0.17254778742790222,
0.4713421165943146,
-0.033435214310884476,
0.018499013036489487,
-0.14348915219306946,
0.47259804606437683,
-0.3845011591911316,
-0.04807133972644806,
-0.04130111262202263,
0.28551965951919556,
-0.19322766363620758,
-0.18146087229251862,
-0.21956834197044373,
-0.11879631131887436,
0.24479442834854126,
-0.16257469356060028,
-0.12155905365943909,
0.4299699366092682,
0.18604804575443268,
0.27208659052848816,
-0.36191368103027344,
-0.19503721594810486,
0.1652197539806366,
-0.016062842682003975,
-0.14654868841171265,
0.11854605376720428,
0.24596841633319855,
-0.07762633264064789,
-0.01739545911550522,
0.2789049744606018,
-0.40310025215148926,
-0.0885872021317482,
0.07137481123209,
-0.04621913656592369,
0.2666130065917969,
-0.2367842197418213,
0.28281763195991516,
-0.34039777517318726,
-0.3403315246105194,
0.2947017252445221,
0.0018238438060507178,
0.1279277205467224,
0.09892487525939941,
0.11211565136909485,
0.28677937388420105,
0.006671548821032047,
0.04751832038164139,
-0.08901215344667435,
-0.17656539380550385,
-0.29456332325935364,
0.013121017254889011,
0.35000133514404297,
0.5929617285728455,
0.16572600603103638,
-0.016661541536450386,
0.1451728343963623,
-0.058307260274887085,
-0.25380903482437134,
0.2043859213590622,
-0.2613338232040405,
-0.006470177322626114,
0.33118265867233276,
0.18785230815410614,
0.07633639872074127,
-0.6370834708213806,
0.18601536750793457,
0.5140926837921143,
0.21180230379104614,
-0.21951523423194885,
-0.19098509848117828,
-0.16736453771591187,
0.41251540184020996,
0.0630168691277504,
0.14355091750621796,
-0.030056525021791458,
-0.10656693577766418,
-0.13827311992645264,
0.5955287218093872,
-0.058999013155698776,
0.07329191267490387,
-0.1850811243057251,
-0.07492594420909882,
-0.04616646096110344,
-0.142696812748909,
-0.14728058874607086,
-0.1764150857925415,
-0.1414826512336731,
0.09109583497047424,
0.23135820031166077,
-0.34192267060279846,
0.14773117005825043,
-0.18287667632102966,
-0.12675683200359344,
-0.32676199078559875,
-0.0833430215716362,
-0.1293945461511612,
0.03400430083274841,
0.22240158915519714,
-0.22504904866218567,
0.14713768661022186,
0.1697576940059662,
0.03256837651133537,
-0.00471514742821455,
-0.3554544448852539,
-0.3341686427593231,
-0.10292857140302658,
0.1512000411748886,
0.263375848531723,
-0.26001104712486267,
-0.4554555416107178,
0.1090230718255043,
-0.3711393475532532,
-0.04065723344683647,
0.10156098008155823,
-0.09197595715522766,
0.3833361864089966,
0.22381152212619781,
-0.031083105131983757,
0.4020080864429474,
0.26988327503204346,
-0.4376192092895508,
-0.2790605425834656,
0.08050375431776047,
-0.10147761553525925,
-0.26337024569511414,
0.01479132380336523,
0.06091536208987236,
-0.012120112776756287,
0.273706316947937,
-0.4307677745819092,
-0.08452610671520233,
-0.2824062407016754,
0.08377833664417267,
-0.05857499688863754,
0.23369616270065308,
0.2081228643655777,
0.12076064199209213,
-0.21364115178585052,
-0.10407991707324982,
-0.09567862749099731,
-0.04149549454450607,
0.23349164426326752,
0.1269829422235489,
0.0212046317756176,
0.2292778193950653,
0.09353939443826675,
0.6404242515563965,
0.050309836864471436,
-0.12548093497753143,
0.5086992979049683,
0.12542350590229034,
0.729485273361206,
-0.0740368440747261,
-0.3390607237815857,
-0.005634673871099949,
-0.18458408117294312,
0.31925737857818604,
0.04202868789434433,
-0.106196828186512,
0.13098008930683136,
-0.15642307698726654,
0.024227507412433624,
-0.1678122729063034,
-0.2236509919166565,
-0.11790914088487625,
-0.2493901401758194,
-0.022044090554118156,
0.314230352640152,
-0.10476396977901459,
-0.13416582345962524,
0.08138097077608109,
-0.018525609746575356,
0.08762780576944351,
0.32204148173332214,
0.08849232643842697,
0.0994391217827797,
0.5284662246704102,
-0.10808121412992477,
-0.013339024037122726,
-0.08779767900705338,
0.3645618259906769,
0.20407254993915558,
-0.2023826688528061,
0.058592453598976135,
-0.023118076846003532,
0.7181990146636963,
-0.21944651007652283,
0.31329092383384705,
0.22869490087032318,
0.011423034593462944,
-0.0870223119854927,
-0.19676563143730164,
0.10326176136732101,
-0.1487743854522705,
0.18870948255062103,
0.36492910981178284,
0.037547774612903595,
0.039001550525426865,
-0.10035747289657593,
0.2032172977924347,
0.06212878227233887,
-0.16297239065170288,
-0.2788122594356537,
-0.15997222065925598,
-0.4588591158390045,
0.31173378229141235,
0.1915876865386963,
0.08900442719459534,
-0.32088717818260193,
0.08463439345359802,
-0.24782401323318481,
-0.4116816222667694,
-0.039584871381521225,
0.19514153897762299,
0.20081910490989685,
0.11396059393882751,
0.048987094312906265,
-0.016183145344257355,
-0.11711530387401581,
0.2674767076969147,
0.4194466173648834,
-0.16499197483062744,
0.06672894954681396,
-0.1280570924282074,
0.10939564555883408,
-0.06758137047290802,
0.3193867802619934,
-0.06579616665840149,
-0.1120612844824791,
-0.3978951573371887,
-0.16188210248947144,
0.06209699064493179,
0.06734616309404373,
0.002971675479784608,
-0.33545809984207153,
-0.09545086324214935,
-0.4370097517967224,
0.28718534111976624,
-0.06821713596582413,
-0.051598064601421356,
0.4572840929031372,
0.23643247783184052,
-0.20391163229942322,
0.16251656413078308,
0.05289405956864357,
0.8192448616027832,
-0.1221480444073677,
0.16519224643707275,
0.03279055282473564,
-0.05938706919550896,
0.4034759998321533,
-0.28868234157562256,
0.19405922293663025,
-0.17677371203899384,
-0.30612343549728394,
0.1044934093952179,
-0.04080811142921448,
0.23287995159626007,
0.20792250335216522,
-0.12640444934368134,
0.13854002952575684,
-0.0984726995229721,
0.41676652431488037,
0.2764783501625061,
-0.003026405582204461,
-0.22247028350830078,
-0.14139285683631897,
-0.22919374704360962,
0.1468186378479004,
0.28117281198501587,
0.1926804631948471,
-0.1454819291830063,
-0.008617446757853031,
0.12203589826822281,
-0.022948313504457474,
-0.26856157183647156,
0.28663620352745056,
-0.1642531156539917,
0.3783462941646576,
-0.4507659673690796,
-0.10984096676111221,
0.032645970582962036,
0.26009324193000793,
0.2549608647823334,
0.257820188999176,
0.014676823280751705,
0.08309271186590195,
0.4122845232486725,
0.13230839371681213,
-0.1551140993833542,
0.0008570131030865014,
0.4158841371536255,
0.10062885284423828,
-0.3379721939563751,
0.19882901012897491,
-0.09078487008810043,
-0.14765509963035583,
0.0037592605222016573,
0.2748386859893799,
-0.04332805424928665,
-0.11250337958335876,
-0.09276361763477325,
0.09353780001401901,
-0.07497448474168777,
-0.4186441898345947,
0.1443355232477188,
-0.052253514528274536,
-0.12823939323425293,
0.12125552445650101,
-0.44810304045677185,
-0.4539901316165924,
-0.2699022889137268,
0.5651443600654602,
0.16530360281467438,
0.08968782424926758,
0.3432316780090332,
-0.19581550359725952,
0.009230731055140495,
-0.19560404121875763,
0.03483295813202858,
-0.125552237033844,
-0.32504358887672424,
0.5315564274787903,
-0.21403203904628754,
-0.10113172978162766,
0.1889258325099945,
-0.1737542301416397,
0.11054182797670364,
0.38086986541748047,
0.16373538970947266,
-0.2844933867454529,
-0.5291987657546997,
-0.3904182016849518,
-0.05248981714248657,
0.2282983958721161,
0.05084759742021561,
-0.007295414339751005,
-0.010713045485317707,
-0.004559529013931751,
-0.3350776135921478,
0.24038831889629364,
0.0919073298573494,
0.07293353229761124,
0.12427912652492523,
-0.10434801876544952,
-0.25606948137283325,
-0.25927311182022095,
0.17759519815444946,
0.3209485411643982,
-0.02541062794625759,
-0.2779421806335449,
-0.32961493730545044,
0.0958332046866417,
0.32207992672920227,
-0.10902666300535202,
-0.19926300644874573,
-0.08584678918123245,
-0.21283550560474396,
-0.11368535459041595,
0.20989590883255005,
0.4146847426891327,
-0.050506509840488434,
-0.015249294228851795,
0.33207064867019653,
0.0022460862528532743,
-0.19977372884750366,
-0.09585107862949371,
-0.2755773365497589,
-0.14803579449653625,
0.06965821981430054,
0.2725878655910492,
-0.036160461604595184,
0.12739093601703644,
-0.4385436475276947,
-0.06491556763648987,
0.11951734125614166,
0.08854959905147552,
0.19131024181842804,
-0.22849607467651367,
-0.1663820594549179,
-0.08600345999002457,
0.22188517451286316,
0.40136393904685974,
0.04893631860613823,
-0.15804815292358398,
0.23256653547286987,
0.23899349570274353,
-0.5628595948219299,
-0.010693835094571114,
0.19435922801494598,
-0.0036497253458946943,
0.09856443852186203,
0.19869790971279144,
0.21040454506874084,
-0.16817361116409302,
-0.0613069161772728,
0.13478852808475494,
0.2547551393508911,
-0.06252752244472504,
0.33174243569374084,
0.6826944351196289,
0.176279678940773,
0.2481752634048462,
0.2562505006790161,
0.19757486879825592,
0.1642528623342514,
0.3292226493358612,
0.02296837419271469,
-0.02419380284845829,
-0.2815638780593872,
0.018447265028953552,
-0.3797072172164917,
-0.3709610104560852,
0.3160878121852875,
0.4231717586517334,
-0.21430742740631104,
0.23659208416938782,
0.03536231443285942,
-0.309990793466568,
-0.026485925540328026,
0.029949216172099113,
-0.280551940202713,
0.20324544608592987,
-0.12363598495721817,
-0.3274005353450775,
0.3878685534000397,
-0.20261111855506897,
-0.17774946987628937,
0.1964987963438034,
-0.04107586294412613,
0.026260003447532654,
-0.13569796085357666,
-0.0048754592426121235,
-0.2721962332725525,
-0.4071182608604431,
-0.06439096480607986,
0.1155257374048233,
0.13042256236076355,
-0.20576679706573486,
-0.09847449511289597,
0.3018856644630432,
-0.13642802834510803,
-0.0018366104923188686,
0.23997218906879425,
0.37889692187309265,
0.21110770106315613,
0.15349061787128448,
-0.002281538210809231,
0.17388178408145905,
-0.008814898319542408,
-0.31576308608055115,
0.4200022220611572,
0.06627421081066132,
-0.02409445121884346,
-0.13709048926830292,
0.20393888652324677,
-0.25069528818130493,
-0.08120554685592651,
0.1522061973810196,
0.014136126264929771,
-0.15470805764198303,
0.4992973208427429,
0.07199612259864807,
-0.3092767894268036,
-0.002759844297543168,
0.27526259422302246,
0.025196542963385582,
-0.07981820404529572,
0.3267325758934021,
-0.1332300305366516,
0.2819019556045532,
-0.23000749945640564,
0.11098090559244156,
0.11482740193605423,
-0.0347524918615818,
0.4555129110813141,
-0.48986995220184326,
-0.20979514718055725,
0.0988616794347763,
-0.8164004683494568,
0.012093774043023586,
0.03284814581274986,
0.20082999765872955,
-0.14171013236045837,
0.0833701491355896,
-0.008317602798342705,
0.02129434049129486,
0.11451276391744614,
0.31389519572257996,
0.07245684415102005,
0.31026554107666016,
-0.053945764899253845,
-0.13468994200229645,
-0.09586601704359055,
-0.14770090579986572,
-0.11636543273925781,
-0.5594714879989624,
0.07595878094434738,
-0.18532805144786835,
0.20953062176704407,
-0.037059079855680466,
0.006510269828140736,
0.2180144339799881,
0.24442017078399658,
0.49459296464920044,
0.028728220611810684,
-0.0332198366522789,
-0.05200227349996567,
-0.13350486755371094,
-0.5665887594223022,
-0.03980110213160515,
-0.24664069712162018,
0.0500841923058033,
0.1520661562681198,
0.1390792578458786,
-0.3625166416168213,
-0.3033447265625,
-0.21440489590168,
0.3089037239551544,
0.20045152306556702,
-0.03650466352701187,
-0.32255786657333374,
-0.022641964256763458,
-0.08647540211677551,
0.02374177612364292,
0.2618906497955322,
0.28176501393318176,
-0.35260629653930664,
0.3924574851989746,
-0.39136603474617004,
-0.3119344413280487,
0.2078099250793457,
-0.3488785922527313,
-0.3597283959388733,
-0.11099733412265778,
0.21950869262218475,
-0.05901031568646431,
-0.08384646475315094,
0.08040180057287216,
0.3842255175113678,
0.22002556920051575,
-0.12928146123886108,
-0.22826728224754333,
0.11827893555164337,
-0.40389877557754517,
0.15223082900047302,
-0.09264332801103592,
0.15833665430545807,
0.15146373212337494,
-0.21538417041301727,
0.14776435494422913,
-0.07969911396503448
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 23 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | [
-0.049786072224378586,
-0.05474426969885826,
-0.12806658446788788,
0.00030061393044888973,
-0.03935408592224121,
-0.007131490390747786,
0.35460469126701355,
0.1659148782491684,
0.1936858892440796,
0.20558102428913116,
0.06397976726293564,
0.14600686728954315,
-0.02429240569472313,
0.19974252581596375,
-0.014875962398946285,
-0.20615331828594208,
-0.047417934983968735,
0.007556694559752941,
-0.09543999284505844,
-0.09535464644432068,
-0.12374754995107651,
0.14722800254821777,
-0.13759177923202515,
-0.21125398576259613,
-0.45807236433029175,
-0.08757711946964264,
-0.1730554699897766,
-0.02534552291035652,
-0.17212940752506256,
-0.07761843502521515,
-0.12090060859918594,
0.19935566186904907,
-0.1435847282409668,
0.33429640531539917,
-0.00009734713239595294,
-0.11900025606155396,
0.23090702295303345,
-0.18028394877910614,
-0.08710324764251709,
0.057661280035972595,
0.12335960566997528,
-0.018355563282966614,
-0.31976959109306335,
-0.44974106550216675,
-0.1917414367198944,
-0.09192617237567902,
0.2502598166465759,
0.08722643554210663,
0.22072355449199677,
-0.017194638028740883,
0.32803940773010254,
-0.12104440480470657,
0.1039479449391365,
0.024298256263136864,
0.040866490453481674,
0.1121116504073143,
-0.13301217555999756,
-0.000701124663464725,
0.015008751302957535,
-0.32461756467819214,
-0.16043172776699066,
0.6847468614578247,
0.017172927036881447,
0.02725372090935707,
0.06144141033291817,
0.0563659593462944,
-0.17214147746562958,
-0.32972466945648193,
0.17903511226177216,
0.4349502623081207,
0.5310004949569702,
0.0022287077736109495,
-0.16606634855270386,
-0.05319799855351448,
-0.0875590369105339,
-0.06500948220491409,
0.14329634606838226,
0.29994240403175354,
-0.13682319223880768,
0.023942427709698677,
-0.26669755578041077,
0.0028926178347319365,
-0.2545391321182251,
0.15935984253883362,
-0.19594697654247284,
0.41311150789260864,
0.02156653441488743,
0.032652612775564194,
-0.0001825417421059683,
-0.21015246212482452,
-0.4369373321533203,
-0.012732093222439289,
0.21254730224609375,
0.009994763880968094,
0.03810915723443031,
-0.2509276568889618,
-0.05038612335920334,
-0.15460917353630066,
0.36922287940979004,
-0.1973782628774643,
-0.04035815969109535,
0.07332427054643631,
-0.18251408636569977,
0.3001661002635956,
0.11515733599662781,
-0.2735809087753296,
-0.17287811636924744,
0.021519096568226814,
0.18278440833091736,
0.0874059870839119,
-0.24666374921798706,
0.1344640851020813,
0.22530275583267212,
-0.10297273844480515,
-0.17729884386062622,
-0.08780074119567871,
0.10701990127563477,
-0.04666145518422127,
-0.10756105929613113,
-0.00858340971171856,
-0.14670497179031372,
-0.07101316750049591,
-0.43605807423591614,
0.21651647984981537,
-0.033575911074876785,
0.10985042154788971,
0.1278967559337616,
0.1473860740661621,
-0.21880777180194855,
-0.15337111055850983,
-0.1057867705821991,
0.10091473162174225,
0.055739626288414,
0.27904564142227173,
0.121102474629879,
0.3311387002468109,
0.2567344009876251,
-0.08240304887294769,
0.1746455729007721,
0.09472091495990753,
0.04164796695113182,
-0.0953105092048645,
0.25552499294281006,
-0.008912358433008194,
0.016461851075291634,
-0.12272777408361435,
-0.0512414313852787,
-0.27936214208602905,
-0.19902440905570984,
0.027065357193350792,
-0.10847260802984238,
0.2036319524049759,
-0.32128992676734924,
0.26683661341667175,
0.14469747245311737,
-0.05835185945034027,
-0.004563456866890192,
0.6982098817825317,
0.09597613662481308,
0.030842233449220657,
0.13653099536895752,
0.14452457427978516,
-0.3958846628665924,
-0.0636468231678009,
0.2453516572713852,
0.44906842708587646,
-0.08862833678722382,
0.025528402999043465,
0.3061008155345917,
0.35646185278892517,
0.01936931535601616,
0.1932203471660614,
0.024550553411245346,
-0.01815176010131836,
0.048875678330659866,
0.263017475605011,
-0.10562120378017426,
-0.235868439078331,
-0.11953902989625931,
-0.17599080502986908,
-0.09651169925928116,
0.10207650810480118,
0.032643791288137436,
0.2860516309738159,
0.2700505256652832,
-0.10277564823627472,
0.09353453665971756,
0.6013002991676331,
-0.18929491937160492,
0.2137654423713684,
-0.21300679445266724,
-0.3863323926925659,
-0.0069002122618258,
0.3273806869983673,
0.12856359779834747,
-0.46857771277427673,
0.2250232696533203,
0.1909397542476654,
0.03199847415089607,
-0.3845873475074768,
0.09872248023748398,
0.007533400785177946,
-0.031035661697387695,
0.09958445280790329,
0.09182794392108917,
-0.23989461362361908,
-0.007952389307320118,
0.05467880889773369,
0.2049163430929184,
0.4832216203212738,
-0.1773444414138794,
-0.24813427031040192,
-0.038995638489723206,
-0.15137484669685364,
-0.10651350021362305,
-0.36987075209617615,
0.3537430167198181,
0.1205863431096077,
-0.0045493231154978275,
0.2210572212934494,
0.07844986021518707,
-0.059415653347969055,
-0.31634390354156494,
-0.045601796358823776,
0.11990627646446228,
0.1867602914571762,
-0.2623726725578308,
-0.01857561245560646,
0.12186586111783981,
0.08605348318815231,
-0.08356115221977234,
0.18076513707637787,
0.09117484092712402,
0.19132480025291443,
0.04617701470851898,
0.3455415666103363,
0.2677956223487854,
0.053058478981256485,
0.3559018075466156,
-0.6900472044944763,
-0.06900857388973236,
0.19123446941375732,
0.0030609644018113613,
0.012259826995432377,
-0.26597264409065247,
0.18192796409130096,
0.27170419692993164,
0.04521745815873146,
-0.08044508844614029,
-0.00830821506679058,
0.14734697341918945,
-0.02443908341228962,
0.05837000906467438,
-0.3646618723869324,
-0.08103753626346588,
0.21299944818019867,
-0.2515609562397003,
-0.2326057255268097,
-0.18902453780174255,
0.1808757781982422,
0.5132710933685303,
0.2433171272277832,
0.3687906563282013,
0.16841791570186615,
-0.11996776610612869,
-0.14010488986968994,
-0.006870088167488575,
-0.09601549059152603,
-0.16881248354911804,
0.3742111027240753,
-0.05377257615327835,
-0.12606371939182281,
-0.2724705934524536,
-0.09229536354541779,
0.17809566855430603,
-0.01589195244014263,
0.22313141822814941,
0.048664383590221405,
0.2492242306470871,
-0.024990813806653023,
-0.457743763923645,
-0.12711426615715027,
-0.15744951367378235,
-0.19730336964130402,
0.056282173842191696,
0.07846454530954361,
-0.07133182138204575,
-0.19916099309921265,
-0.06696484237909317,
0.28336089849472046,
-0.30871281027793884,
-0.11430888622999191,
0.3522230088710785,
0.015218645334243774,
-0.11031164973974228,
0.1833135038614273,
0.0873243436217308,
0.17335721850395203,
0.186234712600708,
0.024558179080486298,
-0.133793905377388,
-0.545577883720398,
-0.06111622229218483,
0.26861321926116943,
0.1743592470884323,
-0.01615128107368946,
0.5377413034439087,
-0.17810148000717163,
0.036774132400751114,
-0.28842440247535706,
-0.7053378224372864,
0.10204683989286423,
-0.18407794833183289,
0.1969558149576187,
0.015518663451075554,
0.2760655879974365,
-0.22341617941856384,
-0.15411323308944702,
0.154629647731781,
-0.1017463207244873,
-0.19354881346225739,
-0.22095854580402374,
0.048077456653118134,
0.04209982976317406,
-0.2291867434978485,
-0.21489612758159637,
-0.14420707523822784,
-0.24474850296974182,
0.10660207271575928,
0.34895890951156616,
0.17218703031539917,
0.06473681330680847,
0.38381752371788025,
0.028066065162420273,
-0.023870307952165604,
0.2764136791229248,
-0.35711604356765747,
-0.032202646136283875,
0.36824676394462585,
-0.303909569978714,
-0.4038146138191223,
-0.16452786326408386,
-0.1827670931816101,
0.16991327702999115,
0.05919575318694115,
-0.3852040469646454,
-0.393205851316452,
0.01609271764755249,
0.1964578777551651,
0.26060253381729126,
0.07765539735555649,
0.1688963770866394,
0.16969773173332214,
-0.28882139921188354,
-0.12013038992881775,
-0.09050032496452332,
0.10876288264989853,
0.08043956756591797,
0.03271752968430519,
0.21563278138637543,
0.09163612127304077,
0.22650383412837982,
0.6132440567016602,
-0.16133973002433777,
-0.028157174587249756,
0.41198232769966125,
-0.03838081657886505,
0.22410444915294647,
-0.00023354412405751646,
-0.07051154226064682,
0.4972851872444153,
0.009116395376622677,
0.15814465284347534,
0.24899734556674957,
0.10939516872167587,
-0.45752647519111633,
-0.14250671863555908,
0.07410771399736404,
-0.4309841990470886,
-0.18312878906726837,
0.1126236692070961,
0.28222325444221497,
0.13590238988399506,
-0.12557214498519897,
-0.11187677830457687,
-0.19500747323036194,
-0.21409933269023895,
0.15013788640499115,
0.13654586672782898,
-0.033066943287849426,
-0.0854402557015419,
-0.1478024572134018,
0.04407964646816254,
-0.20995818078517914,
0.13260029256343842,
0.38083934783935547,
-0.17131367325782776,
-0.12352991104125977,
-0.06418976932764053,
-0.14828233420848846,
-0.22657299041748047,
0.24561694264411926,
-0.30668091773986816,
-0.03962195664644241,
-0.00018568882660474628,
-0.005773679818958044,
0.017194237560033798,
0.22118324041366577,
-0.20882587134838104,
-0.34430235624313354,
-0.045231420546770096,
0.24777263402938843,
-0.4293949007987976,
0.08817101269960403,
0.39060860872268677,
0.18757542967796326,
-0.09825942665338516,
0.07251368463039398,
-0.1535128355026245,
-0.4466046094894409,
-0.46397992968559265,
0.07592836022377014,
-0.01792312227189541,
0.2340524047613144,
0.16927467286586761,
-0.04610416293144226,
-0.04956074059009552,
-0.03458055481314659,
-0.03135652467608452,
0.3599346876144409,
0.023260463029146194,
0.24515391886234283,
-0.18668285012245178,
0.015925973653793335,
-0.03627609834074974,
-0.03926866501569748,
0.2646229863166809,
0.06555929034948349,
0.06209945306181908,
-0.1904883086681366,
-0.17988622188568115,
-0.008132141083478928,
0.13258753716945648,
0.24912522733211517,
-0.03252929449081421,
0.009901618584990501,
0.03238046541810036,
-0.38695642352104187,
0.21385236084461212,
0.10158603638410568,
0.11076104640960693,
-0.014832454733550549,
-0.2682083547115326,
0.3575320541858673,
0.013968773186206818,
0.08968249708414078,
0.3896494209766388,
0.08274827152490616,
-0.4077330529689789,
0.13139735162258148,
0.6063615083694458,
0.8766949772834778,
-0.1784278005361557,
0.19688573479652405,
0.11565326899290085,
-0.12276943027973175,
0.4901367425918579,
-0.012511085718870163,
0.08938979357481003,
-0.09030462056398392,
0.046206142753362656,
-0.04825692996382713,
0.18107642233371735,
0.023386400192975998,
-0.00717973755672574,
-0.23839633166790009,
-0.059148646891117096,
0.49507802724838257,
0.0509890615940094,
0.02231808938086033,
0.24544084072113037,
-0.018000183627009392,
-0.3712226152420044,
-0.16389083862304688,
0.23962123692035675,
-0.13479410111904144,
-0.0386183001101017,
0.020554665476083755,
-0.1282648742198944,
-0.05630704388022423,
-0.2408725768327713,
-0.26612186431884766,
-0.03752649948000908,
-0.39237549901008606,
0.20526385307312012,
-0.25204840302467346,
-0.2321317493915558,
0.054000627249479294,
0.19257132709026337,
0.1538773477077484,
-0.011854743584990501,
-0.19310198724269867,
0.26996225118637085,
-0.21669624745845795,
-0.1297280639410019,
0.09944845736026764,
-0.07785586267709732,
0.313461035490036,
-0.16212570667266846,
-0.23103395104408264,
0.06826397776603699,
0.35306987166404724,
-0.2003537267446518,
-0.378405898809433,
-0.1596207469701767,
0.21485699713230133,
0.3098065257072449,
-0.07141140848398209,
0.03680964931845665,
-0.4080922603607178,
-0.2550562024116516,
0.26626089215278625,
-0.1720844954252243,
0.12809616327285767,
0.09532255679368973,
0.3381573259830475,
-0.06617192178964615,
0.012041485868394375,
0.27996665239334106,
0.15132415294647217,
0.06921563297510147,
0.2529287040233612,
0.19705091416835785,
-0.15937772393226624,
-0.26254817843437195,
-0.14282652735710144,
-0.21437926590442657,
-0.3051333725452423,
-0.13529805839061737,
0.06716674566268921,
-0.2043529748916626,
-0.13380280137062073,
0.36419761180877686,
0.16250565648078918,
-0.025559652596712112,
0.09161863476037979,
-0.07917729765176773,
-0.043531958013772964,
0.3351588547229767,
-0.264507919549942,
0.262008935213089,
0.13626064360141754,
0.09192357957363129,
0.06210063397884369,
0.24666598439216614,
-0.4697705805301666,
0.0008082559797912836,
-0.2768234610557556,
0.22043846547603607,
0.28419601917266846,
-0.1862063854932785,
-0.02803073264658451,
0.1253683716058731,
0.3021202087402344,
0.0017987476894631982,
-0.16856129467487335,
-0.3627263605594635,
-0.2431439906358719,
0.042277269065380096,
0.033410727977752686,
-0.1346721202135086,
0.025457391515374184,
-0.07903239130973816,
-0.08361511677503586,
-0.16225364804267883,
0.09319312870502472,
-0.22409746050834656,
-0.24724158644676208,
0.22282549738883972,
-0.18231375515460968,
0.07007098942995071,
0.09484647214412689,
-0.18610747158527374,
-0.09508485347032547,
0.4156055450439453,
0.053598735481500626,
-0.10834185034036636,
0.22086454927921295,
-0.13956642150878906,
-0.02601352334022522,
0.29093462228775024,
-0.2630021870136261,
0.013308065943419933,
0.2766337990760803,
0.14192470908164978,
-0.03432506322860718,
0.244120255112648,
0.2616044878959656,
-0.21285296976566315,
-0.27817627787590027,
-0.07092975080013275,
0.2034054845571518,
0.388540118932724,
-0.3480495512485504,
-0.00026852916926145554,
0.3647509217262268,
-0.4026499092578888,
0.4058004915714264,
0.30525073409080505,
0.16807568073272705,
-0.04709490016102791,
-0.258130818605423,
0.07653874903917313,
-0.01699453592300415,
-0.43400222063064575,
-0.020303452387452126,
0.14155620336532593,
0.11057623475790024,
0.04873599112033844,
-0.06017107516527176,
0.1592475324869156,
0.27904507517814636,
0.2702627182006836,
-0.057671450078487396,
0.40032505989074707,
0.07007189095020294,
0.05365900695323944,
0.2820591628551483,
0.2163240760564804,
0.5008888244628906,
0.15203943848609924,
0.061533067375421524,
0.337533563375473,
0.06671210378408432,
-0.04894968867301941,
0.02316681668162346,
-0.14150859415531158,
-0.11761503666639328,
0.3134405314922333,
-0.014749984256923199,
-0.07158569246530533,
-0.39752188324928284,
-0.21558552980422974,
-0.050253890454769135,
0.09920396655797958,
0.08556662499904633,
-0.14505766332149506,
0.23546390235424042,
0.052496328949928284,
-0.11966459453105927,
-0.24438609182834625,
-0.043071746826171875,
-0.06646519154310226,
0.5451589822769165,
-0.19913794100284576,
0.06965944170951843,
0.2658621370792389,
-0.03560963273048401,
0.09635457396507263,
0.40212270617485046,
0.1985037624835968,
0.07891610264778137,
-0.238174706697464,
0.10883483290672302,
-0.04457838460803032,
-0.1440982222557068,
-0.14252568781375885,
-0.030538389459252357,
0.14775913953781128,
-0.2748594880104065,
0.34937527775764465,
0.2631460726261139,
-0.301936537027359,
-0.32111504673957825,
0.3872310221195221,
-0.13458797335624695,
-0.010066420771181583,
-0.6193215847015381,
-0.002628579270094633,
0.04432044178247452,
-0.15217694640159607,
0.10487814247608185,
-0.5363391637802124,
-0.09522535651922226,
-0.08854340761899948,
-0.0321342796087265,
0.027719838544726372,
-0.1648293286561966,
0.13386304676532745,
0.07524240761995316,
0.44137313961982727,
0.2891284227371216,
0.060676079243421555,
0.0619644969701767,
-0.22793424129486084,
-0.52789705991745,
0.1167537271976471,
-0.07994066923856735,
-0.4166083037853241,
-0.1129240021109581,
0.35056644678115845,
0.24548976123332977,
0.23853261768817902,
0.1003212109208107,
-0.15066537261009216,
0.24236546456813812,
0.07097428292036057,
-0.28754159808158875,
0.08085842430591583,
0.05618828907608986,
0.05417974293231964,
-0.09418892860412598,
-0.17191670835018158,
0.1251954287290573,
-0.2471843957901001,
0.32332947850227356,
-0.24117577075958252,
0.11204297840595245,
-0.1701766699552536,
0.07295794785022736,
0.06469176709651947,
-0.027289127930998802,
0.1814374029636383,
-0.43561264872550964,
-0.31987518072128296,
-0.03625895828008652,
0.011588922701776028,
-0.15197870135307312,
0.1135638877749443,
0.1561066210269928,
0.5797206163406372,
0.06924953311681747,
-0.07130176573991776,
0.1066630631685257,
0.49167126417160034,
0.020184852182865143,
0.029559027403593063,
0.09484215080738068,
0.03102708049118519,
0.25175219774246216,
-0.19978225231170654,
-0.07885993272066116,
0.39635154604911804,
-0.09071648120880127,
-0.12833505868911743,
-0.055131878703832626,
-0.6203972697257996,
0.11908937990665436,
-0.43966686725616455,
-0.18748213350772858,
-0.03732111677527428,
-0.13978604972362518,
0.10886227339506149,
0.39965394139289856,
-0.30557742714881897,
0.20878058671951294,
0.22387003898620605,
0.19300846755504608,
-0.24400228261947632,
0.3604777455329895,
0.11555562168359756,
-0.14298219978809357,
-0.08355698734521866,
-0.18053017556667328,
-0.04298274219036102,
-0.07564946264028549,
-0.2174598127603531,
-0.3298110067844391
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | > @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 28 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | [
-0.08095139265060425,
-0.22145529091358185,
-0.19897307455539703,
0.013309369795024395,
0.05485678091645241,
0.0012880776776000857,
0.4317961633205414,
0.09052765369415283,
0.2972509562969208,
0.14708282053470612,
-0.01400246936827898,
0.11782074719667435,
-0.18012937903404236,
0.27506256103515625,
0.17592327296733856,
-0.23473019897937775,
0.05288571119308472,
-0.052559349685907364,
-0.11116620898246765,
-0.07941955327987671,
-0.052257005125284195,
0.1980130970478058,
-0.19383814930915833,
-0.24779284000396729,
-0.3986714780330658,
-0.10572011023759842,
-0.17398905754089355,
-0.01695188693702221,
-0.18466390669345856,
0.03277426213026047,
-0.260813444852829,
0.0733175128698349,
-0.1156974509358406,
0.47700589895248413,
-0.00009640317875891924,
-0.06458007544279099,
0.21438410878181458,
-0.14239051938056946,
-0.05456015095114708,
-0.1777075231075287,
0.04153531789779663,
-0.004911567084491253,
-0.2549009323120117,
-0.2813228368759155,
-0.18397890031337738,
-0.15387742221355438,
0.2700458765029907,
-0.0029814334120601416,
0.3053426146507263,
0.12109719961881638,
0.3088105320930481,
-0.14746835827827454,
0.20715384185314178,
-0.05143754184246063,
0.13264290988445282,
0.15440872311592102,
-0.24827495217323303,
-0.0964362844824791,
0.09663939476013184,
-0.22675710916519165,
-0.2421553134918213,
0.6854543089866638,
0.11605655401945114,
0.025015469640493393,
-0.025282099843025208,
0.007095949724316597,
-0.09265037626028061,
-0.2954963743686676,
0.18863926827907562,
0.47004029154777527,
0.5937219858169556,
-0.16306202113628387,
-0.17218272387981415,
0.09196648746728897,
-0.04870305955410004,
0.03976963087916374,
0.04085616394877434,
0.3571048974990845,
-0.16184036433696747,
0.06495890021324158,
-0.17831803858280182,
-0.15133224427700043,
-0.17268763482570648,
0.2914961874485016,
-0.0949111357331276,
0.4078662395477295,
-0.03154543787240982,
-0.055580977350473404,
-0.03737694397568703,
-0.1777149736881256,
-0.21642382442951202,
0.05230829119682312,
0.24196012318134308,
0.06623687595129013,
0.03358672559261322,
-0.1256910115480423,
0.03854934126138687,
-0.11351121962070465,
0.3417508602142334,
-0.2774723470211029,
-0.05657486990094185,
0.13290150463581085,
-0.3231123983860016,
0.3092397153377533,
0.13855651021003723,
-0.21742545068264008,
-0.14503368735313416,
-0.1854814887046814,
0.19510143995285034,
0.03250012546777725,
-0.26198893785476685,
0.15055789053440094,
0.09972112625837326,
-0.021424032747745514,
-0.22739572823047638,
-0.16076891124248505,
-0.05164683982729912,
0.0911392867565155,
0.11939673870801926,
-0.07075913995504379,
-0.14215880632400513,
-0.06618010997772217,
-0.3177128732204437,
0.24070079624652863,
0.10100490599870682,
0.0815589427947998,
0.09653034061193466,
0.247589573264122,
-0.14709900319576263,
-0.17651711404323578,
-0.08815343677997589,
0.22484135627746582,
-0.1903706043958664,
0.12650258839130402,
0.1592801809310913,
0.5113367438316345,
0.2537499964237213,
-0.07337746769189835,
0.11290935426950455,
0.0018323073163628578,
0.08566061407327652,
-0.10014010965824127,
0.20698435604572296,
-0.05579139292240143,
0.08096785098314285,
-0.15241359174251556,
-0.07337310910224915,
-0.3102891743183136,
-0.15553905069828033,
0.07735223323106766,
-0.08899141103029251,
0.04937776178121567,
-0.4161144495010376,
0.2530648708343506,
0.1284848004579544,
-0.0809183269739151,
0.09084754437208176,
0.7699180841445923,
0.05824892222881317,
-0.03423544391989708,
0.179847851395607,
0.2833344340324402,
-0.37971365451812744,
-0.0025156582705676556,
0.1757737249135971,
0.39056509733200073,
-0.09242081642150879,
-0.06425482034683228,
0.1328476071357727,
0.2665221393108368,
-0.05839456245303154,
0.2173907309770584,
-0.05673089995980263,
0.08785722404718399,
0.02464972250163555,
0.2322876900434494,
0.06946010887622833,
-0.13952913880348206,
-0.04350036382675171,
-0.10111033916473389,
-0.08136072754859924,
0.01060599647462368,
0.08365426957607269,
0.2981448173522949,
-0.012793781235814095,
0.09652863442897797,
0.008079166524112225,
0.6753441691398621,
-0.1098165512084961,
0.22860021889209747,
-0.27377748489379883,
-0.4278280436992645,
-0.011398136615753174,
0.32874393463134766,
0.14537683129310608,
-0.40550553798675537,
0.32784295082092285,
0.23224398493766785,
0.09498655796051025,
-0.3136897087097168,
0.108585424721241,
0.022320222109556198,
-0.0005052521592006087,
0.1467115730047226,
0.10928478091955185,
-0.2964727282524109,
-0.08367657661437988,
-0.13040204346179962,
0.13182401657104492,
0.48374706506729126,
-0.24828948080539703,
-0.24802805483341217,
0.004285986535251141,
-0.20535892248153687,
-0.0621921606361866,
-0.2704660892486572,
0.3617101311683655,
0.17162972688674927,
-0.13062168657779694,
0.2724725902080536,
0.043058354407548904,
-0.09192809462547302,
-0.25331494212150574,
-0.06226865202188492,
-0.04062916338443756,
0.15818801522254944,
-0.2046276479959488,
-0.017777569591999054,
0.047248903661966324,
0.19870106875896454,
-0.29617130756378174,
0.05333475023508072,
0.10388907790184021,
0.18656505644321442,
0.07922602444887161,
0.3698842525482178,
0.3873918652534485,
0.1120803952217102,
0.292123943567276,
-0.6291124820709229,
0.11541521549224854,
0.07602851837873459,
-0.006125952582806349,
-0.017606407403945923,
-0.38419976830482483,
0.04726714268326759,
0.19283445179462433,
-0.0016579421935603023,
0.11443345248699188,
0.07339303195476532,
0.20815329253673553,
-0.09567822515964508,
-0.004993450827896595,
-0.3668542802333832,
0.0016060450579971075,
0.17344427108764648,
-0.18848557770252228,
-0.18246161937713623,
-0.20302601158618927,
0.08076940476894379,
0.523708701133728,
0.22584176063537598,
0.5505990982055664,
0.12542855739593506,
-0.14207974076271057,
-0.28885769844055176,
0.05498592555522919,
-0.2941264808177948,
-0.16557790338993073,
0.31162697076797485,
-0.025124672800302505,
-0.17824286222457886,
-0.04823527857661247,
-0.08552772551774979,
0.13381598889827728,
-0.027692517265677452,
0.19049690663814545,
0.09144356101751328,
0.2914772033691406,
-0.11498081684112549,
-0.5630300641059875,
-0.0705270767211914,
-0.022384129464626312,
-0.21006366610527039,
0.09556356817483902,
0.05322908237576485,
0.008563737384974957,
-0.2813549339771271,
-0.09144842624664307,
0.10905830562114716,
-0.2741346061229706,
-0.046089328825473785,
0.3448167145252228,
-0.06129639223217964,
-0.10884267091751099,
0.222628653049469,
0.26466667652130127,
0.26592427492141724,
0.053522657603025436,
-0.03270826116204262,
-0.05693301558494568,
-0.4480120837688446,
-0.0012577380985021591,
0.2744465470314026,
0.3094530999660492,
0.0774366483092308,
0.4492533206939697,
-0.17061889171600342,
-0.003270126646384597,
-0.19703976809978485,
-0.682835042476654,
0.19318588078022003,
-0.17993353307247162,
0.22229735553264618,
0.046534981578588486,
0.05979978293180466,
-0.21620923280715942,
-0.17843827605247498,
0.12670482695102692,
-0.1550564020872116,
-0.12783215939998627,
-0.05143887549638748,
0.06432649493217468,
0.07919666171073914,
-0.17118225991725922,
-0.2651810050010681,
-0.16081476211547852,
-0.3226845860481262,
0.3241012990474701,
0.23656785488128662,
0.11344879865646362,
-0.0567813515663147,
0.3845592141151428,
0.05180112645030022,
-0.023132313042879105,
0.2783186435699463,
-0.31273820996284485,
-0.058928247541189194,
0.1515590250492096,
-0.3646039366722107,
-0.34768062829971313,
-0.24441078305244446,
-0.19888125360012054,
0.25256800651550293,
0.08084358274936676,
-0.4292120337486267,
-0.3522479236125946,
0.03118201158940792,
0.20614662766456604,
0.1419825553894043,
0.08425945043563843,
0.24483639001846313,
0.19040891528129578,
-0.2793111801147461,
-0.1548067033290863,
-0.0041611515916883945,
0.025512440130114555,
-0.11572061479091644,
0.07603403180837631,
0.17832784354686737,
0.013950771652162075,
0.29653826355934143,
0.4465198814868927,
-0.21760571002960205,
0.14767785370349884,
0.38422781229019165,
0.003617379115894437,
0.1714649200439453,
-0.25750166177749634,
-0.10828797519207001,
0.5114597678184509,
-0.015588324517011642,
0.05322302132844925,
0.3055921792984009,
0.13872316479682922,
-0.4937734007835388,
-0.10477428138256073,
0.15938442945480347,
-0.51128089427948,
-0.13315100967884064,
0.18925602734088898,
0.14038978517055511,
0.1600528508424759,
-0.15137211978435516,
-0.30179283022880554,
-0.17559194564819336,
-0.1879560947418213,
0.18348616361618042,
0.2554950714111328,
-0.06632231175899506,
-0.08578694611787796,
-0.1768641620874405,
0.036985695362091064,
-0.12111346423625946,
0.047108329832553864,
0.3025897443294525,
-0.1103605106472969,
-0.1657051295042038,
-0.12560398876667023,
-0.06918126344680786,
-0.1423524022102356,
0.27115359902381897,
-0.3945428431034088,
-0.180249884724617,
0.10244478285312653,
-0.06272739171981812,
-0.07763556391000748,
0.2761699855327606,
-0.33029311895370483,
-0.2617785632610321,
0.06333442032337189,
0.31135377287864685,
-0.371966153383255,
0.07628647983074188,
0.4057542681694031,
0.15317362546920776,
0.004568476229906082,
-0.03824659436941147,
-0.08394833654165268,
-0.2303084135055542,
-0.44167599081993103,
0.07560941576957703,
-0.04752424359321594,
0.12861540913581848,
0.2946781814098358,
-0.07334260642528534,
-0.03143839165568352,
-0.04845492169260979,
-0.0901326984167099,
0.2570098340511322,
-0.08997437357902527,
0.28485944867134094,
-0.1690305471420288,
-0.12597164511680603,
-0.11030427366495132,
-0.18409599363803864,
0.1707034409046173,
-0.08021993935108185,
-0.0567743219435215,
-0.2014106959104538,
-0.2966364920139313,
0.09549061208963394,
0.07313975691795349,
0.2481430619955063,
0.0807810127735138,
-0.0638769343495369,
-0.016712818294763565,
-0.3351789712905884,
0.16095854341983795,
0.22880038619041443,
0.21698853373527527,
0.005677646026015282,
-0.28198736906051636,
0.3445272147655487,
-0.07302100956439972,
0.039784062653779984,
0.3688855469226837,
-0.13239926099777222,
-0.41686639189720154,
0.32946932315826416,
0.36678045988082886,
0.9066298604011536,
-0.14122848212718964,
0.2516912817955017,
0.05211098492145538,
0.04437289759516716,
0.37963005900382996,
-0.2828924059867859,
0.060483045876026154,
0.047929320484399796,
0.05638602748513222,
-0.054854776710271835,
0.19236838817596436,
-0.011786477640271187,
0.03259356692433357,
-0.2751651108264923,
-0.17450140416622162,
0.3504129648208618,
0.10968907922506332,
0.05812438949942589,
0.34632113575935364,
-0.050132229924201965,
-0.458526074886322,
-0.28101545572280884,
0.23336735367774963,
0.0736546441912651,
-0.1327342838048935,
-0.018684176728129387,
-0.09885364770889282,
0.03985603526234627,
-0.07208213210105896,
-0.3393508493900299,
-0.0706249326467514,
-0.32288476824760437,
0.21838930249214172,
-0.3081166446208954,
-0.34720075130462646,
0.16683995723724365,
0.23166412115097046,
0.21304304897785187,
0.12620438635349274,
-0.26043200492858887,
0.20590725541114807,
-0.08193888515233994,
-0.14365172386169434,
0.00003497000579955056,
-0.09366445988416672,
0.3640669882297516,
-0.15772759914398193,
-0.19656410813331604,
0.031289130449295044,
0.2719179689884186,
-0.19143901765346527,
-0.4962574541568756,
-0.17636321485042572,
0.3231755197048187,
0.24697604775428772,
0.05940215289592743,
0.27341514825820923,
-0.42008164525032043,
-0.2798999845981598,
0.29230454564094543,
-0.12402738630771637,
0.13973468542099,
0.09062661975622177,
0.24570366740226746,
-0.08709076046943665,
-0.0481112040579319,
0.24096956849098206,
0.28114938735961914,
0.08177311718463898,
0.20429092645645142,
0.3132546842098236,
-0.12314559519290924,
-0.41188204288482666,
-0.22689837217330933,
0.011282936669886112,
-0.30438026785850525,
-0.09970300644636154,
0.0750293955206871,
-0.3576359152793884,
-0.18534556031227112,
0.2977907657623291,
0.09450659900903702,
-0.010885877534747124,
-0.028081165626645088,
-0.10470737516880035,
-0.05048583820462227,
0.4871658384799957,
-0.12338989973068237,
0.17045706510543823,
0.04983250051736832,
0.13686338067054749,
0.16614513099193573,
0.27789926528930664,
-0.49137529730796814,
0.09990760684013367,
-0.16086488962173462,
0.1617065966129303,
0.11409846693277359,
-0.21180662512779236,
0.0391213595867157,
0.13119424879550934,
0.2852494418621063,
-0.0028901202604174614,
-0.17130407691001892,
-0.3745979368686676,
-0.1606845110654831,
0.04897010326385498,
0.040619440376758575,
-0.021804191172122955,
0.20073722302913666,
-0.10216950625181198,
-0.07519204914569855,
-0.20936475694179535,
0.17014053463935852,
-0.03321082144975662,
-0.23526950180530548,
0.18653032183647156,
-0.16080689430236816,
0.11870500445365906,
0.11410082876682281,
-0.1843494027853012,
-0.020273402333259583,
0.2034231573343277,
0.17483648657798767,
-0.16931749880313873,
0.2350272536277771,
-0.09057516604661942,
0.07169583439826965,
0.23527292907238007,
-0.16093912720680237,
0.15086251497268677,
0.22368314862251282,
0.1156173124909401,
0.046740155667066574,
0.08891145139932632,
0.2442273050546646,
-0.20317715406417847,
-0.3575417399406433,
0.009892861358821392,
0.21284247934818268,
0.39504560828208923,
-0.37885263562202454,
-0.10326670855283737,
0.1637059599161148,
-0.39521196484565735,
0.41446855664253235,
0.2580401599407196,
0.1857474148273468,
-0.01028494443744421,
-0.1041497141122818,
0.07064063102006912,
-0.1911444216966629,
-0.36049479246139526,
-0.042953971773386,
0.04365074262022972,
0.0383593775331974,
0.08624246716499329,
-0.12595759332180023,
0.11002416908740997,
0.20905613899230957,
0.2760358154773712,
-0.05480920895934105,
0.3306504786014557,
-0.01644626446068287,
0.09519008547067642,
0.3387245535850525,
0.24134507775306702,
0.49378079175949097,
0.09870964288711548,
0.026434218510985374,
0.357022225856781,
-0.04185821861028671,
0.2647002935409546,
0.10941705107688904,
-0.034785542637109756,
-0.15749910473823547,
0.18723267316818237,
0.01866329088807106,
-0.11931608617305756,
-0.27498528361320496,
-0.15809202194213867,
-0.13445749878883362,
0.03577100485563278,
-0.01213834434747696,
-0.06089761108160019,
0.14250527322292328,
0.06594713777303696,
-0.11282279342412949,
-0.2013251781463623,
0.06159748509526253,
-0.059431757777929306,
0.45025286078453064,
-0.23464509844779968,
0.25870123505592346,
0.19518963992595673,
-0.004693971481174231,
0.02039249800145626,
0.45295989513397217,
0.11210408806800842,
0.01997721567749977,
-0.11757221817970276,
0.08753129094839096,
-0.11430872231721878,
-0.06177157163619995,
-0.19209907948970795,
0.07246033102273941,
0.3947676122188568,
-0.07509522140026093,
0.2475585788488388,
0.23613817989826202,
-0.34716489911079407,
-0.15230681002140045,
0.4345369338989258,
-0.1978103518486023,
-0.04680360481142998,
-0.5462718605995178,
0.007804960012435913,
0.04083570837974548,
-0.2892581522464752,
0.06904967129230499,
-0.6371960043907166,
-0.04308592528104782,
-0.0008576175896450877,
-0.06715676933526993,
0.04736664891242981,
-0.09514498710632324,
0.14055082201957703,
0.1236736997961998,
0.44215014576911926,
0.30876025557518005,
0.13027653098106384,
0.09615202248096466,
-0.38389527797698975,
-0.4464392066001892,
0.16547207534313202,
-0.10002300888299942,
-0.06656694412231445,
-0.145248681306839,
0.3211541175842285,
0.28465500473976135,
0.2771971821784973,
-0.008525071665644646,
-0.15271644294261932,
-0.014644285663962364,
0.11270745098590851,
-0.39755985140800476,
0.17676942050457,
0.09611891955137253,
0.19937311112880707,
-0.029979083687067032,
-0.10199157148599625,
0.10344304889440536,
-0.05619942024350166,
0.26159462332725525,
-0.2036401778459549,
0.10296247899532318,
-0.1265001744031906,
-0.06585177034139633,
0.16977283358573914,
-0.10927795618772507,
0.09203850477933884,
-0.45551490783691406,
-0.31113699078559875,
-0.13918708264827728,
-0.12333928793668747,
-0.147551029920578,
0.2659367322921753,
0.28732872009277344,
0.4175907075405121,
-0.026123464107513428,
-0.10639595240354538,
0.21460981667041779,
0.4109918773174286,
-0.006987903732806444,
0.0813286304473877,
0.030020298436284065,
-0.07310039550065994,
0.3030550181865692,
-0.15915189683437347,
-0.0985056534409523,
0.4811173677444458,
-0.14489829540252686,
-0.21751852333545685,
-0.03723098337650299,
-0.5459349155426025,
0.08171088248491287,
-0.33081263303756714,
-0.2261418104171753,
-0.07653254270553589,
-0.08249635994434357,
0.04652700200676918,
0.2357187122106552,
-0.423202246427536,
0.19491763412952423,
0.20789068937301636,
0.3215322196483612,
-0.06278379261493683,
0.3240293562412262,
0.16682830452919006,
-0.17045068740844727,
-0.15098808705806732,
-0.09969265758991241,
0.04327329993247986,
-0.07440768927335739,
-0.193966805934906,
-0.38275840878486633
] |
https://github.com/huggingface/datasets/issues/2901 | Incompatibility with pytest | Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | ## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | Incompatibility with pytest
## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | [
-0.3016420602798462,
-0.19038723409175873,
-0.024149339646100998,
0.09902922064065933,
0.3130393326282501,
-0.13014079630374908,
0.3114984631538391,
0.2646481990814209,
-0.10267805308103561,
0.2515564262866974,
-0.03294142335653305,
0.3579745888710022,
-0.04996717348694801,
0.08787152916193008,
-0.1619875282049179,
0.1268496811389923,
-0.05052553117275238,
0.06851886212825775,
0.040893446654081345,
0.11360007524490356,
-0.571268618106842,
-0.15708521008491516,
-0.2168758362531662,
0.057248715311288834,
0.01267937570810318,
0.0686676874756813,
0.09162938594818115,
0.24228207767009735,
-0.07749307155609131,
-0.469889372587204,
0.19603672623634338,
-0.026333175599575043,
-0.04225797578692436,
0.47223299741744995,
-0.00010453036520630121,
-0.0628838837146759,
0.45849332213401794,
0.20261909067630768,
-0.48597630858421326,
-0.2095862627029419,
-0.14903640747070312,
0.2063346803188324,
0.2531501352787018,
-0.254386305809021,
-0.12244951725006104,
-0.22151611745357513,
0.08006028085947037,
-0.5224379897117615,
0.03281000256538391,
0.22985845804214478,
0.2646004259586334,
0.5858449339866638,
0.17649081349372864,
-0.12203221023082733,
0.392001211643219,
-0.1865622103214264,
-0.09880344569683075,
0.15128536522388458,
0.27914199233055115,
0.03426571190357208,
-0.15521840751171112,
0.2738160192966461,
-0.25166818499565125,
0.25819385051727295,
0.08306296169757843,
0.040314771234989166,
0.10718005150556564,
0.1236744299530983,
0.005461690481752157,
0.14772666990756989,
-0.024468669667840004,
-0.24473580718040466,
-0.1871630847454071,
0.01328098401427269,
-0.15603193640708923,
-0.4709230661392212,
0.06602983176708221,
0.29909294843673706,
-0.19277425110340118,
0.0707390233874321,
-0.15339823067188263,
0.28531214594841003,
-0.21783529222011566,
0.20865999162197113,
-0.04146469011902809,
0.4749423861503601,
0.010646778158843517,
0.05822968855500221,
0.028252318501472473,
0.053572699427604675,
0.3718392252922058,
-0.02909010834991932,
0.025887317955493927,
-0.21663828194141388,
-0.0353299155831337,
0.04477338120341301,
0.3098427951335907,
0.12990905344486237,
0.154551699757576,
0.16841736435890198,
-0.005012772977352142,
-0.06470700353384018,
0.10998009890317917,
0.12570537626743317,
-0.0156705379486084,
-0.09322428703308105,
-0.05864327400922775,
0.17888064682483673,
0.11952671408653259,
0.16486719250679016,
-0.13602806627750397,
0.008463646285235882,
-0.06681306660175323,
-0.30709388852119446,
0.09002374112606049,
0.1294366419315338,
0.5126135349273682,
-0.0637785792350769,
-0.3585411608219147,
-0.16378308832645416,
-0.31686556339263916,
0.13155823945999146,
-0.08879789710044861,
0.16468480229377747,
-0.3344549536705017,
0.05251570791006088,
0.25674378871917725,
0.1665855497121811,
-0.39859771728515625,
0.17348389327526093,
-0.17293889820575714,
-0.0025558266788721085,
-0.2071770876646042,
-0.19818642735481262,
0.024494964629411697,
-0.006105664186179638,
0.03699450567364693,
0.025849422439932823,
-0.016916725784540176,
-0.055366240441799164,
0.17297163605690002,
-0.03044930286705494,
0.0978282168507576,
0.08348798751831055,
0.10380793362855911,
0.023085495457053185,
0.06469597667455673,
0.2365555465221405,
0.00046661566011607647,
0.41948771476745605,
-0.13348864018917084,
-0.2440326064825058,
0.11649179458618164,
0.35601767897605896,
0.004135590977966785,
-0.15658394992351532,
0.18205204606056213,
-0.37678977847099304,
-0.12203644216060638,
-0.08006791025400162,
0.00265286467038095,
-0.2985855042934418,
-0.1478590965270996,
-0.2639123499393463,
0.22542151808738708,
0.24253709614276886,
0.2605782449245453,
0.05053412541747093,
-0.02827683836221695,
0.16273410618305206,
0.3797309398651123,
0.16699394583702087,
-0.19390882551670074,
-0.0896541178226471,
-0.13795721530914307,
0.1596079021692276,
-0.04862910136580467,
-0.4239594340324402,
-0.32781556248664856,
-0.16077494621276855,
-0.17315024137496948,
-0.0750361904501915,
0.04963114112615585,
0.032337356358766556,
0.3179515302181244,
0.04793373495340347,
-0.03185833990573883,
0.4129534661769867,
-0.07409190386533737,
0.07485218346118927,
-0.4666416645050049,
-0.3798174262046814,
0.5641195178031921,
0.15170562267303467,
0.05703002214431763,
-0.349741131067276,
0.2054489552974701,
0.060839857906103134,
0.5148953795433044,
-0.18972115218639374,
-0.15184110403060913,
-0.2993409335613251,
0.7524659037590027,
-0.047450244426727295,
0.011038200929760933,
-0.09607001394033432,
0.06652714312076569,
0.020441820845007896,
0.23162971436977386,
-0.28024551272392273,
-0.1499119997024536,
-0.08915436267852783,
-0.1524517983198166,
0.13192521035671234,
-0.34668296575546265,
-0.3821573257446289,
0.2474721372127533,
0.27825796604156494,
-0.1456100046634674,
-0.13090373575687408,
-0.011895517818629742,
-0.09330707043409348,
-0.30451512336730957,
0.10049411654472351,
0.03861463442444801,
0.10532864183187485,
-0.0396612323820591,
-0.09412512928247452,
-0.11935529112815857,
0.2987478971481323,
0.1629389524459839,
-0.060054827481508255,
-0.11797088384628296,
0.3312666416168213,
0.24494817852973938,
0.19554659724235535,
-0.04681925103068352,
0.007249893620610237,
0.08201795816421509,
-0.3156891167163849,
-0.20248179137706757,
0.32210078835487366,
0.09754083305597305,
-0.0025816315319389105,
0.022751234471797943,
0.18939919769763947,
-0.23540149629116058,
0.10029245913028717,
0.2986404597759247,
0.0012302912073209882,
-0.0390901193022728,
-0.17083965241909027,
0.015926795080304146,
0.3352191150188446,
0.25353896617889404,
0.4091947674751282,
0.4384312033653259,
0.04710335657000542,
-0.1185915544629097,
-0.029130643233656883,
0.17207303643226624,
0.016334744170308113,
0.23276382684707642,
0.1700841337442398,
-0.4000133275985718,
-0.07772485911846161,
-0.08439911901950836,
0.3033127188682556,
0.39520561695098877,
0.2755782902240753,
0.09697210043668747,
0.0887240618467331,
-0.13241246342658997,
-0.2870430648326874,
0.29929792881011963,
0.11520598828792572,
0.02087228000164032,
0.24158385396003723,
0.22974368929862976,
0.10214284062385559,
-0.255480021238327,
-0.0732264593243599,
-0.13899262249469757,
0.05661674588918686,
-0.14600957930088043,
-0.04783017188310623,
-0.16401264071464539,
0.2011268436908722,
-0.11406820267438889,
-0.500560462474823,
0.18164078891277313,
-0.20086024701595306,
0.01434906106442213,
0.38108667731285095,
-0.20227554440498352,
0.1200970709323883,
-0.2770581841468811,
0.09421280771493912,
0.08856863528490067,
-0.0884958878159523,
0.14159205555915833,
-0.2295173555612564,
-0.17601636052131653,
0.1794954538345337,
0.048956166952848434,
-0.17695295810699463,
0.39237698912620544,
-0.09352312237024307,
-0.026574909687042236,
-0.1780976951122284,
-0.12936705350875854,
0.02280346490442753,
0.24263834953308105,
0.07531024515628815,
0.11149928718805313,
0.054815780371427536,
0.10843068361282349,
-0.28109803795814514,
0.3347676694393158,
-0.22575743496418,
-0.052790895104408264,
0.12225949764251709,
0.09743601083755493,
-0.08596225827932358,
-0.15138933062553406,
-0.6303587555885315,
-0.17503616213798523,
-0.3355156481266022,
0.004438068252056837,
-0.10781268775463104,
0.12897439301013947,
0.43547219038009644,
0.03879783675074577,
0.1618678867816925,
-0.15366579592227936,
0.12164387851953506,
-0.08725962787866592,
-0.02111152745783329,
0.21693749725818634,
-0.13490250706672668,
-0.40109625458717346,
-0.19834688305854797,
-0.12133371084928513,
-0.10454481840133667,
0.43392711877822876,
-0.2609219551086426,
-0.2592199444770813,
-0.23132763803005219,
0.08725196868181229,
-0.1294531524181366,
-0.0232151597738266,
0.39863866567611694,
0.24843129515647888,
-0.25696122646331787,
-0.28645816445350647,
0.06433713436126709,
-0.04337188974022865,
-0.06862854957580566,
0.03818713501095772,
-0.08754461258649826,
0.15171563625335693,
0.11277987062931061,
0.2772788107395172,
-0.03920067846775055,
-0.038717448711395264,
0.11293815076351166,
-0.249596506357193,
0.19787782430648804,
-0.043322935700416565,
-0.25691643357276917,
0.16210532188415527,
-0.22199712693691254,
-0.3214869499206543,
0.04846661910414696,
0.2195311188697815,
0.114881731569767,
0.014172762632369995,
0.02080383151769638,
-0.35430726408958435,
-0.26211604475975037,
-0.24635834991931915,
0.3780517280101776,
0.08373397588729858,
-0.06721974164247513,
0.16260525584220886,
-0.13161490857601166,
-0.12565204501152039,
0.1881820410490036,
0.3759932219982147,
0.1093444973230362,
-0.011934296227991581,
0.24829505383968353,
0.012344381771981716,
-0.0862109363079071,
0.09987825155258179,
0.009018098004162312,
0.12818829715251923,
0.056687433272600174,
-0.19122172892093658,
0.07852237671613693,
-0.02000771276652813,
0.16432732343673706,
0.34587669372558594,
0.3874812424182892,
0.3010592460632324,
-0.1472475379705429,
-0.25514525175094604,
0.018963368609547615,
-0.5182099938392639,
-0.30179980397224426,
0.07005615532398224,
0.16231440007686615,
-0.2750701904296875,
0.051101114600896835,
0.37452685832977295,
0.19378064572811127,
0.06277593970298767,
0.051882531493902206,
0.0086368378251791,
-0.41123852133750916,
-0.07665197551250458,
0.07336375117301941,
-0.013393902219831944,
0.45119738578796387,
-0.03689724579453468,
-0.21865567564964294,
-0.3560895621776581,
-0.3336453139781952,
-0.00986691564321518,
-0.06953557580709457,
0.410104900598526,
-0.16148999333381653,
0.18175780773162842,
0.006476911250501871,
0.3672035336494446,
0.39500030875205994,
0.21570171415805817,
0.14068572223186493,
0.15151536464691162,
-0.0076532550156116486,
-0.18303367495536804,
0.030545320361852646,
0.10357841849327087,
-0.3520214855670929,
0.2259788066148758,
-0.318448007106781,
0.27770113945007324,
-0.29095059633255005,
0.19563743472099304,
0.35022667050361633,
0.18430554866790771,
0.27323392033576965,
0.007618496660143137,
0.10566728562116623,
-0.1933571845293045,
-0.09416525065898895,
0.5531529188156128,
-0.15046492218971252,
-0.23310580849647522,
-0.12270303070545197,
0.14270298182964325,
0.7989796996116638,
0.22827203571796417,
0.15752796828746796,
0.8578521609306335,
-0.37942197918891907,
-0.19980885088443756,
0.33604076504707336,
0.17820602655410767,
-0.35716283321380615,
0.038341622799634933,
0.08121655136346817,
-0.2287752330303192,
0.02730088122189045,
-0.269111692905426,
-0.018552357330918312,
-0.1856173723936081,
-0.020711276680231094,
0.044632624834775925,
0.10847553610801697,
0.05235835909843445,
0.040252916514873505,
0.04245338216423988,
-0.2928381860256195,
0.19293980300426483,
-0.017914950847625732,
0.12701058387756348,
-0.05087818577885628,
-0.08395089209079742,
0.2480623424053192,
-0.10109695792198181,
-0.20435865223407745,
0.34196001291275024,
-0.5799904465675354,
0.17218181490898132,
-0.269223153591156,
-0.45623520016670227,
-0.10751847177743912,
-0.03678972274065018,
-0.22854956984519958,
0.1678052693605423,
-0.03403184935450554,
0.10888656228780746,
-0.02501893788576126,
0.16751126945018768,
0.23507219552993774,
0.03076452761888504,
0.20655441284179688,
-0.2243107706308365,
0.009795745834708214,
-0.1305311769247055,
0.05167798325419426,
-0.41605904698371887,
-0.06003307178616524,
0.04676775634288788,
0.4949309527873993,
-0.2594940662384033,
-0.24022051692008972,
-0.23322440683841705,
-0.1814630925655365,
-0.31353622674942017,
0.2200746387243271,
-0.01314875204116106,
0.13509996235370636,
0.17095625400543213,
0.08707116544246674,
-0.3995954096317291,
-0.1094917505979538,
-0.012305932119488716,
0.01194837037473917,
0.1383812427520752,
0.40056440234184265,
0.12434880435466766,
-0.3258513808250427,
-0.2226492315530777,
0.12601935863494873,
0.16405311226844788,
-0.02711040899157524,
0.0868695005774498,
-0.041215769946575165,
0.19517813622951508,
-0.11181366443634033,
0.005858361721038818,
0.20942279696464539,
0.09912097454071045,
-0.19794484972953796,
-0.4055492877960205,
-0.16605593264102936,
0.14177407324314117,
0.2028816044330597,
0.11818250268697739,
-0.026482852175831795,
0.2930477261543274,
-0.021311983466148376,
-0.25048479437828064,
-0.39062321186065674,
0.11079145222902298,
0.23361395299434662,
0.1192181259393692,
-0.1454877406358719,
-0.20764560997486115,
0.3068409264087677,
-0.010408170521259308,
0.25427088141441345,
-0.051687728613615036,
-0.13477268815040588,
-0.306160032749176,
-0.3753734827041626,
0.08592122793197632,
0.07820940762758255,
-0.35298725962638855,
0.16144107282161713,
-0.17001353204250336,
0.0037518588360399008,
-0.18765640258789062,
0.11373984813690186,
0.3402268886566162,
-0.2084239274263382,
-0.07279875129461288,
0.37925583124160767,
0.14004868268966675,
-0.23623043298721313,
0.007380840368568897,
-0.23874160647392273,
0.28123748302459717,
-0.1352635622024536,
-0.033127561211586,
0.12455758452415466,
-0.05653097480535507,
-0.14417992532253265,
-0.2388959676027298,
0.21344982087612152,
0.16059474647045135,
0.2762320637702942,
-0.12278289347887039,
-0.11529151350259781,
-0.1517726629972458,
0.557952880859375,
0.19814714789390564,
-0.10189548879861832,
-0.02546902559697628,
0.06578222662210464,
0.377564013004303,
-0.21604418754577637,
-0.02465660497546196,
-0.14566732943058014,
-0.17453861236572266,
0.16097892820835114,
-0.0697098821401596,
-0.44670215249061584,
0.07241937518119812,
-0.13363294303417206,
0.08439432084560394,
-0.0011720911134034395,
-0.16617022454738617,
-0.01222908589988947,
0.17768262326717377,
-0.14401915669441223,
-0.04998753219842911,
0.09358619153499603,
-0.07452837377786636,
0.18131089210510254,
0.23310603201389313,
-0.01338453870266676,
0.6520750522613525,
0.5496273636817932,
-0.24432897567749023,
0.05717179924249649,
-0.054931800812482834,
0.006986234802752733,
-0.12364131957292557,
-0.03625774383544922,
0.032686542719602585,
0.0409412607550621,
0.22881512343883514,
-0.28293824195861816,
0.10475069284439087,
-0.05114855617284775,
-0.04353988170623779,
-0.09900946915149689,
-0.26358047127723694,
0.04960010200738907,
-0.004705085884779692,
-0.07286505401134491,
-0.029368048533797264,
-0.10203544050455093,
0.022453980520367622,
0.030337408185005188,
0.04763370379805565,
-0.10487430542707443,
-0.34944114089012146,
0.021304303780198097,
0.2079140692949295,
0.15735186636447906,
-0.3372325301170349,
0.08765001595020294,
0.21877416968345642,
0.14319398999214172,
-0.17037250101566315,
0.4733754098415375,
0.3304479718208313,
0.4719163775444031,
-0.22933413088321686,
-0.13048134744167328,
-0.16754689812660217,
-0.006368076428771019,
-0.03944106772542,
-0.06476376950740814,
0.013415650464594364,
0.1269380897283554,
0.22980456054210663,
0.3690747022628784,
-0.3680003881454468,
0.21183215081691742,
-0.02427832782268524,
-0.271437406539917,
-0.1849633753299713,
0.27952516078948975,
0.14432157576084137,
-0.29518723487854004,
0.012599974870681763,
-0.027996523305773735,
-0.24220257997512817,
-0.06685709953308105,
0.290086567401886,
0.26451733708381653,
0.08760932087898254,
-0.03970799967646599,
0.14040906727313995,
0.14405667781829834,
0.12328080832958221,
0.1019616648554802,
-0.00706830807030201,
-0.4234195649623871,
0.032857902348041534,
-0.4711897373199463,
0.4904589056968689,
-0.14418020844459534,
-0.4465853273868561,
0.0725422352552414,
-0.05491746589541435,
-0.25035935640335083,
0.23455603420734406,
0.33345821499824524,
0.35711413621902466,
0.15245234966278076,
-0.002529651392251253,
-0.255432665348053,
0.13229896128177643,
0.20288413763046265,
-0.10327297449111938,
-0.126017764210701,
-0.3461898863315582,
0.22443082928657532,
-0.2395661473274231,
0.2582559287548065,
0.09346941858530045,
0.04102668538689613,
0.290290504693985,
0.013818198814988136,
0.0178298968821764,
-0.017089245840907097,
0.39506590366363525,
-0.32053816318511963,
0.040930766612291336,
-0.14580175280570984,
-0.22756816446781158,
0.0252157524228096,
0.05320819094777107,
0.017263270914554596,
0.08587944507598877,
0.17346961796283722,
-0.5986055135726929,
-0.43424373865127563,
0.4738566279411316,
-0.3005673289299011,
-0.14237549901008606,
0.10854433476924896,
0.331037700176239,
0.0011340755736455321,
0.1555803418159485,
-0.03743158280849457,
0.17494229972362518,
-0.12648288905620575,
0.05893249809741974,
-0.24580436944961548,
-0.7254010438919067,
0.29435497522354126,
-0.7327607870101929,
-0.296919584274292,
-0.23041318356990814,
0.4603828191757202,
0.021249009296298027,
0.23804447054862976,
-0.28679630160331726,
0.10301149636507034,
0.21289895474910736,
0.04784484952688217,
-0.10168348252773285,
0.1259424239397049,
0.017026778310537338,
-0.02383537031710148,
0.11397887021303177,
0.6136494278907776,
0.10387185961008072,
-0.09762746840715408,
-0.031242191791534424,
-0.28278517723083496
] |
https://github.com/huggingface/datasets/issues/2892 | Error when encoding a dataset with None objects with a Sequence feature | This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed | 19 | Error when encoding a dataset with None objects with a Sequence feature
There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed
This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | [
-0.0830344557762146,
-0.25024375319480896,
-0.038625504821538925,
0.30153903365135193,
0.20768921077251434,
0.07883687317371368,
0.5001562237739563,
0.14941586554050446,
0.12552973628044128,
0.14210641384124756,
0.32856351137161255,
0.050839729607105255,
-0.2967572510242462,
0.34206050634384155,
-0.2623358368873596,
-0.2604983448982239,
0.03453521803021431,
0.22248689830303192,
0.01549192238599062,
-0.022447166964411736,
-0.31306666135787964,
0.17093625664710999,
-0.36487725377082825,
-0.22216244041919708,
-0.15507762134075165,
-0.21080844104290009,
-0.216024249792099,
-0.29602476954460144,
0.05425156652927399,
-0.5987139344215393,
0.2819480001926422,
-0.06951570510864258,
0.09210935980081558,
0.2383219301700592,
-0.0001144155248766765,
0.10549196600914001,
0.638192355632782,
-0.145316019654274,
-0.26280438899993896,
-0.33947473764419556,
-0.5618313550949097,
-0.4227803945541382,
0.12416541576385498,
-0.3578473627567291,
-0.09651213139295578,
-0.07497139275074005,
0.09471854567527771,
-0.3724970817565918,
0.20421233773231506,
0.2839668095111847,
0.21305938065052032,
0.3830006718635559,
-0.08455143123865128,
-0.0744025707244873,
0.20682097971439362,
0.41626107692718506,
-0.26075491309165955,
-0.17985352873802185,
0.03575919196009636,
0.2699486315250397,
0.0946287140250206,
0.34923994541168213,
-0.1114044189453125,
-0.13050705194473267,
0.2094348818063736,
0.08493524044752121,
0.08856191486120224,
-0.4521940052509308,
-0.26712480187416077,
0.20149531960487366,
0.2924092710018158,
0.0013619344681501389,
-0.40846383571624756,
-0.21808874607086182,
0.01887127012014389,
-0.6638942956924438,
0.2666682302951813,
0.0551009476184845,
-0.03862805292010307,
-0.02696375921368599,
-0.16839292645454407,
0.14500148594379425,
-0.2138954997062683,
0.16601695120334625,
-0.12097553163766861,
0.08079086989164352,
-0.13945366442203522,
0.0341406986117363,
-0.24027937650680542,
-0.2700185477733612,
0.05874946713447571,
-0.37062519788742065,
-0.025751734152436256,
0.21114592254161835,
-0.25151297450065613,
-0.19363027811050415,
0.16735078394412994,
0.010184875689446926,
0.16971994936466217,
0.13799351453781128,
-0.06587034463882446,
-0.10379818826913834,
-0.06935866177082062,
-0.01695973239839077,
0.2529113292694092,
0.21360228955745697,
0.41129663586616516,
-0.06806965917348862,
-0.058174632489681244,
0.19612425565719604,
0.09966221451759338,
-0.01759839430451393,
0.11928392201662064,
0.05173970013856888,
0.016925830394029617,
0.4072840213775635,
0.6467193365097046,
-0.052563030272722244,
-0.3934818208217621,
0.2361946403980255,
-0.38535985350608826,
-0.030498305335640907,
-0.021195532754063606,
0.006190822925418615,
0.08412055671215057,
0.2916482985019684,
-0.1465797871351242,
0.21616801619529724,
-0.2736031711101532,
-0.2508828639984131,
-0.23484639823436737,
0.0721953883767128,
0.10184072703123093,
0.08859853446483612,
-0.05474018678069115,
-0.03329949453473091,
0.06581679731607437,
0.15601065754890442,
0.07968000322580338,
0.10098525136709213,
-0.055523063987493515,
-0.3658088445663452,
0.0925065353512764,
0.15237243473529816,
-0.007046679500490427,
0.29215896129608154,
0.37623608112335205,
-0.25812843441963196,
-0.10916213691234589,
0.11824346333742142,
-0.27881133556365967,
-0.2175142765045166,
-0.005827800370752811,
0.17252947390079498,
-0.37956756353378296,
0.044126737862825394,
-0.07340319454669952,
0.22634616494178772,
0.21085752546787262,
-0.07758984714746475,
-0.09654399007558823,
-0.08692926913499832,
-0.21961648762226105,
-0.15351417660713196,
-0.09196573495864868,
0.6465165615081787,
-0.1091337502002716,
-0.012587814591825008,
0.11914944648742676,
-0.08989600092172623,
0.35212308168411255,
0.23272079229354858,
0.04814784228801727,
-0.05724821612238884,
-0.3404104709625244,
0.19002974033355713,
0.08313481509685516,
-0.11154872924089432,
-0.20860719680786133,
0.5657572746276855,
0.023990221321582794,
0.35986968874931335,
0.11346418410539627,
0.09594646096229553,
0.15857014060020447,
-0.3072299659252167,
0.013088379055261612,
0.1975986659526825,
-0.1874651312828064,
-0.22067971527576447,
-0.241898775100708,
-0.1231628805398941,
0.520692765712738,
-0.07434660196304321,
-0.06409063935279846,
0.20678342878818512,
-0.30106180906295776,
-0.023110972717404366,
-0.140646830201149,
-0.31868812441825867,
0.12881417572498322,
0.5053259134292603,
0.21923913061618805,
0.037596262991428375,
-0.09674966335296631,
-0.4028445780277252,
-0.36268606781959534,
0.1312110722064972,
-0.1796041578054428,
0.2839999794960022,
-0.49326813220977783,
-0.1799386441707611,
0.073520727455616,
0.019041359424591064,
-0.39474624395370483,
0.001503260456956923,
0.15478119254112244,
0.12149222940206528,
-0.15351133048534393,
0.19992221891880035,
-0.07734160125255585,
0.2772004306316376,
0.156111478805542,
-0.12485523521900177,
-0.5673224925994873,
0.3699871301651001,
0.06950047612190247,
-0.2262255847454071,
0.007167061325162649,
0.30337220430374146,
0.3317841589450836,
-0.0899982824921608,
0.018318893387913704,
0.15058624744415283,
0.02597067691385746,
-0.33099088072776794,
-0.3067799508571625,
-0.15713827311992645,
0.31905949115753174,
-0.4185929000377655,
-0.22143316268920898,
0.3747457265853882,
0.18254342675209045,
-0.10734137892723083,
-0.12098824232816696,
0.6575429439544678,
0.01573767326772213,
0.4647911787033081,
0.004206742625683546,
0.1760140061378479,
0.05372769013047218,
-0.0018613559659570456,
-0.3271430432796478,
-0.2869088649749756,
0.17555832862854004,
0.20264121890068054,
-0.16507935523986816,
-0.039911795407533646,
-0.30159425735473633,
0.005868810229003429,
0.4108922481536865,
0.08843711763620377,
0.035462636500597,
0.05708000063896179,
-0.07705793529748917,
-0.03683818131685257,
0.1092405840754509,
-0.15959274768829346,
0.29988354444503784,
0.050558727234601974,
-0.07322017103433609,
0.0735783725976944,
0.00754455104470253,
0.07453861832618713,
0.17586849629878998,
-0.035036928951740265,
0.24308227002620697,
0.02856755070388317,
0.10764819383621216,
0.11769825965166092,
-0.17797204852104187,
-0.543848991394043,
-0.039858270436525345,
0.14308884739875793,
-0.24912136793136597,
0.24928171932697296,
-0.47958454489707947,
-0.20561575889587402,
0.1304166167974472,
-0.21736548840999603,
-0.38629597425460815,
-0.4440229535102844,
-0.16394110023975372,
0.027558401226997375,
-0.1408400982618332,
0.22369806468486786,
0.014814067631959915,
-0.2624562382698059,
0.29857513308525085,
-0.024348722770810127,
-0.08313750475645065,
-0.13922907412052155,
-0.02423311211168766,
0.046320125460624695,
0.1656641662120819,
-0.04810258001089096,
0.24677720665931702,
0.03329555317759514,
-0.34998396039009094,
-0.21268689632415771,
-0.20853495597839355,
0.056549590080976486,
-0.35036396980285645,
0.07770784199237823,
0.3079497516155243,
0.12772685289382935,
-0.04940681904554367,
-0.19988718628883362,
0.4227282404899597,
0.42437228560447693,
-0.21209929883480072,
0.32176917791366577,
-0.10206267982721329,
-0.03547358140349388,
-0.21106529235839844,
-0.0959022268652916,
-0.15722109377384186,
-0.2278929054737091,
0.10760444402694702,
0.21096880733966827,
0.21016132831573486,
0.44710230827331543,
0.047019168734550476,
0.12087956815958023,
0.1355811506509781,
-0.17562860250473022,
0.000885627930983901,
-0.015035880729556084,
0.4824746549129486,
-0.1827879399061203,
-0.27124807238578796,
0.14879992604255676,
-0.2987254559993744,
0.08756131678819656,
0.20411725342273712,
-0.3575524389743805,
-0.1763041466474533,
-0.1413789838552475,
0.16113081574440002,
0.07453595846891403,
-0.10465816408395767,
0.3775743544101715,
0.28160586953163147,
-0.10834578424692154,
-0.036769479513168335,
-0.050811149179935455,
0.2569006383419037,
-0.07055075466632843,
0.02874862588942051,
0.22968748211860657,
0.517756462097168,
0.039810169488191605,
0.09723513573408127,
0.43764281272888184,
0.19706375896930695,
0.42616626620292664,
-0.08233210444450378,
0.06893619149923325,
-0.169014573097229,
0.0005422458634711802,
-0.17114511132240295,
0.10793977975845337,
-0.017855875194072723,
0.08362756669521332,
-0.23275737464427948,
-0.11919112503528595,
-0.07930675148963928,
-0.06307059526443481,
0.10385198891162872,
-0.235709086060524,
0.1293705403804779,
-0.4676787853240967,
0.4429667294025421,
-0.08640838414430618,
0.018291011452674866,
-0.30360981822013855,
-0.004700523801147938,
-0.16847370564937592,
-0.008302590809762478,
0.3227558434009552,
-0.14786705374717712,
-0.6496179699897766,
-0.1722312718629837,
-0.20260441303253174,
0.12155424803495407,
0.3011385202407837,
0.5467792749404907,
-0.033762622624635696,
-0.06241650879383087,
-0.10756462067365646,
-0.0191713385283947,
0.40203335881233215,
-0.16438859701156616,
-0.18376268446445465,
0.24542145431041718,
-0.26380130648612976,
-0.2387937605381012,
-0.056774307042360306,
-0.3692709803581238,
0.3344595730304718,
-0.22521953284740448,
0.3618203401565552,
-0.34053632616996765,
-0.22256283462047577,
0.26604586839675903,
0.07425068318843842,
-0.091368168592453,
-0.11321832239627838,
-0.09107787162065506,
-0.2235618680715561,
-0.14560101926326752,
0.012950539588928223,
0.20876723527908325,
0.2621580958366394,
-0.13408631086349487,
-0.0023913567420095205,
-0.5279823541641235,
0.030750861391425133,
0.30582350492477417,
-0.24280427396297455,
0.35555732250213623,
-0.08594240248203278,
0.10515996068716049,
-0.13631191849708557,
0.19407212734222412,
0.2076592743396759,
0.35527968406677246,
0.37715306878089905,
-0.6484144330024719,
0.011157329194247723,
-0.22744643688201904,
0.1626979261636734,
0.2772229015827179,
-0.09346672147512436,
0.09365095943212509,
0.08336419612169266,
0.1915251910686493,
-0.21020594239234924,
-0.33171242475509644,
0.41896045207977295,
-0.08054349571466446,
-0.6726539731025696,
-0.28722047805786133,
0.2649120092391968,
0.09677064418792725,
0.24218124151229858,
-0.13366137444972992,
0.22322888672351837,
-0.21130290627479553,
0.365374356508255,
-0.006300710141658783,
0.6850796937942505,
0.49253883957862854,
0.04190002754330635,
0.5505329966545105,
0.4471417963504791,
0.604353129863739,
0.4047943949699402,
0.2582227885723114,
-0.162506565451622,
-0.672165036201477,
-0.14850567281246185,
-0.05859158933162689,
0.4232233762741089,
0.11910244822502136,
-0.45315098762512207,
0.4891030192375183,
-0.12819933891296387,
-0.06382496654987335,
-0.0981585681438446,
-0.2965759038925171,
-0.13172391057014465,
-0.043969422578811646,
-0.2515956163406372,
0.12457005679607391,
0.06937865167856216,
0.16201913356781006,
0.05738675966858864,
-0.3246814012527466,
0.05229568853974342,
-0.16675202548503876,
-0.194796621799469,
0.16965427994728088,
-0.14336684346199036,
0.09411608427762985,
0.036424458026885986,
-0.3463886082172394,
0.28180986642837524,
0.2232401818037033,
0.18790216743946075,
-0.1312100887298584,
-0.15609337389469147,
-0.19690938293933868,
0.04002969712018967,
0.1034143716096878,
-0.08015851676464081,
-0.0777154266834259,
0.3071269690990448,
-0.026894381269812584,
-0.1485309898853302,
0.1475495994091034,
-0.21429644525051117,
0.10542140901088715,
0.3429114818572998,
0.059051211923360825,
-0.1748199760913849,
-0.16116662323474884,
-0.45325055718421936,
0.030239829793572426,
0.17108462750911713,
-0.05008490011096001,
0.11646510660648346,
0.0069036888889968395,
-0.29202669858932495,
-0.04956464469432831,
-0.19789323210716248,
-0.0086770448833704,
-0.017159275710582733,
0.30728578567504883,
0.5229856967926025,
0.07681296765804291,
0.6932668685913086,
0.191862553358078,
-0.24269312620162964,
-0.1660667061805725,
0.16272695362567902,
0.18308959901332855,
-0.5128662586212158,
0.3100554049015045,
-0.11370815336704254,
0.1459200382232666,
-0.24198073148727417,
0.4570830762386322,
-0.2819414734840393,
0.2090834677219391,
-0.03930390626192093,
-0.11750320345163345,
-0.1571839600801468,
0.23256969451904297,
-0.13328023254871368,
0.10570956766605377,
-0.2226438671350479,
0.11522901058197021,
-0.07904694229364395,
-0.21667616069316864,
-0.2946246266365051,
-0.09730397164821625,
-0.4076431691646576,
0.3669985234737396,
0.11489035934209824,
0.08583300560712814,
0.21908366680145264,
0.16079974174499512,
0.16813378036022186,
0.08565882593393326,
-0.13675996661186218,
-0.19685089588165283,
-0.07516618072986603,
0.12684915959835052,
0.10730286687612534,
-0.1864514946937561,
0.14100968837738037,
0.02690262906253338,
-0.06284879148006439,
-0.13896828889846802,
0.013990163803100586,
0.1784926801919937,
-0.08429788798093796,
0.43051841855049133,
0.3046935796737671,
0.393403559923172,
-0.11811018735170364,
0.16062279045581818,
-0.03202470764517784,
0.22899848222732544,
-0.07312634587287903,
0.08981188386678696,
-0.0715097039937973,
0.0787384957075119,
-0.44373270869255066,
0.13565097749233246,
-0.12916691601276398,
0.11957980692386627,
0.2263302505016327,
-0.36022791266441345,
0.035511232912540436,
0.32367411255836487,
-0.031114444136619568,
0.07553751021623611,
-0.19832375645637512,
-0.014954891987144947,
0.09086453914642334,
0.16748405992984772,
-0.16102370619773865,
0.004407418891787529,
0.1928001344203949,
0.09837713092565536,
0.05536436662077904,
0.2497330754995346,
0.0238152127712965,
0.2197774052619934,
0.15237635374069214,
0.041066400706768036,
0.057635512202978134,
-0.1304040104150772,
0.476772278547287,
0.25024867057800293,
0.10600677132606506,
-0.005962163209915161,
-0.04516447335481644,
-0.13611628115177155,
0.23747792840003967,
0.4095085859298706,
-0.02251419797539711,
0.11335425078868866,
0.4354739487171173,
-0.018356928601861,
-0.029948942363262177,
-0.2667696177959442,
-0.1832299530506134,
0.08748182654380798,
0.3381929099559784,
0.20285308361053467,
0.1870117485523224,
-0.35214269161224365,
-0.3258132040500641,
-0.27016422152519226,
-0.0695832222700119,
0.30993446707725525,
-0.05833035334944725,
-0.0029454187024384737,
0.03566741570830345,
0.011439170688390732,
-0.3740219175815582,
-0.24159884452819824,
-0.09649205952882767,
-0.10929282754659653,
0.27012330293655396,
0.21865521371364594,
0.1762790083885193,
-0.3771929442882538,
0.2747598886489868,
0.28086891770362854,
0.2680352032184601,
-0.11448173224925995,
0.2841906249523163,
0.39184463024139404,
0.0941934883594513,
0.19323821365833282,
0.5161976218223572,
0.3695506155490875,
0.2945844829082489,
-0.02010355331003666,
0.11294928193092346,
-0.03907846659421921,
-0.34501203894615173,
0.08779928833246231,
-0.05984574928879738,
-0.24856621026992798,
0.2879634499549866,
0.15582673251628876,
0.12282423675060272,
-0.12541308999061584,
0.3168383836746216,
0.05447199195623398,
-0.110327810049057,
-0.2857099771499634,
0.7373993396759033,
-0.2703436613082886,
0.027681127190589905,
-0.06510381400585175,
-0.2521204948425293,
-0.4581920802593231,
-0.06524117290973663,
0.38140085339546204,
0.16980719566345215,
0.14951474964618683,
0.2177320420742035,
0.06977047771215439,
-0.4082435965538025,
0.3309633433818817,
0.34036627411842346,
0.07690590620040894,
-0.26513218879699707,
0.061709098517894745,
-0.27506163716316223,
0.11164498329162598,
-0.10152832418680191,
-0.06912299990653992,
0.24956375360488892,
0.1278141736984253,
-0.19325512647628784,
0.11486044526100159,
-0.22047844529151917,
-0.13938172161579132,
-0.10432391613721848,
0.2524556517601013,
-0.3717961311340332,
-0.19465138018131256,
0.2883971631526947,
-0.08923819661140442,
-0.12511488795280457,
-0.26525524258613586,
0.035331834107637405,
0.003945664968341589,
0.07392346858978271,
0.055083002895116806,
-0.044890955090522766,
-0.3227528929710388,
-0.02787192538380623,
0.05725117772817612,
0.6041783690452576,
0.10741180926561356,
-0.05931099131703377,
-0.39225444197654724,
-0.22251026332378387,
-0.2722543478012085,
-0.113332599401474,
0.5871054530143738,
0.2825133800506592,
0.6090584993362427,
-0.13710419833660126,
0.25318643450737,
-0.05520644783973694,
0.37765929102897644,
-0.060990601778030396,
0.04384166747331619,
-0.42449045181274414,
0.5184670686721802,
-0.37195321917533875,
0.1762697547674179,
0.006877264007925987,
0.1811162680387497,
0.1390516310930252,
0.17747071385383606,
-0.05049637332558632,
-0.29201558232307434,
0.39898285269737244,
-0.30848708748817444,
-0.3456189036369324,
0.2019387185573578,
-0.0813748762011528,
0.19276395440101624,
-0.04738748446106911,
-0.307851105928421,
-0.134380504488945,
0.40449661016464233,
-0.1600383073091507,
-0.2725832164287567,
0.004611982498317957,
0.14974690973758698,
-0.067655049264431,
-0.12056256830692291,
0.16076920926570892,
-0.07075275480747223,
-0.2598538100719452,
0.3602844476699829,
-0.31029823422431946
] |
https://github.com/huggingface/datasets/issues/2888 | v1.11.1 release date | @albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release? | 18 | v1.11.1 release date
Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release?
@albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | [
-0.25343209505081177,
-0.14359162747859955,
-0.11700861155986786,
0.12509725987911224,
-0.08036180585622787,
-0.20694342255592346,
0.3182259500026703,
0.25950342416763306,
-0.26621153950691223,
0.24329306185245514,
0.4498228430747986,
-0.07759889215230942,
-0.009268431924283504,
0.37759721279144287,
-0.3972173035144806,
-0.08901625126600266,
0.07872097939252853,
0.10890185832977295,
-0.05268293246626854,
0.044918712228536606,
-0.27206799387931824,
0.06865747272968292,
-0.3964475691318512,
0.16087915003299713,
0.06639909744262695,
-0.07160400599241257,
-0.12159334123134613,
-0.2543470859527588,
-0.6671609282493591,
-0.5313286781311035,
0.31335505843162537,
0.20345018804073334,
0.07602722942829132,
0.2712756395339966,
-0.0001110467710532248,
-0.42386573553085327,
0.5205674171447754,
0.14866980910301208,
-0.26146629452705383,
-0.15130355954170227,
-0.4164436459541321,
-0.535380482673645,
-0.10085934400558472,
-0.013766774907708168,
-0.3072521984577179,
-0.10771466046571732,
0.01174832135438919,
-0.19431957602500916,
-0.06281612813472748,
-0.015602253377437592,
0.2480117231607437,
0.16733874380588531,
0.40197914838790894,
-0.35428595542907715,
0.1863051801919937,
-0.11592438071966171,
-0.37036454677581787,
-0.2499653697013855,
0.5717855095863342,
0.2568039298057556,
0.22688767313957214,
0.38498327136039734,
0.19126324355602264,
-0.19222575426101685,
0.15076300501823425,
-0.009772113524377346,
0.23967701196670532,
-0.266032874584198,
0.04153972864151001,
0.07777848094701767,
0.995561420917511,
0.02036345563828945,
-0.37934666872024536,
0.20347389578819275,
-0.09273316711187363,
-0.2712351679801941,
0.2412475049495697,
0.027282599359750748,
-0.02924470230937004,
0.14924277365207672,
0.0873352512717247,
-0.45841920375823975,
-0.1516827940940857,
0.16021482646465302,
-0.027204541489481926,
0.4591045677661896,
-0.08871687948703766,
0.10676506906747818,
-0.021525857970118523,
-0.3015369772911072,
0.23469798266887665,
0.02009749785065651,
0.08503067493438721,
0.15644516050815582,
0.051452551037073135,
-0.44021281599998474,
0.10607900470495224,
-0.017246751114726067,
0.14981335401535034,
0.19241462647914886,
-0.26061826944351196,
-0.24916604161262512,
-0.046444255858659744,
0.013337588869035244,
0.6594329476356506,
0.07456280291080475,
0.340565949678421,
0.1880096048116684,
0.43294429779052734,
0.25514155626296997,
0.06446067988872528,
0.0997428447008133,
0.06184275075793266,
-0.0808660238981247,
-0.1455138474702835,
0.2052433341741562,
0.45844176411628723,
-0.5718432068824768,
0.3661363422870636,
0.1454991102218628,
0.011531229130923748,
-0.07399744540452957,
-0.32093125581741333,
-0.15084682404994965,
-0.037386950105428696,
0.32570505142211914,
0.08936004340648651,
-0.198311910033226,
0.13486115634441376,
-0.18055838346481323,
-0.1951921135187149,
-0.10883390158414841,
-0.2009812742471695,
-0.01836259849369526,
-0.03156138211488724,
-0.31167513132095337,
-0.277535080909729,
0.11344987154006958,
-0.12540560960769653,
-0.04341277480125427,
0.05646003410220146,
0.1302085965871811,
-0.22466664016246796,
0.4118488132953644,
-0.24663208425045013,
0.08284446597099304,
-0.3096277415752411,
0.24027860164642334,
-0.08194560557603836,
0.3500741720199585,
-0.04245643690228462,
-0.1780535727739334,
-0.3391316533088684,
0.2919040322303772,
-0.16665232181549072,
-0.07769669592380524,
0.27012863755226135,
0.19532348215579987,
-0.2030191421508789,
-0.23829884827136993,
-0.049430012702941895,
0.17224153876304626,
-0.23949050903320312,
-0.25693169236183167,
-0.06953799724578857,
0.04323267564177513,
-0.11934179067611694,
0.15402816236019135,
-0.2632966935634613,
-0.20006002485752106,
0.11972786486148834,
0.005140168126672506,
-0.184230774641037,
-0.31868135929107666,
0.12625905871391296,
-0.24555353820323944,
0.3016963303089142,
-0.34330037236213684,
-0.6395595669746399,
0.38153380155563354,
-0.2841426730155945,
-0.3894362449645996,
0.41146689653396606,
0.17413373291492462,
0.29543790221214294,
-0.3212960362434387,
-0.14097419381141663,
-0.08161836117506027,
-0.16163349151611328,
-0.35596856474876404,
-0.4418994188308716,
-0.401960551738739,
0.04290086776018143,
0.01811189576983452,
0.22048865258693695,
0.15033715963363647,
0.09527534246444702,
0.4235879182815552,
0.07498259842395782,
0.2797822654247284,
0.2078801989555359,
0.07656586170196533,
0.4828037619590759,
-0.1286068707704544,
0.0529901385307312,
-0.1006549745798111,
-0.27670037746429443,
0.09389390051364899,
-0.14357216656208038,
0.1591183990240097,
0.43843314051628113,
-0.3189626932144165,
-0.2085864245891571,
-0.05610526353120804,
0.326071172952652,
-0.07095257937908173,
0.08178170025348663,
0.09157335758209229,
-0.2478199452161789,
0.1673496961593628,
-0.4060976803302765,
0.13686367869377136,
-0.009865926578640938,
-0.0706636905670166,
-0.08844178915023804,
0.04524654895067215,
-0.29087287187576294,
0.09942520409822464,
0.17884407937526703,
0.08383015543222427,
0.16945137083530426,
-0.23905709385871887,
0.1745639443397522,
-0.08151257038116455,
-0.07239970564842224,
0.3089861571788788,
0.3561561703681946,
0.18628959357738495,
0.2350972592830658,
0.20403166115283966,
0.07461132109165192,
0.1710558980703354,
-0.05861128494143486,
0.2303553819656372,
-0.22531503438949585,
0.3460877537727356,
0.3549923896789551,
-0.2632007896900177,
-0.056474681943655014,
0.14472569525241852,
0.130796417593956,
-0.2599104940891266,
-0.09816543012857437,
-0.25564849376678467,
0.08176637440919876,
-0.22111795842647552,
-0.29141995310783386,
0.2252821922302246,
-0.27639394998550415,
0.2965317964553833,
0.5968987345695496,
0.018419340252876282,
-0.047830093652009964,
0.08096763491630554,
0.2573696970939636,
-0.0809907466173172,
0.16796638071537018,
-0.0462065190076828,
0.08849208801984787,
0.2539902925491333,
-0.021018462255597115,
0.004967683460563421,
0.12219202518463135,
0.04252832755446434,
0.10276040434837341,
0.045531969517469406,
-0.40421122312545776,
-0.029937641695141792,
0.053067777305841446,
0.0633864477276802,
0.11527812480926514,
0.17674024403095245,
0.19181591272354126,
0.22660042345523834,
0.06508127599954605,
-0.3978859484195709,
-0.28350338339805603,
-0.06756766140460968,
0.029123736545443535,
-0.019490258768200874,
0.0619625486433506,
0.05344529449939728,
0.13821588456630707,
0.14687293767929077,
0.03162651136517525,
0.18262818455696106,
-0.15484967827796936,
0.7969359755516052,
-0.3889084458351135,
0.4114346206188202,
-0.15663956105709076,
-0.11990515142679214,
-0.31109708547592163,
0.23450537025928497,
-0.012480739504098892,
-0.27760469913482666,
0.25671669840812683,
0.05373310297727585,
0.20902119576931,
-0.6258598566055298,
-0.457741379737854,
0.05285131186246872,
-0.14412620663642883,
0.045297808945178986,
0.03430354222655296,
-0.20544615387916565,
-0.10702211409807205,
0.2207038253545761,
0.03848971799015999,
-0.058767419308423996,
-0.20872244238853455,
-0.16665828227996826,
-0.006819545291364193,
0.07215048372745514,
-0.2570262849330902,
-0.6848426461219788,
-0.13186249136924744,
-0.3363645672798157,
-0.018551018089056015,
-0.1078769713640213,
0.15694023668766022,
-0.12324491888284683,
-0.05142492055892944,
-0.10490961372852325,
0.021720275282859802,
-0.3342832326889038,
-0.09487605094909668,
-0.048730529844760895,
0.09450531750917435,
-0.008282752707600594,
-0.4569733738899231,
0.19938839972019196,
0.17748787999153137,
-0.2025117427110672,
0.1531127691268921,
-0.5314671397209167,
-0.27252379059791565,
0.20652052760124207,
-0.043861985206604004,
0.15735603868961334,
-0.17763279378414154,
0.5536835193634033,
-0.1086379811167717,
-0.2538420259952545,
-0.13455045223236084,
-0.28660422563552856,
0.0720609724521637,
0.17124611139297485,
0.32463473081588745,
0.40918058156967163,
0.2624560296535492,
0.024274839088320732,
0.3892095386981964,
0.19030892848968506,
0.026737455278635025,
0.23416006565093994,
0.17951327562332153,
0.19240620732307434,
-0.09376660734415054,
-0.2098539173603058,
0.06765532493591309,
0.12601293623447418,
0.16181108355522156,
0.15517842769622803,
0.21250565350055695,
-0.08542466908693314,
-0.37645959854125977,
-0.0002546803734730929,
-0.005069516133517027,
0.10664953291416168,
-0.20458373427391052,
0.19392003118991852,
0.624850869178772,
0.15598078072071075,
-0.06904048472642899,
-0.18998540937900543,
-0.05028059333562851,
-0.1242642030119896,
0.23949669301509857,
0.2186526209115982,
-0.08031143993139267,
0.004976130556315184,
0.30570948123931885,
-0.2312406748533249,
0.36853915452957153,
-0.016263388097286224,
0.30519434809684753,
-0.1745799481868744,
0.18369951844215393,
0.16757437586784363,
-0.01653488725423813,
-0.002248173812404275,
-0.4258732199668884,
0.25012004375457764,
0.5538977384567261,
-0.2577002942562103,
0.17580440640449524,
0.03193280100822449,
-0.15974995493888855,
-0.11758826673030853,
-0.1852881759405136,
0.5539382696151733,
-0.06165182217955589,
-0.3503075838088989,
0.5332703590393066,
0.09580127149820328,
-0.11599330604076385,
0.011696861125528812,
-0.14897681772708893,
-0.03917425125837326,
0.036185022443532944,
-0.06920680403709412,
-0.1455722600221634,
0.04509630799293518,
0.07075488567352295,
-0.2735244333744049,
-0.21305611729621887,
-0.23029063642024994,
-0.0789409950375557,
-0.11622351408004761,
0.23028221726417542,
-0.005495112389326096,
0.2637893855571747,
0.10186528414487839,
-0.006938643287867308,
0.2944149374961853,
0.3105015754699707,
0.1103014126420021,
-0.26450425386428833,
0.11263950169086456,
-0.07665757834911346,
0.13211636245250702,
0.36211320757865906,
-0.14406125247478485,
0.1353563517332077,
-0.03249122202396393,
0.0674983412027359,
-0.09203419834375381,
-0.26734310388565063,
0.432761013507843,
-0.16558049619197845,
-0.2975935637950897,
-0.03650211915373802,
0.20603148639202118,
0.16863805055618286,
-0.355457067489624,
0.555996298789978,
0.2967342138290405,
0.008054058067500591,
-0.023656148463487625,
-0.27704477310180664,
1.0293959379196167,
-0.028732841834425926,
-0.07097689062356949,
-0.22299490869045258,
-0.2106599509716034,
0.3116074204444885,
0.15183281898498535,
0.12755922973155975,
-0.14791205525398254,
-0.12004140764474869,
-0.1563587635755539,
0.025576526299118996,
0.35665449500083923,
0.013788566924631596,
-0.4522588551044464,
0.1800192892551422,
-0.10668742656707764,
0.3458713889122009,
0.1815042793750763,
0.4181371033191681,
0.20393483340740204,
0.2149992287158966,
-0.1357865035533905,
0.18121811747550964,
0.041511230170726776,
0.34440627694129944,
-0.11158035695552826,
-0.11234183609485626,
0.050609029829502106,
-0.16847848892211914,
-0.37727490067481995,
-0.16275553405284882,
0.09462333470582962,
0.12849554419517517,
-0.04188176617026329,
-0.32950493693351746,
0.15016338229179382,
-0.20670431852340698,
0.23946131765842438,
0.05871140584349632,
-0.1543530970811844,
0.10663323104381561,
-0.10029876232147217,
-0.2956923246383667,
0.0422360897064209,
0.20251353085041046,
0.24934770166873932,
-0.36579933762550354,
-0.1296640932559967,
0.2075188159942627,
-0.06659574061632156,
-0.19576101005077362,
-0.38056081533432007,
0.014414441771805286,
0.19049964845180511,
-0.0858495682477951,
0.0902344286441803,
0.07931118458509445,
0.000039329930586973205,
-0.26875704526901245,
0.21664181351661682,
0.23639079928398132,
0.17307254672050476,
-0.07047240436077118,
0.09091290831565857,
-0.09439712762832642,
-0.04622848331928253,
0.3315748870372772,
0.4488438665866852,
-0.08695174753665924,
-0.05772675201296806,
-0.10464783757925034,
-0.025315439328551292,
-0.29673755168914795,
0.16510739922523499,
0.14837110042572021,
-0.19265493750572205,
0.31667810678482056,
0.045181360095739365,
-0.17714491486549377,
0.09663114696741104,
0.8037610054016113,
0.11329036951065063,
-0.08670275658369064,
-0.3089386522769928,
-0.22691406309604645,
-0.20127315819263458,
0.400747150182724,
-0.35074517130851746,
-0.0632593184709549,
-0.17282229661941528,
0.0035144176799803972,
0.17836488783359528,
-0.2588580846786499,
-0.35823535919189453,
0.10949409008026123,
-0.02293226681649685,
-0.15584076941013336,
0.3805619776248932,
-0.13976521790027618,
-0.12688814103603363,
-0.1695239394903183,
0.06836115568876266,
-0.19142617285251617,
-0.4219690263271332,
-0.18258987367153168,
-0.006880970671772957,
0.1795589029788971,
-0.09949880838394165,
0.11059019714593887,
-0.2188424915075302,
-0.3331710696220398,
-0.32947948575019836,
0.5655468106269836,
-0.05746254324913025,
0.21055836975574493,
0.26581770181655884,
-0.0013693931978195906,
-0.19110365211963654,
0.08320685476064682,
-0.0473589189350605,
0.1444200724363327,
0.29168644547462463,
0.061674002557992935,
0.05258176475763321,
0.21925105154514313,
0.3352401554584503,
-0.05124594271183014,
-0.31883156299591064,
-0.08573120832443237,
0.028379041701555252,
0.10824398696422577,
0.2533848285675049,
0.08450747281312943,
0.07785502821207047,
0.3177063465118408,
0.261340856552124,
0.1477469801902771,
0.02358771674335003,
-0.10451570898294449,
0.14997251331806183,
0.22904659807682037,
-0.4348064064979553,
-0.21444498002529144,
-0.10244370996952057,
0.19541573524475098,
-0.35196903347969055,
-0.05866406857967377,
0.4161963164806366,
0.37450993061065674,
0.3306235074996948,
0.23533415794372559,
0.32521557807922363,
-0.28755515813827515,
0.1753372699022293,
0.29865118861198425,
0.2821618318557739,
0.08192425221204758,
0.2702080011367798,
0.35630831122398376,
0.11984113603830338,
-0.11741600930690765,
0.11622211337089539,
0.25799354910850525,
0.6770772933959961,
0.461113303899765,
0.2945822477340698,
-0.16741453111171722,
0.152861550450325,
0.1450759470462799,
0.024857057258486748,
-0.009703352116048336,
-0.028064073994755745,
0.23412512242794037,
-0.2223806381225586,
0.0008826315170153975,
-0.2526208162307739,
-0.1989828646183014,
-0.13957634568214417,
-0.20661787688732147,
0.08047933876514435,
-0.2013021558523178,
-0.1639321744441986,
-0.049033913761377335,
-0.0818432942032814,
0.38813674449920654,
0.46514639258384705,
-0.1723364293575287,
0.06459115445613861,
-0.10199719667434692,
-0.12642301619052887,
0.1757824420928955,
0.26559457182884216,
-0.18459637463092804,
0.3018840253353119,
-0.4171670079231262,
0.10559406876564026,
0.20460017025470734,
0.5415049195289612,
0.06688739359378815,
-0.005514134187251329,
-0.096651591360569,
-0.03461674973368645,
-0.20499034225940704,
-0.09645204991102219,
0.11996611952781677,
0.4839957058429718,
0.2810300886631012,
0.3264021575450897,
0.023384883999824524,
0.07553786784410477,
-0.14215917885303497,
0.4168715476989746,
-0.10790733993053436,
-0.1283363401889801,
-0.627683699131012,
0.21749064326286316,
-0.10517217963933945,
-0.1579536348581314,
-0.06128152459859848,
0.12601198256015778,
-0.012663555331528187,
-0.3415771424770355,
0.27159667015075684,
0.21668805181980133,
-0.06430577486753464,
-0.24864691495895386,
0.11121871322393417,
-0.23084883391857147,
0.04201716184616089,
0.013572731986641884,
-0.008657614700496197,
-0.019740134477615356,
-0.3096866309642792,
-0.44895797967910767,
0.3907982110977173,
0.111597441136837,
-0.24081528186798096,
0.10528023540973663,
0.21330095827579498,
0.08897878229618073,
0.3081979751586914,
0.09241847693920135,
-0.17903919517993927,
-0.3171941936016083,
-0.1446877270936966,
-0.40227407217025757,
0.1941870152950287,
0.3912087082862854,
0.08479439467191696,
-0.04224236309528351,
-0.27748367190361023,
0.27421921491622925,
-0.29324081540107727,
0.03224281966686249,
0.10447578877210617,
-0.33371618390083313,
0.38600507378578186,
0.14066675305366516,
0.5287460088729858,
0.03213164582848549,
0.13045400381088257,
0.23303483426570892,
-0.13441960513591766,
-0.4677242934703827,
-0.13288812339305878,
-0.03367133066058159,
-0.10856752842664719,
0.04182305186986923,
0.04389487951993942,
-0.2677306532859802,
0.11621430516242981,
-0.19904549419879913,
0.05104327201843262,
-0.37059393525123596,
0.4114428162574768,
0.06625492870807648,
0.10950824618339539,
0.06624986976385117,
-0.2569505274295807,
0.2648652195930481,
0.05526784807443619,
-0.11630035191774368,
-0.25988128781318665,
-0.44472792744636536,
-0.3196740448474884,
0.2948858439922333,
0.009998411871492863,
-0.14694248139858246,
-0.11868561804294586,
0.07514135539531708,
0.26015910506248474,
-0.2630876302719116,
-0.40477797389030457,
-0.13587884604930878,
0.30264362692832947,
0.2290501892566681,
-0.12055408209562302,
0.0037206588312983513,
0.011637204326689243,
-0.18535736203193665,
0.07482242584228516,
0.30177581310272217,
-0.1473492532968521,
-0.11054902523756027,
-0.19107885658740997,
0.07434473186731339
] |
https://github.com/huggingface/datasets/issues/2885 | Adding an Elastic Search index to a Dataset | Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | ## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
| 44 | Adding an Elastic Search index to a Dataset
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | [
-0.14233581721782684,
0.17272774875164032,
-0.004471531603485346,
0.04009603336453438,
0.09973691403865814,
0.027368132025003433,
-0.013204159215092659,
0.06842286139726639,
0.013826070353388786,
0.05311533808708191,
-0.0395587719976902,
0.3000071942806244,
0.3499434292316437,
-0.3781624138355255,
-0.1049262136220932,
0.1306152194738388,
0.09097267687320709,
0.094149649143219,
0.27567481994628906,
0.19792833924293518,
-0.03591439127922058,
0.09590834379196167,
-0.1247543916106224,
-0.0892915278673172,
-0.3346312940120697,
0.021213365718722343,
-0.031670503318309784,
-0.12353751808404922,
-0.02871781401336193,
-0.41674280166625977,
0.3019477128982544,
-0.1501852124929428,
-0.1225859522819519,
0.35763445496559143,
-0.00011850787996081635,
0.0780741274356842,
0.4348543584346771,
-0.03297114744782448,
-0.018322739750146866,
-0.2907196879386902,
-0.07238050550222397,
-0.13544444739818573,
0.279198557138443,
-0.15913158655166626,
-0.09534712880849838,
0.16176344454288483,
0.09874878823757172,
-0.611460268497467,
0.44152238965034485,
0.39613381028175354,
0.22101135551929474,
0.3180060088634491,
0.3437502384185791,
-0.12438351660966873,
0.41982895135879517,
-0.1281125545501709,
-0.04895151033997536,
-0.2564236521720886,
0.25303399562835693,
-0.03889993578195572,
-0.029067153111100197,
0.14522899687290192,
-0.09448923915624619,
-0.2707444429397583,
0.10850383341312408,
0.14813442528247833,
-0.4625433385372162,
-0.2957313358783722,
0.31498953700065613,
0.11342285573482513,
0.19102612137794495,
-0.07123395800590515,
-0.251936674118042,
0.045184213668107986,
-0.0008994006784632802,
0.16221027076244354,
0.19942021369934082,
0.18945690989494324,
0.06060965731739998,
0.11904234439134598,
0.06538989394903183,
-0.12489742040634155,
-0.23916135728359222,
0.4135325849056244,
-0.053709883242845535,
0.17344380915164948,
-0.09754166007041931,
0.1064755842089653,
0.13659405708312988,
-0.146079882979393,
0.07822900265455246,
0.2522954046726227,
-0.2729325592517853,
-0.05551595613360405,
-0.37644296884536743,
0.10244734585285187,
-0.11689432710409164,
-0.20027191936969757,
0.41850486397743225,
-0.06345218420028687,
-0.09268433600664139,
0.1597328633069992,
0.651411771774292,
0.08237014710903168,
0.28603067994117737,
-0.06310401856899261,
0.06138123944401741,
0.3085792362689972,
0.0735875591635704,
-0.31726452708244324,
-0.3174724578857422,
-0.25935620069503784,
0.2854793071746826,
-0.214969202876091,
0.41807734966278076,
-0.48181477189064026,
0.21345703303813934,
-0.030027596279978752,
-0.15906603634357452,
0.21930064260959625,
-0.5879532694816589,
-0.006157205440104008,
-0.07535023987293243,
0.13534888625144958,
0.1364612728357315,
-0.4953051209449768,
0.03836881369352341,
0.27251631021499634,
-0.2289300113916397,
0.1452212929725647,
-0.23566627502441406,
-0.2659831643104553,
0.04086967185139656,
0.017961883917450905,
0.11603628098964691,
-0.6583967804908752,
0.2295718491077423,
0.0021876227110624313,
0.08426009863615036,
-0.39457058906555176,
0.2630118727684021,
-0.08290007710456848,
0.17736409604549408,
0.21885554492473602,
0.06153484061360359,
0.023489028215408325,
0.02322685346007347,
-0.43855583667755127,
-0.03515538200736046,
-0.12219388782978058,
-0.3814527690410614,
-0.25214022397994995,
-0.276483952999115,
0.21022745966911316,
-0.13857696950435638,
0.01717793382704258,
0.13575217127799988,
0.21815422177314758,
0.11031240224838257,
-0.008274530991911888,
0.07757538557052612,
-0.04035564884543419,
-0.28976839780807495,
0.08141660690307617,
0.2997894883155823,
0.20748092234134674,
0.11608467251062393,
-0.12900656461715698,
0.034548018127679825,
0.42768725752830505,
-0.2609294056892395,
0.21411879360675812,
-0.23132744431495667,
0.036428771913051605,
-0.17314106225967407,
0.4179224371910095,
0.3350296914577484,
-0.46300196647644043,
-0.6134619116783142,
0.13872051239013672,
-0.2306157797574997,
-0.09500882029533386,
-0.2723561227321625,
0.060784243047237396,
0.6483935117721558,
0.01077177096158266,
0.17986786365509033,
0.2476816326379776,
-0.17625825107097626,
-0.1678982675075531,
-0.15230102837085724,
-0.0007273747469298542,
-0.1430877149105072,
-0.17720182240009308,
0.0628996416926384,
0.09033524245023727,
0.2576124370098114,
0.2004101425409317,
-0.005574201233685017,
0.1895459145307541,
0.011543176136910915,
0.30669522285461426,
0.35648664832115173,
0.10774875432252884,
0.2526797652244568,
-0.12880180776119232,
-0.2565322816371918,
0.2232700139284134,
0.08953048288822174,
0.08368691056966782,
-0.18277673423290253,
-0.11986327171325684,
-0.1379048377275467,
0.007161824963986874,
-0.15699179470539093,
0.030996186658740044,
0.1074972152709961,
-0.23774315416812897,
-0.2198880910873413,
0.1922544538974762,
0.0002295911981491372,
-0.1667473465204239,
0.07281047850847244,
0.23821623623371124,
-0.237638920545578,
0.312053382396698,
-0.08301202952861786,
-0.08675311505794525,
-0.18836070597171783,
-0.012789643369615078,
0.23681654036045074,
-0.20603856444358826,
-0.14462034404277802,
0.33254170417785645,
-0.09940645098686218,
0.3171948492527008,
0.15428444743156433,
0.02519483119249344,
0.1261182725429535,
-0.6889182925224304,
-0.10387783497571945,
0.14205698668956757,
0.057195477187633514,
-0.27619093656539917,
-0.00031332983053289354,
0.015249486081302166,
0.00722608994692564,
0.37240222096443176,
-0.21710264682769775,
0.086873859167099,
-0.0073977806605398655,
-0.17348167300224304,
-0.4597904682159424,
-0.0337325818836689,
-0.019845765084028244,
-0.3641362488269806,
-0.0424908846616745,
-0.11294104158878326,
-0.1182914450764656,
0.0319063663482666,
0.01611548289656639,
0.15425176918506622,
0.10466203838586807,
0.370985746383667,
0.020230263471603394,
-0.10019239783287048,
-0.38004162907600403,
-0.02085920423269272,
0.23986323177814484,
0.17840436100959778,
0.14130835235118866,
-0.00039497268153354526,
0.015999700874090195,
-0.05712610110640526,
0.31742000579833984,
0.34493276476860046,
0.08519075810909271,
0.32849010825157166,
0.42678332328796387,
0.08073552697896957,
-0.23499883711338043,
-0.0556243471801281,
-0.218771293759346,
-0.034960340708494186,
-0.248305544257164,
0.48377734422683716,
-0.03817945346236229,
0.12168889492750168,
-0.1421811580657959,
0.036697909235954285,
-0.2608760595321655,
-0.4408208727836609,
-0.10007078945636749,
0.19188733398914337,
-0.029806174337863922,
0.010196088813245296,
-0.38963669538497925,
-0.02801555022597313,
0.2536539137363434,
-0.2719680964946747,
0.1400226503610611,
-0.138258159160614,
-0.142363041639328,
-0.03425091877579689,
0.1852952241897583,
0.05593585595488548,
0.23909121751785278,
0.22776088118553162,
-0.1308046132326126,
-0.38574060797691345,
-0.4401709735393524,
0.13538481295108795,
0.027066029608249664,
0.338162899017334,
0.10618413984775543,
-0.20703724026679993,
-0.4189090132713318,
-0.13923564553260803,
0.2391747534275055,
-0.15691401064395905,
0.09605301916599274,
0.09899039566516876,
0.08122698962688446,
0.16545598208904266,
0.2521836459636688,
-0.298806369304657,
-0.18562960624694824,
-0.17730630934238434,
0.0319298580288887,
-0.130062073469162,
-0.07019021362066269,
0.326548308134079,
-0.010066875256597996,
0.13343128561973572,
-0.1179937869310379,
-0.09436626732349396,
-0.12056101858615875,
-0.15527836978435516,
0.05129062384366989,
-0.161736398935318,
-0.31464824080467224,
0.16640274226665497,
-0.035865962505340576,
-0.2476518303155899,
0.2399177998304367,
-0.3951131999492645,
0.21291519701480865,
0.1262052357196808,
-0.25794699788093567,
-0.30928656458854675,
0.055934932082891464,
0.08564483374357224,
-0.2632974088191986,
-0.015295975841581821,
-0.03317376971244812,
0.029206031933426857,
0.17546337842941284,
0.22315578162670135,
0.09258720278739929,
-0.09783954173326492,
0.2361079454421997,
-0.07093600183725357,
0.6817718744277954,
0.160398468375206,
-0.013461858034133911,
0.15878473222255707,
-0.17086201906204224,
0.3219512104988098,
-0.23699291050434113,
-0.5023805499076843,
-0.14123965799808502,
-0.10594407469034195,
-0.10542111843824387,
-0.028370710089802742,
0.10957437008619308,
-0.2827529311180115,
-0.1155998706817627,
-0.24268952012062073,
-0.060500618070364,
-0.5460485219955444,
0.18939341604709625,
0.1710992455482483,
0.06934262067079544,
0.056865423917770386,
0.15642887353897095,
0.12334069609642029,
-0.43607401847839355,
-0.4252505898475647,
-0.12721949815750122,
-0.1278420388698578,
0.015779614448547363,
-0.26754406094551086,
0.19871951639652252,
-0.6068626642227173,
0.1646699458360672,
-0.05421070381999016,
0.52877277135849,
0.05516991391777992,
0.0009338848176412284,
0.1420910358428955,
0.16867776215076447,
0.7477440237998962,
-0.22517484426498413,
-0.11859751492738724,
-0.01583479903638363,
0.05479300767183304,
-0.5928247570991516,
0.0987461507320404,
-0.14764395356178284,
0.628697395324707,
0.20921745896339417,
0.37377244234085083,
0.028893297538161278,
0.1745181679725647,
0.07553661614656448,
-0.10054673254489899,
0.07907033711671829,
-0.07784132659435272,
-0.22568275034427643,
-0.2200264185667038,
0.30444297194480896,
0.27427372336387634,
0.3445194363594055,
0.08100195229053497,
0.32237938046455383,
-0.2284778505563736,
-0.296967476606369,
-0.03094571828842163,
0.04371846094727516,
-0.2290932685136795,
0.25751039385795593,
-0.07814791798591614,
0.2960498631000519,
0.4340246021747589,
0.2177850306034088,
0.2762294411659241,
0.4081854224205017,
-0.24404080212116241,
0.08859319239854813,
-0.01967356912791729,
-0.03754749894142151,
0.17640982568264008,
0.3452105224132538,
0.23339416086673737,
0.1530000865459442,
0.178876593708992,
0.06654204428195953,
-0.21474234759807587,
-0.18785937130451202,
0.5031187534332275,
0.13828615844249725,
-0.4760870337486267,
0.06704279780387878,
0.36206507682800293,
-0.06275168806314468,
-0.030865930020809174,
0.07451611757278442,
0.5442922711372375,
-0.39886975288391113,
0.6471541523933411,
0.11359819024801254,
0.6712862253189087,
0.08919455856084824,
-0.07255655527114868,
-0.2630756199359894,
0.11092640459537506,
0.7352771759033203,
-0.33470189571380615,
0.2549375295639038,
-0.20974980294704437,
-0.5855284333229065,
-0.06905888766050339,
-0.28584977984428406,
0.008679941296577454,
-0.22341755032539368,
-0.3603479862213135,
0.016650456935167313,
-0.3822993338108063,
0.28212594985961914,
-0.08415526151657104,
0.3374670743942261,
-0.15104620158672333,
-0.12747985124588013,
0.03526821732521057,
0.1547403335571289,
0.22271397709846497,
0.26923298835754395,
0.19162337481975555,
0.04244430735707283,
-0.017423193901777267,
-0.27756038308143616,
-0.4944610893726349,
-0.019129188731312752,
-0.12746016681194305,
0.15517307817935944,
0.1827654093503952,
-0.04532267525792122,
0.38154610991477966,
0.09889547526836395,
0.048147980123758316,
0.10755704343318939,
-0.18122375011444092,
0.24065101146697998,
-0.008088123984634876,
-0.0569831058382988,
0.4446689188480377,
-0.22058342397212982,
0.07117964327335358,
0.17912299931049347,
-0.4024154245853424,
-0.018444053828716278,
0.2618074417114258,
-0.18586613237857819,
-0.08226967602968216,
0.3471035957336426,
-0.25227439403533936,
-0.3732703924179077,
-0.2347559779882431,
-0.12859128415584564,
-0.06754947453737259,
-0.14326466619968414,
0.08923231810331345,
0.008490752428770065,
-0.12428487092256546,
0.2830711901187897,
0.36897948384284973,
-0.24953198432922363,
0.07210081815719604,
0.850379228591919,
-0.21605153381824493,
-0.13867399096488953,
0.20747728645801544,
0.06039552763104439,
-0.17180240154266357,
-0.11009160429239273,
0.32643139362335205,
0.28593701124191284,
-0.150676891207695,
-0.2592434883117676,
-0.46275103092193604,
0.22831566631793976,
0.0369626060128212,
0.03771568089723587,
0.21224616467952728,
-0.009237539954483509,
-0.1842622011899948,
-0.19047778844833374,
0.14333489537239075,
0.15667615830898285,
0.4442586600780487,
0.10218578577041626,
-0.3198876976966858,
-0.40580856800079346,
-0.09582769870758057,
0.1374998241662979,
-0.2438109964132309,
0.32686665654182434,
-0.25202786922454834,
0.006450592074543238,
-0.12959222495555878,
-0.05161594599485397,
0.5856392979621887,
-0.3752816617488861,
0.059196606278419495,
0.174484521150589,
-0.05121907964348793,
-0.16854041814804077,
-0.06370114535093307,
0.11913764476776123,
-0.045076191425323486,
-0.10700834542512894,
-0.16663461923599243,
-0.23166072368621826,
-0.04734867438673973,
-0.2600591778755188,
0.026888126507401466,
0.424556702375412,
0.1292693167924881,
-0.16630247235298157,
-0.15225280821323395,
-0.12608584761619568,
0.35492590069770813,
-0.08605128526687622,
0.2210676074028015,
0.25743404030799866,
0.016934232786297798,
0.2850545346736908,
0.1095147356390953,
-0.03135395422577858,
-0.11664281785488129,
0.27056631445884705,
-0.043709415942430496,
0.07836674898862839,
0.20383113622665405,
-0.23710410296916962,
-0.09618140012025833,
0.5086318254470825,
0.41947102546691895,
0.3942956328392029,
-0.3104347586631775,
-0.1650984138250351,
-0.0005251698894426227,
0.2413313388824463,
0.049248531460762024,
-0.2417103499174118,
0.6126324534416199,
0.09002598375082016,
0.12838885188102722,
0.20120231807231903,
0.08903850615024567,
-0.313093900680542,
-0.35252055525779724,
0.02918582782149315,
0.7695251107215881,
0.13496579229831696,
0.10625199973583221,
-0.18472278118133545,
-0.02989942394196987,
-0.030787847936153412,
0.0969647765159607,
0.15404510498046875,
0.36287549138069153,
0.21088004112243652,
0.009351692162454128,
0.44576242566108704,
0.0946386381983757,
0.2002345472574234,
0.1958199143409729,
0.14632835984230042,
0.2819839417934418,
0.2778768837451935,
0.19834598898887634,
0.06488349288702011,
-0.031021371483802795,
0.8150579333305359,
-0.008177308365702629,
-0.3088999092578888,
-0.10747414082288742,
0.012354006990790367,
-0.07188519835472107,
-0.13819968700408936,
0.21335935592651367,
-0.16537952423095703,
-0.0008475058129988611,
-0.2416386604309082,
0.08490031212568283,
-0.02695944905281067,
-0.390127569437027,
0.15755029022693634,
0.11248217523097992,
-0.04309539496898651,
0.05088937655091286,
-0.14149737358093262,
0.07671995460987091,
-0.16643673181533813,
0.003622526302933693,
-0.15190710127353668,
0.12521225214004517,
0.23516790568828583,
0.3312086760997772,
0.4035593271255493,
-0.07472364604473114,
-0.14004665613174438,
0.40586480498313904,
-0.03501223027706146,
-0.14455318450927734,
0.10792092233896255,
0.031837187707424164,
-0.00027291959850117564,
-0.5440950989723206,
0.14781661331653595,
0.0487128347158432,
-0.06358897686004639,
0.014042080380022526,
0.26408377289772034,
0.43219807744026184,
-0.1540917009115219,
-0.3470182716846466,
-0.21063187718391418,
0.07443267107009888,
-0.1783643364906311,
-0.15063054859638214,
-0.16003787517547607,
0.0988604724407196,
0.29712337255477905,
-0.21230962872505188,
0.14406274259090424,
0.1429019272327423,
0.06288831681013107,
-0.08692166209220886,
0.19667978584766388,
0.11604829132556915,
-0.05504636466503143,
-0.03339722380042076,
0.07475215196609497,
-0.20595400035381317,
0.31864163279533386,
-0.4508095979690552,
0.1692674607038498,
0.559151291847229,
0.29605236649513245,
-0.20471379160881042,
0.10676725208759308,
0.18077056109905243,
-0.23506617546081543,
-0.29931285977363586,
-0.07724431157112122,
-0.016041377559304237,
-0.22386708855628967,
-0.10156039148569107,
0.026177890598773956,
-0.010141420178115368,
-0.025155644863843918,
0.1090446189045906,
-0.5017800331115723,
0.02346203848719597,
-0.23539701104164124,
-0.1540963500738144,
-0.19839604198932648,
-0.17497418820858002,
0.11525123566389084,
0.0764288380742073,
0.2546806335449219,
-0.010825485922396183,
0.07054349035024643,
-0.19427302479743958,
-0.46987414360046387,
-0.2817732095718384,
0.26535964012145996,
0.09579042345285416,
0.03096906840801239,
-0.25580042600631714,
-0.49813947081565857,
-0.20893658697605133,
0.14825941622257233,
0.0951693132519722,
-0.10516034811735153,
-0.4935900568962097,
0.021184105426073074,
-0.06647457927465439,
0.12540334463119507,
-0.28242841362953186,
0.32178762555122375,
-0.0584603026509285,
0.4555456042289734,
0.05762321874499321,
-0.42733150720596313,
0.47240757942199707,
-0.3319602906703949,
0.005578618496656418,
-0.04099453613162041,
0.29267823696136475,
0.6038853526115417,
0.14099378883838654,
-0.23869487643241882,
-0.1673588901758194,
0.2756534814834595,
-0.19434617459774017,
-0.24405938386917114,
-0.09817367047071457,
-0.015066464431583881,
0.19261859357357025,
-0.025973157957196236,
-0.1619802862405777,
0.2742900252342224,
-0.029248636215925217,
0.015127517282962799,
-0.09116998314857483
] |
https://github.com/huggingface/datasets/issues/2882 | `load_dataset('docred')` results in a `NonMatchingChecksumError` | Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| ## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific. | 69 | `load_dataset('docred')` results in a `NonMatchingChecksumError`
## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific.
Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| [
-0.2659110426902771,
0.3422701358795166,
0.03556513786315918,
0.3098565638065338,
0.21419760584831238,
0.04043257236480713,
0.3646670877933502,
0.42015519738197327,
0.3040322959423065,
0.07150309532880783,
-0.2768661677837372,
0.19011875987052917,
0.13069579005241394,
-0.19511151313781738,
-0.16129200160503387,
0.3339132070541382,
0.12469390034675598,
0.10538289695978165,
-0.2242247611284256,
-0.12528032064437866,
-0.3106812536716461,
0.19857966899871826,
-0.21844422817230225,
-0.2843076288700104,
-0.052953410893678665,
0.18356208503246307,
0.15325993299484253,
0.23243394494056702,
-0.120699942111969,
-0.3587092459201813,
0.27882087230682373,
0.27852940559387207,
0.17363210022449493,
0.4296131134033203,
-0.00012492816313169897,
0.120798259973526,
0.28177085518836975,
-0.0242786705493927,
-0.5012805461883545,
-0.20138582587242126,
-0.5633542537689209,
-0.3742283582687378,
-0.007042893208563328,
-0.15833784639835358,
-0.03448767215013504,
0.2363329827785492,
-0.017780639231204987,
-0.27507174015045166,
0.00017913299961946905,
0.37369439005851746,
0.1168588325381279,
0.39186638593673706,
0.1610022336244583,
0.08716961741447449,
0.3812573552131653,
0.050498560070991516,
-0.09010385721921921,
0.4119759202003479,
0.2193893939256668,
-0.038596656173467636,
-0.25821298360824585,
0.1683274805545807,
-0.42345356941223145,
0.3069985508918762,
0.2320551574230194,
0.06188230216503143,
0.06487066298723221,
-0.13736610114574432,
0.2532403767108917,
0.2994746267795563,
0.4981350004673004,
-0.41466179490089417,
-0.3278168737888336,
-0.2285795509815216,
-0.2983042597770691,
-0.31886348128318787,
0.37913504242897034,
0.13985486328601837,
-0.19677741825580597,
0.03362756967544556,
-0.3680788278579712,
0.14996765553951263,
0.0037718936800956726,
0.1940131038427353,
0.2422594428062439,
0.05453149601817131,
0.03165372833609581,
-0.01877058483660221,
0.022109730169177055,
0.0298724714666605,
0.39370694756507874,
-0.5399646162986755,
-0.20467230677604675,
0.2048070877790451,
-0.5590270161628723,
0.07308224588632584,
0.008057327941060066,
0.27770566940307617,
0.35263824462890625,
0.4925110936164856,
0.08901138603687286,
0.2042771726846695,
-0.03754514828324318,
0.18851345777511597,
0.16431251168251038,
0.2119751274585724,
-0.06474215537309647,
0.4100402295589447,
0.2708576023578644,
0.3656848073005676,
-0.1347789466381073,
0.04321376234292984,
-0.005431338679045439,
-0.17642588913440704,
0.6712609529495239,
-0.12599441409111023,
0.3084285259246826,
-0.4890391528606415,
-0.438892662525177,
0.27132469415664673,
0.00820532999932766,
-0.09479668736457825,
0.08694703131914139,
0.3220214247703552,
-0.2265855371952057,
0.15165869891643524,
0.14701838791370392,
0.14769020676612854,
-0.2125060260295868,
-0.05413273721933365,
-0.18733762204647064,
-0.07643615454435349,
-0.059677448123693466,
0.19760777056217194,
0.2942277789115906,
-0.18219727277755737,
0.2553660571575165,
0.10831256955862045,
0.21902349591255188,
-0.19608041644096375,
0.29997631907463074,
-0.195566326379776,
-0.053363408893346786,
0.3180699944496155,
-0.032225050032138824,
0.09612765908241272,
0.24765965342521667,
-0.18122078478336334,
-0.14393888413906097,
0.1828756481409073,
-0.25577282905578613,
-0.21374179422855377,
-0.12691240012645721,
0.15115457773208618,
-0.3514274060726166,
0.008207309059798717,
-0.23781897127628326,
-0.4000212252140045,
0.40633174777030945,
-0.32234397530555725,
-0.015479042194783688,
-0.35421091318130493,
-0.2637995779514313,
-0.3539440929889679,
0.23896893858909607,
0.4025937616825104,
0.041926607489585876,
0.0426536500453949,
-0.09056544303894043,
-0.01148144993931055,
0.29418960213661194,
0.18351303040981293,
0.009325428865849972,
0.10562778264284134,
-0.41249579191207886,
-0.06356219947338104,
0.2606510519981384,
-0.3542025685310364,
-0.6170945167541504,
0.1036195456981659,
0.12775272130966187,
0.6295824646949768,
0.047649890184402466,
0.07500160485506058,
0.1831660121679306,
-0.05024256929755211,
0.22169606387615204,
0.1532352864742279,
-0.038785744458436966,
0.12447930127382278,
-0.25280842185020447,
-0.03255889192223549,
-0.0434749461710453,
0.10448648035526276,
0.020171957090497017,
0.2498002052307129,
0.28892236948013306,
-0.16611574590206146,
0.26378023624420166,
-0.09536546468734741,
-0.12573619186878204,
0.2321084439754486,
0.2991936504840851,
0.046871449798345566,
0.06397347897291183,
-0.016749180853366852,
-0.7693794965744019,
0.34231844544410706,
-0.15059426426887512,
-0.028007747605443,
-0.07335209101438522,
-0.044417399913072586,
-0.18030822277069092,
-0.11415466666221619,
-0.30736812949180603,
-0.09120415151119232,
-0.012597966939210892,
0.3906363546848297,
0.20742009580135345,
0.020108625292778015,
0.037951208651065826,
0.41377437114715576,
-0.30479511618614197,
0.12482856214046478,
-0.33462440967559814,
0.41184863448143005,
0.07433954626321793,
-0.10293897241353989,
0.13182349503040314,
-0.0030253641307353973,
0.13282164931297302,
-0.056291695684194565,
-0.27454254031181335,
0.43870335817337036,
0.38115188479423523,
0.1363850235939026,
-0.1962384134531021,
0.34142059087753296,
-0.06991913169622421,
-0.13954727351665497,
-0.012622303329408169,
0.4393106997013092,
0.12040005624294281,
-0.16905540227890015,
-0.15337570011615753,
0.3473968803882599,
-0.0006327398004941642,
0.19467392563819885,
0.006263885647058487,
0.05758137255907059,
0.24505750834941864,
-0.11670273542404175,
-0.14613409340381622,
-0.2618706524372101,
0.3650653064250946,
0.12960146367549896,
0.22662568092346191,
0.19694079458713531,
-0.1572057604789734,
-0.02588513121008873,
0.45152926445007324,
-0.07350665330886841,
-0.020524190738797188,
0.12885159254074097,
0.04746580496430397,
-0.04369595646858215,
0.07537727057933807,
0.23707802593708038,
0.5027197599411011,
0.06688752770423889,
-0.046278081834316254,
0.14252611994743347,
-0.17181085050106049,
-0.06782892346382141,
0.09679971635341644,
-0.04073910787701607,
0.1989535689353943,
0.6168561577796936,
0.13804742693901062,
-0.15267100930213928,
-0.2818835973739624,
-0.07744333148002625,
-0.12176203727722168,
0.3029143810272217,
-0.4903002083301544,
0.07696792483329773,
-0.10729091614484787,
0.08583059906959534,
-0.37317323684692383,
-0.12689849734306335,
-0.1855975240468979,
-0.24651150405406952,
-0.2533235251903534,
0.625510036945343,
0.02917850762605667,
0.17708918452262878,
-0.5438377261161804,
0.026169192045927048,
-0.048273827880620956,
-0.3658791184425354,
0.01786467246711254,
0.2034306526184082,
-0.21111023426055908,
-0.15473712980747223,
0.5788049101829529,
-0.09108974039554596,
0.3742567300796509,
-0.4110652208328247,
-0.026850752532482147,
-0.5500836372375488,
-0.22336389124393463,
0.09451770782470703,
0.01623021811246872,
0.22367499768733978,
0.171183243393898,
0.040654391050338745,
-0.019200831651687622,
-0.25010380148887634,
0.2409219741821289,
-0.044228918850421906,
-0.26826903223991394,
0.3236261308193207,
-0.15102741122245789,
-0.09554558247327805,
0.17093591392040253,
-0.19851422309875488,
-0.059448037296533585,
-0.3050558567047119,
-0.12973861396312714,
0.2319198101758957,
0.2133796662092209,
0.1936338096857071,
-0.006472086533904076,
0.01529151201248169,
0.1389676183462143,
0.3373718857765198,
-0.16820591688156128,
-0.613456130027771,
0.4448581337928772,
-0.03782764822244644,
-0.22020630538463593,
-0.14433430135250092,
-0.10699110478162766,
0.11745673418045044,
0.3974054455757141,
-0.509545087814331,
0.01674923487007618,
-0.2880922257900238,
0.09456264227628708,
0.09506310522556305,
-0.0240614153444767,
0.21602831780910492,
0.14535345137119293,
0.08296285569667816,
-0.24996012449264526,
-0.2719064950942993,
0.1908714920282364,
-0.13722744584083557,
0.19965782761573792,
0.02264409512281418,
0.3025074005126953,
-0.2673490643501282,
0.5462415814399719,
0.4274446964263916,
0.006136386189609766,
0.22808527946472168,
0.04674350097775459,
0.5268794298171997,
-0.16033415496349335,
-0.3179928660392761,
-0.07850756496191025,
-0.20986342430114746,
-0.13363097608089447,
0.13671299815177917,
-0.025604339316487312,
-0.1290740668773651,
-0.16023778915405273,
0.05656479299068451,
-0.26432564854621887,
-0.2664659321308136,
0.05570245534181595,
-0.299926221370697,
0.3418447971343994,
0.18070676922798157,
0.17876885831356049,
-0.14496338367462158,
-0.36750292778015137,
-0.011126629076898098,
0.2551632523536682,
-0.06217106804251671,
-0.06465701013803482,
-0.2754215896129608,
0.03613029420375824,
-0.09631545096635818,
0.30097663402557373,
0.21668869256973267,
0.4385888874530792,
0.1286439746618271,
-0.08465518057346344,
-0.018673229962587357,
0.02353590540587902,
0.22707024216651917,
-0.274971067905426,
0.295695960521698,
0.1485588550567627,
-0.007961131632328033,
-0.17836140096187592,
-0.2544580399990082,
-0.04325079917907715,
0.06181532144546509,
0.04338719695806503,
0.5564792156219482,
-0.3165852427482605,
-0.016353098675608635,
0.24135896563529968,
0.4100424349308014,
-0.14618629217147827,
-0.28836867213249207,
-0.4403592646121979,
-0.18816706538200378,
-0.29695409536361694,
-0.18073078989982605,
-0.14348244667053223,
0.12070418149232864,
-0.23363614082336426,
-0.10061143338680267,
-0.01798146776854992,
0.057038191705942154,
0.2971664369106293,
-0.05694805830717087,
0.44865164160728455,
-0.06271429359912872,
0.43891772627830505,
0.043541815131902695,
0.06077372282743454,
0.4035261571407318,
0.8385457396507263,
-0.36770114302635193,
-0.4420892000198364,
-0.07953278720378876,
-0.13003340363502502,
-0.1770053654909134,
0.07271189242601395,
-0.029710108414292336,
-0.1339791715145111,
0.23690921068191528,
-0.13342103362083435,
-0.08766081929206848,
-0.07256916910409927,
0.21041859686374664,
0.19986024498939514,
-0.4859289228916168,
-0.47054946422576904,
0.14249779284000397,
0.08549752831459045,
-0.05649612843990326,
0.5796288251876831,
-0.06785807013511658,
-0.17265892028808594,
0.09759311378002167,
0.15627750754356384,
0.7910794615745544,
-0.03746315836906433,
0.20977742969989777,
0.2671899199485779,
-0.3216508626937866,
-0.015331095084547997,
-0.2884845435619354,
0.11760588735342026,
-0.54105544090271,
-0.4565609395503998,
0.0023744150530546904,
-0.41088512539863586,
0.06948979198932648,
0.02445293590426445,
-0.005873074755072594,
0.36443236470222473,
-0.1365392506122589,
0.36398372054100037,
0.16264782845973969,
0.15032440423965454,
-0.13331180810928345,
-0.019253110513091087,
-0.024691611528396606,
0.05637082830071449,
-0.10632379353046417,
0.2817864716053009,
-0.104326032102108,
0.07447624206542969,
-0.08373843878507614,
-0.24913926422595978,
-0.33596593141555786,
0.26861441135406494,
-0.04842458665370941,
0.30638957023620605,
0.3144674301147461,
-0.1562402993440628,
-0.19320563971996307,
0.30793699622154236,
0.19319221377372742,
0.12564562261104584,
-0.2024257481098175,
-0.0966116264462471,
0.44461390376091003,
0.1859636753797531,
0.10809017717838287,
-0.11747507005929947,
0.4294387102127075,
-0.016477270051836967,
-0.17061246931552887,
-0.019510013982653618,
-0.15670812129974365,
-0.5109878778457642,
-0.06384136527776718,
-0.18658104538917542,
-0.013955796137452126,
-0.33274662494659424,
-0.18218132853507996,
-0.14913861453533173,
-0.002647806890308857,
-0.1799396574497223,
0.10349789261817932,
0.15092046558856964,
-0.13399319350719452,
0.37992528080940247,
-0.001597094815224409,
-0.4600849449634552,
-0.12746769189834595,
0.5131282210350037,
0.1256914585828781,
-0.06667325645685196,
0.5254389643669128,
-0.03549981862306595,
-0.274111807346344,
-0.13037803769111633,
-0.02393384464085102,
0.04297660291194916,
-0.2795833945274353,
0.15649372339248657,
-0.2923187017440796,
0.32668980956077576,
-0.16565336287021637,
0.23091936111450195,
0.17461583018302917,
-0.02821439877152443,
0.08037305623292923,
-0.5436574220657349,
-0.11495991796255112,
-0.054521508514881134,
0.07140561938285828,
0.22561046481132507,
-0.0961705818772316,
-0.13187275826931,
-0.168624609708786,
-0.1643112301826477,
-0.21964754164218903,
-0.05095966160297394,
-0.2850660979747772,
-0.050392165780067444,
0.0666942372918129,
0.1091088131070137,
0.09546972066164017,
-0.08479859679937363,
0.10707094520330429,
-0.13952718675136566,
-0.1586121767759323,
-0.09824870526790619,
-0.24731460213661194,
0.1913023591041565,
0.0078086452558636665,
-0.21952266991138458,
0.10119116306304932,
-0.2507103383541107,
-0.12310580164194107,
-0.29266035556793213,
0.041283030062913895,
0.3332214951515198,
-0.1663249433040619,
0.024059129878878593,
0.04791351035237312,
-0.005910622421652079,
-0.0702894777059555,
0.05986623466014862,
-0.35677245259284973,
-0.09490495175123215,
0.035337455570697784,
0.08518810570240021,
0.04120201617479324,
-0.04275841265916824,
0.03826531767845154,
0.20073962211608887,
0.0974862277507782,
-0.034118231385946274,
0.47553473711013794,
-0.436349093914032,
0.04025334119796753,
0.15630128979682922,
0.23568806052207947,
0.4222279489040375,
-0.38562294840812683,
-0.11752282828092575,
0.13966815173625946,
0.1710725724697113,
-0.28583595156669617,
-0.14203020930290222,
0.14066965878009796,
-0.20545706152915955,
0.02499525435268879,
0.2416553795337677,
0.14429408311843872,
-0.5312716960906982,
0.31540796160697937,
0.03654569759964943,
0.18296752870082855,
-0.17339500784873962,
0.09529601782560349,
0.4206507205963135,
0.10133678466081619,
0.14036329090595245,
0.13259084522724152,
-0.03104545921087265,
-0.010560194961726665,
0.04780542850494385,
-0.07500755041837692,
0.303659588098526,
-0.3571101129055023,
0.08802288770675659,
-0.22012749314308167,
-0.527968168258667,
0.348190039396286,
0.25023847818374634,
-0.06982576102018356,
0.12569253146648407,
0.015222441405057907,
0.08344370126724243,
-0.06153341755270958,
0.22070834040641785,
-0.35151606798171997,
-0.11220000684261322,
-0.11603958904743195,
0.030029863119125366,
0.00567585276439786,
-0.33824652433395386,
0.023784630000591278,
0.22826236486434937,
-0.04873623698949814,
0.14405721426010132,
0.1589455008506775,
0.12191886454820633,
-0.18033252656459808,
-0.26962727308273315,
0.2587604820728302,
0.08426076173782349,
-0.040987126529216766,
-0.1821424961090088,
0.2920829653739929,
0.052725229412317276,
0.06037680804729462,
0.08339876681566238,
0.26045092940330505,
0.45209425687789917,
0.5969521403312683,
0.16555659472942352,
-0.22174087166786194,
-0.018945518881082535,
-0.0231256615370512,
-0.09420334547758102,
0.7059634327888489,
-0.18014629185199738,
-0.2599341869354248,
0.313915878534317,
0.05309317260980606,
-0.14712941646575928,
0.025386637076735497,
-0.09722741693258286,
-0.29403576254844666,
-0.09076611697673798,
0.5079350471496582,
-0.023627176880836487,
0.017496315762400627,
-0.0995529443025589,
0.22200405597686768,
-0.2275823950767517,
-0.24917352199554443,
0.4326464831829071,
0.22700482606887817,
0.13768626749515533,
0.07761211693286896,
0.03419966995716095,
-0.01862890087068081,
0.17660938203334808,
0.2722480893135071,
0.09021732956171036,
-0.3786652088165283,
-0.3421338200569153,
-0.7264217138290405,
0.3454355299472809,
-0.1576511412858963,
-0.06199100241065025,
0.11723688989877701,
0.13262693583965302,
0.011616701260209084,
0.10419011116027832,
0.31464865803718567,
-0.06412629783153534,
-0.20501434803009033,
-0.009849587455391884,
-0.17590519785881042,
-0.3004681169986725,
-0.15926773846149445,
-0.13773271441459656,
-0.1920396238565445,
-0.5703732967376709,
0.2017882615327835,
0.11519692093133926,
0.0482635572552681,
-0.1229478120803833,
0.20971626043319702,
0.09960903972387314,
0.2080228477716446,
0.1852990686893463,
0.15406228601932526,
0.6352700591087341,
-0.06471189856529236,
-0.22548572719097137,
-0.09719634801149368,
-0.11416701227426529,
-0.1586398035287857,
0.31632792949676514,
-0.11485856026411057,
0.3463059365749359,
-0.10014935582876205,
-0.30197790265083313,
-0.35748809576034546,
0.3911958336830139,
0.24973969161510468,
-0.3221428096294403,
-0.0838535726070404,
0.07283221930265427,
-0.2557828426361084,
0.21848593652248383,
0.02597191371023655,
0.11381520330905914,
0.13359005749225616,
0.459337055683136,
-0.16759835183620453,
-0.2450249046087265,
0.4646662771701813,
-0.2160879373550415,
-0.15968282520771027,
-0.1233222559094429,
0.2576873302459717,
-0.274393230676651,
-0.2150907814502716,
-0.6132441163063049,
0.17594604194164276,
0.4812852740287781,
-0.1356467306613922,
-0.16692885756492615,
0.25829440355300903,
-0.2036873996257782,
0.3876015245914459,
0.016391802579164505,
0.3485526442527771,
0.012253126129508018,
-0.22214347124099731,
-0.05368321016430855,
-0.11852270364761353
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 46 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | [
0.12485260516405106,
-0.053593676537275314,
0.029330797493457794,
0.0739796832203865,
0.20472796261310577,
-0.024576833471655846,
0.2489381581544876,
0.4213002920150757,
-0.47469082474708557,
0.17516197264194489,
0.13618402183055878,
0.5513864159584045,
-0.3347688913345337,
-0.08509601652622223,
0.03448408842086792,
0.18656444549560547,
-0.09211227297782898,
0.1384558081626892,
-0.2678907513618469,
-0.2130742073059082,
0.03989254683256149,
0.3963990807533264,
-0.16762851178646088,
-0.06859638541936874,
-0.37417715787887573,
0.24487730860710144,
0.22737731039524078,
-0.23149137198925018,
0.10548315942287445,
-0.46003425121307373,
0.29247456789016724,
0.14869773387908936,
0.019459422677755356,
0.37023046612739563,
-0.00011912987247342244,
0.006322534754872322,
0.2757813632488251,
0.035254329442977905,
-0.2775232195854187,
-0.44794338941574097,
-0.06502660363912582,
0.10858631134033203,
0.05303408205509186,
0.14755374193191528,
-0.4656309485435486,
-0.17931245267391205,
0.2337317317724228,
-0.34094735980033875,
0.029200613498687744,
0.448559045791626,
0.0685843899846077,
-0.0634169951081276,
-0.24966391921043396,
-0.08246723562479019,
0.3689356744289398,
0.012543381191790104,
-0.06251930445432663,
0.059270229190588,
-0.06833542883396149,
0.24112869799137115,
0.2196750044822693,
0.37554797530174255,
-0.03132428228855133,
0.012995845638215542,
-0.1954174041748047,
-0.09356390684843063,
-0.25402677059173584,
-0.348786860704422,
0.07476664334535599,
0.2519179880619049,
0.7106907963752747,
-0.29586222767829895,
-0.3215120732784271,
-0.2683334946632385,
0.33699485659599304,
-0.054219942539930344,
0.29112064838409424,
0.025417620316147804,
-0.29449278116226196,
0.16272543370723724,
-0.5629912614822388,
0.07423991709947586,
-0.3041748106479645,
0.14290155470371246,
-0.09742911159992218,
-0.35963454842567444,
-0.1437712460756302,
0.18454104661941528,
-0.19759352505207062,
0.1163857951760292,
0.11415542662143707,
0.18843886256217957,
-0.03961258754134178,
-0.0923861563205719,
-0.3206234276294708,
-0.0985562652349472,
0.05592620000243187,
-0.08153830468654633,
0.0717143639922142,
0.317287802696228,
0.28429698944091797,
0.06759443879127502,
-0.4174664616584778,
-0.13550534844398499,
0.032232414931058884,
0.14816907048225403,
0.18230754137039185,
-0.17783956229686737,
0.10110116004943848,
-0.07203026115894318,
-0.15337447822093964,
0.013992499560117722,
0.018983522430062294,
-0.07209914177656174,
-0.10625345259904861,
-0.015303288586437702,
0.3571920394897461,
-0.11757680773735046,
-0.5631766319274902,
0.1525672972202301,
-0.5025026202201843,
0.21359016001224518,
-0.05205628648400307,
0.19477257132530212,
-0.21541766822338104,
0.13501836359500885,
0.2971945106983185,
0.08706293255090714,
0.024879077449440956,
-0.3115249574184418,
-0.09980232268571854,
-0.19715730845928192,
0.1828783005475998,
0.09686290472745895,
0.24400925636291504,
-0.21037329733371735,
0.21230503916740417,
0.2571350336074829,
0.26150330901145935,
-0.15388312935829163,
-0.09266555309295654,
-0.03262288495898247,
0.2529812753200531,
0.26684436202049255,
-0.1248195543885231,
0.39391303062438965,
-0.05651229992508888,
0.11579257249832153,
0.10667087882757187,
0.25712379813194275,
-0.06512189656496048,
-0.00617121160030365,
0.5623428225517273,
0.0605887770652771,
-0.1836535781621933,
-0.30065256357192993,
-0.1071215271949768,
0.3333049416542053,
0.044279709458351135,
-0.0668320506811142,
0.25042107701301575,
-0.27517831325531006,
-0.22715149819850922,
0.015882354229688644,
0.13589245080947876,
0.15665386617183685,
-0.5853289365768433,
0.02432817779481411,
0.1945607215166092,
0.06847178936004639,
0.32229116559028625,
0.3032740354537964,
0.16519562900066376,
0.18117041885852814,
-0.08166668564081192,
0.11702204495668411,
-0.2199329137802124,
-0.3883651793003082,
-0.20604334771633148,
0.20928382873535156,
-0.2708132863044739,
0.26425981521606445,
-0.08326995372772217,
-0.2192164808511734,
0.08026699721813202,
0.09913305938243866,
0.36406928300857544,
-0.18915973603725433,
0.2466815561056137,
-0.10566983371973038,
-0.38311484456062317,
-0.14455747604370117,
0.18933793902397156,
0.17552682757377625,
-0.017711473628878593,
0.05326484143733978,
-0.2982359528541565,
-0.01645587757229805,
0.40270519256591797,
0.03941061347723007,
-0.029129762202501297,
-0.025731761008501053,
0.36445003747940063,
-0.17752999067306519,
0.2638610601425171,
-0.15542365610599518,
0.2872300148010254,
0.027291571721434593,
0.16047345101833344,
0.21987192332744598,
0.5499914288520813,
-0.1693306714296341,
-0.1779455840587616,
-0.07623297721147537,
-0.07281918078660965,
-0.06831581890583038,
0.05826019123196602,
0.1486591398715973,
-0.14891839027404785,
0.3247837424278259,
-0.0285172276198864,
0.47125524282455444,
-0.4881336987018585,
-0.015309817157685757,
-0.08798187226057053,
-0.10884159803390503,
0.3033909201622009,
-0.09879934787750244,
0.11652915924787521,
0.24114187061786652,
0.01729925535619259,
0.08729658275842667,
-0.11014251410961151,
0.3636825382709503,
0.226950004696846,
0.12191718816757202,
-0.36820119619369507,
-0.40272256731987,
0.23166869580745697,
-0.5078883767127991,
-0.4552854597568512,
0.5677570104598999,
-0.02766510657966137,
0.20081718266010284,
-0.15344549715518951,
0.06044179946184158,
0.0807492583990097,
0.04799969494342804,
0.03485022485256195,
0.03607805073261261,
-0.019408944994211197,
-0.10792139172554016,
-0.470849871635437,
-0.16076670587062836,
0.26079416275024414,
-0.2098267823457718,
0.1590210497379303,
-0.11612896621227264,
-0.3203791081905365,
0.13689030706882477,
0.31587231159210205,
-0.05024005100131035,
0.03954702243208885,
0.27443012595176697,
-0.13267171382904053,
0.2099832445383072,
0.03756918013095856,
0.17197605967521667,
0.23739269375801086,
0.20092014968395233,
0.08072760701179504,
-0.05354783311486244,
-0.07819268107414246,
-0.26059389114379883,
0.29239174723625183,
0.1945406198501587,
-0.36514076590538025,
0.38403835892677307,
0.22036977112293243,
0.04898160696029663,
-0.43722501397132874,
-0.004982273560017347,
-0.19044260680675507,
0.2824562191963196,
-0.44940316677093506,
-0.1749294549226761,
-0.39776068925857544,
0.10783471912145615,
-0.13616088032722473,
-0.021801315248012543,
0.07109568268060684,
0.04367765039205551,
0.3717922270298004,
-0.0027073477394878864,
-0.08599761873483658,
0.27434536814689636,
0.15010787546634674,
0.19156567752361298,
-0.11042275279760361,
0.17134159803390503,
-0.00966867245733738,
0.1939067393541336,
-0.47101861238479614,
0.04524574056267738,
-0.16064666211605072,
-0.2644656002521515,
0.15043818950653076,
-0.19257451593875885,
-0.10991416126489639,
-0.41434648633003235,
-0.07154633849859238,
0.14787308871746063,
-0.19166184961795807,
0.42321425676345825,
0.2326951026916504,
-0.042613983154296875,
-0.1860426962375641,
-0.19443050026893616,
-0.18875953555107117,
-0.03107217140495777,
-0.06713001430034637,
0.07144732773303986,
-0.13463948667049408,
0.041585247963666916,
-0.256131649017334,
-0.8888216614723206,
0.10030192136764526,
-0.22046783566474915,
0.7185165882110596,
0.059935007244348526,
-0.04604960232973099,
0.541236400604248,
0.2822044789791107,
0.2012920081615448,
0.07925409823656082,
0.1863066554069519,
-0.37138819694519043,
-0.12307988852262497,
0.07925894111394882,
0.029345648363232613,
-0.4573096036911011,
-0.29831451177597046,
0.19363848865032196,
0.1548014134168625,
0.20741137862205505,
-0.49533894658088684,
0.3497346043586731,
-0.10899466276168823,
-0.13062965869903564,
0.010286670178174973,
-0.19891054928302765,
0.2906792163848877,
-0.2038048654794693,
-0.11591603606939316,
-0.2554522454738617,
0.11759098619222641,
0.38969501852989197,
0.10179585963487625,
0.11271217465400696,
0.33986327052116394,
0.21604904532432556,
0.2003069818019867,
0.3506760895252228,
0.7158638834953308,
0.08281904458999634,
0.03901742771267891,
-0.12803426384925842,
0.4244539439678192,
-0.07285545766353607,
-0.0528327114880085,
0.16007670760154724,
0.059085432440042496,
-0.10871164500713348,
0.4583726227283478,
-0.08424266427755356,
-0.025511711835861206,
-0.02933630906045437,
-0.06426793336868286,
-0.09048865735530853,
-0.3277724087238312,
-0.02252042107284069,
-0.4580344259738922,
0.05129628628492355,
0.15355095267295837,
0.29638051986694336,
0.12800507247447968,
-0.11446725577116013,
-0.04528605937957764,
0.14417490363121033,
0.31945720314979553,
-0.1257755309343338,
-0.3150961995124817,
-0.36130720376968384,
-0.41538962721824646,
0.06127751246094704,
0.18691854178905487,
0.5611055493354797,
-0.28809431195259094,
-0.201972097158432,
0.22314360737800598,
0.10430219769477844,
0.4215114414691925,
-0.3380559980869293,
-0.04229264333844185,
0.12516437470912933,
0.2728695571422577,
-0.2976227104663849,
-0.07354428619146347,
-0.3262292444705963,
-0.28998544812202454,
0.2791605293750763,
0.09725389629602432,
-0.11770714074373245,
-0.13511934876441956,
0.0686609297990799,
0.058421265333890915,
0.01673164591193199,
-0.09900462627410889,
-0.03321884572505951,
0.030631685629487038,
-0.027278484776616096,
0.16377682983875275,
0.1725984513759613,
-0.12480469048023224,
-0.49191075563430786,
-0.38490432500839233,
-0.055466555058956146,
0.1896434873342514,
0.5516815781593323,
0.022109493613243103,
0.2840604782104492,
-0.1308683305978775,
0.24397940933704376,
0.23573675751686096,
-0.2960317134857178,
0.25807973742485046,
0.19366015493869781,
0.11734854429960251,
-0.04140166565775871,
0.13703787326812744,
-0.12600745260715485,
0.3830214738845825,
0.3855087161064148,
-0.43498072028160095,
-0.018978707492351532,
-0.33858722448349,
0.18403339385986328,
-0.28294837474823,
0.3459417521953583,
0.4015238583087921,
-0.1441546380519867,
-0.12607985734939575,
-0.4360540211200714,
0.4181835949420929,
0.022924423217773438,
-0.16401274502277374,
0.4557494521141052,
0.16198097169399261,
-0.24609807133674622,
0.19271530210971832,
-0.15675139427185059,
0.8095880150794983,
0.1871284544467926,
0.26675108075141907,
0.3340376317501068,
0.11093434691429138,
0.1609194278717041,
-0.42877495288848877,
0.03568406403064728,
-0.005584573373198509,
0.06986363977193832,
-0.13060876727104187,
0.08970127999782562,
-0.16814322769641876,
0.3797655701637268,
-0.29194098711013794,
-0.0783907100558281,
0.2101621776819229,
0.19728395342826843,
0.2774980962276459,
-0.07884607464075089,
-0.25814110040664673,
0.018633011728525162,
0.08974552899599075,
0.04583124443888664,
0.05874452367424965,
0.3057941198348999,
0.28881847858428955,
-0.1282045990228653,
0.009775674901902676,
-0.2652765214443207,
-0.6595219373703003,
0.02032470703125,
-0.5996918678283691,
-0.09471026808023453,
0.1489199548959732,
-0.3863424062728882,
0.1838311105966568,
0.3397494852542877,
0.1764550507068634,
0.43374067544937134,
-0.46330714225769043,
-0.02679951675236225,
0.25110888481140137,
0.11319918185472488,
-0.024627290666103363,
-0.08301451802253723,
0.3481529653072357,
-0.08403220772743225,
-0.14340582489967346,
-0.07100500911474228,
0.02812023088335991,
0.16605690121650696,
-0.15452416241168976,
-0.049685440957546234,
-0.11856717616319656,
-0.3426324725151062,
0.04977153241634369,
0.09896039962768555,
0.15278923511505127,
-0.23698371648788452,
0.06800445914268494,
-0.1038808822631836,
-0.06512219458818436,
0.27426373958587646,
0.277946799993515,
-0.503237783908844,
-0.10895788669586182,
0.5379330515861511,
-0.08357374370098114,
0.10776522010564804,
0.6408994793891907,
-0.1893860399723053,
-0.05129902437329292,
-0.27751925587654114,
0.01687031239271164,
0.25908559560775757,
-0.3368995189666748,
0.17191721498966217,
0.03212519362568855,
0.3006647527217865,
0.09660191088914871,
-0.0444740392267704,
0.046305492520332336,
-0.05899152532219887,
-0.2513127624988556,
-0.23893383145332336,
-0.0812482014298439,
0.12002317607402802,
0.025226600468158722,
0.2911801040172577,
0.02783859707415104,
0.36659812927246094,
0.07676167041063309,
-0.347037136554718,
-0.20176753401756287,
-0.023725206032395363,
0.05575793981552124,
0.08048586547374725,
-0.04783618822693825,
0.02786289155483246,
0.11072731763124466,
0.054518941789865494,
0.014958937652409077,
0.10270839929580688,
-0.1335517168045044,
-0.08336623013019562,
-0.2990172505378723,
0.15111862123012543,
0.2011461704969406,
0.11307302117347717,
-0.015307987108826637,
0.06508325785398483,
-0.054260849952697754,
-0.06005158647894859,
0.07611528038978577,
0.38089224696159363,
0.01741819456219673,
0.36202993988990784,
0.1188444048166275,
0.3976139724254608,
-0.09363573044538498,
-0.2623864412307739,
-0.035440754145383835,
-0.07757163792848587,
0.164493590593338,
-0.06243732199072838,
-0.18508172035217285,
-0.05809906870126724,
-0.1324889063835144,
0.02209734357893467,
0.08932268619537354,
0.151860773563385,
-0.05466020479798317,
-0.28963008522987366,
0.21353138983249664,
0.15491129457950592,
0.05066482722759247,
0.317900687456131,
-0.15313811600208282,
-0.2708626985549927,
-0.11027644574642181,
0.07899068295955658,
-0.02460882067680359,
0.017689989879727364,
-0.33513519167900085,
-0.015275385230779648,
-0.02551218494772911,
0.003125696210190654,
0.05548125132918358,
-0.35413771867752075,
0.362317830324173,
-0.01250050775706768,
0.11213480681180954,
-0.5960297584533691,
0.1129646822810173,
0.37469977140426636,
0.0613391175866127,
-0.007918132469058037,
-0.2586424946784973,
-0.2529647946357727,
-0.003520389087498188,
0.48609286546707153,
-0.24271777272224426,
0.2749045491218567,
-0.1475841999053955,
-0.026231708005070686,
0.2557944357395172,
-0.2615303695201874,
-0.24777166545391083,
0.2055235207080841,
-0.4631262421607971,
0.16095572710037231,
0.10135574638843536,
0.4035344123840332,
-0.046326156705617905,
0.10066653788089752,
-0.21050213277339935,
-0.021033477038145065,
-0.1480747014284134,
-0.15863803029060364,
-0.3575797975063324,
-0.08875349909067154,
-0.13836441934108734,
-0.17162930965423584,
-0.08024337142705917,
-0.028586508706212044,
0.12382297962903976,
0.23923295736312866,
-0.27781933546066284,
-0.5319440364837646,
-0.24919606745243073,
-0.18340706825256348,
0.2514193654060364,
-0.11409864574670792,
0.35201311111450195,
0.10312869399785995,
-0.01866029016673565,
0.16292892396450043,
0.3187715411186218,
0.5043585896492004,
0.1790822148323059,
-0.10142102092504501,
0.1203380674123764,
-0.2998444139957428,
-0.005622171331197023,
0.020882368087768555,
0.623943030834198,
0.03267795965075493,
0.11734277755022049,
0.05098727345466614,
0.05189226195216179,
0.0013063405640423298,
0.041361674666404724,
-0.00849872175604105,
0.04003812372684479,
-0.6968812942504883,
0.4176637530326843,
0.017609436064958572,
0.23933851718902588,
-0.20144841074943542,
-0.04128716513514519,
-0.21955212950706482,
0.3418332040309906,
0.6031696796417236,
0.18642191588878632,
0.01860896125435829,
-0.09348425269126892,
0.055508099496364594,
-0.18102304637432098,
0.12129179388284683,
0.07660281658172607,
-0.004844936076551676,
-0.1068459302186966,
-0.019550763070583344,
-0.2139691412448883,
0.08992556482553482,
0.2652161419391632,
0.21874336898326874,
0.015008160844445229,
-0.16383621096611023,
0.06711503118276596,
0.0615045428276062,
-0.009866972453892231,
-0.11820419877767563,
-0.2539237141609192,
0.2244306057691574,
-0.19698721170425415,
0.015160759910941124,
-0.006940149702131748,
0.14061585068702698,
0.14958646893501282,
-0.07372280210256577,
-0.13266395032405853,
0.19103118777275085,
-0.145440936088562,
-0.057077448815107346,
-0.07595013082027435,
0.17733719944953918,
0.34872037172317505,
0.06860238313674927,
0.0964069813489914,
0.35994967818260193,
-0.09155569225549698,
0.0773109495639801,
-0.41088300943374634,
-0.14205200970172882,
-0.22996008396148682,
0.29942429065704346,
0.04981209337711334,
0.33890992403030396,
0.006641858257353306,
-0.3442055284976959,
0.1354150027036667,
0.2597310543060303,
0.3330134451389313,
-0.1628267616033554,
-0.14009805023670197,
0.04773150384426117,
-0.3230915069580078,
0.2139674723148346,
0.00005607038110611029,
0.2621963918209076,
0.04306674376130104,
0.16071470081806183,
-0.5121690034866333,
-0.9930143356323242,
0.6250434517860413,
-0.7181700468063354,
-0.22365498542785645,
-0.14277704060077667,
0.2892615497112274,
0.3226870894432068,
-0.10158262401819229,
-0.5634547472000122,
-0.07286931574344635,
0.469316691160202,
-0.0401696115732193,
-0.09203068912029266,
0.11232108622789383,
0.14791136980056763,
0.31001386046409607,
-0.16443350911140442,
0.962284505367279,
0.323774516582489,
-0.16289740800857544,
0.18724048137664795,
-0.4706271290779114
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 134 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | [
-0.08848553895950317,
0.03739643841981888,
-0.02138594537973404,
0.14961223304271698,
-0.01892653852701187,
-0.07773527503013611,
0.22454918920993805,
0.3621779978275299,
-0.4294898509979248,
0.16333705186843872,
0.1525297313928604,
0.2624575197696686,
-0.43249064683914185,
-0.020130692049860954,
-0.0711195319890976,
0.23963740468025208,
-0.12686188519001007,
0.25981444120407104,
-0.33298546075820923,
-0.023114964365959167,
0.08259569853544235,
0.24257594347000122,
-0.02965633012354374,
0.028360996395349503,
-0.08659666776657104,
-0.014305408112704754,
0.2008780688047409,
-0.09348529577255249,
-0.3122861683368683,
-0.6014052033424377,
0.23048639297485352,
0.2764073312282562,
0.07687497138977051,
0.1653756946325302,
-0.00012745545245707035,
0.10650692880153656,
0.165228471159935,
-0.02306014485657215,
-0.49072274565696716,
-0.1459859013557434,
-0.1808246225118637,
0.11329256743192673,
0.011158357374370098,
-0.003239989746361971,
0.12947337329387665,
-0.23413391411304474,
0.2061719000339508,
-0.19666817784309387,
0.3206733465194702,
0.5292426347732544,
0.004974158946424723,
0.2393675297498703,
-0.1227484792470932,
0.11940953135490417,
0.3548438251018524,
-0.10677268356084824,
-0.05614645034074783,
0.07665625959634781,
0.03786716237664223,
0.2733801305294037,
0.21346043050289154,
0.31697019934654236,
0.0864056944847107,
-0.11383254826068878,
-0.29079514741897583,
-0.19388209283351898,
-0.15452031791210175,
-0.2383071929216385,
-0.2170855849981308,
0.3288347125053406,
0.7538302540779114,
-0.315024733543396,
-0.6087895631790161,
-0.34010422229766846,
0.19125784933567047,
-0.14305506646633148,
0.39232155680656433,
-0.19024549424648285,
-0.2573830187320709,
0.39083924889564514,
-0.6390119791030884,
-0.20490983128547668,
-0.3079322278499603,
0.12957222759723663,
0.015353330411016941,
-0.11475817114114761,
0.02257980965077877,
0.12358767539262772,
-0.17346058785915375,
0.06426677852869034,
0.1816415637731552,
0.1108354702591896,
0.038730230182409286,
-0.010975676588714123,
-0.14754906296730042,
-0.34127146005630493,
0.04239460080862045,
-0.18611247837543488,
0.04210289940237999,
0.42605525255203247,
0.5204833149909973,
0.0642906054854393,
-0.5445078015327454,
-0.07751543074846268,
0.17376519739627838,
0.24078643321990967,
-0.025258032605051994,
-0.2616616487503052,
0.15693041682243347,
0.04260360449552536,
0.19033247232437134,
0.17482824623584747,
0.023703819140791893,
-0.3405397832393646,
-0.1293015033006668,
0.11949249356985092,
0.33477336168289185,
-0.18882407248020172,
-0.502007007598877,
0.0776052325963974,
-0.4545804262161255,
0.18543772399425507,
-0.07164112478494644,
0.12072406709194183,
-0.2241944968700409,
0.4196060597896576,
0.15545816719532013,
0.06409808993339539,
-0.13485151529312134,
-0.40407130122184753,
0.18832175433635712,
-0.15597158670425415,
0.1908435970544815,
-0.049908269196748734,
0.29601776599884033,
-0.3722982108592987,
0.08815920352935791,
0.14277684688568115,
0.18106354773044586,
-0.12146332114934921,
-0.12798753380775452,
0.10105708986520767,
0.1780344843864441,
0.21321627497673035,
-0.1896711140871048,
0.1723005175590515,
-0.08058886975049973,
0.08845574408769608,
-0.017210740596055984,
-0.019968530163168907,
-0.17412525415420532,
-0.11035727709531784,
0.3484819233417511,
-0.019380271434783936,
-0.2260964810848236,
-0.20671167969703674,
-0.002878219122067094,
0.13417494297027588,
-0.035401009023189545,
-0.2685542404651642,
0.14787617325782776,
-0.1158052608370781,
-0.3188740909099579,
-0.015279455110430717,
0.015730317682027817,
0.2144395411014557,
-0.6616712212562561,
-0.1349114179611206,
0.1824919432401657,
-0.009823397733271122,
-0.08027292788028717,
0.25918784737586975,
-0.018248964101076126,
0.13359791040420532,
-0.021425267681479454,
0.06138467788696289,
-0.04310764744877815,
-0.42886701226234436,
-0.31873252987861633,
0.18909302353858948,
-0.27187129855155945,
0.2365472912788391,
0.17325937747955322,
-0.23176614940166473,
0.3257892429828644,
-0.1745208501815796,
0.1762596070766449,
-0.2554749548435211,
0.17862138152122498,
-0.1710289716720581,
-0.43899738788604736,
-0.4511149227619171,
0.031018957495689392,
-0.05333724990487099,
0.06812039017677307,
0.06481894850730896,
0.05645338073372841,
0.04239823669195175,
0.3488162159919739,
0.08292897790670395,
0.011816292069852352,
-0.03380238264799118,
0.2000453770160675,
-0.0843636617064476,
0.018614470958709717,
-0.22436706721782684,
0.08376632630825043,
0.20810410380363464,
0.07658204436302185,
0.17054347693920135,
0.42478474974632263,
-0.17888066172599792,
-0.24761374294757843,
0.03832334652543068,
0.18727034330368042,
0.12628544867038727,
-0.039587847888469696,
0.22733074426651,
-0.08251862227916718,
0.35044148564338684,
-0.27042415738105774,
0.4691358506679535,
-0.4019191563129425,
0.037284817546606064,
-0.05362825468182564,
-0.16358456015586853,
0.24747729301452637,
0.08259126543998718,
0.1019180417060852,
-0.039412349462509155,
-0.10327579081058502,
-0.09265559911727905,
-0.02452416718006134,
0.5187946557998657,
0.15306372940540314,
0.27677908539772034,
-0.13847601413726807,
-0.25365734100341797,
0.2143702507019043,
-0.26182711124420166,
-0.3397194743156433,
0.5486404299736023,
-0.09721933305263519,
0.4484133720397949,
-0.02551327832043171,
0.19515006244182587,
0.14047224819660187,
-0.04030890017747879,
0.07058865576982498,
-0.07319699227809906,
-0.02130892314016819,
-0.009351640939712524,
-0.5304043292999268,
-0.17360816895961761,
0.14655975997447968,
-0.21342742443084717,
0.14177797734737396,
-0.1460384577512741,
-0.20466378331184387,
-0.08465632051229477,
0.23014436662197113,
-0.021298157051205635,
0.05920875072479248,
0.1565668135881424,
0.0832526683807373,
0.21178635954856873,
0.055355254560709,
0.3183933198451996,
0.3474946916103363,
0.08311018347740173,
0.02466207556426525,
0.021408719941973686,
-0.2565383315086365,
-0.13020268082618713,
0.276820570230484,
0.21888943016529083,
-0.3133857548236847,
0.32265663146972656,
0.20633214712142944,
0.03175400570034981,
-0.43952053785324097,
0.03197167441248894,
-0.04095447063446045,
0.036723729223012924,
-0.6262533068656921,
-0.00905975978821516,
-0.551313579082489,
0.16901570558547974,
-0.330677330493927,
-0.08182651549577713,
-0.1623639166355133,
0.004767600446939468,
0.5723302364349365,
0.16943784058094025,
-0.08129160851240158,
0.21946696937084198,
-0.08763451129198074,
0.3680039048194885,
-0.19863924384117126,
-0.06180207058787346,
0.03823746368288994,
0.23595035076141357,
-0.41492560505867004,
0.002801863243803382,
0.027396803721785545,
-0.3462302088737488,
0.24148894846439362,
-0.41488128900527954,
-0.30096060037612915,
-0.23227831721305847,
-0.0679200068116188,
0.18919970095157623,
0.0653938427567482,
0.2402113378047943,
0.3457302749156952,
0.12701000273227692,
-0.01462892908602953,
-0.04187145084142685,
-0.2779379189014435,
0.048467379063367844,
-0.11599723249673843,
-0.1051497682929039,
0.13449759781360626,
0.0982847511768341,
-0.2827247381210327,
-0.8775428533554077,
0.08410231024026871,
-0.1689094454050064,
0.460431307554245,
0.07952024042606354,
0.18564237654209137,
0.3558037281036377,
0.3462037742137909,
0.10591555386781693,
-0.044132981449365616,
0.154443621635437,
-0.08820757269859314,
-0.23025813698768616,
0.09353742748498917,
0.08362101018428802,
-0.21862159669399261,
-0.0057526505552232265,
0.28069862723350525,
0.05272235721349716,
0.39157843589782715,
-0.4168853759765625,
0.26778340339660645,
0.219479501247406,
-0.13917075097560883,
0.001931242411956191,
-0.3680184781551361,
0.5466490983963013,
-0.08344060927629471,
0.01569531485438347,
-0.2377285361289978,
0.20562419295310974,
0.13749217987060547,
0.12257639318704605,
0.25491124391555786,
0.3231087923049927,
0.2804225981235504,
0.2665037214756012,
0.5263996124267578,
0.32630473375320435,
-0.21030350029468536,
0.22470645606517792,
-0.12281706929206848,
0.4726446568965912,
0.04115414619445801,
0.09224189817905426,
-0.06510765850543976,
-0.09600213170051575,
-0.18241624534130096,
0.38343527913093567,
-0.03641088306903839,
-0.07709521055221558,
-0.18889836966991425,
0.22596058249473572,
-0.2749904692173004,
-0.27291861176490784,
0.04257451370358467,
-0.3952445387840271,
0.13605716824531555,
0.2876461446285248,
0.35825595259666443,
0.10156290978193283,
0.03223603218793869,
-0.031989142298698425,
0.22707487642765045,
0.3397323191165924,
-0.009860201738774776,
-0.2052222639322281,
-0.08765032887458801,
-0.20948782563209534,
0.2032211422920227,
0.4069232642650604,
0.654161810874939,
-0.1864350289106369,
-0.0886588841676712,
0.12884780764579773,
-0.019110841676592827,
0.2862900197505951,
-0.4888174533843994,
-0.045689430087804794,
-0.07928311079740524,
0.3533953130245209,
-0.13272857666015625,
-0.12948356568813324,
-0.13578562438488007,
-0.3984863758087158,
0.11708240956068039,
0.07943473756313324,
-0.12472131848335266,
-0.033058036118745804,
-0.031541675329208374,
0.12648151814937592,
-0.108749620616436,
0.17634278535842896,
-0.14730966091156006,
-0.01872512698173523,
-0.1351139098405838,
-0.008913002908229828,
0.08401600271463394,
-0.2780798673629761,
-0.41680482029914856,
-0.0725170448422432,
-0.0888434574007988,
0.2681662142276764,
0.3895970582962036,
0.16215050220489502,
0.2874220013618469,
-0.11679863929748535,
0.023920508101582527,
0.09303995966911316,
0.098008893430233,
0.3213096857070923,
0.23710748553276062,
0.17381651699543,
-0.18433843553066254,
0.06306011974811554,
0.0820486918091774,
0.10178317874670029,
0.5416080951690674,
-0.33630242943763733,
-0.11839969456195831,
-0.14562241733074188,
0.09618891030550003,
-0.2815687358379364,
0.3941448926925659,
0.539712131023407,
-0.28543001413345337,
-0.32506778836250305,
-0.42892584204673767,
0.4246484935283661,
-0.09044729173183441,
-0.2281326800584793,
0.3700994551181793,
0.10165242850780487,
-0.3230114281177521,
0.151136577129364,
0.0276337917894125,
0.9220045804977417,
0.20887258648872375,
0.20676366984844208,
0.1859176605939865,
-0.12466597557067871,
0.4331420958042145,
-0.5090645551681519,
0.15221183001995087,
0.11980853229761124,
0.010109176859259605,
-0.36688733100891113,
0.10920111835002899,
0.09159383177757263,
0.4399716556072235,
-0.17495962977409363,
0.04851897060871124,
0.19381722807884216,
0.31994715332984924,
0.24371586740016937,
-0.022406665608286858,
-0.4007435739040375,
0.09555835276842117,
-0.1448124200105667,
-0.00006263299292186275,
0.10246670991182327,
0.28970351815223694,
0.02654236927628517,
-0.09099221974611282,
-0.049829695373773575,
-0.41635966300964355,
-0.7078105211257935,
-0.22666552662849426,
-0.4140578508377075,
-0.1478799730539322,
-0.0445113331079483,
-0.11906174570322037,
0.11901038885116577,
0.2762688398361206,
0.2014927715063095,
0.2418508529663086,
-0.3773289620876312,
0.020051511004567146,
0.014465290121734142,
0.07429463416337967,
0.10238803923130035,
-0.06534536182880402,
0.3629058003425598,
-0.07452039420604706,
0.04132712259888649,
0.0539514385163784,
-0.07981888204813004,
-0.06716109812259674,
-0.10244514793157578,
-0.045586682856082916,
-0.05519712716341019,
-0.3396160900592804,
0.13256743550300598,
-0.10264438390731812,
0.05456135794520378,
-0.19854941964149475,
-0.009255721233785152,
-0.21274001896381378,
0.11213671416044235,
0.1885816901922226,
0.08923914283514023,
-0.4363737404346466,
-0.09784963726997375,
0.6311430931091309,
-0.2886927127838135,
0.12894712388515472,
0.4841490089893341,
-0.31600916385650635,
-0.03331701084971428,
-0.19413617253303528,
-0.021365977823734283,
-0.199296772480011,
-0.5194514393806458,
0.01478554867208004,
-0.04460396245121956,
0.08007589727640152,
-0.127022385597229,
0.0733652114868164,
0.18021734058856964,
0.17705866694450378,
-0.17994338274002075,
-0.3772442042827606,
0.042002297937870026,
0.25798964500427246,
0.24474868178367615,
0.34691932797431946,
0.09963702410459518,
0.21878091990947723,
-0.004220042377710342,
-0.519398033618927,
-0.10863862931728363,
-0.10017815232276917,
0.11440450698137283,
0.007444869261234999,
0.05807429179549217,
0.34956392645835876,
0.0714687705039978,
-0.25467002391815186,
-0.14409896731376648,
0.15392433106899261,
-0.14973683655261993,
0.02246038243174553,
-0.2373712807893753,
0.22851614654064178,
0.04685678705573082,
0.1454445719718933,
-0.042526695877313614,
-0.016445204615592957,
-0.030559470877051353,
0.044814333319664,
-0.0886743888258934,
0.35844728350639343,
0.10184165835380554,
0.19138099253177643,
0.14217685163021088,
0.40535223484039307,
-0.2433030903339386,
-0.06507067382335663,
0.06824701279401779,
0.19817356765270233,
0.12253765016794205,
0.2254868447780609,
-0.20100919902324677,
-0.07133129239082336,
-0.1664494276046753,
0.25832486152648926,
0.22472484409809113,
0.05033387616276741,
0.05949580669403076,
-0.1397160291671753,
0.24661479890346527,
0.07862827926874161,
0.35037311911582947,
0.6881967186927795,
-0.11853569000959396,
-0.4578855633735657,
0.18319988250732422,
-0.02709907293319702,
-0.13172407448291779,
-0.025419682264328003,
-0.3005431294441223,
0.046586230397224426,
-0.16275538504123688,
0.1273007094860077,
0.014953858219087124,
-0.35178354382514954,
0.4608776569366455,
0.12135744839906693,
0.14003607630729675,
-0.4294634461402893,
0.18580777943134308,
0.6682867407798767,
0.003441578708589077,
0.21896907687187195,
-0.4196907877922058,
-0.30387040972709656,
0.11694075912237167,
0.31700098514556885,
-0.37696436047554016,
0.26903238892555237,
-0.17610181868076324,
-0.0776476040482521,
0.004576599225401878,
-0.11818107217550278,
-0.3301260769367218,
0.2845061123371124,
-0.058604538440704346,
0.47382697463035583,
0.5105357766151428,
0.5142284035682678,
-0.017204584553837776,
-0.09095622599124908,
-0.4596332013607025,
0.09346669912338257,
0.08788758516311646,
-0.19864867627620697,
-0.5646126866340637,
-0.2639586925506592,
-0.14811073243618011,
-0.020208634436130524,
-0.1672481745481491,
0.11140469461679459,
0.21923983097076416,
0.28841888904571533,
-0.277906596660614,
-0.5320426225662231,
-0.21588298678398132,
-0.23740226030349731,
0.31708526611328125,
-0.20494380593299866,
0.2701928913593292,
0.20360524952411652,
0.07741139084100723,
0.2706262171268463,
0.3161221444606781,
0.4058339595794678,
0.09155771881341934,
0.007994083687663078,
0.026318050920963287,
-0.2494981437921524,
0.227777361869812,
0.02649737522006035,
0.41854149103164673,
-0.0022925531957298517,
0.16655422747135162,
0.33608853816986084,
-0.029655367136001587,
0.056384678930044174,
0.18972766399383545,
-0.3109252154827118,
0.01602993905544281,
-0.8132577538490295,
0.36782899498939514,
-0.019311636686325073,
0.25328561663627625,
-0.20531360805034637,
0.03597167506814003,
-0.037747573107481,
0.36392438411712646,
0.37465375661849976,
0.20767644047737122,
0.07155431807041168,
-0.001427651266567409,
-0.0013188383309170604,
0.04279618710279465,
0.18326342105865479,
0.31724685430526733,
-0.05974048003554344,
0.011521498672664165,
-0.01770905964076519,
-0.5737124085426331,
0.04231693595647812,
0.051037367433309555,
0.06254477053880692,
-0.010965663939714432,
-0.2795845568180084,
0.22456173598766327,
0.3119564950466156,
0.14393608272075653,
-0.03900352865457535,
-0.27613064646720886,
0.3555091917514801,
-0.14906185865402222,
0.06748281419277191,
-0.03360201418399811,
0.20493945479393005,
0.09367935359477997,
-0.47587043046951294,
0.12594519555568695,
0.06968577206134796,
-0.23212018609046936,
-0.041186876595020294,
-0.0239273589104414,
0.15239302814006805,
0.11860159039497375,
0.20390552282333374,
0.04176235571503639,
0.35597866773605347,
-0.06772875040769577,
-0.11481417715549469,
-0.5655714273452759,
-0.09749531745910645,
-0.24597424268722534,
0.3128051459789276,
-0.13745902478694916,
0.3027486503124237,
-0.14506280422210693,
0.044084496796131134,
-0.007792424876242876,
0.38808220624923706,
0.35656222701072693,
0.0990421324968338,
-0.16239474713802338,
-0.2619997262954712,
-0.32274144887924194,
0.13922475278377533,
0.2651118338108063,
0.24506515264511108,
-0.031061384826898575,
0.11291582882404327,
-0.43958744406700134,
-0.7549797296524048,
0.44633936882019043,
-0.5544971823692322,
-0.09524467587471008,
0.016279911622405052,
0.3003898561000824,
0.35469093918800354,
-0.08896282315254211,
-0.5038304328918457,
-0.10517779737710953,
0.369812935590744,
0.06514520198106766,
-0.04761224612593651,
0.058350421488285065,
0.11366807669401169,
0.0546238012611866,
-0.027861041948199272,
1.0447942018508911,
0.21618226170539856,
-0.1762981116771698,
0.10371338576078415,
-0.4345038831233978
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 47 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| [
-0.3742080628871918,
0.14785833656787872,
0.08840722590684891,
0.04588618129491806,
0.28045374155044556,
0.12814918160438538,
0.15311060845851898,
0.37765148282051086,
-0.24275626242160797,
0.2011217325925827,
0.3052014708518982,
0.4177034795284271,
-0.18650098145008087,
0.11496080458164215,
-0.14790168404579163,
0.009955640882253647,
0.05309251323342323,
0.2520793378353119,
0.12918181717395782,
0.006046579219400883,
-0.10626426339149475,
0.17224428057670593,
-0.19424960017204285,
0.28157973289489746,
-0.29421672224998474,
0.11772777885198593,
-0.04198155552148819,
-0.04793929681181908,
-0.12908288836479187,
-0.5930626392364502,
0.33762115240097046,
-0.15897870063781738,
0.24371512234210968,
0.33999085426330566,
-0.00012674675963353366,
0.11141245067119598,
0.4063086211681366,
-0.008188435807824135,
-0.25496798753738403,
-0.502197265625,
-0.12179329991340637,
-0.05364849045872688,
0.36649489402770996,
-0.08176565170288086,
0.10271166265010834,
-0.7000572085380554,
0.013414396904408932,
0.04993534833192825,
-0.16594797372817993,
0.329719215631485,
0.13600169122219086,
0.06373371928930283,
0.2616913914680481,
-0.0975201427936554,
0.22518645226955414,
0.062126655131578445,
-0.007968110032379627,
0.4649413824081421,
0.07230982184410095,
-0.11018970608711243,
0.23560042679309845,
-0.08482468128204346,
0.06871280074119568,
-0.05136876553297043,
0.0992346778512001,
0.18255452811717987,
0.2629989683628082,
-0.16270986199378967,
0.19890327751636505,
0.03185831382870674,
0.5882601141929626,
-0.626343309879303,
-0.42981502413749695,
-0.01766178384423256,
0.2202073484659195,
-0.2607835829257965,
0.2262852042913437,
0.2429364025592804,
-0.10094113647937775,
0.16287264227867126,
-0.05700244754552841,
-0.12062130868434906,
-0.06353504955768585,
-0.016481665894389153,
-0.4222542345523834,
0.33657920360565186,
0.18812862038612366,
0.14030826091766357,
-0.11323992162942886,
-0.009330072440207005,
0.002507462166249752,
-0.10973335802555084,
0.101992666721344,
-0.07801572978496552,
-0.27467337250709534,
-0.014431532472372055,
-0.07753405719995499,
0.1633087545633316,
0.1757597029209137,
0.20840856432914734,
0.003034478984773159,
-0.2792116105556488,
0.2704051434993744,
0.08605946600437164,
0.10359609872102737,
0.12690822780132294,
-0.020438766106963158,
0.15629267692565918,
0.10058408230543137,
-0.10707658529281616,
0.06900408118963242,
-0.003142530797049403,
-0.058131154626607895,
-0.05682428926229477,
0.38155367970466614,
0.02834111452102661,
0.7426701784133911,
-0.2355118691921234,
-0.20667126774787903,
0.17393015325069427,
-0.3724193871021271,
-0.17932485044002533,
-0.2660052478313446,
0.21872395277023315,
0.03055783174932003,
0.36071738600730896,
-0.1849217265844345,
0.33207371830940247,
-0.09560511261224747,
-0.2356073558330536,
-0.11359497904777527,
0.14577223360538483,
0.0022742797154933214,
-0.15496140718460083,
0.026871666312217712,
-0.31019285321235657,
-0.08789687603712082,
0.39052367210388184,
0.0014739196049049497,
0.12603192031383514,
-0.14159922301769257,
-0.05417347699403763,
-0.15362390875816345,
0.47547611594200134,
-0.2805735170841217,
0.25407636165618896,
0.13056603074073792,
-0.4681428372859955,
-0.3429701626300812,
0.21160925924777985,
-0.20337703824043274,
-0.4039483070373535,
-0.4072814881801605,
0.12810848653316498,
-0.12722809612751007,
-0.18097586929798126,
-0.14971782267093658,
-0.005261977203190327,
0.23063449561595917,
-0.15096963942050934,
-0.014637237414717674,
-0.6668524742126465,
0.10322347283363342,
-0.31990474462509155,
0.2467019259929657,
0.1543770730495453,
-0.633502721786499,
0.008750765584409237,
0.170479416847229,
-0.1900210827589035,
0.16581562161445618,
-0.11979783326387405,
0.005515075288712978,
-0.1398761123418808,
0.029038751497864723,
0.04766340181231499,
0.34689319133758545,
-0.19558563828468323,
-0.3685944974422455,
0.07286830991506577,
0.058083415031433105,
-0.00023772210988681763,
0.25941330194473267,
-0.3139028549194336,
0.04742277041077614,
0.18081918358802795,
-0.16790656745433807,
0.08111031353473663,
0.0019090173300355673,
0.016069598495960236,
-0.17401175200939178,
-0.04215655103325844,
0.38285356760025024,
0.2783961594104767,
0.14992137253284454,
-0.16017569601535797,
0.029361095279455185,
-0.20058467984199524,
0.1286725252866745,
-0.08686107397079468,
0.08510517328977585,
0.02649127133190632,
0.4046371281147003,
-0.14303964376449585,
0.033946577459573746,
-0.21758566796779633,
-0.31970107555389404,
0.1867123246192932,
0.0698745995759964,
0.026532959192991257,
-0.3560785949230194,
-0.18485917150974274,
-0.17959009110927582,
0.10886511206626892,
-0.10848965495824814,
-0.0283283032476902,
0.005801937077194452,
0.3832256495952606,
0.07114604115486145,
0.1115475594997406,
-0.29748275876045227,
0.24753792583942413,
0.024240953847765923,
0.17813517153263092,
-0.021211273968219757,
0.4727582335472107,
-0.40825772285461426,
-0.3153121769428253,
0.09022580832242966,
0.04570683836936951,
0.102862149477005,
0.03916672244668007,
-0.00020543872960843146,
0.28794193267822266,
-0.0028907782398164272,
0.05846504494547844,
-0.027676371857523918,
0.22501429915428162,
0.013864954933524132,
-0.172501340508461,
-0.19266095757484436,
0.256588876247406,
0.0011453431798145175,
0.40098264813423157,
0.1184246763586998,
0.3715970814228058,
0.551864743232727,
0.30029913783073425,
-0.02345987781882286,
0.0936504676938057,
-0.15085269510746002,
-0.016852721571922302,
0.1085570827126503,
-0.0839209333062172,
0.039352525025606155,
-0.10693004727363586,
0.21006657183170319,
-0.00770005164667964,
-0.5035154819488525,
0.08402041345834732,
0.38331732153892517,
-0.05956041067838669,
0.14520232379436493,
0.1436302214860916,
-0.26090526580810547,
0.048430152237415314,
0.03393321856856346,
0.13457836210727692,
0.27419859170913696,
0.15185455977916718,
-0.12465633451938629,
0.13092708587646484,
-0.31881675124168396,
0.16480009257793427,
0.1828397512435913,
0.10894787311553955,
0.17599813640117645,
0.18311980366706848,
0.2829287052154541,
0.08661819249391556,
-0.0567069947719574,
-0.3240150511264801,
0.13876812160015106,
0.35237953066825867,
-0.4344475567340851,
0.2530074417591095,
-0.34441322088241577,
0.2502819299697876,
-0.1669086068868637,
-0.18621069192886353,
-0.414761483669281,
-0.24293966591358185,
-0.03043806552886963,
0.09636861085891724,
0.10050343722105026,
0.23970063030719757,
-0.31220823526382446,
-0.12963062524795532,
0.04628170654177666,
-0.39881277084350586,
-0.21866901218891144,
-0.1758570373058319,
-0.44862914085388184,
-0.019090762361884117,
0.20133619010448456,
-0.39512571692466736,
0.03965185582637787,
-0.21996258199214935,
-0.21378584206104279,
-0.30605968832969666,
-0.185197114944458,
0.0833885669708252,
-0.23932886123657227,
0.2992103099822998,
0.2597305178642273,
-0.03824182227253914,
-0.047347500920295715,
-0.098890520632267,
0.3235453963279724,
-0.33215850591659546,
-0.2847578227519989,
0.10064635425806046,
-0.09428569674491882,
0.03566071391105652,
-0.06039280444383621,
-0.49700433015823364,
-0.3575110137462616,
-0.14624810218811035,
0.012423654086887836,
0.04109965264797211,
0.15556839108467102,
-0.06247178092598915,
0.23095160722732544,
-0.1249244287610054,
-0.1489117592573166,
-0.010573344305157661,
-0.027686594054102898,
0.003967163618654013,
0.23732492327690125,
0.006280253175646067,
-0.29694899916648865,
-0.05115565285086632,
0.006424936465919018,
0.08962693065404892,
0.03670378774404526,
-0.31444042921066284,
-0.14395038783550262,
0.05472937598824501,
0.5389249324798584,
-0.32073676586151123,
0.019199909642338753,
0.2970772981643677,
0.2694777846336365,
-0.036796074360609055,
0.06308837980031967,
-0.17872455716133118,
-0.18927964568138123,
0.14467932283878326,
0.1415686160326004,
0.17441296577453613,
0.24109160900115967,
-0.08494792878627777,
0.5790006518363953,
-0.07034360617399216,
-0.298630028963089,
0.25100070238113403,
-0.2920912504196167,
0.3411944508552551,
0.06305379420518875,
-0.17983002960681915,
-0.08869785070419312,
-0.0483301617205143,
0.01563979871571064,
0.2517922818660736,
-0.21847961843013763,
-0.1496746838092804,
-0.12394271045923233,
-0.2539525628089905,
-0.22122585773468018,
-0.042609911412000656,
-0.06121079996228218,
0.035998012870550156,
0.24408726394176483,
-0.05510738864541054,
0.029861584305763245,
-0.04037528112530708,
-0.05459699034690857,
0.14564427733421326,
0.30164915323257446,
-0.21570776402950287,
0.1017485111951828,
-0.18308553099632263,
-0.15270745754241943,
-0.1803332269191742,
0.3837957978248596,
0.04397004097700119,
0.4377392530441284,
0.15525394678115845,
-0.19997255504131317,
0.08330699801445007,
-0.1641712784767151,
0.5928218364715576,
-0.11870671063661575,
0.12393908947706223,
0.15854021906852722,
-0.13711534440517426,
-0.3955422341823578,
-0.414347380399704,
-0.4618232250213623,
0.0839422345161438,
0.004961406346410513,
0.197328120470047,
-0.29529038071632385,
-0.13784754276275635,
0.23053087294101715,
0.18448147177696228,
0.05069233104586601,
-0.02682379260659218,
-0.4164668321609497,
-0.06581632047891617,
-0.16919220983982086,
0.21112219989299774,
-0.12696261703968048,
0.36928629875183105,
-0.16570819914340973,
0.47812193632125854,
-0.14052420854568481,
-0.17769600450992584,
0.16546782851219177,
0.22072945535182953,
0.33840394020080566,
-0.32537007331848145,
-0.003250839188694954,
-0.19570493698120117,
0.22428937256336212,
0.6268399953842163,
0.5107086300849915,
0.3266791105270386,
-0.34252846240997314,
0.2157907485961914,
0.27692827582359314,
0.5334734320640564,
-0.019866256043314934,
-0.48275521397590637,
-0.09586048126220703,
-0.24713577330112457,
0.06028885021805763,
-0.06590321660041809,
-0.0321030355989933,
0.5593258142471313,
-0.10961019992828369,
-0.5021070241928101,
-0.020202837884426117,
0.5698212385177612,
0.18946680426597595,
-0.07937063276767731,
0.09573408961296082,
0.37784281373023987,
-0.15573731064796448,
0.36029931902885437,
-0.13346947729587555,
0.7824117541313171,
0.017545050010085106,
0.2209133505821228,
0.11558277159929276,
-0.441260427236557,
0.28626126050949097,
-0.06137903407216072,
0.09111928939819336,
-0.5176575183868408,
-0.33662280440330505,
-0.14645271003246307,
-0.23950153589248657,
0.13034364581108093,
0.014563992619514465,
-0.20682790875434875,
0.2747064530849457,
0.04758889973163605,
0.4116237461566925,
0.3609585762023926,
0.3171047866344452,
-0.07195165753364563,
0.27205127477645874,
-0.25218257308006287,
-0.021756233647465706,
-0.0593513548374176,
0.09170540422201157,
0.128119558095932,
0.05869534984230995,
-0.22393830120563507,
-0.42487630248069763,
-0.33838751912117004,
0.05846976116299629,
-0.23427794873714447,
-0.04213881865143776,
0.4508945345878601,
-0.5700247883796692,
0.11825979501008987,
0.04261555150151253,
-0.11736399680376053,
-0.032963190227746964,
-0.15812796354293823,
-0.01644033193588257,
-0.06273321807384491,
0.1840556263923645,
0.14150555431842804,
0.0766139104962349,
0.4222029447555542,
-0.011285734362900257,
-0.3214784264564514,
0.29161956906318665,
-0.03923801705241203,
0.01909777894616127,
-0.051205575466156006,
-0.019828584045171738,
0.1973825842142105,
-0.27409103512763977,
0.1948554813861847,
-0.5745170712471008,
0.2753390073776245,
-0.22365941107273102,
0.018647590652108192,
-0.10245902091264725,
0.000749720900785178,
-0.01631266623735428,
0.11780336499214172,
-0.28989002108573914,
-0.2125738561153412,
0.3666991591453552,
0.052849266678094864,
0.2823125123977661,
0.5269954800605774,
-0.06765429675579071,
-0.08177287876605988,
-0.045405879616737366,
0.052881356328725815,
0.2541746497154236,
-0.3957654535770416,
-0.04717028886079788,
-0.05437421053647995,
0.032748300582170486,
0.07908546924591064,
0.19848036766052246,
0.22373270988464355,
0.2555360198020935,
0.020118992775678635,
-0.5458890199661255,
-0.05526025965809822,
0.1743021160364151,
-0.18442228436470032,
0.04644273221492767,
0.20215794444084167,
0.2829451262950897,
0.1664929836988449,
-0.20048488676548004,
-0.18500712513923645,
-0.0044214376248419285,
-0.043110933154821396,
0.13986457884311676,
-0.1864711195230484,
0.15304221212863922,
0.13420791923999786,
-0.03256263956427574,
0.11823008954524994,
-0.21702593564987183,
-0.07061731070280075,
-0.07409846037626266,
-0.22043921053409576,
0.19820311665534973,
0.06247037649154663,
0.23938298225402832,
0.11284375935792923,
0.0884263813495636,
-0.012073373422026634,
-0.026476018130779266,
0.1066364198923111,
0.17856086790561676,
-0.2272360920906067,
0.30603137612342834,
0.4929541349411011,
-0.26229068636894226,
-0.3427828252315521,
-0.038648929446935654,
-0.1529736965894699,
-0.11577130854129791,
0.15556825697422028,
0.44990038871765137,
-0.163107767701149,
0.1811012476682663,
-0.2985672354698181,
0.040075451135635376,
-0.23881831765174866,
-0.03957748040556908,
0.1804852932691574,
-0.42563799023628235,
-0.2396807074546814,
-0.043382737785577774,
0.4485313594341278,
0.2221609354019165,
-0.23037496209144592,
-0.0980587974190712,
0.1173267662525177,
0.009072127752006054,
-0.4490540325641632,
0.03561576455831528,
0.26407670974731445,
0.15501615405082703,
-0.041029900312423706,
0.44269269704818726,
0.44890910387039185,
-0.287322074174881,
-0.09743534028530121,
0.17743970453739166,
0.49018019437789917,
0.2559274137020111,
0.16211329400539398,
0.5159204006195068,
-0.04389389604330063,
0.15822234749794006,
0.49910250306129456,
0.20054620504379272,
-0.09989028424024582,
0.43724143505096436,
-0.11245393007993698,
0.12613900005817413,
0.11646616458892822,
-0.20750384032726288,
0.04234156385064125,
-0.18604081869125366,
0.26239776611328125,
0.0324445404112339,
0.3752453327178955,
-0.26542752981185913,
0.1894049197435379,
0.331299751996994,
0.20597757399082184,
-0.2006644904613495,
-0.10158955305814743,
0.06638295948505402,
-0.07940857112407684,
-0.04491307958960533,
0.11131659895181656,
-0.2534874975681305,
-0.22936345636844635,
-0.05136595293879509,
-0.142513707280159,
-0.21004325151443481,
0.6946986317634583,
0.27506223320961,
-0.19031715393066406,
-0.30788618326187134,
0.1221388578414917,
0.11742907017469406,
0.048912934958934784,
-0.27384981513023376,
0.3728533685207367,
0.08059698343276978,
-0.08127176016569138,
0.22311697900295258,
0.3539696931838989,
0.8215017914772034,
0.24676170945167542,
-0.07579953223466873,
-0.3166641294956207,
-0.17110738158226013,
0.04289107024669647,
0.2550632655620575,
-0.012917940504848957,
0.0328654870390892,
0.03127769008278847,
0.2523142993450165,
0.07573398947715759,
0.0942193940281868,
-0.025433506816625595,
0.10409537702798843,
-0.018615836277604103,
-0.400272399187088,
0.334291934967041,
0.13773362338542938,
-0.23292234539985657,
0.033477604389190674,
0.30487748980522156,
-0.24637576937675476,
-0.0460602268576622,
0.2661556899547577,
0.559973955154419,
-0.12006783485412598,
-0.14167135953903198,
-0.009210341610014439,
0.25853198766708374,
0.31130892038345337,
0.5630505681037903,
0.15854229032993317,
-0.22429817914962769,
-0.18599288165569305,
-0.4756968915462494,
0.4308847486972809,
-0.21508201956748962,
-0.10645566135644913,
0.27602314949035645,
0.06394731253385544,
0.0704120472073555,
0.15698568522930145,
0.34716150164604187,
0.4209795594215393,
-0.39100682735443115,
0.13447120785713196,
-0.38570675253868103,
-0.2570208013057709,
0.019400320947170258,
-0.12370183318853378,
-0.07056624442338943,
-0.0510135255753994,
0.17150700092315674,
-0.5911437273025513,
0.02388029359281063,
-0.14542512595653534,
-0.23218877613544464,
0.17214511334896088,
-0.05502772703766823,
0.5031512379646301,
0.007037863600999117,
0.6460565328598022,
0.047030508518218994,
-0.19473370909690857,
-0.22843973338603973,
-0.10458704829216003,
-0.4692242741584778,
0.6017166972160339,
-0.26834794878959656,
0.22309093177318573,
-0.12355346232652664,
-0.3353493809700012,
-0.2232297956943512,
0.2529106140136719,
0.003141939640045166,
0.08841447532176971,
0.004312528297305107,
0.1209900975227356,
0.07138635218143463,
-0.04061316326260567,
-0.017388587817549706,
-0.05869895964860916,
0.015013025142252445,
0.3013276755809784,
-0.5924040079116821,
-0.6977590322494507,
0.4954080283641815,
-0.3196095824241638,
-0.3000345826148987,
-0.4309994578361511,
0.2480505108833313,
0.0159249659627676,
-0.03364286571741104,
-0.572213351726532,
0.11700476706027985,
0.46772500872612,
0.07418520003557205,
-0.2211979180574417,
-0.14956463873386383,
-0.07709529995918274,
0.3797607421875,
-0.11589547991752625,
0.4920509159564972,
-0.2867053151130676,
-0.19166092574596405,
-0.23435835540294647,
-0.2670707702636719
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 25 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | [
-0.341337651014328,
0.20062391459941864,
0.04937288165092468,
0.05718955025076866,
0.11079439520835876,
0.08544431626796722,
0.23533976078033447,
0.2816725969314575,
-0.17608508467674255,
0.13862158358097076,
0.4381387233734131,
0.33043190836906433,
-0.12948456406593323,
0.2977352440357208,
-0.1947028785943985,
0.07046408206224442,
0.013385703787207603,
0.14275354146957397,
0.34331464767456055,
0.05624355748295784,
-0.12545067071914673,
0.2392580658197403,
-0.19467231631278992,
0.1283947378396988,
-0.13299788534641266,
0.03721284866333008,
-0.1708892285823822,
0.04085744544863701,
-0.13878175616264343,
-0.46809273958206177,
0.4385559856891632,
0.0902261957526207,
0.18195535242557526,
0.6217027902603149,
-0.00012995164433959872,
0.13805070519447327,
0.4102705419063568,
-0.08854315429925919,
-0.2731282413005829,
-0.5470474362373352,
0.07749156653881073,
-0.012697752565145493,
0.3988085091114044,
-0.10407895594835281,
0.09655679762363434,
-0.3847823739051819,
-0.04488130658864975,
0.10923196375370026,
-0.06790287792682648,
0.37743133306503296,
0.08926317095756531,
0.25613096356391907,
0.08928438276052475,
0.013017733581364155,
0.2664370536804199,
0.32022330164909363,
-0.17905496060848236,
0.4346643090248108,
0.1634719967842102,
-0.13685297966003418,
0.18223150074481964,
-0.0818934366106987,
-0.0010011737467721105,
0.03811272233724594,
0.05876642465591431,
0.06501376628875732,
-0.005422146990895271,
-0.27568867802619934,
0.20956093072891235,
-0.00467640021815896,
0.47382688522338867,
-0.565561830997467,
-0.49996712803840637,
0.032570187002420425,
0.13106900453567505,
-0.2759970724582672,
0.1989559382200241,
0.1092875748872757,
-0.24751417338848114,
0.1120673343539238,
-0.1768939346075058,
-0.12104937434196472,
-0.0797204077243805,
-0.05970526486635208,
-0.4520736038684845,
0.19554360210895538,
0.1415925920009613,
0.19336971640586853,
0.0005672616534866393,
-0.00804499164223671,
0.08257599920034409,
-0.10773399472236633,
0.1832359880208969,
-0.02020062506198883,
-0.23837940394878387,
-0.07612527906894684,
0.07234878093004227,
0.3277743458747864,
0.2713031768798828,
0.4195837378501892,
0.040355384349823,
-0.13066734373569489,
0.17426611483097076,
0.09461865574121475,
0.06765323877334595,
0.20153214037418365,
-0.032532669603824615,
0.11007596552371979,
0.26883625984191895,
0.002264883369207382,
0.025136958807706833,
-0.034052774310112,
-0.08208825439214706,
-0.1183394193649292,
0.2201671600341797,
0.030795106664299965,
0.8329046964645386,
-0.31006190180778503,
-0.26441365480422974,
0.0647200271487236,
-0.41314128041267395,
-0.14563427865505219,
-0.1949632167816162,
0.21203361451625824,
0.10630185902118683,
0.39915043115615845,
-0.0541125163435936,
0.3935266137123108,
-0.09280611574649811,
-0.03351525962352753,
-0.12549848854541779,
0.09602139890193939,
0.07410915940999985,
-0.07458329945802689,
0.22435027360916138,
-0.3418164849281311,
-0.021451767534017563,
0.27858492732048035,
0.23174980282783508,
0.16883604228496552,
0.08478698879480362,
0.1707448810338974,
-0.015823854133486748,
0.5882760882377625,
-0.11708449572324753,
0.3030572831630707,
0.18088684976100922,
-0.46626728773117065,
-0.3240085542201996,
0.29424765706062317,
-0.3417186141014099,
-0.31198376417160034,
-0.15444673597812653,
0.03956257551908493,
-0.33098283410072327,
-0.22794091701507568,
-0.22301071882247925,
-0.19956418871879578,
0.2305959314107895,
-0.09554367512464523,
0.03778272867202759,
-0.643155038356781,
0.11010097712278366,
-0.24519722163677216,
0.26608800888061523,
0.2522028684616089,
-0.453264445066452,
0.05512867495417595,
-0.005815982818603516,
0.007762579247355461,
0.1686532348394394,
0.10818476229906082,
-0.06993575394153595,
-0.1368119716644287,
-0.025997702032327652,
0.08007187396287918,
0.45209282636642456,
-0.41717615723609924,
-0.3087322413921356,
0.25049713253974915,
-0.05021003261208534,
0.05252717435359955,
0.2544586956501007,
-0.40992432832717896,
0.06706258654594421,
0.10915636271238327,
-0.10234104841947556,
-0.055972203612327576,
-0.013213785365223885,
0.1008467748761177,
-0.11708726733922958,
-0.051847685128450394,
0.42051082849502563,
0.25924569368362427,
0.0945972353219986,
-0.1817268282175064,
-0.061567503958940506,
-0.3520298898220062,
0.20803724229335785,
-0.05817336589097977,
-0.00003435286271269433,
-0.0472281314432621,
0.4154101610183716,
-0.30174046754837036,
0.03766315057873726,
-0.005455305799841881,
-0.28100135922431946,
0.23539802432060242,
0.13972409069538116,
0.18325166404247284,
-0.4007815718650818,
-0.24609670042991638,
-0.29574206471443176,
0.11209286004304886,
-0.18158558011054993,
-0.025083443149924278,
-0.07342308759689331,
0.36766013503074646,
0.09435737878084183,
0.09085134416818619,
-0.24598686397075653,
0.12316189706325531,
-0.05497056990861893,
0.12163850665092468,
-0.015705471858382225,
0.3610078990459442,
-0.39767488837242126,
-0.31142041087150574,
0.14861848950386047,
0.015298169106245041,
0.15521037578582764,
-0.0953352227807045,
0.049207597970962524,
0.1977922022342682,
0.018292583525180817,
-0.061507366597652435,
0.02491392008960247,
0.23711799085140228,
0.09744882583618164,
-0.1439387947320938,
-0.13205422461032867,
0.2738497853279114,
-0.052751410752534866,
0.22889208793640137,
0.008953830227255821,
0.44835060834884644,
0.4337402582168579,
0.4135376811027527,
-0.00529156718403101,
0.13313739001750946,
-0.07898011803627014,
0.04646489769220352,
-0.10265859216451645,
0.02354184351861477,
0.06232080236077309,
-0.15796852111816406,
0.23855753242969513,
-0.008310879580676556,
-0.4083739221096039,
0.1789083033800125,
0.47559696435928345,
0.004527673590928316,
0.051207587122917175,
0.1263183355331421,
-0.04640507325530052,
0.013515371829271317,
0.14270572364330292,
0.11966025084257126,
0.3690716624259949,
0.13157062232494354,
-0.12699872255325317,
0.1280190348625183,
-0.308966726064682,
-0.00024045069585554302,
0.08813679218292236,
0.08554084599018097,
-0.01772419549524784,
0.10669928044080734,
0.2934767007827759,
0.009474853985011578,
-0.17146199941635132,
-0.5069291591644287,
0.13862842321395874,
0.35239237546920776,
-0.5544538497924805,
0.2957422733306885,
-0.25999611616134644,
0.24121856689453125,
-0.056394897401332855,
-0.09951742738485336,
-0.3512249290943146,
-0.34003323316574097,
-0.04263388365507126,
0.13224749267101288,
0.1855415254831314,
0.19873251020908356,
-0.31568917632102966,
0.08581462502479553,
0.027885666117072105,
-0.5474073886871338,
-0.3988511264324188,
-0.225047767162323,
-0.34328123927116394,
-0.008241544477641582,
0.3350314199924469,
-0.34401944279670715,
0.1043744683265686,
-0.35360071063041687,
-0.06156033277511597,
-0.3151574432849884,
-0.3276815116405487,
0.09710325300693512,
-0.3790064752101898,
0.3400278091430664,
0.2641104459762573,
0.1390075534582138,
-0.0936909019947052,
-0.07758510857820511,
0.2825624346733093,
-0.3451506197452545,
-0.3498208820819855,
0.05580327287316322,
-0.03937041759490967,
-0.08165889978408813,
-0.22975219786167145,
-0.4395768344402313,
-0.17561176419258118,
-0.1256151646375656,
0.1797545850276947,
0.13457636535167694,
0.08945037424564362,
0.16021254658699036,
0.2617311179637909,
-0.1119605228304863,
0.0015937850112095475,
-0.08004545420408249,
0.04162616282701492,
-0.18531940877437592,
0.31138554215431213,
-0.12298932671546936,
-0.2905152142047882,
0.0768144279718399,
0.09018794447183609,
0.256783664226532,
0.09056394547224045,
-0.3195665180683136,
-0.2088567167520523,
0.007146225310862064,
0.5721033811569214,
-0.15281720459461212,
0.05895749479532242,
0.395041823387146,
0.18017232418060303,
0.03358040377497673,
0.030317354947328568,
-0.2007780820131302,
-0.09942629933357239,
0.15768353641033173,
0.056193843483924866,
0.19561955332756042,
0.22704407572746277,
-0.06458111107349396,
0.7777853608131409,
-0.09126584231853485,
-0.24775220453739166,
0.3013986051082611,
-0.3482934832572937,
0.41254958510398865,
0.0924602746963501,
-0.31436318159103394,
-0.11483370512723923,
-0.004349398426711559,
-0.0983639732003212,
0.17193569242954254,
-0.1672712117433548,
-0.19684916734695435,
-0.13160842657089233,
-0.2043842077255249,
-0.11719811707735062,
-0.09018582105636597,
-0.04581400007009506,
-0.014827290549874306,
0.27997562289237976,
-0.03968774527311325,
0.16787555813789368,
-0.13242284953594208,
-0.04968709871172905,
0.17422673106193542,
0.44276973605155945,
-0.019697610288858414,
0.023719007149338722,
-0.2624482214450836,
-0.29406803846359253,
-0.2959466874599457,
0.3724195957183838,
0.061156757175922394,
0.4008820056915283,
-0.02668098732829094,
-0.16103169322013855,
0.10310492664575577,
-0.30256080627441406,
0.6163406372070312,
-0.24014276266098022,
0.08069346100091934,
0.34219127893447876,
-0.22505232691764832,
-0.4068380892276764,
-0.32001248002052307,
-0.4515897035598755,
0.1839897483587265,
-0.02797752059996128,
0.259449303150177,
-0.2801227271556854,
-0.3214554786682129,
0.26712748408317566,
0.10506078600883484,
0.06642970442771912,
0.028871087357401848,
-0.5246196985244751,
-0.44299188256263733,
-0.29866746068000793,
0.2140107899904251,
0.05449831485748291,
0.25459158420562744,
-0.35635876655578613,
0.4444730281829834,
-0.07122988253831863,
-0.2317398488521576,
0.24845550954341888,
0.2951730787754059,
0.2508280575275421,
-0.13306011259555817,
-0.06405563652515411,
-0.1815863400697708,
0.00977616012096405,
0.47769421339035034,
0.5681918263435364,
0.37771791219711304,
-0.2568674385547638,
0.37691009044647217,
0.20318174362182617,
0.575868546962738,
0.22579051554203033,
-0.40592557191848755,
-0.05272067338228226,
-0.11496587842702866,
-0.03791375085711479,
-0.08098933100700378,
0.12207614630460739,
0.5143463611602783,
-0.21527943015098572,
-0.3515264391899109,
-0.06738010048866272,
0.3762577772140503,
0.2904917001724243,
-0.04916898161172867,
0.12100917100906372,
0.40698346495628357,
-0.13312673568725586,
0.31321024894714355,
-0.13128042221069336,
0.8649083971977234,
0.05738084390759468,
0.25698310136795044,
0.17126913368701935,
-0.32267114520072937,
0.08208952099084854,
-0.003962195012718439,
0.017548369243741035,
-0.4571154713630676,
-0.16863684356212616,
-0.17968274652957916,
-0.29546499252319336,
0.23048393428325653,
-0.022618230432271957,
-0.18655911087989807,
0.22972257435321808,
0.060124337673187256,
0.49950656294822693,
0.43009039759635925,
0.396660715341568,
-0.23162293434143066,
0.3145558834075928,
-0.219442680478096,
-0.017298642545938492,
0.029301945120096207,
0.22863081097602844,
0.12447752803564072,
-0.0027929511852562428,
-0.2746598422527313,
-0.49614617228507996,
-0.370462566614151,
-0.025693845003843307,
-0.289031982421875,
-0.11042344570159912,
0.32958945631980896,
-0.748252809047699,
0.24864789843559265,
0.03392188623547554,
0.10982604324817657,
0.007535002660006285,
-0.3014063537120819,
0.03664793074131012,
-0.10047586262226105,
0.11640555411577225,
0.2305585891008377,
-0.012688860297203064,
0.37980547547340393,
0.0022485831286758184,
-0.369571715593338,
0.24874749779701233,
-0.07758910208940506,
-0.12840673327445984,
-0.10458077490329742,
0.06520964205265045,
-0.041656624525785446,
-0.3378787338733673,
0.17437396943569183,
-0.5917772650718689,
0.1822236329317093,
-0.0884273424744606,
-0.020644353702664375,
-0.11919237673282623,
0.09580054879188538,
0.02543393336236477,
0.2053673267364502,
-0.2256229817867279,
-0.12507161498069763,
0.27431318163871765,
-0.0698663592338562,
0.16882957518100739,
0.5413681268692017,
-0.013897482305765152,
0.04178481921553612,
-0.037935275584459305,
0.03379374369978905,
0.2881397008895874,
-0.42255717515945435,
0.019372615963220596,
-0.06644074618816376,
0.020780829712748528,
-0.007983949035406113,
0.509545624256134,
0.07081771641969681,
0.200180321931839,
-0.039186280220746994,
-0.4795255959033966,
-0.009307061322033405,
0.24784712493419647,
-0.030048036947846413,
0.15695060789585114,
0.13996833562850952,
0.28624844551086426,
0.2056424766778946,
-0.40549522638320923,
-0.17149102687835693,
-0.04002968966960907,
-0.0005373118910938501,
0.09705964475870132,
-0.1244993731379509,
0.002344229258596897,
0.1719813197851181,
-0.021147267892956734,
0.024566644802689552,
-0.16810829937458038,
-0.07666445523500443,
-0.0485597625374794,
-0.12290874123573303,
0.20957398414611816,
0.036637842655181885,
0.15803255140781403,
0.19972409307956696,
0.012682911939918995,
0.009816781617701054,
-0.013130412437021732,
0.16014547646045685,
0.08294355124235153,
-0.13927823305130005,
0.09324334561824799,
0.19146578013896942,
-0.1461142897605896,
-0.36845114827156067,
0.026094861328601837,
-0.16010865569114685,
0.08383333683013916,
0.17343325912952423,
0.38310033082962036,
-0.12432996928691864,
0.17004625499248505,
-0.1644284874200821,
0.13646429777145386,
-0.15961836278438568,
0.013914779759943485,
0.22388656437397003,
-0.35047996044158936,
-0.2246348261833191,
-0.07116261124610901,
0.5016791224479675,
0.27468401193618774,
-0.1880667507648468,
0.04947233200073242,
0.07359758019447327,
-0.06575631350278854,
-0.33242055773735046,
0.08114868402481079,
0.31314826011657715,
0.16447003185749054,
-0.01422017440199852,
0.5696220397949219,
0.3624670207500458,
-0.28933343291282654,
0.1590241938829422,
0.11968418210744858,
0.7548345327377319,
0.26592758297920227,
0.0646338015794754,
0.1735052615404129,
-0.17275221645832062,
0.17013150453567505,
0.4858207106590271,
0.059521786868572235,
-0.05907721444964409,
0.113984115421772,
-0.16607323288917542,
0.18067710101604462,
0.06338571757078171,
-0.13966242969036102,
0.001239097910001874,
-0.16610312461853027,
0.3387809097766876,
-0.26451602578163147,
0.34343841671943665,
-0.20660485327243805,
0.18527284264564514,
0.4347057640552521,
0.07545600086450577,
-0.1739107221364975,
-0.23981478810310364,
0.10661540925502777,
-0.022904884070158005,
-0.08844991773366928,
-0.11495260149240494,
-0.2485227733850479,
-0.18543687462806702,
-0.05156327784061432,
-0.1260223686695099,
-0.12427997589111328,
0.665073573589325,
0.18254193663597107,
-0.1802324503660202,
-0.2559809684753418,
-0.009240465238690376,
0.0285577904433012,
0.0777159035205841,
-0.26376181840896606,
0.41442134976387024,
0.07031736522912979,
-0.1295517385005951,
0.06194278597831726,
0.3388364911079407,
0.9245893359184265,
0.1384817659854889,
-0.11934174597263336,
-0.3575938045978546,
-0.2355307936668396,
0.009926101192831993,
0.13869477808475494,
0.007697888650000095,
-0.01259899977594614,
0.1495126336812973,
0.13449642062187195,
0.08624690771102905,
0.07146621495485306,
-0.05863010883331299,
0.11869800835847855,
-0.11727690696716309,
-0.47603797912597656,
0.36488205194473267,
-0.016835829243063927,
-0.17699576914310455,
-0.049062348902225494,
0.1928958147764206,
-0.21985314786434174,
0.01867583952844143,
0.15101736783981323,
0.47448766231536865,
-0.14139780402183533,
-0.26538318395614624,
-0.016090650111436844,
0.1495954394340515,
0.3990333676338196,
0.479859858751297,
0.2936069369316101,
-0.2884005308151245,
-0.16200295090675354,
-0.6309648752212524,
0.24994511902332306,
-0.10891813039779663,
-0.07339034229516983,
0.17617611587047577,
0.19231754541397095,
0.12613582611083984,
0.15658357739448547,
0.25283169746398926,
0.15728168189525604,
-0.2526710629463196,
0.0740479901432991,
-0.28174924850463867,
-0.18423065543174744,
-0.11259984970092773,
-0.16807375848293304,
-0.08373033255338669,
-0.051579877734184265,
0.12333965301513672,
-0.6046465635299683,
-0.045035019516944885,
-0.22134865820407867,
-0.36861100792884827,
0.13001883029937744,
-0.28460657596588135,
0.43594929575920105,
-0.045336704701185226,
0.7685070037841797,
0.12560291588306427,
-0.1501162201166153,
-0.3288884460926056,
-0.13706590235233307,
-0.2852412462234497,
0.5235648155212402,
-0.334081768989563,
0.29420706629753113,
-0.07190604507923126,
-0.38018715381622314,
-0.23676463961601257,
0.2125566154718399,
0.1473570466041565,
0.01508442871272564,
0.13905467092990875,
0.18910349905490875,
-0.09959614276885986,
-0.055413924157619476,
-0.04359772056341171,
-0.03080085851252079,
-0.02593737095594406,
0.22499039769172668,
-0.5183082818984985,
-0.6421110033988953,
0.5877329707145691,
-0.3876189589500427,
-0.28115707635879517,
-0.35398387908935547,
0.2209097445011139,
-0.1894458830356598,
-0.15479344129562378,
-0.4908483028411865,
0.021291909739375114,
0.3034400939941406,
0.13608023524284363,
-0.25627338886260986,
0.07688801735639572,
0.02378169633448124,
0.2902067005634308,
-0.08824674785137177,
0.49934858083724976,
-0.36255401372909546,
-0.07459237426519394,
-0.1757296621799469,
-0.19070477783679962
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 95 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | [
-0.4502638280391693,
0.13628952205181122,
0.07276097685098648,
-0.007737793494015932,
0.2104404717683792,
0.14556902647018433,
0.13477861881256104,
0.3891865909099579,
-0.261273056268692,
0.1966487020254135,
0.2423592209815979,
0.44099193811416626,
-0.17453418672084808,
0.19554705917835236,
-0.24655699729919434,
0.020137660205364227,
-0.03596113622188568,
0.19910192489624023,
0.13498345017433167,
0.04183579236268997,
-0.14862464368343353,
0.16259050369262695,
-0.21622107923030853,
0.26479583978652954,
-0.1537034511566162,
-0.056200217455625534,
-0.08893924206495285,
-0.04437948390841484,
-0.13040974736213684,
-0.5437798500061035,
0.3741041123867035,
-0.059600457549095154,
0.1746741682291031,
0.5324841141700745,
-0.00012349383905529976,
0.13402925431728363,
0.3579033315181732,
-0.09974362701177597,
-0.32015812397003174,
-0.49850577116012573,
0.030354894697666168,
0.025071702897548676,
0.3309289813041687,
-0.14971652626991272,
0.04570282623171806,
-0.5905318856239319,
-0.05606173723936081,
0.011204281821846962,
-0.02645823359489441,
0.4921302795410156,
0.15572766959667206,
0.16485966742038727,
0.0755559578537941,
-0.137879878282547,
0.21025507152080536,
0.08985574543476105,
-0.07608132809400558,
0.47067680954933167,
0.12163855880498886,
-0.0717136561870575,
0.16000711917877197,
-0.10232078284025192,
-0.021708134561777115,
-0.016618911176919937,
-0.01973617821931839,
0.08909482508897781,
0.27014029026031494,
-0.25406414270401,
0.2758238911628723,
0.021355798467993736,
0.6139841675758362,
-0.6099303364753723,
-0.40281328558921814,
0.05849632993340492,
0.151048481464386,
-0.19779476523399353,
0.2043726146221161,
0.1740199774503708,
-0.23459802567958832,
0.137074813246727,
-0.19406206905841827,
-0.03811601176857948,
-0.07902002334594727,
-0.10124257951974869,
-0.37965652346611023,
0.2510075867176056,
0.19847609102725983,
0.17120224237442017,
-0.015671230852603912,
-0.11607932299375534,
0.0763113796710968,
-0.1649232804775238,
0.17040179669857025,
0.0014236621791496873,
-0.21078766882419586,
-0.12968334555625916,
-0.06831688433885574,
0.36054104566574097,
0.2446824014186859,
0.24374254047870636,
0.03952035307884216,
-0.21937094628810883,
0.289946585893631,
0.14934329688549042,
-0.000206461496418342,
0.06083045154809952,
0.028258459642529488,
0.1525740921497345,
0.11568392068147659,
-0.0743040144443512,
0.011641670018434525,
0.012575805187225342,
-0.0356714129447937,
-0.13475482165813446,
0.2806887626647949,
-0.017558615654706955,
0.7477177381515503,
-0.38609281182289124,
-0.3294268250465393,
0.11270786821842194,
-0.31910303235054016,
-0.11211221665143967,
-0.14967338740825653,
0.3698425590991974,
0.08019561320543289,
0.30647292733192444,
-0.20255541801452637,
0.30273306369781494,
-0.14876973628997803,
-0.1783849447965622,
-0.0953059047460556,
0.0878901556134224,
-0.021924901753664017,
-0.13318251073360443,
0.1687428504228592,
-0.2979690432548523,
-0.04650557041168213,
0.3469100594520569,
0.10252140462398529,
0.18799392879009247,
0.06526154279708862,
-0.002695550909265876,
-0.05441365763545036,
0.46116581559181213,
-0.22185125946998596,
0.2516639530658722,
0.17808367311954498,
-0.5087434649467468,
-0.36347201466560364,
0.27439889311790466,
-0.2164250761270523,
-0.353474497795105,
-0.2432025671005249,
0.15128149092197418,
-0.09201821684837341,
-0.2586004137992859,
-0.04892817884683609,
-0.06135048717260361,
0.18020853400230408,
-0.15756362676620483,
-0.004294391255825758,
-0.6692394018173218,
0.1291498988866806,
-0.31724435091018677,
0.2979747951030731,
0.2355632185935974,
-0.5403284430503845,
0.0511990450322628,
0.11710075289011002,
-0.15386919677257538,
0.2208564281463623,
-0.048054441809654236,
0.02851850911974907,
-0.16844776272773743,
0.008382461033761501,
0.00040413919487036765,
0.36193013191223145,
-0.31578385829925537,
-0.2808323800563812,
0.2037825584411621,
0.13735759258270264,
-0.005416087340563536,
0.2581103444099426,
-0.3559543788433075,
0.06767768412828445,
0.13325288891792297,
-0.24490122497081757,
0.0707520842552185,
-0.06347891688346863,
0.03949916735291481,
-0.17243492603302002,
0.011109445244073868,
0.43109065294265747,
0.29425248503685,
0.07769425213336945,
-0.18691937625408173,
0.054162029176950455,
-0.2536586821079254,
0.17242342233657837,
-0.1534912884235382,
0.014555464498698711,
-0.09521070122718811,
0.4228501617908478,
-0.30714842677116394,
0.009101897478103638,
-0.08208489418029785,
-0.3720254898071289,
0.21420732140541077,
0.14268717169761658,
0.0427832268178463,
-0.3331007957458496,
-0.2545280456542969,
-0.3418053388595581,
0.09298117458820343,
-0.11785702407360077,
-0.030903039500117302,
0.029023049399256706,
0.3834606409072876,
0.08364519476890564,
0.06660785526037216,
-0.17853426933288574,
0.1259467899799347,
0.01098101120442152,
0.18438966572284698,
-0.0219142846763134,
0.40528547763824463,
-0.3848956525325775,
-0.32877856492996216,
0.11645255982875824,
0.014769058674573898,
0.21107029914855957,
-0.07470083981752396,
-0.024430034682154655,
0.35694536566734314,
0.06681367009878159,
0.03249697387218475,
0.03754580393433571,
0.2812749743461609,
0.009508064948022366,
-0.2744840383529663,
-0.225558340549469,
0.28451818227767944,
-0.056314561516046524,
0.3358910083770752,
-0.047780368477106094,
0.4245941638946533,
0.4690217971801758,
0.24409368634223938,
0.043489161878824234,
0.12071575969457626,
-0.08766240626573563,
0.030711110681295395,
0.01759566366672516,
-0.10276950895786285,
0.12395493686199188,
-0.09751424193382263,
0.24295519292354584,
0.007381168659776449,
-0.4534863829612732,
0.018112165853381157,
0.3326233923435211,
-0.10369645059108734,
0.07972230762243271,
0.10889071226119995,
-0.13481737673282623,
0.07133235782384872,
0.1310131847858429,
0.12860232591629028,
0.26710036396980286,
0.15452176332473755,
-0.06642863899469376,
0.1459350287914276,
-0.3957769572734833,
0.04936870560050011,
0.14745722711086273,
0.046950701624155045,
0.08438330143690109,
0.11784970015287399,
0.20307520031929016,
0.06922602653503418,
-0.19645267724990845,
-0.4386538863182068,
0.16900798678398132,
0.3975125849246979,
-0.45560988783836365,
0.25250306725502014,
-0.259302020072937,
0.28796276450157166,
-0.17629854381084442,
-0.10131283104419708,
-0.2812751233577728,
-0.28717321157455444,
0.02980879507958889,
0.16138628125190735,
0.12805235385894775,
0.2844814360141754,
-0.3949873447418213,
0.13085362315177917,
0.060437168926000595,
-0.5389618277549744,
-0.3587735593318939,
-0.17885065078735352,
-0.43584662675857544,
0.05648490786552429,
0.293006032705307,
-0.29367387294769287,
0.18700158596038818,
-0.338571697473526,
-0.10415752232074738,
-0.2780030369758606,
-0.25462669134140015,
0.10002326220273972,
-0.27325403690338135,
0.42247238755226135,
0.23313450813293457,
0.0653013288974762,
-0.050941526889801025,
-0.1394461691379547,
0.298511803150177,
-0.5006914734840393,
-0.2382100522518158,
0.10757843405008316,
-0.06091433763504028,
-0.028160030022263527,
-0.09925781935453415,
-0.602631688117981,
-0.27009400725364685,
-0.17673152685165405,
-0.07382939010858536,
0.10129479318857193,
0.11717909574508667,
0.015318895690143108,
0.179499551653862,
-0.041438620537519455,
-0.10640046000480652,
0.040731463581323624,
0.02277965657413006,
-0.09356739372015,
0.2638747990131378,
-0.1412259042263031,
-0.24706172943115234,
0.0030329041182994843,
0.059399042278528214,
0.3075079321861267,
0.02631388232111931,
-0.315766841173172,
-0.17850816249847412,
0.0870809406042099,
0.5713324546813965,
-0.21375451982021332,
-0.008834153413772583,
0.2017015814781189,
0.3253878653049469,
-0.046131402254104614,
0.043869029730558395,
-0.15613852441310883,
-0.2257906049489975,
0.08310535550117493,
0.11741701513528824,
0.11736846715211868,
0.24780507385730743,
-0.0001472527364967391,
0.7000099420547485,
0.09016963094472885,
-0.2647121548652649,
0.2456340193748474,
-0.29044264554977417,
0.36461159586906433,
0.02159200608730316,
-0.2104300707578659,
-0.029303235933184624,
-0.003285549581050873,
-0.08996837586164474,
0.2567014694213867,
-0.18345136940479279,
-0.2540484368801117,
-0.07478760182857513,
-0.18840627372264862,
-0.2296489179134369,
-0.06973973661661148,
-0.03852495551109314,
-0.05076000839471817,
0.26926472783088684,
-0.0709146037697792,
0.14934569597244263,
-0.0700601115822792,
-0.10604305565357208,
0.2032533437013626,
0.3706047534942627,
-0.254340797662735,
0.03087603859603405,
-0.269710898399353,
-0.20073704421520233,
-0.23489844799041748,
0.42467841506004333,
-0.012991225346922874,
0.4772619903087616,
-0.01696314476430416,
-0.12940891087055206,
0.09740793704986572,
-0.20808373391628265,
0.47896793484687805,
-0.2268107682466507,
0.08115119487047195,
0.28939178586006165,
-0.17096929252147675,
-0.44634366035461426,
-0.3620917797088623,
-0.4987751841545105,
0.07814141362905502,
-0.03766987472772598,
0.22606602311134338,
-0.23438769578933716,
-0.23196449875831604,
0.22696170210838318,
0.11853793263435364,
0.07251082360744476,
0.003712158650159836,
-0.43107056617736816,
-0.2614598572254181,
-0.24307794868946075,
0.30343666672706604,
-0.10249552875757217,
0.3525215983390808,
-0.33259138464927673,
0.40758177638053894,
-0.09610038250684738,
-0.17272090911865234,
0.24494150280952454,
0.3544299304485321,
0.22494177520275116,
-0.21191129088401794,
0.02607637643814087,
-0.12502244114875793,
0.23234276473522186,
0.5753100514411926,
0.5339674949645996,
0.23210987448692322,
-0.22215509414672852,
0.1890181452035904,
0.23789392411708832,
0.6089588403701782,
0.037968430668115616,
-0.43509915471076965,
-0.131175234913826,
-0.21597400307655334,
0.04362243413925171,
-0.009059942327439785,
0.10546866059303284,
0.5369827747344971,
-0.12586888670921326,
-0.5352922081947327,
0.03395097330212593,
0.47798168659210205,
0.2792460024356842,
-0.1366872638463974,
0.07593487203121185,
0.3156251907348633,
-0.16744275391101837,
0.43760770559310913,
-0.10256564617156982,
0.8173340559005737,
-0.0009261062368750572,
0.1719653308391571,
0.138971209526062,
-0.3020307421684265,
0.12917260825634003,
0.020027482882142067,
0.010788951069116592,
-0.4951128661632538,
-0.35238054394721985,
-0.12848086655139923,
-0.26069220900535583,
0.2495347410440445,
0.05806288495659828,
-0.3433745801448822,
0.3005760908126831,
0.019464116543531418,
0.45729756355285645,
0.42090877890586853,
0.2916838824748993,
-0.16789329051971436,
0.29896280169487,
-0.25076189637184143,
0.03803152218461037,
0.02441742829978466,
0.07223343849182129,
0.11549509316682816,
0.07646633684635162,
-0.1413774937391281,
-0.4948062598705292,
-0.27903857827186584,
0.015146558173000813,
-0.2930014729499817,
-0.10045917332172394,
0.3964216411113739,
-0.573357105255127,
0.21180760860443115,
0.07209217548370361,
0.048183538019657135,
0.0640389621257782,
-0.2333730161190033,
0.012959716841578484,
-0.14577870070934296,
0.12769460678100586,
0.1839483380317688,
0.047533076256513596,
0.453349769115448,
-0.008721890859305859,
-0.337863564491272,
0.3581653833389282,
-0.0813952088356018,
-0.011938665062189102,
0.014828508719801903,
-0.12561216950416565,
0.17730654776096344,
-0.33680370450019836,
0.24641549587249756,
-0.6286604404449463,
0.10997376590967178,
-0.1781969517469406,
0.04503731429576874,
-0.1984386146068573,
0.003613564185798168,
0.10916157066822052,
0.22726057469844818,
-0.3318319618701935,
-0.21183200180530548,
0.20839038491249084,
0.005966242868453264,
0.2285708338022232,
0.5235669612884521,
-0.08871269226074219,
-0.04807804152369499,
-0.10361718386411667,
0.05815370753407478,
0.3272997736930847,
-0.33752045035362244,
-0.04912056401371956,
-0.029718002304434776,
0.06560955196619034,
0.1523430496454239,
0.3768540322780609,
0.277626097202301,
0.21318668127059937,
-0.0744466483592987,
-0.5255510807037354,
-0.07296537607908249,
0.23751047253608704,
-0.07121415436267853,
0.1975880265235901,
0.1174604743719101,
0.3237074613571167,
0.22385965287685394,
-0.11349353939294815,
-0.239702969789505,
-0.03295690938830376,
-0.13233523070812225,
0.1919334977865219,
-0.08682846277952194,
0.09644541889429092,
0.051700491458177567,
0.06344820559024811,
0.08875685930252075,
-0.19282980263233185,
-0.14227935671806335,
-0.11094767600297928,
-0.1475546807050705,
0.18353678286075592,
0.10185111314058304,
0.13818615674972534,
0.12649233639240265,
0.05604791268706322,
0.049014460295438766,
-0.04671850427985191,
0.13852310180664062,
0.039386097341775894,
-0.1792176067829132,
0.2147742509841919,
0.34734153747558594,
-0.16727665066719055,
-0.35854917764663696,
-0.03709829971194267,
-0.20412766933441162,
-0.039642125368118286,
0.14702783524990082,
0.38606399297714233,
-0.2622257173061371,
0.06064391881227493,
-0.1839810162782669,
0.08918103575706482,
-0.038675401359796524,
-0.05811823159456253,
0.11452338844537735,
-0.3145364820957184,
-0.2465544193983078,
0.013894940726459026,
0.44908714294433594,
0.2860865890979767,
-0.20155563950538635,
-0.030050128698349,
0.23514944314956665,
0.033413682132959366,
-0.4120022654533386,
0.008535843342542648,
0.29435548186302185,
0.1643492430448532,
0.09699580073356628,
0.49920523166656494,
0.3679383397102356,
-0.3373355567455292,
0.07632054388523102,
0.05410841852426529,
0.48907023668289185,
0.22714604437351227,
0.16241052746772766,
0.4281889796257019,
-0.12060483545064926,
0.14897330105304718,
0.5001076459884644,
0.0717378556728363,
-0.06867491453886032,
0.33658352494239807,
-0.22659620642662048,
0.29017549753189087,
0.05184926837682724,
-0.09472782164812088,
0.012078453786671162,
-0.14029176533222198,
0.33037903904914856,
-0.08364804834127426,
0.3031805157661438,
-0.18541939556598663,
0.2107687145471573,
0.34041687846183777,
0.09915284067392349,
-0.31039780378341675,
-0.26461073756217957,
0.00738905556499958,
-0.07696642726659775,
-0.1239803284406662,
-0.077755868434906,
-0.24878494441509247,
-0.3113350570201874,
-0.042400915175676346,
-0.18332618474960327,
-0.213645800948143,
0.6925194263458252,
0.20947572588920593,
-0.14585216343402863,
-0.2887676954269409,
0.09960651397705078,
0.12556123733520508,
0.06614144146442413,
-0.24123771488666534,
0.4364034831523895,
-0.006714765913784504,
-0.046182237565517426,
0.1553470641374588,
0.29818856716156006,
0.8132767081260681,
0.21816004812717438,
-0.1735401153564453,
-0.32582369446754456,
-0.23221513628959656,
0.06455783545970917,
0.2646581828594208,
0.06301911175251007,
-0.0373365581035614,
0.02126367762684822,
0.2920491397380829,
0.11681196838617325,
0.027758926153182983,
-0.07846193760633469,
0.06500335782766342,
-0.15909695625305176,
-0.4842328429222107,
0.2990453541278839,
0.18477995693683624,
-0.10185880959033966,
0.01642249897122383,
0.17674660682678223,
-0.25420626997947693,
0.026872269809246063,
0.21977165341377258,
0.40253883600234985,
-0.09970112890005112,
-0.12806667387485504,
0.013057771138846874,
0.2641710042953491,
0.3753710985183716,
0.46604207158088684,
0.30420252680778503,
-0.3263893723487854,
-0.23226386308670044,
-0.5930103659629822,
0.30815503001213074,
-0.11185570061206818,
-0.0641731470823288,
0.2311534583568573,
0.07034260779619217,
0.12582509219646454,
0.2151816338300705,
0.3055858314037323,
0.3428936302661896,
-0.26369670033454895,
0.10260071605443954,
-0.40018922090530396,
-0.1769958883523941,
-0.09045105427503586,
-0.181917205452919,
-0.09434594959020615,
-0.17175519466400146,
0.19072642922401428,
-0.5734677910804749,
0.014778625220060349,
-0.12844178080558777,
-0.3459658622741699,
0.20035399496555328,
-0.1925392895936966,
0.45888063311576843,
-0.02036123350262642,
0.7599464058876038,
0.05706433206796646,
-0.13146431744098663,
-0.19957061111927032,
-0.1574077606201172,
-0.3382566571235657,
0.5084724426269531,
-0.21539655327796936,
0.2439022809267044,
-0.03558779135346413,
-0.22234614193439484,
-0.14480943977832794,
0.23349899053573608,
0.14098110795021057,
0.015728427097201347,
0.08336219191551208,
0.09266455471515656,
0.06414283066987991,
-0.09420730918645859,
-0.02300349622964859,
-0.01973450370132923,
-0.030902352184057236,
0.29727134108543396,
-0.4680342674255371,
-0.6723169088363647,
0.5400301218032837,
-0.33879372477531433,
-0.23527976870536804,
-0.4275917708873749,
0.25751301646232605,
-0.09694624692201614,
-0.08701175451278687,
-0.48075681924819946,
0.10606737434864044,
0.38183578848838806,
0.03254975005984306,
-0.22709836065769196,
-0.032455164939165115,
0.03265101835131645,
0.3201504647731781,
-0.1376316398382187,
0.5239676237106323,
-0.28771668672561646,
-0.15140411257743835,
-0.16822122037410736,
-0.2710401713848114
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 66 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | [
-0.059490494430065155,
-0.11997142434120178,
0.014864216558635235,
0.2438829392194748,
0.4732634425163269,
-0.0013418906601145864,
0.4414612054824829,
0.12539775669574738,
-0.014295127242803574,
0.2675632834434509,
-0.17997731268405914,
0.46588876843452454,
-0.11915596574544907,
0.10542669892311096,
0.0933510959148407,
-0.16344596445560455,
-0.1493486762046814,
0.1789051592350006,
-0.09505166858434677,
0.004156006034463644,
-0.29514092206954956,
-0.12274529039859772,
-0.2647020220756531,
0.16010607779026031,
-0.4545833468437195,
-0.24733677506446838,
-0.12372733652591705,
-0.028907490894198418,
-0.2947976589202881,
-0.3072052001953125,
0.39059314131736755,
0.04553207755088806,
0.0802018791437149,
0.5733891725540161,
-0.00010463325452292338,
0.08574330806732178,
0.5220625996589661,
0.07952461391687393,
-0.10193853825330734,
-0.4897308349609375,
-0.1364544928073883,
-0.1668332815170288,
0.2139173299074173,
-0.393879234790802,
-0.1748814433813095,
-0.04341771826148033,
0.01563052088022232,
0.10471987724304199,
0.31356391310691833,
0.4849517047405243,
0.30893850326538086,
0.4509331285953522,
0.04645197093486786,
-0.26731762290000916,
0.2966393530368805,
0.15159928798675537,
-0.05325179919600487,
0.36010149121284485,
-0.029762988910079002,
-0.10263795405626297,
0.18468357622623444,
0.156706765294075,
-0.2669478952884674,
-0.0967591181397438,
0.19038693606853485,
0.06878650933504105,
-0.04153938218951225,
-0.29089757800102234,
-0.07514950633049011,
0.4143873155117035,
0.33878093957901,
-0.45931103825569153,
-0.27881088852882385,
0.1180642619729042,
0.21228356659412384,
-0.2495185285806656,
0.2602466940879822,
0.08561740815639496,
-0.012844924814999104,
0.19757260382175446,
-0.08679461479187012,
0.27960726618766785,
-0.27930307388305664,
0.3049076199531555,
-0.16479440033435822,
0.14449526369571686,
-0.0630866289138794,
0.03452403098344803,
0.2060510814189911,
-0.19196352362632751,
0.0597912073135376,
-0.1310272365808487,
0.035673800855875015,
0.10070232301950455,
-0.24360710382461548,
-0.13699491322040558,
0.1091516986489296,
-0.055024903267621994,
0.13056084513664246,
-0.2993285059928894,
0.1565283089876175,
-0.08257432281970978,
-0.004701030440628529,
0.4082540273666382,
0.18361563980579376,
0.37427791953086853,
0.23539158701896667,
0.14673319458961487,
0.20310421288013458,
0.12505581974983215,
-0.2914268374443054,
0.08516725152730942,
-0.19163066148757935,
-0.07955610752105713,
0.33503109216690063,
0.14177803695201874,
0.4543801248073578,
0.004213773645460606,
-0.45386168360710144,
-0.04846978932619095,
-0.4231695234775543,
0.0795801430940628,
0.22692067921161652,
0.45785704255104065,
-0.14909063279628754,
0.1119716539978981,
0.0448688380420208,
0.1539015769958496,
-0.17074555158615112,
-0.28313493728637695,
-0.2869075536727905,
0.4119272530078888,
-0.33274173736572266,
-0.20058909058570862,
0.17256943881511688,
0.0631762370467186,
-0.04409390687942505,
-0.014276344329118729,
-0.1245325431227684,
0.014793186448514462,
0.031217163428664207,
-0.4864669442176819,
-0.10691745579242706,
0.1802370846271515,
0.036690790206193924,
-0.14341935515403748,
0.21774302423000336,
-0.43856287002563477,
0.0038599383551627398,
0.21044646203517914,
-0.13902635872364044,
-0.2205246388912201,
-0.06440143287181854,
0.2921479642391205,
-0.3297555446624756,
-0.16175009310245514,
-0.1220809742808342,
0.1581522524356842,
0.1588944047689438,
0.015281809493899345,
0.038604333996772766,
-0.0845264196395874,
-0.021860739216208458,
-0.3067053258419037,
0.02687818557024002,
0.3902685344219208,
-0.3743339478969574,
-0.22777386009693146,
-0.11634810268878937,
-0.05733434855937958,
0.33097606897354126,
-0.05529440939426422,
-0.013930290937423706,
0.2842520475387573,
-0.01623610034584999,
0.12701904773712158,
0.616672933101654,
-0.3811468780040741,
-0.3189837336540222,
-0.08715222775936127,
-0.05255677178502083,
-0.03235095366835594,
-0.000008754348527872935,
-0.1415095180273056,
0.09520959109067917,
0.1851932257413864,
0.43059641122817993,
0.18257124722003937,
0.010849406011402607,
-0.006876278668642044,
-0.2708134651184082,
-0.21112769842147827,
0.19119414687156677,
0.08953114598989487,
0.13897548615932465,
-0.056643664836883545,
-0.07800884544849396,
-0.242253378033638,
0.01793115958571434,
-0.11919479817152023,
-0.13236111402511597,
-0.061672862619161606,
0.5806083083152771,
-0.08955522626638412,
-0.12208979576826096,
-0.5331305861473083,
-0.23846083879470825,
0.1451275646686554,
-0.038405824452638626,
0.44006600975990295,
-0.1647627204656601,
-0.2132970541715622,
-0.40875446796417236,
0.046749088913202286,
-0.053432296961545944,
-0.042244039475917816,
0.28871700167655945,
0.03271995857357979,
-0.1623719185590744,
0.14767208695411682,
-0.09393218159675598,
0.06909038126468658,
-0.18910686671733856,
0.14024925231933594,
0.11506924778223038,
0.32482704520225525,
-0.052656449377536774,
-0.4338490068912506,
0.016055429354310036,
0.24504904448986053,
0.42788833379745483,
0.06159855052828789,
-0.05183042213320732,
0.3103209435939789,
0.09668107330799103,
-0.21664489805698395,
-0.332928866147995,
-0.037564195692539215,
0.10615923255681992,
-0.32848769426345825,
-0.19163855910301208,
-0.0286103505641222,
0.18140152096748352,
-0.003908735234290361,
0.015586546622216702,
0.5066563487052917,
0.07304634898900986,
0.07515531033277512,
-0.08345840126276016,
0.19625438749790192,
-0.05212998762726784,
-0.12022458016872406,
-0.11892346292734146,
-0.09356675297021866,
0.08537282794713974,
-0.05164775997400284,
0.16046221554279327,
0.08396647870540619,
-0.1486920267343521,
-0.0939609482884407,
0.6276283264160156,
0.06613370776176453,
0.40661782026290894,
-0.12785746157169342,
-0.25308477878570557,
0.14693403244018555,
0.07535441219806671,
0.09351637214422226,
0.3560040593147278,
0.30918464064598083,
-0.17418359220027924,
-0.012002736330032349,
-0.16991354525089264,
0.020033808425068855,
0.0936974510550499,
-0.030057674273848534,
0.3375008702278137,
-0.019166499376296997,
0.32656529545783997,
0.0025229076854884624,
-0.3129945993423462,
0.11549796164035797,
0.03831625357270241,
0.18946464359760284,
-0.3931482136249542,
0.18069536983966827,
-0.3155398666858673,
-0.15390533208847046,
0.05927339568734169,
-0.13982321321964264,
-0.0421992689371109,
-0.27074965834617615,
-0.08552674949169159,
0.18152523040771484,
0.058970462530851364,
0.26436281204223633,
0.1597471386194229,
-0.032706890255212784,
0.08473799377679825,
-0.06557343900203705,
-0.1022353321313858,
-0.22010724246501923,
-0.1743909865617752,
0.14284977316856384,
0.1274089366197586,
0.20786020159721375,
0.29953500628471375,
-0.14255385100841522,
0.04809430241584778,
0.013805677182972431,
-0.3602250814437866,
0.08573365956544876,
-0.12153405696153641,
0.4401927590370178,
0.3425599932670593,
0.0728834718465805,
-0.23686933517456055,
0.017393216490745544,
0.361966073513031,
-0.3473316729068756,
-0.10805129259824753,
0.39837735891342163,
-0.19799773395061493,
0.0502508319914341,
-0.21617166697978973,
-0.3248876631259918,
-0.5105351209640503,
-0.31895512342453003,
0.13110651075839996,
-0.029471443966031075,
0.08727895468473434,
0.30624422430992126,
0.22816339135169983,
0.45089465379714966,
-0.052571240812540054,
0.039583295583724976,
-0.1739949733018875,
-0.007780594751238823,
0.3531796336174011,
-0.014841509982943535,
-0.3720351457595825,
0.007991093210875988,
-0.16510027647018433,
0.13139134645462036,
-0.011758162640035152,
-0.17909075319766998,
-0.5396496057510376,
-0.14006105065345764,
0.28839975595474243,
0.02294340915977955,
-0.09574892371892929,
0.3742545545101166,
0.05397293344140053,
-0.151051327586174,
-0.1974763125181198,
-0.08226381987333298,
0.031774599105119705,
0.317256897687912,
0.021964892745018005,
-0.06948891282081604,
0.2908799946308136,
0.05522099509835243,
0.2811390459537506,
-0.11332344263792038,
-0.2513750195503235,
0.4198063015937805,
-0.29150545597076416,
0.2461429089307785,
-0.071658194065094,
-0.4766027629375458,
-0.07762301713228226,
-0.055500760674476624,
-0.0022869890090078115,
-0.036060817539691925,
-0.29894936084747314,
-0.22007101774215698,
-0.29700812697410583,
-0.12197529524564743,
-0.3595554232597351,
-0.15417690575122833,
0.060914453119039536,
0.08911837637424469,
0.055805426090955734,
0.14045459032058716,
0.15506611764431,
-0.3061162829399109,
0.00887710228562355,
0.00001877303839137312,
0.10759681463241577,
0.03720780462026596,
-0.21445314586162567,
-0.22149449586868286,
-0.2509332299232483,
-0.2910079061985016,
0.32323968410491943,
0.047794975340366364,
-0.025100428611040115,
-0.10718479752540588,
-0.10486027598381042,
0.08477145433425903,
-0.054349493235349655,
0.6767694354057312,
-0.19645242393016815,
0.07104042172431946,
0.49119314551353455,
0.21054866909980774,
-0.4320892095565796,
0.024922575801610947,
-0.4132964015007019,
0.11259130388498306,
0.16017982363700867,
0.32408323884010315,
-0.3951094150543213,
-0.05424526706337929,
0.2625240981578827,
-0.03598552942276001,
-0.059421610087156296,
-0.26966941356658936,
-0.2357649952173233,
-0.255788654088974,
-0.10776571184396744,
0.196294903755188,
0.03532704710960388,
0.4339827299118042,
-0.26493287086486816,
-0.11057130247354507,
-0.23906153440475464,
0.04289499297738075,
0.18685315549373627,
0.2545810043811798,
0.2625078856945038,
-0.16144274175167084,
-0.1597975790500641,
-0.17626334726810455,
0.058801937848329544,
0.2780002951622009,
0.2882104218006134,
0.04454085975885391,
-0.4137677848339081,
0.015718722715973854,
0.058138880878686905,
0.26119041442871094,
0.04642585292458534,
-0.1333329826593399,
-0.030797971412539482,
-0.04032943770289421,
0.0974307656288147,
0.14356420934200287,
0.21770495176315308,
0.3860841989517212,
0.05959578603506088,
-0.3346404731273651,
-0.24376492202281952,
0.34551724791526794,
0.14844219386577606,
0.05053634196519852,
0.01700952835381031,
0.27812597155570984,
-0.21170808374881744,
0.28811362385749817,
-0.020154669880867004,
1.011183261871338,
0.06905243545770645,
-0.05979244038462639,
0.5816106796264648,
-0.09528438001871109,
0.5560987591743469,
-0.06480198353528976,
0.1861324906349182,
-0.29624274373054504,
-0.3566812574863434,
-0.03657238185405731,
-0.1678648144006729,
0.2394370436668396,
0.06466739624738693,
-0.6077864170074463,
0.23067712783813477,
-0.2865700125694275,
0.14132575690746307,
0.037200119346380234,
-0.031341008841991425,
-0.006927131675183773,
-0.024181855842471123,
-0.38569000363349915,
0.211821511387825,
-0.12286900728940964,
0.1014268770813942,
-0.08456456661224365,
-0.10637868195772171,
-0.123380146920681,
-0.15914331376552582,
-0.10480964928865433,
0.043112099170684814,
-0.5134392380714417,
-0.15310393273830414,
0.05204203724861145,
-0.1772315353155136,
-0.07291414588689804,
0.18729062378406525,
0.04021783173084259,
0.07752317935228348,
-0.18711647391319275,
0.17002004384994507,
0.19995087385177612,
0.09996667504310608,
-0.06926265358924866,
-0.03328830003738403,
0.43088194727897644,
-0.0916924700140953,
-0.39867162704467773,
0.12750309705734253,
-0.04706842452287674,
0.1355869621038437,
0.35485294461250305,
0.01829083450138569,
-0.02078549936413765,
-0.4515145719051361,
-0.09843266755342484,
-0.1435842365026474,
0.20594798028469086,
-0.306861013174057,
0.26121145486831665,
-0.007232991978526115,
-0.13729174435138702,
0.010839693248271942,
-0.03577324375510216,
-0.01851172372698784,
-0.03987756744027138,
0.3423732817173004,
0.31809309124946594,
0.4484286308288574,
0.2465309202671051,
0.24195347726345062,
-0.12122242897748947,
-0.32009157538414,
0.15322068333625793,
0.2308019995689392,
-0.4224048852920532,
0.2418849915266037,
0.2260047048330307,
-0.12146636098623276,
-0.05341987684369087,
0.4723203778266907,
0.0875408872961998,
0.1689213067293167,
-0.12573927640914917,
-0.1489035040140152,
-0.2344333380460739,
0.324161171913147,
0.10228236764669418,
0.004079983104020357,
0.11474578827619553,
0.4286705255508423,
0.2379002422094345,
0.017730534076690674,
-0.4440496265888214,
-0.028685498982667923,
-0.4677804112434387,
0.07052665203809738,
-0.02607005648314953,
-0.2602924704551697,
0.20040875673294067,
-0.003848560620099306,
0.2606967091560364,
0.12462348490953445,
-0.07571513950824738,
-0.36216896772384644,
-0.1629696786403656,
0.09021423012018204,
-0.002169426064938307,
0.17059791088104248,
0.1876296103000641,
0.03364844620227814,
-0.23033714294433594,
-0.12813977897167206,
0.09217625111341476,
-0.05532942712306976,
-0.14670149981975555,
0.2181791067123413,
0.20544442534446716,
0.3228450417518616,
0.017991332337260246,
-0.013670624233782291,
0.015238438732922077,
-0.09246218204498291,
-0.03483089059591293,
-0.005064093042165041,
0.12457156926393509,
-0.029217157512903214,
-0.09140505641698837,
-0.08294820040464401,
0.19211667776107788,
0.13565069437026978,
0.020348696038126945,
-0.25782346725463867,
-0.274131178855896,
-0.1145554929971695,
0.21587307751178741,
0.12111649662256241,
-0.15752172470092773,
0.17650777101516724,
-0.010932263918220997,
0.35138508677482605,
-0.37631577253341675,
-0.010253097862005234,
0.2301226556301117,
-0.0349600613117218,
0.22698332369327545,
0.04630165547132492,
-0.2856045365333557,
0.31486716866493225,
-0.20312555134296417,
0.09068050235509872,
0.22804594039916992,
-0.04434796795248985,
0.10811057686805725,
0.27683430910110474,
-0.16949808597564697,
-0.0334680899977684,
0.41233766078948975,
0.07038652896881104,
0.1482766568660736,
0.021171187981963158,
0.0128188980743289,
0.1463378220796585,
-0.022167271003127098,
0.08586715906858444,
0.30909785628318787,
-0.3254113793373108,
0.03230229392647743,
0.20969797670841217,
0.027855047956109047,
-0.07970035821199417,
-0.26090148091316223,
0.5160669088363647,
-0.2635025382041931,
-0.1445794552564621,
-0.33443859219551086,
0.13850806653499603,
-0.20031636953353882,
0.03698518127202988,
-0.2015441358089447,
-0.11117789894342422,
-0.18699342012405396,
-0.3066196143627167,
0.02595580741763115,
-0.09096845239400864,
0.2416602075099945,
-0.04935833439230919,
-0.028935987502336502,
-0.2844850718975067,
-0.05236763134598732,
0.3596523702144623,
0.22716082632541656,
-0.20385929942131042,
0.10305441170930862,
0.024703556671738625,
0.12351015955209732,
-0.18643198907375336,
0.5136398077011108,
0.42702019214630127,
0.28573372960090637,
-0.15438441932201385,
-0.0936768427491188,
0.03454967960715294,
-0.3090968430042267,
0.07065971195697784,
0.09696555137634277,
0.29194480180740356,
0.23879295587539673,
0.06440422683954239,
0.27889207005500793,
-0.28334158658981323,
0.17622804641723633,
-0.06019318476319313,
0.07524418085813522,
-0.3707777261734009,
0.33053165674209595,
-0.19432783126831055,
-0.1633211225271225,
-0.16632099449634552,
-0.008691167458891869,
-0.4805715084075928,
0.17004145681858063,
0.33456718921661377,
0.15055321156978607,
0.1827457696199417,
-0.1898442804813385,
0.14262591302394867,
-0.20634061098098755,
0.2242959588766098,
-0.04338206350803375,
0.33398905396461487,
-0.27990037202835083,
0.11789417266845703,
-0.4362550377845764,
0.39369267225265503,
-0.04484817013144493,
-0.04896426945924759,
0.07563214749097824,
-0.0840161144733429,
-0.16167229413986206,
0.034948114305734634,
-0.07442492991685867,
0.2408670336008072,
0.12785249948501587,
0.0993814468383789,
-0.6071122884750366,
-0.1996479332447052,
-0.11191052198410034,
-0.23076945543289185,
0.1361706256866455,
-0.24145059287548065,
-0.04724349454045296,
-0.18644221127033234,
0.1147017776966095,
0.04279731959104538,
-0.30284053087234497,
0.19486746191978455,
0.29543158411979675,
0.6067336797714233,
0.1576174795627594,
0.4007614552974701,
-0.013851379044353962,
0.09976968914270401,
0.06332050263881683,
-0.2700612246990204,
-0.15275219082832336,
0.19264216721057892,
0.13509364426136017,
0.3505527973175049,
0.07576841861009598,
0.23201781511306763,
-0.06884190440177917,
0.0777026042342186,
0.05885909125208855,
-0.124382384121418,
-0.12215036153793335,
0.16369907557964325,
-0.11731581389904022,
-0.2261744737625122,
-0.25561845302581787,
0.028279677033424377,
0.07528193295001984,
0.04704511538147926,
-0.08772161602973938,
-0.27919867634773254,
0.6700651049613953,
-0.33414900302886963,
-0.26968681812286377,
-0.05091914162039757,
0.20019659399986267,
0.22844389081001282,
-0.2409946173429489,
-0.6293935179710388,
-0.008996290154755116,
0.42049485445022583,
0.022011134773492813,
-0.25283369421958923,
0.21365278959274292,
-0.06413634866476059,
0.15530472993850708,
-0.06347066909074783,
0.02118685655295849,
-0.11201629787683487,
-0.056375741958618164,
0.04750445857644081,
-0.23333248496055603
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 116 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| [
-0.01708606258034706,
-0.32405224442481995,
0.06212129071354866,
0.210366889834404,
0.38401180505752563,
-0.015518424101173878,
0.415794312953949,
0.1785917729139328,
0.18794073164463043,
0.31161820888519287,
-0.25627079606056213,
0.2617366909980774,
-0.09007882326841354,
0.1555977314710617,
0.1346471756696701,
-0.17832349240779877,
-0.17807109653949738,
0.2362428456544876,
-0.14293813705444336,
-0.06104174256324768,
-0.3072666525840759,
0.01602102629840374,
-0.27659323811531067,
0.15632690489292145,
-0.37103572487831116,
-0.22323015332221985,
-0.07274957746267319,
-0.03378567099571228,
-0.3516705632209778,
-0.37360936403274536,
0.35026952624320984,
-0.014940212480723858,
0.10775139182806015,
0.3936699330806732,
-0.0001092730017262511,
0.03974869102239609,
0.5531901121139526,
0.09167255461215973,
-0.1215195581316948,
-0.48644527792930603,
0.0033007583115249872,
-0.15359297394752502,
0.2640891969203949,
-0.29718780517578125,
-0.24914319813251495,
-0.16786891222000122,
-0.004605328198522329,
0.15467192232608795,
0.39776089787483215,
0.5068289637565613,
0.2735917866230011,
0.5179864764213562,
0.15574531257152557,
-0.30572161078453064,
0.24761997163295746,
0.12956246733665466,
-0.08303320407867432,
0.3645501732826233,
0.08680281788110733,
0.03248227387666702,
0.24765893816947937,
0.2256714552640915,
-0.26159489154815674,
-0.1020333468914032,
0.2482001930475235,
0.0714489296078682,
0.0565815269947052,
-0.33593395352363586,
-0.08744151145219803,
0.34583625197410583,
0.21765054762363434,
-0.43079841136932373,
-0.2740112245082855,
-0.015672573819756508,
0.1589333415031433,
-0.2778738737106323,
0.2152641862630844,
0.11177513003349304,
-0.061429962515830994,
0.26101070642471313,
-0.0477597713470459,
0.29164358973503113,
-0.27248668670654297,
0.22647394239902496,
0.033229053020477295,
0.09982851147651672,
-0.09743519872426987,
0.08648288995027542,
0.3184732496738434,
-0.19786003232002258,
-0.07124809175729752,
-0.0744846910238266,
0.0765407532453537,
0.199787899851799,
-0.26257210969924927,
-0.15699872374534607,
0.04121522605419159,
-0.05275624990463257,
0.24789856374263763,
-0.062311913818120956,
0.010697910562157631,
-0.07843749970197678,
0.08663354068994522,
0.3945230543613434,
0.1457948535680771,
0.36955806612968445,
0.2746925354003906,
0.05964271351695061,
0.1471259891986847,
0.26839011907577515,
-0.11799219995737076,
0.05507360026240349,
-0.18129068613052368,
-0.050575584173202515,
0.27370208501815796,
0.10107798129320145,
0.41571149230003357,
-0.01238543912768364,
-0.38352927565574646,
-0.03406175598502159,
-0.24938857555389404,
0.21416626870632172,
0.21702225506305695,
0.49832698702812195,
-0.10985240340232849,
-0.006581604015082121,
0.19207684695720673,
0.17827089130878448,
-0.12116026133298874,
-0.13048619031906128,
-0.2357184886932373,
0.3422304093837738,
-0.3215116262435913,
-0.061732131987810135,
0.22659578919410706,
0.03089722990989685,
0.003927296027541161,
-0.004729033913463354,
0.06826084107160568,
-0.041803598403930664,
-0.01869441568851471,
-0.347902774810791,
-0.0821477621793747,
0.25354841351509094,
0.03234252333641052,
-0.06852482259273529,
0.22640007734298706,
-0.4100438952445984,
-0.09811735898256302,
0.1309780776500702,
-0.07463563978672028,
-0.17959851026535034,
-0.23042188584804535,
0.23439133167266846,
-0.25608742237091064,
-0.021302824839949608,
-0.09343453496694565,
0.02125438302755356,
0.14475101232528687,
0.10136566311120987,
0.12724193930625916,
-0.01907862164080143,
0.01788904145359993,
-0.21807125210762024,
0.1380721479654312,
0.36549168825149536,
-0.10019118338823318,
-0.3205660283565521,
0.032151959836483,
-0.0025296180974692106,
0.11718636751174927,
-0.017370818182826042,
0.0019336611730977893,
0.24217024445533752,
-0.030547816306352615,
0.16688573360443115,
0.49856266379356384,
-0.6241477131843567,
-0.34428027272224426,
-0.27473825216293335,
-0.08063750714063644,
-0.016146406531333923,
0.03932918980717659,
-0.22868840396404266,
0.19146491587162018,
0.21069355309009552,
0.4453008472919464,
0.1527804136276245,
0.15220917761325836,
0.016763659194111824,
-0.25982657074928284,
-0.28412097692489624,
-0.14923058450222015,
0.1216638833284378,
0.05722300708293915,
-0.061182476580142975,
-0.1246785819530487,
-0.3315827250480652,
0.0439959391951561,
-0.14642424881458282,
-0.09477873146533966,
-0.028535183519124985,
0.480251669883728,
-0.026793908327817917,
-0.03346176818013191,
-0.5103316903114319,
-0.31101202964782715,
0.14441058039665222,
-0.08274290710687637,
0.49631184339523315,
-0.29358693957328796,
-0.24010221660137177,
-0.37979814410209656,
0.0216786228120327,
-0.026030609384179115,
-0.10736467689275742,
0.2608530521392822,
-0.029299791902303696,
-0.07938989251852036,
0.2039855718612671,
-0.1481572687625885,
0.3061811625957489,
-0.06296739727258682,
0.3361930549144745,
-0.08991211652755737,
0.2520774006843567,
-0.05190890282392502,
-0.45358946919441223,
0.017812596634030342,
0.3152451813220978,
0.4074850082397461,
0.01843009702861309,
0.040074560791254044,
0.20596449077129364,
0.1200733408331871,
-0.2516610026359558,
-0.3879704773426056,
-0.20597940683364868,
0.09089527279138565,
-0.20526841282844543,
-0.1253313273191452,
-0.11939758062362671,
0.1875581443309784,
0.04323738440871239,
0.08160267770290375,
0.4845340847969055,
0.0002890750765800476,
0.1447361558675766,
-0.0010886875679716468,
0.2192266881465912,
0.04642507806420326,
-0.22235113382339478,
-0.19437022507190704,
-0.11165457963943481,
0.10983744263648987,
0.03022429719567299,
0.2480705827474594,
0.01797553338110447,
-0.1454164981842041,
0.016801446676254272,
0.6618236899375916,
0.04202500730752945,
0.25825750827789307,
-0.11820697039365768,
-0.3660911023616791,
0.2513481676578522,
0.17394281923770905,
0.08760590106248856,
0.3652845025062561,
0.2524149715900421,
-0.29564234614372253,
0.08454190194606781,
-0.16359329223632812,
0.05055685713887215,
0.09764891862869263,
-0.06796013563871384,
0.36849871277809143,
-0.09125315397977829,
0.30753812193870544,
0.018532926216721535,
-0.30900582671165466,
0.07445797324180603,
-0.0793074443936348,
0.10628781467676163,
-0.3757323920726776,
0.11504928767681122,
-0.2569514811038971,
-0.14785152673721313,
-0.008882110007107258,
-0.1333729475736618,
0.02665730006992817,
-0.19740495085716248,
-0.05986836552619934,
0.35848942399024963,
0.08938422799110413,
0.2826406955718994,
0.20691955089569092,
0.01923656091094017,
-0.059061694890260696,
-0.10304826498031616,
-0.15513138473033905,
-0.1086173728108406,
-0.11700157076120377,
0.08233913034200668,
0.05886572226881981,
0.19155001640319824,
0.3331588804721832,
-0.3143271207809448,
0.09096075594425201,
0.13702355325222015,
-0.30263617634773254,
0.08582217246294022,
-0.17404386401176453,
0.2888209819793701,
0.2684491276741028,
0.15894384682178497,
-0.17590385675430298,
-0.06246060132980347,
0.43404877185821533,
-0.38249650597572327,
-0.19242843985557556,
0.28277286887168884,
-0.14143608510494232,
-0.055083274841308594,
-0.26233813166618347,
-0.2640990912914276,
-0.5197221040725708,
-0.2946314811706543,
0.25503256916999817,
0.022699836641550064,
0.0717565044760704,
0.34726887941360474,
0.2340487539768219,
0.4523185193538666,
-0.38342246413230896,
-0.022939080372452736,
-0.14411965012550354,
0.04128933325409889,
0.2728775143623352,
-0.0820256844162941,
-0.4259679615497589,
-0.007768073584884405,
-0.08551006764173508,
0.253959596157074,
-0.1286982148885727,
-0.05689472332596779,
-0.44794806838035583,
-0.12663036584854126,
0.3238246440887451,
0.008614640682935715,
-0.15314994752407074,
0.6029992699623108,
0.015640342608094215,
-0.10781051218509674,
-0.15833428502082825,
-0.17673906683921814,
0.10459334403276443,
0.13827551901340485,
0.005655183922499418,
-0.07007057219743729,
0.2453286349773407,
-0.026515167206525803,
0.3515641689300537,
-0.00499334279447794,
-0.20518960058689117,
0.3471203148365021,
-0.30444279313087463,
0.31469637155532837,
-0.12184105068445206,
-0.5708715319633484,
-0.0727781355381012,
-0.026523826643824577,
0.05206722393631935,
-0.13308803737163544,
-0.24626608192920685,
-0.08977670967578888,
-0.3285742998123169,
-0.17385418713092804,
-0.4415082037448883,
-0.23245370388031006,
0.05816316232085228,
0.1306094527244568,
-0.08276937156915665,
0.09588667750358582,
0.07748635113239288,
-0.35680726170539856,
0.056310828775167465,
-0.013216933235526085,
0.21224068105220795,
0.03561445325613022,
-0.18780682981014252,
-0.423454225063324,
-0.26926031708717346,
-0.35538941621780396,
0.3830409348011017,
0.04684070125222206,
0.011089283972978592,
-0.050600942224264145,
-0.1024789959192276,
0.14107663929462433,
0.00763492239639163,
0.6806126832962036,
-0.030130483210086823,
-0.00559022044762969,
0.41600072383880615,
0.14175313711166382,
-0.6230162978172302,
0.07060714811086655,
-0.30217111110687256,
0.05319209769368172,
0.12276491522789001,
0.3985320031642914,
-0.46623390913009644,
-0.15596947073936462,
0.33630603551864624,
-0.03724909946322441,
-0.03282298892736435,
-0.21793974936008453,
-0.28828227519989014,
-0.3978613615036011,
-0.2136865109205246,
0.1251843422651291,
0.14489026367664337,
0.3859928846359253,
-0.22502177953720093,
-0.10911641269922256,
-0.12406738102436066,
0.09480010718107224,
0.034022629261016846,
0.2724269926548004,
0.2362680733203888,
-0.2280842661857605,
-0.09541256725788116,
0.01131936814635992,
0.08381704986095428,
0.2514648139476776,
0.26858216524124146,
-0.04332088679075241,
-0.5514886975288391,
-0.1514345407485962,
0.10565227270126343,
0.216163769364357,
0.07860081642866135,
-0.13576169312000275,
0.007971703074872494,
-0.09118707478046417,
0.13399332761764526,
0.21577516198158264,
0.11816283315420151,
0.4902130663394928,
0.1698918491601944,
-0.2991675138473511,
-0.19172047078609467,
0.4521496891975403,
0.12906336784362793,
0.044719815254211426,
0.14727486670017242,
0.4835730493068695,
-0.16907787322998047,
0.2779707610607147,
-0.11960756778717041,
1.0848116874694824,
-0.0030833480414003134,
-0.005264207720756531,
0.5609254240989685,
-0.10633451491594315,
0.6737443804740906,
0.09001809358596802,
0.23376712203025818,
-0.3639945685863495,
-0.19401061534881592,
-0.01781669445335865,
-0.13349196314811707,
0.2924984395503998,
-0.0650961622595787,
-0.5087831020355225,
0.17536699771881104,
-0.23621611297130585,
0.16399823129177094,
0.0437813363969326,
0.04702520743012428,
-0.11160106956958771,
-0.16344185173511505,
-0.3191116452217102,
0.1553267389535904,
-0.018995612859725952,
0.23816972970962524,
-0.02934269607067108,
-0.10321725904941559,
-0.28848886489868164,
-0.25003695487976074,
-0.17992162704467773,
0.048641402274370193,
-0.48934993147850037,
-0.26446402072906494,
0.2028946429491043,
-0.17350181937217712,
-0.2620542049407959,
0.03505552187561989,
0.17360545694828033,
0.027178972959518433,
-0.2295173555612564,
0.08504249155521393,
-0.011631343513727188,
-0.00572789553552866,
-0.06122816726565361,
-0.1201166883111,
0.4516772925853729,
-0.1806231439113617,
-0.5559982657432556,
-0.0021973922848701477,
0.02834201045334339,
0.11895009130239487,
0.3397732973098755,
0.053394000977277756,
-0.07207795977592468,
-0.37655600905418396,
-0.19562970101833344,
-0.08635606616735458,
0.2171402871608734,
-0.28493964672088623,
0.21587230265140533,
-0.07561811804771423,
-0.17487065494060516,
-0.0020162647124379873,
-0.021698106080293655,
-0.05468336120247841,
0.01811589114367962,
0.39953556656837463,
0.2500367760658264,
0.35637229681015015,
0.2536879777908325,
0.14535170793533325,
-0.127704456448555,
-0.2788096070289612,
0.045451581478118896,
0.2644449472427368,
-0.5634875893592834,
0.14802834391593933,
0.21778762340545654,
-0.12832331657409668,
-0.07589046657085419,
0.42554038763046265,
0.03409704193472862,
0.019987158477306366,
-0.10816120356321335,
-0.17111046612262726,
-0.24745601415634155,
0.45197921991348267,
-0.05328826233744621,
-0.05338922142982483,
0.29341623187065125,
0.5443695783615112,
0.22287210822105408,
0.00774361751973629,
-0.4028414487838745,
0.025847498327493668,
-0.39439427852630615,
0.05160463973879814,
0.050623971968889236,
-0.27356746792793274,
0.27415433526039124,
-0.06078745797276497,
0.22359436750411987,
0.20089800655841827,
-0.06483759731054306,
-0.3292417824268341,
-0.15746022760868073,
0.10207013785839081,
0.013246720656752586,
0.1558353751897812,
0.1404900848865509,
0.04292330518364906,
-0.18654918670654297,
-0.1436392366886139,
0.16466160118579865,
-0.04848714917898178,
-0.05196727067232132,
0.2371668666601181,
0.16914434731006622,
0.311864972114563,
0.049546536058187485,
0.09093039482831955,
-0.0028734588995575905,
-0.12940342724323273,
-0.0817829817533493,
0.01788187213242054,
0.00951787456870079,
0.026417408138513565,
-0.056548938155174255,
-0.10739465802907944,
0.12409085780382156,
0.17480379343032837,
0.09074032306671143,
-0.24518334865570068,
-0.3529209494590759,
-0.28037405014038086,
0.1817106157541275,
0.15338142216205597,
-0.154381662607193,
0.17046597599983215,
-0.06709571182727814,
0.2948552370071411,
-0.42105451226234436,
0.023963477462530136,
0.21941249072551727,
-0.006779571063816547,
0.1791745275259018,
0.151283860206604,
-0.27324098348617554,
0.20631124079227448,
-0.047163452953100204,
0.028358248993754387,
0.4666559398174286,
0.01810695417225361,
0.0889502763748169,
0.2631123960018158,
-0.13171137869358063,
-0.03442613035440445,
0.4894234538078308,
0.1561267375946045,
0.2242717742919922,
-0.006970624439418316,
-0.08840224146842957,
0.22369655966758728,
-0.12400931864976883,
0.07492166012525558,
0.2926058769226074,
-0.21683354675769806,
-0.0012597828172147274,
0.19870023429393768,
0.09429378062486649,
-0.12752752006053925,
-0.3349515497684479,
0.5498442649841309,
-0.2395896166563034,
-0.21077120304107666,
-0.177720844745636,
0.1950448602437973,
-0.20974473655223846,
-0.0012292885221540928,
-0.14001786708831787,
-0.08104909956455231,
-0.12686139345169067,
-0.4116225838661194,
0.056152984499931335,
-0.15146268904209137,
0.4862964451313019,
-0.12111246585845947,
-0.08711976557970047,
-0.2842111885547638,
-0.21753743290901184,
0.4087487757205963,
0.30504685640335083,
-0.15429291129112244,
0.18808361887931824,
0.07063858211040497,
0.17597876489162445,
-0.24390564858913422,
0.5857952237129211,
0.420529842376709,
0.20320497453212738,
-0.08770418912172318,
-0.039412736892700195,
-0.09871822595596313,
-0.3073502480983734,
0.07584990561008453,
0.16010385751724243,
0.34372225403785706,
0.22101157903671265,
0.0020974879153072834,
0.25333085656166077,
-0.24432635307312012,
0.22705252468585968,
-0.10374073684215546,
0.04407040774822235,
-0.40426039695739746,
0.3363032042980194,
-0.32606008648872375,
-0.24991503357887268,
-0.32512566447257996,
0.0070019736886024475,
-0.4086143970489502,
0.17099158465862274,
0.3403109312057495,
0.004055289551615715,
0.15312527120113373,
-0.3124787211418152,
0.10259983688592911,
-0.12374888360500336,
0.2872799038887024,
-0.04214273393154144,
0.29925981163978577,
-0.18125052750110626,
0.0731784775853157,
-0.4249606728553772,
0.39598384499549866,
-0.1252932995557785,
-0.11226262897253036,
0.08735101670026779,
-0.16188326478004456,
-0.14888791739940643,
0.03998468443751335,
0.05573420226573944,
0.4386814534664154,
0.056703485548496246,
-0.05905209481716156,
-0.5389716029167175,
-0.15329217910766602,
-0.13442951440811157,
-0.2273554652929306,
0.20098936557769775,
-0.2520211338996887,
0.08007776737213135,
-0.14424069225788116,
0.06376685947179794,
0.029505999758839607,
-0.09635931253433228,
0.1442122757434845,
0.06708284467458725,
0.6210795640945435,
0.18810416758060455,
0.3392413854598999,
-0.04305415228009224,
-0.06899631023406982,
0.024992434307932854,
-0.17406727373600006,
-0.2406362146139145,
0.2803042232990265,
0.21602801978588104,
0.27566617727279663,
0.0625712126493454,
0.08705448359251022,
-0.047545064240694046,
0.1085866391658783,
0.08250290155410767,
-0.22646863758563995,
-0.06166772171854973,
0.11979459971189499,
-0.02025887928903103,
-0.2373051792383194,
-0.1996343731880188,
0.06107131019234657,
0.005293822381645441,
0.07696854323148727,
-0.2243451476097107,
-0.2481004148721695,
0.7152532935142517,
-0.2563154995441437,
-0.2637999355792999,
0.055393703281879425,
0.2930932939052582,
0.1165037527680397,
-0.4328466057777405,
-0.7834493517875671,
0.016644597053527832,
0.2939423620700836,
0.08392617851495743,
-0.224028542637825,
0.29482513666152954,
0.010084476321935654,
0.048218030482530594,
-0.0746174231171608,
0.1352372169494629,
0.040770724415779114,
-0.016859004274010658,
0.071247398853302,
-0.20073987543582916
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | - For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 69 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
- For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | [
-0.22777147591114044,
-0.31935063004493713,
0.0008598552667535841,
0.3918524384498596,
0.36772385239601135,
0.05574566870927811,
0.3176340162754059,
0.1545284390449524,
0.17334458231925964,
0.29602792859077454,
-0.14268548786640167,
0.45529571175575256,
-0.07765702903270721,
0.22984349727630615,
0.04933319613337517,
-0.16517215967178345,
-0.21050359308719635,
0.2611335813999176,
-0.11917071789503098,
0.026228001341223717,
-0.5092206597328186,
-0.07414790987968445,
-0.16408520936965942,
0.13499248027801514,
-0.23775465786457062,
-0.27198120951652527,
-0.12409425526857376,
0.04082559421658516,
-0.19214248657226562,
-0.283849835395813,
0.3645710349082947,
-0.08018818497657776,
0.21226179599761963,
0.5988925695419312,
-0.00010084891255246475,
-0.15145434439182281,
0.4352059066295624,
0.047600384801626205,
-0.1254921555519104,
-0.35230422019958496,
-0.29466405510902405,
-0.38472041487693787,
0.18985743820667267,
-0.3827018737792969,
-0.07430294156074524,
-0.00820143148303032,
0.02860967442393303,
-0.24263767898082733,
0.34812504053115845,
0.34845221042633057,
0.35069939494132996,
0.41590261459350586,
0.08335753530263901,
-0.2823812663555145,
0.18847669661045074,
0.07757257670164108,
-0.10485326498746872,
0.2966800332069397,
0.06237271428108215,
-0.01648002676665783,
0.31453409790992737,
0.1602044403553009,
-0.28301361203193665,
-0.054299332201480865,
0.2551214098930359,
0.06458744406700134,
-0.0053247069008648396,
-0.3559246063232422,
0.031036609783768654,
0.3066703677177429,
0.4195716679096222,
-0.3946249186992645,
-0.1872214823961258,
0.06077604740858078,
0.12990857660770416,
-0.22349737584590912,
0.15397293865680695,
-0.011560081504285336,
-0.006476990878582001,
0.06588651984930038,
-0.0040367236360907555,
0.15579232573509216,
-0.23680417239665985,
0.21838361024856567,
-0.1664239764213562,
0.0901959091424942,
-0.2121003419160843,
0.10706372559070587,
0.06709713488817215,
-0.19923976063728333,
0.045229192823171616,
-0.1839863806962967,
0.03513568267226219,
0.10960425436496735,
-0.22112631797790527,
-0.14527887105941772,
0.12990134954452515,
0.11116771399974823,
0.12701036036014557,
-0.24557745456695557,
0.11687235534191132,
-0.04831208661198616,
-0.02369716577231884,
0.4071711599826813,
0.2398945689201355,
0.21606552600860596,
0.1970725655555725,
0.1496334820985794,
0.21602874994277954,
0.04413461685180664,
-0.1853792816400528,
-0.05197478458285332,
-0.12557612359523773,
-0.10145597904920578,
0.2814616560935974,
0.19620634615421295,
0.5696899890899658,
-0.0633770227432251,
-0.44511207938194275,
-0.03698890656232834,
-0.20708993077278137,
0.09236742556095123,
0.254140704870224,
0.3783912658691406,
-0.18408629298210144,
0.15318289399147034,
0.2149181365966797,
0.06958337873220444,
-0.1426403671503067,
-0.23278316855430603,
-0.2402685582637787,
0.33367568254470825,
-0.272696316242218,
-0.23244841396808624,
0.0732233002781868,
0.08000893145799637,
-0.101652130484581,
0.05153476074337959,
-0.04660588130354881,
0.07362643629312515,
0.10525629669427872,
-0.382973849773407,
-0.1715996414422989,
0.1613503098487854,
0.1342366486787796,
-0.010921847075223923,
0.35754916071891785,
-0.4132309854030609,
-0.145542174577713,
0.10808615386486053,
-0.31792116165161133,
-0.09275321662425995,
-0.09039126336574554,
0.32125571370124817,
-0.23628990352153778,
-0.07920955866575241,
-0.19519098103046417,
-0.004734632559120655,
0.07721706479787827,
-0.2021208554506302,
0.024387812241911888,
-0.16129247844219208,
0.009970619343221188,
-0.41247519850730896,
0.03967137634754181,
0.5434520244598389,
-0.3702254891395569,
-0.13193170726299286,
-0.3560015559196472,
-0.05267051234841347,
0.36508288979530334,
-0.16172461211681366,
0.08691879361867905,
0.20492644608020782,
-0.16195577383041382,
-0.07837963849306107,
0.5953558683395386,
-0.36260145902633667,
-0.19426202774047852,
0.05563010647892952,
-0.07925154268741608,
-0.05803997814655304,
-0.0674489364027977,
-0.01407069806009531,
0.09501787275075912,
0.11393079906702042,
0.409541517496109,
0.2211548537015915,
-0.0633309856057167,
-0.027870263904333115,
-0.19503988325595856,
-0.17339003086090088,
0.1649029403924942,
0.09183705598115921,
0.14367224276065826,
0.16262605786323547,
0.0630827397108078,
-0.20378418266773224,
0.01849397085607052,
-0.03979118540883064,
-0.09291744232177734,
-0.06524165719747543,
0.6565247178077698,
-0.08722400665283203,
-0.07887439429759979,
-0.5945645570755005,
-0.3253457248210907,
0.16847871243953705,
-0.06773517280817032,
0.2807233929634094,
-0.14473286271095276,
-0.17076820135116577,
-0.36640071868896484,
0.06777673214673996,
-0.049828652292490005,
0.04808830842375755,
0.34265395998954773,
0.12715665996074677,
-0.19987280666828156,
0.04511798545718193,
-0.14434689283370972,
0.17792043089866638,
-0.1498604267835617,
0.10199585556983948,
-0.0057355607859790325,
0.3032820522785187,
-0.010557051748037338,
-0.35509350895881653,
0.04372134432196617,
0.23754450678825378,
0.5392078757286072,
0.03011089749634266,
-0.07144971936941147,
0.29617154598236084,
0.08397337794303894,
-0.1378156542778015,
-0.14906573295593262,
-0.08285430073738098,
0.11919087171554565,
-0.261509507894516,
0.07613290846347809,
0.11351101100444794,
0.34134799242019653,
-0.08067645877599716,
0.13791561126708984,
0.5502912998199463,
0.07054269313812256,
0.21825101971626282,
-0.042580101639032364,
0.23599258065223694,
-0.04587547108530998,
-0.04047512263059616,
-0.09132024645805359,
-0.1391233205795288,
0.13101370632648468,
0.09693311154842377,
0.1783953458070755,
-0.06409034878015518,
-0.11669531464576721,
0.06287931650876999,
0.5675637722015381,
0.0985858365893364,
0.3846490681171417,
-0.07103808224201202,
-0.3002263903617859,
0.15484486520290375,
0.08901765942573547,
0.282279908657074,
0.4458232820034027,
0.30823689699172974,
-0.1348169445991516,
0.0028448125813156366,
-0.10547316074371338,
0.0909259095788002,
0.06957720220088959,
-0.008273783139884472,
0.21120737493038177,
-0.018398649990558624,
0.17825163900852203,
0.0799446552991867,
-0.17789320647716522,
-0.04522033408284187,
-0.22354421019554138,
0.264432817697525,
-0.35881808400154114,
0.19164204597473145,
-0.26753878593444824,
-0.1693612039089203,
0.04168176278471947,
-0.06624086946249008,
-0.15838953852653503,
-0.34399715065956116,
-0.23224149644374847,
0.025640150532126427,
0.11330507695674896,
0.13157378137111664,
0.11442453414201736,
0.15597222745418549,
0.008065525442361832,
0.08559365570545197,
-0.16564875841140747,
-0.1026744619011879,
-0.1289934664964676,
0.16394025087356567,
0.12112633883953094,
0.21240679919719696,
0.48516741394996643,
-0.22811315953731537,
0.24508187174797058,
-0.02644420973956585,
-0.22799409925937653,
0.06388494372367859,
-0.09600360691547394,
0.4924278259277344,
0.45338544249534607,
0.17071011662483215,
-0.0828903317451477,
-0.016710108146071434,
0.3197818100452423,
-0.36569952964782715,
0.02973121963441372,
0.21107207238674164,
-0.22123105823993683,
0.10772055387496948,
-0.15860579907894135,
-0.17414116859436035,
-0.5684415102005005,
-0.4111052453517914,
0.10356128960847855,
0.1680116206407547,
0.16570648550987244,
0.16242024302482605,
0.1247418224811554,
0.5334135293960571,
0.13757465779781342,
0.1933973729610443,
-0.19584646821022034,
-0.04873547703027725,
0.283610463142395,
-0.12285982817411423,
-0.2586841583251953,
0.14708435535430908,
-0.10504329949617386,
0.20656263828277588,
0.01553458534181118,
-0.1752418577671051,
-0.5393425226211548,
-0.17314577102661133,
0.15460363030433655,
-0.08293329924345016,
0.09190046787261963,
0.26020219922065735,
0.11553987115621567,
-0.1390543431043625,
-0.23397743701934814,
-0.1428653448820114,
-0.1661492884159088,
0.25579768419265747,
0.06729362905025482,
0.04017607867717743,
0.3397761285305023,
-0.17836764454841614,
0.12944795191287994,
0.006567227188497782,
-0.23464898765087128,
0.3460308015346527,
-0.2629454731941223,
0.3489435911178589,
-0.12483203411102295,
-0.5024337768554688,
-0.14444048702716827,
0.005821620114147663,
-0.09000544250011444,
-0.04923005402088165,
-0.16131563484668732,
-0.16663901507854462,
-0.37579235434532166,
-0.12356749922037125,
-0.4473453462123871,
-0.1732088178396225,
-0.026835255324840546,
0.2132812738418579,
0.019658436998724937,
-0.010780798271298409,
0.12264137715101242,
-0.4682359993457794,
0.048934414982795715,
-0.05164681747555733,
0.23821334540843964,
0.019748738035559654,
-0.24328695237636566,
-0.2479410469532013,
-0.3090170919895172,
-0.18549372255802155,
0.44906163215637207,
-0.1629897952079773,
0.03376598283648491,
-0.1722392737865448,
-0.020915133878588676,
0.046381548047065735,
-0.01755518838763237,
0.5029239654541016,
-0.34191447496414185,
0.07977230101823807,
0.4984998404979706,
0.13876168429851532,
-0.38402828574180603,
0.17398497462272644,
-0.4070257842540741,
0.3183746039867401,
0.15173199772834778,
0.2837772071361542,
-0.3160908818244934,
-0.020610759034752846,
0.24023155868053436,
0.13003911077976227,
-0.13098108768463135,
-0.20839396119117737,
-0.14482060074806213,
-0.23429574072360992,
-0.127831369638443,
0.02450123243033886,
-0.0037168366834521294,
0.30061227083206177,
-0.13161452114582062,
-0.1478491574525833,
-0.3589732050895691,
0.0226066242903471,
0.2575156092643738,
0.20952458679676056,
0.2955669164657593,
-0.09687639027833939,
-0.0735841915011406,
-0.06800172477960587,
0.08212646842002869,
0.19551225006580353,
0.2744945287704468,
0.018945474177598953,
-0.39154890179634094,
0.06302899867296219,
0.05650421977043152,
0.25116902589797974,
0.07812299579381943,
-0.14416714012622833,
-0.0535794273018837,
-0.08006329834461212,
0.19437794387340546,
-0.05235779285430908,
0.10010579228401184,
0.2666032910346985,
0.0928935632109642,
-0.4500442147254944,
-0.34441521763801575,
0.3886462152004242,
0.1911039501428604,
-0.04681103304028511,
0.2515255808830261,
0.255499929189682,
-0.2587035000324249,
0.24113523960113525,
0.058511797338724136,
1.0566798448562622,
0.04513057321310043,
-0.17906369268894196,
0.4914720356464386,
-0.12531833350658417,
0.5688884258270264,
0.04279701039195061,
0.015406174585223198,
-0.33789753913879395,
-0.26562222838401794,
-0.051064617931842804,
-0.15461574494838715,
0.3252924382686615,
-0.09901872277259827,
-0.6059659719467163,
0.2722359895706177,
-0.41871052980422974,
-0.011303422972559929,
-0.051617369055747986,
-0.14507262408733368,
-0.16157525777816772,
-0.13057000935077667,
-0.40061435103416443,
0.2759851813316345,
-0.17678870260715485,
0.1705225706100464,
-0.15395459532737732,
-0.048945821821689606,
0.017454341053962708,
-0.12432350218296051,
-0.10454355180263519,
-0.006815799977630377,
-0.4354238212108612,
-0.2015477865934372,
-0.11793245375156403,
-0.16178485751152039,
0.01737377792596817,
0.1457437127828598,
0.17152103781700134,
0.13368260860443115,
-0.23752787709236145,
0.09018555283546448,
0.06006603315472603,
0.06914418935775757,
-0.08439328521490097,
0.035327889025211334,
0.2427477091550827,
-0.01979156769812107,
-0.3155229389667511,
0.17253978550434113,
0.034791212528944016,
0.14839740097522736,
0.36455798149108887,
0.09961363673210144,
-0.08317908644676208,
-0.3884962201118469,
-0.1447439193725586,
-0.060199711471796036,
0.20350591838359833,
-0.2569366991519928,
0.2733272612094879,
0.1267130970954895,
-0.07536563277244568,
0.10747765004634857,
-0.024491526186466217,
-0.09386873990297318,
-0.05633159354329109,
0.2750468850135803,
0.3504136800765991,
0.26577597856521606,
0.09271164983510971,
0.20155224204063416,
-0.21497270464897156,
-0.37389421463012695,
0.2654363512992859,
0.07702501863241196,
-0.22658470273017883,
0.23995095491409302,
0.14243869483470917,
-0.04775643348693848,
-0.07400858402252197,
0.3281373679637909,
0.10603383183479309,
0.049693621695041656,
-0.1529468148946762,
-0.28883951902389526,
-0.27070489525794983,
0.25821757316589355,
0.1262250542640686,
0.0776326134800911,
-0.02847248688340187,
0.20888666808605194,
0.1913178563117981,
-0.04921364411711693,
-0.48227134346961975,
0.0605648010969162,
-0.38360828161239624,
-0.08708054572343826,
0.05517591908574104,
-0.09081324189901352,
0.1894114464521408,
-0.0005162181914784014,
0.26105639338493347,
0.08882620185613632,
-0.08104237914085388,
-0.3424242436885834,
-0.1005697101354599,
0.09644266963005066,
0.003066288772970438,
0.035218529403209686,
0.14856696128845215,
-0.12070637196302414,
-0.17071877419948578,
-0.14116792380809784,
0.026607535779476166,
0.05938833951950073,
-0.15879639983177185,
0.11504935473203659,
0.12432640790939331,
0.2831471860408783,
0.035300154238939285,
0.20566755533218384,
0.07696619629859924,
-0.02294539287686348,
-0.043542176485061646,
0.01879718527197838,
0.003623007796704769,
-0.06407927721738815,
-0.03019721992313862,
0.027970222756266594,
0.1451297551393509,
0.14027343690395355,
0.125574991106987,
-0.10085047781467438,
-0.210220068693161,
0.08784742653369904,
0.16580766439437866,
0.15596799552440643,
-0.1419837474822998,
0.27704617381095886,
-0.08683080971240997,
0.3664443790912628,
-0.2744099199771881,
0.06080547347664833,
0.19101998209953308,
-0.11251921951770782,
0.23193933069705963,
0.15145763754844666,
-0.34167736768722534,
0.25747302174568176,
-0.16059844195842743,
-0.024174299091100693,
0.37635305523872375,
-0.15950584411621094,
0.15429548919200897,
0.23224450647830963,
-0.1036696583032608,
-0.026934772729873657,
0.39104944467544556,
0.2250010371208191,
0.08933498710393906,
0.06976702064275742,
-0.1052326112985611,
0.1659095287322998,
-0.035488709807395935,
0.022982267662882805,
0.23917606472969055,
-0.4080981910228729,
0.24598443508148193,
0.2516363859176636,
-0.029160810634493828,
-0.0656304806470871,
-0.16864469647407532,
0.2762495279312134,
-0.5681785345077515,
-0.10208328813314438,
-0.30880507826805115,
0.011396590620279312,
-0.173256978392601,
0.1290311962366104,
-0.12826260924339294,
-0.14371037483215332,
-0.2699720561504364,
-0.3319651782512665,
0.055672742426395416,
-0.1790090650320053,
0.19546161592006683,
-0.13716280460357666,
0.10487842559814453,
-0.19526393711566925,
-0.06117329001426697,
0.24572603404521942,
0.193771630525589,
-0.20824185013771057,
-0.0402505062520504,
-0.012576134875416756,
0.23608389496803284,
-0.1725241243839264,
0.5394889116287231,
0.39548468589782715,
0.33220693469047546,
-0.16179731488227844,
-0.027439190074801445,
0.07311812043190002,
-0.28203728795051575,
-0.06031583622097969,
0.04854932054877281,
0.03403964638710022,
0.24092434346675873,
0.06595498323440552,
0.340512216091156,
-0.31979358196258545,
0.09676835685968399,
-0.065999835729599,
0.016791922971606255,
-0.30437958240509033,
0.4304433763027191,
-0.3063569664955139,
-0.13282644748687744,
-0.11993439495563507,
-0.1177719309926033,
-0.5592743754386902,
0.06026022508740425,
0.40060943365097046,
0.06404069811105728,
0.10860761255025864,
-0.11826295405626297,
0.1509964019060135,
-0.17164120078086853,
0.11801569163799286,
-0.0006214222521521151,
0.33708128333091736,
-0.2615213394165039,
0.07738421857357025,
-0.4892734885215759,
0.3647935688495636,
0.027636101469397545,
-0.19823792576789856,
0.03153746947646141,
-0.11909500509500504,
-0.1470417082309723,
0.009699861519038677,
0.04012309014797211,
0.23808129131793976,
0.23860342800617218,
0.006259408313781023,
-0.5759983062744141,
-0.3410034775733948,
-0.10113736242055893,
-0.215959832072258,
0.10869105160236359,
-0.2300250381231308,
-0.044758137315511703,
-0.1500619649887085,
0.18267089128494263,
-0.042810436338186264,
-0.25791460275650024,
0.08402937650680542,
0.11911378800868988,
0.6550237536430359,
0.1934751719236374,
0.3989141285419464,
-0.12089630961418152,
-0.022604534402489662,
0.15709446370601654,
-0.320240318775177,
-0.08176813274621964,
0.27355197072029114,
0.12101355940103531,
0.20029917359352112,
0.04154592007398605,
0.16314846277236938,
-0.20303335785865784,
0.0024247898254543543,
0.027458351105451584,
0.05854012817144394,
-0.14644448459148407,
0.30776289105415344,
-0.16456139087677002,
-0.23615340888500214,
-0.22914473712444305,
0.10953591763973236,
0.0604570135474205,
0.1458994746208191,
-0.019830022007226944,
-0.11069876700639725,
0.6249819397926331,
-0.16928595304489136,
-0.25988513231277466,
-0.05703848972916603,
0.3724468946456909,
0.004408118315041065,
-0.1203283965587616,
-0.49222132563591003,
0.0031383729074150324,
0.46464213728904724,
-0.048813872039318085,
-0.16638508439064026,
0.20396541059017181,
-0.19556470215320587,
-0.019562941044569016,
-0.03939572721719742,
0.11102157831192017,
-0.01888624206185341,
0.0038260857108980417,
0.2579207122325897,
-0.11875492334365845
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 154 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | [
-0.23339277505874634,
-0.21219129860401154,
0.015184028074145317,
0.35403627157211304,
0.43131223320961,
0.056546494364738464,
0.4275265038013458,
0.16688376665115356,
0.16195915639400482,
0.2543880045413971,
-0.14911991357803345,
0.4838866889476776,
-0.032627642154693604,
0.2008448988199234,
0.1351146250963211,
-0.18757687509059906,
-0.17804880440235138,
0.18363410234451294,
-0.20757393538951874,
0.055490944534540176,
-0.5303388833999634,
-0.06945797055959702,
-0.13110043108463287,
0.11422090232372284,
-0.1653043031692505,
-0.24418289959430695,
-0.15801967680454254,
0.09879211336374283,
-0.17958547174930573,
-0.35017818212509155,
0.4064704179763794,
-0.11642850190401077,
0.21963711082935333,
0.5620658993721008,
-0.00010151930473512039,
-0.04592042788863182,
0.46223780512809753,
0.07418876886367798,
-0.18267714977264404,
-0.3177574872970581,
-0.29529663920402527,
-0.38185709714889526,
0.17007145285606384,
-0.39124003052711487,
-0.0481695793569088,
-0.03719896450638771,
-0.003975209780037403,
-0.251920610666275,
0.29806023836135864,
0.37957945466041565,
0.3288027346134186,
0.45387428998947144,
0.09116262942552567,
-0.24887651205062866,
0.1904570609331131,
0.09100285917520523,
-0.06212693825364113,
0.3023781180381775,
0.05389484018087387,
-0.056766726076602936,
0.21138796210289001,
0.1328088641166687,
-0.3628785014152527,
-0.0556366890668869,
0.2719312608242035,
0.06313908845186234,
0.03363437205553055,
-0.38732895255088806,
0.07486724108457565,
0.30004531145095825,
0.44824162125587463,
-0.3896300494670868,
-0.24697579443454742,
0.023593127727508545,
0.12234890460968018,
-0.19945092499256134,
0.2123643308877945,
0.05095049366354942,
0.0008061883272603154,
0.06162849813699722,
0.01964421570301056,
0.19357790052890778,
-0.19301772117614746,
0.24975335597991943,
-0.15549121797084808,
0.15984433889389038,
-0.16727423667907715,
0.1182280033826828,
0.0708542913198471,
-0.2033924013376236,
0.04979526251554489,
-0.23699788749217987,
0.007766187656670809,
0.11362118273973465,
-0.2622622847557068,
-0.05780356377363205,
0.15958726406097412,
0.1328139454126358,
0.09247199445962906,
-0.20312468707561493,
0.08403895050287247,
-0.03857838734984398,
0.0005314499721862376,
0.3734625279903412,
0.2657109797000885,
0.2719012200832367,
0.26306575536727905,
0.1053493469953537,
0.3113080859184265,
0.0968511551618576,
-0.10354035347700119,
0.017160089686512947,
-0.17414025962352753,
-0.19628769159317017,
0.2919618785381317,
0.27147164940834045,
0.5614540576934814,
-0.007139734923839569,
-0.40033647418022156,
-0.11291173100471497,
-0.17627201974391937,
0.04147804528474808,
0.19149401783943176,
0.34883904457092285,
-0.16599628329277039,
0.19304116070270538,
0.2003636211156845,
0.1248331218957901,
-0.21398010849952698,
-0.2602631449699402,
-0.2342292070388794,
0.27743634581565857,
-0.25626251101493835,
-0.19921079277992249,
0.11577466130256653,
-0.012630871497094631,
-0.07417258620262146,
0.011299284175038338,
-0.17714530229568481,
0.1546337604522705,
0.14037321507930756,
-0.3297455310821533,
-0.19453082978725433,
0.18053998053073883,
0.05135134980082512,
0.04685423895716667,
0.33966416120529175,
-0.3767824172973633,
-0.14490900933742523,
0.08572741597890854,
-0.29727891087532043,
-0.1406731903553009,
-0.15554353594779968,
0.31377270817756653,
-0.20381085574626923,
-0.05960198491811752,
-0.22110293805599213,
-0.027177050709724426,
0.12903496623039246,
-0.15920838713645935,
0.02249472588300705,
-0.15681177377700806,
-0.0343935564160347,
-0.4068644046783447,
0.09198981523513794,
0.6147863864898682,
-0.4071787893772125,
-0.15554848313331604,
-0.36548683047294617,
-0.149928480386734,
0.320685476064682,
-0.21920470893383026,
0.04204718768596649,
0.20534251630306244,
-0.18843974173069,
-0.06704171746969223,
0.5587267875671387,
-0.41095975041389465,
-0.2658071517944336,
0.07133065164089203,
-0.12879231572151184,
-0.08685889840126038,
0.0406508706510067,
-0.029998302459716797,
0.07223064452409744,
0.1137080043554306,
0.4100978374481201,
0.2751322090625763,
0.0011145423632115126,
0.007901105098426342,
-0.18644510209560394,
-0.23571166396141052,
0.1991768479347229,
0.06497546285390854,
0.13844680786132812,
0.10235562175512314,
0.14062145352363586,
-0.1971789449453354,
0.0246631670743227,
-0.048763956874608994,
-0.03272484242916107,
-0.05778984725475311,
0.5558082461357117,
-0.04685475677251816,
-0.04484403878450394,
-0.5518350005149841,
-0.422751784324646,
0.18975438177585602,
-0.07995229214429855,
0.35416629910469055,
-0.13350357115268707,
-0.187280535697937,
-0.326465368270874,
0.05830276012420654,
-0.13896284997463226,
-0.02006608061492443,
0.31765294075012207,
0.154574915766716,
-0.16887368261814117,
0.02886834926903248,
-0.05646943300962448,
0.21193832159042358,
-0.07563143968582153,
0.07361217588186264,
-0.14293058216571808,
0.30801743268966675,
-0.05763654410839081,
-0.3339875340461731,
0.03776831924915314,
0.2538014054298401,
0.5117611289024353,
-0.00044920400250703096,
-0.06331966817378998,
0.3244803547859192,
0.08667490631341934,
-0.04965454712510109,
-0.16503462195396423,
-0.09998047351837158,
0.15094144642353058,
-0.22893689572811127,
0.09716608375310898,
0.0872650220990181,
0.31685876846313477,
-0.06620483100414276,
0.09549491107463837,
0.4775230288505554,
0.08892488479614258,
0.2869647145271301,
-0.0390479601919651,
0.24175706505775452,
-0.041158780455589294,
-0.028782762587070465,
-0.08499172329902649,
-0.17435333132743835,
0.07616791129112244,
0.1894838511943817,
0.2709214985370636,
-0.03209221363067627,
-0.03770425170660019,
0.09219622611999512,
0.5580121278762817,
0.04432171583175659,
0.35388821363449097,
-0.08044292777776718,
-0.38185039162635803,
0.08841369301080704,
0.18686285614967346,
0.2703932821750641,
0.4774661362171173,
0.31630557775497437,
-0.11772751808166504,
-0.013574783690273762,
-0.0687377080321312,
0.06897158175706863,
0.08990516513586044,
0.00006875162216601893,
0.21827448904514313,
0.032634537667036057,
0.20715361833572388,
0.060828324407339096,
-0.2113717645406723,
-0.05290549248456955,
-0.17337627708911896,
0.22314691543579102,
-0.40777483582496643,
0.11844145506620407,
-0.32161882519721985,
-0.15450648963451385,
-0.020386047661304474,
0.0009130464168265462,
-0.1665668487548828,
-0.3700626492500305,
-0.2923043668270111,
0.009075582027435303,
0.058613892644643784,
0.13553090393543243,
0.07294316589832306,
0.08480878174304962,
0.030380133539438248,
0.0038110106252133846,
-0.1432914286851883,
-0.15066371858119965,
-0.197237029671669,
0.1309271901845932,
0.1724001169204712,
0.20352189242839813,
0.45790937542915344,
-0.17239373922348022,
0.1496831327676773,
-0.06682303547859192,
-0.25927385687828064,
0.06910708546638489,
-0.03589189052581787,
0.5192116498947144,
0.47515764832496643,
0.17594881355762482,
0.03733639046549797,
-0.0723709762096405,
0.39171287417411804,
-0.33756574988365173,
-0.036360759288072586,
0.281316876411438,
-0.22624893486499786,
0.19123804569244385,
-0.16277433931827545,
-0.27095532417297363,
-0.5850609540939331,
-0.43146464228630066,
0.09004975110292435,
0.1581937074661255,
0.15741708874702454,
0.22907347977161407,
0.13763046264648438,
0.4989827573299408,
0.055446356534957886,
0.1736273467540741,
-0.1574212610721588,
-0.051702000200748444,
0.2869262099266052,
-0.12826843559741974,
-0.3188621401786804,
0.06270329654216766,
-0.16105878353118896,
0.21237178146839142,
0.009506668895483017,
-0.20917998254299164,
-0.5421625971794128,
-0.19377388060092926,
0.24889874458312988,
-0.008854357525706291,
0.14066404104232788,
0.28208616375923157,
0.16523748636245728,
-0.17189642786979675,
-0.20089788734912872,
-0.14519618451595306,
-0.09587506204843521,
0.2647385001182556,
0.003278672695159912,
0.1268491894006729,
0.3415831923484802,
-0.16137102246284485,
0.15917514264583588,
0.021251918748021126,
-0.1993088275194168,
0.41499972343444824,
-0.26402875781059265,
0.35535362362861633,
-0.1553536057472229,
-0.5011112093925476,
-0.13159999251365662,
-0.034155622124671936,
0.011961887590587139,
-0.0257775466889143,
-0.14988476037979126,
-0.16163358092308044,
-0.3645355701446533,
-0.19629110395908356,
-0.4402102530002594,
-0.1943257749080658,
-0.04519015923142433,
0.19967065751552582,
0.020419897511601448,
-0.029306864365935326,
0.12709294259548187,
-0.48087769746780396,
0.03261001780629158,
0.04268081858754158,
0.22182698547840118,
-0.043626632541418076,
-0.17677581310272217,
-0.24602457880973816,
-0.24011051654815674,
-0.26470476388931274,
0.4546618163585663,
-0.1586204469203949,
0.03671906888484955,
-0.14815834164619446,
-0.06042752414941788,
0.003012389875948429,
-0.07133225351572037,
0.5519663691520691,
-0.3454788625240326,
0.167946919798851,
0.5127313137054443,
0.19823023676872253,
-0.397299587726593,
0.14483104646205902,
-0.34672120213508606,
0.19787153601646423,
0.0658445656299591,
0.31295403838157654,
-0.3585754334926605,
-0.03750850632786751,
0.2515776455402374,
0.20191213488578796,
-0.12929829955101013,
-0.1740512102842331,
-0.14477801322937012,
-0.25037631392478943,
-0.13169923424720764,
-0.05848639830946922,
-0.12461373955011368,
0.35948646068573,
-0.12653741240501404,
-0.15836377441883087,
-0.30935147404670715,
-0.030120188370347023,
0.17894954979419708,
0.18407675623893738,
0.28029370307922363,
-0.07592803984880447,
-0.036761246621608734,
-0.046405643224716187,
0.07169938832521439,
0.23198649287223816,
0.3442593216896057,
-0.023947373032569885,
-0.3605998456478119,
0.06677629053592682,
0.014034382998943329,
0.23565275967121124,
0.058527201414108276,
-0.18437214195728302,
-0.10359596461057663,
-0.05338580161333084,
0.2002052366733551,
-0.10604546964168549,
0.07498475164175034,
0.30687111616134644,
0.06406138837337494,
-0.3982105851173401,
-0.3787682354450226,
0.40757688879966736,
0.14827732741832733,
-0.05587650090456009,
0.2646419107913971,
0.2493724226951599,
-0.30793067812919617,
0.2636658549308777,
0.0765036791563034,
0.9972304701805115,
0.06343605369329453,
-0.14272236824035645,
0.529119610786438,
-0.0992499366402626,
0.5708357691764832,
0.02166435495018959,
0.07378089427947998,
-0.3225640058517456,
-0.24031810462474823,
-0.062166787683963776,
-0.1458812654018402,
0.36378246545791626,
0.01775684580206871,
-0.5546253323554993,
0.2570110261440277,
-0.40403831005096436,
0.033881157636642456,
-0.09939461946487427,
-0.054079048335552216,
-0.16800834238529205,
-0.15559397637844086,
-0.4221654534339905,
0.26156455278396606,
-0.1391603797674179,
0.16466647386550903,
-0.09646620601415634,
-0.0559900626540184,
0.0007046881364658475,
-0.15051054954528809,
-0.05448855087161064,
0.026049163192510605,
-0.47052904963493347,
-0.09283189475536346,
-0.1959894597530365,
-0.14020226895809174,
-0.015017539262771606,
0.21177193522453308,
0.10819754749536514,
0.07988026738166809,
-0.22084848582744598,
0.0747629702091217,
0.10029993206262589,
0.11136142164468765,
-0.07459383457899094,
0.018623845651745796,
0.2860431671142578,
-0.03659246489405632,
-0.3421165347099304,
0.14515800774097443,
-0.03462517634034157,
0.17506323754787445,
0.37815767526626587,
0.07899659872055054,
-0.0583958774805069,
-0.36032646894454956,
-0.10064274072647095,
-0.058162786066532135,
0.23706112802028656,
-0.25680282711982727,
0.2513566017150879,
0.05455606430768967,
-0.03553367033600807,
0.07119755446910858,
-0.1054585874080658,
-0.0828099325299263,
-0.09730264544487,
0.3941631615161896,
0.29129236936569214,
0.27724799513816833,
0.21699313819408417,
0.23510049283504486,
-0.22449541091918945,
-0.3636665642261505,
0.28894975781440735,
0.09907732158899307,
-0.3086126446723938,
0.19841726124286652,
0.2202889621257782,
-0.048322781920433044,
-0.03577713668346405,
0.34723934531211853,
0.0114343436434865,
0.049836207181215286,
-0.13501325249671936,
-0.28077635169029236,
-0.22253893315792084,
0.2674214243888855,
0.09064282476902008,
0.08440593630075455,
0.0283272136002779,
0.16219840943813324,
0.177445650100708,
-0.05472409352660179,
-0.45146939158439636,
-0.011736397631466389,
-0.33758798241615295,
-0.037974726408720016,
0.11412511765956879,
-0.06889155507087708,
0.21172364056110382,
0.046973373740911484,
0.26682645082473755,
-0.027095315977931023,
-0.09540187567472458,
-0.3234717845916748,
-0.10079485923051834,
0.10074528306722641,
-0.03197823837399483,
-0.004105513449758291,
0.2243579477071762,
-0.130921870470047,
-0.16262570023536682,
-0.16517190635204315,
0.17552965879440308,
0.057732731103897095,
-0.1902177929878235,
0.10387809574604034,
0.15697412192821503,
0.283407062292099,
0.04302489757537842,
0.2171773910522461,
-0.026657462120056152,
-0.05812227353453636,
-0.02266465127468109,
0.039119619876146317,
0.015667758882045746,
-0.049856409430503845,
-0.01604108139872551,
0.04384423792362213,
0.09413565695285797,
0.11545418947935104,
0.10233139991760254,
-0.13287025690078735,
-0.23977158963680267,
0.10105198621749878,
0.17079536616802216,
0.16727042198181152,
-0.116989366710186,
0.24982720613479614,
-0.08524002134799957,
0.3432338237762451,
-0.30241844058036804,
0.04962361976504326,
0.1867102086544037,
-0.15452514588832855,
0.22602340579032898,
0.11560607701539993,
-0.30482548475265503,
0.2245938926935196,
-0.14696510136127472,
-0.012541738338768482,
0.41312000155448914,
-0.1344488561153412,
0.21409621834754944,
0.3211933970451355,
-0.08356038480997086,
-0.01668957807123661,
0.3776882588863373,
0.1835823506116867,
0.10865157097578049,
0.03167743235826492,
-0.057955894619226456,
0.1470869779586792,
-0.019642788916826248,
0.08554171025753021,
0.2414100617170334,
-0.5050230622291565,
0.27103304862976074,
0.24059978127479553,
-0.0243101604282856,
-0.11213710159063339,
-0.1639893800020218,
0.3712480366230011,
-0.5745438933372498,
-0.06367123872041702,
-0.30643123388290405,
0.059413421899080276,
-0.1685565710067749,
0.11595263332128525,
-0.11149479448795319,
-0.14003877341747284,
-0.25655195116996765,
-0.2784862518310547,
0.06332866102457047,
-0.24148890376091003,
0.2439764440059662,
-0.11187314987182617,
0.02112690545618534,
-0.27141278982162476,
-0.04015257954597473,
0.22177980840206146,
0.12762781977653503,
-0.19419707357883453,
0.009709577076137066,
0.05060123652219772,
0.20417965948581696,
-0.18068422377109528,
0.5522725582122803,
0.3988933265209198,
0.38002243638038635,
-0.13546359539031982,
-0.06647873669862747,
0.1149359866976738,
-0.2638258635997772,
-0.09045278280973434,
0.010561587288975716,
-0.03626395761966705,
0.25907737016677856,
0.10439466685056686,
0.3203142285346985,
-0.30220067501068115,
-0.006891030352562666,
-0.01900315098464489,
0.005731004755944014,
-0.2694805860519409,
0.38334396481513977,
-0.29412969946861267,
-0.13394589722156525,
-0.11302606016397476,
-0.07648447155952454,
-0.5723278522491455,
0.045301247388124466,
0.43370068073272705,
0.05534952133893967,
0.11604993790388107,
-0.17900627851486206,
0.14473626017570496,
-0.13810184597969055,
0.19207237660884857,
-0.01378986518830061,
0.2897503972053528,
-0.2669522166252136,
0.08058136701583862,
-0.5247184634208679,
0.31506288051605225,
0.03911362215876579,
-0.19242976605892181,
-0.028471609577536583,
-0.12059050798416138,
-0.1418030709028244,
0.0033041660208255053,
0.02526295743882656,
0.27408427000045776,
0.25067874789237976,
0.015638723969459534,
-0.5449014902114868,
-0.29364925622940063,
-0.041616473346948624,
-0.18406419456005096,
0.05577266216278076,
-0.34119418263435364,
-0.002359036123380065,
-0.1740485578775406,
0.14972154796123505,
0.0006317555671557784,
-0.24992845952510834,
0.14406579732894897,
0.0977681577205658,
0.6802557706832886,
0.18651385605335236,
0.4030945301055908,
-0.08699792623519897,
-0.04366917163133621,
0.036389242857694626,
-0.2932220995426178,
-0.11003629863262177,
0.2340061366558075,
0.07532325387001038,
0.2027740776538849,
0.03461690992116928,
0.14568735659122467,
-0.24518325924873352,
0.08542771637439728,
0.017443949356675148,
0.13280434906482697,
-0.14758522808551788,
0.3109081983566284,
-0.15090933442115784,
-0.2978289723396301,
-0.1912626028060913,
0.0007493104203604162,
0.1050976812839508,
0.10299556702375412,
-0.06943623721599579,
-0.23852545022964478,
0.5177175998687744,
-0.28555867075920105,
-0.17676077783107758,
-0.09032729268074036,
0.35201185941696167,
-0.04038098454475403,
-0.11723639070987701,
-0.506731390953064,
0.05464501306414604,
0.4887305796146393,
-0.0022290232591331005,
-0.150093212723732,
0.1638827919960022,
-0.20673111081123352,
0.021501440554857254,
-0.07061657309532166,
0.01149772573262453,
-0.0409061424434185,
0.0008290958357974887,
0.19808106124401093,
-0.13200417160987854
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 20 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | [
-0.2608942687511444,
-0.20070664584636688,
0.065999835729599,
0.40019580721855164,
0.464599072933197,
0.011524934321641922,
0.32409727573394775,
0.09413178265094757,
0.18960040807724,
0.3001820743083954,
-0.2849096655845642,
0.4667587876319885,
-0.03664389252662659,
0.16685806214809418,
0.07776457071304321,
-0.12537288665771484,
-0.2606472074985504,
0.2636679708957672,
-0.17774704098701477,
0.061366498470306396,
-0.5233632326126099,
0.023198327049613,
-0.2373635619878769,
0.08589056879281998,
-0.27679988741874695,
-0.15339991450309753,
-0.028150174766778946,
0.07971347868442535,
-0.24621734023094177,
-0.28055059909820557,
0.4611608684062958,
-0.015962719917297363,
0.16404759883880615,
0.5104129910469055,
-0.00010234794899588451,
-0.018457384780049324,
0.5837001204490662,
0.05300305783748627,
-0.07615187019109726,
-0.4211901128292084,
-0.22556304931640625,
-0.39779970049858093,
0.28700387477874756,
-0.3548148274421692,
-0.12754182517528534,
0.0055784303694963455,
0.040513359010219574,
-0.18190565705299377,
0.2621397376060486,
0.3204343616962433,
0.3242150545120239,
0.5296900272369385,
0.011441849172115326,
-0.3599713146686554,
0.19651176035404205,
0.08083018660545349,
-0.0636897161602974,
0.3710538148880005,
0.026584254577755928,
-0.04749303311109543,
0.24396441876888275,
0.08703085780143738,
-0.335353821516037,
0.05276079848408699,
0.2847360670566559,
0.03825466334819794,
0.009530584327876568,
-0.2701701521873474,
0.096476249396801,
0.3694061040878296,
0.3855828642845154,
-0.3826201260089874,
-0.151443213224411,
0.17500905692577362,
0.2239651083946228,
-0.20327097177505493,
0.2116490751504898,
0.04687747359275818,
0.01630524732172489,
0.09074439108371735,
-0.013072201982140541,
0.17122024297714233,
-0.2445574551820755,
0.2749374508857727,
-0.2020062655210495,
0.10654965788125992,
-0.1935499757528305,
0.14479650557041168,
0.08499720692634583,
-0.11886037886142731,
0.07633409649133682,
-0.13459762930870056,
-0.06199737265706062,
0.08909042924642563,
-0.2083805799484253,
0.03492952883243561,
0.11520574241876602,
0.15357956290245056,
0.16361172497272491,
-0.2843679189682007,
0.1018848791718483,
-0.023833470419049263,
0.03979792073369026,
0.4501175880432129,
0.24146118760108948,
0.18975625932216644,
0.2724783718585968,
0.08869297057390213,
0.2660125494003296,
0.06678777188062668,
-0.2417134791612625,
-0.012089276686310768,
-0.15435847640037537,
-0.061072006821632385,
0.2427942454814911,
0.14118479192256927,
0.5124642252922058,
0.018914956599473953,
-0.4501636028289795,
-0.17423781752586365,
-0.17213261127471924,
0.09130046516656876,
0.27164170145988464,
0.427763432264328,
-0.1526402235031128,
0.08207858353853226,
0.13324162364006042,
0.17432793974876404,
-0.18845121562480927,
-0.2918044328689575,
-0.3183255195617676,
0.3539677560329437,
-0.2528480589389801,
-0.234954833984375,
0.19113825261592865,
0.05796584114432335,
-0.044978998601436615,
0.013466749340295792,
-0.09584775567054749,
0.10270073264837265,
0.08866853266954422,
-0.2908606231212616,
-0.23106487095355988,
0.31327128410339355,
0.24430525302886963,
-0.06283310055732727,
0.28006115555763245,
-0.4668276906013489,
-0.09159677475690842,
0.22920304536819458,
-0.2898916006088257,
-0.16717375814914703,
-0.07324391603469849,
0.2667025923728943,
-0.33905473351478577,
-0.06973502784967422,
-0.24416671693325043,
0.046672273427248,
0.04895789921283722,
-0.156635120511055,
-0.10240889340639114,
-0.09626150131225586,
-0.11265736818313599,
-0.4234250485897064,
0.04461820796132088,
0.5165780186653137,
-0.3751865029335022,
-0.19924117624759674,
-0.3078101873397827,
-0.10918235033750534,
0.3522842228412628,
-0.1473015695810318,
0.014567063190042973,
0.06289981305599213,
-0.17065683007240295,
-0.000686013896483928,
0.6008647680282593,
-0.3847203552722931,
-0.2815139889717102,
0.056300897151231766,
-0.03718709945678711,
-0.1165539100766182,
-0.05172203108668327,
-0.04704410955309868,
0.07188765704631805,
0.13564296066761017,
0.41282153129577637,
0.24465316534042358,
0.04935895651578903,
-0.03246750682592392,
-0.21095895767211914,
-0.23810958862304688,
0.1280459761619568,
0.15165799856185913,
0.12727054953575134,
0.16304107010364532,
0.0712502971291542,
-0.25063005089759827,
-0.05571635812520981,
-0.006188315339386463,
-0.10224475711584091,
-0.030164023861289024,
0.5365027189254761,
-0.1599624902009964,
-0.039964478462934494,
-0.5328827500343323,
-0.3950175344944,
0.23308143019676208,
-0.07792792469263077,
0.2541694641113281,
-0.10548867285251617,
-0.17003574967384338,
-0.35298147797584534,
0.10195040702819824,
-0.017023945227265358,
0.060761842876672745,
0.2853281795978546,
0.09096167236566544,
-0.20114904642105103,
0.1454879492521286,
-0.0809033066034317,
0.16377317905426025,
-0.08734962344169617,
0.051231615245342255,
0.03350481390953064,
0.291667103767395,
0.07477834820747375,
-0.3356168568134308,
0.03529531508684158,
0.18978500366210938,
0.45744818449020386,
-0.010459944605827332,
-0.06727063655853271,
0.2640904188156128,
0.07089219987392426,
-0.0788058489561081,
-0.20708632469177246,
-0.05381814017891884,
0.08799291402101517,
-0.3130641579627991,
-0.030365964397788048,
0.03798510506749153,
0.3187098801136017,
-0.09437373280525208,
0.06253833323717117,
0.603893518447876,
0.06684301793575287,
0.17446208000183105,
-0.0730600655078888,
0.2714185118675232,
0.06532449275255203,
-0.0385558120906353,
-0.1490771770477295,
-0.12862828373908997,
0.045985061675310135,
0.11761815845966339,
0.24863722920417786,
0.00610388396307826,
-0.08802139014005661,
-0.023188389837741852,
0.5769150257110596,
0.09138345718383789,
0.36079129576683044,
-0.13751739263534546,
-0.42041343450546265,
0.11379508674144745,
0.03700615465641022,
0.25255486369132996,
0.503267228603363,
0.33231568336486816,
-0.10686410963535309,
0.02362951636314392,
-0.057172052562236786,
0.04047264903783798,
0.10329219698905945,
0.049447201192379,
0.23289716243743896,
-0.00002372617927903775,
0.30572110414505005,
-0.020941684022545815,
-0.3462260067462921,
0.16139131784439087,
-0.053847961127758026,
0.18420667946338654,
-0.37608709931373596,
0.18453913927078247,
-0.27470338344573975,
-0.07675784826278687,
0.14255142211914062,
-0.10272447764873505,
-0.12500527501106262,
-0.32862889766693115,
-0.2664070129394531,
0.10813751816749573,
0.12109032273292542,
0.19382086396217346,
0.14224739372730255,
0.07632012665271759,
0.008745388127863407,
-0.02552848868072033,
-0.1826612800359726,
-0.13265492022037506,
-0.1483922004699707,
0.0880742147564888,
0.16533564031124115,
0.18194064497947693,
0.4119827151298523,
-0.14963765442371368,
0.22848814725875854,
-0.0511263832449913,
-0.2455982118844986,
0.10017756372690201,
-0.05732909217476845,
0.5299287438392639,
0.40860894322395325,
0.06029227375984192,
-0.14106446504592896,
0.10045111179351807,
0.41889074444770813,
-0.465801864862442,
0.026479052379727364,
0.36358341574668884,
-0.30706414580345154,
0.08372659236192703,
-0.2518777847290039,
-0.10609912127256393,
-0.5478299260139465,
-0.4280381500720978,
0.06833084672689438,
0.09581978619098663,
0.044977206736803055,
0.1724175661802292,
0.11911767721176147,
0.4440965950489044,
0.11239288002252579,
0.01576055772602558,
-0.2330423891544342,
-0.08540808409452438,
0.33111271262168884,
-0.16932561993598938,
-0.36089083552360535,
0.2042488008737564,
-0.13234826922416687,
0.2548741102218628,
0.028586776927113533,
-0.16097871959209442,
-0.5243913531303406,
-0.15561775863170624,
0.20535258948802948,
-0.00518856942653656,
-0.011091460473835468,
0.29122549295425415,
0.040285903960466385,
-0.13678671419620514,
-0.2726750373840332,
-0.1413017064332962,
-0.048815082758665085,
0.2352694720029831,
-0.06838775426149368,
0.047184109687805176,
0.28253892064094543,
-0.12230157852172852,
0.143637552857399,
-0.10943884402513504,
-0.1853010207414627,
0.40596774220466614,
-0.3138792812824249,
0.3742716908454895,
-0.15146556496620178,
-0.4665457606315613,
-0.21089105308055878,
0.027871564030647278,
0.04224194586277008,
0.04843442887067795,
-0.1828998178243637,
-0.24296553432941437,
-0.3873913586139679,
-0.18405763804912567,
-0.3091231882572174,
-0.11764701455831528,
-0.04482340067625046,
0.18691399693489075,
-0.034465812146663666,
0.12824112176895142,
0.15066936612129211,
-0.4099556803703308,
-0.04402134567499161,
-0.014516408555209637,
0.19075918197631836,
0.0003334500652272254,
-0.18749350309371948,
-0.13432322442531586,
-0.23941408097743988,
-0.33497342467308044,
0.4665148854255676,
-0.13041754066944122,
-0.021451907232403755,
-0.10481096059083939,
-0.02281367778778076,
0.11871502548456192,
-0.04580186679959297,
0.5801782011985779,
-0.29447898268699646,
0.17192880809307098,
0.5542985200881958,
0.09047968685626984,
-0.5516594052314758,
0.10773146897554398,
-0.33184438943862915,
0.3005693256855011,
0.1331285834312439,
0.28102168440818787,
-0.34704262018203735,
-0.019387176260352135,
0.21586184203624725,
0.06858555227518082,
-0.11510872095823288,
-0.24079258739948273,
-0.23340819776058197,
-0.29338976740837097,
-0.04927017539739609,
-0.06657339632511139,
-0.05861193686723709,
0.4225766956806183,
-0.13546667993068695,
-0.1273060292005539,
-0.4123404324054718,
-0.036735258996486664,
0.16560208797454834,
0.1939740926027298,
0.34225204586982727,
-0.13591040670871735,
-0.025981584563851357,
-0.0587921068072319,
0.08305013179779053,
0.1330539733171463,
0.35680171847343445,
0.08881030976772308,
-0.4469740092754364,
0.1390766203403473,
0.073601134121418,
0.23926110565662384,
0.002429617801681161,
-0.2127712368965149,
-0.15642251074314117,
-0.09731859713792801,
0.1256742775440216,
0.06949068605899811,
0.1411265879869461,
0.23214705288410187,
0.013766533695161343,
-0.36468324065208435,
-0.23113375902175903,
0.43259161710739136,
0.17458906769752502,
0.02502707578241825,
0.27190056443214417,
0.23464584350585938,
-0.22543415427207947,
0.22379302978515625,
-0.06493008881807327,
0.9164007902145386,
-0.001631135237403214,
-0.11023618280887604,
0.6165453791618347,
-0.09799019247293472,
0.5674658417701721,
0.06507990509271622,
0.06793373823165894,
-0.37042614817619324,
-0.28798654675483704,
-0.005231490824371576,
-0.14537565410137177,
0.25484511256217957,
-0.04935317113995552,
-0.5216739773750305,
0.20980682969093323,
-0.3250356614589691,
0.05638696998357773,
-0.033875830471515656,
-0.08627244830131531,
-0.06887193024158478,
-0.16256748139858246,
-0.31690946221351624,
0.2203887701034546,
-0.11600204557180405,
0.16524803638458252,
-0.0905514657497406,
-0.0729372426867485,
0.020187541842460632,
-0.07935287803411484,
-0.08598944544792175,
0.051867637783288956,
-0.410574346780777,
-0.10258132964372635,
0.008886466734111309,
-0.1489420384168625,
-0.049235615879297256,
0.10977714508771896,
0.043908894062042236,
0.023810749873518944,
-0.3483446538448334,
0.23607459664344788,
0.052508410066366196,
0.017473990097641945,
-0.07425518333911896,
0.07520431280136108,
0.20920927822589874,
-0.05937168374657631,
-0.2678524851799011,
0.10724093019962311,
-0.047131508588790894,
0.16754937171936035,
0.3512035310268402,
0.13514524698257446,
-0.10577864199876785,
-0.3018783628940582,
-0.21502341330051422,
-0.13873806595802307,
0.2945331931114197,
-0.29509925842285156,
0.25293564796447754,
0.08838566392660141,
-0.11284014582633972,
0.02371150813996792,
0.03705623000860214,
-0.18078623712062836,
-0.03919849544763565,
0.40544962882995605,
0.33154377341270447,
0.3266710638999939,
0.1742117553949356,
0.21394577622413635,
-0.13305047154426575,
-0.356207937002182,
0.2356429100036621,
0.07449297606945038,
-0.3519968092441559,
0.3284551799297333,
0.2739296853542328,
-0.04565461352467537,
0.027123039588332176,
0.41909554600715637,
0.01776466891169548,
-0.04062539339065552,
-0.1278359591960907,
-0.2977452576160431,
-0.20528504252433777,
0.22017070651054382,
0.0076370988972485065,
-0.013315225951373577,
0.10363152623176575,
0.23537418246269226,
0.19691504538059235,
-0.07531681656837463,
-0.4256240725517273,
0.11846069246530533,
-0.3420971930027008,
-0.10644997656345367,
0.0358143225312233,
-0.08394285291433334,
0.19919723272323608,
0.09430292248725891,
0.2200213521718979,
0.04124436154961586,
-0.11736726015806198,
-0.3198773264884949,
-0.1708856076002121,
0.11573014408349991,
-0.06035256013274193,
0.09846006333827972,
0.1912233829498291,
-0.09780179709196091,
-0.33997803926467896,
-0.11381705850362778,
0.0863473191857338,
0.018683113157749176,
-0.24856695532798767,
0.0389392115175724,
0.18414025008678436,
0.29607221484184265,
0.024314964190125465,
0.22147776186466217,
0.06482862681150436,
-0.05169810354709625,
-0.16678065061569214,
0.007016872987151146,
0.07386066019535065,
-0.03772583231329918,
0.04539838433265686,
-0.024269644170999527,
0.14642402529716492,
0.12582825124263763,
0.14722397923469543,
-0.18216252326965332,
-0.13763797283172607,
-0.010653750970959663,
0.16226790845394135,
0.10540203750133514,
-0.1678972840309143,
0.3169002830982208,
-0.1511397361755371,
0.3191595673561096,
-0.37131786346435547,
-0.01812628097832203,
0.2591812312602997,
-0.0037933378480374813,
0.23372481763362885,
0.04873427376151085,
-0.2177034616470337,
0.2784505784511566,
-0.10017438977956772,
-0.008697444573044777,
0.4537392258644104,
-0.12444194406270981,
0.06487783789634705,
0.23850809037685394,
-0.15005315840244293,
0.06746771931648254,
0.40410253405570984,
0.2606094479560852,
0.09712596982717514,
0.13525065779685974,
-0.029977133497595787,
0.12965936958789825,
-0.07734112441539764,
0.05111665651202202,
0.16977764666080475,
-0.5580496788024902,
0.1861063688993454,
0.16857938468456268,
0.0023653993848711252,
-0.07915836572647095,
-0.2323795109987259,
0.41024643182754517,
-0.49375173449516296,
-0.060565877705812454,
-0.3794310986995697,
0.06436964869499207,
-0.16302862763404846,
-0.0013758954592049122,
-0.1433873325586319,
-0.11491924524307251,
-0.17176160216331482,
-0.2528250813484192,
0.04163544625043869,
-0.09905923902988434,
0.2412426471710205,
-0.11379538476467133,
0.10468658059835434,
-0.19301369786262512,
-0.0399433858692646,
0.2786889374256134,
0.04779910668730736,
-0.15554529428482056,
0.039812956005334854,
-0.06016714870929718,
0.2526932954788208,
-0.11667275428771973,
0.49846750497817993,
0.4282831847667694,
0.2650192081928253,
-0.20173509418964386,
-0.11841430515050888,
0.0438966378569603,
-0.2949292063713074,
-0.14820411801338196,
0.1448875069618225,
0.16215217113494873,
0.1861361563205719,
0.0748438909649849,
0.2893257737159729,
-0.28499940037727356,
0.13082347810268402,
-0.0036747190169990063,
-0.007819055579602718,
-0.280519962310791,
0.3590802252292633,
-0.3625502586364746,
-0.11782539635896683,
-0.15548594295978546,
-0.10727126151323318,
-0.4793091118335724,
0.09879494458436966,
0.36479437351226807,
0.12186047434806824,
0.13483977317810059,
-0.15502452850341797,
0.14311707019805908,
-0.2600436806678772,
0.2424018234014511,
-0.023232661187648773,
0.3653588593006134,
-0.2398388683795929,
0.02577834203839302,
-0.5430262684822083,
0.4481772184371948,
0.01292554009705782,
-0.07826466858386993,
0.0848240926861763,
-0.12170198559761047,
-0.11546022444963455,
-0.03444543480873108,
-0.004842204041779041,
0.3630886375904083,
0.2708316147327423,
-0.04777458682656288,
-0.559188723564148,
-0.3568100333213806,
-0.09461773186922073,
-0.27721962332725525,
0.04613781347870827,
-0.29078012704849243,
-0.05018320679664612,
-0.1604975014925003,
0.13265098631381989,
-0.06835370510816574,
-0.2736572325229645,
0.11521260440349579,
0.27089133858680725,
0.6669096350669861,
0.2045690417289734,
0.4079797863960266,
-0.08747338503599167,
0.09326159954071045,
0.07337749749422073,
-0.2984468936920166,
-0.0754203349351883,
0.19056706130504608,
0.10106080770492554,
0.13626103103160858,
0.015028532594442368,
0.17342233657836914,
-0.14726820588111877,
-0.037688758224248886,
-0.04048110917210579,
0.057877007871866226,
-0.23930326104164124,
0.31381142139434814,
-0.28970447182655334,
-0.194597989320755,
-0.26688796281814575,
0.09523412585258484,
0.08431078493595123,
0.10966166108846664,
0.02188446931540966,
-0.09394040703773499,
0.6466466784477234,
-0.25513678789138794,
-0.31486231088638306,
0.0029653168749064207,
0.2552380859851837,
0.03409340977668762,
-0.17528478801250458,
-0.4145068824291229,
0.06282622367143631,
0.44321122765541077,
-0.054986562579870224,
-0.21835945546627045,
0.24271458387374878,
-0.17745569348335266,
0.05033661797642708,
-0.1022099107503891,
0.011153888888657093,
0.05164097994565964,
-0.06758365780115128,
0.12968291342258453,
-0.08301327377557755
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | One naive question: do you have internet access from the machine where you execute the code? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 16 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
One naive question: do you have internet access from the machine where you execute the code? | [
-0.24667485058307648,
-0.21660692989826202,
-0.0038836291059851646,
0.35868632793426514,
0.40094777941703796,
0.035537030547857285,
0.3025212287902832,
0.1521892249584198,
0.16503635048866272,
0.35661035776138306,
-0.17791984975337982,
0.4452131986618042,
-0.038257233798503876,
0.1990445852279663,
0.08161959052085876,
-0.08996173739433289,
-0.20337140560150146,
0.24470654129981995,
-0.18422313034534454,
0.010521809570491314,
-0.47287678718566895,
-0.018520347774028778,
-0.1821441501379013,
0.019932953640818596,
-0.2480739802122116,
-0.20028597116470337,
-0.11639851331710815,
0.06450092047452927,
-0.21489877998828888,
-0.253029465675354,
0.36321085691452026,
0.045063264667987823,
0.11236809194087982,
0.5467211604118347,
-0.00010198416566709056,
-0.0862102061510086,
0.4975403845310211,
0.07624030858278275,
-0.11333849281072617,
-0.22271530330181122,
-0.2704131305217743,
-0.34315237402915955,
0.18232525885105133,
-0.42608046531677246,
-0.09165448695421219,
0.02889085002243519,
0.01238174457103014,
-0.2481909543275833,
0.3053148686885834,
0.30721402168273926,
0.33970844745635986,
0.4426213800907135,
-0.019016895443201065,
-0.33228936791419983,
0.21622943878173828,
0.04210403934121132,
-0.03231095150113106,
0.36221545934677124,
0.0633598119020462,
-0.05373142659664154,
0.17674162983894348,
0.1824110597372055,
-0.2867754101753235,
-0.002955150557681918,
0.2504885792732239,
0.08760187029838562,
-0.024535907432436943,
-0.2595614194869995,
0.10220532864332199,
0.2668828070163727,
0.28568828105926514,
-0.45208466053009033,
-0.12455223500728607,
0.11148010194301605,
0.1043582409620285,
-0.2367102950811386,
0.1430765837430954,
-0.0036109432112425566,
-0.019701045006513596,
0.10603615641593933,
-0.03515937924385071,
0.13369134068489075,
-0.23166485130786896,
0.2396649271249771,
-0.20911672711372375,
0.14929310977458954,
-0.189427450299263,
0.09671075642108917,
0.0752299502491951,
-0.0852818489074707,
0.05322107672691345,
-0.1713411808013916,
0.02107595093548298,
0.01056907419115305,
-0.15079505741596222,
-0.04721863567829132,
0.1830177903175354,
0.14029408991336823,
0.15340538322925568,
-0.25457921624183655,
0.10788735002279282,
-0.005875410046428442,
0.11862415075302124,
0.4159371852874756,
0.15438315272331238,
0.24156388640403748,
0.21506333351135254,
0.08808040618896484,
0.21871381998062134,
0.1302517056465149,
-0.25680607557296753,
-0.011533666402101517,
-0.09233549237251282,
-0.03635302186012268,
0.3084874749183655,
0.16057181358337402,
0.4978729784488678,
0.014810080640017986,
-0.43729472160339355,
-0.04824170842766762,
-0.23147878050804138,
0.10640005022287369,
0.2851622700691223,
0.38286149501800537,
-0.21978913247585297,
0.028076201677322388,
0.1954130083322525,
0.146347314119339,
-0.16790808737277985,
-0.289684921503067,
-0.3228364586830139,
0.3451816439628601,
-0.32532384991645813,
-0.19962911307811737,
0.12553593516349792,
0.09560266882181168,
-0.07858631014823914,
0.04803728684782982,
-0.03571191802620888,
0.05530165880918503,
0.07634837925434113,
-0.2473658174276352,
-0.17068003118038177,
0.1856052726507187,
0.20968011021614075,
-0.10421095043420792,
0.32344338297843933,
-0.48366817831993103,
-0.10272353887557983,
0.105821393430233,
-0.20707765221595764,
-0.08960555493831635,
-0.03591959923505783,
0.3180176615715027,
-0.3513985872268677,
-0.10086790472269058,
-0.15153691172599792,
0.10080745071172714,
0.06124575063586235,
-0.15493623912334442,
0.026828620582818985,
-0.08387970924377441,
-0.04602052643895149,
-0.4438782334327698,
0.09875888377428055,
0.5773767828941345,
-0.39236629009246826,
-0.1583532840013504,
-0.31497451663017273,
-0.04100910946726799,
0.35695680975914,
-0.23161673545837402,
0.1328967958688736,
0.16129925847053528,
-0.15059493482112885,
0.03073747642338276,
0.5494579672813416,
-0.3594248294830322,
-0.2982897162437439,
-0.019450146704912186,
-0.11950697749853134,
-0.08456023782491684,
-0.008068802766501904,
-0.1045469120144844,
0.07586486637592316,
0.15029634535312653,
0.4117963910102844,
0.24507738649845123,
-0.024492014199495316,
-0.04034685343503952,
-0.23563964664936066,
-0.21621392667293549,
0.030153166502714157,
0.10724256187677383,
0.1855027675628662,
0.16095717251300812,
0.10866647958755493,
-0.22548803687095642,
0.01508262287825346,
-0.016560599207878113,
-0.0678272396326065,
-0.06646318733692169,
0.5562684535980225,
-0.11980120092630386,
-0.10301090031862259,
-0.5486019253730774,
-0.33649832010269165,
0.21377749741077423,
-0.06440931558609009,
0.25838199257850647,
-0.1622747778892517,
-0.1771242320537567,
-0.4169960021972656,
0.11737467348575592,
-0.0591692179441452,
0.0415954664349556,
0.3479427397251129,
0.1584893763065338,
-0.13163790106773376,
0.12016482651233673,
-0.038923896849155426,
0.15547743439674377,
-0.09755878895521164,
0.06154220551252365,
0.0028670330066233873,
0.36242568492889404,
0.02881614677608013,
-0.3402503430843353,
0.012543520890176296,
0.23908649384975433,
0.49202847480773926,
0.025128589943051338,
-0.03666041046380997,
0.342571496963501,
0.015398098155856133,
-0.058924902230501175,
-0.07136092334985733,
0.012981533072888851,
0.035537634044885635,
-0.3102553188800812,
0.09030776470899582,
0.07409462332725525,
0.27433323860168457,
-0.05014931410551071,
0.04555899277329445,
0.5526734590530396,
0.06390828639268875,
0.16311876475811005,
-0.07747814804315567,
0.2747519612312317,
-0.10433316230773926,
-0.06520569324493408,
-0.15911953151226044,
-0.14824533462524414,
0.11650297045707703,
0.052997760474681854,
0.19412623345851898,
-0.04457239806652069,
-0.10241199284791946,
0.07118651270866394,
0.6148303151130676,
0.07447894662618637,
0.41006147861480713,
-0.1350679099559784,
-0.3626485764980316,
0.13631507754325867,
0.06328234076499939,
0.2627353370189667,
0.4373948872089386,
0.3606952130794525,
-0.05525273457169533,
0.07250632345676422,
-0.09560027718544006,
0.04635845124721527,
0.0818469449877739,
0.0780012235045433,
0.17100641131401062,
-0.023559508845210075,
0.26488155126571655,
0.00004850859841099009,
-0.30219724774360657,
0.039387933909893036,
-0.21157225966453552,
0.19996845722198486,
-0.34422776103019714,
0.27032339572906494,
-0.2761576473712921,
-0.1083710566163063,
0.06657060235738754,
-0.13416478037834167,
-0.11199845373630524,
-0.39722558856010437,
-0.18969185650348663,
0.049573637545108795,
0.08469808846712112,
0.1596638411283493,
0.13314826786518097,
0.17809604108333588,
0.043584682047367096,
-0.05063953623175621,
-0.2169364094734192,
-0.09294389188289642,
-0.1491834670305252,
0.12451985478401184,
0.11278872191905975,
0.21954967081546783,
0.45639675855636597,
-0.2264527827501297,
0.26538947224617004,
0.040526289492845535,
-0.2521405816078186,
0.10910408943891525,
-0.11130104959011078,
0.5382028222084045,
0.4217018485069275,
0.084971122443676,
-0.13754846155643463,
0.04792330786585808,
0.4025655686855316,
-0.39876890182495117,
0.0345609188079834,
0.2760672867298126,
-0.17331673204898834,
0.09936728328466415,
-0.221498042345047,
-0.10913032293319702,
-0.4937293529510498,
-0.43051621317863464,
0.05353573337197304,
0.09401645511388779,
0.09078509360551834,
0.16613565385341644,
0.16476991772651672,
0.5161485075950623,
0.09036003798246384,
0.08534209430217743,
-0.23094455897808075,
-0.09283335506916046,
0.2652718424797058,
-0.1356292963027954,
-0.31708818674087524,
0.11643726378679276,
-0.13272975385189056,
0.18824319541454315,
0.03466330096125603,
-0.2173750102519989,
-0.5696403980255127,
-0.17610688507556915,
0.21790432929992676,
-0.0343908965587616,
0.0933208167552948,
0.2699986696243286,
0.09491181373596191,
-0.15692223608493805,
-0.28458836674690247,
-0.16251792013645172,
-0.09149598330259323,
0.1541404277086258,
-0.03183005005121231,
-0.02497059665620327,
0.2786463797092438,
-0.1161089614033699,
0.13205550611019135,
-0.06656043231487274,
-0.20754365622997284,
0.38256940245628357,
-0.34809112548828125,
0.39846664667129517,
-0.0996408462524414,
-0.5201002955436707,
-0.17360714077949524,
0.035328470170497894,
-0.06093287467956543,
0.048965685069561005,
-0.17149566113948822,
-0.21662312746047974,
-0.37668749690055847,
-0.05624628812074661,
-0.3627013564109802,
-0.1873273253440857,
-0.0391593798995018,
0.15603794157505035,
-0.036883603781461716,
0.0749150961637497,
0.18881534039974213,
-0.4491065442562103,
0.05700524151325226,
-0.016951126977801323,
0.1537908911705017,
-0.08940588682889938,
-0.1648554801940918,
-0.11857452243566513,
-0.24680720269680023,
-0.28612956404685974,
0.468005508184433,
-0.14993663132190704,
-0.05639316886663437,
-0.20461562275886536,
-0.06607961654663086,
0.09054190665483475,
-0.035879213362932205,
0.5689525008201599,
-0.35037386417388916,
0.1897081881761551,
0.47682780027389526,
0.125196635723114,
-0.45688971877098083,
0.1350765824317932,
-0.43555977940559387,
0.25175896286964417,
0.2185438573360443,
0.28022757172584534,
-0.3060499429702759,
0.01913563534617424,
0.23995700478553772,
0.10264399647712708,
-0.11065822839736938,
-0.22212986648082733,
-0.22178849577903748,
-0.3183932602405548,
-0.08035434037446976,
0.04201396554708481,
-0.025292783975601196,
0.41936224699020386,
-0.09834518283605576,
-0.1282832771539688,
-0.3264187276363373,
-0.02568001113831997,
0.20259295403957367,
0.25960519909858704,
0.28942999243736267,
-0.12314940989017487,
-0.12258487194776535,
-0.08236470073461533,
0.07923268526792526,
0.13594958186149597,
0.3235683739185333,
0.07935696840286255,
-0.3446301221847534,
0.0907275378704071,
0.0888889953494072,
0.27818775177001953,
0.057361580431461334,
-0.1762593388557434,
-0.14405100047588348,
-0.08695509284734726,
0.21756219863891602,
0.006137183867394924,
0.17691808938980103,
0.254858136177063,
0.08978689461946487,
-0.3811885714530945,
-0.23075927793979645,
0.43377235531806946,
0.17661137878894806,
-0.038124144077301025,
0.29488563537597656,
0.20820653438568115,
-0.23664768040180206,
0.22609743475914001,
-0.022161314263939857,
1.0133312940597534,
0.05262403562664986,
-0.16351449489593506,
0.5793556571006775,
-0.14888888597488403,
0.5672777891159058,
-0.019949423149228096,
0.03939739242196083,
-0.331808477640152,
-0.2921087443828583,
-0.005011141300201416,
-0.1491662859916687,
0.2573118507862091,
-0.09394054859876633,
-0.6075479388237,
0.19444823265075684,
-0.39856046438217163,
0.06098191440105438,
0.007852155715227127,
-0.12741215527057648,
-0.11916835606098175,
-0.10942786931991577,
-0.34585753083229065,
0.2644387483596802,
-0.13787053525447845,
0.19162383675575256,
-0.14864704012870789,
-0.06625370681285858,
-0.08176755905151367,
-0.10981810092926025,
-0.1274237036705017,
0.043701622635126114,
-0.3669552206993103,
-0.18494080007076263,
-0.05098400264978409,
-0.16150081157684326,
-0.1080823689699173,
0.09428995847702026,
0.08131710439920425,
0.1470959335565567,
-0.2779950499534607,
0.0880824625492096,
0.08451779186725616,
0.02423790469765663,
-0.006938544102013111,
0.008547283709049225,
0.19588300585746765,
-0.03708209469914436,
-0.29435819387435913,
0.10687240213155746,
0.04578740522265434,
0.11517658829689026,
0.3087918162345886,
0.10357606410980225,
-0.06757752597332001,
-0.3244171142578125,
-0.1034836396574974,
-0.09744701534509659,
0.24810947477817535,
-0.31311047077178955,
0.2714838683605194,
0.08919992297887802,
-0.12014689296483994,
0.09994528442621231,
-0.012930911965668201,
-0.14131933450698853,
-0.08458084613084793,
0.3065216541290283,
0.2475549876689911,
0.3110373318195343,
0.06511443853378296,
0.2337537258863449,
-0.14517976343631744,
-0.37787720561027527,
0.1946112960577011,
0.12664616107940674,
-0.3094281256198883,
0.2451847940683365,
0.11320338398218155,
-0.10021395236253738,
-0.01896701380610466,
0.3583427965641022,
0.08726733177900314,
0.012129141949117184,
-0.1319916546344757,
-0.31771978735923767,
-0.22757422924041748,
0.19746582210063934,
0.12628406286239624,
0.04679343104362488,
0.04094727709889412,
0.24098651111125946,
0.21606498956680298,
-0.014947835355997086,
-0.4777272641658783,
0.02335742861032486,
-0.35480108857154846,
-0.1210959330201149,
0.05530998855829239,
-0.1312021166086197,
0.2106184959411621,
0.030774137005209923,
0.2626607120037079,
0.06113733351230621,
-0.12301628291606903,
-0.36038723587989807,
-0.11962301284074783,
0.08787943422794342,
-0.09605526924133301,
0.12124697864055634,
0.19285643100738525,
-0.06559494882822037,
-0.27370816469192505,
-0.18214711546897888,
0.06557869911193848,
-0.004897000268101692,
-0.15614837408065796,
0.07420947402715683,
0.19551607966423035,
0.30577775835990906,
0.05422215908765793,
0.07680920511484146,
0.11816984415054321,
-0.04721664637327194,
-0.0940907895565033,
0.05041639506816864,
0.011491813696920872,
-0.09162087738513947,
0.06155480444431305,
0.047316331416368484,
0.15794721245765686,
0.12042315304279327,
0.14626789093017578,
-0.14264817535877228,
-0.1761246770620346,
0.03428587317466736,
0.24583907425403595,
0.168448805809021,
-0.18265366554260254,
0.24511954188346863,
-0.20319947600364685,
0.36860162019729614,
-0.3018471896648407,
0.04486684501171112,
0.2334461659193039,
-0.005771898198872805,
0.29767295718193054,
0.14921416342258453,
-0.2892274856567383,
0.22511164844036102,
-0.15432149171829224,
0.0022288162726908922,
0.4208870530128479,
-0.08482863754034042,
0.09413304924964905,
0.2553797960281372,
-0.16174770891666412,
0.0726768970489502,
0.4207955300807953,
0.2157663255929947,
0.08089667558670044,
0.1147267147898674,
-0.012039006687700748,
0.2092013955116272,
-0.05954791232943535,
-0.00885175634175539,
0.17259807884693146,
-0.4266689121723175,
0.18628402054309845,
0.19809940457344055,
0.022372111678123474,
-0.03816479817032814,
-0.21979950368404388,
0.4153002202510834,
-0.5084767937660217,
-0.05652262270450592,
-0.3237142264842987,
0.04877626895904541,
-0.174115389585495,
0.06059838458895683,
-0.16821303963661194,
-0.12894809246063232,
-0.22656860947608948,
-0.2804173529148102,
0.13125692307949066,
-0.16091783344745636,
0.2799321711063385,
-0.1695614755153656,
0.1022944375872612,
-0.19380876421928406,
-0.06666276603937149,
0.21054889261722565,
0.16122514009475708,
-0.20317643880844116,
0.0029693921096622944,
-0.019835054874420166,
0.22439394891262054,
-0.1444881558418274,
0.47211241722106934,
0.42822155356407166,
0.255736768245697,
-0.18513785302639008,
-0.09297491610050201,
-0.006572239100933075,
-0.29343846440315247,
-0.1710650473833084,
0.09330493211746216,
0.1752072274684906,
0.17537802457809448,
0.10745733231306076,
0.3313247859477997,
-0.3341614305973053,
0.09416183829307556,
-0.02379298210144043,
-0.01389276422560215,
-0.22673554718494415,
0.38321569561958313,
-0.29475438594818115,
-0.08552508056163788,
-0.17025743424892426,
-0.13651449978351593,
-0.5748509168624878,
0.04058903455734253,
0.34194621443748474,
0.09301728755235672,
0.1262921839952469,
-0.16055063903331757,
0.15247707068920135,
-0.17488166689872742,
0.17220191657543182,
0.014829585328698158,
0.40540656447410583,
-0.258835107088089,
-0.002799279522150755,
-0.5410186648368835,
0.4275761842727661,
0.015563267283141613,
-0.15880857408046722,
0.03151369467377663,
-0.0331474207341671,
-0.1146661564707756,
-0.017911594361066818,
0.022062670439481735,
0.33603885769844055,
0.22620858252048492,
-0.02565748058259487,
-0.5814422965049744,
-0.29017019271850586,
-0.12484532594680786,
-0.27969589829444885,
0.132225900888443,
-0.2572003901004791,
-0.03584429994225502,
-0.20612569153308868,
0.21608442068099976,
-0.03793022036552429,
-0.2939601242542267,
0.0869980901479721,
0.14208373427391052,
0.6847299933433533,
0.17764292657375336,
0.405407577753067,
-0.1641920655965805,
0.03169234097003937,
0.011777215637266636,
-0.24238866567611694,
-0.10330203175544739,
0.20909057557582855,
0.07556559145450592,
0.1736914962530136,
0.012759776785969734,
0.13358047604560852,
-0.12750813364982605,
0.03202638402581215,
0.11048045009374619,
0.07010014355182648,
-0.11591397970914841,
0.2584400773048401,
-0.2325376570224762,
-0.11883361637592316,
-0.18745838105678558,
0.08073234558105469,
0.08837387710809708,
0.20767195522785187,
-0.03386932238936424,
-0.17813237011432648,
0.6508179306983948,
-0.19926972687244415,
-0.37545350193977356,
-0.0056763580068945885,
0.33302465081214905,
0.025154463946819305,
-0.18259978294372559,
-0.43308645486831665,
0.018670490011572838,
0.4222234785556793,
-0.048833850771188736,
-0.21325847506523132,
0.2750219702720642,
-0.2542452812194824,
0.039203111082315445,
-0.023349091410636902,
0.07668036222457886,
0.007115095853805542,
-0.0488666296005249,
0.16207851469516754,
-0.1435597836971283
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 43 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | [
-0.24798206984996796,
-0.32177165150642395,
0.07635016739368439,
0.47010353207588196,
0.49538153409957886,
0.018508659675717354,
0.3540441393852234,
0.061494726687669754,
0.24025826156139374,
0.3128611743450165,
-0.2764090895652771,
0.45403245091438293,
-0.06261872500181198,
0.1033329889178276,
0.1556580662727356,
-0.15578517317771912,
-0.22559542953968048,
0.16796785593032837,
-0.07798536866903305,
0.10205480456352234,
-0.49960920214653015,
-0.029346192255616188,
-0.26327720284461975,
0.19516341388225555,
-0.1559651643037796,
-0.18637101352214813,
-0.07376847416162491,
0.08071503788232803,
-0.14787432551383972,
-0.25373247265815735,
0.5681657195091248,
-0.10833819210529327,
0.21222861111164093,
0.556833803653717,
-0.00010799764277180657,
0.02232954651117325,
0.5475672483444214,
0.022291218861937523,
-0.18126267194747925,
-0.5533771514892578,
-0.17559316754341125,
-0.4152664244174957,
0.3201848268508911,
-0.3743577003479004,
-0.11459706723690033,
0.07909442484378815,
0.14598898589611053,
-0.1117732971906662,
0.3590354025363922,
0.45406395196914673,
0.28558066487312317,
0.7018623352050781,
-0.019748365506529808,
-0.3421172797679901,
0.13334639370441437,
0.05414489284157753,
-0.1285513937473297,
0.2871589958667755,
0.13716693222522736,
-0.008233876898884773,
0.4334598183631897,
-0.037331558763980865,
-0.3705084025859833,
0.09044557809829712,
0.33380526304244995,
0.017311880365014076,
0.04568199813365936,
-0.4084410071372986,
0.09899617731571198,
0.3526201844215393,
0.42913293838500977,
-0.2789866030216217,
-0.14455284178256989,
0.10621695965528488,
0.23932905495166779,
-0.061995405703783035,
0.17657943069934845,
0.07574281096458435,
-0.02981051243841648,
0.04135294631123543,
0.046387143433094025,
0.17182958126068115,
-0.27798599004745483,
0.2125989943742752,
-0.12843024730682373,
-0.03536698967218399,
-0.19327236711978912,
0.21762189269065857,
0.038036249577999115,
-0.09714075922966003,
0.031084537506103516,
-0.17658290266990662,
0.0018493636744096875,
0.14519596099853516,
-0.30745604634284973,
-0.03703894838690758,
0.1003604531288147,
0.020640376955270767,
0.21880199015140533,
-0.23972690105438232,
0.21414677798748016,
-0.08140683174133301,
0.0014894736232236028,
0.35414376854896545,
0.34627005457878113,
0.23868778347969055,
0.2158101201057434,
0.14084558188915253,
0.15175403654575348,
0.02272917702794075,
-0.17890365421772003,
0.06213974207639694,
-0.28353360295295715,
-0.04607081785798073,
0.2485663741827011,
0.2519288659095764,
0.6219196319580078,
0.02261754497885704,
-0.5257905721664429,
-0.19461606442928314,
-0.0697026327252388,
0.07446470111608505,
0.14892584085464478,
0.40442410111427307,
-0.2522181272506714,
0.07341073453426361,
0.025330672040581703,
0.2898434102535248,
-0.19493263959884644,
-0.3826383948326111,
-0.25042805075645447,
0.1526833325624466,
-0.2685994803905487,
-0.2705709934234619,
0.24026213586330414,
0.09254435449838638,
0.031247630715370178,
0.04306093230843544,
-0.2270829826593399,
0.08594415336847305,
0.16728836297988892,
-0.37100085616111755,
-0.3183165490627289,
0.20312906801700592,
0.2981906831264496,
0.013274993747472763,
0.27971118688583374,
-0.3238167464733124,
-0.045626360923051834,
0.29751983284950256,
-0.38777193427085876,
-0.12059170752763748,
-0.12639310956001282,
0.1935601383447647,
-0.3629305958747864,
-0.15650053322315216,
-0.5364288687705994,
0.08052141964435577,
0.04011783376336098,
-0.08928538858890533,
-0.05736905708909035,
-0.14254091680049896,
-0.06975629180669785,
-0.35836657881736755,
-0.05518224462866783,
0.47619202733039856,
-0.21475978195667267,
-0.22886665165424347,
-0.3011834919452667,
-0.24431908130645752,
0.3596111238002777,
-0.145555779337883,
-0.047603245824575424,
0.24565483629703522,
-0.13856184482574463,
0.01953989453613758,
0.6420369744300842,
-0.5051137804985046,
-0.2810826897621155,
0.153261199593544,
-0.11817391216754913,
-0.07644066959619522,
-0.09492310136556625,
-0.0446147657930851,
0.28639575839042664,
0.07587049901485443,
0.37161967158317566,
0.33497846126556396,
0.0008508794708177447,
-0.030564656481146812,
-0.13110771775245667,
-0.21056202054023743,
0.2909452021121979,
0.19490253925323486,
0.23611010611057281,
0.22115983068943024,
0.05453367531299591,
-0.19984737038612366,
-0.035805098712444305,
0.05276919901371002,
-0.08131740242242813,
-0.02011960931122303,
0.43555161356925964,
-0.043696776032447815,
-0.02576649747788906,
-0.5290388464927673,
-0.5686808228492737,
0.18995018303394318,
-0.08416156470775604,
0.1826203614473343,
-0.11572986096143723,
-0.06739616394042969,
-0.3040422797203064,
0.042624007910490036,
-0.07802099734544754,
-0.021745510399341583,
0.18237867951393127,
0.07941314578056335,
-0.2668652832508087,
0.05588142201304436,
-0.07700362056493759,
0.19090184569358826,
-0.1526101529598236,
0.09578125923871994,
0.12126107513904572,
0.2611953616142273,
0.10169827938079834,
-0.3987407386302948,
-0.001772368443198502,
0.13621312379837036,
0.478135883808136,
0.0183625016361475,
-0.08265755325555801,
0.17296026647090912,
0.04580989107489586,
-0.1020454615354538,
-0.21710805594921112,
-0.17620490491390228,
0.05755571648478508,
-0.33660292625427246,
-0.04476143419742584,
0.1347159743309021,
0.3460841774940491,
-0.16048195958137512,
0.08364365249872208,
0.4571967124938965,
-0.01679295115172863,
0.34218594431877136,
-0.1437789350748062,
0.24062931537628174,
0.05251658707857132,
-0.060672786086797714,
-0.13310758769512177,
0.1804715245962143,
0.1290697455406189,
0.09137464314699173,
0.28273212909698486,
-0.03558554872870445,
-0.27068206667900085,
0.004668445326387882,
0.6162093877792358,
0.029959924519062042,
0.3194146752357483,
-0.0831516832113266,
-0.337882399559021,
0.14620250463485718,
0.0000323850144923199,
0.041826941072940826,
0.5353931188583374,
0.2632283568382263,
-0.11035977303981781,
-0.01647350937128067,
0.0007062570075504482,
0.05156884342432022,
0.0333777517080307,
0.06908994913101196,
0.2856583297252655,
0.046130258589982986,
0.2759692668914795,
0.03866375982761383,
-0.20053276419639587,
0.14444826543331146,
-0.008436138741672039,
0.1951354593038559,
-0.3969618082046509,
0.18787835538387299,
-0.1423569917678833,
-0.1165725439786911,
-0.030460478737950325,
0.13702300190925598,
-0.1042252853512764,
-0.19904550909996033,
-0.31349584460258484,
0.15897805988788605,
0.2137133628129959,
0.12652559578418732,
0.16163618862628937,
0.008840071968734264,
-0.01131288893520832,
-0.0408860482275486,
-0.1634950041770935,
-0.14585871994495392,
-0.1861838698387146,
0.04621656984090805,
0.19469743967056274,
0.07352609932422638,
0.34953728318214417,
-0.19005544483661652,
0.12456810474395752,
-0.10004867613315582,
-0.12407178431749344,
0.018916437402367592,
-0.0774426981806755,
0.5409654974937439,
0.2683838903903961,
0.25948968529701233,
-0.16248182952404022,
0.11941125243902206,
0.3791872560977936,
-0.4782694876194,
-0.051207542419433594,
0.33303582668304443,
-0.3349434733390808,
0.09676375985145569,
-0.21212196350097656,
-0.318637877702713,
-0.5942171216011047,
-0.3938199281692505,
0.2054920345544815,
-0.012952362187206745,
0.06968706101179123,
0.32936596870422363,
0.10264100134372711,
0.4716496765613556,
0.2177550345659256,
0.09161064773797989,
-0.18446332216262817,
-0.03420252725481987,
0.27942538261413574,
-0.13466748595237732,
-0.3884645104408264,
0.1575421243906021,
-0.09710296243429184,
0.2852425277233124,
0.07990889251232147,
-0.12456454336643219,
-0.26306140422821045,
-0.0669114962220192,
0.19757521152496338,
-0.12467063963413239,
-0.12070716172456741,
0.32315391302108765,
-0.08457601070404053,
-0.04699477180838585,
-0.21153497695922852,
-0.12139583379030228,
-0.048224933445453644,
0.33190399408340454,
-0.007172414101660252,
0.09451635926961899,
0.3415934145450592,
-0.16240322589874268,
0.33099326491355896,
-0.08682924509048462,
-0.03939695656299591,
0.4093081057071686,
-0.3032315969467163,
0.27769985795021057,
-0.09659327566623688,
-0.4811325967311859,
0.007316079456359148,
0.056348398327827454,
0.06938253343105316,
0.07898087054491043,
-0.27152127027511597,
-0.2479570209980011,
-0.31754767894744873,
-0.2529805600643158,
-0.4196512699127197,
-0.07618498057126999,
-0.09406266361474991,
0.17806987464427948,
0.00900423713028431,
0.1709623634815216,
0.18896882236003876,
-0.43533480167388916,
-0.1018507108092308,
0.0006977568264119327,
0.2376156747341156,
0.014692919328808784,
-0.11296167224645615,
-0.26121050119400024,
-0.23404768109321594,
-0.313987135887146,
0.3455926775932312,
-0.25579380989074707,
0.08330120891332626,
-0.14002899825572968,
0.08952226489782333,
0.18896198272705078,
0.0027528025675565004,
0.7596028447151184,
-0.18230779469013214,
0.2290211170911789,
0.3868350386619568,
0.20177331566810608,
-0.6543717384338379,
-0.02793934941291809,
-0.29241761565208435,
0.3361037075519562,
0.0906110554933548,
0.39593634009361267,
-0.4269512891769409,
-0.044388700276613235,
0.15252503752708435,
0.031496088951826096,
-0.09392283111810684,
-0.24251478910446167,
-0.268761545419693,
-0.3051566183567047,
-0.008727289736270905,
0.021820509806275368,
0.009019298478960991,
0.43496638536453247,
-0.17009933292865753,
-0.12759838998317719,
-0.40858718752861023,
0.16029255092144012,
0.11261460185050964,
-0.02537015825510025,
0.2526397407054901,
-0.056814972311258316,
-0.009302422404289246,
0.06357280910015106,
-0.007794007658958435,
0.11484553664922714,
0.358215868473053,
0.027281221002340317,
-0.4528542160987854,
0.2615329623222351,
-0.021164219826459885,
0.24439899623394012,
0.07095752656459808,
-0.1279030293226242,
-0.08519960939884186,
0.008784545585513115,
0.07800427079200745,
-0.014175556600093842,
0.09054675698280334,
0.342508465051651,
0.03830486908555031,
-0.3234170377254486,
-0.40452316403388977,
0.2545500099658966,
0.3031945824623108,
0.04014188423752785,
0.3135277330875397,
0.008307420648634434,
-0.1673143208026886,
0.061058610677719116,
-0.134674072265625,
0.8996838927268982,
-0.060540344566106796,
-0.10178525000810623,
0.6653994917869568,
-0.24445490539073944,
0.47850489616394043,
0.030294982716441154,
0.0903266966342926,
-0.2928253710269928,
-0.27005496621131897,
-0.015569173730909824,
-0.2568272352218628,
0.2637600898742676,
0.08154980093240738,
-0.43049973249435425,
0.30036094784736633,
-0.29111576080322266,
0.20780888199806213,
0.0213774424046278,
-0.05440041422843933,
-0.0608651302754879,
-0.1126742884516716,
-0.3436707556247711,
0.16298051178455353,
-0.26640769839286804,
0.26880788803100586,
-0.11475080996751785,
-0.14413318037986755,
-0.03311863914132118,
-0.07534358650445938,
-0.12978693842887878,
0.15657630562782288,
-0.3821195065975189,
-0.16315162181854248,
0.11582645028829575,
-0.20061351358890533,
0.07688455283641815,
0.18196804821491241,
0.07397870719432831,
-0.10281237959861755,
-0.3268235921859741,
0.17889849841594696,
-0.07588367909193039,
0.13643360137939453,
-0.08784178644418716,
0.0000824028902570717,
0.2469838410615921,
-0.1007041335105896,
-0.3328215479850769,
0.12364108860492706,
-0.06408071517944336,
0.21982310712337494,
0.28992846608161926,
0.18027882277965546,
-0.07299689948558807,
-0.26217174530029297,
-0.2122359424829483,
-0.17995093762874603,
0.3643169701099396,
-0.27591535449028015,
0.19591890275478363,
0.009252422489225864,
-0.10245128720998764,
0.0800815299153328,
-0.05071089044213295,
-0.1253608614206314,
0.008854432962834835,
0.48733609914779663,
0.4263879358768463,
0.2872931659221649,
0.26606521010398865,
0.2743075489997864,
-0.08068211376667023,
-0.35622668266296387,
0.28289854526519775,
0.11645623296499252,
-0.33516964316368103,
0.30599525570869446,
0.1482209712266922,
0.011609633453190327,
0.016137175261974335,
0.4952471852302551,
0.025640616193413734,
-0.0226025078445673,
-0.07561516016721725,
-0.2714717388153076,
-0.2940613925457001,
0.21104644238948822,
0.007054061163216829,
-0.04866597056388855,
0.1137511283159256,
0.1883585900068283,
0.2880290150642395,
-0.15383407473564148,
-0.3571675419807434,
0.12020973116159439,
-0.3974451720714569,
-0.026375729590654373,
0.02202376164495945,
-0.08833752572536469,
0.2679445743560791,
0.07432808727025986,
0.1367657333612442,
-0.006333031225949526,
-0.11593731492757797,
-0.24850377440452576,
-0.22176490724086761,
0.13630884885787964,
-0.027841370552778244,
0.1512163132429123,
0.15154458582401276,
-0.2163800448179245,
-0.28096744418144226,
-0.01290583424270153,
0.046900078654289246,
0.02016557939350605,
-0.17441551387310028,
0.05058317258954048,
0.19102196395397186,
0.39781543612480164,
-0.021782640367746353,
0.28270405530929565,
-0.0067477053962647915,
0.034539755433797836,
-0.1433788388967514,
0.02376832813024521,
0.20309072732925415,
0.025237523019313812,
-0.20873695611953735,
-0.06448923051357269,
0.2508503794670105,
0.16761933267116547,
0.09408586472272873,
-0.3053336441516876,
-0.12315527349710464,
-0.09764456748962402,
0.0022102119401097298,
0.13086029887199402,
-0.1723630577325821,
0.2990865111351013,
-0.11031651496887207,
0.2701035141944885,
-0.2779802083969116,
0.05242554098367691,
0.32695725560188293,
-0.12120896577835083,
0.06788117438554764,
0.028345732018351555,
-0.32222023606300354,
0.20129793882369995,
-0.11265112459659576,
0.15114709734916687,
0.4406096637248993,
-0.12479054927825928,
0.0929894745349884,
0.21740317344665527,
-0.11620534211397171,
-0.01579034887254238,
0.46070194244384766,
0.20200133323669434,
0.039333708584308624,
0.14204691350460052,
0.022632841020822525,
0.03663678467273712,
-0.04828637093305588,
0.10632070153951645,
0.282798171043396,
-0.4781709909439087,
0.003583443583920598,
0.10940317064523697,
-0.001719245221465826,
-0.09504171460866928,
-0.31514737010002136,
0.5316861271858215,
-0.47294607758522034,
-0.12424275279045105,
-0.2933814525604248,
-0.007863259874284267,
-0.18876755237579346,
0.14117220044136047,
-0.19200271368026733,
-0.13009929656982422,
-0.0960247740149498,
-0.19645152986049652,
0.003972665406763554,
-0.1452820599079132,
0.2983596622943878,
-0.12987904250621796,
-0.06219573691487312,
-0.15632539987564087,
-0.07531516999006271,
0.4235469400882721,
-0.04837707430124283,
-0.1696939617395401,
0.07147511839866638,
-0.1513213813304901,
0.21569383144378662,
-0.09761238098144531,
0.5807608366012573,
0.3321210443973541,
0.3286685645580292,
-0.21318423748016357,
-0.16956785321235657,
0.25452688336372375,
-0.3181825280189514,
-0.107087641954422,
0.15483728051185608,
0.1585802137851715,
0.16061155498027802,
0.07852127403020859,
0.20667073130607605,
-0.22414326667785645,
0.14201898872852325,
0.043659839779138565,
-0.14479251205921173,
-0.31882449984550476,
0.4858051538467407,
-0.3899848759174347,
-0.1255374550819397,
-0.1277063488960266,
-0.074474036693573,
-0.5568335056304932,
0.1190805658698082,
0.27113592624664307,
0.21955806016921997,
0.09889120608568192,
-0.1955021619796753,
0.09587029367685318,
-0.3225295841693878,
0.2215006947517395,
0.020388159900903702,
0.3648219108581543,
-0.31445449590682983,
0.11566319316625595,
-0.5239735245704651,
0.45923104882240295,
-0.010784702375531197,
0.010512219741940498,
0.15419434010982513,
-0.0931214839220047,
-0.26544061303138733,
-0.0039146458730101585,
0.030693858861923218,
0.20476028323173523,
0.3998900055885315,
0.14539068937301636,
-0.5745070576667786,
-0.39090925455093384,
-0.04773782938718796,
-0.07274521142244339,
0.09164867550134659,
-0.26210030913352966,
0.012926728464663029,
-0.1517876237630844,
0.023295603692531586,
-0.11175136268138885,
-0.32035690546035767,
0.15119744837284088,
0.14068932831287384,
0.7023333311080933,
0.04464363679289818,
0.4411260187625885,
0.028585970401763916,
-0.01171240583062172,
0.12163615226745605,
-0.30795910954475403,
-0.10504589229822159,
0.176432266831398,
-0.004793047439306974,
0.05286649242043495,
-0.02099372260272503,
0.27261897921562195,
-0.2175624519586563,
-0.18123243749141693,
-0.1439598649740219,
0.12817317247390747,
-0.30535292625427246,
0.31196829676628113,
-0.3086755573749542,
-0.1393730640411377,
-0.34222182631492615,
-0.005794087890535593,
0.11767154932022095,
0.045272573828697205,
-0.1081116646528244,
0.04936075955629349,
0.6277846693992615,
-0.1653216928243637,
-0.34403789043426514,
-0.10382470488548279,
0.312897652387619,
-0.03598739951848984,
-0.11266227066516876,
-0.5198076367378235,
0.0568196102976799,
0.48524174094200134,
-0.06891515851020813,
-0.19220218062400818,
0.23418733477592468,
-0.14151856303215027,
0.13243824243545532,
-0.021422091871500015,
-0.09415701031684875,
-0.00955082569271326,
-0.03140862286090851,
0.2175460010766983,
-0.1435791403055191
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 41 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 27 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 40 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 191 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 23 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2860 | Cannot download TOTTO dataset | Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
| 20 | Cannot download TOTTO dataset
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | [
-0.2944106459617615,
0.39009320735931396,
-0.1317223310470581,
0.06419692188501358,
0.4353683292865753,
0.13932830095291138,
0.16796351969242096,
0.5879850387573242,
-0.026145748794078827,
0.23434150218963623,
-0.1947769969701767,
-0.04730912670493126,
0.059417035430669785,
0.3187088072299957,
0.06436004489660263,
-0.30841073393821716,
0.06527971476316452,
-0.013006225228309631,
-0.13955216109752655,
0.03085394948720932,
-0.07597991079092026,
0.27826204895973206,
0.01002630777657032,
0.06546451151371002,
0.018108949065208435,
0.09367073327302933,
-0.02909262664616108,
-0.09794454276561737,
-0.26863813400268555,
-0.43473711609840393,
0.4153386056423187,
0.06137531250715256,
0.1697377860546112,
0.38088512420654297,
-0.00010737672710092738,
0.14723296463489532,
0.329101026058197,
0.008616631850600243,
-0.2500195801258087,
-0.35319510102272034,
-0.3288860619068146,
-0.11417602002620697,
-0.1965034455060959,
-0.14808082580566406,
-0.08305295556783676,
0.21273665130138397,
0.20388253033161163,
-0.26071274280548096,
0.04171616956591606,
0.5573633909225464,
0.2718278765678406,
0.09077470749616623,
0.30793699622154236,
-0.36477142572402954,
0.2657267153263092,
0.14753945171833038,
-0.03651609271764755,
0.07056326419115067,
0.07858951389789581,
0.010867023840546608,
0.35628175735473633,
0.04600008949637413,
-0.1339970827102661,
0.07433108985424042,
-0.1553674042224884,
-0.08402270823717117,
-0.0924820527434349,
-0.34242305159568787,
0.21414032578468323,
0.30737757682800293,
0.5096560120582581,
-0.20446529984474182,
-0.36116477847099304,
0.22677814960479736,
-0.059862375259399414,
-0.27954837679862976,
0.2698041796684265,
0.18022236227989197,
0.09009113162755966,
0.16981835663318634,
0.17325714230537415,
-0.4855842888355255,
-0.1890133172273636,
0.05286508426070213,
-0.4141792058944702,
0.1076045110821724,
-0.1177639439702034,
0.004858619067817926,
-0.10592158883810043,
-0.12039383500814438,
0.30164554715156555,
-0.05479191616177559,
-0.037560656666755676,
0.25901272892951965,
-0.2745461165904999,
-0.18414707481861115,
0.10355709493160248,
0.031148293986916542,
0.19200564920902252,
0.04906849190592766,
0.1362316608428955,
-0.10176494717597961,
-0.506201446056366,
-0.06661389023065567,
0.24186891317367554,
-0.1095382422208786,
-0.00026714298292063177,
0.38041171431541443,
0.2949267029762268,
0.24163612723350525,
0.14843343198299408,
0.047314099967479706,
-0.15863363444805145,
-0.3586917817592621,
0.0269328523427248,
-0.11310430616140366,
0.4928358495235443,
-0.20854222774505615,
-0.3899926245212555,
0.1616978496313095,
-0.09008180350065231,
-0.12147466093301773,
-0.017612172290682793,
0.15179483592510223,
-0.024420449510216713,
0.07535818219184875,
0.09186966717243195,
0.14045487344264984,
-0.00887113343924284,
-0.1377052515745163,
-0.2660999596118927,
0.20414449274539948,
-0.012520245276391506,
0.07130278646945953,
0.23099981248378754,
-0.34486743807792664,
0.09529972076416016,
-0.02589189074933529,
-0.462483286857605,
0.082834392786026,
-0.13615313172340393,
-0.07501622289419174,
-0.245877206325531,
0.3632286489009857,
0.22659064829349518,
0.10456519573926926,
0.0013822030741721392,
0.11344003677368164,
-0.29497820138931274,
0.27925601601600647,
-0.3678756058216095,
-0.06788945198059082,
-0.12277700006961823,
0.2941952645778656,
-0.32272768020629883,
-0.2466394007205963,
-0.5071801543235779,
-0.03396503999829292,
-0.052503906190395355,
-0.30569323897361755,
-0.12345948070287704,
-0.1745041459798813,
-0.18053469061851501,
-0.251517653465271,
0.1124923899769783,
0.601351797580719,
-0.20639091730117798,
0.020885493606328964,
-0.419662743806839,
-0.42012694478034973,
0.18996387720108032,
0.2693204879760742,
-0.03414035588502884,
0.4477235972881317,
-0.302584707736969,
0.08851815015077591,
0.43920770287513733,
-0.12548360228538513,
-0.7618817090988159,
-0.0033204855863004923,
-0.25966864824295044,
-0.18988721072673798,
0.17900174856185913,
0.0790313109755516,
0.24975132942199707,
-0.10000558197498322,
0.24605749547481537,
0.13707461953163147,
0.012917675077915192,
-0.04594733566045761,
-0.23870019614696503,
-0.010564455762505531,
-0.004589315038174391,
0.18394140899181366,
0.10487770289182663,
0.20509806275367737,
0.15016746520996094,
-0.07256808876991272,
0.2357555478811264,
0.1607334315776825,
0.09941539168357849,
0.3408912420272827,
0.3313900828361511,
-0.02651359885931015,
-0.01994452252984047,
-0.18357504904270172,
-0.19925984740257263,
0.12322881072759628,
-0.21627822518348694,
0.10841518640518188,
-0.20868068933486938,
-0.1304648071527481,
-0.44674158096313477,
0.059462375938892365,
-0.0653844028711319,
-0.09304281324148178,
0.14991672337055206,
-0.0002757063484750688,
0.31073635816574097,
0.33210739493370056,
-0.020356198772788048,
0.3206823766231537,
0.26770302653312683,
0.10301204770803452,
-0.1375437080860138,
0.5665909647941589,
-0.13397815823554993,
0.05680450052022934,
0.45365971326828003,
-0.24128302931785583,
0.23640361428260803,
-0.08168148994445801,
-0.0623006708920002,
0.15459394454956055,
0.06046918407082558,
0.34222763776779175,
0.47713378071784973,
0.23964151740074158,
0.172165647149086,
-0.4354349672794342,
0.21166378259658813,
0.3432682454586029,
0.07830256223678589,
0.14114496111869812,
-0.19090722501277924,
0.02136167883872986,
0.15398547053337097,
0.035016946494579315,
-0.01760721392929554,
0.2682005763053894,
0.5447116494178772,
0.07632382214069366,
0.06330174952745438,
-0.06420619040727615,
0.2679165303707123,
0.5545854568481445,
0.22247852385044098,
-0.06776255369186401,
-0.2419174313545227,
0.14571061730384827,
0.5387059450149536,
-0.03721809759736061,
0.05278586596250534,
0.2355952262878418,
-0.14766813814640045,
-0.06319074332714081,
-0.19530954957008362,
0.2097868174314499,
0.17180944979190826,
0.059629473835229874,
0.15652215480804443,
0.010634961538016796,
-0.0777701884508133,
-0.266788512468338,
0.055133238434791565,
0.0725213959813118,
0.14529454708099365,
0.14184245467185974,
0.12197581678628922,
0.20613358914852142,
-0.08200892060995102,
-0.3087294399738312,
0.030993640422821045,
0.30566635727882385,
-0.13110199570655823,
-0.07953938096761703,
-0.2592678368091583,
0.004941356368362904,
-0.27327847480773926,
-0.3159628212451935,
-0.2113305628299713,
-0.39529088139533997,
0.0605420246720314,
0.2657615542411804,
0.06559961289167404,
-0.01029882300645113,
-0.056037403643131256,
0.03400039300322533,
0.24361513555049896,
-0.3098420798778534,
-0.13410940766334534,
-0.150049090385437,
-0.10418927669525146,
0.1706148236989975,
0.2377600520849228,
-0.3077162504196167,
0.3982348144054413,
-0.6368309259414673,
0.11993815004825592,
-0.5480048656463623,
-0.23462186753749847,
-0.04311714321374893,
-0.18990705907344818,
0.09422837942838669,
0.1756143867969513,
0.40220174193382263,
0.3427298963069916,
0.2505168616771698,
0.19375412166118622,
-0.02479344978928566,
-0.05100664123892784,
0.08910984545946121,
-0.13871969282627106,
-0.0441238172352314,
0.18273380398750305,
-0.4613678455352783,
-0.30214858055114746,
-0.22804978489875793,
0.044435709714889526,
0.06290741264820099,
0.23663076758384705,
-0.2858440577983856,
0.17098912596702576,
0.06599494814872742,
0.13281084597110748,
-0.3080635666847229,
-0.12229637056589127,
-0.17960162460803986,
0.4985627233982086,
-0.23718038201332092,
-0.23330608010292053,
0.10590097308158875,
0.1302613466978073,
0.4757522642612457,
0.16746750473976135,
-0.44976985454559326,
0.17924407124519348,
-0.3459709882736206,
0.15347982943058014,
-0.046846602112054825,
0.07588773965835571,
0.3201242983341217,
0.14537307620048523,
-0.11372002959251404,
-0.0569932721555233,
-0.16100358963012695,
-0.05003860592842102,
-0.38550981879234314,
0.2330114245414734,
-0.03675778582692146,
0.2503889203071594,
-0.12100714445114136,
0.39819878339767456,
0.25511056184768677,
0.07454739511013031,
0.30406737327575684,
-0.19432629644870758,
0.13060374557971954,
-0.12792588770389557,
-0.18894679844379425,
-0.09842515736818314,
0.15770338475704193,
-0.11632388830184937,
-0.1967868208885193,
-0.01846364513039589,
0.07412116229534149,
-0.169413223862648,
-0.10427858680486679,
-0.20427928864955902,
-0.2836247384548187,
-0.1303623765707016,
0.01778164692223072,
0.41728177666664124,
0.18590988218784332,
0.015683820471167564,
-0.16743066906929016,
-0.09354184567928314,
0.24436315894126892,
0.13966302573680878,
-0.0014966968446969986,
-0.018045688048005104,
-0.12513680756092072,
-0.1843106597661972,
-0.6704334020614624,
0.34411677718162537,
-0.1174285039305687,
0.2353999763727188,
-0.09272423386573792,
0.1852504163980484,
0.1104813888669014,
-0.04633757099509239,
0.5471504330635071,
0.06253720819950104,
0.3733002841472626,
0.3563942611217499,
0.27668216824531555,
-0.1460460126399994,
-0.052509941160678864,
-0.13045203685760498,
0.29658469557762146,
-0.026361916214227676,
0.3771851360797882,
-0.2650291323661804,
-0.055496204644441605,
0.22224445641040802,
0.18887168169021606,
-0.10315629094839096,
0.18050473928451538,
-0.06394760310649872,
-0.4556203782558441,
-0.20931167900562286,
-0.17720156908035278,
-0.08709870278835297,
0.2738860845565796,
-0.15301105380058289,
-0.08726155012845993,
0.06726737320423126,
-0.14736978709697723,
-0.01755492389202118,
-0.16865670680999756,
0.38129308819770813,
-0.1637210100889206,
0.177162766456604,
-0.009663843549787998,
-0.2981502413749695,
0.5925564169883728,
0.9116904139518738,
-0.009423192590475082,
-0.4505527913570404,
-0.06999699771404266,
0.10417801886796951,
-0.19249311089515686,
0.037054870277643204,
-0.10771497339010239,
-0.15561701357364655,
-0.13476625084877014,
0.12147457152605057,
-0.1697998344898224,
0.21793468296527863,
0.26681578159332275,
0.07851214706897736,
-0.41894668340682983,
-0.33196067810058594,
0.4077737629413605,
0.1675906628370285,
-0.04226607084274292,
0.47567006945610046,
0.12317843735218048,
0.005215682089328766,
-0.1512748748064041,
-0.14658735692501068,
0.7076454162597656,
-0.17085199058055878,
0.12187906354665756,
0.39792248606681824,
-0.16708925366401672,
0.29512926936149597,
0.053989630192518234,
0.054950762540102005,
-0.35602861642837524,
0.22415520250797272,
-0.05079871416091919,
-0.09560930728912354,
0.04228838533163071,
0.033159639686346054,
-0.22615237534046173,
0.37607404589653015,
-0.19127081334590912,
0.005761526990681887,
0.2342994660139084,
0.2299366295337677,
-0.23252061009407043,
0.14330768585205078,
-0.2494061142206192,
0.23257921636104584,
-0.1700907200574875,
0.596336305141449,
0.012605249881744385,
-0.1578868329524994,
-0.23525264859199524,
-0.08879215270280838,
-0.4586823582649231,
0.22263112664222717,
-0.35314661264419556,
0.04721727967262268,
-0.1291954666376114,
-0.22001299262046814,
0.06456059962511063,
0.15864768624305725,
0.3044908940792084,
0.23625580966472626,
-0.523736298084259,
0.2670377790927887,
-0.30253103375434875,
-0.3513713479042053,
0.17285099625587463,
0.21179862320423126,
0.2136157900094986,
-0.035590559244155884,
-0.27549293637275696,
0.19301357865333557,
0.016578778624534607,
-0.13363637030124664,
-0.15974409878253937,
-0.3023327887058258,
0.09608465433120728,
-0.2871343195438385,
0.030884629115462303,
-0.17845523357391357,
-0.06391666829586029,
-0.2592560648918152,
0.21087808907032013,
0.2444290816783905,
0.17908690869808197,
-0.07703195512294769,
-0.20085330307483673,
-0.2742709517478943,
-0.12531732022762299,
0.45766863226890564,
-0.08990782499313354,
0.03626634180545807,
0.30033501982688904,
0.14185495674610138,
-0.04211050271987915,
-0.2370264083147049,
-0.0758945420384407,
0.08708769083023071,
-0.07054243236780167,
0.20107042789459229,
-0.24619744718074799,
0.46026164293289185,
-0.19835376739501953,
0.031058255583047867,
0.007281463593244553,
-0.060262616723775864,
-0.01744861714541912,
-0.4184097349643707,
-0.0034991074353456497,
0.139950692653656,
0.06899888068437576,
0.008093549869954586,
0.08017495274543762,
0.3379448652267456,
0.07537240535020828,
-0.24152398109436035,
-0.31412234902381897,
0.1533350795507431,
0.01009239163249731,
-0.26027679443359375,
0.3766644299030304,
0.1265030950307846,
0.24597221612930298,
-0.10167653113603592,
0.18485549092292786,
-0.21972176432609558,
-0.22109681367874146,
-0.264595091342926,
0.000030081384466029704,
0.05816511809825897,
-0.04339573159813881,
-0.08841454237699509,
0.12358874082565308,
-0.38157743215560913,
-0.28941991925239563,
0.2447361797094345,
0.08464297652244568,
0.42679715156555176,
-0.024262750521302223,
-0.06266183406114578,
0.17425698041915894,
0.025644471868872643,
-0.07157358527183533,
0.05229385197162628,
-0.050693005323410034,
0.001074590953066945,
-0.02425890602171421,
0.3078611195087433,
0.009836021810770035,
-0.14883138239383698,
-0.3080676794052124,
-0.012468143366277218,
0.06957712024450302,
-0.08357445895671844,
0.47949308156967163,
-0.23818974196910858,
0.058693576604127884,
0.3324655294418335,
0.1315367966890335,
0.309674471616745,
-0.5152156949043274,
0.11309480667114258,
0.04085919260978699,
0.2866986095905304,
-0.32998621463775635,
-0.12997682392597198,
-0.23883597552776337,
0.013306193985044956,
-0.12264019250869751,
-0.02374262921512127,
-0.06547518819570541,
0.15896251797676086,
0.25374287366867065,
0.13775543868541718,
0.3771548867225647,
-0.1948017030954361,
0.22890551388263702,
0.30932971835136414,
0.1026870384812355,
0.18625345826148987,
0.22176344692707062,
0.07996495813131332,
-0.09696855396032333,
0.435067355632782,
-0.22939184308052063,
0.15007539093494415,
-0.06771193444728851,
0.07908228039741516,
0.18580372631549835,
-0.20166818797588348,
-0.3423801064491272,
0.20994657278060913,
-0.10701722651720047,
-0.04168514907360077,
0.038224995136260986,
0.26469317078590393,
-0.3808474838733673,
0.25993964076042175,
-0.24715851247310638,
0.21804256737232208,
0.03969182074069977,
-0.10703776776790619,
-0.07102148979902267,
-0.2772130072116852,
-0.16157375276088715,
0.11118629574775696,
0.05440305173397064,
-0.05748719722032547,
-0.11724591255187988,
-0.0004240563721396029,
-0.41129907965660095,
-0.4172865152359009,
0.04534339904785156,
0.1922142654657364,
0.15196707844734192,
-0.12516099214553833,
0.4158017933368683,
-0.06668633222579956,
-0.28173983097076416,
0.15395231544971466,
0.48880133032798767,
0.4909830093383789,
0.1652412712574005,
0.2514764070510864,
-0.14476849138736725,
-0.2571273148059845,
-0.21323604881763458,
0.07024987787008286,
0.11483759433031082,
-0.033470675349235535,
0.007120822556316853,
0.2830832898616791,
0.20912964642047882,
-0.15408653020858765,
0.12444857507944107,
0.0029568993486464024,
0.3419483006000519,
0.056380096822977066,
0.3701932728290558,
-0.37596839666366577,
-0.09316638857126236,
-0.2818806767463684,
-0.08912807703018188,
-0.39366787672042847,
-0.1934795081615448,
0.12496532499790192,
0.037829551845788956,
0.009135785512626171,
-0.2682197391986847,
0.12840181589126587,
0.03217468783259392,
0.1845884621143341,
0.2696239650249481,
0.20586806535720825,
-0.2469169646501541,
-0.3324054777622223,
-0.5042061805725098,
0.14899973571300507,
-0.1049715206027031,
-0.21467433869838715,
-0.1411428600549698,
0.021501334384083748,
-0.2108837217092514,
0.06252932548522949,
0.29793602228164673,
-0.01730457693338394,
-0.18924033641815186,
-0.16133414208889008,
-0.18593668937683105,
-0.013821314089000225,
-0.17595377564430237,
0.0314948596060276,
0.03161906450986862,
-0.33354735374450684,
0.27913281321525574,
-0.3489808440208435,
0.07214494049549103,
-0.20299185812473297,
0.058277349919080734,
0.08456172049045563,
-0.02090505324304104,
0.2773118317127228,
0.17823195457458496,
0.1633215695619583,
-0.07166137546300888,
-0.12428369373083115,
-0.4604785740375519,
-0.07522165030241013,
-0.19515873491764069,
0.0604051798582077,
-0.1034030020236969,
0.09617363661527634,
-0.18126745522022247,
-0.426229864358902,
-0.12998464703559875,
0.05917434021830559,
-0.1510559767484665,
0.06788555532693863,
-0.18107622861862183,
-0.029920823872089386,
-0.05012121796607971,
0.18201367557048798,
0.17484447360038757,
0.04710523784160614,
-0.001565750571899116,
0.0969650149345398,
-0.29985311627388,
-0.28404301404953003,
0.16382697224617004,
0.018810220062732697,
-0.007454749196767807,
-0.09210646152496338,
0.04840279743075371,
0.23156265914440155,
0.06438858062028885,
-0.18918266892433167,
0.23621246218681335,
0.41562366485595703,
0.009564260020852089,
-0.16962985694408417,
0.1937181055545807,
-0.11111513525247574,
0.14572778344154358,
0.17899499833583832,
0.4593873620033264,
-0.040630828589200974,
-0.11746780574321747,
0.022176189348101616,
-0.04826786741614342
] |
https://github.com/huggingface/datasets/issues/2945 | Protect master branch | @lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution. | 64 | Protect master branch
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution.
@lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | [
-0.15531952679157257,
-0.1002306342124939,
-0.0703212171792984,
-0.07981692999601364,
-0.10425391793251038,
-0.18798768520355225,
0.010403447784483433,
0.2728639543056488,
-0.009848886169493198,
-0.08413966745138168,
0.2926151156425476,
-0.07787521183490753,
-0.1324571818113327,
0.2158902883529663,
-0.0562291257083416,
0.17054565250873566,
0.2003232091665268,
-0.04079793021082878,
-0.09233273565769196,
0.027923399582505226,
0.02260850928723812,
-0.06870285421609879,
0.08319995552301407,
0.04363008216023445,
-0.18378226459026337,
0.005401227157562971,
-0.014811803586781025,
0.15649625658988953,
-0.4397662281990051,
-0.4695700705051422,
0.1452464908361435,
0.23224036395549774,
0.025106294080615044,
0.5705346465110779,
-0.00010436370212119073,
-0.0003455299010965973,
0.1694866269826889,
-0.04060080274939537,
-0.1401023119688034,
-0.2154635787010193,
-0.49010729789733887,
-0.44479578733444214,
-0.07006344199180603,
-0.008354135788977146,
0.1288069784641266,
0.05286785960197449,
-0.13249990344047546,
0.023845769464969635,
0.38484516739845276,
0.10555234551429749,
0.23861092329025269,
-0.10285189002752304,
0.18124035000801086,
0.0137694226577878,
0.3920089304447174,
0.5474526882171631,
-0.06663452088832855,
0.3031995892524719,
0.054018065333366394,
0.0006758928066119552,
0.06110583618283272,
0.17410853505134583,
-0.0823725163936615,
-0.286670058965683,
0.2270195335149765,
-0.17799131572246552,
0.5181743502616882,
-0.4243534207344055,
-0.24158386886119843,
-0.08311760425567627,
0.05237932875752449,
-0.17814625799655914,
-0.4089038074016571,
-0.241937056183815,
-0.1499476432800293,
0.007633797824382782,
0.06778036803007126,
0.24686414003372192,
0.039739787578582764,
0.003649464575573802,
-0.3773652911186218,
-0.27180883288383484,
-0.004407730884850025,
0.0492042638361454,
0.1419408917427063,
-0.16262944042682648,
0.06642632186412811,
-0.12703843414783478,
0.2942226231098175,
-0.04732835292816162,
-0.14698359370231628,
-0.3676341772079468,
-0.2413337528705597,
-0.012587533332407475,
-0.10261356830596924,
-0.1957472562789917,
-0.2462063580751419,
-0.3248276114463806,
0.4251306653022766,
0.3889685869216919,
-0.38327258825302124,
0.013739803805947304,
-0.030489405617117882,
-0.08101645112037659,
0.20718491077423096,
0.11785817891359329,
-0.010490071028470993,
0.05848859250545502,
0.5307133197784424,
0.3144407868385315,
0.005158527754247189,
0.3255855441093445,
0.30156993865966797,
0.003047175006940961,
0.03444604575634003,
0.5741187930107117,
0.4289446771144867,
-0.262920618057251,
0.12764763832092285,
0.19597367942333221,
-0.3412007689476013,
-0.38450801372528076,
0.07113105058670044,
-0.08617232739925385,
0.11032578349113464,
0.027133630588650703,
-0.11471155285835266,
0.06680163741111755,
0.045190632343292236,
-0.03808610513806343,
-0.30790287256240845,
-0.14148540794849396,
-0.37440037727355957,
-0.06853056699037552,
0.186040461063385,
-0.45710450410842896,
0.1491675227880478,
0.43252432346343994,
-0.06803739070892334,
-0.19928444921970367,
0.044552337378263474,
0.12922582030296326,
0.055587347596883774,
0.29611945152282715,
-0.15379787981510162,
-0.4526282846927643,
0.22359661757946014,
0.13133300840854645,
-0.0668996125459671,
0.19400425255298615,
-0.1598995476961136,
-0.2616221606731415,
-0.10497579723596573,
0.2977657914161682,
-0.1482723206281662,
0.3071562647819519,
-0.5237662196159363,
0.03637342154979706,
-0.004483797121793032,
0.3506705164909363,
0.4910375475883484,
0.3025479316711426,
0.32807865738868713,
-0.16859371960163116,
0.06175652891397476,
0.19034552574157715,
0.3235115110874176,
-0.05168657749891281,
0.06230420991778374,
-0.2877364754676819,
0.10950364917516708,
0.14507333934307098,
-0.31216010451316833,
0.01755587011575699,
-0.005236246157437563,
-0.1312820464372635,
0.010776033625006676,
-0.07140670716762543,
-0.11198782175779343,
-0.09892980009317398,
-0.36668553948402405,
0.06940320134162903,
-0.04073728248476982,
-0.10077716410160065,
0.20795726776123047,
-0.3201755881309509,
-0.09479382634162903,
0.20508162677288055,
-0.14812302589416504,
0.020898478105664253,
-0.29198744893074036,
-0.6061381101608276,
-0.1636558175086975,
-0.0634387955069542,
0.12491443753242493,
0.22756393253803253,
0.3607693612575531,
-0.00503105903044343,
-0.028361745178699493,
-0.1714027225971222,
-0.009397406131029129,
0.1125069111585617,
0.3421365022659302,
-0.14967811107635498,
-0.24154196679592133,
0.13224638998508453,
-0.354588121175766,
0.09114091098308563,
-0.07851210236549377,
-0.009774935431778431,
0.03444841131567955,
-0.315788209438324,
0.34127968549728394,
-0.044052962213754654,
-0.12080135941505432,
-0.11415072530508041,
0.2415170967578888,
0.09595165401697159,
-0.17473354935646057,
-0.20392122864723206,
-0.20740646123886108,
0.2601909339427948,
-0.24083061516284943,
0.30186569690704346,
0.13001373410224915,
0.10263737291097641,
-0.14118081331253052,
-0.03645326569676399,
-0.025096364319324493,
0.3619363009929657,
0.23630425333976746,
-0.08991744369268417,
-0.0591583289206028,
0.16876062750816345,
-0.04906313866376877,
0.20357011258602142,
0.22469453513622284,
0.42524245381355286,
0.3736156225204468,
-0.10268167406320572,
0.06260106712579727,
-0.09179246425628662,
-0.07872448116540909,
0.024594513699412346,
-0.3291274607181549,
0.3280373811721802,
0.07369436323642731,
-0.1394646316766739,
-0.1740320771932602,
-0.10333257168531418,
-0.1740742176771164,
-0.22026918828487396,
-0.17077264189720154,
-0.012951225973665714,
-0.16909807920455933,
0.19436493515968323,
-0.33659201860427856,
0.2223694622516632,
-0.2772078812122345,
0.14857926964759827,
0.015052537433803082,
-0.25160685181617737,
-0.10240118205547333,
0.0682978555560112,
-0.0059672133065760136,
-0.13271483778953552,
0.12417104095220566,
0.37738320231437683,
0.1278747320175171,
0.1700998842716217,
0.004274277947843075,
0.020151330158114433,
0.2572828233242035,
-0.11643599718809128,
0.3533257842063904,
0.14430703222751617,
-0.10544520616531372,
0.054064542055130005,
0.33645594120025635,
0.18121865391731262,
0.06433171778917313,
0.34691932797431946,
-0.003324149176478386,
0.035258226096630096,
-0.2084069699048996,
-0.045984745025634766,
-0.26021048426628113,
-0.5283417701721191,
0.21923768520355225,
-0.11063802987337112,
-0.3552161455154419,
-0.008504314348101616,
-0.04536616429686546,
0.04741809889674187,
-0.5248720645904541,
0.13602997362613678,
0.18358106911182404,
0.2905261218547821,
-0.31780317425727844,
-0.11997797340154648,
0.12631574273109436,
-0.02259518764913082,
0.012344174087047577,
0.12856005132198334,
0.36316001415252686,
-0.22668103873729706,
0.459450900554657,
0.23898117244243622,
-0.16955658793449402,
-0.47264015674591064,
-0.34341326355934143,
0.019130084663629532,
-0.20393632352352142,
-0.11797474324703217,
0.009818697348237038,
-0.0989307165145874,
0.09215410053730011,
-0.35854029655456543,
-0.32571232318878174,
-0.018773891031742096,
-0.3730047345161438,
-0.16009575128555298,
0.06959563493728638,
0.06288591027259827,
-0.23461760580539703,
-0.1140403002500534,
-0.3865898847579956,
-0.28215277194976807,
0.47935575246810913,
-0.016432981938123703,
0.11565907299518585,
-0.043173301964998245,
-0.2923773527145386,
-0.04591802507638931,
0.08748285472393036,
0.1366390585899353,
-0.000044830892875324935,
-0.3609323501586914,
0.03256666287779808,
-0.04066038131713867,
-0.029347043484449387,
0.35260987281799316,
0.18549099564552307,
-0.4302407503128052,
0.07125172019004822,
-0.3217605650424957,
-0.1558188945055008,
-0.05208456888794899,
0.4864443242549896,
0.3141201436519623,
-0.09737382084131241,
0.07108031213283539,
0.10355085879564285,
-0.1919003278017044,
0.055089160799980164,
-0.1816122680902481,
0.1472240686416626,
0.3454882502555847,
0.28571847081184387,
0.03789980337023735,
0.14586755633354187,
0.025497399270534515,
0.7140877842903137,
0.3778497874736786,
-0.05965737625956535,
0.21033748984336853,
0.31069713830947876,
-0.027717936784029007,
0.0039905970916152,
-0.26015663146972656,
0.06504698097705841,
-0.10124312341213226,
-0.000021042458683950827,
0.08670398592948914,
-0.1295781433582306,
-0.1229654923081398,
-0.011210812255740166,
-0.4777138829231262,
0.00915592722594738,
-0.41467639803886414,
-0.2396632730960846,
-0.3181843161582947,
0.1842498630285263,
-0.022525612264871597,
-0.4854884743690491,
0.1313801109790802,
0.053771089762449265,
0.23057636618614197,
0.2159711867570877,
0.21420615911483765,
0.18121565878391266,
-0.020259149372577667,
-0.05108439922332764,
-0.12007374316453934,
-0.06772612035274506,
-0.0043310122564435005,
0.14525043964385986,
0.0905802845954895,
-0.16704106330871582,
0.03180547058582306,
0.06955026835203171,
0.329990953207016,
-0.014868647791445255,
0.14029142260551453,
-0.17080718278884888,
-0.5094850659370422,
0.6086311936378479,
-0.3185943365097046,
0.13940280675888062,
0.2990989089012146,
0.5112244486808777,
0.43976345658302307,
-0.2954540252685547,
-0.19531670212745667,
0.2071225494146347,
0.03255609795451164,
0.19783642888069153,
0.17735029757022858,
0.1449771672487259,
0.27830713987350464,
-0.49038106203079224,
0.28877419233322144,
0.15483331680297852,
-0.2504819929599762,
-0.15517601370811462,
-0.0039055286906659603,
-0.027050260454416275,
0.12646284699440002,
-0.026303596794605255,
-0.24539798498153687,
0.009127466008067131,
-0.10943756997585297,
0.17344564199447632,
0.13292022049427032,
0.06982778757810593,
0.4152195155620575,
0.594659149646759,
0.13493406772613525,
-0.3891986608505249,
-0.048201270401477814,
-0.1750735640525818,
-0.07428334653377533,
0.3271436095237732,
0.19835104048252106,
0.24822799861431122,
0.020348481833934784,
0.17768624424934387,
-0.12347229570150375,
-0.2662383019924164,
-0.20336684584617615,
-0.03849121928215027,
-0.07674269378185272,
0.007589299697428942,
0.08732911199331284,
-0.0458977036178112,
-0.09099221974611282,
0.013048730790615082,
0.13999849557876587,
-0.3660997450351715,
0.16378498077392578,
0.6180498600006104,
0.9825441837310791,
0.39756709337234497,
0.08903370797634125,
-0.25465646386146545,
-0.32738280296325684,
0.32599085569381714,
-0.3401079773902893,
-0.16645076870918274,
-0.24701723456382751,
-0.12358801811933517,
-0.18424609303474426,
-0.3403116464614868,
-0.03869447112083435,
-0.4898473620414734,
-0.3528556227684021,
0.1351126879453659,
-0.21805518865585327,
0.5279190540313721,
0.008177612908184528,
0.12338604778051376,
0.19101881980895996,
-0.12231443077325821,
0.25515133142471313,
0.19827066361904144,
0.06181138753890991,
0.10409525036811829,
-0.004027710761874914,
-0.4687904119491577,
-0.0022326919715851545,
0.020538879558444023,
-0.3772697448730469,
0.0891471803188324,
-0.34377795457839966,
0.03884703665971756,
-0.20635327696800232,
-0.31605222821235657,
0.11582726985216141,
-0.08704768866300583,
0.6059404611587524,
0.16662999987602234,
-0.07945197075605392,
-0.04462064057588577,
0.29138895869255066,
0.4645250141620636,
-0.22885167598724365,
-0.2195305973291397,
0.5223727822303772,
-0.21336379647254944,
-0.13021734356880188,
-0.20476163923740387,
-0.0803343877196312,
-0.2370925396680832,
-0.26094791293144226,
-0.12804299592971802,
-0.32823267579078674,
0.07950174063444138,
0.0417141318321228,
0.2636535167694092,
-0.09106969833374023,
-0.16760607063770294,
0.18599306046962738,
0.11548547446727753,
-0.1075727567076683,
-0.11858490109443665,
-0.16952039301395416,
-0.2610395550727844,
-0.06781601905822754,
0.20160098373889923,
0.16160546243190765,
-0.12060696631669998,
-0.07676412910223007,
0.09965729713439941,
-0.24433663487434387,
-0.2207898646593094,
-0.20729225873947144,
0.10598790645599365,
-0.1394687443971634,
0.09298136085271835,
-0.5486781001091003,
-0.32993441820144653,
0.051746830344200134,
0.2461933195590973,
0.2794158160686493,
0.33049848675727844,
0.11800039559602737,
-0.09977074712514877,
-0.22444932162761688,
0.218643456697464,
-0.3279264569282532,
0.16864924132823944,
0.023584164679050446,
0.15881133079528809,
-0.02600964345037937,
0.040430232882499695,
-0.3905956447124481,
0.16031545400619507,
-0.12548045814037323,
-0.021126115694642067,
-0.2255210131406784,
-0.10175339132547379,
-0.0006301145767793059,
-0.30818623304367065,
0.03248762711882591,
0.023433173075318336,
-0.19575658440589905,
-0.2830151319503784,
0.09266888350248337,
0.065695621073246,
0.06478946655988693,
-0.05701356753706932,
-0.05746068060398102,
-0.10815755277872086,
0.08275330066680908,
0.27203232049942017,
0.23969247937202454,
-0.15849129855632782,
0.1097131222486496,
-0.032224759459495544,
0.17108850181102753,
0.11058501899242401,
-0.02477268874645233,
0.08924166858196259,
0.014632507227361202,
-0.2658015787601471,
-0.03537481650710106,
0.26715999841690063,
-0.18174627423286438,
-0.21714390814304352,
-0.26853957772254944,
0.18883568048477173,
0.10563383996486664,
0.5840901136398315,
0.20288021862506866,
0.14421692490577698,
-0.4050825536251068,
0.1754089593887329,
-0.05319758132100105,
-0.0036355708725750446,
-0.16923554241657257,
-0.0969402864575386,
-0.08496216684579849,
0.27936020493507385,
-0.08671915531158447,
-0.30359721183776855,
0.2713839113712311,
0.1881815791130066,
0.0007485296810045838,
0.10497120022773743,
0.5280755758285522,
0.12962067127227783,
-0.18965227901935577,
0.42213574051856995,
0.27124306559562683,
-0.0876760333776474,
0.49490007758140564,
0.47023290395736694,
-0.11318214237689972,
-0.02032512053847313,
-0.08273597061634064,
0.11661382764577866,
0.23068732023239136,
-0.2540964186191559,
0.12847207486629486,
0.2962189018726349,
0.6462966799736023,
-0.1688840389251709,
0.39355477690696716,
-0.033096227794885635,
0.3437396287918091,
0.19799332320690155,
0.05874063819646835,
-0.2460494339466095,
0.39270922541618347,
0.21170756220817566,
0.330151230096817,
-0.6189894080162048,
0.1363731324672699,
0.4914030134677887,
0.049282655119895935,
0.199581578373909,
-0.40010568499565125,
-0.04923287406563759,
-0.05847601220011711,
-0.048312991857528687,
-0.07818276435136795,
0.16349563002586365,
0.12373755872249603,
0.2829662263393402,
0.006584235932677984,
-0.08837808668613434,
-0.04344049468636513,
0.18504810333251953,
0.24156180024147034,
-0.11699779331684113,
-0.18117307126522064,
0.35775500535964966,
-0.276198148727417,
0.06649363040924072,
0.2154606133699417,
0.1350686103105545,
-0.07471626251935959,
-0.06863386183977127,
0.18023458123207092,
0.45039457082748413,
-0.1699340045452118,
0.022511504590511322,
0.05574961379170418,
-0.1625676304101944,
0.15771736204624176,
0.08014728873968124,
0.2580326497554779,
-0.05334081873297691,
0.11280255019664764,
0.03542693704366684,
-0.41529789566993713,
-0.025322267785668373,
0.43308109045028687,
0.556464433670044,
-0.3377304971218109,
0.4601389467716217,
0.11926820129156113,
0.2847006022930145,
-0.03268490359187126,
0.4374353885650635,
-0.04712602123618126,
0.11639229208230972,
-0.005153660662472248,
0.1430787742137909,
0.028089698404073715,
0.25758814811706543,
0.14149977266788483,
-0.03334528207778931,
-0.15928876399993896,
0.03010641224682331,
-0.1215411052107811,
0.1274351179599762,
0.2968396544456482,
0.17307066917419434,
0.419888973236084,
-0.29471391439437866,
0.12756891548633575,
0.12823450565338135,
-0.08756951987743378,
-0.3413965702056885,
0.009521656669676304,
0.09408494830131531,
-0.36052924394607544,
0.004247516393661499,
0.22248147428035736,
-0.06943992525339127,
-0.024194512516260147,
0.11893364042043686,
0.40947774052619934,
0.19279032945632935,
0.11209263652563095,
0.10513085126876831,
-0.04934779927134514,
0.32094308733940125,
-0.39184579253196716,
0.22496171295642853,
0.189223051071167,
-0.10292981564998627,
-0.22188851237297058,
-0.05109889805316925,
0.0073660146445035934,
0.021280335262417793,
-0.43550899624824524,
-0.1401803195476532,
-0.16222603619098663,
0.42098402976989746,
-0.1355971246957779,
0.06829797476530075,
-0.37221774458885193,
0.06876685470342636,
-0.03713426738977432,
0.2683561146259308,
-0.3000992238521576,
0.08640863001346588,
0.05254732817411423,
0.017337964847683907,
0.08837056905031204,
0.1305798441171646,
0.06843451410531998,
0.25285086035728455,
-0.35231563448905945,
-0.12488924711942673,
0.35866209864616394,
-0.019470620900392532,
0.09103628247976303,
-0.21726886928081512,
0.41820433735847473,
0.465445876121521,
-0.1480814516544342,
-0.3321150243282318,
-0.263518363237381,
-0.01115625910460949,
-0.27983394265174866,
-0.5420891642570496,
0.298637717962265,
0.13786809146404266,
0.19743824005126953,
-0.10587076097726822,
0.03660714253783226,
-0.07432663440704346,
-0.15276366472244263,
0.061171870678663254,
-0.19878600537776947
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 50 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 28 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 22 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 27 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | [
-0.30499544739723206,
0.12438808381557465,
-0.04655871540307999,
0.23689685761928558,
0.15172921121120453,
-0.06666013598442078,
-0.006941257044672966,
0.3285394608974457,
0.17373836040496826,
0.029381630942225456,
-0.2313861846923828,
0.3581928610801697,
-0.1503300666809082,
0.25273647904396057,
-0.2977859377861023,
-0.13781170547008514,
0.04446928948163986,
0.032124679535627365,
-0.0614953376352787,
0.16641278564929962,
-0.1239176020026207,
0.49885812401771545,
-0.19577649235725403,
0.007079567760229111,
0.22216537594795227,
0.051321059465408325,
0.10912417620420456,
0.13856615126132965,
0.07986187934875488,
-0.33926934003829956,
0.5981170535087585,
0.1064068153500557,
-0.03486905246973038,
0.49809566140174866,
-0.00012130982213420793,
0.09986794739961624,
0.43980664014816284,
-0.10739767551422119,
-0.45794954895973206,
-0.36868783831596375,
-0.1928539127111435,
0.13199391961097717,
0.21311381459236145,
0.08116329461336136,
-0.07151219248771667,
0.11434181034564972,
-0.30349355936050415,
-0.3460468351840973,
0.2488766461610794,
0.1989331990480423,
0.2267286777496338,
0.21361425518989563,
0.2657421827316284,
0.06658691167831421,
0.17017868161201477,
0.08265233784914017,
0.02597207948565483,
-0.04908638820052147,
0.294028639793396,
0.014261003583669662,
0.04368568956851959,
0.4806104600429535,
-0.3283522129058838,
-0.21464626491069794,
0.304618775844574,
-0.29825344681739807,
0.10307107865810394,
-0.39570367336273193,
0.2999306917190552,
0.07813710719347,
0.14626407623291016,
-0.25551849603652954,
-0.5773364901542664,
-0.3483264148235321,
-0.5121473670005798,
-0.28682875633239746,
0.416473388671875,
-0.21635925769805908,
-0.20099681615829468,
0.2200830578804016,
-0.33426493406295776,
-0.027003800496459007,
0.09349794685840607,
0.053509652614593506,
-0.0584820955991745,
0.2941838502883911,
-0.1318318247795105,
-0.0048627168871462345,
0.014982975088059902,
-0.1329006552696228,
0.1924089938402176,
-0.27500465512275696,
-0.19687461853027344,
0.17257992923259735,
-0.01555944886058569,
-0.054612938314676285,
0.0954224169254303,
0.33232784271240234,
0.14057107269763947,
0.035628657788038254,
0.019210349768400192,
0.08454014360904694,
-0.040964193642139435,
0.053677406162023544,
0.13732756674289703,
0.4753790497779846,
0.49011993408203125,
0.24679073691368103,
0.2727877199649811,
0.28548893332481384,
-0.007885197177529335,
-0.0013801197055727243,
0.528185248374939,
-0.1666412055492401,
0.07470737397670746,
0.1517309844493866,
0.19669505953788757,
-0.404868483543396,
-0.36021366715431213,
0.16896255314350128,
-0.07699967175722122,
-0.12503983080387115,
0.2207263857126236,
0.05349443107843399,
0.10056515783071518,
0.2142343819141388,
0.13208162784576416,
0.03385685384273529,
-0.1964721977710724,
0.061234232038259506,
-0.17250977456569672,
-0.17394572496414185,
0.0011614441173151135,
-0.11129908263683319,
-0.047305479645729065,
-0.8997768759727478,
0.17476963996887207,
0.04826044663786888,
0.006349085830152035,
0.10580964386463165,
-0.06977370381355286,
0.20743513107299805,
0.173016756772995,
0.5229283571243286,
-0.2213587760925293,
0.0839003399014473,
0.16719089448451996,
-0.5483278632164001,
-0.13868649303913116,
0.012528326362371445,
-0.24153777956962585,
-0.1112062856554985,
0.20858801901340485,
0.17358630895614624,
-0.32967182993888855,
0.012651301920413971,
-0.17029882967472076,
0.45154261589050293,
0.2592140734195709,
-0.5466870069503784,
-0.07795723527669907,
-0.21338017284870148,
-0.43823468685150146,
-0.19971412420272827,
0.09719043225049973,
0.41313719749450684,
-0.5942546129226685,
-0.32166728377342224,
0.021687019616365433,
0.03190667927265167,
0.0399162732064724,
-0.12293415516614914,
-0.0634392648935318,
-0.2444724589586258,
-0.10776883363723755,
-0.13841769099235535,
0.3606540560722351,
-0.31955474615097046,
-0.733892560005188,
0.15372583270072937,
0.23602111637592316,
0.5342665314674377,
-0.07095903158187866,
-0.13748405873775482,
0.2813950181007385,
-0.2578289806842804,
0.1459921896457672,
0.08484454452991486,
-0.16490338742733002,
-0.007994094863533974,
-0.34096938371658325,
-0.23469436168670654,
0.2238697111606598,
-0.1502913534641266,
0.09041716158390045,
0.33485883474349976,
0.07900611311197281,
-0.25422003865242004,
0.05029171705245972,
0.03505023941397667,
0.10492415726184845,
0.199092835187912,
0.24532392621040344,
0.22376549243927002,
0.28630638122558594,
-0.43651843070983887,
-0.28014057874679565,
0.2506178617477417,
0.21412989497184753,
-0.06000124290585518,
-0.1524067521095276,
-0.19822721183300018,
-0.2678266167640686,
-0.08841829746961594,
-0.15897750854492188,
-0.3044097423553467,
0.0788736641407013,
0.02257649600505829,
0.38436421751976013,
-0.03850395977497101,
-0.11452578008174896,
0.6218650341033936,
0.30845341086387634,
0.09448052197694778,
-0.5049409866333008,
0.22964130342006683,
-0.054851774126291275,
0.00516892783343792,
-0.059185657650232315,
0.03778215870261192,
0.2939596474170685,
-0.06852541118860245,
-0.2895756959915161,
0.40787473320961,
0.03925885260105133,
0.08416782319545746,
-0.02763330563902855,
0.19374608993530273,
0.17734619975090027,
0.2105836272239685,
0.06393365561962128,
0.27418243885040283,
-0.014883684925734997,
0.20872128009796143,
-0.19545701146125793,
0.5572487711906433,
0.029375478625297546,
0.32405024766921997,
0.12083478271961212,
0.14875608682632446,
0.3702496886253357,
0.13056333363056183,
-0.21899518370628357,
-0.1370791643857956,
0.3204491138458252,
-0.45872318744659424,
0.062667116522789,
0.012339688837528229,
-0.12979324162006378,
0.377625972032547,
0.0716821476817131,
0.07551189512014389,
-0.03345238044857979,
0.31192126870155334,
-0.1593657284975052,
-0.042191024869680405,
0.18136237561702728,
0.4024861752986908,
0.4014510214328766,
0.20883212983608246,
0.05071709677577019,
0.07588174939155579,
-0.16153958439826965,
-0.02487749047577381,
0.2082495242357254,
0.12934616208076477,
-0.16964009404182434,
0.15357519686222076,
0.3034212589263916,
0.27320387959480286,
-0.30619755387306213,
0.09339354187250137,
-0.23562388122081757,
0.1195329949259758,
-0.2705814242362976,
0.36163681745529175,
-0.2810102701187134,
-0.2280871570110321,
0.07614205032587051,
-0.16783228516578674,
-0.26151418685913086,
-0.38752228021621704,
0.08989975601434708,
0.39343953132629395,
-0.08621890842914581,
0.25677478313446045,
0.014716411009430885,
0.2445412278175354,
0.13616777956485748,
-0.19968213140964508,
-0.4005720317363739,
-0.20788118243217468,
-0.34764790534973145,
0.0053975689224898815,
0.20513199269771576,
-0.1568489968776703,
0.29703500866889954,
-0.07630937546491623,
-0.20662416517734528,
-0.3902941644191742,
-0.9079104065895081,
-0.04862884059548378,
-0.12396465241909027,
0.6180295348167419,
0.3176227807998657,
-0.09162604063749313,
-0.13527172803878784,
-0.2327558696269989,
0.16657957434654236,
-0.04131537303328514,
-0.43108317255973816,
0.15683895349502563,
0.06662234663963318,
0.168222114443779,
-0.20038525760173798,
-0.22702793776988983,
-0.1135406643152237,
-0.1458195149898529,
0.007939961738884449,
-0.12769007682800293,
0.08496524393558502,
0.30940404534339905,
0.11235319077968597,
-0.3165159225463867,
-0.08720128238201141,
0.13308601081371307,
-0.33354032039642334,
-0.07733750343322754,
0.07394186407327652,
-0.05416202172636986,
-0.23024339973926544,
-0.034139763563871384,
-0.03198087215423584,
0.08318942040205002,
0.37366312742233276,
-0.40695905685424805,
-0.37917715311050415,
-0.27137336134910583,
-0.004873957950621843,
0.2311774492263794,
0.06836088746786118,
0.23196657001972198,
0.18999448418617249,
0.0391031838953495,
-0.27946802973747253,
-0.4342859983444214,
-0.08862019330263138,
-0.2365955412387848,
0.10954897105693817,
0.14822465181350708,
0.6309942007064819,
0.03456376865506172,
0.4764268100261688,
0.2947266399860382,
0.04896098002791405,
0.13982608914375305,
0.18155521154403687,
0.4972690939903259,
-0.3258463144302368,
-0.4095648229122162,
-0.04670892283320427,
-0.046193718910217285,
0.05051274597644806,
-0.15319138765335083,
0.17958196997642517,
-0.11206109076738358,
-0.34878817200660706,
0.00008894498023437336,
-0.25156348943710327,
-0.2498105764389038,
-0.23862722516059875,
-0.013643979094922543,
0.26900526881217957,
0.3906215727329254,
0.14077094197273254,
-0.3225957155227661,
-0.17638474702835083,
-0.008137591183185577,
0.4007481038570404,
0.10357732325792313,
0.2502201199531555,
-0.1815418004989624,
-0.047142144292593,
-0.4509255886077881,
0.4925594627857208,
0.21514567732810974,
0.2648927569389343,
-0.11775434762239456,
-0.16296634078025818,
-0.3294479548931122,
-0.04924093186855316,
0.5928117036819458,
-0.3631768524646759,
0.044348422437906265,
0.10195443034172058,
-0.20818351209163666,
-0.3828817307949066,
0.05112934857606888,
0.0076628983952105045,
0.3649112284183502,
0.05435477942228317,
0.350807785987854,
-0.08211493492126465,
-0.07301528751850128,
-0.0869159922003746,
0.22237487137317657,
-0.12459445744752884,
0.0196017287671566,
-0.27436164021492004,
-0.20494340360164642,
-0.14330865442752838,
0.031419966369867325,
-0.15288972854614258,
0.1650671809911728,
-0.18000754714012146,
-0.06853751838207245,
-0.11314275860786438,
-0.05639300495386124,
0.1153809204697609,
0.13470357656478882,
0.2945026457309723,
-0.1000061109662056,
0.11873917281627655,
0.14418108761310577,
0.24052903056144714,
0.04236965253949165,
0.458391398191452,
-0.275598406791687,
-0.2780960500240326,
-0.06707128882408142,
0.12080436944961548,
-0.11464028060436249,
0.34373775124549866,
-0.2040167897939682,
-0.01734001748263836,
-0.04445713013410568,
-0.10204316675662994,
-0.021239958703517914,
-0.14110329747200012,
-0.0019395172130316496,
0.37030255794525146,
-0.20492501556873322,
-0.2889375388622284,
0.23296378552913666,
0.23905131220817566,
-0.2043495774269104,
0.43677598237991333,
0.34225553274154663,
-0.2809351682662964,
0.1687893569469452,
-0.19995933771133423,
0.7136853337287903,
0.15216834843158722,
-0.02985362708568573,
0.08779904991388321,
-0.16951708495616913,
0.4524548053741455,
0.3125458359718323,
0.15597787499427795,
-0.06676755100488663,
-0.2370487004518509,
-0.06550589203834534,
-0.034747231751680374,
0.15802249312400818,
-0.1110614687204361,
-0.20363375544548035,
0.5631486773490906,
-0.05921908840537071,
-0.0353873111307621,
0.1755870133638382,
-0.11732888966798782,
-0.20230771601200104,
0.019088532775640488,
-0.43726256489753723,
0.09912517666816711,
-0.021323051303625107,
0.2521653473377228,
0.00105827406514436,
-0.07672244310379028,
0.05522051826119423,
-0.3087654709815979,
-0.26378104090690613,
-0.05239211767911911,
-0.3992072641849518,
-0.06592751294374466,
0.20812371373176575,
-0.43328019976615906,
0.008973554708063602,
0.05262690410017967,
0.2566778063774109,
-0.008180560544133186,
-0.03730090335011482,
-0.007537091616541147,
0.0702686533331871,
0.4977721571922302,
0.23459354043006897,
0.02503308281302452,
0.2863306999206543,
0.08909439295530319,
0.1867843121290207,
0.019598564133048058,
-0.14201122522354126,
-0.36083945631980896,
-0.018653515726327896,
0.003810678608715534,
0.11803244799375534,
-0.1588665246963501,
0.028823159635066986,
-0.24285510182380676,
0.02130691148340702,
-0.36486151814460754,
0.06509371101856232,
-0.0898338109254837,
-0.009838883765041828,
0.09432172030210495,
-0.01656262017786503,
-0.22681842744350433,
-0.005352922715246677,
0.6357888579368591,
-0.14381521940231323,
-0.43675288558006287,
0.1277204155921936,
-0.0055662947706878185,
-0.223584845662117,
0.03535855561494827,
-0.20444171130657196,
0.027419427409768105,
-0.27508416771888733,
0.29787835478782654,
-0.2511250376701355,
-0.10712821781635284,
0.26912975311279297,
0.3227919042110443,
0.18860812485218048,
0.21461212635040283,
-0.15166740119457245,
-0.3945678174495697,
-0.1370822936296463,
0.28545767068862915,
0.04427437111735344,
0.05498071759939194,
-0.031148862093687057,
-0.32367098331451416,
-0.1444218009710312,
-0.20666448771953583,
-0.2257888913154602,
0.008752433583140373,
0.3313148319721222,
0.07120884954929352,
0.19048690795898438,
0.22056342661380768,
0.15489640831947327,
-0.19956476986408234,
-0.01341148093342781,
0.07258661836385727,
-0.20382019877433777,
-0.10209305584430695,
-0.09334566444158554,
0.09354180842638016,
-0.09116005152463913,
-0.2648986279964447,
-0.15461963415145874,
-0.005754496902227402,
0.06140346825122833,
-0.1646931916475296,
0.4182678461074829,
0.321415513753891,
-0.11824972927570343,
-0.05369073897600174,
-0.03277819603681564,
0.04722528159618378,
0.30353954434394836,
0.1383121907711029,
0.018565597012639046,
0.032671548426151276,
0.042704395949840546,
0.19944851100444794,
-0.18758179247379303,
0.014096664264798164,
0.08201643079519272,
0.04239612817764282,
-0.2510474622249603,
0.027090128511190414,
0.35693466663360596,
-0.29529640078544617,
-0.02163974940776825,
0.5987743139266968,
0.35626810789108276,
0.24376004934310913,
-0.13980649411678314,
0.11383040249347687,
-0.0777391642332077,
0.15335747599601746,
-0.2739047706127167,
-0.33267828822135925,
0.20577853918075562,
0.2732260525226593,
0.06095751002430916,
0.18608255684375763,
-0.002106961328536272,
0.029159607365727425,
0.6171160340309143,
0.21764810383319855,
0.447817325592041,
-0.12531577050685883,
0.3508080244064331,
0.5271655321121216,
0.23262876272201538,
0.18437616527080536,
0.24172042310237885,
0.07372542470693588,
0.016092563048005104,
0.5080398321151733,
-0.06600899249315262,
0.2586885094642639,
0.21974729001522064,
0.12877021729946136,
-0.03551848232746124,
-0.4662743806838989,
-0.16567477583885193,
0.028322024270892143,
-0.0797492265701294,
0.2506760358810425,
0.16615794599056244,
0.08566008508205414,
-0.22328467667102814,
-0.3345981240272522,
0.011488383635878563,
0.02489769086241722,
-0.19362615048885345,
-0.21610940992832184,
0.14463947713375092,
-0.3639174699783325,
-0.057149339467287064,
0.013486375100910664,
-0.12084443867206573,
0.07039998471736908,
0.452930748462677,
-0.24694903194904327,
-0.12836262583732605,
-0.4731903672218323,
-0.37937724590301514,
0.05004492402076721,
0.17476390302181244,
-0.014010862447321415,
0.4047631621360779,
0.25878044962882996,
-0.22985489666461945,
0.22198854386806488,
0.25034406781196594,
0.4856499433517456,
0.24682405591011047,
0.027692453935742378,
0.013346879743039608,
-0.142049640417099,
-0.054006509482860565,
-0.09072314202785492,
0.3356419801712036,
-0.08708316832780838,
0.030569083988666534,
0.18793484568595886,
0.11341017484664917,
0.0007338247960433364,
0.20539002120494843,
-0.04085436835885048,
0.3989400565624237,
-0.4661813974380493,
0.08953430503606796,
-0.2369530349969864,
0.28487926721572876,
0.01501449104398489,
0.10001426190137863,
-0.24902570247650146,
-0.11811506003141403,
0.1712147742509842,
0.23181100189685822,
0.20390278100967407,
-0.10648514330387115,
0.07481081038713455,
0.13485461473464966,
0.0739087238907814,
0.4687882363796234,
-0.0930127203464508,
-0.08924636244773865,
-0.14648880064487457,
-0.6535098552703857,
-0.055862560868263245,
0.14230044186115265,
0.1280672550201416,
-0.06351533532142639,
0.03753044828772545,
0.04901523143053055,
0.18468572199344635,
0.043473366647958755,
-0.18360218405723572,
0.1054588183760643,
-0.25151434540748596,
-0.20000091195106506,
-0.17594677209854126,
0.23011986911296844,
-0.24214856326580048,
0.05484876036643982,
-0.26591020822525024,
0.06277240067720413,
-0.04169224202632904,
0.026953471824526787,
-0.005927686113864183,
-0.06288422644138336,
0.0675145760178566,
0.3473338484764099,
-0.13707339763641357,
0.349389910697937,
0.266317218542099,
0.03349320590496063,
-0.003447603201493621,
-0.27829787135124207,
-0.19313541054725647,
-0.2683144211769104,
0.07008461654186249,
-0.29212450981140137,
0.4918605387210846,
-0.4018597900867462,
-0.3019634485244751,
-0.1804215908050537,
0.27247387170791626,
0.12337827682495117,
-0.12682874500751495,
-0.4767790138721466,
0.1658579558134079,
-0.05875730141997337,
0.08381250500679016,
0.0044377874583005905,
0.5087332129478455,
0.05998700112104416,
0.3379509150981903,
-0.22663070261478424,
-0.3412223160266876,
0.53581702709198,
-0.4137624502182007,
-0.26176509261131287,
-0.13192717730998993,
-0.06397376209497452,
0.607315182685852,
-0.48364508152008057,
-0.3043728768825531,
-0.2037673145532608,
0.271991491317749,
-0.1200055256485939,
-0.1490250527858734,
0.1555723398923874,
-0.26529809832572937,
0.17455577850341797,
-0.18920199573040009,
-0.08706067502498627,
0.4393821656703949,
-0.08826802670955658,
0.27735382318496704,
-0.12994158267974854
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 109 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | [
-0.22893071174621582,
0.38345417380332947,
0.04034576937556267,
0.25503984093666077,
-0.012111208401620388,
0.2622571289539337,
0.5036684274673462,
0.13295303285121918,
0.34428197145462036,
0.1357172727584839,
-0.10897453129291534,
0.07728376984596252,
0.07315050810575485,
-0.0056993099860847,
-0.12562286853790283,
0.0789283961057663,
0.03644532710313797,
-0.00538852671161294,
0.21494989097118378,
0.10395482927560806,
-0.42388343811035156,
0.10729541629552841,
-0.1728552281856537,
0.1861153393983841,
0.026095272973179817,
-0.13634201884269714,
0.12126047164201736,
0.36073023080825806,
-0.03078894503414631,
-0.39220666885375977,
0.3530231714248657,
0.06345352530479431,
0.4639183282852173,
0.2582460641860962,
-0.00011924601858481765,
-0.013706821016967297,
0.23068411648273468,
0.12449928373098373,
-0.07372736185789108,
0.08710000663995743,
-0.18398518860340118,
-0.14096763730049133,
0.16523005068302155,
-0.09768626093864441,
0.17674390971660614,
0.3634915351867676,
-0.10213719308376312,
-0.20092986524105072,
-0.013041604310274124,
0.3790339529514313,
0.15730014443397522,
-0.03818519786000252,
-0.1186790019273758,
-0.07520411908626556,
0.4933358132839203,
-0.15929806232452393,
-0.1331799328327179,
0.27983829379081726,
0.079025037586689,
-0.11457046866416931,
-0.09899155795574188,
0.19957301020622253,
-0.16214941442012787,
0.14715783298015594,
0.018658237531781197,
0.031129587441682816,
0.21623118221759796,
-0.4581093490123749,
0.3521411120891571,
0.15125790238380432,
0.9656504988670349,
-0.19557349383831024,
-0.19140425324440002,
-0.08874901384115219,
0.013303599320352077,
-0.03300262987613678,
0.43260353803634644,
0.4286230206489563,
-0.3245687484741211,
0.2523709833621979,
0.06596919894218445,
0.08356534689664841,
-0.08255057036876678,
-0.0019088556291535497,
0.07128514349460602,
0.14865177869796753,
-0.05047028511762619,
0.11955656856298447,
-0.11473099887371063,
-0.08340056240558624,
0.38633522391319275,
-0.2138272076845169,
-0.2546020448207855,
0.19166679680347443,
-0.33943691849708557,
0.28987035155296326,
0.05345321074128151,
0.7778058648109436,
0.1578780710697174,
0.315530002117157,
0.12502416968345642,
-0.05405185744166374,
0.21362419426441193,
0.06518997251987457,
0.008593139238655567,
0.3214893937110901,
-0.11223886907100677,
-0.01692315563559532,
0.4271060824394226,
0.11744195967912674,
-0.08161666989326477,
-0.00899034459143877,
-0.020045751705765724,
-0.42947375774383545,
0.3538792133331299,
0.10540711134672165,
0.40811875462532043,
-0.2856420576572418,
-0.12170076370239258,
-0.00029498085496015847,
0.15813182294368744,
-0.02397100068628788,
0.05888279527425766,
0.5011532306671143,
-0.27177122235298157,
0.04268356040120125,
0.06825164705514908,
0.17944522202014923,
0.018610548228025436,
0.09776043146848679,
-0.08779969811439514,
-0.08900279551744461,
-0.26671814918518066,
-0.05143817514181137,
0.40864694118499756,
-0.3225748538970947,
0.09556466341018677,
0.25667718052864075,
0.027048228308558464,
-0.17929419875144958,
0.19183211028575897,
-0.04149749502539635,
-0.03285691514611244,
0.357686847448349,
0.39729568362236023,
0.33763399720191956,
0.17493268847465515,
-0.21229636669158936,
-0.03499547392129898,
0.18631133437156677,
-0.48729023337364197,
-0.402504026889801,
-0.03366352990269661,
0.1213274672627449,
-0.0833243578672409,
0.06320510804653168,
-0.19803698360919952,
-0.048257313668727875,
0.3823130130767822,
-0.3008549213409424,
-0.06183571740984917,
-0.013725735247135162,
-0.22062009572982788,
-0.5042764544487,
0.04070750251412392,
0.4012893736362457,
-0.3596988618373871,
0.13036705553531647,
-0.09155408293008804,
-0.26408642530441284,
0.1504325270652771,
0.0056374757550656796,
0.005634412635117769,
0.36168181896209717,
-0.281220018863678,
0.015607284381985664,
0.2774582505226135,
-0.39389458298683167,
-1.0015971660614014,
-0.021002883091568947,
0.07309971004724503,
0.16604261100292206,
0.24440614879131317,
0.11913692951202393,
0.36593806743621826,
-0.03034602291882038,
0.17047683894634247,
0.31871286034584045,
0.13007496297359467,
0.11197409778833389,
-0.06299635767936707,
-0.20385506749153137,
0.2796611785888672,
0.1339266002178192,
0.08833891898393631,
0.3009036183357239,
0.3125998079776764,
-0.05693408101797104,
0.25109538435935974,
-0.18726147711277008,
0.11680440604686737,
0.19251590967178345,
0.011495418846607208,
-0.03513600304722786,
0.13751450181007385,
-0.12773755192756653,
-0.42040935158729553,
0.3514481484889984,
-0.008116873912513256,
0.08516720682382584,
0.07597919553518295,
-0.2027428150177002,
-0.31846415996551514,
0.09134064614772797,
-0.5447551012039185,
-0.28899693489074707,
0.08510623127222061,
0.2938993275165558,
0.21242493391036987,
0.02368175983428955,
0.18916365504264832,
0.33741435408592224,
-0.20822709798812866,
0.12719608843326569,
-0.18114061653614044,
0.038606200367212296,
-0.18833735585212708,
-0.1364489048719406,
-0.212247833609581,
0.046915505081415176,
0.2001284509897232,
0.2527484893798828,
-0.21343302726745605,
0.19610178470611572,
0.15121343731880188,
0.03749867156147957,
-0.3785577416419983,
-0.05955607444047928,
-0.02237769588828087,
0.12173015624284744,
0.1568485051393509,
0.13817834854125977,
0.14832361042499542,
-0.04439444839954376,
-0.19221928715705872,
0.13775406777858734,
-0.15963444113731384,
0.1437312811613083,
-0.32665136456489563,
0.24303637444972992,
0.24470621347427368,
0.09005036950111389,
0.0856967568397522,
0.034452907741069794,
0.3054705262184143,
0.02411777898669243,
0.07459583878517151,
-0.28580430150032043,
0.10126132518053055,
-0.07780792564153671,
0.0593024305999279,
0.022547272965312004,
0.0812816470861435,
0.2497536689043045,
-0.17460127174854279,
0.016886264085769653,
0.2869936525821686,
0.34967926144599915,
0.537713885307312,
-0.04098670929670334,
0.05155003070831299,
0.06679680198431015,
0.04791204258799553,
0.08966902643442154,
0.11925143748521805,
0.08577132970094681,
-0.07022726535797119,
0.26344889402389526,
0.12843379378318787,
0.22416602075099945,
-0.06479745358228683,
-0.11386076360940933,
-0.1075415164232254,
0.41942983865737915,
-0.48751407861709595,
-0.08438762277364731,
0.10005546361207962,
0.07484029233455658,
0.18120118975639343,
-0.24284745752811432,
-0.08878229558467865,
-0.14609871804714203,
-0.24304574728012085,
0.31163668632507324,
0.09407051652669907,
0.08353719860315323,
-0.5119575262069702,
0.16444151103496552,
0.00753771560266614,
-0.20180627703666687,
-0.11375715583562851,
0.12387923151254654,
-0.16583380103111267,
-0.014107504859566689,
0.18624503910541534,
-0.1799398809671402,
0.1873876452445984,
-0.29515889286994934,
0.24375160038471222,
-0.390175998210907,
-0.19543245434761047,
0.015109993517398834,
0.05788565054535866,
0.40984150767326355,
0.12543119490146637,
0.15510693192481995,
0.18641065061092377,
-0.3417645990848541,
0.05660281330347061,
-0.10751939564943314,
-0.15106113255023956,
0.23337101936340332,
-0.055026426911354065,
0.09385569393634796,
0.034196607768535614,
-0.2493751347064972,
-0.5408245921134949,
-0.25017887353897095,
-0.009575989097356796,
0.38588982820510864,
0.0983009934425354,
-0.0028514296282082796,
-0.1126534640789032,
0.0033437306992709637,
0.2670297622680664,
0.39376792311668396,
-0.21082803606987,
-0.24920208752155304,
0.21024949848651886,
-0.20926794409751892,
-0.33469927310943604,
0.08194943517446518,
-0.10423080623149872,
0.04457079619169235,
0.25238361954689026,
-0.4788488447666168,
-0.09063442051410675,
-0.3600657880306244,
0.40960779786109924,
-0.23261570930480957,
0.0938282385468483,
0.3463048040866852,
0.08929312974214554,
0.14639881253242493,
-0.04174871742725372,
-0.2757164239883423,
-0.06513574719429016,
-0.2946411967277527,
-0.06823215633630753,
0.3381982743740082,
0.42744946479797363,
-0.0575701966881752,
0.3770320415496826,
0.3002278804779053,
0.3604494333267212,
0.33447137475013733,
0.04584134742617607,
0.3711138665676117,
0.05426103249192238,
-0.25947368144989014,
0.10877546668052673,
-0.19434639811515808,
-0.14016082882881165,
0.3007431924343109,
0.08898238837718964,
-0.19526419043540955,
-0.05253170058131218,
-0.3804522752761841,
-0.28078943490982056,
-0.2852860689163208,
-0.09924264252185822,
-0.24633212387561798,
0.25375625491142273,
0.11914075165987015,
0.11004309356212616,
-0.44624432921409607,
-0.3691142499446869,
0.028844371438026428,
0.5546329021453857,
-0.3098390996456146,
0.11157537251710892,
-0.3508033752441406,
0.13669882714748383,
-0.6549721956253052,
0.25224554538726807,
0.03402520716190338,
0.49580591917037964,
-0.17412416636943817,
0.1266971230506897,
-0.001508296118117869,
-0.10742900520563126,
0.5570680499076843,
-0.6522980332374573,
0.4618300795555115,
0.05812261998653412,
0.11573108285665512,
0.010197237133979797,
-0.22434519231319427,
-0.092256098985672,
0.24168004095554352,
0.13694162666797638,
0.21455484628677368,
0.16392184793949127,
0.04404178261756897,
0.07620903104543686,
0.16659311950206757,
-0.20013225078582764,
-0.2790578603744507,
-0.2271348237991333,
-0.3418879806995392,
-0.3903852105140686,
0.1280060112476349,
0.04219944775104523,
0.1854700744152069,
-0.15174368023872375,
0.11716164648532867,
-0.40468841791152954,
0.23697781562805176,
0.1301802098751068,
0.16028229892253876,
0.18779192864894867,
0.06457541882991791,
0.21815897524356842,
-0.04804522916674614,
0.07534824311733246,
-0.1291564404964447,
0.5240870118141174,
-0.2804771065711975,
-0.328378826379776,
-0.052490558475255966,
-0.19998587667942047,
-0.11711730062961578,
0.11224228888750076,
-0.32655733823776245,
-0.05009191855788231,
-0.13848181068897247,
-0.13273753225803375,
-0.31433072686195374,
0.11707457154989243,
0.042603518813848495,
-0.13543406128883362,
-0.3776836097240448,
-0.32019370794296265,
0.3641437888145447,
0.21170039474964142,
-0.44672754406929016,
0.3404744863510132,
0.11984780430793762,
-0.4280627369880676,
0.18246927857398987,
0.05175996199250221,
0.7466566562652588,
0.07988975942134857,
0.27802109718322754,
0.09727665036916733,
-0.11229541152715683,
0.20011721551418304,
0.11617837846279144,
0.05655701085925102,
-0.3728865385055542,
-0.4541018009185791,
-0.09887207299470901,
-0.22054283320903778,
-0.13453729450702667,
-0.024941012263298035,
-0.23379337787628174,
0.28174498677253723,
-0.11297839134931564,
0.3188052475452423,
0.27431026101112366,
0.04803721234202385,
-0.3741956651210785,
-0.3764997124671936,
-0.12099436670541763,
0.1251862645149231,
-0.19382382929325104,
0.1358688622713089,
-0.22749030590057373,
0.09111547470092773,
0.0849042534828186,
-0.16739493608474731,
-0.439121812582016,
0.1967896819114685,
-0.41144585609436035,
0.1381167471408844,
-0.2974178194999695,
-0.38368257880210876,
0.08779988437891006,
0.5960642099380493,
0.2849672734737396,
0.36045941710472107,
-0.15430274605751038,
0.06006646156311035,
0.0793893113732338,
0.11794499307870865,
0.024958236142992973,
0.007455222308635712,
0.19626374542713165,
-0.08069345355033875,
-0.2981882393360138,
-0.015169097110629082,
-0.2781275510787964,
-0.32153040170669556,
-0.10555335879325867,
0.2862679660320282,
0.40390580892562866,
-0.3201121985912323,
-0.2076888084411621,
-0.3106459975242615,
0.0849744901061058,
-0.2798958718776703,
0.09370280057191849,
0.04704267159104347,
-0.07560098171234131,
0.3795402944087982,
-0.33688846230506897,
-0.4257122576236725,
-0.14751797914505005,
0.5242763757705688,
-0.07907763868570328,
-0.1337568312883377,
0.5711382031440735,
-0.04850258678197861,
-0.1785394549369812,
-0.01303212158381939,
0.1454923301935196,
-0.10098370164632797,
-0.462458997964859,
-0.1003439649939537,
-0.12253681570291519,
0.1078280657529831,
-0.029106764122843742,
0.1698503941297531,
0.2787976562976837,
-0.09631042927503586,
0.05340376868844032,
-0.7581392526626587,
-0.2621003985404968,
-0.11298495531082153,
-0.23114360868930817,
0.17163528501987457,
0.18311098217964172,
-0.44054165482521057,
-0.13530507683753967,
-0.2840811014175415,
-0.20300285518169403,
0.04410116747021675,
-0.21473312377929688,
-0.12944115698337555,
0.2779017388820648,
0.15455743670463562,
-0.0013405324425548315,
0.12451344728469849,
-0.0026248025242239237,
0.09265869110822678,
0.12275480479001999,
-0.1713695228099823,
-0.1237097829580307,
0.14752425253391266,
0.10378194600343704,
-0.09179996699094772,
0.02675393782556057,
-0.3284252882003784,
-0.07359739392995834,
-0.09842593967914581,
0.3940446078777313,
0.2593080699443817,
-0.028158046305179596,
0.06791697442531586,
-0.12768319249153137,
0.2894713878631592,
-0.282705157995224,
0.41511934995651245,
-0.34728360176086426,
-0.025129759684205055,
-0.013372783549129963,
0.33476918935775757,
-0.14131681621074677,
0.05412660539150238,
-0.11745351552963257,
-0.08249408006668091,
0.15325380861759186,
0.067897267639637,
0.06460632383823395,
-0.376911997795105,
0.08502594381570816,
0.17875732481479645,
0.05933389440178871,
0.062364619225263596,
-0.23318301141262054,
0.014841051772236824,
0.24504970014095306,
0.15899209678173065,
-0.09227003902196884,
-0.12948736548423767,
-0.012007330544292927,
-0.32347744703292847,
-0.17904458940029144,
0.300415575504303,
0.16395732760429382,
-0.38362547755241394,
0.13599158823490143,
-0.032405078411102295,
0.5581639409065247,
-0.2246948480606079,
-0.05772072821855545,
0.48134925961494446,
-0.217400923371315,
0.27380892634391785,
0.21858574450016022,
0.2596437335014343,
-0.08438002318143845,
0.5514782667160034,
0.18204264342784882,
0.13673822581768036,
-0.005867613013833761,
-0.17204803228378296,
-0.10305269807577133,
-0.6628075242042542,
0.2800290286540985,
0.06525342166423798,
-0.07369038462638855,
0.05094338208436966,
-0.029616674408316612,
-0.008635994046926498,
-0.30411526560783386,
-0.0021537726279348135,
-0.43828174471855164,
-0.2168944627046585,
-0.18088336288928986,
-0.28365960717201233,
0.06843540817499161,
-0.23384349048137665,
0.1725391447544098,
0.09277639538049698,
-0.17077668011188507,
-0.1451970338821411,
-0.06997746974229813,
-0.042751602828502655,
-0.3035745620727539,
-0.26846855878829956,
0.1116325706243515,
0.413367360830307,
-0.26629287004470825,
-0.19269175827503204,
0.08904916048049927,
0.0064426325261592865,
0.23958103358745575,
0.08864258229732513,
0.09613598883152008,
0.7200034856796265,
0.36966121196746826,
-0.18670624494552612,
-0.08271225541830063,
0.20437964797019958,
0.08498020470142365,
-0.10133524984121323,
0.309562623500824,
0.199266254901886,
0.17723193764686584,
0.34535670280456543,
0.11968446522951126,
-0.12446644902229309,
0.03745849430561066,
0.0380600243806839,
-0.008947567082941532,
-0.08347941935062408,
0.18735980987548828,
-0.1764344573020935,
-0.16842319071292877,
0.1405666619539261,
0.19802317023277283,
-0.07277752459049225,
0.17002661526203156,
0.23236849904060364,
0.06273744255304337,
0.19450883567333221,
-0.19005323946475983,
0.020061666145920753,
0.1487801969051361,
0.3155462145805359,
0.350362628698349,
0.09806998074054718,
-0.23355355858802795,
-0.06835892796516418,
-0.5775802135467529,
0.25459498167037964,
-0.018225178122520447,
-0.3800153434276581,
-0.0322347916662693,
-0.13248799741268158,
-0.33680084347724915,
0.10613581538200378,
0.16192278265953064,
-0.1090966984629631,
0.055557966232299805,
0.26689621806144714,
-0.1567607969045639,
-0.2936112582683563,
0.3894384503364563,
-0.03776903823018074,
-0.07810088247060776,
-0.6786635518074036,
0.036601223051548004,
-0.08875979483127594,
0.0320076122879982,
-0.15069922804832458,
-0.16663858294487,
0.03414991870522499,
-0.026073869317770004,
0.5437771677970886,
0.2644130289554596,
0.4555602967739105,
0.007837960496544838,
0.0918126329779625,
-0.56220543384552,
-0.06879788637161255,
-0.145289808511734,
-0.033694542944431305,
-0.07782627642154694,
0.2713484466075897,
-0.22750431299209595,
0.04143651947379112,
-0.12419257313013077,
0.16709397733211517,
0.2662993371486664,
0.37954187393188477,
-0.005456461571156979,
0.22790507972240448,
0.18094301223754883,
0.15719006955623627,
0.3478442132472992,
0.06997168064117432,
-0.09617949277162552,
0.4460369944572449,
-0.24093376100063324,
-0.34204792976379395,
0.21094903349876404,
-0.3941512405872345,
-0.3340475559234619,
-0.019207797944545746,
0.3251573145389557,
-0.2549189627170563,
-0.15313370525836945,
-0.23796367645263672,
0.20610877871513367,
0.24783959984779358,
-0.14348021149635315,
-0.3868975341320038,
0.1413452923297882,
-0.157035231590271,
0.14029145240783691,
-0.022752247750759125,
0.034223780035972595,
0.010134917683899403,
-0.22539018094539642,
0.17086750268936157,
-0.23743696510791779
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 194 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | [
-0.22893071174621582,
0.38345417380332947,
0.04034576937556267,
0.25503984093666077,
-0.012111208401620388,
0.2622571289539337,
0.5036684274673462,
0.13295303285121918,
0.34428197145462036,
0.1357172727584839,
-0.10897453129291534,
0.07728376984596252,
0.07315050810575485,
-0.0056993099860847,
-0.12562286853790283,
0.0789283961057663,
0.03644532710313797,
-0.00538852671161294,
0.21494989097118378,
0.10395482927560806,
-0.42388343811035156,
0.10729541629552841,
-0.1728552281856537,
0.1861153393983841,
0.026095272973179817,
-0.13634201884269714,
0.12126047164201736,
0.36073023080825806,
-0.03078894503414631,
-0.39220666885375977,
0.3530231714248657,
0.06345352530479431,
0.4639183282852173,
0.2582460641860962,
-0.00011924601858481765,
-0.013706821016967297,
0.23068411648273468,
0.12449928373098373,
-0.07372736185789108,
0.08710000663995743,
-0.18398518860340118,
-0.14096763730049133,
0.16523005068302155,
-0.09768626093864441,
0.17674390971660614,
0.3634915351867676,
-0.10213719308376312,
-0.20092986524105072,
-0.013041604310274124,
0.3790339529514313,
0.15730014443397522,
-0.03818519786000252,
-0.1186790019273758,
-0.07520411908626556,
0.4933358132839203,
-0.15929806232452393,
-0.1331799328327179,
0.27983829379081726,
0.079025037586689,
-0.11457046866416931,
-0.09899155795574188,
0.19957301020622253,
-0.16214941442012787,
0.14715783298015594,
0.018658237531781197,
0.031129587441682816,
0.21623118221759796,
-0.4581093490123749,
0.3521411120891571,
0.15125790238380432,
0.9656504988670349,
-0.19557349383831024,
-0.19140425324440002,
-0.08874901384115219,
0.013303599320352077,
-0.03300262987613678,
0.43260353803634644,
0.4286230206489563,
-0.3245687484741211,
0.2523709833621979,
0.06596919894218445,
0.08356534689664841,
-0.08255057036876678,
-0.0019088556291535497,
0.07128514349460602,
0.14865177869796753,
-0.05047028511762619,
0.11955656856298447,
-0.11473099887371063,
-0.08340056240558624,
0.38633522391319275,
-0.2138272076845169,
-0.2546020448207855,
0.19166679680347443,
-0.33943691849708557,
0.28987035155296326,
0.05345321074128151,
0.7778058648109436,
0.1578780710697174,
0.315530002117157,
0.12502416968345642,
-0.05405185744166374,
0.21362419426441193,
0.06518997251987457,
0.008593139238655567,
0.3214893937110901,
-0.11223886907100677,
-0.01692315563559532,
0.4271060824394226,
0.11744195967912674,
-0.08161666989326477,
-0.00899034459143877,
-0.020045751705765724,
-0.42947375774383545,
0.3538792133331299,
0.10540711134672165,
0.40811875462532043,
-0.2856420576572418,
-0.12170076370239258,
-0.00029498085496015847,
0.15813182294368744,
-0.02397100068628788,
0.05888279527425766,
0.5011532306671143,
-0.27177122235298157,
0.04268356040120125,
0.06825164705514908,
0.17944522202014923,
0.018610548228025436,
0.09776043146848679,
-0.08779969811439514,
-0.08900279551744461,
-0.26671814918518066,
-0.05143817514181137,
0.40864694118499756,
-0.3225748538970947,
0.09556466341018677,
0.25667718052864075,
0.027048228308558464,
-0.17929419875144958,
0.19183211028575897,
-0.04149749502539635,
-0.03285691514611244,
0.357686847448349,
0.39729568362236023,
0.33763399720191956,
0.17493268847465515,
-0.21229636669158936,
-0.03499547392129898,
0.18631133437156677,
-0.48729023337364197,
-0.402504026889801,
-0.03366352990269661,
0.1213274672627449,
-0.0833243578672409,
0.06320510804653168,
-0.19803698360919952,
-0.048257313668727875,
0.3823130130767822,
-0.3008549213409424,
-0.06183571740984917,
-0.013725735247135162,
-0.22062009572982788,
-0.5042764544487,
0.04070750251412392,
0.4012893736362457,
-0.3596988618373871,
0.13036705553531647,
-0.09155408293008804,
-0.26408642530441284,
0.1504325270652771,
0.0056374757550656796,
0.005634412635117769,
0.36168181896209717,
-0.281220018863678,
0.015607284381985664,
0.2774582505226135,
-0.39389458298683167,
-1.0015971660614014,
-0.021002883091568947,
0.07309971004724503,
0.16604261100292206,
0.24440614879131317,
0.11913692951202393,
0.36593806743621826,
-0.03034602291882038,
0.17047683894634247,
0.31871286034584045,
0.13007496297359467,
0.11197409778833389,
-0.06299635767936707,
-0.20385506749153137,
0.2796611785888672,
0.1339266002178192,
0.08833891898393631,
0.3009036183357239,
0.3125998079776764,
-0.05693408101797104,
0.25109538435935974,
-0.18726147711277008,
0.11680440604686737,
0.19251590967178345,
0.011495418846607208,
-0.03513600304722786,
0.13751450181007385,
-0.12773755192756653,
-0.42040935158729553,
0.3514481484889984,
-0.008116873912513256,
0.08516720682382584,
0.07597919553518295,
-0.2027428150177002,
-0.31846415996551514,
0.09134064614772797,
-0.5447551012039185,
-0.28899693489074707,
0.08510623127222061,
0.2938993275165558,
0.21242493391036987,
0.02368175983428955,
0.18916365504264832,
0.33741435408592224,
-0.20822709798812866,
0.12719608843326569,
-0.18114061653614044,
0.038606200367212296,
-0.18833735585212708,
-0.1364489048719406,
-0.212247833609581,
0.046915505081415176,
0.2001284509897232,
0.2527484893798828,
-0.21343302726745605,
0.19610178470611572,
0.15121343731880188,
0.03749867156147957,
-0.3785577416419983,
-0.05955607444047928,
-0.02237769588828087,
0.12173015624284744,
0.1568485051393509,
0.13817834854125977,
0.14832361042499542,
-0.04439444839954376,
-0.19221928715705872,
0.13775406777858734,
-0.15963444113731384,
0.1437312811613083,
-0.32665136456489563,
0.24303637444972992,
0.24470621347427368,
0.09005036950111389,
0.0856967568397522,
0.034452907741069794,
0.3054705262184143,
0.02411777898669243,
0.07459583878517151,
-0.28580430150032043,
0.10126132518053055,
-0.07780792564153671,
0.0593024305999279,
0.022547272965312004,
0.0812816470861435,
0.2497536689043045,
-0.17460127174854279,
0.016886264085769653,
0.2869936525821686,
0.34967926144599915,
0.537713885307312,
-0.04098670929670334,
0.05155003070831299,
0.06679680198431015,
0.04791204258799553,
0.08966902643442154,
0.11925143748521805,
0.08577132970094681,
-0.07022726535797119,
0.26344889402389526,
0.12843379378318787,
0.22416602075099945,
-0.06479745358228683,
-0.11386076360940933,
-0.1075415164232254,
0.41942983865737915,
-0.48751407861709595,
-0.08438762277364731,
0.10005546361207962,
0.07484029233455658,
0.18120118975639343,
-0.24284745752811432,
-0.08878229558467865,
-0.14609871804714203,
-0.24304574728012085,
0.31163668632507324,
0.09407051652669907,
0.08353719860315323,
-0.5119575262069702,
0.16444151103496552,
0.00753771560266614,
-0.20180627703666687,
-0.11375715583562851,
0.12387923151254654,
-0.16583380103111267,
-0.014107504859566689,
0.18624503910541534,
-0.1799398809671402,
0.1873876452445984,
-0.29515889286994934,
0.24375160038471222,
-0.390175998210907,
-0.19543245434761047,
0.015109993517398834,
0.05788565054535866,
0.40984150767326355,
0.12543119490146637,
0.15510693192481995,
0.18641065061092377,
-0.3417645990848541,
0.05660281330347061,
-0.10751939564943314,
-0.15106113255023956,
0.23337101936340332,
-0.055026426911354065,
0.09385569393634796,
0.034196607768535614,
-0.2493751347064972,
-0.5408245921134949,
-0.25017887353897095,
-0.009575989097356796,
0.38588982820510864,
0.0983009934425354,
-0.0028514296282082796,
-0.1126534640789032,
0.0033437306992709637,
0.2670297622680664,
0.39376792311668396,
-0.21082803606987,
-0.24920208752155304,
0.21024949848651886,
-0.20926794409751892,
-0.33469927310943604,
0.08194943517446518,
-0.10423080623149872,
0.04457079619169235,
0.25238361954689026,
-0.4788488447666168,
-0.09063442051410675,
-0.3600657880306244,
0.40960779786109924,
-0.23261570930480957,
0.0938282385468483,
0.3463048040866852,
0.08929312974214554,
0.14639881253242493,
-0.04174871742725372,
-0.2757164239883423,
-0.06513574719429016,
-0.2946411967277527,
-0.06823215633630753,
0.3381982743740082,
0.42744946479797363,
-0.0575701966881752,
0.3770320415496826,
0.3002278804779053,
0.3604494333267212,
0.33447137475013733,
0.04584134742617607,
0.3711138665676117,
0.05426103249192238,
-0.25947368144989014,
0.10877546668052673,
-0.19434639811515808,
-0.14016082882881165,
0.3007431924343109,
0.08898238837718964,
-0.19526419043540955,
-0.05253170058131218,
-0.3804522752761841,
-0.28078943490982056,
-0.2852860689163208,
-0.09924264252185822,
-0.24633212387561798,
0.25375625491142273,
0.11914075165987015,
0.11004309356212616,
-0.44624432921409607,
-0.3691142499446869,
0.028844371438026428,
0.5546329021453857,
-0.3098390996456146,
0.11157537251710892,
-0.3508033752441406,
0.13669882714748383,
-0.6549721956253052,
0.25224554538726807,
0.03402520716190338,
0.49580591917037964,
-0.17412416636943817,
0.1266971230506897,
-0.001508296118117869,
-0.10742900520563126,
0.5570680499076843,
-0.6522980332374573,
0.4618300795555115,
0.05812261998653412,
0.11573108285665512,
0.010197237133979797,
-0.22434519231319427,
-0.092256098985672,
0.24168004095554352,
0.13694162666797638,
0.21455484628677368,
0.16392184793949127,
0.04404178261756897,
0.07620903104543686,
0.16659311950206757,
-0.20013225078582764,
-0.2790578603744507,
-0.2271348237991333,
-0.3418879806995392,
-0.3903852105140686,
0.1280060112476349,
0.04219944775104523,
0.1854700744152069,
-0.15174368023872375,
0.11716164648532867,
-0.40468841791152954,
0.23697781562805176,
0.1301802098751068,
0.16028229892253876,
0.18779192864894867,
0.06457541882991791,
0.21815897524356842,
-0.04804522916674614,
0.07534824311733246,
-0.1291564404964447,
0.5240870118141174,
-0.2804771065711975,
-0.328378826379776,
-0.052490558475255966,
-0.19998587667942047,
-0.11711730062961578,
0.11224228888750076,
-0.32655733823776245,
-0.05009191855788231,
-0.13848181068897247,
-0.13273753225803375,
-0.31433072686195374,
0.11707457154989243,
0.042603518813848495,
-0.13543406128883362,
-0.3776836097240448,
-0.32019370794296265,
0.3641437888145447,
0.21170039474964142,
-0.44672754406929016,
0.3404744863510132,
0.11984780430793762,
-0.4280627369880676,
0.18246927857398987,
0.05175996199250221,
0.7466566562652588,
0.07988975942134857,
0.27802109718322754,
0.09727665036916733,
-0.11229541152715683,
0.20011721551418304,
0.11617837846279144,
0.05655701085925102,
-0.3728865385055542,
-0.4541018009185791,
-0.09887207299470901,
-0.22054283320903778,
-0.13453729450702667,
-0.024941012263298035,
-0.23379337787628174,
0.28174498677253723,
-0.11297839134931564,
0.3188052475452423,
0.27431026101112366,
0.04803721234202385,
-0.3741956651210785,
-0.3764997124671936,
-0.12099436670541763,
0.1251862645149231,
-0.19382382929325104,
0.1358688622713089,
-0.22749030590057373,
0.09111547470092773,
0.0849042534828186,
-0.16739493608474731,
-0.439121812582016,
0.1967896819114685,
-0.41144585609436035,
0.1381167471408844,
-0.2974178194999695,
-0.38368257880210876,
0.08779988437891006,
0.5960642099380493,
0.2849672734737396,
0.36045941710472107,
-0.15430274605751038,
0.06006646156311035,
0.0793893113732338,
0.11794499307870865,
0.024958236142992973,
0.007455222308635712,
0.19626374542713165,
-0.08069345355033875,
-0.2981882393360138,
-0.015169097110629082,
-0.2781275510787964,
-0.32153040170669556,
-0.10555335879325867,
0.2862679660320282,
0.40390580892562866,
-0.3201121985912323,
-0.2076888084411621,
-0.3106459975242615,
0.0849744901061058,
-0.2798958718776703,
0.09370280057191849,
0.04704267159104347,
-0.07560098171234131,
0.3795402944087982,
-0.33688846230506897,
-0.4257122576236725,
-0.14751797914505005,
0.5242763757705688,
-0.07907763868570328,
-0.1337568312883377,
0.5711382031440735,
-0.04850258678197861,
-0.1785394549369812,
-0.01303212158381939,
0.1454923301935196,
-0.10098370164632797,
-0.462458997964859,
-0.1003439649939537,
-0.12253681570291519,
0.1078280657529831,
-0.029106764122843742,
0.1698503941297531,
0.2787976562976837,
-0.09631042927503586,
0.05340376868844032,
-0.7581392526626587,
-0.2621003985404968,
-0.11298495531082153,
-0.23114360868930817,
0.17163528501987457,
0.18311098217964172,
-0.44054165482521057,
-0.13530507683753967,
-0.2840811014175415,
-0.20300285518169403,
0.04410116747021675,
-0.21473312377929688,
-0.12944115698337555,
0.2779017388820648,
0.15455743670463562,
-0.0013405324425548315,
0.12451344728469849,
-0.0026248025242239237,
0.09265869110822678,
0.12275480479001999,
-0.1713695228099823,
-0.1237097829580307,
0.14752425253391266,
0.10378194600343704,
-0.09179996699094772,
0.02675393782556057,
-0.3284252882003784,
-0.07359739392995834,
-0.09842593967914581,
0.3940446078777313,
0.2593080699443817,
-0.028158046305179596,
0.06791697442531586,
-0.12768319249153137,
0.2894713878631592,
-0.282705157995224,
0.41511934995651245,
-0.34728360176086426,
-0.025129759684205055,
-0.013372783549129963,
0.33476918935775757,
-0.14131681621074677,
0.05412660539150238,
-0.11745351552963257,
-0.08249408006668091,
0.15325380861759186,
0.067897267639637,
0.06460632383823395,
-0.376911997795105,
0.08502594381570816,
0.17875732481479645,
0.05933389440178871,
0.062364619225263596,
-0.23318301141262054,
0.014841051772236824,
0.24504970014095306,
0.15899209678173065,
-0.09227003902196884,
-0.12948736548423767,
-0.012007330544292927,
-0.32347744703292847,
-0.17904458940029144,
0.300415575504303,
0.16395732760429382,
-0.38362547755241394,
0.13599158823490143,
-0.032405078411102295,
0.5581639409065247,
-0.2246948480606079,
-0.05772072821855545,
0.48134925961494446,
-0.217400923371315,
0.27380892634391785,
0.21858574450016022,
0.2596437335014343,
-0.08438002318143845,
0.5514782667160034,
0.18204264342784882,
0.13673822581768036,
-0.005867613013833761,
-0.17204803228378296,
-0.10305269807577133,
-0.6628075242042542,
0.2800290286540985,
0.06525342166423798,
-0.07369038462638855,
0.05094338208436966,
-0.029616674408316612,
-0.008635994046926498,
-0.30411526560783386,
-0.0021537726279348135,
-0.43828174471855164,
-0.2168944627046585,
-0.18088336288928986,
-0.28365960717201233,
0.06843540817499161,
-0.23384349048137665,
0.1725391447544098,
0.09277639538049698,
-0.17077668011188507,
-0.1451970338821411,
-0.06997746974229813,
-0.042751602828502655,
-0.3035745620727539,
-0.26846855878829956,
0.1116325706243515,
0.413367360830307,
-0.26629287004470825,
-0.19269175827503204,
0.08904916048049927,
0.0064426325261592865,
0.23958103358745575,
0.08864258229732513,
0.09613598883152008,
0.7200034856796265,
0.36966121196746826,
-0.18670624494552612,
-0.08271225541830063,
0.20437964797019958,
0.08498020470142365,
-0.10133524984121323,
0.309562623500824,
0.199266254901886,
0.17723193764686584,
0.34535670280456543,
0.11968446522951126,
-0.12446644902229309,
0.03745849430561066,
0.0380600243806839,
-0.008947567082941532,
-0.08347941935062408,
0.18735980987548828,
-0.1764344573020935,
-0.16842319071292877,
0.1405666619539261,
0.19802317023277283,
-0.07277752459049225,
0.17002661526203156,
0.23236849904060364,
0.06273744255304337,
0.19450883567333221,
-0.19005323946475983,
0.020061666145920753,
0.1487801969051361,
0.3155462145805359,
0.350362628698349,
0.09806998074054718,
-0.23355355858802795,
-0.06835892796516418,
-0.5775802135467529,
0.25459498167037964,
-0.018225178122520447,
-0.3800153434276581,
-0.0322347916662693,
-0.13248799741268158,
-0.33680084347724915,
0.10613581538200378,
0.16192278265953064,
-0.1090966984629631,
0.055557966232299805,
0.26689621806144714,
-0.1567607969045639,
-0.2936112582683563,
0.3894384503364563,
-0.03776903823018074,
-0.07810088247060776,
-0.6786635518074036,
0.036601223051548004,
-0.08875979483127594,
0.0320076122879982,
-0.15069922804832458,
-0.16663858294487,
0.03414991870522499,
-0.026073869317770004,
0.5437771677970886,
0.2644130289554596,
0.4555602967739105,
0.007837960496544838,
0.0918126329779625,
-0.56220543384552,
-0.06879788637161255,
-0.145289808511734,
-0.033694542944431305,
-0.07782627642154694,
0.2713484466075897,
-0.22750431299209595,
0.04143651947379112,
-0.12419257313013077,
0.16709397733211517,
0.2662993371486664,
0.37954187393188477,
-0.005456461571156979,
0.22790507972240448,
0.18094301223754883,
0.15719006955623627,
0.3478442132472992,
0.06997168064117432,
-0.09617949277162552,
0.4460369944572449,
-0.24093376100063324,
-0.34204792976379395,
0.21094903349876404,
-0.3941512405872345,
-0.3340475559234619,
-0.019207797944545746,
0.3251573145389557,
-0.2549189627170563,
-0.15313370525836945,
-0.23796367645263672,
0.20610877871513367,
0.24783959984779358,
-0.14348021149635315,
-0.3868975341320038,
0.1413452923297882,
-0.157035231590271,
0.14029145240783691,
-0.022752247750759125,
0.034223780035972595,
0.010134917683899403,
-0.22539018094539642,
0.17086750268936157,
-0.23743696510791779
] |
https://github.com/huggingface/datasets/issues/2934 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows | I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1 | 99 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1
I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | [
0.04569048434495926,
0.3345080316066742,
0.1148887500166893,
0.08045100420713425,
0.23043039441108704,
0.11888763308525085,
0.3988848924636841,
0.2548752427101135,
-0.10991697013378143,
0.26743850111961365,
-0.3353854715824127,
0.4040723741054535,
-0.16448107361793518,
-0.1074628010392189,
-0.03426652029156685,
-0.10664339363574982,
0.05111090466380119,
0.14516478776931763,
-0.16666415333747864,
-0.12261202931404114,
-0.21033644676208496,
0.03519076481461525,
-0.1274755448102951,
0.07211562991142273,
-0.13876298069953918,
-0.2811446785926819,
0.010589288547635078,
0.10064353793859482,
0.24410796165466309,
-0.01835482381284237,
0.06827913224697113,
0.021176371723413467,
-0.1777963489294052,
0.47976216673851013,
-0.00011666516365949064,
0.4142077565193176,
-0.006127769593149424,
0.13015367090702057,
-0.2355813980102539,
0.0565105564892292,
-0.06903134286403656,
0.1760493516921997,
0.12455863505601883,
-0.05997300520539284,
0.1349686086177826,
-0.21777643263339996,
-0.025572625920176506,
0.08327341079711914,
0.28249555826187134,
0.42905789613723755,
0.17387717962265015,
0.6678112149238586,
0.04904932901263237,
-0.0070739733055233955,
0.3827844262123108,
0.06389723718166351,
-0.2742590606212616,
0.11617009341716766,
-0.2370096892118454,
-0.19351470470428467,
0.06556079536676407,
0.5781880617141724,
0.017382387071847916,
-0.0747983455657959,
-0.13468694686889648,
0.07937777042388916,
-0.24748478829860687,
-0.2132091224193573,
0.09915532916784286,
0.3864622712135315,
0.29421451687812805,
-0.3177286982536316,
-0.07044293731451035,
-0.1286844164133072,
-0.06478448957204819,
-0.14543475210666656,
0.19134795665740967,
-0.046207502484321594,
0.01738673634827137,
0.1348499059677124,
0.058215174823999405,
-0.16226674616336823,
-0.2615070343017578,
-0.006172614637762308,
-0.28108882904052734,
-0.10721979290246964,
0.085743747651577,
0.08013836294412613,
0.414106547832489,
-0.027151400223374367,
-0.06863734126091003,
0.04162922501564026,
0.020163822919130325,
0.13079150021076202,
-0.20230139791965485,
-0.18202054500579834,
-0.03925829380750656,
-0.1770305186510086,
-0.028179088607430458,
-0.07086220383644104,
0.23925217986106873,
-0.15704436600208282,
-0.24434460699558258,
0.06774009019136429,
0.16441959142684937,
-0.07058870792388916,
-0.6655335426330566,
0.14519962668418884,
0.2680506408214569,
-0.19333416223526,
-0.1119193509221077,
-0.028670962899923325,
0.0027096739504486322,
-0.49814271926879883,
0.2861166000366211,
-0.2107921987771988,
0.4638057351112366,
0.01741340011358261,
-0.5834481120109558,
0.1703357845544815,
-0.1943606436252594,
0.4077933728694916,
-0.0392659455537796,
0.34212321043014526,
-0.009724539704620838,
0.27936890721321106,
0.32364657521247864,
-0.003611842868849635,
-0.4970703423023224,
-0.01620112732052803,
-0.05466784909367561,
-0.03966287150979042,
-0.2995606064796448,
-0.33192288875579834,
0.16759267449378967,
0.043953295797109604,
-0.04784947261214256,
0.1728074848651886,
0.06108273193240166,
0.10257706046104431,
0.25394564867019653,
-0.28081557154655457,
0.5246314406394958,
0.481272429227829,
-0.07509786635637283,
0.2450946420431137,
0.09495793282985687,
-0.25070181488990784,
-0.12922216951847076,
0.35341736674308777,
-0.27107059955596924,
-0.15856488049030304,
-0.2603648602962494,
0.12456437945365906,
-0.12023301422595978,
-0.1552470624446869,
-0.22380197048187256,
0.045004695653915405,
0.034312713891267776,
-0.05954704061150551,
0.0862918496131897,
-0.13709202408790588,
-0.5523480772972107,
-0.26465579867362976,
0.01090381108224392,
0.3650909662246704,
-0.19915243983268738,
0.1795513778924942,
-0.025439122691750526,
-0.3931913673877716,
-0.15941114723682404,
0.26560088992118835,
0.06460469216108322,
0.31538259983062744,
-0.4097915589809418,
-0.1304868459701538,
0.48381921648979187,
-0.23206783831119537,
-0.45128390192985535,
0.23500579595565796,
-0.20899435877799988,
0.21425247192382812,
-0.3518174886703491,
0.13031725585460663,
0.2125168740749359,
-0.20666593313217163,
0.012362646870315075,
-0.00704522430896759,
-0.062310319393873215,
-0.009127614088356495,
-0.32360920310020447,
-0.010815215297043324,
-0.06801844388246536,
-0.19527074694633484,
-0.015727834776043892,
-0.012415988370776176,
0.1318649798631668,
-0.04939528554677963,
0.3902631998062134,
0.21969184279441833,
0.19332605600357056,
0.14174799621105194,
0.37566062808036804,
-0.17291313409805298,
-0.079088494181633,
0.04328899830579758,
-0.37751805782318115,
0.13952431082725525,
0.4056796729564667,
0.07770315557718277,
-0.12490466237068176,
-0.14793632924556732,
-0.014969377778470516,
0.19853731989860535,
-0.19194979965686798,
0.020080264657735825,
0.07844400405883789,
-0.11942453682422638,
-0.3427840769290924,
0.20975713431835175,
-0.00877363234758377,
-0.17803478240966797,
-0.27689093351364136,
0.08200854808092117,
0.10280267149209976,
0.4687248170375824,
0.26876410841941833,
-0.005573277827352285,
-0.2448136806488037,
0.19433872401714325,
-0.14946486055850983,
-0.03006231039762497,
-0.27190205454826355,
0.4269397258758545,
0.17477203905582428,
0.31781336665153503,
-0.1541973203420639,
0.5814438462257385,
0.10668511688709259,
-0.5981356501579285,
-0.2948669195175171,
0.3456801176071167,
0.13194772601127625,
-0.028623593971133232,
-0.01795557700097561,
0.14569814503192902,
-0.20072244107723236,
0.17132478952407837,
0.0537690669298172,
0.23926383256912231,
0.04082760587334633,
0.021463949233293533,
-0.03639742359519005,
-0.3410162627696991,
-0.048381369560956955,
0.3614162802696228,
-0.314629465341568,
0.2986149191856384,
-0.6084031462669373,
0.1965303272008896,
0.38666483759880066,
0.03110717236995697,
-0.16892489790916443,
0.23582983016967773,
-0.16949447989463806,
0.06172941252589226,
0.07153802365064621,
0.3181355893611908,
0.47605445981025696,
0.022362027317285538,
0.1727905124425888,
0.13679887354373932,
-0.19373983144760132,
-0.09025213122367859,
0.23736383020877838,
0.08871373534202576,
0.3124324381351471,
0.20392084121704102,
0.25704532861709595,
0.19310365617275238,
-0.3024032413959503,
0.03301851823925972,
0.13020390272140503,
0.1728959083557129,
-0.45257842540740967,
0.1747218370437622,
-0.18073859810829163,
-0.03884657472372055,
-0.3074897527694702,
0.011746024712920189,
0.03772128373384476,
-0.1348000019788742,
0.3154600262641907,
0.3967652916908264,
-0.4561235308647156,
0.15392284095287323,
-0.3289415240287781,
0.12903308868408203,
0.02276894822716713,
-0.29593154788017273,
0.18030238151550293,
-0.1691792756319046,
-0.27148374915122986,
0.03444297984242439,
0.3643863797187805,
-0.24427759647369385,
0.41803374886512756,
-0.001358054461888969,
-0.07474963366985321,
-0.15285345911979675,
-0.26316308975219727,
0.08977964520454407,
-0.09495367109775543,
0.1932281255722046,
0.2937166094779968,
0.33681046962738037,
-0.12326685339212418,
-0.13017632067203522,
0.14623390138149261,
-0.4851279854774475,
-0.17861317098140717,
0.1372668743133545,
-0.12271759659051895,
0.20901113748550415,
0.02039768546819687,
-0.1520884782075882,
0.07417665421962738,
-0.3432302176952362,
0.06708268076181412,
-0.19137947261333466,
0.1277281492948532,
0.6203323602676392,
0.15204089879989624,
-0.08000195771455765,
0.3789712190628052,
0.10767969489097595,
-0.1736004650592804,
-0.11273442953824997,
0.200913667678833,
-0.2037229984998703,
-0.42963331937789917,
0.2909046709537506,
0.03388914465904236,
0.13257920742034912,
0.29555875062942505,
-0.6434152722358704,
-0.16894185543060303,
-0.04373549297451973,
0.1776636242866516,
-0.10888684540987015,
-0.047007154673337936,
0.1665741205215454,
0.11643665283918381,
-0.11971478164196014,
-0.3432472348213196,
0.08278655260801315,
0.3821260929107666,
-0.2270808219909668,
-0.04858025535941124,
0.042270269244909286,
0.08824513852596283,
0.31357109546661377,
0.6243582963943481,
0.050832685083150864,
-0.34294360876083374,
0.02080320380628109,
-0.2982519268989563,
0.5073607563972473,
-0.15909042954444885,
-0.27957484126091003,
0.015800418332219124,
0.04203146696090698,
-0.13273632526397705,
0.24627377092838287,
-0.07957740128040314,
-0.21037942171096802,
0.057862211018800735,
0.21673285961151123,
-0.03759167343378067,
-0.5290262699127197,
0.13690251111984253,
-0.3965076804161072,
0.19836527109146118,
0.15099868178367615,
-0.04255435988306999,
-0.1581774353981018,
-0.4451105296611786,
0.22895953059196472,
0.20402097702026367,
0.09302591532468796,
-0.13661637902259827,
-0.19878970086574554,
-0.28238797187805176,
-0.3425534665584564,
0.0680471807718277,
0.1306472271680832,
0.5035338997840881,
0.0921354591846466,
-0.2987196743488312,
0.1360505223274231,
0.2798965275287628,
0.776917576789856,
-0.030115967616438866,
-0.09927569329738617,
0.27733317017555237,
0.322409451007843,
-0.4041953682899475,
0.055564187467098236,
-0.10501625388860703,
-0.004628431051969528,
0.028162652626633644,
0.24169474840164185,
0.07723578810691833,
-0.3887939453125,
0.21295006573200226,
0.17669084668159485,
-0.24771800637245178,
0.21103964745998383,
-0.39185574650764465,
-0.3986022472381592,
0.10136804729700089,
0.08784645795822144,
0.26049405336380005,
0.049755942076444626,
-0.10872011631727219,
-0.11151238530874252,
-0.30123645067214966,
-0.24823330342769623,
0.08814454823732376,
-0.015627099201083183,
0.3283710777759552,
0.37087178230285645,
0.39753374457359314,
0.05334113538265228,
0.5702843070030212,
0.39387044310569763,
0.4075013995170593,
-0.5431134104728699,
0.021427936851978302,
0.07550590485334396,
0.19113357365131378,
0.1251915544271469,
0.4420386254787445,
-0.18668562173843384,
0.053141579031944275,
-0.4151878356933594,
0.0002784962998703122,
-0.39237216114997864,
0.5302585363388062,
0.13951116800308228,
-0.20313425362110138,
-0.0013098272029310465,
-0.09223038703203201,
0.13336874544620514,
-0.010361961089074612,
-0.1489022672176361,
0.6897459626197815,
0.2165824919939041,
-0.18774867057800293,
0.2651527523994446,
0.1582137644290924,
1.1080399751663208,
-0.09356776624917984,
0.23346911370754242,
0.5235840082168579,
-0.26436951756477356,
0.21265444159507751,
-0.055380769073963165,
0.13531328737735748,
-0.06322542577981949,
-0.5360182523727417,
0.020139263942837715,
-0.012507637031376362,
-0.36082446575164795,
-0.20056098699569702,
0.18932735919952393,
0.0023704746272414923,
0.15720659494400024,
0.4106846749782562,
0.2291460782289505,
0.07762347906827927,
0.29594388604164124,
-0.21861925721168518,
0.03965679556131363,
0.02247215434908867,
0.4466589093208313,
-0.12662087380886078,
-0.20260705053806305,
-0.12232213467359543,
0.16594688594341278,
0.027123406529426575,
-0.03446482494473457,
-0.009640739299356937,
-0.7225637435913086,
0.2756163775920868,
0.04224785044789314,
-0.09043887257575989,
-0.024059729650616646,
0.4012310802936554,
0.37122341990470886,
-0.09887703508138657,
-0.15234783291816711,
0.28834250569343567,
0.37736260890960693,
0.29301249980926514,
0.09380709379911423,
-0.016786152496933937,
0.47509512305259705,
0.03830258548259735,
-0.08036285638809204,
0.1676330715417862,
-0.054472025483846664,
-0.05252282693982124,
-0.03709424287080765,
-0.1225823312997818,
0.038293756544589996,
-0.12055607885122299,
0.0445849783718586,
-0.09958477318286896,
-0.24590548872947693,
-0.057957831770181656,
0.10357740521430969,
-0.1804874688386917,
-0.10702654719352722,
0.23447264730930328,
-0.19273395836353302,
-0.43166929483413696,
0.23925663530826569,
0.39225488901138306,
-0.12051286548376083,
0.17103473842144012,
0.3036814033985138,
-0.07610428333282471,
-0.07312819361686707,
-0.2562386095523834,
0.3445345163345337,
0.037830617278814316,
-0.5670920610427856,
0.26459792256355286,
-0.1810763031244278,
0.32022824883461,
-0.1079883873462677,
0.5147184133529663,
-0.19703024625778198,
0.020940938964486122,
0.02216004952788353,
-0.13972251117229462,
-0.3977711498737335,
0.2361743301153183,
0.0018204948864877224,
0.4124107360839844,
-0.2537193298339844,
0.4747990071773529,
-0.12875311076641083,
-0.25279298424720764,
-0.29979804158210754,
0.23436760902404785,
-0.02811320312321186,
0.07879024744033813,
-0.10588620603084564,
0.057650741189718246,
0.3181123733520508,
-0.27795153856277466,
0.05769595503807068,
0.10732115805149078,
-0.13811130821704865,
-0.13849091529846191,
-0.16371403634548187,
0.1632772535085678,
0.02801792323589325,
-0.3234006464481354,
-0.01298031397163868,
-0.17387203872203827,
0.07629123330116272,
-0.1113801896572113,
0.32819420099258423,
0.07005321979522705,
-0.3296967148780823,
0.027098044753074646,
-0.2136467844247818,
0.13094158470630646,
0.13924722373485565,
0.007743805646896362,
-0.030592234805226326,
0.37586838006973267,
0.08969549834728241,
0.09814856946468353,
-0.23660928010940552,
-0.232526034116745,
-0.0303855761885643,
0.28426650166511536,
-0.03563797101378441,
-0.36006441712379456,
0.03771291300654411,
-0.05584776774048805,
-0.2938878536224365,
-0.05990532785654068,
0.3766299784183502,
0.17997591197490692,
-0.4634619951248169,
-0.13622406125068665,
0.25929751992225647,
0.22421704232692719,
-0.2404211312532425,
0.16245079040527344,
-0.12176788598299026,
0.019864441826939583,
0.03851177543401718,
0.16629663109779358,
0.18402715027332306,
-0.14655451476573944,
-0.14287807047367096,
0.1772318035364151,
-0.2008035033941269,
-0.20362499356269836,
0.031016342341899872,
0.515629231929779,
-0.03253570571541786,
0.2373231202363968,
-0.14765405654907227,
0.10366429388523102,
0.12641723453998566,
0.24815741181373596,
-0.07817842811346054,
0.4826433062553406,
0.19811038672924042,
-0.06543869525194168,
-0.035468339920043945,
-0.3134521245956421,
-0.05552200973033905,
0.16418957710266113,
-0.1238173395395279,
0.24218691885471344,
-0.03614959120750427,
0.22170917689800262,
0.15493157505989075,
-0.424582839012146,
-0.011748919263482094,
0.2324926257133484,
-0.08597971498966217,
-0.3671880066394806,
-0.3900306224822998,
-0.2080548107624054,
-0.27233466506004333,
0.03112444095313549,
-0.005528131499886513,
-0.08657389134168625,
0.009403719566762447,
0.10601382702589035,
-0.06628192216157913,
-0.28257784247398376,
-0.11982133239507675,
0.3330775499343872,
0.27780646085739136,
-0.23256680369377136,
0.06561271846294403,
-0.024809572845697403,
-0.06567813456058502,
-0.002108633751049638,
0.20820127427577972,
0.08352874219417572,
0.02842129021883011,
-0.1759396493434906,
0.011499717831611633,
-0.03465401381254196,
0.09226401150226593,
-0.04009263589978218,
0.21443790197372437,
-0.04891715571284294,
-0.14051979780197144,
0.21579746901988983,
-0.04918328672647476,
-0.0700250118970871,
0.1828448325395584,
0.05197210982441902,
0.09766726940870285,
-0.41822531819343567,
0.1498890072107315,
-0.00337915844283998,
-0.10168051719665527,
-0.22876253724098206,
-0.00511797284707427,
0.05086702108383179,
-0.10867926478385925,
0.4808008372783661,
-0.4602067768573761,
0.3644776940345764,
-0.08739165961742401,
0.0682189017534256,
-0.009531480260193348,
0.2219793051481247,
0.12710894644260406,
0.32923975586891174,
-0.2891252934932709,
-0.3842819035053253,
-0.5309658646583557,
0.26259884238243103,
-0.04950693994760513,
-0.05064510554075241,
0.2118176817893982,
0.03177186846733093,
-0.08889877796173096,
-0.06646006554365158,
0.0274049062281847,
-0.186546191573143,
0.11332305520772934,
0.267254501581192,
-0.2658275365829468,
-0.03609595075249672,
-0.4830034077167511,
0.09843222796916962,
0.019903231412172318,
-0.5478618741035461,
-0.18008148670196533,
-0.17627081274986267,
0.03751016780734062,
-0.08184590935707092,
-0.021552100777626038,
-0.016611026600003242,
0.5460249781608582,
0.524731457233429,
0.12545719742774963,
0.07549626380205154,
0.1195668876171112,
-0.10256149619817734,
-0.2674234211444855,
-0.17949964106082916,
-0.3766336739063263,
-0.18374685943126678,
0.007053588982671499,
-0.023796657100319862,
-0.05294432118535042,
0.19713756442070007,
0.013704869896173477,
-0.29777124524116516,
0.18019501864910126,
0.3653973340988159,
-0.4400826394557953,
0.19560566544532776,
-0.20590314269065857,
0.37253284454345703,
0.26284560561180115,
0.4234928488731384,
-0.1296609789133072,
0.21667811274528503,
-0.3998852074146271,
-0.38206881284713745,
0.4928813874721527,
-0.5328620672225952,
-0.0930066704750061,
-0.02459760196506977,
0.38428565859794617,
-0.09380289167165756,
0.03628716990351677,
-0.5819957256317139,
-0.17655575275421143,
0.3898158073425293,
-0.08349303156137466,
-0.5030673146247864,
0.17061160504817963,
0.13014675676822662,
0.13843436539173126,
0.11816684156656265,
0.591318666934967,
0.14017577469348907,
-0.193363219499588,
0.036497969180345535,
-0.2862136662006378
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 39 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | [
0.04933885484933853,
0.0920017659664154,
-0.07149408012628555,
0.40184855461120605,
0.4151674211025238,
0.23589497804641724,
0.6366622447967529,
0.24350276589393616,
0.2364589124917984,
0.2313295155763626,
0.018569065257906914,
0.007743521127849817,
-0.1442687064409256,
-0.31003695726394653,
-0.20153596997261047,
-0.24431446194648743,
-0.1581089347600937,
-0.041621673852205276,
-0.17707863450050354,
0.21771864593029022,
-0.1549791693687439,
0.3787364661693573,
0.02463798224925995,
0.15708373486995697,
-0.5360063314437866,
0.09007879346609116,
-0.12959621846675873,
0.3886745274066925,
-0.021506553515791893,
-0.3729909658432007,
0.051118530333042145,
-0.046716805547475815,
0.0688147097826004,
0.8113579750061035,
-0.00012206860264996067,
-0.3334414064884186,
0.3542337119579315,
-0.05629918724298477,
-0.32718947529792786,
-0.2243083417415619,
-0.1685817390680313,
-0.5117117762565613,
-0.03458474203944206,
-0.4988020360469818,
0.18721318244934082,
-0.09511900693178177,
-0.03319060057401657,
-0.8021567463874817,
0.04105241969227791,
0.37330588698387146,
0.1268746554851532,
-0.0783475711941719,
0.0910244807600975,
-0.25791993737220764,
0.33231183886528015,
-0.27798929810523987,
0.00408482551574707,
0.35640254616737366,
0.35569775104522705,
-0.09886761754751205,
-0.15465138852596283,
0.20321816205978394,
-0.03689749166369438,
0.02732490934431553,
0.24715805053710938,
0.07953757792711258,
-0.08748319000005722,
-0.32616478204727173,
0.29580578207969666,
0.42739391326904297,
0.47143781185150146,
-0.09306186437606812,
-0.27931275963783264,
-0.46769726276397705,
0.14249840378761292,
-0.12510563433170319,
0.4885307252407074,
-0.07624012976884842,
-0.2220747172832489,
0.15148845314979553,
-0.17041966319084167,
-0.01962113566696644,
-0.12359674274921417,
-0.11023875325918198,
-0.10197608172893524,
0.06506171822547913,
0.04050881788134575,
0.036279015243053436,
0.3111134469509125,
-0.34831497073173523,
0.2395959198474884,
0.00483670923858881,
0.0742739588022232,
0.2694602906703949,
-0.6542136073112488,
0.14691244065761566,
0.08426859229803085,
0.38549289107322693,
0.25348949432373047,
0.057643648236989975,
-0.26597294211387634,
-0.1483081579208374,
0.1947479546070099,
-0.010466131381690502,
-0.06495512276887894,
0.3742069602012634,
0.19444406032562256,
0.16128137707710266,
0.30124273896217346,
0.07794684171676636,
-0.3367469012737274,
-0.10693513602018356,
-0.07648740708827972,
-0.5534630417823792,
0.4451378881931305,
0.13359108567237854,
0.0741625502705574,
-0.3437119126319885,
0.1504577398300171,
0.5705776214599609,
0.10570475459098816,
-0.010490184649825096,
0.2287026196718216,
0.2733796536922455,
0.005435064435005188,
0.1107669398188591,
0.0830744281411171,
-0.08993672579526901,
-0.08896131813526154,
0.10083485394716263,
-0.14731234312057495,
-0.11073076725006104,
-0.22702015936374664,
0.11240983754396439,
0.0892057791352272,
-0.3083958923816681,
0.2792794108390808,
-0.2274651974439621,
0.31524017453193665,
-0.12495744973421097,
-0.08296910673379898,
-0.23774248361587524,
-0.06673227250576019,
0.15596722066402435,
-0.05910719558596611,
0.07391400635242462,
0.24521401524543762,
-0.26073330640792847,
-0.1920618861913681,
-0.07711149752140045,
-0.3397485911846161,
-0.2851874828338623,
-0.06172122433781624,
0.09470286220312119,
-0.1654944270849228,
0.21590197086334229,
0.24155490100383759,
-0.2671950161457062,
0.6555529236793518,
-0.07981947809457779,
0.012797564268112183,
-0.2747657001018524,
-0.14180991053581238,
0.007192613091319799,
0.04082440212368965,
0.5534658432006836,
0.13252376019954681,
-0.017562497407197952,
-0.06878942996263504,
0.1282823532819748,
0.008665884844958782,
0.37225937843322754,
0.18064512312412262,
-0.05359673872590065,
-0.42195266485214233,
0.31249362230300903,
0.22687137126922607,
-0.24028094112873077,
-0.48698586225509644,
0.3215387463569641,
-0.39430761337280273,
0.09949369728565216,
0.32291173934936523,
0.022883307188749313,
0.051710668951272964,
-0.02458256296813488,
0.28533849120140076,
0.18221305310726166,
-0.026096107438206673,
0.023495467379689217,
-0.20252421498298645,
-0.10733050853013992,
-0.04063059389591217,
0.16919536888599396,
0.010954631492495537,
0.06700100004673004,
0.07961951196193695,
-0.17519184947013855,
0.27156856656074524,
0.031463563442230225,
-0.2040444165468216,
0.37367984652519226,
0.1382422149181366,
0.32671841979026794,
0.18608227372169495,
-0.10632754862308502,
-0.5937502980232239,
0.2637211084365845,
-0.1218472346663475,
-0.178731769323349,
-0.21759292483329773,
-0.18680500984191895,
-0.17498883605003357,
-0.007290015462785959,
0.003460116684436798,
0.13513776659965515,
-0.020408688113093376,
0.28324952721595764,
0.1417793333530426,
-0.13176387548446655,
0.09344019740819931,
0.588379979133606,
-0.17024371027946472,
0.0175975002348423,
-0.47811800241470337,
-0.17112649977207184,
-0.11785336583852768,
-0.11253996938467026,
0.031506992876529694,
0.0016397241270169616,
0.3693963587284088,
-0.10896769165992737,
-0.3443511426448822,
0.4480753242969513,
0.33327677845954895,
0.09753290563821793,
-0.17892485857009888,
-0.004430653061717749,
-0.05686429142951965,
0.22077591717243195,
0.07267019152641296,
0.03981243818998337,
0.0077856299467384815,
0.014291604980826378,
-0.21357637643814087,
0.30001622438430786,
-0.14081594347953796,
0.27127715945243835,
0.028613608330488205,
0.16824106872081757,
0.2461790144443512,
-0.1318138688802719,
0.06434518843889236,
-0.17612244188785553,
0.6458843350410461,
-0.21635276079177856,
0.30484044551849365,
0.0547802709043026,
0.04523155093193054,
-0.14486248791217804,
0.6458196640014648,
0.0453927181661129,
-0.00017786309763323516,
0.19774273037910461,
0.15620157122612,
-0.04081527143716812,
-0.01937291957437992,
0.3064888119697571,
0.511144757270813,
0.1920585185289383,
-0.03012281097471714,
-0.2065059393644333,
0.3941577076911926,
-0.22383460402488708,
0.2563185691833496,
0.015908274799585342,
-0.0027932715602219105,
0.36570313572883606,
0.049618348479270935,
-0.12908749282360077,
0.05148397013545036,
-0.8095090985298157,
-0.05044228956103325,
0.22369785606861115,
-0.31980881094932556,
0.1480822116136551,
-0.13932599127292633,
-0.04320473596453667,
-0.02379995584487915,
0.0004900808562524617,
-0.08039888739585876,
-0.41628220677375793,
-0.18889357149600983,
0.27850598096847534,
-0.14183680713176727,
0.21453383564949036,
-0.11883573979139328,
-0.0032404116354882717,
0.27128273248672485,
-0.014538764022290707,
-0.29502764344215393,
-0.001612711464986205,
0.080344058573246,
-0.08376028388738632,
0.27207306027412415,
-0.5375038385391235,
0.08380357176065445,
-0.1256636381149292,
-0.06310714036226273,
-0.5083521008491516,
-0.24988044798374176,
0.11166753619909286,
-0.16848088800907135,
0.29356399178504944,
0.341366171836853,
0.20785711705684662,
0.16666245460510254,
0.05889717862010002,
0.004961259663105011,
-0.2622789442539215,
0.023669768124818802,
0.23266388475894928,
0.17790067195892334,
-0.022818012163043022,
-0.19179943203926086,
-0.023455079644918442,
-0.34637320041656494,
-0.41603314876556396,
0.3207847476005554,
0.03030286356806755,
0.22792796790599823,
0.34118932485580444,
-0.07087301462888718,
0.2978125214576721,
-0.017972813919186592,
0.24729210138320923,
-0.08790699392557144,
-0.44637012481689453,
0.41706112027168274,
-0.15252165496349335,
-0.2990589737892151,
-0.4318082928657532,
0.2980133593082428,
-0.03550943732261658,
0.10551924258470535,
-0.42236390709877014,
-0.1790710687637329,
-0.4012609124183655,
0.33898529410362244,
-0.33571988344192505,
0.005409501492977142,
0.19702006876468658,
-0.08520112931728363,
-0.05634867772459984,
-0.10693826526403427,
0.08490237593650818,
0.23251228034496307,
0.011036040261387825,
-0.009521141648292542,
0.09298138320446014,
0.29516664147377014,
-0.11607786267995834,
0.4532133638858795,
0.36166563630104065,
0.0753479152917862,
0.19537948071956635,
-0.13766928017139435,
0.1843574047088623,
-0.25903254747390747,
-0.12694580852985382,
0.023937860503792763,
0.17447146773338318,
-0.22158464789390564,
0.13420549035072327,
-0.0853910818696022,
0.01408260315656662,
-0.1333198845386505,
-0.05779215320944786,
0.1078079342842102,
-0.296029657125473,
0.007317005190998316,
0.04858604446053505,
0.05248980596661568,
0.031080305576324463,
0.14569465816020966,
-0.19488713145256042,
-0.1309104710817337,
-0.024089301005005836,
0.30847835540771484,
0.05407886952161789,
-0.02335614711046219,
-0.24687309563159943,
0.09151040017604828,
-0.337141752243042,
0.44400984048843384,
0.1830921471118927,
0.21379823982715607,
-0.06935959309339523,
-0.16017507016658783,
-0.08004874736070633,
0.04600682109594345,
0.6831169128417969,
0.09912963956594467,
0.3160930573940277,
0.15549607574939728,
0.25470346212387085,
-0.12308714538812637,
0.03917254880070686,
0.07955324649810791,
0.37018805742263794,
0.13904094696044922,
0.40793362259864807,
-0.23080970346927643,
0.03760886937379837,
-0.18331679701805115,
0.18554240465164185,
-0.11663326621055603,
-0.4492170512676239,
-0.026285815984010696,
0.00879646185785532,
-0.26368576288223267,
0.16162005066871643,
0.03360515087842941,
0.24422886967658997,
0.06167181581258774,
0.00491343904286623,
-0.06017690896987915,
-0.0747789591550827,
0.16015537083148956,
0.1748357117176056,
0.28126320242881775,
-0.4468778073787689,
0.2643655836582184,
-0.02755928784608841,
-0.1595296710729599,
0.23041296005249023,
0.5639731884002686,
-0.4439825117588043,
-0.24784277379512787,
0.4144729971885681,
-0.35655930638313293,
0.07643894106149673,
0.4287096858024597,
-0.31076616048812866,
-0.15842433273792267,
0.3582063615322113,
0.632159411907196,
0.1236555427312851,
0.025781644508242607,
0.03256829455494881,
0.13087403774261475,
-0.15302148461341858,
-0.33461111783981323,
0.21633082628250122,
0.24309517443180084,
-0.017835326492786407,
0.5360286831855774,
0.024251330643892288,
-0.3025454878807068,
0.26139312982559204,
-0.2059546560049057,
1.0209486484527588,
-0.18544873595237732,
0.18715083599090576,
-0.019080350175499916,
0.12876741588115692,
0.4992987811565399,
0.009290564805269241,
-0.08422483503818512,
-0.4268134832382202,
-0.48278552293777466,
0.1402025669813156,
-0.14980414509773254,
0.23977208137512207,
-0.03667781874537468,
-0.1301994025707245,
0.31392836570739746,
-0.259510338306427,
0.017761841416358948,
-0.17453143000602722,
0.4527932107448578,
-0.6466594338417053,
-0.25421401858329773,
-0.2503231167793274,
0.047983568161726,
-0.04398120567202568,
0.11015051603317261,
0.06171208620071411,
0.16868622601032257,
-0.3292619585990906,
-0.2781672179698944,
-0.22720623016357422,
0.037031758576631546,
-0.4157634973526001,
0.08352941274642944,
-0.24390196800231934,
-0.28220781683921814,
-0.0902421623468399,
0.28521203994750977,
-0.03205064684152603,
0.40133658051490784,
-0.20359548926353455,
0.09235063940286636,
0.08282206207513809,
0.09687257558107376,
0.07300009578466415,
-0.06324420869350433,
0.31769534945487976,
0.016897693276405334,
0.07435350865125656,
-0.28570443391799927,
0.005397516768425703,
-0.1422329694032669,
0.03248238563537598,
-0.02342655323445797,
0.1504138857126236,
-0.23082958161830902,
-0.32375603914260864,
-0.3392716646194458,
-0.20386222004890442,
-0.15043556690216064,
0.052160367369651794,
0.3335696756839752,
-0.238723486661911,
-0.008876784704625607,
-0.28575631976127625,
-0.4090464115142822,
-0.00966474786400795,
0.3055093288421631,
-0.1481093168258667,
-0.047204673290252686,
0.43272703886032104,
0.3000043034553528,
-0.21020984649658203,
-0.17791710793972015,
-0.019017288461327553,
-0.17999638617038727,
-0.6621259450912476,
0.0823080986738205,
0.03603966161608696,
-0.04271099343895912,
-0.24160660803318024,
-0.26683032512664795,
0.20536039769649506,
0.12652955949306488,
0.11139838397502899,
-0.4697990417480469,
-0.4082912504673004,
-0.2329966127872467,
-0.29766830801963806,
0.2016148567199707,
-0.05662452057003975,
-0.3551494777202606,
-0.25884193181991577,
0.03277324140071869,
-0.21220991015434265,
0.059993937611579895,
-0.14237312972545624,
-0.06183665618300438,
0.4633508324623108,
-0.1418495923280716,
0.22446034848690033,
-0.1397039294242859,
0.0463552325963974,
0.4012089669704437,
0.06941330432891846,
-0.18165132403373718,
-0.3011116683483124,
0.1451774388551712,
0.0411619208753109,
0.05858471617102623,
-0.06729105114936829,
-0.37864950299263,
-0.052751727402210236,
-0.27983254194259644,
0.13260354101657867,
0.3364620506763458,
0.2424451857805252,
0.07561851292848587,
0.09433045238256454,
0.09865346550941467,
-0.03252902999520302,
0.3306850790977478,
-0.16495035588741302,
-0.1383989304304123,
0.009523864835500717,
0.27259308099746704,
-0.21072541177272797,
0.11752629280090332,
-0.3212476074695587,
0.1536608189344406,
-0.009539267048239708,
-0.03618196025490761,
0.07528070360422134,
-0.02653687633574009,
-0.10968086868524551,
0.5564427375793457,
0.23271852731704712,
0.29203906655311584,
-0.2722921371459961,
-0.2302524596452713,
0.2756316363811493,
0.13391277194023132,
0.016583358868956566,
-0.20511597394943237,
0.10736642777919769,
-0.1286119967699051,
-0.09958518296480179,
0.3734358549118042,
-0.070633664727211,
-0.13558825850486755,
-0.18993759155273438,
-0.1248224601149559,
0.5824733972549438,
0.0935559794306755,
-0.06966741383075714,
0.2455468773841858,
-0.013626149855554104,
0.0776757001876831,
0.46137022972106934,
0.2502686083316803,
0.01693442277610302,
0.5474852323532104,
-0.31308767199516296,
0.029888371005654335,
-0.1627935767173767,
-0.006218683905899525,
-0.2004130482673645,
-0.44737735390663147,
0.1316620111465454,
0.3107805848121643,
-0.07245654612779617,
0.18736636638641357,
-0.14681874215602875,
0.3045753538608551,
-0.25019708275794983,
0.18190111219882965,
0.05436690151691437,
0.04922061413526535,
-0.10957296192646027,
-0.01426981296390295,
0.3495130240917206,
-0.025010066106915474,
-0.2757629156112671,
-0.004661718383431435,
-0.11504676938056946,
0.1466556042432785,
0.37960246205329895,
0.27335089445114136,
0.13359373807907104,
-0.17536208033561707,
0.004142636898905039,
0.21335792541503906,
0.16631412506103516,
-0.482230007648468,
0.14352229237556458,
0.3909597098827362,
-0.08867809921503067,
0.2622959315776825,
-0.0017310214461758733,
0.5537607073783875,
0.1397949755191803,
0.0983077883720398,
-0.0007229222683236003,
-0.10646230727434158,
-0.011388140730559826,
-0.13544151186943054,
0.44462358951568604,
-0.030879775062203407,
-0.10251303762197495,
0.3387672007083893,
0.028034670278429985,
-0.15769349038600922,
0.11466223001480103,
0.19288413226604462,
0.12371594458818436,
-0.17515292763710022,
0.20125780999660492,
0.015889905393123627,
-0.20776605606079102,
-0.17863249778747559,
0.1449802964925766,
-0.37866199016571045,
-0.16338379681110382,
0.25169116258621216,
0.04038402810692787,
0.26245856285095215,
-0.13559408485889435,
0.048980023711919785,
-0.11941149830818176,
0.1483439952135086,
0.3839922249317169,
0.24334971606731415,
-0.285336434841156,
-0.040562111884355545,
-0.6024462580680847,
0.22462815046310425,
-0.04877333715558052,
-0.17107395827770233,
0.04516017064452171,
-0.11297576129436493,
-0.047111548483371735,
-0.15180504322052002,
0.3878985047340393,
-0.01592809148132801,
0.11153426021337509,
0.2670120298862457,
-0.4752601683139801,
-0.22400572896003723,
0.1703026294708252,
-0.06630153954029083,
0.22723498940467834,
-0.3988768458366394,
0.13031946122646332,
-0.2667440176010132,
-0.013735116459429264,
-0.14266689121723175,
-0.19620195031166077,
0.12866783142089844,
0.3134690821170807,
0.3546343445777893,
0.11241412162780762,
0.2980175018310547,
0.060897938907146454,
-0.24986349046230316,
-0.3230273425579071,
0.11824808269739151,
-0.13211673498153687,
0.0156516432762146,
0.21996545791625977,
0.2973279654979706,
-0.4038832187652588,
-0.4329208731651306,
-0.3770737648010254,
0.5200780630111694,
-0.13458767533302307,
0.07144688814878464,
-0.12440542876720428,
-0.04934106394648552,
-0.030626477673649788,
0.27398917078971863,
0.26331189274787903,
0.23375670611858368,
0.07063744217157364,
0.4157320559024811,
-0.1906890869140625,
-0.29982975125312805,
0.6595062017440796,
-0.10658889263868332,
-0.42763060331344604,
0.09819768369197845,
0.4086526334285736,
0.07209689915180206,
-0.1614483892917633,
-0.47127142548561096,
0.15473872423171997,
0.3244370222091675,
0.07843304425477982,
-0.2918296456336975,
0.23153634369373322,
-0.283038854598999,
0.12893269956111908,
-0.10400543361902237,
0.2516619563102722,
0.26928257942199707,
-0.20871412754058838,
-0.05915946513414383,
-0.19673319160938263
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 67 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | [
0.04933885484933853,
0.0920017659664154,
-0.07149408012628555,
0.40184855461120605,
0.4151674211025238,
0.23589497804641724,
0.6366622447967529,
0.24350276589393616,
0.2364589124917984,
0.2313295155763626,
0.018569065257906914,
0.007743521127849817,
-0.1442687064409256,
-0.31003695726394653,
-0.20153596997261047,
-0.24431446194648743,
-0.1581089347600937,
-0.041621673852205276,
-0.17707863450050354,
0.21771864593029022,
-0.1549791693687439,
0.3787364661693573,
0.02463798224925995,
0.15708373486995697,
-0.5360063314437866,
0.09007879346609116,
-0.12959621846675873,
0.3886745274066925,
-0.021506553515791893,
-0.3729909658432007,
0.051118530333042145,
-0.046716805547475815,
0.0688147097826004,
0.8113579750061035,
-0.00012206860264996067,
-0.3334414064884186,
0.3542337119579315,
-0.05629918724298477,
-0.32718947529792786,
-0.2243083417415619,
-0.1685817390680313,
-0.5117117762565613,
-0.03458474203944206,
-0.4988020360469818,
0.18721318244934082,
-0.09511900693178177,
-0.03319060057401657,
-0.8021567463874817,
0.04105241969227791,
0.37330588698387146,
0.1268746554851532,
-0.0783475711941719,
0.0910244807600975,
-0.25791993737220764,
0.33231183886528015,
-0.27798929810523987,
0.00408482551574707,
0.35640254616737366,
0.35569775104522705,
-0.09886761754751205,
-0.15465138852596283,
0.20321816205978394,
-0.03689749166369438,
0.02732490934431553,
0.24715805053710938,
0.07953757792711258,
-0.08748319000005722,
-0.32616478204727173,
0.29580578207969666,
0.42739391326904297,
0.47143781185150146,
-0.09306186437606812,
-0.27931275963783264,
-0.46769726276397705,
0.14249840378761292,
-0.12510563433170319,
0.4885307252407074,
-0.07624012976884842,
-0.2220747172832489,
0.15148845314979553,
-0.17041966319084167,
-0.01962113566696644,
-0.12359674274921417,
-0.11023875325918198,
-0.10197608172893524,
0.06506171822547913,
0.04050881788134575,
0.036279015243053436,
0.3111134469509125,
-0.34831497073173523,
0.2395959198474884,
0.00483670923858881,
0.0742739588022232,
0.2694602906703949,
-0.6542136073112488,
0.14691244065761566,
0.08426859229803085,
0.38549289107322693,
0.25348949432373047,
0.057643648236989975,
-0.26597294211387634,
-0.1483081579208374,
0.1947479546070099,
-0.010466131381690502,
-0.06495512276887894,
0.3742069602012634,
0.19444406032562256,
0.16128137707710266,
0.30124273896217346,
0.07794684171676636,
-0.3367469012737274,
-0.10693513602018356,
-0.07648740708827972,
-0.5534630417823792,
0.4451378881931305,
0.13359108567237854,
0.0741625502705574,
-0.3437119126319885,
0.1504577398300171,
0.5705776214599609,
0.10570475459098816,
-0.010490184649825096,
0.2287026196718216,
0.2733796536922455,
0.005435064435005188,
0.1107669398188591,
0.0830744281411171,
-0.08993672579526901,
-0.08896131813526154,
0.10083485394716263,
-0.14731234312057495,
-0.11073076725006104,
-0.22702015936374664,
0.11240983754396439,
0.0892057791352272,
-0.3083958923816681,
0.2792794108390808,
-0.2274651974439621,
0.31524017453193665,
-0.12495744973421097,
-0.08296910673379898,
-0.23774248361587524,
-0.06673227250576019,
0.15596722066402435,
-0.05910719558596611,
0.07391400635242462,
0.24521401524543762,
-0.26073330640792847,
-0.1920618861913681,
-0.07711149752140045,
-0.3397485911846161,
-0.2851874828338623,
-0.06172122433781624,
0.09470286220312119,
-0.1654944270849228,
0.21590197086334229,
0.24155490100383759,
-0.2671950161457062,
0.6555529236793518,
-0.07981947809457779,
0.012797564268112183,
-0.2747657001018524,
-0.14180991053581238,
0.007192613091319799,
0.04082440212368965,
0.5534658432006836,
0.13252376019954681,
-0.017562497407197952,
-0.06878942996263504,
0.1282823532819748,
0.008665884844958782,
0.37225937843322754,
0.18064512312412262,
-0.05359673872590065,
-0.42195266485214233,
0.31249362230300903,
0.22687137126922607,
-0.24028094112873077,
-0.48698586225509644,
0.3215387463569641,
-0.39430761337280273,
0.09949369728565216,
0.32291173934936523,
0.022883307188749313,
0.051710668951272964,
-0.02458256296813488,
0.28533849120140076,
0.18221305310726166,
-0.026096107438206673,
0.023495467379689217,
-0.20252421498298645,
-0.10733050853013992,
-0.04063059389591217,
0.16919536888599396,
0.010954631492495537,
0.06700100004673004,
0.07961951196193695,
-0.17519184947013855,
0.27156856656074524,
0.031463563442230225,
-0.2040444165468216,
0.37367984652519226,
0.1382422149181366,
0.32671841979026794,
0.18608227372169495,
-0.10632754862308502,
-0.5937502980232239,
0.2637211084365845,
-0.1218472346663475,
-0.178731769323349,
-0.21759292483329773,
-0.18680500984191895,
-0.17498883605003357,
-0.007290015462785959,
0.003460116684436798,
0.13513776659965515,
-0.020408688113093376,
0.28324952721595764,
0.1417793333530426,
-0.13176387548446655,
0.09344019740819931,
0.588379979133606,
-0.17024371027946472,
0.0175975002348423,
-0.47811800241470337,
-0.17112649977207184,
-0.11785336583852768,
-0.11253996938467026,
0.031506992876529694,
0.0016397241270169616,
0.3693963587284088,
-0.10896769165992737,
-0.3443511426448822,
0.4480753242969513,
0.33327677845954895,
0.09753290563821793,
-0.17892485857009888,
-0.004430653061717749,
-0.05686429142951965,
0.22077591717243195,
0.07267019152641296,
0.03981243818998337,
0.0077856299467384815,
0.014291604980826378,
-0.21357637643814087,
0.30001622438430786,
-0.14081594347953796,
0.27127715945243835,
0.028613608330488205,
0.16824106872081757,
0.2461790144443512,
-0.1318138688802719,
0.06434518843889236,
-0.17612244188785553,
0.6458843350410461,
-0.21635276079177856,
0.30484044551849365,
0.0547802709043026,
0.04523155093193054,
-0.14486248791217804,
0.6458196640014648,
0.0453927181661129,
-0.00017786309763323516,
0.19774273037910461,
0.15620157122612,
-0.04081527143716812,
-0.01937291957437992,
0.3064888119697571,
0.511144757270813,
0.1920585185289383,
-0.03012281097471714,
-0.2065059393644333,
0.3941577076911926,
-0.22383460402488708,
0.2563185691833496,
0.015908274799585342,
-0.0027932715602219105,
0.36570313572883606,
0.049618348479270935,
-0.12908749282360077,
0.05148397013545036,
-0.8095090985298157,
-0.05044228956103325,
0.22369785606861115,
-0.31980881094932556,
0.1480822116136551,
-0.13932599127292633,
-0.04320473596453667,
-0.02379995584487915,
0.0004900808562524617,
-0.08039888739585876,
-0.41628220677375793,
-0.18889357149600983,
0.27850598096847534,
-0.14183680713176727,
0.21453383564949036,
-0.11883573979139328,
-0.0032404116354882717,
0.27128273248672485,
-0.014538764022290707,
-0.29502764344215393,
-0.001612711464986205,
0.080344058573246,
-0.08376028388738632,
0.27207306027412415,
-0.5375038385391235,
0.08380357176065445,
-0.1256636381149292,
-0.06310714036226273,
-0.5083521008491516,
-0.24988044798374176,
0.11166753619909286,
-0.16848088800907135,
0.29356399178504944,
0.341366171836853,
0.20785711705684662,
0.16666245460510254,
0.05889717862010002,
0.004961259663105011,
-0.2622789442539215,
0.023669768124818802,
0.23266388475894928,
0.17790067195892334,
-0.022818012163043022,
-0.19179943203926086,
-0.023455079644918442,
-0.34637320041656494,
-0.41603314876556396,
0.3207847476005554,
0.03030286356806755,
0.22792796790599823,
0.34118932485580444,
-0.07087301462888718,
0.2978125214576721,
-0.017972813919186592,
0.24729210138320923,
-0.08790699392557144,
-0.44637012481689453,
0.41706112027168274,
-0.15252165496349335,
-0.2990589737892151,
-0.4318082928657532,
0.2980133593082428,
-0.03550943732261658,
0.10551924258470535,
-0.42236390709877014,
-0.1790710687637329,
-0.4012609124183655,
0.33898529410362244,
-0.33571988344192505,
0.005409501492977142,
0.19702006876468658,
-0.08520112931728363,
-0.05634867772459984,
-0.10693826526403427,
0.08490237593650818,
0.23251228034496307,
0.011036040261387825,
-0.009521141648292542,
0.09298138320446014,
0.29516664147377014,
-0.11607786267995834,
0.4532133638858795,
0.36166563630104065,
0.0753479152917862,
0.19537948071956635,
-0.13766928017139435,
0.1843574047088623,
-0.25903254747390747,
-0.12694580852985382,
0.023937860503792763,
0.17447146773338318,
-0.22158464789390564,
0.13420549035072327,
-0.0853910818696022,
0.01408260315656662,
-0.1333198845386505,
-0.05779215320944786,
0.1078079342842102,
-0.296029657125473,
0.007317005190998316,
0.04858604446053505,
0.05248980596661568,
0.031080305576324463,
0.14569465816020966,
-0.19488713145256042,
-0.1309104710817337,
-0.024089301005005836,
0.30847835540771484,
0.05407886952161789,
-0.02335614711046219,
-0.24687309563159943,
0.09151040017604828,
-0.337141752243042,
0.44400984048843384,
0.1830921471118927,
0.21379823982715607,
-0.06935959309339523,
-0.16017507016658783,
-0.08004874736070633,
0.04600682109594345,
0.6831169128417969,
0.09912963956594467,
0.3160930573940277,
0.15549607574939728,
0.25470346212387085,
-0.12308714538812637,
0.03917254880070686,
0.07955324649810791,
0.37018805742263794,
0.13904094696044922,
0.40793362259864807,
-0.23080970346927643,
0.03760886937379837,
-0.18331679701805115,
0.18554240465164185,
-0.11663326621055603,
-0.4492170512676239,
-0.026285815984010696,
0.00879646185785532,
-0.26368576288223267,
0.16162005066871643,
0.03360515087842941,
0.24422886967658997,
0.06167181581258774,
0.00491343904286623,
-0.06017690896987915,
-0.0747789591550827,
0.16015537083148956,
0.1748357117176056,
0.28126320242881775,
-0.4468778073787689,
0.2643655836582184,
-0.02755928784608841,
-0.1595296710729599,
0.23041296005249023,
0.5639731884002686,
-0.4439825117588043,
-0.24784277379512787,
0.4144729971885681,
-0.35655930638313293,
0.07643894106149673,
0.4287096858024597,
-0.31076616048812866,
-0.15842433273792267,
0.3582063615322113,
0.632159411907196,
0.1236555427312851,
0.025781644508242607,
0.03256829455494881,
0.13087403774261475,
-0.15302148461341858,
-0.33461111783981323,
0.21633082628250122,
0.24309517443180084,
-0.017835326492786407,
0.5360286831855774,
0.024251330643892288,
-0.3025454878807068,
0.26139312982559204,
-0.2059546560049057,
1.0209486484527588,
-0.18544873595237732,
0.18715083599090576,
-0.019080350175499916,
0.12876741588115692,
0.4992987811565399,
0.009290564805269241,
-0.08422483503818512,
-0.4268134832382202,
-0.48278552293777466,
0.1402025669813156,
-0.14980414509773254,
0.23977208137512207,
-0.03667781874537468,
-0.1301994025707245,
0.31392836570739746,
-0.259510338306427,
0.017761841416358948,
-0.17453143000602722,
0.4527932107448578,
-0.6466594338417053,
-0.25421401858329773,
-0.2503231167793274,
0.047983568161726,
-0.04398120567202568,
0.11015051603317261,
0.06171208620071411,
0.16868622601032257,
-0.3292619585990906,
-0.2781672179698944,
-0.22720623016357422,
0.037031758576631546,
-0.4157634973526001,
0.08352941274642944,
-0.24390196800231934,
-0.28220781683921814,
-0.0902421623468399,
0.28521203994750977,
-0.03205064684152603,
0.40133658051490784,
-0.20359548926353455,
0.09235063940286636,
0.08282206207513809,
0.09687257558107376,
0.07300009578466415,
-0.06324420869350433,
0.31769534945487976,
0.016897693276405334,
0.07435350865125656,
-0.28570443391799927,
0.005397516768425703,
-0.1422329694032669,
0.03248238563537598,
-0.02342655323445797,
0.1504138857126236,
-0.23082958161830902,
-0.32375603914260864,
-0.3392716646194458,
-0.20386222004890442,
-0.15043556690216064,
0.052160367369651794,
0.3335696756839752,
-0.238723486661911,
-0.008876784704625607,
-0.28575631976127625,
-0.4090464115142822,
-0.00966474786400795,
0.3055093288421631,
-0.1481093168258667,
-0.047204673290252686,
0.43272703886032104,
0.3000043034553528,
-0.21020984649658203,
-0.17791710793972015,
-0.019017288461327553,
-0.17999638617038727,
-0.6621259450912476,
0.0823080986738205,
0.03603966161608696,
-0.04271099343895912,
-0.24160660803318024,
-0.26683032512664795,
0.20536039769649506,
0.12652955949306488,
0.11139838397502899,
-0.4697990417480469,
-0.4082912504673004,
-0.2329966127872467,
-0.29766830801963806,
0.2016148567199707,
-0.05662452057003975,
-0.3551494777202606,
-0.25884193181991577,
0.03277324140071869,
-0.21220991015434265,
0.059993937611579895,
-0.14237312972545624,
-0.06183665618300438,
0.4633508324623108,
-0.1418495923280716,
0.22446034848690033,
-0.1397039294242859,
0.0463552325963974,
0.4012089669704437,
0.06941330432891846,
-0.18165132403373718,
-0.3011116683483124,
0.1451774388551712,
0.0411619208753109,
0.05858471617102623,
-0.06729105114936829,
-0.37864950299263,
-0.052751727402210236,
-0.27983254194259644,
0.13260354101657867,
0.3364620506763458,
0.2424451857805252,
0.07561851292848587,
0.09433045238256454,
0.09865346550941467,
-0.03252902999520302,
0.3306850790977478,
-0.16495035588741302,
-0.1383989304304123,
0.009523864835500717,
0.27259308099746704,
-0.21072541177272797,
0.11752629280090332,
-0.3212476074695587,
0.1536608189344406,
-0.009539267048239708,
-0.03618196025490761,
0.07528070360422134,
-0.02653687633574009,
-0.10968086868524551,
0.5564427375793457,
0.23271852731704712,
0.29203906655311584,
-0.2722921371459961,
-0.2302524596452713,
0.2756316363811493,
0.13391277194023132,
0.016583358868956566,
-0.20511597394943237,
0.10736642777919769,
-0.1286119967699051,
-0.09958518296480179,
0.3734358549118042,
-0.070633664727211,
-0.13558825850486755,
-0.18993759155273438,
-0.1248224601149559,
0.5824733972549438,
0.0935559794306755,
-0.06966741383075714,
0.2455468773841858,
-0.013626149855554104,
0.0776757001876831,
0.46137022972106934,
0.2502686083316803,
0.01693442277610302,
0.5474852323532104,
-0.31308767199516296,
0.029888371005654335,
-0.1627935767173767,
-0.006218683905899525,
-0.2004130482673645,
-0.44737735390663147,
0.1316620111465454,
0.3107805848121643,
-0.07245654612779617,
0.18736636638641357,
-0.14681874215602875,
0.3045753538608551,
-0.25019708275794983,
0.18190111219882965,
0.05436690151691437,
0.04922061413526535,
-0.10957296192646027,
-0.01426981296390295,
0.3495130240917206,
-0.025010066106915474,
-0.2757629156112671,
-0.004661718383431435,
-0.11504676938056946,
0.1466556042432785,
0.37960246205329895,
0.27335089445114136,
0.13359373807907104,
-0.17536208033561707,
0.004142636898905039,
0.21335792541503906,
0.16631412506103516,
-0.482230007648468,
0.14352229237556458,
0.3909597098827362,
-0.08867809921503067,
0.2622959315776825,
-0.0017310214461758733,
0.5537607073783875,
0.1397949755191803,
0.0983077883720398,
-0.0007229222683236003,
-0.10646230727434158,
-0.011388140730559826,
-0.13544151186943054,
0.44462358951568604,
-0.030879775062203407,
-0.10251303762197495,
0.3387672007083893,
0.028034670278429985,
-0.15769349038600922,
0.11466223001480103,
0.19288413226604462,
0.12371594458818436,
-0.17515292763710022,
0.20125780999660492,
0.015889905393123627,
-0.20776605606079102,
-0.17863249778747559,
0.1449802964925766,
-0.37866199016571045,
-0.16338379681110382,
0.25169116258621216,
0.04038402810692787,
0.26245856285095215,
-0.13559408485889435,
0.048980023711919785,
-0.11941149830818176,
0.1483439952135086,
0.3839922249317169,
0.24334971606731415,
-0.285336434841156,
-0.040562111884355545,
-0.6024462580680847,
0.22462815046310425,
-0.04877333715558052,
-0.17107395827770233,
0.04516017064452171,
-0.11297576129436493,
-0.047111548483371735,
-0.15180504322052002,
0.3878985047340393,
-0.01592809148132801,
0.11153426021337509,
0.2670120298862457,
-0.4752601683139801,
-0.22400572896003723,
0.1703026294708252,
-0.06630153954029083,
0.22723498940467834,
-0.3988768458366394,
0.13031946122646332,
-0.2667440176010132,
-0.013735116459429264,
-0.14266689121723175,
-0.19620195031166077,
0.12866783142089844,
0.3134690821170807,
0.3546343445777893,
0.11241412162780762,
0.2980175018310547,
0.060897938907146454,
-0.24986349046230316,
-0.3230273425579071,
0.11824808269739151,
-0.13211673498153687,
0.0156516432762146,
0.21996545791625977,
0.2973279654979706,
-0.4038832187652588,
-0.4329208731651306,
-0.3770737648010254,
0.5200780630111694,
-0.13458767533302307,
0.07144688814878464,
-0.12440542876720428,
-0.04934106394648552,
-0.030626477673649788,
0.27398917078971863,
0.26331189274787903,
0.23375670611858368,
0.07063744217157364,
0.4157320559024811,
-0.1906890869140625,
-0.29982975125312805,
0.6595062017440796,
-0.10658889263868332,
-0.42763060331344604,
0.09819768369197845,
0.4086526334285736,
0.07209689915180206,
-0.1614483892917633,
-0.47127142548561096,
0.15473872423171997,
0.3244370222091675,
0.07843304425477982,
-0.2918296456336975,
0.23153634369373322,
-0.283038854598999,
0.12893269956111908,
-0.10400543361902237,
0.2516619563102722,
0.26928257942199707,
-0.20871412754058838,
-0.05915946513414383,
-0.19673319160938263
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 26 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | [
-0.38646507263183594,
-0.2204955667257309,
0.089481420814991,
0.4387413263320923,
0.2157086580991745,
0.12292304635047913,
-0.03690986707806587,
0.30938801169395447,
0.24227753281593323,
0.09550254046916962,
-0.22643105685710907,
0.42615339159965515,
-0.06417602300643921,
0.3035329282283783,
-0.009465343318879604,
-0.2584783136844635,
-0.004505916498601437,
0.23376570641994476,
-0.10492555797100067,
0.1268760710954666,
-0.0005552724469453096,
0.19412606954574585,
-0.24699288606643677,
-0.030423130840063095,
0.052229102700948715,
-0.1081046611070633,
0.012406800873577595,
0.2805251479148865,
-0.059583183377981186,
-0.4462355673313141,
0.12590479850769043,
-0.061548274010419846,
0.4121142029762268,
0.33757442235946655,
-0.00011450322199380025,
0.27344825863838196,
0.4721422493457794,
-0.12278413027524948,
-0.48534414172172546,
-0.21211446821689606,
-0.21866583824157715,
0.09612717479467392,
0.0428345762193203,
-0.15663401782512665,
-0.009134124033153057,
0.07111316919326782,
-0.04000481590628624,
-0.7192990183830261,
0.3178502321243286,
0.34563618898391724,
0.17784996330738068,
0.04260045662522316,
-0.048948585987091064,
0.026822403073310852,
0.06883880496025085,
-0.29866454005241394,
-0.09200708568096161,
0.12181729078292847,
0.23672711849212646,
0.2287401556968689,
-0.3595733046531677,
0.3845905661582947,
-0.06588800251483917,
0.06018400564789772,
0.09441512078046799,
0.09672340750694275,
-0.17495006322860718,
-0.46550488471984863,
-0.007394508458673954,
0.18841414153575897,
0.6776785850524902,
-0.25551655888557434,
-0.4161979854106903,
-0.23198845982551575,
-0.002171104308217764,
-0.6144577264785767,
0.1465313583612442,
0.14892703294754028,
-0.4673648774623871,
0.12806008756160736,
0.24596314132213593,
-0.008752889931201935,
-0.3279942572116852,
-0.04587315022945404,
-0.24679897725582123,
0.38822224736213684,
-0.07678597420454025,
-0.023727212101221085,
0.02729426696896553,
-0.08662906289100647,
0.4627741575241089,
-0.21103493869304657,
-0.284593790769577,
-0.06397910416126251,
-0.43975546956062317,
-0.0420655757188797,
-0.07651199400424957,
-0.09410949051380157,
0.16814643144607544,
0.2153896987438202,
0.29532068967819214,
0.08825264126062393,
0.15436404943466187,
0.09264442324638367,
0.3555268943309784,
0.3608669340610504,
0.05983154848217964,
0.1853773593902588,
0.13118089735507965,
0.09943187981843948,
0.13662415742874146,
-0.18189190328121185,
-0.14648891985416412,
-0.037280987948179245,
0.02816305123269558,
-0.013114196248352528,
0.26285871863365173,
-0.1912374496459961,
-0.4138478636741638,
0.02979208156466484,
-0.30572134256362915,
-0.07946714758872986,
0.0055909049697220325,
0.28171706199645996,
0.09583405405282974,
0.41878023743629456,
0.019458401948213577,
0.11786714196205139,
-0.23968325555324554,
-0.45739394426345825,
-0.08781107515096664,
-0.12471812963485718,
-0.0010084602981805801,
0.12334717810153961,
0.015335285104811192,
-0.18868324160575867,
0.1515735536813736,
-0.046537671238183975,
0.16210094094276428,
-0.0012184942606836557,
-0.020856020972132683,
-0.11005944013595581,
0.02162974514067173,
0.20498378574848175,
0.2180558294057846,
0.1640356034040451,
0.17951513826847076,
-0.19978520274162292,
-0.13068240880966187,
0.08862267434597015,
-0.14163312315940857,
-0.16712744534015656,
-0.17883774638175964,
0.2166469246149063,
-0.00940237008035183,
-0.35062694549560547,
-0.09378962218761444,
0.28146862983703613,
0.140959233045578,
-0.2037900984287262,
-0.1410701721906662,
-0.03914652392268181,
-0.12413221597671509,
-0.08651570975780487,
0.1792776882648468,
0.5796177387237549,
-0.18559148907661438,
-0.13802137970924377,
-0.15213879942893982,
0.0008940061670728028,
0.5833053588867188,
0.3344024121761322,
-0.06079140305519104,
0.08979673683643341,
-0.17072254419326782,
0.14765411615371704,
0.501713752746582,
-0.1436586230993271,
-0.5796038508415222,
0.5436659455299377,
-0.039608269929885864,
0.5637281537055969,
0.2707032263278961,
0.02253626473248005,
0.17423419654369354,
0.04311955347657204,
0.31352949142456055,
0.3299020826816559,
-0.1484595239162445,
0.007482044864445925,
-0.33346688747406006,
-0.03998412936925888,
0.4416947364807129,
0.1912287175655365,
0.0674290806055069,
0.2502861022949219,
-0.028874235227704048,
-0.06266791373491287,
0.36897778511047363,
-0.07525704801082611,
0.07634532451629639,
0.04100758582353592,
0.1468886286020279,
0.012037357315421104,
0.1379382610321045,
-0.20907683670520782,
-0.3106826841831207,
0.29723113775253296,
0.07493140548467636,
0.012709964998066425,
-0.3174341320991516,
0.20317277312278748,
-0.19064544141292572,
0.001747539034113288,
-0.2628929615020752,
-0.2590404450893402,
0.12431709468364716,
0.31708019971847534,
0.07562025636434555,
0.05058977007865906,
-0.30847641825675964,
0.7747218608856201,
-0.07825539261102676,
-0.013134672306478024,
-0.4549141228199005,
0.20249266922473907,
-0.07077696174383163,
-0.20145729184150696,
0.016439836472272873,
-0.12656566500663757,
0.06725526601076126,
-0.01619195006787777,
-0.25799131393432617,
0.3313199579715729,
-0.2366141527891159,
0.2640714645385742,
-0.195437490940094,
-0.1731969118118286,
0.28974464535713196,
-0.36447903513908386,
-0.08668441325426102,
0.2706027626991272,
0.10750366747379303,
0.1252097189426422,
-0.01769852824509144,
0.1480841189622879,
0.20709145069122314,
0.2361333966255188,
0.043448545038700104,
0.11434856802225113,
0.19616802036762238,
-0.08167482167482376,
-0.06868350505828857,
-0.08500941097736359,
0.32404857873916626,
-0.3548794388771057,
0.04674984887242317,
-0.19892343878746033,
-0.2722991406917572,
0.0823630690574646,
0.3586791157722473,
-0.1403828114271164,
-0.04927391931414604,
0.3303244113922119,
-0.28853198885917664,
-0.16390769183635712,
0.31456050276756287,
0.19400988519191742,
0.47233614325523376,
0.0815219134092331,
0.25733545422554016,
-0.045588232576847076,
-0.1886483132839203,
-0.07350599765777588,
0.3051699995994568,
0.13748376071453094,
0.03146367520093918,
0.24641123414039612,
0.03000643104314804,
0.16357459127902985,
-0.32291626930236816,
-0.3497171998023987,
-0.05663207918405533,
0.11234167963266373,
-0.32018744945526123,
0.3063015043735504,
-0.3882683515548706,
-0.46517419815063477,
0.04635077714920044,
0.15600866079330444,
0.06890499591827393,
-0.3235586881637573,
-0.18175466358661652,
0.23250547051429749,
-0.0038825261872261763,
0.16368405520915985,
-0.2682062089443207,
0.0895484983921051,
0.26717737317085266,
-0.013468741439282894,
-0.3418698310852051,
-0.18084736168384552,
-0.27296268939971924,
0.059197984635829926,
0.17499545216560364,
-0.4228045344352722,
0.1769193410873413,
0.007426348980516195,
-0.11605295538902283,
-0.14017337560653687,
-0.0764235332608223,
0.31978195905685425,
-0.15549951791763306,
0.15689551830291748,
-0.2774865925312042,
0.14939135313034058,
0.22136296331882477,
-0.25034913420677185,
0.12194833159446716,
0.09083358943462372,
-0.11878442764282227,
0.28012463450431824,
0.09408987313508987,
-0.024161122739315033,
-0.030583521351218224,
-0.3010804057121277,
-0.30246657133102417,
-0.6177492737770081,
0.05496867373585701,
0.045426145195961,
0.21355153620243073,
0.16430486738681793,
0.017034953460097313,
0.09682478755712509,
0.3292069435119629,
0.09916029125452042,
-0.11421212553977966,
-0.4199433922767639,
0.37474480271339417,
-0.16701515018939972,
-0.2868405878543854,
-0.3248364329338074,
-0.06815961003303528,
0.1972900629043579,
0.25892677903175354,
-0.5295243263244629,
0.2950165271759033,
-0.40810319781303406,
0.0848926454782486,
-0.383451908826828,
-0.09745605289936066,
-0.026151806116104126,
0.07628907263278961,
-0.0349893644452095,
-0.18785764276981354,
0.07074581831693649,
-0.11695167422294617,
0.0990077555179596,
0.2066105455160141,
0.10863049328327179,
0.36987099051475525,
0.10084988921880722,
0.3327505588531494,
0.4812106490135193,
-0.0195497814565897,
0.3407551944255829,
0.08289115875959396,
0.15380068123340607,
-0.10043346881866455,
-0.06278826296329498,
-0.09556203335523605,
-0.2280799001455307,
-0.026119768619537354,
0.09819924831390381,
-0.09621275961399078,
-0.5762304067611694,
-0.2840513288974762,
0.05491529405117035,
-0.06923674792051315,
-0.2383105605840683,
0.05288355425000191,
-0.5117751359939575,
0.042048029601573944,
-0.18725718557834625,
0.15833960473537445,
0.0807967558503151,
0.052001286298036575,
0.08604580909013748,
0.17725275456905365,
0.12616413831710815,
0.17211958765983582,
-0.18502168357372284,
-0.06390500068664551,
-0.4881904721260071,
0.18258608877658844,
0.1051265299320221,
0.42157500982284546,
-0.16781026124954224,
-0.1327168047428131,
0.0791148766875267,
-0.06520670652389526,
0.3487038314342499,
-0.2754172682762146,
0.003567031119018793,
0.26739397644996643,
0.1421356052160263,
-0.1415519267320633,
0.09176725149154663,
-0.3209458887577057,
0.1368289738893509,
0.23595453798770905,
0.09742030501365662,
-0.1718231588602066,
0.03334014117717743,
-0.08841989189386368,
-0.07249611616134644,
-0.1253027766942978,
-0.016398951411247253,
-0.17049619555473328,
-0.2492378056049347,
-0.15200993418693542,
-0.13424265384674072,
0.2032727599143982,
0.1256835013628006,
-0.012460173107683659,
-0.05679277703166008,
-0.046081703156232834,
-0.0396246574819088,
0.24185976386070251,
0.22132517397403717,
0.1399097591638565,
-0.07227986305952072,
0.22901111841201782,
0.0671992376446724,
0.28444504737854004,
0.2292165607213974,
0.8364327549934387,
0.1181943267583847,
-0.5624254941940308,
0.23508219420909882,
0.233955979347229,
0.16609929502010345,
0.13054032623767853,
-0.14823280274868011,
-0.008516823872923851,
-0.04038475826382637,
0.2698211371898651,
-0.3024732768535614,
0.2146550863981247,
0.21123285591602325,
-0.050721004605293274,
-0.5149303674697876,
-0.4357539117336273,
0.5883386731147766,
-0.03936795890331268,
-0.07619065791368484,
0.7872933149337769,
-0.1665048748254776,
-0.31715574860572815,
0.4775414764881134,
0.023435205221176147,
0.758588433265686,
0.09439537674188614,
0.2168685346841812,
0.24074816703796387,
-0.32072776556015015,
0.5003331899642944,
-0.23206846415996552,
0.3346687853336334,
-0.12060964107513428,
-0.33502957224845886,
-0.0831092968583107,
-0.10410945117473602,
0.1709023416042328,
-0.1476040482521057,
-0.630253791809082,
0.1709609180688858,
-0.05964387580752373,
-0.2528052031993866,
0.3353525996208191,
0.27422651648521423,
-0.6082698106765747,
-0.30629274249076843,
-0.06754982471466064,
0.13888274133205414,
-0.22135944664478302,
0.32396140694618225,
0.1382445991039276,
-0.22023369371891022,
-0.05157337337732315,
-0.08431024849414825,
-0.4702361226081848,
0.4758625328540802,
-0.2765568196773529,
0.1624138206243515,
-0.23903128504753113,
-0.4760982096195221,
0.1513126939535141,
0.26640215516090393,
-0.14213290810585022,
-0.22578595578670502,
-0.15825094282627106,
0.23504357039928436,
0.186054065823555,
0.12802377343177795,
0.09930692613124847,
0.15145832300186157,
0.3883589208126068,
0.05327742174267769,
-0.016812169924378395,
0.18844205141067505,
-0.008980035781860352,
-0.16062869131565094,
-0.06378158926963806,
0.055457454174757004,
0.3183138072490692,
-0.26818060874938965,
0.23685772716999054,
-0.10585100948810577,
0.04292551055550575,
-0.18425290286540985,
0.08697227388620377,
-0.0188316460698843,
-0.17405405640602112,
-0.07388780266046524,
-0.08129703998565674,
-0.21967612206935883,
-0.08474414795637131,
0.3771202266216278,
0.1454576998949051,
0.31797122955322266,
0.4994189143180847,
0.028116896748542786,
-0.17788046598434448,
-0.10367144644260406,
-0.05515022575855255,
-0.29313957691192627,
-0.2526122033596039,
0.0693599283695221,
-0.24147646129131317,
-0.16102829575538635,
-0.2706694006919861,
0.0038265285547822714,
0.04483765363693237,
-0.10355428606271744,
-0.11373868584632874,
-0.29936617612838745,
-0.19063684344291687,
-0.026614591479301453,
-0.12424375861883163,
0.21993061900138855,
-0.1722201555967331,
0.022203832864761353,
0.003119823755696416,
0.1290857046842575,
-0.2706838548183441,
-0.12285948544740677,
-0.0753692090511322,
0.0231177881360054,
0.2672103941440582,
0.029267728328704834,
0.25923383235931396,
0.10966919362545013,
0.14762282371520996,
0.31390470266342163,
-0.027674701064825058,
-0.16095387935638428,
-0.17879508435726166,
0.1384894847869873,
0.016531458124518394,
-0.3480512499809265,
-0.1548941731452942,
-0.056620627641677856,
0.012690648436546326,
-0.1251361072063446,
0.3503142297267914,
0.18123020231723785,
0.03809678927063942,
0.2706012427806854,
0.12401355057954788,
0.05633603781461716,
-0.23264764249324799,
0.15423683822155,
-0.26427310705184937,
0.24013081192970276,
0.08111181110143661,
0.09284059703350067,
-0.07553951442241669,
-0.011869016103446484,
-0.36461341381073,
0.062269773334264755,
0.10179439187049866,
-0.028017167001962662,
0.5909270644187927,
-0.42418044805526733,
0.17204473912715912,
-0.04977473244071007,
0.06602989882230759,
0.4045228064060211,
-0.22961901128292084,
-0.2089620977640152,
0.08508496731519699,
0.20005157589912415,
-0.043203115463256836,
-0.21262098848819733,
-0.4010482430458069,
-0.10164076089859009,
0.011238581500947475,
0.1459597498178482,
-0.10688982903957367,
-0.27218371629714966,
0.09996356815099716,
-0.21030835807323456,
0.48598355054855347,
0.3358429968357086,
0.2670665383338928,
0.48363861441612244,
-0.1811283528804779,
0.02284688875079155,
-0.22602511942386627,
0.020459234714508057,
0.19990667700767517,
0.2970433533191681,
0.0035515299532562494,
-0.007869645021855831,
-0.1613658219575882,
0.21781906485557556,
-0.18597492575645447,
-0.48219603300094604,
-0.07974769175052643,
0.10244756191968918,
-0.1647547483444214,
0.3901936113834381,
0.1489097774028778,
0.15216076374053955,
-0.27793532609939575,
-0.05192168802022934,
-0.04584174230694771,
-0.06612654030323029,
-0.014279885217547417,
-0.09607995301485062,
0.10687627643346786,
-0.012856383807957172,
-0.32792311906814575,
0.09760846942663193,
0.012399740517139435,
0.0633685365319252,
-0.019864294677972794,
0.2808055281639099,
-0.2884628474712372,
-0.11850133538246155,
-0.08222774416208267,
0.10431752353906631,
0.29992544651031494,
-0.35441502928733826,
0.44406911730766296,
0.3661908209323883,
-0.15686115622520447,
0.02825087308883667,
0.07000181823968887,
0.48160767555236816,
0.2853381633758545,
-0.17665058374404907,
0.09465013444423676,
0.33741673827171326,
-0.04363713040947914,
-0.040221404284238815,
0.04425401613116264,
0.2830949127674103,
0.17931993305683136,
0.4566899538040161,
0.08873934298753738,
-0.1485421061515808,
0.10457181930541992,
0.08143521845340729,
0.2538890540599823,
-0.2799384891986847,
0.46231991052627563,
-0.11950626224279404,
0.036692071706056595,
0.02724214643239975,
-0.33657217025756836,
-0.5624157786369324,
-0.02820464037358761,
0.03489604592323303,
-0.22850020229816437,
0.07452382147312164,
-0.008112424984574318,
0.06287827342748642,
0.11395472288131714,
0.4926682412624359,
0.32484114170074463,
-0.018845925107598305,
-0.22450955212116241,
-0.1508791595697403,
-0.2355838418006897,
0.23320233821868896,
-0.06747961789369583,
-0.12314850091934204,
0.1752849519252777,
0.2219228595495224,
-0.004841382149606943,
0.16804932057857513,
-0.15844488143920898,
0.02045494318008423,
-0.26728391647338867,
0.1405727118253708,
-0.3995799422264099,
-0.35156700015068054,
0.19196368753910065,
0.17357957363128662,
-0.04831157624721527,
-0.5764800906181335,
0.18813884258270264,
-0.15023888647556305,
0.16081784665584564,
0.09261315315961838,
-0.24184834957122803,
0.10114521533250809,
-0.27565798163414,
0.5297338366508484,
0.23311050236225128,
0.37920016050338745,
-0.18429502844810486,
-0.4119570255279541,
-0.09924660623073578,
-0.37623047828674316,
-0.27491453289985657,
-0.015584271401166916,
0.10833343118429184,
0.5696322321891785,
-0.14933380484580994,
-0.23738403618335724,
-0.3574709892272949,
0.32626238465309143,
0.060889631509780884,
-0.2656731903553009,
-0.27353888750076294,
0.17337049543857574,
-0.11945990473031998,
0.21312618255615234,
0.30505117774009705,
0.38034501671791077,
-0.028712939471006393,
0.16399507224559784,
-0.22351552546024323,
-0.43332117795944214,
0.5773109793663025,
-0.3461064398288727,
-0.26596689224243164,
0.24184110760688782,
0.06381378322839737,
0.32649803161621094,
0.2410198301076889,
-0.45966649055480957,
0.08936529606580734,
0.3556547164916992,
-0.2354130893945694,
-0.1511853188276291,
0.14214643836021423,
0.22597046196460724,
-0.06072015315294266,
-0.0850398913025856,
0.4553110897541046,
0.24239647388458252,
-0.24920444190502167,
0.17508156597614288,
-0.17863886058330536
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 46 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | [
-0.38646507263183594,
-0.2204955667257309,
0.089481420814991,
0.4387413263320923,
0.2157086580991745,
0.12292304635047913,
-0.03690986707806587,
0.30938801169395447,
0.24227753281593323,
0.09550254046916962,
-0.22643105685710907,
0.42615339159965515,
-0.06417602300643921,
0.3035329282283783,
-0.009465343318879604,
-0.2584783136844635,
-0.004505916498601437,
0.23376570641994476,
-0.10492555797100067,
0.1268760710954666,
-0.0005552724469453096,
0.19412606954574585,
-0.24699288606643677,
-0.030423130840063095,
0.052229102700948715,
-0.1081046611070633,
0.012406800873577595,
0.2805251479148865,
-0.059583183377981186,
-0.4462355673313141,
0.12590479850769043,
-0.061548274010419846,
0.4121142029762268,
0.33757442235946655,
-0.00011450322199380025,
0.27344825863838196,
0.4721422493457794,
-0.12278413027524948,
-0.48534414172172546,
-0.21211446821689606,
-0.21866583824157715,
0.09612717479467392,
0.0428345762193203,
-0.15663401782512665,
-0.009134124033153057,
0.07111316919326782,
-0.04000481590628624,
-0.7192990183830261,
0.3178502321243286,
0.34563618898391724,
0.17784996330738068,
0.04260045662522316,
-0.048948585987091064,
0.026822403073310852,
0.06883880496025085,
-0.29866454005241394,
-0.09200708568096161,
0.12181729078292847,
0.23672711849212646,
0.2287401556968689,
-0.3595733046531677,
0.3845905661582947,
-0.06588800251483917,
0.06018400564789772,
0.09441512078046799,
0.09672340750694275,
-0.17495006322860718,
-0.46550488471984863,
-0.007394508458673954,
0.18841414153575897,
0.6776785850524902,
-0.25551655888557434,
-0.4161979854106903,
-0.23198845982551575,
-0.002171104308217764,
-0.6144577264785767,
0.1465313583612442,
0.14892703294754028,
-0.4673648774623871,
0.12806008756160736,
0.24596314132213593,
-0.008752889931201935,
-0.3279942572116852,
-0.04587315022945404,
-0.24679897725582123,
0.38822224736213684,
-0.07678597420454025,
-0.023727212101221085,
0.02729426696896553,
-0.08662906289100647,
0.4627741575241089,
-0.21103493869304657,
-0.284593790769577,
-0.06397910416126251,
-0.43975546956062317,
-0.0420655757188797,
-0.07651199400424957,
-0.09410949051380157,
0.16814643144607544,
0.2153896987438202,
0.29532068967819214,
0.08825264126062393,
0.15436404943466187,
0.09264442324638367,
0.3555268943309784,
0.3608669340610504,
0.05983154848217964,
0.1853773593902588,
0.13118089735507965,
0.09943187981843948,
0.13662415742874146,
-0.18189190328121185,
-0.14648891985416412,
-0.037280987948179245,
0.02816305123269558,
-0.013114196248352528,
0.26285871863365173,
-0.1912374496459961,
-0.4138478636741638,
0.02979208156466484,
-0.30572134256362915,
-0.07946714758872986,
0.0055909049697220325,
0.28171706199645996,
0.09583405405282974,
0.41878023743629456,
0.019458401948213577,
0.11786714196205139,
-0.23968325555324554,
-0.45739394426345825,
-0.08781107515096664,
-0.12471812963485718,
-0.0010084602981805801,
0.12334717810153961,
0.015335285104811192,
-0.18868324160575867,
0.1515735536813736,
-0.046537671238183975,
0.16210094094276428,
-0.0012184942606836557,
-0.020856020972132683,
-0.11005944013595581,
0.02162974514067173,
0.20498378574848175,
0.2180558294057846,
0.1640356034040451,
0.17951513826847076,
-0.19978520274162292,
-0.13068240880966187,
0.08862267434597015,
-0.14163312315940857,
-0.16712744534015656,
-0.17883774638175964,
0.2166469246149063,
-0.00940237008035183,
-0.35062694549560547,
-0.09378962218761444,
0.28146862983703613,
0.140959233045578,
-0.2037900984287262,
-0.1410701721906662,
-0.03914652392268181,
-0.12413221597671509,
-0.08651570975780487,
0.1792776882648468,
0.5796177387237549,
-0.18559148907661438,
-0.13802137970924377,
-0.15213879942893982,
0.0008940061670728028,
0.5833053588867188,
0.3344024121761322,
-0.06079140305519104,
0.08979673683643341,
-0.17072254419326782,
0.14765411615371704,
0.501713752746582,
-0.1436586230993271,
-0.5796038508415222,
0.5436659455299377,
-0.039608269929885864,
0.5637281537055969,
0.2707032263278961,
0.02253626473248005,
0.17423419654369354,
0.04311955347657204,
0.31352949142456055,
0.3299020826816559,
-0.1484595239162445,
0.007482044864445925,
-0.33346688747406006,
-0.03998412936925888,
0.4416947364807129,
0.1912287175655365,
0.0674290806055069,
0.2502861022949219,
-0.028874235227704048,
-0.06266791373491287,
0.36897778511047363,
-0.07525704801082611,
0.07634532451629639,
0.04100758582353592,
0.1468886286020279,
0.012037357315421104,
0.1379382610321045,
-0.20907683670520782,
-0.3106826841831207,
0.29723113775253296,
0.07493140548467636,
0.012709964998066425,
-0.3174341320991516,
0.20317277312278748,
-0.19064544141292572,
0.001747539034113288,
-0.2628929615020752,
-0.2590404450893402,
0.12431709468364716,
0.31708019971847534,
0.07562025636434555,
0.05058977007865906,
-0.30847641825675964,
0.7747218608856201,
-0.07825539261102676,
-0.013134672306478024,
-0.4549141228199005,
0.20249266922473907,
-0.07077696174383163,
-0.20145729184150696,
0.016439836472272873,
-0.12656566500663757,
0.06725526601076126,
-0.01619195006787777,
-0.25799131393432617,
0.3313199579715729,
-0.2366141527891159,
0.2640714645385742,
-0.195437490940094,
-0.1731969118118286,
0.28974464535713196,
-0.36447903513908386,
-0.08668441325426102,
0.2706027626991272,
0.10750366747379303,
0.1252097189426422,
-0.01769852824509144,
0.1480841189622879,
0.20709145069122314,
0.2361333966255188,
0.043448545038700104,
0.11434856802225113,
0.19616802036762238,
-0.08167482167482376,
-0.06868350505828857,
-0.08500941097736359,
0.32404857873916626,
-0.3548794388771057,
0.04674984887242317,
-0.19892343878746033,
-0.2722991406917572,
0.0823630690574646,
0.3586791157722473,
-0.1403828114271164,
-0.04927391931414604,
0.3303244113922119,
-0.28853198885917664,
-0.16390769183635712,
0.31456050276756287,
0.19400988519191742,
0.47233614325523376,
0.0815219134092331,
0.25733545422554016,
-0.045588232576847076,
-0.1886483132839203,
-0.07350599765777588,
0.3051699995994568,
0.13748376071453094,
0.03146367520093918,
0.24641123414039612,
0.03000643104314804,
0.16357459127902985,
-0.32291626930236816,
-0.3497171998023987,
-0.05663207918405533,
0.11234167963266373,
-0.32018744945526123,
0.3063015043735504,
-0.3882683515548706,
-0.46517419815063477,
0.04635077714920044,
0.15600866079330444,
0.06890499591827393,
-0.3235586881637573,
-0.18175466358661652,
0.23250547051429749,
-0.0038825261872261763,
0.16368405520915985,
-0.2682062089443207,
0.0895484983921051,
0.26717737317085266,
-0.013468741439282894,
-0.3418698310852051,
-0.18084736168384552,
-0.27296268939971924,
0.059197984635829926,
0.17499545216560364,
-0.4228045344352722,
0.1769193410873413,
0.007426348980516195,
-0.11605295538902283,
-0.14017337560653687,
-0.0764235332608223,
0.31978195905685425,
-0.15549951791763306,
0.15689551830291748,
-0.2774865925312042,
0.14939135313034058,
0.22136296331882477,
-0.25034913420677185,
0.12194833159446716,
0.09083358943462372,
-0.11878442764282227,
0.28012463450431824,
0.09408987313508987,
-0.024161122739315033,
-0.030583521351218224,
-0.3010804057121277,
-0.30246657133102417,
-0.6177492737770081,
0.05496867373585701,
0.045426145195961,
0.21355153620243073,
0.16430486738681793,
0.017034953460097313,
0.09682478755712509,
0.3292069435119629,
0.09916029125452042,
-0.11421212553977966,
-0.4199433922767639,
0.37474480271339417,
-0.16701515018939972,
-0.2868405878543854,
-0.3248364329338074,
-0.06815961003303528,
0.1972900629043579,
0.25892677903175354,
-0.5295243263244629,
0.2950165271759033,
-0.40810319781303406,
0.0848926454782486,
-0.383451908826828,
-0.09745605289936066,
-0.026151806116104126,
0.07628907263278961,
-0.0349893644452095,
-0.18785764276981354,
0.07074581831693649,
-0.11695167422294617,
0.0990077555179596,
0.2066105455160141,
0.10863049328327179,
0.36987099051475525,
0.10084988921880722,
0.3327505588531494,
0.4812106490135193,
-0.0195497814565897,
0.3407551944255829,
0.08289115875959396,
0.15380068123340607,
-0.10043346881866455,
-0.06278826296329498,
-0.09556203335523605,
-0.2280799001455307,
-0.026119768619537354,
0.09819924831390381,
-0.09621275961399078,
-0.5762304067611694,
-0.2840513288974762,
0.05491529405117035,
-0.06923674792051315,
-0.2383105605840683,
0.05288355425000191,
-0.5117751359939575,
0.042048029601573944,
-0.18725718557834625,
0.15833960473537445,
0.0807967558503151,
0.052001286298036575,
0.08604580909013748,
0.17725275456905365,
0.12616413831710815,
0.17211958765983582,
-0.18502168357372284,
-0.06390500068664551,
-0.4881904721260071,
0.18258608877658844,
0.1051265299320221,
0.42157500982284546,
-0.16781026124954224,
-0.1327168047428131,
0.0791148766875267,
-0.06520670652389526,
0.3487038314342499,
-0.2754172682762146,
0.003567031119018793,
0.26739397644996643,
0.1421356052160263,
-0.1415519267320633,
0.09176725149154663,
-0.3209458887577057,
0.1368289738893509,
0.23595453798770905,
0.09742030501365662,
-0.1718231588602066,
0.03334014117717743,
-0.08841989189386368,
-0.07249611616134644,
-0.1253027766942978,
-0.016398951411247253,
-0.17049619555473328,
-0.2492378056049347,
-0.15200993418693542,
-0.13424265384674072,
0.2032727599143982,
0.1256835013628006,
-0.012460173107683659,
-0.05679277703166008,
-0.046081703156232834,
-0.0396246574819088,
0.24185976386070251,
0.22132517397403717,
0.1399097591638565,
-0.07227986305952072,
0.22901111841201782,
0.0671992376446724,
0.28444504737854004,
0.2292165607213974,
0.8364327549934387,
0.1181943267583847,
-0.5624254941940308,
0.23508219420909882,
0.233955979347229,
0.16609929502010345,
0.13054032623767853,
-0.14823280274868011,
-0.008516823872923851,
-0.04038475826382637,
0.2698211371898651,
-0.3024732768535614,
0.2146550863981247,
0.21123285591602325,
-0.050721004605293274,
-0.5149303674697876,
-0.4357539117336273,
0.5883386731147766,
-0.03936795890331268,
-0.07619065791368484,
0.7872933149337769,
-0.1665048748254776,
-0.31715574860572815,
0.4775414764881134,
0.023435205221176147,
0.758588433265686,
0.09439537674188614,
0.2168685346841812,
0.24074816703796387,
-0.32072776556015015,
0.5003331899642944,
-0.23206846415996552,
0.3346687853336334,
-0.12060964107513428,
-0.33502957224845886,
-0.0831092968583107,
-0.10410945117473602,
0.1709023416042328,
-0.1476040482521057,
-0.630253791809082,
0.1709609180688858,
-0.05964387580752373,
-0.2528052031993866,
0.3353525996208191,
0.27422651648521423,
-0.6082698106765747,
-0.30629274249076843,
-0.06754982471466064,
0.13888274133205414,
-0.22135944664478302,
0.32396140694618225,
0.1382445991039276,
-0.22023369371891022,
-0.05157337337732315,
-0.08431024849414825,
-0.4702361226081848,
0.4758625328540802,
-0.2765568196773529,
0.1624138206243515,
-0.23903128504753113,
-0.4760982096195221,
0.1513126939535141,
0.26640215516090393,
-0.14213290810585022,
-0.22578595578670502,
-0.15825094282627106,
0.23504357039928436,
0.186054065823555,
0.12802377343177795,
0.09930692613124847,
0.15145832300186157,
0.3883589208126068,
0.05327742174267769,
-0.016812169924378395,
0.18844205141067505,
-0.008980035781860352,
-0.16062869131565094,
-0.06378158926963806,
0.055457454174757004,
0.3183138072490692,
-0.26818060874938965,
0.23685772716999054,
-0.10585100948810577,
0.04292551055550575,
-0.18425290286540985,
0.08697227388620377,
-0.0188316460698843,
-0.17405405640602112,
-0.07388780266046524,
-0.08129703998565674,
-0.21967612206935883,
-0.08474414795637131,
0.3771202266216278,
0.1454576998949051,
0.31797122955322266,
0.4994189143180847,
0.028116896748542786,
-0.17788046598434448,
-0.10367144644260406,
-0.05515022575855255,
-0.29313957691192627,
-0.2526122033596039,
0.0693599283695221,
-0.24147646129131317,
-0.16102829575538635,
-0.2706694006919861,
0.0038265285547822714,
0.04483765363693237,
-0.10355428606271744,
-0.11373868584632874,
-0.29936617612838745,
-0.19063684344291687,
-0.026614591479301453,
-0.12424375861883163,
0.21993061900138855,
-0.1722201555967331,
0.022203832864761353,
0.003119823755696416,
0.1290857046842575,
-0.2706838548183441,
-0.12285948544740677,
-0.0753692090511322,
0.0231177881360054,
0.2672103941440582,
0.029267728328704834,
0.25923383235931396,
0.10966919362545013,
0.14762282371520996,
0.31390470266342163,
-0.027674701064825058,
-0.16095387935638428,
-0.17879508435726166,
0.1384894847869873,
0.016531458124518394,
-0.3480512499809265,
-0.1548941731452942,
-0.056620627641677856,
0.012690648436546326,
-0.1251361072063446,
0.3503142297267914,
0.18123020231723785,
0.03809678927063942,
0.2706012427806854,
0.12401355057954788,
0.05633603781461716,
-0.23264764249324799,
0.15423683822155,
-0.26427310705184937,
0.24013081192970276,
0.08111181110143661,
0.09284059703350067,
-0.07553951442241669,
-0.011869016103446484,
-0.36461341381073,
0.062269773334264755,
0.10179439187049866,
-0.028017167001962662,
0.5909270644187927,
-0.42418044805526733,
0.17204473912715912,
-0.04977473244071007,
0.06602989882230759,
0.4045228064060211,
-0.22961901128292084,
-0.2089620977640152,
0.08508496731519699,
0.20005157589912415,
-0.043203115463256836,
-0.21262098848819733,
-0.4010482430458069,
-0.10164076089859009,
0.011238581500947475,
0.1459597498178482,
-0.10688982903957367,
-0.27218371629714966,
0.09996356815099716,
-0.21030835807323456,
0.48598355054855347,
0.3358429968357086,
0.2670665383338928,
0.48363861441612244,
-0.1811283528804779,
0.02284688875079155,
-0.22602511942386627,
0.020459234714508057,
0.19990667700767517,
0.2970433533191681,
0.0035515299532562494,
-0.007869645021855831,
-0.1613658219575882,
0.21781906485557556,
-0.18597492575645447,
-0.48219603300094604,
-0.07974769175052643,
0.10244756191968918,
-0.1647547483444214,
0.3901936113834381,
0.1489097774028778,
0.15216076374053955,
-0.27793532609939575,
-0.05192168802022934,
-0.04584174230694771,
-0.06612654030323029,
-0.014279885217547417,
-0.09607995301485062,
0.10687627643346786,
-0.012856383807957172,
-0.32792311906814575,
0.09760846942663193,
0.012399740517139435,
0.0633685365319252,
-0.019864294677972794,
0.2808055281639099,
-0.2884628474712372,
-0.11850133538246155,
-0.08222774416208267,
0.10431752353906631,
0.29992544651031494,
-0.35441502928733826,
0.44406911730766296,
0.3661908209323883,
-0.15686115622520447,
0.02825087308883667,
0.07000181823968887,
0.48160767555236816,
0.2853381633758545,
-0.17665058374404907,
0.09465013444423676,
0.33741673827171326,
-0.04363713040947914,
-0.040221404284238815,
0.04425401613116264,
0.2830949127674103,
0.17931993305683136,
0.4566899538040161,
0.08873934298753738,
-0.1485421061515808,
0.10457181930541992,
0.08143521845340729,
0.2538890540599823,
-0.2799384891986847,
0.46231991052627563,
-0.11950626224279404,
0.036692071706056595,
0.02724214643239975,
-0.33657217025756836,
-0.5624157786369324,
-0.02820464037358761,
0.03489604592323303,
-0.22850020229816437,
0.07452382147312164,
-0.008112424984574318,
0.06287827342748642,
0.11395472288131714,
0.4926682412624359,
0.32484114170074463,
-0.018845925107598305,
-0.22450955212116241,
-0.1508791595697403,
-0.2355838418006897,
0.23320233821868896,
-0.06747961789369583,
-0.12314850091934204,
0.1752849519252777,
0.2219228595495224,
-0.004841382149606943,
0.16804932057857513,
-0.15844488143920898,
0.02045494318008423,
-0.26728391647338867,
0.1405727118253708,
-0.3995799422264099,
-0.35156700015068054,
0.19196368753910065,
0.17357957363128662,
-0.04831157624721527,
-0.5764800906181335,
0.18813884258270264,
-0.15023888647556305,
0.16081784665584564,
0.09261315315961838,
-0.24184834957122803,
0.10114521533250809,
-0.27565798163414,
0.5297338366508484,
0.23311050236225128,
0.37920016050338745,
-0.18429502844810486,
-0.4119570255279541,
-0.09924660623073578,
-0.37623047828674316,
-0.27491453289985657,
-0.015584271401166916,
0.10833343118429184,
0.5696322321891785,
-0.14933380484580994,
-0.23738403618335724,
-0.3574709892272949,
0.32626238465309143,
0.060889631509780884,
-0.2656731903553009,
-0.27353888750076294,
0.17337049543857574,
-0.11945990473031998,
0.21312618255615234,
0.30505117774009705,
0.38034501671791077,
-0.028712939471006393,
0.16399507224559784,
-0.22351552546024323,
-0.43332117795944214,
0.5773109793663025,
-0.3461064398288727,
-0.26596689224243164,
0.24184110760688782,
0.06381378322839737,
0.32649803161621094,
0.2410198301076889,
-0.45966649055480957,
0.08936529606580734,
0.3556547164916992,
-0.2354130893945694,
-0.1511853188276291,
0.14214643836021423,
0.22597046196460724,
-0.06072015315294266,
-0.0850398913025856,
0.4553110897541046,
0.24239647388458252,
-0.24920444190502167,
0.17508156597614288,
-0.17863886058330536
] |
https://github.com/huggingface/datasets/issues/2917 | windows download abnormal | Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | ## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
| 41 | windows download abnormal
## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | [
-0.12404882907867432,
-0.20182541012763977,
-0.07033970206975937,
0.18945950269699097,
0.214773491024971,
-0.1120501384139061,
0.02766747958958149,
0.07187360525131226,
0.28058135509490967,
0.08505606651306152,
0.16487334668636322,
0.11740700900554657,
0.15548129379749298,
0.10220390558242798,
0.15884733200073242,
-0.261504203081131,
0.030185703188180923,
0.03931013494729996,
-0.16915155947208405,
0.00886442232877016,
-0.3215377926826477,
0.08592832833528519,
-0.3066692650318146,
-0.1127145066857338,
0.16355884075164795,
0.03243996575474739,
-0.2886960804462433,
0.30047082901000977,
-0.25460004806518555,
-0.16940440237522125,
0.09936966747045517,
-0.07090836018323898,
0.1850663274526596,
0.35194993019104004,
-0.0001087431373889558,
0.08132565766572952,
0.3922838866710663,
0.023531267419457436,
0.01742839254438877,
-0.05817477032542229,
-0.2938908636569977,
-0.14136871695518494,
-0.19119451940059662,
-0.31517183780670166,
0.09970620274543762,
0.2347300946712494,
0.04543754458427429,
-0.1112285777926445,
0.24436266720294952,
0.4491448402404785,
0.3060820996761322,
0.4809371829032898,
-0.1150025799870491,
0.051726892590522766,
0.45546290278434753,
0.05056493729352951,
-0.1816767305135727,
0.24919936060905457,
0.3063495457172394,
-0.14193788170814514,
0.25700247287750244,
-0.059411194175481796,
-0.12101133912801743,
0.011558706872165203,
0.031003620475530624,
0.12063519656658173,
-0.04946434870362282,
-0.5093156695365906,
0.12343183159828186,
0.17437492311000824,
0.3126615583896637,
-0.15310905873775482,
-0.15854042768478394,
0.11584712564945221,
-0.14939960837364197,
-0.18569700419902802,
0.2733875513076782,
0.2762599289417267,
-0.139317125082016,
0.1871822625398636,
-0.2805481255054474,
0.17438751459121704,
-0.20567987859249115,
0.2596929669380188,
-0.11910749226808548,
0.3299073874950409,
-0.07594991475343704,
0.18944644927978516,
-0.17101441323757172,
0.31671786308288574,
0.037710558623075485,
-0.3272553086280823,
-0.015676995739340782,
-0.003989660646766424,
0.08568944036960602,
0.10570786893367767,
0.04935538023710251,
0.5118294954299927,
0.05730396881699562,
0.2643461525440216,
0.033488474786281586,
-0.05601891875267029,
0.24108992516994476,
0.07001876831054688,
0.09027250856161118,
0.09497997909784317,
-0.2958667278289795,
0.06604398041963577,
0.38178178668022156,
0.3139166831970215,
-0.006579607725143433,
-0.02620098367333412,
-0.033049676567316055,
-0.31550660729408264,
0.2965119183063507,
-0.0053918431513011456,
0.48603516817092896,
-0.04742739722132683,
-0.5569108724594116,
0.002635164884850383,
0.014628531411290169,
0.09089187532663345,
-0.0023529224563390017,
0.2526858150959015,
-0.32183223962783813,
-0.02258087322115898,
0.12337028980255127,
0.3000147044658661,
-0.12404509633779526,
0.1943567991256714,
0.0040630619041621685,
0.18068146705627441,
-0.2520693242549896,
-0.22607281804084778,
0.34758323431015015,
-0.06712930649518967,
0.12012475728988647,
0.19356180727481842,
-0.09145880490541458,
-0.042873892933130264,
0.013201480731368065,
-0.08051552623510361,
0.027182811871170998,
0.431601881980896,
0.1952560395002365,
0.3702535927295685,
-0.009459316730499268,
0.07807863503694534,
-0.07072684913873672,
0.2062932848930359,
-0.14631567895412445,
-0.024970078840851784,
0.021134696900844574,
0.26080191135406494,
-0.326589435338974,
-0.18855974078178406,
0.03979390487074852,
-0.26646628975868225,
-0.040910977870225906,
-0.02938823029398918,
0.24959832429885864,
-0.19647954404354095,
-0.28914812207221985,
-0.3841310739517212,
0.09299185872077942,
0.5247912406921387,
-0.3482264578342438,
0.20685118436813354,
0.06146376579999924,
-0.27144280076026917,
0.40142199397087097,
0.05861002579331398,
0.13095694780349731,
0.1605098396539688,
-0.4302997589111328,
0.041505321860313416,
0.11713143438100815,
-0.35013219714164734,
-0.49704304337501526,
0.35849782824516296,
-0.18995290994644165,
0.32069143652915955,
0.17838147282600403,
0.09198393672704697,
0.2939104437828064,
-0.08338167518377304,
-0.012038079090416431,
0.3098942041397095,
-0.02248322032392025,
0.05824341997504234,
-0.124578095972538,
-0.12976227700710297,
0.13000014424324036,
0.10852142423391342,
0.12085945904254913,
0.14329557120800018,
0.2932305335998535,
-0.13603951036930084,
0.31640273332595825,
0.17881958186626434,
0.09648897498846054,
0.2375456839799881,
0.255018025636673,
0.26808950304985046,
0.12365496158599854,
-0.2269860804080963,
0.0015703646931797266,
0.28610700368881226,
-0.0804179459810257,
-0.15903253853321075,
-0.2410326451063156,
-0.22180628776550293,
-0.5582578778266907,
0.022449517622590065,
-0.1886621117591858,
-0.22198134660720825,
0.16530141234397888,
0.1372600495815277,
0.2495531141757965,
0.04269436374306679,
0.07544667273759842,
0.17933697998523712,
-0.007186383008956909,
-0.06845969706773758,
0.07519033551216125,
0.36020541191101074,
-0.3439498841762543,
-0.05052374303340912,
-0.09659580141305923,
-0.072175994515419,
0.22991739213466644,
-0.05668514221906662,
-0.01522824913263321,
0.19726811349391937,
0.02026159130036831,
-0.04262928292155266,
0.036209382116794586,
0.0486600287258625,
0.016718430444598198,
-0.18056116998195648,
0.2716662883758545,
0.5724846124649048,
0.26855704188346863,
-0.09678363054990768,
-0.03222959116101265,
0.005361979827284813,
-0.07502537965774536,
0.017756089568138123,
-0.022257748991250992,
0.14869749546051025,
0.19364102184772491,
-0.18895947933197021,
-0.10111144930124283,
0.002101076999679208,
0.3638003170490265,
0.06130477413535118,
-0.09914214164018631,
-0.16853411495685577,
-0.1679936647415161,
0.16708090901374817,
0.5450260639190674,
-0.27523329854011536,
0.3014792799949646,
0.07062197476625443,
-0.09666360914707184,
0.2094733715057373,
-0.18009062111377716,
0.10591845959424973,
0.6080440282821655,
0.03329649567604065,
0.11296091973781586,
0.371154248714447,
0.008862954564392567,
-0.1436058133840561,
0.21492847800254822,
0.1461234986782074,
-0.29897046089172363,
0.17300468683242798,
-0.052078355103731155,
0.17691895365715027,
-0.20951510965824127,
-0.237602099776268,
-0.05715751275420189,
0.05267728492617607,
-0.34522247314453125,
0.24298909306526184,
-0.16144447028636932,
-0.17400068044662476,
-0.32915306091308594,
-0.08695710450410843,
-0.07667092978954315,
-0.06329367309808731,
0.024691568687558174,
0.28079426288604736,
-0.1450740396976471,
-0.1818348914384842,
-0.4370899796485901,
0.09258980304002762,
0.21191143989562988,
-0.3590196669101715,
-0.0015146126970648766,
0.1992022842168808,
-0.286377876996994,
0.13335874676704407,
0.15175561606884003,
-0.09841332584619522,
0.5485376119613647,
-0.5067276358604431,
0.057920992374420166,
-0.3667598366737366,
-0.10093610733747482,
-0.06549422442913055,
0.05530839040875435,
0.3579995036125183,
0.18263906240463257,
0.18574997782707214,
0.05481378734111786,
0.10315626114606857,
0.2081245630979538,
-0.23898044228553772,
-0.1795153021812439,
0.1597154438495636,
0.05648941174149513,
-0.3985370099544525,
-0.2559874355792999,
-0.24914605915546417,
-0.20666125416755676,
-0.35097235441207886,
0.016134556382894516,
0.11001006513834,
0.12698766589164734,
-0.10306878387928009,
0.008076969534158707,
0.037245359271764755,
0.07318701595067978,
0.22466939687728882,
-0.08302618563175201,
0.02635040320456028,
0.3867477774620056,
-0.04235018044710159,
-0.6439449191093445,
0.24056024849414825,
-0.018974922597408295,
-0.3578404188156128,
0.30524158477783203,
-0.5030601024627686,
-0.13239209353923798,
-0.28738030791282654,
0.2506049871444702,
0.0892273411154747,
0.27787986397743225,
0.33532726764678955,
-0.2777276039123535,
-0.02459641918540001,
-0.3039756119251251,
-0.06590742617845535,
-0.290185809135437,
-0.10967378318309784,
0.24289637804031372,
0.18268531560897827,
0.3031283915042877,
-0.02893810160458088,
0.2855461537837982,
0.22061161696910858,
0.12943963706493378,
0.4378712475299835,
-0.3864387273788452,
0.47416236996650696,
0.0013000715989619493,
-0.1765861213207245,
0.035116422921419144,
-0.27221763134002686,
0.018007900565862656,
0.23765705525875092,
0.022387772798538208,
-0.0049436055123806,
-0.2312292456626892,
-0.16560502350330353,
-0.23130953311920166,
-0.24787135422229767,
0.1438775360584259,
0.11068367213010788,
0.0407826192677021,
0.12416982650756836,
0.2241891473531723,
0.10284052789211273,
-0.15573421120643616,
0.11416448652744293,
0.5970380306243896,
-0.26156243681907654,
0.143966943025589,
0.022780798375606537,
-0.1640787273645401,
-0.46938812732696533,
0.07167521119117737,
0.10276421904563904,
0.4488421082496643,
-0.030166907235980034,
0.044342514127492905,
0.21562010049819946,
-0.16199639439582825,
0.7495212554931641,
-0.21511885523796082,
0.3322598338127136,
0.2032122164964676,
-0.006716196425259113,
-0.3780362904071808,
-0.258353054523468,
-0.5120753645896912,
0.1230989322066307,
0.08177563548088074,
-0.052924830466508865,
-0.055524908006191254,
0.1852331906557083,
0.11505769938230515,
0.2468608021736145,
-0.14289049804210663,
-0.38716068863868713,
-0.38851529359817505,
-0.6134722828865051,
-0.24454030394554138,
0.08509066700935364,
0.4038747549057007,
-0.043509043753147125,
-0.3796862065792084,
-0.16640354692935944,
-0.0642809346318245,
0.1533764749765396,
-0.0725112110376358,
-0.027729986235499382,
0.07959600538015366,
-0.017774799838662148,
0.1780821681022644,
-0.2506740987300873,
0.28624895215034485,
-0.17390820384025574,
0.659617006778717,
0.10549161583185196,
-0.14962241053581238,
0.16205883026123047,
-0.26835721731185913,
-0.20142051577568054,
0.2051972597837448,
-0.1649344265460968,
-0.22019943594932556,
-0.07972101867198944,
0.04925045743584633,
-0.3298473656177521,
-0.07996248453855515,
0.5729666352272034,
-0.10168347507715225,
-0.005418763030320406,
-0.2596151828765869,
0.1787784993648529,
0.013897281140089035,
-0.15584918856620789,
0.26747408509254456,
0.034885358065366745,
-0.09249893575906754,
-0.10834117233753204,
-0.2890721261501312,
0.6511149406433105,
0.2145090252161026,
0.23586612939834595,
0.25903040170669556,
-0.5253792405128479,
0.04198607802391052,
0.21368515491485596,
0.07386580854654312,
-0.20706380903720856,
-0.2838786542415619,
-0.03738349303603172,
-0.13326206803321838,
0.08258640766143799,
-0.034150853753089905,
-0.277936190366745,
0.22078785300254822,
-0.08658204972743988,
0.1747569888830185,
0.2744154632091522,
-0.15815934538841248,
-0.3131062090396881,
0.10845629125833511,
-0.03281603753566742,
0.19511719048023224,
0.23858901858329773,
0.6629056930541992,
-0.266217976808548,
0.018496159464120865,
-0.17159970104694366,
-0.27796605229377747,
-0.3965131938457489,
0.25503021478652954,
-0.13408435881137848,
0.007453844416886568,
-0.1599159836769104,
0.1396336555480957,
0.02254951186478138,
-0.01473710872232914,
0.0021659694612026215,
0.15718527138233185,
-0.2298114001750946,
0.08573846518993378,
0.13416102528572083,
-0.08223661035299301,
0.263003945350647,
-0.09940269589424133,
0.1180737242102623,
-0.24470752477645874,
-0.4229419231414795,
-0.07276049256324768,
0.02143966592848301,
-0.0027242579963058233,
-0.027712060138583183,
0.26394200325012207,
0.21877054870128632,
-0.18823304772377014,
-0.178481325507164,
-0.3920813798904419,
0.08386212587356567,
-0.07089439779520035,
0.21751545369625092,
0.04904622957110405,
0.08854327350854874,
0.5029727220535278,
-0.2861325740814209,
-0.23590268194675446,
-0.1554897129535675,
0.3932056725025177,
-0.16737063229084015,
-0.07556786388158798,
0.11023611575365067,
0.09486789256334305,
-0.30697304010391235,
-0.2523457407951355,
0.013135863468050957,
-0.3942270874977112,
-0.2205287516117096,
0.054007116705179214,
-0.05436982959508896,
0.2869071662425995,
-0.1471763402223587,
0.009005926549434662,
0.13357503712177277,
-0.057868581265211105,
-0.015184764750301838,
-0.6815165877342224,
0.12968051433563232,
-0.21979667246341705,
0.4122016429901123,
0.046644676476716995,
0.026245614513754845,
-0.15720713138580322,
0.4631689190864563,
-0.5489165782928467,
-0.3702109754085541,
-0.0008697127341292799,
0.04950487241148949,
-0.1290580779314041,
0.1779976487159729,
0.13027708232402802,
0.19987162947654724,
0.011894846335053444,
0.12122808396816254,
0.0002451168838888407,
-0.06618471443653107,
-0.24845196306705475,
-0.16501764953136444,
0.1045997366309166,
-0.0540887713432312,
-0.2632082998752594,
0.1900731325149536,
-0.45111656188964844,
0.009140689857304096,
0.18899014592170715,
0.14730429649353027,
0.3043759763240814,
-0.09577295929193497,
0.03665807843208313,
0.0956629291176796,
0.11463665962219238,
-0.23988774418830872,
0.24710200726985931,
-0.4936736226081848,
0.5263614654541016,
0.005651651415973902,
0.17131230235099792,
0.22471916675567627,
0.006555669941008091,
-0.054802268743515015,
-0.28135013580322266,
0.06270453333854675,
0.18262025713920593,
0.3916453719139099,
-0.11679676175117493,
0.26065489649772644,
-0.0006224996759556234,
0.283252090215683,
0.5525350570678711,
-0.3527146875858307,
-0.08935029059648514,
0.14336293935775757,
0.27581146359443665,
-0.25900691747665405,
-0.034685030579566956,
0.08422911912202835,
0.10917232185602188,
0.05762870982289314,
0.11799316108226776,
0.0555243082344532,
-0.2826644778251648,
-0.0912482738494873,
-0.05008995160460472,
0.4335026144981384,
0.367079496383667,
-0.18083792924880981,
0.3947139382362366,
0.006517725996673107,
0.1476496011018753,
-0.057669736444950104,
-0.02175161987543106,
-0.04860258102416992,
0.4234355092048645,
0.04098067432641983,
0.06926573812961578,
-0.10912548005580902,
0.02517450787127018,
-0.13157638907432556,
-0.20524561405181885,
0.07668452709913254,
-0.20125676691532135,
0.02545115537941456,
0.09771038591861725,
0.07705144584178925,
-0.15404798090457916,
-0.2748749852180481,
0.21779775619506836,
-0.3454122543334961,
-0.0678379163146019,
0.06947248429059982,
-0.01250758022069931,
-0.3036753833293915,
-0.0721508041024208,
-0.11966550350189209,
0.025266999378800392,
0.14733323454856873,
-0.005412915255874395,
0.2599419355392456,
0.07452727854251862,
-0.2369661033153534,
-0.31606996059417725,
0.012623023241758347,
-0.20480310916900635,
0.11341232061386108,
-0.2885008752346039,
0.07788949459791183,
0.3658394515514374,
0.1674332320690155,
0.10783862322568893,
0.11485135555267334,
0.5545538663864136,
0.38521793484687805,
-0.1072472557425499,
-0.06110503152012825,
0.07846132665872574,
-0.13316252827644348,
-0.32581469416618347,
0.4363556504249573,
0.0716327652335167,
0.1930941939353943,
0.23635120689868927,
0.21840626001358032,
-0.23010534048080444,
0.25840961933135986,
-0.030818521976470947,
-0.07956311106681824,
-0.058946818113327026,
0.17917443811893463,
-0.25059670209884644,
0.0937962457537651,
-0.3897891938686371,
-0.10139266401529312,
-0.4083535075187683,
-0.09858011454343796,
0.177219957113266,
-0.08799565583467484,
0.16670404374599457,
-0.34622105956077576,
0.10359318554401398,
0.037529826164245605,
0.21809984743595123,
0.3795768916606903,
0.3196724057197571,
-0.08816679567098618,
-0.05732347443699837,
-0.522614061832428,
0.3419148623943329,
-0.22584347426891327,
-0.5296083092689514,
-0.08779147267341614,
0.04472733289003372,
-0.6105859279632568,
0.07223638892173767,
0.34155401587486267,
0.2679617404937744,
-0.06360816210508347,
0.3222130835056305,
-0.1352425068616867,
-0.31212449073791504,
0.03358732908964157,
0.15257146954536438,
0.07591848820447922,
-0.5940468311309814,
0.2918207347393036,
-0.4170544445514679,
0.1697358936071396,
-0.2700897753238678,
-0.1863705962896347,
-0.011328689754009247,
-0.008855608291924,
0.5608648061752319,
0.15077824890613556,
0.519913911819458,
-0.1912190467119217,
-0.12568287551403046,
-0.46299242973327637,
0.07810118049383163,
-0.11269526183605194,
0.24695242941379547,
0.11667564511299133,
-0.18114429712295532,
0.019152266904711723,
-0.2678036689758301,
-0.06001652777194977,
0.3138542175292969,
-0.036840908229351044,
0.09058009833097458,
-0.057123202830553055,
-0.07280731946229935,
-0.18309298157691956,
0.14881804585456848,
0.08115115761756897,
0.14661413431167603,
-0.3787934184074402,
-0.10185223817825317,
-0.033774785697460175,
-0.5434586405754089,
0.27417105436325073,
-0.26988038420677185,
-0.333262175321579,
-0.2687217593193054,
0.23119118809700012,
-0.4032004475593567,
0.07304029166698456,
-0.022185828536748886,
0.15009690821170807,
0.16583342850208282,
-0.06748402863740921,
0.03998875245451927,
0.2936095893383026,
-0.37484610080718994,
0.040605686604976654,
0.2576873004436493,
0.4179149568080902,
-0.06966275721788406,
-0.1712900996208191,
0.30699968338012695,
-0.2148602157831192
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 16 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | [
0.16129031777381897,
-0.1380540132522583,
-0.020553605630993843,
0.2273857593536377,
0.11762427538633347,
-0.1575976014137268,
0.26700592041015625,
0.29656699299812317,
-0.5154976844787598,
0.2804076373577118,
0.14544202387332916,
0.4508611261844635,
-0.09352847188711166,
-0.18102094531059265,
0.06429947912693024,
-0.05757591873407364,
0.12214265763759613,
0.24844598770141602,
-0.07153445482254028,
-0.23429130017757416,
0.1333339810371399,
0.3007957637310028,
-0.2574562728404999,
-0.06466157734394073,
-0.2737525999546051,
0.08476104587316513,
-0.07666970044374466,
-0.2693383991718292,
-0.053286317735910416,
-0.4953400790691376,
0.15393921732902527,
0.01112260390073061,
0.10494495183229446,
0.333885133266449,
-0.00011551438365131617,
-0.0851757600903511,
0.03693706914782524,
0.09381227195262909,
-0.23824180662631989,
-0.15776199102401733,
-0.09692777693271637,
0.08862289786338806,
-0.06983958929777145,
-0.02705654501914978,
-0.08341070264577866,
0.19374743103981018,
0.052934471517801285,
-0.09816178679466248,
0.5147069096565247,
0.2915842831134796,
0.14006789028644562,
-0.010243181139230728,
-0.25212016701698303,
-0.06595297157764435,
0.3198692202568054,
0.03130759671330452,
0.0850752592086792,
-0.17802099883556366,
0.21372389793395996,
0.03147872909903526,
-0.05166777968406677,
0.6180683374404907,
-0.28133246302604675,
0.3980180323123932,
-0.23591457307338715,
0.12423025071620941,
-0.3711773455142975,
-0.5308330655097961,
0.2668363153934479,
0.21616514027118683,
0.6465563774108887,
-0.2296242117881775,
-0.20446719229221344,
-0.23786184191703796,
0.31990861892700195,
-0.1560651808977127,
-0.04216962307691574,
-0.016178563237190247,
-0.27280235290527344,
0.23506277799606323,
-0.009495165199041367,
0.04764770716428757,
-0.2204015552997589,
0.1288805454969406,
0.055811189115047455,
-0.1074199303984642,
-0.07313627004623413,
0.1385568529367447,
-0.177100270986557,
0.09940959513187408,
-0.0858645960688591,
0.27035829424858093,
-0.14426130056381226,
0.03412558510899544,
-0.14976219832897186,
-0.0674903616309166,
0.1925162822008133,
-0.30494239926338196,
0.2917179763317108,
-0.060219939798116684,
0.38555800914764404,
0.037437789142131805,
-0.1856716126203537,
-0.08810044825077057,
0.3239295482635498,
0.019808191806077957,
-0.023367639631032944,
0.14967654645442963,
0.22989748418331146,
-0.23406901955604553,
-0.2531854808330536,
0.0737159252166748,
-0.014418104663491249,
0.21627378463745117,
0.33187901973724365,
-0.2650298774242401,
0.28292450308799744,
-0.367644727230072,
-0.5658831596374512,
0.06424974650144577,
-0.44003787636756897,
-0.10303855687379837,
-0.25280117988586426,
0.18167364597320557,
0.16933077573776245,
0.30092698335647583,
0.14492502808570862,
0.22267648577690125,
0.0693393424153328,
-0.5628318786621094,
-0.181862011551857,
0.026798289269208908,
0.20986014604568481,
0.03084087185561657,
0.21132875978946686,
-0.32370656728744507,
0.33985117077827454,
0.34173399209976196,
0.1954524964094162,
-0.431598961353302,
-0.2874113619327545,
-0.13017676770687103,
0.025561165064573288,
0.00918591395020485,
-0.026490414515137672,
0.3916679322719574,
0.07382015138864517,
-0.01829017698764801,
0.007235511671751738,
0.06100687384605408,
-0.10655583441257477,
0.006864663679152727,
0.2134016752243042,
0.1364106982946396,
-0.08058805763721466,
-0.16711442172527313,
0.12324830144643784,
0.3605876863002777,
0.07794534415006638,
-0.30087003111839294,
0.003011014312505722,
-0.18274269998073578,
-0.3919641673564911,
-0.03865887597203255,
0.07733127474784851,
0.30246078968048096,
-0.3355480432510376,
0.09542734920978546,
0.17853452265262604,
0.4213982820510864,
0.39447492361068726,
0.24845446646213531,
-0.04651018977165222,
0.37343817949295044,
-0.1168164610862732,
0.30014440417289734,
0.20419789850711823,
-0.4621303975582123,
-0.39205417037010193,
0.21123547852039337,
-0.04960368946194649,
0.24641388654708862,
0.15489087998867035,
-0.16278348863124847,
0.30273357033729553,
0.14270706474781036,
0.37593552470207214,
0.1534786820411682,
0.14573612809181213,
0.03347920998930931,
-0.2446887493133545,
-0.05789254605770111,
0.08683080971240997,
-0.013140824623405933,
0.0021538157016038895,
0.09558330476284027,
0.03703802078962326,
0.23297028243541718,
0.5271515250205994,
0.0745839849114418,
0.09245159476995468,
0.10296731442213058,
0.16596442461013794,
-0.10123149305582047,
0.22397756576538086,
-0.26310065388679504,
0.25648611783981323,
-0.04889748990535736,
0.2068275362253189,
0.28379908204078674,
0.1540316939353943,
0.0793672651052475,
-0.3015449047088623,
-0.21888850629329681,
-0.29918819665908813,
-0.3250727653503418,
0.11458157747983932,
0.325737327337265,
-0.014431516639888287,
0.04204663261771202,
-0.18985819816589355,
0.340990275144577,
-0.22032669186592102,
-0.07418575882911682,
0.02330593578517437,
0.09916515648365021,
0.06385695189237595,
-0.2447071373462677,
0.5248858332633972,
0.2528992295265198,
0.18514926731586456,
0.2016844004392624,
-0.16694092750549316,
0.22355176508426666,
-0.01476768683642149,
0.021967770531773567,
-0.2637168765068054,
-0.32889217138290405,
0.10994819551706314,
-0.5017572045326233,
-0.11139501631259918,
0.234470933675766,
0.3181716799736023,
-0.004500135313719511,
-0.3036756217479706,
-0.1834707409143448,
0.13900797069072723,
0.2569388747215271,
-0.05544385313987732,
-0.06511906534433365,
0.3011586666107178,
0.06625332683324814,
-0.35379913449287415,
-0.3246975243091583,
0.2526895999908447,
-0.23498043417930603,
0.26622143387794495,
0.02028489112854004,
-0.34177690744400024,
0.15859894454479218,
0.3928951621055603,
0.2245115339756012,
0.08520857989788055,
0.2943885922431946,
-0.2468319535255432,
-0.02701767161488533,
-0.1227288618683815,
0.0949118435382843,
0.29076528549194336,
0.28810492157936096,
0.054302703589200974,
-0.3764550983905792,
-0.12874926626682281,
-0.11323264986276627,
0.13933609426021576,
-0.13075652718544006,
-0.35563036799430847,
0.4351167380809784,
0.3585449755191803,
0.08638732880353928,
-0.44938382506370544,
-0.13412883877754211,
-0.14240401983261108,
0.47036728262901306,
-0.3349604904651642,
-0.2316323220729828,
-0.43560534715652466,
-0.12055215239524841,
-0.10900525748729706,
0.06629104912281036,
0.07970362901687622,
0.22555093467235565,
0.21905618906021118,
-0.012712031602859497,
0.005456663202494383,
0.13679929077625275,
0.17199058830738068,
0.2340620905160904,
0.07120537757873535,
0.1117987111210823,
0.0863051488995552,
0.31914013624191284,
-0.30695730447769165,
-0.024270063266158104,
0.0259725209325552,
0.271612286567688,
0.10742910951375961,
-0.1422470360994339,
-0.16390246152877808,
-0.40679624676704407,
0.059018127620220184,
0.26756420731544495,
-0.3301687240600586,
0.5113493204116821,
0.11336309462785721,
0.16024896502494812,
-0.2251661717891693,
-0.31308114528656006,
0.002672378206625581,
-0.026887133717536926,
-0.1686864197254181,
0.3555678129196167,
0.08294320851564407,
-0.005614442750811577,
-0.04825615510344505,
-0.6989753842353821,
0.09939289838075638,
-0.25000911951065063,
0.2359435111284256,
-0.032867249101400375,
0.210378497838974,
0.364136278629303,
0.0606071874499321,
0.08127010613679886,
-0.05871165543794632,
0.20536987483501434,
-0.410209983587265,
-0.2545933127403259,
0.3561108708381653,
0.2606041431427002,
-0.334869384765625,
-0.3405698239803314,
0.05095813050866127,
0.2652951776981354,
-0.03222927451133728,
-0.40010866522789,
0.10035402327775955,
-0.2674662172794342,
0.14534880220890045,
-0.2972606122493744,
0.28261980414390564,
0.3854672312736511,
0.01299393642693758,
-0.1495048850774765,
-0.16922159492969513,
-0.10783372819423676,
0.2658356726169586,
0.3553732633590698,
0.005884075071662664,
0.10114717483520508,
0.06991369277238846,
-0.0593266487121582,
0.3506983816623688,
0.6459594964981079,
0.20251570641994476,
0.26000654697418213,
-0.1765541285276413,
0.09423520416021347,
-0.03249354287981987,
-0.39957985281944275,
0.027079885825514793,
-0.11732474714517593,
-0.06256716698408127,
0.49812012910842896,
-0.08999530225992203,
0.053631413727998734,
-0.16958802938461304,
-0.057277217507362366,
-0.3290625810623169,
-0.16864073276519775,
0.06749255210161209,
-0.23593968152999878,
0.18397429585456848,
0.17477549612522125,
0.052829522639513016,
0.16195206344127655,
0.03473503142595291,
-0.2861661911010742,
-0.2988380789756775,
0.2851739227771759,
-0.14997276663780212,
-0.0820305198431015,
-0.28361114859580994,
-0.3772892653942108,
-0.12410145252943039,
0.13858383893966675,
0.5095543265342712,
-0.21170029044151306,
-0.0375211238861084,
0.3600178360939026,
0.29147812724113464,
0.3810283839702606,
-0.30699458718299866,
0.09087704122066498,
0.01039059367030859,
0.22879087924957275,
0.005507475230842829,
0.005461586639285088,
-0.5205008387565613,
-0.1967584490776062,
-0.047500770539045334,
-0.043032363057136536,
-0.16689297556877136,
-0.008018327876925468,
0.10895929485559464,
0.39274394512176514,
-0.009747415781021118,
-0.24081115424633026,
-0.25576937198638916,
-0.07579302787780762,
-0.330142080783844,
0.16156549751758575,
0.34223127365112305,
0.0443936362862587,
-0.16513366997241974,
-0.12032518535852432,
0.160398930311203,
-0.06275173276662827,
0.5332371592521667,
0.07985947281122208,
0.3751766085624695,
0.07396548241376877,
0.3011752963066101,
0.274840384721756,
-0.3577800691127777,
-0.2591429054737091,
0.3608150780200958,
0.10096914321184158,
-0.14202553033828735,
-0.00367413810454309,
-0.3468615412712097,
0.32895755767822266,
0.49315735697746277,
-0.22319111227989197,
0.24192959070205688,
-0.29706159234046936,
0.25689417123794556,
-0.15294881165027618,
0.09574659913778305,
0.31952816247940063,
-0.07498335093259811,
-0.07518165558576584,
-0.41028690338134766,
0.3822799324989319,
-0.0364944227039814,
-0.19794853031635284,
0.34455108642578125,
0.09091875702142715,
-0.31038233637809753,
0.47125184535980225,
-0.25788408517837524,
0.8118341565132141,
0.22640711069107056,
0.36663028597831726,
0.3155019283294678,
0.13815124332904816,
0.32616445422172546,
-0.19600960612297058,
0.0902332067489624,
-0.022017505019903183,
-0.001816837233491242,
-0.02156050316989422,
0.058343373239040375,
-0.07785698771476746,
-0.04175933822989464,
-0.5769282579421997,
0.17752893269062042,
0.0647168755531311,
0.028871485963463783,
0.18680234253406525,
-0.011851622723042965,
-0.12949608266353607,
-0.10640740394592285,
0.12529924511909485,
0.03257158398628235,
-0.3839384913444519,
0.3074730932712555,
0.3099324405193329,
-0.024295998737215996,
0.03140447661280632,
-0.5837306380271912,
-0.8224815130233765,
-0.030167976394295692,
-0.08251769095659256,
-0.22594060003757477,
-0.19968006014823914,
-0.33362144231796265,
0.3681989312171936,
0.25859951972961426,
0.19155359268188477,
0.32565903663635254,
-0.13796840608119965,
-0.0852641686797142,
0.36824315786361694,
0.27765119075775146,
-0.26795655488967896,
-0.025591833516955376,
0.14451864361763,
-0.08603129535913467,
-0.3883321285247803,
0.17660360038280487,
0.05515820160508156,
0.09896335005760193,
-0.38806578516960144,
0.25383129715919495,
-0.11468029022216797,
-0.2331591099500656,
0.08573773503303528,
0.4289044141769409,
0.14151668548583984,
-0.5119705200195312,
0.10320746898651123,
0.12417197972536087,
-0.45886364579200745,
0.3286850154399872,
0.17258404195308685,
-0.47551974654197693,
-0.06376290321350098,
0.2593401074409485,
0.12836012244224548,
0.00025089102564379573,
0.6646650433540344,
-0.04148265719413757,
0.04838784784078598,
-0.37047579884529114,
0.040697112679481506,
-0.02092878706753254,
-0.2641952633857727,
0.17911243438720703,
0.058663174510002136,
0.17396269738674164,
-0.22652755677700043,
0.2535497546195984,
0.026514360681176186,
0.20480266213417053,
-0.2814755439758301,
-0.3617304861545563,
-0.06197768822312355,
-0.03145395219326019,
0.1234356090426445,
0.055240094661712646,
-0.2911967635154724,
0.11818579584360123,
0.06881601363420486,
0.31860870122909546,
-0.2981918752193451,
0.0059747216291725636,
-0.05179433897137642,
0.2173204869031906,
-0.08404245227575302,
0.08132035285234451,
-0.037809453904628754,
0.08517355471849442,
0.20004026591777802,
0.3185150623321533,
0.06729160249233246,
-0.15987001359462738,
-0.3062141239643097,
0.1838444024324417,
0.04174423590302467,
0.15626439452171326,
-0.04076856002211571,
0.10010576248168945,
0.1492387056350708,
-0.1337081789970398,
-0.10101119428873062,
0.334582656621933,
0.12536202371120453,
0.21837842464447021,
-0.029632417485117912,
0.03707204386591911,
0.1851569265127182,
-0.15986455976963043,
-0.1839771419763565,
-0.172458678483963,
0.33998581767082214,
0.18061360716819763,
0.04874395951628685,
-0.04819568619132042,
0.11862507462501526,
0.03992384672164917,
-0.13405188918113708,
0.11869537830352783,
-0.07783444970846176,
-0.2655766010284424,
0.1333700716495514,
0.28768590092658997,
-0.119479238986969,
0.3786885142326355,
-0.34599369764328003,
-0.11189965903759003,
0.09119497239589691,
0.2351439744234085,
-0.2654985785484314,
-0.1237107515335083,
-0.323249876499176,
-0.10655076801776886,
-0.05830879881978035,
0.27840471267700195,
-0.05983109399676323,
-0.4723799228668213,
0.12146705389022827,
-0.06493828445672989,
0.3360198438167572,
-0.5360026359558105,
-0.07342168688774109,
0.3985145390033722,
0.01497412659227848,
-0.36112016439437866,
-0.1933409869670868,
-0.015196992084383965,
0.02080165222287178,
0.545098602771759,
-0.36754390597343445,
0.13735799491405487,
-0.33860594034194946,
0.026388093829154968,
0.1915484219789505,
0.02560487389564514,
-0.03821989521384239,
0.40564191341400146,
-0.32718825340270996,
-0.04896286875009537,
-0.07162456959486008,
0.30504757165908813,
-0.1176728680729866,
0.033445704728364944,
-0.1280478686094284,
-0.05141457915306091,
-0.1239193007349968,
-0.12486206740140915,
-0.33803993463516235,
-0.27342891693115234,
-0.23037627339363098,
0.006182097364217043,
0.097541943192482,
-0.012555671855807304,
0.1405140459537506,
0.1916218400001526,
-0.26688432693481445,
-0.5332417488098145,
-0.19809405505657196,
-0.037783779203891754,
0.17207667231559753,
-0.390032023191452,
0.3403877019882202,
0.3084273934364319,
-0.22176991403102875,
0.2584379017353058,
0.24336442351341248,
0.519983172416687,
0.07158105820417404,
0.033447276800870895,
0.10651924461126328,
-0.5706883668899536,
-0.09190265089273453,
-0.051722537726163864,
0.3297680616378784,
-0.12424173206090927,
0.05875599384307861,
0.021863723173737526,
0.015872806310653687,
-0.09563980996608734,
0.029347727075219154,
0.22854650020599365,
-0.07562584429979324,
-0.5632570385932922,
0.21907790005207062,
-0.14116211235523224,
0.1117323562502861,
0.04065860062837601,
0.07498443871736526,
-0.47366926074028015,
0.4417385458946228,
0.342167466878891,
0.05759616568684578,
-0.010626780800521374,
0.00219025113619864,
0.08138876408338547,
-0.12637458741664886,
-0.11261280626058578,
0.26730480790138245,
0.15798674523830414,
-0.2770342230796814,
-0.15913544595241547,
-0.6735785603523254,
-0.0714835599064827,
-0.048805225640535355,
-0.004952764604240656,
0.0006286432035267353,
0.11898061633110046,
0.1586841493844986,
0.1362602412700653,
0.06926517933607101,
-0.026040753349661827,
-0.5322325825691223,
0.3291487395763397,
-0.21546295285224915,
-0.0053817229345440865,
-0.08778760582208633,
0.4366607069969177,
0.04148931801319122,
-0.10649824887514114,
0.01083523128181696,
0.09469112008810043,
0.03401884064078331,
0.06554783880710602,
0.005946216639131308,
0.01756274327635765,
-0.12066161632537842,
0.15823885798454285,
0.14234521985054016,
0.17081496119499207,
-0.23485422134399414,
0.18956536054611206,
-0.28325796127319336,
0.02929283306002617,
-0.19824345409870148,
0.15615646541118622,
0.2698149085044861,
0.5158424377441406,
-0.18345138430595398,
-0.0686844065785408,
-0.06360107660293579,
0.16536100208759308,
0.11124467104673386,
-0.06495928764343262,
-0.19141264259815216,
0.08976943045854568,
-0.00870022177696228,
0.27149662375450134,
-0.2622263729572296,
0.10594266653060913,
0.0038293928373605013,
0.0026382741052657366,
-0.4920395612716675,
-0.7109149694442749,
0.4522460103034973,
-0.403315007686615,
-0.5287761688232422,
-0.07965649664402008,
0.5906725525856018,
0.24035461246967316,
-0.03215355798602104,
-0.7086962461471558,
-0.03599023073911667,
0.3959988057613373,
0.24434871971607208,
-0.3021707832813263,
0.2129857838153839,
0.12193944305181503,
0.008531047962605953,
0.014424755237996578,
0.6226142048835754,
0.310524582862854,
-0.23275485634803772,
0.2679712772369385,
-0.46045801043510437
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 34 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | [
0.16129031777381897,
-0.1380540132522583,
-0.020553605630993843,
0.2273857593536377,
0.11762427538633347,
-0.1575976014137268,
0.26700592041015625,
0.29656699299812317,
-0.5154976844787598,
0.2804076373577118,
0.14544202387332916,
0.4508611261844635,
-0.09352847188711166,
-0.18102094531059265,
0.06429947912693024,
-0.05757591873407364,
0.12214265763759613,
0.24844598770141602,
-0.07153445482254028,
-0.23429130017757416,
0.1333339810371399,
0.3007957637310028,
-0.2574562728404999,
-0.06466157734394073,
-0.2737525999546051,
0.08476104587316513,
-0.07666970044374466,
-0.2693383991718292,
-0.053286317735910416,
-0.4953400790691376,
0.15393921732902527,
0.01112260390073061,
0.10494495183229446,
0.333885133266449,
-0.00011551438365131617,
-0.0851757600903511,
0.03693706914782524,
0.09381227195262909,
-0.23824180662631989,
-0.15776199102401733,
-0.09692777693271637,
0.08862289786338806,
-0.06983958929777145,
-0.02705654501914978,
-0.08341070264577866,
0.19374743103981018,
0.052934471517801285,
-0.09816178679466248,
0.5147069096565247,
0.2915842831134796,
0.14006789028644562,
-0.010243181139230728,
-0.25212016701698303,
-0.06595297157764435,
0.3198692202568054,
0.03130759671330452,
0.0850752592086792,
-0.17802099883556366,
0.21372389793395996,
0.03147872909903526,
-0.05166777968406677,
0.6180683374404907,
-0.28133246302604675,
0.3980180323123932,
-0.23591457307338715,
0.12423025071620941,
-0.3711773455142975,
-0.5308330655097961,
0.2668363153934479,
0.21616514027118683,
0.6465563774108887,
-0.2296242117881775,
-0.20446719229221344,
-0.23786184191703796,
0.31990861892700195,
-0.1560651808977127,
-0.04216962307691574,
-0.016178563237190247,
-0.27280235290527344,
0.23506277799606323,
-0.009495165199041367,
0.04764770716428757,
-0.2204015552997589,
0.1288805454969406,
0.055811189115047455,
-0.1074199303984642,
-0.07313627004623413,
0.1385568529367447,
-0.177100270986557,
0.09940959513187408,
-0.0858645960688591,
0.27035829424858093,
-0.14426130056381226,
0.03412558510899544,
-0.14976219832897186,
-0.0674903616309166,
0.1925162822008133,
-0.30494239926338196,
0.2917179763317108,
-0.060219939798116684,
0.38555800914764404,
0.037437789142131805,
-0.1856716126203537,
-0.08810044825077057,
0.3239295482635498,
0.019808191806077957,
-0.023367639631032944,
0.14967654645442963,
0.22989748418331146,
-0.23406901955604553,
-0.2531854808330536,
0.0737159252166748,
-0.014418104663491249,
0.21627378463745117,
0.33187901973724365,
-0.2650298774242401,
0.28292450308799744,
-0.367644727230072,
-0.5658831596374512,
0.06424974650144577,
-0.44003787636756897,
-0.10303855687379837,
-0.25280117988586426,
0.18167364597320557,
0.16933077573776245,
0.30092698335647583,
0.14492502808570862,
0.22267648577690125,
0.0693393424153328,
-0.5628318786621094,
-0.181862011551857,
0.026798289269208908,
0.20986014604568481,
0.03084087185561657,
0.21132875978946686,
-0.32370656728744507,
0.33985117077827454,
0.34173399209976196,
0.1954524964094162,
-0.431598961353302,
-0.2874113619327545,
-0.13017676770687103,
0.025561165064573288,
0.00918591395020485,
-0.026490414515137672,
0.3916679322719574,
0.07382015138864517,
-0.01829017698764801,
0.007235511671751738,
0.06100687384605408,
-0.10655583441257477,
0.006864663679152727,
0.2134016752243042,
0.1364106982946396,
-0.08058805763721466,
-0.16711442172527313,
0.12324830144643784,
0.3605876863002777,
0.07794534415006638,
-0.30087003111839294,
0.003011014312505722,
-0.18274269998073578,
-0.3919641673564911,
-0.03865887597203255,
0.07733127474784851,
0.30246078968048096,
-0.3355480432510376,
0.09542734920978546,
0.17853452265262604,
0.4213982820510864,
0.39447492361068726,
0.24845446646213531,
-0.04651018977165222,
0.37343817949295044,
-0.1168164610862732,
0.30014440417289734,
0.20419789850711823,
-0.4621303975582123,
-0.39205417037010193,
0.21123547852039337,
-0.04960368946194649,
0.24641388654708862,
0.15489087998867035,
-0.16278348863124847,
0.30273357033729553,
0.14270706474781036,
0.37593552470207214,
0.1534786820411682,
0.14573612809181213,
0.03347920998930931,
-0.2446887493133545,
-0.05789254605770111,
0.08683080971240997,
-0.013140824623405933,
0.0021538157016038895,
0.09558330476284027,
0.03703802078962326,
0.23297028243541718,
0.5271515250205994,
0.0745839849114418,
0.09245159476995468,
0.10296731442213058,
0.16596442461013794,
-0.10123149305582047,
0.22397756576538086,
-0.26310065388679504,
0.25648611783981323,
-0.04889748990535736,
0.2068275362253189,
0.28379908204078674,
0.1540316939353943,
0.0793672651052475,
-0.3015449047088623,
-0.21888850629329681,
-0.29918819665908813,
-0.3250727653503418,
0.11458157747983932,
0.325737327337265,
-0.014431516639888287,
0.04204663261771202,
-0.18985819816589355,
0.340990275144577,
-0.22032669186592102,
-0.07418575882911682,
0.02330593578517437,
0.09916515648365021,
0.06385695189237595,
-0.2447071373462677,
0.5248858332633972,
0.2528992295265198,
0.18514926731586456,
0.2016844004392624,
-0.16694092750549316,
0.22355176508426666,
-0.01476768683642149,
0.021967770531773567,
-0.2637168765068054,
-0.32889217138290405,
0.10994819551706314,
-0.5017572045326233,
-0.11139501631259918,
0.234470933675766,
0.3181716799736023,
-0.004500135313719511,
-0.3036756217479706,
-0.1834707409143448,
0.13900797069072723,
0.2569388747215271,
-0.05544385313987732,
-0.06511906534433365,
0.3011586666107178,
0.06625332683324814,
-0.35379913449287415,
-0.3246975243091583,
0.2526895999908447,
-0.23498043417930603,
0.26622143387794495,
0.02028489112854004,
-0.34177690744400024,
0.15859894454479218,
0.3928951621055603,
0.2245115339756012,
0.08520857989788055,
0.2943885922431946,
-0.2468319535255432,
-0.02701767161488533,
-0.1227288618683815,
0.0949118435382843,
0.29076528549194336,
0.28810492157936096,
0.054302703589200974,
-0.3764550983905792,
-0.12874926626682281,
-0.11323264986276627,
0.13933609426021576,
-0.13075652718544006,
-0.35563036799430847,
0.4351167380809784,
0.3585449755191803,
0.08638732880353928,
-0.44938382506370544,
-0.13412883877754211,
-0.14240401983261108,
0.47036728262901306,
-0.3349604904651642,
-0.2316323220729828,
-0.43560534715652466,
-0.12055215239524841,
-0.10900525748729706,
0.06629104912281036,
0.07970362901687622,
0.22555093467235565,
0.21905618906021118,
-0.012712031602859497,
0.005456663202494383,
0.13679929077625275,
0.17199058830738068,
0.2340620905160904,
0.07120537757873535,
0.1117987111210823,
0.0863051488995552,
0.31914013624191284,
-0.30695730447769165,
-0.024270063266158104,
0.0259725209325552,
0.271612286567688,
0.10742910951375961,
-0.1422470360994339,
-0.16390246152877808,
-0.40679624676704407,
0.059018127620220184,
0.26756420731544495,
-0.3301687240600586,
0.5113493204116821,
0.11336309462785721,
0.16024896502494812,
-0.2251661717891693,
-0.31308114528656006,
0.002672378206625581,
-0.026887133717536926,
-0.1686864197254181,
0.3555678129196167,
0.08294320851564407,
-0.005614442750811577,
-0.04825615510344505,
-0.6989753842353821,
0.09939289838075638,
-0.25000911951065063,
0.2359435111284256,
-0.032867249101400375,
0.210378497838974,
0.364136278629303,
0.0606071874499321,
0.08127010613679886,
-0.05871165543794632,
0.20536987483501434,
-0.410209983587265,
-0.2545933127403259,
0.3561108708381653,
0.2606041431427002,
-0.334869384765625,
-0.3405698239803314,
0.05095813050866127,
0.2652951776981354,
-0.03222927451133728,
-0.40010866522789,
0.10035402327775955,
-0.2674662172794342,
0.14534880220890045,
-0.2972606122493744,
0.28261980414390564,
0.3854672312736511,
0.01299393642693758,
-0.1495048850774765,
-0.16922159492969513,
-0.10783372819423676,
0.2658356726169586,
0.3553732633590698,
0.005884075071662664,
0.10114717483520508,
0.06991369277238846,
-0.0593266487121582,
0.3506983816623688,
0.6459594964981079,
0.20251570641994476,
0.26000654697418213,
-0.1765541285276413,
0.09423520416021347,
-0.03249354287981987,
-0.39957985281944275,
0.027079885825514793,
-0.11732474714517593,
-0.06256716698408127,
0.49812012910842896,
-0.08999530225992203,
0.053631413727998734,
-0.16958802938461304,
-0.057277217507362366,
-0.3290625810623169,
-0.16864073276519775,
0.06749255210161209,
-0.23593968152999878,
0.18397429585456848,
0.17477549612522125,
0.052829522639513016,
0.16195206344127655,
0.03473503142595291,
-0.2861661911010742,
-0.2988380789756775,
0.2851739227771759,
-0.14997276663780212,
-0.0820305198431015,
-0.28361114859580994,
-0.3772892653942108,
-0.12410145252943039,
0.13858383893966675,
0.5095543265342712,
-0.21170029044151306,
-0.0375211238861084,
0.3600178360939026,
0.29147812724113464,
0.3810283839702606,
-0.30699458718299866,
0.09087704122066498,
0.01039059367030859,
0.22879087924957275,
0.005507475230842829,
0.005461586639285088,
-0.5205008387565613,
-0.1967584490776062,
-0.047500770539045334,
-0.043032363057136536,
-0.16689297556877136,
-0.008018327876925468,
0.10895929485559464,
0.39274394512176514,
-0.009747415781021118,
-0.24081115424633026,
-0.25576937198638916,
-0.07579302787780762,
-0.330142080783844,
0.16156549751758575,
0.34223127365112305,
0.0443936362862587,
-0.16513366997241974,
-0.12032518535852432,
0.160398930311203,
-0.06275173276662827,
0.5332371592521667,
0.07985947281122208,
0.3751766085624695,
0.07396548241376877,
0.3011752963066101,
0.274840384721756,
-0.3577800691127777,
-0.2591429054737091,
0.3608150780200958,
0.10096914321184158,
-0.14202553033828735,
-0.00367413810454309,
-0.3468615412712097,
0.32895755767822266,
0.49315735697746277,
-0.22319111227989197,
0.24192959070205688,
-0.29706159234046936,
0.25689417123794556,
-0.15294881165027618,
0.09574659913778305,
0.31952816247940063,
-0.07498335093259811,
-0.07518165558576584,
-0.41028690338134766,
0.3822799324989319,
-0.0364944227039814,
-0.19794853031635284,
0.34455108642578125,
0.09091875702142715,
-0.31038233637809753,
0.47125184535980225,
-0.25788408517837524,
0.8118341565132141,
0.22640711069107056,
0.36663028597831726,
0.3155019283294678,
0.13815124332904816,
0.32616445422172546,
-0.19600960612297058,
0.0902332067489624,
-0.022017505019903183,
-0.001816837233491242,
-0.02156050316989422,
0.058343373239040375,
-0.07785698771476746,
-0.04175933822989464,
-0.5769282579421997,
0.17752893269062042,
0.0647168755531311,
0.028871485963463783,
0.18680234253406525,
-0.011851622723042965,
-0.12949608266353607,
-0.10640740394592285,
0.12529924511909485,
0.03257158398628235,
-0.3839384913444519,
0.3074730932712555,
0.3099324405193329,
-0.024295998737215996,
0.03140447661280632,
-0.5837306380271912,
-0.8224815130233765,
-0.030167976394295692,
-0.08251769095659256,
-0.22594060003757477,
-0.19968006014823914,
-0.33362144231796265,
0.3681989312171936,
0.25859951972961426,
0.19155359268188477,
0.32565903663635254,
-0.13796840608119965,
-0.0852641686797142,
0.36824315786361694,
0.27765119075775146,
-0.26795655488967896,
-0.025591833516955376,
0.14451864361763,
-0.08603129535913467,
-0.3883321285247803,
0.17660360038280487,
0.05515820160508156,
0.09896335005760193,
-0.38806578516960144,
0.25383129715919495,
-0.11468029022216797,
-0.2331591099500656,
0.08573773503303528,
0.4289044141769409,
0.14151668548583984,
-0.5119705200195312,
0.10320746898651123,
0.12417197972536087,
-0.45886364579200745,
0.3286850154399872,
0.17258404195308685,
-0.47551974654197693,
-0.06376290321350098,
0.2593401074409485,
0.12836012244224548,
0.00025089102564379573,
0.6646650433540344,
-0.04148265719413757,
0.04838784784078598,
-0.37047579884529114,
0.040697112679481506,
-0.02092878706753254,
-0.2641952633857727,
0.17911243438720703,
0.058663174510002136,
0.17396269738674164,
-0.22652755677700043,
0.2535497546195984,
0.026514360681176186,
0.20480266213417053,
-0.2814755439758301,
-0.3617304861545563,
-0.06197768822312355,
-0.03145395219326019,
0.1234356090426445,
0.055240094661712646,
-0.2911967635154724,
0.11818579584360123,
0.06881601363420486,
0.31860870122909546,
-0.2981918752193451,
0.0059747216291725636,
-0.05179433897137642,
0.2173204869031906,
-0.08404245227575302,
0.08132035285234451,
-0.037809453904628754,
0.08517355471849442,
0.20004026591777802,
0.3185150623321533,
0.06729160249233246,
-0.15987001359462738,
-0.3062141239643097,
0.1838444024324417,
0.04174423590302467,
0.15626439452171326,
-0.04076856002211571,
0.10010576248168945,
0.1492387056350708,
-0.1337081789970398,
-0.10101119428873062,
0.334582656621933,
0.12536202371120453,
0.21837842464447021,
-0.029632417485117912,
0.03707204386591911,
0.1851569265127182,
-0.15986455976963043,
-0.1839771419763565,
-0.172458678483963,
0.33998581767082214,
0.18061360716819763,
0.04874395951628685,
-0.04819568619132042,
0.11862507462501526,
0.03992384672164917,
-0.13405188918113708,
0.11869537830352783,
-0.07783444970846176,
-0.2655766010284424,
0.1333700716495514,
0.28768590092658997,
-0.119479238986969,
0.3786885142326355,
-0.34599369764328003,
-0.11189965903759003,
0.09119497239589691,
0.2351439744234085,
-0.2654985785484314,
-0.1237107515335083,
-0.323249876499176,
-0.10655076801776886,
-0.05830879881978035,
0.27840471267700195,
-0.05983109399676323,
-0.4723799228668213,
0.12146705389022827,
-0.06493828445672989,
0.3360198438167572,
-0.5360026359558105,
-0.07342168688774109,
0.3985145390033722,
0.01497412659227848,
-0.36112016439437866,
-0.1933409869670868,
-0.015196992084383965,
0.02080165222287178,
0.545098602771759,
-0.36754390597343445,
0.13735799491405487,
-0.33860594034194946,
0.026388093829154968,
0.1915484219789505,
0.02560487389564514,
-0.03821989521384239,
0.40564191341400146,
-0.32718825340270996,
-0.04896286875009537,
-0.07162456959486008,
0.30504757165908813,
-0.1176728680729866,
0.033445704728364944,
-0.1280478686094284,
-0.05141457915306091,
-0.1239193007349968,
-0.12486206740140915,
-0.33803993463516235,
-0.27342891693115234,
-0.23037627339363098,
0.006182097364217043,
0.097541943192482,
-0.012555671855807304,
0.1405140459537506,
0.1916218400001526,
-0.26688432693481445,
-0.5332417488098145,
-0.19809405505657196,
-0.037783779203891754,
0.17207667231559753,
-0.390032023191452,
0.3403877019882202,
0.3084273934364319,
-0.22176991403102875,
0.2584379017353058,
0.24336442351341248,
0.519983172416687,
0.07158105820417404,
0.033447276800870895,
0.10651924461126328,
-0.5706883668899536,
-0.09190265089273453,
-0.051722537726163864,
0.3297680616378784,
-0.12424173206090927,
0.05875599384307861,
0.021863723173737526,
0.015872806310653687,
-0.09563980996608734,
0.029347727075219154,
0.22854650020599365,
-0.07562584429979324,
-0.5632570385932922,
0.21907790005207062,
-0.14116211235523224,
0.1117323562502861,
0.04065860062837601,
0.07498443871736526,
-0.47366926074028015,
0.4417385458946228,
0.342167466878891,
0.05759616568684578,
-0.010626780800521374,
0.00219025113619864,
0.08138876408338547,
-0.12637458741664886,
-0.11261280626058578,
0.26730480790138245,
0.15798674523830414,
-0.2770342230796814,
-0.15913544595241547,
-0.6735785603523254,
-0.0714835599064827,
-0.048805225640535355,
-0.004952764604240656,
0.0006286432035267353,
0.11898061633110046,
0.1586841493844986,
0.1362602412700653,
0.06926517933607101,
-0.026040753349661827,
-0.5322325825691223,
0.3291487395763397,
-0.21546295285224915,
-0.0053817229345440865,
-0.08778760582208633,
0.4366607069969177,
0.04148931801319122,
-0.10649824887514114,
0.01083523128181696,
0.09469112008810043,
0.03401884064078331,
0.06554783880710602,
0.005946216639131308,
0.01756274327635765,
-0.12066161632537842,
0.15823885798454285,
0.14234521985054016,
0.17081496119499207,
-0.23485422134399414,
0.18956536054611206,
-0.28325796127319336,
0.02929283306002617,
-0.19824345409870148,
0.15615646541118622,
0.2698149085044861,
0.5158424377441406,
-0.18345138430595398,
-0.0686844065785408,
-0.06360107660293579,
0.16536100208759308,
0.11124467104673386,
-0.06495928764343262,
-0.19141264259815216,
0.08976943045854568,
-0.00870022177696228,
0.27149662375450134,
-0.2622263729572296,
0.10594266653060913,
0.0038293928373605013,
0.0026382741052657366,
-0.4920395612716675,
-0.7109149694442749,
0.4522460103034973,
-0.403315007686615,
-0.5287761688232422,
-0.07965649664402008,
0.5906725525856018,
0.24035461246967316,
-0.03215355798602104,
-0.7086962461471558,
-0.03599023073911667,
0.3959988057613373,
0.24434871971607208,
-0.3021707832813263,
0.2129857838153839,
0.12193944305181503,
0.008531047962605953,
0.014424755237996578,
0.6226142048835754,
0.310524582862854,
-0.23275485634803772,
0.2679712772369385,
-0.46045801043510437
] |
https://github.com/huggingface/datasets/issues/2904 | FORCE_REDOWNLOAD does not work | Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | ## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 99 | FORCE_REDOWNLOAD does not work
## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | [
-0.12534019351005554,
0.02078034169971943,
0.01851324364542961,
0.025714252144098282,
0.18210448324680328,
0.025193462148308754,
0.4788658916950226,
0.24383318424224854,
0.14579597115516663,
-0.23386971652507782,
-0.11628277599811554,
0.2687395215034485,
0.08507492393255234,
0.11211267858743668,
-0.01320269051939249,
0.3137483596801758,
0.1101020872592926,
0.2144833356142044,
-0.0722498968243599,
-0.005192765034735203,
-0.2910996973514557,
0.0634419396519661,
-0.18331824243068695,
-0.21956385672092438,
-0.20657651126384735,
0.29379916191101074,
-0.04269350692629814,
0.30260851979255676,
0.008405971340835094,
-0.37312039732933044,
0.18368098139762878,
0.25500670075416565,
0.18209755420684814,
0.6611079573631287,
-0.0001097160202334635,
0.061788398772478104,
0.1586238592863083,
-0.17931517958641052,
-0.1704430878162384,
-0.18580830097198486,
0.041996218264102936,
-0.04552863910794258,
-0.3461465537548065,
-0.08420885354280472,
-0.0005325815291143954,
-0.22075313329696655,
-0.1748756617307663,
-0.3461504876613617,
0.5304937362670898,
0.402801513671875,
0.23200711607933044,
-0.11041615903377533,
0.12024058401584625,
-0.07211793959140778,
0.17871244251728058,
0.1414143443107605,
-0.06995248794555664,
0.3557817339897156,
0.10452524572610855,
-0.20722325146198273,
-0.09063087403774261,
0.07144738733768463,
-0.1301327347755432,
0.051593177020549774,
-0.10077686607837677,
-0.026638390496373177,
0.3280925452709198,
-0.13608980178833008,
0.08565703779459,
0.1706220805644989,
0.6073062419891357,
-0.33771204948425293,
-0.41728442907333374,
0.007284526247531176,
0.018313923850655556,
-0.24427689611911774,
0.1650238037109375,
0.17924897372722626,
-0.007418763358145952,
0.3686659336090088,
-0.01261986419558525,
-0.02545204758644104,
0.0721382275223732,
-0.19480609893798828,
-0.030857687816023827,
-0.11782002449035645,
-0.10041670501232147,
-0.03621332719922066,
0.05162082985043526,
0.060248345136642456,
0.4213588535785675,
-0.021616192534565926,
-0.056680817157030106,
0.03428543731570244,
-0.02915239706635475,
-0.13422058522701263,
0.21530650556087494,
-0.3018360733985901,
0.07473673671483994,
-0.028192313387989998,
-0.07644761353731155,
-0.10773561149835587,
-0.059202227741479874,
0.04897985979914665,
0.07386142015457153,
0.2261446863412857,
-0.13872556388378143,
-0.09012013673782349,
0.3910105228424072,
0.17674121260643005,
-0.25137853622436523,
-0.07261870056390762,
0.029412871226668358,
-0.202727273106575,
0.5261004567146301,
-0.06476002186536789,
0.2614034116268158,
-0.1472218930721283,
-0.40446189045906067,
-0.01818140409886837,
-0.10707840323448181,
0.003265222068876028,
-0.274264395236969,
0.17676229774951935,
0.020774634554982185,
0.35306546092033386,
0.13414546847343445,
0.1856253296136856,
0.05813946947455406,
-0.20635703206062317,
-0.22263367474079132,
-0.12268716841936111,
-0.30918410420417786,
0.025152010843157768,
0.29478344321250916,
-0.17088261246681213,
0.3440059423446655,
0.5470415353775024,
-0.3297728896141052,
-0.5027303099632263,
-0.062135063111782074,
-0.03143242746591568,
0.14525175094604492,
0.29647350311279297,
-0.06330341100692749,
-0.08639830350875854,
0.26669952273368835,
-0.09013661742210388,
-0.016840049996972084,
0.355297327041626,
-0.09144729375839233,
-0.3069288730621338,
0.14365419745445251,
0.19756388664245605,
0.05110614746809006,
0.19584870338439941,
-0.12795069813728333,
0.015527860261499882,
0.30427223443984985,
-0.07051930576562881,
-0.04579640179872513,
-0.050077952444553375,
-0.013653249479830265,
-0.24845163524150848,
0.047666821628808975,
0.733782947063446,
-0.46811625361442566,
0.008141770027577877,
-0.29220107197761536,
-0.0890842080116272,
0.24045436084270477,
0.07852472364902496,
0.004703151993453503,
0.04239272326231003,
-0.4686901569366455,
-0.3603314459323883,
0.16675840318202972,
-0.1669526845216751,
-0.4369601011276245,
0.005820767022669315,
-0.21424207091331482,
0.25753310322761536,
0.16651500761508942,
-0.04497886821627617,
-0.15013587474822998,
-0.01723400130867958,
0.09704820811748505,
0.24900712072849274,
0.09239392727613449,
0.044823504984378815,
-0.32461726665496826,
-0.2888210713863373,
0.0455683209002018,
-0.1329660415649414,
0.2855157256126404,
0.4056812822818756,
0.35214361548423767,
0.1666208654642105,
0.36993882060050964,
0.062592513859272,
0.015510057099163532,
0.014386450871825218,
0.3367367386817932,
-0.01800963282585144,
0.03307594358921051,
0.1765211522579193,
-0.5221682190895081,
0.30751779675483704,
-0.03360413387417793,
-0.2515624463558197,
0.07289617508649826,
-0.07019562274217606,
-0.5719497203826904,
-0.22833910584449768,
-0.07209762185811996,
-0.38775426149368286,
0.17254778742790222,
0.4713421165943146,
-0.033435214310884476,
0.018499013036489487,
-0.14348915219306946,
0.47259804606437683,
-0.3845011591911316,
-0.04807133972644806,
-0.04130111262202263,
0.28551965951919556,
-0.19322766363620758,
-0.18146087229251862,
-0.21956834197044373,
-0.11879631131887436,
0.24479442834854126,
-0.16257469356060028,
-0.12155905365943909,
0.4299699366092682,
0.18604804575443268,
0.27208659052848816,
-0.36191368103027344,
-0.19503721594810486,
0.1652197539806366,
-0.016062842682003975,
-0.14654868841171265,
0.11854605376720428,
0.24596841633319855,
-0.07762633264064789,
-0.01739545911550522,
0.2789049744606018,
-0.40310025215148926,
-0.0885872021317482,
0.07137481123209,
-0.04621913656592369,
0.2666130065917969,
-0.2367842197418213,
0.28281763195991516,
-0.34039777517318726,
-0.3403315246105194,
0.2947017252445221,
0.0018238438060507178,
0.1279277205467224,
0.09892487525939941,
0.11211565136909485,
0.28677937388420105,
0.006671548821032047,
0.04751832038164139,
-0.08901215344667435,
-0.17656539380550385,
-0.29456332325935364,
0.013121017254889011,
0.35000133514404297,
0.5929617285728455,
0.16572600603103638,
-0.016661541536450386,
0.1451728343963623,
-0.058307260274887085,
-0.25380903482437134,
0.2043859213590622,
-0.2613338232040405,
-0.006470177322626114,
0.33118265867233276,
0.18785230815410614,
0.07633639872074127,
-0.6370834708213806,
0.18601536750793457,
0.5140926837921143,
0.21180230379104614,
-0.21951523423194885,
-0.19098509848117828,
-0.16736453771591187,
0.41251540184020996,
0.0630168691277504,
0.14355091750621796,
-0.030056525021791458,
-0.10656693577766418,
-0.13827311992645264,
0.5955287218093872,
-0.058999013155698776,
0.07329191267490387,
-0.1850811243057251,
-0.07492594420909882,
-0.04616646096110344,
-0.142696812748909,
-0.14728058874607086,
-0.1764150857925415,
-0.1414826512336731,
0.09109583497047424,
0.23135820031166077,
-0.34192267060279846,
0.14773117005825043,
-0.18287667632102966,
-0.12675683200359344,
-0.32676199078559875,
-0.0833430215716362,
-0.1293945461511612,
0.03400430083274841,
0.22240158915519714,
-0.22504904866218567,
0.14713768661022186,
0.1697576940059662,
0.03256837651133537,
-0.00471514742821455,
-0.3554544448852539,
-0.3341686427593231,
-0.10292857140302658,
0.1512000411748886,
0.263375848531723,
-0.26001104712486267,
-0.4554555416107178,
0.1090230718255043,
-0.3711393475532532,
-0.04065723344683647,
0.10156098008155823,
-0.09197595715522766,
0.3833361864089966,
0.22381152212619781,
-0.031083105131983757,
0.4020080864429474,
0.26988327503204346,
-0.4376192092895508,
-0.2790605425834656,
0.08050375431776047,
-0.10147761553525925,
-0.26337024569511414,
0.01479132380336523,
0.06091536208987236,
-0.012120112776756287,
0.273706316947937,
-0.4307677745819092,
-0.08452610671520233,
-0.2824062407016754,
0.08377833664417267,
-0.05857499688863754,
0.23369616270065308,
0.2081228643655777,
0.12076064199209213,
-0.21364115178585052,
-0.10407991707324982,
-0.09567862749099731,
-0.04149549454450607,
0.23349164426326752,
0.1269829422235489,
0.0212046317756176,
0.2292778193950653,
0.09353939443826675,
0.6404242515563965,
0.050309836864471436,
-0.12548093497753143,
0.5086992979049683,
0.12542350590229034,
0.729485273361206,
-0.0740368440747261,
-0.3390607237815857,
-0.005634673871099949,
-0.18458408117294312,
0.31925737857818604,
0.04202868789434433,
-0.106196828186512,
0.13098008930683136,
-0.15642307698726654,
0.024227507412433624,
-0.1678122729063034,
-0.2236509919166565,
-0.11790914088487625,
-0.2493901401758194,
-0.022044090554118156,
0.314230352640152,
-0.10476396977901459,
-0.13416582345962524,
0.08138097077608109,
-0.018525609746575356,
0.08762780576944351,
0.32204148173332214,
0.08849232643842697,
0.0994391217827797,
0.5284662246704102,
-0.10808121412992477,
-0.013339024037122726,
-0.08779767900705338,
0.3645618259906769,
0.20407254993915558,
-0.2023826688528061,
0.058592453598976135,
-0.023118076846003532,
0.7181990146636963,
-0.21944651007652283,
0.31329092383384705,
0.22869490087032318,
0.011423034593462944,
-0.0870223119854927,
-0.19676563143730164,
0.10326176136732101,
-0.1487743854522705,
0.18870948255062103,
0.36492910981178284,
0.037547774612903595,
0.039001550525426865,
-0.10035747289657593,
0.2032172977924347,
0.06212878227233887,
-0.16297239065170288,
-0.2788122594356537,
-0.15997222065925598,
-0.4588591158390045,
0.31173378229141235,
0.1915876865386963,
0.08900442719459534,
-0.32088717818260193,
0.08463439345359802,
-0.24782401323318481,
-0.4116816222667694,
-0.039584871381521225,
0.19514153897762299,
0.20081910490989685,
0.11396059393882751,
0.048987094312906265,
-0.016183145344257355,
-0.11711530387401581,
0.2674767076969147,
0.4194466173648834,
-0.16499197483062744,
0.06672894954681396,
-0.1280570924282074,
0.10939564555883408,
-0.06758137047290802,
0.3193867802619934,
-0.06579616665840149,
-0.1120612844824791,
-0.3978951573371887,
-0.16188210248947144,
0.06209699064493179,
0.06734616309404373,
0.002971675479784608,
-0.33545809984207153,
-0.09545086324214935,
-0.4370097517967224,
0.28718534111976624,
-0.06821713596582413,
-0.051598064601421356,
0.4572840929031372,
0.23643247783184052,
-0.20391163229942322,
0.16251656413078308,
0.05289405956864357,
0.8192448616027832,
-0.1221480444073677,
0.16519224643707275,
0.03279055282473564,
-0.05938706919550896,
0.4034759998321533,
-0.28868234157562256,
0.19405922293663025,
-0.17677371203899384,
-0.30612343549728394,
0.1044934093952179,
-0.04080811142921448,
0.23287995159626007,
0.20792250335216522,
-0.12640444934368134,
0.13854002952575684,
-0.0984726995229721,
0.41676652431488037,
0.2764783501625061,
-0.003026405582204461,
-0.22247028350830078,
-0.14139285683631897,
-0.22919374704360962,
0.1468186378479004,
0.28117281198501587,
0.1926804631948471,
-0.1454819291830063,
-0.008617446757853031,
0.12203589826822281,
-0.022948313504457474,
-0.26856157183647156,
0.28663620352745056,
-0.1642531156539917,
0.3783462941646576,
-0.4507659673690796,
-0.10984096676111221,
0.032645970582962036,
0.26009324193000793,
0.2549608647823334,
0.257820188999176,
0.014676823280751705,
0.08309271186590195,
0.4122845232486725,
0.13230839371681213,
-0.1551140993833542,
0.0008570131030865014,
0.4158841371536255,
0.10062885284423828,
-0.3379721939563751,
0.19882901012897491,
-0.09078487008810043,
-0.14765509963035583,
0.0037592605222016573,
0.2748386859893799,
-0.04332805424928665,
-0.11250337958335876,
-0.09276361763477325,
0.09353780001401901,
-0.07497448474168777,
-0.4186441898345947,
0.1443355232477188,
-0.052253514528274536,
-0.12823939323425293,
0.12125552445650101,
-0.44810304045677185,
-0.4539901316165924,
-0.2699022889137268,
0.5651443600654602,
0.16530360281467438,
0.08968782424926758,
0.3432316780090332,
-0.19581550359725952,
0.009230731055140495,
-0.19560404121875763,
0.03483295813202858,
-0.125552237033844,
-0.32504358887672424,
0.5315564274787903,
-0.21403203904628754,
-0.10113172978162766,
0.1889258325099945,
-0.1737542301416397,
0.11054182797670364,
0.38086986541748047,
0.16373538970947266,
-0.2844933867454529,
-0.5291987657546997,
-0.3904182016849518,
-0.05248981714248657,
0.2282983958721161,
0.05084759742021561,
-0.007295414339751005,
-0.010713045485317707,
-0.004559529013931751,
-0.3350776135921478,
0.24038831889629364,
0.0919073298573494,
0.07293353229761124,
0.12427912652492523,
-0.10434801876544952,
-0.25606948137283325,
-0.25927311182022095,
0.17759519815444946,
0.3209485411643982,
-0.02541062794625759,
-0.2779421806335449,
-0.32961493730545044,
0.0958332046866417,
0.32207992672920227,
-0.10902666300535202,
-0.19926300644874573,
-0.08584678918123245,
-0.21283550560474396,
-0.11368535459041595,
0.20989590883255005,
0.4146847426891327,
-0.050506509840488434,
-0.015249294228851795,
0.33207064867019653,
0.0022460862528532743,
-0.19977372884750366,
-0.09585107862949371,
-0.2755773365497589,
-0.14803579449653625,
0.06965821981430054,
0.2725878655910492,
-0.036160461604595184,
0.12739093601703644,
-0.4385436475276947,
-0.06491556763648987,
0.11951734125614166,
0.08854959905147552,
0.19131024181842804,
-0.22849607467651367,
-0.1663820594549179,
-0.08600345999002457,
0.22188517451286316,
0.40136393904685974,
0.04893631860613823,
-0.15804815292358398,
0.23256653547286987,
0.23899349570274353,
-0.5628595948219299,
-0.010693835094571114,
0.19435922801494598,
-0.0036497253458946943,
0.09856443852186203,
0.19869790971279144,
0.21040454506874084,
-0.16817361116409302,
-0.0613069161772728,
0.13478852808475494,
0.2547551393508911,
-0.06252752244472504,
0.33174243569374084,
0.6826944351196289,
0.176279678940773,
0.2481752634048462,
0.2562505006790161,
0.19757486879825592,
0.1642528623342514,
0.3292226493358612,
0.02296837419271469,
-0.02419380284845829,
-0.2815638780593872,
0.018447265028953552,
-0.3797072172164917,
-0.3709610104560852,
0.3160878121852875,
0.4231717586517334,
-0.21430742740631104,
0.23659208416938782,
0.03536231443285942,
-0.309990793466568,
-0.026485925540328026,
0.029949216172099113,
-0.280551940202713,
0.20324544608592987,
-0.12363598495721817,
-0.3274005353450775,
0.3878685534000397,
-0.20261111855506897,
-0.17774946987628937,
0.1964987963438034,
-0.04107586294412613,
0.026260003447532654,
-0.13569796085357666,
-0.0048754592426121235,
-0.2721962332725525,
-0.4071182608604431,
-0.06439096480607986,
0.1155257374048233,
0.13042256236076355,
-0.20576679706573486,
-0.09847449511289597,
0.3018856644630432,
-0.13642802834510803,
-0.0018366104923188686,
0.23997218906879425,
0.37889692187309265,
0.21110770106315613,
0.15349061787128448,
-0.002281538210809231,
0.17388178408145905,
-0.008814898319542408,
-0.31576308608055115,
0.4200022220611572,
0.06627421081066132,
-0.02409445121884346,
-0.13709048926830292,
0.20393888652324677,
-0.25069528818130493,
-0.08120554685592651,
0.1522061973810196,
0.014136126264929771,
-0.15470805764198303,
0.4992973208427429,
0.07199612259864807,
-0.3092767894268036,
-0.002759844297543168,
0.27526259422302246,
0.025196542963385582,
-0.07981820404529572,
0.3267325758934021,
-0.1332300305366516,
0.2819019556045532,
-0.23000749945640564,
0.11098090559244156,
0.11482740193605423,
-0.0347524918615818,
0.4555129110813141,
-0.48986995220184326,
-0.20979514718055725,
0.0988616794347763,
-0.8164004683494568,
0.012093774043023586,
0.03284814581274986,
0.20082999765872955,
-0.14171013236045837,
0.0833701491355896,
-0.008317602798342705,
0.02129434049129486,
0.11451276391744614,
0.31389519572257996,
0.07245684415102005,
0.31026554107666016,
-0.053945764899253845,
-0.13468994200229645,
-0.09586601704359055,
-0.14770090579986572,
-0.11636543273925781,
-0.5594714879989624,
0.07595878094434738,
-0.18532805144786835,
0.20953062176704407,
-0.037059079855680466,
0.006510269828140736,
0.2180144339799881,
0.24442017078399658,
0.49459296464920044,
0.028728220611810684,
-0.0332198366522789,
-0.05200227349996567,
-0.13350486755371094,
-0.5665887594223022,
-0.03980110213160515,
-0.24664069712162018,
0.0500841923058033,
0.1520661562681198,
0.1390792578458786,
-0.3625166416168213,
-0.3033447265625,
-0.21440489590168,
0.3089037239551544,
0.20045152306556702,
-0.03650466352701187,
-0.32255786657333374,
-0.022641964256763458,
-0.08647540211677551,
0.02374177612364292,
0.2618906497955322,
0.28176501393318176,
-0.35260629653930664,
0.3924574851989746,
-0.39136603474617004,
-0.3119344413280487,
0.2078099250793457,
-0.3488785922527313,
-0.3597283959388733,
-0.11099733412265778,
0.21950869262218475,
-0.05901031568646431,
-0.08384646475315094,
0.08040180057287216,
0.3842255175113678,
0.22002556920051575,
-0.12928146123886108,
-0.22826728224754333,
0.11827893555164337,
-0.40389877557754517,
0.15223082900047302,
-0.09264332801103592,
0.15833665430545807,
0.15146373212337494,
-0.21538417041301727,
0.14776435494422913,
-0.07969911396503448
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 23 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | [
-0.049786072224378586,
-0.05474426969885826,
-0.12806658446788788,
0.00030061393044888973,
-0.03935408592224121,
-0.007131490390747786,
0.35460469126701355,
0.1659148782491684,
0.1936858892440796,
0.20558102428913116,
0.06397976726293564,
0.14600686728954315,
-0.02429240569472313,
0.19974252581596375,
-0.014875962398946285,
-0.20615331828594208,
-0.047417934983968735,
0.007556694559752941,
-0.09543999284505844,
-0.09535464644432068,
-0.12374754995107651,
0.14722800254821777,
-0.13759177923202515,
-0.21125398576259613,
-0.45807236433029175,
-0.08757711946964264,
-0.1730554699897766,
-0.02534552291035652,
-0.17212940752506256,
-0.07761843502521515,
-0.12090060859918594,
0.19935566186904907,
-0.1435847282409668,
0.33429640531539917,
-0.00009734713239595294,
-0.11900025606155396,
0.23090702295303345,
-0.18028394877910614,
-0.08710324764251709,
0.057661280035972595,
0.12335960566997528,
-0.018355563282966614,
-0.31976959109306335,
-0.44974106550216675,
-0.1917414367198944,
-0.09192617237567902,
0.2502598166465759,
0.08722643554210663,
0.22072355449199677,
-0.017194638028740883,
0.32803940773010254,
-0.12104440480470657,
0.1039479449391365,
0.024298256263136864,
0.040866490453481674,
0.1121116504073143,
-0.13301217555999756,
-0.000701124663464725,
0.015008751302957535,
-0.32461756467819214,
-0.16043172776699066,
0.6847468614578247,
0.017172927036881447,
0.02725372090935707,
0.06144141033291817,
0.0563659593462944,
-0.17214147746562958,
-0.32972466945648193,
0.17903511226177216,
0.4349502623081207,
0.5310004949569702,
0.0022287077736109495,
-0.16606634855270386,
-0.05319799855351448,
-0.0875590369105339,
-0.06500948220491409,
0.14329634606838226,
0.29994240403175354,
-0.13682319223880768,
0.023942427709698677,
-0.26669755578041077,
0.0028926178347319365,
-0.2545391321182251,
0.15935984253883362,
-0.19594697654247284,
0.41311150789260864,
0.02156653441488743,
0.032652612775564194,
-0.0001825417421059683,
-0.21015246212482452,
-0.4369373321533203,
-0.012732093222439289,
0.21254730224609375,
0.009994763880968094,
0.03810915723443031,
-0.2509276568889618,
-0.05038612335920334,
-0.15460917353630066,
0.36922287940979004,
-0.1973782628774643,
-0.04035815969109535,
0.07332427054643631,
-0.18251408636569977,
0.3001661002635956,
0.11515733599662781,
-0.2735809087753296,
-0.17287811636924744,
0.021519096568226814,
0.18278440833091736,
0.0874059870839119,
-0.24666374921798706,
0.1344640851020813,
0.22530275583267212,
-0.10297273844480515,
-0.17729884386062622,
-0.08780074119567871,
0.10701990127563477,
-0.04666145518422127,
-0.10756105929613113,
-0.00858340971171856,
-0.14670497179031372,
-0.07101316750049591,
-0.43605807423591614,
0.21651647984981537,
-0.033575911074876785,
0.10985042154788971,
0.1278967559337616,
0.1473860740661621,
-0.21880777180194855,
-0.15337111055850983,
-0.1057867705821991,
0.10091473162174225,
0.055739626288414,
0.27904564142227173,
0.121102474629879,
0.3311387002468109,
0.2567344009876251,
-0.08240304887294769,
0.1746455729007721,
0.09472091495990753,
0.04164796695113182,
-0.0953105092048645,
0.25552499294281006,
-0.008912358433008194,
0.016461851075291634,
-0.12272777408361435,
-0.0512414313852787,
-0.27936214208602905,
-0.19902440905570984,
0.027065357193350792,
-0.10847260802984238,
0.2036319524049759,
-0.32128992676734924,
0.26683661341667175,
0.14469747245311737,
-0.05835185945034027,
-0.004563456866890192,
0.6982098817825317,
0.09597613662481308,
0.030842233449220657,
0.13653099536895752,
0.14452457427978516,
-0.3958846628665924,
-0.0636468231678009,
0.2453516572713852,
0.44906842708587646,
-0.08862833678722382,
0.025528402999043465,
0.3061008155345917,
0.35646185278892517,
0.01936931535601616,
0.1932203471660614,
0.024550553411245346,
-0.01815176010131836,
0.048875678330659866,
0.263017475605011,
-0.10562120378017426,
-0.235868439078331,
-0.11953902989625931,
-0.17599080502986908,
-0.09651169925928116,
0.10207650810480118,
0.032643791288137436,
0.2860516309738159,
0.2700505256652832,
-0.10277564823627472,
0.09353453665971756,
0.6013002991676331,
-0.18929491937160492,
0.2137654423713684,
-0.21300679445266724,
-0.3863323926925659,
-0.0069002122618258,
0.3273806869983673,
0.12856359779834747,
-0.46857771277427673,
0.2250232696533203,
0.1909397542476654,
0.03199847415089607,
-0.3845873475074768,
0.09872248023748398,
0.007533400785177946,
-0.031035661697387695,
0.09958445280790329,
0.09182794392108917,
-0.23989461362361908,
-0.007952389307320118,
0.05467880889773369,
0.2049163430929184,
0.4832216203212738,
-0.1773444414138794,
-0.24813427031040192,
-0.038995638489723206,
-0.15137484669685364,
-0.10651350021362305,
-0.36987075209617615,
0.3537430167198181,
0.1205863431096077,
-0.0045493231154978275,
0.2210572212934494,
0.07844986021518707,
-0.059415653347969055,
-0.31634390354156494,
-0.045601796358823776,
0.11990627646446228,
0.1867602914571762,
-0.2623726725578308,
-0.01857561245560646,
0.12186586111783981,
0.08605348318815231,
-0.08356115221977234,
0.18076513707637787,
0.09117484092712402,
0.19132480025291443,
0.04617701470851898,
0.3455415666103363,
0.2677956223487854,
0.053058478981256485,
0.3559018075466156,
-0.6900472044944763,
-0.06900857388973236,
0.19123446941375732,
0.0030609644018113613,
0.012259826995432377,
-0.26597264409065247,
0.18192796409130096,
0.27170419692993164,
0.04521745815873146,
-0.08044508844614029,
-0.00830821506679058,
0.14734697341918945,
-0.02443908341228962,
0.05837000906467438,
-0.3646618723869324,
-0.08103753626346588,
0.21299944818019867,
-0.2515609562397003,
-0.2326057255268097,
-0.18902453780174255,
0.1808757781982422,
0.5132710933685303,
0.2433171272277832,
0.3687906563282013,
0.16841791570186615,
-0.11996776610612869,
-0.14010488986968994,
-0.006870088167488575,
-0.09601549059152603,
-0.16881248354911804,
0.3742111027240753,
-0.05377257615327835,
-0.12606371939182281,
-0.2724705934524536,
-0.09229536354541779,
0.17809566855430603,
-0.01589195244014263,
0.22313141822814941,
0.048664383590221405,
0.2492242306470871,
-0.024990813806653023,
-0.457743763923645,
-0.12711426615715027,
-0.15744951367378235,
-0.19730336964130402,
0.056282173842191696,
0.07846454530954361,
-0.07133182138204575,
-0.19916099309921265,
-0.06696484237909317,
0.28336089849472046,
-0.30871281027793884,
-0.11430888622999191,
0.3522230088710785,
0.015218645334243774,
-0.11031164973974228,
0.1833135038614273,
0.0873243436217308,
0.17335721850395203,
0.186234712600708,
0.024558179080486298,
-0.133793905377388,
-0.545577883720398,
-0.06111622229218483,
0.26861321926116943,
0.1743592470884323,
-0.01615128107368946,
0.5377413034439087,
-0.17810148000717163,
0.036774132400751114,
-0.28842440247535706,
-0.7053378224372864,
0.10204683989286423,
-0.18407794833183289,
0.1969558149576187,
0.015518663451075554,
0.2760655879974365,
-0.22341617941856384,
-0.15411323308944702,
0.154629647731781,
-0.1017463207244873,
-0.19354881346225739,
-0.22095854580402374,
0.048077456653118134,
0.04209982976317406,
-0.2291867434978485,
-0.21489612758159637,
-0.14420707523822784,
-0.24474850296974182,
0.10660207271575928,
0.34895890951156616,
0.17218703031539917,
0.06473681330680847,
0.38381752371788025,
0.028066065162420273,
-0.023870307952165604,
0.2764136791229248,
-0.35711604356765747,
-0.032202646136283875,
0.36824676394462585,
-0.303909569978714,
-0.4038146138191223,
-0.16452786326408386,
-0.1827670931816101,
0.16991327702999115,
0.05919575318694115,
-0.3852040469646454,
-0.393205851316452,
0.01609271764755249,
0.1964578777551651,
0.26060253381729126,
0.07765539735555649,
0.1688963770866394,
0.16969773173332214,
-0.28882139921188354,
-0.12013038992881775,
-0.09050032496452332,
0.10876288264989853,
0.08043956756591797,
0.03271752968430519,
0.21563278138637543,
0.09163612127304077,
0.22650383412837982,
0.6132440567016602,
-0.16133973002433777,
-0.028157174587249756,
0.41198232769966125,
-0.03838081657886505,
0.22410444915294647,
-0.00023354412405751646,
-0.07051154226064682,
0.4972851872444153,
0.009116395376622677,
0.15814465284347534,
0.24899734556674957,
0.10939516872167587,
-0.45752647519111633,
-0.14250671863555908,
0.07410771399736404,
-0.4309841990470886,
-0.18312878906726837,
0.1126236692070961,
0.28222325444221497,
0.13590238988399506,
-0.12557214498519897,
-0.11187677830457687,
-0.19500747323036194,
-0.21409933269023895,
0.15013788640499115,
0.13654586672782898,
-0.033066943287849426,
-0.0854402557015419,
-0.1478024572134018,
0.04407964646816254,
-0.20995818078517914,
0.13260029256343842,
0.38083934783935547,
-0.17131367325782776,
-0.12352991104125977,
-0.06418976932764053,
-0.14828233420848846,
-0.22657299041748047,
0.24561694264411926,
-0.30668091773986816,
-0.03962195664644241,
-0.00018568882660474628,
-0.005773679818958044,
0.017194237560033798,
0.22118324041366577,
-0.20882587134838104,
-0.34430235624313354,
-0.045231420546770096,
0.24777263402938843,
-0.4293949007987976,
0.08817101269960403,
0.39060860872268677,
0.18757542967796326,
-0.09825942665338516,
0.07251368463039398,
-0.1535128355026245,
-0.4466046094894409,
-0.46397992968559265,
0.07592836022377014,
-0.01792312227189541,
0.2340524047613144,
0.16927467286586761,
-0.04610416293144226,
-0.04956074059009552,
-0.03458055481314659,
-0.03135652467608452,
0.3599346876144409,
0.023260463029146194,
0.24515391886234283,
-0.18668285012245178,
0.015925973653793335,
-0.03627609834074974,
-0.03926866501569748,
0.2646229863166809,
0.06555929034948349,
0.06209945306181908,
-0.1904883086681366,
-0.17988622188568115,
-0.008132141083478928,
0.13258753716945648,
0.24912522733211517,
-0.03252929449081421,
0.009901618584990501,
0.03238046541810036,
-0.38695642352104187,
0.21385236084461212,
0.10158603638410568,
0.11076104640960693,
-0.014832454733550549,
-0.2682083547115326,
0.3575320541858673,
0.013968773186206818,
0.08968249708414078,
0.3896494209766388,
0.08274827152490616,
-0.4077330529689789,
0.13139735162258148,
0.6063615083694458,
0.8766949772834778,
-0.1784278005361557,
0.19688573479652405,
0.11565326899290085,
-0.12276943027973175,
0.4901367425918579,
-0.012511085718870163,
0.08938979357481003,
-0.09030462056398392,
0.046206142753362656,
-0.04825692996382713,
0.18107642233371735,
0.023386400192975998,
-0.00717973755672574,
-0.23839633166790009,
-0.059148646891117096,
0.49507802724838257,
0.0509890615940094,
0.02231808938086033,
0.24544084072113037,
-0.018000183627009392,
-0.3712226152420044,
-0.16389083862304688,
0.23962123692035675,
-0.13479410111904144,
-0.0386183001101017,
0.020554665476083755,
-0.1282648742198944,
-0.05630704388022423,
-0.2408725768327713,
-0.26612186431884766,
-0.03752649948000908,
-0.39237549901008606,
0.20526385307312012,
-0.25204840302467346,
-0.2321317493915558,
0.054000627249479294,
0.19257132709026337,
0.1538773477077484,
-0.011854743584990501,
-0.19310198724269867,
0.26996225118637085,
-0.21669624745845795,
-0.1297280639410019,
0.09944845736026764,
-0.07785586267709732,
0.313461035490036,
-0.16212570667266846,
-0.23103395104408264,
0.06826397776603699,
0.35306987166404724,
-0.2003537267446518,
-0.378405898809433,
-0.1596207469701767,
0.21485699713230133,
0.3098065257072449,
-0.07141140848398209,
0.03680964931845665,
-0.4080922603607178,
-0.2550562024116516,
0.26626089215278625,
-0.1720844954252243,
0.12809616327285767,
0.09532255679368973,
0.3381573259830475,
-0.06617192178964615,
0.012041485868394375,
0.27996665239334106,
0.15132415294647217,
0.06921563297510147,
0.2529287040233612,
0.19705091416835785,
-0.15937772393226624,
-0.26254817843437195,
-0.14282652735710144,
-0.21437926590442657,
-0.3051333725452423,
-0.13529805839061737,
0.06716674566268921,
-0.2043529748916626,
-0.13380280137062073,
0.36419761180877686,
0.16250565648078918,
-0.025559652596712112,
0.09161863476037979,
-0.07917729765176773,
-0.043531958013772964,
0.3351588547229767,
-0.264507919549942,
0.262008935213089,
0.13626064360141754,
0.09192357957363129,
0.06210063397884369,
0.24666598439216614,
-0.4697705805301666,
0.0008082559797912836,
-0.2768234610557556,
0.22043846547603607,
0.28419601917266846,
-0.1862063854932785,
-0.02803073264658451,
0.1253683716058731,
0.3021202087402344,
0.0017987476894631982,
-0.16856129467487335,
-0.3627263605594635,
-0.2431439906358719,
0.042277269065380096,
0.033410727977752686,
-0.1346721202135086,
0.025457391515374184,
-0.07903239130973816,
-0.08361511677503586,
-0.16225364804267883,
0.09319312870502472,
-0.22409746050834656,
-0.24724158644676208,
0.22282549738883972,
-0.18231375515460968,
0.07007098942995071,
0.09484647214412689,
-0.18610747158527374,
-0.09508485347032547,
0.4156055450439453,
0.053598735481500626,
-0.10834185034036636,
0.22086454927921295,
-0.13956642150878906,
-0.02601352334022522,
0.29093462228775024,
-0.2630021870136261,
0.013308065943419933,
0.2766337990760803,
0.14192470908164978,
-0.03432506322860718,
0.244120255112648,
0.2616044878959656,
-0.21285296976566315,
-0.27817627787590027,
-0.07092975080013275,
0.2034054845571518,
0.388540118932724,
-0.3480495512485504,
-0.00026852916926145554,
0.3647509217262268,
-0.4026499092578888,
0.4058004915714264,
0.30525073409080505,
0.16807568073272705,
-0.04709490016102791,
-0.258130818605423,
0.07653874903917313,
-0.01699453592300415,
-0.43400222063064575,
-0.020303452387452126,
0.14155620336532593,
0.11057623475790024,
0.04873599112033844,
-0.06017107516527176,
0.1592475324869156,
0.27904507517814636,
0.2702627182006836,
-0.057671450078487396,
0.40032505989074707,
0.07007189095020294,
0.05365900695323944,
0.2820591628551483,
0.2163240760564804,
0.5008888244628906,
0.15203943848609924,
0.061533067375421524,
0.337533563375473,
0.06671210378408432,
-0.04894968867301941,
0.02316681668162346,
-0.14150859415531158,
-0.11761503666639328,
0.3134405314922333,
-0.014749984256923199,
-0.07158569246530533,
-0.39752188324928284,
-0.21558552980422974,
-0.050253890454769135,
0.09920396655797958,
0.08556662499904633,
-0.14505766332149506,
0.23546390235424042,
0.052496328949928284,
-0.11966459453105927,
-0.24438609182834625,
-0.043071746826171875,
-0.06646519154310226,
0.5451589822769165,
-0.19913794100284576,
0.06965944170951843,
0.2658621370792389,
-0.03560963273048401,
0.09635457396507263,
0.40212270617485046,
0.1985037624835968,
0.07891610264778137,
-0.238174706697464,
0.10883483290672302,
-0.04457838460803032,
-0.1440982222557068,
-0.14252568781375885,
-0.030538389459252357,
0.14775913953781128,
-0.2748594880104065,
0.34937527775764465,
0.2631460726261139,
-0.301936537027359,
-0.32111504673957825,
0.3872310221195221,
-0.13458797335624695,
-0.010066420771181583,
-0.6193215847015381,
-0.002628579270094633,
0.04432044178247452,
-0.15217694640159607,
0.10487814247608185,
-0.5363391637802124,
-0.09522535651922226,
-0.08854340761899948,
-0.0321342796087265,
0.027719838544726372,
-0.1648293286561966,
0.13386304676532745,
0.07524240761995316,
0.44137313961982727,
0.2891284227371216,
0.060676079243421555,
0.0619644969701767,
-0.22793424129486084,
-0.52789705991745,
0.1167537271976471,
-0.07994066923856735,
-0.4166083037853241,
-0.1129240021109581,
0.35056644678115845,
0.24548976123332977,
0.23853261768817902,
0.1003212109208107,
-0.15066537261009216,
0.24236546456813812,
0.07097428292036057,
-0.28754159808158875,
0.08085842430591583,
0.05618828907608986,
0.05417974293231964,
-0.09418892860412598,
-0.17191670835018158,
0.1251954287290573,
-0.2471843957901001,
0.32332947850227356,
-0.24117577075958252,
0.11204297840595245,
-0.1701766699552536,
0.07295794785022736,
0.06469176709651947,
-0.027289127930998802,
0.1814374029636383,
-0.43561264872550964,
-0.31987518072128296,
-0.03625895828008652,
0.011588922701776028,
-0.15197870135307312,
0.1135638877749443,
0.1561066210269928,
0.5797206163406372,
0.06924953311681747,
-0.07130176573991776,
0.1066630631685257,
0.49167126417160034,
0.020184852182865143,
0.029559027403593063,
0.09484215080738068,
0.03102708049118519,
0.25175219774246216,
-0.19978225231170654,
-0.07885993272066116,
0.39635154604911804,
-0.09071648120880127,
-0.12833505868911743,
-0.055131878703832626,
-0.6203972697257996,
0.11908937990665436,
-0.43966686725616455,
-0.18748213350772858,
-0.03732111677527428,
-0.13978604972362518,
0.10886227339506149,
0.39965394139289856,
-0.30557742714881897,
0.20878058671951294,
0.22387003898620605,
0.19300846755504608,
-0.24400228261947632,
0.3604777455329895,
0.11555562168359756,
-0.14298219978809357,
-0.08355698734521866,
-0.18053017556667328,
-0.04298274219036102,
-0.07564946264028549,
-0.2174598127603531,
-0.3298110067844391
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | > @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 28 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | [
-0.08095139265060425,
-0.22145529091358185,
-0.19897307455539703,
0.013309369795024395,
0.05485678091645241,
0.0012880776776000857,
0.4317961633205414,
0.09052765369415283,
0.2972509562969208,
0.14708282053470612,
-0.01400246936827898,
0.11782074719667435,
-0.18012937903404236,
0.27506256103515625,
0.17592327296733856,
-0.23473019897937775,
0.05288571119308472,
-0.052559349685907364,
-0.11116620898246765,
-0.07941955327987671,
-0.052257005125284195,
0.1980130970478058,
-0.19383814930915833,
-0.24779284000396729,
-0.3986714780330658,
-0.10572011023759842,
-0.17398905754089355,
-0.01695188693702221,
-0.18466390669345856,
0.03277426213026047,
-0.260813444852829,
0.0733175128698349,
-0.1156974509358406,
0.47700589895248413,
-0.00009640317875891924,
-0.06458007544279099,
0.21438410878181458,
-0.14239051938056946,
-0.05456015095114708,
-0.1777075231075287,
0.04153531789779663,
-0.004911567084491253,
-0.2549009323120117,
-0.2813228368759155,
-0.18397890031337738,
-0.15387742221355438,
0.2700458765029907,
-0.0029814334120601416,
0.3053426146507263,
0.12109719961881638,
0.3088105320930481,
-0.14746835827827454,
0.20715384185314178,
-0.05143754184246063,
0.13264290988445282,
0.15440872311592102,
-0.24827495217323303,
-0.0964362844824791,
0.09663939476013184,
-0.22675710916519165,
-0.2421553134918213,
0.6854543089866638,
0.11605655401945114,
0.025015469640493393,
-0.025282099843025208,
0.007095949724316597,
-0.09265037626028061,
-0.2954963743686676,
0.18863926827907562,
0.47004029154777527,
0.5937219858169556,
-0.16306202113628387,
-0.17218272387981415,
0.09196648746728897,
-0.04870305955410004,
0.03976963087916374,
0.04085616394877434,
0.3571048974990845,
-0.16184036433696747,
0.06495890021324158,
-0.17831803858280182,
-0.15133224427700043,
-0.17268763482570648,
0.2914961874485016,
-0.0949111357331276,
0.4078662395477295,
-0.03154543787240982,
-0.055580977350473404,
-0.03737694397568703,
-0.1777149736881256,
-0.21642382442951202,
0.05230829119682312,
0.24196012318134308,
0.06623687595129013,
0.03358672559261322,
-0.1256910115480423,
0.03854934126138687,
-0.11351121962070465,
0.3417508602142334,
-0.2774723470211029,
-0.05657486990094185,
0.13290150463581085,
-0.3231123983860016,
0.3092397153377533,
0.13855651021003723,
-0.21742545068264008,
-0.14503368735313416,
-0.1854814887046814,
0.19510143995285034,
0.03250012546777725,
-0.26198893785476685,
0.15055789053440094,
0.09972112625837326,
-0.021424032747745514,
-0.22739572823047638,
-0.16076891124248505,
-0.05164683982729912,
0.0911392867565155,
0.11939673870801926,
-0.07075913995504379,
-0.14215880632400513,
-0.06618010997772217,
-0.3177128732204437,
0.24070079624652863,
0.10100490599870682,
0.0815589427947998,
0.09653034061193466,
0.247589573264122,
-0.14709900319576263,
-0.17651711404323578,
-0.08815343677997589,
0.22484135627746582,
-0.1903706043958664,
0.12650258839130402,
0.1592801809310913,
0.5113367438316345,
0.2537499964237213,
-0.07337746769189835,
0.11290935426950455,
0.0018323073163628578,
0.08566061407327652,
-0.10014010965824127,
0.20698435604572296,
-0.05579139292240143,
0.08096785098314285,
-0.15241359174251556,
-0.07337310910224915,
-0.3102891743183136,
-0.15553905069828033,
0.07735223323106766,
-0.08899141103029251,
0.04937776178121567,
-0.4161144495010376,
0.2530648708343506,
0.1284848004579544,
-0.0809183269739151,
0.09084754437208176,
0.7699180841445923,
0.05824892222881317,
-0.03423544391989708,
0.179847851395607,
0.2833344340324402,
-0.37971365451812744,
-0.0025156582705676556,
0.1757737249135971,
0.39056509733200073,
-0.09242081642150879,
-0.06425482034683228,
0.1328476071357727,
0.2665221393108368,
-0.05839456245303154,
0.2173907309770584,
-0.05673089995980263,
0.08785722404718399,
0.02464972250163555,
0.2322876900434494,
0.06946010887622833,
-0.13952913880348206,
-0.04350036382675171,
-0.10111033916473389,
-0.08136072754859924,
0.01060599647462368,
0.08365426957607269,
0.2981448173522949,
-0.012793781235814095,
0.09652863442897797,
0.008079166524112225,
0.6753441691398621,
-0.1098165512084961,
0.22860021889209747,
-0.27377748489379883,
-0.4278280436992645,
-0.011398136615753174,
0.32874393463134766,
0.14537683129310608,
-0.40550553798675537,
0.32784295082092285,
0.23224398493766785,
0.09498655796051025,
-0.3136897087097168,
0.108585424721241,
0.022320222109556198,
-0.0005052521592006087,
0.1467115730047226,
0.10928478091955185,
-0.2964727282524109,
-0.08367657661437988,
-0.13040204346179962,
0.13182401657104492,
0.48374706506729126,
-0.24828948080539703,
-0.24802805483341217,
0.004285986535251141,
-0.20535892248153687,
-0.0621921606361866,
-0.2704660892486572,
0.3617101311683655,
0.17162972688674927,
-0.13062168657779694,
0.2724725902080536,
0.043058354407548904,
-0.09192809462547302,
-0.25331494212150574,
-0.06226865202188492,
-0.04062916338443756,
0.15818801522254944,
-0.2046276479959488,
-0.017777569591999054,
0.047248903661966324,
0.19870106875896454,
-0.29617130756378174,
0.05333475023508072,
0.10388907790184021,
0.18656505644321442,
0.07922602444887161,
0.3698842525482178,
0.3873918652534485,
0.1120803952217102,
0.292123943567276,
-0.6291124820709229,
0.11541521549224854,
0.07602851837873459,
-0.006125952582806349,
-0.017606407403945923,
-0.38419976830482483,
0.04726714268326759,
0.19283445179462433,
-0.0016579421935603023,
0.11443345248699188,
0.07339303195476532,
0.20815329253673553,
-0.09567822515964508,
-0.004993450827896595,
-0.3668542802333832,
0.0016060450579971075,
0.17344427108764648,
-0.18848557770252228,
-0.18246161937713623,
-0.20302601158618927,
0.08076940476894379,
0.523708701133728,
0.22584176063537598,
0.5505990982055664,
0.12542855739593506,
-0.14207974076271057,
-0.28885769844055176,
0.05498592555522919,
-0.2941264808177948,
-0.16557790338993073,
0.31162697076797485,
-0.025124672800302505,
-0.17824286222457886,
-0.04823527857661247,
-0.08552772551774979,
0.13381598889827728,
-0.027692517265677452,
0.19049690663814545,
0.09144356101751328,
0.2914772033691406,
-0.11498081684112549,
-0.5630300641059875,
-0.0705270767211914,
-0.022384129464626312,
-0.21006366610527039,
0.09556356817483902,
0.05322908237576485,
0.008563737384974957,
-0.2813549339771271,
-0.09144842624664307,
0.10905830562114716,
-0.2741346061229706,
-0.046089328825473785,
0.3448167145252228,
-0.06129639223217964,
-0.10884267091751099,
0.222628653049469,
0.26466667652130127,
0.26592427492141724,
0.053522657603025436,
-0.03270826116204262,
-0.05693301558494568,
-0.4480120837688446,
-0.0012577380985021591,
0.2744465470314026,
0.3094530999660492,
0.0774366483092308,
0.4492533206939697,
-0.17061889171600342,
-0.003270126646384597,
-0.19703976809978485,
-0.682835042476654,
0.19318588078022003,
-0.17993353307247162,
0.22229735553264618,
0.046534981578588486,
0.05979978293180466,
-0.21620923280715942,
-0.17843827605247498,
0.12670482695102692,
-0.1550564020872116,
-0.12783215939998627,
-0.05143887549638748,
0.06432649493217468,
0.07919666171073914,
-0.17118225991725922,
-0.2651810050010681,
-0.16081476211547852,
-0.3226845860481262,
0.3241012990474701,
0.23656785488128662,
0.11344879865646362,
-0.0567813515663147,
0.3845592141151428,
0.05180112645030022,
-0.023132313042879105,
0.2783186435699463,
-0.31273820996284485,
-0.058928247541189194,
0.1515590250492096,
-0.3646039366722107,
-0.34768062829971313,
-0.24441078305244446,
-0.19888125360012054,
0.25256800651550293,
0.08084358274936676,
-0.4292120337486267,
-0.3522479236125946,
0.03118201158940792,
0.20614662766456604,
0.1419825553894043,
0.08425945043563843,
0.24483639001846313,
0.19040891528129578,
-0.2793111801147461,
-0.1548067033290863,
-0.0041611515916883945,
0.025512440130114555,
-0.11572061479091644,
0.07603403180837631,
0.17832784354686737,
0.013950771652162075,
0.29653826355934143,
0.4465198814868927,
-0.21760571002960205,
0.14767785370349884,
0.38422781229019165,
0.003617379115894437,
0.1714649200439453,
-0.25750166177749634,
-0.10828797519207001,
0.5114597678184509,
-0.015588324517011642,
0.05322302132844925,
0.3055921792984009,
0.13872316479682922,
-0.4937734007835388,
-0.10477428138256073,
0.15938442945480347,
-0.51128089427948,
-0.13315100967884064,
0.18925602734088898,
0.14038978517055511,
0.1600528508424759,
-0.15137211978435516,
-0.30179283022880554,
-0.17559194564819336,
-0.1879560947418213,
0.18348616361618042,
0.2554950714111328,
-0.06632231175899506,
-0.08578694611787796,
-0.1768641620874405,
0.036985695362091064,
-0.12111346423625946,
0.047108329832553864,
0.3025897443294525,
-0.1103605106472969,
-0.1657051295042038,
-0.12560398876667023,
-0.06918126344680786,
-0.1423524022102356,
0.27115359902381897,
-0.3945428431034088,
-0.180249884724617,
0.10244478285312653,
-0.06272739171981812,
-0.07763556391000748,
0.2761699855327606,
-0.33029311895370483,
-0.2617785632610321,
0.06333442032337189,
0.31135377287864685,
-0.371966153383255,
0.07628647983074188,
0.4057542681694031,
0.15317362546920776,
0.004568476229906082,
-0.03824659436941147,
-0.08394833654165268,
-0.2303084135055542,
-0.44167599081993103,
0.07560941576957703,
-0.04752424359321594,
0.12861540913581848,
0.2946781814098358,
-0.07334260642528534,
-0.03143839165568352,
-0.04845492169260979,
-0.0901326984167099,
0.2570098340511322,
-0.08997437357902527,
0.28485944867134094,
-0.1690305471420288,
-0.12597164511680603,
-0.11030427366495132,
-0.18409599363803864,
0.1707034409046173,
-0.08021993935108185,
-0.0567743219435215,
-0.2014106959104538,
-0.2966364920139313,
0.09549061208963394,
0.07313975691795349,
0.2481430619955063,
0.0807810127735138,
-0.0638769343495369,
-0.016712818294763565,
-0.3351789712905884,
0.16095854341983795,
0.22880038619041443,
0.21698853373527527,
0.005677646026015282,
-0.28198736906051636,
0.3445272147655487,
-0.07302100956439972,
0.039784062653779984,
0.3688855469226837,
-0.13239926099777222,
-0.41686639189720154,
0.32946932315826416,
0.36678045988082886,
0.9066298604011536,
-0.14122848212718964,
0.2516912817955017,
0.05211098492145538,
0.04437289759516716,
0.37963005900382996,
-0.2828924059867859,
0.060483045876026154,
0.047929320484399796,
0.05638602748513222,
-0.054854776710271835,
0.19236838817596436,
-0.011786477640271187,
0.03259356692433357,
-0.2751651108264923,
-0.17450140416622162,
0.3504129648208618,
0.10968907922506332,
0.05812438949942589,
0.34632113575935364,
-0.050132229924201965,
-0.458526074886322,
-0.28101545572280884,
0.23336735367774963,
0.0736546441912651,
-0.1327342838048935,
-0.018684176728129387,
-0.09885364770889282,
0.03985603526234627,
-0.07208213210105896,
-0.3393508493900299,
-0.0706249326467514,
-0.32288476824760437,
0.21838930249214172,
-0.3081166446208954,
-0.34720075130462646,
0.16683995723724365,
0.23166412115097046,
0.21304304897785187,
0.12620438635349274,
-0.26043200492858887,
0.20590725541114807,
-0.08193888515233994,
-0.14365172386169434,
0.00003497000579955056,
-0.09366445988416672,
0.3640669882297516,
-0.15772759914398193,
-0.19656410813331604,
0.031289130449295044,
0.2719179689884186,
-0.19143901765346527,
-0.4962574541568756,
-0.17636321485042572,
0.3231755197048187,
0.24697604775428772,
0.05940215289592743,
0.27341514825820923,
-0.42008164525032043,
-0.2798999845981598,
0.29230454564094543,
-0.12402738630771637,
0.13973468542099,
0.09062661975622177,
0.24570366740226746,
-0.08709076046943665,
-0.0481112040579319,
0.24096956849098206,
0.28114938735961914,
0.08177311718463898,
0.20429092645645142,
0.3132546842098236,
-0.12314559519290924,
-0.41188204288482666,
-0.22689837217330933,
0.011282936669886112,
-0.30438026785850525,
-0.09970300644636154,
0.0750293955206871,
-0.3576359152793884,
-0.18534556031227112,
0.2977907657623291,
0.09450659900903702,
-0.010885877534747124,
-0.028081165626645088,
-0.10470737516880035,
-0.05048583820462227,
0.4871658384799957,
-0.12338989973068237,
0.17045706510543823,
0.04983250051736832,
0.13686338067054749,
0.16614513099193573,
0.27789926528930664,
-0.49137529730796814,
0.09990760684013367,
-0.16086488962173462,
0.1617065966129303,
0.11409846693277359,
-0.21180662512779236,
0.0391213595867157,
0.13119424879550934,
0.2852494418621063,
-0.0028901202604174614,
-0.17130407691001892,
-0.3745979368686676,
-0.1606845110654831,
0.04897010326385498,
0.040619440376758575,
-0.021804191172122955,
0.20073722302913666,
-0.10216950625181198,
-0.07519204914569855,
-0.20936475694179535,
0.17014053463935852,
-0.03321082144975662,
-0.23526950180530548,
0.18653032183647156,
-0.16080689430236816,
0.11870500445365906,
0.11410082876682281,
-0.1843494027853012,
-0.020273402333259583,
0.2034231573343277,
0.17483648657798767,
-0.16931749880313873,
0.2350272536277771,
-0.09057516604661942,
0.07169583439826965,
0.23527292907238007,
-0.16093912720680237,
0.15086251497268677,
0.22368314862251282,
0.1156173124909401,
0.046740155667066574,
0.08891145139932632,
0.2442273050546646,
-0.20317715406417847,
-0.3575417399406433,
0.009892861358821392,
0.21284247934818268,
0.39504560828208923,
-0.37885263562202454,
-0.10326670855283737,
0.1637059599161148,
-0.39521196484565735,
0.41446855664253235,
0.2580401599407196,
0.1857474148273468,
-0.01028494443744421,
-0.1041497141122818,
0.07064063102006912,
-0.1911444216966629,
-0.36049479246139526,
-0.042953971773386,
0.04365074262022972,
0.0383593775331974,
0.08624246716499329,
-0.12595759332180023,
0.11002416908740997,
0.20905613899230957,
0.2760358154773712,
-0.05480920895934105,
0.3306504786014557,
-0.01644626446068287,
0.09519008547067642,
0.3387245535850525,
0.24134507775306702,
0.49378079175949097,
0.09870964288711548,
0.026434218510985374,
0.357022225856781,
-0.04185821861028671,
0.2647002935409546,
0.10941705107688904,
-0.034785542637109756,
-0.15749910473823547,
0.18723267316818237,
0.01866329088807106,
-0.11931608617305756,
-0.27498528361320496,
-0.15809202194213867,
-0.13445749878883362,
0.03577100485563278,
-0.01213834434747696,
-0.06089761108160019,
0.14250527322292328,
0.06594713777303696,
-0.11282279342412949,
-0.2013251781463623,
0.06159748509526253,
-0.059431757777929306,
0.45025286078453064,
-0.23464509844779968,
0.25870123505592346,
0.19518963992595673,
-0.004693971481174231,
0.02039249800145626,
0.45295989513397217,
0.11210408806800842,
0.01997721567749977,
-0.11757221817970276,
0.08753129094839096,
-0.11430872231721878,
-0.06177157163619995,
-0.19209907948970795,
0.07246033102273941,
0.3947676122188568,
-0.07509522140026093,
0.2475585788488388,
0.23613817989826202,
-0.34716489911079407,
-0.15230681002140045,
0.4345369338989258,
-0.1978103518486023,
-0.04680360481142998,
-0.5462718605995178,
0.007804960012435913,
0.04083570837974548,
-0.2892581522464752,
0.06904967129230499,
-0.6371960043907166,
-0.04308592528104782,
-0.0008576175896450877,
-0.06715676933526993,
0.04736664891242981,
-0.09514498710632324,
0.14055082201957703,
0.1236736997961998,
0.44215014576911926,
0.30876025557518005,
0.13027653098106384,
0.09615202248096466,
-0.38389527797698975,
-0.4464392066001892,
0.16547207534313202,
-0.10002300888299942,
-0.06656694412231445,
-0.145248681306839,
0.3211541175842285,
0.28465500473976135,
0.2771971821784973,
-0.008525071665644646,
-0.15271644294261932,
-0.014644285663962364,
0.11270745098590851,
-0.39755985140800476,
0.17676942050457,
0.09611891955137253,
0.19937311112880707,
-0.029979083687067032,
-0.10199157148599625,
0.10344304889440536,
-0.05619942024350166,
0.26159462332725525,
-0.2036401778459549,
0.10296247899532318,
-0.1265001744031906,
-0.06585177034139633,
0.16977283358573914,
-0.10927795618772507,
0.09203850477933884,
-0.45551490783691406,
-0.31113699078559875,
-0.13918708264827728,
-0.12333928793668747,
-0.147551029920578,
0.2659367322921753,
0.28732872009277344,
0.4175907075405121,
-0.026123464107513428,
-0.10639595240354538,
0.21460981667041779,
0.4109918773174286,
-0.006987903732806444,
0.0813286304473877,
0.030020298436284065,
-0.07310039550065994,
0.3030550181865692,
-0.15915189683437347,
-0.0985056534409523,
0.4811173677444458,
-0.14489829540252686,
-0.21751852333545685,
-0.03723098337650299,
-0.5459349155426025,
0.08171088248491287,
-0.33081263303756714,
-0.2261418104171753,
-0.07653254270553589,
-0.08249635994434357,
0.04652700200676918,
0.2357187122106552,
-0.423202246427536,
0.19491763412952423,
0.20789068937301636,
0.3215322196483612,
-0.06278379261493683,
0.3240293562412262,
0.16682830452919006,
-0.17045068740844727,
-0.15098808705806732,
-0.09969265758991241,
0.04327329993247986,
-0.07440768927335739,
-0.193966805934906,
-0.38275840878486633
] |
https://github.com/huggingface/datasets/issues/2901 | Incompatibility with pytest | Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | ## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | Incompatibility with pytest
## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | [
-0.3016420602798462,
-0.19038723409175873,
-0.024149339646100998,
0.09902922064065933,
0.3130393326282501,
-0.13014079630374908,
0.3114984631538391,
0.2646481990814209,
-0.10267805308103561,
0.2515564262866974,
-0.03294142335653305,
0.3579745888710022,
-0.04996717348694801,
0.08787152916193008,
-0.1619875282049179,
0.1268496811389923,
-0.05052553117275238,
0.06851886212825775,
0.040893446654081345,
0.11360007524490356,
-0.571268618106842,
-0.15708521008491516,
-0.2168758362531662,
0.057248715311288834,
0.01267937570810318,
0.0686676874756813,
0.09162938594818115,
0.24228207767009735,
-0.07749307155609131,
-0.469889372587204,
0.19603672623634338,
-0.026333175599575043,
-0.04225797578692436,
0.47223299741744995,
-0.00010453036520630121,
-0.0628838837146759,
0.45849332213401794,
0.20261909067630768,
-0.48597630858421326,
-0.2095862627029419,
-0.14903640747070312,
0.2063346803188324,
0.2531501352787018,
-0.254386305809021,
-0.12244951725006104,
-0.22151611745357513,
0.08006028085947037,
-0.5224379897117615,
0.03281000256538391,
0.22985845804214478,
0.2646004259586334,
0.5858449339866638,
0.17649081349372864,
-0.12203221023082733,
0.392001211643219,
-0.1865622103214264,
-0.09880344569683075,
0.15128536522388458,
0.27914199233055115,
0.03426571190357208,
-0.15521840751171112,
0.2738160192966461,
-0.25166818499565125,
0.25819385051727295,
0.08306296169757843,
0.040314771234989166,
0.10718005150556564,
0.1236744299530983,
0.005461690481752157,
0.14772666990756989,
-0.024468669667840004,
-0.24473580718040466,
-0.1871630847454071,
0.01328098401427269,
-0.15603193640708923,
-0.4709230661392212,
0.06602983176708221,
0.29909294843673706,
-0.19277425110340118,
0.0707390233874321,
-0.15339823067188263,
0.28531214594841003,
-0.21783529222011566,
0.20865999162197113,
-0.04146469011902809,
0.4749423861503601,
0.010646778158843517,
0.05822968855500221,
0.028252318501472473,
0.053572699427604675,
0.3718392252922058,
-0.02909010834991932,
0.025887317955493927,
-0.21663828194141388,
-0.0353299155831337,
0.04477338120341301,
0.3098427951335907,
0.12990905344486237,
0.154551699757576,
0.16841736435890198,
-0.005012772977352142,
-0.06470700353384018,
0.10998009890317917,
0.12570537626743317,
-0.0156705379486084,
-0.09322428703308105,
-0.05864327400922775,
0.17888064682483673,
0.11952671408653259,
0.16486719250679016,
-0.13602806627750397,
0.008463646285235882,
-0.06681306660175323,
-0.30709388852119446,
0.09002374112606049,
0.1294366419315338,
0.5126135349273682,
-0.0637785792350769,
-0.3585411608219147,
-0.16378308832645416,
-0.31686556339263916,
0.13155823945999146,
-0.08879789710044861,
0.16468480229377747,
-0.3344549536705017,
0.05251570791006088,
0.25674378871917725,
0.1665855497121811,
-0.39859771728515625,
0.17348389327526093,
-0.17293889820575714,
-0.0025558266788721085,
-0.2071770876646042,
-0.19818642735481262,
0.024494964629411697,
-0.006105664186179638,
0.03699450567364693,
0.025849422439932823,
-0.016916725784540176,
-0.055366240441799164,
0.17297163605690002,
-0.03044930286705494,
0.0978282168507576,
0.08348798751831055,
0.10380793362855911,
0.023085495457053185,
0.06469597667455673,
0.2365555465221405,
0.00046661566011607647,
0.41948771476745605,
-0.13348864018917084,
-0.2440326064825058,
0.11649179458618164,
0.35601767897605896,
0.004135590977966785,
-0.15658394992351532,
0.18205204606056213,
-0.37678977847099304,
-0.12203644216060638,
-0.08006791025400162,
0.00265286467038095,
-0.2985855042934418,
-0.1478590965270996,
-0.2639123499393463,
0.22542151808738708,
0.24253709614276886,
0.2605782449245453,
0.05053412541747093,
-0.02827683836221695,
0.16273410618305206,
0.3797309398651123,
0.16699394583702087,
-0.19390882551670074,
-0.0896541178226471,
-0.13795721530914307,
0.1596079021692276,
-0.04862910136580467,
-0.4239594340324402,
-0.32781556248664856,
-0.16077494621276855,
-0.17315024137496948,
-0.0750361904501915,
0.04963114112615585,
0.032337356358766556,
0.3179515302181244,
0.04793373495340347,
-0.03185833990573883,
0.4129534661769867,
-0.07409190386533737,
0.07485218346118927,
-0.4666416645050049,
-0.3798174262046814,
0.5641195178031921,
0.15170562267303467,
0.05703002214431763,
-0.349741131067276,
0.2054489552974701,
0.060839857906103134,
0.5148953795433044,
-0.18972115218639374,
-0.15184110403060913,
-0.2993409335613251,
0.7524659037590027,
-0.047450244426727295,
0.011038200929760933,
-0.09607001394033432,
0.06652714312076569,
0.020441820845007896,
0.23162971436977386,
-0.28024551272392273,
-0.1499119997024536,
-0.08915436267852783,
-0.1524517983198166,
0.13192521035671234,
-0.34668296575546265,
-0.3821573257446289,
0.2474721372127533,
0.27825796604156494,
-0.1456100046634674,
-0.13090373575687408,
-0.011895517818629742,
-0.09330707043409348,
-0.30451512336730957,
0.10049411654472351,
0.03861463442444801,
0.10532864183187485,
-0.0396612323820591,
-0.09412512928247452,
-0.11935529112815857,
0.2987478971481323,
0.1629389524459839,
-0.060054827481508255,
-0.11797088384628296,
0.3312666416168213,
0.24494817852973938,
0.19554659724235535,
-0.04681925103068352,
0.007249893620610237,
0.08201795816421509,
-0.3156891167163849,
-0.20248179137706757,
0.32210078835487366,
0.09754083305597305,
-0.0025816315319389105,
0.022751234471797943,
0.18939919769763947,
-0.23540149629116058,
0.10029245913028717,
0.2986404597759247,
0.0012302912073209882,
-0.0390901193022728,
-0.17083965241909027,
0.015926795080304146,
0.3352191150188446,
0.25353896617889404,
0.4091947674751282,
0.4384312033653259,
0.04710335657000542,
-0.1185915544629097,
-0.029130643233656883,
0.17207303643226624,
0.016334744170308113,
0.23276382684707642,
0.1700841337442398,
-0.4000133275985718,
-0.07772485911846161,
-0.08439911901950836,
0.3033127188682556,
0.39520561695098877,
0.2755782902240753,
0.09697210043668747,
0.0887240618467331,
-0.13241246342658997,
-0.2870430648326874,
0.29929792881011963,
0.11520598828792572,
0.02087228000164032,
0.24158385396003723,
0.22974368929862976,
0.10214284062385559,
-0.255480021238327,
-0.0732264593243599,
-0.13899262249469757,
0.05661674588918686,
-0.14600957930088043,
-0.04783017188310623,
-0.16401264071464539,
0.2011268436908722,
-0.11406820267438889,
-0.500560462474823,
0.18164078891277313,
-0.20086024701595306,
0.01434906106442213,
0.38108667731285095,
-0.20227554440498352,
0.1200970709323883,
-0.2770581841468811,
0.09421280771493912,
0.08856863528490067,
-0.0884958878159523,
0.14159205555915833,
-0.2295173555612564,
-0.17601636052131653,
0.1794954538345337,
0.048956166952848434,
-0.17695295810699463,
0.39237698912620544,
-0.09352312237024307,
-0.026574909687042236,
-0.1780976951122284,
-0.12936705350875854,
0.02280346490442753,
0.24263834953308105,
0.07531024515628815,
0.11149928718805313,
0.054815780371427536,
0.10843068361282349,
-0.28109803795814514,
0.3347676694393158,
-0.22575743496418,
-0.052790895104408264,
0.12225949764251709,
0.09743601083755493,
-0.08596225827932358,
-0.15138933062553406,
-0.6303587555885315,
-0.17503616213798523,
-0.3355156481266022,
0.004438068252056837,
-0.10781268775463104,
0.12897439301013947,
0.43547219038009644,
0.03879783675074577,
0.1618678867816925,
-0.15366579592227936,
0.12164387851953506,
-0.08725962787866592,
-0.02111152745783329,
0.21693749725818634,
-0.13490250706672668,
-0.40109625458717346,
-0.19834688305854797,
-0.12133371084928513,
-0.10454481840133667,
0.43392711877822876,
-0.2609219551086426,
-0.2592199444770813,
-0.23132763803005219,
0.08725196868181229,
-0.1294531524181366,
-0.0232151597738266,
0.39863866567611694,
0.24843129515647888,
-0.25696122646331787,
-0.28645816445350647,
0.06433713436126709,
-0.04337188974022865,
-0.06862854957580566,
0.03818713501095772,
-0.08754461258649826,
0.15171563625335693,
0.11277987062931061,
0.2772788107395172,
-0.03920067846775055,
-0.038717448711395264,
0.11293815076351166,
-0.249596506357193,
0.19787782430648804,
-0.043322935700416565,
-0.25691643357276917,
0.16210532188415527,
-0.22199712693691254,
-0.3214869499206543,
0.04846661910414696,
0.2195311188697815,
0.114881731569767,
0.014172762632369995,
0.02080383151769638,
-0.35430726408958435,
-0.26211604475975037,
-0.24635834991931915,
0.3780517280101776,
0.08373397588729858,
-0.06721974164247513,
0.16260525584220886,
-0.13161490857601166,
-0.12565204501152039,
0.1881820410490036,
0.3759932219982147,
0.1093444973230362,
-0.011934296227991581,
0.24829505383968353,
0.012344381771981716,
-0.0862109363079071,
0.09987825155258179,
0.009018098004162312,
0.12818829715251923,
0.056687433272600174,
-0.19122172892093658,
0.07852237671613693,
-0.02000771276652813,
0.16432732343673706,
0.34587669372558594,
0.3874812424182892,
0.3010592460632324,
-0.1472475379705429,
-0.25514525175094604,
0.018963368609547615,
-0.5182099938392639,
-0.30179980397224426,
0.07005615532398224,
0.16231440007686615,
-0.2750701904296875,
0.051101114600896835,
0.37452685832977295,
0.19378064572811127,
0.06277593970298767,
0.051882531493902206,
0.0086368378251791,
-0.41123852133750916,
-0.07665197551250458,
0.07336375117301941,
-0.013393902219831944,
0.45119738578796387,
-0.03689724579453468,
-0.21865567564964294,
-0.3560895621776581,
-0.3336453139781952,
-0.00986691564321518,
-0.06953557580709457,
0.410104900598526,
-0.16148999333381653,
0.18175780773162842,
0.006476911250501871,
0.3672035336494446,
0.39500030875205994,
0.21570171415805817,
0.14068572223186493,
0.15151536464691162,
-0.0076532550156116486,
-0.18303367495536804,
0.030545320361852646,
0.10357841849327087,
-0.3520214855670929,
0.2259788066148758,
-0.318448007106781,
0.27770113945007324,
-0.29095059633255005,
0.19563743472099304,
0.35022667050361633,
0.18430554866790771,
0.27323392033576965,
0.007618496660143137,
0.10566728562116623,
-0.1933571845293045,
-0.09416525065898895,
0.5531529188156128,
-0.15046492218971252,
-0.23310580849647522,
-0.12270303070545197,
0.14270298182964325,
0.7989796996116638,
0.22827203571796417,
0.15752796828746796,
0.8578521609306335,
-0.37942197918891907,
-0.19980885088443756,
0.33604076504707336,
0.17820602655410767,
-0.35716283321380615,
0.038341622799634933,
0.08121655136346817,
-0.2287752330303192,
0.02730088122189045,
-0.269111692905426,
-0.018552357330918312,
-0.1856173723936081,
-0.020711276680231094,
0.044632624834775925,
0.10847553610801697,
0.05235835909843445,
0.040252916514873505,
0.04245338216423988,
-0.2928381860256195,
0.19293980300426483,
-0.017914950847625732,
0.12701058387756348,
-0.05087818577885628,
-0.08395089209079742,
0.2480623424053192,
-0.10109695792198181,
-0.20435865223407745,
0.34196001291275024,
-0.5799904465675354,
0.17218181490898132,
-0.269223153591156,
-0.45623520016670227,
-0.10751847177743912,
-0.03678972274065018,
-0.22854956984519958,
0.1678052693605423,
-0.03403184935450554,
0.10888656228780746,
-0.02501893788576126,
0.16751126945018768,
0.23507219552993774,
0.03076452761888504,
0.20655441284179688,
-0.2243107706308365,
0.009795745834708214,
-0.1305311769247055,
0.05167798325419426,
-0.41605904698371887,
-0.06003307178616524,
0.04676775634288788,
0.4949309527873993,
-0.2594940662384033,
-0.24022051692008972,
-0.23322440683841705,
-0.1814630925655365,
-0.31353622674942017,
0.2200746387243271,
-0.01314875204116106,
0.13509996235370636,
0.17095625400543213,
0.08707116544246674,
-0.3995954096317291,
-0.1094917505979538,
-0.012305932119488716,
0.01194837037473917,
0.1383812427520752,
0.40056440234184265,
0.12434880435466766,
-0.3258513808250427,
-0.2226492315530777,
0.12601935863494873,
0.16405311226844788,
-0.02711040899157524,
0.0868695005774498,
-0.041215769946575165,
0.19517813622951508,
-0.11181366443634033,
0.005858361721038818,
0.20942279696464539,
0.09912097454071045,
-0.19794484972953796,
-0.4055492877960205,
-0.16605593264102936,
0.14177407324314117,
0.2028816044330597,
0.11818250268697739,
-0.026482852175831795,
0.2930477261543274,
-0.021311983466148376,
-0.25048479437828064,
-0.39062321186065674,
0.11079145222902298,
0.23361395299434662,
0.1192181259393692,
-0.1454877406358719,
-0.20764560997486115,
0.3068409264087677,
-0.010408170521259308,
0.25427088141441345,
-0.051687728613615036,
-0.13477268815040588,
-0.306160032749176,
-0.3753734827041626,
0.08592122793197632,
0.07820940762758255,
-0.35298725962638855,
0.16144107282161713,
-0.17001353204250336,
0.0037518588360399008,
-0.18765640258789062,
0.11373984813690186,
0.3402268886566162,
-0.2084239274263382,
-0.07279875129461288,
0.37925583124160767,
0.14004868268966675,
-0.23623043298721313,
0.007380840368568897,
-0.23874160647392273,
0.28123748302459717,
-0.1352635622024536,
-0.033127561211586,
0.12455758452415466,
-0.05653097480535507,
-0.14417992532253265,
-0.2388959676027298,
0.21344982087612152,
0.16059474647045135,
0.2762320637702942,
-0.12278289347887039,
-0.11529151350259781,
-0.1517726629972458,
0.557952880859375,
0.19814714789390564,
-0.10189548879861832,
-0.02546902559697628,
0.06578222662210464,
0.377564013004303,
-0.21604418754577637,
-0.02465660497546196,
-0.14566732943058014,
-0.17453861236572266,
0.16097892820835114,
-0.0697098821401596,
-0.44670215249061584,
0.07241937518119812,
-0.13363294303417206,
0.08439432084560394,
-0.0011720911134034395,
-0.16617022454738617,
-0.01222908589988947,
0.17768262326717377,
-0.14401915669441223,
-0.04998753219842911,
0.09358619153499603,
-0.07452837377786636,
0.18131089210510254,
0.23310603201389313,
-0.01338453870266676,
0.6520750522613525,
0.5496273636817932,
-0.24432897567749023,
0.05717179924249649,
-0.054931800812482834,
0.006986234802752733,
-0.12364131957292557,
-0.03625774383544922,
0.032686542719602585,
0.0409412607550621,
0.22881512343883514,
-0.28293824195861816,
0.10475069284439087,
-0.05114855617284775,
-0.04353988170623779,
-0.09900946915149689,
-0.26358047127723694,
0.04960010200738907,
-0.004705085884779692,
-0.07286505401134491,
-0.029368048533797264,
-0.10203544050455093,
0.022453980520367622,
0.030337408185005188,
0.04763370379805565,
-0.10487430542707443,
-0.34944114089012146,
0.021304303780198097,
0.2079140692949295,
0.15735186636447906,
-0.3372325301170349,
0.08765001595020294,
0.21877416968345642,
0.14319398999214172,
-0.17037250101566315,
0.4733754098415375,
0.3304479718208313,
0.4719163775444031,
-0.22933413088321686,
-0.13048134744167328,
-0.16754689812660217,
-0.006368076428771019,
-0.03944106772542,
-0.06476376950740814,
0.013415650464594364,
0.1269380897283554,
0.22980456054210663,
0.3690747022628784,
-0.3680003881454468,
0.21183215081691742,
-0.02427832782268524,
-0.271437406539917,
-0.1849633753299713,
0.27952516078948975,
0.14432157576084137,
-0.29518723487854004,
0.012599974870681763,
-0.027996523305773735,
-0.24220257997512817,
-0.06685709953308105,
0.290086567401886,
0.26451733708381653,
0.08760932087898254,
-0.03970799967646599,
0.14040906727313995,
0.14405667781829834,
0.12328080832958221,
0.1019616648554802,
-0.00706830807030201,
-0.4234195649623871,
0.032857902348041534,
-0.4711897373199463,
0.4904589056968689,
-0.14418020844459534,
-0.4465853273868561,
0.0725422352552414,
-0.05491746589541435,
-0.25035935640335083,
0.23455603420734406,
0.33345821499824524,
0.35711413621902466,
0.15245234966278076,
-0.002529651392251253,
-0.255432665348053,
0.13229896128177643,
0.20288413763046265,
-0.10327297449111938,
-0.126017764210701,
-0.3461898863315582,
0.22443082928657532,
-0.2395661473274231,
0.2582559287548065,
0.09346941858530045,
0.04102668538689613,
0.290290504693985,
0.013818198814988136,
0.0178298968821764,
-0.017089245840907097,
0.39506590366363525,
-0.32053816318511963,
0.040930766612291336,
-0.14580175280570984,
-0.22756816446781158,
0.0252157524228096,
0.05320819094777107,
0.017263270914554596,
0.08587944507598877,
0.17346961796283722,
-0.5986055135726929,
-0.43424373865127563,
0.4738566279411316,
-0.3005673289299011,
-0.14237549901008606,
0.10854433476924896,
0.331037700176239,
0.0011340755736455321,
0.1555803418159485,
-0.03743158280849457,
0.17494229972362518,
-0.12648288905620575,
0.05893249809741974,
-0.24580436944961548,
-0.7254010438919067,
0.29435497522354126,
-0.7327607870101929,
-0.296919584274292,
-0.23041318356990814,
0.4603828191757202,
0.021249009296298027,
0.23804447054862976,
-0.28679630160331726,
0.10301149636507034,
0.21289895474910736,
0.04784484952688217,
-0.10168348252773285,
0.1259424239397049,
0.017026778310537338,
-0.02383537031710148,
0.11397887021303177,
0.6136494278907776,
0.10387185961008072,
-0.09762746840715408,
-0.031242191791534424,
-0.28278517723083496
] |
https://github.com/huggingface/datasets/issues/2892 | Error when encoding a dataset with None objects with a Sequence feature | This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed | 19 | Error when encoding a dataset with None objects with a Sequence feature
There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed
This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | [
-0.0830344557762146,
-0.25024375319480896,
-0.038625504821538925,
0.30153903365135193,
0.20768921077251434,
0.07883687317371368,
0.5001562237739563,
0.14941586554050446,
0.12552973628044128,
0.14210641384124756,
0.32856351137161255,
0.050839729607105255,
-0.2967572510242462,
0.34206050634384155,
-0.2623358368873596,
-0.2604983448982239,
0.03453521803021431,
0.22248689830303192,
0.01549192238599062,
-0.022447166964411736,
-0.31306666135787964,
0.17093625664710999,
-0.36487725377082825,
-0.22216244041919708,
-0.15507762134075165,
-0.21080844104290009,
-0.216024249792099,
-0.29602476954460144,
0.05425156652927399,
-0.5987139344215393,
0.2819480001926422,
-0.06951570510864258,
0.09210935980081558,
0.2383219301700592,
-0.0001144155248766765,
0.10549196600914001,
0.638192355632782,
-0.145316019654274,
-0.26280438899993896,
-0.33947473764419556,
-0.5618313550949097,
-0.4227803945541382,
0.12416541576385498,
-0.3578473627567291,
-0.09651213139295578,
-0.07497139275074005,
0.09471854567527771,
-0.3724970817565918,
0.20421233773231506,
0.2839668095111847,
0.21305938065052032,
0.3830006718635559,
-0.08455143123865128,
-0.0744025707244873,
0.20682097971439362,
0.41626107692718506,
-0.26075491309165955,
-0.17985352873802185,
0.03575919196009636,
0.2699486315250397,
0.0946287140250206,
0.34923994541168213,
-0.1114044189453125,
-0.13050705194473267,
0.2094348818063736,
0.08493524044752121,
0.08856191486120224,
-0.4521940052509308,
-0.26712480187416077,
0.20149531960487366,
0.2924092710018158,
0.0013619344681501389,
-0.40846383571624756,
-0.21808874607086182,
0.01887127012014389,
-0.6638942956924438,
0.2666682302951813,
0.0551009476184845,
-0.03862805292010307,
-0.02696375921368599,
-0.16839292645454407,
0.14500148594379425,
-0.2138954997062683,
0.16601695120334625,
-0.12097553163766861,
0.08079086989164352,
-0.13945366442203522,
0.0341406986117363,
-0.24027937650680542,
-0.2700185477733612,
0.05874946713447571,
-0.37062519788742065,
-0.025751734152436256,
0.21114592254161835,
-0.25151297450065613,
-0.19363027811050415,
0.16735078394412994,
0.010184875689446926,
0.16971994936466217,
0.13799351453781128,
-0.06587034463882446,
-0.10379818826913834,
-0.06935866177082062,
-0.01695973239839077,
0.2529113292694092,
0.21360228955745697,
0.41129663586616516,
-0.06806965917348862,
-0.058174632489681244,
0.19612425565719604,
0.09966221451759338,
-0.01759839430451393,
0.11928392201662064,
0.05173970013856888,
0.016925830394029617,
0.4072840213775635,
0.6467193365097046,
-0.052563030272722244,
-0.3934818208217621,
0.2361946403980255,
-0.38535985350608826,
-0.030498305335640907,
-0.021195532754063606,
0.006190822925418615,
0.08412055671215057,
0.2916482985019684,
-0.1465797871351242,
0.21616801619529724,
-0.2736031711101532,
-0.2508828639984131,
-0.23484639823436737,
0.0721953883767128,
0.10184072703123093,
0.08859853446483612,
-0.05474018678069115,
-0.03329949453473091,
0.06581679731607437,
0.15601065754890442,
0.07968000322580338,
0.10098525136709213,
-0.055523063987493515,
-0.3658088445663452,
0.0925065353512764,
0.15237243473529816,
-0.007046679500490427,
0.29215896129608154,
0.37623608112335205,
-0.25812843441963196,
-0.10916213691234589,
0.11824346333742142,
-0.27881133556365967,
-0.2175142765045166,
-0.005827800370752811,
0.17252947390079498,
-0.37956756353378296,
0.044126737862825394,
-0.07340319454669952,
0.22634616494178772,
0.21085752546787262,
-0.07758984714746475,
-0.09654399007558823,
-0.08692926913499832,
-0.21961648762226105,
-0.15351417660713196,
-0.09196573495864868,
0.6465165615081787,
-0.1091337502002716,
-0.012587814591825008,
0.11914944648742676,
-0.08989600092172623,
0.35212308168411255,
0.23272079229354858,
0.04814784228801727,
-0.05724821612238884,
-0.3404104709625244,
0.19002974033355713,
0.08313481509685516,
-0.11154872924089432,
-0.20860719680786133,
0.5657572746276855,
0.023990221321582794,
0.35986968874931335,
0.11346418410539627,
0.09594646096229553,
0.15857014060020447,
-0.3072299659252167,
0.013088379055261612,
0.1975986659526825,
-0.1874651312828064,
-0.22067971527576447,
-0.241898775100708,
-0.1231628805398941,
0.520692765712738,
-0.07434660196304321,
-0.06409063935279846,
0.20678342878818512,
-0.30106180906295776,
-0.023110972717404366,
-0.140646830201149,
-0.31868812441825867,
0.12881417572498322,
0.5053259134292603,
0.21923913061618805,
0.037596262991428375,
-0.09674966335296631,
-0.4028445780277252,
-0.36268606781959534,
0.1312110722064972,
-0.1796041578054428,
0.2839999794960022,
-0.49326813220977783,
-0.1799386441707611,
0.073520727455616,
0.019041359424591064,
-0.39474624395370483,
0.001503260456956923,
0.15478119254112244,
0.12149222940206528,
-0.15351133048534393,
0.19992221891880035,
-0.07734160125255585,
0.2772004306316376,
0.156111478805542,
-0.12485523521900177,
-0.5673224925994873,
0.3699871301651001,
0.06950047612190247,
-0.2262255847454071,
0.007167061325162649,
0.30337220430374146,
0.3317841589450836,
-0.0899982824921608,
0.018318893387913704,
0.15058624744415283,
0.02597067691385746,
-0.33099088072776794,
-0.3067799508571625,
-0.15713827311992645,
0.31905949115753174,
-0.4185929000377655,
-0.22143316268920898,
0.3747457265853882,
0.18254342675209045,
-0.10734137892723083,
-0.12098824232816696,
0.6575429439544678,
0.01573767326772213,
0.4647911787033081,
0.004206742625683546,
0.1760140061378479,
0.05372769013047218,
-0.0018613559659570456,
-0.3271430432796478,
-0.2869088649749756,
0.17555832862854004,
0.20264121890068054,
-0.16507935523986816,
-0.039911795407533646,
-0.30159425735473633,
0.005868810229003429,
0.4108922481536865,
0.08843711763620377,
0.035462636500597,
0.05708000063896179,
-0.07705793529748917,
-0.03683818131685257,
0.1092405840754509,
-0.15959274768829346,
0.29988354444503784,
0.050558727234601974,
-0.07322017103433609,
0.0735783725976944,
0.00754455104470253,
0.07453861832618713,
0.17586849629878998,
-0.035036928951740265,
0.24308227002620697,
0.02856755070388317,
0.10764819383621216,
0.11769825965166092,
-0.17797204852104187,
-0.543848991394043,
-0.039858270436525345,
0.14308884739875793,
-0.24912136793136597,
0.24928171932697296,
-0.47958454489707947,
-0.20561575889587402,
0.1304166167974472,
-0.21736548840999603,
-0.38629597425460815,
-0.4440229535102844,
-0.16394110023975372,
0.027558401226997375,
-0.1408400982618332,
0.22369806468486786,
0.014814067631959915,
-0.2624562382698059,
0.29857513308525085,
-0.024348722770810127,
-0.08313750475645065,
-0.13922907412052155,
-0.02423311211168766,
0.046320125460624695,
0.1656641662120819,
-0.04810258001089096,
0.24677720665931702,
0.03329555317759514,
-0.34998396039009094,
-0.21268689632415771,
-0.20853495597839355,
0.056549590080976486,
-0.35036396980285645,
0.07770784199237823,
0.3079497516155243,
0.12772685289382935,
-0.04940681904554367,
-0.19988718628883362,
0.4227282404899597,
0.42437228560447693,
-0.21209929883480072,
0.32176917791366577,
-0.10206267982721329,
-0.03547358140349388,
-0.21106529235839844,
-0.0959022268652916,
-0.15722109377384186,
-0.2278929054737091,
0.10760444402694702,
0.21096880733966827,
0.21016132831573486,
0.44710230827331543,
0.047019168734550476,
0.12087956815958023,
0.1355811506509781,
-0.17562860250473022,
0.000885627930983901,
-0.015035880729556084,
0.4824746549129486,
-0.1827879399061203,
-0.27124807238578796,
0.14879992604255676,
-0.2987254559993744,
0.08756131678819656,
0.20411725342273712,
-0.3575524389743805,
-0.1763041466474533,
-0.1413789838552475,
0.16113081574440002,
0.07453595846891403,
-0.10465816408395767,
0.3775743544101715,
0.28160586953163147,
-0.10834578424692154,
-0.036769479513168335,
-0.050811149179935455,
0.2569006383419037,
-0.07055075466632843,
0.02874862588942051,
0.22968748211860657,
0.517756462097168,
0.039810169488191605,
0.09723513573408127,
0.43764281272888184,
0.19706375896930695,
0.42616626620292664,
-0.08233210444450378,
0.06893619149923325,
-0.169014573097229,
0.0005422458634711802,
-0.17114511132240295,
0.10793977975845337,
-0.017855875194072723,
0.08362756669521332,
-0.23275737464427948,
-0.11919112503528595,
-0.07930675148963928,
-0.06307059526443481,
0.10385198891162872,
-0.235709086060524,
0.1293705403804779,
-0.4676787853240967,
0.4429667294025421,
-0.08640838414430618,
0.018291011452674866,
-0.30360981822013855,
-0.004700523801147938,
-0.16847370564937592,
-0.008302590809762478,
0.3227558434009552,
-0.14786705374717712,
-0.6496179699897766,
-0.1722312718629837,
-0.20260441303253174,
0.12155424803495407,
0.3011385202407837,
0.5467792749404907,
-0.033762622624635696,
-0.06241650879383087,
-0.10756462067365646,
-0.0191713385283947,
0.40203335881233215,
-0.16438859701156616,
-0.18376268446445465,
0.24542145431041718,
-0.26380130648612976,
-0.2387937605381012,
-0.056774307042360306,
-0.3692709803581238,
0.3344595730304718,
-0.22521953284740448,
0.3618203401565552,
-0.34053632616996765,
-0.22256283462047577,
0.26604586839675903,
0.07425068318843842,
-0.091368168592453,
-0.11321832239627838,
-0.09107787162065506,
-0.2235618680715561,
-0.14560101926326752,
0.012950539588928223,
0.20876723527908325,
0.2621580958366394,
-0.13408631086349487,
-0.0023913567420095205,
-0.5279823541641235,
0.030750861391425133,
0.30582350492477417,
-0.24280427396297455,
0.35555732250213623,
-0.08594240248203278,
0.10515996068716049,
-0.13631191849708557,
0.19407212734222412,
0.2076592743396759,
0.35527968406677246,
0.37715306878089905,
-0.6484144330024719,
0.011157329194247723,
-0.22744643688201904,
0.1626979261636734,
0.2772229015827179,
-0.09346672147512436,
0.09365095943212509,
0.08336419612169266,
0.1915251910686493,
-0.21020594239234924,
-0.33171242475509644,
0.41896045207977295,
-0.08054349571466446,
-0.6726539731025696,
-0.28722047805786133,
0.2649120092391968,
0.09677064418792725,
0.24218124151229858,
-0.13366137444972992,
0.22322888672351837,
-0.21130290627479553,
0.365374356508255,
-0.006300710141658783,
0.6850796937942505,
0.49253883957862854,
0.04190002754330635,
0.5505329966545105,
0.4471417963504791,
0.604353129863739,
0.4047943949699402,
0.2582227885723114,
-0.162506565451622,
-0.672165036201477,
-0.14850567281246185,
-0.05859158933162689,
0.4232233762741089,
0.11910244822502136,
-0.45315098762512207,
0.4891030192375183,
-0.12819933891296387,
-0.06382496654987335,
-0.0981585681438446,
-0.2965759038925171,
-0.13172391057014465,
-0.043969422578811646,
-0.2515956163406372,
0.12457005679607391,
0.06937865167856216,
0.16201913356781006,
0.05738675966858864,
-0.3246814012527466,
0.05229568853974342,
-0.16675202548503876,
-0.194796621799469,
0.16965427994728088,
-0.14336684346199036,
0.09411608427762985,
0.036424458026885986,
-0.3463886082172394,
0.28180986642837524,
0.2232401818037033,
0.18790216743946075,
-0.1312100887298584,
-0.15609337389469147,
-0.19690938293933868,
0.04002969712018967,
0.1034143716096878,
-0.08015851676464081,
-0.0777154266834259,
0.3071269690990448,
-0.026894381269812584,
-0.1485309898853302,
0.1475495994091034,
-0.21429644525051117,
0.10542140901088715,
0.3429114818572998,
0.059051211923360825,
-0.1748199760913849,
-0.16116662323474884,
-0.45325055718421936,
0.030239829793572426,
0.17108462750911713,
-0.05008490011096001,
0.11646510660648346,
0.0069036888889968395,
-0.29202669858932495,
-0.04956464469432831,
-0.19789323210716248,
-0.0086770448833704,
-0.017159275710582733,
0.30728578567504883,
0.5229856967926025,
0.07681296765804291,
0.6932668685913086,
0.191862553358078,
-0.24269312620162964,
-0.1660667061805725,
0.16272695362567902,
0.18308959901332855,
-0.5128662586212158,
0.3100554049015045,
-0.11370815336704254,
0.1459200382232666,
-0.24198073148727417,
0.4570830762386322,
-0.2819414734840393,
0.2090834677219391,
-0.03930390626192093,
-0.11750320345163345,
-0.1571839600801468,
0.23256969451904297,
-0.13328023254871368,
0.10570956766605377,
-0.2226438671350479,
0.11522901058197021,
-0.07904694229364395,
-0.21667616069316864,
-0.2946246266365051,
-0.09730397164821625,
-0.4076431691646576,
0.3669985234737396,
0.11489035934209824,
0.08583300560712814,
0.21908366680145264,
0.16079974174499512,
0.16813378036022186,
0.08565882593393326,
-0.13675996661186218,
-0.19685089588165283,
-0.07516618072986603,
0.12684915959835052,
0.10730286687612534,
-0.1864514946937561,
0.14100968837738037,
0.02690262906253338,
-0.06284879148006439,
-0.13896828889846802,
0.013990163803100586,
0.1784926801919937,
-0.08429788798093796,
0.43051841855049133,
0.3046935796737671,
0.393403559923172,
-0.11811018735170364,
0.16062279045581818,
-0.03202470764517784,
0.22899848222732544,
-0.07312634587287903,
0.08981188386678696,
-0.0715097039937973,
0.0787384957075119,
-0.44373270869255066,
0.13565097749233246,
-0.12916691601276398,
0.11957980692386627,
0.2263302505016327,
-0.36022791266441345,
0.035511232912540436,
0.32367411255836487,
-0.031114444136619568,
0.07553751021623611,
-0.19832375645637512,
-0.014954891987144947,
0.09086453914642334,
0.16748405992984772,
-0.16102370619773865,
0.004407418891787529,
0.1928001344203949,
0.09837713092565536,
0.05536436662077904,
0.2497330754995346,
0.0238152127712965,
0.2197774052619934,
0.15237635374069214,
0.041066400706768036,
0.057635512202978134,
-0.1304040104150772,
0.476772278547287,
0.25024867057800293,
0.10600677132606506,
-0.005962163209915161,
-0.04516447335481644,
-0.13611628115177155,
0.23747792840003967,
0.4095085859298706,
-0.02251419797539711,
0.11335425078868866,
0.4354739487171173,
-0.018356928601861,
-0.029948942363262177,
-0.2667696177959442,
-0.1832299530506134,
0.08748182654380798,
0.3381929099559784,
0.20285308361053467,
0.1870117485523224,
-0.35214269161224365,
-0.3258132040500641,
-0.27016422152519226,
-0.0695832222700119,
0.30993446707725525,
-0.05833035334944725,
-0.0029454187024384737,
0.03566741570830345,
0.011439170688390732,
-0.3740219175815582,
-0.24159884452819824,
-0.09649205952882767,
-0.10929282754659653,
0.27012330293655396,
0.21865521371364594,
0.1762790083885193,
-0.3771929442882538,
0.2747598886489868,
0.28086891770362854,
0.2680352032184601,
-0.11448173224925995,
0.2841906249523163,
0.39184463024139404,
0.0941934883594513,
0.19323821365833282,
0.5161976218223572,
0.3695506155490875,
0.2945844829082489,
-0.02010355331003666,
0.11294928193092346,
-0.03907846659421921,
-0.34501203894615173,
0.08779928833246231,
-0.05984574928879738,
-0.24856621026992798,
0.2879634499549866,
0.15582673251628876,
0.12282423675060272,
-0.12541308999061584,
0.3168383836746216,
0.05447199195623398,
-0.110327810049057,
-0.2857099771499634,
0.7373993396759033,
-0.2703436613082886,
0.027681127190589905,
-0.06510381400585175,
-0.2521204948425293,
-0.4581920802593231,
-0.06524117290973663,
0.38140085339546204,
0.16980719566345215,
0.14951474964618683,
0.2177320420742035,
0.06977047771215439,
-0.4082435965538025,
0.3309633433818817,
0.34036627411842346,
0.07690590620040894,
-0.26513218879699707,
0.061709098517894745,
-0.27506163716316223,
0.11164498329162598,
-0.10152832418680191,
-0.06912299990653992,
0.24956375360488892,
0.1278141736984253,
-0.19325512647628784,
0.11486044526100159,
-0.22047844529151917,
-0.13938172161579132,
-0.10432391613721848,
0.2524556517601013,
-0.3717961311340332,
-0.19465138018131256,
0.2883971631526947,
-0.08923819661140442,
-0.12511488795280457,
-0.26525524258613586,
0.035331834107637405,
0.003945664968341589,
0.07392346858978271,
0.055083002895116806,
-0.044890955090522766,
-0.3227528929710388,
-0.02787192538380623,
0.05725117772817612,
0.6041783690452576,
0.10741180926561356,
-0.05931099131703377,
-0.39225444197654724,
-0.22251026332378387,
-0.2722543478012085,
-0.113332599401474,
0.5871054530143738,
0.2825133800506592,
0.6090584993362427,
-0.13710419833660126,
0.25318643450737,
-0.05520644783973694,
0.37765929102897644,
-0.060990601778030396,
0.04384166747331619,
-0.42449045181274414,
0.5184670686721802,
-0.37195321917533875,
0.1762697547674179,
0.006877264007925987,
0.1811162680387497,
0.1390516310930252,
0.17747071385383606,
-0.05049637332558632,
-0.29201558232307434,
0.39898285269737244,
-0.30848708748817444,
-0.3456189036369324,
0.2019387185573578,
-0.0813748762011528,
0.19276395440101624,
-0.04738748446106911,
-0.307851105928421,
-0.134380504488945,
0.40449661016464233,
-0.1600383073091507,
-0.2725832164287567,
0.004611982498317957,
0.14974690973758698,
-0.067655049264431,
-0.12056256830692291,
0.16076920926570892,
-0.07075275480747223,
-0.2598538100719452,
0.3602844476699829,
-0.31029823422431946
] |
https://github.com/huggingface/datasets/issues/2888 | v1.11.1 release date | @albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release? | 18 | v1.11.1 release date
Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release?
@albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | [
-0.25343209505081177,
-0.14359162747859955,
-0.11700861155986786,
0.12509725987911224,
-0.08036180585622787,
-0.20694342255592346,
0.3182259500026703,
0.25950342416763306,
-0.26621153950691223,
0.24329306185245514,
0.4498228430747986,
-0.07759889215230942,
-0.009268431924283504,
0.37759721279144287,
-0.3972173035144806,
-0.08901625126600266,
0.07872097939252853,
0.10890185832977295,
-0.05268293246626854,
0.044918712228536606,
-0.27206799387931824,
0.06865747272968292,
-0.3964475691318512,
0.16087915003299713,
0.06639909744262695,
-0.07160400599241257,
-0.12159334123134613,
-0.2543470859527588,
-0.6671609282493591,
-0.5313286781311035,
0.31335505843162537,
0.20345018804073334,
0.07602722942829132,
0.2712756395339966,
-0.0001110467710532248,
-0.42386573553085327,
0.5205674171447754,
0.14866980910301208,
-0.26146629452705383,
-0.15130355954170227,
-0.4164436459541321,
-0.535380482673645,
-0.10085934400558472,
-0.013766774907708168,
-0.3072521984577179,
-0.10771466046571732,
0.01174832135438919,
-0.19431957602500916,
-0.06281612813472748,
-0.015602253377437592,
0.2480117231607437,
0.16733874380588531,
0.40197914838790894,
-0.35428595542907715,
0.1863051801919937,
-0.11592438071966171,
-0.37036454677581787,
-0.2499653697013855,
0.5717855095863342,
0.2568039298057556,
0.22688767313957214,
0.38498327136039734,
0.19126324355602264,
-0.19222575426101685,
0.15076300501823425,
-0.009772113524377346,
0.23967701196670532,
-0.266032874584198,
0.04153972864151001,
0.07777848094701767,
0.995561420917511,
0.02036345563828945,
-0.37934666872024536,
0.20347389578819275,
-0.09273316711187363,
-0.2712351679801941,
0.2412475049495697,
0.027282599359750748,
-0.02924470230937004,
0.14924277365207672,
0.0873352512717247,
-0.45841920375823975,
-0.1516827940940857,
0.16021482646465302,
-0.027204541489481926,
0.4591045677661896,
-0.08871687948703766,
0.10676506906747818,
-0.021525857970118523,
-0.3015369772911072,
0.23469798266887665,
0.02009749785065651,
0.08503067493438721,
0.15644516050815582,
0.051452551037073135,
-0.44021281599998474,
0.10607900470495224,
-0.017246751114726067,
0.14981335401535034,
0.19241462647914886,
-0.26061826944351196,
-0.24916604161262512,
-0.046444255858659744,
0.013337588869035244,
0.6594329476356506,
0.07456280291080475,
0.340565949678421,
0.1880096048116684,
0.43294429779052734,
0.25514155626296997,
0.06446067988872528,
0.0997428447008133,
0.06184275075793266,
-0.0808660238981247,
-0.1455138474702835,
0.2052433341741562,
0.45844176411628723,
-0.5718432068824768,
0.3661363422870636,
0.1454991102218628,
0.011531229130923748,
-0.07399744540452957,
-0.32093125581741333,
-0.15084682404994965,
-0.037386950105428696,
0.32570505142211914,
0.08936004340648651,
-0.198311910033226,
0.13486115634441376,
-0.18055838346481323,
-0.1951921135187149,
-0.10883390158414841,
-0.2009812742471695,
-0.01836259849369526,
-0.03156138211488724,
-0.31167513132095337,
-0.277535080909729,
0.11344987154006958,
-0.12540560960769653,
-0.04341277480125427,
0.05646003410220146,
0.1302085965871811,
-0.22466664016246796,
0.4118488132953644,
-0.24663208425045013,
0.08284446597099304,
-0.3096277415752411,
0.24027860164642334,
-0.08194560557603836,
0.3500741720199585,
-0.04245643690228462,
-0.1780535727739334,
-0.3391316533088684,
0.2919040322303772,
-0.16665232181549072,
-0.07769669592380524,
0.27012863755226135,
0.19532348215579987,
-0.2030191421508789,
-0.23829884827136993,
-0.049430012702941895,
0.17224153876304626,
-0.23949050903320312,
-0.25693169236183167,
-0.06953799724578857,
0.04323267564177513,
-0.11934179067611694,
0.15402816236019135,
-0.2632966935634613,
-0.20006002485752106,
0.11972786486148834,
0.005140168126672506,
-0.184230774641037,
-0.31868135929107666,
0.12625905871391296,
-0.24555353820323944,
0.3016963303089142,
-0.34330037236213684,
-0.6395595669746399,
0.38153380155563354,
-0.2841426730155945,
-0.3894362449645996,
0.41146689653396606,
0.17413373291492462,
0.29543790221214294,
-0.3212960362434387,
-0.14097419381141663,
-0.08161836117506027,
-0.16163349151611328,
-0.35596856474876404,
-0.4418994188308716,
-0.401960551738739,
0.04290086776018143,
0.01811189576983452,
0.22048865258693695,
0.15033715963363647,
0.09527534246444702,
0.4235879182815552,
0.07498259842395782,
0.2797822654247284,
0.2078801989555359,
0.07656586170196533,
0.4828037619590759,
-0.1286068707704544,
0.0529901385307312,
-0.1006549745798111,
-0.27670037746429443,
0.09389390051364899,
-0.14357216656208038,
0.1591183990240097,
0.43843314051628113,
-0.3189626932144165,
-0.2085864245891571,
-0.05610526353120804,
0.326071172952652,
-0.07095257937908173,
0.08178170025348663,
0.09157335758209229,
-0.2478199452161789,
0.1673496961593628,
-0.4060976803302765,
0.13686367869377136,
-0.009865926578640938,
-0.0706636905670166,
-0.08844178915023804,
0.04524654895067215,
-0.29087287187576294,
0.09942520409822464,
0.17884407937526703,
0.08383015543222427,
0.16945137083530426,
-0.23905709385871887,
0.1745639443397522,
-0.08151257038116455,
-0.07239970564842224,
0.3089861571788788,
0.3561561703681946,
0.18628959357738495,
0.2350972592830658,
0.20403166115283966,
0.07461132109165192,
0.1710558980703354,
-0.05861128494143486,
0.2303553819656372,
-0.22531503438949585,
0.3460877537727356,
0.3549923896789551,
-0.2632007896900177,
-0.056474681943655014,
0.14472569525241852,
0.130796417593956,
-0.2599104940891266,
-0.09816543012857437,
-0.25564849376678467,
0.08176637440919876,
-0.22111795842647552,
-0.29141995310783386,
0.2252821922302246,
-0.27639394998550415,
0.2965317964553833,
0.5968987345695496,
0.018419340252876282,
-0.047830093652009964,
0.08096763491630554,
0.2573696970939636,
-0.0809907466173172,
0.16796638071537018,
-0.0462065190076828,
0.08849208801984787,
0.2539902925491333,
-0.021018462255597115,
0.004967683460563421,
0.12219202518463135,
0.04252832755446434,
0.10276040434837341,
0.045531969517469406,
-0.40421122312545776,
-0.029937641695141792,
0.053067777305841446,
0.0633864477276802,
0.11527812480926514,
0.17674024403095245,
0.19181591272354126,
0.22660042345523834,
0.06508127599954605,
-0.3978859484195709,
-0.28350338339805603,
-0.06756766140460968,
0.029123736545443535,
-0.019490258768200874,
0.0619625486433506,
0.05344529449939728,
0.13821588456630707,
0.14687293767929077,
0.03162651136517525,
0.18262818455696106,
-0.15484967827796936,
0.7969359755516052,
-0.3889084458351135,
0.4114346206188202,
-0.15663956105709076,
-0.11990515142679214,
-0.31109708547592163,
0.23450537025928497,
-0.012480739504098892,
-0.27760469913482666,
0.25671669840812683,
0.05373310297727585,
0.20902119576931,
-0.6258598566055298,
-0.457741379737854,
0.05285131186246872,
-0.14412620663642883,
0.045297808945178986,
0.03430354222655296,
-0.20544615387916565,
-0.10702211409807205,
0.2207038253545761,
0.03848971799015999,
-0.058767419308423996,
-0.20872244238853455,
-0.16665828227996826,
-0.006819545291364193,
0.07215048372745514,
-0.2570262849330902,
-0.6848426461219788,
-0.13186249136924744,
-0.3363645672798157,
-0.018551018089056015,
-0.1078769713640213,
0.15694023668766022,
-0.12324491888284683,
-0.05142492055892944,
-0.10490961372852325,
0.021720275282859802,
-0.3342832326889038,
-0.09487605094909668,
-0.048730529844760895,
0.09450531750917435,
-0.008282752707600594,
-0.4569733738899231,
0.19938839972019196,
0.17748787999153137,
-0.2025117427110672,
0.1531127691268921,
-0.5314671397209167,
-0.27252379059791565,
0.20652052760124207,
-0.043861985206604004,
0.15735603868961334,
-0.17763279378414154,
0.5536835193634033,
-0.1086379811167717,
-0.2538420259952545,
-0.13455045223236084,
-0.28660422563552856,
0.0720609724521637,
0.17124611139297485,
0.32463473081588745,
0.40918058156967163,
0.2624560296535492,
0.024274839088320732,
0.3892095386981964,
0.19030892848968506,
0.026737455278635025,
0.23416006565093994,
0.17951327562332153,
0.19240620732307434,
-0.09376660734415054,
-0.2098539173603058,
0.06765532493591309,
0.12601293623447418,
0.16181108355522156,
0.15517842769622803,
0.21250565350055695,
-0.08542466908693314,
-0.37645959854125977,
-0.0002546803734730929,
-0.005069516133517027,
0.10664953291416168,
-0.20458373427391052,
0.19392003118991852,
0.624850869178772,
0.15598078072071075,
-0.06904048472642899,
-0.18998540937900543,
-0.05028059333562851,
-0.1242642030119896,
0.23949669301509857,
0.2186526209115982,
-0.08031143993139267,
0.004976130556315184,
0.30570948123931885,
-0.2312406748533249,
0.36853915452957153,
-0.016263388097286224,
0.30519434809684753,
-0.1745799481868744,
0.18369951844215393,
0.16757437586784363,
-0.01653488725423813,
-0.002248173812404275,
-0.4258732199668884,
0.25012004375457764,
0.5538977384567261,
-0.2577002942562103,
0.17580440640449524,
0.03193280100822449,
-0.15974995493888855,
-0.11758826673030853,
-0.1852881759405136,
0.5539382696151733,
-0.06165182217955589,
-0.3503075838088989,
0.5332703590393066,
0.09580127149820328,
-0.11599330604076385,
0.011696861125528812,
-0.14897681772708893,
-0.03917425125837326,
0.036185022443532944,
-0.06920680403709412,
-0.1455722600221634,
0.04509630799293518,
0.07075488567352295,
-0.2735244333744049,
-0.21305611729621887,
-0.23029063642024994,
-0.0789409950375557,
-0.11622351408004761,
0.23028221726417542,
-0.005495112389326096,
0.2637893855571747,
0.10186528414487839,
-0.006938643287867308,
0.2944149374961853,
0.3105015754699707,
0.1103014126420021,
-0.26450425386428833,
0.11263950169086456,
-0.07665757834911346,
0.13211636245250702,
0.36211320757865906,
-0.14406125247478485,
0.1353563517332077,
-0.03249122202396393,
0.0674983412027359,
-0.09203419834375381,
-0.26734310388565063,
0.432761013507843,
-0.16558049619197845,
-0.2975935637950897,
-0.03650211915373802,
0.20603148639202118,
0.16863805055618286,
-0.355457067489624,
0.555996298789978,
0.2967342138290405,
0.008054058067500591,
-0.023656148463487625,
-0.27704477310180664,
1.0293959379196167,
-0.028732841834425926,
-0.07097689062356949,
-0.22299490869045258,
-0.2106599509716034,
0.3116074204444885,
0.15183281898498535,
0.12755922973155975,
-0.14791205525398254,
-0.12004140764474869,
-0.1563587635755539,
0.025576526299118996,
0.35665449500083923,
0.013788566924631596,
-0.4522588551044464,
0.1800192892551422,
-0.10668742656707764,
0.3458713889122009,
0.1815042793750763,
0.4181371033191681,
0.20393483340740204,
0.2149992287158966,
-0.1357865035533905,
0.18121811747550964,
0.041511230170726776,
0.34440627694129944,
-0.11158035695552826,
-0.11234183609485626,
0.050609029829502106,
-0.16847848892211914,
-0.37727490067481995,
-0.16275553405284882,
0.09462333470582962,
0.12849554419517517,
-0.04188176617026329,
-0.32950493693351746,
0.15016338229179382,
-0.20670431852340698,
0.23946131765842438,
0.05871140584349632,
-0.1543530970811844,
0.10663323104381561,
-0.10029876232147217,
-0.2956923246383667,
0.0422360897064209,
0.20251353085041046,
0.24934770166873932,
-0.36579933762550354,
-0.1296640932559967,
0.2075188159942627,
-0.06659574061632156,
-0.19576101005077362,
-0.38056081533432007,
0.014414441771805286,
0.19049964845180511,
-0.0858495682477951,
0.0902344286441803,
0.07931118458509445,
0.000039329930586973205,
-0.26875704526901245,
0.21664181351661682,
0.23639079928398132,
0.17307254672050476,
-0.07047240436077118,
0.09091290831565857,
-0.09439712762832642,
-0.04622848331928253,
0.3315748870372772,
0.4488438665866852,
-0.08695174753665924,
-0.05772675201296806,
-0.10464783757925034,
-0.025315439328551292,
-0.29673755168914795,
0.16510739922523499,
0.14837110042572021,
-0.19265493750572205,
0.31667810678482056,
0.045181360095739365,
-0.17714491486549377,
0.09663114696741104,
0.8037610054016113,
0.11329036951065063,
-0.08670275658369064,
-0.3089386522769928,
-0.22691406309604645,
-0.20127315819263458,
0.400747150182724,
-0.35074517130851746,
-0.0632593184709549,
-0.17282229661941528,
0.0035144176799803972,
0.17836488783359528,
-0.2588580846786499,
-0.35823535919189453,
0.10949409008026123,
-0.02293226681649685,
-0.15584076941013336,
0.3805619776248932,
-0.13976521790027618,
-0.12688814103603363,
-0.1695239394903183,
0.06836115568876266,
-0.19142617285251617,
-0.4219690263271332,
-0.18258987367153168,
-0.006880970671772957,
0.1795589029788971,
-0.09949880838394165,
0.11059019714593887,
-0.2188424915075302,
-0.3331710696220398,
-0.32947948575019836,
0.5655468106269836,
-0.05746254324913025,
0.21055836975574493,
0.26581770181655884,
-0.0013693931978195906,
-0.19110365211963654,
0.08320685476064682,
-0.0473589189350605,
0.1444200724363327,
0.29168644547462463,
0.061674002557992935,
0.05258176475763321,
0.21925105154514313,
0.3352401554584503,
-0.05124594271183014,
-0.31883156299591064,
-0.08573120832443237,
0.028379041701555252,
0.10824398696422577,
0.2533848285675049,
0.08450747281312943,
0.07785502821207047,
0.3177063465118408,
0.261340856552124,
0.1477469801902771,
0.02358771674335003,
-0.10451570898294449,
0.14997251331806183,
0.22904659807682037,
-0.4348064064979553,
-0.21444498002529144,
-0.10244370996952057,
0.19541573524475098,
-0.35196903347969055,
-0.05866406857967377,
0.4161963164806366,
0.37450993061065674,
0.3306235074996948,
0.23533415794372559,
0.32521557807922363,
-0.28755515813827515,
0.1753372699022293,
0.29865118861198425,
0.2821618318557739,
0.08192425221204758,
0.2702080011367798,
0.35630831122398376,
0.11984113603830338,
-0.11741600930690765,
0.11622211337089539,
0.25799354910850525,
0.6770772933959961,
0.461113303899765,
0.2945822477340698,
-0.16741453111171722,
0.152861550450325,
0.1450759470462799,
0.024857057258486748,
-0.009703352116048336,
-0.028064073994755745,
0.23412512242794037,
-0.2223806381225586,
0.0008826315170153975,
-0.2526208162307739,
-0.1989828646183014,
-0.13957634568214417,
-0.20661787688732147,
0.08047933876514435,
-0.2013021558523178,
-0.1639321744441986,
-0.049033913761377335,
-0.0818432942032814,
0.38813674449920654,
0.46514639258384705,
-0.1723364293575287,
0.06459115445613861,
-0.10199719667434692,
-0.12642301619052887,
0.1757824420928955,
0.26559457182884216,
-0.18459637463092804,
0.3018840253353119,
-0.4171670079231262,
0.10559406876564026,
0.20460017025470734,
0.5415049195289612,
0.06688739359378815,
-0.005514134187251329,
-0.096651591360569,
-0.03461674973368645,
-0.20499034225940704,
-0.09645204991102219,
0.11996611952781677,
0.4839957058429718,
0.2810300886631012,
0.3264021575450897,
0.023384883999824524,
0.07553786784410477,
-0.14215917885303497,
0.4168715476989746,
-0.10790733993053436,
-0.1283363401889801,
-0.627683699131012,
0.21749064326286316,
-0.10517217963933945,
-0.1579536348581314,
-0.06128152459859848,
0.12601198256015778,
-0.012663555331528187,
-0.3415771424770355,
0.27159667015075684,
0.21668805181980133,
-0.06430577486753464,
-0.24864691495895386,
0.11121871322393417,
-0.23084883391857147,
0.04201716184616089,
0.013572731986641884,
-0.008657614700496197,
-0.019740134477615356,
-0.3096866309642792,
-0.44895797967910767,
0.3907982110977173,
0.111597441136837,
-0.24081528186798096,
0.10528023540973663,
0.21330095827579498,
0.08897878229618073,
0.3081979751586914,
0.09241847693920135,
-0.17903919517993927,
-0.3171941936016083,
-0.1446877270936966,
-0.40227407217025757,
0.1941870152950287,
0.3912087082862854,
0.08479439467191696,
-0.04224236309528351,
-0.27748367190361023,
0.27421921491622925,
-0.29324081540107727,
0.03224281966686249,
0.10447578877210617,
-0.33371618390083313,
0.38600507378578186,
0.14066675305366516,
0.5287460088729858,
0.03213164582848549,
0.13045400381088257,
0.23303483426570892,
-0.13441960513591766,
-0.4677242934703827,
-0.13288812339305878,
-0.03367133066058159,
-0.10856752842664719,
0.04182305186986923,
0.04389487951993942,
-0.2677306532859802,
0.11621430516242981,
-0.19904549419879913,
0.05104327201843262,
-0.37059393525123596,
0.4114428162574768,
0.06625492870807648,
0.10950824618339539,
0.06624986976385117,
-0.2569505274295807,
0.2648652195930481,
0.05526784807443619,
-0.11630035191774368,
-0.25988128781318665,
-0.44472792744636536,
-0.3196740448474884,
0.2948858439922333,
0.009998411871492863,
-0.14694248139858246,
-0.11868561804294586,
0.07514135539531708,
0.26015910506248474,
-0.2630876302719116,
-0.40477797389030457,
-0.13587884604930878,
0.30264362692832947,
0.2290501892566681,
-0.12055408209562302,
0.0037206588312983513,
0.011637204326689243,
-0.18535736203193665,
0.07482242584228516,
0.30177581310272217,
-0.1473492532968521,
-0.11054902523756027,
-0.19107885658740997,
0.07434473186731339
] |
https://github.com/huggingface/datasets/issues/2885 | Adding an Elastic Search index to a Dataset | Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | ## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
| 44 | Adding an Elastic Search index to a Dataset
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | [
-0.14233581721782684,
0.17272774875164032,
-0.004471531603485346,
0.04009603336453438,
0.09973691403865814,
0.027368132025003433,
-0.013204159215092659,
0.06842286139726639,
0.013826070353388786,
0.05311533808708191,
-0.0395587719976902,
0.3000071942806244,
0.3499434292316437,
-0.3781624138355255,
-0.1049262136220932,
0.1306152194738388,
0.09097267687320709,
0.094149649143219,
0.27567481994628906,
0.19792833924293518,
-0.03591439127922058,
0.09590834379196167,
-0.1247543916106224,
-0.0892915278673172,
-0.3346312940120697,
0.021213365718722343,
-0.031670503318309784,
-0.12353751808404922,
-0.02871781401336193,
-0.41674280166625977,
0.3019477128982544,
-0.1501852124929428,
-0.1225859522819519,
0.35763445496559143,
-0.00011850787996081635,
0.0780741274356842,
0.4348543584346771,
-0.03297114744782448,
-0.018322739750146866,
-0.2907196879386902,
-0.07238050550222397,
-0.13544444739818573,
0.279198557138443,
-0.15913158655166626,
-0.09534712880849838,
0.16176344454288483,
0.09874878823757172,
-0.611460268497467,
0.44152238965034485,
0.39613381028175354,
0.22101135551929474,
0.3180060088634491,
0.3437502384185791,
-0.12438351660966873,
0.41982895135879517,
-0.1281125545501709,
-0.04895151033997536,
-0.2564236521720886,
0.25303399562835693,
-0.03889993578195572,
-0.029067153111100197,
0.14522899687290192,
-0.09448923915624619,
-0.2707444429397583,
0.10850383341312408,
0.14813442528247833,
-0.4625433385372162,
-0.2957313358783722,
0.31498953700065613,
0.11342285573482513,
0.19102612137794495,
-0.07123395800590515,
-0.251936674118042,
0.045184213668107986,
-0.0008994006784632802,
0.16221027076244354,
0.19942021369934082,
0.18945690989494324,
0.06060965731739998,
0.11904234439134598,
0.06538989394903183,
-0.12489742040634155,
-0.23916135728359222,
0.4135325849056244,
-0.053709883242845535,
0.17344380915164948,
-0.09754166007041931,
0.1064755842089653,
0.13659405708312988,
-0.146079882979393,
0.07822900265455246,
0.2522954046726227,
-0.2729325592517853,
-0.05551595613360405,
-0.37644296884536743,
0.10244734585285187,
-0.11689432710409164,
-0.20027191936969757,
0.41850486397743225,
-0.06345218420028687,
-0.09268433600664139,
0.1597328633069992,
0.651411771774292,
0.08237014710903168,
0.28603067994117737,
-0.06310401856899261,
0.06138123944401741,
0.3085792362689972,
0.0735875591635704,
-0.31726452708244324,
-0.3174724578857422,
-0.25935620069503784,
0.2854793071746826,
-0.214969202876091,
0.41807734966278076,
-0.48181477189064026,
0.21345703303813934,
-0.030027596279978752,
-0.15906603634357452,
0.21930064260959625,
-0.5879532694816589,
-0.006157205440104008,
-0.07535023987293243,
0.13534888625144958,
0.1364612728357315,
-0.4953051209449768,
0.03836881369352341,
0.27251631021499634,
-0.2289300113916397,
0.1452212929725647,
-0.23566627502441406,
-0.2659831643104553,
0.04086967185139656,
0.017961883917450905,
0.11603628098964691,
-0.6583967804908752,
0.2295718491077423,
0.0021876227110624313,
0.08426009863615036,
-0.39457058906555176,
0.2630118727684021,
-0.08290007710456848,
0.17736409604549408,
0.21885554492473602,
0.06153484061360359,
0.023489028215408325,
0.02322685346007347,
-0.43855583667755127,
-0.03515538200736046,
-0.12219388782978058,
-0.3814527690410614,
-0.25214022397994995,
-0.276483952999115,
0.21022745966911316,
-0.13857696950435638,
0.01717793382704258,
0.13575217127799988,
0.21815422177314758,
0.11031240224838257,
-0.008274530991911888,
0.07757538557052612,
-0.04035564884543419,
-0.28976839780807495,
0.08141660690307617,
0.2997894883155823,
0.20748092234134674,
0.11608467251062393,
-0.12900656461715698,
0.034548018127679825,
0.42768725752830505,
-0.2609294056892395,
0.21411879360675812,
-0.23132744431495667,
0.036428771913051605,
-0.17314106225967407,
0.4179224371910095,
0.3350296914577484,
-0.46300196647644043,
-0.6134619116783142,
0.13872051239013672,
-0.2306157797574997,
-0.09500882029533386,
-0.2723561227321625,
0.060784243047237396,
0.6483935117721558,
0.01077177096158266,
0.17986786365509033,
0.2476816326379776,
-0.17625825107097626,
-0.1678982675075531,
-0.15230102837085724,
-0.0007273747469298542,
-0.1430877149105072,
-0.17720182240009308,
0.0628996416926384,
0.09033524245023727,
0.2576124370098114,
0.2004101425409317,
-0.005574201233685017,
0.1895459145307541,
0.011543176136910915,
0.30669522285461426,
0.35648664832115173,
0.10774875432252884,
0.2526797652244568,
-0.12880180776119232,
-0.2565322816371918,
0.2232700139284134,
0.08953048288822174,
0.08368691056966782,
-0.18277673423290253,
-0.11986327171325684,
-0.1379048377275467,
0.007161824963986874,
-0.15699179470539093,
0.030996186658740044,
0.1074972152709961,
-0.23774315416812897,
-0.2198880910873413,
0.1922544538974762,
0.0002295911981491372,
-0.1667473465204239,
0.07281047850847244,
0.23821623623371124,
-0.237638920545578,
0.312053382396698,
-0.08301202952861786,
-0.08675311505794525,
-0.18836070597171783,
-0.012789643369615078,
0.23681654036045074,
-0.20603856444358826,
-0.14462034404277802,
0.33254170417785645,
-0.09940645098686218,
0.3171948492527008,
0.15428444743156433,
0.02519483119249344,
0.1261182725429535,
-0.6889182925224304,
-0.10387783497571945,
0.14205698668956757,
0.057195477187633514,
-0.27619093656539917,
-0.00031332983053289354,
0.015249486081302166,
0.00722608994692564,
0.37240222096443176,
-0.21710264682769775,
0.086873859167099,
-0.0073977806605398655,
-0.17348167300224304,
-0.4597904682159424,
-0.0337325818836689,
-0.019845765084028244,
-0.3641362488269806,
-0.0424908846616745,
-0.11294104158878326,
-0.1182914450764656,
0.0319063663482666,
0.01611548289656639,
0.15425176918506622,
0.10466203838586807,
0.370985746383667,
0.020230263471603394,
-0.10019239783287048,
-0.38004162907600403,
-0.02085920423269272,
0.23986323177814484,
0.17840436100959778,
0.14130835235118866,
-0.00039497268153354526,
0.015999700874090195,
-0.05712610110640526,
0.31742000579833984,
0.34493276476860046,
0.08519075810909271,
0.32849010825157166,
0.42678332328796387,
0.08073552697896957,
-0.23499883711338043,
-0.0556243471801281,
-0.218771293759346,
-0.034960340708494186,
-0.248305544257164,
0.48377734422683716,
-0.03817945346236229,
0.12168889492750168,
-0.1421811580657959,
0.036697909235954285,
-0.2608760595321655,
-0.4408208727836609,
-0.10007078945636749,
0.19188733398914337,
-0.029806174337863922,
0.010196088813245296,
-0.38963669538497925,
-0.02801555022597313,
0.2536539137363434,
-0.2719680964946747,
0.1400226503610611,
-0.138258159160614,
-0.142363041639328,
-0.03425091877579689,
0.1852952241897583,
0.05593585595488548,
0.23909121751785278,
0.22776088118553162,
-0.1308046132326126,
-0.38574060797691345,
-0.4401709735393524,
0.13538481295108795,
0.027066029608249664,
0.338162899017334,
0.10618413984775543,
-0.20703724026679993,
-0.4189090132713318,
-0.13923564553260803,
0.2391747534275055,
-0.15691401064395905,
0.09605301916599274,
0.09899039566516876,
0.08122698962688446,
0.16545598208904266,
0.2521836459636688,
-0.298806369304657,
-0.18562960624694824,
-0.17730630934238434,
0.0319298580288887,
-0.130062073469162,
-0.07019021362066269,
0.326548308134079,
-0.010066875256597996,
0.13343128561973572,
-0.1179937869310379,
-0.09436626732349396,
-0.12056101858615875,
-0.15527836978435516,
0.05129062384366989,
-0.161736398935318,
-0.31464824080467224,
0.16640274226665497,
-0.035865962505340576,
-0.2476518303155899,
0.2399177998304367,
-0.3951131999492645,
0.21291519701480865,
0.1262052357196808,
-0.25794699788093567,
-0.30928656458854675,
0.055934932082891464,
0.08564483374357224,
-0.2632974088191986,
-0.015295975841581821,
-0.03317376971244812,
0.029206031933426857,
0.17546337842941284,
0.22315578162670135,
0.09258720278739929,
-0.09783954173326492,
0.2361079454421997,
-0.07093600183725357,
0.6817718744277954,
0.160398468375206,
-0.013461858034133911,
0.15878473222255707,
-0.17086201906204224,
0.3219512104988098,
-0.23699291050434113,
-0.5023805499076843,
-0.14123965799808502,
-0.10594407469034195,
-0.10542111843824387,
-0.028370710089802742,
0.10957437008619308,
-0.2827529311180115,
-0.1155998706817627,
-0.24268952012062073,
-0.060500618070364,
-0.5460485219955444,
0.18939341604709625,
0.1710992455482483,
0.06934262067079544,
0.056865423917770386,
0.15642887353897095,
0.12334069609642029,
-0.43607401847839355,
-0.4252505898475647,
-0.12721949815750122,
-0.1278420388698578,
0.015779614448547363,
-0.26754406094551086,
0.19871951639652252,
-0.6068626642227173,
0.1646699458360672,
-0.05421070381999016,
0.52877277135849,
0.05516991391777992,
0.0009338848176412284,
0.1420910358428955,
0.16867776215076447,
0.7477440237998962,
-0.22517484426498413,
-0.11859751492738724,
-0.01583479903638363,
0.05479300767183304,
-0.5928247570991516,
0.0987461507320404,
-0.14764395356178284,
0.628697395324707,
0.20921745896339417,
0.37377244234085083,
0.028893297538161278,
0.1745181679725647,
0.07553661614656448,
-0.10054673254489899,
0.07907033711671829,
-0.07784132659435272,
-0.22568275034427643,
-0.2200264185667038,
0.30444297194480896,
0.27427372336387634,
0.3445194363594055,
0.08100195229053497,
0.32237938046455383,
-0.2284778505563736,
-0.296967476606369,
-0.03094571828842163,
0.04371846094727516,
-0.2290932685136795,
0.25751039385795593,
-0.07814791798591614,
0.2960498631000519,
0.4340246021747589,
0.2177850306034088,
0.2762294411659241,
0.4081854224205017,
-0.24404080212116241,
0.08859319239854813,
-0.01967356912791729,
-0.03754749894142151,
0.17640982568264008,
0.3452105224132538,
0.23339416086673737,
0.1530000865459442,
0.178876593708992,
0.06654204428195953,
-0.21474234759807587,
-0.18785937130451202,
0.5031187534332275,
0.13828615844249725,
-0.4760870337486267,
0.06704279780387878,
0.36206507682800293,
-0.06275168806314468,
-0.030865930020809174,
0.07451611757278442,
0.5442922711372375,
-0.39886975288391113,
0.6471541523933411,
0.11359819024801254,
0.6712862253189087,
0.08919455856084824,
-0.07255655527114868,
-0.2630756199359894,
0.11092640459537506,
0.7352771759033203,
-0.33470189571380615,
0.2549375295639038,
-0.20974980294704437,
-0.5855284333229065,
-0.06905888766050339,
-0.28584977984428406,
0.008679941296577454,
-0.22341755032539368,
-0.3603479862213135,
0.016650456935167313,
-0.3822993338108063,
0.28212594985961914,
-0.08415526151657104,
0.3374670743942261,
-0.15104620158672333,
-0.12747985124588013,
0.03526821732521057,
0.1547403335571289,
0.22271397709846497,
0.26923298835754395,
0.19162337481975555,
0.04244430735707283,
-0.017423193901777267,
-0.27756038308143616,
-0.4944610893726349,
-0.019129188731312752,
-0.12746016681194305,
0.15517307817935944,
0.1827654093503952,
-0.04532267525792122,
0.38154610991477966,
0.09889547526836395,
0.048147980123758316,
0.10755704343318939,
-0.18122375011444092,
0.24065101146697998,
-0.008088123984634876,
-0.0569831058382988,
0.4446689188480377,
-0.22058342397212982,
0.07117964327335358,
0.17912299931049347,
-0.4024154245853424,
-0.018444053828716278,
0.2618074417114258,
-0.18586613237857819,
-0.08226967602968216,
0.3471035957336426,
-0.25227439403533936,
-0.3732703924179077,
-0.2347559779882431,
-0.12859128415584564,
-0.06754947453737259,
-0.14326466619968414,
0.08923231810331345,
0.008490752428770065,
-0.12428487092256546,
0.2830711901187897,
0.36897948384284973,
-0.24953198432922363,
0.07210081815719604,
0.850379228591919,
-0.21605153381824493,
-0.13867399096488953,
0.20747728645801544,
0.06039552763104439,
-0.17180240154266357,
-0.11009160429239273,
0.32643139362335205,
0.28593701124191284,
-0.150676891207695,
-0.2592434883117676,
-0.46275103092193604,
0.22831566631793976,
0.0369626060128212,
0.03771568089723587,
0.21224616467952728,
-0.009237539954483509,
-0.1842622011899948,
-0.19047778844833374,
0.14333489537239075,
0.15667615830898285,
0.4442586600780487,
0.10218578577041626,
-0.3198876976966858,
-0.40580856800079346,
-0.09582769870758057,
0.1374998241662979,
-0.2438109964132309,
0.32686665654182434,
-0.25202786922454834,
0.006450592074543238,
-0.12959222495555878,
-0.05161594599485397,
0.5856392979621887,
-0.3752816617488861,
0.059196606278419495,
0.174484521150589,
-0.05121907964348793,
-0.16854041814804077,
-0.06370114535093307,
0.11913764476776123,
-0.045076191425323486,
-0.10700834542512894,
-0.16663461923599243,
-0.23166072368621826,
-0.04734867438673973,
-0.2600591778755188,
0.026888126507401466,
0.424556702375412,
0.1292693167924881,
-0.16630247235298157,
-0.15225280821323395,
-0.12608584761619568,
0.35492590069770813,
-0.08605128526687622,
0.2210676074028015,
0.25743404030799866,
0.016934232786297798,
0.2850545346736908,
0.1095147356390953,
-0.03135395422577858,
-0.11664281785488129,
0.27056631445884705,
-0.043709415942430496,
0.07836674898862839,
0.20383113622665405,
-0.23710410296916962,
-0.09618140012025833,
0.5086318254470825,
0.41947102546691895,
0.3942956328392029,
-0.3104347586631775,
-0.1650984138250351,
-0.0005251698894426227,
0.2413313388824463,
0.049248531460762024,
-0.2417103499174118,
0.6126324534416199,
0.09002598375082016,
0.12838885188102722,
0.20120231807231903,
0.08903850615024567,
-0.313093900680542,
-0.35252055525779724,
0.02918582782149315,
0.7695251107215881,
0.13496579229831696,
0.10625199973583221,
-0.18472278118133545,
-0.02989942394196987,
-0.030787847936153412,
0.0969647765159607,
0.15404510498046875,
0.36287549138069153,
0.21088004112243652,
0.009351692162454128,
0.44576242566108704,
0.0946386381983757,
0.2002345472574234,
0.1958199143409729,
0.14632835984230042,
0.2819839417934418,
0.2778768837451935,
0.19834598898887634,
0.06488349288702011,
-0.031021371483802795,
0.8150579333305359,
-0.008177308365702629,
-0.3088999092578888,
-0.10747414082288742,
0.012354006990790367,
-0.07188519835472107,
-0.13819968700408936,
0.21335935592651367,
-0.16537952423095703,
-0.0008475058129988611,
-0.2416386604309082,
0.08490031212568283,
-0.02695944905281067,
-0.390127569437027,
0.15755029022693634,
0.11248217523097992,
-0.04309539496898651,
0.05088937655091286,
-0.14149737358093262,
0.07671995460987091,
-0.16643673181533813,
0.003622526302933693,
-0.15190710127353668,
0.12521225214004517,
0.23516790568828583,
0.3312086760997772,
0.4035593271255493,
-0.07472364604473114,
-0.14004665613174438,
0.40586480498313904,
-0.03501223027706146,
-0.14455318450927734,
0.10792092233896255,
0.031837187707424164,
-0.00027291959850117564,
-0.5440950989723206,
0.14781661331653595,
0.0487128347158432,
-0.06358897686004639,
0.014042080380022526,
0.26408377289772034,
0.43219807744026184,
-0.1540917009115219,
-0.3470182716846466,
-0.21063187718391418,
0.07443267107009888,
-0.1783643364906311,
-0.15063054859638214,
-0.16003787517547607,
0.0988604724407196,
0.29712337255477905,
-0.21230962872505188,
0.14406274259090424,
0.1429019272327423,
0.06288831681013107,
-0.08692166209220886,
0.19667978584766388,
0.11604829132556915,
-0.05504636466503143,
-0.03339722380042076,
0.07475215196609497,
-0.20595400035381317,
0.31864163279533386,
-0.4508095979690552,
0.1692674607038498,
0.559151291847229,
0.29605236649513245,
-0.20471379160881042,
0.10676725208759308,
0.18077056109905243,
-0.23506617546081543,
-0.29931285977363586,
-0.07724431157112122,
-0.016041377559304237,
-0.22386708855628967,
-0.10156039148569107,
0.026177890598773956,
-0.010141420178115368,
-0.025155644863843918,
0.1090446189045906,
-0.5017800331115723,
0.02346203848719597,
-0.23539701104164124,
-0.1540963500738144,
-0.19839604198932648,
-0.17497418820858002,
0.11525123566389084,
0.0764288380742073,
0.2546806335449219,
-0.010825485922396183,
0.07054349035024643,
-0.19427302479743958,
-0.46987414360046387,
-0.2817732095718384,
0.26535964012145996,
0.09579042345285416,
0.03096906840801239,
-0.25580042600631714,
-0.49813947081565857,
-0.20893658697605133,
0.14825941622257233,
0.0951693132519722,
-0.10516034811735153,
-0.4935900568962097,
0.021184105426073074,
-0.06647457927465439,
0.12540334463119507,
-0.28242841362953186,
0.32178762555122375,
-0.0584603026509285,
0.4555456042289734,
0.05762321874499321,
-0.42733150720596313,
0.47240757942199707,
-0.3319602906703949,
0.005578618496656418,
-0.04099453613162041,
0.29267823696136475,
0.6038853526115417,
0.14099378883838654,
-0.23869487643241882,
-0.1673588901758194,
0.2756534814834595,
-0.19434617459774017,
-0.24405938386917114,
-0.09817367047071457,
-0.015066464431583881,
0.19261859357357025,
-0.025973157957196236,
-0.1619802862405777,
0.2742900252342224,
-0.029248636215925217,
0.015127517282962799,
-0.09116998314857483
] |
https://github.com/huggingface/datasets/issues/2882 | `load_dataset('docred')` results in a `NonMatchingChecksumError` | Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| ## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific. | 69 | `load_dataset('docred')` results in a `NonMatchingChecksumError`
## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific.
Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| [
-0.2659110426902771,
0.3422701358795166,
0.03556513786315918,
0.3098565638065338,
0.21419760584831238,
0.04043257236480713,
0.3646670877933502,
0.42015519738197327,
0.3040322959423065,
0.07150309532880783,
-0.2768661677837372,
0.19011875987052917,
0.13069579005241394,
-0.19511151313781738,
-0.16129200160503387,
0.3339132070541382,
0.12469390034675598,
0.10538289695978165,
-0.2242247611284256,
-0.12528032064437866,
-0.3106812536716461,
0.19857966899871826,
-0.21844422817230225,
-0.2843076288700104,
-0.052953410893678665,
0.18356208503246307,
0.15325993299484253,
0.23243394494056702,
-0.120699942111969,
-0.3587092459201813,
0.27882087230682373,
0.27852940559387207,
0.17363210022449493,
0.4296131134033203,
-0.00012492816313169897,
0.120798259973526,
0.28177085518836975,
-0.0242786705493927,
-0.5012805461883545,
-0.20138582587242126,
-0.5633542537689209,
-0.3742283582687378,
-0.007042893208563328,
-0.15833784639835358,
-0.03448767215013504,
0.2363329827785492,
-0.017780639231204987,
-0.27507174015045166,
0.00017913299961946905,
0.37369439005851746,
0.1168588325381279,
0.39186638593673706,
0.1610022336244583,
0.08716961741447449,
0.3812573552131653,
0.050498560070991516,
-0.09010385721921921,
0.4119759202003479,
0.2193893939256668,
-0.038596656173467636,
-0.25821298360824585,
0.1683274805545807,
-0.42345356941223145,
0.3069985508918762,
0.2320551574230194,
0.06188230216503143,
0.06487066298723221,
-0.13736610114574432,
0.2532403767108917,
0.2994746267795563,
0.4981350004673004,
-0.41466179490089417,
-0.3278168737888336,
-0.2285795509815216,
-0.2983042597770691,
-0.31886348128318787,
0.37913504242897034,
0.13985486328601837,
-0.19677741825580597,
0.03362756967544556,
-0.3680788278579712,
0.14996765553951263,
0.0037718936800956726,
0.1940131038427353,
0.2422594428062439,
0.05453149601817131,
0.03165372833609581,
-0.01877058483660221,
0.022109730169177055,
0.0298724714666605,
0.39370694756507874,
-0.5399646162986755,
-0.20467230677604675,
0.2048070877790451,
-0.5590270161628723,
0.07308224588632584,
0.008057327941060066,
0.27770566940307617,
0.35263824462890625,
0.4925110936164856,
0.08901138603687286,
0.2042771726846695,
-0.03754514828324318,
0.18851345777511597,
0.16431251168251038,
0.2119751274585724,
-0.06474215537309647,
0.4100402295589447,
0.2708576023578644,
0.3656848073005676,
-0.1347789466381073,
0.04321376234292984,
-0.005431338679045439,
-0.17642588913440704,
0.6712609529495239,
-0.12599441409111023,
0.3084285259246826,
-0.4890391528606415,
-0.438892662525177,
0.27132469415664673,
0.00820532999932766,
-0.09479668736457825,
0.08694703131914139,
0.3220214247703552,
-0.2265855371952057,
0.15165869891643524,
0.14701838791370392,
0.14769020676612854,
-0.2125060260295868,
-0.05413273721933365,
-0.18733762204647064,
-0.07643615454435349,
-0.059677448123693466,
0.19760777056217194,
0.2942277789115906,
-0.18219727277755737,
0.2553660571575165,
0.10831256955862045,
0.21902349591255188,
-0.19608041644096375,
0.29997631907463074,
-0.195566326379776,
-0.053363408893346786,
0.3180699944496155,
-0.032225050032138824,
0.09612765908241272,
0.24765965342521667,
-0.18122078478336334,
-0.14393888413906097,
0.1828756481409073,
-0.25577282905578613,
-0.21374179422855377,
-0.12691240012645721,
0.15115457773208618,
-0.3514274060726166,
0.008207309059798717,
-0.23781897127628326,
-0.4000212252140045,
0.40633174777030945,
-0.32234397530555725,
-0.015479042194783688,
-0.35421091318130493,
-0.2637995779514313,
-0.3539440929889679,
0.23896893858909607,
0.4025937616825104,
0.041926607489585876,
0.0426536500453949,
-0.09056544303894043,
-0.01148144993931055,
0.29418960213661194,
0.18351303040981293,
0.009325428865849972,
0.10562778264284134,
-0.41249579191207886,
-0.06356219947338104,
0.2606510519981384,
-0.3542025685310364,
-0.6170945167541504,
0.1036195456981659,
0.12775272130966187,
0.6295824646949768,
0.047649890184402466,
0.07500160485506058,
0.1831660121679306,
-0.05024256929755211,
0.22169606387615204,
0.1532352864742279,
-0.038785744458436966,
0.12447930127382278,
-0.25280842185020447,
-0.03255889192223549,
-0.0434749461710453,
0.10448648035526276,
0.020171957090497017,
0.2498002052307129,
0.28892236948013306,
-0.16611574590206146,
0.26378023624420166,
-0.09536546468734741,
-0.12573619186878204,
0.2321084439754486,
0.2991936504840851,
0.046871449798345566,
0.06397347897291183,
-0.016749180853366852,
-0.7693794965744019,
0.34231844544410706,
-0.15059426426887512,
-0.028007747605443,
-0.07335209101438522,
-0.044417399913072586,
-0.18030822277069092,
-0.11415466666221619,
-0.30736812949180603,
-0.09120415151119232,
-0.012597966939210892,
0.3906363546848297,
0.20742009580135345,
0.020108625292778015,
0.037951208651065826,
0.41377437114715576,
-0.30479511618614197,
0.12482856214046478,
-0.33462440967559814,
0.41184863448143005,
0.07433954626321793,
-0.10293897241353989,
0.13182349503040314,
-0.0030253641307353973,
0.13282164931297302,
-0.056291695684194565,
-0.27454254031181335,
0.43870335817337036,
0.38115188479423523,
0.1363850235939026,
-0.1962384134531021,
0.34142059087753296,
-0.06991913169622421,
-0.13954727351665497,
-0.012622303329408169,
0.4393106997013092,
0.12040005624294281,
-0.16905540227890015,
-0.15337570011615753,
0.3473968803882599,
-0.0006327398004941642,
0.19467392563819885,
0.006263885647058487,
0.05758137255907059,
0.24505750834941864,
-0.11670273542404175,
-0.14613409340381622,
-0.2618706524372101,
0.3650653064250946,
0.12960146367549896,
0.22662568092346191,
0.19694079458713531,
-0.1572057604789734,
-0.02588513121008873,
0.45152926445007324,
-0.07350665330886841,
-0.020524190738797188,
0.12885159254074097,
0.04746580496430397,
-0.04369595646858215,
0.07537727057933807,
0.23707802593708038,
0.5027197599411011,
0.06688752770423889,
-0.046278081834316254,
0.14252611994743347,
-0.17181085050106049,
-0.06782892346382141,
0.09679971635341644,
-0.04073910787701607,
0.1989535689353943,
0.6168561577796936,
0.13804742693901062,
-0.15267100930213928,
-0.2818835973739624,
-0.07744333148002625,
-0.12176203727722168,
0.3029143810272217,
-0.4903002083301544,
0.07696792483329773,
-0.10729091614484787,
0.08583059906959534,
-0.37317323684692383,
-0.12689849734306335,
-0.1855975240468979,
-0.24651150405406952,
-0.2533235251903534,
0.625510036945343,
0.02917850762605667,
0.17708918452262878,
-0.5438377261161804,
0.026169192045927048,
-0.048273827880620956,
-0.3658791184425354,
0.01786467246711254,
0.2034306526184082,
-0.21111023426055908,
-0.15473712980747223,
0.5788049101829529,
-0.09108974039554596,
0.3742567300796509,
-0.4110652208328247,
-0.026850752532482147,
-0.5500836372375488,
-0.22336389124393463,
0.09451770782470703,
0.01623021811246872,
0.22367499768733978,
0.171183243393898,
0.040654391050338745,
-0.019200831651687622,
-0.25010380148887634,
0.2409219741821289,
-0.044228918850421906,
-0.26826903223991394,
0.3236261308193207,
-0.15102741122245789,
-0.09554558247327805,
0.17093591392040253,
-0.19851422309875488,
-0.059448037296533585,
-0.3050558567047119,
-0.12973861396312714,
0.2319198101758957,
0.2133796662092209,
0.1936338096857071,
-0.006472086533904076,
0.01529151201248169,
0.1389676183462143,
0.3373718857765198,
-0.16820591688156128,
-0.613456130027771,
0.4448581337928772,
-0.03782764822244644,
-0.22020630538463593,
-0.14433430135250092,
-0.10699110478162766,
0.11745673418045044,
0.3974054455757141,
-0.509545087814331,
0.01674923487007618,
-0.2880922257900238,
0.09456264227628708,
0.09506310522556305,
-0.0240614153444767,
0.21602831780910492,
0.14535345137119293,
0.08296285569667816,
-0.24996012449264526,
-0.2719064950942993,
0.1908714920282364,
-0.13722744584083557,
0.19965782761573792,
0.02264409512281418,
0.3025074005126953,
-0.2673490643501282,
0.5462415814399719,
0.4274446964263916,
0.006136386189609766,
0.22808527946472168,
0.04674350097775459,
0.5268794298171997,
-0.16033415496349335,
-0.3179928660392761,
-0.07850756496191025,
-0.20986342430114746,
-0.13363097608089447,
0.13671299815177917,
-0.025604339316487312,
-0.1290740668773651,
-0.16023778915405273,
0.05656479299068451,
-0.26432564854621887,
-0.2664659321308136,
0.05570245534181595,
-0.299926221370697,
0.3418447971343994,
0.18070676922798157,
0.17876885831356049,
-0.14496338367462158,
-0.36750292778015137,
-0.011126629076898098,
0.2551632523536682,
-0.06217106804251671,
-0.06465701013803482,
-0.2754215896129608,
0.03613029420375824,
-0.09631545096635818,
0.30097663402557373,
0.21668869256973267,
0.4385888874530792,
0.1286439746618271,
-0.08465518057346344,
-0.018673229962587357,
0.02353590540587902,
0.22707024216651917,
-0.274971067905426,
0.295695960521698,
0.1485588550567627,
-0.007961131632328033,
-0.17836140096187592,
-0.2544580399990082,
-0.04325079917907715,
0.06181532144546509,
0.04338719695806503,
0.5564792156219482,
-0.3165852427482605,
-0.016353098675608635,
0.24135896563529968,
0.4100424349308014,
-0.14618629217147827,
-0.28836867213249207,
-0.4403592646121979,
-0.18816706538200378,
-0.29695409536361694,
-0.18073078989982605,
-0.14348244667053223,
0.12070418149232864,
-0.23363614082336426,
-0.10061143338680267,
-0.01798146776854992,
0.057038191705942154,
0.2971664369106293,
-0.05694805830717087,
0.44865164160728455,
-0.06271429359912872,
0.43891772627830505,
0.043541815131902695,
0.06077372282743454,
0.4035261571407318,
0.8385457396507263,
-0.36770114302635193,
-0.4420892000198364,
-0.07953278720378876,
-0.13003340363502502,
-0.1770053654909134,
0.07271189242601395,
-0.029710108414292336,
-0.1339791715145111,
0.23690921068191528,
-0.13342103362083435,
-0.08766081929206848,
-0.07256916910409927,
0.21041859686374664,
0.19986024498939514,
-0.4859289228916168,
-0.47054946422576904,
0.14249779284000397,
0.08549752831459045,
-0.05649612843990326,
0.5796288251876831,
-0.06785807013511658,
-0.17265892028808594,
0.09759311378002167,
0.15627750754356384,
0.7910794615745544,
-0.03746315836906433,
0.20977742969989777,
0.2671899199485779,
-0.3216508626937866,
-0.015331095084547997,
-0.2884845435619354,
0.11760588735342026,
-0.54105544090271,
-0.4565609395503998,
0.0023744150530546904,
-0.41088512539863586,
0.06948979198932648,
0.02445293590426445,
-0.005873074755072594,
0.36443236470222473,
-0.1365392506122589,
0.36398372054100037,
0.16264782845973969,
0.15032440423965454,
-0.13331180810928345,
-0.019253110513091087,
-0.024691611528396606,
0.05637082830071449,
-0.10632379353046417,
0.2817864716053009,
-0.104326032102108,
0.07447624206542969,
-0.08373843878507614,
-0.24913926422595978,
-0.33596593141555786,
0.26861441135406494,
-0.04842458665370941,
0.30638957023620605,
0.3144674301147461,
-0.1562402993440628,
-0.19320563971996307,
0.30793699622154236,
0.19319221377372742,
0.12564562261104584,
-0.2024257481098175,
-0.0966116264462471,
0.44461390376091003,
0.1859636753797531,
0.10809017717838287,
-0.11747507005929947,
0.4294387102127075,
-0.016477270051836967,
-0.17061246931552887,
-0.019510013982653618,
-0.15670812129974365,
-0.5109878778457642,
-0.06384136527776718,
-0.18658104538917542,
-0.013955796137452126,
-0.33274662494659424,
-0.18218132853507996,
-0.14913861453533173,
-0.002647806890308857,
-0.1799396574497223,
0.10349789261817932,
0.15092046558856964,
-0.13399319350719452,
0.37992528080940247,
-0.001597094815224409,
-0.4600849449634552,
-0.12746769189834595,
0.5131282210350037,
0.1256914585828781,
-0.06667325645685196,
0.5254389643669128,
-0.03549981862306595,
-0.274111807346344,
-0.13037803769111633,
-0.02393384464085102,
0.04297660291194916,
-0.2795833945274353,
0.15649372339248657,
-0.2923187017440796,
0.32668980956077576,
-0.16565336287021637,
0.23091936111450195,
0.17461583018302917,
-0.02821439877152443,
0.08037305623292923,
-0.5436574220657349,
-0.11495991796255112,
-0.054521508514881134,
0.07140561938285828,
0.22561046481132507,
-0.0961705818772316,
-0.13187275826931,
-0.168624609708786,
-0.1643112301826477,
-0.21964754164218903,
-0.05095966160297394,
-0.2850660979747772,
-0.050392165780067444,
0.0666942372918129,
0.1091088131070137,
0.09546972066164017,
-0.08479859679937363,
0.10707094520330429,
-0.13952718675136566,
-0.1586121767759323,
-0.09824870526790619,
-0.24731460213661194,
0.1913023591041565,
0.0078086452558636665,
-0.21952266991138458,
0.10119116306304932,
-0.2507103383541107,
-0.12310580164194107,
-0.29266035556793213,
0.041283030062913895,
0.3332214951515198,
-0.1663249433040619,
0.024059129878878593,
0.04791351035237312,
-0.005910622421652079,
-0.0702894777059555,
0.05986623466014862,
-0.35677245259284973,
-0.09490495175123215,
0.035337455570697784,
0.08518810570240021,
0.04120201617479324,
-0.04275841265916824,
0.03826531767845154,
0.20073962211608887,
0.0974862277507782,
-0.034118231385946274,
0.47553473711013794,
-0.436349093914032,
0.04025334119796753,
0.15630128979682922,
0.23568806052207947,
0.4222279489040375,
-0.38562294840812683,
-0.11752282828092575,
0.13966815173625946,
0.1710725724697113,
-0.28583595156669617,
-0.14203020930290222,
0.14066965878009796,
-0.20545706152915955,
0.02499525435268879,
0.2416553795337677,
0.14429408311843872,
-0.5312716960906982,
0.31540796160697937,
0.03654569759964943,
0.18296752870082855,
-0.17339500784873962,
0.09529601782560349,
0.4206507205963135,
0.10133678466081619,
0.14036329090595245,
0.13259084522724152,
-0.03104545921087265,
-0.010560194961726665,
0.04780542850494385,
-0.07500755041837692,
0.303659588098526,
-0.3571101129055023,
0.08802288770675659,
-0.22012749314308167,
-0.527968168258667,
0.348190039396286,
0.25023847818374634,
-0.06982576102018356,
0.12569253146648407,
0.015222441405057907,
0.08344370126724243,
-0.06153341755270958,
0.22070834040641785,
-0.35151606798171997,
-0.11220000684261322,
-0.11603958904743195,
0.030029863119125366,
0.00567585276439786,
-0.33824652433395386,
0.023784630000591278,
0.22826236486434937,
-0.04873623698949814,
0.14405721426010132,
0.1589455008506775,
0.12191886454820633,
-0.18033252656459808,
-0.26962727308273315,
0.2587604820728302,
0.08426076173782349,
-0.040987126529216766,
-0.1821424961090088,
0.2920829653739929,
0.052725229412317276,
0.06037680804729462,
0.08339876681566238,
0.26045092940330505,
0.45209425687789917,
0.5969521403312683,
0.16555659472942352,
-0.22174087166786194,
-0.018945518881082535,
-0.0231256615370512,
-0.09420334547758102,
0.7059634327888489,
-0.18014629185199738,
-0.2599341869354248,
0.313915878534317,
0.05309317260980606,
-0.14712941646575928,
0.025386637076735497,
-0.09722741693258286,
-0.29403576254844666,
-0.09076611697673798,
0.5079350471496582,
-0.023627176880836487,
0.017496315762400627,
-0.0995529443025589,
0.22200405597686768,
-0.2275823950767517,
-0.24917352199554443,
0.4326464831829071,
0.22700482606887817,
0.13768626749515533,
0.07761211693286896,
0.03419966995716095,
-0.01862890087068081,
0.17660938203334808,
0.2722480893135071,
0.09021732956171036,
-0.3786652088165283,
-0.3421338200569153,
-0.7264217138290405,
0.3454355299472809,
-0.1576511412858963,
-0.06199100241065025,
0.11723688989877701,
0.13262693583965302,
0.011616701260209084,
0.10419011116027832,
0.31464865803718567,
-0.06412629783153534,
-0.20501434803009033,
-0.009849587455391884,
-0.17590519785881042,
-0.3004681169986725,
-0.15926773846149445,
-0.13773271441459656,
-0.1920396238565445,
-0.5703732967376709,
0.2017882615327835,
0.11519692093133926,
0.0482635572552681,
-0.1229478120803833,
0.20971626043319702,
0.09960903972387314,
0.2080228477716446,
0.1852990686893463,
0.15406228601932526,
0.6352700591087341,
-0.06471189856529236,
-0.22548572719097137,
-0.09719634801149368,
-0.11416701227426529,
-0.1586398035287857,
0.31632792949676514,
-0.11485856026411057,
0.3463059365749359,
-0.10014935582876205,
-0.30197790265083313,
-0.35748809576034546,
0.3911958336830139,
0.24973969161510468,
-0.3221428096294403,
-0.0838535726070404,
0.07283221930265427,
-0.2557828426361084,
0.21848593652248383,
0.02597191371023655,
0.11381520330905914,
0.13359005749225616,
0.459337055683136,
-0.16759835183620453,
-0.2450249046087265,
0.4646662771701813,
-0.2160879373550415,
-0.15968282520771027,
-0.1233222559094429,
0.2576873302459717,
-0.274393230676651,
-0.2150907814502716,
-0.6132441163063049,
0.17594604194164276,
0.4812852740287781,
-0.1356467306613922,
-0.16692885756492615,
0.25829440355300903,
-0.2036873996257782,
0.3876015245914459,
0.016391802579164505,
0.3485526442527771,
0.012253126129508018,
-0.22214347124099731,
-0.05368321016430855,
-0.11852270364761353
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 46 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | [
0.12485260516405106,
-0.053593676537275314,
0.029330797493457794,
0.0739796832203865,
0.20472796261310577,
-0.024576833471655846,
0.2489381581544876,
0.4213002920150757,
-0.47469082474708557,
0.17516197264194489,
0.13618402183055878,
0.5513864159584045,
-0.3347688913345337,
-0.08509601652622223,
0.03448408842086792,
0.18656444549560547,
-0.09211227297782898,
0.1384558081626892,
-0.2678907513618469,
-0.2130742073059082,
0.03989254683256149,
0.3963990807533264,
-0.16762851178646088,
-0.06859638541936874,
-0.37417715787887573,
0.24487730860710144,
0.22737731039524078,
-0.23149137198925018,
0.10548315942287445,
-0.46003425121307373,
0.29247456789016724,
0.14869773387908936,
0.019459422677755356,
0.37023046612739563,
-0.00011912987247342244,
0.006322534754872322,
0.2757813632488251,
0.035254329442977905,
-0.2775232195854187,
-0.44794338941574097,
-0.06502660363912582,
0.10858631134033203,
0.05303408205509186,
0.14755374193191528,
-0.4656309485435486,
-0.17931245267391205,
0.2337317317724228,
-0.34094735980033875,
0.029200613498687744,
0.448559045791626,
0.0685843899846077,
-0.0634169951081276,
-0.24966391921043396,
-0.08246723562479019,
0.3689356744289398,
0.012543381191790104,
-0.06251930445432663,
0.059270229190588,
-0.06833542883396149,
0.24112869799137115,
0.2196750044822693,
0.37554797530174255,
-0.03132428228855133,
0.012995845638215542,
-0.1954174041748047,
-0.09356390684843063,
-0.25402677059173584,
-0.348786860704422,
0.07476664334535599,
0.2519179880619049,
0.7106907963752747,
-0.29586222767829895,
-0.3215120732784271,
-0.2683334946632385,
0.33699485659599304,
-0.054219942539930344,
0.29112064838409424,
0.025417620316147804,
-0.29449278116226196,
0.16272543370723724,
-0.5629912614822388,
0.07423991709947586,
-0.3041748106479645,
0.14290155470371246,
-0.09742911159992218,
-0.35963454842567444,
-0.1437712460756302,
0.18454104661941528,
-0.19759352505207062,
0.1163857951760292,
0.11415542662143707,
0.18843886256217957,
-0.03961258754134178,
-0.0923861563205719,
-0.3206234276294708,
-0.0985562652349472,
0.05592620000243187,
-0.08153830468654633,
0.0717143639922142,
0.317287802696228,
0.28429698944091797,
0.06759443879127502,
-0.4174664616584778,
-0.13550534844398499,
0.032232414931058884,
0.14816907048225403,
0.18230754137039185,
-0.17783956229686737,
0.10110116004943848,
-0.07203026115894318,
-0.15337447822093964,
0.013992499560117722,
0.018983522430062294,
-0.07209914177656174,
-0.10625345259904861,
-0.015303288586437702,
0.3571920394897461,
-0.11757680773735046,
-0.5631766319274902,
0.1525672972202301,
-0.5025026202201843,
0.21359016001224518,
-0.05205628648400307,
0.19477257132530212,
-0.21541766822338104,
0.13501836359500885,
0.2971945106983185,
0.08706293255090714,
0.024879077449440956,
-0.3115249574184418,
-0.09980232268571854,
-0.19715730845928192,
0.1828783005475998,
0.09686290472745895,
0.24400925636291504,
-0.21037329733371735,
0.21230503916740417,
0.2571350336074829,
0.26150330901145935,
-0.15388312935829163,
-0.09266555309295654,
-0.03262288495898247,
0.2529812753200531,
0.26684436202049255,
-0.1248195543885231,
0.39391303062438965,
-0.05651229992508888,
0.11579257249832153,
0.10667087882757187,
0.25712379813194275,
-0.06512189656496048,
-0.00617121160030365,
0.5623428225517273,
0.0605887770652771,
-0.1836535781621933,
-0.30065256357192993,
-0.1071215271949768,
0.3333049416542053,
0.044279709458351135,
-0.0668320506811142,
0.25042107701301575,
-0.27517831325531006,
-0.22715149819850922,
0.015882354229688644,
0.13589245080947876,
0.15665386617183685,
-0.5853289365768433,
0.02432817779481411,
0.1945607215166092,
0.06847178936004639,
0.32229116559028625,
0.3032740354537964,
0.16519562900066376,
0.18117041885852814,
-0.08166668564081192,
0.11702204495668411,
-0.2199329137802124,
-0.3883651793003082,
-0.20604334771633148,
0.20928382873535156,
-0.2708132863044739,
0.26425981521606445,
-0.08326995372772217,
-0.2192164808511734,
0.08026699721813202,
0.09913305938243866,
0.36406928300857544,
-0.18915973603725433,
0.2466815561056137,
-0.10566983371973038,
-0.38311484456062317,
-0.14455747604370117,
0.18933793902397156,
0.17552682757377625,
-0.017711473628878593,
0.05326484143733978,
-0.2982359528541565,
-0.01645587757229805,
0.40270519256591797,
0.03941061347723007,
-0.029129762202501297,
-0.025731761008501053,
0.36445003747940063,
-0.17752999067306519,
0.2638610601425171,
-0.15542365610599518,
0.2872300148010254,
0.027291571721434593,
0.16047345101833344,
0.21987192332744598,
0.5499914288520813,
-0.1693306714296341,
-0.1779455840587616,
-0.07623297721147537,
-0.07281918078660965,
-0.06831581890583038,
0.05826019123196602,
0.1486591398715973,
-0.14891839027404785,
0.3247837424278259,
-0.0285172276198864,
0.47125524282455444,
-0.4881336987018585,
-0.015309817157685757,
-0.08798187226057053,
-0.10884159803390503,
0.3033909201622009,
-0.09879934787750244,
0.11652915924787521,
0.24114187061786652,
0.01729925535619259,
0.08729658275842667,
-0.11014251410961151,
0.3636825382709503,
0.226950004696846,
0.12191718816757202,
-0.36820119619369507,
-0.40272256731987,
0.23166869580745697,
-0.5078883767127991,
-0.4552854597568512,
0.5677570104598999,
-0.02766510657966137,
0.20081718266010284,
-0.15344549715518951,
0.06044179946184158,
0.0807492583990097,
0.04799969494342804,
0.03485022485256195,
0.03607805073261261,
-0.019408944994211197,
-0.10792139172554016,
-0.470849871635437,
-0.16076670587062836,
0.26079416275024414,
-0.2098267823457718,
0.1590210497379303,
-0.11612896621227264,
-0.3203791081905365,
0.13689030706882477,
0.31587231159210205,
-0.05024005100131035,
0.03954702243208885,
0.27443012595176697,
-0.13267171382904053,
0.2099832445383072,
0.03756918013095856,
0.17197605967521667,
0.23739269375801086,
0.20092014968395233,
0.08072760701179504,
-0.05354783311486244,
-0.07819268107414246,
-0.26059389114379883,
0.29239174723625183,
0.1945406198501587,
-0.36514076590538025,
0.38403835892677307,
0.22036977112293243,
0.04898160696029663,
-0.43722501397132874,
-0.004982273560017347,
-0.19044260680675507,
0.2824562191963196,
-0.44940316677093506,
-0.1749294549226761,
-0.39776068925857544,
0.10783471912145615,
-0.13616088032722473,
-0.021801315248012543,
0.07109568268060684,
0.04367765039205551,
0.3717922270298004,
-0.0027073477394878864,
-0.08599761873483658,
0.27434536814689636,
0.15010787546634674,
0.19156567752361298,
-0.11042275279760361,
0.17134159803390503,
-0.00966867245733738,
0.1939067393541336,
-0.47101861238479614,
0.04524574056267738,
-0.16064666211605072,
-0.2644656002521515,
0.15043818950653076,
-0.19257451593875885,
-0.10991416126489639,
-0.41434648633003235,
-0.07154633849859238,
0.14787308871746063,
-0.19166184961795807,
0.42321425676345825,
0.2326951026916504,
-0.042613983154296875,
-0.1860426962375641,
-0.19443050026893616,
-0.18875953555107117,
-0.03107217140495777,
-0.06713001430034637,
0.07144732773303986,
-0.13463948667049408,
0.041585247963666916,
-0.256131649017334,
-0.8888216614723206,
0.10030192136764526,
-0.22046783566474915,
0.7185165882110596,
0.059935007244348526,
-0.04604960232973099,
0.541236400604248,
0.2822044789791107,
0.2012920081615448,
0.07925409823656082,
0.1863066554069519,
-0.37138819694519043,
-0.12307988852262497,
0.07925894111394882,
0.029345648363232613,
-0.4573096036911011,
-0.29831451177597046,
0.19363848865032196,
0.1548014134168625,
0.20741137862205505,
-0.49533894658088684,
0.3497346043586731,
-0.10899466276168823,
-0.13062965869903564,
0.010286670178174973,
-0.19891054928302765,
0.2906792163848877,
-0.2038048654794693,
-0.11591603606939316,
-0.2554522454738617,
0.11759098619222641,
0.38969501852989197,
0.10179585963487625,
0.11271217465400696,
0.33986327052116394,
0.21604904532432556,
0.2003069818019867,
0.3506760895252228,
0.7158638834953308,
0.08281904458999634,
0.03901742771267891,
-0.12803426384925842,
0.4244539439678192,
-0.07285545766353607,
-0.0528327114880085,
0.16007670760154724,
0.059085432440042496,
-0.10871164500713348,
0.4583726227283478,
-0.08424266427755356,
-0.025511711835861206,
-0.02933630906045437,
-0.06426793336868286,
-0.09048865735530853,
-0.3277724087238312,
-0.02252042107284069,
-0.4580344259738922,
0.05129628628492355,
0.15355095267295837,
0.29638051986694336,
0.12800507247447968,
-0.11446725577116013,
-0.04528605937957764,
0.14417490363121033,
0.31945720314979553,
-0.1257755309343338,
-0.3150961995124817,
-0.36130720376968384,
-0.41538962721824646,
0.06127751246094704,
0.18691854178905487,
0.5611055493354797,
-0.28809431195259094,
-0.201972097158432,
0.22314360737800598,
0.10430219769477844,
0.4215114414691925,
-0.3380559980869293,
-0.04229264333844185,
0.12516437470912933,
0.2728695571422577,
-0.2976227104663849,
-0.07354428619146347,
-0.3262292444705963,
-0.28998544812202454,
0.2791605293750763,
0.09725389629602432,
-0.11770714074373245,
-0.13511934876441956,
0.0686609297990799,
0.058421265333890915,
0.01673164591193199,
-0.09900462627410889,
-0.03321884572505951,
0.030631685629487038,
-0.027278484776616096,
0.16377682983875275,
0.1725984513759613,
-0.12480469048023224,
-0.49191075563430786,
-0.38490432500839233,
-0.055466555058956146,
0.1896434873342514,
0.5516815781593323,
0.022109493613243103,
0.2840604782104492,
-0.1308683305978775,
0.24397940933704376,
0.23573675751686096,
-0.2960317134857178,
0.25807973742485046,
0.19366015493869781,
0.11734854429960251,
-0.04140166565775871,
0.13703787326812744,
-0.12600745260715485,
0.3830214738845825,
0.3855087161064148,
-0.43498072028160095,
-0.018978707492351532,
-0.33858722448349,
0.18403339385986328,
-0.28294837474823,
0.3459417521953583,
0.4015238583087921,
-0.1441546380519867,
-0.12607985734939575,
-0.4360540211200714,
0.4181835949420929,
0.022924423217773438,
-0.16401274502277374,
0.4557494521141052,
0.16198097169399261,
-0.24609807133674622,
0.19271530210971832,
-0.15675139427185059,
0.8095880150794983,
0.1871284544467926,
0.26675108075141907,
0.3340376317501068,
0.11093434691429138,
0.1609194278717041,
-0.42877495288848877,
0.03568406403064728,
-0.005584573373198509,
0.06986363977193832,
-0.13060876727104187,
0.08970127999782562,
-0.16814322769641876,
0.3797655701637268,
-0.29194098711013794,
-0.0783907100558281,
0.2101621776819229,
0.19728395342826843,
0.2774980962276459,
-0.07884607464075089,
-0.25814110040664673,
0.018633011728525162,
0.08974552899599075,
0.04583124443888664,
0.05874452367424965,
0.3057941198348999,
0.28881847858428955,
-0.1282045990228653,
0.009775674901902676,
-0.2652765214443207,
-0.6595219373703003,
0.02032470703125,
-0.5996918678283691,
-0.09471026808023453,
0.1489199548959732,
-0.3863424062728882,
0.1838311105966568,
0.3397494852542877,
0.1764550507068634,
0.43374067544937134,
-0.46330714225769043,
-0.02679951675236225,
0.25110888481140137,
0.11319918185472488,
-0.024627290666103363,
-0.08301451802253723,
0.3481529653072357,
-0.08403220772743225,
-0.14340582489967346,
-0.07100500911474228,
0.02812023088335991,
0.16605690121650696,
-0.15452416241168976,
-0.049685440957546234,
-0.11856717616319656,
-0.3426324725151062,
0.04977153241634369,
0.09896039962768555,
0.15278923511505127,
-0.23698371648788452,
0.06800445914268494,
-0.1038808822631836,
-0.06512219458818436,
0.27426373958587646,
0.277946799993515,
-0.503237783908844,
-0.10895788669586182,
0.5379330515861511,
-0.08357374370098114,
0.10776522010564804,
0.6408994793891907,
-0.1893860399723053,
-0.05129902437329292,
-0.27751925587654114,
0.01687031239271164,
0.25908559560775757,
-0.3368995189666748,
0.17191721498966217,
0.03212519362568855,
0.3006647527217865,
0.09660191088914871,
-0.0444740392267704,
0.046305492520332336,
-0.05899152532219887,
-0.2513127624988556,
-0.23893383145332336,
-0.0812482014298439,
0.12002317607402802,
0.025226600468158722,
0.2911801040172577,
0.02783859707415104,
0.36659812927246094,
0.07676167041063309,
-0.347037136554718,
-0.20176753401756287,
-0.023725206032395363,
0.05575793981552124,
0.08048586547374725,
-0.04783618822693825,
0.02786289155483246,
0.11072731763124466,
0.054518941789865494,
0.014958937652409077,
0.10270839929580688,
-0.1335517168045044,
-0.08336623013019562,
-0.2990172505378723,
0.15111862123012543,
0.2011461704969406,
0.11307302117347717,
-0.015307987108826637,
0.06508325785398483,
-0.054260849952697754,
-0.06005158647894859,
0.07611528038978577,
0.38089224696159363,
0.01741819456219673,
0.36202993988990784,
0.1188444048166275,
0.3976139724254608,
-0.09363573044538498,
-0.2623864412307739,
-0.035440754145383835,
-0.07757163792848587,
0.164493590593338,
-0.06243732199072838,
-0.18508172035217285,
-0.05809906870126724,
-0.1324889063835144,
0.02209734357893467,
0.08932268619537354,
0.151860773563385,
-0.05466020479798317,
-0.28963008522987366,
0.21353138983249664,
0.15491129457950592,
0.05066482722759247,
0.317900687456131,
-0.15313811600208282,
-0.2708626985549927,
-0.11027644574642181,
0.07899068295955658,
-0.02460882067680359,
0.017689989879727364,
-0.33513519167900085,
-0.015275385230779648,
-0.02551218494772911,
0.003125696210190654,
0.05548125132918358,
-0.35413771867752075,
0.362317830324173,
-0.01250050775706768,
0.11213480681180954,
-0.5960297584533691,
0.1129646822810173,
0.37469977140426636,
0.0613391175866127,
-0.007918132469058037,
-0.2586424946784973,
-0.2529647946357727,
-0.003520389087498188,
0.48609286546707153,
-0.24271777272224426,
0.2749045491218567,
-0.1475841999053955,
-0.026231708005070686,
0.2557944357395172,
-0.2615303695201874,
-0.24777166545391083,
0.2055235207080841,
-0.4631262421607971,
0.16095572710037231,
0.10135574638843536,
0.4035344123840332,
-0.046326156705617905,
0.10066653788089752,
-0.21050213277339935,
-0.021033477038145065,
-0.1480747014284134,
-0.15863803029060364,
-0.3575797975063324,
-0.08875349909067154,
-0.13836441934108734,
-0.17162930965423584,
-0.08024337142705917,
-0.028586508706212044,
0.12382297962903976,
0.23923295736312866,
-0.27781933546066284,
-0.5319440364837646,
-0.24919606745243073,
-0.18340706825256348,
0.2514193654060364,
-0.11409864574670792,
0.35201311111450195,
0.10312869399785995,
-0.01866029016673565,
0.16292892396450043,
0.3187715411186218,
0.5043585896492004,
0.1790822148323059,
-0.10142102092504501,
0.1203380674123764,
-0.2998444139957428,
-0.005622171331197023,
0.020882368087768555,
0.623943030834198,
0.03267795965075493,
0.11734277755022049,
0.05098727345466614,
0.05189226195216179,
0.0013063405640423298,
0.041361674666404724,
-0.00849872175604105,
0.04003812372684479,
-0.6968812942504883,
0.4176637530326843,
0.017609436064958572,
0.23933851718902588,
-0.20144841074943542,
-0.04128716513514519,
-0.21955212950706482,
0.3418332040309906,
0.6031696796417236,
0.18642191588878632,
0.01860896125435829,
-0.09348425269126892,
0.055508099496364594,
-0.18102304637432098,
0.12129179388284683,
0.07660281658172607,
-0.004844936076551676,
-0.1068459302186966,
-0.019550763070583344,
-0.2139691412448883,
0.08992556482553482,
0.2652161419391632,
0.21874336898326874,
0.015008160844445229,
-0.16383621096611023,
0.06711503118276596,
0.0615045428276062,
-0.009866972453892231,
-0.11820419877767563,
-0.2539237141609192,
0.2244306057691574,
-0.19698721170425415,
0.015160759910941124,
-0.006940149702131748,
0.14061585068702698,
0.14958646893501282,
-0.07372280210256577,
-0.13266395032405853,
0.19103118777275085,
-0.145440936088562,
-0.057077448815107346,
-0.07595013082027435,
0.17733719944953918,
0.34872037172317505,
0.06860238313674927,
0.0964069813489914,
0.35994967818260193,
-0.09155569225549698,
0.0773109495639801,
-0.41088300943374634,
-0.14205200970172882,
-0.22996008396148682,
0.29942429065704346,
0.04981209337711334,
0.33890992403030396,
0.006641858257353306,
-0.3442055284976959,
0.1354150027036667,
0.2597310543060303,
0.3330134451389313,
-0.1628267616033554,
-0.14009805023670197,
0.04773150384426117,
-0.3230915069580078,
0.2139674723148346,
0.00005607038110611029,
0.2621963918209076,
0.04306674376130104,
0.16071470081806183,
-0.5121690034866333,
-0.9930143356323242,
0.6250434517860413,
-0.7181700468063354,
-0.22365498542785645,
-0.14277704060077667,
0.2892615497112274,
0.3226870894432068,
-0.10158262401819229,
-0.5634547472000122,
-0.07286931574344635,
0.469316691160202,
-0.0401696115732193,
-0.09203068912029266,
0.11232108622789383,
0.14791136980056763,
0.31001386046409607,
-0.16443350911140442,
0.962284505367279,
0.323774516582489,
-0.16289740800857544,
0.18724048137664795,
-0.4706271290779114
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 134 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | [
-0.08848553895950317,
0.03739643841981888,
-0.02138594537973404,
0.14961223304271698,
-0.01892653852701187,
-0.07773527503013611,
0.22454918920993805,
0.3621779978275299,
-0.4294898509979248,
0.16333705186843872,
0.1525297313928604,
0.2624575197696686,
-0.43249064683914185,
-0.020130692049860954,
-0.0711195319890976,
0.23963740468025208,
-0.12686188519001007,
0.25981444120407104,
-0.33298546075820923,
-0.023114964365959167,
0.08259569853544235,
0.24257594347000122,
-0.02965633012354374,
0.028360996395349503,
-0.08659666776657104,
-0.014305408112704754,
0.2008780688047409,
-0.09348529577255249,
-0.3122861683368683,
-0.6014052033424377,
0.23048639297485352,
0.2764073312282562,
0.07687497138977051,
0.1653756946325302,
-0.00012745545245707035,
0.10650692880153656,
0.165228471159935,
-0.02306014485657215,
-0.49072274565696716,
-0.1459859013557434,
-0.1808246225118637,
0.11329256743192673,
0.011158357374370098,
-0.003239989746361971,
0.12947337329387665,
-0.23413391411304474,
0.2061719000339508,
-0.19666817784309387,
0.3206733465194702,
0.5292426347732544,
0.004974158946424723,
0.2393675297498703,
-0.1227484792470932,
0.11940953135490417,
0.3548438251018524,
-0.10677268356084824,
-0.05614645034074783,
0.07665625959634781,
0.03786716237664223,
0.2733801305294037,
0.21346043050289154,
0.31697019934654236,
0.0864056944847107,
-0.11383254826068878,
-0.29079514741897583,
-0.19388209283351898,
-0.15452031791210175,
-0.2383071929216385,
-0.2170855849981308,
0.3288347125053406,
0.7538302540779114,
-0.315024733543396,
-0.6087895631790161,
-0.34010422229766846,
0.19125784933567047,
-0.14305506646633148,
0.39232155680656433,
-0.19024549424648285,
-0.2573830187320709,
0.39083924889564514,
-0.6390119791030884,
-0.20490983128547668,
-0.3079322278499603,
0.12957222759723663,
0.015353330411016941,
-0.11475817114114761,
0.02257980965077877,
0.12358767539262772,
-0.17346058785915375,
0.06426677852869034,
0.1816415637731552,
0.1108354702591896,
0.038730230182409286,
-0.010975676588714123,
-0.14754906296730042,
-0.34127146005630493,
0.04239460080862045,
-0.18611247837543488,
0.04210289940237999,
0.42605525255203247,
0.5204833149909973,
0.0642906054854393,
-0.5445078015327454,
-0.07751543074846268,
0.17376519739627838,
0.24078643321990967,
-0.025258032605051994,
-0.2616616487503052,
0.15693041682243347,
0.04260360449552536,
0.19033247232437134,
0.17482824623584747,
0.023703819140791893,
-0.3405397832393646,
-0.1293015033006668,
0.11949249356985092,
0.33477336168289185,
-0.18882407248020172,
-0.502007007598877,
0.0776052325963974,
-0.4545804262161255,
0.18543772399425507,
-0.07164112478494644,
0.12072406709194183,
-0.2241944968700409,
0.4196060597896576,
0.15545816719532013,
0.06409808993339539,
-0.13485151529312134,
-0.40407130122184753,
0.18832175433635712,
-0.15597158670425415,
0.1908435970544815,
-0.049908269196748734,
0.29601776599884033,
-0.3722982108592987,
0.08815920352935791,
0.14277684688568115,
0.18106354773044586,
-0.12146332114934921,
-0.12798753380775452,
0.10105708986520767,
0.1780344843864441,
0.21321627497673035,
-0.1896711140871048,
0.1723005175590515,
-0.08058886975049973,
0.08845574408769608,
-0.017210740596055984,
-0.019968530163168907,
-0.17412525415420532,
-0.11035727709531784,
0.3484819233417511,
-0.019380271434783936,
-0.2260964810848236,
-0.20671167969703674,
-0.002878219122067094,
0.13417494297027588,
-0.035401009023189545,
-0.2685542404651642,
0.14787617325782776,
-0.1158052608370781,
-0.3188740909099579,
-0.015279455110430717,
0.015730317682027817,
0.2144395411014557,
-0.6616712212562561,
-0.1349114179611206,
0.1824919432401657,
-0.009823397733271122,
-0.08027292788028717,
0.25918784737586975,
-0.018248964101076126,
0.13359791040420532,
-0.021425267681479454,
0.06138467788696289,
-0.04310764744877815,
-0.42886701226234436,
-0.31873252987861633,
0.18909302353858948,
-0.27187129855155945,
0.2365472912788391,
0.17325937747955322,
-0.23176614940166473,
0.3257892429828644,
-0.1745208501815796,
0.1762596070766449,
-0.2554749548435211,
0.17862138152122498,
-0.1710289716720581,
-0.43899738788604736,
-0.4511149227619171,
0.031018957495689392,
-0.05333724990487099,
0.06812039017677307,
0.06481894850730896,
0.05645338073372841,
0.04239823669195175,
0.3488162159919739,
0.08292897790670395,
0.011816292069852352,
-0.03380238264799118,
0.2000453770160675,
-0.0843636617064476,
0.018614470958709717,
-0.22436706721782684,
0.08376632630825043,
0.20810410380363464,
0.07658204436302185,
0.17054347693920135,
0.42478474974632263,
-0.17888066172599792,
-0.24761374294757843,
0.03832334652543068,
0.18727034330368042,
0.12628544867038727,
-0.039587847888469696,
0.22733074426651,
-0.08251862227916718,
0.35044148564338684,
-0.27042415738105774,
0.4691358506679535,
-0.4019191563129425,
0.037284817546606064,
-0.05362825468182564,
-0.16358456015586853,
0.24747729301452637,
0.08259126543998718,
0.1019180417060852,
-0.039412349462509155,
-0.10327579081058502,
-0.09265559911727905,
-0.02452416718006134,
0.5187946557998657,
0.15306372940540314,
0.27677908539772034,
-0.13847601413726807,
-0.25365734100341797,
0.2143702507019043,
-0.26182711124420166,
-0.3397194743156433,
0.5486404299736023,
-0.09721933305263519,
0.4484133720397949,
-0.02551327832043171,
0.19515006244182587,
0.14047224819660187,
-0.04030890017747879,
0.07058865576982498,
-0.07319699227809906,
-0.02130892314016819,
-0.009351640939712524,
-0.5304043292999268,
-0.17360816895961761,
0.14655975997447968,
-0.21342742443084717,
0.14177797734737396,
-0.1460384577512741,
-0.20466378331184387,
-0.08465632051229477,
0.23014436662197113,
-0.021298157051205635,
0.05920875072479248,
0.1565668135881424,
0.0832526683807373,
0.21178635954856873,
0.055355254560709,
0.3183933198451996,
0.3474946916103363,
0.08311018347740173,
0.02466207556426525,
0.021408719941973686,
-0.2565383315086365,
-0.13020268082618713,
0.276820570230484,
0.21888943016529083,
-0.3133857548236847,
0.32265663146972656,
0.20633214712142944,
0.03175400570034981,
-0.43952053785324097,
0.03197167441248894,
-0.04095447063446045,
0.036723729223012924,
-0.6262533068656921,
-0.00905975978821516,
-0.551313579082489,
0.16901570558547974,
-0.330677330493927,
-0.08182651549577713,
-0.1623639166355133,
0.004767600446939468,
0.5723302364349365,
0.16943784058094025,
-0.08129160851240158,
0.21946696937084198,
-0.08763451129198074,
0.3680039048194885,
-0.19863924384117126,
-0.06180207058787346,
0.03823746368288994,
0.23595035076141357,
-0.41492560505867004,
0.002801863243803382,
0.027396803721785545,
-0.3462302088737488,
0.24148894846439362,
-0.41488128900527954,
-0.30096060037612915,
-0.23227831721305847,
-0.0679200068116188,
0.18919970095157623,
0.0653938427567482,
0.2402113378047943,
0.3457302749156952,
0.12701000273227692,
-0.01462892908602953,
-0.04187145084142685,
-0.2779379189014435,
0.048467379063367844,
-0.11599723249673843,
-0.1051497682929039,
0.13449759781360626,
0.0982847511768341,
-0.2827247381210327,
-0.8775428533554077,
0.08410231024026871,
-0.1689094454050064,
0.460431307554245,
0.07952024042606354,
0.18564237654209137,
0.3558037281036377,
0.3462037742137909,
0.10591555386781693,
-0.044132981449365616,
0.154443621635437,
-0.08820757269859314,
-0.23025813698768616,
0.09353742748498917,
0.08362101018428802,
-0.21862159669399261,
-0.0057526505552232265,
0.28069862723350525,
0.05272235721349716,
0.39157843589782715,
-0.4168853759765625,
0.26778340339660645,
0.219479501247406,
-0.13917075097560883,
0.001931242411956191,
-0.3680184781551361,
0.5466490983963013,
-0.08344060927629471,
0.01569531485438347,
-0.2377285361289978,
0.20562419295310974,
0.13749217987060547,
0.12257639318704605,
0.25491124391555786,
0.3231087923049927,
0.2804225981235504,
0.2665037214756012,
0.5263996124267578,
0.32630473375320435,
-0.21030350029468536,
0.22470645606517792,
-0.12281706929206848,
0.4726446568965912,
0.04115414619445801,
0.09224189817905426,
-0.06510765850543976,
-0.09600213170051575,
-0.18241624534130096,
0.38343527913093567,
-0.03641088306903839,
-0.07709521055221558,
-0.18889836966991425,
0.22596058249473572,
-0.2749904692173004,
-0.27291861176490784,
0.04257451370358467,
-0.3952445387840271,
0.13605716824531555,
0.2876461446285248,
0.35825595259666443,
0.10156290978193283,
0.03223603218793869,
-0.031989142298698425,
0.22707487642765045,
0.3397323191165924,
-0.009860201738774776,
-0.2052222639322281,
-0.08765032887458801,
-0.20948782563209534,
0.2032211422920227,
0.4069232642650604,
0.654161810874939,
-0.1864350289106369,
-0.0886588841676712,
0.12884780764579773,
-0.019110841676592827,
0.2862900197505951,
-0.4888174533843994,
-0.045689430087804794,
-0.07928311079740524,
0.3533953130245209,
-0.13272857666015625,
-0.12948356568813324,
-0.13578562438488007,
-0.3984863758087158,
0.11708240956068039,
0.07943473756313324,
-0.12472131848335266,
-0.033058036118745804,
-0.031541675329208374,
0.12648151814937592,
-0.108749620616436,
0.17634278535842896,
-0.14730966091156006,
-0.01872512698173523,
-0.1351139098405838,
-0.008913002908229828,
0.08401600271463394,
-0.2780798673629761,
-0.41680482029914856,
-0.0725170448422432,
-0.0888434574007988,
0.2681662142276764,
0.3895970582962036,
0.16215050220489502,
0.2874220013618469,
-0.11679863929748535,
0.023920508101582527,
0.09303995966911316,
0.098008893430233,
0.3213096857070923,
0.23710748553276062,
0.17381651699543,
-0.18433843553066254,
0.06306011974811554,
0.0820486918091774,
0.10178317874670029,
0.5416080951690674,
-0.33630242943763733,
-0.11839969456195831,
-0.14562241733074188,
0.09618891030550003,
-0.2815687358379364,
0.3941448926925659,
0.539712131023407,
-0.28543001413345337,
-0.32506778836250305,
-0.42892584204673767,
0.4246484935283661,
-0.09044729173183441,
-0.2281326800584793,
0.3700994551181793,
0.10165242850780487,
-0.3230114281177521,
0.151136577129364,
0.0276337917894125,
0.9220045804977417,
0.20887258648872375,
0.20676366984844208,
0.1859176605939865,
-0.12466597557067871,
0.4331420958042145,
-0.5090645551681519,
0.15221183001995087,
0.11980853229761124,
0.010109176859259605,
-0.36688733100891113,
0.10920111835002899,
0.09159383177757263,
0.4399716556072235,
-0.17495962977409363,
0.04851897060871124,
0.19381722807884216,
0.31994715332984924,
0.24371586740016937,
-0.022406665608286858,
-0.4007435739040375,
0.09555835276842117,
-0.1448124200105667,
-0.00006263299292186275,
0.10246670991182327,
0.28970351815223694,
0.02654236927628517,
-0.09099221974611282,
-0.049829695373773575,
-0.41635966300964355,
-0.7078105211257935,
-0.22666552662849426,
-0.4140578508377075,
-0.1478799730539322,
-0.0445113331079483,
-0.11906174570322037,
0.11901038885116577,
0.2762688398361206,
0.2014927715063095,
0.2418508529663086,
-0.3773289620876312,
0.020051511004567146,
0.014465290121734142,
0.07429463416337967,
0.10238803923130035,
-0.06534536182880402,
0.3629058003425598,
-0.07452039420604706,
0.04132712259888649,
0.0539514385163784,
-0.07981888204813004,
-0.06716109812259674,
-0.10244514793157578,
-0.045586682856082916,
-0.05519712716341019,
-0.3396160900592804,
0.13256743550300598,
-0.10264438390731812,
0.05456135794520378,
-0.19854941964149475,
-0.009255721233785152,
-0.21274001896381378,
0.11213671416044235,
0.1885816901922226,
0.08923914283514023,
-0.4363737404346466,
-0.09784963726997375,
0.6311430931091309,
-0.2886927127838135,
0.12894712388515472,
0.4841490089893341,
-0.31600916385650635,
-0.03331701084971428,
-0.19413617253303528,
-0.021365977823734283,
-0.199296772480011,
-0.5194514393806458,
0.01478554867208004,
-0.04460396245121956,
0.08007589727640152,
-0.127022385597229,
0.0733652114868164,
0.18021734058856964,
0.17705866694450378,
-0.17994338274002075,
-0.3772442042827606,
0.042002297937870026,
0.25798964500427246,
0.24474868178367615,
0.34691932797431946,
0.09963702410459518,
0.21878091990947723,
-0.004220042377710342,
-0.519398033618927,
-0.10863862931728363,
-0.10017815232276917,
0.11440450698137283,
0.007444869261234999,
0.05807429179549217,
0.34956392645835876,
0.0714687705039978,
-0.25467002391815186,
-0.14409896731376648,
0.15392433106899261,
-0.14973683655261993,
0.02246038243174553,
-0.2373712807893753,
0.22851614654064178,
0.04685678705573082,
0.1454445719718933,
-0.042526695877313614,
-0.016445204615592957,
-0.030559470877051353,
0.044814333319664,
-0.0886743888258934,
0.35844728350639343,
0.10184165835380554,
0.19138099253177643,
0.14217685163021088,
0.40535223484039307,
-0.2433030903339386,
-0.06507067382335663,
0.06824701279401779,
0.19817356765270233,
0.12253765016794205,
0.2254868447780609,
-0.20100919902324677,
-0.07133129239082336,
-0.1664494276046753,
0.25832486152648926,
0.22472484409809113,
0.05033387616276741,
0.05949580669403076,
-0.1397160291671753,
0.24661479890346527,
0.07862827926874161,
0.35037311911582947,
0.6881967186927795,
-0.11853569000959396,
-0.4578855633735657,
0.18319988250732422,
-0.02709907293319702,
-0.13172407448291779,
-0.025419682264328003,
-0.3005431294441223,
0.046586230397224426,
-0.16275538504123688,
0.1273007094860077,
0.014953858219087124,
-0.35178354382514954,
0.4608776569366455,
0.12135744839906693,
0.14003607630729675,
-0.4294634461402893,
0.18580777943134308,
0.6682867407798767,
0.003441578708589077,
0.21896907687187195,
-0.4196907877922058,
-0.30387040972709656,
0.11694075912237167,
0.31700098514556885,
-0.37696436047554016,
0.26903238892555237,
-0.17610181868076324,
-0.0776476040482521,
0.004576599225401878,
-0.11818107217550278,
-0.3301260769367218,
0.2845061123371124,
-0.058604538440704346,
0.47382697463035583,
0.5105357766151428,
0.5142284035682678,
-0.017204584553837776,
-0.09095622599124908,
-0.4596332013607025,
0.09346669912338257,
0.08788758516311646,
-0.19864867627620697,
-0.5646126866340637,
-0.2639586925506592,
-0.14811073243618011,
-0.020208634436130524,
-0.1672481745481491,
0.11140469461679459,
0.21923983097076416,
0.28841888904571533,
-0.277906596660614,
-0.5320426225662231,
-0.21588298678398132,
-0.23740226030349731,
0.31708526611328125,
-0.20494380593299866,
0.2701928913593292,
0.20360524952411652,
0.07741139084100723,
0.2706262171268463,
0.3161221444606781,
0.4058339595794678,
0.09155771881341934,
0.007994083687663078,
0.026318050920963287,
-0.2494981437921524,
0.227777361869812,
0.02649737522006035,
0.41854149103164673,
-0.0022925531957298517,
0.16655422747135162,
0.33608853816986084,
-0.029655367136001587,
0.056384678930044174,
0.18972766399383545,
-0.3109252154827118,
0.01602993905544281,
-0.8132577538490295,
0.36782899498939514,
-0.019311636686325073,
0.25328561663627625,
-0.20531360805034637,
0.03597167506814003,
-0.037747573107481,
0.36392438411712646,
0.37465375661849976,
0.20767644047737122,
0.07155431807041168,
-0.001427651266567409,
-0.0013188383309170604,
0.04279618710279465,
0.18326342105865479,
0.31724685430526733,
-0.05974048003554344,
0.011521498672664165,
-0.01770905964076519,
-0.5737124085426331,
0.04231693595647812,
0.051037367433309555,
0.06254477053880692,
-0.010965663939714432,
-0.2795845568180084,
0.22456173598766327,
0.3119564950466156,
0.14393608272075653,
-0.03900352865457535,
-0.27613064646720886,
0.3555091917514801,
-0.14906185865402222,
0.06748281419277191,
-0.03360201418399811,
0.20493945479393005,
0.09367935359477997,
-0.47587043046951294,
0.12594519555568695,
0.06968577206134796,
-0.23212018609046936,
-0.041186876595020294,
-0.0239273589104414,
0.15239302814006805,
0.11860159039497375,
0.20390552282333374,
0.04176235571503639,
0.35597866773605347,
-0.06772875040769577,
-0.11481417715549469,
-0.5655714273452759,
-0.09749531745910645,
-0.24597424268722534,
0.3128051459789276,
-0.13745902478694916,
0.3027486503124237,
-0.14506280422210693,
0.044084496796131134,
-0.007792424876242876,
0.38808220624923706,
0.35656222701072693,
0.0990421324968338,
-0.16239474713802338,
-0.2619997262954712,
-0.32274144887924194,
0.13922475278377533,
0.2651118338108063,
0.24506515264511108,
-0.031061384826898575,
0.11291582882404327,
-0.43958744406700134,
-0.7549797296524048,
0.44633936882019043,
-0.5544971823692322,
-0.09524467587471008,
0.016279911622405052,
0.3003898561000824,
0.35469093918800354,
-0.08896282315254211,
-0.5038304328918457,
-0.10517779737710953,
0.369812935590744,
0.06514520198106766,
-0.04761224612593651,
0.058350421488285065,
0.11366807669401169,
0.0546238012611866,
-0.027861041948199272,
1.0447942018508911,
0.21618226170539856,
-0.1762981116771698,
0.10371338576078415,
-0.4345038831233978
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 47 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| [
-0.3742080628871918,
0.14785833656787872,
0.08840722590684891,
0.04588618129491806,
0.28045374155044556,
0.12814918160438538,
0.15311060845851898,
0.37765148282051086,
-0.24275626242160797,
0.2011217325925827,
0.3052014708518982,
0.4177034795284271,
-0.18650098145008087,
0.11496080458164215,
-0.14790168404579163,
0.009955640882253647,
0.05309251323342323,
0.2520793378353119,
0.12918181717395782,
0.006046579219400883,
-0.10626426339149475,
0.17224428057670593,
-0.19424960017204285,
0.28157973289489746,
-0.29421672224998474,
0.11772777885198593,
-0.04198155552148819,
-0.04793929681181908,
-0.12908288836479187,
-0.5930626392364502,
0.33762115240097046,
-0.15897870063781738,
0.24371512234210968,
0.33999085426330566,
-0.00012674675963353366,
0.11141245067119598,
0.4063086211681366,
-0.008188435807824135,
-0.25496798753738403,
-0.502197265625,
-0.12179329991340637,
-0.05364849045872688,
0.36649489402770996,
-0.08176565170288086,
0.10271166265010834,
-0.7000572085380554,
0.013414396904408932,
0.04993534833192825,
-0.16594797372817993,
0.329719215631485,
0.13600169122219086,
0.06373371928930283,
0.2616913914680481,
-0.0975201427936554,
0.22518645226955414,
0.062126655131578445,
-0.007968110032379627,
0.4649413824081421,
0.07230982184410095,
-0.11018970608711243,
0.23560042679309845,
-0.08482468128204346,
0.06871280074119568,
-0.05136876553297043,
0.0992346778512001,
0.18255452811717987,
0.2629989683628082,
-0.16270986199378967,
0.19890327751636505,
0.03185831382870674,
0.5882601141929626,
-0.626343309879303,
-0.42981502413749695,
-0.01766178384423256,
0.2202073484659195,
-0.2607835829257965,
0.2262852042913437,
0.2429364025592804,
-0.10094113647937775,
0.16287264227867126,
-0.05700244754552841,
-0.12062130868434906,
-0.06353504955768585,
-0.016481665894389153,
-0.4222542345523834,
0.33657920360565186,
0.18812862038612366,
0.14030826091766357,
-0.11323992162942886,
-0.009330072440207005,
0.002507462166249752,
-0.10973335802555084,
0.101992666721344,
-0.07801572978496552,
-0.27467337250709534,
-0.014431532472372055,
-0.07753405719995499,
0.1633087545633316,
0.1757597029209137,
0.20840856432914734,
0.003034478984773159,
-0.2792116105556488,
0.2704051434993744,
0.08605946600437164,
0.10359609872102737,
0.12690822780132294,
-0.020438766106963158,
0.15629267692565918,
0.10058408230543137,
-0.10707658529281616,
0.06900408118963242,
-0.003142530797049403,
-0.058131154626607895,
-0.05682428926229477,
0.38155367970466614,
0.02834111452102661,
0.7426701784133911,
-0.2355118691921234,
-0.20667126774787903,
0.17393015325069427,
-0.3724193871021271,
-0.17932485044002533,
-0.2660052478313446,
0.21872395277023315,
0.03055783174932003,
0.36071738600730896,
-0.1849217265844345,
0.33207371830940247,
-0.09560511261224747,
-0.2356073558330536,
-0.11359497904777527,
0.14577223360538483,
0.0022742797154933214,
-0.15496140718460083,
0.026871666312217712,
-0.31019285321235657,
-0.08789687603712082,
0.39052367210388184,
0.0014739196049049497,
0.12603192031383514,
-0.14159922301769257,
-0.05417347699403763,
-0.15362390875816345,
0.47547611594200134,
-0.2805735170841217,
0.25407636165618896,
0.13056603074073792,
-0.4681428372859955,
-0.3429701626300812,
0.21160925924777985,
-0.20337703824043274,
-0.4039483070373535,
-0.4072814881801605,
0.12810848653316498,
-0.12722809612751007,
-0.18097586929798126,
-0.14971782267093658,
-0.005261977203190327,
0.23063449561595917,
-0.15096963942050934,
-0.014637237414717674,
-0.6668524742126465,
0.10322347283363342,
-0.31990474462509155,
0.2467019259929657,
0.1543770730495453,
-0.633502721786499,
0.008750765584409237,
0.170479416847229,
-0.1900210827589035,
0.16581562161445618,
-0.11979783326387405,
0.005515075288712978,
-0.1398761123418808,
0.029038751497864723,
0.04766340181231499,
0.34689319133758545,
-0.19558563828468323,
-0.3685944974422455,
0.07286830991506577,
0.058083415031433105,
-0.00023772210988681763,
0.25941330194473267,
-0.3139028549194336,
0.04742277041077614,
0.18081918358802795,
-0.16790656745433807,
0.08111031353473663,
0.0019090173300355673,
0.016069598495960236,
-0.17401175200939178,
-0.04215655103325844,
0.38285356760025024,
0.2783961594104767,
0.14992137253284454,
-0.16017569601535797,
0.029361095279455185,
-0.20058467984199524,
0.1286725252866745,
-0.08686107397079468,
0.08510517328977585,
0.02649127133190632,
0.4046371281147003,
-0.14303964376449585,
0.033946577459573746,
-0.21758566796779633,
-0.31970107555389404,
0.1867123246192932,
0.0698745995759964,
0.026532959192991257,
-0.3560785949230194,
-0.18485917150974274,
-0.17959009110927582,
0.10886511206626892,
-0.10848965495824814,
-0.0283283032476902,
0.005801937077194452,
0.3832256495952606,
0.07114604115486145,
0.1115475594997406,
-0.29748275876045227,
0.24753792583942413,
0.024240953847765923,
0.17813517153263092,
-0.021211273968219757,
0.4727582335472107,
-0.40825772285461426,
-0.3153121769428253,
0.09022580832242966,
0.04570683836936951,
0.102862149477005,
0.03916672244668007,
-0.00020543872960843146,
0.28794193267822266,
-0.0028907782398164272,
0.05846504494547844,
-0.027676371857523918,
0.22501429915428162,
0.013864954933524132,
-0.172501340508461,
-0.19266095757484436,
0.256588876247406,
0.0011453431798145175,
0.40098264813423157,
0.1184246763586998,
0.3715970814228058,
0.551864743232727,
0.30029913783073425,
-0.02345987781882286,
0.0936504676938057,
-0.15085269510746002,
-0.016852721571922302,
0.1085570827126503,
-0.0839209333062172,
0.039352525025606155,
-0.10693004727363586,
0.21006657183170319,
-0.00770005164667964,
-0.5035154819488525,
0.08402041345834732,
0.38331732153892517,
-0.05956041067838669,
0.14520232379436493,
0.1436302214860916,
-0.26090526580810547,
0.048430152237415314,
0.03393321856856346,
0.13457836210727692,
0.27419859170913696,
0.15185455977916718,
-0.12465633451938629,
0.13092708587646484,
-0.31881675124168396,
0.16480009257793427,
0.1828397512435913,
0.10894787311553955,
0.17599813640117645,
0.18311980366706848,
0.2829287052154541,
0.08661819249391556,
-0.0567069947719574,
-0.3240150511264801,
0.13876812160015106,
0.35237953066825867,
-0.4344475567340851,
0.2530074417591095,
-0.34441322088241577,
0.2502819299697876,
-0.1669086068868637,
-0.18621069192886353,
-0.414761483669281,
-0.24293966591358185,
-0.03043806552886963,
0.09636861085891724,
0.10050343722105026,
0.23970063030719757,
-0.31220823526382446,
-0.12963062524795532,
0.04628170654177666,
-0.39881277084350586,
-0.21866901218891144,
-0.1758570373058319,
-0.44862914085388184,
-0.019090762361884117,
0.20133619010448456,
-0.39512571692466736,
0.03965185582637787,
-0.21996258199214935,
-0.21378584206104279,
-0.30605968832969666,
-0.185197114944458,
0.0833885669708252,
-0.23932886123657227,
0.2992103099822998,
0.2597305178642273,
-0.03824182227253914,
-0.047347500920295715,
-0.098890520632267,
0.3235453963279724,
-0.33215850591659546,
-0.2847578227519989,
0.10064635425806046,
-0.09428569674491882,
0.03566071391105652,
-0.06039280444383621,
-0.49700433015823364,
-0.3575110137462616,
-0.14624810218811035,
0.012423654086887836,
0.04109965264797211,
0.15556839108467102,
-0.06247178092598915,
0.23095160722732544,
-0.1249244287610054,
-0.1489117592573166,
-0.010573344305157661,
-0.027686594054102898,
0.003967163618654013,
0.23732492327690125,
0.006280253175646067,
-0.29694899916648865,
-0.05115565285086632,
0.006424936465919018,
0.08962693065404892,
0.03670378774404526,
-0.31444042921066284,
-0.14395038783550262,
0.05472937598824501,
0.5389249324798584,
-0.32073676586151123,
0.019199909642338753,
0.2970772981643677,
0.2694777846336365,
-0.036796074360609055,
0.06308837980031967,
-0.17872455716133118,
-0.18927964568138123,
0.14467932283878326,
0.1415686160326004,
0.17441296577453613,
0.24109160900115967,
-0.08494792878627777,
0.5790006518363953,
-0.07034360617399216,
-0.298630028963089,
0.25100070238113403,
-0.2920912504196167,
0.3411944508552551,
0.06305379420518875,
-0.17983002960681915,
-0.08869785070419312,
-0.0483301617205143,
0.01563979871571064,
0.2517922818660736,
-0.21847961843013763,
-0.1496746838092804,
-0.12394271045923233,
-0.2539525628089905,
-0.22122585773468018,
-0.042609911412000656,
-0.06121079996228218,
0.035998012870550156,
0.24408726394176483,
-0.05510738864541054,
0.029861584305763245,
-0.04037528112530708,
-0.05459699034690857,
0.14564427733421326,
0.30164915323257446,
-0.21570776402950287,
0.1017485111951828,
-0.18308553099632263,
-0.15270745754241943,
-0.1803332269191742,
0.3837957978248596,
0.04397004097700119,
0.4377392530441284,
0.15525394678115845,
-0.19997255504131317,
0.08330699801445007,
-0.1641712784767151,
0.5928218364715576,
-0.11870671063661575,
0.12393908947706223,
0.15854021906852722,
-0.13711534440517426,
-0.3955422341823578,
-0.414347380399704,
-0.4618232250213623,
0.0839422345161438,
0.004961406346410513,
0.197328120470047,
-0.29529038071632385,
-0.13784754276275635,
0.23053087294101715,
0.18448147177696228,
0.05069233104586601,
-0.02682379260659218,
-0.4164668321609497,
-0.06581632047891617,
-0.16919220983982086,
0.21112219989299774,
-0.12696261703968048,
0.36928629875183105,
-0.16570819914340973,
0.47812193632125854,
-0.14052420854568481,
-0.17769600450992584,
0.16546782851219177,
0.22072945535182953,
0.33840394020080566,
-0.32537007331848145,
-0.003250839188694954,
-0.19570493698120117,
0.22428937256336212,
0.6268399953842163,
0.5107086300849915,
0.3266791105270386,
-0.34252846240997314,
0.2157907485961914,
0.27692827582359314,
0.5334734320640564,
-0.019866256043314934,
-0.48275521397590637,
-0.09586048126220703,
-0.24713577330112457,
0.06028885021805763,
-0.06590321660041809,
-0.0321030355989933,
0.5593258142471313,
-0.10961019992828369,
-0.5021070241928101,
-0.020202837884426117,
0.5698212385177612,
0.18946680426597595,
-0.07937063276767731,
0.09573408961296082,
0.37784281373023987,
-0.15573731064796448,
0.36029931902885437,
-0.13346947729587555,
0.7824117541313171,
0.017545050010085106,
0.2209133505821228,
0.11558277159929276,
-0.441260427236557,
0.28626126050949097,
-0.06137903407216072,
0.09111928939819336,
-0.5176575183868408,
-0.33662280440330505,
-0.14645271003246307,
-0.23950153589248657,
0.13034364581108093,
0.014563992619514465,
-0.20682790875434875,
0.2747064530849457,
0.04758889973163605,
0.4116237461566925,
0.3609585762023926,
0.3171047866344452,
-0.07195165753364563,
0.27205127477645874,
-0.25218257308006287,
-0.021756233647465706,
-0.0593513548374176,
0.09170540422201157,
0.128119558095932,
0.05869534984230995,
-0.22393830120563507,
-0.42487630248069763,
-0.33838751912117004,
0.05846976116299629,
-0.23427794873714447,
-0.04213881865143776,
0.4508945345878601,
-0.5700247883796692,
0.11825979501008987,
0.04261555150151253,
-0.11736399680376053,
-0.032963190227746964,
-0.15812796354293823,
-0.01644033193588257,
-0.06273321807384491,
0.1840556263923645,
0.14150555431842804,
0.0766139104962349,
0.4222029447555542,
-0.011285734362900257,
-0.3214784264564514,
0.29161956906318665,
-0.03923801705241203,
0.01909777894616127,
-0.051205575466156006,
-0.019828584045171738,
0.1973825842142105,
-0.27409103512763977,
0.1948554813861847,
-0.5745170712471008,
0.2753390073776245,
-0.22365941107273102,
0.018647590652108192,
-0.10245902091264725,
0.000749720900785178,
-0.01631266623735428,
0.11780336499214172,
-0.28989002108573914,
-0.2125738561153412,
0.3666991591453552,
0.052849266678094864,
0.2823125123977661,
0.5269954800605774,
-0.06765429675579071,
-0.08177287876605988,
-0.045405879616737366,
0.052881356328725815,
0.2541746497154236,
-0.3957654535770416,
-0.04717028886079788,
-0.05437421053647995,
0.032748300582170486,
0.07908546924591064,
0.19848036766052246,
0.22373270988464355,
0.2555360198020935,
0.020118992775678635,
-0.5458890199661255,
-0.05526025965809822,
0.1743021160364151,
-0.18442228436470032,
0.04644273221492767,
0.20215794444084167,
0.2829451262950897,
0.1664929836988449,
-0.20048488676548004,
-0.18500712513923645,
-0.0044214376248419285,
-0.043110933154821396,
0.13986457884311676,
-0.1864711195230484,
0.15304221212863922,
0.13420791923999786,
-0.03256263956427574,
0.11823008954524994,
-0.21702593564987183,
-0.07061731070280075,
-0.07409846037626266,
-0.22043921053409576,
0.19820311665534973,
0.06247037649154663,
0.23938298225402832,
0.11284375935792923,
0.0884263813495636,
-0.012073373422026634,
-0.026476018130779266,
0.1066364198923111,
0.17856086790561676,
-0.2272360920906067,
0.30603137612342834,
0.4929541349411011,
-0.26229068636894226,
-0.3427828252315521,
-0.038648929446935654,
-0.1529736965894699,
-0.11577130854129791,
0.15556825697422028,
0.44990038871765137,
-0.163107767701149,
0.1811012476682663,
-0.2985672354698181,
0.040075451135635376,
-0.23881831765174866,
-0.03957748040556908,
0.1804852932691574,
-0.42563799023628235,
-0.2396807074546814,
-0.043382737785577774,
0.4485313594341278,
0.2221609354019165,
-0.23037496209144592,
-0.0980587974190712,
0.1173267662525177,
0.009072127752006054,
-0.4490540325641632,
0.03561576455831528,
0.26407670974731445,
0.15501615405082703,
-0.041029900312423706,
0.44269269704818726,
0.44890910387039185,
-0.287322074174881,
-0.09743534028530121,
0.17743970453739166,
0.49018019437789917,
0.2559274137020111,
0.16211329400539398,
0.5159204006195068,
-0.04389389604330063,
0.15822234749794006,
0.49910250306129456,
0.20054620504379272,
-0.09989028424024582,
0.43724143505096436,
-0.11245393007993698,
0.12613900005817413,
0.11646616458892822,
-0.20750384032726288,
0.04234156385064125,
-0.18604081869125366,
0.26239776611328125,
0.0324445404112339,
0.3752453327178955,
-0.26542752981185913,
0.1894049197435379,
0.331299751996994,
0.20597757399082184,
-0.2006644904613495,
-0.10158955305814743,
0.06638295948505402,
-0.07940857112407684,
-0.04491307958960533,
0.11131659895181656,
-0.2534874975681305,
-0.22936345636844635,
-0.05136595293879509,
-0.142513707280159,
-0.21004325151443481,
0.6946986317634583,
0.27506223320961,
-0.19031715393066406,
-0.30788618326187134,
0.1221388578414917,
0.11742907017469406,
0.048912934958934784,
-0.27384981513023376,
0.3728533685207367,
0.08059698343276978,
-0.08127176016569138,
0.22311697900295258,
0.3539696931838989,
0.8215017914772034,
0.24676170945167542,
-0.07579953223466873,
-0.3166641294956207,
-0.17110738158226013,
0.04289107024669647,
0.2550632655620575,
-0.012917940504848957,
0.0328654870390892,
0.03127769008278847,
0.2523142993450165,
0.07573398947715759,
0.0942193940281868,
-0.025433506816625595,
0.10409537702798843,
-0.018615836277604103,
-0.400272399187088,
0.334291934967041,
0.13773362338542938,
-0.23292234539985657,
0.033477604389190674,
0.30487748980522156,
-0.24637576937675476,
-0.0460602268576622,
0.2661556899547577,
0.559973955154419,
-0.12006783485412598,
-0.14167135953903198,
-0.009210341610014439,
0.25853198766708374,
0.31130892038345337,
0.5630505681037903,
0.15854229032993317,
-0.22429817914962769,
-0.18599288165569305,
-0.4756968915462494,
0.4308847486972809,
-0.21508201956748962,
-0.10645566135644913,
0.27602314949035645,
0.06394731253385544,
0.0704120472073555,
0.15698568522930145,
0.34716150164604187,
0.4209795594215393,
-0.39100682735443115,
0.13447120785713196,
-0.38570675253868103,
-0.2570208013057709,
0.019400320947170258,
-0.12370183318853378,
-0.07056624442338943,
-0.0510135255753994,
0.17150700092315674,
-0.5911437273025513,
0.02388029359281063,
-0.14542512595653534,
-0.23218877613544464,
0.17214511334896088,
-0.05502772703766823,
0.5031512379646301,
0.007037863600999117,
0.6460565328598022,
0.047030508518218994,
-0.19473370909690857,
-0.22843973338603973,
-0.10458704829216003,
-0.4692242741584778,
0.6017166972160339,
-0.26834794878959656,
0.22309093177318573,
-0.12355346232652664,
-0.3353493809700012,
-0.2232297956943512,
0.2529106140136719,
0.003141939640045166,
0.08841447532176971,
0.004312528297305107,
0.1209900975227356,
0.07138635218143463,
-0.04061316326260567,
-0.017388587817549706,
-0.05869895964860916,
0.015013025142252445,
0.3013276755809784,
-0.5924040079116821,
-0.6977590322494507,
0.4954080283641815,
-0.3196095824241638,
-0.3000345826148987,
-0.4309994578361511,
0.2480505108833313,
0.0159249659627676,
-0.03364286571741104,
-0.572213351726532,
0.11700476706027985,
0.46772500872612,
0.07418520003557205,
-0.2211979180574417,
-0.14956463873386383,
-0.07709529995918274,
0.3797607421875,
-0.11589547991752625,
0.4920509159564972,
-0.2867053151130676,
-0.19166092574596405,
-0.23435835540294647,
-0.2670707702636719
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 25 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | [
-0.341337651014328,
0.20062391459941864,
0.04937288165092468,
0.05718955025076866,
0.11079439520835876,
0.08544431626796722,
0.23533976078033447,
0.2816725969314575,
-0.17608508467674255,
0.13862158358097076,
0.4381387233734131,
0.33043190836906433,
-0.12948456406593323,
0.2977352440357208,
-0.1947028785943985,
0.07046408206224442,
0.013385703787207603,
0.14275354146957397,
0.34331464767456055,
0.05624355748295784,
-0.12545067071914673,
0.2392580658197403,
-0.19467231631278992,
0.1283947378396988,
-0.13299788534641266,
0.03721284866333008,
-0.1708892285823822,
0.04085744544863701,
-0.13878175616264343,
-0.46809273958206177,
0.4385559856891632,
0.0902261957526207,
0.18195535242557526,
0.6217027902603149,
-0.00012995164433959872,
0.13805070519447327,
0.4102705419063568,
-0.08854315429925919,
-0.2731282413005829,
-0.5470474362373352,
0.07749156653881073,
-0.012697752565145493,
0.3988085091114044,
-0.10407895594835281,
0.09655679762363434,
-0.3847823739051819,
-0.04488130658864975,
0.10923196375370026,
-0.06790287792682648,
0.37743133306503296,
0.08926317095756531,
0.25613096356391907,
0.08928438276052475,
0.013017733581364155,
0.2664370536804199,
0.32022330164909363,
-0.17905496060848236,
0.4346643090248108,
0.1634719967842102,
-0.13685297966003418,
0.18223150074481964,
-0.0818934366106987,
-0.0010011737467721105,
0.03811272233724594,
0.05876642465591431,
0.06501376628875732,
-0.005422146990895271,
-0.27568867802619934,
0.20956093072891235,
-0.00467640021815896,
0.47382688522338867,
-0.565561830997467,
-0.49996712803840637,
0.032570187002420425,
0.13106900453567505,
-0.2759970724582672,
0.1989559382200241,
0.1092875748872757,
-0.24751417338848114,
0.1120673343539238,
-0.1768939346075058,
-0.12104937434196472,
-0.0797204077243805,
-0.05970526486635208,
-0.4520736038684845,
0.19554360210895538,
0.1415925920009613,
0.19336971640586853,
0.0005672616534866393,
-0.00804499164223671,
0.08257599920034409,
-0.10773399472236633,
0.1832359880208969,
-0.02020062506198883,
-0.23837940394878387,
-0.07612527906894684,
0.07234878093004227,
0.3277743458747864,
0.2713031768798828,
0.4195837378501892,
0.040355384349823,
-0.13066734373569489,
0.17426611483097076,
0.09461865574121475,
0.06765323877334595,
0.20153214037418365,
-0.032532669603824615,
0.11007596552371979,
0.26883625984191895,
0.002264883369207382,
0.025136958807706833,
-0.034052774310112,
-0.08208825439214706,
-0.1183394193649292,
0.2201671600341797,
0.030795106664299965,
0.8329046964645386,
-0.31006190180778503,
-0.26441365480422974,
0.0647200271487236,
-0.41314128041267395,
-0.14563427865505219,
-0.1949632167816162,
0.21203361451625824,
0.10630185902118683,
0.39915043115615845,
-0.0541125163435936,
0.3935266137123108,
-0.09280611574649811,
-0.03351525962352753,
-0.12549848854541779,
0.09602139890193939,
0.07410915940999985,
-0.07458329945802689,
0.22435027360916138,
-0.3418164849281311,
-0.021451767534017563,
0.27858492732048035,
0.23174980282783508,
0.16883604228496552,
0.08478698879480362,
0.1707448810338974,
-0.015823854133486748,
0.5882760882377625,
-0.11708449572324753,
0.3030572831630707,
0.18088684976100922,
-0.46626728773117065,
-0.3240085542201996,
0.29424765706062317,
-0.3417186141014099,
-0.31198376417160034,
-0.15444673597812653,
0.03956257551908493,
-0.33098283410072327,
-0.22794091701507568,
-0.22301071882247925,
-0.19956418871879578,
0.2305959314107895,
-0.09554367512464523,
0.03778272867202759,
-0.643155038356781,
0.11010097712278366,
-0.24519722163677216,
0.26608800888061523,
0.2522028684616089,
-0.453264445066452,
0.05512867495417595,
-0.005815982818603516,
0.007762579247355461,
0.1686532348394394,
0.10818476229906082,
-0.06993575394153595,
-0.1368119716644287,
-0.025997702032327652,
0.08007187396287918,
0.45209282636642456,
-0.41717615723609924,
-0.3087322413921356,
0.25049713253974915,
-0.05021003261208534,
0.05252717435359955,
0.2544586956501007,
-0.40992432832717896,
0.06706258654594421,
0.10915636271238327,
-0.10234104841947556,
-0.055972203612327576,
-0.013213785365223885,
0.1008467748761177,
-0.11708726733922958,
-0.051847685128450394,
0.42051082849502563,
0.25924569368362427,
0.0945972353219986,
-0.1817268282175064,
-0.061567503958940506,
-0.3520298898220062,
0.20803724229335785,
-0.05817336589097977,
-0.00003435286271269433,
-0.0472281314432621,
0.4154101610183716,
-0.30174046754837036,
0.03766315057873726,
-0.005455305799841881,
-0.28100135922431946,
0.23539802432060242,
0.13972409069538116,
0.18325166404247284,
-0.4007815718650818,
-0.24609670042991638,
-0.29574206471443176,
0.11209286004304886,
-0.18158558011054993,
-0.025083443149924278,
-0.07342308759689331,
0.36766013503074646,
0.09435737878084183,
0.09085134416818619,
-0.24598686397075653,
0.12316189706325531,
-0.05497056990861893,
0.12163850665092468,
-0.015705471858382225,
0.3610078990459442,
-0.39767488837242126,
-0.31142041087150574,
0.14861848950386047,
0.015298169106245041,
0.15521037578582764,
-0.0953352227807045,
0.049207597970962524,
0.1977922022342682,
0.018292583525180817,
-0.061507366597652435,
0.02491392008960247,
0.23711799085140228,
0.09744882583618164,
-0.1439387947320938,
-0.13205422461032867,
0.2738497853279114,
-0.052751410752534866,
0.22889208793640137,
0.008953830227255821,
0.44835060834884644,
0.4337402582168579,
0.4135376811027527,
-0.00529156718403101,
0.13313739001750946,
-0.07898011803627014,
0.04646489769220352,
-0.10265859216451645,
0.02354184351861477,
0.06232080236077309,
-0.15796852111816406,
0.23855753242969513,
-0.008310879580676556,
-0.4083739221096039,
0.1789083033800125,
0.47559696435928345,
0.004527673590928316,
0.051207587122917175,
0.1263183355331421,
-0.04640507325530052,
0.013515371829271317,
0.14270572364330292,
0.11966025084257126,
0.3690716624259949,
0.13157062232494354,
-0.12699872255325317,
0.1280190348625183,
-0.308966726064682,
-0.00024045069585554302,
0.08813679218292236,
0.08554084599018097,
-0.01772419549524784,
0.10669928044080734,
0.2934767007827759,
0.009474853985011578,
-0.17146199941635132,
-0.5069291591644287,
0.13862842321395874,
0.35239237546920776,
-0.5544538497924805,
0.2957422733306885,
-0.25999611616134644,
0.24121856689453125,
-0.056394897401332855,
-0.09951742738485336,
-0.3512249290943146,
-0.34003323316574097,
-0.04263388365507126,
0.13224749267101288,
0.1855415254831314,
0.19873251020908356,
-0.31568917632102966,
0.08581462502479553,
0.027885666117072105,
-0.5474073886871338,
-0.3988511264324188,
-0.225047767162323,
-0.34328123927116394,
-0.008241544477641582,
0.3350314199924469,
-0.34401944279670715,
0.1043744683265686,
-0.35360071063041687,
-0.06156033277511597,
-0.3151574432849884,
-0.3276815116405487,
0.09710325300693512,
-0.3790064752101898,
0.3400278091430664,
0.2641104459762573,
0.1390075534582138,
-0.0936909019947052,
-0.07758510857820511,
0.2825624346733093,
-0.3451506197452545,
-0.3498208820819855,
0.05580327287316322,
-0.03937041759490967,
-0.08165889978408813,
-0.22975219786167145,
-0.4395768344402313,
-0.17561176419258118,
-0.1256151646375656,
0.1797545850276947,
0.13457636535167694,
0.08945037424564362,
0.16021254658699036,
0.2617311179637909,
-0.1119605228304863,
0.0015937850112095475,
-0.08004545420408249,
0.04162616282701492,
-0.18531940877437592,
0.31138554215431213,
-0.12298932671546936,
-0.2905152142047882,
0.0768144279718399,
0.09018794447183609,
0.256783664226532,
0.09056394547224045,
-0.3195665180683136,
-0.2088567167520523,
0.007146225310862064,
0.5721033811569214,
-0.15281720459461212,
0.05895749479532242,
0.395041823387146,
0.18017232418060303,
0.03358040377497673,
0.030317354947328568,
-0.2007780820131302,
-0.09942629933357239,
0.15768353641033173,
0.056193843483924866,
0.19561955332756042,
0.22704407572746277,
-0.06458111107349396,
0.7777853608131409,
-0.09126584231853485,
-0.24775220453739166,
0.3013986051082611,
-0.3482934832572937,
0.41254958510398865,
0.0924602746963501,
-0.31436318159103394,
-0.11483370512723923,
-0.004349398426711559,
-0.0983639732003212,
0.17193569242954254,
-0.1672712117433548,
-0.19684916734695435,
-0.13160842657089233,
-0.2043842077255249,
-0.11719811707735062,
-0.09018582105636597,
-0.04581400007009506,
-0.014827290549874306,
0.27997562289237976,
-0.03968774527311325,
0.16787555813789368,
-0.13242284953594208,
-0.04968709871172905,
0.17422673106193542,
0.44276973605155945,
-0.019697610288858414,
0.023719007149338722,
-0.2624482214450836,
-0.29406803846359253,
-0.2959466874599457,
0.3724195957183838,
0.061156757175922394,
0.4008820056915283,
-0.02668098732829094,
-0.16103169322013855,
0.10310492664575577,
-0.30256080627441406,
0.6163406372070312,
-0.24014276266098022,
0.08069346100091934,
0.34219127893447876,
-0.22505232691764832,
-0.4068380892276764,
-0.32001248002052307,
-0.4515897035598755,
0.1839897483587265,
-0.02797752059996128,
0.259449303150177,
-0.2801227271556854,
-0.3214554786682129,
0.26712748408317566,
0.10506078600883484,
0.06642970442771912,
0.028871087357401848,
-0.5246196985244751,
-0.44299188256263733,
-0.29866746068000793,
0.2140107899904251,
0.05449831485748291,
0.25459158420562744,
-0.35635876655578613,
0.4444730281829834,
-0.07122988253831863,
-0.2317398488521576,
0.24845550954341888,
0.2951730787754059,
0.2508280575275421,
-0.13306011259555817,
-0.06405563652515411,
-0.1815863400697708,
0.00977616012096405,
0.47769421339035034,
0.5681918263435364,
0.37771791219711304,
-0.2568674385547638,
0.37691009044647217,
0.20318174362182617,
0.575868546962738,
0.22579051554203033,
-0.40592557191848755,
-0.05272067338228226,
-0.11496587842702866,
-0.03791375085711479,
-0.08098933100700378,
0.12207614630460739,
0.5143463611602783,
-0.21527943015098572,
-0.3515264391899109,
-0.06738010048866272,
0.3762577772140503,
0.2904917001724243,
-0.04916898161172867,
0.12100917100906372,
0.40698346495628357,
-0.13312673568725586,
0.31321024894714355,
-0.13128042221069336,
0.8649083971977234,
0.05738084390759468,
0.25698310136795044,
0.17126913368701935,
-0.32267114520072937,
0.08208952099084854,
-0.003962195012718439,
0.017548369243741035,
-0.4571154713630676,
-0.16863684356212616,
-0.17968274652957916,
-0.29546499252319336,
0.23048393428325653,
-0.022618230432271957,
-0.18655911087989807,
0.22972257435321808,
0.060124337673187256,
0.49950656294822693,
0.43009039759635925,
0.396660715341568,
-0.23162293434143066,
0.3145558834075928,
-0.219442680478096,
-0.017298642545938492,
0.029301945120096207,
0.22863081097602844,
0.12447752803564072,
-0.0027929511852562428,
-0.2746598422527313,
-0.49614617228507996,
-0.370462566614151,
-0.025693845003843307,
-0.289031982421875,
-0.11042344570159912,
0.32958945631980896,
-0.748252809047699,
0.24864789843559265,
0.03392188623547554,
0.10982604324817657,
0.007535002660006285,
-0.3014063537120819,
0.03664793074131012,
-0.10047586262226105,
0.11640555411577225,
0.2305585891008377,
-0.012688860297203064,
0.37980547547340393,
0.0022485831286758184,
-0.369571715593338,
0.24874749779701233,
-0.07758910208940506,
-0.12840673327445984,
-0.10458077490329742,
0.06520964205265045,
-0.041656624525785446,
-0.3378787338733673,
0.17437396943569183,
-0.5917772650718689,
0.1822236329317093,
-0.0884273424744606,
-0.020644353702664375,
-0.11919237673282623,
0.09580054879188538,
0.02543393336236477,
0.2053673267364502,
-0.2256229817867279,
-0.12507161498069763,
0.27431318163871765,
-0.0698663592338562,
0.16882957518100739,
0.5413681268692017,
-0.013897482305765152,
0.04178481921553612,
-0.037935275584459305,
0.03379374369978905,
0.2881397008895874,
-0.42255717515945435,
0.019372615963220596,
-0.06644074618816376,
0.020780829712748528,
-0.007983949035406113,
0.509545624256134,
0.07081771641969681,
0.200180321931839,
-0.039186280220746994,
-0.4795255959033966,
-0.009307061322033405,
0.24784712493419647,
-0.030048036947846413,
0.15695060789585114,
0.13996833562850952,
0.28624844551086426,
0.2056424766778946,
-0.40549522638320923,
-0.17149102687835693,
-0.04002968966960907,
-0.0005373118910938501,
0.09705964475870132,
-0.1244993731379509,
0.002344229258596897,
0.1719813197851181,
-0.021147267892956734,
0.024566644802689552,
-0.16810829937458038,
-0.07666445523500443,
-0.0485597625374794,
-0.12290874123573303,
0.20957398414611816,
0.036637842655181885,
0.15803255140781403,
0.19972409307956696,
0.012682911939918995,
0.009816781617701054,
-0.013130412437021732,
0.16014547646045685,
0.08294355124235153,
-0.13927823305130005,
0.09324334561824799,
0.19146578013896942,
-0.1461142897605896,
-0.36845114827156067,
0.026094861328601837,
-0.16010865569114685,
0.08383333683013916,
0.17343325912952423,
0.38310033082962036,
-0.12432996928691864,
0.17004625499248505,
-0.1644284874200821,
0.13646429777145386,
-0.15961836278438568,
0.013914779759943485,
0.22388656437397003,
-0.35047996044158936,
-0.2246348261833191,
-0.07116261124610901,
0.5016791224479675,
0.27468401193618774,
-0.1880667507648468,
0.04947233200073242,
0.07359758019447327,
-0.06575631350278854,
-0.33242055773735046,
0.08114868402481079,
0.31314826011657715,
0.16447003185749054,
-0.01422017440199852,
0.5696220397949219,
0.3624670207500458,
-0.28933343291282654,
0.1590241938829422,
0.11968418210744858,
0.7548345327377319,
0.26592758297920227,
0.0646338015794754,
0.1735052615404129,
-0.17275221645832062,
0.17013150453567505,
0.4858207106590271,
0.059521786868572235,
-0.05907721444964409,
0.113984115421772,
-0.16607323288917542,
0.18067710101604462,
0.06338571757078171,
-0.13966242969036102,
0.001239097910001874,
-0.16610312461853027,
0.3387809097766876,
-0.26451602578163147,
0.34343841671943665,
-0.20660485327243805,
0.18527284264564514,
0.4347057640552521,
0.07545600086450577,
-0.1739107221364975,
-0.23981478810310364,
0.10661540925502777,
-0.022904884070158005,
-0.08844991773366928,
-0.11495260149240494,
-0.2485227733850479,
-0.18543687462806702,
-0.05156327784061432,
-0.1260223686695099,
-0.12427997589111328,
0.665073573589325,
0.18254193663597107,
-0.1802324503660202,
-0.2559809684753418,
-0.009240465238690376,
0.0285577904433012,
0.0777159035205841,
-0.26376181840896606,
0.41442134976387024,
0.07031736522912979,
-0.1295517385005951,
0.06194278597831726,
0.3388364911079407,
0.9245893359184265,
0.1384817659854889,
-0.11934174597263336,
-0.3575938045978546,
-0.2355307936668396,
0.009926101192831993,
0.13869477808475494,
0.007697888650000095,
-0.01259899977594614,
0.1495126336812973,
0.13449642062187195,
0.08624690771102905,
0.07146621495485306,
-0.05863010883331299,
0.11869800835847855,
-0.11727690696716309,
-0.47603797912597656,
0.36488205194473267,
-0.016835829243063927,
-0.17699576914310455,
-0.049062348902225494,
0.1928958147764206,
-0.21985314786434174,
0.01867583952844143,
0.15101736783981323,
0.47448766231536865,
-0.14139780402183533,
-0.26538318395614624,
-0.016090650111436844,
0.1495954394340515,
0.3990333676338196,
0.479859858751297,
0.2936069369316101,
-0.2884005308151245,
-0.16200295090675354,
-0.6309648752212524,
0.24994511902332306,
-0.10891813039779663,
-0.07339034229516983,
0.17617611587047577,
0.19231754541397095,
0.12613582611083984,
0.15658357739448547,
0.25283169746398926,
0.15728168189525604,
-0.2526710629463196,
0.0740479901432991,
-0.28174924850463867,
-0.18423065543174744,
-0.11259984970092773,
-0.16807375848293304,
-0.08373033255338669,
-0.051579877734184265,
0.12333965301513672,
-0.6046465635299683,
-0.045035019516944885,
-0.22134865820407867,
-0.36861100792884827,
0.13001883029937744,
-0.28460657596588135,
0.43594929575920105,
-0.045336704701185226,
0.7685070037841797,
0.12560291588306427,
-0.1501162201166153,
-0.3288884460926056,
-0.13706590235233307,
-0.2852412462234497,
0.5235648155212402,
-0.334081768989563,
0.29420706629753113,
-0.07190604507923126,
-0.38018715381622314,
-0.23676463961601257,
0.2125566154718399,
0.1473570466041565,
0.01508442871272564,
0.13905467092990875,
0.18910349905490875,
-0.09959614276885986,
-0.055413924157619476,
-0.04359772056341171,
-0.03080085851252079,
-0.02593737095594406,
0.22499039769172668,
-0.5183082818984985,
-0.6421110033988953,
0.5877329707145691,
-0.3876189589500427,
-0.28115707635879517,
-0.35398387908935547,
0.2209097445011139,
-0.1894458830356598,
-0.15479344129562378,
-0.4908483028411865,
0.021291909739375114,
0.3034400939941406,
0.13608023524284363,
-0.25627338886260986,
0.07688801735639572,
0.02378169633448124,
0.2902067005634308,
-0.08824674785137177,
0.49934858083724976,
-0.36255401372909546,
-0.07459237426519394,
-0.1757296621799469,
-0.19070477783679962
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 95 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | [
-0.4502638280391693,
0.13628952205181122,
0.07276097685098648,
-0.007737793494015932,
0.2104404717683792,
0.14556902647018433,
0.13477861881256104,
0.3891865909099579,
-0.261273056268692,
0.1966487020254135,
0.2423592209815979,
0.44099193811416626,
-0.17453418672084808,
0.19554705917835236,
-0.24655699729919434,
0.020137660205364227,
-0.03596113622188568,
0.19910192489624023,
0.13498345017433167,
0.04183579236268997,
-0.14862464368343353,
0.16259050369262695,
-0.21622107923030853,
0.26479583978652954,
-0.1537034511566162,
-0.056200217455625534,
-0.08893924206495285,
-0.04437948390841484,
-0.13040974736213684,
-0.5437798500061035,
0.3741041123867035,
-0.059600457549095154,
0.1746741682291031,
0.5324841141700745,
-0.00012349383905529976,
0.13402925431728363,
0.3579033315181732,
-0.09974362701177597,
-0.32015812397003174,
-0.49850577116012573,
0.030354894697666168,
0.025071702897548676,
0.3309289813041687,
-0.14971652626991272,
0.04570282623171806,
-0.5905318856239319,
-0.05606173723936081,
0.011204281821846962,
-0.02645823359489441,
0.4921302795410156,
0.15572766959667206,
0.16485966742038727,
0.0755559578537941,
-0.137879878282547,
0.21025507152080536,
0.08985574543476105,
-0.07608132809400558,
0.47067680954933167,
0.12163855880498886,
-0.0717136561870575,
0.16000711917877197,
-0.10232078284025192,
-0.021708134561777115,
-0.016618911176919937,
-0.01973617821931839,
0.08909482508897781,
0.27014029026031494,
-0.25406414270401,
0.2758238911628723,
0.021355798467993736,
0.6139841675758362,
-0.6099303364753723,
-0.40281328558921814,
0.05849632993340492,
0.151048481464386,
-0.19779476523399353,
0.2043726146221161,
0.1740199774503708,
-0.23459802567958832,
0.137074813246727,
-0.19406206905841827,
-0.03811601176857948,
-0.07902002334594727,
-0.10124257951974869,
-0.37965652346611023,
0.2510075867176056,
0.19847609102725983,
0.17120224237442017,
-0.015671230852603912,
-0.11607932299375534,
0.0763113796710968,
-0.1649232804775238,
0.17040179669857025,
0.0014236621791496873,
-0.21078766882419586,
-0.12968334555625916,
-0.06831688433885574,
0.36054104566574097,
0.2446824014186859,
0.24374254047870636,
0.03952035307884216,
-0.21937094628810883,
0.289946585893631,
0.14934329688549042,
-0.000206461496418342,
0.06083045154809952,
0.028258459642529488,
0.1525740921497345,
0.11568392068147659,
-0.0743040144443512,
0.011641670018434525,
0.012575805187225342,
-0.0356714129447937,
-0.13475482165813446,
0.2806887626647949,
-0.017558615654706955,
0.7477177381515503,
-0.38609281182289124,
-0.3294268250465393,
0.11270786821842194,
-0.31910303235054016,
-0.11211221665143967,
-0.14967338740825653,
0.3698425590991974,
0.08019561320543289,
0.30647292733192444,
-0.20255541801452637,
0.30273306369781494,
-0.14876973628997803,
-0.1783849447965622,
-0.0953059047460556,
0.0878901556134224,
-0.021924901753664017,
-0.13318251073360443,
0.1687428504228592,
-0.2979690432548523,
-0.04650557041168213,
0.3469100594520569,
0.10252140462398529,
0.18799392879009247,
0.06526154279708862,
-0.002695550909265876,
-0.05441365763545036,
0.46116581559181213,
-0.22185125946998596,
0.2516639530658722,
0.17808367311954498,
-0.5087434649467468,
-0.36347201466560364,
0.27439889311790466,
-0.2164250761270523,
-0.353474497795105,
-0.2432025671005249,
0.15128149092197418,
-0.09201821684837341,
-0.2586004137992859,
-0.04892817884683609,
-0.06135048717260361,
0.18020853400230408,
-0.15756362676620483,
-0.004294391255825758,
-0.6692394018173218,
0.1291498988866806,
-0.31724435091018677,
0.2979747951030731,
0.2355632185935974,
-0.5403284430503845,
0.0511990450322628,
0.11710075289011002,
-0.15386919677257538,
0.2208564281463623,
-0.048054441809654236,
0.02851850911974907,
-0.16844776272773743,
0.008382461033761501,
0.00040413919487036765,
0.36193013191223145,
-0.31578385829925537,
-0.2808323800563812,
0.2037825584411621,
0.13735759258270264,
-0.005416087340563536,
0.2581103444099426,
-0.3559543788433075,
0.06767768412828445,
0.13325288891792297,
-0.24490122497081757,
0.0707520842552185,
-0.06347891688346863,
0.03949916735291481,
-0.17243492603302002,
0.011109445244073868,
0.43109065294265747,
0.29425248503685,
0.07769425213336945,
-0.18691937625408173,
0.054162029176950455,
-0.2536586821079254,
0.17242342233657837,
-0.1534912884235382,
0.014555464498698711,
-0.09521070122718811,
0.4228501617908478,
-0.30714842677116394,
0.009101897478103638,
-0.08208489418029785,
-0.3720254898071289,
0.21420732140541077,
0.14268717169761658,
0.0427832268178463,
-0.3331007957458496,
-0.2545280456542969,
-0.3418053388595581,
0.09298117458820343,
-0.11785702407360077,
-0.030903039500117302,
0.029023049399256706,
0.3834606409072876,
0.08364519476890564,
0.06660785526037216,
-0.17853426933288574,
0.1259467899799347,
0.01098101120442152,
0.18438966572284698,
-0.0219142846763134,
0.40528547763824463,
-0.3848956525325775,
-0.32877856492996216,
0.11645255982875824,
0.014769058674573898,
0.21107029914855957,
-0.07470083981752396,
-0.024430034682154655,
0.35694536566734314,
0.06681367009878159,
0.03249697387218475,
0.03754580393433571,
0.2812749743461609,
0.009508064948022366,
-0.2744840383529663,
-0.225558340549469,
0.28451818227767944,
-0.056314561516046524,
0.3358910083770752,
-0.047780368477106094,
0.4245941638946533,
0.4690217971801758,
0.24409368634223938,
0.043489161878824234,
0.12071575969457626,
-0.08766240626573563,
0.030711110681295395,
0.01759566366672516,
-0.10276950895786285,
0.12395493686199188,
-0.09751424193382263,
0.24295519292354584,
0.007381168659776449,
-0.4534863829612732,
0.018112165853381157,
0.3326233923435211,
-0.10369645059108734,
0.07972230762243271,
0.10889071226119995,
-0.13481737673282623,
0.07133235782384872,
0.1310131847858429,
0.12860232591629028,
0.26710036396980286,
0.15452176332473755,
-0.06642863899469376,
0.1459350287914276,
-0.3957769572734833,
0.04936870560050011,
0.14745722711086273,
0.046950701624155045,
0.08438330143690109,
0.11784970015287399,
0.20307520031929016,
0.06922602653503418,
-0.19645267724990845,
-0.4386538863182068,
0.16900798678398132,
0.3975125849246979,
-0.45560988783836365,
0.25250306725502014,
-0.259302020072937,
0.28796276450157166,
-0.17629854381084442,
-0.10131283104419708,
-0.2812751233577728,
-0.28717321157455444,
0.02980879507958889,
0.16138628125190735,
0.12805235385894775,
0.2844814360141754,
-0.3949873447418213,
0.13085362315177917,
0.060437168926000595,
-0.5389618277549744,
-0.3587735593318939,
-0.17885065078735352,
-0.43584662675857544,
0.05648490786552429,
0.293006032705307,
-0.29367387294769287,
0.18700158596038818,
-0.338571697473526,
-0.10415752232074738,
-0.2780030369758606,
-0.25462669134140015,
0.10002326220273972,
-0.27325403690338135,
0.42247238755226135,
0.23313450813293457,
0.0653013288974762,
-0.050941526889801025,
-0.1394461691379547,
0.298511803150177,
-0.5006914734840393,
-0.2382100522518158,
0.10757843405008316,
-0.06091433763504028,
-0.028160030022263527,
-0.09925781935453415,
-0.602631688117981,
-0.27009400725364685,
-0.17673152685165405,
-0.07382939010858536,
0.10129479318857193,
0.11717909574508667,
0.015318895690143108,
0.179499551653862,
-0.041438620537519455,
-0.10640046000480652,
0.040731463581323624,
0.02277965657413006,
-0.09356739372015,
0.2638747990131378,
-0.1412259042263031,
-0.24706172943115234,
0.0030329041182994843,
0.059399042278528214,
0.3075079321861267,
0.02631388232111931,
-0.315766841173172,
-0.17850816249847412,
0.0870809406042099,
0.5713324546813965,
-0.21375451982021332,
-0.008834153413772583,
0.2017015814781189,
0.3253878653049469,
-0.046131402254104614,
0.043869029730558395,
-0.15613852441310883,
-0.2257906049489975,
0.08310535550117493,
0.11741701513528824,
0.11736846715211868,
0.24780507385730743,
-0.0001472527364967391,
0.7000099420547485,
0.09016963094472885,
-0.2647121548652649,
0.2456340193748474,
-0.29044264554977417,
0.36461159586906433,
0.02159200608730316,
-0.2104300707578659,
-0.029303235933184624,
-0.003285549581050873,
-0.08996837586164474,
0.2567014694213867,
-0.18345136940479279,
-0.2540484368801117,
-0.07478760182857513,
-0.18840627372264862,
-0.2296489179134369,
-0.06973973661661148,
-0.03852495551109314,
-0.05076000839471817,
0.26926472783088684,
-0.0709146037697792,
0.14934569597244263,
-0.0700601115822792,
-0.10604305565357208,
0.2032533437013626,
0.3706047534942627,
-0.254340797662735,
0.03087603859603405,
-0.269710898399353,
-0.20073704421520233,
-0.23489844799041748,
0.42467841506004333,
-0.012991225346922874,
0.4772619903087616,
-0.01696314476430416,
-0.12940891087055206,
0.09740793704986572,
-0.20808373391628265,
0.47896793484687805,
-0.2268107682466507,
0.08115119487047195,
0.28939178586006165,
-0.17096929252147675,
-0.44634366035461426,
-0.3620917797088623,
-0.4987751841545105,
0.07814141362905502,
-0.03766987472772598,
0.22606602311134338,
-0.23438769578933716,
-0.23196449875831604,
0.22696170210838318,
0.11853793263435364,
0.07251082360744476,
0.003712158650159836,
-0.43107056617736816,
-0.2614598572254181,
-0.24307794868946075,
0.30343666672706604,
-0.10249552875757217,
0.3525215983390808,
-0.33259138464927673,
0.40758177638053894,
-0.09610038250684738,
-0.17272090911865234,
0.24494150280952454,
0.3544299304485321,
0.22494177520275116,
-0.21191129088401794,
0.02607637643814087,
-0.12502244114875793,
0.23234276473522186,
0.5753100514411926,
0.5339674949645996,
0.23210987448692322,
-0.22215509414672852,
0.1890181452035904,
0.23789392411708832,
0.6089588403701782,
0.037968430668115616,
-0.43509915471076965,
-0.131175234913826,
-0.21597400307655334,
0.04362243413925171,
-0.009059942327439785,
0.10546866059303284,
0.5369827747344971,
-0.12586888670921326,
-0.5352922081947327,
0.03395097330212593,
0.47798168659210205,
0.2792460024356842,
-0.1366872638463974,
0.07593487203121185,
0.3156251907348633,
-0.16744275391101837,
0.43760770559310913,
-0.10256564617156982,
0.8173340559005737,
-0.0009261062368750572,
0.1719653308391571,
0.138971209526062,
-0.3020307421684265,
0.12917260825634003,
0.020027482882142067,
0.010788951069116592,
-0.4951128661632538,
-0.35238054394721985,
-0.12848086655139923,
-0.26069220900535583,
0.2495347410440445,
0.05806288495659828,
-0.3433745801448822,
0.3005760908126831,
0.019464116543531418,
0.45729756355285645,
0.42090877890586853,
0.2916838824748993,
-0.16789329051971436,
0.29896280169487,
-0.25076189637184143,
0.03803152218461037,
0.02441742829978466,
0.07223343849182129,
0.11549509316682816,
0.07646633684635162,
-0.1413774937391281,
-0.4948062598705292,
-0.27903857827186584,
0.015146558173000813,
-0.2930014729499817,
-0.10045917332172394,
0.3964216411113739,
-0.573357105255127,
0.21180760860443115,
0.07209217548370361,
0.048183538019657135,
0.0640389621257782,
-0.2333730161190033,
0.012959716841578484,
-0.14577870070934296,
0.12769460678100586,
0.1839483380317688,
0.047533076256513596,
0.453349769115448,
-0.008721890859305859,
-0.337863564491272,
0.3581653833389282,
-0.0813952088356018,
-0.011938665062189102,
0.014828508719801903,
-0.12561216950416565,
0.17730654776096344,
-0.33680370450019836,
0.24641549587249756,
-0.6286604404449463,
0.10997376590967178,
-0.1781969517469406,
0.04503731429576874,
-0.1984386146068573,
0.003613564185798168,
0.10916157066822052,
0.22726057469844818,
-0.3318319618701935,
-0.21183200180530548,
0.20839038491249084,
0.005966242868453264,
0.2285708338022232,
0.5235669612884521,
-0.08871269226074219,
-0.04807804152369499,
-0.10361718386411667,
0.05815370753407478,
0.3272997736930847,
-0.33752045035362244,
-0.04912056401371956,
-0.029718002304434776,
0.06560955196619034,
0.1523430496454239,
0.3768540322780609,
0.277626097202301,
0.21318668127059937,
-0.0744466483592987,
-0.5255510807037354,
-0.07296537607908249,
0.23751047253608704,
-0.07121415436267853,
0.1975880265235901,
0.1174604743719101,
0.3237074613571167,
0.22385965287685394,
-0.11349353939294815,
-0.239702969789505,
-0.03295690938830376,
-0.13233523070812225,
0.1919334977865219,
-0.08682846277952194,
0.09644541889429092,
0.051700491458177567,
0.06344820559024811,
0.08875685930252075,
-0.19282980263233185,
-0.14227935671806335,
-0.11094767600297928,
-0.1475546807050705,
0.18353678286075592,
0.10185111314058304,
0.13818615674972534,
0.12649233639240265,
0.05604791268706322,
0.049014460295438766,
-0.04671850427985191,
0.13852310180664062,
0.039386097341775894,
-0.1792176067829132,
0.2147742509841919,
0.34734153747558594,
-0.16727665066719055,
-0.35854917764663696,
-0.03709829971194267,
-0.20412766933441162,
-0.039642125368118286,
0.14702783524990082,
0.38606399297714233,
-0.2622257173061371,
0.06064391881227493,
-0.1839810162782669,
0.08918103575706482,
-0.038675401359796524,
-0.05811823159456253,
0.11452338844537735,
-0.3145364820957184,
-0.2465544193983078,
0.013894940726459026,
0.44908714294433594,
0.2860865890979767,
-0.20155563950538635,
-0.030050128698349,
0.23514944314956665,
0.033413682132959366,
-0.4120022654533386,
0.008535843342542648,
0.29435548186302185,
0.1643492430448532,
0.09699580073356628,
0.49920523166656494,
0.3679383397102356,
-0.3373355567455292,
0.07632054388523102,
0.05410841852426529,
0.48907023668289185,
0.22714604437351227,
0.16241052746772766,
0.4281889796257019,
-0.12060483545064926,
0.14897330105304718,
0.5001076459884644,
0.0717378556728363,
-0.06867491453886032,
0.33658352494239807,
-0.22659620642662048,
0.29017549753189087,
0.05184926837682724,
-0.09472782164812088,
0.012078453786671162,
-0.14029176533222198,
0.33037903904914856,
-0.08364804834127426,
0.3031805157661438,
-0.18541939556598663,
0.2107687145471573,
0.34041687846183777,
0.09915284067392349,
-0.31039780378341675,
-0.26461073756217957,
0.00738905556499958,
-0.07696642726659775,
-0.1239803284406662,
-0.077755868434906,
-0.24878494441509247,
-0.3113350570201874,
-0.042400915175676346,
-0.18332618474960327,
-0.213645800948143,
0.6925194263458252,
0.20947572588920593,
-0.14585216343402863,
-0.2887676954269409,
0.09960651397705078,
0.12556123733520508,
0.06614144146442413,
-0.24123771488666534,
0.4364034831523895,
-0.006714765913784504,
-0.046182237565517426,
0.1553470641374588,
0.29818856716156006,
0.8132767081260681,
0.21816004812717438,
-0.1735401153564453,
-0.32582369446754456,
-0.23221513628959656,
0.06455783545970917,
0.2646581828594208,
0.06301911175251007,
-0.0373365581035614,
0.02126367762684822,
0.2920491397380829,
0.11681196838617325,
0.027758926153182983,
-0.07846193760633469,
0.06500335782766342,
-0.15909695625305176,
-0.4842328429222107,
0.2990453541278839,
0.18477995693683624,
-0.10185880959033966,
0.01642249897122383,
0.17674660682678223,
-0.25420626997947693,
0.026872269809246063,
0.21977165341377258,
0.40253883600234985,
-0.09970112890005112,
-0.12806667387485504,
0.013057771138846874,
0.2641710042953491,
0.3753710985183716,
0.46604207158088684,
0.30420252680778503,
-0.3263893723487854,
-0.23226386308670044,
-0.5930103659629822,
0.30815503001213074,
-0.11185570061206818,
-0.0641731470823288,
0.2311534583568573,
0.07034260779619217,
0.12582509219646454,
0.2151816338300705,
0.3055858314037323,
0.3428936302661896,
-0.26369670033454895,
0.10260071605443954,
-0.40018922090530396,
-0.1769958883523941,
-0.09045105427503586,
-0.181917205452919,
-0.09434594959020615,
-0.17175519466400146,
0.19072642922401428,
-0.5734677910804749,
0.014778625220060349,
-0.12844178080558777,
-0.3459658622741699,
0.20035399496555328,
-0.1925392895936966,
0.45888063311576843,
-0.02036123350262642,
0.7599464058876038,
0.05706433206796646,
-0.13146431744098663,
-0.19957061111927032,
-0.1574077606201172,
-0.3382566571235657,
0.5084724426269531,
-0.21539655327796936,
0.2439022809267044,
-0.03558779135346413,
-0.22234614193439484,
-0.14480943977832794,
0.23349899053573608,
0.14098110795021057,
0.015728427097201347,
0.08336219191551208,
0.09266455471515656,
0.06414283066987991,
-0.09420730918645859,
-0.02300349622964859,
-0.01973450370132923,
-0.030902352184057236,
0.29727134108543396,
-0.4680342674255371,
-0.6723169088363647,
0.5400301218032837,
-0.33879372477531433,
-0.23527976870536804,
-0.4275917708873749,
0.25751301646232605,
-0.09694624692201614,
-0.08701175451278687,
-0.48075681924819946,
0.10606737434864044,
0.38183578848838806,
0.03254975005984306,
-0.22709836065769196,
-0.032455164939165115,
0.03265101835131645,
0.3201504647731781,
-0.1376316398382187,
0.5239676237106323,
-0.28771668672561646,
-0.15140411257743835,
-0.16822122037410736,
-0.2710401713848114
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 66 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | [
-0.059490494430065155,
-0.11997142434120178,
0.014864216558635235,
0.2438829392194748,
0.4732634425163269,
-0.0013418906601145864,
0.4414612054824829,
0.12539775669574738,
-0.014295127242803574,
0.2675632834434509,
-0.17997731268405914,
0.46588876843452454,
-0.11915596574544907,
0.10542669892311096,
0.0933510959148407,
-0.16344596445560455,
-0.1493486762046814,
0.1789051592350006,
-0.09505166858434677,
0.004156006034463644,
-0.29514092206954956,
-0.12274529039859772,
-0.2647020220756531,
0.16010607779026031,
-0.4545833468437195,
-0.24733677506446838,
-0.12372733652591705,
-0.028907490894198418,
-0.2947976589202881,
-0.3072052001953125,
0.39059314131736755,
0.04553207755088806,
0.0802018791437149,
0.5733891725540161,
-0.00010463325452292338,
0.08574330806732178,
0.5220625996589661,
0.07952461391687393,
-0.10193853825330734,
-0.4897308349609375,
-0.1364544928073883,
-0.1668332815170288,
0.2139173299074173,
-0.393879234790802,
-0.1748814433813095,
-0.04341771826148033,
0.01563052088022232,
0.10471987724304199,
0.31356391310691833,
0.4849517047405243,
0.30893850326538086,
0.4509331285953522,
0.04645197093486786,
-0.26731762290000916,
0.2966393530368805,
0.15159928798675537,
-0.05325179919600487,
0.36010149121284485,
-0.029762988910079002,
-0.10263795405626297,
0.18468357622623444,
0.156706765294075,
-0.2669478952884674,
-0.0967591181397438,
0.19038693606853485,
0.06878650933504105,
-0.04153938218951225,
-0.29089757800102234,
-0.07514950633049011,
0.4143873155117035,
0.33878093957901,
-0.45931103825569153,
-0.27881088852882385,
0.1180642619729042,
0.21228356659412384,
-0.2495185285806656,
0.2602466940879822,
0.08561740815639496,
-0.012844924814999104,
0.19757260382175446,
-0.08679461479187012,
0.27960726618766785,
-0.27930307388305664,
0.3049076199531555,
-0.16479440033435822,
0.14449526369571686,
-0.0630866289138794,
0.03452403098344803,
0.2060510814189911,
-0.19196352362632751,
0.0597912073135376,
-0.1310272365808487,
0.035673800855875015,
0.10070232301950455,
-0.24360710382461548,
-0.13699491322040558,
0.1091516986489296,
-0.055024903267621994,
0.13056084513664246,
-0.2993285059928894,
0.1565283089876175,
-0.08257432281970978,
-0.004701030440628529,
0.4082540273666382,
0.18361563980579376,
0.37427791953086853,
0.23539158701896667,
0.14673319458961487,
0.20310421288013458,
0.12505581974983215,
-0.2914268374443054,
0.08516725152730942,
-0.19163066148757935,
-0.07955610752105713,
0.33503109216690063,
0.14177803695201874,
0.4543801248073578,
0.004213773645460606,
-0.45386168360710144,
-0.04846978932619095,
-0.4231695234775543,
0.0795801430940628,
0.22692067921161652,
0.45785704255104065,
-0.14909063279628754,
0.1119716539978981,
0.0448688380420208,
0.1539015769958496,
-0.17074555158615112,
-0.28313493728637695,
-0.2869075536727905,
0.4119272530078888,
-0.33274173736572266,
-0.20058909058570862,
0.17256943881511688,
0.0631762370467186,
-0.04409390687942505,
-0.014276344329118729,
-0.1245325431227684,
0.014793186448514462,
0.031217163428664207,
-0.4864669442176819,
-0.10691745579242706,
0.1802370846271515,
0.036690790206193924,
-0.14341935515403748,
0.21774302423000336,
-0.43856287002563477,
0.0038599383551627398,
0.21044646203517914,
-0.13902635872364044,
-0.2205246388912201,
-0.06440143287181854,
0.2921479642391205,
-0.3297555446624756,
-0.16175009310245514,
-0.1220809742808342,
0.1581522524356842,
0.1588944047689438,
0.015281809493899345,
0.038604333996772766,
-0.0845264196395874,
-0.021860739216208458,
-0.3067053258419037,
0.02687818557024002,
0.3902685344219208,
-0.3743339478969574,
-0.22777386009693146,
-0.11634810268878937,
-0.05733434855937958,
0.33097606897354126,
-0.05529440939426422,
-0.013930290937423706,
0.2842520475387573,
-0.01623610034584999,
0.12701904773712158,
0.616672933101654,
-0.3811468780040741,
-0.3189837336540222,
-0.08715222775936127,
-0.05255677178502083,
-0.03235095366835594,
-0.000008754348527872935,
-0.1415095180273056,
0.09520959109067917,
0.1851932257413864,
0.43059641122817993,
0.18257124722003937,
0.010849406011402607,
-0.006876278668642044,
-0.2708134651184082,
-0.21112769842147827,
0.19119414687156677,
0.08953114598989487,
0.13897548615932465,
-0.056643664836883545,
-0.07800884544849396,
-0.242253378033638,
0.01793115958571434,
-0.11919479817152023,
-0.13236111402511597,
-0.061672862619161606,
0.5806083083152771,
-0.08955522626638412,
-0.12208979576826096,
-0.5331305861473083,
-0.23846083879470825,
0.1451275646686554,
-0.038405824452638626,
0.44006600975990295,
-0.1647627204656601,
-0.2132970541715622,
-0.40875446796417236,
0.046749088913202286,
-0.053432296961545944,
-0.042244039475917816,
0.28871700167655945,
0.03271995857357979,
-0.1623719185590744,
0.14767208695411682,
-0.09393218159675598,
0.06909038126468658,
-0.18910686671733856,
0.14024925231933594,
0.11506924778223038,
0.32482704520225525,
-0.052656449377536774,
-0.4338490068912506,
0.016055429354310036,
0.24504904448986053,
0.42788833379745483,
0.06159855052828789,
-0.05183042213320732,
0.3103209435939789,
0.09668107330799103,
-0.21664489805698395,
-0.332928866147995,
-0.037564195692539215,
0.10615923255681992,
-0.32848769426345825,
-0.19163855910301208,
-0.0286103505641222,
0.18140152096748352,
-0.003908735234290361,
0.015586546622216702,
0.5066563487052917,
0.07304634898900986,
0.07515531033277512,
-0.08345840126276016,
0.19625438749790192,
-0.05212998762726784,
-0.12022458016872406,
-0.11892346292734146,
-0.09356675297021866,
0.08537282794713974,
-0.05164775997400284,
0.16046221554279327,
0.08396647870540619,
-0.1486920267343521,
-0.0939609482884407,
0.6276283264160156,
0.06613370776176453,
0.40661782026290894,
-0.12785746157169342,
-0.25308477878570557,
0.14693403244018555,
0.07535441219806671,
0.09351637214422226,
0.3560040593147278,
0.30918464064598083,
-0.17418359220027924,
-0.012002736330032349,
-0.16991354525089264,
0.020033808425068855,
0.0936974510550499,
-0.030057674273848534,
0.3375008702278137,
-0.019166499376296997,
0.32656529545783997,
0.0025229076854884624,
-0.3129945993423462,
0.11549796164035797,
0.03831625357270241,
0.18946464359760284,
-0.3931482136249542,
0.18069536983966827,
-0.3155398666858673,
-0.15390533208847046,
0.05927339568734169,
-0.13982321321964264,
-0.0421992689371109,
-0.27074965834617615,
-0.08552674949169159,
0.18152523040771484,
0.058970462530851364,
0.26436281204223633,
0.1597471386194229,
-0.032706890255212784,
0.08473799377679825,
-0.06557343900203705,
-0.1022353321313858,
-0.22010724246501923,
-0.1743909865617752,
0.14284977316856384,
0.1274089366197586,
0.20786020159721375,
0.29953500628471375,
-0.14255385100841522,
0.04809430241584778,
0.013805677182972431,
-0.3602250814437866,
0.08573365956544876,
-0.12153405696153641,
0.4401927590370178,
0.3425599932670593,
0.0728834718465805,
-0.23686933517456055,
0.017393216490745544,
0.361966073513031,
-0.3473316729068756,
-0.10805129259824753,
0.39837735891342163,
-0.19799773395061493,
0.0502508319914341,
-0.21617166697978973,
-0.3248876631259918,
-0.5105351209640503,
-0.31895512342453003,
0.13110651075839996,
-0.029471443966031075,
0.08727895468473434,
0.30624422430992126,
0.22816339135169983,
0.45089465379714966,
-0.052571240812540054,
0.039583295583724976,
-0.1739949733018875,
-0.007780594751238823,
0.3531796336174011,
-0.014841509982943535,
-0.3720351457595825,
0.007991093210875988,
-0.16510027647018433,
0.13139134645462036,
-0.011758162640035152,
-0.17909075319766998,
-0.5396496057510376,
-0.14006105065345764,
0.28839975595474243,
0.02294340915977955,
-0.09574892371892929,
0.3742545545101166,
0.05397293344140053,
-0.151051327586174,
-0.1974763125181198,
-0.08226381987333298,
0.031774599105119705,
0.317256897687912,
0.021964892745018005,
-0.06948891282081604,
0.2908799946308136,
0.05522099509835243,
0.2811390459537506,
-0.11332344263792038,
-0.2513750195503235,
0.4198063015937805,
-0.29150545597076416,
0.2461429089307785,
-0.071658194065094,
-0.4766027629375458,
-0.07762301713228226,
-0.055500760674476624,
-0.0022869890090078115,
-0.036060817539691925,
-0.29894936084747314,
-0.22007101774215698,
-0.29700812697410583,
-0.12197529524564743,
-0.3595554232597351,
-0.15417690575122833,
0.060914453119039536,
0.08911837637424469,
0.055805426090955734,
0.14045459032058716,
0.15506611764431,
-0.3061162829399109,
0.00887710228562355,
0.00001877303839137312,
0.10759681463241577,
0.03720780462026596,
-0.21445314586162567,
-0.22149449586868286,
-0.2509332299232483,
-0.2910079061985016,
0.32323968410491943,
0.047794975340366364,
-0.025100428611040115,
-0.10718479752540588,
-0.10486027598381042,
0.08477145433425903,
-0.054349493235349655,
0.6767694354057312,
-0.19645242393016815,
0.07104042172431946,
0.49119314551353455,
0.21054866909980774,
-0.4320892095565796,
0.024922575801610947,
-0.4132964015007019,
0.11259130388498306,
0.16017982363700867,
0.32408323884010315,
-0.3951094150543213,
-0.05424526706337929,
0.2625240981578827,
-0.03598552942276001,
-0.059421610087156296,
-0.26966941356658936,
-0.2357649952173233,
-0.255788654088974,
-0.10776571184396744,
0.196294903755188,
0.03532704710960388,
0.4339827299118042,
-0.26493287086486816,
-0.11057130247354507,
-0.23906153440475464,
0.04289499297738075,
0.18685315549373627,
0.2545810043811798,
0.2625078856945038,
-0.16144274175167084,
-0.1597975790500641,
-0.17626334726810455,
0.058801937848329544,
0.2780002951622009,
0.2882104218006134,
0.04454085975885391,
-0.4137677848339081,
0.015718722715973854,
0.058138880878686905,
0.26119041442871094,
0.04642585292458534,
-0.1333329826593399,
-0.030797971412539482,
-0.04032943770289421,
0.0974307656288147,
0.14356420934200287,
0.21770495176315308,
0.3860841989517212,
0.05959578603506088,
-0.3346404731273651,
-0.24376492202281952,
0.34551724791526794,
0.14844219386577606,
0.05053634196519852,
0.01700952835381031,
0.27812597155570984,
-0.21170808374881744,
0.28811362385749817,
-0.020154669880867004,
1.011183261871338,
0.06905243545770645,
-0.05979244038462639,
0.5816106796264648,
-0.09528438001871109,
0.5560987591743469,
-0.06480198353528976,
0.1861324906349182,
-0.29624274373054504,
-0.3566812574863434,
-0.03657238185405731,
-0.1678648144006729,
0.2394370436668396,
0.06466739624738693,
-0.6077864170074463,
0.23067712783813477,
-0.2865700125694275,
0.14132575690746307,
0.037200119346380234,
-0.031341008841991425,
-0.006927131675183773,
-0.024181855842471123,
-0.38569000363349915,
0.211821511387825,
-0.12286900728940964,
0.1014268770813942,
-0.08456456661224365,
-0.10637868195772171,
-0.123380146920681,
-0.15914331376552582,
-0.10480964928865433,
0.043112099170684814,
-0.5134392380714417,
-0.15310393273830414,
0.05204203724861145,
-0.1772315353155136,
-0.07291414588689804,
0.18729062378406525,
0.04021783173084259,
0.07752317935228348,
-0.18711647391319275,
0.17002004384994507,
0.19995087385177612,
0.09996667504310608,
-0.06926265358924866,
-0.03328830003738403,
0.43088194727897644,
-0.0916924700140953,
-0.39867162704467773,
0.12750309705734253,
-0.04706842452287674,
0.1355869621038437,
0.35485294461250305,
0.01829083450138569,
-0.02078549936413765,
-0.4515145719051361,
-0.09843266755342484,
-0.1435842365026474,
0.20594798028469086,
-0.306861013174057,
0.26121145486831665,
-0.007232991978526115,
-0.13729174435138702,
0.010839693248271942,
-0.03577324375510216,
-0.01851172372698784,
-0.03987756744027138,
0.3423732817173004,
0.31809309124946594,
0.4484286308288574,
0.2465309202671051,
0.24195347726345062,
-0.12122242897748947,
-0.32009157538414,
0.15322068333625793,
0.2308019995689392,
-0.4224048852920532,
0.2418849915266037,
0.2260047048330307,
-0.12146636098623276,
-0.05341987684369087,
0.4723203778266907,
0.0875408872961998,
0.1689213067293167,
-0.12573927640914917,
-0.1489035040140152,
-0.2344333380460739,
0.324161171913147,
0.10228236764669418,
0.004079983104020357,
0.11474578827619553,
0.4286705255508423,
0.2379002422094345,
0.017730534076690674,
-0.4440496265888214,
-0.028685498982667923,
-0.4677804112434387,
0.07052665203809738,
-0.02607005648314953,
-0.2602924704551697,
0.20040875673294067,
-0.003848560620099306,
0.2606967091560364,
0.12462348490953445,
-0.07571513950824738,
-0.36216896772384644,
-0.1629696786403656,
0.09021423012018204,
-0.002169426064938307,
0.17059791088104248,
0.1876296103000641,
0.03364844620227814,
-0.23033714294433594,
-0.12813977897167206,
0.09217625111341476,
-0.05532942712306976,
-0.14670149981975555,
0.2181791067123413,
0.20544442534446716,
0.3228450417518616,
0.017991332337260246,
-0.013670624233782291,
0.015238438732922077,
-0.09246218204498291,
-0.03483089059591293,
-0.005064093042165041,
0.12457156926393509,
-0.029217157512903214,
-0.09140505641698837,
-0.08294820040464401,
0.19211667776107788,
0.13565069437026978,
0.020348696038126945,
-0.25782346725463867,
-0.274131178855896,
-0.1145554929971695,
0.21587307751178741,
0.12111649662256241,
-0.15752172470092773,
0.17650777101516724,
-0.010932263918220997,
0.35138508677482605,
-0.37631577253341675,
-0.010253097862005234,
0.2301226556301117,
-0.0349600613117218,
0.22698332369327545,
0.04630165547132492,
-0.2856045365333557,
0.31486716866493225,
-0.20312555134296417,
0.09068050235509872,
0.22804594039916992,
-0.04434796795248985,
0.10811057686805725,
0.27683430910110474,
-0.16949808597564697,
-0.0334680899977684,
0.41233766078948975,
0.07038652896881104,
0.1482766568660736,
0.021171187981963158,
0.0128188980743289,
0.1463378220796585,
-0.022167271003127098,
0.08586715906858444,
0.30909785628318787,
-0.3254113793373108,
0.03230229392647743,
0.20969797670841217,
0.027855047956109047,
-0.07970035821199417,
-0.26090148091316223,
0.5160669088363647,
-0.2635025382041931,
-0.1445794552564621,
-0.33443859219551086,
0.13850806653499603,
-0.20031636953353882,
0.03698518127202988,
-0.2015441358089447,
-0.11117789894342422,
-0.18699342012405396,
-0.3066196143627167,
0.02595580741763115,
-0.09096845239400864,
0.2416602075099945,
-0.04935833439230919,
-0.028935987502336502,
-0.2844850718975067,
-0.05236763134598732,
0.3596523702144623,
0.22716082632541656,
-0.20385929942131042,
0.10305441170930862,
0.024703556671738625,
0.12351015955209732,
-0.18643198907375336,
0.5136398077011108,
0.42702019214630127,
0.28573372960090637,
-0.15438441932201385,
-0.0936768427491188,
0.03454967960715294,
-0.3090968430042267,
0.07065971195697784,
0.09696555137634277,
0.29194480180740356,
0.23879295587539673,
0.06440422683954239,
0.27889207005500793,
-0.28334158658981323,
0.17622804641723633,
-0.06019318476319313,
0.07524418085813522,
-0.3707777261734009,
0.33053165674209595,
-0.19432783126831055,
-0.1633211225271225,
-0.16632099449634552,
-0.008691167458891869,
-0.4805715084075928,
0.17004145681858063,
0.33456718921661377,
0.15055321156978607,
0.1827457696199417,
-0.1898442804813385,
0.14262591302394867,
-0.20634061098098755,
0.2242959588766098,
-0.04338206350803375,
0.33398905396461487,
-0.27990037202835083,
0.11789417266845703,
-0.4362550377845764,
0.39369267225265503,
-0.04484817013144493,
-0.04896426945924759,
0.07563214749097824,
-0.0840161144733429,
-0.16167229413986206,
0.034948114305734634,
-0.07442492991685867,
0.2408670336008072,
0.12785249948501587,
0.0993814468383789,
-0.6071122884750366,
-0.1996479332447052,
-0.11191052198410034,
-0.23076945543289185,
0.1361706256866455,
-0.24145059287548065,
-0.04724349454045296,
-0.18644221127033234,
0.1147017776966095,
0.04279731959104538,
-0.30284053087234497,
0.19486746191978455,
0.29543158411979675,
0.6067336797714233,
0.1576174795627594,
0.4007614552974701,
-0.013851379044353962,
0.09976968914270401,
0.06332050263881683,
-0.2700612246990204,
-0.15275219082832336,
0.19264216721057892,
0.13509364426136017,
0.3505527973175049,
0.07576841861009598,
0.23201781511306763,
-0.06884190440177917,
0.0777026042342186,
0.05885909125208855,
-0.124382384121418,
-0.12215036153793335,
0.16369907557964325,
-0.11731581389904022,
-0.2261744737625122,
-0.25561845302581787,
0.028279677033424377,
0.07528193295001984,
0.04704511538147926,
-0.08772161602973938,
-0.27919867634773254,
0.6700651049613953,
-0.33414900302886963,
-0.26968681812286377,
-0.05091914162039757,
0.20019659399986267,
0.22844389081001282,
-0.2409946173429489,
-0.6293935179710388,
-0.008996290154755116,
0.42049485445022583,
0.022011134773492813,
-0.25283369421958923,
0.21365278959274292,
-0.06413634866476059,
0.15530472993850708,
-0.06347066909074783,
0.02118685655295849,
-0.11201629787683487,
-0.056375741958618164,
0.04750445857644081,
-0.23333248496055603
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 116 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| [
-0.01708606258034706,
-0.32405224442481995,
0.06212129071354866,
0.210366889834404,
0.38401180505752563,
-0.015518424101173878,
0.415794312953949,
0.1785917729139328,
0.18794073164463043,
0.31161820888519287,
-0.25627079606056213,
0.2617366909980774,
-0.09007882326841354,
0.1555977314710617,
0.1346471756696701,
-0.17832349240779877,
-0.17807109653949738,
0.2362428456544876,
-0.14293813705444336,
-0.06104174256324768,
-0.3072666525840759,
0.01602102629840374,
-0.27659323811531067,
0.15632690489292145,
-0.37103572487831116,
-0.22323015332221985,
-0.07274957746267319,
-0.03378567099571228,
-0.3516705632209778,
-0.37360936403274536,
0.35026952624320984,
-0.014940212480723858,
0.10775139182806015,
0.3936699330806732,
-0.0001092730017262511,
0.03974869102239609,
0.5531901121139526,
0.09167255461215973,
-0.1215195581316948,
-0.48644527792930603,
0.0033007583115249872,
-0.15359297394752502,
0.2640891969203949,
-0.29718780517578125,
-0.24914319813251495,
-0.16786891222000122,
-0.004605328198522329,
0.15467192232608795,
0.39776089787483215,
0.5068289637565613,
0.2735917866230011,
0.5179864764213562,
0.15574531257152557,
-0.30572161078453064,
0.24761997163295746,
0.12956246733665466,
-0.08303320407867432,
0.3645501732826233,
0.08680281788110733,
0.03248227387666702,
0.24765893816947937,
0.2256714552640915,
-0.26159489154815674,
-0.1020333468914032,
0.2482001930475235,
0.0714489296078682,
0.0565815269947052,
-0.33593395352363586,
-0.08744151145219803,
0.34583625197410583,
0.21765054762363434,
-0.43079841136932373,
-0.2740112245082855,
-0.015672573819756508,
0.1589333415031433,
-0.2778738737106323,
0.2152641862630844,
0.11177513003349304,
-0.061429962515830994,
0.26101070642471313,
-0.0477597713470459,
0.29164358973503113,
-0.27248668670654297,
0.22647394239902496,
0.033229053020477295,
0.09982851147651672,
-0.09743519872426987,
0.08648288995027542,
0.3184732496738434,
-0.19786003232002258,
-0.07124809175729752,
-0.0744846910238266,
0.0765407532453537,
0.199787899851799,
-0.26257210969924927,
-0.15699872374534607,
0.04121522605419159,
-0.05275624990463257,
0.24789856374263763,
-0.062311913818120956,
0.010697910562157631,
-0.07843749970197678,
0.08663354068994522,
0.3945230543613434,
0.1457948535680771,
0.36955806612968445,
0.2746925354003906,
0.05964271351695061,
0.1471259891986847,
0.26839011907577515,
-0.11799219995737076,
0.05507360026240349,
-0.18129068613052368,
-0.050575584173202515,
0.27370208501815796,
0.10107798129320145,
0.41571149230003357,
-0.01238543912768364,
-0.38352927565574646,
-0.03406175598502159,
-0.24938857555389404,
0.21416626870632172,
0.21702225506305695,
0.49832698702812195,
-0.10985240340232849,
-0.006581604015082121,
0.19207684695720673,
0.17827089130878448,
-0.12116026133298874,
-0.13048619031906128,
-0.2357184886932373,
0.3422304093837738,
-0.3215116262435913,
-0.061732131987810135,
0.22659578919410706,
0.03089722990989685,
0.003927296027541161,
-0.004729033913463354,
0.06826084107160568,
-0.041803598403930664,
-0.01869441568851471,
-0.347902774810791,
-0.0821477621793747,
0.25354841351509094,
0.03234252333641052,
-0.06852482259273529,
0.22640007734298706,
-0.4100438952445984,
-0.09811735898256302,
0.1309780776500702,
-0.07463563978672028,
-0.17959851026535034,
-0.23042188584804535,
0.23439133167266846,
-0.25608742237091064,
-0.021302824839949608,
-0.09343453496694565,
0.02125438302755356,
0.14475101232528687,
0.10136566311120987,
0.12724193930625916,
-0.01907862164080143,
0.01788904145359993,
-0.21807125210762024,
0.1380721479654312,
0.36549168825149536,
-0.10019118338823318,
-0.3205660283565521,
0.032151959836483,
-0.0025296180974692106,
0.11718636751174927,
-0.017370818182826042,
0.0019336611730977893,
0.24217024445533752,
-0.030547816306352615,
0.16688573360443115,
0.49856266379356384,
-0.6241477131843567,
-0.34428027272224426,
-0.27473825216293335,
-0.08063750714063644,
-0.016146406531333923,
0.03932918980717659,
-0.22868840396404266,
0.19146491587162018,
0.21069355309009552,
0.4453008472919464,
0.1527804136276245,
0.15220917761325836,
0.016763659194111824,
-0.25982657074928284,
-0.28412097692489624,
-0.14923058450222015,
0.1216638833284378,
0.05722300708293915,
-0.061182476580142975,
-0.1246785819530487,
-0.3315827250480652,
0.0439959391951561,
-0.14642424881458282,
-0.09477873146533966,
-0.028535183519124985,
0.480251669883728,
-0.026793908327817917,
-0.03346176818013191,
-0.5103316903114319,
-0.31101202964782715,
0.14441058039665222,
-0.08274290710687637,
0.49631184339523315,
-0.29358693957328796,
-0.24010221660137177,
-0.37979814410209656,
0.0216786228120327,
-0.026030609384179115,
-0.10736467689275742,
0.2608530521392822,
-0.029299791902303696,
-0.07938989251852036,
0.2039855718612671,
-0.1481572687625885,
0.3061811625957489,
-0.06296739727258682,
0.3361930549144745,
-0.08991211652755737,
0.2520774006843567,
-0.05190890282392502,
-0.45358946919441223,
0.017812596634030342,
0.3152451813220978,
0.4074850082397461,
0.01843009702861309,
0.040074560791254044,
0.20596449077129364,
0.1200733408331871,
-0.2516610026359558,
-0.3879704773426056,
-0.20597940683364868,
0.09089527279138565,
-0.20526841282844543,
-0.1253313273191452,
-0.11939758062362671,
0.1875581443309784,
0.04323738440871239,
0.08160267770290375,
0.4845340847969055,
0.0002890750765800476,
0.1447361558675766,
-0.0010886875679716468,
0.2192266881465912,
0.04642507806420326,
-0.22235113382339478,
-0.19437022507190704,
-0.11165457963943481,
0.10983744263648987,
0.03022429719567299,
0.2480705827474594,
0.01797553338110447,
-0.1454164981842041,
0.016801446676254272,
0.6618236899375916,
0.04202500730752945,
0.25825750827789307,
-0.11820697039365768,
-0.3660911023616791,
0.2513481676578522,
0.17394281923770905,
0.08760590106248856,
0.3652845025062561,
0.2524149715900421,
-0.29564234614372253,
0.08454190194606781,
-0.16359329223632812,
0.05055685713887215,
0.09764891862869263,
-0.06796013563871384,
0.36849871277809143,
-0.09125315397977829,
0.30753812193870544,
0.018532926216721535,
-0.30900582671165466,
0.07445797324180603,
-0.0793074443936348,
0.10628781467676163,
-0.3757323920726776,
0.11504928767681122,
-0.2569514811038971,
-0.14785152673721313,
-0.008882110007107258,
-0.1333729475736618,
0.02665730006992817,
-0.19740495085716248,
-0.05986836552619934,
0.35848942399024963,
0.08938422799110413,
0.2826406955718994,
0.20691955089569092,
0.01923656091094017,
-0.059061694890260696,
-0.10304826498031616,
-0.15513138473033905,
-0.1086173728108406,
-0.11700157076120377,
0.08233913034200668,
0.05886572226881981,
0.19155001640319824,
0.3331588804721832,
-0.3143271207809448,
0.09096075594425201,
0.13702355325222015,
-0.30263617634773254,
0.08582217246294022,
-0.17404386401176453,
0.2888209819793701,
0.2684491276741028,
0.15894384682178497,
-0.17590385675430298,
-0.06246060132980347,
0.43404877185821533,
-0.38249650597572327,
-0.19242843985557556,
0.28277286887168884,
-0.14143608510494232,
-0.055083274841308594,
-0.26233813166618347,
-0.2640990912914276,
-0.5197221040725708,
-0.2946314811706543,
0.25503256916999817,
0.022699836641550064,
0.0717565044760704,
0.34726887941360474,
0.2340487539768219,
0.4523185193538666,
-0.38342246413230896,
-0.022939080372452736,
-0.14411965012550354,
0.04128933325409889,
0.2728775143623352,
-0.0820256844162941,
-0.4259679615497589,
-0.007768073584884405,
-0.08551006764173508,
0.253959596157074,
-0.1286982148885727,
-0.05689472332596779,
-0.44794806838035583,
-0.12663036584854126,
0.3238246440887451,
0.008614640682935715,
-0.15314994752407074,
0.6029992699623108,
0.015640342608094215,
-0.10781051218509674,
-0.15833428502082825,
-0.17673906683921814,
0.10459334403276443,
0.13827551901340485,
0.005655183922499418,
-0.07007057219743729,
0.2453286349773407,
-0.026515167206525803,
0.3515641689300537,
-0.00499334279447794,
-0.20518960058689117,
0.3471203148365021,
-0.30444279313087463,
0.31469637155532837,
-0.12184105068445206,
-0.5708715319633484,
-0.0727781355381012,
-0.026523826643824577,
0.05206722393631935,
-0.13308803737163544,
-0.24626608192920685,
-0.08977670967578888,
-0.3285742998123169,
-0.17385418713092804,
-0.4415082037448883,
-0.23245370388031006,
0.05816316232085228,
0.1306094527244568,
-0.08276937156915665,
0.09588667750358582,
0.07748635113239288,
-0.35680726170539856,
0.056310828775167465,
-0.013216933235526085,
0.21224068105220795,
0.03561445325613022,
-0.18780682981014252,
-0.423454225063324,
-0.26926031708717346,
-0.35538941621780396,
0.3830409348011017,
0.04684070125222206,
0.011089283972978592,
-0.050600942224264145,
-0.1024789959192276,
0.14107663929462433,
0.00763492239639163,
0.6806126832962036,
-0.030130483210086823,
-0.00559022044762969,
0.41600072383880615,
0.14175313711166382,
-0.6230162978172302,
0.07060714811086655,
-0.30217111110687256,
0.05319209769368172,
0.12276491522789001,
0.3985320031642914,
-0.46623390913009644,
-0.15596947073936462,
0.33630603551864624,
-0.03724909946322441,
-0.03282298892736435,
-0.21793974936008453,
-0.28828227519989014,
-0.3978613615036011,
-0.2136865109205246,
0.1251843422651291,
0.14489026367664337,
0.3859928846359253,
-0.22502177953720093,
-0.10911641269922256,
-0.12406738102436066,
0.09480010718107224,
0.034022629261016846,
0.2724269926548004,
0.2362680733203888,
-0.2280842661857605,
-0.09541256725788116,
0.01131936814635992,
0.08381704986095428,
0.2514648139476776,
0.26858216524124146,
-0.04332088679075241,
-0.5514886975288391,
-0.1514345407485962,
0.10565227270126343,
0.216163769364357,
0.07860081642866135,
-0.13576169312000275,
0.007971703074872494,
-0.09118707478046417,
0.13399332761764526,
0.21577516198158264,
0.11816283315420151,
0.4902130663394928,
0.1698918491601944,
-0.2991675138473511,
-0.19172047078609467,
0.4521496891975403,
0.12906336784362793,
0.044719815254211426,
0.14727486670017242,
0.4835730493068695,
-0.16907787322998047,
0.2779707610607147,
-0.11960756778717041,
1.0848116874694824,
-0.0030833480414003134,
-0.005264207720756531,
0.5609254240989685,
-0.10633451491594315,
0.6737443804740906,
0.09001809358596802,
0.23376712203025818,
-0.3639945685863495,
-0.19401061534881592,
-0.01781669445335865,
-0.13349196314811707,
0.2924984395503998,
-0.0650961622595787,
-0.5087831020355225,
0.17536699771881104,
-0.23621611297130585,
0.16399823129177094,
0.0437813363969326,
0.04702520743012428,
-0.11160106956958771,
-0.16344185173511505,
-0.3191116452217102,
0.1553267389535904,
-0.018995612859725952,
0.23816972970962524,
-0.02934269607067108,
-0.10321725904941559,
-0.28848886489868164,
-0.25003695487976074,
-0.17992162704467773,
0.048641402274370193,
-0.48934993147850037,
-0.26446402072906494,
0.2028946429491043,
-0.17350181937217712,
-0.2620542049407959,
0.03505552187561989,
0.17360545694828033,
0.027178972959518433,
-0.2295173555612564,
0.08504249155521393,
-0.011631343513727188,
-0.00572789553552866,
-0.06122816726565361,
-0.1201166883111,
0.4516772925853729,
-0.1806231439113617,
-0.5559982657432556,
-0.0021973922848701477,
0.02834201045334339,
0.11895009130239487,
0.3397732973098755,
0.053394000977277756,
-0.07207795977592468,
-0.37655600905418396,
-0.19562970101833344,
-0.08635606616735458,
0.2171402871608734,
-0.28493964672088623,
0.21587230265140533,
-0.07561811804771423,
-0.17487065494060516,
-0.0020162647124379873,
-0.021698106080293655,
-0.05468336120247841,
0.01811589114367962,
0.39953556656837463,
0.2500367760658264,
0.35637229681015015,
0.2536879777908325,
0.14535170793533325,
-0.127704456448555,
-0.2788096070289612,
0.045451581478118896,
0.2644449472427368,
-0.5634875893592834,
0.14802834391593933,
0.21778762340545654,
-0.12832331657409668,
-0.07589046657085419,
0.42554038763046265,
0.03409704193472862,
0.019987158477306366,
-0.10816120356321335,
-0.17111046612262726,
-0.24745601415634155,
0.45197921991348267,
-0.05328826233744621,
-0.05338922142982483,
0.29341623187065125,
0.5443695783615112,
0.22287210822105408,
0.00774361751973629,
-0.4028414487838745,
0.025847498327493668,
-0.39439427852630615,
0.05160463973879814,
0.050623971968889236,
-0.27356746792793274,
0.27415433526039124,
-0.06078745797276497,
0.22359436750411987,
0.20089800655841827,
-0.06483759731054306,
-0.3292417824268341,
-0.15746022760868073,
0.10207013785839081,
0.013246720656752586,
0.1558353751897812,
0.1404900848865509,
0.04292330518364906,
-0.18654918670654297,
-0.1436392366886139,
0.16466160118579865,
-0.04848714917898178,
-0.05196727067232132,
0.2371668666601181,
0.16914434731006622,
0.311864972114563,
0.049546536058187485,
0.09093039482831955,
-0.0028734588995575905,
-0.12940342724323273,
-0.0817829817533493,
0.01788187213242054,
0.00951787456870079,
0.026417408138513565,
-0.056548938155174255,
-0.10739465802907944,
0.12409085780382156,
0.17480379343032837,
0.09074032306671143,
-0.24518334865570068,
-0.3529209494590759,
-0.28037405014038086,
0.1817106157541275,
0.15338142216205597,
-0.154381662607193,
0.17046597599983215,
-0.06709571182727814,
0.2948552370071411,
-0.42105451226234436,
0.023963477462530136,
0.21941249072551727,
-0.006779571063816547,
0.1791745275259018,
0.151283860206604,
-0.27324098348617554,
0.20631124079227448,
-0.047163452953100204,
0.028358248993754387,
0.4666559398174286,
0.01810695417225361,
0.0889502763748169,
0.2631123960018158,
-0.13171137869358063,
-0.03442613035440445,
0.4894234538078308,
0.1561267375946045,
0.2242717742919922,
-0.006970624439418316,
-0.08840224146842957,
0.22369655966758728,
-0.12400931864976883,
0.07492166012525558,
0.2926058769226074,
-0.21683354675769806,
-0.0012597828172147274,
0.19870023429393768,
0.09429378062486649,
-0.12752752006053925,
-0.3349515497684479,
0.5498442649841309,
-0.2395896166563034,
-0.21077120304107666,
-0.177720844745636,
0.1950448602437973,
-0.20974473655223846,
-0.0012292885221540928,
-0.14001786708831787,
-0.08104909956455231,
-0.12686139345169067,
-0.4116225838661194,
0.056152984499931335,
-0.15146268904209137,
0.4862964451313019,
-0.12111246585845947,
-0.08711976557970047,
-0.2842111885547638,
-0.21753743290901184,
0.4087487757205963,
0.30504685640335083,
-0.15429291129112244,
0.18808361887931824,
0.07063858211040497,
0.17597876489162445,
-0.24390564858913422,
0.5857952237129211,
0.420529842376709,
0.20320497453212738,
-0.08770418912172318,
-0.039412736892700195,
-0.09871822595596313,
-0.3073502480983734,
0.07584990561008453,
0.16010385751724243,
0.34372225403785706,
0.22101157903671265,
0.0020974879153072834,
0.25333085656166077,
-0.24432635307312012,
0.22705252468585968,
-0.10374073684215546,
0.04407040774822235,
-0.40426039695739746,
0.3363032042980194,
-0.32606008648872375,
-0.24991503357887268,
-0.32512566447257996,
0.0070019736886024475,
-0.4086143970489502,
0.17099158465862274,
0.3403109312057495,
0.004055289551615715,
0.15312527120113373,
-0.3124787211418152,
0.10259983688592911,
-0.12374888360500336,
0.2872799038887024,
-0.04214273393154144,
0.29925981163978577,
-0.18125052750110626,
0.0731784775853157,
-0.4249606728553772,
0.39598384499549866,
-0.1252932995557785,
-0.11226262897253036,
0.08735101670026779,
-0.16188326478004456,
-0.14888791739940643,
0.03998468443751335,
0.05573420226573944,
0.4386814534664154,
0.056703485548496246,
-0.05905209481716156,
-0.5389716029167175,
-0.15329217910766602,
-0.13442951440811157,
-0.2273554652929306,
0.20098936557769775,
-0.2520211338996887,
0.08007776737213135,
-0.14424069225788116,
0.06376685947179794,
0.029505999758839607,
-0.09635931253433228,
0.1442122757434845,
0.06708284467458725,
0.6210795640945435,
0.18810416758060455,
0.3392413854598999,
-0.04305415228009224,
-0.06899631023406982,
0.024992434307932854,
-0.17406727373600006,
-0.2406362146139145,
0.2803042232990265,
0.21602801978588104,
0.27566617727279663,
0.0625712126493454,
0.08705448359251022,
-0.047545064240694046,
0.1085866391658783,
0.08250290155410767,
-0.22646863758563995,
-0.06166772171854973,
0.11979459971189499,
-0.02025887928903103,
-0.2373051792383194,
-0.1996343731880188,
0.06107131019234657,
0.005293822381645441,
0.07696854323148727,
-0.2243451476097107,
-0.2481004148721695,
0.7152532935142517,
-0.2563154995441437,
-0.2637999355792999,
0.055393703281879425,
0.2930932939052582,
0.1165037527680397,
-0.4328466057777405,
-0.7834493517875671,
0.016644597053527832,
0.2939423620700836,
0.08392617851495743,
-0.224028542637825,
0.29482513666152954,
0.010084476321935654,
0.048218030482530594,
-0.0746174231171608,
0.1352372169494629,
0.040770724415779114,
-0.016859004274010658,
0.071247398853302,
-0.20073987543582916
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | - For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 69 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
- For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | [
-0.22777147591114044,
-0.31935063004493713,
0.0008598552667535841,
0.3918524384498596,
0.36772385239601135,
0.05574566870927811,
0.3176340162754059,
0.1545284390449524,
0.17334458231925964,
0.29602792859077454,
-0.14268548786640167,
0.45529571175575256,
-0.07765702903270721,
0.22984349727630615,
0.04933319613337517,
-0.16517215967178345,
-0.21050359308719635,
0.2611335813999176,
-0.11917071789503098,
0.026228001341223717,
-0.5092206597328186,
-0.07414790987968445,
-0.16408520936965942,
0.13499248027801514,
-0.23775465786457062,
-0.27198120951652527,
-0.12409425526857376,
0.04082559421658516,
-0.19214248657226562,
-0.283849835395813,
0.3645710349082947,
-0.08018818497657776,
0.21226179599761963,
0.5988925695419312,
-0.00010084891255246475,
-0.15145434439182281,
0.4352059066295624,
0.047600384801626205,
-0.1254921555519104,
-0.35230422019958496,
-0.29466405510902405,
-0.38472041487693787,
0.18985743820667267,
-0.3827018737792969,
-0.07430294156074524,
-0.00820143148303032,
0.02860967442393303,
-0.24263767898082733,
0.34812504053115845,
0.34845221042633057,
0.35069939494132996,
0.41590261459350586,
0.08335753530263901,
-0.2823812663555145,
0.18847669661045074,
0.07757257670164108,
-0.10485326498746872,
0.2966800332069397,
0.06237271428108215,
-0.01648002676665783,
0.31453409790992737,
0.1602044403553009,
-0.28301361203193665,
-0.054299332201480865,
0.2551214098930359,
0.06458744406700134,
-0.0053247069008648396,
-0.3559246063232422,
0.031036609783768654,
0.3066703677177429,
0.4195716679096222,
-0.3946249186992645,
-0.1872214823961258,
0.06077604740858078,
0.12990857660770416,
-0.22349737584590912,
0.15397293865680695,
-0.011560081504285336,
-0.006476990878582001,
0.06588651984930038,
-0.0040367236360907555,
0.15579232573509216,
-0.23680417239665985,
0.21838361024856567,
-0.1664239764213562,
0.0901959091424942,
-0.2121003419160843,
0.10706372559070587,
0.06709713488817215,
-0.19923976063728333,
0.045229192823171616,
-0.1839863806962967,
0.03513568267226219,
0.10960425436496735,
-0.22112631797790527,
-0.14527887105941772,
0.12990134954452515,
0.11116771399974823,
0.12701036036014557,
-0.24557745456695557,
0.11687235534191132,
-0.04831208661198616,
-0.02369716577231884,
0.4071711599826813,
0.2398945689201355,
0.21606552600860596,
0.1970725655555725,
0.1496334820985794,
0.21602874994277954,
0.04413461685180664,
-0.1853792816400528,
-0.05197478458285332,
-0.12557612359523773,
-0.10145597904920578,
0.2814616560935974,
0.19620634615421295,
0.5696899890899658,
-0.0633770227432251,
-0.44511207938194275,
-0.03698890656232834,
-0.20708993077278137,
0.09236742556095123,
0.254140704870224,
0.3783912658691406,
-0.18408629298210144,
0.15318289399147034,
0.2149181365966797,
0.06958337873220444,
-0.1426403671503067,
-0.23278316855430603,
-0.2402685582637787,
0.33367568254470825,
-0.272696316242218,
-0.23244841396808624,
0.0732233002781868,
0.08000893145799637,
-0.101652130484581,
0.05153476074337959,
-0.04660588130354881,
0.07362643629312515,
0.10525629669427872,
-0.382973849773407,
-0.1715996414422989,
0.1613503098487854,
0.1342366486787796,
-0.010921847075223923,
0.35754916071891785,
-0.4132309854030609,
-0.145542174577713,
0.10808615386486053,
-0.31792116165161133,
-0.09275321662425995,
-0.09039126336574554,
0.32125571370124817,
-0.23628990352153778,
-0.07920955866575241,
-0.19519098103046417,
-0.004734632559120655,
0.07721706479787827,
-0.2021208554506302,
0.024387812241911888,
-0.16129247844219208,
0.009970619343221188,
-0.41247519850730896,
0.03967137634754181,
0.5434520244598389,
-0.3702254891395569,
-0.13193170726299286,
-0.3560015559196472,
-0.05267051234841347,
0.36508288979530334,
-0.16172461211681366,
0.08691879361867905,
0.20492644608020782,
-0.16195577383041382,
-0.07837963849306107,
0.5953558683395386,
-0.36260145902633667,
-0.19426202774047852,
0.05563010647892952,
-0.07925154268741608,
-0.05803997814655304,
-0.0674489364027977,
-0.01407069806009531,
0.09501787275075912,
0.11393079906702042,
0.409541517496109,
0.2211548537015915,
-0.0633309856057167,
-0.027870263904333115,
-0.19503988325595856,
-0.17339003086090088,
0.1649029403924942,
0.09183705598115921,
0.14367224276065826,
0.16262605786323547,
0.0630827397108078,
-0.20378418266773224,
0.01849397085607052,
-0.03979118540883064,
-0.09291744232177734,
-0.06524165719747543,
0.6565247178077698,
-0.08722400665283203,
-0.07887439429759979,
-0.5945645570755005,
-0.3253457248210907,
0.16847871243953705,
-0.06773517280817032,
0.2807233929634094,
-0.14473286271095276,
-0.17076820135116577,
-0.36640071868896484,
0.06777673214673996,
-0.049828652292490005,
0.04808830842375755,
0.34265395998954773,
0.12715665996074677,
-0.19987280666828156,
0.04511798545718193,
-0.14434689283370972,
0.17792043089866638,
-0.1498604267835617,
0.10199585556983948,
-0.0057355607859790325,
0.3032820522785187,
-0.010557051748037338,
-0.35509350895881653,
0.04372134432196617,
0.23754450678825378,
0.5392078757286072,
0.03011089749634266,
-0.07144971936941147,
0.29617154598236084,
0.08397337794303894,
-0.1378156542778015,
-0.14906573295593262,
-0.08285430073738098,
0.11919087171554565,
-0.261509507894516,
0.07613290846347809,
0.11351101100444794,
0.34134799242019653,
-0.08067645877599716,
0.13791561126708984,
0.5502912998199463,
0.07054269313812256,
0.21825101971626282,
-0.042580101639032364,
0.23599258065223694,
-0.04587547108530998,
-0.04047512263059616,
-0.09132024645805359,
-0.1391233205795288,
0.13101370632648468,
0.09693311154842377,
0.1783953458070755,
-0.06409034878015518,
-0.11669531464576721,
0.06287931650876999,
0.5675637722015381,
0.0985858365893364,
0.3846490681171417,
-0.07103808224201202,
-0.3002263903617859,
0.15484486520290375,
0.08901765942573547,
0.282279908657074,
0.4458232820034027,
0.30823689699172974,
-0.1348169445991516,
0.0028448125813156366,
-0.10547316074371338,
0.0909259095788002,
0.06957720220088959,
-0.008273783139884472,
0.21120737493038177,
-0.018398649990558624,
0.17825163900852203,
0.0799446552991867,
-0.17789320647716522,
-0.04522033408284187,
-0.22354421019554138,
0.264432817697525,
-0.35881808400154114,
0.19164204597473145,
-0.26753878593444824,
-0.1693612039089203,
0.04168176278471947,
-0.06624086946249008,
-0.15838953852653503,
-0.34399715065956116,
-0.23224149644374847,
0.025640150532126427,
0.11330507695674896,
0.13157378137111664,
0.11442453414201736,
0.15597222745418549,
0.008065525442361832,
0.08559365570545197,
-0.16564875841140747,
-0.1026744619011879,
-0.1289934664964676,
0.16394025087356567,
0.12112633883953094,
0.21240679919719696,
0.48516741394996643,
-0.22811315953731537,
0.24508187174797058,
-0.02644420973956585,
-0.22799409925937653,
0.06388494372367859,
-0.09600360691547394,
0.4924278259277344,
0.45338544249534607,
0.17071011662483215,
-0.0828903317451477,
-0.016710108146071434,
0.3197818100452423,
-0.36569952964782715,
0.02973121963441372,
0.21107207238674164,
-0.22123105823993683,
0.10772055387496948,
-0.15860579907894135,
-0.17414116859436035,
-0.5684415102005005,
-0.4111052453517914,
0.10356128960847855,
0.1680116206407547,
0.16570648550987244,
0.16242024302482605,
0.1247418224811554,
0.5334135293960571,
0.13757465779781342,
0.1933973729610443,
-0.19584646821022034,
-0.04873547703027725,
0.283610463142395,
-0.12285982817411423,
-0.2586841583251953,
0.14708435535430908,
-0.10504329949617386,
0.20656263828277588,
0.01553458534181118,
-0.1752418577671051,
-0.5393425226211548,
-0.17314577102661133,
0.15460363030433655,
-0.08293329924345016,
0.09190046787261963,
0.26020219922065735,
0.11553987115621567,
-0.1390543431043625,
-0.23397743701934814,
-0.1428653448820114,
-0.1661492884159088,
0.25579768419265747,
0.06729362905025482,
0.04017607867717743,
0.3397761285305023,
-0.17836764454841614,
0.12944795191287994,
0.006567227188497782,
-0.23464898765087128,
0.3460308015346527,
-0.2629454731941223,
0.3489435911178589,
-0.12483203411102295,
-0.5024337768554688,
-0.14444048702716827,
0.005821620114147663,
-0.09000544250011444,
-0.04923005402088165,
-0.16131563484668732,
-0.16663901507854462,
-0.37579235434532166,
-0.12356749922037125,
-0.4473453462123871,
-0.1732088178396225,
-0.026835255324840546,
0.2132812738418579,
0.019658436998724937,
-0.010780798271298409,
0.12264137715101242,
-0.4682359993457794,
0.048934414982795715,
-0.05164681747555733,
0.23821334540843964,
0.019748738035559654,
-0.24328695237636566,
-0.2479410469532013,
-0.3090170919895172,
-0.18549372255802155,
0.44906163215637207,
-0.1629897952079773,
0.03376598283648491,
-0.1722392737865448,
-0.020915133878588676,
0.046381548047065735,
-0.01755518838763237,
0.5029239654541016,
-0.34191447496414185,
0.07977230101823807,
0.4984998404979706,
0.13876168429851532,
-0.38402828574180603,
0.17398497462272644,
-0.4070257842540741,
0.3183746039867401,
0.15173199772834778,
0.2837772071361542,
-0.3160908818244934,
-0.020610759034752846,
0.24023155868053436,
0.13003911077976227,
-0.13098108768463135,
-0.20839396119117737,
-0.14482060074806213,
-0.23429574072360992,
-0.127831369638443,
0.02450123243033886,
-0.0037168366834521294,
0.30061227083206177,
-0.13161452114582062,
-0.1478491574525833,
-0.3589732050895691,
0.0226066242903471,
0.2575156092643738,
0.20952458679676056,
0.2955669164657593,
-0.09687639027833939,
-0.0735841915011406,
-0.06800172477960587,
0.08212646842002869,
0.19551225006580353,
0.2744945287704468,
0.018945474177598953,
-0.39154890179634094,
0.06302899867296219,
0.05650421977043152,
0.25116902589797974,
0.07812299579381943,
-0.14416714012622833,
-0.0535794273018837,
-0.08006329834461212,
0.19437794387340546,
-0.05235779285430908,
0.10010579228401184,
0.2666032910346985,
0.0928935632109642,
-0.4500442147254944,
-0.34441521763801575,
0.3886462152004242,
0.1911039501428604,
-0.04681103304028511,
0.2515255808830261,
0.255499929189682,
-0.2587035000324249,
0.24113523960113525,
0.058511797338724136,
1.0566798448562622,
0.04513057321310043,
-0.17906369268894196,
0.4914720356464386,
-0.12531833350658417,
0.5688884258270264,
0.04279701039195061,
0.015406174585223198,
-0.33789753913879395,
-0.26562222838401794,
-0.051064617931842804,
-0.15461574494838715,
0.3252924382686615,
-0.09901872277259827,
-0.6059659719467163,
0.2722359895706177,
-0.41871052980422974,
-0.011303422972559929,
-0.051617369055747986,
-0.14507262408733368,
-0.16157525777816772,
-0.13057000935077667,
-0.40061435103416443,
0.2759851813316345,
-0.17678870260715485,
0.1705225706100464,
-0.15395459532737732,
-0.048945821821689606,
0.017454341053962708,
-0.12432350218296051,
-0.10454355180263519,
-0.006815799977630377,
-0.4354238212108612,
-0.2015477865934372,
-0.11793245375156403,
-0.16178485751152039,
0.01737377792596817,
0.1457437127828598,
0.17152103781700134,
0.13368260860443115,
-0.23752787709236145,
0.09018555283546448,
0.06006603315472603,
0.06914418935775757,
-0.08439328521490097,
0.035327889025211334,
0.2427477091550827,
-0.01979156769812107,
-0.3155229389667511,
0.17253978550434113,
0.034791212528944016,
0.14839740097522736,
0.36455798149108887,
0.09961363673210144,
-0.08317908644676208,
-0.3884962201118469,
-0.1447439193725586,
-0.060199711471796036,
0.20350591838359833,
-0.2569366991519928,
0.2733272612094879,
0.1267130970954895,
-0.07536563277244568,
0.10747765004634857,
-0.024491526186466217,
-0.09386873990297318,
-0.05633159354329109,
0.2750468850135803,
0.3504136800765991,
0.26577597856521606,
0.09271164983510971,
0.20155224204063416,
-0.21497270464897156,
-0.37389421463012695,
0.2654363512992859,
0.07702501863241196,
-0.22658470273017883,
0.23995095491409302,
0.14243869483470917,
-0.04775643348693848,
-0.07400858402252197,
0.3281373679637909,
0.10603383183479309,
0.049693621695041656,
-0.1529468148946762,
-0.28883951902389526,
-0.27070489525794983,
0.25821757316589355,
0.1262250542640686,
0.0776326134800911,
-0.02847248688340187,
0.20888666808605194,
0.1913178563117981,
-0.04921364411711693,
-0.48227134346961975,
0.0605648010969162,
-0.38360828161239624,
-0.08708054572343826,
0.05517591908574104,
-0.09081324189901352,
0.1894114464521408,
-0.0005162181914784014,
0.26105639338493347,
0.08882620185613632,
-0.08104237914085388,
-0.3424242436885834,
-0.1005697101354599,
0.09644266963005066,
0.003066288772970438,
0.035218529403209686,
0.14856696128845215,
-0.12070637196302414,
-0.17071877419948578,
-0.14116792380809784,
0.026607535779476166,
0.05938833951950073,
-0.15879639983177185,
0.11504935473203659,
0.12432640790939331,
0.2831471860408783,
0.035300154238939285,
0.20566755533218384,
0.07696619629859924,
-0.02294539287686348,
-0.043542176485061646,
0.01879718527197838,
0.003623007796704769,
-0.06407927721738815,
-0.03019721992313862,
0.027970222756266594,
0.1451297551393509,
0.14027343690395355,
0.125574991106987,
-0.10085047781467438,
-0.210220068693161,
0.08784742653369904,
0.16580766439437866,
0.15596799552440643,
-0.1419837474822998,
0.27704617381095886,
-0.08683080971240997,
0.3664443790912628,
-0.2744099199771881,
0.06080547347664833,
0.19101998209953308,
-0.11251921951770782,
0.23193933069705963,
0.15145763754844666,
-0.34167736768722534,
0.25747302174568176,
-0.16059844195842743,
-0.024174299091100693,
0.37635305523872375,
-0.15950584411621094,
0.15429548919200897,
0.23224450647830963,
-0.1036696583032608,
-0.026934772729873657,
0.39104944467544556,
0.2250010371208191,
0.08933498710393906,
0.06976702064275742,
-0.1052326112985611,
0.1659095287322998,
-0.035488709807395935,
0.022982267662882805,
0.23917606472969055,
-0.4080981910228729,
0.24598443508148193,
0.2516363859176636,
-0.029160810634493828,
-0.0656304806470871,
-0.16864469647407532,
0.2762495279312134,
-0.5681785345077515,
-0.10208328813314438,
-0.30880507826805115,
0.011396590620279312,
-0.173256978392601,
0.1290311962366104,
-0.12826260924339294,
-0.14371037483215332,
-0.2699720561504364,
-0.3319651782512665,
0.055672742426395416,
-0.1790090650320053,
0.19546161592006683,
-0.13716280460357666,
0.10487842559814453,
-0.19526393711566925,
-0.06117329001426697,
0.24572603404521942,
0.193771630525589,
-0.20824185013771057,
-0.0402505062520504,
-0.012576134875416756,
0.23608389496803284,
-0.1725241243839264,
0.5394889116287231,
0.39548468589782715,
0.33220693469047546,
-0.16179731488227844,
-0.027439190074801445,
0.07311812043190002,
-0.28203728795051575,
-0.06031583622097969,
0.04854932054877281,
0.03403964638710022,
0.24092434346675873,
0.06595498323440552,
0.340512216091156,
-0.31979358196258545,
0.09676835685968399,
-0.065999835729599,
0.016791922971606255,
-0.30437958240509033,
0.4304433763027191,
-0.3063569664955139,
-0.13282644748687744,
-0.11993439495563507,
-0.1177719309926033,
-0.5592743754386902,
0.06026022508740425,
0.40060943365097046,
0.06404069811105728,
0.10860761255025864,
-0.11826295405626297,
0.1509964019060135,
-0.17164120078086853,
0.11801569163799286,
-0.0006214222521521151,
0.33708128333091736,
-0.2615213394165039,
0.07738421857357025,
-0.4892734885215759,
0.3647935688495636,
0.027636101469397545,
-0.19823792576789856,
0.03153746947646141,
-0.11909500509500504,
-0.1470417082309723,
0.009699861519038677,
0.04012309014797211,
0.23808129131793976,
0.23860342800617218,
0.006259408313781023,
-0.5759983062744141,
-0.3410034775733948,
-0.10113736242055893,
-0.215959832072258,
0.10869105160236359,
-0.2300250381231308,
-0.044758137315511703,
-0.1500619649887085,
0.18267089128494263,
-0.042810436338186264,
-0.25791460275650024,
0.08402937650680542,
0.11911378800868988,
0.6550237536430359,
0.1934751719236374,
0.3989141285419464,
-0.12089630961418152,
-0.022604534402489662,
0.15709446370601654,
-0.320240318775177,
-0.08176813274621964,
0.27355197072029114,
0.12101355940103531,
0.20029917359352112,
0.04154592007398605,
0.16314846277236938,
-0.20303335785865784,
0.0024247898254543543,
0.027458351105451584,
0.05854012817144394,
-0.14644448459148407,
0.30776289105415344,
-0.16456139087677002,
-0.23615340888500214,
-0.22914473712444305,
0.10953591763973236,
0.0604570135474205,
0.1458994746208191,
-0.019830022007226944,
-0.11069876700639725,
0.6249819397926331,
-0.16928595304489136,
-0.25988513231277466,
-0.05703848972916603,
0.3724468946456909,
0.004408118315041065,
-0.1203283965587616,
-0.49222132563591003,
0.0031383729074150324,
0.46464213728904724,
-0.048813872039318085,
-0.16638508439064026,
0.20396541059017181,
-0.19556470215320587,
-0.019562941044569016,
-0.03939572721719742,
0.11102157831192017,
-0.01888624206185341,
0.0038260857108980417,
0.2579207122325897,
-0.11875492334365845
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 154 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | [
-0.23339277505874634,
-0.21219129860401154,
0.015184028074145317,
0.35403627157211304,
0.43131223320961,
0.056546494364738464,
0.4275265038013458,
0.16688376665115356,
0.16195915639400482,
0.2543880045413971,
-0.14911991357803345,
0.4838866889476776,
-0.032627642154693604,
0.2008448988199234,
0.1351146250963211,
-0.18757687509059906,
-0.17804880440235138,
0.18363410234451294,
-0.20757393538951874,
0.055490944534540176,
-0.5303388833999634,
-0.06945797055959702,
-0.13110043108463287,
0.11422090232372284,
-0.1653043031692505,
-0.24418289959430695,
-0.15801967680454254,
0.09879211336374283,
-0.17958547174930573,
-0.35017818212509155,
0.4064704179763794,
-0.11642850190401077,
0.21963711082935333,
0.5620658993721008,
-0.00010151930473512039,
-0.04592042788863182,
0.46223780512809753,
0.07418876886367798,
-0.18267714977264404,
-0.3177574872970581,
-0.29529663920402527,
-0.38185709714889526,
0.17007145285606384,
-0.39124003052711487,
-0.0481695793569088,
-0.03719896450638771,
-0.003975209780037403,
-0.251920610666275,
0.29806023836135864,
0.37957945466041565,
0.3288027346134186,
0.45387428998947144,
0.09116262942552567,
-0.24887651205062866,
0.1904570609331131,
0.09100285917520523,
-0.06212693825364113,
0.3023781180381775,
0.05389484018087387,
-0.056766726076602936,
0.21138796210289001,
0.1328088641166687,
-0.3628785014152527,
-0.0556366890668869,
0.2719312608242035,
0.06313908845186234,
0.03363437205553055,
-0.38732895255088806,
0.07486724108457565,
0.30004531145095825,
0.44824162125587463,
-0.3896300494670868,
-0.24697579443454742,
0.023593127727508545,
0.12234890460968018,
-0.19945092499256134,
0.2123643308877945,
0.05095049366354942,
0.0008061883272603154,
0.06162849813699722,
0.01964421570301056,
0.19357790052890778,
-0.19301772117614746,
0.24975335597991943,
-0.15549121797084808,
0.15984433889389038,
-0.16727423667907715,
0.1182280033826828,
0.0708542913198471,
-0.2033924013376236,
0.04979526251554489,
-0.23699788749217987,
0.007766187656670809,
0.11362118273973465,
-0.2622622847557068,
-0.05780356377363205,
0.15958726406097412,
0.1328139454126358,
0.09247199445962906,
-0.20312468707561493,
0.08403895050287247,
-0.03857838734984398,
0.0005314499721862376,
0.3734625279903412,
0.2657109797000885,
0.2719012200832367,
0.26306575536727905,
0.1053493469953537,
0.3113080859184265,
0.0968511551618576,
-0.10354035347700119,
0.017160089686512947,
-0.17414025962352753,
-0.19628769159317017,
0.2919618785381317,
0.27147164940834045,
0.5614540576934814,
-0.007139734923839569,
-0.40033647418022156,
-0.11291173100471497,
-0.17627201974391937,
0.04147804528474808,
0.19149401783943176,
0.34883904457092285,
-0.16599628329277039,
0.19304116070270538,
0.2003636211156845,
0.1248331218957901,
-0.21398010849952698,
-0.2602631449699402,
-0.2342292070388794,
0.27743634581565857,
-0.25626251101493835,
-0.19921079277992249,
0.11577466130256653,
-0.012630871497094631,
-0.07417258620262146,
0.011299284175038338,
-0.17714530229568481,
0.1546337604522705,
0.14037321507930756,
-0.3297455310821533,
-0.19453082978725433,
0.18053998053073883,
0.05135134980082512,
0.04685423895716667,
0.33966416120529175,
-0.3767824172973633,
-0.14490900933742523,
0.08572741597890854,
-0.29727891087532043,
-0.1406731903553009,
-0.15554353594779968,
0.31377270817756653,
-0.20381085574626923,
-0.05960198491811752,
-0.22110293805599213,
-0.027177050709724426,
0.12903496623039246,
-0.15920838713645935,
0.02249472588300705,
-0.15681177377700806,
-0.0343935564160347,
-0.4068644046783447,
0.09198981523513794,
0.6147863864898682,
-0.4071787893772125,
-0.15554848313331604,
-0.36548683047294617,
-0.149928480386734,
0.320685476064682,
-0.21920470893383026,
0.04204718768596649,
0.20534251630306244,
-0.18843974173069,
-0.06704171746969223,
0.5587267875671387,
-0.41095975041389465,
-0.2658071517944336,
0.07133065164089203,
-0.12879231572151184,
-0.08685889840126038,
0.0406508706510067,
-0.029998302459716797,
0.07223064452409744,
0.1137080043554306,
0.4100978374481201,
0.2751322090625763,
0.0011145423632115126,
0.007901105098426342,
-0.18644510209560394,
-0.23571166396141052,
0.1991768479347229,
0.06497546285390854,
0.13844680786132812,
0.10235562175512314,
0.14062145352363586,
-0.1971789449453354,
0.0246631670743227,
-0.048763956874608994,
-0.03272484242916107,
-0.05778984725475311,
0.5558082461357117,
-0.04685475677251816,
-0.04484403878450394,
-0.5518350005149841,
-0.422751784324646,
0.18975438177585602,
-0.07995229214429855,
0.35416629910469055,
-0.13350357115268707,
-0.187280535697937,
-0.326465368270874,
0.05830276012420654,
-0.13896284997463226,
-0.02006608061492443,
0.31765294075012207,
0.154574915766716,
-0.16887368261814117,
0.02886834926903248,
-0.05646943300962448,
0.21193832159042358,
-0.07563143968582153,
0.07361217588186264,
-0.14293058216571808,
0.30801743268966675,
-0.05763654410839081,
-0.3339875340461731,
0.03776831924915314,
0.2538014054298401,
0.5117611289024353,
-0.00044920400250703096,
-0.06331966817378998,
0.3244803547859192,
0.08667490631341934,
-0.04965454712510109,
-0.16503462195396423,
-0.09998047351837158,
0.15094144642353058,
-0.22893689572811127,
0.09716608375310898,
0.0872650220990181,
0.31685876846313477,
-0.06620483100414276,
0.09549491107463837,
0.4775230288505554,
0.08892488479614258,
0.2869647145271301,
-0.0390479601919651,
0.24175706505775452,
-0.041158780455589294,
-0.028782762587070465,
-0.08499172329902649,
-0.17435333132743835,
0.07616791129112244,
0.1894838511943817,
0.2709214985370636,
-0.03209221363067627,
-0.03770425170660019,
0.09219622611999512,
0.5580121278762817,
0.04432171583175659,
0.35388821363449097,
-0.08044292777776718,
-0.38185039162635803,
0.08841369301080704,
0.18686285614967346,
0.2703932821750641,
0.4774661362171173,
0.31630557775497437,
-0.11772751808166504,
-0.013574783690273762,
-0.0687377080321312,
0.06897158175706863,
0.08990516513586044,
0.00006875162216601893,
0.21827448904514313,
0.032634537667036057,
0.20715361833572388,
0.060828324407339096,
-0.2113717645406723,
-0.05290549248456955,
-0.17337627708911896,
0.22314691543579102,
-0.40777483582496643,
0.11844145506620407,
-0.32161882519721985,
-0.15450648963451385,
-0.020386047661304474,
0.0009130464168265462,
-0.1665668487548828,
-0.3700626492500305,
-0.2923043668270111,
0.009075582027435303,
0.058613892644643784,
0.13553090393543243,
0.07294316589832306,
0.08480878174304962,
0.030380133539438248,
0.0038110106252133846,
-0.1432914286851883,
-0.15066371858119965,
-0.197237029671669,
0.1309271901845932,
0.1724001169204712,
0.20352189242839813,
0.45790937542915344,
-0.17239373922348022,
0.1496831327676773,
-0.06682303547859192,
-0.25927385687828064,
0.06910708546638489,
-0.03589189052581787,
0.5192116498947144,
0.47515764832496643,
0.17594881355762482,
0.03733639046549797,
-0.0723709762096405,
0.39171287417411804,
-0.33756574988365173,
-0.036360759288072586,
0.281316876411438,
-0.22624893486499786,
0.19123804569244385,
-0.16277433931827545,
-0.27095532417297363,
-0.5850609540939331,
-0.43146464228630066,
0.09004975110292435,
0.1581937074661255,
0.15741708874702454,
0.22907347977161407,
0.13763046264648438,
0.4989827573299408,
0.055446356534957886,
0.1736273467540741,
-0.1574212610721588,
-0.051702000200748444,
0.2869262099266052,
-0.12826843559741974,
-0.3188621401786804,
0.06270329654216766,
-0.16105878353118896,
0.21237178146839142,
0.009506668895483017,
-0.20917998254299164,
-0.5421625971794128,
-0.19377388060092926,
0.24889874458312988,
-0.008854357525706291,
0.14066404104232788,
0.28208616375923157,
0.16523748636245728,
-0.17189642786979675,
-0.20089788734912872,
-0.14519618451595306,
-0.09587506204843521,
0.2647385001182556,
0.003278672695159912,
0.1268491894006729,
0.3415831923484802,
-0.16137102246284485,
0.15917514264583588,
0.021251918748021126,
-0.1993088275194168,
0.41499972343444824,
-0.26402875781059265,
0.35535362362861633,
-0.1553536057472229,
-0.5011112093925476,
-0.13159999251365662,
-0.034155622124671936,
0.011961887590587139,
-0.0257775466889143,
-0.14988476037979126,
-0.16163358092308044,
-0.3645355701446533,
-0.19629110395908356,
-0.4402102530002594,
-0.1943257749080658,
-0.04519015923142433,
0.19967065751552582,
0.020419897511601448,
-0.029306864365935326,
0.12709294259548187,
-0.48087769746780396,
0.03261001780629158,
0.04268081858754158,
0.22182698547840118,
-0.043626632541418076,
-0.17677581310272217,
-0.24602457880973816,
-0.24011051654815674,
-0.26470476388931274,
0.4546618163585663,
-0.1586204469203949,
0.03671906888484955,
-0.14815834164619446,
-0.06042752414941788,
0.003012389875948429,
-0.07133225351572037,
0.5519663691520691,
-0.3454788625240326,
0.167946919798851,
0.5127313137054443,
0.19823023676872253,
-0.397299587726593,
0.14483104646205902,
-0.34672120213508606,
0.19787153601646423,
0.0658445656299591,
0.31295403838157654,
-0.3585754334926605,
-0.03750850632786751,
0.2515776455402374,
0.20191213488578796,
-0.12929829955101013,
-0.1740512102842331,
-0.14477801322937012,
-0.25037631392478943,
-0.13169923424720764,
-0.05848639830946922,
-0.12461373955011368,
0.35948646068573,
-0.12653741240501404,
-0.15836377441883087,
-0.30935147404670715,
-0.030120188370347023,
0.17894954979419708,
0.18407675623893738,
0.28029370307922363,
-0.07592803984880447,
-0.036761246621608734,
-0.046405643224716187,
0.07169938832521439,
0.23198649287223816,
0.3442593216896057,
-0.023947373032569885,
-0.3605998456478119,
0.06677629053592682,
0.014034382998943329,
0.23565275967121124,
0.058527201414108276,
-0.18437214195728302,
-0.10359596461057663,
-0.05338580161333084,
0.2002052366733551,
-0.10604546964168549,
0.07498475164175034,
0.30687111616134644,
0.06406138837337494,
-0.3982105851173401,
-0.3787682354450226,
0.40757688879966736,
0.14827732741832733,
-0.05587650090456009,
0.2646419107913971,
0.2493724226951599,
-0.30793067812919617,
0.2636658549308777,
0.0765036791563034,
0.9972304701805115,
0.06343605369329453,
-0.14272236824035645,
0.529119610786438,
-0.0992499366402626,
0.5708357691764832,
0.02166435495018959,
0.07378089427947998,
-0.3225640058517456,
-0.24031810462474823,
-0.062166787683963776,
-0.1458812654018402,
0.36378246545791626,
0.01775684580206871,
-0.5546253323554993,
0.2570110261440277,
-0.40403831005096436,
0.033881157636642456,
-0.09939461946487427,
-0.054079048335552216,
-0.16800834238529205,
-0.15559397637844086,
-0.4221654534339905,
0.26156455278396606,
-0.1391603797674179,
0.16466647386550903,
-0.09646620601415634,
-0.0559900626540184,
0.0007046881364658475,
-0.15051054954528809,
-0.05448855087161064,
0.026049163192510605,
-0.47052904963493347,
-0.09283189475536346,
-0.1959894597530365,
-0.14020226895809174,
-0.015017539262771606,
0.21177193522453308,
0.10819754749536514,
0.07988026738166809,
-0.22084848582744598,
0.0747629702091217,
0.10029993206262589,
0.11136142164468765,
-0.07459383457899094,
0.018623845651745796,
0.2860431671142578,
-0.03659246489405632,
-0.3421165347099304,
0.14515800774097443,
-0.03462517634034157,
0.17506323754787445,
0.37815767526626587,
0.07899659872055054,
-0.0583958774805069,
-0.36032646894454956,
-0.10064274072647095,
-0.058162786066532135,
0.23706112802028656,
-0.25680282711982727,
0.2513566017150879,
0.05455606430768967,
-0.03553367033600807,
0.07119755446910858,
-0.1054585874080658,
-0.0828099325299263,
-0.09730264544487,
0.3941631615161896,
0.29129236936569214,
0.27724799513816833,
0.21699313819408417,
0.23510049283504486,
-0.22449541091918945,
-0.3636665642261505,
0.28894975781440735,
0.09907732158899307,
-0.3086126446723938,
0.19841726124286652,
0.2202889621257782,
-0.048322781920433044,
-0.03577713668346405,
0.34723934531211853,
0.0114343436434865,
0.049836207181215286,
-0.13501325249671936,
-0.28077635169029236,
-0.22253893315792084,
0.2674214243888855,
0.09064282476902008,
0.08440593630075455,
0.0283272136002779,
0.16219840943813324,
0.177445650100708,
-0.05472409352660179,
-0.45146939158439636,
-0.011736397631466389,
-0.33758798241615295,
-0.037974726408720016,
0.11412511765956879,
-0.06889155507087708,
0.21172364056110382,
0.046973373740911484,
0.26682645082473755,
-0.027095315977931023,
-0.09540187567472458,
-0.3234717845916748,
-0.10079485923051834,
0.10074528306722641,
-0.03197823837399483,
-0.004105513449758291,
0.2243579477071762,
-0.130921870470047,
-0.16262570023536682,
-0.16517190635204315,
0.17552965879440308,
0.057732731103897095,
-0.1902177929878235,
0.10387809574604034,
0.15697412192821503,
0.283407062292099,
0.04302489757537842,
0.2171773910522461,
-0.026657462120056152,
-0.05812227353453636,
-0.02266465127468109,
0.039119619876146317,
0.015667758882045746,
-0.049856409430503845,
-0.01604108139872551,
0.04384423792362213,
0.09413565695285797,
0.11545418947935104,
0.10233139991760254,
-0.13287025690078735,
-0.23977158963680267,
0.10105198621749878,
0.17079536616802216,
0.16727042198181152,
-0.116989366710186,
0.24982720613479614,
-0.08524002134799957,
0.3432338237762451,
-0.30241844058036804,
0.04962361976504326,
0.1867102086544037,
-0.15452514588832855,
0.22602340579032898,
0.11560607701539993,
-0.30482548475265503,
0.2245938926935196,
-0.14696510136127472,
-0.012541738338768482,
0.41312000155448914,
-0.1344488561153412,
0.21409621834754944,
0.3211933970451355,
-0.08356038480997086,
-0.01668957807123661,
0.3776882588863373,
0.1835823506116867,
0.10865157097578049,
0.03167743235826492,
-0.057955894619226456,
0.1470869779586792,
-0.019642788916826248,
0.08554171025753021,
0.2414100617170334,
-0.5050230622291565,
0.27103304862976074,
0.24059978127479553,
-0.0243101604282856,
-0.11213710159063339,
-0.1639893800020218,
0.3712480366230011,
-0.5745438933372498,
-0.06367123872041702,
-0.30643123388290405,
0.059413421899080276,
-0.1685565710067749,
0.11595263332128525,
-0.11149479448795319,
-0.14003877341747284,
-0.25655195116996765,
-0.2784862518310547,
0.06332866102457047,
-0.24148890376091003,
0.2439764440059662,
-0.11187314987182617,
0.02112690545618534,
-0.27141278982162476,
-0.04015257954597473,
0.22177980840206146,
0.12762781977653503,
-0.19419707357883453,
0.009709577076137066,
0.05060123652219772,
0.20417965948581696,
-0.18068422377109528,
0.5522725582122803,
0.3988933265209198,
0.38002243638038635,
-0.13546359539031982,
-0.06647873669862747,
0.1149359866976738,
-0.2638258635997772,
-0.09045278280973434,
0.010561587288975716,
-0.03626395761966705,
0.25907737016677856,
0.10439466685056686,
0.3203142285346985,
-0.30220067501068115,
-0.006891030352562666,
-0.01900315098464489,
0.005731004755944014,
-0.2694805860519409,
0.38334396481513977,
-0.29412969946861267,
-0.13394589722156525,
-0.11302606016397476,
-0.07648447155952454,
-0.5723278522491455,
0.045301247388124466,
0.43370068073272705,
0.05534952133893967,
0.11604993790388107,
-0.17900627851486206,
0.14473626017570496,
-0.13810184597969055,
0.19207237660884857,
-0.01378986518830061,
0.2897503972053528,
-0.2669522166252136,
0.08058136701583862,
-0.5247184634208679,
0.31506288051605225,
0.03911362215876579,
-0.19242976605892181,
-0.028471609577536583,
-0.12059050798416138,
-0.1418030709028244,
0.0033041660208255053,
0.02526295743882656,
0.27408427000045776,
0.25067874789237976,
0.015638723969459534,
-0.5449014902114868,
-0.29364925622940063,
-0.041616473346948624,
-0.18406419456005096,
0.05577266216278076,
-0.34119418263435364,
-0.002359036123380065,
-0.1740485578775406,
0.14972154796123505,
0.0006317555671557784,
-0.24992845952510834,
0.14406579732894897,
0.0977681577205658,
0.6802557706832886,
0.18651385605335236,
0.4030945301055908,
-0.08699792623519897,
-0.04366917163133621,
0.036389242857694626,
-0.2932220995426178,
-0.11003629863262177,
0.2340061366558075,
0.07532325387001038,
0.2027740776538849,
0.03461690992116928,
0.14568735659122467,
-0.24518325924873352,
0.08542771637439728,
0.017443949356675148,
0.13280434906482697,
-0.14758522808551788,
0.3109081983566284,
-0.15090933442115784,
-0.2978289723396301,
-0.1912626028060913,
0.0007493104203604162,
0.1050976812839508,
0.10299556702375412,
-0.06943623721599579,
-0.23852545022964478,
0.5177175998687744,
-0.28555867075920105,
-0.17676077783107758,
-0.09032729268074036,
0.35201185941696167,
-0.04038098454475403,
-0.11723639070987701,
-0.506731390953064,
0.05464501306414604,
0.4887305796146393,
-0.0022290232591331005,
-0.150093212723732,
0.1638827919960022,
-0.20673111081123352,
0.021501440554857254,
-0.07061657309532166,
0.01149772573262453,
-0.0409061424434185,
0.0008290958357974887,
0.19808106124401093,
-0.13200417160987854
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 20 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | [
-0.2608942687511444,
-0.20070664584636688,
0.065999835729599,
0.40019580721855164,
0.464599072933197,
0.011524934321641922,
0.32409727573394775,
0.09413178265094757,
0.18960040807724,
0.3001820743083954,
-0.2849096655845642,
0.4667587876319885,
-0.03664389252662659,
0.16685806214809418,
0.07776457071304321,
-0.12537288665771484,
-0.2606472074985504,
0.2636679708957672,
-0.17774704098701477,
0.061366498470306396,
-0.5233632326126099,
0.023198327049613,
-0.2373635619878769,
0.08589056879281998,
-0.27679988741874695,
-0.15339991450309753,
-0.028150174766778946,
0.07971347868442535,
-0.24621734023094177,
-0.28055059909820557,
0.4611608684062958,
-0.015962719917297363,
0.16404759883880615,
0.5104129910469055,
-0.00010234794899588451,
-0.018457384780049324,
0.5837001204490662,
0.05300305783748627,
-0.07615187019109726,
-0.4211901128292084,
-0.22556304931640625,
-0.39779970049858093,
0.28700387477874756,
-0.3548148274421692,
-0.12754182517528534,
0.0055784303694963455,
0.040513359010219574,
-0.18190565705299377,
0.2621397376060486,
0.3204343616962433,
0.3242150545120239,
0.5296900272369385,
0.011441849172115326,
-0.3599713146686554,
0.19651176035404205,
0.08083018660545349,
-0.0636897161602974,
0.3710538148880005,
0.026584254577755928,
-0.04749303311109543,
0.24396441876888275,
0.08703085780143738,
-0.335353821516037,
0.05276079848408699,
0.2847360670566559,
0.03825466334819794,
0.009530584327876568,
-0.2701701521873474,
0.096476249396801,
0.3694061040878296,
0.3855828642845154,
-0.3826201260089874,
-0.151443213224411,
0.17500905692577362,
0.2239651083946228,
-0.20327097177505493,
0.2116490751504898,
0.04687747359275818,
0.01630524732172489,
0.09074439108371735,
-0.013072201982140541,
0.17122024297714233,
-0.2445574551820755,
0.2749374508857727,
-0.2020062655210495,
0.10654965788125992,
-0.1935499757528305,
0.14479650557041168,
0.08499720692634583,
-0.11886037886142731,
0.07633409649133682,
-0.13459762930870056,
-0.06199737265706062,
0.08909042924642563,
-0.2083805799484253,
0.03492952883243561,
0.11520574241876602,
0.15357956290245056,
0.16361172497272491,
-0.2843679189682007,
0.1018848791718483,
-0.023833470419049263,
0.03979792073369026,
0.4501175880432129,
0.24146118760108948,
0.18975625932216644,
0.2724783718585968,
0.08869297057390213,
0.2660125494003296,
0.06678777188062668,
-0.2417134791612625,
-0.012089276686310768,
-0.15435847640037537,
-0.061072006821632385,
0.2427942454814911,
0.14118479192256927,
0.5124642252922058,
0.018914956599473953,
-0.4501636028289795,
-0.17423781752586365,
-0.17213261127471924,
0.09130046516656876,
0.27164170145988464,
0.427763432264328,
-0.1526402235031128,
0.08207858353853226,
0.13324162364006042,
0.17432793974876404,
-0.18845121562480927,
-0.2918044328689575,
-0.3183255195617676,
0.3539677560329437,
-0.2528480589389801,
-0.234954833984375,
0.19113825261592865,
0.05796584114432335,
-0.044978998601436615,
0.013466749340295792,
-0.09584775567054749,
0.10270073264837265,
0.08866853266954422,
-0.2908606231212616,
-0.23106487095355988,
0.31327128410339355,
0.24430525302886963,
-0.06283310055732727,
0.28006115555763245,
-0.4668276906013489,
-0.09159677475690842,
0.22920304536819458,
-0.2898916006088257,
-0.16717375814914703,
-0.07324391603469849,
0.2667025923728943,
-0.33905473351478577,
-0.06973502784967422,
-0.24416671693325043,
0.046672273427248,
0.04895789921283722,
-0.156635120511055,
-0.10240889340639114,
-0.09626150131225586,
-0.11265736818313599,
-0.4234250485897064,
0.04461820796132088,
0.5165780186653137,
-0.3751865029335022,
-0.19924117624759674,
-0.3078101873397827,
-0.10918235033750534,
0.3522842228412628,
-0.1473015695810318,
0.014567063190042973,
0.06289981305599213,
-0.17065683007240295,
-0.000686013896483928,
0.6008647680282593,
-0.3847203552722931,
-0.2815139889717102,
0.056300897151231766,
-0.03718709945678711,
-0.1165539100766182,
-0.05172203108668327,
-0.04704410955309868,
0.07188765704631805,
0.13564296066761017,
0.41282153129577637,
0.24465316534042358,
0.04935895651578903,
-0.03246750682592392,
-0.21095895767211914,
-0.23810958862304688,
0.1280459761619568,
0.15165799856185913,
0.12727054953575134,
0.16304107010364532,
0.0712502971291542,
-0.25063005089759827,
-0.05571635812520981,
-0.006188315339386463,
-0.10224475711584091,
-0.030164023861289024,
0.5365027189254761,
-0.1599624902009964,
-0.039964478462934494,
-0.5328827500343323,
-0.3950175344944,
0.23308143019676208,
-0.07792792469263077,
0.2541694641113281,
-0.10548867285251617,
-0.17003574967384338,
-0.35298147797584534,
0.10195040702819824,
-0.017023945227265358,
0.060761842876672745,
0.2853281795978546,
0.09096167236566544,
-0.20114904642105103,
0.1454879492521286,
-0.0809033066034317,
0.16377317905426025,
-0.08734962344169617,
0.051231615245342255,
0.03350481390953064,
0.291667103767395,
0.07477834820747375,
-0.3356168568134308,
0.03529531508684158,
0.18978500366210938,
0.45744818449020386,
-0.010459944605827332,
-0.06727063655853271,
0.2640904188156128,
0.07089219987392426,
-0.0788058489561081,
-0.20708632469177246,
-0.05381814017891884,
0.08799291402101517,
-0.3130641579627991,
-0.030365964397788048,
0.03798510506749153,
0.3187098801136017,
-0.09437373280525208,
0.06253833323717117,
0.603893518447876,
0.06684301793575287,
0.17446208000183105,
-0.0730600655078888,
0.2714185118675232,
0.06532449275255203,
-0.0385558120906353,
-0.1490771770477295,
-0.12862828373908997,
0.045985061675310135,
0.11761815845966339,
0.24863722920417786,
0.00610388396307826,
-0.08802139014005661,
-0.023188389837741852,
0.5769150257110596,
0.09138345718383789,
0.36079129576683044,
-0.13751739263534546,
-0.42041343450546265,
0.11379508674144745,
0.03700615465641022,
0.25255486369132996,
0.503267228603363,
0.33231568336486816,
-0.10686410963535309,
0.02362951636314392,
-0.057172052562236786,
0.04047264903783798,
0.10329219698905945,
0.049447201192379,
0.23289716243743896,
-0.00002372617927903775,
0.30572110414505005,
-0.020941684022545815,
-0.3462260067462921,
0.16139131784439087,
-0.053847961127758026,
0.18420667946338654,
-0.37608709931373596,
0.18453913927078247,
-0.27470338344573975,
-0.07675784826278687,
0.14255142211914062,
-0.10272447764873505,
-0.12500527501106262,
-0.32862889766693115,
-0.2664070129394531,
0.10813751816749573,
0.12109032273292542,
0.19382086396217346,
0.14224739372730255,
0.07632012665271759,
0.008745388127863407,
-0.02552848868072033,
-0.1826612800359726,
-0.13265492022037506,
-0.1483922004699707,
0.0880742147564888,
0.16533564031124115,
0.18194064497947693,
0.4119827151298523,
-0.14963765442371368,
0.22848814725875854,
-0.0511263832449913,
-0.2455982118844986,
0.10017756372690201,
-0.05732909217476845,
0.5299287438392639,
0.40860894322395325,
0.06029227375984192,
-0.14106446504592896,
0.10045111179351807,
0.41889074444770813,
-0.465801864862442,
0.026479052379727364,
0.36358341574668884,
-0.30706414580345154,
0.08372659236192703,
-0.2518777847290039,
-0.10609912127256393,
-0.5478299260139465,
-0.4280381500720978,
0.06833084672689438,
0.09581978619098663,
0.044977206736803055,
0.1724175661802292,
0.11911767721176147,
0.4440965950489044,
0.11239288002252579,
0.01576055772602558,
-0.2330423891544342,
-0.08540808409452438,
0.33111271262168884,
-0.16932561993598938,
-0.36089083552360535,
0.2042488008737564,
-0.13234826922416687,
0.2548741102218628,
0.028586776927113533,
-0.16097871959209442,
-0.5243913531303406,
-0.15561775863170624,
0.20535258948802948,
-0.00518856942653656,
-0.011091460473835468,
0.29122549295425415,
0.040285903960466385,
-0.13678671419620514,
-0.2726750373840332,
-0.1413017064332962,
-0.048815082758665085,
0.2352694720029831,
-0.06838775426149368,
0.047184109687805176,
0.28253892064094543,
-0.12230157852172852,
0.143637552857399,
-0.10943884402513504,
-0.1853010207414627,
0.40596774220466614,
-0.3138792812824249,
0.3742716908454895,
-0.15146556496620178,
-0.4665457606315613,
-0.21089105308055878,
0.027871564030647278,
0.04224194586277008,
0.04843442887067795,
-0.1828998178243637,
-0.24296553432941437,
-0.3873913586139679,
-0.18405763804912567,
-0.3091231882572174,
-0.11764701455831528,
-0.04482340067625046,
0.18691399693489075,
-0.034465812146663666,
0.12824112176895142,
0.15066936612129211,
-0.4099556803703308,
-0.04402134567499161,
-0.014516408555209637,
0.19075918197631836,
0.0003334500652272254,
-0.18749350309371948,
-0.13432322442531586,
-0.23941408097743988,
-0.33497342467308044,
0.4665148854255676,
-0.13041754066944122,
-0.021451907232403755,
-0.10481096059083939,
-0.02281367778778076,
0.11871502548456192,
-0.04580186679959297,
0.5801782011985779,
-0.29447898268699646,
0.17192880809307098,
0.5542985200881958,
0.09047968685626984,
-0.5516594052314758,
0.10773146897554398,
-0.33184438943862915,
0.3005693256855011,
0.1331285834312439,
0.28102168440818787,
-0.34704262018203735,
-0.019387176260352135,
0.21586184203624725,
0.06858555227518082,
-0.11510872095823288,
-0.24079258739948273,
-0.23340819776058197,
-0.29338976740837097,
-0.04927017539739609,
-0.06657339632511139,
-0.05861193686723709,
0.4225766956806183,
-0.13546667993068695,
-0.1273060292005539,
-0.4123404324054718,
-0.036735258996486664,
0.16560208797454834,
0.1939740926027298,
0.34225204586982727,
-0.13591040670871735,
-0.025981584563851357,
-0.0587921068072319,
0.08305013179779053,
0.1330539733171463,
0.35680171847343445,
0.08881030976772308,
-0.4469740092754364,
0.1390766203403473,
0.073601134121418,
0.23926110565662384,
0.002429617801681161,
-0.2127712368965149,
-0.15642251074314117,
-0.09731859713792801,
0.1256742775440216,
0.06949068605899811,
0.1411265879869461,
0.23214705288410187,
0.013766533695161343,
-0.36468324065208435,
-0.23113375902175903,
0.43259161710739136,
0.17458906769752502,
0.02502707578241825,
0.27190056443214417,
0.23464584350585938,
-0.22543415427207947,
0.22379302978515625,
-0.06493008881807327,
0.9164007902145386,
-0.001631135237403214,
-0.11023618280887604,
0.6165453791618347,
-0.09799019247293472,
0.5674658417701721,
0.06507990509271622,
0.06793373823165894,
-0.37042614817619324,
-0.28798654675483704,
-0.005231490824371576,
-0.14537565410137177,
0.25484511256217957,
-0.04935317113995552,
-0.5216739773750305,
0.20980682969093323,
-0.3250356614589691,
0.05638696998357773,
-0.033875830471515656,
-0.08627244830131531,
-0.06887193024158478,
-0.16256748139858246,
-0.31690946221351624,
0.2203887701034546,
-0.11600204557180405,
0.16524803638458252,
-0.0905514657497406,
-0.0729372426867485,
0.020187541842460632,
-0.07935287803411484,
-0.08598944544792175,
0.051867637783288956,
-0.410574346780777,
-0.10258132964372635,
0.008886466734111309,
-0.1489420384168625,
-0.049235615879297256,
0.10977714508771896,
0.043908894062042236,
0.023810749873518944,
-0.3483446538448334,
0.23607459664344788,
0.052508410066366196,
0.017473990097641945,
-0.07425518333911896,
0.07520431280136108,
0.20920927822589874,
-0.05937168374657631,
-0.2678524851799011,
0.10724093019962311,
-0.047131508588790894,
0.16754937171936035,
0.3512035310268402,
0.13514524698257446,
-0.10577864199876785,
-0.3018783628940582,
-0.21502341330051422,
-0.13873806595802307,
0.2945331931114197,
-0.29509925842285156,
0.25293564796447754,
0.08838566392660141,
-0.11284014582633972,
0.02371150813996792,
0.03705623000860214,
-0.18078623712062836,
-0.03919849544763565,
0.40544962882995605,
0.33154377341270447,
0.3266710638999939,
0.1742117553949356,
0.21394577622413635,
-0.13305047154426575,
-0.356207937002182,
0.2356429100036621,
0.07449297606945038,
-0.3519968092441559,
0.3284551799297333,
0.2739296853542328,
-0.04565461352467537,
0.027123039588332176,
0.41909554600715637,
0.01776466891169548,
-0.04062539339065552,
-0.1278359591960907,
-0.2977452576160431,
-0.20528504252433777,
0.22017070651054382,
0.0076370988972485065,
-0.013315225951373577,
0.10363152623176575,
0.23537418246269226,
0.19691504538059235,
-0.07531681656837463,
-0.4256240725517273,
0.11846069246530533,
-0.3420971930027008,
-0.10644997656345367,
0.0358143225312233,
-0.08394285291433334,
0.19919723272323608,
0.09430292248725891,
0.2200213521718979,
0.04124436154961586,
-0.11736726015806198,
-0.3198773264884949,
-0.1708856076002121,
0.11573014408349991,
-0.06035256013274193,
0.09846006333827972,
0.1912233829498291,
-0.09780179709196091,
-0.33997803926467896,
-0.11381705850362778,
0.0863473191857338,
0.018683113157749176,
-0.24856695532798767,
0.0389392115175724,
0.18414025008678436,
0.29607221484184265,
0.024314964190125465,
0.22147776186466217,
0.06482862681150436,
-0.05169810354709625,
-0.16678065061569214,
0.007016872987151146,
0.07386066019535065,
-0.03772583231329918,
0.04539838433265686,
-0.024269644170999527,
0.14642402529716492,
0.12582825124263763,
0.14722397923469543,
-0.18216252326965332,
-0.13763797283172607,
-0.010653750970959663,
0.16226790845394135,
0.10540203750133514,
-0.1678972840309143,
0.3169002830982208,
-0.1511397361755371,
0.3191595673561096,
-0.37131786346435547,
-0.01812628097832203,
0.2591812312602997,
-0.0037933378480374813,
0.23372481763362885,
0.04873427376151085,
-0.2177034616470337,
0.2784505784511566,
-0.10017438977956772,
-0.008697444573044777,
0.4537392258644104,
-0.12444194406270981,
0.06487783789634705,
0.23850809037685394,
-0.15005315840244293,
0.06746771931648254,
0.40410253405570984,
0.2606094479560852,
0.09712596982717514,
0.13525065779685974,
-0.029977133497595787,
0.12965936958789825,
-0.07734112441539764,
0.05111665651202202,
0.16977764666080475,
-0.5580496788024902,
0.1861063688993454,
0.16857938468456268,
0.0023653993848711252,
-0.07915836572647095,
-0.2323795109987259,
0.41024643182754517,
-0.49375173449516296,
-0.060565877705812454,
-0.3794310986995697,
0.06436964869499207,
-0.16302862763404846,
-0.0013758954592049122,
-0.1433873325586319,
-0.11491924524307251,
-0.17176160216331482,
-0.2528250813484192,
0.04163544625043869,
-0.09905923902988434,
0.2412426471710205,
-0.11379538476467133,
0.10468658059835434,
-0.19301369786262512,
-0.0399433858692646,
0.2786889374256134,
0.04779910668730736,
-0.15554529428482056,
0.039812956005334854,
-0.06016714870929718,
0.2526932954788208,
-0.11667275428771973,
0.49846750497817993,
0.4282831847667694,
0.2650192081928253,
-0.20173509418964386,
-0.11841430515050888,
0.0438966378569603,
-0.2949292063713074,
-0.14820411801338196,
0.1448875069618225,
0.16215217113494873,
0.1861361563205719,
0.0748438909649849,
0.2893257737159729,
-0.28499940037727356,
0.13082347810268402,
-0.0036747190169990063,
-0.007819055579602718,
-0.280519962310791,
0.3590802252292633,
-0.3625502586364746,
-0.11782539635896683,
-0.15548594295978546,
-0.10727126151323318,
-0.4793091118335724,
0.09879494458436966,
0.36479437351226807,
0.12186047434806824,
0.13483977317810059,
-0.15502452850341797,
0.14311707019805908,
-0.2600436806678772,
0.2424018234014511,
-0.023232661187648773,
0.3653588593006134,
-0.2398388683795929,
0.02577834203839302,
-0.5430262684822083,
0.4481772184371948,
0.01292554009705782,
-0.07826466858386993,
0.0848240926861763,
-0.12170198559761047,
-0.11546022444963455,
-0.03444543480873108,
-0.004842204041779041,
0.3630886375904083,
0.2708316147327423,
-0.04777458682656288,
-0.559188723564148,
-0.3568100333213806,
-0.09461773186922073,
-0.27721962332725525,
0.04613781347870827,
-0.29078012704849243,
-0.05018320679664612,
-0.1604975014925003,
0.13265098631381989,
-0.06835370510816574,
-0.2736572325229645,
0.11521260440349579,
0.27089133858680725,
0.6669096350669861,
0.2045690417289734,
0.4079797863960266,
-0.08747338503599167,
0.09326159954071045,
0.07337749749422073,
-0.2984468936920166,
-0.0754203349351883,
0.19056706130504608,
0.10106080770492554,
0.13626103103160858,
0.015028532594442368,
0.17342233657836914,
-0.14726820588111877,
-0.037688758224248886,
-0.04048110917210579,
0.057877007871866226,
-0.23930326104164124,
0.31381142139434814,
-0.28970447182655334,
-0.194597989320755,
-0.26688796281814575,
0.09523412585258484,
0.08431078493595123,
0.10966166108846664,
0.02188446931540966,
-0.09394040703773499,
0.6466466784477234,
-0.25513678789138794,
-0.31486231088638306,
0.0029653168749064207,
0.2552380859851837,
0.03409340977668762,
-0.17528478801250458,
-0.4145068824291229,
0.06282622367143631,
0.44321122765541077,
-0.054986562579870224,
-0.21835945546627045,
0.24271458387374878,
-0.17745569348335266,
0.05033661797642708,
-0.1022099107503891,
0.011153888888657093,
0.05164097994565964,
-0.06758365780115128,
0.12968291342258453,
-0.08301327377557755
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | One naive question: do you have internet access from the machine where you execute the code? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 16 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
One naive question: do you have internet access from the machine where you execute the code? | [
-0.24667485058307648,
-0.21660692989826202,
-0.0038836291059851646,
0.35868632793426514,
0.40094777941703796,
0.035537030547857285,
0.3025212287902832,
0.1521892249584198,
0.16503635048866272,
0.35661035776138306,
-0.17791984975337982,
0.4452131986618042,
-0.038257233798503876,
0.1990445852279663,
0.08161959052085876,
-0.08996173739433289,
-0.20337140560150146,
0.24470654129981995,
-0.18422313034534454,
0.010521809570491314,
-0.47287678718566895,
-0.018520347774028778,
-0.1821441501379013,
0.019932953640818596,
-0.2480739802122116,
-0.20028597116470337,
-0.11639851331710815,
0.06450092047452927,
-0.21489877998828888,
-0.253029465675354,
0.36321085691452026,
0.045063264667987823,
0.11236809194087982,
0.5467211604118347,
-0.00010198416566709056,
-0.0862102061510086,
0.4975403845310211,
0.07624030858278275,
-0.11333849281072617,
-0.22271530330181122,
-0.2704131305217743,
-0.34315237402915955,
0.18232525885105133,
-0.42608046531677246,
-0.09165448695421219,
0.02889085002243519,
0.01238174457103014,
-0.2481909543275833,
0.3053148686885834,
0.30721402168273926,
0.33970844745635986,
0.4426213800907135,
-0.019016895443201065,
-0.33228936791419983,
0.21622943878173828,
0.04210403934121132,
-0.03231095150113106,
0.36221545934677124,
0.0633598119020462,
-0.05373142659664154,
0.17674162983894348,
0.1824110597372055,
-0.2867754101753235,
-0.002955150557681918,
0.2504885792732239,
0.08760187029838562,
-0.024535907432436943,
-0.2595614194869995,
0.10220532864332199,
0.2668828070163727,
0.28568828105926514,
-0.45208466053009033,
-0.12455223500728607,
0.11148010194301605,
0.1043582409620285,
-0.2367102950811386,
0.1430765837430954,
-0.0036109432112425566,
-0.019701045006513596,
0.10603615641593933,
-0.03515937924385071,
0.13369134068489075,
-0.23166485130786896,
0.2396649271249771,
-0.20911672711372375,
0.14929310977458954,
-0.189427450299263,
0.09671075642108917,
0.0752299502491951,
-0.0852818489074707,
0.05322107672691345,
-0.1713411808013916,
0.02107595093548298,
0.01056907419115305,
-0.15079505741596222,
-0.04721863567829132,
0.1830177903175354,
0.14029408991336823,
0.15340538322925568,
-0.25457921624183655,
0.10788735002279282,
-0.005875410046428442,
0.11862415075302124,
0.4159371852874756,
0.15438315272331238,
0.24156388640403748,
0.21506333351135254,
0.08808040618896484,
0.21871381998062134,
0.1302517056465149,
-0.25680607557296753,
-0.011533666402101517,
-0.09233549237251282,
-0.03635302186012268,
0.3084874749183655,
0.16057181358337402,
0.4978729784488678,
0.014810080640017986,
-0.43729472160339355,
-0.04824170842766762,
-0.23147878050804138,
0.10640005022287369,
0.2851622700691223,
0.38286149501800537,
-0.21978913247585297,
0.028076201677322388,
0.1954130083322525,
0.146347314119339,
-0.16790808737277985,
-0.289684921503067,
-0.3228364586830139,
0.3451816439628601,
-0.32532384991645813,
-0.19962911307811737,
0.12553593516349792,
0.09560266882181168,
-0.07858631014823914,
0.04803728684782982,
-0.03571191802620888,
0.05530165880918503,
0.07634837925434113,
-0.2473658174276352,
-0.17068003118038177,
0.1856052726507187,
0.20968011021614075,
-0.10421095043420792,
0.32344338297843933,
-0.48366817831993103,
-0.10272353887557983,
0.105821393430233,
-0.20707765221595764,
-0.08960555493831635,
-0.03591959923505783,
0.3180176615715027,
-0.3513985872268677,
-0.10086790472269058,
-0.15153691172599792,
0.10080745071172714,
0.06124575063586235,
-0.15493623912334442,
0.026828620582818985,
-0.08387970924377441,
-0.04602052643895149,
-0.4438782334327698,
0.09875888377428055,
0.5773767828941345,
-0.39236629009246826,
-0.1583532840013504,
-0.31497451663017273,
-0.04100910946726799,
0.35695680975914,
-0.23161673545837402,
0.1328967958688736,
0.16129925847053528,
-0.15059493482112885,
0.03073747642338276,
0.5494579672813416,
-0.3594248294830322,
-0.2982897162437439,
-0.019450146704912186,
-0.11950697749853134,
-0.08456023782491684,
-0.008068802766501904,
-0.1045469120144844,
0.07586486637592316,
0.15029634535312653,
0.4117963910102844,
0.24507738649845123,
-0.024492014199495316,
-0.04034685343503952,
-0.23563964664936066,
-0.21621392667293549,
0.030153166502714157,
0.10724256187677383,
0.1855027675628662,
0.16095717251300812,
0.10866647958755493,
-0.22548803687095642,
0.01508262287825346,
-0.016560599207878113,
-0.0678272396326065,
-0.06646318733692169,
0.5562684535980225,
-0.11980120092630386,
-0.10301090031862259,
-0.5486019253730774,
-0.33649832010269165,
0.21377749741077423,
-0.06440931558609009,
0.25838199257850647,
-0.1622747778892517,
-0.1771242320537567,
-0.4169960021972656,
0.11737467348575592,
-0.0591692179441452,
0.0415954664349556,
0.3479427397251129,
0.1584893763065338,
-0.13163790106773376,
0.12016482651233673,
-0.038923896849155426,
0.15547743439674377,
-0.09755878895521164,
0.06154220551252365,
0.0028670330066233873,
0.36242568492889404,
0.02881614677608013,
-0.3402503430843353,
0.012543520890176296,
0.23908649384975433,
0.49202847480773926,
0.025128589943051338,
-0.03666041046380997,
0.342571496963501,
0.015398098155856133,
-0.058924902230501175,
-0.07136092334985733,
0.012981533072888851,
0.035537634044885635,
-0.3102553188800812,
0.09030776470899582,
0.07409462332725525,
0.27433323860168457,
-0.05014931410551071,
0.04555899277329445,
0.5526734590530396,
0.06390828639268875,
0.16311876475811005,
-0.07747814804315567,
0.2747519612312317,
-0.10433316230773926,
-0.06520569324493408,
-0.15911953151226044,
-0.14824533462524414,
0.11650297045707703,
0.052997760474681854,
0.19412623345851898,
-0.04457239806652069,
-0.10241199284791946,
0.07118651270866394,
0.6148303151130676,
0.07447894662618637,
0.41006147861480713,
-0.1350679099559784,
-0.3626485764980316,
0.13631507754325867,
0.06328234076499939,
0.2627353370189667,
0.4373948872089386,
0.3606952130794525,
-0.05525273457169533,
0.07250632345676422,
-0.09560027718544006,
0.04635845124721527,
0.0818469449877739,
0.0780012235045433,
0.17100641131401062,
-0.023559508845210075,
0.26488155126571655,
0.00004850859841099009,
-0.30219724774360657,
0.039387933909893036,
-0.21157225966453552,
0.19996845722198486,
-0.34422776103019714,
0.27032339572906494,
-0.2761576473712921,
-0.1083710566163063,
0.06657060235738754,
-0.13416478037834167,
-0.11199845373630524,
-0.39722558856010437,
-0.18969185650348663,
0.049573637545108795,
0.08469808846712112,
0.1596638411283493,
0.13314826786518097,
0.17809604108333588,
0.043584682047367096,
-0.05063953623175621,
-0.2169364094734192,
-0.09294389188289642,
-0.1491834670305252,
0.12451985478401184,
0.11278872191905975,
0.21954967081546783,
0.45639675855636597,
-0.2264527827501297,
0.26538947224617004,
0.040526289492845535,
-0.2521405816078186,
0.10910408943891525,
-0.11130104959011078,
0.5382028222084045,
0.4217018485069275,
0.084971122443676,
-0.13754846155643463,
0.04792330786585808,
0.4025655686855316,
-0.39876890182495117,
0.0345609188079834,
0.2760672867298126,
-0.17331673204898834,
0.09936728328466415,
-0.221498042345047,
-0.10913032293319702,
-0.4937293529510498,
-0.43051621317863464,
0.05353573337197304,
0.09401645511388779,
0.09078509360551834,
0.16613565385341644,
0.16476991772651672,
0.5161485075950623,
0.09036003798246384,
0.08534209430217743,
-0.23094455897808075,
-0.09283335506916046,
0.2652718424797058,
-0.1356292963027954,
-0.31708818674087524,
0.11643726378679276,
-0.13272975385189056,
0.18824319541454315,
0.03466330096125603,
-0.2173750102519989,
-0.5696403980255127,
-0.17610688507556915,
0.21790432929992676,
-0.0343908965587616,
0.0933208167552948,
0.2699986696243286,
0.09491181373596191,
-0.15692223608493805,
-0.28458836674690247,
-0.16251792013645172,
-0.09149598330259323,
0.1541404277086258,
-0.03183005005121231,
-0.02497059665620327,
0.2786463797092438,
-0.1161089614033699,
0.13205550611019135,
-0.06656043231487274,
-0.20754365622997284,
0.38256940245628357,
-0.34809112548828125,
0.39846664667129517,
-0.0996408462524414,
-0.5201002955436707,
-0.17360714077949524,
0.035328470170497894,
-0.06093287467956543,
0.048965685069561005,
-0.17149566113948822,
-0.21662312746047974,
-0.37668749690055847,
-0.05624628812074661,
-0.3627013564109802,
-0.1873273253440857,
-0.0391593798995018,
0.15603794157505035,
-0.036883603781461716,
0.0749150961637497,
0.18881534039974213,
-0.4491065442562103,
0.05700524151325226,
-0.016951126977801323,
0.1537908911705017,
-0.08940588682889938,
-0.1648554801940918,
-0.11857452243566513,
-0.24680720269680023,
-0.28612956404685974,
0.468005508184433,
-0.14993663132190704,
-0.05639316886663437,
-0.20461562275886536,
-0.06607961654663086,
0.09054190665483475,
-0.035879213362932205,
0.5689525008201599,
-0.35037386417388916,
0.1897081881761551,
0.47682780027389526,
0.125196635723114,
-0.45688971877098083,
0.1350765824317932,
-0.43555977940559387,
0.25175896286964417,
0.2185438573360443,
0.28022757172584534,
-0.3060499429702759,
0.01913563534617424,
0.23995700478553772,
0.10264399647712708,
-0.11065822839736938,
-0.22212986648082733,
-0.22178849577903748,
-0.3183932602405548,
-0.08035434037446976,
0.04201396554708481,
-0.025292783975601196,
0.41936224699020386,
-0.09834518283605576,
-0.1282832771539688,
-0.3264187276363373,
-0.02568001113831997,
0.20259295403957367,
0.25960519909858704,
0.28942999243736267,
-0.12314940989017487,
-0.12258487194776535,
-0.08236470073461533,
0.07923268526792526,
0.13594958186149597,
0.3235683739185333,
0.07935696840286255,
-0.3446301221847534,
0.0907275378704071,
0.0888889953494072,
0.27818775177001953,
0.057361580431461334,
-0.1762593388557434,
-0.14405100047588348,
-0.08695509284734726,
0.21756219863891602,
0.006137183867394924,
0.17691808938980103,
0.254858136177063,
0.08978689461946487,
-0.3811885714530945,
-0.23075927793979645,
0.43377235531806946,
0.17661137878894806,
-0.038124144077301025,
0.29488563537597656,
0.20820653438568115,
-0.23664768040180206,
0.22609743475914001,
-0.022161314263939857,
1.0133312940597534,
0.05262403562664986,
-0.16351449489593506,
0.5793556571006775,
-0.14888888597488403,
0.5672777891159058,
-0.019949423149228096,
0.03939739242196083,
-0.331808477640152,
-0.2921087443828583,
-0.005011141300201416,
-0.1491662859916687,
0.2573118507862091,
-0.09394054859876633,
-0.6075479388237,
0.19444823265075684,
-0.39856046438217163,
0.06098191440105438,
0.007852155715227127,
-0.12741215527057648,
-0.11916835606098175,
-0.10942786931991577,
-0.34585753083229065,
0.2644387483596802,
-0.13787053525447845,
0.19162383675575256,
-0.14864704012870789,
-0.06625370681285858,
-0.08176755905151367,
-0.10981810092926025,
-0.1274237036705017,
0.043701622635126114,
-0.3669552206993103,
-0.18494080007076263,
-0.05098400264978409,
-0.16150081157684326,
-0.1080823689699173,
0.09428995847702026,
0.08131710439920425,
0.1470959335565567,
-0.2779950499534607,
0.0880824625492096,
0.08451779186725616,
0.02423790469765663,
-0.006938544102013111,
0.008547283709049225,
0.19588300585746765,
-0.03708209469914436,
-0.29435819387435913,
0.10687240213155746,
0.04578740522265434,
0.11517658829689026,
0.3087918162345886,
0.10357606410980225,
-0.06757752597332001,
-0.3244171142578125,
-0.1034836396574974,
-0.09744701534509659,
0.24810947477817535,
-0.31311047077178955,
0.2714838683605194,
0.08919992297887802,
-0.12014689296483994,
0.09994528442621231,
-0.012930911965668201,
-0.14131933450698853,
-0.08458084613084793,
0.3065216541290283,
0.2475549876689911,
0.3110373318195343,
0.06511443853378296,
0.2337537258863449,
-0.14517976343631744,
-0.37787720561027527,
0.1946112960577011,
0.12664616107940674,
-0.3094281256198883,
0.2451847940683365,
0.11320338398218155,
-0.10021395236253738,
-0.01896701380610466,
0.3583427965641022,
0.08726733177900314,
0.012129141949117184,
-0.1319916546344757,
-0.31771978735923767,
-0.22757422924041748,
0.19746582210063934,
0.12628406286239624,
0.04679343104362488,
0.04094727709889412,
0.24098651111125946,
0.21606498956680298,
-0.014947835355997086,
-0.4777272641658783,
0.02335742861032486,
-0.35480108857154846,
-0.1210959330201149,
0.05530998855829239,
-0.1312021166086197,
0.2106184959411621,
0.030774137005209923,
0.2626607120037079,
0.06113733351230621,
-0.12301628291606903,
-0.36038723587989807,
-0.11962301284074783,
0.08787943422794342,
-0.09605526924133301,
0.12124697864055634,
0.19285643100738525,
-0.06559494882822037,
-0.27370816469192505,
-0.18214711546897888,
0.06557869911193848,
-0.004897000268101692,
-0.15614837408065796,
0.07420947402715683,
0.19551607966423035,
0.30577775835990906,
0.05422215908765793,
0.07680920511484146,
0.11816984415054321,
-0.04721664637327194,
-0.0940907895565033,
0.05041639506816864,
0.011491813696920872,
-0.09162087738513947,
0.06155480444431305,
0.047316331416368484,
0.15794721245765686,
0.12042315304279327,
0.14626789093017578,
-0.14264817535877228,
-0.1761246770620346,
0.03428587317466736,
0.24583907425403595,
0.168448805809021,
-0.18265366554260254,
0.24511954188346863,
-0.20319947600364685,
0.36860162019729614,
-0.3018471896648407,
0.04486684501171112,
0.2334461659193039,
-0.005771898198872805,
0.29767295718193054,
0.14921416342258453,
-0.2892274856567383,
0.22511164844036102,
-0.15432149171829224,
0.0022288162726908922,
0.4208870530128479,
-0.08482863754034042,
0.09413304924964905,
0.2553797960281372,
-0.16174770891666412,
0.0726768970489502,
0.4207955300807953,
0.2157663255929947,
0.08089667558670044,
0.1147267147898674,
-0.012039006687700748,
0.2092013955116272,
-0.05954791232943535,
-0.00885175634175539,
0.17259807884693146,
-0.4266689121723175,
0.18628402054309845,
0.19809940457344055,
0.022372111678123474,
-0.03816479817032814,
-0.21979950368404388,
0.4153002202510834,
-0.5084767937660217,
-0.05652262270450592,
-0.3237142264842987,
0.04877626895904541,
-0.174115389585495,
0.06059838458895683,
-0.16821303963661194,
-0.12894809246063232,
-0.22656860947608948,
-0.2804173529148102,
0.13125692307949066,
-0.16091783344745636,
0.2799321711063385,
-0.1695614755153656,
0.1022944375872612,
-0.19380876421928406,
-0.06666276603937149,
0.21054889261722565,
0.16122514009475708,
-0.20317643880844116,
0.0029693921096622944,
-0.019835054874420166,
0.22439394891262054,
-0.1444881558418274,
0.47211241722106934,
0.42822155356407166,
0.255736768245697,
-0.18513785302639008,
-0.09297491610050201,
-0.006572239100933075,
-0.29343846440315247,
-0.1710650473833084,
0.09330493211746216,
0.1752072274684906,
0.17537802457809448,
0.10745733231306076,
0.3313247859477997,
-0.3341614305973053,
0.09416183829307556,
-0.02379298210144043,
-0.01389276422560215,
-0.22673554718494415,
0.38321569561958313,
-0.29475438594818115,
-0.08552508056163788,
-0.17025743424892426,
-0.13651449978351593,
-0.5748509168624878,
0.04058903455734253,
0.34194621443748474,
0.09301728755235672,
0.1262921839952469,
-0.16055063903331757,
0.15247707068920135,
-0.17488166689872742,
0.17220191657543182,
0.014829585328698158,
0.40540656447410583,
-0.258835107088089,
-0.002799279522150755,
-0.5410186648368835,
0.4275761842727661,
0.015563267283141613,
-0.15880857408046722,
0.03151369467377663,
-0.0331474207341671,
-0.1146661564707756,
-0.017911594361066818,
0.022062670439481735,
0.33603885769844055,
0.22620858252048492,
-0.02565748058259487,
-0.5814422965049744,
-0.29017019271850586,
-0.12484532594680786,
-0.27969589829444885,
0.132225900888443,
-0.2572003901004791,
-0.03584429994225502,
-0.20612569153308868,
0.21608442068099976,
-0.03793022036552429,
-0.2939601242542267,
0.0869980901479721,
0.14208373427391052,
0.6847299933433533,
0.17764292657375336,
0.405407577753067,
-0.1641920655965805,
0.03169234097003937,
0.011777215637266636,
-0.24238866567611694,
-0.10330203175544739,
0.20909057557582855,
0.07556559145450592,
0.1736914962530136,
0.012759776785969734,
0.13358047604560852,
-0.12750813364982605,
0.03202638402581215,
0.11048045009374619,
0.07010014355182648,
-0.11591397970914841,
0.2584400773048401,
-0.2325376570224762,
-0.11883361637592316,
-0.18745838105678558,
0.08073234558105469,
0.08837387710809708,
0.20767195522785187,
-0.03386932238936424,
-0.17813237011432648,
0.6508179306983948,
-0.19926972687244415,
-0.37545350193977356,
-0.0056763580068945885,
0.33302465081214905,
0.025154463946819305,
-0.18259978294372559,
-0.43308645486831665,
0.018670490011572838,
0.4222234785556793,
-0.048833850771188736,
-0.21325847506523132,
0.2750219702720642,
-0.2542452812194824,
0.039203111082315445,
-0.023349091410636902,
0.07668036222457886,
0.007115095853805542,
-0.0488666296005249,
0.16207851469516754,
-0.1435597836971283
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 43 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | [
-0.24798206984996796,
-0.32177165150642395,
0.07635016739368439,
0.47010353207588196,
0.49538153409957886,
0.018508659675717354,
0.3540441393852234,
0.061494726687669754,
0.24025826156139374,
0.3128611743450165,
-0.2764090895652771,
0.45403245091438293,
-0.06261872500181198,
0.1033329889178276,
0.1556580662727356,
-0.15578517317771912,
-0.22559542953968048,
0.16796785593032837,
-0.07798536866903305,
0.10205480456352234,
-0.49960920214653015,
-0.029346192255616188,
-0.26327720284461975,
0.19516341388225555,
-0.1559651643037796,
-0.18637101352214813,
-0.07376847416162491,
0.08071503788232803,
-0.14787432551383972,
-0.25373247265815735,
0.5681657195091248,
-0.10833819210529327,
0.21222861111164093,
0.556833803653717,
-0.00010799764277180657,
0.02232954651117325,
0.5475672483444214,
0.022291218861937523,
-0.18126267194747925,
-0.5533771514892578,
-0.17559316754341125,
-0.4152664244174957,
0.3201848268508911,
-0.3743577003479004,
-0.11459706723690033,
0.07909442484378815,
0.14598898589611053,
-0.1117732971906662,
0.3590354025363922,
0.45406395196914673,
0.28558066487312317,
0.7018623352050781,
-0.019748365506529808,
-0.3421172797679901,
0.13334639370441437,
0.05414489284157753,
-0.1285513937473297,
0.2871589958667755,
0.13716693222522736,
-0.008233876898884773,
0.4334598183631897,
-0.037331558763980865,
-0.3705084025859833,
0.09044557809829712,
0.33380526304244995,
0.017311880365014076,
0.04568199813365936,
-0.4084410071372986,
0.09899617731571198,
0.3526201844215393,
0.42913293838500977,
-0.2789866030216217,
-0.14455284178256989,
0.10621695965528488,
0.23932905495166779,
-0.061995405703783035,
0.17657943069934845,
0.07574281096458435,
-0.02981051243841648,
0.04135294631123543,
0.046387143433094025,
0.17182958126068115,
-0.27798599004745483,
0.2125989943742752,
-0.12843024730682373,
-0.03536698967218399,
-0.19327236711978912,
0.21762189269065857,
0.038036249577999115,
-0.09714075922966003,
0.031084537506103516,
-0.17658290266990662,
0.0018493636744096875,
0.14519596099853516,
-0.30745604634284973,
-0.03703894838690758,
0.1003604531288147,
0.020640376955270767,
0.21880199015140533,
-0.23972690105438232,
0.21414677798748016,
-0.08140683174133301,
0.0014894736232236028,
0.35414376854896545,
0.34627005457878113,
0.23868778347969055,
0.2158101201057434,
0.14084558188915253,
0.15175403654575348,
0.02272917702794075,
-0.17890365421772003,
0.06213974207639694,
-0.28353360295295715,
-0.04607081785798073,
0.2485663741827011,
0.2519288659095764,
0.6219196319580078,
0.02261754497885704,
-0.5257905721664429,
-0.19461606442928314,
-0.0697026327252388,
0.07446470111608505,
0.14892584085464478,
0.40442410111427307,
-0.2522181272506714,
0.07341073453426361,
0.025330672040581703,
0.2898434102535248,
-0.19493263959884644,
-0.3826383948326111,
-0.25042805075645447,
0.1526833325624466,
-0.2685994803905487,
-0.2705709934234619,
0.24026213586330414,
0.09254435449838638,
0.031247630715370178,
0.04306093230843544,
-0.2270829826593399,
0.08594415336847305,
0.16728836297988892,
-0.37100085616111755,
-0.3183165490627289,
0.20312906801700592,
0.2981906831264496,
0.013274993747472763,
0.27971118688583374,
-0.3238167464733124,
-0.045626360923051834,
0.29751983284950256,
-0.38777193427085876,
-0.12059170752763748,
-0.12639310956001282,
0.1935601383447647,
-0.3629305958747864,
-0.15650053322315216,
-0.5364288687705994,
0.08052141964435577,
0.04011783376336098,
-0.08928538858890533,
-0.05736905708909035,
-0.14254091680049896,
-0.06975629180669785,
-0.35836657881736755,
-0.05518224462866783,
0.47619202733039856,
-0.21475978195667267,
-0.22886665165424347,
-0.3011834919452667,
-0.24431908130645752,
0.3596111238002777,
-0.145555779337883,
-0.047603245824575424,
0.24565483629703522,
-0.13856184482574463,
0.01953989453613758,
0.6420369744300842,
-0.5051137804985046,
-0.2810826897621155,
0.153261199593544,
-0.11817391216754913,
-0.07644066959619522,
-0.09492310136556625,
-0.0446147657930851,
0.28639575839042664,
0.07587049901485443,
0.37161967158317566,
0.33497846126556396,
0.0008508794708177447,
-0.030564656481146812,
-0.13110771775245667,
-0.21056202054023743,
0.2909452021121979,
0.19490253925323486,
0.23611010611057281,
0.22115983068943024,
0.05453367531299591,
-0.19984737038612366,
-0.035805098712444305,
0.05276919901371002,
-0.08131740242242813,
-0.02011960931122303,
0.43555161356925964,
-0.043696776032447815,
-0.02576649747788906,
-0.5290388464927673,
-0.5686808228492737,
0.18995018303394318,
-0.08416156470775604,
0.1826203614473343,
-0.11572986096143723,
-0.06739616394042969,
-0.3040422797203064,
0.042624007910490036,
-0.07802099734544754,
-0.021745510399341583,
0.18237867951393127,
0.07941314578056335,
-0.2668652832508087,
0.05588142201304436,
-0.07700362056493759,
0.19090184569358826,
-0.1526101529598236,
0.09578125923871994,
0.12126107513904572,
0.2611953616142273,
0.10169827938079834,
-0.3987407386302948,
-0.001772368443198502,
0.13621312379837036,
0.478135883808136,
0.0183625016361475,
-0.08265755325555801,
0.17296026647090912,
0.04580989107489586,
-0.1020454615354538,
-0.21710805594921112,
-0.17620490491390228,
0.05755571648478508,
-0.33660292625427246,
-0.04476143419742584,
0.1347159743309021,
0.3460841774940491,
-0.16048195958137512,
0.08364365249872208,
0.4571967124938965,
-0.01679295115172863,
0.34218594431877136,
-0.1437789350748062,
0.24062931537628174,
0.05251658707857132,
-0.060672786086797714,
-0.13310758769512177,
0.1804715245962143,
0.1290697455406189,
0.09137464314699173,
0.28273212909698486,
-0.03558554872870445,
-0.27068206667900085,
0.004668445326387882,
0.6162093877792358,
0.029959924519062042,
0.3194146752357483,
-0.0831516832113266,
-0.337882399559021,
0.14620250463485718,
0.0000323850144923199,
0.041826941072940826,
0.5353931188583374,
0.2632283568382263,
-0.11035977303981781,
-0.01647350937128067,
0.0007062570075504482,
0.05156884342432022,
0.0333777517080307,
0.06908994913101196,
0.2856583297252655,
0.046130258589982986,
0.2759692668914795,
0.03866375982761383,
-0.20053276419639587,
0.14444826543331146,
-0.008436138741672039,
0.1951354593038559,
-0.3969618082046509,
0.18787835538387299,
-0.1423569917678833,
-0.1165725439786911,
-0.030460478737950325,
0.13702300190925598,
-0.1042252853512764,
-0.19904550909996033,
-0.31349584460258484,
0.15897805988788605,
0.2137133628129959,
0.12652559578418732,
0.16163618862628937,
0.008840071968734264,
-0.01131288893520832,
-0.0408860482275486,
-0.1634950041770935,
-0.14585871994495392,
-0.1861838698387146,
0.04621656984090805,
0.19469743967056274,
0.07352609932422638,
0.34953728318214417,
-0.19005544483661652,
0.12456810474395752,
-0.10004867613315582,
-0.12407178431749344,
0.018916437402367592,
-0.0774426981806755,
0.5409654974937439,
0.2683838903903961,
0.25948968529701233,
-0.16248182952404022,
0.11941125243902206,
0.3791872560977936,
-0.4782694876194,
-0.051207542419433594,
0.33303582668304443,
-0.3349434733390808,
0.09676375985145569,
-0.21212196350097656,
-0.318637877702713,
-0.5942171216011047,
-0.3938199281692505,
0.2054920345544815,
-0.012952362187206745,
0.06968706101179123,
0.32936596870422363,
0.10264100134372711,
0.4716496765613556,
0.2177550345659256,
0.09161064773797989,
-0.18446332216262817,
-0.03420252725481987,
0.27942538261413574,
-0.13466748595237732,
-0.3884645104408264,
0.1575421243906021,
-0.09710296243429184,
0.2852425277233124,
0.07990889251232147,
-0.12456454336643219,
-0.26306140422821045,
-0.0669114962220192,
0.19757521152496338,
-0.12467063963413239,
-0.12070716172456741,
0.32315391302108765,
-0.08457601070404053,
-0.04699477180838585,
-0.21153497695922852,
-0.12139583379030228,
-0.048224933445453644,
0.33190399408340454,
-0.007172414101660252,
0.09451635926961899,
0.3415934145450592,
-0.16240322589874268,
0.33099326491355896,
-0.08682924509048462,
-0.03939695656299591,
0.4093081057071686,
-0.3032315969467163,
0.27769985795021057,
-0.09659327566623688,
-0.4811325967311859,
0.007316079456359148,
0.056348398327827454,
0.06938253343105316,
0.07898087054491043,
-0.27152127027511597,
-0.2479570209980011,
-0.31754767894744873,
-0.2529805600643158,
-0.4196512699127197,
-0.07618498057126999,
-0.09406266361474991,
0.17806987464427948,
0.00900423713028431,
0.1709623634815216,
0.18896882236003876,
-0.43533480167388916,
-0.1018507108092308,
0.0006977568264119327,
0.2376156747341156,
0.014692919328808784,
-0.11296167224645615,
-0.26121050119400024,
-0.23404768109321594,
-0.313987135887146,
0.3455926775932312,
-0.25579380989074707,
0.08330120891332626,
-0.14002899825572968,
0.08952226489782333,
0.18896198272705078,
0.0027528025675565004,
0.7596028447151184,
-0.18230779469013214,
0.2290211170911789,
0.3868350386619568,
0.20177331566810608,
-0.6543717384338379,
-0.02793934941291809,
-0.29241761565208435,
0.3361037075519562,
0.0906110554933548,
0.39593634009361267,
-0.4269512891769409,
-0.044388700276613235,
0.15252503752708435,
0.031496088951826096,
-0.09392283111810684,
-0.24251478910446167,
-0.268761545419693,
-0.3051566183567047,
-0.008727289736270905,
0.021820509806275368,
0.009019298478960991,
0.43496638536453247,
-0.17009933292865753,
-0.12759838998317719,
-0.40858718752861023,
0.16029255092144012,
0.11261460185050964,
-0.02537015825510025,
0.2526397407054901,
-0.056814972311258316,
-0.009302422404289246,
0.06357280910015106,
-0.007794007658958435,
0.11484553664922714,
0.358215868473053,
0.027281221002340317,
-0.4528542160987854,
0.2615329623222351,
-0.021164219826459885,
0.24439899623394012,
0.07095752656459808,
-0.1279030293226242,
-0.08519960939884186,
0.008784545585513115,
0.07800427079200745,
-0.014175556600093842,
0.09054675698280334,
0.342508465051651,
0.03830486908555031,
-0.3234170377254486,
-0.40452316403388977,
0.2545500099658966,
0.3031945824623108,
0.04014188423752785,
0.3135277330875397,
0.008307420648634434,
-0.1673143208026886,
0.061058610677719116,
-0.134674072265625,
0.8996838927268982,
-0.060540344566106796,
-0.10178525000810623,
0.6653994917869568,
-0.24445490539073944,
0.47850489616394043,
0.030294982716441154,
0.0903266966342926,
-0.2928253710269928,
-0.27005496621131897,
-0.015569173730909824,
-0.2568272352218628,
0.2637600898742676,
0.08154980093240738,
-0.43049973249435425,
0.30036094784736633,
-0.29111576080322266,
0.20780888199806213,
0.0213774424046278,
-0.05440041422843933,
-0.0608651302754879,
-0.1126742884516716,
-0.3436707556247711,
0.16298051178455353,
-0.26640769839286804,
0.26880788803100586,
-0.11475080996751785,
-0.14413318037986755,
-0.03311863914132118,
-0.07534358650445938,
-0.12978693842887878,
0.15657630562782288,
-0.3821195065975189,
-0.16315162181854248,
0.11582645028829575,
-0.20061351358890533,
0.07688455283641815,
0.18196804821491241,
0.07397870719432831,
-0.10281237959861755,
-0.3268235921859741,
0.17889849841594696,
-0.07588367909193039,
0.13643360137939453,
-0.08784178644418716,
0.0000824028902570717,
0.2469838410615921,
-0.1007041335105896,
-0.3328215479850769,
0.12364108860492706,
-0.06408071517944336,
0.21982310712337494,
0.28992846608161926,
0.18027882277965546,
-0.07299689948558807,
-0.26217174530029297,
-0.2122359424829483,
-0.17995093762874603,
0.3643169701099396,
-0.27591535449028015,
0.19591890275478363,
0.009252422489225864,
-0.10245128720998764,
0.0800815299153328,
-0.05071089044213295,
-0.1253608614206314,
0.008854432962834835,
0.48733609914779663,
0.4263879358768463,
0.2872931659221649,
0.26606521010398865,
0.2743075489997864,
-0.08068211376667023,
-0.35622668266296387,
0.28289854526519775,
0.11645623296499252,
-0.33516964316368103,
0.30599525570869446,
0.1482209712266922,
0.011609633453190327,
0.016137175261974335,
0.4952471852302551,
0.025640616193413734,
-0.0226025078445673,
-0.07561516016721725,
-0.2714717388153076,
-0.2940613925457001,
0.21104644238948822,
0.007054061163216829,
-0.04866597056388855,
0.1137511283159256,
0.1883585900068283,
0.2880290150642395,
-0.15383407473564148,
-0.3571675419807434,
0.12020973116159439,
-0.3974451720714569,
-0.026375729590654373,
0.02202376164495945,
-0.08833752572536469,
0.2679445743560791,
0.07432808727025986,
0.1367657333612442,
-0.006333031225949526,
-0.11593731492757797,
-0.24850377440452576,
-0.22176490724086761,
0.13630884885787964,
-0.027841370552778244,
0.1512163132429123,
0.15154458582401276,
-0.2163800448179245,
-0.28096744418144226,
-0.01290583424270153,
0.046900078654289246,
0.02016557939350605,
-0.17441551387310028,
0.05058317258954048,
0.19102196395397186,
0.39781543612480164,
-0.021782640367746353,
0.28270405530929565,
-0.0067477053962647915,
0.034539755433797836,
-0.1433788388967514,
0.02376832813024521,
0.20309072732925415,
0.025237523019313812,
-0.20873695611953735,
-0.06448923051357269,
0.2508503794670105,
0.16761933267116547,
0.09408586472272873,
-0.3053336441516876,
-0.12315527349710464,
-0.09764456748962402,
0.0022102119401097298,
0.13086029887199402,
-0.1723630577325821,
0.2990865111351013,
-0.11031651496887207,
0.2701035141944885,
-0.2779802083969116,
0.05242554098367691,
0.32695725560188293,
-0.12120896577835083,
0.06788117438554764,
0.028345732018351555,
-0.32222023606300354,
0.20129793882369995,
-0.11265112459659576,
0.15114709734916687,
0.4406096637248993,
-0.12479054927825928,
0.0929894745349884,
0.21740317344665527,
-0.11620534211397171,
-0.01579034887254238,
0.46070194244384766,
0.20200133323669434,
0.039333708584308624,
0.14204691350460052,
0.022632841020822525,
0.03663678467273712,
-0.04828637093305588,
0.10632070153951645,
0.282798171043396,
-0.4781709909439087,
0.003583443583920598,
0.10940317064523697,
-0.001719245221465826,
-0.09504171460866928,
-0.31514737010002136,
0.5316861271858215,
-0.47294607758522034,
-0.12424275279045105,
-0.2933814525604248,
-0.007863259874284267,
-0.18876755237579346,
0.14117220044136047,
-0.19200271368026733,
-0.13009929656982422,
-0.0960247740149498,
-0.19645152986049652,
0.003972665406763554,
-0.1452820599079132,
0.2983596622943878,
-0.12987904250621796,
-0.06219573691487312,
-0.15632539987564087,
-0.07531516999006271,
0.4235469400882721,
-0.04837707430124283,
-0.1696939617395401,
0.07147511839866638,
-0.1513213813304901,
0.21569383144378662,
-0.09761238098144531,
0.5807608366012573,
0.3321210443973541,
0.3286685645580292,
-0.21318423748016357,
-0.16956785321235657,
0.25452688336372375,
-0.3181825280189514,
-0.107087641954422,
0.15483728051185608,
0.1585802137851715,
0.16061155498027802,
0.07852127403020859,
0.20667073130607605,
-0.22414326667785645,
0.14201898872852325,
0.043659839779138565,
-0.14479251205921173,
-0.31882449984550476,
0.4858051538467407,
-0.3899848759174347,
-0.1255374550819397,
-0.1277063488960266,
-0.074474036693573,
-0.5568335056304932,
0.1190805658698082,
0.27113592624664307,
0.21955806016921997,
0.09889120608568192,
-0.1955021619796753,
0.09587029367685318,
-0.3225295841693878,
0.2215006947517395,
0.020388159900903702,
0.3648219108581543,
-0.31445449590682983,
0.11566319316625595,
-0.5239735245704651,
0.45923104882240295,
-0.010784702375531197,
0.010512219741940498,
0.15419434010982513,
-0.0931214839220047,
-0.26544061303138733,
-0.0039146458730101585,
0.030693858861923218,
0.20476028323173523,
0.3998900055885315,
0.14539068937301636,
-0.5745070576667786,
-0.39090925455093384,
-0.04773782938718796,
-0.07274521142244339,
0.09164867550134659,
-0.26210030913352966,
0.012926728464663029,
-0.1517876237630844,
0.023295603692531586,
-0.11175136268138885,
-0.32035690546035767,
0.15119744837284088,
0.14068932831287384,
0.7023333311080933,
0.04464363679289818,
0.4411260187625885,
0.028585970401763916,
-0.01171240583062172,
0.12163615226745605,
-0.30795910954475403,
-0.10504589229822159,
0.176432266831398,
-0.004793047439306974,
0.05286649242043495,
-0.02099372260272503,
0.27261897921562195,
-0.2175624519586563,
-0.18123243749141693,
-0.1439598649740219,
0.12817317247390747,
-0.30535292625427246,
0.31196829676628113,
-0.3086755573749542,
-0.1393730640411377,
-0.34222182631492615,
-0.005794087890535593,
0.11767154932022095,
0.045272573828697205,
-0.1081116646528244,
0.04936075955629349,
0.6277846693992615,
-0.1653216928243637,
-0.34403789043426514,
-0.10382470488548279,
0.312897652387619,
-0.03598739951848984,
-0.11266227066516876,
-0.5198076367378235,
0.0568196102976799,
0.48524174094200134,
-0.06891515851020813,
-0.19220218062400818,
0.23418733477592468,
-0.14151856303215027,
0.13243824243545532,
-0.021422091871500015,
-0.09415701031684875,
-0.00955082569271326,
-0.03140862286090851,
0.2175460010766983,
-0.1435791403055191
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 41 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 27 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 40 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 191 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 23 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | [
-0.41715309023857117,
-0.24179017543792725,
0.00040658400394022465,
0.19366706907749176,
0.18737895786762238,
0.05720418691635132,
0.5056345462799072,
0.10599525272846222,
0.1942840963602066,
0.13533508777618408,
0.06983118504285812,
0.12972164154052734,
-0.2097095400094986,
0.3238828182220459,
0.0893104299902916,
0.07877951860427856,
0.021081285551190376,
0.15888874232769012,
0.03357650712132454,
0.07740527391433716,
-0.21570256352424622,
0.20281440019607544,
-0.3865995407104492,
-0.33394521474838257,
-0.13239850103855133,
0.14632610976696014,
0.11002583056688309,
0.14852973818778992,
0.1753474622964859,
-0.6307140588760376,
0.2604338228702545,
0.07757440209388733,
0.22291620075702667,
0.7022693157196045,
-0.00011092249042121693,
0.18078461289405823,
0.4209490418434143,
-0.13875649869441986,
-0.5919356942176819,
-0.29539811611175537,
-0.36836162209510803,
-0.31845641136169434,
0.17475271224975586,
-0.14602063596248627,
-0.11559835821390152,
0.04162964969873428,
-0.26451534032821655,
-0.40169858932495117,
0.2196304351091385,
0.4454619586467743,
0.21177871525287628,
0.47129538655281067,
-0.15099285542964935,
-0.12801237404346466,
0.12740986049175262,
0.008658533915877342,
-0.15276338160037994,
0.2987457811832428,
0.0759948343038559,
0.2464786320924759,
-0.03018503077328205,
0.4006466865539551,
-0.04774824529886246,
0.19309401512145996,
0.21724161505699158,
-0.04031161963939667,
-0.06384062767028809,
-0.2730311155319214,
0.07796832174062729,
0.22671879827976227,
0.3892456591129303,
-0.3428209722042084,
-0.13722571730613708,
-0.4340852200984955,
-0.05501970276236534,
-0.40577855706214905,
0.2461041957139969,
-0.012055731378495693,
-0.24029339849948883,
0.0848756730556488,
-0.3027442395687103,
0.15291649103164673,
0.03936399891972542,
-0.10083986818790436,
-0.05831418186426163,
0.1315542757511139,
-0.025935713201761246,
0.17684702575206757,
-0.018286816775798798,
-0.039454784244298935,
0.11861874163150787,
-0.2750139832496643,
-0.07704474776983261,
0.19798284769058228,
-0.57968670129776,
0.061747074127197266,
0.3563537299633026,
-0.48312047123908997,
0.2248358428478241,
0.0766405463218689,
0.3723810911178589,
0.08084513992071152,
0.1294206827878952,
-0.005417474079877138,
0.39903566241264343,
0.20174115896224976,
0.18393971025943756,
-0.24463829398155212,
0.1665528118610382,
0.35142266750335693,
-0.004633336327970028,
-0.30920153856277466,
0.04556441307067871,
-0.09289561212062836,
0.26233378052711487,
0.01355967577546835,
0.3132420480251312,
0.05227823182940483,
-0.37590429186820984,
0.198440819978714,
-0.2598961889743805,
0.06216394156217575,
0.3526676297187805,
0.24700766801834106,
0.31240975856781006,
0.33168157935142517,
-0.1649698168039322,
0.25666335225105286,
-0.1701623946428299,
-0.4501439034938812,
-0.2399168312549591,
-0.31156858801841736,
0.02989817224442959,
0.05853245034813881,
0.24302884936332703,
-0.4115731120109558,
0.21278652548789978,
0.11438438296318054,
0.2314707189798355,
-0.15083234012126923,
0.23506546020507812,
-0.35599517822265625,
0.27147528529167175,
0.41706129908561707,
0.21322444081306458,
0.3055964410305023,
0.2130858600139618,
-0.07812131196260452,
0.08656087517738342,
0.12929806113243103,
-0.013573872856795788,
-0.3794959485530853,
0.11882951855659485,
0.24181634187698364,
-0.18547038733959198,
0.009184594266116619,
-0.16261836886405945,
0.34210899472236633,
0.049259308725595474,
-0.4903986155986786,
0.10061554610729218,
-0.13931997120380402,
-0.17882052063941956,
-0.13887253403663635,
0.37678128480911255,
0.4191720485687256,
-0.31634849309921265,
-0.06317540258169174,
-0.2223779261112213,
-0.19334569573402405,
0.30681878328323364,
0.06270324438810349,
-0.18674828112125397,
0.05459822341799736,
-0.19890767335891724,
-0.03240244463086128,
0.1652611494064331,
-0.13382355868816376,
-0.45056283473968506,
0.3839796185493469,
-0.10031872242689133,
0.42168349027633667,
0.0033681727945804596,
0.03489576280117035,
0.04621269926428795,
-0.11796580255031586,
0.20823653042316437,
-0.04822007566690445,
-0.3429862856864929,
0.13017043471336365,
-0.20632846653461456,
0.09627878665924072,
0.1745319962501526,
0.026337280869483948,
0.10805507004261017,
0.14567777514457703,
0.11641530692577362,
-0.03076109290122986,
0.19643563032150269,
-0.04401058331131935,
0.0053360313177108765,
0.2909404933452606,
0.04242423549294472,
-0.058817893266677856,
0.0003673032042570412,
-0.18107162415981293,
-0.47020140290260315,
0.3554166853427887,
0.22764310240745544,
0.02655346691608429,
0.06789769232273102,
0.03773067146539688,
-0.304653137922287,
0.14193573594093323,
-0.27117472887039185,
-0.47715896368026733,
0.1949528604745865,
0.3907286524772644,
-0.11184941232204437,
0.08882585167884827,
-0.2773432731628418,
0.3020513653755188,
-0.16964943706989288,
-0.10022318363189697,
-0.15285223722457886,
0.12631331384181976,
0.13407239317893982,
-0.3565649390220642,
-0.03373589366674423,
0.08978763967752457,
0.25191250443458557,
-0.1344926357269287,
-0.23499958217144012,
0.4969184696674347,
0.1069905161857605,
0.06999105215072632,
-0.07817380130290985,
-0.1732121855020523,
0.19722099602222443,
-0.1314566731452942,
-0.23216558992862701,
0.47242146730422974,
0.3397764265537262,
-0.243485689163208,
-0.13933420181274414,
0.1867935061454773,
-0.2051783949136734,
0.2564637064933777,
-0.06942067295312881,
0.09129379689693451,
0.32833054661750793,
0.3197958171367645,
-0.09283771365880966,
-0.021259471774101257,
0.20771880447864532,
-0.1777404397726059,
0.10312395542860031,
-0.161092147231102,
-0.25325918197631836,
-0.04286229982972145,
0.19462500512599945,
0.19555352628231049,
0.04065607488155365,
0.052975330501794815,
-0.3236098885536194,
-0.2086990773677826,
0.37065988779067993,
0.08802083879709244,
0.4839419424533844,
0.07912077009677887,
0.2721225321292877,
0.09226405620574951,
-0.010665841400623322,
-0.12633217871189117,
0.2971055805683136,
0.07523923367261887,
0.09849712997674942,
0.36037570238113403,
0.24974599480628967,
-0.12042846530675888,
-0.40167826414108276,
-0.22516568005084991,
0.13589893281459808,
0.1336640864610672,
-0.30523526668548584,
0.029769495129585266,
-0.12822243571281433,
-0.27484366297721863,
0.11330725252628326,
-0.4021541476249695,
-0.22254438698291779,
-0.3337675631046295,
-0.2058945894241333,
0.34512388706207275,
-0.1469641774892807,
0.14989931881427765,
-0.18047548830509186,
-0.08826766163110733,
0.30825772881507874,
-0.003116339212283492,
-0.23223616182804108,
-0.11356205493211746,
-0.25948289036750793,
0.032140787690877914,
0.04128090292215347,
-0.32347914576530457,
0.43474847078323364,
-0.1234988123178482,
-0.1801847517490387,
-0.15129417181015015,
-0.07454528659582138,
0.17409053444862366,
0.04358557239174843,
0.20013993978500366,
0.27433910965919495,
0.2197587788105011,
0.03922165557742119,
0.0045698885805904865,
0.42418643832206726,
-0.29190149903297424,
0.01464381255209446,
0.37620753049850464,
0.2012004554271698,
0.2666827142238617,
-0.22972649335861206,
-0.24903176724910736,
-0.07797166705131531,
-0.4310798943042755,
-0.1742306649684906,
-0.022772211581468582,
0.027363456785678864,
0.4507271349430084,
0.26248446106910706,
0.38919883966445923,
0.31276458501815796,
-0.05663137882947922,
-0.3348742723464966,
-0.34751805663108826,
0.13222342729568481,
-0.19747620820999146,
-0.40971893072128296,
0.11449357122182846,
0.0011452725157141685,
0.16648481786251068,
0.2781512439250946,
-0.30129918456077576,
0.0803641751408577,
-0.040836188942193985,
0.11887402087450027,
-0.05930204316973686,
-0.11201196908950806,
0.1432751566171646,
-0.06137792393565178,
-0.1019272431731224,
-0.33384159207344055,
-0.18509197235107422,
-0.12761527299880981,
-0.15296027064323425,
0.23241116106510162,
0.03818400576710701,
0.5950304269790649,
0.2077816128730774,
0.5280629992485046,
0.4836459159851074,
0.05819706618785858,
0.6157110929489136,
-0.2377377599477768,
0.21612906455993652,
-0.36735567450523376,
-0.35030731558799744,
0.2225523293018341,
-0.008588063530623913,
-0.132083460688591,
0.2081880420446396,
-0.147054061293602,
-0.2681727707386017,
-0.2567494213581085,
0.035103555768728256,
-0.06477009505033493,
-0.1755143404006958,
0.051221780478954315,
-0.2642837464809418,
0.30241167545318604,
0.03593255206942558,
0.20614418387413025,
-0.24645671248435974,
-0.0574941411614418,
-0.23733927309513092,
0.07608060538768768,
-0.004537119064480066,
0.0064088646322488785,
-0.29676544666290283,
0.021466443315148354,
-0.5252019166946411,
0.3021188974380493,
0.22278805077075958,
0.615446925163269,
-0.0391719788312912,
-0.20886963605880737,
0.045049477368593216,
0.011758105829358101,
0.5304383039474487,
-0.3789149522781372,
-0.024058494716882706,
0.2964755594730377,
-0.09507744759321213,
-0.40738120675086975,
-0.11024510115385056,
-0.23251833021640778,
0.3465292751789093,
0.2328929603099823,
0.14283499121665955,
-0.2224261462688446,
-0.08862261474132538,
0.13660810887813568,
0.13600285351276398,
-0.07512563467025757,
-0.18465076386928558,
-0.22789515554904938,
-0.22022247314453125,
-0.19454549252986908,
-0.12673766911029816,
0.08430096507072449,
0.24322529137134552,
-0.1949770152568817,
-0.08503545075654984,
-0.10335536301136017,
0.02889864891767502,
0.08444897085428238,
0.1044178456068039,
0.37885716557502747,
0.09033607691526413,
0.23108740150928497,
0.3695777952671051,
0.10157188773155212,
0.3100067675113678,
0.5074753761291504,
0.4065583348274231,
-0.3184792101383209,
0.20455965399742126,
0.0775870606303215,
0.08565302193164825,
0.2882384657859802,
-0.11168362200260162,
-0.02763178013265133,
0.07771781831979752,
0.09345727413892746,
-0.28949257731437683,
0.19438061118125916,
0.24492277204990387,
-0.05395379289984703,
-0.14954309165477753,
-0.5760566592216492,
0.3336382210254669,
0.030438585206866264,
0.018375419080257416,
0.3064618706703186,
-0.24649283289909363,
-0.26057326793670654,
-0.03522946685552597,
-0.054651349782943726,
0.4981875419616699,
0.13433332741260529,
0.06615697592496872,
0.42671775817871094,
-0.2779954969882965,
0.21073675155639648,
-0.1438206136226654,
0.2207975685596466,
-0.18793463706970215,
-0.39195773005485535,
-0.09410279989242554,
-0.10854118317365646,
0.054099760949611664,
-0.0021505565382540226,
-0.22879110276699066,
0.2563300132751465,
0.02457515336573124,
0.2516515254974365,
0.032138392329216,
0.0513758659362793,
-0.4211881458759308,
-0.104437455534935,
-0.2310299426317215,
0.22668839991092682,
0.03917424753308296,
0.0595654621720314,
-0.19654981791973114,
-0.15114521980285645,
0.20585842430591583,
-0.3431110084056854,
-0.2650856077671051,
-0.0005396021879278123,
-0.25712648034095764,
0.030490536242723465,
-0.07895004749298096,
-0.558648407459259,
-0.009274891577661037,
0.16463831067085266,
-0.11657445132732391,
-0.25749722123146057,
-0.16036175191402435,
0.07319051027297974,
0.18230676651000977,
0.4032895863056183,
-0.030459705740213394,
0.16472658514976501,
0.3220484256744385,
-0.015689792111516,
-0.12030352652072906,
0.17139507830142975,
-0.2056288868188858,
-0.13868348300457,
0.07920437306165695,
0.05253029614686966,
0.14775362610816956,
-0.19502848386764526,
0.07209830731153488,
-0.12445320934057236,
0.06107950955629349,
-0.2714117765426636,
0.1379992663860321,
-0.052292775362730026,
-0.24431036412715912,
-0.07188547402620316,
-0.1764228343963623,
-0.10695697367191315,
-0.1404852569103241,
0.39656248688697815,
-0.12225700914859772,
0.26397940516471863,
0.5979732275009155,
0.26283520460128784,
-0.06992239505052567,
-0.22390420734882355,
0.2011469602584839,
0.0665028840303421,
-0.25916770100593567,
0.3576519787311554,
-0.0661284551024437,
-0.008415335789322853,
-0.06895504891872406,
0.3735855519771576,
-0.013727688230574131,
-0.06530103832483292,
-0.14254803955554962,
-0.22765737771987915,
-0.33909446001052856,
-0.0766487866640091,
-0.0648033395409584,
0.18094763159751892,
-0.06148712709546089,
0.020504320040345192,
0.34409427642822266,
-0.24832914769649506,
-0.33736392855644226,
-0.22064824402332306,
-0.22573240101337433,
0.13675695657730103,
-0.1156359538435936,
0.0903354212641716,
0.2451532632112503,
-0.02453644573688507,
0.140175461769104,
0.1833450347185135,
-0.06546857953071594,
-0.2514531910419464,
-0.07216493040323257,
0.09109700471162796,
-0.012687336653470993,
-0.21201397478580475,
-0.10044477880001068,
0.06918221712112427,
-0.30665886402130127,
-0.31496429443359375,
0.25425466895103455,
0.026187028735876083,
-0.06484995037317276,
0.33394646644592285,
0.12089401483535767,
0.22691266238689423,
-0.24580109119415283,
-0.0012789851753041148,
-0.049291349947452545,
-0.07142286747694016,
-0.26540058851242065,
0.14349527657032013,
0.07414510846138,
0.018653566017746925,
-0.013711117208003998,
-0.030239880084991455,
-0.03590702265501022,
-0.09589795023202896,
0.3457254469394684,
-0.3809928596019745,
0.19852164387702942,
0.2853870987892151,
0.43267130851745605,
0.3073013424873352,
-0.2745678126811981,
-0.06012983247637749,
-0.028383327648043633,
0.21372218430042267,
-0.2702536880970001,
0.10478952527046204,
-0.1389293223619461,
0.3404974043369293,
0.1812908947467804,
0.12345419824123383,
0.04296189919114113,
-0.28001633286476135,
0.07717388868331909,
0.17459329962730408,
0.07684162259101868,
-0.1775950938463211,
0.21294377744197845,
0.4377642273902893,
-0.16202008724212646,
0.16365011036396027,
-0.09750203788280487,
0.05714438483119011,
0.012012782506644726,
0.44373175501823425,
-0.07662969827651978,
0.16321289539337158,
0.20374231040477753,
-0.13655494153499603,
-0.051056601107120514,
-0.31396621465682983,
-0.22318975627422333,
0.29328498244285583,
-0.1478383094072342,
0.22116535902023315,
0.060755785554647446,
0.1148490235209465,
-0.24398256838321686,
0.12409704178571701,
-0.3192916512489319,
-0.08080070465803146,
-0.1555946171283722,
0.04697585478425026,
-0.17812946438789368,
-0.12487361580133438,
-0.2028401494026184,
-0.13352611660957336,
0.15048712491989136,
0.12903864681720734,
0.3712654709815979,
0.043259162455797195,
-0.007196146994829178,
-0.6050089001655579,
-0.066222183406353,
0.32568928599357605,
0.0365515872836113,
-0.22667141258716583,
0.23770266771316528,
0.4254244863986969,
0.09024259448051453,
0.38429751992225647,
0.37267810106277466,
0.3797657787799835,
0.33745694160461426,
-0.06667174398899078,
0.11292333900928497,
0.15434898436069489,
-0.16488415002822876,
-0.27628785371780396,
0.1785655915737152,
-0.04581556096673012,
0.2733045518398285,
0.3034489154815674,
0.12707065045833588,
-0.14464181661605835,
0.11705503612756729,
0.044993333518505096,
0.057573262602090836,
-0.6023667454719543,
0.42659780383110046,
-0.4701410233974457,
0.018530217930674553,
-0.12080235034227371,
-0.12038066238164902,
-0.2376077026128769,
0.08212561160326004,
0.2865523099899292,
0.040010858327150345,
0.22747503221035004,
-0.09906136244535446,
0.10672982782125473,
-0.12554043531417847,
0.24466660618782043,
-0.002738072071224451,
-0.2558124363422394,
-0.20280590653419495,
-0.1672922968864441,
-0.8009278178215027,
0.014877790585160255,
0.08567272871732712,
-0.10914067178964615,
0.1444784551858902,
0.19897691905498505,
-0.11894761770963669,
0.24640174210071564,
0.38796302676200867,
-0.23398810625076294,
-0.13093923032283783,
0.3268939256668091,
-0.19536064565181732,
-0.407942533493042,
-0.44590795040130615,
-0.025074593722820282,
-0.012066005729138851,
-0.24298110604286194,
0.26506146788597107,
-0.2226768136024475,
0.14528949558734894,
0.12097504734992981,
-0.02839241363108158,
0.11598433554172516,
-0.004181554075330496,
0.3461863398551941,
0.16728228330612183,
0.3141985833644867,
-0.14469362795352936,
0.17871537804603577,
-0.3299390971660614,
-0.10003551840782166,
-0.3050258159637451,
0.3060719668865204,
-0.11265870928764343,
0.4945882260799408,
-0.12337798625230789,
-0.012498928233981133,
-0.16372554004192352,
0.21081438660621643,
0.2584312856197357,
-0.26673850417137146,
-0.3577258884906769,
0.2748014032840729,
-0.27988260984420776,
0.2512662708759308,
0.03180021420121193,
0.36522677540779114,
-0.036518823355436325,
0.13531610369682312,
-0.26973459124565125,
-0.5320447087287903,
0.44577211141586304,
-0.430879682302475,
-0.3953136205673218,
-0.06510084122419357,
0.18633808195590973,
0.24522174894809723,
-0.25559160113334656,
-0.35183778405189514,
0.12357164919376373,
0.35647767782211304,
-0.13010455667972565,
-0.2069168984889984,
-0.007076887413859367,
-0.11551548540592194,
0.05436753109097481,
-0.07792138308286667,
0.14564204216003418,
0.16641277074813843,
-0.15768466889858246,
0.2604365348815918,
-0.06450649350881577
] |
https://github.com/huggingface/datasets/issues/2860 | Cannot download TOTTO dataset | Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
| 20 | Cannot download TOTTO dataset
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | [
-0.2944106459617615,
0.39009320735931396,
-0.1317223310470581,
0.06419692188501358,
0.4353683292865753,
0.13932830095291138,
0.16796351969242096,
0.5879850387573242,
-0.026145748794078827,
0.23434150218963623,
-0.1947769969701767,
-0.04730912670493126,
0.059417035430669785,
0.3187088072299957,
0.06436004489660263,
-0.30841073393821716,
0.06527971476316452,
-0.013006225228309631,
-0.13955216109752655,
0.03085394948720932,
-0.07597991079092026,
0.27826204895973206,
0.01002630777657032,
0.06546451151371002,
0.018108949065208435,
0.09367073327302933,
-0.02909262664616108,
-0.09794454276561737,
-0.26863813400268555,
-0.43473711609840393,
0.4153386056423187,
0.06137531250715256,
0.1697377860546112,
0.38088512420654297,
-0.00010737672710092738,
0.14723296463489532,
0.329101026058197,
0.008616631850600243,
-0.2500195801258087,
-0.35319510102272034,
-0.3288860619068146,
-0.11417602002620697,
-0.1965034455060959,
-0.14808082580566406,
-0.08305295556783676,
0.21273665130138397,
0.20388253033161163,
-0.26071274280548096,
0.04171616956591606,
0.5573633909225464,
0.2718278765678406,
0.09077470749616623,
0.30793699622154236,
-0.36477142572402954,
0.2657267153263092,
0.14753945171833038,
-0.03651609271764755,
0.07056326419115067,
0.07858951389789581,
0.010867023840546608,
0.35628175735473633,
0.04600008949637413,
-0.1339970827102661,
0.07433108985424042,
-0.1553674042224884,
-0.08402270823717117,
-0.0924820527434349,
-0.34242305159568787,
0.21414032578468323,
0.30737757682800293,
0.5096560120582581,
-0.20446529984474182,
-0.36116477847099304,
0.22677814960479736,
-0.059862375259399414,
-0.27954837679862976,
0.2698041796684265,
0.18022236227989197,
0.09009113162755966,
0.16981835663318634,
0.17325714230537415,
-0.4855842888355255,
-0.1890133172273636,
0.05286508426070213,
-0.4141792058944702,
0.1076045110821724,
-0.1177639439702034,
0.004858619067817926,
-0.10592158883810043,
-0.12039383500814438,
0.30164554715156555,
-0.05479191616177559,
-0.037560656666755676,
0.25901272892951965,
-0.2745461165904999,
-0.18414707481861115,
0.10355709493160248,
0.031148293986916542,
0.19200564920902252,
0.04906849190592766,
0.1362316608428955,
-0.10176494717597961,
-0.506201446056366,
-0.06661389023065567,
0.24186891317367554,
-0.1095382422208786,
-0.00026714298292063177,
0.38041171431541443,
0.2949267029762268,
0.24163612723350525,
0.14843343198299408,
0.047314099967479706,
-0.15863363444805145,
-0.3586917817592621,
0.0269328523427248,
-0.11310430616140366,
0.4928358495235443,
-0.20854222774505615,
-0.3899926245212555,
0.1616978496313095,
-0.09008180350065231,
-0.12147466093301773,
-0.017612172290682793,
0.15179483592510223,
-0.024420449510216713,
0.07535818219184875,
0.09186966717243195,
0.14045487344264984,
-0.00887113343924284,
-0.1377052515745163,
-0.2660999596118927,
0.20414449274539948,
-0.012520245276391506,
0.07130278646945953,
0.23099981248378754,
-0.34486743807792664,
0.09529972076416016,
-0.02589189074933529,
-0.462483286857605,
0.082834392786026,
-0.13615313172340393,
-0.07501622289419174,
-0.245877206325531,
0.3632286489009857,
0.22659064829349518,
0.10456519573926926,
0.0013822030741721392,
0.11344003677368164,
-0.29497820138931274,
0.27925601601600647,
-0.3678756058216095,
-0.06788945198059082,
-0.12277700006961823,
0.2941952645778656,
-0.32272768020629883,
-0.2466394007205963,
-0.5071801543235779,
-0.03396503999829292,
-0.052503906190395355,
-0.30569323897361755,
-0.12345948070287704,
-0.1745041459798813,
-0.18053469061851501,
-0.251517653465271,
0.1124923899769783,
0.601351797580719,
-0.20639091730117798,
0.020885493606328964,
-0.419662743806839,
-0.42012694478034973,
0.18996387720108032,
0.2693204879760742,
-0.03414035588502884,
0.4477235972881317,
-0.302584707736969,
0.08851815015077591,
0.43920770287513733,
-0.12548360228538513,
-0.7618817090988159,
-0.0033204855863004923,
-0.25966864824295044,
-0.18988721072673798,
0.17900174856185913,
0.0790313109755516,
0.24975132942199707,
-0.10000558197498322,
0.24605749547481537,
0.13707461953163147,
0.012917675077915192,
-0.04594733566045761,
-0.23870019614696503,
-0.010564455762505531,
-0.004589315038174391,
0.18394140899181366,
0.10487770289182663,
0.20509806275367737,
0.15016746520996094,
-0.07256808876991272,
0.2357555478811264,
0.1607334315776825,
0.09941539168357849,
0.3408912420272827,
0.3313900828361511,
-0.02651359885931015,
-0.01994452252984047,
-0.18357504904270172,
-0.19925984740257263,
0.12322881072759628,
-0.21627822518348694,
0.10841518640518188,
-0.20868068933486938,
-0.1304648071527481,
-0.44674158096313477,
0.059462375938892365,
-0.0653844028711319,
-0.09304281324148178,
0.14991672337055206,
-0.0002757063484750688,
0.31073635816574097,
0.33210739493370056,
-0.020356198772788048,
0.3206823766231537,
0.26770302653312683,
0.10301204770803452,
-0.1375437080860138,
0.5665909647941589,
-0.13397815823554993,
0.05680450052022934,
0.45365971326828003,
-0.24128302931785583,
0.23640361428260803,
-0.08168148994445801,
-0.0623006708920002,
0.15459394454956055,
0.06046918407082558,
0.34222763776779175,
0.47713378071784973,
0.23964151740074158,
0.172165647149086,
-0.4354349672794342,
0.21166378259658813,
0.3432682454586029,
0.07830256223678589,
0.14114496111869812,
-0.19090722501277924,
0.02136167883872986,
0.15398547053337097,
0.035016946494579315,
-0.01760721392929554,
0.2682005763053894,
0.5447116494178772,
0.07632382214069366,
0.06330174952745438,
-0.06420619040727615,
0.2679165303707123,
0.5545854568481445,
0.22247852385044098,
-0.06776255369186401,
-0.2419174313545227,
0.14571061730384827,
0.5387059450149536,
-0.03721809759736061,
0.05278586596250534,
0.2355952262878418,
-0.14766813814640045,
-0.06319074332714081,
-0.19530954957008362,
0.2097868174314499,
0.17180944979190826,
0.059629473835229874,
0.15652215480804443,
0.010634961538016796,
-0.0777701884508133,
-0.266788512468338,
0.055133238434791565,
0.0725213959813118,
0.14529454708099365,
0.14184245467185974,
0.12197581678628922,
0.20613358914852142,
-0.08200892060995102,
-0.3087294399738312,
0.030993640422821045,
0.30566635727882385,
-0.13110199570655823,
-0.07953938096761703,
-0.2592678368091583,
0.004941356368362904,
-0.27327847480773926,
-0.3159628212451935,
-0.2113305628299713,
-0.39529088139533997,
0.0605420246720314,
0.2657615542411804,
0.06559961289167404,
-0.01029882300645113,
-0.056037403643131256,
0.03400039300322533,
0.24361513555049896,
-0.3098420798778534,
-0.13410940766334534,
-0.150049090385437,
-0.10418927669525146,
0.1706148236989975,
0.2377600520849228,
-0.3077162504196167,
0.3982348144054413,
-0.6368309259414673,
0.11993815004825592,
-0.5480048656463623,
-0.23462186753749847,
-0.04311714321374893,
-0.18990705907344818,
0.09422837942838669,
0.1756143867969513,
0.40220174193382263,
0.3427298963069916,
0.2505168616771698,
0.19375412166118622,
-0.02479344978928566,
-0.05100664123892784,
0.08910984545946121,
-0.13871969282627106,
-0.0441238172352314,
0.18273380398750305,
-0.4613678455352783,
-0.30214858055114746,
-0.22804978489875793,
0.044435709714889526,
0.06290741264820099,
0.23663076758384705,
-0.2858440577983856,
0.17098912596702576,
0.06599494814872742,
0.13281084597110748,
-0.3080635666847229,
-0.12229637056589127,
-0.17960162460803986,
0.4985627233982086,
-0.23718038201332092,
-0.23330608010292053,
0.10590097308158875,
0.1302613466978073,
0.4757522642612457,
0.16746750473976135,
-0.44976985454559326,
0.17924407124519348,
-0.3459709882736206,
0.15347982943058014,
-0.046846602112054825,
0.07588773965835571,
0.3201242983341217,
0.14537307620048523,
-0.11372002959251404,
-0.0569932721555233,
-0.16100358963012695,
-0.05003860592842102,
-0.38550981879234314,
0.2330114245414734,
-0.03675778582692146,
0.2503889203071594,
-0.12100714445114136,
0.39819878339767456,
0.25511056184768677,
0.07454739511013031,
0.30406737327575684,
-0.19432629644870758,
0.13060374557971954,
-0.12792588770389557,
-0.18894679844379425,
-0.09842515736818314,
0.15770338475704193,
-0.11632388830184937,
-0.1967868208885193,
-0.01846364513039589,
0.07412116229534149,
-0.169413223862648,
-0.10427858680486679,
-0.20427928864955902,
-0.2836247384548187,
-0.1303623765707016,
0.01778164692223072,
0.41728177666664124,
0.18590988218784332,
0.015683820471167564,
-0.16743066906929016,
-0.09354184567928314,
0.24436315894126892,
0.13966302573680878,
-0.0014966968446969986,
-0.018045688048005104,
-0.12513680756092072,
-0.1843106597661972,
-0.6704334020614624,
0.34411677718162537,
-0.1174285039305687,
0.2353999763727188,
-0.09272423386573792,
0.1852504163980484,
0.1104813888669014,
-0.04633757099509239,
0.5471504330635071,
0.06253720819950104,
0.3733002841472626,
0.3563942611217499,
0.27668216824531555,
-0.1460460126399994,
-0.052509941160678864,
-0.13045203685760498,
0.29658469557762146,
-0.026361916214227676,
0.3771851360797882,
-0.2650291323661804,
-0.055496204644441605,
0.22224445641040802,
0.18887168169021606,
-0.10315629094839096,
0.18050473928451538,
-0.06394760310649872,
-0.4556203782558441,
-0.20931167900562286,
-0.17720156908035278,
-0.08709870278835297,
0.2738860845565796,
-0.15301105380058289,
-0.08726155012845993,
0.06726737320423126,
-0.14736978709697723,
-0.01755492389202118,
-0.16865670680999756,
0.38129308819770813,
-0.1637210100889206,
0.177162766456604,
-0.009663843549787998,
-0.2981502413749695,
0.5925564169883728,
0.9116904139518738,
-0.009423192590475082,
-0.4505527913570404,
-0.06999699771404266,
0.10417801886796951,
-0.19249311089515686,
0.037054870277643204,
-0.10771497339010239,
-0.15561701357364655,
-0.13476625084877014,
0.12147457152605057,
-0.1697998344898224,
0.21793468296527863,
0.26681578159332275,
0.07851214706897736,
-0.41894668340682983,
-0.33196067810058594,
0.4077737629413605,
0.1675906628370285,
-0.04226607084274292,
0.47567006945610046,
0.12317843735218048,
0.005215682089328766,
-0.1512748748064041,
-0.14658735692501068,
0.7076454162597656,
-0.17085199058055878,
0.12187906354665756,
0.39792248606681824,
-0.16708925366401672,
0.29512926936149597,
0.053989630192518234,
0.054950762540102005,
-0.35602861642837524,
0.22415520250797272,
-0.05079871416091919,
-0.09560930728912354,
0.04228838533163071,
0.033159639686346054,
-0.22615237534046173,
0.37607404589653015,
-0.19127081334590912,
0.005761526990681887,
0.2342994660139084,
0.2299366295337677,
-0.23252061009407043,
0.14330768585205078,
-0.2494061142206192,
0.23257921636104584,
-0.1700907200574875,
0.596336305141449,
0.012605249881744385,
-0.1578868329524994,
-0.23525264859199524,
-0.08879215270280838,
-0.4586823582649231,
0.22263112664222717,
-0.35314661264419556,
0.04721727967262268,
-0.1291954666376114,
-0.22001299262046814,
0.06456059962511063,
0.15864768624305725,
0.3044908940792084,
0.23625580966472626,
-0.523736298084259,
0.2670377790927887,
-0.30253103375434875,
-0.3513713479042053,
0.17285099625587463,
0.21179862320423126,
0.2136157900094986,
-0.035590559244155884,
-0.27549293637275696,
0.19301357865333557,
0.016578778624534607,
-0.13363637030124664,
-0.15974409878253937,
-0.3023327887058258,
0.09608465433120728,
-0.2871343195438385,
0.030884629115462303,
-0.17845523357391357,
-0.06391666829586029,
-0.2592560648918152,
0.21087808907032013,
0.2444290816783905,
0.17908690869808197,
-0.07703195512294769,
-0.20085330307483673,
-0.2742709517478943,
-0.12531732022762299,
0.45766863226890564,
-0.08990782499313354,
0.03626634180545807,
0.30033501982688904,
0.14185495674610138,
-0.04211050271987915,
-0.2370264083147049,
-0.0758945420384407,
0.08708769083023071,
-0.07054243236780167,
0.20107042789459229,
-0.24619744718074799,
0.46026164293289185,
-0.19835376739501953,
0.031058255583047867,
0.007281463593244553,
-0.060262616723775864,
-0.01744861714541912,
-0.4184097349643707,
-0.0034991074353456497,
0.139950692653656,
0.06899888068437576,
0.008093549869954586,
0.08017495274543762,
0.3379448652267456,
0.07537240535020828,
-0.24152398109436035,
-0.31412234902381897,
0.1533350795507431,
0.01009239163249731,
-0.26027679443359375,
0.3766644299030304,
0.1265030950307846,
0.24597221612930298,
-0.10167653113603592,
0.18485549092292786,
-0.21972176432609558,
-0.22109681367874146,
-0.264595091342926,
0.000030081384466029704,
0.05816511809825897,
-0.04339573159813881,
-0.08841454237699509,
0.12358874082565308,
-0.38157743215560913,
-0.28941991925239563,
0.2447361797094345,
0.08464297652244568,
0.42679715156555176,
-0.024262750521302223,
-0.06266183406114578,
0.17425698041915894,
0.025644471868872643,
-0.07157358527183533,
0.05229385197162628,
-0.050693005323410034,
0.001074590953066945,
-0.02425890602171421,
0.3078611195087433,
0.009836021810770035,
-0.14883138239383698,
-0.3080676794052124,
-0.012468143366277218,
0.06957712024450302,
-0.08357445895671844,
0.47949308156967163,
-0.23818974196910858,
0.058693576604127884,
0.3324655294418335,
0.1315367966890335,
0.309674471616745,
-0.5152156949043274,
0.11309480667114258,
0.04085919260978699,
0.2866986095905304,
-0.32998621463775635,
-0.12997682392597198,
-0.23883597552776337,
0.013306193985044956,
-0.12264019250869751,
-0.02374262921512127,
-0.06547518819570541,
0.15896251797676086,
0.25374287366867065,
0.13775543868541718,
0.3771548867225647,
-0.1948017030954361,
0.22890551388263702,
0.30932971835136414,
0.1026870384812355,
0.18625345826148987,
0.22176344692707062,
0.07996495813131332,
-0.09696855396032333,
0.435067355632782,
-0.22939184308052063,
0.15007539093494415,
-0.06771193444728851,
0.07908228039741516,
0.18580372631549835,
-0.20166818797588348,
-0.3423801064491272,
0.20994657278060913,
-0.10701722651720047,
-0.04168514907360077,
0.038224995136260986,
0.26469317078590393,
-0.3808474838733673,
0.25993964076042175,
-0.24715851247310638,
0.21804256737232208,
0.03969182074069977,
-0.10703776776790619,
-0.07102148979902267,
-0.2772130072116852,
-0.16157375276088715,
0.11118629574775696,
0.05440305173397064,
-0.05748719722032547,
-0.11724591255187988,
-0.0004240563721396029,
-0.41129907965660095,
-0.4172865152359009,
0.04534339904785156,
0.1922142654657364,
0.15196707844734192,
-0.12516099214553833,
0.4158017933368683,
-0.06668633222579956,
-0.28173983097076416,
0.15395231544971466,
0.48880133032798767,
0.4909830093383789,
0.1652412712574005,
0.2514764070510864,
-0.14476849138736725,
-0.2571273148059845,
-0.21323604881763458,
0.07024987787008286,
0.11483759433031082,
-0.033470675349235535,
0.007120822556316853,
0.2830832898616791,
0.20912964642047882,
-0.15408653020858765,
0.12444857507944107,
0.0029568993486464024,
0.3419483006000519,
0.056380096822977066,
0.3701932728290558,
-0.37596839666366577,
-0.09316638857126236,
-0.2818806767463684,
-0.08912807703018188,
-0.39366787672042847,
-0.1934795081615448,
0.12496532499790192,
0.037829551845788956,
0.009135785512626171,
-0.2682197391986847,
0.12840181589126587,
0.03217468783259392,
0.1845884621143341,
0.2696239650249481,
0.20586806535720825,
-0.2469169646501541,
-0.3324054777622223,
-0.5042061805725098,
0.14899973571300507,
-0.1049715206027031,
-0.21467433869838715,
-0.1411428600549698,
0.021501334384083748,
-0.2108837217092514,
0.06252932548522949,
0.29793602228164673,
-0.01730457693338394,
-0.18924033641815186,
-0.16133414208889008,
-0.18593668937683105,
-0.013821314089000225,
-0.17595377564430237,
0.0314948596060276,
0.03161906450986862,
-0.33354735374450684,
0.27913281321525574,
-0.3489808440208435,
0.07214494049549103,
-0.20299185812473297,
0.058277349919080734,
0.08456172049045563,
-0.02090505324304104,
0.2773118317127228,
0.17823195457458496,
0.1633215695619583,
-0.07166137546300888,
-0.12428369373083115,
-0.4604785740375519,
-0.07522165030241013,
-0.19515873491764069,
0.0604051798582077,
-0.1034030020236969,
0.09617363661527634,
-0.18126745522022247,
-0.426229864358902,
-0.12998464703559875,
0.05917434021830559,
-0.1510559767484665,
0.06788555532693863,
-0.18107622861862183,
-0.029920823872089386,
-0.05012121796607971,
0.18201367557048798,
0.17484447360038757,
0.04710523784160614,
-0.001565750571899116,
0.0969650149345398,
-0.29985311627388,
-0.28404301404953003,
0.16382697224617004,
0.018810220062732697,
-0.007454749196767807,
-0.09210646152496338,
0.04840279743075371,
0.23156265914440155,
0.06438858062028885,
-0.18918266892433167,
0.23621246218681335,
0.41562366485595703,
0.009564260020852089,
-0.16962985694408417,
0.1937181055545807,
-0.11111513525247574,
0.14572778344154358,
0.17899499833583832,
0.4593873620033264,
-0.040630828589200974,
-0.11746780574321747,
0.022176189348101616,
-0.04826786741614342
] |
https://github.com/huggingface/datasets/issues/2842 | always requiring the username in the dataset name when there is one | From what I can understand, you want the saved arrow file directory to have username as well instead of just dataset name if it was downloaded with the user prefix? | Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you! | 30 | always requiring the username in the dataset name when there is one
Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you!
From what I can understand, you want the saved arrow file directory to have username as well instead of just dataset name if it was downloaded with the user prefix? | [
-0.11903803795576096,
0.16792826354503632,
-0.04717898368835449,
0.08318285644054413,
0.0581347681581974,
-0.18824343383312225,
0.2695404589176178,
0.09011994302272797,
0.03167113661766052,
0.3004503548145294,
0.15717895328998566,
-0.04068839177489281,
-0.033930230885744095,
0.013773547485470772,
-0.22112706303596497,
0.03453558683395386,
-0.037572652101516724,
0.4607705771923065,
-0.16118191182613373,
-0.01883428730070591,
-0.21404337882995605,
0.05861975625157356,
0.026600781828165054,
0.1466934233903885,
0.09291718900203705,
0.05884304642677307,
0.31300970911979675,
0.2868220806121826,
-0.3467883765697479,
-0.4643650949001312,
0.3015706539154053,
0.23560158908367157,
0.0029153800569474697,
0.28527599573135376,
-0.00012826445163227618,
-0.033367179334163666,
0.20383140444755554,
-0.06265325844287872,
-0.40117523074150085,
-0.43671661615371704,
-0.533326268196106,
-0.26590457558631897,
0.30541765689849854,
-0.34576430916786194,
0.07803744077682495,
-0.22224488854408264,
0.07195168733596802,
-0.7639085054397583,
0.5935953259468079,
0.17307396233081818,
0.042201533913612366,
0.24000315368175507,
-0.0584292933344841,
0.0676860362291336,
0.09102433919906616,
0.18285413086414337,
-0.19834072887897491,
0.05761072412133217,
0.2272552102804184,
0.15338893234729767,
0.2952236831188202,
0.25443774461746216,
-0.14236734807491302,
0.18496845662593842,
0.4132422208786011,
-0.23344184458255768,
0.14433427155017853,
-0.18182304501533508,
-0.0621788315474987,
0.41508740186691284,
1.1197655200958252,
0.11639438569545746,
-0.2934357821941376,
-0.1209266260266304,
-0.12897761166095734,
0.08569099754095078,
0.42943528294563293,
-0.028681034222245216,
-0.21897904574871063,
0.06807143241167068,
0.04946418106555939,
-0.23021212220191956,
-0.23421183228492737,
0.0908738300204277,
-0.20127634704113007,
0.40587279200553894,
-0.029753953218460083,
0.2471693605184555,
0.007699633948504925,
-0.15470020473003387,
0.13358375430107117,
0.04338111728429794,
-0.044563427567481995,
0.03372862562537193,
-0.32125094532966614,
-0.16923417150974274,
0.09083534777164459,
-0.40483558177948,
-0.04761814698576927,
0.5174329876899719,
0.40206143260002136,
0.0327301062643528,
-0.34416061639785767,
-0.013274528086185455,
0.17452721297740936,
0.19089694321155548,
0.6876798272132874,
-0.07967579364776611,
0.44774314761161804,
-0.21324512362480164,
0.13904160261154175,
-0.1412646621465683,
-0.21525751054286957,
-0.2961269021034241,
0.1313989907503128,
0.09048518538475037,
0.6935948133468628,
-0.29488781094551086,
-0.15233580768108368,
0.03421391546726227,
-0.14340534806251526,
-0.25930437445640564,
0.04863501712679863,
0.0749925822019577,
-0.07358880341053009,
0.10862206667661667,
0.1906050145626068,
-0.04697578027844429,
0.2274107038974762,
0.03179151192307472,
0.038274236023426056,
-0.4006378948688507,
-0.13371235132217407,
-0.018456151708960533,
0.25085878372192383,
-0.37662431597709656,
0.4236002564430237,
-0.06989649683237076,
-0.04863448441028595,
-0.003025827696546912,
0.28113746643066406,
0.05056794732809067,
0.16935384273529053,
0.1912308931350708,
-0.0317290760576725,
0.17456208169460297,
0.02329702489078045,
-0.20152495801448822,
-0.27983105182647705,
0.41016945242881775,
-0.39286476373672485,
-0.20878969132900238,
-0.45859041810035706,
-0.026832442730665207,
-0.2381676435470581,
0.01365912239998579,
-0.16893143951892853,
-0.34509310126304626,
-0.061842530965805054,
-0.05261397734284401,
0.20956997573375702,
0.24015693366527557,
-0.06158812344074249,
-0.15261760354042053,
-0.0715629905462265,
0.3001875579357147,
-0.24234573543071747,
-0.10674198716878891,
-0.20431850850582123,
-0.01897277683019638,
-0.15888626873493195,
0.19151711463928223,
-0.44474130868911743,
0.04489979147911072,
-0.22322458028793335,
0.19483837485313416,
0.5952607989311218,
-0.49564018845558167,
-0.07608146965503693,
0.1809929758310318,
-0.15314775705337524,
0.0020547383464872837,
0.5405676960945129,
-0.16674672067165375,
-0.1783377230167389,
-0.273727685213089,
-0.5374601483345032,
0.2701224088668823,
0.231329083442688,
-0.06107571721076965,
0.07702998071908951,
-0.16222822666168213,
0.018017515540122986,
-0.20013557374477386,
-0.23747006058692932,
0.09798230975866318,
0.15857310593128204,
-0.12498144060373306,
0.31109124422073364,
-0.22990752756595612,
-0.07634250074625015,
0.02606811933219433,
0.2804858684539795,
0.13286040723323822,
-0.05614805594086647,
0.14082111418247223,
-0.38877299427986145,
0.20969320833683014,
0.022979680448770523,
-0.006283102091401815,
-0.19002345204353333,
-0.32372206449508667,
-0.2919829487800598,
-0.0033368857111781836,
-0.1393822580575943,
0.46654558181762695,
-0.1532781571149826,
0.29358258843421936,
-0.22407910227775574,
-0.1394450068473816,
-0.1043931320309639,
0.39285168051719666,
-0.061280589550733566,
0.13518685102462769,
-0.2509833574295044,
-0.016980646178126335,
0.13693377375602722,
0.23116570711135864,
-0.04929104447364807,
-0.1680648773908615,
0.37263163924217224,
-0.02208857052028179,
-0.11331191658973694,
0.5330515503883362,
-0.02823174186050892,
0.03198518231511116,
-0.10487853735685349,
0.19546857476234436,
0.1114102378487587,
-0.25140708684921265,
0.19433514773845673,
0.17354197800159454,
0.19796817004680634,
-0.1101798340678215,
0.02631085179746151,
0.18062184751033783,
-0.01782188192009926,
0.08318882435560226,
0.07544297724962234,
-0.15660911798477173,
-0.06183968484401703,
-0.22913774847984314,
-0.3702280819416046,
-0.11565796285867691,
0.07816857844591141,
0.028383390977978706,
0.10683603584766388,
-0.05782410129904747,
-0.23477254807949066,
-0.2743072807788849,
0.31484243273735046,
0.0879817083477974,
0.17352916300296783,
-0.04148470610380173,
0.09356895089149475,
-0.08179017156362534,
0.18749405443668365,
0.01055170502513647,
0.41485509276390076,
0.15264904499053955,
0.13867418467998505,
-0.20186977088451385,
0.3261219561100006,
-0.19583648443222046,
0.46174079179763794,
0.0994192436337471,
-0.19155889749526978,
0.032310277223587036,
-0.28892362117767334,
-0.00045655202120542526,
-0.20487751066684723,
-0.12076887488365173,
0.12948085367679596,
-0.13907581567764282,
-0.5578086972236633,
-0.17753517627716064,
-0.1947994977235794,
-0.17732304334640503,
-0.07115203887224197,
-0.38925203680992126,
-0.14081524312496185,
-0.0222054123878479,
-0.029588228091597557,
0.38788679242134094,
-0.06630408763885498,
0.304251492023468,
-0.25049129128456116,
0.232249915599823,
-0.2513066530227661,
-0.4720902144908905,
-0.2935730218887329,
0.18796710669994354,
0.17815926671028137,
-0.02068290300667286,
0.19832472503185272,
-0.03751169890165329,
0.3403944671154022,
0.016881000250577927,
0.3036704957485199,
-0.44641029834747314,
-0.26249587535858154,
-0.11123961210250854,
-0.09413119405508041,
0.00985268410295248,
0.11296471208333969,
0.22789716720581055,
0.14295192062854767,
-0.3494536578655243,
-0.09639401733875275,
-0.13072068989276886,
-0.1407061666250229,
0.0009909016080200672,
0.19418326020240784,
-0.07208112627267838,
0.0421999953687191,
-0.09231821447610855,
-0.06860518455505371,
-0.17388004064559937,
0.18468470871448517,
0.05891203135251999,
0.33263924717903137,
0.418210506439209,
0.024567408487200737,
0.022959692403674126,
0.06035560369491577,
0.09391997009515762,
-0.12210837751626968,
-0.4152967035770416,
0.28149011731147766,
-0.22109557688236237,
-0.03651744872331619,
0.1737717241048813,
0.23251348733901978,
0.052595801651477814,
0.06650975346565247,
-0.296134352684021,
-0.042053841054439545,
-0.2180655598640442,
0.4774215519428253,
-0.2487526535987854,
0.25325092673301697,
0.5675637125968933,
0.3703920245170593,
-0.1215846911072731,
-0.1645442694425583,
-0.09287358820438385,
0.11029886454343796,
0.05333133414387703,
0.17830519378185272,
0.1550331711769104,
-0.07613879442214966,
-0.30446410179138184,
0.7028355002403259,
-0.03073587641119957,
0.33466094732284546,
0.5488693714141846,
0.1978098452091217,
0.3732855021953583,
0.05153095722198486,
-0.33888497948646545,
-0.39897140860557556,
0.1529436707496643,
0.2582509517669678,
0.15702322125434875,
0.061549995094537735,
0.179702490568161,
-0.3803018629550934,
-0.18419206142425537,
-0.13088321685791016,
-0.22017668187618256,
-0.036044638603925705,
-0.3498948812484741,
0.05439845472574234,
0.043998733162879944,
-0.12367599457502365,
-0.13545794785022736,
-0.07758035510778427,
0.08398337662220001,
0.4269079566001892,
0.1565123051404953,
-0.08964355289936066,
-0.42593148350715637,
0.3228060305118561,
-0.12979398667812347,
0.3699965476989746,
-0.09884101152420044,
0.27295440435409546,
0.1579924076795578,
-0.0058773597702383995,
0.1153096929192543,
0.2723062336444855,
0.305402547121048,
-0.20866341888904572,
0.3312801718711853,
-0.12049328535795212,
0.41356950998306274,
-0.17516423761844635,
0.031526945531368256,
0.2564970552921295,
-0.09987828135490417,
-0.2643827199935913,
0.3027746081352234,
-0.19136768579483032,
-0.4059069752693176,
0.10053335130214691,
-0.2781321108341217,
-0.004816172644495964,
-0.08129049092531204,
-0.2858083248138428,
-0.2675288915634155,
-0.023778552189469337,
-0.19716095924377441,
0.10563493520021439,
0.07645177096128464,
0.2602630853652954,
0.13189363479614258,
-0.5443437099456787,
-0.10317643731832504,
0.36080053448677063,
-0.11665628105401993,
0.035151075571775436,
0.1044916957616806,
0.15882204473018646,
0.08227138221263885,
0.18619324266910553,
0.23271718621253967,
0.6167235374450684,
-0.2998132109642029,
-0.3326895236968994,
-0.2465222328901291,
-0.014262421056628227,
0.33589765429496765,
0.5567637085914612,
-0.3770557641983032,
0.06422081589698792,
0.0524337962269783,
0.0801536813378334,
-0.15246671438217163,
0.2843641936779022,
0.005321030970662832,
0.05151762440800667,
-0.41080689430236816,
-0.32680848240852356,
0.5429556369781494,
0.10560658574104309,
-0.30054518580436707,
0.7662760615348816,
0.3692922294139862,
-0.40277811884880066,
0.14133824408054352,
-0.024714039638638496,
1.2238194942474365,
0.2662166357040405,
0.043925318866968155,
0.06075172498822212,
-0.44581061601638794,
0.28218159079551697,
0.054733265191316605,
-0.18746916949748993,
-0.14749309420585632,
-0.3034971058368683,
-0.3116856515407562,
-0.15097756683826447,
0.5685956478118896,
0.13498157262802124,
-0.15680170059204102,
0.057379696518182755,
-0.1468241661787033,
0.03613746166229248,
0.1009628176689148,
0.7443873882293701,
-0.18512654304504395,
0.04694070294499397,
0.17321783304214478,
-0.03647996112704277,
-0.044754259288311005,
0.2468232959508896,
-0.0116908960044384,
-0.11139955371618271,
-0.14873436093330383,
-0.5499302744865417,
-0.07496663182973862,
-0.0680464655160904,
-0.7534856200218201,
-0.009334825910627842,
-0.37917274236679077,
-0.3681637942790985,
0.5626470446586609,
0.1523158699274063,
0.057611383497714996,
0.2965052127838135,
-0.31754833459854126,
0.25521010160446167,
0.09018141776323318,
0.014981689862906933,
-0.18032336235046387,
0.11270884424448013,
0.26060551404953003,
-0.0502236932516098,
-0.061795491725206375,
-0.07835989445447922,
-0.28372395038604736,
-0.3321817219257355,
-0.025501973927021027,
0.05294843390583992,
0.32532623410224915,
-0.5745776295661926,
-0.005603503901511431,
0.012261237017810345,
0.04349331930279732,
-0.04655684903264046,
-0.035084087401628494,
0.04791237786412239,
0.003965041600167751,
0.11444088816642761,
-0.21684151887893677,
-0.3006613552570343,
0.17907293140888214,
0.24556440114974976,
0.04637019708752632,
0.0019492359133437276,
0.5263773202896118,
-0.5754949450492859,
0.029000218957662582,
-0.10346104949712753,
0.19013535976409912,
0.21816587448120117,
-0.42349985241889954,
0.18255411088466644,
0.3277735412120819,
-0.18259596824645996,
-0.10718610137701035,
0.37875205278396606,
0.2603485882282257,
0.395293265581131,
0.16269469261169434,
-0.17149527370929718,
0.06904621422290802,
-0.0812489241361618,
-0.06928302347660065,
0.39773067831993103,
-0.20793116092681885,
-0.20259149372577667,
0.01630936749279499,
0.005200030282139778,
-0.1616016924381256,
0.13889721035957336,
0.2977432906627655,
0.13508830964565277,
0.16765865683555603,
0.12250228226184845,
0.29407998919487,
-0.2935941815376282,
-0.09258057922124863,
-0.14013256132602692,
-0.2513010501861572,
-0.0639980360865593,
-0.3148653209209442,
0.3228757083415985,
0.10893964022397995,
-0.30984318256378174,
0.16594401001930237,
-0.4422403872013092,
0.048529982566833496,
0.044170547276735306,
-0.03422332927584648,
0.18210084736347198,
-0.05355948954820633,
0.07244165986776352,
0.3745589256286621,
0.07420952618122101,
-0.3295547366142273,
0.37352389097213745,
-0.028746189549565315,
0.19487673044204712,
-0.17573660612106323,
0.2849721312522888,
-0.2727881669998169,
-0.08406317234039307,
-0.06937536597251892,
0.1563984602689743,
0.23920544981956482,
0.11163207143545151,
-0.16276058554649353,
0.04375532642006874,
-0.36108699440956116,
-0.13686798512935638,
0.27597758173942566,
0.45642250776290894,
-0.08460010588169098,
-0.34220463037490845,
0.37346166372299194,
0.035023611038923264,
-0.1578489989042282,
-0.1395685374736786,
-0.050665438175201416,
0.028796590864658356,
0.06800806522369385,
0.22452212870121002,
0.09493505954742432,
-0.17186948657035828,
0.0033879410475492477,
-0.05942171812057495,
0.12577305734157562,
0.24442672729492188,
0.43023401498794556,
0.5527550578117371,
-0.18090544641017914,
-0.23690396547317505,
0.5231280326843262,
0.08974448591470718,
-0.07387147843837738,
0.024330904707312584,
-0.34174343943595886,
0.2599053680896759,
0.3151952028274536,
0.03533362224698067,
-0.21847151219844818,
-0.17085249722003937,
0.18696971237659454,
0.028661416843533516,
-0.2586017847061157,
0.21467435359954834,
0.27283570170402527,
0.2644333243370056,
-0.12385047227144241,
0.08313288539648056,
-0.06884118169546127,
0.10847904533147812,
0.10664083808660507,
-0.1596774011850357,
-0.2735552191734314,
-0.1660284847021103,
-0.11072947829961777,
-0.23268000781536102,
-0.14435350894927979,
-0.2382267564535141,
0.014401957392692566,
0.12928298115730286,
-0.01781276799738407,
-0.10710069537162781,
-0.07570503652095795,
-0.05767880752682686,
0.15402571856975555,
-0.366244912147522,
0.007055781781673431,
0.1383773535490036,
-0.0378996878862381,
0.3139422535896301,
0.5676707625389099,
0.28968098759651184,
0.12286929041147232,
0.26024100184440613,
-0.029008781537413597,
-0.01654282584786415,
-0.07196065783500671,
0.04993826150894165,
0.3027610182762146,
0.08295691013336182,
0.08570379763841629,
0.1471986323595047,
-0.005359326023608446,
-0.0027515082620084286,
0.014540874399244785,
-0.08303447812795639,
-0.4029015302658081,
-0.37994906306266785,
0.36653944849967957,
-0.005354547407478094,
-0.3656518757343292,
0.010615259408950806,
0.0804203599691391,
0.10125710815191269,
0.16274774074554443,
0.5316871404647827,
0.18748314678668976,
-0.008082996122539043,
-0.15556904673576355,
-0.027311531826853752,
-0.011067444458603859,
0.3597065806388855,
0.26012885570526123,
0.008389943279325962,
-0.3220817446708679,
-0.14134980738162994,
-0.6859129071235657,
0.04161584749817848,
0.16355997323989868,
-0.16814135015010834,
0.2027793973684311,
-0.11391787976026535,
0.10699353367090225,
0.10087314993143082,
0.1230735033750534,
0.08775793015956879,
-0.07306613773107529,
0.22013841569423676,
-0.313708633184433,
0.15250058472156525,
0.451246440410614,
0.11608380079269409,
0.05081961303949356,
-0.6453540921211243,
0.27988433837890625,
-0.024233942851424217,
-0.18625040352344513,
-0.17207199335098267,
-0.10871873050928116,
0.47859856486320496,
0.00009685071563581005,
0.7948835492134094,
0.02990654483437538,
0.3624136447906494,
0.1474064588546753,
0.1536778211593628,
0.04807528853416443,
0.09204049408435822,
-0.4106505811214447,
0.26579639315605164,
0.6018597483634949,
0.10372502356767654,
-0.3340429961681366,
0.19353386759757996,
-0.34980452060699463,
0.27189624309539795,
-0.14131149649620056,
0.21209628880023956,
-0.18437860906124115,
-0.2185986489057541,
-0.07325725257396698,
-0.07931064069271088,
-0.04537584260106087,
0.09253184497356415,
-0.17314176261425018,
0.18654322624206543,
-0.6228406429290771,
-0.5094375610351562,
0.6428917050361633,
-0.02735580876469612,
-0.18401746451854706,
-0.06268668919801712,
0.7091812491416931,
0.19093412160873413,
-0.049498818814754486,
-0.7029516100883484,
0.11493348330259323,
0.49676209688186646,
0.03267491236329079,
0.03741507977247238,
0.3120485246181488,
-0.12070254981517792,
0.26006877422332764,
-0.026378052309155464,
0.47915855050086975,
0.09881673753261566,
-0.237448051571846,
-0.1279352754354477,
-0.3826909363269806
] |
https://github.com/huggingface/datasets/issues/2842 | always requiring the username in the dataset name when there is one | I don't think the user cares of how this is done, but the 2nd command should fail, IMHO, as its dataset name is invalid:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Moreover, if someone were to create `openwebtext-10k` w/o the prefix, they will now get the wrong dataset, if they previously downloaded `stas/openwebtext-10k`.
And if there are 2 users with the same dataset name `foo/ds` and `bar/ds` - currently this won't work to get the correct dataset.
So really there 3 unrelated issues hiding in the current behavior. | Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you! | 115 | always requiring the username in the dataset name when there is one
Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you!
I don't think the user cares of how this is done, but the 2nd command should fail, IMHO, as its dataset name is invalid:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Moreover, if someone were to create `openwebtext-10k` w/o the prefix, they will now get the wrong dataset, if they previously downloaded `stas/openwebtext-10k`.
And if there are 2 users with the same dataset name `foo/ds` and `bar/ds` - currently this won't work to get the correct dataset.
So really there 3 unrelated issues hiding in the current behavior. | [
-0.011216316372156143,
0.1447480022907257,
-0.0393611378967762,
0.09581910073757172,
0.0011403835378587246,
-0.21814025938510895,
0.4295826554298401,
0.11116679757833481,
0.1069050282239914,
0.3369615375995636,
0.11587195098400116,
-0.02812241204082966,
0.012058867141604424,
0.038760725408792496,
-0.16262352466583252,
0.15405085682868958,
-0.06216356158256531,
0.34529897570610046,
-0.13905830681324005,
0.008256920613348484,
-0.16638050973415375,
-0.005150812678039074,
0.05095677822828293,
0.0512072779238224,
0.1581597775220871,
0.09740347415208817,
0.3119136691093445,
0.1957426369190216,
-0.29750391840934753,
-0.48242396116256714,
0.30030548572540283,
0.3615882992744446,
-0.06392618268728256,
0.41073301434516907,
-0.00011792379518738016,
-0.059064753353595734,
0.2076958268880844,
0.05888934060931206,
-0.5383245348930359,
-0.4455488622188568,
-0.49170562624931335,
-0.24828676879405975,
0.2102014273405075,
-0.3056302070617676,
0.023995546624064445,
-0.07708895951509476,
0.01805385760962963,
-0.7141698002815247,
0.4935949742794037,
0.1425914317369461,
0.12354010343551636,
0.42477351427078247,
-0.05610068887472153,
-0.054683584719896317,
0.09778774529695511,
0.04455098509788513,
-0.14305546879768372,
0.06731776893138885,
0.28243401646614075,
0.16835083067417145,
0.35652461647987366,
0.20822599530220032,
-0.2156512290239334,
0.11108569800853729,
0.30786722898483276,
-0.29731136560440063,
0.1378888487815857,
-0.18504197895526886,
-0.019656823948025703,
0.4707065224647522,
1.001016616821289,
0.169052854180336,
-0.46708402037620544,
-0.1757357120513916,
-0.1048421636223793,
0.0698699876666069,
0.40814295411109924,
0.13505464792251587,
-0.11171584576368332,
0.16796280443668365,
-0.08350369334220886,
-0.0350227877497673,
-0.03274086117744446,
-0.01837216131389141,
-0.2701374888420105,
0.4630749821662903,
-0.03828025609254837,
0.23469221591949463,
-0.12698198854923248,
-0.1310451477766037,
0.17879325151443481,
-0.05707932263612747,
0.016366001218557358,
-0.008556393906474113,
-0.40051326155662537,
-0.16914883255958557,
0.1516159027814865,
-0.4226427376270294,
0.04287523031234741,
0.3494897484779358,
0.26517412066459656,
0.08397474884986877,
-0.3256967067718506,
-0.029396628960967064,
0.2081446498632431,
0.2185646891593933,
0.5727410316467285,
-0.1588098704814911,
0.47276541590690613,
-0.20717263221740723,
0.25134262442588806,
-0.09864868968725204,
-0.09850926697254181,
-0.1068095937371254,
0.04230127111077309,
0.002076735720038414,
0.5621961355209351,
-0.23260872066020966,
-0.2164974808692932,
0.05215936526656151,
-0.09580864012241364,
-0.22326651215553284,
0.05487758293747902,
0.02100544609129429,
-0.1488407403230667,
0.19686654210090637,
0.08455825597047806,
-0.05112147703766823,
0.18196706473827362,
-0.10012085735797882,
-0.06201816350221634,
-0.38280802965164185,
-0.17904673516750336,
0.047236308455467224,
0.24181479215621948,
-0.4406699240207672,
0.35666483640670776,
0.09880249947309494,
-0.11421587318181992,
0.043631669133901596,
0.16985006630420685,
0.090875543653965,
-0.017240028828382492,
0.1904594749212265,
-0.05801739916205406,
0.1688787043094635,
-0.05068083852529526,
-0.2279137372970581,
-0.23908275365829468,
0.3085816502571106,
-0.39041176438331604,
-0.2045658677816391,
-0.43365350365638733,
0.10971509665250778,
-0.2935428023338318,
0.06613237410783768,
-0.08121631294488907,
-0.2224237471818924,
-0.09179181605577469,
-0.08837570250034332,
0.10277919471263885,
0.17989812791347504,
-0.1870245486497879,
-0.15847086906433105,
-0.05239478498697281,
0.3964364528656006,
-0.1756322830915451,
-0.05022113025188446,
-0.1365361213684082,
0.029463987797498703,
-0.11631394177675247,
0.1394524872303009,
-0.467852920293808,
0.12246455997228622,
-0.15089872479438782,
-0.048970453441143036,
0.30052170157432556,
-0.5388395190238953,
-0.09990940988063812,
0.22336266934871674,
-0.19508293271064758,
0.2370557188987732,
0.5151136517524719,
-0.16389760375022888,
-0.16903458535671234,
-0.34036675095558167,
-0.3859284520149231,
0.234112948179245,
0.15325959026813507,
0.010852985084056854,
-0.04284306615591049,
-0.2005462348461151,
0.1890724152326584,
-0.08271051943302155,
-0.10463941842317581,
0.14610274136066437,
0.14518746733665466,
0.028874816372990608,
0.2422485202550888,
-0.2445031851530075,
-0.1366339772939682,
-0.14471402764320374,
0.22170427441596985,
0.07626539468765259,
-0.1103755459189415,
0.03329542279243469,
-0.48379087448120117,
0.34723952412605286,
0.107909195125103,
0.24985358119010925,
-0.006244596093893051,
-0.33796751499176025,
-0.22301331162452698,
-0.039719853550195694,
-0.08059867471456528,
0.36760634183883667,
-0.052095651626586914,
0.2502618134021759,
-0.15008346736431122,
-0.1581350862979889,
-0.02978658303618431,
0.5793234705924988,
-0.13347595930099487,
0.12988661229610443,
-0.36250337958335876,
-0.11672218143939972,
0.06306571513414383,
0.3549444079399109,
-0.04724385589361191,
-0.09263791143894196,
0.30393704771995544,
-0.07529670000076294,
-0.032413557171821594,
0.4737953543663025,
0.11763184517621994,
-0.1633920967578888,
-0.24931789934635162,
0.24968589842319489,
0.2226756513118744,
-0.024022387340664864,
0.11722514778375626,
0.09228861331939697,
0.33921635150909424,
-0.1424899697303772,
-0.00146770803257823,
0.24047257006168365,
-0.02661868743598461,
0.05246998369693756,
0.08161454647779465,
-0.293786883354187,
0.020044414326548576,
-0.222383052110672,
-0.39078330993652344,
-0.11251614987850189,
0.03812367469072342,
0.019634045660495758,
0.06806832551956177,
0.03611035645008087,
-0.18758925795555115,
-0.27772465348243713,
0.28041213750839233,
0.018125852569937706,
0.06825636327266693,
-0.07596355676651001,
0.22548934817314148,
-0.10540038347244263,
0.23983502388000488,
-0.13614825904369354,
0.3855209946632385,
0.2088996320962906,
0.05979716405272484,
-0.21616503596305847,
0.26500073075294495,
-0.28141114115715027,
0.338140070438385,
0.07733964174985886,
-0.32696861028671265,
-0.07104223221540451,
-0.1665605902671814,
0.1119680106639862,
-0.18571236729621887,
-0.11207887530326843,
0.20625250041484833,
-0.14435216784477234,
-0.583858072757721,
-0.1948499232530594,
-0.15862920880317688,
-0.08237482607364655,
-0.036205824464559555,
-0.3682664632797241,
-0.22062447667121887,
-0.121752068400383,
0.06480306386947632,
0.37960532307624817,
-0.13690021634101868,
0.19263076782226562,
-0.2595561146736145,
0.2506001889705658,
-0.3872120678424835,
-0.3063420057296753,
-0.20053814351558685,
0.10176920890808105,
0.02515486627817154,
0.05050242319703102,
0.2794831693172455,
-0.09044216573238373,
0.4055158495903015,
-0.14250391721725464,
0.07677987217903137,
-0.28462401032447815,
-0.44244179129600525,
-0.05632850527763367,
-0.1785660684108734,
0.12606437504291534,
0.04386858642101288,
-0.014209536835551262,
0.25311583280563354,
-0.3800751268863678,
-0.18698462843894958,
-0.17459051311016083,
-0.0908753052353859,
0.04648255929350853,
0.14908112585544586,
-0.24065540730953217,
-0.0902431309223175,
-0.1752283126115799,
-0.015253044664859772,
-0.2159506231546402,
0.04407571256160736,
-0.0034682664554566145,
0.2913244664669037,
0.5777445435523987,
-0.1085718646645546,
-0.09264670312404633,
0.044064201414585114,
0.28220850229263306,
-0.24131490290164948,
-0.4220574200153351,
0.13616782426834106,
-0.1282569319009781,
-0.10119213908910751,
0.1170816421508789,
0.2195585072040558,
0.12987159192562103,
0.12452253699302673,
-0.32373321056365967,
-0.09016620367765427,
-0.22226613759994507,
0.49534982442855835,
-0.13171982765197754,
0.22760041058063507,
0.4823293387889862,
0.34951749444007874,
-0.13129152357578278,
-0.1352270245552063,
-0.11028305441141129,
0.006119160447269678,
-0.09559614211320877,
0.11600972712039948,
0.14974161982536316,
-0.17847442626953125,
-0.2178836613893509,
0.5322821140289307,
-0.0081040533259511,
0.17952361702919006,
0.4474460482597351,
0.25153762102127075,
0.48412373661994934,
-0.055393069982528687,
-0.36869075894355774,
-0.23759537935256958,
0.16696098446846008,
0.300707072019577,
0.36145225167274475,
-0.028879843652248383,
0.17659348249435425,
-0.45121634006500244,
-0.0420398972928524,
-0.16215211153030396,
-0.22785478830337524,
-0.15090987086296082,
-0.28371670842170715,
0.033421047031879425,
0.17418543994426727,
0.02327493578195572,
-0.15742309391498566,
-0.11085543781518936,
-0.06612541526556015,
0.3186627924442291,
0.18973132967948914,
-0.13056126236915588,
-0.5399692058563232,
0.3867037296295166,
-0.11502324044704437,
0.3552757203578949,
-0.06913376599550247,
0.49529677629470825,
0.1704869121313095,
0.06519105285406113,
0.02569354884326458,
0.24715526401996613,
0.38817745447158813,
-0.21312732994556427,
0.2539447844028473,
-0.10538787394762039,
0.2757463753223419,
-0.2027953714132309,
-0.02184225432574749,
0.11680068075656891,
-0.16496726870536804,
-0.12917406857013702,
0.265054851770401,
-0.4018345773220062,
-0.34828153252601624,
0.16963477432727814,
-0.2113068401813507,
0.03276568278670311,
-0.27418258786201477,
-0.29638829827308655,
-0.32594943046569824,
-0.010589874349534512,
-0.26701900362968445,
0.03023645468056202,
0.17806759476661682,
0.10673300176858902,
0.07052892446517944,
-0.4568783640861511,
0.015222378075122833,
0.4961726665496826,
0.011748050339519978,
-0.17528274655342102,
0.23104193806648254,
0.37311261892318726,
0.07720232009887695,
0.21466857194900513,
0.20252661406993866,
0.6153801679611206,
-0.31132328510284424,
-0.3651432693004608,
-0.24682600796222687,
0.10750514268875122,
0.20367740094661713,
0.6252367496490479,
-0.12571896612644196,
0.055585164576768875,
0.018265942111611366,
0.017413487657904625,
-0.14805780351161957,
0.23118849098682404,
0.06951878219842911,
0.007525807712227106,
-0.5689125657081604,
-0.5124384760856628,
0.40977227687835693,
0.19629214704036713,
-0.31640541553497314,
0.5638622641563416,
0.22107361257076263,
-0.37775737047195435,
0.236374169588089,
-0.06857308000326157,
1.1841131448745728,
0.1511303335428238,
-0.022287851199507713,
0.10869275778532028,
-0.2743472456932068,
0.40862980484962463,
-0.019022325053811073,
-0.15353189408779144,
-0.10129217803478241,
-0.39148038625717163,
-0.24325738847255707,
-0.0974704846739769,
0.49232909083366394,
0.1395295113325119,
-0.08094147592782974,
0.1936914324760437,
-0.1467929184436798,
0.31079575419425964,
0.16490282118320465,
0.8204006552696228,
-0.19684094190597534,
-0.04324478283524513,
0.1305501013994217,
0.07137072831392288,
-0.06988171488046646,
0.09808892011642456,
-0.060421787202358246,
-0.08939196914434433,
0.0003163639339618385,
-0.5520799160003662,
-0.04321391135454178,
-0.05954255536198616,
-0.5215197205543518,
-0.004329833202064037,
-0.34765616059303284,
-0.13482913374900818,
0.6052542328834534,
-0.03148369863629341,
0.22301587462425232,
0.4870772063732147,
-0.3037201464176178,
0.17407193779945374,
0.026037054136395454,
0.10713009536266327,
-0.10105618089437485,
0.08856689929962158,
0.2871972322463989,
0.018048152327537537,
-0.10292284190654755,
-0.07175497710704803,
-0.20841771364212036,
-0.09269489347934723,
-0.10913024842739105,
0.05166127160191536,
0.29604572057724,
-0.6112051606178284,
0.13217470049858093,
0.16554096341133118,
0.14648547768592834,
-0.13147959113121033,
0.061651043593883514,
-0.04693709313869476,
-0.11232064664363861,
0.20899136364459991,
-0.25433242321014404,
-0.3418777287006378,
-0.03531266003847122,
0.315679132938385,
0.1183122768998146,
-0.046829577535390854,
0.3247855007648468,
-0.434035062789917,
-0.014659401960670948,
-0.12396980822086334,
0.04438824579119682,
0.08202160149812698,
-0.3374631404876709,
0.13049449026584625,
0.3694280982017517,
-0.15174627304077148,
-0.11114233732223511,
0.4006412923336029,
0.26463213562965393,
0.23437394201755524,
0.2556477189064026,
-0.07406425476074219,
0.19052313268184662,
-0.08578502386808395,
-0.027128780260682106,
0.3668234050273895,
-0.07000766694545746,
-0.0851099044084549,
-0.23164714872837067,
0.13064096868038177,
-0.27175915241241455,
-0.0667756125330925,
0.2494489997625351,
0.14562153816223145,
0.15129490196704865,
0.03327448293566704,
0.20196124911308289,
-0.3044818937778473,
0.008581371046602726,
-0.13796952366828918,
-0.25157320499420166,
-0.16641339659690857,
-0.27677100896835327,
0.2686149477958679,
0.13585983216762543,
-0.25274139642715454,
0.13299812376499176,
-0.37814170122146606,
-0.035032954066991806,
-0.050302278250455856,
0.23887497186660767,
0.35194143652915955,
-0.04651303589344025,
0.03769342228770256,
0.3187004327774048,
0.25073474645614624,
-0.24511884152889252,
0.474458247423172,
-0.0569191575050354,
0.19132576882839203,
-0.10511869192123413,
0.32281047105789185,
-0.2103770673274994,
-0.024967363104224205,
-0.03264782577753067,
0.21231278777122498,
0.21477502584457397,
0.11017818748950958,
-0.1119844987988472,
-0.0051653096452355385,
-0.22592121362686157,
0.0477607399225235,
0.23609411716461182,
0.4404352605342865,
-0.016611149534583092,
-0.397975355386734,
0.3906179368495941,
0.1331164687871933,
-0.20279783010482788,
-0.14773526787757874,
-0.1319352239370346,
0.09334973245859146,
0.1392953097820282,
0.38621094822883606,
0.2862527072429657,
-0.17669476568698883,
-0.02750433050096035,
-0.13041265308856964,
0.3384791612625122,
0.2866659164428711,
0.4526548683643341,
0.5592721104621887,
-0.15429337322711945,
-0.18547357618808746,
0.5126245617866516,
0.006870399694889784,
-0.14193838834762573,
0.005471405107527971,
-0.25695180892944336,
0.3793468177318573,
0.27485695481300354,
0.12082134932279587,
-0.1378646045923233,
-0.15116967260837555,
0.3385252356529236,
0.12946638464927673,
-0.23758478462696075,
0.18397961556911469,
0.15953285992145538,
0.03750815987586975,
-0.25839605927467346,
0.12178370356559753,
-0.19168387353420258,
0.05098192021250725,
0.053284451365470886,
-0.0539395809173584,
-0.35883939266204834,
-0.1637410968542099,
-0.1485714614391327,
-0.22008298337459564,
-0.13512904942035675,
-0.3176754117012024,
0.04082093760371208,
0.06589445471763611,
-0.14867883920669556,
-0.25055715441703796,
-0.17697444558143616,
-0.0058159856125712395,
0.19972258806228638,
-0.38736531138420105,
0.05021319538354874,
0.1709202527999878,
-0.09374762326478958,
0.26962175965309143,
0.6034385561943054,
0.3446468114852905,
0.24890848994255066,
0.28292590379714966,
-0.058963123708963394,
-0.013646513223648071,
0.007323162630200386,
-0.06374680250883102,
0.48085910081863403,
-0.07539822906255722,
0.19816283881664276,
0.2164335697889328,
0.07230526953935623,
-0.06276684999465942,
-0.06303518265485764,
-0.07114002853631973,
-0.40520018339157104,
-0.568539559841156,
0.5356154441833496,
0.02183234877884388,
-0.24581632018089294,
0.021223463118076324,
0.17533063888549805,
0.045251768082380295,
0.23396743834018707,
0.5319799184799194,
0.2475273460149765,
0.09894579648971558,
-0.22023798525333405,
0.03029717691242695,
0.04217236116528511,
0.32063794136047363,
0.20866698026657104,
-0.03903990611433983,
-0.3553540110588074,
0.033569905906915665,
-0.6624807119369507,
0.12595154345035553,
0.05348247289657593,
-0.05215563625097275,
0.17988376319408417,
-0.2214946299791336,
0.15300896763801575,
0.15592926740646362,
-0.11511356383562088,
-0.0013092299923300743,
-0.08221753686666489,
0.1474505215883255,
-0.2808147966861725,
0.18856072425842285,
0.31350675225257874,
-0.03488095477223396,
0.07357311993837357,
-0.6237815022468567,
0.28316667675971985,
-0.09090569615364075,
-0.10892090201377869,
-0.19772100448608398,
0.06776439398527145,
0.5854006409645081,
-0.13557438552379608,
0.6277523636817932,
0.18130096793174744,
0.4258820414543152,
0.17721442878246307,
0.09655988961458206,
-0.11110280454158783,
-0.038010191172361374,
-0.4137011170387268,
0.24494455754756927,
0.4392445385456085,
-0.10913947969675064,
-0.1369021236896515,
0.060005925595760345,
-0.29915258288383484,
0.3612940013408661,
-0.052605777978897095,
0.26489365100860596,
-0.2576388120651245,
-0.25020092725753784,
-0.18338747322559357,
-0.09395792335271835,
-0.02256537787616253,
0.15797080099582672,
-0.14626318216323853,
0.13577358424663544,
-0.48039576411247253,
-0.5864161849021912,
0.5395389199256897,
-0.10784867405891418,
-0.1672338843345642,
-0.24725128710269928,
0.6490895748138428,
0.039479371160268784,
-0.20271195471286774,
-0.5274106860160828,
0.14776428043842316,
0.5112931728363037,
-0.0624123252928257,
0.042956847697496414,
0.38086485862731934,
-0.12128514051437378,
0.11254383623600006,
-0.06276486068964005,
0.14696304500102997,
0.015125002712011337,
-0.3714037835597992,
0.017637861892580986,
-0.3359433710575104
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | I just regenerated the verifications metadata and noticed that nothing changed: the data file is fine (the checksum didn't change), and the number of examples is still 8013769. Not sure how you managed to get 7982430 examples.
Can you try to delete your cache ( by default at `~/.cache/huggingface/datasets`) and try again please ?
Also, on which platform are you (linux/macos/windows) ? | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 62 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
I just regenerated the verifications metadata and noticed that nothing changed: the data file is fine (the checksum didn't change), and the number of examples is still 8013769. Not sure how you managed to get 7982430 examples.
Can you try to delete your cache ( by default at `~/.cache/huggingface/datasets`) and try again please ?
Also, on which platform are you (linux/macos/windows) ? | [
-0.23256559669971466,
-0.10259655863046646,
0.05944861099123955,
0.47100698947906494,
0.09914494305849075,
0.09832888096570969,
0.0017991594504565,
0.5494818687438965,
-0.020167408511042595,
0.13166983425617218,
-0.11764603108167648,
0.003290157997980714,
-0.1183154433965683,
0.09130815416574478,
-0.0851513147354126,
0.1036115363240242,
-0.18397927284240723,
0.14324449002742767,
-0.22360585629940033,
0.08370397239923477,
-0.1660717874765396,
0.2510775029659271,
-0.29405298829078674,
-0.13617593050003052,
-0.2839493453502655,
-0.027316398918628693,
-0.26512962579727173,
0.23779429495334625,
-0.25572627782821655,
-0.41601595282554626,
0.17588992416858673,
-0.3987877666950226,
-0.037219930440187454,
0.5550357103347778,
-0.00011980186536675319,
0.053337886929512024,
0.2946435213088989,
-0.22809769213199615,
-0.13075034320354462,
-0.10204042494297028,
-0.4944345951080322,
-0.39405113458633423,
-0.14523638784885406,
-0.1462630182504654,
0.1926998496055603,
-0.1283249706029892,
0.05088871717453003,
-0.27932509779930115,
0.4593411087989807,
0.4411795139312744,
0.1552281677722931,
0.39781540632247925,
0.241161048412323,
0.03716069832444191,
0.36507534980773926,
-0.22199277579784393,
-0.13180990517139435,
-0.036207523196935654,
0.032693032175302505,
0.04052342101931572,
0.08063951134681702,
0.11726762354373932,
0.010847968980669975,
0.20871193706989288,
-0.0005466474103741348,
-0.04086696729063988,
0.22869093716144562,
-0.23625348508358002,
0.15349973738193512,
0.49346110224723816,
0.6223925948143005,
-0.13698041439056396,
-0.3544665575027466,
-0.35869917273521423,
-0.41668206453323364,
0.07304878532886505,
0.2820879817008972,
0.4564272463321686,
0.020783118903636932,
0.20885105431079865,
-0.3920860290527344,
0.06279740482568741,
0.08873963356018066,
0.10101944953203201,
-0.21972157061100006,
0.17379623651504517,
-0.061373498290777206,
0.09366961568593979,
0.03374570980668068,
0.120522141456604,
0.22285664081573486,
-0.12987066805362701,
-0.055268242955207825,
0.13037607073783875,
-0.2470705807209015,
-0.0399978831410408,
0.04658413678407669,
-0.1719469130039215,
0.37250250577926636,
0.3157574534416199,
0.33071035146713257,
-0.22534121572971344,
-0.279293417930603,
-0.02605435438454151,
0.10213065147399902,
0.4864095449447632,
-0.003022226970642805,
0.1811351627111435,
-0.09942622482776642,
0.1534419059753418,
0.08419108390808105,
-0.038324229419231415,
-0.06270714104175568,
-0.3573569059371948,
0.07821914553642273,
0.05192922428250313,
0.5506390929222107,
-0.3137626349925995,
-0.563886284828186,
0.13556265830993652,
-0.27179551124572754,
-0.24996821582317352,
-0.2926042675971985,
-0.05987010896205902,
-0.3987955152988434,
0.21013104915618896,
0.16259600222110748,
-0.1578371375799179,
-0.31497591733932495,
-0.38883650302886963,
-0.27445897459983826,
-0.022704092785716057,
-0.1876685470342636,
0.12192477285861969,
0.0013911441201344132,
-0.13141386210918427,
0.4226849675178528,
-0.07922984659671783,
-0.040535517036914825,
-0.29384222626686096,
0.16571523249149323,
0.01181816216558218,
0.05183722823858261,
0.16752955317497253,
-0.2069491147994995,
0.12241458147764206,
0.06869687139987946,
0.09147733449935913,
-0.28620436787605286,
0.3105953633785248,
-0.2906437814235687,
-0.40937089920043945,
-0.13818322122097015,
0.1050514206290245,
-0.37059006094932556,
-0.16087526082992554,
0.30737119913101196,
-0.059906572103500366,
0.33313316106796265,
-0.12109719961881638,
-0.08745166659355164,
-0.17150342464447021,
-0.14893347024917603,
-0.13853959739208221,
0.1361483335494995,
0.40090131759643555,
-0.2815040051937103,
-0.1870611160993576,
0.20096635818481445,
-0.10673712939023972,
0.2657058537006378,
0.44194215536117554,
0.038311589509248734,
0.10779526829719543,
-0.2697066366672516,
0.19941477477550507,
0.10355284065008163,
-0.3222499489784241,
-0.6370260119438171,
0.31669318675994873,
-0.06143932417035103,
0.18909388780593872,
0.11317925900220871,
-0.29983046650886536,
0.09972510486841202,
-0.11335636675357819,
-0.10748420655727386,
0.14254553616046906,
-0.1855407953262329,
0.06538837403059006,
-0.604255735874176,
-0.7404736876487732,
0.4050541818141937,
-0.015220358036458492,
0.2199627310037613,
-0.20098264515399933,
0.025802377611398697,
0.20237383246421814,
0.4867912828922272,
-0.006881128065288067,
0.008240297436714172,
0.18329459428787231,
0.16844770312309265,
0.020009849220514297,
-0.026285089552402496,
-0.3034963607788086,
-0.12707670032978058,
0.25781750679016113,
-0.11896253377199173,
-0.02521068975329399,
0.2395292967557907,
-0.12848997116088867,
-0.5201494693756104,
-0.2797641158103943,
-0.027436785399913788,
-0.28901225328445435,
-0.0011979736154899001,
0.053733933717012405,
0.33149734139442444,
0.07044383138418198,
0.10067097097635269,
0.3630122244358063,
0.0587044321000576,
0.1622789055109024,
-0.3886449337005615,
0.21163734793663025,
-0.0419292077422142,
-0.15907615423202515,
0.147472083568573,
-0.04118914157152176,
0.15783947706222534,
-0.17881610989570618,
-0.36455243825912476,
0.6570305228233337,
0.13834170997142792,
0.027809370309114456,
-0.020633278414607048,
0.17614930868148804,
0.23897922039031982,
-0.2326095700263977,
0.13618551194667816,
0.31550800800323486,
-0.036702632904052734,
-0.0358332060277462,
0.035746946930885315,
-0.0957837849855423,
0.11017920821905136,
-0.02702643908560276,
-0.06295786798000336,
0.0031620862428098917,
-0.06770230084657669,
-0.20160241425037384,
-0.09967269003391266,
-0.11949818581342697,
0.07884956151247025,
-0.05292240530252457,
-0.18256515264511108,
0.07386793941259384,
0.15952755510807037,
-0.14738580584526062,
0.7876149415969849,
-0.02650916390120983,
-0.08109121769666672,
0.2676543891429901,
-0.283088356256485,
-0.12855656445026398,
-0.18377959728240967,
0.13330715894699097,
0.528181791305542,
0.21161788702011108,
0.1979828029870987,
0.2271813452243805,
0.05958227813243866,
-0.09671638160943985,
0.14862599968910217,
0.27888262271881104,
0.21197663247585297,
0.3014920949935913,
0.025364721193909645,
0.07827446609735489,
-0.18822863698005676,
0.10177433490753174,
0.11624198406934738,
0.373637855052948,
-0.4455089867115021,
-0.15064772963523865,
-0.49933022260665894,
0.016702329739928246,
-0.28903985023498535,
0.1519830822944641,
-0.1953701376914978,
-0.23409876227378845,
-0.05694280564785004,
0.057824764400720596,
-0.01907554268836975,
0.22007842361927032,
-0.1844468116760254,
0.17441433668136597,
0.17794343829154968,
0.22219637036323547,
0.0834517702460289,
-0.0005309614934958518,
-0.5165873765945435,
0.01945444941520691,
0.33513203263282776,
-0.24981440603733063,
0.4144761562347412,
-0.5614906549453735,
-0.09215975552797318,
-0.2016603946685791,
-0.29701969027519226,
-0.0893639549612999,
0.008983894251286983,
0.11290917545557022,
0.2927737236022949,
0.21109893918037415,
0.02499188296496868,
-0.022639237344264984,
0.10414272546768188,
-0.32057392597198486,
-0.2713527977466583,
-0.09898200631141663,
0.09731307625770569,
0.26612964272499084,
-0.06413586437702179,
-0.5627797842025757,
-0.21637004613876343,
-0.2757208049297333,
0.32670000195503235,
0.11397189646959305,
0.20298004150390625,
0.09259235113859177,
0.06944669783115387,
0.10504014790058136,
-0.05235504359006882,
0.11608532071113586,
-0.25425443053245544,
-0.5217089056968689,
0.318851113319397,
-0.0026784685906022787,
-0.33331769704818726,
-0.007014786824584007,
0.15113775432109833,
-0.03922853618860245,
0.025586165487766266,
-0.628836989402771,
-0.24205580353736877,
-0.40204817056655884,
-0.041623231023550034,
-0.15226316452026367,
0.2767258584499359,
0.48467981815338135,
-0.03081946074962616,
-0.06325601041316986,
-0.15229932963848114,
-0.3440425395965576,
-0.023711811751127243,
0.16248396039009094,
0.6210068464279175,
-0.10532554984092712,
0.18527013063430786,
0.4056096076965332,
0.4629562199115753,
0.5385029315948486,
0.0481477789580822,
-0.013696163892745972,
-0.03213632106781006,
0.10836464166641235,
-0.1104787290096283,
-0.04011637717485428,
0.29207780957221985,
-0.19996368885040283,
0.0356367789208889,
0.29737305641174316,
0.13559181988239288,
0.15616387128829956,
-0.0030650319531559944,
-0.07030695676803589,
-0.47797152400016785,
-0.20078596472740173,
-0.024593397974967957,
-0.11114167422056198,
0.1895924210548401,
0.18815021216869354,
0.07323676347732544,
-0.2434808760881424,
-0.19456268846988678,
0.1598561853170395,
-0.004662241321057081,
-0.1435011774301529,
0.020764851942658424,
0.06711931526660919,
0.3567478358745575,
-0.2626101076602936,
0.3809088170528412,
0.13413308560848236,
0.26307782530784607,
0.14869250357151031,
-0.23844864964485168,
0.1142471581697464,
0.005393820349127054,
0.5108359456062317,
-0.07777207344770432,
-0.071262426674366,
0.09501069039106369,
0.07253860682249069,
-0.40391913056373596,
-0.311530202627182,
-0.1836717128753662,
0.03344936668872833,
0.5596080422401428,
0.045380812138319016,
-0.4185115098953247,
0.05580743029713631,
0.3097247779369354,
0.4309922158718109,
-0.18977078795433044,
-0.028550628572702408,
-0.1574653536081314,
-0.4026029109954834,
-0.354804128408432,
-0.12882208824157715,
0.06789736449718475,
0.29780682921409607,
-0.09183484315872192,
-0.06463088095188141,
-0.14037257432937622,
-0.1978236883878708,
0.1965389996767044,
-0.12222188711166382,
0.28375595808029175,
-0.0024826545268297195,
0.31478628516197205,
0.2665964961051941,
0.35225510597229004,
0.271578848361969,
0.5941634178161621,
0.0000012750183486787137,
-0.2287432998418808,
-0.05062602832913399,
-0.06135962903499603,
-0.23775753378868103,
0.33246588706970215,
0.07151349633932114,
-0.3414061963558197,
0.056800276041030884,
0.24742262065410614,
-0.17868924140930176,
0.3185909390449524,
0.4256511926651001,
-0.06354983150959015,
-0.4400918483734131,
-0.3524300456047058,
0.3958846926689148,
0.21192942559719086,
-0.05023777484893799,
0.5040240287780762,
-0.04953976348042488,
-0.17878979444503784,
-0.055767085403203964,
-0.04235844686627388,
1.1023483276367188,
0.15647460520267487,
-0.10774947702884674,
0.2527411878108978,
-0.4704374074935913,
0.25937727093696594,
-0.22910919785499573,
0.1341121941804886,
-0.2876502275466919,
-0.5424714088439941,
0.021385760977864265,
-0.28120073676109314,
0.2467847466468811,
-0.04316786676645279,
-0.22380311787128448,
0.16705502569675446,
-0.010719014331698418,
0.05957064777612686,
0.15068989992141724,
0.3264895975589752,
-0.2793126404285431,
0.12475663423538208,
0.16684672236442566,
0.07916051149368286,
-0.12364019453525543,
0.47289276123046875,
-0.07793229818344116,
-0.13691119849681854,
-0.126655712723732,
-0.16215166449546814,
-0.603535532951355,
0.05485741049051285,
-0.37961557507514954,
0.24488839507102966,
0.004217482637614012,
0.050630927085876465,
0.03254333510994911,
0.06625363230705261,
0.2591128945350647,
0.08565881848335266,
-0.36639514565467834,
0.236521378159523,
-0.07260008156299591,
0.13240785896778107,
0.24621036648750305,
0.011354277841746807,
0.19802342355251312,
-0.12489014863967896,
-0.2756633162498474,
0.04765727370977402,
-0.16181668639183044,
-0.10357081145048141,
0.004522227682173252,
-0.175010547041893,
0.30701300501823425,
-0.6238242983818054,
-0.09819687902927399,
-0.05586820840835571,
0.12886561453342438,
-0.2135448157787323,
0.08286841958761215,
0.19961388409137726,
-0.10792587697505951,
0.475054532289505,
0.014078937470912933,
-0.4118834137916565,
-0.16993796825408936,
0.4765078127384186,
0.06739425659179688,
0.041594717651605606,
0.4440051019191742,
-0.09668520838022232,
-0.030206037685275078,
-0.060910750180482864,
0.4412088990211487,
-0.08310359716415405,
-0.47426992654800415,
0.2274128496646881,
-0.3301912546157837,
0.3447001576423645,
0.02100195549428463,
0.35654398798942566,
0.5420541167259216,
0.43919017910957336,
-0.01357207354158163,
-0.20463594794273376,
0.01590009778738022,
0.022921893745660782,
0.05012872442603111,
0.4237334430217743,
-0.092348113656044,
0.4085060656070709,
0.004138878080993891,
-0.02769366279244423,
-0.23741433024406433,
0.3453596830368042,
-0.047980379313230515,
0.040634043514728546,
0.1409529596567154,
-0.034233614802360535,
0.1449659764766693,
-0.02537904679775238,
-0.05781189352273941,
0.2546968162059784,
-0.18961763381958008,
-0.12972243130207062,
-0.1877344250679016,
0.218501016497612,
0.11131756007671356,
-0.14857110381126404,
0.10902735590934753,
-0.04808812588453293,
0.09649816900491714,
-0.0651802122592926,
0.020397577434778214,
0.0826222226023674,
-0.061479032039642334,
0.2990711033344269,
0.04645467922091484,
-0.1582016944885254,
-0.03225846216082573,
0.19642265141010284,
-0.24965915083885193,
0.3323284089565277,
0.13131873309612274,
0.35232052206993103,
0.17795585095882416,
0.003951078746467829,
-0.08669327944517136,
0.005066534038633108,
0.03303156793117523,
0.08431821316480637,
0.27015605568885803,
-0.25232845544815063,
0.09544555097818375,
0.3207381069660187,
0.12937837839126587,
0.36992347240448,
-0.1670771986246109,
-0.19815240800380707,
0.25006362795829773,
0.18450291454792023,
-0.2806068956851959,
0.027440166100859642,
0.48265424370765686,
0.07920505106449127,
-0.061438851058483124,
0.12193915992975235,
0.05152265354990959,
-0.04039795696735382,
-0.18601754307746887,
0.1256127804517746,
0.30578213930130005,
0.1706676036119461,
0.32756954431533813,
0.7761437296867371,
-0.1907457560300827,
-0.04412361606955528,
0.03296969085931778,
-0.27910879254341125,
0.222082257270813,
0.17889128625392914,
-0.16576933860778809,
0.3593078851699829,
-0.16198620200157166,
0.33047839999198914,
-0.2900736629962921,
-0.45055630803108215,
-0.08054245263338089,
0.143808975815773,
-0.08444393426179886,
0.13133065402507782,
0.07868186384439468,
0.4334898889064789,
-0.20612335205078125,
-0.03494516387581825,
-0.44426971673965454,
0.248285710811615,
0.06692197173833847,
0.006412215530872345,
0.06860364973545074,
-0.2048148363828659,
-0.16501198709011078,
0.0923435240983963,
-0.06433562189340591,
-0.016690339893102646,
0.3275224268436432,
-0.14246606826782227,
-0.36978110671043396,
-0.45384424924850464,
-0.21627618372440338,
-0.08225836604833603,
0.21164245903491974,
-0.44176214933395386,
0.11986871808767319,
0.10424574464559555,
-0.29830095171928406,
0.014446968212723732,
0.6690341830253601,
0.39104318618774414,
0.2221410721540451,
-0.008295190520584583,
-0.08402086049318314,
0.13981513679027557,
0.15869872272014618,
0.09231086075305939,
0.301276296377182,
0.0906737893819809,
-0.17680513858795166,
0.3088209927082062,
0.029949940741062164,
-0.08843357115983963,
0.07007011771202087,
-0.3639446198940277,
-0.21193179488182068,
-0.4602624177932739,
0.23094549775123596,
-0.1386173963546753,
0.08855757862329483,
-0.0725027546286583,
0.04637119546532631,
-0.33388733863830566,
-0.0766068696975708,
0.1268923282623291,
-0.03443704918026924,
0.246134951710701,
0.09628043323755264,
0.024332178756594658,
-0.30298686027526855,
0.21543289721012115,
0.4572520852088928,
-0.2380199432373047,
-0.1272333860397339,
-0.24110111594200134,
-0.529725968837738,
0.19886688888072968,
-0.14531110227108002,
-0.2223798781633377,
-0.012874510139226913,
0.2722306549549103,
-0.24685609340667725,
0.031095165759325027,
0.4103512167930603,
0.25458598136901855,
-0.132025346159935,
0.1670607030391693,
-0.37411069869995117,
-0.10490366071462631,
-0.12440530210733414,
0.06319651007652283,
0.1704513132572174,
-0.259473592042923,
0.2376660704612732,
-0.09885559231042862,
-0.040368903428316116,
-0.1549960970878601,
-0.035338856279850006,
0.05981551483273506,
-0.06584425270557404,
0.4095596373081207,
0.37406426668167114,
0.2854384183883667,
0.037070248275995255,
-0.14655201137065887,
-0.2708667516708374,
-0.1762218028306961,
-0.18874819576740265,
0.46480756998062134,
0.003347201505675912,
0.26546770334243774,
-0.15924279391765594,
0.03054840676486492,
-0.15012162923812866,
0.512474775314331,
0.12082488089799881,
-0.02022469788789749,
-0.24669434130191803,
-0.2782547175884247,
-0.05991824343800545,
-0.07594700157642365,
0.42664235830307007,
0.2766798734664917,
-0.1649908721446991,
0.10613805800676346,
-0.025803841650485992,
-0.4128345549106598,
0.4644298553466797,
0.00816156342625618,
-0.06493622064590454,
-0.18165838718414307,
0.2398124486207962,
0.317119300365448,
-0.2281714230775833,
-0.45768991112709045,
0.042084597051143646,
0.6015410423278809,
-0.03260987251996994,
-0.108012355864048,
0.16676601767539978,
-0.07205237448215485,
-0.061016745865345,
0.08577287197113037,
0.15625464916229248,
-0.013809503056108952,
-0.3180502653121948,
0.4304479658603668,
-0.0633087158203125
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | I'll try without deleting the whole cache (we have large datasets already stored). I was under the impression that `download_mode="force_redownload"` would bypass cache.
Sorry plateform should be linux (Redhat version 8.1) | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 31 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
I'll try without deleting the whole cache (we have large datasets already stored). I was under the impression that `download_mode="force_redownload"` would bypass cache.
Sorry plateform should be linux (Redhat version 8.1) | [
-0.3607826828956604,
-0.23985514044761658,
0.0516972653567791,
0.4607083797454834,
-0.045626744627952576,
0.13274234533309937,
0.0660521388053894,
0.6086550354957581,
0.14397108554840088,
0.1374788135290146,
-0.22836579382419586,
0.12169230729341507,
-0.05118745565414429,
0.24087956547737122,
0.017350604757666588,
0.055453184992074966,
-0.1288682073354721,
0.20908664166927338,
0.03275175765156746,
0.0964002013206482,
-0.2407325655221939,
0.16521459817886353,
-0.33076784014701843,
-0.0877939760684967,
-0.091942697763443,
0.04680488258600235,
-0.0785728469491005,
0.25251883268356323,
-0.14239607751369476,
-0.37203657627105713,
0.31019675731658936,
-0.32098186016082764,
0.052662722766399384,
0.4554589092731476,
-0.00012362562119960785,
0.058411289006471634,
0.3002468943595886,
-0.24924226105213165,
-0.1643616408109665,
-0.0202188678085804,
-0.49523261189460754,
-0.4582967162132263,
-0.11884969472885132,
-0.11414995789527893,
0.18496279418468475,
-0.052158113569021225,
0.09237987548112869,
-0.23819006979465485,
0.35232603549957275,
0.17602448165416718,
0.1076083779335022,
0.26880621910095215,
0.19097933173179626,
-0.014179284684360027,
0.3994998037815094,
-0.2885007858276367,
-0.20180101692676544,
-0.026038913056254387,
0.20259620249271393,
0.2345234453678131,
-0.00044943144894205034,
0.2051190584897995,
0.015543313696980476,
0.31760677695274353,
0.12301851063966751,
-0.08524564653635025,
0.1734517365694046,
-0.22359628975391388,
0.17657463252544403,
0.46329912543296814,
0.7116630673408508,
-0.2908663749694824,
-0.3333331048488617,
-0.45494964718818665,
-0.4818342626094818,
-0.07679826021194458,
0.3402118980884552,
0.3721655309200287,
0.01102032046765089,
0.283570259809494,
-0.23839476704597473,
-0.014435374177992344,
0.08676838874816895,
0.02480621263384819,
-0.26526176929473877,
0.16603821516036987,
-0.06558740139007568,
0.05255213379859924,
-0.0053645167499780655,
0.13843519985675812,
0.26470667123794556,
-0.07358721643686295,
0.0548303984105587,
0.17592239379882812,
-0.2408609837293625,
-0.07403679937124252,
0.01654372550547123,
-0.2352585643529892,
0.3727191984653473,
0.3354322016239166,
0.36359599232673645,
-0.19546473026275635,
-0.3061292767524719,
-0.012784872204065323,
0.20202596485614777,
0.46319445967674255,
-0.13913699984550476,
0.04027769714593887,
-0.1740579605102539,
0.05758338421583176,
0.11165047436952591,
-0.10035557299852371,
-0.016987396404147148,
-0.34246501326560974,
0.1643744558095932,
0.06348530948162079,
0.6322445273399353,
-0.36087605357170105,
-0.5638150572776794,
0.06203968822956085,
-0.22433345019817352,
-0.24493099749088287,
-0.2871403992176056,
-0.07887312769889832,
-0.3087582290172577,
0.3446003496646881,
0.10833442211151123,
-0.14104942977428436,
-0.2508389353752136,
-0.40970325469970703,
-0.25131115317344666,
-0.128201425075531,
-0.14434467256069183,
0.04154922813177109,
0.03193839639425278,
-0.13854624330997467,
0.2920023500919342,
0.004401776939630508,
-0.04838995635509491,
-0.18852661550045013,
0.17729535698890686,
-0.04952554032206535,
0.039591994136571884,
0.2417316883802414,
-0.06378541141748428,
0.2164585441350937,
0.031172441318631172,
0.12612222135066986,
-0.3001108765602112,
0.3434174656867981,
-0.32076698541641235,
-0.31995826959609985,
-0.09843669831752777,
0.07814689725637436,
-0.22465698421001434,
-0.16777075827121735,
0.1053343266248703,
-0.04712826386094093,
0.3671298325061798,
-0.22513315081596375,
-0.09916206449270248,
-0.12120220065116882,
-0.12453065067529678,
-0.10965123027563095,
0.044968198984861374,
0.5349205732345581,
-0.45289361476898193,
-0.18018203973770142,
0.18557551503181458,
-0.14250272512435913,
0.3732615113258362,
0.3822270929813385,
0.08771348744630814,
0.02404354140162468,
-0.23599587380886078,
0.08255251497030258,
0.020386014133691788,
-0.4213355481624603,
-0.8024855852127075,
0.429229199886322,
-0.06396988034248352,
0.19615131616592407,
0.15683390200138092,
-0.14465413987636566,
0.11708738654851913,
-0.15085498988628387,
0.05760590359568596,
0.17177608609199524,
-0.2016100138425827,
0.04423292726278305,
-0.6290656328201294,
-0.819658637046814,
0.38513535261154175,
-0.025481412187218666,
0.2239646315574646,
-0.10562416911125183,
0.024999840185046196,
0.2732912003993988,
0.36887097358703613,
0.1013236790895462,
0.06601691246032715,
0.16582314670085907,
0.003907239064574242,
0.0954907014966011,
-0.044536393135786057,
-0.29338592290878296,
-0.31914928555488586,
0.2778994143009186,
-0.2501973509788513,
-0.12875519692897797,
0.3011002242565155,
-0.1411421298980713,
-0.5185482501983643,
-0.2888205647468567,
-0.08627904206514359,
-0.0926859974861145,
-0.03155365586280823,
0.03899098560214043,
0.22520758211612701,
0.03516314551234245,
0.029835058376193047,
0.37398624420166016,
0.11673510074615479,
0.1384650021791458,
-0.2917841672897339,
0.12454000115394592,
-0.03964880853891373,
-0.016622107475996017,
0.0037610840518027544,
-0.13159407675266266,
0.1895119845867157,
-0.11182767152786255,
-0.38345086574554443,
0.6283051371574402,
-0.0011397181078791618,
0.11504227668046951,
-0.09077576547861099,
-0.013244840316474438,
0.265542209148407,
-0.18315117061138153,
0.15169566869735718,
0.3305782377719879,
-0.038867514580488205,
-0.11388278752565384,
0.037773896008729935,
-0.1808827519416809,
0.12144823372364044,
0.015627145767211914,
-0.11234451830387115,
0.012070764787495136,
-0.0592522956430912,
-0.16833949089050293,
0.05203203856945038,
-0.14709891378879547,
0.04103276878595352,
-0.1323205828666687,
0.15317991375923157,
-0.05869363620877266,
0.08949802815914154,
-0.07751190662384033,
0.6427764892578125,
-0.04618960991501808,
-0.0024132048711180687,
0.27738603949546814,
-0.313537061214447,
-0.11659828573465347,
-0.1492435783147812,
0.30935922265052795,
0.4315311014652252,
0.2351769357919693,
0.18164865672588348,
0.2148539125919342,
-0.04804043844342232,
-0.06632565706968307,
0.06239684298634529,
0.278815358877182,
0.11034899204969406,
0.278703898191452,
0.03146463260054588,
0.06040140241384506,
-0.23385955393314362,
0.11056052148342133,
0.19597545266151428,
0.3361183702945709,
-0.4241138696670532,
-0.1764780431985855,
-0.4222448766231537,
-0.09840879589319229,
-0.22539719939231873,
0.177984818816185,
-0.16844125092029572,
-0.22848621010780334,
-0.0869307741522789,
0.06736713647842407,
-0.011215158738195896,
0.18163184821605682,
-0.2745669484138489,
0.1598094403743744,
0.13928177952766418,
0.04023934528231621,
0.01256733201444149,
0.023512426763772964,
-0.4680194556713104,
-0.023242203518748283,
0.3328773081302643,
-0.3140137791633606,
0.3491358757019043,
-0.5354385375976562,
-0.010772276669740677,
-0.025656182318925858,
-0.15332840383052826,
0.0009074044064618647,
0.08253618329763412,
-0.06960329413414001,
0.2342223972082138,
0.2336278110742569,
0.056383922696113586,
0.11016753315925598,
0.12086443603038788,
-0.2705496847629547,
-0.23771648108959198,
-0.10754107683897018,
0.12148183584213257,
0.3437824845314026,
-0.023393670096993446,
-0.5561491250991821,
-0.2882373631000519,
-0.3905981183052063,
0.24522294104099274,
0.14880304038524628,
0.22246471047401428,
0.3056899309158325,
0.08156271278858185,
0.12641705572605133,
0.12552644312381744,
0.08661217987537384,
-0.25524988770484924,
-0.3846784234046936,
0.2754499316215515,
0.09553099423646927,
-0.2659647464752197,
-0.022863732650876045,
0.22000320255756378,
-0.06000503897666931,
0.13359615206718445,
-0.5093491077423096,
-0.18300682306289673,
-0.40228891372680664,
-0.20845861732959747,
-0.12369408458471298,
0.22602280974388123,
0.4829978048801422,
0.014627834782004356,
-0.030064284801483154,
-0.13768132030963898,
-0.3300880789756775,
0.03682609647512436,
0.19500675797462463,
0.48657312989234924,
-0.10929866880178452,
0.23801611363887787,
0.3572044372558594,
0.4601338803768158,
0.4681927263736725,
0.11954629421234131,
0.0832175463438034,
0.04177585244178772,
0.20688718557357788,
-0.10637389868497849,
0.059709422290325165,
0.1245609000325203,
-0.2355276197195053,
-0.02826329879462719,
0.2690127193927765,
0.1604711264371872,
-0.08776379376649857,
-0.09378635883331299,
-0.178008571267128,
-0.2976430058479309,
-0.10289908945560455,
-0.05609417334198952,
-0.06754077225923538,
0.17030203342437744,
0.26867160201072693,
0.10517541319131851,
-0.31798800826072693,
-0.20110301673412323,
0.1288355439901352,
0.03755154088139534,
-0.018576744943857193,
0.06624777615070343,
0.09506906569004059,
0.43593311309814453,
-0.30087485909461975,
0.4084656536579132,
0.1136152595281601,
0.23963662981987,
0.1571035236120224,
-0.22721177339553833,
0.10360508412122726,
0.03305661305785179,
0.48853713274002075,
-0.2571600377559662,
0.09512241184711456,
0.08096280694007874,
0.15085987746715546,
-0.30155545473098755,
-0.286162793636322,
-0.13402356207370758,
0.03126018866896629,
0.517575740814209,
0.037450455129146576,
-0.44276317954063416,
0.03978970646858215,
0.20951323211193085,
0.4867497980594635,
-0.21451736986637115,
-0.006349558476358652,
-0.1836831122636795,
-0.35081011056900024,
-0.44051605463027954,
0.010052686557173729,
0.1441057026386261,
0.1535167247056961,
0.08762088418006897,
-0.10922127962112427,
-0.16675952076911926,
-0.0914117768406868,
0.1370181143283844,
-0.10009685158729553,
0.35312190651893616,
0.027244683355093002,
0.2810150980949402,
0.2407766878604889,
0.3583732545375824,
0.2556769549846649,
0.5383524894714355,
-0.021165678277611732,
-0.048836808651685715,
0.012852875515818596,
-0.0926642194390297,
-0.25640708208084106,
0.40618279576301575,
0.07605363428592682,
-0.3070341646671295,
0.10120674222707748,
0.14283661544322968,
-0.24153241515159607,
0.24892263114452362,
0.2346799522638321,
-0.18335355818271637,
-0.504368782043457,
-0.691182017326355,
0.4553482234477997,
0.17150473594665527,
-0.09410560876131058,
0.46346575021743774,
-0.07329539954662323,
-0.14975939691066742,
0.06286222487688065,
-0.10803331434726715,
1.1349256038665771,
-0.0019087030086666346,
-0.07801858335733414,
0.08735520392656326,
-0.5329982042312622,
0.1726209670305252,
-0.2816605567932129,
0.19412049651145935,
-0.200712651014328,
-0.4522465467453003,
-0.06416627764701843,
-0.2595255672931671,
0.09830345213413239,
0.03905203938484192,
-0.17132343351840973,
0.27630114555358887,
0.074905164539814,
0.14467935264110565,
0.18822099268436432,
0.23707853257656097,
-0.30198797583580017,
0.02622056193649769,
0.16557404398918152,
0.03742130100727081,
-0.20988839864730835,
0.5125638842582703,
-0.10525704175233841,
-0.242701455950737,
-0.1034012883901596,
-0.12326110154390335,
-0.5089898705482483,
0.1167297214269638,
-0.3765403628349304,
0.2764255404472351,
-0.23749293386936188,
-0.0862792357802391,
0.03579351305961609,
-0.05254458636045456,
0.024879133328795433,
-0.04497290402650833,
-0.39382827281951904,
0.19567860662937164,
0.05945293977856636,
0.21471524238586426,
0.29432374238967896,
0.03357435762882233,
0.25831249356269836,
0.0008409118163399398,
-0.10664072632789612,
0.14041410386562347,
-0.08132899552583694,
-0.23165017366409302,
-0.027081379666924477,
-0.043683767318725586,
0.3094870448112488,
-0.5829218029975891,
-0.21635651588439941,
-0.10270685702562332,
0.12448233366012573,
-0.23333831131458282,
0.034378763288259506,
0.08797629177570343,
-0.0746372640132904,
0.34084010124206543,
-0.06353271007537842,
-0.4717176854610443,
-0.19944621622562408,
0.5206716060638428,
0.18198905885219574,
0.02933526411652565,
0.3584670126438141,
-0.1413271129131317,
-0.0639839768409729,
0.04704134538769722,
0.30874067544937134,
-0.22379034757614136,
-0.7066391706466675,
0.3328608274459839,
-0.5006851553916931,
0.26210787892341614,
0.05292804166674614,
0.1818528026342392,
0.4850796163082123,
0.41760894656181335,
-0.07805974781513214,
-0.14454881846904755,
-0.04885028675198555,
-0.013842977583408356,
0.03819732740521431,
0.3852779269218445,
0.048550497740507126,
0.42187729477882385,
0.10681737959384918,
-0.1626463532447815,
-0.21201716363430023,
0.2745407223701477,
0.053128037601709366,
-0.03907988965511322,
0.06395178288221359,
0.06059052422642708,
0.13908004760742188,
-0.12533804774284363,
-0.13046538829803467,
0.2742480933666229,
-0.22843538224697113,
-0.0878518670797348,
-0.18363210558891296,
0.23176445066928864,
0.09937754273414612,
-0.11376342922449112,
-0.06071373447775841,
-0.16764700412750244,
0.10752607136964798,
-0.10304336994886398,
-0.02047216147184372,
0.07924415171146393,
0.0045063006691634655,
0.12120214849710464,
0.07529177516698837,
-0.14367596805095673,
-0.16437040269374847,
0.22731682658195496,
-0.12745928764343262,
0.2589282989501953,
0.048545122146606445,
0.37217170000076294,
0.11872753500938416,
0.06776858866214752,
-0.21130862832069397,
-0.05178820341825485,
0.11616278439760208,
0.12641911208629608,
0.2635841369628906,
-0.35301148891448975,
0.12229148298501968,
0.4328979253768921,
0.13213855028152466,
0.33371761441230774,
-0.15844978392124176,
-0.28569653630256653,
0.09009206295013428,
0.1263713240623474,
-0.31192994117736816,
0.07998275756835938,
0.5263722538948059,
0.030018888413906097,
-0.05022447928786278,
0.16433213651180267,
0.2634984254837036,
-0.027881715446710587,
-0.2550131380558014,
0.24302956461906433,
0.5129170417785645,
0.16042740643024445,
0.22516988217830658,
1.0427395105361938,
0.01069790218025446,
0.10180125385522842,
0.10389731824398041,
0.0040846215561032295,
0.3406728506088257,
0.4126693606376648,
0.08492716401815414,
0.27416956424713135,
-0.02479221485555172,
0.39097627997398376,
-0.41343948245048523,
-0.47242477536201477,
-0.11341440677642822,
0.31694257259368896,
-0.01372575480490923,
0.2787603735923767,
0.16789835691452026,
0.2187366932630539,
-0.2551130950450897,
0.0223547350615263,
-0.35142895579338074,
0.18481707572937012,
0.016844257712364197,
-0.032873183488845825,
0.32471200823783875,
-0.2265099436044693,
-0.140300452709198,
0.08627370744943619,
-0.16057957708835602,
0.138353630900383,
0.23718230426311493,
-0.18598921597003937,
-0.19394180178642273,
-0.3010241985321045,
-0.18740388751029968,
0.010577499866485596,
0.1624985784292221,
-0.43425530195236206,
0.17838704586029053,
0.1304652988910675,
-0.2807532250881195,
0.03244871646165848,
0.6316357254981995,
0.4081059992313385,
0.3006576895713806,
-0.06899810582399368,
-0.10266833007335663,
0.30051350593566895,
0.13602221012115479,
-0.09127148985862732,
0.10527803003787994,
0.07037295401096344,
-0.06740694493055344,
0.30166831612586975,
0.021481575444340706,
-0.10851182788610458,
0.015388415195047855,
-0.27763551473617554,
-0.16976282000541687,
-0.3523254692554474,
0.33878636360168457,
-0.22935359179973602,
0.06965695321559906,
-0.032013677060604095,
0.04048243165016174,
-0.374260812997818,
0.0021907459013164043,
0.1292649656534195,
-0.05586348474025726,
0.22969776391983032,
0.16964998841285706,
0.002529450925067067,
-0.14840056002140045,
0.21510185301303864,
0.4300905466079712,
-0.3279687166213989,
-0.1806127279996872,
-0.0553877055644989,
-0.6753020286560059,
0.19293440878391266,
-0.24461869895458221,
-0.16387760639190674,
0.0704149603843689,
0.3578232228755951,
-0.17260931432247162,
-0.034128062427043915,
0.4378107488155365,
0.37695199251174927,
-0.11194255948066711,
0.2010064274072647,
-0.17593897879123688,
-0.2322310358285904,
0.014995896257460117,
0.03643728047609329,
0.11348660290241241,
-0.4270339012145996,
0.21207724511623383,
0.13160359859466553,
-0.06731545180082321,
-0.20845791697502136,
-0.09718820452690125,
0.11513178050518036,
-0.1476905345916748,
0.5114877820014954,
0.24500127136707306,
0.35392245650291443,
0.0070625110529363155,
-0.29186487197875977,
-0.2748839557170868,
-0.18093611299991608,
-0.2635331153869629,
0.3029271066188812,
0.007489686831831932,
0.19137874245643616,
-0.2344794124364853,
-0.05331402271986008,
-0.16076119244098663,
0.5604592561721802,
0.11867529153823853,
0.05773456394672394,
-0.26156100630760193,
-0.2985355257987976,
-0.20299142599105835,
-0.05431504175066948,
0.42809078097343445,
0.21247565746307373,
-0.19550979137420654,
0.11993538588285446,
-0.03389943018555641,
-0.5013496279716492,
0.3801289498806,
0.04241736978292465,
-0.08643806725740433,
-0.09981115907430649,
0.23537904024124146,
0.45154398679733276,
-0.10790553689002991,
-0.34434545040130615,
0.1179366409778595,
0.48266732692718506,
0.008223176002502441,
-0.10749801248311996,
0.1426824927330017,
-0.125990629196167,
-0.10823846608400345,
0.009763078764081001,
0.09634565562009811,
0.05743987485766411,
-0.41659507155418396,
0.3547332286834717,
-0.10806862264871597
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | Sorry I haven't had time to work on this. I'll close and re-open if I can't figure out why I'm having this issue. Thanks for taking a look ! | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 29 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
Sorry I haven't had time to work on this. I'll close and re-open if I can't figure out why I'm having this issue. Thanks for taking a look ! | [
-0.3353739380836487,
-0.1884128749370575,
0.048762764781713486,
0.4328114092350006,
0.05913512408733368,
0.11154143512248993,
-0.08526159822940826,
0.5720371603965759,
-0.016944676637649536,
0.12638455629348755,
-0.12406720966100693,
0.0030226658564060926,
-0.07802116870880127,
0.08419697731733322,
-0.12841500341892242,
0.02853294648230076,
-0.1261274516582489,
0.1875729113817215,
-0.2567582130432129,
0.10377998650074005,
-0.2894752621650696,
0.26356473565101624,
-0.31471240520477295,
0.004334706347435713,
-0.1761123239994049,
0.040309466421604156,
-0.19970451295375824,
0.15302857756614685,
-0.2597186863422394,
-0.3653438687324524,
0.2717801630496979,
-0.38231781125068665,
0.05903357267379761,
0.4936450719833374,
-0.00011823562090285122,
0.02958451583981514,
0.3093130886554718,
-0.20890198647975922,
-0.08463333547115326,
-0.15988612174987793,
-0.4955509305000305,
-0.4291180968284607,
-0.0661034807562828,
-0.12108160555362701,
0.19024261832237244,
-0.1171417161822319,
0.12682856619358063,
-0.32751303911209106,
0.3349784314632416,
0.32315486669540405,
0.1783088743686676,
0.4126831293106079,
0.20729927718639374,
0.0013007362140342593,
0.3759172558784485,
-0.29199787974357605,
-0.2213471680879593,
-0.07040821015834808,
0.08605727553367615,
0.026812715455889702,
0.003103655995801091,
0.026894088834524155,
0.023280128836631775,
0.2867482304573059,
0.16306188702583313,
-0.036834716796875,
0.3667396008968353,
-0.20628328621387482,
0.10118655860424042,
0.421010822057724,
0.7274804711341858,
-0.21539932489395142,
-0.2575478255748749,
-0.3073272407054901,
-0.37691330909729004,
0.02979922480881214,
0.27738550305366516,
0.486647367477417,
0.0031601195223629475,
0.19840997457504272,
-0.3036157190799713,
0.0575401708483696,
0.0382375568151474,
0.16167482733726501,
-0.21826447546482086,
0.2967069447040558,
-0.0009072625543922186,
0.15270303189754486,
-0.09291540086269379,
0.08514175564050674,
0.2732588052749634,
-0.12731996178627014,
0.008403490297496319,
0.161126509308815,
-0.26151424646377563,
0.011776345781981945,
-0.02821933664381504,
-0.24755467474460602,
0.26538532972335815,
0.3092903792858124,
0.369036465883255,
-0.3131043314933777,
-0.13796435296535492,
-0.0037724156863987446,
0.23903751373291016,
0.37990546226501465,
-0.04373439773917198,
0.184698686003685,
-0.18880656361579895,
0.0326586477458477,
0.11329279839992523,
-0.07556265592575073,
-0.028256651014089584,
-0.3621480166912079,
0.06590698659420013,
-0.011328480206429958,
0.6134742498397827,
-0.2487010508775711,
-0.6051998138427734,
0.06586775928735733,
-0.2793933153152466,
-0.25654399394989014,
-0.3295619487762451,
-0.1635749340057373,
-0.3112907409667969,
0.25823917984962463,
0.1950361579656601,
-0.0819411650300026,
-0.32766374945640564,
-0.372160404920578,
-0.2869725823402405,
-0.11749802529811859,
-0.16204069554805756,
0.04616926982998848,
-0.10413002967834473,
-0.013191482983529568,
0.3832283616065979,
-0.05878046154975891,
-0.042381010949611664,
-0.2699393630027771,
0.14486120641231537,
0.03240007907152176,
-0.06995237618684769,
0.1504085659980774,
-0.16336879134178162,
0.1828366219997406,
0.047220516949892044,
0.08470847457647324,
-0.35643357038497925,
0.3897976875305176,
-0.26156166195869446,
-0.36364904046058655,
-0.22178228199481964,
0.14569750428199768,
-0.3320492208003998,
-0.21517252922058105,
0.3394041359424591,
-0.04173816367983818,
0.24157196283340454,
-0.20579610764980316,
-0.14081130921840668,
-0.22037355601787567,
-0.20545032620429993,
-0.14001242816448212,
0.07151774317026138,
0.37401214241981506,
-0.29693156480789185,
-0.21842823922634125,
0.21595437824726105,
-0.05829979106783867,
0.4005609154701233,
0.4265967905521393,
0.030636461451649666,
0.006885274313390255,
-0.19789797067642212,
0.2515298128128052,
0.1011660173535347,
-0.2532137632369995,
-0.6780224442481995,
0.40997081995010376,
-0.1634245067834854,
0.18147577345371246,
0.11882885545492172,
-0.09907252341508865,
0.07370626926422119,
-0.1317552924156189,
-0.08504609018564224,
0.21207678318023682,
-0.21064068377017975,
0.07072551548480988,
-0.5871099829673767,
-0.786900520324707,
0.3780456781387329,
-0.05845103785395622,
0.16274507343769073,
-0.17974938452243805,
-0.027854157611727715,
0.25995853543281555,
0.49608689546585083,
0.10674265027046204,
0.01472799014300108,
0.1068839281797409,
0.061495207250118256,
0.06813891977071762,
-0.0840681865811348,
-0.25013482570648193,
-0.15885615348815918,
0.21992440521717072,
-0.18152926862239838,
-0.05629899725317955,
0.30161991715431213,
-0.10837404429912567,
-0.567150890827179,
-0.20563101768493652,
-0.059486620128154755,
-0.09703704714775085,
0.0005350707215256989,
0.0013911378337070346,
0.18221838772296906,
0.08781829476356506,
0.1549394279718399,
0.35095542669296265,
0.0925607979297638,
0.11530818045139313,
-0.3258303701877594,
0.2187996655702591,
-0.042067334055900574,
-0.11440876126289368,
0.1862327605485916,
-0.08072095364332199,
0.18944606184959412,
-0.05065865442156792,
-0.40080979466438293,
0.6621261239051819,
-0.05086500197649002,
0.13042208552360535,
-0.0485617071390152,
0.07591066509485245,
0.20871669054031372,
-0.16475459933280945,
0.13969214260578156,
0.40400564670562744,
-0.007812182419002056,
-0.08936604857444763,
0.12857507169246674,
-0.14666502177715302,
0.16815674304962158,
0.03858158364892006,
-0.13998396694660187,
0.021916935220360756,
-0.10823406279087067,
-0.1906883865594864,
-0.021882522851228714,
-0.1363818496465683,
0.12147930264472961,
-0.014377099461853504,
-0.1486690193414688,
0.04905454069375992,
0.13071604073047638,
-0.1663719117641449,
0.7351146936416626,
-0.03953870013356209,
-0.04932470992207527,
0.30841487646102905,
-0.30094972252845764,
-0.06960787624120712,
-0.18691419064998627,
0.20090264081954956,
0.5170975923538208,
0.23734186589717865,
0.17053863406181335,
0.22323939204216003,
0.005983786657452583,
-0.15737520158290863,
0.12091722339391708,
0.2986406981945038,
0.22527308762073517,
0.23326782882213593,
-0.004037896636873484,
0.04425672069191933,
-0.14314641058444977,
0.1358931064605713,
0.054893799126148224,
0.3265087604522705,
-0.4214720129966736,
-0.22210292518138885,
-0.4799451231956482,
-0.007051760330796242,
-0.33298587799072266,
0.18562981486320496,
-0.18144387006759644,
-0.3045489192008972,
-0.06916530430316925,
0.07297112792730331,
-0.0868559256196022,
0.17727366089820862,
-0.2617517113685608,
0.11661957949399948,
0.17268387973308563,
0.1684265434741974,
0.11313952505588531,
-0.02966974675655365,
-0.5200145244598389,
0.016342507675290108,
0.28461116552352905,
-0.26463642716407776,
0.3774174451828003,
-0.553154706954956,
0.01950577273964882,
-0.07206951081752777,
-0.1443546712398529,
-0.120066799223423,
0.05968624725937843,
0.04070451855659485,
0.1904512196779251,
0.16159971058368683,
0.0788518637418747,
-0.03248098865151405,
0.182314932346344,
-0.27917784452438354,
-0.19314658641815186,
-0.06656411290168762,
0.14173972606658936,
0.21539200842380524,
-0.015932708978652954,
-0.5946924686431885,
-0.2640363276004791,
-0.3566412329673767,
0.24695375561714172,
0.0686296671628952,
0.18705923855304718,
0.0002922418061643839,
0.0823858231306076,
0.019131675362586975,
0.04284090921282768,
0.08749958127737045,
-0.21507233381271362,
-0.44135981798171997,
0.33663979172706604,
0.06748833507299423,
-0.3040824830532074,
-0.013975193724036217,
0.2830917537212372,
-0.07501783967018127,
0.0852656289935112,
-0.6037400960922241,
-0.11214837431907654,
-0.3842428922653198,
-0.10204460471868515,
-0.10890073329210281,
0.19097800552845,
0.4259519577026367,
0.03209525719285011,
-0.05229948088526726,
-0.14267441630363464,
-0.32677388191223145,
-0.009112047962844372,
0.28599995374679565,
0.5351226329803467,
-0.048674289137125015,
0.27007606625556946,
0.3071492612361908,
0.43746963143348694,
0.5364368557929993,
0.07918688654899597,
0.016177808865904808,
-0.03853536769747734,
0.08284226804971695,
-0.10283268243074417,
0.053590524941682816,
0.19108156859874725,
-0.21763749420642853,
0.04924239590764046,
0.35651084780693054,
0.1696508824825287,
0.012755424715578556,
-0.036849312484264374,
-0.08760159462690353,
-0.38987264037132263,
-0.1862398087978363,
-0.022767044603824615,
-0.03137602657079697,
0.1551937460899353,
0.23143631219863892,
0.08150049299001694,
-0.21519292891025543,
-0.2685631215572357,
0.10598143935203552,
-0.030025435611605644,
-0.1459791660308838,
0.042329080402851105,
0.17524604499340057,
0.37308818101882935,
-0.37413662672042847,
0.3963320553302765,
0.09693171828985214,
0.23707053065299988,
0.17601212859153748,
-0.2623288929462433,
0.13416925072669983,
0.06650841981172562,
0.3930380642414093,
-0.01595093496143818,
-0.08923997730016708,
0.07615863531827927,
0.1335609406232834,
-0.49092742800712585,
-0.3171021044254303,
-0.10529928654432297,
0.10854046046733856,
0.5230335593223572,
-0.0738658607006073,
-0.3801213204860687,
0.020902572199702263,
0.3068943917751312,
0.4333486258983612,
-0.23598062992095947,
-0.07290796935558319,
-0.1252312809228897,
-0.37633684277534485,
-0.285029798746109,
-0.19128432869911194,
0.04646376520395279,
0.2928820550441742,
0.0043563139624893665,
-0.09804075211286545,
-0.07330755144357681,
-0.2081434428691864,
0.17462262511253357,
-0.1836489886045456,
0.29250675439834595,
-0.0004944605170749128,
0.3188737630844116,
0.26939958333969116,
0.3867369592189789,
0.2052210122346878,
0.5904604196548462,
0.04360336810350418,
-0.18671834468841553,
-0.0387386791408062,
-0.12827298045158386,
-0.234435573220253,
0.30332258343696594,
0.11875841021537781,
-0.32591432332992554,
-0.040138933807611465,
0.19569110870361328,
-0.33269384503364563,
0.24289961159229279,
0.46632716059684753,
-0.11626432836055756,
-0.4240003824234009,
-0.4418562650680542,
0.49758443236351013,
0.20400628447532654,
-0.04513869062066078,
0.47908687591552734,
-0.07989408820867538,
-0.16777966916561127,
0.03339175879955292,
-0.14595754444599152,
1.0368595123291016,
0.0999152734875679,
-0.09072000533342361,
0.20943136513233185,
-0.5453344583511353,
0.17100420594215393,
-0.1999564915895462,
0.22048161923885345,
-0.2778276205062866,
-0.40510231256484985,
0.006935493554919958,
-0.2201944887638092,
0.16505423188209534,
-0.013068471103906631,
-0.21867398917675018,
0.23400941491127014,
-0.039074771106243134,
0.0920773297548294,
0.1622832715511322,
0.263651967048645,
-0.23692938685417175,
0.1853293627500534,
0.26611313223838806,
0.08330004662275314,
-0.2128530740737915,
0.5148091316223145,
-0.07604201883077621,
-0.16090284287929535,
-0.14917755126953125,
-0.13737380504608154,
-0.5546501278877258,
0.05995018407702446,
-0.3144535720348358,
0.2885302007198334,
-0.21716733276844025,
0.0433867983520031,
0.0880812406539917,
0.09239254146814346,
0.014203476719558239,
-0.059497181326150894,
-0.37759730219841003,
0.25531667470932007,
-0.05252264067530632,
0.14125767350196838,
0.26208847761154175,
0.08320554345846176,
0.11015798151493073,
-0.09120313078165054,
-0.23728050291538239,
0.04052349925041199,
-0.08374915271997452,
-0.12296468764543533,
-0.0970740020275116,
-0.16800718009471893,
0.386713445186615,
-0.6676740646362305,
-0.1573057323694229,
-0.10340719670057297,
0.14368417859077454,
-0.19593609869480133,
0.08749581128358841,
0.10291950404644012,
-0.04744269326329231,
0.42782866954803467,
0.016350118443369865,
-0.45872241258621216,
-0.19430236518383026,
0.4307103455066681,
0.12795490026474,
0.09168914705514908,
0.44425949454307556,
-0.13705340027809143,
-0.03767794370651245,
0.011773987673223019,
0.4629661440849304,
-0.1131054237484932,
-0.5498894453048706,
0.2595931887626648,
-0.40448835492134094,
0.3425936996936798,
0.09816852957010269,
0.2810600697994232,
0.5407377481460571,
0.3864484131336212,
-0.026415066793560982,
-0.1146286129951477,
0.06699174642562866,
0.0011304906802251935,
0.07464583963155746,
0.3588259220123291,
-0.08057200908660889,
0.40451374650001526,
0.06726290285587311,
-0.07049281895160675,
-0.2422812134027481,
0.2544279992580414,
0.01567757874727249,
0.04286967217922211,
0.14555415511131287,
0.02864096127450466,
0.1355082392692566,
-0.011797167360782623,
-0.039009615778923035,
0.18541772663593292,
-0.24322253465652466,
-0.09896105527877808,
-0.16152432560920715,
0.20798000693321228,
0.054691314697265625,
-0.1530819535255432,
0.04565593600273132,
-0.1510106474161148,
0.12554550170898438,
-0.11626126617193222,
-0.1137402355670929,
0.1645742952823639,
-0.0513618066906929,
0.218362495303154,
0.12684498727321625,
-0.20660831034183502,
-0.06653930991888046,
0.26023897528648376,
-0.23443549871444702,
0.42730462551116943,
0.02452065423130989,
0.3384079933166504,
0.2047898918390274,
-0.010874113999307156,
-0.08503133803606033,
-0.05980983376502991,
0.00035907531855627894,
0.15678741037845612,
0.30134883522987366,
-0.2508282959461212,
0.1260695457458496,
0.36434054374694824,
0.1374811828136444,
0.4328539967536926,
-0.13132509589195251,
-0.2906666100025177,
0.10454710572957993,
0.17843124270439148,
-0.29923582077026367,
0.016165584325790405,
0.4957771599292755,
0.1222691759467125,
-0.05677181854844093,
0.07611420005559921,
0.09448805451393127,
-0.031180527061223984,
-0.33278632164001465,
0.16457124054431915,
0.4324416518211365,
0.22569207847118378,
0.3186548054218292,
0.8666624426841736,
-0.0204311553388834,
-0.025654686614871025,
0.02377592958509922,
-0.18413667380809784,
0.31953859329223633,
0.2806243896484375,
-0.1578599363565445,
0.34372833371162415,
-0.005677659064531326,
0.350511759519577,
-0.339798241853714,
-0.367202490568161,
-0.10765719413757324,
0.24174407124519348,
-0.012182490900158882,
0.21982575953006744,
0.20632632076740265,
0.3108755350112915,
-0.2241533249616623,
-0.006381436251103878,
-0.3726564347743988,
0.1676119565963745,
0.07061519473791122,
-0.031356967985630035,
0.052418652921915054,
-0.2259843349456787,
-0.20600411295890808,
0.06406683474779129,
-0.1661808341741562,
0.0202163178473711,
0.2706851065158844,
-0.17954133450984955,
-0.20287790894508362,
-0.3367297947406769,
-0.19083134829998016,
-0.11357615143060684,
0.18859028816223145,
-0.4949007034301758,
0.04654626548290253,
0.13435669243335724,
-0.2942206859588623,
0.1290152370929718,
0.620079517364502,
0.443633496761322,
0.29798734188079834,
-0.14080432057380676,
-0.1054057776927948,
0.2517392039299011,
0.10272596776485443,
0.04671737551689148,
0.18576212227344513,
0.04891688749194145,
-0.12779144942760468,
0.3198869228363037,
0.05691419169306755,
-0.09909927099943161,
0.09341400861740112,
-0.23641525208950043,
-0.15411026775836945,
-0.39874473214149475,
0.23478031158447266,
-0.20859873294830322,
0.054756175726652145,
0.0016947059193626046,
-0.02847052551805973,
-0.3427092134952545,
-0.03560110181570053,
0.1651671826839447,
-0.06479551643133163,
0.2333298921585083,
0.1454220861196518,
0.0216183103621006,
-0.21161894500255585,
0.22478774189949036,
0.41615745425224304,
-0.3166663348674774,
-0.18429642915725708,
-0.23507073521614075,
-0.5166271328926086,
0.2552206814289093,
-0.20808856189250946,
-0.1786126047372818,
0.06149813160300255,
0.318290114402771,
-0.2253255397081375,
-0.043742336332798004,
0.4135929346084595,
0.29707151651382446,
-0.2436302751302719,
0.14134721457958221,
-0.3079407215118408,
-0.2109190672636032,
-0.05626709759235382,
0.04033973813056946,
0.16739770770072937,
-0.2650246024131775,
0.2208801507949829,
-0.1054108589887619,
-0.02572810649871826,
-0.2519940733909607,
-0.033063095062971115,
0.13484463095664978,
-0.08432529866695404,
0.4137386679649353,
0.3345901072025299,
0.295154333114624,
-0.01776871085166931,
-0.15736205875873566,
-0.25314077734947205,
-0.27535882592201233,
-0.20245736837387085,
0.40000155568122864,
-0.03400641679763794,
0.23472361266613007,
-0.2256830632686615,
0.05785062164068222,
-0.1563292145729065,
0.44132205843925476,
0.0167557280510664,
0.05505086109042168,
-0.20077389478683472,
-0.2971840798854828,
-0.09777332842350006,
-0.14190322160720825,
0.3616727292537689,
0.30119526386260986,
-0.15482990443706512,
0.13414917886257172,
0.01662752777338028,
-0.4505011737346649,
0.4645194709300995,
0.07439859956502914,
-0.07884849607944489,
-0.10063744336366653,
0.1509798765182495,
0.32839006185531616,
-0.058299507945775986,
-0.3652934730052948,
0.10826461762189865,
0.5874561667442322,
0.020144600421190262,
-0.025481628254055977,
0.13244174420833588,
-0.044002313166856766,
-0.1434296816587448,
0.11587551236152649,
0.16677188873291016,
-0.0006539385067299008,
-0.4427075684070587,
0.41585028171539307,
-0.1364070326089859
] |
https://github.com/huggingface/datasets/issues/2831 | ArrowInvalid when mapping dataset with missing values | Hi ! It fails because of the feature type inference.
Because the first 1000 examples all have null values in the "match" field, then it infers that the type for this field is `null` type before writing the data on disk. But as soon as it tries to map an example with a non-null "match" field, then it fails.
To fix that you can either:
- increase the writer_batch_size to >2000 (default is 1000) so that some non-null values will be in the first batch written to disk
```python
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], writer_batch_size=2000)
```
- OR force the feature type with:
```python
from datasets import Features, Value
features = Features({
'conflict': Value('int64'),
'date': Value('string'),
'headline': Value('string'),
'match': Value('float64'),
'label': Value('float64')
})
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], features=features)
``` | ## Describe the bug
I encountered an `ArrowInvalid` when mapping dataset with missing values.
Here are the files for a minimal example. The exception is only thrown when the first line in the csv has a missing value (if you move the last line to the top it isn't thrown).
[data_small.csv](https://github.com/huggingface/datasets/files/7037838/data_small.csv)
[data.csv](https://github.com/huggingface/datasets/files/7037842/data.csv)
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("csv", data_files=['data_small.csv'])
datasets = datasets.map(lambda e: {'labels': e['match']},
remove_columns=['id'])
```
## Expected results
No error
## Actual results
```
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Invalid null value
```
## Environment info
- `datasets` version: 1.5.0
- Platform: Linux-5.11.0-25-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): 1.7.1+cpu (False)
- Tensorflow version (GPU?): 2.4.1 (False)
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no
| 134 | ArrowInvalid when mapping dataset with missing values
## Describe the bug
I encountered an `ArrowInvalid` when mapping dataset with missing values.
Here are the files for a minimal example. The exception is only thrown when the first line in the csv has a missing value (if you move the last line to the top it isn't thrown).
[data_small.csv](https://github.com/huggingface/datasets/files/7037838/data_small.csv)
[data.csv](https://github.com/huggingface/datasets/files/7037842/data.csv)
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("csv", data_files=['data_small.csv'])
datasets = datasets.map(lambda e: {'labels': e['match']},
remove_columns=['id'])
```
## Expected results
No error
## Actual results
```
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Invalid null value
```
## Environment info
- `datasets` version: 1.5.0
- Platform: Linux-5.11.0-25-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): 1.7.1+cpu (False)
- Tensorflow version (GPU?): 2.4.1 (False)
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no
Hi ! It fails because of the feature type inference.
Because the first 1000 examples all have null values in the "match" field, then it infers that the type for this field is `null` type before writing the data on disk. But as soon as it tries to map an example with a non-null "match" field, then it fails.
To fix that you can either:
- increase the writer_batch_size to >2000 (default is 1000) so that some non-null values will be in the first batch written to disk
```python
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], writer_batch_size=2000)
```
- OR force the feature type with:
```python
from datasets import Features, Value
features = Features({
'conflict': Value('int64'),
'date': Value('string'),
'headline': Value('string'),
'match': Value('float64'),
'label': Value('float64')
})
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], features=features)
``` | [
-0.0327264629304409,
-0.1531253457069397,
0.10408952832221985,
0.22862353920936584,
0.07260055840015411,
0.13660718500614166,
0.33298006653785706,
0.4905758798122406,
-0.020769834518432617,
0.23007361590862274,
0.23385097086429596,
0.43901750445365906,
0.027151865884661674,
-0.14941635727882385,
-0.11286703497171402,
-0.0434914268553257,
0.03623824566602707,
0.11753645539283752,
-0.001327330945059657,
-0.044731199741363525,
-0.37874215841293335,
0.08443980664014816,
-0.33890220522880554,
0.05751097574830055,
-0.3012344539165497,
-0.10772989690303802,
-0.009029217064380646,
0.003483653999865055,
0.12988878786563873,
-0.49105140566825867,
0.2923193871974945,
-0.5293872952461243,
-0.15050162374973297,
0.1626194268465042,
-0.00011587110930122435,
-0.03398669883608818,
0.25184983015060425,
0.05191309005022049,
-0.07845519483089447,
-0.27582502365112305,
-0.156818225979805,
-0.2185935527086258,
-0.014173620380461216,
-0.16535714268684387,
0.1762029081583023,
-0.03751660883426666,
0.07602319121360779,
-0.19610854983329773,
-0.0201384536921978,
0.27090632915496826,
0.14604946970939636,
0.4126611649990082,
0.21786895394325256,
0.08923845738172531,
0.4545614421367645,
0.050791434943675995,
-0.2142464518547058,
0.3872684836387634,
0.15017710626125336,
-0.22614258527755737,
0.10557516664266586,
0.31454551219940186,
-0.031207334250211716,
0.01608164794743061,
0.31010958552360535,
0.1767360419034958,
-0.06331313401460648,
-0.22936469316482544,
-0.09567828476428986,
0.1412266194820404,
0.12131332606077194,
-0.4014453887939453,
-0.43026202917099,
-0.28518208861351013,
0.08363015204668045,
-0.3390863835811615,
0.3403959572315216,
0.16856782138347626,
-0.1564161479473114,
0.16236665844917297,
0.11551430821418762,
0.20142769813537598,
-0.19284863770008087,
0.14998787641525269,
-0.10428282618522644,
0.08338139206171036,
0.05035069212317467,
0.26093748211860657,
-0.05607428401708603,
-0.20230039954185486,
-0.2976309657096863,
-0.18102627992630005,
0.0063062431290745735,
0.26301518082618713,
-0.3672582507133484,
-0.21983079612255096,
-0.15048488974571228,
-0.15605883300304413,
0.1592741161584854,
-0.22765494883060455,
0.29903215169906616,
-0.10675419867038727,
0.07773305475711823,
0.41287869215011597,
0.06080425903201103,
-0.15061034262180328,
0.15270818769931793,
0.10832632333040237,
0.17800253629684448,
-0.406111478805542,
0.26364684104919434,
-0.03429190069437027,
0.1340157687664032,
-0.5859511494636536,
0.5141165852546692,
0.2606026232242584,
0.672846794128418,
-0.11262945085763931,
-0.468902587890625,
0.12761081755161285,
-0.7892333269119263,
0.33375871181488037,
-0.13578081130981445,
0.1627139300107956,
0.013074654154479504,
0.0863918736577034,
0.048419319093227386,
0.2774146795272827,
-0.1620679497718811,
-0.2743249535560608,
0.014725564047694206,
-0.07467865198850632,
-0.05406823009252548,
-0.04467179998755455,
0.3431839942932129,
-0.18988996744155884,
0.24581438302993774,
0.17596563696861267,
-0.11227861046791077,
-0.0045989337377250195,
0.26263150572776794,
-0.3046375811100006,
0.14800237119197845,
0.17374826967716217,
-0.42710089683532715,
0.2794370651245117,
0.03871982917189598,
-0.14658892154693604,
-0.18923169374465942,
0.2775796949863434,
-0.120545893907547,
-0.1588580459356308,
-0.21657536923885345,
0.148295596241951,
0.0022300740238279104,
-0.21283426880836487,
-0.0539998896420002,
-0.0020000869408249855,
0.24237507581710815,
-0.17349058389663696,
0.18461032211780548,
-0.21997928619384766,
0.018750108778476715,
-0.3760906159877777,
-0.011368701234459877,
0.37363436818122864,
-0.6385915875434875,
0.07083672285079956,
0.12679365277290344,
-0.01857396401464939,
-0.033731844276189804,
0.36348408460617065,
-0.18706931173801422,
-0.013671129010617733,
-0.05916191637516022,
0.5252676010131836,
-0.00864669680595398,
-0.1326465904712677,
-0.4373977482318878,
0.13138653337955475,
-0.07439559698104858,
-0.24445457756519318,
0.04010409861803055,
0.2435707151889801,
0.14176997542381287,
-0.1496628075838089,
-0.01733420602977276,
-0.12138472497463226,
-0.13008588552474976,
0.22431835532188416,
-0.3260701298713684,
-0.041178710758686066,
0.17207816243171692,
0.05061674118041992,
-0.1469435691833496,
-0.2109329253435135,
0.19453640282154083,
-0.6835861802101135,
0.03290781006217003,
-0.20681199431419373,
0.2666671872138977,
0.396226167678833,
0.4044356346130371,
-0.046576205641031265,
0.1552022099494934,
-0.13335464894771576,
-0.8110236525535583,
0.1985863596200943,
0.10084763914346695,
-0.18216024339199066,
-0.48114606738090515,
-0.40981006622314453,
-0.10612671822309494,
0.32309865951538086,
0.16904674470424652,
0.1539757251739502,
0.07517682015895844,
-0.0067512779496610165,
-0.12268530577421188,
-0.05989302322268486,
-0.28498613834381104,
-0.29865413904190063,
-0.21726500988006592,
0.18654865026474,
-0.22493557631969452,
0.2575950026512146,
-0.013920963741838932,
-0.21677953004837036,
-0.09607496112585068,
0.03442557528614998,
0.176199272274971,
-0.1273742914199829,
0.013591449707746506,
0.4820093810558319,
0.10676223039627075,
0.14639097452163696,
-0.11827109754085541,
0.027235476300120354,
0.3414061665534973,
-0.48752474784851074,
-0.2777242958545685,
0.3717953562736511,
0.3092469871044159,
0.06549474596977234,
-0.1880117803812027,
0.36703070998191833,
-0.008576150052249432,
0.14266225695610046,
-0.2432319074869156,
-0.024010613560676575,
0.04764571785926819,
-0.005088428035378456,
-0.17066814005374908,
-0.07407746464014053,
-0.08377080410718918,
-0.013225062750279903,
0.2308352142572403,
0.17070122063159943,
-0.64846271276474,
0.006449821405112743,
0.17776499688625336,
-0.12628275156021118,
0.14713998138904572,
0.04634569585323334,
-0.2821580469608307,
0.36590576171875,
0.3918357193470001,
0.03229027986526489,
0.34375283122062683,
0.19766442477703094,
-0.07752794772386551,
0.005095129366964102,
-0.15217089653015137,
-0.08245912194252014,
0.34863001108169556,
-0.00507066585123539,
0.08307962864637375,
0.13029639422893524,
0.1771519035100937,
0.27785956859588623,
-0.17541185021400452,
0.01878497004508972,
0.2271977812051773,
0.19064544141292572,
-0.590059757232666,
-0.06686718016862869,
-0.10820412635803223,
0.07915882766246796,
-0.35325780510902405,
-0.1602441668510437,
-0.08377085626125336,
-0.26792654395103455,
-0.02383255399763584,
0.17871183156967163,
-0.4540551006793976,
0.29627591371536255,
-0.050303295254707336,
0.06450192630290985,
0.20975741744041443,
-0.2873470187187195,
-0.19868740439414978,
-0.18054457008838654,
-0.20697230100631714,
0.000540906039532274,
0.16899149119853973,
-0.0692998617887497,
0.29515910148620605,
0.26717957854270935,
-0.10564887523651123,
-0.5031932592391968,
-0.43417197465896606,
0.027209511026740074,
-0.22862285375595093,
0.128703311085701,
0.1987026184797287,
0.21162448823451996,
-0.07717790454626083,
-0.343891978263855,
0.19707925617694855,
0.03533316031098366,
-0.29197201132774353,
0.14655539393424988,
-0.017192767933011055,
-0.04457227140665054,
-0.17511676251888275,
-0.48505693674087524,
-0.038821037858724594,
-0.22815945744514465,
0.22342218458652496,
-0.31039920449256897,
0.050225164741277695,
0.16306327283382416,
0.32924309372901917,
0.13802707195281982,
-0.11707232892513275,
-0.1576801985502243,
0.1402169167995453,
0.2776942551136017,
0.5713930130004883,
-0.01976977474987507,
-0.332465797662735,
0.2355106621980667,
-0.18520979583263397,
-0.08005724847316742,
0.45063480734825134,
-0.21264086663722992,
-0.023919573053717613,
-0.1131708025932312,
0.6397442817687988,
-0.07026553899049759,
-0.026589151471853256,
0.32262954115867615,
0.2941912114620209,
0.013332479633390903,
-0.1408386379480362,
-0.3169087767601013,
0.06248890236020088,
-0.023680906742811203,
0.2940806746482849,
0.05616757273674011,
0.397087424993515,
0.014370065182447433,
0.7554783821105957,
0.11631904542446136,
-0.24538151919841766,
0.15627874433994293,
-0.21849790215492249,
-0.0008910657488740981,
0.1268465518951416,
-0.12043590098619461,
-0.11777375638484955,
-0.17498093843460083,
-0.06152116134762764,
-0.12838654220104218,
-0.19149482250213623,
-0.5315892696380615,
0.09410835802555084,
-0.004059918224811554,
-0.4546511173248291,
-0.31764253973960876,
0.2134096324443817,
-0.0659966841340065,
0.30064478516578674,
0.08508259803056717,
0.023707177489995956,
-0.2731815278530121,
-0.09839976578950882,
0.2626476287841797,
-0.06198514997959137,
0.25840017199516296,
-0.1927739828824997,
0.011645449325442314,
-0.2957203686237335,
-0.2309022843837738,
0.42493095993995667,
0.280685156583786,
0.1446990817785263,
0.17868231236934662,
-0.21880243718624115,
-0.008268194273114204,
0.124810591340065,
0.6407934427261353,
-0.18439944088459015,
-0.003530382877215743,
-0.07337760180234909,
0.07950420677661896,
-0.46737930178642273,
0.18878023326396942,
-0.2618236243724823,
0.12123839557170868,
0.2620202898979187,
0.3791089355945587,
-0.42622923851013184,
0.040937554091215134,
0.271963506937027,
0.03015257604420185,
0.0009184885420836508,
-0.17887619137763977,
-0.11758782714605331,
0.05389707535505295,
-0.1162518858909607,
-0.0002533377264626324,
0.2568054497241974,
-0.03684249147772789,
0.18096724152565002,
-0.10217039287090302,
-0.3370206654071808,
-0.014866559766232967,
0.007732061669230461,
-0.0051575228571891785,
0.3421080708503723,
-0.22088010609149933,
0.26725107431411743,
0.029098384082317352,
0.3201948404312134,
0.5259220600128174,
0.3236469030380249,
0.23084338009357452,
-0.5913683176040649,
0.047908004373311996,
-0.04932132363319397,
0.37193191051483154,
0.23390315473079681,
-0.015382775105535984,
0.039195213466882706,
-0.016908878460526466,
0.0757480338215828,
-0.19750818610191345,
-0.04158715158700943,
0.3200693726539612,
0.16171248257160187,
-0.022055381909012794,
0.07358124852180481,
0.5450212955474854,
-0.21789908409118652,
-0.08453945815563202,
0.5981550216674805,
0.42567336559295654,
-0.17840079963207245,
0.3142663836479187,
0.26511165499687195,
0.8266263008117676,
0.24234861135482788,
-0.042832087725400925,
0.5020027160644531,
-0.23615194857120514,
0.3753005862236023,
0.4359336793422699,
0.14085015654563904,
-0.4725417494773865,
0.03181307390332222,
-0.005697979126125574,
-0.09022240340709686,
0.0566546767950058,
0.15660317242145538,
-0.08796504139900208,
0.1055392175912857,
0.1479061245918274,
0.3768042325973511,
0.011713746935129166,
-0.29544299840927124,
-0.18227353692054749,
-0.23195672035217285,
-0.04812754690647125,
0.028775615617632866,
0.0588856004178524,
0.04643708094954491,
-0.025141103193163872,
-0.2543235123157501,
-0.3001088798046112,
-0.14593039453029633,
-0.02743304707109928,
-0.013778173364698887,
-0.624304473400116,
0.12492931634187698,
0.30383726954460144,
-0.14982731640338898,
0.10483524948358536,
0.028396276757121086,
-0.0029957774095237255,
0.04539879038929939,
-0.17497463524341583,
-0.03086196258664131,
0.1676080822944641,
0.03593485429883003,
0.10779804736375809,
-0.12686271965503693,
0.1436229646205902,
0.00886780209839344,
-0.33798837661743164,
0.17099496722221375,
-0.34892985224723816,
-0.08877766877412796,
0.2501177489757538,
-0.05256834626197815,
-0.2960267663002014,
-0.07576393336057663,
-0.11020109057426453,
-0.15912571549415588,
-0.15529988706111908,
-0.010497793555259705,
0.07020194083452225,
-0.10152807831764221,
0.08717634528875351,
-0.08221855014562607,
-0.14312276244163513,
-0.28057634830474854,
0.056341752409935,
0.34911996126174927,
-0.1585402935743332,
0.22504037618637085,
0.7464405298233032,
-0.12598884105682373,
-0.09784290194511414,
-0.10687540471553802,
0.2753215432167053,
0.28470608592033386,
-0.7513644695281982,
-0.033911269158124924,
-0.254655659198761,
0.1422492265701294,
0.043424900621175766,
0.3635241985321045,
0.4133291244506836,
-0.04140729829668999,
-0.12738952040672302,
-0.2120485156774521,
-0.30105507373809814,
0.25004759430885315,
0.17031230032444,
0.19661328196525574,
-0.12250197678804398,
0.10326100885868073,
0.062273215502500534,
-0.2535412907600403,
-0.2832320034503937,
0.11401008814573288,
-0.0828189104795456,
0.2677062451839447,
0.15020281076431274,
0.28428637981414795,
-0.003205353394150734,
-0.2481001317501068,
0.08260861039161682,
0.2167164534330368,
-0.03328543156385422,
-0.1223517432808876,
-0.1673521250486374,
0.10684944689273834,
-0.016636865213513374,
0.0131725138053298,
0.01937134750187397,
-0.19551466405391693,
-0.015219883061945438,
-0.066260427236557,
0.039388593286275864,
0.0908394455909729,
-0.19360019266605377,
0.33217233419418335,
0.07950673997402191,
0.1329202950000763,
-0.3743382394313812,
-0.00043853430543094873,
-0.02977278083562851,
0.09489308297634125,
-0.1321001797914505,
0.28279978036880493,
-0.21168090403079987,
0.10724194347858429,
0.07847148180007935,
0.0996164083480835,
-0.379099041223526,
-0.12769648432731628,
0.38358357548713684,
-0.33559873700141907,
-0.2621271014213562,
0.2332981526851654,
0.14285634458065033,
0.03258206695318222,
-0.22080768644809723,
0.042840782552957535,
0.10392442345619202,
0.20104295015335083,
-0.3584834039211273,
0.2307637631893158,
0.02418326772749424,
0.15201468765735626,
0.316027969121933,
0.13002881407737732,
0.12716789543628693,
-0.19184821844100952,
0.07123485952615738,
-0.05692097172141075,
0.10157822072505951,
-0.21539342403411865,
-0.21066118776798248,
0.5099639296531677,
-0.04213665425777435,
0.14842866361141205,
0.32957518100738525,
0.3196735084056854,
0.5036203265190125,
0.019669540226459503,
0.24916954338550568,
0.2726072072982788,
0.15879075229167938,
0.04033765196800232,
-0.08166655898094177,
-0.2444850653409958,
0.11649953573942184,
0.1713625192642212,
-0.10007121413946152,
-0.02009015902876854,
0.4890683889389038,
0.41659659147262573,
-0.028017202392220497,
-0.3324064314365387,
0.16118888556957245,
-0.07317451387643814,
-0.22691099345684052,
0.022664697840809822,
-0.6775989532470703,
-0.0025766559410840273,
-0.19357655942440033,
-0.1397782415151596,
-0.1691484898328781,
-0.12195965647697449,
0.8168911337852478,
0.2213880866765976,
-0.02099928818643093,
-0.3886556923389435,
0.10763806104660034,
0.30599716305732727,
0.4876883625984192,
-0.2539098560810089,
0.1352224349975586,
0.12344148010015488,
-0.2828820049762726,
-0.1400597244501114,
0.49132049083709717,
0.4069626033306122,
0.22492925822734833,
-0.1212654858827591,
0.04035237804055214,
-0.03470941260457039,
-0.05435143783688545,
0.1517043113708496,
0.16441765427589417,
0.09870608896017075,
0.14095845818519592,
0.3644823729991913,
0.08705074340105057,
-0.09208336472511292,
0.07188360393047333,
0.013168033212423325,
0.25709646940231323,
-0.23451773822307587,
-0.10191793739795685,
-0.38651585578918457,
-0.4380471110343933,
-0.028045468032360077,
-0.20710478723049164,
-0.2199876755475998,
0.0009458458516746759,
0.4115729331970215,
0.0882001742720604,
0.09867208451032639,
0.10322770476341248,
0.08171719312667847,
0.0474652536213398,
0.24026896059513092,
0.5085470080375671,
-0.12689536809921265,
-0.285656601190567,
0.05162198469042778,
-0.7157180309295654,
0.2013089954853058,
-0.05776803568005562,
0.20436999201774597,
0.26480212807655334,
0.30002325773239136,
0.17202870547771454,
0.20322254300117493,
0.16527287662029266,
-0.0015435521490871906,
0.02170565165579319,
0.27423617243766785,
-0.12245410680770874,
-0.19250093400478363,
-0.013875401578843594,
-0.2804161608219147,
0.07676869630813599,
-0.43503087759017944,
0.2325890213251114,
-0.09229477494955063,
-0.011919557116925716,
-0.09380920231342316,
-0.07008916139602661,
0.11525816470384598,
0.03178470954298973,
0.4940911531448364,
0.07950492203235626,
0.15115587413311005,
0.03868881240487099,
-0.14489056169986725,
-0.11159376800060272,
-0.22588792443275452,
-0.2643374502658844,
0.23396234214305878,
0.08377669006586075,
0.32819661498069763,
0.09524256736040115,
-0.25978779792785645,
-0.00615162355825305,
0.03157932311296463,
-0.034318190068006516,
-0.23902417719364166,
-0.26678934693336487,
0.30943700671195984,
-0.27386677265167236,
-0.004987949505448341,
-0.15166348218917847,
0.06331253051757812,
0.0026382673531770706,
0.13073547184467316,
-0.31949880719184875,
-0.4689129889011383,
0.32507646083831787,
-0.3774604797363281,
-0.10805471241474152,
0.02801942452788353,
0.3486168682575226,
0.48539677262306213,
0.15488551557064056,
-0.5569855570793152,
-0.1189386323094368,
0.41561058163642883,
-0.1695120632648468,
-0.31433233618736267,
-0.19392667710781097,
0.01208660937845707,
0.038122888654470444,
0.051755134016275406,
0.5593417882919312,
0.10474783182144165,
0.07320345938205719,
0.1368071287870407,
-0.4698798358440399
] |
https://github.com/huggingface/datasets/issues/2826 | Add a Text Classification dataset: KanHope | Hi ! In your script it looks like you're trying to load the dataset `bn_hate_speech,`, not KanHope.
Moreover the error `KeyError: ' '` means that you have a feature of type ClassLabel, but for a certain example of the dataset, it looks like the label is empty (it's just a string with a space). Can you make sure that the data don't have missing labels, and that your dataset script parses the labels correctly ? | ## Adding a Dataset
- **Name:** *KanHope*
- **Description:** *A code-mixed English-Kannada dataset for Hope speech detection*
- **Paper:** *https://arxiv.org/abs/2108.04616* (I am the author of the paper}
- **Author:** *[AdeepH](https://github.com/adeepH)*
- **Data:** *https://github.com/adeepH/KanHope/tree/main/dataset*
- **Motivation:** *The dataset is amongst the very few resources available for code-mixed Dravidian languages*
- I tried following the steps as per the instructions. However, could not resolve an error. Any help would be appreciated.
- The dataset card and the scripts for the dataset *https://github.com/adeepH/datasets/tree/multilingual-hope-speech/datasets/mhs_eval*
```
Using custom data configuration default
Downloading and preparing dataset bn_hate_speech/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/bn_hate_speech/default/0.0.0/5f417ddc89777278abd29988f909f39495f0ec802090f7d8fa63b5bffb121762...
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-114-4a9cdb519e4c> in <module>()
1 from datasets import load_dataset
2
----> 3 data = load_dataset('/content/bn')
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
850 ignore_verifications=ignore_verifications,
851 try_from_hf_gcs=try_from_hf_gcs,
--> 852 use_auth_token=use_auth_token,
853 )
854
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
614 if not downloaded_from_gcs:
615 self._download_and_prepare(
--> 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
618 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
691 try:
692 # Prepare split will record examples associated to the split
--> 693 self._prepare_split(split_generator, **prepare_split_kwargs)
694 except OSError as e:
695 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
1107 disable=bool(logging.get_verbosity() == logging.NOTSET),
1108 ):
-> 1109 example = self.info.features.encode_example(record)
1110 writer.write(example, key)
1111 finally:
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example)
1015 """
1016 example = cast_to_python_objects(example)
-> 1017 return encode_nested_example(self, example)
1018
1019 def encode_batch(self, batch):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in <dictcomp>(.0)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
890 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
891 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 892 return schema.encode_example(obj)
893 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
894 return obj
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example_data)
665 # If a string is given, convert to associated integer
666 if isinstance(example_data, str):
--> 667 example_data = self.str2int(example_data)
668
669 # Allowing -1 to mean no label.
/usr/local/lib/python3.7/dist-packages/datasets/features.py in str2int(self, values)
623 if value not in self._str2int:
624 value = str(value).strip()
--> 625 output.append(self._str2int[str(value)])
626 else:
627 # No names provided, try to integerize
KeyError: ' '
``` | 75 | Add a Text Classification dataset: KanHope
## Adding a Dataset
- **Name:** *KanHope*
- **Description:** *A code-mixed English-Kannada dataset for Hope speech detection*
- **Paper:** *https://arxiv.org/abs/2108.04616* (I am the author of the paper}
- **Author:** *[AdeepH](https://github.com/adeepH)*
- **Data:** *https://github.com/adeepH/KanHope/tree/main/dataset*
- **Motivation:** *The dataset is amongst the very few resources available for code-mixed Dravidian languages*
- I tried following the steps as per the instructions. However, could not resolve an error. Any help would be appreciated.
- The dataset card and the scripts for the dataset *https://github.com/adeepH/datasets/tree/multilingual-hope-speech/datasets/mhs_eval*
```
Using custom data configuration default
Downloading and preparing dataset bn_hate_speech/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/bn_hate_speech/default/0.0.0/5f417ddc89777278abd29988f909f39495f0ec802090f7d8fa63b5bffb121762...
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-114-4a9cdb519e4c> in <module>()
1 from datasets import load_dataset
2
----> 3 data = load_dataset('/content/bn')
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
850 ignore_verifications=ignore_verifications,
851 try_from_hf_gcs=try_from_hf_gcs,
--> 852 use_auth_token=use_auth_token,
853 )
854
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
614 if not downloaded_from_gcs:
615 self._download_and_prepare(
--> 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
618 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
691 try:
692 # Prepare split will record examples associated to the split
--> 693 self._prepare_split(split_generator, **prepare_split_kwargs)
694 except OSError as e:
695 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
1107 disable=bool(logging.get_verbosity() == logging.NOTSET),
1108 ):
-> 1109 example = self.info.features.encode_example(record)
1110 writer.write(example, key)
1111 finally:
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example)
1015 """
1016 example = cast_to_python_objects(example)
-> 1017 return encode_nested_example(self, example)
1018
1019 def encode_batch(self, batch):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in <dictcomp>(.0)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
890 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
891 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 892 return schema.encode_example(obj)
893 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
894 return obj
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example_data)
665 # If a string is given, convert to associated integer
666 if isinstance(example_data, str):
--> 667 example_data = self.str2int(example_data)
668
669 # Allowing -1 to mean no label.
/usr/local/lib/python3.7/dist-packages/datasets/features.py in str2int(self, values)
623 if value not in self._str2int:
624 value = str(value).strip()
--> 625 output.append(self._str2int[str(value)])
626 else:
627 # No names provided, try to integerize
KeyError: ' '
```
Hi ! In your script it looks like you're trying to load the dataset `bn_hate_speech,`, not KanHope.
Moreover the error `KeyError: ' '` means that you have a feature of type ClassLabel, but for a certain example of the dataset, it looks like the label is empty (it's just a string with a space). Can you make sure that the data don't have missing labels, and that your dataset script parses the labels correctly ? | [
-0.24380914866924286,
-0.08374526351690292,
-0.10764113068580627,
0.16815075278282166,
0.27112624049186707,
0.015442488715052605,
0.17673850059509277,
0.41278669238090515,
0.14656810462474823,
0.08685905486345291,
-0.16489198803901672,
-0.07798995077610016,
-0.25907331705093384,
0.2801799476146698,
-0.2317628711462021,
-0.29152071475982666,
-0.08847072720527649,
0.15226130187511444,
-0.1177385076880455,
-0.06439532339572906,
-0.08914224058389664,
0.3205001652240753,
-0.15972186625003815,
0.14768706262111664,
-0.2826567590236664,
-0.32945144176483154,
-0.11367207765579224,
0.09352175891399384,
-0.34917524456977844,
-0.4404597580432892,
0.2650223970413208,
-0.052807360887527466,
0.1387757658958435,
0.3857923448085785,
-0.000109574590169359,
-0.07007826119661331,
0.310121089220047,
-0.17516469955444336,
-0.30347728729248047,
-0.29818692803382874,
-0.07896792888641357,
-0.04694947600364685,
-0.02337220124900341,
-0.3721511662006378,
-0.25342968106269836,
0.10506399720907211,
-0.06103242561221123,
-0.4590233862400055,
0.5346906185150146,
0.6502832770347595,
0.2297912836074829,
0.09130344539880753,
0.3871515691280365,
-0.23227132856845856,
0.03155342862010002,
0.21780681610107422,
-0.20452865958213806,
0.3952791094779968,
0.2633343040943146,
-0.12577854096889496,
0.03241679072380066,
0.35591721534729004,
0.04725946858525276,
0.14383916556835175,
0.21959693729877472,
-0.0154394106939435,
0.11113636940717697,
-0.28605860471725464,
0.22978174686431885,
0.16222240030765533,
0.3204842209815979,
-0.4211922883987427,
-0.1435188353061676,
-0.16988280415534973,
0.05715108662843704,
-0.37036243081092834,
0.33843228220939636,
0.045200370252132416,
-0.3210282027721405,
0.21981234848499298,
0.24424125254154205,
-0.052066411823034286,
-0.1897221803665161,
0.12757369875907898,
0.20608757436275482,
0.3765223026275635,
-0.10286924988031387,
0.015782849863171577,
-0.0386534184217453,
-0.1966772973537445,
0.0999092236161232,
-0.20339371263980865,
0.0466274656355381,
0.28912442922592163,
-0.3035185933113098,
-0.06785361468791962,
0.03919213265180588,
-0.17982836067676544,
0.11543388664722443,
-0.2513127326965332,
-0.02517974004149437,
0.07109031826257706,
0.002385435625910759,
0.00931372120976448,
0.09320937097072601,
0.12633384764194489,
0.25738343596458435,
0.29380321502685547,
0.3097372353076935,
0.22068281471729279,
-0.06851232796907425,
0.0444706529378891,
0.003832942806184292,
-0.09989471733570099,
0.04764746129512787,
0.17068783938884735,
0.25785571336746216,
-0.1094403862953186,
-0.36181753873825073,
0.0034739403054118156,
-0.03249739110469818,
0.02441992610692978,
-0.00028290553018450737,
0.303130567073822,
0.12521103024482727,
-0.1238037496805191,
0.16992636024951935,
0.26755714416503906,
-0.14355534315109253,
-0.32478800415992737,
-0.11812801659107208,
0.33083781599998474,
-0.18904104828834534,
-0.14755819737911224,
0.24923500418663025,
-0.16768425703048706,
-0.014541368000209332,
-0.07859420031309128,
0.14804205298423767,
-0.07639462500810623,
-0.1346728503704071,
-0.19828486442565918,
-0.10272838175296783,
0.1339934766292572,
-0.03302988409996033,
0.06550572067499161,
0.37301212549209595,
-0.5284397006034851,
-0.14438968896865845,
0.054698698222637177,
-0.027694368734955788,
-0.2500067353248596,
-0.04746398329734802,
0.2256290167570114,
0.02211911417543888,
0.057318057864904404,
-0.3491016626358032,
0.4549742043018341,
0.27649083733558655,
-0.030475154519081116,
-0.014218905940651894,
-0.22283799946308136,
-0.045628417283296585,
-0.18617859482765198,
0.19861769676208496,
0.5018198490142822,
-0.394901305437088,
-0.025526858866214752,
-0.29588255286216736,
-0.015885408967733383,
0.1709473878145218,
0.32866647839546204,
-0.12962129712104797,
0.3348802626132965,
-0.33771011233329773,
0.26807358860969543,
0.3865484595298767,
-0.32867664098739624,
-0.2652446925640106,
0.042101070284843445,
-0.08437968790531158,
-0.01668449677526951,
0.14695130288600922,
-0.008574577048420906,
0.15432244539260864,
0.05682799220085144,
0.21263767778873444,
0.19900906085968018,
0.009833922609686852,
0.09030278772115707,
-0.21576333045959473,
0.08755312114953995,
0.23707465827465057,
0.12174662202596664,
0.25100043416023254,
-0.0429096519947052,
0.18541669845581055,
0.10804744809865952,
0.21328513324260712,
-0.31570497155189514,
0.31442591547966003,
0.02353278361260891,
0.2331555187702179,
-0.0648789033293724,
-0.09761545062065125,
-0.3182424306869507,
-0.03406554460525513,
0.16120925545692444,
-0.09049443900585175,
0.38258492946624756,
-0.5090477466583252,
-0.1393897831439972,
-0.4510042071342468,
0.009790001437067986,
-0.4143908619880676,
-0.25401821732521057,
0.20005521178245544,
0.052461493760347366,
0.1434837132692337,
0.14026248455047607,
-0.1512690931558609,
0.5673834681510925,
-0.343007892370224,
0.016680613160133362,
-0.0704818144440651,
0.34891217947006226,
-0.3280910849571228,
-0.29810068011283875,
0.2780771553516388,
0.2281981110572815,
0.07827835530042648,
-0.10924508422613144,
-0.13814130425453186,
0.28619033098220825,
-0.25324350595474243,
0.002743936376646161,
0.1318630576133728,
-0.2189345508813858,
-0.023548869416117668,
-0.4651156961917877,
0.14608927071094513,
0.1815544217824936,
0.23878630995750427,
-0.19930803775787354,
0.012636324390769005,
0.44935673475265503,
0.32323387265205383,
0.10395671427249908,
-0.004102268721908331,
0.009562990628182888,
0.4009858965873718,
0.05257418379187584,
-0.01839245855808258,
-0.19861890375614166,
0.2568436563014984,
-0.07519975304603577,
0.2822486162185669,
-0.2066950649023056,
-0.28292137384414673,
0.013572397641837597,
0.37750256061553955,
0.04914044216275215,
0.44719162583351135,
0.15337856113910675,
-0.10329699516296387,
-0.019598407670855522,
-0.16016338765621185,
0.12077809870243073,
0.3303130567073822,
0.02813396044075489,
-0.04623318463563919,
0.21448034048080444,
-0.10150139778852463,
-0.18456676602363586,
0.2178308218717575,
-0.008869830518960953,
0.05280234292149544,
0.20286203920841217,
0.12822242081165314,
-0.09928514063358307,
-0.3807551860809326,
-0.21880480647087097,
-0.01025379542261362,
0.33876216411590576,
-0.2657981514930725,
0.005106440745294094,
-0.12715065479278564,
-0.3741125166416168,
-0.19961227476596832,
0.21059148013591766,
-0.12748605012893677,
-0.21774868667125702,
0.038907941430807114,
-0.04071420058608055,
0.029098818078637123,
0.1327519714832306,
0.09133902192115784,
0.0010961841326206923,
0.11207116395235062,
-0.19720976054668427,
-0.020698437467217445,
-0.27956146001815796,
-0.1944817155599594,
0.11583218723535538,
0.3588797450065613,
0.15206153690814972,
0.4850721061229706,
-0.3050045371055603,
0.01379130408167839,
-0.15483029186725616,
-0.4496575593948364,
-0.005844494793564081,
-0.34474629163742065,
0.07219047099351883,
0.09235925227403641,
0.2036583572626114,
-0.042853400111198425,
-0.4595799446105957,
0.31441113352775574,
-0.0724993422627449,
-0.34008848667144775,
0.14718186855316162,
-0.03508275747299194,
-0.07722374051809311,
-0.00653246371075511,
-0.7115236520767212,
-0.3026193082332611,
-0.3755900263786316,
-0.05454733967781067,
-0.1178930476307869,
0.10178408771753311,
0.07566653192043304,
0.22192589938640594,
0.23366467654705048,
0.05222395062446594,
0.11422716081142426,
-0.2015262395143509,
-0.20007428526878357,
0.33612388372421265,
-0.310882031917572,
-0.37607264518737793,
0.09445012360811234,
-0.13409756124019623,
0.35076725482940674,
-0.28229063749313354,
-0.3692142069339752,
0.20770467817783356,
-0.26743635535240173,
0.44917646050453186,
0.09266292303800583,
-0.13995406031608582,
0.3198356628417969,
0.01107534859329462,
-0.09225985407829285,
0.020265772938728333,
-0.22114305198192596,
0.12996047735214233,
-0.0406077541410923,
0.3319707214832306,
0.009670381434261799,
0.4739269018173218,
0.011862179264426231,
0.6238937377929688,
0.21546980738639832,
0.022820627316832542,
0.415672242641449,
0.17361459136009216,
0.2669263184070587,
-0.30623841285705566,
-0.42082905769348145,
0.22768446803092957,
-0.06283368915319443,
0.11962277442216873,
0.032303597778081894,
-0.10918593406677246,
-0.28959494829177856,
-0.3509960472583771,
-0.3293340504169464,
-0.2467864751815796,
-0.3040596842765808,
0.1780606061220169,
-0.13393743336200714,
0.32962289452552795,
-0.15103620290756226,
-0.1977495402097702,
-0.14770279824733734,
0.0920325368642807,
-0.01354606356471777,
0.34335654973983765,
-0.3183002471923828,
0.08887764066457748,
-0.332863986492157,
-0.2641271948814392,
-0.40696650743484497,
0.22104492783546448,
0.1843547523021698,
0.07990662008523941,
-0.30193451046943665,
0.19880731403827667,
-0.003524051047861576,
-0.06130829453468323,
0.17382310330867767,
-0.18152771890163422,
0.2074805647134781,
0.21461443603038788,
0.07278629392385483,
-0.08198390901088715,
0.011569906957447529,
-0.3653075397014618,
0.15260909497737885,
0.2256942242383957,
0.17232997715473175,
-0.412952184677124,
0.0829491838812828,
0.022944100201129913,
0.13357962667942047,
-0.10138479620218277,
-0.08036789298057556,
-0.10861097276210785,
-0.36184608936309814,
-0.5332006216049194,
0.2236562967300415,
0.3853726089000702,
0.42658868432044983,
-0.0034150618594139814,
0.22686053812503815,
0.11888599395751953,
-0.08768531680107117,
0.1869896650314331,
0.11628460884094238,
0.04827067255973816,
0.18311285972595215,
0.18439881503582,
0.08210054039955139,
0.008714492432773113,
-0.06820322573184967,
0.6501701474189758,
0.24224410951137543,
-0.5056648850440979,
-0.13158822059631348,
-0.23699264228343964,
0.10605039447546005,
0.19450315833091736,
-0.06313271075487137,
0.021865781396627426,
-0.019511045888066292,
-0.04681283235549927,
0.07103250175714493,
0.2546420395374298,
0.2530527114868164,
0.31296300888061523,
-0.42402926087379456,
-0.39524221420288086,
0.09297468513250351,
-0.20135562121868134,
-0.01967461220920086,
-0.024884548038244247,
0.2520100772380829,
-0.42550116777420044,
0.2545575797557831,
-0.004593419376760721,
0.9560571908950806,
0.03477088734507561,
0.2339397519826889,
0.14941464364528656,
-0.1839839518070221,
0.18413959443569183,
0.028660517185926437,
-0.05934935063123703,
-0.15310057997703552,
0.15605753660202026,
-0.02989187091588974,
-0.024732407182455063,
0.29637762904167175,
-0.10798883438110352,
-0.3020826280117035,
0.09644535928964615,
-0.027894524857401848,
-0.11223279684782028,
-0.09037860482931137,
0.29755380749702454,
-0.1414356827735901,
-0.2657579183578491,
-0.521363377571106,
0.19964545965194702,
-0.08861710131168365,
0.16616515815258026,
0.05471155047416687,
-0.13751956820487976,
-0.16893063485622406,
-0.3871939480304718,
-0.5968746542930603,
-0.008598596788942814,
-0.0872204378247261,
0.2162310779094696,
-0.16307692229747772,
-0.42507296800613403,
0.5653031468391418,
0.3926408588886261,
0.6571987271308899,
0.1344222128391266,
-0.11756182461977005,
0.1307075321674347,
-0.18848572671413422,
-0.24168604612350464,
0.12481270730495453,
0.05816389247775078,
0.3777550458908081,
-0.23914268612861633,
-0.32370662689208984,
0.29995882511138916,
-0.0002486298617441207,
-0.17398840188980103,
-0.3040999472141266,
-0.1643058955669403,
-0.09438367933034897,
-0.2417110949754715,
-0.12733446061611176,
-0.09505905210971832,
-0.20037968456745148,
-0.34136778116226196,
0.18723690509796143,
0.13085991144180298,
-0.21872974932193756,
0.13254529237747192,
-0.035944271832704544,
-0.2003849744796753,
-0.07233422249555588,
0.3325361907482147,
0.2005324810743332,
0.026549868285655975,
0.740399956703186,
0.2742212414741516,
-0.24604937434196472,
-0.26864567399024963,
0.044100645929574966,
0.21707285940647125,
-0.10888103395700455,
0.10440770536661148,
0.040716420859098434,
-0.16580872237682343,
-0.11852448433637619,
0.5871520042419434,
0.14345505833625793,
-0.0834696814417839,
0.08922602981328964,
-0.3736433684825897,
-0.5136305093765259,
0.1403677761554718,
0.034494612365961075,
0.07110760360956192,
0.16053247451782227,
0.5175589919090271,
0.1939789354801178,
0.2597582936286926,
-0.35456717014312744,
-0.019979828968644142,
-0.12650851905345917,
0.22015851736068726,
0.25642871856689453,
-0.10306373983621597,
0.16951721906661987,
0.0986914187669754,
0.1692529022693634,
0.25681814551353455,
-0.07449968159198761,
-0.25628647208213806,
-0.029707200825214386,
0.06849183887243271,
0.06097723916172981,
-0.018295928835868835,
0.06270540505647659,
-0.4180736839771271,
0.04655703529715538,
-0.019812479615211487,
0.09023048728704453,
0.17903748154640198,
-0.10408223420381546,
0.2523132860660553,
-0.09542916715145111,
0.10271085053682327,
0.21904373168945312,
-0.004935757257044315,
-0.22291740775108337,
-0.031602807343006134,
0.11609642207622528,
-0.011886660009622574,
-0.008047765120863914,
-0.13229897618293762,
-0.08370716124773026,
0.03942981734871864,
-0.18643422424793243,
0.14574332535266876,
0.4332694411277771,
-0.3386836051940918,
0.06520959734916687,
0.04855615645647049,
0.2000085860490799,
0.08994157612323761,
-0.33560702204704285,
0.21550489962100983,
0.14965000748634338,
0.1620500087738037,
-0.5012566447257996,
-0.0260762982070446,
-0.10486483573913574,
-0.1312337964773178,
0.1752730906009674,
0.08971000462770462,
-0.05301100015640259,
0.17184245586395264,
-0.06691960990428925,
0.04152699187397957,
0.21855486929416656,
-0.16882897913455963,
-0.018157154321670532,
0.17048299312591553,
-0.08144055306911469,
-0.022954456508159637,
0.3968534767627716,
0.1706305742263794,
0.08171415328979492,
0.754280686378479,
-0.4638424515724182,
0.2728509306907654,
0.028380464762449265,
0.0798989087343216,
0.0751684382557869,
-0.045380424708127975,
0.25224846601486206,
0.06658843904733658,
-0.1579114943742752,
0.16911041736602783,
0.00046729017049074173,
0.2341298609972,
-0.17010873556137085,
0.1033051609992981,
0.06907320022583008,
0.03034035675227642,
-0.1861153095960617,
0.04514074698090553,
-0.24740076065063477,
-0.16477280855178833,
-0.08386651426553726,
-0.13830208778381348,
-0.16348834335803986,
-0.004615990910679102,
0.31667637825012207,
0.03174909949302673,
-0.1646089255809784,
-0.3379209637641907,
0.16917601227760315,
0.009446999989449978,
0.20309051871299744,
-0.2248619794845581,
0.2859092652797699,
0.4393923878669739,
0.006821295712143183,
0.20725437998771667,
0.27228525280952454,
0.5848601460456848,
0.2557888925075531,
-0.3220207691192627,
0.2581303119659424,
-0.19161488115787506,
-0.3510197103023529,
0.015337933786213398,
0.20820893347263336,
0.32830774784088135,
0.4378298223018646,
0.2944049537181854,
0.2015211433172226,
-0.16135019063949585,
-0.00894116424024105,
0.2797063887119293,
0.09700798988342285,
-0.07757814973592758,
0.17494872212409973,
-0.21065063774585724,
-0.14003422856330872,
-0.2763574719429016,
0.029190845787525177,
-0.40620315074920654,
-0.05744771659374237,
0.23990698158740997,
0.05814097821712494,
0.14197494089603424,
-0.2554052472114563,
0.10375489294528961,
-0.0013097496703267097,
0.443829208612442,
0.23244202136993408,
0.021444616839289665,
-0.427441269159317,
-0.20469209551811218,
-0.7065242528915405,
-0.04201962798833847,
-0.08059634268283844,
-0.28680548071861267,
-0.24106423556804657,
0.03100661002099514,
0.38932204246520996,
0.10407104343175888,
0.18281741440296173,
-0.033789344131946564,
-0.2051880955696106,
-0.060109470039606094,
-0.23380933701992035,
-0.23928485810756683,
0.03889361396431923,
0.19761289656162262,
0.05172660946846008,
-0.07288411259651184,
0.18484792113304138,
0.42002537846565247,
0.09886425733566284,
-0.18606020510196686,
0.03588835150003433,
0.07440678775310516,
-0.20811977982521057,
0.05464813485741615,
0.15564364194869995,
0.6450899839401245,
-0.1854211539030075,
0.03294834867119789,
-0.041481126099824905,
-0.07969152182340622,
-0.13849134743213654,
0.47967642545700073,
0.2791796922683716,
0.6704034805297852,
-0.20283962786197662,
-0.031104767695069313,
-0.07153860479593277,
0.43671536445617676,
-0.028989462181925774,
-0.39204224944114685,
-0.2773584723472595,
0.22601792216300964,
0.11884982138872147,
0.15526801347732544,
-0.12160959094762802,
0.33874472975730896,
-0.08390091359615326,
0.05558781325817108,
-0.33921775221824646,
-0.5602796673774719,
0.32885777950286865,
-0.1307486891746521,
-0.43048977851867676,
0.156685009598732,
0.06628788262605667,
0.3002917766571045,
0.13716402649879456,
-0.7134616374969482,
0.25557753443717957,
0.20976711809635162,
-0.032444797456264496,
-0.1433791071176529,
0.1805781126022339,
0.010632038116455078,
0.14865155518054962,
-0.048737235367298126,
0.43463826179504395,
-0.03549748286604881,
-0.07641966640949249,
-0.008386594243347645,
-0.30054599046707153
] |
https://github.com/huggingface/datasets/issues/2825 | The datasets.map function does not load cached dataset after moving python script | This also happened to me on COLAB.
Details:
I ran the `run_mlm.py` in two different notebooks.
In the first notebook, I do tokenization since I can get 4 CPU cores without any GPUs, and save the cache into a folder which I copy to drive.
In the second notebook, I copy the cache folder from drive and re-run the run_mlm.py script (this time I uncomment the trainer code which happens after the tokenization)
Note: I didn't change anything in the arguments, not even the preprocessing_num_workers
| ## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
| 85 | The datasets.map function does not load cached dataset after moving python script
## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
This also happened to me on COLAB.
Details:
I ran the `run_mlm.py` in two different notebooks.
In the first notebook, I do tokenization since I can get 4 CPU cores without any GPUs, and save the cache into a folder which I copy to drive.
In the second notebook, I copy the cache folder from drive and re-run the run_mlm.py script (this time I uncomment the trainer code which happens after the tokenization)
Note: I didn't change anything in the arguments, not even the preprocessing_num_workers
| [
-0.16120988130569458,
0.06667280197143555,
0.1235988661646843,
0.14211778342723846,
0.12110628187656403,
-0.09257227927446365,
0.418131023645401,
0.1090160459280014,
0.17314817011356354,
-0.07804997265338898,
0.11544641107320786,
0.6156935095787048,
-0.021140167489647865,
-0.13319502770900726,
0.16116535663604736,
0.2321513146162033,
0.1759634166955948,
0.15019255876541138,
0.086910180747509,
-0.18116018176078796,
-0.19346998631954193,
0.09174460917711258,
-0.41730836033821106,
-0.10696616768836975,
-0.4597241282463074,
0.024705909192562103,
-0.12556138634681702,
-0.025920307263731956,
0.23076969385147095,
-0.3739829659461975,
0.34169527888298035,
0.028604384511709213,
0.329319566488266,
0.43406441807746887,
-0.0001240348065039143,
-0.06293334811925888,
0.18991199135780334,
-0.11913051456212997,
-0.20478126406669617,
-0.24169859290122986,
-0.04128989204764366,
-0.06350310146808624,
0.17220255732536316,
-0.17772644758224487,
0.004967855755239725,
0.10666999965906143,
-0.06366772204637527,
-0.5965549945831299,
0.3043341338634491,
0.26775550842285156,
0.09437207132577896,
0.03729290887713432,
-0.25893715023994446,
0.22345227003097534,
-0.09727944433689117,
-0.10328853875398636,
-0.08476763963699341,
0.03564009442925453,
0.27180156111717224,
-0.4042440950870514,
-0.16103486716747284,
0.3430398106575012,
-0.2559064030647278,
0.19869141280651093,
0.3800358772277832,
0.06395570933818817,
-0.13151374459266663,
-0.36240115761756897,
0.3555089831352234,
-0.1061244010925293,
0.28273820877075195,
-0.4287840723991394,
-0.11804374307394028,
-0.337542325258255,
-0.10855504125356674,
-0.12230562418699265,
0.20840610563755035,
-0.1288088858127594,
0.16781525313854218,
0.12318804115056992,
-0.36313068866729736,
-0.07823891192674637,
0.198526531457901,
0.20720578730106354,
-0.1494709849357605,
0.466634064912796,
-0.1864188015460968,
0.2081393599510193,
-0.14785830676555634,
0.059791721403598785,
0.299893856048584,
-0.17238032817840576,
0.05789291113615036,
0.4553023874759674,
-0.18578031659126282,
0.004988530185073614,
0.10426023602485657,
0.01643366739153862,
-0.06919882446527481,
-0.042993370443582535,
0.09924007952213287,
0.07139036059379578,
-0.07835498452186584,
0.05630746856331825,
0.11883948743343353,
0.497154176235199,
0.09555884450674057,
0.39879316091537476,
0.19239702820777893,
-0.07125779241323471,
-0.7449434995651245,
-0.17289528250694275,
-0.13216957449913025,
0.03513779863715172,
0.4841652810573578,
0.10779877007007599,
0.17354896664619446,
-0.01199509110301733,
0.016337960958480835,
0.051133524626493454,
-0.28967902064323425,
-0.2111106663942337,
0.10565364360809326,
0.41561830043792725,
-0.08019393682479858,
0.15352635085582733,
-0.09498590230941772,
0.1437341719865799,
-0.19452805817127228,
0.04101452976465225,
-0.12124194949865341,
-0.1458110809326172,
-0.26523202657699585,
0.3765377402305603,
0.26104551553726196,
0.1239275112748146,
0.40089181065559387,
0.10994942486286163,
-0.03339492902159691,
-0.24569858610630035,
0.3013130724430084,
-0.05830691009759903,
0.5958388447761536,
0.16235779225826263,
-0.011866475455462933,
0.5882651805877686,
0.2430468648672104,
0.002775997156277299,
-0.1312853991985321,
0.23405148088932037,
-0.6722647547721863,
-0.09462355077266693,
0.480967253446579,
-0.003846794832497835,
-0.1870749592781067,
-0.09045784175395966,
-0.21928063035011292,
0.058336544781923294,
0.5520725846290588,
-0.2391301542520523,
0.05104079097509384,
-0.33702895045280457,
-0.3707142174243927,
-0.40021660923957825,
0.1697915643453598,
0.5289992094039917,
-0.0908065214753151,
-0.1419553905725479,
-0.23033718764781952,
0.4682985246181488,
0.20799781382083893,
0.1423208862543106,
-0.31778573989868164,
0.2858114540576935,
-0.3038773536682129,
0.3247826099395752,
0.20618537068367004,
-0.4006858766078949,
-0.689871072769165,
0.04441271349787712,
-0.01891137659549713,
0.2681941092014313,
-0.2062692940235138,
-0.06920227408409119,
0.24368861317634583,
-0.10892356932163239,
0.030617736279964447,
0.2620007395744324,
0.19785510003566742,
0.3179399371147156,
-0.2945937216281891,
-0.06972043961286545,
0.28549596667289734,
-0.23987849056720734,
0.1903080940246582,
0.0873955711722374,
0.04877809062600136,
0.06849110126495361,
0.13007250428199768,
0.005079034250229597,
0.13779501616954803,
0.0802840143442154,
0.18844109773635864,
-0.005798240192234516,
0.2942885160446167,
-0.004252697806805372,
-0.26192712783813477,
0.24794776737689972,
-0.20686914026737213,
-0.419312447309494,
-0.1266341209411621,
-0.0922154039144516,
-0.015847057104110718,
-0.18330436944961548,
-0.4220007658004761,
-0.3649422526359558,
0.053875673562288284,
0.2663188576698303,
0.1915193349123001,
0.15262700617313385,
-0.17012470960617065,
0.23968103528022766,
0.29253000020980835,
-0.12874826788902283,
-0.026447763666510582,
0.20794306695461273,
0.1729692965745926,
-0.14401036500930786,
-0.28899189829826355,
0.1064644306898117,
0.4621390700340271,
-0.13235938549041748,
-0.2746543884277344,
0.169551283121109,
0.28873369097709656,
0.16128668189048767,
-0.22192300856113434,
0.029678519815206528,
0.10397609323263168,
0.07525519281625748,
0.20017321407794952,
0.2023639976978302,
0.12307737022638321,
-0.09771924465894699,
0.1575125902891159,
0.3327406346797943,
0.1918526142835617,
0.19027619063854218,
-0.013909338973462582,
-0.096023328602314,
0.09414759278297424,
-0.18033577501773834,
0.11435633152723312,
-0.23813274502754211,
-0.1593666821718216,
-0.04641373082995415,
0.4003402590751648,
0.21477408707141876,
0.26899853348731995,
0.386759489774704,
0.6588150858879089,
0.28247225284576416,
0.19875729084014893,
-0.09510843455791473,
-0.70501708984375,
-0.24810704588890076,
0.050405703485012054,
0.22601132094860077,
0.36129701137542725,
-0.06159410625696182,
-0.022983083501458168,
0.04317282512784004,
0.19448447227478027,
-0.0213190745562315,
0.01752014458179474,
-0.04309843108057976,
0.2224767953157425,
0.21943022310733795,
0.2184741199016571,
0.206340029835701,
-0.10534126311540604,
0.18634288012981415,
0.22117100656032562,
0.23421625792980194,
-0.16759547591209412,
0.13371948897838593,
-0.476633220911026,
0.22244904935359955,
-0.10267353057861328,
-0.12992554903030396,
-0.08756814152002335,
-0.31070956587791443,
-0.16441312432289124,
0.42404499650001526,
0.19986949861049652,
0.21778151392936707,
0.2266702651977539,
0.054220523685216904,
-0.050388868898153305,
-0.2862826883792877,
-0.22004550695419312,
-0.3234052062034607,
-0.28923237323760986,
-0.13966408371925354,
0.21441681683063507,
-0.0832648053765297,
-0.0014522629790008068,
0.005745453294366598,
0.039340998977422714,
-0.3005688190460205,
-0.3118559420108795,
0.01789732091128826,
0.1531229317188263,
0.0891462191939354,
-0.3017295300960541,
-0.09301865845918655,
-0.37219011783599854,
-0.037569310516119,
0.11136086285114288,
-0.4386265277862549,
-0.048365067690610886,
0.07445208728313446,
0.012252255342900753,
-0.0959482192993164,
0.1013629287481308,
-0.22327536344528198,
-0.25739148259162903,
0.03015316277742386,
0.07767238467931747,
-0.09112146496772766,
-0.024840736761689186,
-0.08522646874189377,
-0.092912957072258,
-0.09443727135658264,
-0.1782163679599762,
-0.17135077714920044,
-0.3487738072872162,
-0.24949710071086884,
0.3564101457595825,
-0.22924132645130157,
-0.19708211719989777,
-0.028622344136238098,
-0.02130705490708351,
0.2215861827135086,
0.23032619059085846,
-0.4229947328567505,
-0.13996368646621704,
-0.046450816094875336,
0.12764282524585724,
0.040780987590551376,
0.12311695516109467,
0.4344371259212494,
0.08247092366218567,
0.1826772540807724,
-0.21574826538562775,
-0.21617422997951508,
0.005898539908230305,
0.2345544397830963,
0.09291955083608627,
0.12586785852909088,
0.1468118131160736,
-0.039145778864622116,
0.8137377500534058,
0.3329550623893738,
-0.28913936018943787,
0.39454346895217896,
-0.07712152600288391,
0.1991162747144699,
-0.21797578036785126,
-0.3984624743461609,
-0.05657065287232399,
-0.1827710121870041,
-0.19083450734615326,
0.16933847963809967,
-0.037827372550964355,
-0.21571215987205505,
-0.05028492957353592,
-0.19739142060279846,
-0.3199199140071869,
-0.29778310656547546,
0.11048777401447296,
-0.17292457818984985,
0.3215150535106659,
0.3823329210281372,
0.3232056498527527,
-0.5896300077438354,
-0.18513286113739014,
0.14686612784862518,
0.07186609506607056,
0.3774529993534088,
0.0667557343840599,
-0.27431395649909973,
-0.2742205560207367,
-0.2854090631008148,
0.22522979974746704,
0.054375387728214264,
0.45619550347328186,
0.03940504789352417,
-0.14485715329647064,
0.002703895093873143,
0.0972273200750351,
0.27470991015434265,
-0.4058231711387634,
0.01444897148758173,
0.2318761646747589,
-0.16902966797351837,
-0.08411914855241776,
-0.16445598006248474,
0.07651988416910172,
0.43330565094947815,
0.1963188201189041,
0.4632546603679657,
0.22218921780586243,
0.04581082984805107,
-0.3195922076702118,
0.3016910254955292,
-0.24155393242835999,
-0.07760890573263168,
-0.3578513264656067,
0.03583812341094017,
-0.4233497679233551,
-0.05337808281183243,
-0.07221510261297226,
-0.12551036477088928,
0.030497189611196518,
-0.11906510591506958,
-0.24774184823036194,
-0.12867607176303864,
0.015927564352750778,
0.28796014189720154,
0.43738287687301636,
0.15202125906944275,
0.2777387499809265,
0.24389337003231049,
-0.09254592657089233,
0.22420455515384674,
0.23019644618034363,
-0.19362428784370422,
-0.16225478053092957,
-0.07048863172531128,
0.02645007334649563,
0.2585747539997101,
0.09492955356836319,
-0.3744317889213562,
-0.07174080610275269,
-0.1470504105091095,
-0.13331294059753418,
-0.19914843142032623,
0.03900749608874321,
0.11983271688222885,
0.20400163531303406,
-0.21846672892570496,
-0.4964650571346283,
0.13157275319099426,
0.11481174826622009,
-0.22417722642421722,
0.4784289598464966,
-0.5268223881721497,
-0.23376713693141937,
0.46407607197761536,
-0.15890826284885406,
0.6939276456832886,
-0.20300616323947906,
-0.013172910548746586,
-0.15695777535438538,
0.26735398173332214,
0.31759440898895264,
-0.2601322531700134,
0.19338445365428925,
-0.4079013168811798,
-0.070530004799366,
0.017669998109340668,
-0.23990631103515625,
-0.06032862886786461,
0.062250491231679916,
-0.3646007180213928,
0.289015531539917,
0.04567500948905945,
0.3356090784072876,
-0.011540996842086315,
0.21045517921447754,
0.28578290343284607,
-0.13722096383571625,
-0.05687488242983818,
0.08195482194423676,
0.06852886080741882,
0.4716663956642151,
-0.0036623452324420214,
0.004343860782682896,
0.0710882693529129,
-0.04495439678430557,
-0.09134356677532196,
0.11234387010335922,
-0.7211808562278748,
0.30688580870628357,
-0.17470607161521912,
0.033641595393419266,
-0.051643986254930496,
0.24319466948509216,
0.35104867815971375,
0.19376462697982788,
-0.1282077133655548,
0.1868286281824112,
0.19300377368927002,
0.2486361712217331,
-0.04779243841767311,
-0.3190560042858124,
0.14308272302150726,
0.14766353368759155,
-0.17885464429855347,
-0.023466704413294792,
-0.062439192086458206,
-0.39106541872024536,
-0.2537936568260193,
0.27181383967399597,
0.47009751200675964,
-0.1907343715429306,
-0.13811750710010529,
0.1859208047389984,
-0.026916105300188065,
-0.10349062830209732,
0.02735159732401371,
0.154514342546463,
0.09788195043802261,
0.506622314453125,
-0.30407413840293884,
-0.3529682159423828,
0.09179150313138962,
0.5403842329978943,
0.13948442041873932,
-0.07342803478240967,
0.3789065480232239,
-0.23895882070064545,
-0.07404431700706482,
-0.12995855510234833,
0.043036818504333496,
-0.04697267338633537,
-0.23553943634033203,
0.2335422784090042,
-0.0914040133357048,
0.1868421882390976,
0.09002510458230972,
-0.03553161025047302,
-0.21376648545265198,
0.01625334657728672,
-0.30443692207336426,
-0.3737492859363556,
-0.3308831453323364,
-0.0863463431596756,
0.051114827394485474,
-0.08650113642215729,
0.427245169878006,
0.291086345911026,
0.06012878566980362,
0.2189551591873169,
-0.18951895833015442,
0.2773418128490448,
0.33141055703163147,
0.16507457196712494,
-0.14320358633995056,
-0.06375207751989365,
0.017694661393761635,
-0.1543932855129242,
-0.048054907470941544,
0.17090082168579102,
-0.0499136857688427,
-0.12039709836244583,
-0.19941605627536774,
0.22195826470851898,
0.17116226255893707,
-0.02173147350549698,
-0.2919612228870392,
-0.30678340792655945,
0.16308718919754028,
-0.5828203558921814,
0.1274297684431076,
0.2063225507736206,
-0.09326238930225372,
0.009513044729828835,
0.37845921516418457,
-0.19838947057724,
-0.06998261064291,
0.0737886056303978,
-0.3343171775341034,
-0.15352213382720947,
0.006280551198869944,
0.28183314204216003,
0.1830984205007553,
0.19001545011997223,
-0.03671693801879883,
-0.22395721077919006,
0.10025587677955627,
0.06556343287229538,
0.3466319143772125,
-0.2847488522529602,
-0.10315176844596863,
0.036677680909633636,
-0.25932949781417847,
0.29916104674339294,
-0.1855587512254715,
-0.23418369889259338,
0.28745806217193604,
0.07217194885015488,
-0.2727124094963074,
-0.17770825326442719,
0.4632630944252014,
0.1624133139848709,
-0.053819164633750916,
0.2088622897863388,
0.39715591073036194,
-0.17309938371181488,
0.22250574827194214,
0.07208468019962311,
0.6409049034118652,
-0.21010653674602509,
0.3045123219490051,
0.04420396313071251,
0.08775381743907928,
0.2990758717060089,
0.22924163937568665,
0.21531793475151062,
-0.1304762363433838,
0.2860998809337616,
0.050204742699861526,
0.2895386219024658,
0.25989091396331787,
-0.09949878603219986,
-0.005414281040430069,
-0.47308048605918884,
0.01575331948697567,
0.13800214231014252,
-0.3188565671443939,
0.39858126640319824,
-0.07820327579975128,
0.08219896256923676,
-0.0805380567908287,
-0.1319548338651657,
-0.020269738510251045,
0.29778236150741577,
-0.36039862036705017,
-0.16375777125358582,
0.19185031950473785,
-0.09864742308855057,
0.05161884427070618,
0.052970606833696365,
0.021767601370811462,
0.09859228879213333,
0.47780993580818176,
0.08222158998250961,
-0.39101994037628174,
-0.06289844959974289,
-0.33926019072532654,
0.19615666568279266,
0.42297905683517456,
-0.18098872900009155,
0.26354408264160156,
-0.31629279255867004,
0.039043061435222626,
-0.1846112310886383,
0.10909537225961685,
0.3859156668186188,
0.4559956192970276,
-0.2092548906803131,
0.21420030295848846,
0.22361794114112854,
0.06624062359333038,
-0.141403928399086,
0.3060620427131653,
-0.13431140780448914,
-0.0827828124165535,
-0.07854290306568146,
0.020350230857729912,
-0.005040939897298813,
-0.09616299718618393,
-0.019234683364629745,
0.30186185240745544,
-0.015399777330458164,
0.04972680285573006,
0.016482949256896973,
-0.033265795558691025,
-0.11399318277835846,
0.23522983491420746,
-0.24419540166854858,
0.20292231440544128,
0.5567867159843445,
-0.00860403198748827,
0.14962132275104523,
-0.32172247767448425,
0.03488368168473244,
0.12194801867008209,
0.21719130873680115,
0.3149910569190979,
-0.29964274168014526,
-0.40976497530937195,
-0.26769784092903137,
-0.7540675401687622,
0.3354359567165375,
-0.18381446599960327,
0.2210136204957962,
-0.058771174401044846,
0.08054029196500778,
-0.09036024659872055,
-0.1343168169260025,
0.16551783680915833,
-0.05265658348798752,
0.02318340167403221,
0.18467731773853302,
-0.23350879549980164,
-0.14103925228118896,
-0.3344893753528595,
0.08516707271337509,
0.14680135250091553,
-0.3403092920780182,
0.27422448992729187,
-0.14838993549346924,
0.0004370254173409194,
-0.23217986524105072,
-0.10873285681009293,
0.013137477450072765,
0.008270650170743465,
0.818085253238678,
0.15539486706256866,
0.17735563218593597,
-0.0341658890247345,
0.1784493625164032,
-0.24992288649082184,
0.07681567966938019,
-0.0369192510843277,
0.02876191772520542,
-0.00016477239842060953,
0.09741950780153275,
-0.16884011030197144,
-0.17677533626556396,
-0.5049833655357361,
-0.16056232154369354,
0.2636042833328247,
-0.11144622415304184,
-0.09180863946676254,
0.032722752541303635,
-0.058339327573776245,
0.35334861278533936,
-0.09206653386354446,
0.46321195363998413,
-0.1938389092683792,
0.37216490507125854,
-0.28001606464385986,
-0.16769976913928986,
0.3528718948364258,
-0.6539236903190613,
-0.4455691874027252,
-0.23758432269096375,
0.3042319715023041,
-0.29369252920150757,
-0.20926235616207123,
-0.5068484544754028,
-0.020398035645484924,
0.4445631802082062,
-0.01142294891178608,
-0.2154308408498764,
0.05372374877333641,
-0.09017059206962585,
0.22561460733413696,
-0.2515747845172882,
0.2279307097196579,
0.2003181278705597,
-0.2147217094898224,
0.07533185929059982,
-0.14737379550933838
] |
https://github.com/huggingface/datasets/issues/2825 | The datasets.map function does not load cached dataset after moving python script | #2854 fixed the issue :)
We'll do a new release of `datasets` soon to make the fix available.
In the meantime, feel free to try it out by installing `datasets` from source
If you have other issues or any question, feel free to re-open the issue :) | ## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
| 47 | The datasets.map function does not load cached dataset after moving python script
## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
#2854 fixed the issue :)
We'll do a new release of `datasets` soon to make the fix available.
In the meantime, feel free to try it out by installing `datasets` from source
If you have other issues or any question, feel free to re-open the issue :) | [
-0.12739765644073486,
0.07241461426019669,
0.09145867824554443,
0.009580226615071297,
0.15996354818344116,
-0.06600891798734665,
0.40474626421928406,
0.24604830145835876,
0.2259853631258011,
-0.0873798131942749,
0.11444104462862015,
0.5168566703796387,
-0.05836980789899826,
-0.1686522662639618,
0.14542557299137115,
0.1743043214082718,
0.21470747888088226,
0.16131848096847534,
0.015196256339550018,
-0.17486146092414856,
-0.226082906126976,
-0.0004946878179907799,
-0.3888830244541168,
-0.05302038416266441,
-0.41675880551338196,
0.11895236372947693,
-0.1496829390525818,
-0.064177505671978,
0.21033601462841034,
-0.47113919258117676,
0.34248971939086914,
0.12528829276561737,
0.2924121022224426,
0.37150001525878906,
-0.00011757417814806104,
-0.0325825996696949,
0.23810143768787384,
-0.08872140944004059,
-0.16877050697803497,
-0.1984856277704239,
-0.09116531908512115,
-0.07843058556318283,
0.11407537013292313,
-0.1740201860666275,
0.01486213319003582,
-0.06703385710716248,
-0.05801776051521301,
-0.5517783164978027,
0.3449012339115143,
0.2660757005214691,
0.1569477617740631,
0.09166459739208221,
-0.13243697583675385,
0.14091454446315765,
-0.09194830805063248,
-0.14746129512786865,
-0.040210165083408356,
-0.1767195612192154,
0.28839489817619324,
-0.407318115234375,
-0.18619292974472046,
0.24079768359661102,
-0.1470915675163269,
0.08808667957782745,
0.3459536135196686,
0.02648875117301941,
-0.19789472222328186,
-0.30313122272491455,
0.3096979558467865,
-0.06092492491006851,
0.3651445806026459,
-0.40835273265838623,
-0.26330992579460144,
-0.2716083824634552,
-0.12929105758666992,
-0.030637474730610847,
0.1167382150888443,
-0.21744023263454437,
0.21543794870376587,
0.15866820514202118,
-0.4689265489578247,
-0.11603475362062454,
0.11138706654310226,
0.19119250774383545,
-0.12629295885562897,
0.42786839604377747,
-0.0862310528755188,
0.1805843710899353,
-0.1728985756635666,
-0.052441686391830444,
0.16300660371780396,
-0.12792453169822693,
0.05927107110619545,
0.5038397908210754,
-0.19770267605781555,
-0.02713155187666416,
0.15390920639038086,
-0.048614196479320526,
0.057408593595027924,
0.11033717542886734,
-0.009577843360602856,
0.21652306616306305,
-0.19875670969486237,
-0.029594670981168747,
0.15257012844085693,
0.5008952617645264,
0.15954621136188507,
0.41054847836494446,
0.10370714217424393,
-0.09126991033554077,
-0.6493958830833435,
-0.16862043738365173,
-0.12851475179195404,
-0.0576791986823082,
0.600676417350769,
0.035232532769441605,
0.2038290798664093,
-0.0009122949559241533,
0.10980715602636337,
0.0979171097278595,
-0.07160233706235886,
-0.19001445174217224,
0.033754583448171616,
0.4491541087627411,
-0.039783965796232224,
0.3059888482093811,
-0.0941903293132782,
0.21218912303447723,
-0.13550154864788055,
0.0562308207154274,
-0.1956658959388733,
-0.21084725856781006,
-0.19784097373485565,
0.2894202172756195,
0.23243996500968933,
0.11115609854459763,
0.35573115944862366,
0.0897306352853775,
-0.032561294734478,
-0.12094425410032272,
0.2773365080356598,
0.04402657970786095,
0.6040599346160889,
0.12150324881076813,
-0.02314186654984951,
0.5818362236022949,
0.2637912929058075,
0.0014679154846817255,
-0.15114924311637878,
0.17169752717018127,
-0.6476749181747437,
-0.16971789300441742,
0.3885863721370697,
0.08996041864156723,
-0.20568279922008514,
-0.15718291699886322,
-0.15736347436904907,
-0.010750915855169296,
0.513422966003418,
-0.214952290058136,
-0.012253261171281338,
-0.33639928698539734,
-0.3412781357765198,
-0.38475364446640015,
0.1996459662914276,
0.44018784165382385,
-0.05123039707541466,
-0.15499533712863922,
-0.13650141656398773,
0.3355630338191986,
0.13257580995559692,
0.10709439963102341,
-0.3555154502391815,
0.330260306596756,
-0.25393855571746826,
0.37725523114204407,
0.28820881247520447,
-0.4481261670589447,
-0.7045118808746338,
0.028933532536029816,
0.014852544292807579,
0.26825666427612305,
-0.2539273798465729,
-0.14518502354621887,
0.2909590005874634,
-0.17242006957530975,
-0.0794617161154747,
0.2683815658092499,
0.21999602019786835,
0.33509254455566406,
-0.25603723526000977,
-0.13637053966522217,
0.32571840286254883,
-0.16900986433029175,
0.21523843705654144,
0.023672936484217644,
-0.022000202909111977,
0.09551189094781876,
0.14558476209640503,
-0.00971204787492752,
0.2444513589143753,
0.16079756617546082,
0.17614340782165527,
0.08809080719947815,
0.32284969091415405,
-0.07430646568536758,
-0.249989315867424,
0.28981760144233704,
-0.15474294126033783,
-0.44900962710380554,
-0.09719030559062958,
-0.10666729509830475,
-0.10246166586875916,
-0.1602703481912613,
-0.50255286693573,
-0.2756500840187073,
0.13043080270290375,
0.2702077031135559,
0.24305583536624908,
0.11698022484779358,
-0.2288285195827484,
0.1204116940498352,
0.3192528188228607,
-0.12633806467056274,
-0.08702299743890762,
0.14952588081359863,
0.16313205659389496,
-0.09887698292732239,
-0.26547977328300476,
0.083654023706913,
0.41135910153388977,
-0.09109374135732651,
-0.279155433177948,
0.22016878426074982,
0.2130371630191803,
0.228849396109581,
-0.06588360667228699,
0.002197406254708767,
0.02300584316253662,
-0.04227473959326744,
0.14551134407520294,
0.23421943187713623,
0.08800052106380463,
-0.11729277670383453,
0.11153006553649902,
0.22273920476436615,
0.2169865518808365,
0.20374275743961334,
-0.005545575637370348,
-0.032043736428022385,
0.11145342141389847,
-0.16955406963825226,
0.09910423308610916,
-0.24828897416591644,
-0.22172686457633972,
-0.14473141729831696,
0.3873696029186249,
0.12673090398311615,
0.3542509973049164,
0.334226131439209,
0.6654903888702393,
0.17409153282642365,
0.17550212144851685,
0.047703634947538376,
-0.660090446472168,
-0.2747761607170105,
-0.09002383053302765,
0.16252750158309937,
0.27189183235168457,
-0.0032674672547727823,
-0.052394624799489975,
-0.05924108251929283,
0.17837992310523987,
0.06885376572608948,
0.0634293183684349,
-0.023999042809009552,
0.10102858394384384,
0.183383047580719,
0.19373832643032074,
0.15290085971355438,
-0.10323560237884521,
0.17403392493724823,
0.19701668620109558,
0.26344090700149536,
-0.1638142466545105,
0.01781366765499115,
-0.4033918082714081,
0.4058871269226074,
-0.01107968483120203,
-0.24892432987689972,
-0.04739246517419815,
-0.3511258661746979,
-0.056027960032224655,
0.26325392723083496,
0.06091688573360443,
0.26476192474365234,
0.0576651394367218,
-0.018236085772514343,
0.0062513938173651695,
-0.3572273850440979,
-0.27162647247314453,
-0.4146784543991089,
-0.22496621310710907,
-0.064446821808815,
0.1597518026828766,
-0.11843749135732651,
0.1242043748497963,
-0.022266125306487083,
0.08289054781198502,
-0.3509308397769928,
-0.2879321575164795,
-0.0605936124920845,
0.07842902094125748,
-0.03722793981432915,
-0.24621827900409698,
0.010664977133274078,
-0.2674313485622406,
-0.11377892643213272,
0.16335122287273407,
-0.5391674041748047,
-0.04147176444530487,
0.18993735313415527,
0.01735643483698368,
-0.060904864221811295,
0.13965407013893127,
-0.3343351483345032,
-0.1855301409959793,
0.014654848724603653,
0.07902809977531433,
-0.0025064456276595592,
-0.05815841630101204,
-0.07832284271717072,
-0.08067861199378967,
-0.12903068959712982,
-0.2679100036621094,
-0.1495465338230133,
-0.35556545853614807,
-0.3247365355491638,
0.3774479925632477,
-0.23813694715499878,
-0.2658274471759796,
-0.09182556718587875,
-0.023352215066552162,
0.21560180187225342,
0.21848006546497345,
-0.3069497346878052,
-0.06845657527446747,
-0.18365494906902313,
0.19319884479045868,
0.012749661691486835,
0.15176992118358612,
0.48842886090278625,
0.13608309626579285,
0.09041326493024826,
-0.21518908441066742,
-0.043836724013090134,
0.059499021619558334,
0.141482874751091,
0.03102163039147854,
0.07027577608823776,
0.06304539740085602,
-0.015829071402549744,
0.8712033033370972,
0.3394305109977722,
-0.24347522854804993,
0.3906834125518799,
-0.11663929373025894,
0.17123179137706757,
-0.28131741285324097,
-0.3686886429786682,
-0.09210847318172455,
-0.19653013348579407,
-0.0361911915242672,
0.13988097012043,
0.003131592646241188,
-0.199382483959198,
0.002948459703475237,
-0.1436539739370346,
-0.4210384786128998,
-0.29257550835609436,
0.0749981477856636,
-0.09563431888818741,
0.2742869555950165,
0.3240698277950287,
0.28112876415252686,
-0.6588518023490906,
-0.240760937333107,
0.20888909697532654,
-0.041510097682476044,
0.3959529399871826,
-0.016556669026613235,
-0.3597288131713867,
-0.09427811205387115,
-0.3311763405799866,
0.25043347477912903,
0.04880324378609657,
0.4142692983150482,
0.09387345612049103,
-0.21369755268096924,
-0.045353569090366364,
0.0769307017326355,
0.22193320095539093,
-0.38883838057518005,
0.04738069698214531,
0.2300533801317215,
-0.14695914089679718,
-0.18878652155399323,
-0.14791721105575562,
0.048371538519859314,
0.2653461992740631,
0.188124880194664,
0.4231223165988922,
0.14207971096038818,
0.00043069798266515136,
-0.3593813478946686,
0.34942781925201416,
-0.24316853284835815,
-0.03855854645371437,
-0.3027106821537018,
0.08390119671821594,
-0.5145260691642761,
-0.0996665209531784,
-0.08400093019008636,
-0.04306395724415779,
-0.03388800472021103,
-0.11000819504261017,
-0.28681495785713196,
-0.10158810764551163,
-0.02054484188556671,
0.23677074909210205,
0.4534939229488373,
0.03866057097911835,
0.32911601662635803,
0.28245294094085693,
-0.18345357477664948,
0.17817461490631104,
0.24568304419517517,
-0.1328647881746292,
-0.24847717583179474,
-0.16815185546875,
0.09059159457683563,
0.2635989487171173,
0.038832761347293854,
-0.2994982898235321,
-0.07385426759719849,
-0.1791800558567047,
-0.02015887200832367,
-0.3251713216304779,
0.08451293408870697,
0.2234949916601181,
0.10663890838623047,
-0.2621913552284241,
-0.48809951543807983,
0.16623511910438538,
0.08203833550214767,
-0.1978457272052765,
0.5077856183052063,
-0.3288019001483917,
-0.17825670540332794,
0.5263876914978027,
-0.16723018884658813,
0.703058660030365,
-0.26148301362991333,
0.022735074162483215,
-0.1484287530183792,
0.30797725915908813,
0.2823584973812103,
-0.2782202661037445,
0.03770508989691734,
-0.4485218822956085,
-0.07384870201349258,
0.03707452863454819,
-0.17567391693592072,
-0.05014495179057121,
0.0857841819524765,
-0.3708004951477051,
0.2630684971809387,
-0.03073492832481861,
0.42427152395248413,
0.0008202206226997077,
0.2950988709926605,
0.21754112839698792,
-0.16115480661392212,
0.07092597335577011,
0.1475217491388321,
0.09551846981048584,
0.41267773509025574,
0.03859070688486099,
-0.02428007498383522,
0.05244651064276695,
-0.0692037045955658,
-0.13680818676948547,
0.13073143362998962,
-0.46978887915611267,
0.33412957191467285,
-0.1529870480298996,
0.1190004050731659,
-0.060301925987005234,
0.3621896505355835,
0.39682644605636597,
0.19835060834884644,
-0.2566065192222595,
0.26454445719718933,
0.09788268804550171,
0.21886689960956573,
0.013380520045757294,
-0.2077474445104599,
0.08404584228992462,
0.1926833987236023,
-0.29337915778160095,
0.06946499645709991,
-0.055558595806360245,
-0.3760702311992645,
-0.36594533920288086,
0.19937428832054138,
0.46980252861976624,
-0.357154905796051,
-0.15961535274982452,
0.19727931916713715,
-0.025987673550844193,
-0.12027207016944885,
0.11275877803564072,
0.1794179230928421,
0.07351437956094742,
0.47383925318717957,
-0.2469424307346344,
-0.30064016580581665,
0.09694408625364304,
0.547360360622406,
0.08685629814863205,
-0.07035751640796661,
0.46873587369918823,
-0.28229326009750366,
-0.07599205523729324,
-0.16817747056484222,
0.06282629817724228,
0.12856027483940125,
-0.35344207286834717,
0.09837371110916138,
-0.009109857492148876,
0.2103240191936493,
0.11476228386163712,
-0.02359968237578869,
-0.29507890343666077,
-0.006766465492546558,
-0.2794573903083801,
-0.26374131441116333,
-0.365705281496048,
-0.08591540902853012,
0.03355776146054268,
0.043395888060331345,
0.3683929443359375,
0.17312726378440857,
0.027270490303635597,
0.2843603193759918,
-0.27672430872917175,
0.22140207886695862,
0.35668206214904785,
0.15403836965560913,
-0.21069571375846863,
-0.12278343737125397,
0.05638866871595383,
-0.20203004777431488,
0.05188081040978432,
0.10561203211545944,
-0.07670988142490387,
-0.20320875942707062,
-0.14987222850322723,
0.1702452152967453,
0.18189969658851624,
-0.006731176748871803,
-0.2689257562160492,
-0.18231432139873505,
0.14384666085243225,
-0.5760856866836548,
0.15510499477386475,
0.2457038015127182,
-0.07188460230827332,
0.15194454789161682,
0.4375986158847809,
-0.23166248202323914,
-0.02710230089724064,
0.017064440995454788,
-0.3173012435436249,
-0.04952060431241989,
-0.11272885650396347,
0.2077106386423111,
0.1210680603981018,
0.11755799502134323,
-0.04379793256521225,
-0.12828117609024048,
0.2395603209733963,
0.09346483647823334,
0.3994583487510681,
-0.2951732873916626,
-0.07392759621143341,
0.11580216884613037,
-0.14812171459197998,
0.2610618770122528,
-0.2970363199710846,
-0.2015531212091446,
0.31405261158943176,
0.19270701706409454,
-0.24931763112545013,
-0.24179242551326752,
0.3572395443916321,
0.1374019980430603,
-0.060515083372592926,
0.011838497593998909,
0.26750144362449646,
-0.3133397400379181,
0.28771722316741943,
0.05236077681183815,
0.5716954469680786,
-0.3205867409706116,
0.2812640368938446,
0.20665812492370605,
0.11677171289920807,
0.1284617781639099,
0.12848736345767975,
0.17819327116012573,
-0.06839065253734589,
0.3175273835659027,
-0.011976686306297779,
0.3628057837486267,
0.1818665862083435,
-0.06230011209845543,
-0.009980915114283562,
-0.4547531306743622,
-0.027717135846614838,
0.1175224706530571,
-0.2924535870552063,
0.36289897561073303,
-0.023952005431056023,
0.1671726107597351,
0.07813066989183426,
-0.12143159657716751,
-0.11912046372890472,
0.3189848065376282,
-0.3081088066101074,
-0.18043556809425354,
0.14799116551876068,
-0.06876587867736816,
0.03022242709994316,
0.021146371960639954,
-0.01969333365559578,
0.05291895940899849,
0.3540976047515869,
0.0921829491853714,
-0.3180072605609894,
-0.09965027868747711,
-0.19930250942707062,
0.0919281616806984,
0.47016441822052,
-0.14691539108753204,
0.19373732805252075,
-0.17746537923812866,
-0.013522581197321415,
-0.09180629253387451,
0.2231093794107437,
0.4018782675266266,
0.4546133875846863,
-0.14829061925411224,
0.365325003862381,
0.11687494069337845,
0.009522880427539349,
-0.10058408975601196,
0.37915173172950745,
-0.21207906305789948,
-0.15146569907665253,
-0.0042180707678198814,
0.11189958453178406,
-0.070549875497818,
-0.21215298771858215,
-0.05765673518180847,
0.33303236961364746,
-0.007767362054437399,
0.14699916541576385,
0.10227895528078079,
-0.05783899873495102,
-0.10239284485578537,
0.18045781552791595,
-0.2888162434101105,
0.10786356031894684,
0.5013054013252258,
0.09909611195325851,
0.19185617566108704,
-0.3919440507888794,
0.07266119122505188,
0.14902855455875397,
0.1968066394329071,
0.34555673599243164,
-0.33207517862319946,
-0.402328222990036,
-0.3072875142097473,
-0.69095379114151,
0.3282342851161957,
-0.13998882472515106,
0.234854593873024,
0.017306620255112648,
0.04636065661907196,
-0.15544667840003967,
-0.12467498332262039,
0.21108378469944,
-0.027085503563284874,
-0.0685899630188942,
0.2278553545475006,
-0.22491565346717834,
0.006883805152028799,
-0.23128792643547058,
0.16727784276008606,
0.13725212216377258,
-0.38252314925193787,
0.2694314122200012,
-0.16534282267093658,
0.06545905023813248,
-0.17031367123126984,
-0.007052510976791382,
0.06707195192575455,
-0.056899722665548325,
0.7861574292182922,
0.1311320960521698,
0.13619746267795563,
-0.08967513591051102,
0.25518515706062317,
-0.3458390533924103,
0.02962198480963707,
-0.03957221284508705,
0.007672313135117292,
-0.057893384248018265,
0.06258941441774368,
-0.15077781677246094,
-0.21931685507297516,
-0.4397765100002289,
-0.2626307010650635,
0.2159588783979416,
-0.047388795763254166,
-0.1473795771598816,
-0.018344782292842865,
0.013437514193356037,
0.31020885705947876,
-0.060985542833805084,
0.4418366253376007,
-0.18949474394321442,
0.3719445466995239,
-0.22400321066379547,
-0.2603967785835266,
0.38441362977027893,
-0.558337926864624,
-0.46991512179374695,
-0.20353421568870544,
0.2741136848926544,
-0.24196675419807434,
-0.21972666680812836,
-0.497186541557312,
0.11459227651357651,
0.45381781458854675,
0.1593983918428421,
-0.1826809197664261,
0.007517863530665636,
-0.06191684305667877,
0.2377012073993683,
-0.21908393502235413,
0.3804851472377777,
0.17656995356082916,
-0.07378105074167252,
0.09229974448680878,
-0.0781693160533905
] |
https://github.com/huggingface/datasets/issues/2823 | HF_DATASETS_CACHE variable in Windows | Agh - I'm a muppet. No quote marks are needed.
set HF_DATASETS_CACHE = C:\Datasets
works as intended. | I can't seem to use a custom Cache directory in Windows. I have tried:
set HF_DATASETS_CACHE = "C:\Datasets"
set HF_DATASETS_CACHE = "C:/Datasets"
set HF_DATASETS_CACHE = "C:\\Datasets"
set HF_DATASETS_CACHE = "r'C:\Datasets'"
set HF_DATASETS_CACHE = "\Datasets"
set HF_DATASETS_CACHE = "/Datasets"
In each instance I get the "[WinError 123] The filename, directory name, or volume label syntax is incorrect" error when attempting to load a dataset | 17 | HF_DATASETS_CACHE variable in Windows
I can't seem to use a custom Cache directory in Windows. I have tried:
set HF_DATASETS_CACHE = "C:\Datasets"
set HF_DATASETS_CACHE = "C:/Datasets"
set HF_DATASETS_CACHE = "C:\\Datasets"
set HF_DATASETS_CACHE = "r'C:\Datasets'"
set HF_DATASETS_CACHE = "\Datasets"
set HF_DATASETS_CACHE = "/Datasets"
In each instance I get the "[WinError 123] The filename, directory name, or volume label syntax is incorrect" error when attempting to load a dataset
Agh - I'm a muppet. No quote marks are needed.
set HF_DATASETS_CACHE = C:\Datasets
works as intended. | [
-0.25575166940689087,
0.4681488871574402,
-0.008667560294270515,
0.09381303936243057,
-0.09325774759054184,
0.2809450626373291,
0.35917937755584717,
0.013096903450787067,
0.5492926836013794,
0.17232419550418854,
-0.10863007605075836,
-0.32070717215538025,
0.026963284239172935,
-0.1362951546907425,
-0.08843959867954254,
0.16005545854568481,
-0.012463710270822048,
0.2051328718662262,
0.33082816004753113,
0.10526438057422638,
-0.34717461466789246,
0.1946113258600235,
-0.11635488271713257,
0.17325946688652039,
-0.22010403871536255,
-0.027302073314785957,
-0.22863416373729706,
0.3452451229095459,
0.12022502720355988,
-0.07327383756637573,
0.29851222038269043,
0.18235976994037628,
0.4611557126045227,
0.43732520937919617,
-0.00011925064609386027,
-0.009227418340742588,
0.13676001131534576,
-0.1833859235048294,
-0.1629035323858261,
0.12001581490039825,
-0.23977556824684143,
0.28231075406074524,
-0.264410138130188,
0.028602665290236473,
-0.0028126456309109926,
0.20127201080322266,
0.008684616535902023,
-0.6335747838020325,
-0.25590288639068604,
0.35187506675720215,
0.14445605874061584,
-0.2560603618621826,
-0.47546714544296265,
-0.1310122162103653,
0.32332393527030945,
0.4254637658596039,
-0.18952804803848267,
0.17433291673660278,
0.002200980205088854,
-0.2547372877597809,
-0.13019564747810364,
0.19848522543907166,
0.07415332645177841,
0.38532915711402893,
0.3594757318496704,
0.20239770412445068,
-0.08936233073472977,
0.19876816868782043,
0.29811862111091614,
-0.028903968632221222,
0.9117115139961243,
-0.3926506042480469,
-0.06758175045251846,
0.11374654620885849,
-0.18824626505374908,
-0.38104066252708435,
0.3569801449775696,
0.10961785912513733,
-0.21524399518966675,
0.09236225485801697,
0.03224702551960945,
-0.20940349996089935,
-0.2581728994846344,
0.17355668544769287,
0.15363171696662903,
-0.0576699934899807,
0.01661696285009384,
-0.08532821387052536,
0.2099919617176056,
-0.13798026740550995,
0.30408692359924316,
-0.2422671914100647,
-0.4997875392436981,
0.15865705907344818,
-0.22329479455947876,
0.19285567104816437,
-0.29340308904647827,
0.5975062847137451,
-0.04786984622478485,
0.03498031944036484,
0.06554746627807617,
0.1633857637643814,
-0.1220715343952179,
-0.025283345952630043,
-0.07095284759998322,
0.45318618416786194,
0.08659909665584564,
0.06874052435159683,
0.05911775305867195,
-0.17017242312431335,
-0.17581239342689514,
-0.08814538270235062,
-0.21633081138134003,
-0.4496689438819885,
0.21822240948677063,
0.06015144661068916,
-0.15006786584854126,
-0.5533460378646851,
0.061766065657138824,
-0.23781496286392212,
0.18141576647758484,
-0.12274094671010971,
0.2828262746334076,
0.32875126600265503,
0.18195123970508575,
-0.15542466938495636,
-0.24535532295703888,
0.12225617468357086,
-0.12485409528017044,
-0.009362179785966873,
-0.04421320557594299,
0.11509593576192856,
-0.35451990365982056,
0.4502946138381958,
0.4435073733329773,
0.15046516060829163,
-0.08590508252382278,
-0.12230472266674042,
0.2869006395339966,
0.17319002747535706,
-0.015233383513987064,
-0.25691062211990356,
-0.017551854252815247,
0.16239359974861145,
-0.02308206632733345,
0.328689843416214,
0.09826172888278961,
-0.18496370315551758,
-0.23613257706165314,
0.28193870186805725,
-0.27985939383506775,
-0.4200795590877533,
-0.1352793574333191,
-0.004328998737037182,
-0.07335679233074188,
-0.3321877121925354,
-0.29202800989151,
0.019032428041100502,
0.036776211112737656,
-0.016088567674160004,
0.05140252783894539,
0.07770662009716034,
-0.29254499077796936,
-0.18676221370697021,
-0.15984337031841278,
0.42580968141555786,
-0.6456724405288696,
0.05490066856145859,
-0.12992917001247406,
0.03499430790543556,
0.15908509492874146,
0.36179691553115845,
-0.13140474259853363,
0.14415545761585236,
-0.3559283912181854,
0.009469426237046719,
0.29182443022727966,
-0.5207453966140747,
-0.45747825503349304,
0.08555711060762405,
0.3869656026363373,
-0.2977321147918701,
0.28469353914260864,
0.08091738820075989,
0.16067321598529816,
-0.16200284659862518,
0.01170042622834444,
0.21610139310359955,
0.06862417608499527,
-0.24699239432811737,
-0.012032791040837765,
-0.18285053968429565,
0.0438937172293663,
0.24150638282299042,
-0.0034101884812116623,
0.4013131558895111,
0.1921706199645996,
0.004757762420922518,
0.05246135592460632,
-0.09431389719247818,
0.12705259025096893,
0.3066820800304413,
0.3205011487007141,
0.4424472749233246,
0.1727312207221985,
0.17628629505634308,
-0.22600361704826355,
0.2912081480026245,
-0.11700774729251862,
-0.21728114783763885,
0.287851482629776,
0.0115911103785038,
0.016137365251779556,
-0.2953484058380127,
-0.220785453915596,
-0.18113210797309875,
-0.007617710158228874,
0.2608889639377594,
0.2349204123020172,
-0.2933543622493744,
-0.02679550088942051,
0.6589477062225342,
0.22654074430465698,
-0.19416411221027374,
0.29573139548301697,
-0.026914671063423157,
-0.18714572489261627,
-0.04246436432003975,
-0.12012215703725815,
-0.03113304264843464,
0.2132747620344162,
0.17757020890712738,
-0.23258909583091736,
0.300589919090271,
0.0022564528044313192,
-0.07763577252626419,
0.312198668718338,
0.3358965814113617,
-0.04627879336476326,
-0.012909486889839172,
0.5341503620147705,
0.08750098198652267,
-0.011285259388387203,
-0.06717534363269806,
-0.25362345576286316,
-0.02858017385005951,
-0.1555691659450531,
0.357164204120636,
-0.21781989932060242,
-0.008501226082444191,
0.13212950527668,
-0.0853913426399231,
0.3848131597042084,
-0.22514128684997559,
0.38570424914360046,
-0.26740238070487976,
0.1608102023601532,
-0.20451512932777405,
-0.022374309599399567,
0.05002942681312561,
0.20002929866313934,
0.046481989324092865,
0.09000366181135178,
0.38413843512535095,
-0.23045748472213745,
-0.06130005046725273,
0.11813826113939285,
0.1175849512219429,
0.6406489610671997,
0.14608080685138702,
-0.00623313570395112,
0.03811071068048477,
-0.13339215517044067,
-0.03826867789030075,
0.11260748654603958,
-0.1810552030801773,
-0.005323086399585009,
-0.040673885494470596,
-0.06350010633468628,
-0.1481618881225586,
0.12493938952684402,
-0.35392147302627563,
-0.008960497565567493,
0.060326579958200455,
-0.40253129601478577,
0.12548638880252838,
-0.26631370186805725,
-0.24509407579898834,
-0.04188793525099754,
-0.37950024008750916,
-0.1935695856809616,
-0.15710781514644623,
-0.0439106784760952,
0.07422224432229996,
0.3458557724952698,
-0.05544707924127579,
-0.6163680553436279,
0.29077959060668945,
-0.19381403923034668,
-0.52447909116745,
-0.25687727332115173,
-0.03081870637834072,
-0.3730293810367584,
-0.05454472079873085,
0.03154924139380455,
0.033409032970666885,
0.05658229440450668,
0.001354352803900838,
0.40293726325035095,
-0.4331884980201721,
0.2553689479827881,
0.17201551795005798,
0.37531888484954834,
0.2596967816352844,
0.01513748336583376,
-0.09037081152200699,
0.04530833289027214,
-0.18880881369113922,
0.2970713973045349,
-0.08394770324230194,
0.12738355994224548,
-0.031231064349412918,
-0.19421067833900452,
-0.028002282604575157,
0.01939874142408371,
0.22745707631111145,
-0.3716921806335449,
-0.21202296018600464,
-0.2424018532037735,
0.14333859086036682,
0.0797450989484787,
0.38318192958831787,
-0.20048871636390686,
0.0953654944896698,
0.29326537251472473,
-0.3508397936820984,
-0.33239802718162537,
-0.36541399359703064,
0.5393199920654297,
-0.4161728024482727,
0.011838799342513084,
0.19367030262947083,
0.20550714433193207,
-0.20151904225349426,
0.21513281762599945,
-0.42420506477355957,
0.09649505466222763,
-0.1795962154865265,
0.08074311167001724,
0.03429393470287323,
-0.08835746347904205,
0.13629518449306488,
-0.24338890612125397,
-0.0392158217728138,
-0.24424736201763153,
-0.597272515296936,
0.2365328073501587,
-0.07241272926330566,
0.4560072124004364,
0.36506059765815735,
0.10597890615463257,
-0.09161803871393204,
0.44573041796684265,
0.09642208367586136,
0.1595919132232666,
0.46057143807411194,
-0.07350161671638489,
0.31841060519218445,
-0.013625087216496468,
-0.0809270441532135,
0.1316009908914566,
-0.059500545263290405,
-0.25267910957336426,
0.2065047025680542,
0.2332797795534134,
-0.16243696212768555,
0.025440961122512817,
-0.035230010747909546,
0.15128237009048462,
-0.10326569527387619,
0.10922861844301224,
-0.35046839714050293,
0.24346067011356354,
-0.0305180624127388,
-0.13859964907169342,
-0.3490748107433319,
-0.4369843602180481,
0.470767617225647,
0.5245856046676636,
-0.24542871117591858,
0.4193020761013031,
-0.18075202405452728,
0.11130502820014954,
-0.23604586720466614,
0.458657830953598,
-0.11920572072267532,
0.38187190890312195,
-0.45012786984443665,
0.30927032232284546,
-0.11239827424287796,
-0.01470131054520607,
0.511096715927124,
-0.4883119761943817,
0.1709708869457245,
0.44051727652549744,
0.22151222825050354,
0.1607988029718399,
-0.2506405711174011,
0.045485205948352814,
0.33839869499206543,
-0.41764310002326965,
0.0901423916220665,
0.2738477885723114,
-0.25276973843574524,
0.05322001501917839,
-0.027260033413767815,
-0.4673556685447693,
-0.31635674834251404,
-0.09189063310623169,
-0.05695664510130882,
0.0641009733080864,
-0.277658075094223,
-0.11844087392091751,
0.040103729814291,
0.3600783050060272,
0.31209948658943176,
-0.1930750608444214,
0.16776396334171295,
0.37884172797203064,
-0.1430613249540329,
0.3332849442958832,
0.20720206201076508,
-0.08362621814012527,
0.0844900980591774,
0.1856541782617569,
0.19261448085308075,
0.26155924797058105,
-0.1616355925798416,
-0.110848069190979,
0.17436106503009796,
-0.25999513268470764,
0.12317539006471634,
0.04838806018233299,
-0.19706228375434875,
-0.11205817013978958,
0.030653096735477448,
-0.025359367951750755,
-0.3931271433830261,
0.20960992574691772,
-0.0403304249048233,
-0.13963867723941803,
-0.28234806656837463,
-0.3919423520565033,
0.416445255279541,
0.07440093904733658,
-0.1704440414905548,
0.4063185453414917,
0.3550950586795807,
-0.3551274836063385,
0.24673698842525482,
0.07815010845661163,
0.6511040329933167,
-0.23170940577983856,
0.04132174700498581,
-0.2924339175224304,
-0.4596005380153656,
-0.18429534137248993,
-0.19484858214855194,
0.038568250834941864,
-0.12402805685997009,
-0.23180893063545227,
-0.15036922693252563,
-0.09033247828483582,
0.3203730285167694,
0.4188171327114105,
-0.1880277842283249,
0.5310230851173401,
0.08548542857170105,
0.07329250127077103,
0.10651393979787827,
-0.11206337809562683,
0.07410859316587448,
-0.38009002804756165,
0.2787136137485504,
0.19391384720802307,
-0.07526524364948273,
0.2040400356054306,
-0.0995934009552002,
0.13896453380584717,
-0.025455977767705917,
0.11243889480829239,
-0.46907979249954224,
-0.08627643436193466,
-0.5284093618392944,
0.055068958550691605,
-0.15829497575759888,
-0.15726108849048615,
0.10166864842176437,
0.11782263964414597,
0.4569375514984131,
-0.04479758441448212,
-0.2122696489095688,
0.15788573026657104,
0.1468140333890915,
0.09200674295425415,
-0.21347138285636902,
-0.016873082146048546,
0.0020502684637904167,
-0.14689674973487854,
-0.23369884490966797,
-0.11243606358766556,
0.0008227151120081544,
-0.5835399031639099,
-0.26840612292289734,
-0.23061296343803406,
0.231596440076828,
-0.002110849367454648,
-0.0922534167766571,
-0.18223106861114502,
0.23070141673088074,
0.22003929316997528,
0.067613385617733,
-0.009641558863222599,
0.20991268754005432,
0.18662796914577484,
-0.4496469497680664,
-0.07633709907531738,
-0.11411195248365402,
-0.05350525677204132,
-0.42963430285453796,
-0.20645813643932343,
0.2676540017127991,
0.0008905703434720635,
-0.0931641235947609,
-0.09134425222873688,
-0.08951035141944885,
0.03191736713051796,
-0.14001016318798065,
-0.2013547271490097,
-0.06535615026950836,
-0.173558309674263,
0.1563197821378708,
-0.06802210211753845,
0.3295849561691284,
-0.15845604240894318,
-0.055969513952732086,
-0.4187110960483551,
-0.12151887267827988,
-0.146601602435112,
-0.359760582447052,
0.16396355628967285,
-0.22594748437404633,
-0.393338680267334,
0.23117803037166595,
-0.1383242905139923,
-0.19113247096538544,
0.00010437602759338915,
0.15450944006443024,
-0.09205322712659836,
-0.13641449809074402,
0.19359877705574036,
0.2963393032550812,
0.1862526535987854,
-0.06710178405046463,
-0.24372023344039917,
-0.08764287829399109,
-0.077234648168087,
-0.252838671207428,
0.17781586945056915,
0.0199225302785635,
0.15678565204143524,
0.03846501186490059,
-0.23153720796108246,
0.023800384253263474,
-0.10653401911258698,
0.13605916500091553,
0.4663168489933014,
-0.17885392904281616,
0.3055635988712311,
0.03946037217974663,
-0.30416634678840637,
-0.3280593752861023,
0.07406086474657059,
0.3465183675289154,
0.3882783055305481,
0.018846357241272926,
0.18088723719120026,
-0.07200004160404205,
-0.040594689548015594,
-0.2922018766403198,
0.061184607446193695,
-0.038822297006845474,
-0.03499966487288475,
-0.2215375155210495,
-0.23120756447315216,
0.3110748529434204,
0.2208743393421173,
0.09484462440013885,
-0.033595010638237,
-0.022629138082265854,
0.014414702542126179,
0.37492334842681885,
0.04131370782852173,
0.002353333868086338,
-0.26691603660583496,
-0.11574415862560272,
-0.20786955952644348,
-0.19731858372688293,
0.4525611102581024,
0.3078548014163971,
0.0413309745490551,
0.0699680969119072,
-0.11900512874126434,
0.5813834071159363,
-0.11594024300575256,
-0.34437116980552673,
0.27244052290916443,
-0.16682229936122894,
0.2911587059497833,
0.42280036211013794,
0.48921340703964233,
-0.029439104720950127,
0.8494067788124084,
0.21102119982242584,
-0.02398708462715149,
0.3741271197795868,
-0.0340195894241333,
-0.2246546596288681,
-0.5847419500350952,
-0.17342574894428253,
0.12631358206272125,
0.2699766159057617,
0.2626485526561737,
-0.32285192608833313,
0.1719609498977661,
-0.14333370327949524,
-0.11617664247751236,
-0.17901405692100525,
-0.41773226857185364,
0.17158661782741547,
-0.3374357223510742,
0.3003841042518616,
0.09789513051509857,
-0.17457596957683563,
0.09242092072963715,
0.06792613118886948,
-0.025372155010700226,
0.12791407108306885,
-0.22288061678409576,
0.08520853519439697,
0.07666876167058945,
0.3389742374420166,
0.25137245655059814,
-0.10989239811897278,
-0.12888814508914948,
0.21592627465724945,
-0.2958231270313263,
0.1166776493191719,
0.45272350311279297,
0.04085063934326172,
0.1794823855161667,
0.22730323672294617,
-0.23773193359375,
-0.05390450358390808,
-0.21091727912425995,
0.005793257150799036,
-0.04931493103504181,
0.042399849742650986,
-0.03643658384680748,
-0.13786496222019196,
0.151302307844162,
0.10183240473270416,
0.033103037625551224,
0.253862589597702,
-0.24964256584644318,
0.3161808252334595,
0.02201871946454048,
0.2991945743560791,
0.20004355907440186,
0.19224706292152405,
0.20694103837013245,
0.2616454064846039,
-0.2504759132862091,
-0.19891668856143951,
0.3196479082107544,
-0.08384367823600769,
0.21572624146938324,
0.24543030560016632,
0.01922658085823059,
0.18328720331192017,
0.4234253764152527,
0.11198772490024567,
0.35329359769821167,
-0.2295433133840561,
-0.08991201221942902,
-0.4763190746307373,
-0.0003464384644757956,
-0.05558229610323906,
-0.26689252257347107,
-0.04721206799149513,
0.052600301802158356,
-0.0892350822687149,
-0.1452380120754242,
0.4688034951686859,
-0.08667805045843124,
0.04728717729449272,
0.22679965198040009,
-0.3549312949180603,
-0.010533834807574749,
0.26446419954299927,
0.4981245994567871,
0.15891121327877045,
-0.5530818700790405,
0.0672093853354454,
0.45562270283699036,
-0.02523161470890045,
-0.08705839514732361,
-0.09619076550006866,
0.41681158542633057,
0.088946133852005,
0.46918001770973206,
-0.21867570281028748,
0.21270447969436646,
0.25763705372810364,
0.18482153117656708,
-0.4217245280742645,
0.04591379314661026,
0.042334627360105515,
-0.3932205140590668,
-0.025699172168970108,
0.12319116294384003,
-0.6304081678390503,
-0.029116107150912285,
-0.29197990894317627,
-0.030027301982045174,
0.14835479855537415,
0.23527324199676514,
-0.07667627185583115,
0.3016292452812195,
-0.034900154918432236,
0.10339563339948654,
0.4050491452217102,
0.2613585591316223,
-0.1189398542046547,
0.28105804324150085,
-0.26207390427589417,
0.12226344645023346,
0.38424617052078247,
-0.2537786662578583,
-0.3603966534137726,
0.07440244406461716,
0.3058953285217285,
0.05285254120826721,
-0.16025830805301666,
-0.20854298770427704,
0.09740139544010162,
0.2296551913022995,
0.22200733423233032,
-0.22220325469970703,
0.06918544322252274,
-0.13277845084667206,
0.13282904028892517,
0.06884296983480453,
0.04150909185409546,
-0.018369892612099648,
-0.047943662852048874,
-0.3267984986305237,
0.03898515924811363
] |
https://github.com/huggingface/datasets/issues/2821 | Cannot load linnaeus dataset | Thanks for reporting ! #2852 fixed this error
We'll do a new release of `datasets` soon :) | ## Describe the bug
The [linnaeus](https://huggingface.co/datasets/linnaeus) dataset cannot be loaded. To reproduce:
```
from datasets import load_dataset
datasets = load_dataset("linnaeus")
```
This results in:
```
Downloading and preparing dataset linnaeus/linnaeus (download: 17.36 MiB, generated: 8.74 MiB, post-processed: Unknown size, total: 26.10 MiB) to /root/.cache/huggingface/datasets/linnaeus/linnaeus/1.0.0/2ff05dbc256108233262f596e09e322dbc3db067202de14286913607cd9cb704...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-4-7ef3a88f6276> in <module>()
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("linnaeus")
11 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
603 raise FileNotFoundError("Couldn't find file at {}".format(url))
604 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
--> 605 raise ConnectionError("Couldn't reach {}".format(url))
606
607 # Try a second time
ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/
``` | 17 | Cannot load linnaeus dataset
## Describe the bug
The [linnaeus](https://huggingface.co/datasets/linnaeus) dataset cannot be loaded. To reproduce:
```
from datasets import load_dataset
datasets = load_dataset("linnaeus")
```
This results in:
```
Downloading and preparing dataset linnaeus/linnaeus (download: 17.36 MiB, generated: 8.74 MiB, post-processed: Unknown size, total: 26.10 MiB) to /root/.cache/huggingface/datasets/linnaeus/linnaeus/1.0.0/2ff05dbc256108233262f596e09e322dbc3db067202de14286913607cd9cb704...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-4-7ef3a88f6276> in <module>()
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("linnaeus")
11 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
603 raise FileNotFoundError("Couldn't find file at {}".format(url))
604 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
--> 605 raise ConnectionError("Couldn't reach {}".format(url))
606
607 # Try a second time
ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/
```
Thanks for reporting ! #2852 fixed this error
We'll do a new release of `datasets` soon :) | [
-0.10985753685235977,
-0.1431656777858734,
-0.0036666947416961193,
0.5683760046958923,
0.22946202754974365,
-0.07168717682361603,
0.07643406093120575,
0.31270360946655273,
0.13735772669315338,
0.048776380717754364,
-0.3296410143375397,
0.03506371006369591,
-0.018028508871793747,
-0.18346993625164032,
0.16038604080677032,
-0.2352234423160553,
-0.10536171495914459,
-0.062227871268987656,
-0.41064926981925964,
0.10447037220001221,
-0.1308867335319519,
0.3101213872432709,
-0.03828037530183792,
-0.005236159544438124,
-0.05954807624220848,
-0.06359924376010895,
0.026993392035365105,
0.4038958251476288,
-0.08170289546251297,
-0.5142933130264282,
0.365811824798584,
-0.02575877495110035,
0.22217518091201782,
0.6335696578025818,
-0.00011295235162833706,
0.10023646801710129,
0.3394465148448944,
-0.003723587840795517,
-0.41791272163391113,
-0.36963748931884766,
-0.14472904801368713,
-0.17477582395076752,
0.14797423779964447,
-0.17632445693016052,
-0.17694991827011108,
0.19257351756095886,
-0.03658359497785568,
-0.44818708300590515,
0.2486860156059265,
0.21168816089630127,
0.2418953776359558,
0.26720330119132996,
0.32842016220092773,
-0.17880681157112122,
0.05946651101112366,
-0.025450188666582108,
-0.10439026355743408,
0.7655643820762634,
0.11735446006059647,
0.20637860894203186,
0.051081281155347824,
0.3760932981967926,
0.09087393432855606,
0.16046053171157837,
0.47498399019241333,
0.039484135806560516,
0.23045463860034943,
-0.26886916160583496,
0.11302949488162994,
0.19522306323051453,
0.4000905752182007,
-0.16079270839691162,
-0.36654049158096313,
-0.19348978996276855,
0.09515698254108429,
-0.3805066645145416,
0.3234522044658661,
0.1300039142370224,
-0.212799072265625,
0.1132354810833931,
-0.12349264323711395,
-0.17734545469284058,
-0.2792690694332123,
0.28812718391418457,
-0.04477928951382637,
-0.1690957099199295,
-0.15754057466983795,
0.1463272124528885,
0.18066631257534027,
-0.124824158847332,
-0.053927529603242874,
0.009406408295035362,
-0.0262683667242527,
0.2579782009124756,
-0.24608533084392548,
0.17736539244651794,
-0.031098321080207825,
0.18172869086265564,
0.25585946440696716,
0.0904841423034668,
-0.14048461616039276,
0.012094265781342983,
-0.09539519995450974,
0.18862897157669067,
0.29896366596221924,
0.049645762890577316,
-0.08717765659093857,
0.004627906251698732,
0.20702233910560608,
0.5039041042327881,
-0.22930829226970673,
-0.1274600476026535,
0.011924386024475098,
-0.27243199944496155,
0.17700570821762085,
-0.12143592536449432,
0.4966046214103699,
-0.3770102262496948,
-0.1082005575299263,
0.09173672646284103,
-0.04585900157690048,
0.04816245660185814,
0.1512313336133957,
0.4551626145839691,
-0.25800248980522156,
0.15445999801158905,
0.09544475376605988,
0.06145055592060089,
-0.12041453272104263,
-0.1457548588514328,
-0.22779619693756104,
0.18798735737800598,
-0.17743411660194397,
0.0885474756360054,
0.3645631670951843,
-0.5190116763114929,
0.16396476328372955,
-0.01497714314609766,
0.25223323702812195,
-0.11672711372375488,
-0.01868337206542492,
-0.2165718376636505,
-0.10778950899839401,
0.3113502264022827,
0.02287771739065647,
0.08620224893093109,
0.17670220136642456,
-0.15674394369125366,
-0.18328474462032318,
-0.06289604306221008,
-0.358212411403656,
-0.210640087723732,
-0.08305582404136658,
0.1629568338394165,
-0.2142593115568161,
0.06628473848104477,
-0.32447221875190735,
-0.04640835151076317,
-0.10903219878673553,
-0.19437147676944733,
-0.10861053317785263,
-0.13553842902183533,
-0.1367979198694229,
-0.20914192497730255,
0.3754199147224426,
0.6375412344932556,
-0.08081814646720886,
0.058474745601415634,
-0.12340223044157028,
-0.04315758869051933,
0.1322186291217804,
0.37809422612190247,
-0.11989733576774597,
-0.020125174894928932,
-0.24468263983726501,
-0.10780169814825058,
0.28057152032852173,
-0.30609673261642456,
-0.3442862033843994,
0.11498071998357773,
-0.03376837447285652,
0.3318839967250824,
-0.053256213665008545,
-0.03741325065493584,
-0.03187820687890053,
0.13232102990150452,
0.19315692782402039,
0.28328922390937805,
-0.05634908378124237,
-0.12931698560714722,
-0.21228240430355072,
-0.2594580054283142,
0.1632750928401947,
0.21740108728408813,
0.18809980154037476,
0.1501253843307495,
0.07709212601184845,
0.04682900384068489,
0.130879744887352,
-0.07782965898513794,
0.0669318437576294,
0.12278441339731216,
0.13519151508808136,
0.43106991052627563,
-0.07181866466999054,
-0.371620774269104,
-0.44363871216773987,
0.33638063073158264,
-0.03146127983927727,
0.19139277935028076,
-0.14635156095027924,
0.06577099114656448,
-0.41010361909866333,
0.03080090694129467,
-0.07872959226369858,
-0.1457376480102539,
0.10976322740316391,
0.09984633326530457,
0.035345952957868576,
0.2634498178958893,
-0.22427120804786682,
0.48215338587760925,
0.05305945500731468,
0.17753185331821442,
-0.45517727732658386,
0.2577252984046936,
-0.03470465913414955,
-0.09158813208341599,
0.031127898022532463,
0.15764853358268738,
0.1089981347322464,
-0.09027975797653198,
-0.10344185680150986,
0.3063959777355194,
0.027411894872784615,
-0.04058460891246796,
0.10882610082626343,
-0.10706161707639694,
0.09805455058813095,
-0.16915538907051086,
0.06707266718149185,
0.053418926894664764,
0.19219541549682617,
-0.006121405865997076,
-0.3353886008262634,
0.13132818043231964,
-0.1543353796005249,
0.2098008543252945,
0.010758789256215096,
0.03291933611035347,
0.33603736758232117,
-0.008118703961372375,
-0.04622634872794151,
-0.09634529799222946,
0.34445926547050476,
-0.10846365243196487,
0.4994329512119293,
-0.09242842346429825,
-0.3686581254005432,
-0.18246914446353912,
-0.11151234060525894,
0.02262432500720024,
0.08638698607683182,
0.2621725797653198,
-0.1716369390487671,
-0.040045157074928284,
0.006779901683330536,
0.10417762398719788,
0.33635011315345764,
0.08504693955183029,
0.09395413100719452,
0.09403938055038452,
0.07197247445583344,
-0.024529702961444855,
0.14913858473300934,
-0.04829811304807663,
0.22000950574874878,
0.07696595788002014,
0.1324646919965744,
0.06466604769229889,
-0.4159030318260193,
-0.3394744098186493,
-0.0652085468173027,
0.32324275374412537,
-0.3425343632698059,
0.16663122177124023,
-0.12447760999202728,
-0.30358538031578064,
-0.21502220630645752,
-0.25464674830436707,
-0.44623854756355286,
-0.23686335980892181,
-0.3029859960079193,
0.5309479832649231,
0.1654842495918274,
0.03523745760321617,
-0.3215269148349762,
0.05837106704711914,
-0.04045290872454643,
-0.17344827950000763,
-0.18263645470142365,
-0.024798469617962837,
-0.1803612858057022,
0.04095498099923134,
0.28663909435272217,
0.1651405394077301,
0.4407707452774048,
-0.08427850157022476,
-0.044223759323358536,
-0.23234125971794128,
-0.37304186820983887,
-0.029440157115459442,
0.00914937537163496,
0.4914526343345642,
0.1717601865530014,
0.42717039585113525,
-0.10756617784500122,
-0.24441710114479065,
0.4784313440322876,
-0.0908169075846672,
0.06854907423257828,
0.07682271301746368,
-0.2036719024181366,
0.07419496774673462,
0.0008809114224277437,
-0.5234010815620422,
-0.3201758563518524,
-0.2964969575405121,
0.35654062032699585,
0.0888761579990387,
0.024104271084070206,
0.4940640926361084,
-0.00869033019989729,
0.11409201472997665,
-0.0923539400100708,
0.16280534863471985,
-0.346109002828598,
-0.6181038618087769,
0.3059368133544922,
-0.27815455198287964,
-0.41024136543273926,
0.060008637607097626,
0.12538880109786987,
0.36334407329559326,
-0.032759133726358414,
-0.6117788553237915,
-0.004539234098047018,
-0.12237758934497833,
0.174308642745018,
-0.0899425521492958,
-0.13103167712688446,
0.020780840888619423,
-0.12673652172088623,
-0.0387924462556839,
0.012993015348911285,
-0.19788047671318054,
-0.17984117567539215,
-0.008872412145137787,
0.12351914495229721,
0.003964751027524471,
0.3006073534488678,
-0.005700088571757078,
0.505591869354248,
0.12515844404697418,
0.08534102886915207,
0.3692273795604706,
0.05112135037779808,
0.4881690442562103,
-0.30191707611083984,
-0.5070814490318298,
-0.1335800737142563,
-0.18933165073394775,
0.025669755414128304,
0.005452350247651339,
0.21436470746994019,
-0.13024155795574188,
-0.30362728238105774,
-0.24586930871009827,
-0.251688152551651,
-0.2852417528629303,
0.1365145593881607,
-0.09921678900718689,
0.13788656890392303,
0.029045989736914635,
-0.14679880440235138,
-0.19843825697898865,
-0.17982016503810883,
-0.18985268473625183,
0.5857315063476562,
0.28282636404037476,
0.2692273259162903,
-0.4927920997142792,
0.2591666579246521,
-0.5437828898429871,
0.13168253004550934,
-0.07352079451084137,
0.4005359709262848,
-0.24267001450061798,
0.18354932963848114,
0.1185220330953598,
0.020385311916470528,
0.385563462972641,
0.14784236252307892,
0.42978358268737793,
0.24522514641284943,
-0.34691691398620605,
-0.42844364047050476,
0.14791911840438843,
0.12726633250713348,
-0.0030359323136508465,
0.40961870551109314,
0.3735681474208832,
-0.2575894892215729,
-0.030873460695147514,
0.16074658930301666,
0.24865643680095673,
-0.16794052720069885,
-0.2994202673435211,
-0.2562253475189209,
-0.22958950698375702,
-0.30676937103271484,
-0.07363995164632797,
-0.011630675755441189,
0.39665815234184265,
0.37053725123405457,
0.05598673224449158,
-0.10367356240749359,
0.0487801656126976,
0.24018464982509613,
0.22228248417377472,
0.14292243123054504,
0.0422944501042366,
0.41256919503211975,
0.4882105588912964,
0.11846230179071426,
0.02443058043718338,
0.617495059967041,
-0.02762106992304325,
-0.67393958568573,
-0.07558771222829819,
0.23116783797740936,
-0.01586022600531578,
0.19196289777755737,
-0.19428503513336182,
-0.12509916722774506,
0.15889911353588104,
0.1396014392375946,
-0.08122100681066513,
0.2773297131061554,
0.05740666016936302,
0.1291479915380478,
-0.41898733377456665,
-0.4065658450126648,
0.46141552925109863,
0.07289853692054749,
-0.02487948164343834,
0.3173592984676361,
0.1852019876241684,
-0.19006426632404327,
0.060867566615343094,
-0.14442075788974762,
0.9203293919563293,
-0.037789348512887955,
0.12903320789337158,
0.3462243974208832,
-0.08191577345132828,
0.5078809261322021,
0.07773973792791367,
0.011689769104123116,
-0.25939279794692993,
-0.2144419401884079,
-0.01985732465982437,
-0.11251576989889145,
0.19433075189590454,
-0.1327902376651764,
-0.05076725780963898,
0.4270287752151489,
0.044166967272758484,
0.023322902619838715,
0.03254108503460884,
0.1910652369260788,
-0.005038058385252953,
-0.2730121314525604,
-0.5505609512329102,
0.18950827419757843,
-0.19171138107776642,
0.47138139605522156,
-0.14860892295837402,
-0.14395259320735931,
-0.09071715176105499,
-0.13189762830734253,
-0.09422433376312256,
0.10177326947450638,
-0.15826673805713654,
0.30130285024642944,
-0.02964920736849308,
-0.3180108368396759,
-0.01805618219077587,
0.1300041824579239,
-0.059777937829494476,
0.16400346159934998,
-0.3081129491329193,
0.2088378369808197,
-0.17248116433620453,
-0.20062346756458282,
0.10041049867868423,
0.17566771805286407,
0.13975459337234497,
-0.18886154890060425,
-0.15578356385231018,
0.00610774289816618,
-0.07463779300451279,
-0.34471091628074646,
0.06711889058351517,
-0.012319609522819519,
-0.0949988141655922,
-0.11769871413707733,
-0.2597038149833679,
-0.16520000994205475,
0.19191911816596985,
-0.07061415910720825,
0.1399460881948471,
0.22635968029499054,
0.039986491203308105,
-0.10921203345060349,
0.27890682220458984,
-0.2633684277534485,
-0.09345803409814835,
0.6049338579177856,
-0.04359614476561546,
-0.2974512279033661,
0.368412584066391,
0.2711164057254791,
-0.15913669764995575,
-0.07732608169317245,
0.029681306332349777,
-0.052925288677215576,
-0.5901023149490356,
0.11624208092689514,
0.022121671587228775,
0.32368093729019165,
-0.1370934098958969,
-0.10134594887495041,
0.25409239530563354,
-0.3785052001476288,
0.17297564446926117,
-0.6587608456611633,
-0.2781507074832916,
0.23843613266944885,
-0.2570831775665283,
0.1325254887342453,
0.13757723569869995,
0.07737236469984055,
-0.12788023054599762,
0.04615090787410736,
-0.2828449010848999,
0.21593070030212402,
-0.068031445145607,
-0.015344570390880108,
0.46751531958580017,
-0.050125665962696075,
0.15226899087429047,
-0.1469821184873581,
0.12674565613269806,
0.023775598034262657,
-0.18376313149929047,
-0.18751460313796997,
-0.19447080790996552,
0.11094126850366592,
-0.14490292966365814,
-0.2054656744003296,
-0.07152051478624344,
-0.20632268488407135,
-0.024848537519574165,
-0.14832229912281036,
0.09291703253984451,
0.40282300114631653,
-0.003353915410116315,
-0.09446478635072708,
0.07917632162570953,
0.13510122895240784,
-0.2862473726272583,
0.3571731150150299,
0.012407633475959301,
-0.09372676908969879,
0.059162307530641556,
-0.016507267951965332,
-0.16537028551101685,
-0.10956890881061554,
-0.31797870993614197,
-0.02779446914792061,
-0.028707075864076614,
0.002703376580029726,
0.5015749931335449,
-0.07481051236391068,
0.0646539255976677,
0.22903870046138763,
0.17946703732013702,
0.18002671003341675,
-0.08768400549888611,
0.12742792069911957,
0.05329162999987602,
0.16539835929870605,
-0.3052540719509125,
-0.020253494381904602,
0.16167207062244415,
0.009071087464690208,
-0.018988465890288353,
0.10192402452230453,
-0.012898016721010208,
0.041256751865148544,
-0.1517835259437561,
0.09294258058071136,
0.4723518192768097,
-0.042667124420404434,
0.13295869529247284,
0.18960832059383392,
-0.15694698691368103,
-0.12348318099975586,
0.2636793553829193,
0.1779015213251114,
0.08479544520378113,
0.6215699911117554,
-0.1151486337184906,
0.14755107462406158,
-0.16627465188503265,
0.02334744855761528,
-0.006759319454431534,
-0.25837719440460205,
-0.3491345942020416,
0.3788991868495941,
0.026569312438368797,
0.05209968984127045,
-0.09120967239141464,
0.28275924921035767,
-0.29503729939460754,
-0.23812639713287354,
-0.11051309108734131,
0.11575407534837723,
-0.10529009252786636,
0.029534708708524704,
0.0085168881341815,
-0.2364259511232376,
-0.1409326195716858,
0.016641590744256973,
-0.18321585655212402,
-0.20496739447116852,
0.36933597922325134,
0.20106355845928192,
-0.29499804973602295,
-0.46773263812065125,
-0.3516993522644043,
0.31624987721443176,
-0.02465144172310829,
-0.13873611390590668,
0.23554295301437378,
0.39722180366516113,
-0.1357555240392685,
0.18254581093788147,
0.34641462564468384,
0.5268884301185608,
0.14958195388317108,
0.19877363741397858,
0.1265127807855606,
-0.09132828563451767,
-0.07623528689146042,
-0.10711870342493057,
0.15645498037338257,
0.05652435123920441,
0.14006339013576508,
0.3333318531513214,
0.2052951157093048,
-0.1565948873758316,
0.21902845799922943,
-0.1009882465004921,
0.32230344414711,
-0.4391767382621765,
0.3071794807910919,
-0.29746511578559875,
0.03319529443979263,
-0.1077924445271492,
0.09445448964834213,
-0.2446489930152893,
0.0657375156879425,
0.2872651219367981,
0.08769679069519043,
-0.02618090994656086,
-0.029323624446988106,
0.06307712942361832,
0.08149580657482147,
0.5135883688926697,
0.22200855612754822,
0.0571160763502121,
-0.44884729385375977,
-0.23527540266513824,
-0.8884505033493042,
0.10764369368553162,
-0.28137949109077454,
-0.11053643375635147,
0.20116014778614044,
-0.01300714910030365,
-0.0319678857922554,
0.2776532769203186,
-0.05502905696630478,
0.04159565642476082,
-0.07664729654788971,
-0.014577384106814861,
-0.22349610924720764,
-0.24281427264213562,
-0.04756271839141846,
-0.020423278212547302,
-0.08232491463422775,
-0.30947941541671753,
0.18454135954380035,
-0.2136320024728775,
0.04609932005405426,
-0.03574727103114128,
0.02854965627193451,
0.01278307568281889,
0.27563586831092834,
0.3079814016819,
0.21520119905471802,
0.6308563351631165,
0.029305217787623405,
-0.28881609439849854,
-0.3502056896686554,
-0.5530301928520203,
0.10249461233615875,
0.4333723485469818,
0.202498197555542,
0.5229719281196594,
-0.10573303699493408,
-0.3106372356414795,
-0.23982875049114227,
0.6266830563545227,
-0.17351976037025452,
0.05344926938414574,
-0.17755676805973053,
0.04589802771806717,
0.010054564103484154,
0.32908567786216736,
-0.02327732741832733,
0.3484036922454834,
-0.17392832040786743,
0.1046605110168457,
-0.15604622662067413,
-0.38126614689826965,
0.649216890335083,
-0.41170695424079895,
-0.27528613805770874,
-0.2286064326763153,
0.14405518770217896,
0.2265021800994873,
-0.10335168987512589,
-0.49174872040748596,
0.1499263495206833,
0.34240981936454773,
0.1057305559515953,
-0.31561291217803955,
0.2155572772026062,
-0.2473873496055603,
-0.0007567729917354882,
-0.06076466292142868,
0.5921410918235779,
0.015125663951039314,
-0.35355085134506226,
0.20041091740131378,
-0.09029660373926163
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | ```
Using custom data configuration default
Downloading and preparing dataset reddit/default (download: 2.93 GiB, generated: 17.64 GiB, post-processed: Unknown size, total: 20.57 GiB) to /Volumes/My Passport for Mac/og-chat-data/reddit/default/1.0.0/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969...
Downloading: 13%
403M/3.14G [44:39<2:27:09, 310kB/s]
---------------------------------------------------------------------------
timeout Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
437 try:
--> 438 yield
439
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
518 cache_content = False
--> 519 data = self._fp.read(amt) if not fp_closed else b""
520 if (
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in read(self, amt)
458 b = bytearray(amt)
--> 459 n = self.readinto(b)
460 return memoryview(b)[:n].tobytes()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in readinto(self, b)
502 # (for example, reading in 1k chunks)
--> 503 n = self.fp.readinto(b)
504 if not n and b:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/socket.py in readinto(self, b)
703 try:
--> 704 return self._sock.recv_into(b)
705 except timeout:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in recv_into(self, buffer, nbytes, flags)
1240 self.__class__)
-> 1241 return self.read(nbytes, buffer)
1242 else:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in read(self, len, buffer)
1098 if buffer is not None:
-> 1099 return self._sslobj.read(len, buffer)
1100 else:
timeout: The read operation timed out
During handling of the above exception, another exception occurred:
ReadTimeoutError Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
757 try:
--> 758 for chunk in self.raw.stream(chunk_size, decode_content=True):
759 yield chunk
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in stream(self, amt, decode_content)
575 while not is_fp_closed(self._fp):
--> 576 data = self.read(amt=amt, decode_content=decode_content)
577
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
540 # Content-Length are caught.
--> 541 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
542
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/contextlib.py in __exit__(self, type, value, traceback)
134 try:
--> 135 self.gen.throw(type, value, traceback)
136 except StopIteration as exc:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
442 # there is yet no clean way to get at it from this context.
--> 443 raise ReadTimeoutError(self._pool, None, "Read timed out.")
444
ReadTimeoutError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
/var/folders/3f/md0t9sgj6rz8xy01fskttqdc0000gn/T/ipykernel_89016/1133441872.py in <module>
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
669 split_dict = SplitDict(dataset_name=self.name)
670 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 671 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
672
673 # Checksums verification
~/.cache/huggingface/modules/datasets_modules/datasets/reddit/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969/reddit.py in _split_generators(self, dl_manager)
73 def _split_generators(self, dl_manager):
74 """Returns SplitGenerators."""
---> 75 dl_path = dl_manager.download_and_extract(_URL)
76 return [
77 datasets.SplitGenerator(
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download_and_extract(self, url_or_urls)
287 extracted_path(s): `str`, extracted paths of given URL(s).
288 """
--> 289 return self.extract(self.download(url_or_urls))
290
291 def get_recorded_sizes_checksums(self):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download(self, url_or_urls)
195
196 start_time = datetime.now()
--> 197 downloaded_path_or_paths = map_nested(
198 download_func,
199 url_or_urls,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types)
194 # Singleton
195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 196 return function(data_struct)
197
198 disable_tqdm = bool(logger.getEffectiveLevel() > logging.INFO) or not utils.is_progress_bar_enabled()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in _download(self, url_or_filename, download_config)
218 # append the relative path to the base_path
219 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 220 return cached_path(url_or_filename, download_config=download_config)
221
222 def iter_archive(self, path):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
286 if is_remote_url(url_or_filename):
287 # URL, so get it from the cache (downloading if necessary)
--> 288 output_path = get_from_cache(
289 url_or_filename,
290 cache_dir=cache_dir,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
643 ftp_get(url, temp_file)
644 else:
--> 645 http_get(
646 url,
647 temp_file,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in http_get(url, temp_file, proxies, resume_size, headers, cookies, timeout, max_retries)
451 disable=bool(logging.get_verbosity() == logging.NOTSET),
452 )
--> 453 for chunk in response.iter_content(chunk_size=1024):
454 if chunk: # filter out keep-alive new chunks
455 progress.update(len(chunk))
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
763 raise ContentDecodingError(e)
764 except ReadTimeoutError as e:
--> 765 raise ConnectionError(e)
766 else:
767 # Standard file-like object.
ConnectionError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
``` | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 646 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
```
Using custom data configuration default
Downloading and preparing dataset reddit/default (download: 2.93 GiB, generated: 17.64 GiB, post-processed: Unknown size, total: 20.57 GiB) to /Volumes/My Passport for Mac/og-chat-data/reddit/default/1.0.0/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969...
Downloading: 13%
403M/3.14G [44:39<2:27:09, 310kB/s]
---------------------------------------------------------------------------
timeout Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
437 try:
--> 438 yield
439
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
518 cache_content = False
--> 519 data = self._fp.read(amt) if not fp_closed else b""
520 if (
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in read(self, amt)
458 b = bytearray(amt)
--> 459 n = self.readinto(b)
460 return memoryview(b)[:n].tobytes()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in readinto(self, b)
502 # (for example, reading in 1k chunks)
--> 503 n = self.fp.readinto(b)
504 if not n and b:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/socket.py in readinto(self, b)
703 try:
--> 704 return self._sock.recv_into(b)
705 except timeout:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in recv_into(self, buffer, nbytes, flags)
1240 self.__class__)
-> 1241 return self.read(nbytes, buffer)
1242 else:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in read(self, len, buffer)
1098 if buffer is not None:
-> 1099 return self._sslobj.read(len, buffer)
1100 else:
timeout: The read operation timed out
During handling of the above exception, another exception occurred:
ReadTimeoutError Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
757 try:
--> 758 for chunk in self.raw.stream(chunk_size, decode_content=True):
759 yield chunk
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in stream(self, amt, decode_content)
575 while not is_fp_closed(self._fp):
--> 576 data = self.read(amt=amt, decode_content=decode_content)
577
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
540 # Content-Length are caught.
--> 541 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
542
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/contextlib.py in __exit__(self, type, value, traceback)
134 try:
--> 135 self.gen.throw(type, value, traceback)
136 except StopIteration as exc:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
442 # there is yet no clean way to get at it from this context.
--> 443 raise ReadTimeoutError(self._pool, None, "Read timed out.")
444
ReadTimeoutError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
/var/folders/3f/md0t9sgj6rz8xy01fskttqdc0000gn/T/ipykernel_89016/1133441872.py in <module>
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
669 split_dict = SplitDict(dataset_name=self.name)
670 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 671 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
672
673 # Checksums verification
~/.cache/huggingface/modules/datasets_modules/datasets/reddit/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969/reddit.py in _split_generators(self, dl_manager)
73 def _split_generators(self, dl_manager):
74 """Returns SplitGenerators."""
---> 75 dl_path = dl_manager.download_and_extract(_URL)
76 return [
77 datasets.SplitGenerator(
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download_and_extract(self, url_or_urls)
287 extracted_path(s): `str`, extracted paths of given URL(s).
288 """
--> 289 return self.extract(self.download(url_or_urls))
290
291 def get_recorded_sizes_checksums(self):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download(self, url_or_urls)
195
196 start_time = datetime.now()
--> 197 downloaded_path_or_paths = map_nested(
198 download_func,
199 url_or_urls,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types)
194 # Singleton
195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 196 return function(data_struct)
197
198 disable_tqdm = bool(logger.getEffectiveLevel() > logging.INFO) or not utils.is_progress_bar_enabled()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in _download(self, url_or_filename, download_config)
218 # append the relative path to the base_path
219 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 220 return cached_path(url_or_filename, download_config=download_config)
221
222 def iter_archive(self, path):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
286 if is_remote_url(url_or_filename):
287 # URL, so get it from the cache (downloading if necessary)
--> 288 output_path = get_from_cache(
289 url_or_filename,
290 cache_dir=cache_dir,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
643 ftp_get(url, temp_file)
644 else:
--> 645 http_get(
646 url,
647 temp_file,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in http_get(url, temp_file, proxies, resume_size, headers, cookies, timeout, max_retries)
451 disable=bool(logging.get_verbosity() == logging.NOTSET),
452 )
--> 453 for chunk in response.iter_content(chunk_size=1024):
454 if chunk: # filter out keep-alive new chunks
455 progress.update(len(chunk))
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
763 raise ContentDecodingError(e)
764 except ReadTimeoutError as e:
--> 765 raise ConnectionError(e)
766 else:
767 # Standard file-like object.
ConnectionError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
``` | [
-0.36389535665512085,
-0.14213064312934875,
-0.07971882820129395,
0.12004686146974564,
0.1668419986963272,
0.18720592558383942,
0.03860462084412575,
0.24388019740581512,
-0.057157453149557114,
-0.133161723613739,
-0.06276491284370422,
0.1441401094198227,
0.3488287925720215,
-0.0019750886131078005,
-0.09353411942720413,
0.2313060313463211,
0.04925578087568283,
-0.18132807314395905,
-0.06577320396900177,
0.05411900579929352,
-0.06448706984519958,
0.10039230436086655,
-0.14855171740055084,
-0.153838112950325,
-0.19420042634010315,
-0.05920654162764549,
-0.10936302691698074,
-0.12021726369857788,
-0.21298734843730927,
-0.26418137550354004,
0.3176383078098297,
0.16787952184677124,
-0.08664580434560776,
0.5624828934669495,
-0.00010956422192975879,
-0.20614562928676605,
0.3377983570098877,
0.07884827256202698,
-0.4498390853404999,
-0.4648267328739166,
-0.26133421063423157,
-0.11857691407203674,
0.08887307345867157,
0.04937305301427841,
0.07927706092596054,
0.1067880168557167,
0.07051069289445877,
-0.4283181130886078,
0.31732967495918274,
0.43273189663887024,
0.2017597258090973,
0.17836104333400726,
0.23362228274345398,
-0.13822467625141144,
0.1232367753982544,
0.08026229590177536,
0.013452041894197464,
0.42245978116989136,
0.1959226280450821,
-0.1228383481502533,
0.2677881717681885,
0.026940103620290756,
-0.08591731637716293,
0.22060488164424896,
-0.13854290544986725,
-0.02032456174492836,
0.1799728125333786,
-0.40499141812324524,
-0.04558918625116348,
0.16446705162525177,
0.8760612607002258,
-0.04980916157364845,
-0.41233932971954346,
-0.26995453238487244,
0.10999925434589386,
-0.01071268692612648,
0.3056144118309021,
0.35540008544921875,
-0.43130362033843994,
0.2249756157398224,
-0.2838399410247803,
0.07003075629472733,
0.030366651713848114,
0.3651784062385559,
0.12236443907022476,
-0.015972837805747986,
0.021431563422083855,
0.2920616865158081,
0.09481435269117355,
-0.045570217072963715,
0.27094006538391113,
-0.3481394350528717,
0.026293005794286728,
-0.07309996336698532,
-0.4070397615432739,
-0.10917618125677109,
0.034530192613601685,
0.15738928318023682,
0.17905250191688538,
0.11413596570491791,
-0.03291185200214386,
-0.18881429731845856,
-0.009301752783358097,
0.1332785040140152,
0.362725168466568,
-0.05140310153365135,
0.022771066054701805,
0.17183326184749603,
0.20547771453857422,
-0.07473273575305939,
-0.06567977368831635,
-0.0005853751208633184,
0.08969015628099442,
-0.013407796621322632,
0.11781099438667297,
-0.12488331645727158,
0.3334636390209198,
-0.29277467727661133,
-0.2640203535556793,
-0.06836904585361481,
0.121078260242939,
-0.0408356636762619,
-0.19971878826618195,
0.17559927701950073,
-0.4186322093009949,
0.1737191379070282,
-0.023513294756412506,
0.12073594331741333,
-0.28600504994392395,
-0.38346827030181885,
-0.08887341618537903,
-0.054266609251499176,
-0.227024644613266,
-0.060781799256801605,
-0.025594091042876244,
-0.016729686409235,
0.09563600271940231,
0.17421954870224,
0.08052300661802292,
-0.3122352063655853,
-0.0038488176651299,
-0.229509174823761,
-0.15639837086200714,
0.1975986212491989,
-0.11751958727836609,
0.4563015401363373,
0.08853738009929657,
0.11180247366428375,
-0.09203283488750458,
-0.047164421528577805,
-0.1970355063676834,
-0.24524672329425812,
-0.16145139932632446,
0.2359231859445572,
-0.20938313007354736,
-0.25341784954071045,
-0.18735754489898682,
-0.10031288117170334,
0.2682969868183136,
0.05497831106185913,
-0.06317953020334244,
-0.05749212205410004,
0.04851800575852394,
-0.10668276995420456,
-0.085837721824646,
0.36868205666542053,
-0.4268353283405304,
0.32156193256378174,
-0.2427402138710022,
0.12141469866037369,
0.2209981083869934,
0.20915129780769348,
-0.2188083380460739,
0.007021019235253334,
-0.15986405313014984,
-0.17485183477401733,
0.2636781930923462,
-0.2803448736667633,
-0.6896676421165466,
0.0776347741484642,
-0.3067835569381714,
0.03601948916912079,
-0.16163596510887146,
0.282402902841568,
0.33217188715934753,
-0.12262601405382156,
0.08510284125804901,
0.4505003094673157,
-0.21759183704853058,
0.03249149024486542,
-0.4076153039932251,
-0.15201225876808167,
-0.07754019647836685,
0.14632266759872437,
-0.03870660066604614,
0.016049180179834366,
-0.13820584118366241,
-0.02910277433693409,
0.29905232787132263,
0.4490668773651123,
0.14069132506847382,
0.2543385922908783,
0.09554170072078705,
0.24244733154773712,
0.00958918035030365,
-0.1858818680047989,
-0.3774223327636719,
0.17459896206855774,
0.5166459679603577,
0.03982355445623398,
-0.2347048670053482,
-0.03469406068325043,
-0.454168438911438,
0.01665561832487583,
-0.0438089556992054,
0.010137212462723255,
0.028986632823944092,
0.16775044798851013,
0.28870058059692383,
0.19978030025959015,
0.019843844696879387,
0.6505974531173706,
-0.06818225234746933,
0.3121289908885956,
-0.0864718034863472,
0.20737461745738983,
-0.16821646690368652,
-0.13559676706790924,
0.15900123119354248,
-0.31828567385673523,
0.19970783591270447,
-0.17437073588371277,
-0.1728222519159317,
0.3266712725162506,
0.058987148106098175,
0.10119098424911499,
-0.025602910667657852,
-0.24376250803470612,
0.23220795392990112,
-0.14031879603862762,
-0.16422834992408752,
0.3527713119983673,
0.10086346417665482,
0.023694492876529694,
-0.2600858807563782,
-0.01275569386780262,
0.22085699439048767,
0.18524876236915588,
-0.23862405121326447,
0.19701959192752838,
0.19342999160289764,
-0.005059068091213703,
0.15450848639011383,
-0.06769180297851562,
0.27839410305023193,
-0.2629438638687134,
0.13453465700149536,
-0.2053738832473755,
0.0025801793672144413,
0.37898552417755127,
0.32935163378715515,
0.1056886687874794,
-0.21984989941120148,
0.18044935166835785,
0.12968507409095764,
-0.1198631003499031,
-0.0056321159936487675,
0.5065411329269409,
0.3067326843738556,
0.17041192948818207,
0.22661377489566803,
-0.0701209232211113,
-0.2436688393354416,
-0.14333263039588928,
0.18905337154865265,
0.07575026154518127,
0.05555620789527893,
-0.09695835411548615,
0.13491731882095337,
-0.024319084361195564,
-0.029059508815407753,
-0.391277551651001,
0.1723952740430832,
0.30682215094566345,
-0.037828970700502396,
0.01209277007728815,
-0.24965867400169373,
-0.1520567089319229,
0.15689638257026672,
-0.11147771030664444,
-0.24324411153793335,
-0.5550535917282104,
-0.11703707277774811,
0.26486846804618835,
-0.04857455566525459,
0.03614787384867668,
-0.16835659742355347,
-0.14561201632022858,
0.37702667713165283,
-0.22263765335083008,
-0.004114136099815369,
-0.1587962508201599,
-0.06200519576668739,
0.08505889773368835,
0.21731515228748322,
-0.11893190443515778,
0.3502158522605896,
-0.24010467529296875,
-0.2311212718486786,
-0.3148247003555298,
-0.031354933977127075,
0.015477794222533703,
-0.14714764058589935,
0.37726330757141113,
-0.2286999225616455,
0.41409653425216675,
0.08519470691680908,
0.11938539147377014,
0.15871702134609222,
-0.16459034383296967,
-0.07069826126098633,
-0.10501015186309814,
0.09624650329351425,
0.10300781577825546,
-0.057503972202539444,
-0.2533048391342163,
-0.2038373202085495,
-0.3415125012397766,
0.1356622725725174,
-0.13749495148658752,
-0.05399071052670479,
0.15291167795658112,
0.22799402475357056,
0.03017844446003437,
-0.11516360193490982,
0.07647085934877396,
-0.19276642799377441,
-0.390016108751297,
0.4926214814186096,
-0.08784694224596024,
-0.19768549501895905,
0.013378237374126911,
0.21245208382606506,
0.007086049299687147,
0.31365081667900085,
-0.6629766225814819,
0.05683153495192528,
-0.31859490275382996,
0.27165642380714417,
-0.05466572567820549,
-0.28249049186706543,
0.2686040997505188,
-0.49175429344177246,
-0.10534781962633133,
0.039871878921985626,
0.027759304270148277,
-0.029761437326669693,
0.10549577325582504,
0.42579254508018494,
-0.1738019436597824,
0.2901478409767151,
-0.0058969901874661446,
0.1678648442029953,
0.23275399208068848,
-0.023030828684568405,
0.08526967465877533,
0.12118040770292282,
0.26426783204078674,
-0.006339078303426504,
-0.30341607332229614,
-0.01760902628302574,
-0.03413369134068489,
-0.13685691356658936,
-0.010716915130615234,
-0.008525493554770947,
-0.2189047932624817,
-0.18994863331317902,
0.004798090551048517,
-0.26914387941360474,
-0.28522875905036926,
-0.11812324076890945,
-0.20872685313224792,
0.03199881315231323,
0.34157586097717285,
0.21627716720104218,
0.0480179600417614,
-0.17705164849758148,
-0.1402963399887085,
-0.003489500842988491,
-0.12227540463209152,
-0.22035610675811768,
-0.5491002798080444,
0.1339450627565384,
-0.3536432087421417,
0.22308854758739471,
-0.06012847647070885,
0.321307510137558,
-0.08073961734771729,
0.11256583780050278,
0.18936613202095032,
0.037919506430625916,
0.6117432713508606,
-0.18092627823352814,
0.03623685613274574,
0.01798062212765217,
0.29151448607444763,
-0.47829291224479675,
-0.07695077359676361,
0.1523825228214264,
0.2845619320869446,
0.5226518511772156,
0.03703562915325165,
-0.3182995021343231,
0.02229921892285347,
0.07867756485939026,
0.28489363193511963,
0.12791715562343597,
-0.40666165947914124,
0.08613576740026474,
-0.18453635275363922,
-0.17153537273406982,
0.15568649768829346,
0.09902536869049072,
0.13993126153945923,
-0.006308580283075571,
-0.2252758890390396,
0.15774892270565033,
0.18791382014751434,
-0.011468429118394852,
-0.10066425800323486,
0.19554808735847473,
-0.2800942063331604,
0.5696737170219421,
0.058219652622938156,
-0.21681587398052216,
0.3292989432811737,
0.6071472764015198,
0.20370158553123474,
-0.4783620834350586,
-0.007777462247759104,
-0.03527608886361122,
-0.11910329759120941,
0.2941104471683502,
0.06880149990320206,
-0.07377180457115173,
-0.2819928526878357,
0.35262826085090637,
0.08208400011062622,
0.1576070636510849,
0.25798413157463074,
0.041412245482206345,
-0.4130154252052307,
-0.49101969599723816,
0.19874276220798492,
0.040704794228076935,
0.0077407388016581535,
0.7631576657295227,
-0.08212602138519287,
0.1172935962677002,
0.21698106825351715,
0.0036684575024992228,
1.0106488466262817,
-0.1849302351474762,
0.05558827519416809,
0.026952367275953293,
-0.19689352810382843,
0.44702014327049255,
-0.2444504201412201,
0.05335356295108795,
-0.07444071769714355,
0.0985228642821312,
0.0790509283542633,
-0.09009072184562683,
-0.10415367782115936,
0.2495371699333191,
-0.26773765683174133,
0.09341312199831009,
-0.1866246461868286,
0.11987940967082977,
-0.10687369853258133,
0.16023212671279907,
-0.3221091032028198,
-0.04931352287530899,
-0.0738777443766594,
0.25286445021629333,
-0.019003648310899734,
0.24233530461788177,
0.050332970917224884,
0.10214003175497055,
-0.21651718020439148,
-0.051164835691452026,
-0.651524007320404,
0.060791775584220886,
-0.10599347949028015,
-0.024938924238085747,
-0.3161870837211609,
-0.26942676305770874,
-0.03973596170544624,
0.06479793041944504,
0.18098415434360504,
0.2945517897605896,
-0.10852944850921631,
0.27340447902679443,
-0.16173626482486725,
-0.08285412192344666,
0.007087670732289553,
-0.2562037706375122,
0.1700797826051712,
0.025748249143362045,
-0.40437063574790955,
0.17288903892040253,
-0.012019054032862186,
-0.19253934919834137,
0.2453387975692749,
0.24512527883052826,
0.15377280116081238,
-0.1405610293149948,
0.07053946703672409,
0.004492246080189943,
0.18393203616142273,
-0.3315316140651703,
0.16463986039161682,
0.2733987271785736,
0.11608003824949265,
0.2934764325618744,
-0.13067835569381714,
-0.3417872488498688,
-0.31240299344062805,
0.42091503739356995,
0.014722458086907864,
-0.01827273704111576,
0.2777172029018402,
0.19465123116970062,
-0.3831719160079956,
-0.3084496855735779,
0.04839497059583664,
-0.5737426280975342,
-0.3759395480155945,
0.2708761692047119,
-0.4809350073337555,
0.36881861090660095,
-0.05256279930472374,
-0.19457437098026276,
0.16145409643650055,
0.041051823645830154,
0.17652998864650726,
-0.5769951939582825,
-0.07238227874040604,
-0.13422538340091705,
-0.312485933303833,
0.0035801075864583254,
-0.12181785702705383,
-0.01743622124195099,
0.22096368670463562,
-0.028306040912866592,
-0.30590057373046875,
0.10724128037691116,
-0.2990958094596863,
0.16669867932796478,
0.3630225956439972,
-0.117833711206913,
0.36008602380752563,
-0.1476006656885147,
0.07194894552230835,
0.2135467231273651,
-0.1259143203496933,
-0.18675662577152252,
0.008876708336174488,
0.12042060494422913,
-0.09831900894641876,
-0.19878359138965607,
0.10216701030731201,
-0.465349018573761,
-0.11391575634479523,
0.08365579694509506,
-0.13278453052043915,
0.11490172892808914,
0.07513304054737091,
-0.21579402685165405,
0.15644820034503937,
0.0608537457883358,
0.03195487707853317,
0.17440496385097504,
-0.08145277947187424,
0.43459758162498474,
0.23354296386241913,
0.3212582767009735,
0.1280277520418167,
0.04767908155918121,
-0.5013423562049866,
-0.002189155900850892,
-0.1555357277393341,
0.008616623468697071,
0.5000967383384705,
-0.28495949506759644,
0.05745670199394226,
0.3465842306613922,
0.35823848843574524,
0.5142101645469666,
0.02177528105676174,
-0.166011244058609,
0.3493448793888092,
0.2776167392730713,
-0.007256848271936178,
-0.09315171837806702,
0.316165030002594,
0.19545771181583405,
0.012730028480291367,
0.16594450175762177,
-0.02866150625050068,
-0.15327464044094086,
0.17523272335529327,
0.21328477561473846,
0.7456156015396118,
0.05943499505519867,
0.21208874881267548,
0.23594801127910614,
0.13257864117622375,
-0.02565022185444832,
0.4962303936481476,
0.2893054485321045,
0.06484588980674744,
0.1836967021226883,
-0.18960699439048767,
-0.06991750746965408,
-0.06969016045331955,
0.11877648532390594,
-0.09256026893854141,
-0.25629493594169617,
0.08004692196846008,
0.1729653775691986,
-0.2709692418575287,
-0.05363978445529938,
0.16827738285064697,
0.1517084389925003,
-0.2412227988243103,
-0.052695490419864655,
-0.16841144859790802,
0.2435314655303955,
0.07848665118217468,
0.21635977923870087,
0.15593864023685455,
-0.116647869348526,
-0.12535972893238068,
0.059499096125364304,
0.006154535338282585,
-0.2609735131263733,
0.4184812605381012,
0.12325097620487213,
0.09631481766700745,
-0.5866312384605408,
-0.0014919231180101633,
-0.08682335168123245,
0.18817421793937683,
-0.4743903875350952,
0.04745253920555115,
0.018092546612024307,
-0.21573162078857422,
-0.06122073158621788,
0.25764134526252747,
0.5287144184112549,
0.15787647664546967,
-0.07362089306116104,
0.18873357772827148,
-0.006600352004170418,
-0.08333313465118408,
-0.06307106465101242,
0.4645079970359802,
0.08902660012245178,
-0.07611653208732605,
0.4138443171977997,
0.1446332037448883,
-0.22848789393901825,
0.14534558355808258,
0.10897412151098251,
0.2862817347049713,
-0.272735059261322,
-0.008477666415274143,
-0.0594218485057354,
-0.12863066792488098,
-0.365526407957077,
-0.14536529779434204,
-0.13095659017562866,
-0.01487781573086977,
0.44299545884132385,
-0.36603230237960815,
-0.03841869905591011,
-0.2658146917819977,
0.11079025268554688,
-0.16122961044311523,
0.3122110068798065,
0.4844059348106384,
0.22829793393611908,
-0.1740744709968567,
-0.36726152896881104,
-0.3894627094268799,
0.07421068102121353,
-0.6396653652191162,
-0.1502288579940796,
-0.14387518167495728,
0.5153071880340576,
0.12659145891666412,
0.34815514087677,
0.35727712512016296,
0.08976758271455765,
-0.401144415140152,
0.4775122404098511,
-0.2764577865600586,
-0.37659361958503723,
-0.050980716943740845,
0.007224425673484802,
0.08506086468696594,
-0.30326175689697266,
0.1778673380613327,
-0.22377662360668182,
0.023635247722268105,
-0.13773198425769806,
-0.2066952884197235,
0.22312358021736145,
-0.13742032647132874,
0.4727039337158203,
0.0809810534119606,
0.23509950935840607,
0.2856600880622864,
-0.5054976344108582,
-0.4817372262477875,
-0.2052447646856308,
0.005270462017506361,
0.07313843071460724,
0.06347902864217758,
0.31764018535614014,
-0.3422474265098572,
0.014921541325747967,
-0.12036776542663574,
0.19726741313934326,
-0.11433932185173035,
-0.2799226641654968,
0.22402773797512054,
-0.23873065412044525,
-0.02951366826891899,
0.32904133200645447,
-0.04373008757829666,
0.15482774376869202,
-0.052317313849925995,
0.19669821858406067,
-0.29199397563934326,
-0.3440684974193573,
0.2796039283275604,
0.033482667058706284,
-0.41128164529800415,
0.038685303181409836,
0.16732987761497498,
0.10590045154094696,
-0.04837691783905029,
-0.21234165132045746,
0.09966601431369781,
0.41789597272872925,
-0.06320992857217789,
-0.2242976725101471,
0.20848098397254944,
0.054551105946302414,
0.15835845470428467,
-0.0366303026676178,
0.4831286370754242,
0.02685963734984398,
-0.24174536764621735,
0.3183768093585968,
-0.14631228148937225
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | It also doesn't seem to be "smart caching" and I received an error about a file not being found... | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 19 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
It also doesn't seem to be "smart caching" and I received an error about a file not being found... | [
-0.3514558970928192,
-0.17711514234542847,
-0.07967130839824677,
0.1682872176170349,
0.14759504795074463,
0.2232837975025177,
0.022603565827012062,
0.22113995254039764,
0.012354038655757904,
-0.18973803520202637,
-0.0006051071686670184,
0.07988160848617554,
0.2927662432193756,
-0.023499134927988052,
0.004596670623868704,
0.2605561912059784,
0.1746072918176651,
-0.18370552361011505,
0.02955995872616768,
0.021248934790492058,
0.003918653354048729,
0.10427101701498032,
-0.20459508895874023,
-0.18912209570407867,
-0.2868826389312744,
-0.06323477625846863,
-0.10262379795312881,
-0.06519495695829391,
-0.16135013103485107,
-0.2562069594860077,
0.267803430557251,
0.17475399374961853,
-0.11257001757621765,
0.5722391605377197,
-0.00011087441089330241,
-0.20025943219661713,
0.3267359733581543,
0.06067788973450661,
-0.3902631103992462,
-0.48790547251701355,
-0.25147154927253723,
-0.1367274969816208,
0.0648575946688652,
0.06131837144494057,
0.11008166521787643,
0.06500169634819031,
0.07657837867736816,
-0.39154794812202454,
0.2778306305408478,
0.41786763072013855,
0.19374102354049683,
0.3087407350540161,
0.19973409175872803,
-0.10753807425498962,
0.21466127038002014,
-0.005983501672744751,
0.0433712862432003,
0.38523364067077637,
0.18500381708145142,
-0.2150464653968811,
0.22566825151443481,
0.03871189430356026,
-0.08732485771179199,
0.212477445602417,
-0.027064431458711624,
0.0023178206756711006,
0.062429673969745636,
-0.4295829236507416,
-0.026627425104379654,
0.16273503005504608,
0.9098489880561829,
0.015501251444220543,
-0.4210057854652405,
-0.27651986479759216,
0.06437351554632187,
0.019160578027367592,
0.410770446062088,
0.39632222056388855,
-0.3528384268283844,
0.21955350041389465,
-0.28654006123542786,
0.0169613566249609,
0.058576397597789764,
0.34550729393959045,
0.13003534078598022,
-0.03658577427268028,
0.051485512405633926,
0.21210284531116486,
0.0776938647031784,
-0.012777739204466343,
0.31822553277015686,
-0.36068952083587646,
0.06388500332832336,
-0.04541225731372833,
-0.4223772883415222,
-0.05961063504219055,
0.04102445766329765,
0.2965487837791443,
0.21800774335861206,
0.037602607160806656,
0.009041638113558292,
-0.23317965865135193,
-0.15635369718074799,
0.1810908317565918,
0.41439998149871826,
0.032804474234580994,
-0.08634424209594727,
0.15662436187267303,
0.2490011304616928,
-0.15633589029312134,
-0.06372600048780441,
0.028115294873714447,
0.05355627462267876,
-0.00463715149089694,
0.2060951292514801,
-0.16088126599788666,
0.2642780542373657,
-0.2941420376300812,
-0.2341359406709671,
-0.03170590102672577,
0.13191108405590057,
-0.10885945707559586,
-0.21196302771568298,
0.2084038257598877,
-0.5190796256065369,
0.24732056260108948,
-0.13396337628364563,
0.11474822461605072,
-0.3465742766857147,
-0.37692734599113464,
-0.09950500726699829,
0.04791855439543724,
-0.2433881312608719,
-0.02848653867840767,
-0.04624825343489647,
-0.000003635401981227915,
0.0765833854675293,
0.20440590381622314,
0.017684733495116234,
-0.36381295323371887,
-0.009905093349516392,
-0.23871740698814392,
-0.11294329166412354,
0.19917824864387512,
-0.15109549462795258,
0.42252984642982483,
0.037646375596523285,
0.10379362851381302,
-0.08059646189212799,
-0.016250373795628548,
-0.3319399356842041,
-0.23657330870628357,
-0.12035287171602249,
0.21285410225391388,
-0.3113926351070404,
-0.33751600980758667,
-0.17007936537265778,
-0.03492265194654465,
0.24027715623378754,
-0.0020039575174450874,
-0.09579669684171677,
-0.03596104681491852,
0.091446653008461,
-0.10809534043073654,
-0.08032993972301483,
0.41751983761787415,
-0.46714964509010315,
0.2881300449371338,
-0.185970738530159,
0.13635645806789398,
0.17217206954956055,
0.257050096988678,
-0.14677587151527405,
0.045453209429979324,
-0.2080724537372589,
-0.17753832042217255,
0.27390357851982117,
-0.18608108162879944,
-0.7467341423034668,
0.05780266970396042,
-0.2843506336212158,
0.04241957888007164,
-0.11786450445652008,
0.36948496103286743,
0.24071796238422394,
-0.142674058675766,
0.03910381719470024,
0.4280472695827484,
-0.24914653599262238,
0.004937321413308382,
-0.3930661678314209,
-0.20066587626934052,
0.02330613322556019,
0.1867520958185196,
0.017327431589365005,
0.07467839866876602,
-0.11237111687660217,
-0.046385906636714935,
0.2413773089647293,
0.420742928981781,
0.10312333703041077,
0.2581167221069336,
0.027649639174342155,
0.3117121458053589,
0.03416942059993744,
-0.22088269889354706,
-0.46349287033081055,
0.19297131896018982,
0.4974280297756195,
-0.040229033678770065,
-0.22566284239292145,
-0.0038948655128479004,
-0.3863793611526489,
-0.0058578066527843475,
-0.06645140796899796,
0.020145567134022713,
0.006706072483211756,
0.14836056530475616,
0.2730265259742737,
0.26207831501960754,
-0.04283256456255913,
0.6063825488090515,
0.06349712610244751,
0.25568827986717224,
-0.10817014425992966,
0.2015020102262497,
-0.1358216404914856,
-0.15735360980033875,
0.16424623131752014,
-0.3319028913974762,
0.20646485686302185,
-0.14268727600574493,
-0.17124015092849731,
0.3065045177936554,
0.042715542018413544,
0.16181805729866028,
0.011498904787003994,
-0.10001350939273834,
0.28669342398643494,
-0.14389631152153015,
-0.15829648077487946,
0.3258194327354431,
0.11365509778261185,
0.0031757038086652756,
-0.29520416259765625,
0.017541473731398582,
0.16085468232631683,
0.14630840718746185,
-0.24220584332942963,
0.12829343974590302,
0.11889882385730743,
0.02187998779118061,
0.234651118516922,
-0.01792833022773266,
0.3345371186733246,
-0.281360924243927,
0.1407998651266098,
-0.18998965620994568,
-0.01986650377511978,
0.3656053841114044,
0.34218189120292664,
0.11513621360063553,
-0.15749363601207733,
0.17379792034626007,
0.12677980959415436,
-0.17512094974517822,
-0.0009871353395283222,
0.4331420660018921,
0.27644553780555725,
0.1672484278678894,
0.23332013189792633,
-0.08592702448368073,
-0.1909571886062622,
-0.1633753776550293,
0.10531832277774811,
0.03486496955156326,
-0.036341406404972076,
-0.06392461806535721,
0.13481158018112183,
-0.004275747109204531,
-0.07548269629478455,
-0.3622910976409912,
0.1658117175102234,
0.25679904222488403,
-0.031226366758346558,
0.047379352152347565,
-0.23502878844738007,
-0.08951552212238312,
0.17976436018943787,
-0.06266976147890091,
-0.3132675886154175,
-0.5346179008483887,
-0.05703512579202652,
0.25723668932914734,
-0.023965494707226753,
0.0314367301762104,
-0.21076585352420807,
-0.06623432040214539,
0.4184938371181488,
-0.22466035187244415,
-0.0019355338299646974,
-0.19666041433811188,
-0.003124467097222805,
0.06662558764219284,
0.22889794409275055,
-0.1572306752204895,
0.29784414172172546,
-0.2575802803039551,
-0.23200684785842896,
-0.4382399022579193,
0.01000986248254776,
0.0240637119859457,
-0.16591370105743408,
0.32627904415130615,
-0.2745303809642792,
0.40148690342903137,
0.04676138237118721,
0.18470008671283722,
0.12931716442108154,
-0.21595191955566406,
-0.056852079927921295,
-0.0901852399110794,
0.10981997102499008,
0.09168723970651627,
0.01301482878625393,
-0.2832641303539276,
-0.26118627190589905,
-0.3255770206451416,
0.13030730187892914,
-0.12856970727443695,
-0.059583257883787155,
0.09944096952676773,
0.21318790316581726,
-0.028617003932595253,
-0.14001818001270294,
0.1327972710132599,
-0.2126912772655487,
-0.46616312861442566,
0.5746905207633972,
-0.10253940522670746,
-0.2443286031484604,
0.07285796105861664,
0.22742101550102234,
-0.08491754531860352,
0.3090693950653076,
-0.7301837205886841,
0.06512778252363205,
-0.33166223764419556,
0.2532573938369751,
-0.06613177806138992,
-0.18614299595355988,
0.22061292827129364,
-0.49087679386138916,
-0.09713850915431976,
0.0012671854346990585,
0.0366496779024601,
-0.05883639305830002,
0.08652947843074799,
0.43065541982650757,
-0.08729655295610428,
0.24497342109680176,
-0.011774788610637188,
0.2368471324443817,
0.19697166979312897,
0.039353542029857635,
0.1359303891658783,
0.13158798217773438,
0.2887609601020813,
0.03816438466310501,
-0.19750277698040009,
0.005636219400912523,
-0.07811030745506287,
-0.1713753044605255,
0.06413383036851883,
0.02072077989578247,
-0.24241511523723602,
-0.19661778211593628,
-0.003413537750020623,
-0.2802681624889374,
-0.2028692364692688,
-0.11540552228689194,
-0.23983266949653625,
-0.01624496653676033,
0.3200687766075134,
0.21803389489650726,
0.018931113183498383,
-0.26989659667015076,
-0.036562029272317886,
0.015188140794634819,
-0.04704977944493294,
-0.14823678135871887,
-0.5069868564605713,
0.1340523362159729,
-0.31204813718795776,
0.20342420041561127,
-0.0954853743314743,
0.354894757270813,
-0.10771564394235611,
0.04296548664569855,
0.15530554950237274,
0.007652833126485348,
0.5914550423622131,
-0.10411731153726578,
0.09834393858909607,
-0.07158752530813217,
0.28991225361824036,
-0.3268389105796814,
-0.10911263525485992,
0.18694961071014404,
0.2797992527484894,
0.3968084454536438,
-0.08416016399860382,
-0.26653358340263367,
0.11395586282014847,
0.0210891030728817,
0.31528210639953613,
0.11120368540287018,
-0.4647834002971649,
0.03564297407865524,
-0.07124419510364532,
-0.10731668770313263,
0.12799213826656342,
0.08268465101718903,
0.019734323024749756,
-0.018253756687045097,
-0.1706739217042923,
0.1882755309343338,
0.16990280151367188,
0.050094056874513626,
-0.11844707280397415,
0.24675989151000977,
-0.3339703679084778,
0.4795374870300293,
0.14935439825057983,
-0.2253589928150177,
0.2193412333726883,
0.7089196443557739,
0.18527327477931976,
-0.45538416504859924,
0.033659741282463074,
0.02082359977066517,
-0.09455876052379608,
0.27388015389442444,
0.047742269933223724,
-0.08045429736375809,
-0.10908728837966919,
0.3035274147987366,
-0.007923182100057602,
0.14791257679462433,
0.24307583272457123,
0.05185658112168312,
-0.45228806138038635,
-0.5552823543548584,
0.26070255041122437,
0.11195077002048492,
0.0036001752596348524,
0.7280557155609131,
-0.10572123527526855,
0.1578546017408371,
0.23735962808132172,
-0.09947880357503891,
0.992968738079071,
-0.16210073232650757,
0.14933566749095917,
-0.033384889364242554,
-0.04785338416695595,
0.48637324571609497,
-0.35973602533340454,
0.07736605405807495,
-0.053777582943439484,
-0.003916686400771141,
0.028477348387241364,
-0.10739704221487045,
-0.23440897464752197,
0.265161395072937,
-0.23735563457012177,
0.22928936779499054,
-0.20267729461193085,
0.20660462975502014,
-0.12984277307987213,
0.15436729788780212,
-0.32037901878356934,
-0.0110403411090374,
-0.08897386491298676,
0.2219662219285965,
0.026091739535331726,
0.2512621581554413,
0.017446482554078102,
0.11189638078212738,
-0.20524254441261292,
0.005671885330229998,
-0.6313536763191223,
0.07184343039989471,
-0.1243230327963829,
-0.010221216827630997,
-0.31965261697769165,
-0.320834755897522,
-0.03353230655193329,
0.12963075935840607,
0.1616760939359665,
0.22598546743392944,
-0.12882225215435028,
0.3198726773262024,
-0.09636464715003967,
-0.053740810602903366,
-0.008044897578656673,
-0.21880453824996948,
0.1929916888475418,
0.021850479766726494,
-0.30078575015068054,
0.17267686128616333,
-0.06929778307676315,
-0.1604340523481369,
0.10415103286504745,
0.28081193566322327,
0.17687545716762543,
-0.0942792296409607,
0.051310691982507706,
-0.04056164249777794,
0.1964181363582611,
-0.2893083691596985,
0.16394802927970886,
0.4116242527961731,
0.19061699509620667,
0.24541257321834564,
-0.13408955931663513,
-0.27001315355300903,
-0.4032469391822815,
0.42758843302726746,
0.0022109372075647116,
-0.11017156392335892,
0.21258936822414398,
0.2454710751771927,
-0.45117315649986267,
-0.2619057595729828,
0.04259955510497093,
-0.5402830839157104,
-0.3960687518119812,
0.24992786347866058,
-0.5254067778587341,
0.33604419231414795,
-0.0837511420249939,
-0.16350588202476501,
0.17544405162334442,
0.04153105989098549,
0.18816734850406647,
-0.5935428738594055,
-0.08102422952651978,
-0.10038838535547256,
-0.28376999497413635,
0.012818831019103527,
-0.12153113633394241,
-0.17704270780086517,
0.2575617730617523,
-0.03401055559515953,
-0.29538804292678833,
0.03788561746478081,
-0.264579713344574,
0.09872841089963913,
0.2678188383579254,
-0.07157105207443237,
0.3697846233844757,
-0.10258227586746216,
0.060798462480306625,
0.1411418318748474,
-0.1148398295044899,
-0.14953134953975677,
0.006299471482634544,
0.13791455328464508,
-0.06339091807603836,
-0.1479611098766327,
0.058889590203762054,
-0.44543448090553284,
-0.06650211662054062,
0.09151756763458252,
-0.015641197562217712,
0.137248694896698,
0.061457425355911255,
-0.2270423173904419,
0.17663715779781342,
-0.020535316318273544,
-0.030989397317171097,
0.20333050191402435,
-0.06558480113744736,
0.43611612915992737,
0.1910601556301117,
0.21707230806350708,
0.15376631915569305,
0.049885574728250504,
-0.4696025252342224,
-0.02896871231496334,
-0.10804162919521332,
-0.0012207187246531248,
0.506938099861145,
-0.3495694696903229,
0.0856209248304367,
0.3764316439628601,
0.3894275426864624,
0.5139316916465759,
0.011211464181542397,
-0.14906258881092072,
0.4427868127822876,
0.27431929111480713,
-0.015440747141838074,
-0.1695472002029419,
0.3015778064727783,
0.19128833711147308,
0.024582812562584877,
0.11083635687828064,
-0.02006642334163189,
-0.14653463661670685,
0.11816789209842682,
0.2566962242126465,
0.7323006987571716,
-0.0011008642613887787,
0.19760292768478394,
0.09024851769208908,
0.17548559606075287,
0.004516272339969873,
0.4779078960418701,
0.3105091154575348,
-0.035073500126600266,
0.20822541415691376,
-0.07628224045038223,
-0.11763811856508255,
0.036977339535951614,
0.132319837808609,
-0.10637814551591873,
-0.26361170411109924,
0.03591849282383919,
0.1957787722349167,
-0.27817490696907043,
-0.014217770658433437,
0.1020691841840744,
0.1815604567527771,
-0.24021077156066895,
-0.06883394718170166,
-0.19207893311977386,
0.20477084815502167,
0.07950086891651154,
0.25617676973342896,
0.35523366928100586,
-0.1377822607755661,
-0.0822460800409317,
0.08176004141569138,
0.041342828422784805,
-0.23120322823524475,
0.392638236284256,
0.1953662484884262,
0.11659073084592819,
-0.5178908109664917,
0.005887455306947231,
-0.09000013023614883,
0.2304942011833191,
-0.46538275480270386,
0.08235659450292587,
-0.015110774897038937,
-0.2950533926486969,
-0.021759308874607086,
0.21528089046478271,
0.5295712947845459,
0.1805812269449234,
-0.07449562847614288,
0.12099743634462357,
-0.044657379388809204,
-0.06738346070051193,
-0.06385529786348343,
0.5054073333740234,
0.044116612523794174,
-0.14882175624370575,
0.3898943364620209,
0.11459184437990189,
-0.2024143934249878,
0.22414585947990417,
0.056145403534173965,
0.2569638192653656,
-0.309199720621109,
-0.05560731142759323,
-0.09218642860651016,
-0.1618698537349701,
-0.38078436255455017,
-0.1619993895292282,
-0.22222553193569183,
-0.03572283312678337,
0.4328237473964691,
-0.34764453768730164,
-0.032589565962553024,
-0.2878081798553467,
0.1002570167183876,
-0.13176392018795013,
0.3615841865539551,
0.5655298233032227,
0.3356919288635254,
-0.15268531441688538,
-0.26208728551864624,
-0.4610741138458252,
0.08432971686124802,
-0.5949676036834717,
-0.07586097717285156,
-0.1460902839899063,
0.4706692099571228,
0.07032385468482971,
0.37991389632225037,
0.3234637379646301,
0.05884072929620743,
-0.41084185242652893,
0.46787774562835693,
-0.3202510178089142,
-0.35221269726753235,
-0.08157513290643692,
0.03986808657646179,
0.052440743893384933,
-0.24966736137866974,
0.19716502726078033,
-0.3352736532688141,
0.007786362897604704,
-0.14289283752441406,
-0.2132217437028885,
0.16587267816066742,
-0.05119023472070694,
0.49506449699401855,
0.07482070475816727,
0.30297908186912537,
0.2944584786891937,
-0.4896104037761688,
-0.5438294410705566,
-0.2805481255054474,
0.007949492894113064,
-0.035259027034044266,
0.036584194749593735,
0.2936921715736389,
-0.399454802274704,
0.039865653961896896,
-0.11193305253982544,
0.2174253910779953,
-0.14500220119953156,
-0.28616589307785034,
0.17583051323890686,
-0.2617858350276947,
-0.04673061892390251,
0.37299808859825134,
0.07405398786067963,
0.1809001863002777,
-0.09310337156057358,
0.19039005041122437,
-0.2506166398525238,
-0.31582173705101013,
0.23526816070079803,
-0.02308349311351776,
-0.3548653721809387,
0.003519750665873289,
0.1605772227048874,
0.17622505128383636,
-0.014007983729243279,
-0.19612234830856323,
0.08975677937269211,
0.39863121509552,
0.004891579505056143,
-0.1920950561761856,
0.18237842619419098,
0.049424897879362106,
0.18333375453948975,
-0.011885814368724823,
0.47691109776496887,
0.02522987872362137,
-0.27491915225982666,
0.37314572930336,
-0.12378035485744476
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | To be clear, the error I get when I try to "re-instantiate" the download after failure is:
```
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: <HOME>/.cache/huggingface/datasets/downloads/1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json'
``` | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 32 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
To be clear, the error I get when I try to "re-instantiate" the download after failure is:
```
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: <HOME>/.cache/huggingface/datasets/downloads/1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json'
``` | [
-0.34570634365081787,
-0.11349129676818848,
-0.08899116516113281,
0.12944424152374268,
0.14749212563037872,
0.2143734246492386,
0.04801754280924797,
0.1998876929283142,
0.033855218440294266,
-0.09553138166666031,
-0.030202088877558708,
0.11687485128641129,
0.2437814623117447,
-0.07714863866567612,
-0.04912004619836807,
0.23142316937446594,
0.057785894721746445,
-0.16223084926605225,
-0.05591939017176628,
0.07350241392850876,
0.011058954522013664,
0.12743599712848663,
-0.07140686362981796,
-0.1832774132490158,
-0.2978641986846924,
-0.06552479416131973,
-0.13290779292583466,
0.07138627022504807,
-0.21837550401687622,
-0.31135016679763794,
0.2569487392902374,
0.12307364493608475,
0.010395488701760769,
0.6663293242454529,
-0.00011161027214257047,
-0.15925660729408264,
0.2437489926815033,
0.04264070838689804,
-0.4877470135688782,
-0.5513865947723389,
-0.13421151041984558,
-0.19452209770679474,
0.0699981227517128,
-0.023827964439988136,
0.11949503421783447,
0.0872308611869812,
0.18626226484775543,
-0.4260832965373993,
0.29676517844200134,
0.4254149794578552,
0.17530572414398193,
0.23871825635433197,
0.17227943241596222,
-0.025117676705121994,
0.1737600415945053,
0.10747883468866348,
0.0559893473982811,
0.47376200556755066,
0.17528250813484192,
-0.1304805725812912,
0.21956297755241394,
-0.020969349890947342,
-0.10296059399843216,
0.2084074765443802,
-0.0964718759059906,
0.1018209308385849,
0.09890156984329224,
-0.4662342667579651,
-0.06993956118822098,
0.14540719985961914,
0.9318503141403198,
-0.047751400619745255,
-0.45562002062797546,
-0.2536899447441101,
0.06746949255466461,
-0.008154225535690784,
0.35976800322532654,
0.3981691598892212,
-0.3702106475830078,
0.23843029141426086,
-0.23103301227092743,
-0.03791645169258118,
0.045623939484357834,
0.36639919877052307,
0.1222335696220398,
0.0011730095138773322,
0.0717664361000061,
0.1935008317232132,
0.09120004624128342,
-0.010882407426834106,
0.18970683217048645,
-0.28751495480537415,
0.08278350532054901,
-0.023027898743748665,
-0.31634917855262756,
-0.0040634493343532085,
0.06554845720529556,
0.15145795047283173,
0.19573847949504852,
0.07829863578081131,
0.05562087520956993,
-0.20488877594470978,
-0.19198638200759888,
0.15413306653499603,
0.3801209628582001,
0.01808992028236389,
-0.03118501603603363,
0.08554615080356598,
0.3153649568557739,
-0.0658993124961853,
-0.0671003982424736,
0.010709633119404316,
0.07205042243003845,
0.004937618039548397,
0.24727854132652283,
-0.15956202149391174,
0.3136942982673645,
-0.15689635276794434,
-0.2649344801902771,
-0.003286065999418497,
-0.00831346120685339,
-0.10223941504955292,
-0.1726381778717041,
0.17984639108181,
-0.4610122740268707,
0.2657696306705475,
0.07955946028232574,
0.0874037966132164,
-0.3733413517475128,
-0.31425100564956665,
-0.07719758152961731,
0.061037592589855194,
-0.2870963513851166,
-0.018002556636929512,
0.014178495854139328,
-0.10226467996835709,
0.13527452945709229,
0.16786211729049683,
0.0020397300831973553,
-0.30979835987091064,
-0.0176952313631773,
-0.13594424724578857,
-0.19761964678764343,
0.21887508034706116,
-0.15063247084617615,
0.42160242795944214,
0.05837423354387283,
0.10222066938877106,
-0.040334369987249374,
-0.03832560032606125,
-0.2669511139392853,
-0.27882805466651917,
-0.13514426350593567,
0.21645279228687286,
-0.23732450604438782,
-0.21259590983390808,
-0.14561745524406433,
-0.1163153201341629,
0.20050878822803497,
-0.012750293128192425,
-0.08984154462814331,
-0.04236350953578949,
0.12619778513908386,
-0.11594486236572266,
-0.02546892873942852,
0.45871347188949585,
-0.5205500721931458,
0.225499227643013,
-0.2102181762456894,
0.10504710674285889,
0.16742238402366638,
0.2220853865146637,
-0.16809815168380737,
0.125601127743721,
-0.3032050132751465,
-0.12763309478759766,
0.3263623118400574,
-0.208816796541214,
-0.6565341949462891,
-0.006463410798460245,
-0.4225062429904938,
0.04363696277141571,
-0.03988424688577652,
0.31998538970947266,
0.2116362303495407,
-0.062147580087184906,
0.023738937452435493,
0.33406710624694824,
-0.19207452237606049,
0.01468806155025959,
-0.37585151195526123,
-0.14958682656288147,
-0.053292397409677505,
0.15651924908161163,
0.013183717615902424,
0.03865262120962143,
-0.09403932839632034,
0.010665290988981724,
0.29135188460350037,
0.3134850859642029,
0.11981134861707687,
0.2804669737815857,
0.0698079764842987,
0.30567046999931335,
0.08199828863143921,
-0.24702811241149902,
-0.44211018085479736,
0.23788438737392426,
0.5058315396308899,
0.09759856760501862,
-0.29183822870254517,
-0.010444915853440762,
-0.44220346212387085,
0.031291309744119644,
-0.0256959181278944,
0.008343073539435863,
0.023564521223306656,
0.198182612657547,
0.29849591851234436,
0.23057588934898376,
-0.06883439421653748,
0.5827648043632507,
-0.06300070881843567,
0.2926050126552582,
-0.21623769402503967,
0.30010515451431274,
-0.1852462887763977,
-0.15204866230487823,
0.07356532663106918,
-0.3078402280807495,
0.07816506922245026,
-0.20679613947868347,
-0.14225004613399506,
0.34220024943351746,
-0.009368931874632835,
0.15894639492034912,
0.04767479747533798,
-0.06520994007587433,
0.2794477939605713,
-0.12249128520488739,
-0.13275061547756195,
0.3763543963432312,
0.09033224731683731,
0.0723876804113388,
-0.24747584760189056,
-0.0002934102958533913,
0.1602979451417923,
0.17977911233901978,
-0.18110942840576172,
0.14448411762714386,
0.11539463698863983,
-0.00854427833110094,
0.13294705748558044,
-0.044730886816978455,
0.43115925788879395,
-0.370048463344574,
0.12742996215820312,
-0.20815899968147278,
-0.015293451026082039,
0.37025585770606995,
0.2613643407821655,
0.05695587769150734,
-0.15856070816516876,
0.17013871669769287,
0.12499494850635529,
-0.14098778367042542,
-0.08529910445213318,
0.39609238505363464,
0.31652501225471497,
0.18752016127109528,
0.20484524965286255,
-0.0945080816745758,
-0.1836344301700592,
-0.12542924284934998,
0.12747065722942352,
0.023261412978172302,
-0.018718590959906578,
0.06604134291410446,
0.17050869762897491,
0.016953904181718826,
-0.15881289541721344,
-0.4864625334739685,
0.15232504904270172,
0.3400336802005768,
-0.12892436981201172,
0.04255661740899086,
-0.25828906893730164,
-0.08118624985218048,
0.15282252430915833,
-0.05561327934265137,
-0.30099785327911377,
-0.5474970936775208,
-0.04880354553461075,
0.35172271728515625,
-0.03173843398690224,
0.033320408314466476,
-0.16870208084583282,
-0.13268020749092102,
0.3515860438346863,
-0.19785793125629425,
-0.03805212303996086,
-0.12423994392156601,
-0.02509903907775879,
0.05194033682346344,
0.20812252163887024,
-0.15546558797359467,
0.3499413728713989,
-0.3303992748260498,
-0.21508269011974335,
-0.5077778100967407,
-0.05739593878388405,
0.04203743860125542,
-0.07114723324775696,
0.3454362154006958,
-0.1364249736070633,
0.4982598125934601,
0.05155635252594948,
0.023598046973347664,
0.1339966058731079,
-0.22584500908851624,
-0.10997007042169571,
-0.08876687288284302,
0.04899483174085617,
0.1446506232023239,
-0.027951397001743317,
-0.40253105759620667,
-0.1980053186416626,
-0.38139376044273376,
0.12148062139749527,
-0.10502840578556061,
-0.04003807157278061,
0.1701100915670395,
0.1836489737033844,
0.021311594173312187,
0.0021810955367982388,
0.13416153192520142,
-0.16136206686496735,
-0.4538009762763977,
0.4539405107498169,
-0.12105610221624374,
-0.18336690962314606,
0.0870501920580864,
0.13617442548274994,
-0.04878207668662071,
0.3200146555900574,
-0.7256786823272705,
0.0329236276447773,
-0.2690053880214691,
0.2915371358394623,
-0.15932822227478027,
-0.14234745502471924,
0.28950485587120056,
-0.4033137857913971,
-0.10868927836418152,
0.04580667242407799,
0.028443854302167892,
-0.04522563889622688,
0.17007684707641602,
0.4130656123161316,
-0.12012024223804474,
0.2722564935684204,
-0.02379593998193741,
0.3074052333831787,
0.09990247339010239,
-0.017408322542905807,
0.13619503378868103,
0.1241229847073555,
0.2862435281276703,
-0.013576989062130451,
-0.24999076128005981,
-0.03566420450806618,
-0.053412437438964844,
-0.21161213517189026,
0.08081221580505371,
0.06983724236488342,
-0.18214106559753418,
-0.18633610010147095,
0.007259740959852934,
-0.32952582836151123,
-0.23441672325134277,
-0.08488025516271591,
-0.21649664640426636,
-0.0028232079930603504,
0.2924295961856842,
0.09913984686136246,
-0.05087883770465851,
-0.17936290800571442,
-0.10072255879640579,
0.09465949237346649,
0.03715280443429947,
-0.13770455121994019,
-0.5816249251365662,
0.06624022126197815,
-0.3708144426345825,
0.1462101936340332,
-0.014009254984557629,
0.2827035188674927,
-0.05994539335370064,
0.10730751603841782,
0.16347675025463104,
-0.02941797859966755,
0.6919803023338318,
-0.21524010598659515,
0.03714029863476753,
-0.029926622286438942,
0.3537362515926361,
-0.42495623230934143,
-0.045986324548721313,
0.18623241782188416,
0.31144145131111145,
0.4815079867839813,
-0.023996395990252495,
-0.32553091645240784,
0.06897582858800888,
0.1253194808959961,
0.33048775792121887,
0.05099447816610336,
-0.4549201726913452,
0.09841770678758621,
-0.13839149475097656,
-0.23706430196762085,
0.08835829049348831,
0.04095378518104553,
0.06717593222856522,
0.05193658173084259,
-0.13995812833309174,
0.2137625813484192,
0.14975084364414215,
0.06701552867889404,
-0.12142970412969589,
0.21895544230937958,
-0.2838030159473419,
0.5442034602165222,
0.14346042275428772,
-0.17609713971614838,
0.3162308633327484,
0.7088834047317505,
0.14058679342269897,
-0.42471548914909363,
0.05900242552161217,
0.08158556371927261,
-0.1278010755777359,
0.29833099246025085,
0.1206628754734993,
-0.15699119865894318,
-0.194054514169693,
0.3669218122959137,
-0.003560948884114623,
0.15599751472473145,
0.2746644616127014,
0.042525339871644974,
-0.4269050061702728,
-0.49229490756988525,
0.2004532516002655,
0.10679474472999573,
0.031072577461600304,
0.686884880065918,
-0.04832785576581955,
0.14772535860538483,
0.3077605664730072,
-0.07419949024915695,
1.040717363357544,
-0.21798032522201538,
0.11976102739572525,
0.041382137686014175,
-0.021408192813396454,
0.5579094290733337,
-0.46309176087379456,
0.07481718063354492,
-0.10907348245382309,
0.026269501075148582,
-0.010922668501734734,
-0.15298771858215332,
-0.1878226399421692,
0.38448962569236755,
-0.17790430784225464,
0.15378153324127197,
-0.2142793834209442,
0.17387239634990692,
-0.12125474214553833,
0.22221750020980835,
-0.40635427832603455,
-0.06827470660209656,
-0.12785564363002777,
0.2052881270647049,
0.007012980058789253,
0.2733253240585327,
-0.03555965796113014,
0.24050617218017578,
-0.23099558055400848,
-0.0035612264182418585,
-0.6009571552276611,
0.04829414561390877,
-0.14488841593265533,
0.028513522818684578,
-0.4012342095375061,
-0.3080596625804901,
-0.13649027049541473,
0.2661268711090088,
0.17455381155014038,
0.20255514979362488,
-0.06007257103919983,
0.2379782646894455,
-0.13825257122516632,
-0.14952059090137482,
-0.021051671355962753,
-0.22870682179927826,
0.2524908781051636,
0.09274990111589432,
-0.38962069153785706,
0.10580744594335556,
-0.10776861011981964,
-0.1877214014530182,
0.19172382354736328,
0.21999157965183258,
0.12353046238422394,
-0.09895408898591995,
0.03677738830447197,
0.043351590633392334,
0.12857304513454437,
-0.281908243894577,
0.10951243340969086,
0.34935152530670166,
0.14237669110298157,
0.2095106840133667,
-0.13493581116199493,
-0.26405835151672363,
-0.3781040906906128,
0.41342487931251526,
0.021876243874430656,
-0.08570107072591782,
0.3029446601867676,
0.2900456488132477,
-0.43627098202705383,
-0.24562345445156097,
0.037844110280275345,
-0.5051122307777405,
-0.40533146262168884,
0.26602181792259216,
-0.35730990767478943,
0.33128803968429565,
-0.03983511030673981,
-0.18019750714302063,
0.19139619171619415,
0.049233973026275635,
0.10255175828933716,
-0.635493278503418,
-0.06887267529964447,
-0.028222326189279556,
-0.2394971400499344,
0.06338432431221008,
-0.07983867824077606,
-0.18087776005268097,
0.13095396757125854,
-0.16102229058742523,
-0.28760263323783875,
0.09518973529338837,
-0.25530731678009033,
0.09129637479782104,
0.37827545404434204,
-0.10464265197515488,
0.37564054131507874,
-0.16440150141716003,
0.08054879307746887,
0.15342819690704346,
-0.13191406428813934,
-0.14382952451705933,
-0.01693550869822502,
0.1424364596605301,
-0.056654587388038635,
-0.12163625657558441,
0.161632239818573,
-0.45050638914108276,
-0.055756159126758575,
0.026162590831518173,
-0.04781682789325714,
0.23953460156917572,
0.07999787479639053,
-0.24511149525642395,
0.18293629586696625,
0.003920046146959066,
-0.036580830812454224,
0.17254379391670227,
-0.03385669365525246,
0.47632795572280884,
0.22038353979587555,
0.2932705581188202,
0.08375779539346695,
0.06732314079999924,
-0.5774544477462769,
0.02896576188504696,
-0.12028763443231583,
0.06374330818653107,
0.46718770265579224,
-0.33267977833747864,
0.047376908361911774,
0.32587331533432007,
0.4628506004810333,
0.5449550151824951,
-0.010152365081012249,
-0.09365128725767136,
0.3874695599079132,
0.2539563477039337,
0.02183784916996956,
-0.13318389654159546,
0.36420896649360657,
0.10274240374565125,
0.04475821927189827,
0.1804495006799698,
-0.028588104993104935,
-0.12505143880844116,
0.14989182353019714,
0.20518578588962555,
0.7734172344207764,
-0.04629429429769516,
0.16900458931922913,
0.12424319982528687,
0.12034213542938232,
0.006493411958217621,
0.44816118478775024,
0.2540309727191925,
0.10601983219385147,
0.09177003055810928,
-0.10665854811668396,
-0.09255687892436981,
0.012303805910050869,
0.17248710989952087,
-0.18298868834972382,
-0.33798450231552124,
0.03984343260526657,
0.18474772572517395,
-0.17093777656555176,
0.01869746670126915,
0.123975470662117,
0.2378612607717514,
-0.2728785574436188,
-0.06086822226643562,
-0.15332207083702087,
0.2601200044155121,
0.06175535172224045,
0.2621084749698639,
0.25690582394599915,
-0.1947939395904541,
-0.1001039519906044,
0.08920757472515106,
0.028052499517798424,
-0.2530421018600464,
0.27411961555480957,
0.16528518497943878,
0.08528289943933487,
-0.6464283466339111,
0.007451848592609167,
-0.11059276014566422,
0.17931579053401947,
-0.4398788511753082,
0.04596603661775589,
0.045088011771440506,
-0.2883310317993164,
-0.07890930026769638,
0.27793431282043457,
0.5579771399497986,
0.16440682113170624,
-0.05854243412613869,
0.17806391417980194,
-0.12880611419677734,
-0.05182328820228577,
-0.10806959122419357,
0.3691692650318146,
0.04172312468290329,
-0.18893514573574066,
0.38527217507362366,
0.13551631569862366,
-0.21805739402770996,
0.14245480298995972,
0.1456935554742813,
0.3020741939544678,
-0.20551683008670807,
-0.07998142391443253,
-0.08096101880073547,
-0.1015382781624794,
-0.3095260262489319,
-0.17375892400741577,
-0.194685161113739,
-0.04384862259030342,
0.3546401262283325,
-0.3365458846092224,
-0.03820032253861427,
-0.2726593017578125,
0.10172421485185623,
-0.16236922144889832,
0.20153319835662842,
0.5906609892845154,
0.2629622220993042,
-0.13394473493099213,
-0.24153997004032135,
-0.47911566495895386,
0.08672849833965302,
-0.5807119607925415,
-0.14642947912216187,
-0.23883162438869476,
0.45923563838005066,
0.0935257226228714,
0.32510092854499817,
0.41862961649894714,
0.05288158729672432,
-0.356766015291214,
0.5118840336799622,
-0.2942032814025879,
-0.44086310267448425,
-0.07024545222520828,
0.0721711665391922,
0.04067229479551315,
-0.23689182102680206,
0.08001381158828735,
-0.30030202865600586,
-0.004402390215545893,
-0.14989057183265686,
-0.1932370811700821,
0.18804620206356049,
-0.10408937931060791,
0.5126102566719055,
0.06764855235815048,
0.303385466337204,
0.18546192348003387,
-0.5745764374732971,
-0.5213243961334229,
-0.30287057161331177,
-0.041949380189180374,
0.07399342209100723,
0.07506727427244186,
0.506541907787323,
-0.48041588068008423,
-0.03854646161198616,
-0.18810732662677765,
0.12700989842414856,
-0.07921318709850311,
-0.23479175567626953,
0.14912380278110504,
-0.20231002569198608,
-0.08655419200658798,
0.3757196068763733,
0.03144300729036331,
0.20950287580490112,
-0.03207997605204582,
0.2295541763305664,
-0.22497165203094482,
-0.3684900104999542,
0.28859809041023254,
0.07878781855106354,
-0.27210158109664917,
0.08084163069725037,
0.19742099940776825,
0.10260812193155289,
-0.016103483736515045,
-0.20551148056983948,
0.09393110126256943,
0.4026019275188446,
-0.03895910084247589,
-0.29090988636016846,
0.09709685295820236,
-0.0008469553431496024,
0.10377388447523117,
-0.038243915885686874,
0.49887603521347046,
0.0005764360539615154,
-0.26823562383651733,
0.3730962872505188,
-0.10412193834781647
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | Hi ! Since https://github.com/huggingface/datasets/pull/2803 we've changed the time out from 10sec to 100sec.
This should prevent the `ReadTimeoutError`. Feel free to try it out by installing `datasets` from source
```
pip install git+https://github.com/huggingface/datasets.git
```
When re-running your code you said you get a `OSError`, could you try deleting the file at the path returned by the error ? (the one after `[Errno 20] Not a directory:`). Ideally when a download fails you should be able to re-run it without error; there might be an issue here.
Finally not sure what we can do about `ConnectionError`, this must be an issue from zenodo. If it happens you simply need to try again
| ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 111 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
Hi ! Since https://github.com/huggingface/datasets/pull/2803 we've changed the time out from 10sec to 100sec.
This should prevent the `ReadTimeoutError`. Feel free to try it out by installing `datasets` from source
```
pip install git+https://github.com/huggingface/datasets.git
```
When re-running your code you said you get a `OSError`, could you try deleting the file at the path returned by the error ? (the one after `[Errno 20] Not a directory:`). Ideally when a download fails you should be able to re-run it without error; there might be an issue here.
Finally not sure what we can do about `ConnectionError`, this must be an issue from zenodo. If it happens you simply need to try again
| [
-0.45382460951805115,
-0.03595244884490967,
-0.10725770890712738,
0.21480676531791687,
0.22540099918842316,
0.09833825379610062,
0.15917129814624786,
0.2268797606229782,
-0.05263775587081909,
0.000022987920601735823,
-0.16277728974819183,
0.15473735332489014,
0.19559185206890106,
-0.13340964913368225,
-0.09725368022918701,
0.0610445961356163,
-0.05657073110342026,
-0.06776024401187897,
-0.16155332326889038,
0.08194739371538162,
0.01882048323750496,
0.1436862349510193,
-0.11213220655918121,
-0.002650604583323002,
-0.07669360935688019,
-0.16448768973350525,
-0.14679798483848572,
0.05072427913546562,
-0.29565516114234924,
-0.3328929841518402,
0.16948486864566803,
0.24185578525066376,
-0.06909020245075226,
0.6850530505180359,
-0.00011010313755832613,
-0.13972024619579315,
0.2245098352432251,
0.049023907631635666,
-0.3112405240535736,
-0.5094981789588928,
-0.1957668960094452,
-0.17420083284378052,
-0.0006457482813857496,
-0.029179053381085396,
0.18548518419265747,
0.05549781769514084,
0.108992800116539,
-0.2749735116958618,
0.33892056345939636,
0.5729051828384399,
0.19959206879138947,
0.3697783052921295,
0.3693854808807373,
-0.05355597287416458,
0.26640111207962036,
-0.01215184573084116,
0.031192796304821968,
0.41691794991493225,
0.13807828724384308,
-0.05963601917028427,
0.18289783596992493,
0.02274279296398163,
-0.07561444491147995,
0.15456877648830414,
-0.11939150840044022,
0.03336123004555702,
0.255591481924057,
-0.38871777057647705,
-0.13837184011936188,
0.22193384170532227,
0.7953235507011414,
-0.002744642784819007,
-0.406821608543396,
-0.28712528944015503,
0.16965351998806,
-0.012915832921862602,
0.334957093000412,
0.2615114152431488,
-0.4169996678829193,
0.21747533977031708,
-0.2613838016986847,
-0.0808657705783844,
-0.12663352489471436,
0.44061359763145447,
0.11701389402151108,
0.0012061289744451642,
-0.02569742128252983,
0.3007272481918335,
0.26335835456848145,
-0.10879452526569366,
0.22215059399604797,
-0.316897988319397,
-0.029246317222714424,
0.01374899037182331,
-0.33833804726600647,
-0.18885228037834167,
0.032917752861976624,
0.16386909782886505,
0.3037256896495819,
0.031856000423431396,
0.04710748791694641,
-0.19615650177001953,
-0.08399715274572372,
0.13981382548809052,
0.38325148820877075,
0.02979683130979538,
0.03673405945301056,
0.05589956045150757,
0.21393713355064392,
0.08050452172756195,
-0.09634432941675186,
0.038272611796855927,
-0.05203498154878616,
0.03752388060092926,
0.1067027673125267,
-0.17457358539104462,
0.4148419499397278,
-0.2983427941799164,
-0.16576994955539703,
0.025585303083062172,
0.07573763281106949,
-0.1702810674905777,
-0.16885530948638916,
0.21336105465888977,
-0.4682381749153137,
0.2446540743112564,
-0.09227422624826431,
0.06521151214838028,
-0.36387747526168823,
-0.32873836159706116,
-0.051393572241067886,
0.013741292990744114,
-0.14873985946178436,
-0.04312201961874962,
-0.09007593989372253,
-0.2335728108882904,
0.1790359616279602,
0.14482581615447998,
0.06731031835079193,
-0.2530992925167084,
0.006169193424284458,
-0.24361257255077362,
-0.15517526865005493,
0.12795451283454895,
-0.06955154240131378,
0.2915441393852234,
0.12379734218120575,
0.13390716910362244,
-0.06375201791524887,
0.01864658296108246,
-0.2753819525241852,
-0.33365458250045776,
-0.20021389424800873,
0.2280961573123932,
-0.3359353840351105,
-0.27447789907455444,
0.025253107771277428,
-0.1338585615158081,
0.3139723837375641,
-0.1475001573562622,
-0.13398168981075287,
-0.15708506107330322,
0.060034796595573425,
-0.06047593057155609,
-0.04142926260828972,
0.315782368183136,
-0.35934728384017944,
0.1914789080619812,
-0.2504238784313202,
-0.009984318166971207,
0.1681513786315918,
0.23097705841064453,
-0.25535818934440613,
0.12007568031549454,
-0.2136332243680954,
-0.20481659471988678,
0.36084336042404175,
-0.3011215329170227,
-0.6002122759819031,
0.0031674536876380444,
-0.37764331698417664,
0.14168594777584076,
-0.13925395905971527,
0.23765142261981964,
0.36052653193473816,
-0.006961195729672909,
-0.07340625673532486,
0.3193843364715576,
-0.2023211568593979,
-0.007075924891978502,
-0.36263108253479004,
-0.16564367711544037,
-0.14147566258907318,
0.2422948181629181,
0.07888586819171906,
-0.004299557767808437,
-0.03770643100142479,
0.024018501862883568,
0.2975075840950012,
0.31692904233932495,
0.06682562083005905,
0.278215616941452,
0.14880485832691193,
0.3036118447780609,
-0.05026703700423241,
-0.26828432083129883,
-0.22139383852481842,
0.16412653028964996,
0.5927709937095642,
0.15148577094078064,
-0.2055572122335434,
0.055662576109170914,
-0.3700689971446991,
0.006408283486962318,
-0.09687702357769012,
-0.002962691942229867,
0.03815779834985733,
0.2506614625453949,
0.2869865894317627,
0.2637932300567627,
-0.04155291989445686,
0.46840834617614746,
-0.027949010953307152,
0.35502904653549194,
-0.17943815886974335,
0.2723226249217987,
-0.23262138664722443,
-0.19059966504573822,
0.03465498611330986,
-0.2605830430984497,
0.11901821941137314,
-0.16729244589805603,
-0.13463065028190613,
0.3733445703983307,
0.016951043158769608,
0.05802469700574875,
0.1264176070690155,
-0.11985395103693008,
0.22072714567184448,
-0.10837060213088989,
-0.15032751858234406,
0.24868090450763702,
0.11499401926994324,
0.10636399686336517,
-0.17660440504550934,
0.10530052334070206,
0.14303690195083618,
0.20570607483386993,
-0.1959836184978485,
0.10094170272350311,
0.1564980447292328,
0.04063192382454872,
0.08239403367042542,
0.02611098811030388,
0.43741509318351746,
-0.36415618658065796,
0.04069051891565323,
-0.18059872090816498,
-0.007134801708161831,
0.30087777972221375,
0.4109622836112976,
0.031015241518616676,
-0.1827637106180191,
0.17700491845607758,
0.197096586227417,
-0.0896119773387909,
-0.031727034598588943,
0.41350868344306946,
0.42537450790405273,
0.21633963286876678,
0.03854314610362053,
0.0027147585060447454,
-0.17714104056358337,
-0.08919443190097809,
0.16673104465007782,
0.0989232286810875,
0.18165044486522675,
0.09494487941265106,
-0.01899472251534462,
-0.006783005315810442,
-0.08405198156833649,
-0.5713554620742798,
0.07940921187400818,
0.45710018277168274,
-0.08922874927520752,
-0.1376042366027832,
-0.19081544876098633,
-0.0958801656961441,
0.16837047040462494,
0.016017664223909378,
-0.4750838577747345,
-0.5786948204040527,
-0.06760930269956589,
0.45299187302589417,
-0.052492719143629074,
0.05964706093072891,
-0.2232985645532608,
-0.10371724516153336,
0.39267104864120483,
-0.07365130633115768,
0.044531527906656265,
-0.2548265755176544,
0.012556689791381359,
0.0856890082359314,
0.2230580598115921,
-0.19104920327663422,
0.28095316886901855,
-0.3305028975009918,
-0.20998023450374603,
-0.43894556164741516,
-0.043910540640354156,
0.11567619442939758,
-0.2164088636636734,
0.3292762339115143,
-0.12317012250423431,
0.5877864956855774,
0.09311048686504364,
0.043649569153785706,
0.2046537846326828,
-0.34362971782684326,
-0.07767772674560547,
-0.056204937398433685,
0.07132615149021149,
0.14510050415992737,
0.05986360087990761,
-0.2994941771030426,
-0.23018552362918854,
-0.4278171956539154,
0.17403723299503326,
-0.04793819412589073,
0.09083042293787003,
0.27947384119033813,
0.20593923330307007,
0.0834496021270752,
-0.25374099612236023,
0.16921450197696686,
-0.12587834894657135,
-0.561702311038971,
0.43278229236602783,
-0.11775282770395279,
-0.26366379857063293,
0.09965057671070099,
0.30585071444511414,
-0.02062259055674076,
0.17728935182094574,
-0.6788052916526794,
-0.003509791102260351,
-0.23689967393875122,
0.33965638279914856,
-0.20226390659809113,
-0.18313878774642944,
0.3164759874343872,
-0.4094333350658417,
-0.10017092525959015,
0.02282218635082245,
0.10978832840919495,
-0.01116286963224411,
0.15578144788742065,
0.422884076833725,
-0.0675441324710846,
0.3687637150287628,
-0.011091452091932297,
0.3627904951572418,
0.06473148614168167,
0.02539229206740856,
0.03629464656114578,
0.02570798620581627,
0.35578081011772156,
0.048511043190956116,
-0.35962992906570435,
-0.028046434745192528,
-0.011042425408959389,
-0.13521108031272888,
0.13524578511714935,
0.025922531262040138,
-0.09346109628677368,
-0.2718135714530945,
-0.08471323549747467,
-0.228711798787117,
-0.3163343667984009,
-0.050918616354465485,
-0.16039881110191345,
-0.07659018039703369,
0.23817627131938934,
0.1666228473186493,
-0.025307362899184227,
-0.21312876045703888,
-0.09033793210983276,
0.10653340816497803,
-0.043422821909189224,
-0.15332895517349243,
-0.6302164196968079,
0.246821328997612,
-0.40786319971084595,
0.17283987998962402,
-0.04850010946393013,
0.2384985387325287,
-0.1775384396314621,
0.05931202322244644,
0.1668083816766739,
-0.014790911227464676,
0.5320881605148315,
-0.11836498975753784,
-0.006543243769556284,
-0.04128791019320488,
0.2439119815826416,
-0.46841171383857727,
-0.03199436515569687,
-0.017960043624043465,
0.2684279680252075,
0.3909963369369507,
0.101717509329319,
-0.3571453392505646,
-0.056000832468271255,
0.13744546473026276,
0.20310759544372559,
0.1029752716422081,
-0.3991026282310486,
0.070296511054039,
-0.22523686289787292,
-0.308877557516098,
0.1659785509109497,
-0.09102088958024979,
0.1600351780653,
-0.04411611333489418,
-0.08620219677686691,
0.3067350685596466,
0.20419061183929443,
0.0026237592101097107,
-0.13273732364177704,
0.14016081392765045,
-0.27428847551345825,
0.5147085189819336,
0.14738109707832336,
-0.2570001482963562,
0.5399025678634644,
0.6204404830932617,
0.18556062877178192,
-0.5246994495391846,
-0.002776982495561242,
-0.1413167119026184,
-0.15756289660930634,
0.2658451795578003,
0.14141793549060822,
-0.056462112814188004,
-0.18306615948677063,
0.44920164346694946,
0.1471310704946518,
0.2245180457830429,
0.34797826409339905,
0.11220596730709076,
-0.3846342861652374,
-0.35448578000068665,
-0.05181024968624115,
0.005030270665884018,
0.009807700291275978,
0.6732222437858582,
0.022505247965455055,
0.06050067022442818,
0.24745622277259827,
-0.04981657862663269,
1.1006946563720703,
-0.16920314729213715,
0.1691570281982422,
0.11339070647954941,
-0.13073711097240448,
0.5093161463737488,
-0.22139038145542145,
0.08682168275117874,
-0.1366998702287674,
-0.14832590520381927,
0.05173030495643616,
-0.09472794830799103,
0.0729997456073761,
0.19206753373146057,
-0.243083193898201,
0.07075425982475281,
-0.15469607710838318,
0.18844552338123322,
-0.08833808451890945,
0.13805164396762848,
-0.38577473163604736,
-0.07796278595924377,
-0.13968777656555176,
0.2257317453622818,
-0.0752517431974411,
0.269074410200119,
0.020674200728535652,
0.08688411116600037,
-0.23986142873764038,
-0.02029840275645256,
-0.5047807097434998,
0.09388116747140884,
-0.09315284341573715,
-0.027419526129961014,
-0.44384706020355225,
-0.15597032010555267,
-0.14670373499393463,
0.25428780913352966,
0.00005236679135123268,
0.19283714890480042,
-0.05499092489480972,
0.2169494777917862,
-0.12978516519069672,
-0.09639596939086914,
0.08181016147136688,
-0.23730874061584473,
0.14403128623962402,
-0.0193446334451437,
-0.4969228506088257,
0.2323334664106369,
-0.07161024212837219,
-0.3198155462741852,
0.1333943009376526,
0.10870330780744553,
0.09351076930761337,
-0.128555566072464,
0.06633759289979935,
-0.11900630593299866,
0.04057468846440315,
-0.32096588611602783,
0.14663618803024292,
0.2985936999320984,
-0.004610622301697731,
0.22611702978610992,
-0.08617699146270752,
-0.3036799728870392,
-0.3014824390411377,
0.39366015791893005,
-0.008237212896347046,
-0.005001404322683811,
0.25960463285446167,
0.21015645563602448,
-0.3978390097618103,
-0.2830137014389038,
0.30688077211380005,
-0.4383845925331116,
-0.3919936418533325,
0.04347129911184311,
-0.503301739692688,
0.36547327041625977,
-0.09442970156669617,
-0.1962876170873642,
0.2207845151424408,
0.05005703121423721,
0.10578475892543793,
-0.643592357635498,
-0.11272469907999039,
-0.04417701065540314,
-0.08755471557378769,
0.01522664912045002,
-0.04378422722220421,
-0.2011597454547882,
0.06854944676160812,
-0.0929156243801117,
-0.32218483090400696,
0.0387752540409565,
-0.29567599296569824,
0.10022979229688644,
0.40345194935798645,
-0.16868333518505096,
0.4216540455818176,
-0.20364239811897278,
0.0921621099114418,
0.10771278291940689,
-0.16321808099746704,
-0.14575402438640594,
0.030068721622228622,
0.1397891789674759,
-0.02788080833852291,
-0.2190428227186203,
0.1264558881521225,
-0.4023294150829315,
-0.12406274676322937,
0.06712870299816132,
-0.058493901044130325,
0.1805596947669983,
0.008278324268758297,
-0.23471616208553314,
0.18872950971126556,
0.09361934661865234,
-0.0575820617377758,
0.18962164223194122,
-0.07697152346372604,
0.4825539290904999,
0.18688362836837769,
0.37203893065452576,
0.02322629652917385,
-0.03626396134495735,
-0.4318801462650299,
0.07049723714590073,
-0.07952894270420074,
0.047831762582063675,
0.5599254369735718,
-0.28622114658355713,
0.059289198368787766,
0.32813572883605957,
0.5346978306770325,
0.5222048759460449,
-0.006002178881317377,
-0.12287373840808868,
0.3413524627685547,
0.26432013511657715,
0.02886507473886013,
-0.13236820697784424,
0.43281590938568115,
0.05642631649971008,
0.053824231028556824,
0.17363592982292175,
-0.23051394522190094,
-0.07263850420713425,
0.1665356606245041,
0.17273853719234467,
0.8266087174415588,
0.13318514823913574,
0.17183256149291992,
0.2565767765045166,
-0.11357791721820831,
-0.06588327139616013,
0.433204710483551,
0.2657812535762787,
-0.002129573607817292,
0.1296420842409134,
-0.28969407081604004,
-0.024361036717891693,
-0.027488645166158676,
0.13959281146526337,
-0.02729720249772072,
-0.312753826379776,
0.07777934521436691,
0.14004415273666382,
-0.1352996826171875,
-0.1218782588839531,
0.0924047976732254,
0.1922764778137207,
-0.20829927921295166,
-0.16518625617027283,
-0.10201777517795563,
0.3825666010379791,
0.03856852650642395,
0.35449713468551636,
0.0017309326212853193,
-0.1745239943265915,
-0.1743299514055252,
0.022014865651726723,
0.09646835178136826,
-0.29469895362854004,
0.3090137541294098,
0.2508268654346466,
0.04745538905262947,
-0.7139672040939331,
-0.1418226659297943,
-0.0674922987818718,
0.13103459775447845,
-0.49036574363708496,
0.14321497082710266,
0.05345825478434563,
-0.16234079003334045,
-0.022210920229554176,
0.30722829699516296,
0.5712039470672607,
0.12553435564041138,
0.10710173100233078,
0.24869640171527863,
-0.08511136472225189,
-0.03662822023034096,
0.04359441623091698,
0.35036057233810425,
0.06011449545621872,
0.024384044110774994,
0.39319881796836853,
0.14803393185138702,
-0.24035626649856567,
0.1648116111755371,
0.15352551639080048,
0.2381441742181778,
-0.21554434299468994,
-0.18562817573547363,
0.02543151006102562,
-0.11250856518745422,
-0.21437232196331024,
-0.1487719863653183,
-0.17262496054172516,
-0.0003798011166509241,
0.3418622612953186,
-0.2883596122264862,
0.009608368389308453,
-0.28535351157188416,
0.09525200724601746,
-0.16893236339092255,
0.21294283866882324,
0.5421631932258606,
0.18654993176460266,
-0.09287072718143463,
-0.20224063098430634,
-0.4226510226726532,
0.1845499873161316,
-0.5492640137672424,
-0.32952210307121277,
-0.1850748211145401,
0.33404427766799927,
0.1740218847990036,
0.4482901692390442,
0.4680609107017517,
-0.09045889973640442,
-0.23687630891799927,
0.39941754937171936,
-0.3604360520839691,
-0.31179681420326233,
0.07566843926906586,
0.059529248625040054,
0.08115111291408539,
-0.20639413595199585,
0.2447948008775711,
-0.24209505319595337,
0.043756067752838135,
-0.06156088784337044,
-0.20383873581886292,
0.13012102246284485,
-0.2715985178947449,
0.33235132694244385,
0.037063293159008026,
0.3929242193698883,
0.1993747353553772,
-0.4113181233406067,
-0.3911920189857483,
-0.28477129340171814,
-0.08752574026584625,
0.11739352345466614,
0.16523462533950806,
0.4006870687007904,
-0.33028313517570496,
-0.19969874620437622,
-0.21204835176467896,
0.30723273754119873,
-0.14079789817333221,
-0.23166587948799133,
0.15351058542728424,
-0.24092736840248108,
0.13079559803009033,
0.2688875198364258,
-0.036486927419900894,
0.011967371217906475,
-0.008522416464984417,
0.16235043108463287,
-0.2913174629211426,
-0.20299527049064636,
0.397686243057251,
0.038588330149650574,
-0.2475547194480896,
-0.0036507504992187023,
0.11979985237121582,
0.09906453639268875,
-0.17008566856384277,
-0.24216344952583313,
0.08828021585941315,
0.36988744139671326,
-0.07661900669336319,
-0.2562713325023651,
0.09859529882669449,
-0.012700658291578293,
0.14159943163394928,
0.029589658603072166,
0.3484927713871002,
-0.026365503668785095,
-0.3384764790534973,
0.36631035804748535,
-0.04252810403704643
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | @lhoestq thanks for the update. The directory specified by the OSError ie.
```
1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json
```
was not actually in that directory so I can't delete it. | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 26 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
@lhoestq thanks for the update. The directory specified by the OSError ie.
```
1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json
```
was not actually in that directory so I can't delete it. | [
-0.30950233340263367,
-0.1504017859697342,
-0.12485217303037643,
0.16719232499599457,
0.06269387900829315,
0.2322174310684204,
0.0452464260160923,
0.2481846958398819,
0.020849840715527534,
-0.06715644896030426,
-0.07025183737277985,
0.16330167651176453,
0.2610350549221039,
-0.11219348013401031,
-0.13314658403396606,
0.20495687425136566,
0.06651270389556885,
-0.22189152240753174,
-0.09560135006904602,
0.12066270411014557,
-0.09179564565420151,
0.15939106047153473,
-0.12834413349628448,
-0.11982613056898117,
-0.1411830633878708,
-0.12013675272464752,
-0.13452452421188354,
-0.03057743050158024,
-0.20299018919467926,
-0.30591097474098206,
0.22046956419944763,
0.11682815104722977,
-0.029211988672614098,
0.6436533331871033,
-0.00010986375855281949,
-0.14217467606067657,
0.2654625177383423,
0.0524744987487793,
-0.4409988820552826,
-0.5108646750450134,
-0.26191622018814087,
-0.12985309958457947,
0.05907274782657623,
-0.03124440647661686,
0.21319949626922607,
0.08362327516078949,
0.12284721434116364,
-0.3912443220615387,
0.21179722249507904,
0.48872584104537964,
0.18866240978240967,
0.3496261537075043,
0.2179189771413803,
-0.017298342660069466,
0.17924807965755463,
0.072833351790905,
0.07802004367113113,
0.39805108308792114,
0.18222376704216003,
-0.14137214422225952,
0.1812857687473297,
0.021810540929436684,
-0.1129293367266655,
0.2673599123954773,
-0.11714422702789307,
-0.0004772393440362066,
0.1453634649515152,
-0.46852463483810425,
-0.021649068221449852,
0.12692628800868988,
0.9099081754684448,
-0.018525274470448494,
-0.4328920543193817,
-0.17541679739952087,
0.05276388302445412,
0.08158963173627853,
0.4559943974018097,
0.474284827709198,
-0.3605518341064453,
0.20564979314804077,
-0.25973108410835266,
-0.019778646528720856,
-0.07293210178613663,
0.3834027647972107,
0.09014426171779633,
0.047659650444984436,
0.07351256906986237,
0.23175844550132751,
0.09986429661512375,
-0.04926483705639839,
0.25353702902793884,
-0.36951690912246704,
0.008993943221867085,
-0.026194287464022636,
-0.32412189245224,
-0.10762003064155579,
0.0020492877811193466,
0.15238383412361145,
0.1226416528224945,
0.01442527025938034,
-0.017225956544280052,
-0.2915512025356293,
-0.21474820375442505,
0.1797131448984146,
0.42885035276412964,
0.0015061063459143043,
-0.03489341959357262,
0.13497141003608704,
0.2598968744277954,
-0.026088954880833626,
-0.01936725527048111,
0.08101177960634232,
0.11838411539793015,
0.008972249925136566,
0.08358243852853775,
-0.13307204842567444,
0.39932575821876526,
-0.20176754891872406,
-0.25723934173583984,
-0.028892621397972107,
0.04334692656993866,
-0.11790317296981812,
-0.22800008952617645,
0.15836173295974731,
-0.4906696379184723,
0.2088637799024582,
0.07936492562294006,
0.13702349364757538,
-0.3628246486186981,
-0.3598407208919525,
-0.043410152196884155,
0.11027248948812485,
-0.16389569640159607,
-0.170721173286438,
-0.05933878943324089,
-0.11054736375808716,
0.051140282303094864,
0.12252882122993469,
-0.015533645637333393,
-0.30696162581443787,
-0.07150540500879288,
-0.17626971006393433,
-0.12453313916921616,
0.2396804690361023,
-0.1146278828382492,
0.4079996943473816,
0.10039627552032471,
0.11692730337381363,
-0.08203382045030594,
0.0389699712395668,
-0.3303118944168091,
-0.34034019708633423,
-0.1272413581609726,
0.2374206930398941,
-0.21339499950408936,
-0.3039638102054596,
-0.1250537484884262,
-0.11042359471321106,
0.2541174590587616,
0.03372344747185707,
-0.07938465476036072,
-0.09632274508476257,
0.01660955883562565,
-0.0846722349524498,
-0.15747085213661194,
0.34290263056755066,
-0.5084065794944763,
0.32132863998413086,
-0.19658367335796356,
0.10419918596744537,
0.18169422447681427,
0.31821414828300476,
-0.14965029060840607,
0.09354595094919205,
-0.27713245153427124,
-0.12049593776464462,
0.2729804217815399,
-0.2532716691493988,
-0.6182511448860168,
0.08208886533975601,
-0.36106571555137634,
0.007553377188742161,
-0.08650551736354828,
0.28500881791114807,
0.27978959679603577,
-0.13807815313339233,
-0.01320874784141779,
0.37522608041763306,
-0.2172141820192337,
0.07250846922397614,
-0.3490179777145386,
-0.184713214635849,
-0.021369796246290207,
0.1756252944469452,
-0.018750563263893127,
-0.003389674238860607,
-0.1430779993534088,
-0.03358016535639763,
0.3587704300880432,
0.3870672285556793,
0.14833436906337738,
0.3216244876384735,
0.02438252791762352,
0.2783788740634918,
0.053456928580999374,
-0.2024548202753067,
-0.33106034994125366,
0.16127155721187592,
0.5941177606582642,
0.13957877457141876,
-0.27064648270606995,
0.00034194570616818964,
-0.4284191429615021,
0.08667520433664322,
-0.021327270194888115,
0.057129960507154465,
0.018307648599147797,
0.18153929710388184,
0.2960182726383209,
0.24787485599517822,
-0.01151023618876934,
0.45573925971984863,
-0.05790337175130844,
0.2721845507621765,
-0.21146222949028015,
0.2506321668624878,
-0.21678927540779114,
-0.12029251456260681,
0.15606975555419922,
-0.35092735290527344,
0.08366705477237701,
-0.22689521312713623,
-0.2199627161026001,
0.3265957832336426,
0.04389183968305588,
0.11968429386615753,
0.024989960715174675,
-0.05961858481168747,
0.22249025106430054,
-0.20030279457569122,
-0.13457223773002625,
0.4064633846282959,
0.13302528858184814,
0.09982229769229889,
-0.27010178565979004,
-0.01968965120613575,
0.2064271867275238,
0.22666224837303162,
-0.1862727701663971,
0.11162560433149338,
0.09089585393667221,
0.039853546768426895,
0.2047291100025177,
-0.04703975468873978,
0.4167722463607788,
-0.3639964461326599,
0.05356202647089958,
-0.2369760274887085,
0.025681335479021072,
0.33216536045074463,
0.3510744869709015,
0.0703330710530281,
-0.18286463618278503,
0.25405600666999817,
0.15280599892139435,
-0.13090771436691284,
-0.07354094088077545,
0.34772083163261414,
0.2638314366340637,
0.17640981078147888,
0.16167491674423218,
-0.12413214892148972,
-0.11382747441530228,
-0.12204563617706299,
0.18974119424819946,
0.12620577216148376,
-0.04369860142469406,
-0.01828763261437416,
0.15337277948856354,
-0.016834868118166924,
-0.11885584145784378,
-0.4593299925327301,
0.07277413457632065,
0.4072105884552002,
-0.08155831694602966,
0.07310360670089722,
-0.2246205061674118,
-0.1491614431142807,
0.19985038042068481,
-0.05778874084353447,
-0.3491259217262268,
-0.5447544455528259,
-0.05164458602666855,
0.36560869216918945,
-0.09032686799764633,
0.04068901762366295,
-0.0846576914191246,
-0.11737249046564102,
0.4572756588459015,
-0.15805360674858093,
-0.01076481956988573,
-0.13319183886051178,
-0.04783187806606293,
0.07347273826599121,
0.24265508353710175,
-0.19466128945350647,
0.33404287695884705,
-0.2936217188835144,
-0.22669124603271484,
-0.5305719375610352,
-0.018986636772751808,
0.016831187531352043,
-0.17067427933216095,
0.2737114429473877,
-0.12210192531347275,
0.532504141330719,
0.05822042375802994,
0.0858035460114479,
0.08696397393941879,
-0.25664544105529785,
-0.12342429161071777,
-0.07166272401809692,
0.05918777361512184,
0.17489895224571228,
-0.010141082108020782,
-0.3868834376335144,
-0.19185099005699158,
-0.40455886721611023,
0.10636138170957565,
-0.14773724973201752,
0.021678945049643517,
0.10280492901802063,
0.1835913211107254,
0.02435143105685711,
0.03311600536108017,
0.14114156365394592,
-0.12651567161083221,
-0.45222529768943787,
0.43093347549438477,
-0.06646984070539474,
-0.2162589728832245,
0.10431791096925735,
0.22563891112804413,
-0.04982757940888405,
0.21527628600597382,
-0.7514488101005554,
-0.014527837745845318,
-0.27832719683647156,
0.26973095536231995,
-0.17531713843345642,
-0.18971629440784454,
0.21623718738555908,
-0.42992493510246277,
-0.08695805072784424,
0.04756549000740051,
0.03490849956870079,
-0.059254832565784454,
0.1991393268108368,
0.36763834953308105,
-0.07874806970357895,
0.3557336926460266,
-0.012954579666256905,
0.19981800019741058,
0.11844385415315628,
0.04964955151081085,
0.17004629969596863,
0.16907517611980438,
0.279587060213089,
0.012160230427980423,
-0.23396803438663483,
-0.058517083525657654,
-0.0014459750382229686,
-0.23477470874786377,
0.12524986267089844,
0.045606471598148346,
-0.1891673356294632,
-0.15274271368980408,
-0.06853380054235458,
-0.2882631719112396,
-0.24390818178653717,
-0.06031765416264534,
-0.10267667472362518,
0.017027946189045906,
0.25326207280158997,
0.09909030795097351,
0.011423342861235142,
-0.2779010534286499,
-0.07806991785764694,
0.1083371564745903,
-0.039546772837638855,
-0.18683232367038727,
-0.4770646393299103,
0.08528550714254379,
-0.38773027062416077,
0.24473018944263458,
-0.00030163073097355664,
0.2891824543476105,
-0.03961927071213722,
0.11813240498304367,
0.17264749109745026,
-0.03415608033537865,
0.6463543772697449,
-0.15884175896644592,
0.1628614366054535,
-0.03755592554807663,
0.28649699687957764,
-0.45133161544799805,
-0.05551745742559433,
0.054759297519922256,
0.3185352087020874,
0.5014466643333435,
-0.002870467957109213,
-0.26230373978614807,
0.01884983479976654,
0.10093530267477036,
0.29595720767974854,
0.05386488884687424,
-0.4968961477279663,
0.0795542523264885,
-0.20460087060928345,
-0.26234492659568787,
0.1263025999069214,
0.10915947705507278,
0.06863544881343842,
0.035088036209344864,
-0.10384809225797653,
0.2448897808790207,
0.08552465587854385,
0.052043016999959946,
-0.17044579982757568,
0.12983308732509613,
-0.2464815378189087,
0.49578309059143066,
0.04544709622859955,
-0.20597724616527557,
0.3695716857910156,
0.6841817498207092,
0.16129881143569946,
-0.46281909942626953,
0.0990600436925888,
-0.032214902341365814,
-0.11574642360210419,
0.2643626630306244,
0.11724739521741867,
-0.09795046597719193,
-0.19942043721675873,
0.3689548671245575,
0.02087603136897087,
0.1572161465883255,
0.27184218168258667,
0.08102371543645859,
-0.45278048515319824,
-0.4301779568195343,
0.11389422416687012,
0.03756501153111458,
0.028946569189429283,
0.630308210849762,
-0.060651689767837524,
0.11596852540969849,
0.34180474281311035,
-0.06494616717100143,
1.0060210227966309,
-0.22833466529846191,
0.10648133605718613,
0.049246497452259064,
-0.0904068723320961,
0.4886730909347534,
-0.41136443614959717,
0.07169004529714584,
-0.11770199239253998,
0.013557620346546173,
0.03114922158420086,
-0.10909330099821091,
-0.19181019067764282,
0.3354751169681549,
-0.24781645834445953,
0.09340975433588028,
-0.19122056663036346,
0.1450519561767578,
-0.12412744760513306,
0.22345581650733948,
-0.2989010512828827,
-0.020694751292467117,
-0.1991697996854782,
0.22473734617233276,
-0.019831836223602295,
0.25062280893325806,
-0.010072763077914715,
0.2096996307373047,
-0.14631235599517822,
-0.08042626082897186,
-0.6208150386810303,
0.04532657191157341,
-0.019543984904885292,
0.0316738598048687,
-0.36558178067207336,
-0.1974220722913742,
-0.04378176108002663,
0.23668675124645233,
0.14167176187038422,
0.2241816222667694,
-0.016339534893631935,
0.23414203524589539,
-0.10627147555351257,
-0.1597447544336319,
-0.0008495115907862782,
-0.14969876408576965,
0.1444966197013855,
0.013577032834291458,
-0.2735586166381836,
0.21436670422554016,
-0.10918226838111877,
-0.22397491335868835,
0.21205827593803406,
0.23895300924777985,
0.07944463938474655,
-0.13656674325466156,
0.041968394070863724,
-0.10806876420974731,
0.12408354133367538,
-0.2395191788673401,
0.13144071400165558,
0.3121677041053772,
0.1640823483467102,
0.2492801398038864,
-0.12059370428323746,
-0.3549574911594391,
-0.34371495246887207,
0.4136877954006195,
0.05358406528830528,
-0.007390513084828854,
0.33067283034324646,
0.3128749430179596,
-0.40307292342185974,
-0.30925607681274414,
0.09240734577178955,
-0.5343804359436035,
-0.3205619752407074,
0.33284899592399597,
-0.41576167941093445,
0.3471696078777313,
-0.06278859078884125,
-0.13781818747520447,
0.20301640033721924,
0.10542139410972595,
0.12336127460002899,
-0.6414016485214233,
-0.06478749215602875,
-0.08365320414304733,
-0.20539003610610962,
0.02405615895986557,
-0.14605753123760223,
-0.199772447347641,
0.11275794357061386,
-0.14220382273197174,
-0.2951270341873169,
0.048470284789800644,
-0.2745978534221649,
0.0958569124341011,
0.36830994486808777,
-0.09025373309850693,
0.41972050070762634,
-0.06238705664873123,
0.08878137916326523,
0.10033662617206573,
-0.13114191591739655,
-0.14709976315498352,
0.01645287498831749,
0.13901126384735107,
-0.07666756957769394,
-0.19155500829219818,
0.10974229872226715,
-0.506502628326416,
-0.08023861795663834,
0.0977504700422287,
-0.09535032510757446,
0.13450214266777039,
0.017867963761091232,
-0.2570759654045105,
0.17757397890090942,
-0.028509845957159996,
0.04426797851920128,
0.22218258678913116,
-0.10416314005851746,
0.5471836924552917,
0.19643352925777435,
0.27975472807884216,
0.14885704219341278,
0.014890557155013084,
-0.5414074659347534,
-0.0015544724883511662,
-0.09194646030664444,
0.05436030775308609,
0.38109177350997925,
-0.31146350502967834,
0.07288394868373871,
0.34269601106643677,
0.4172762334346771,
0.5035363435745239,
-0.03431376442313194,
-0.16952577233314514,
0.2993561923503876,
0.27286258339881897,
0.0618402399122715,
-0.16161756217479706,
0.348934143781662,
0.0864299088716507,
-0.009273572824895382,
0.18481943011283875,
-0.1044386699795723,
-0.05870143324136734,
0.18565236032009125,
0.23899976909160614,
0.7759048938751221,
0.05146202817559242,
0.17268486320972443,
0.09578477591276169,
0.003099947702139616,
-0.01930057816207409,
0.39798176288604736,
0.1976182758808136,
0.06594005227088928,
0.08084619045257568,
-0.13156554102897644,
-0.08376692980527878,
0.11718309670686722,
0.14860932528972626,
-0.06263910233974457,
-0.33239486813545227,
0.03463117033243179,
0.10821130871772766,
-0.1654984951019287,
-0.008060570806264877,
0.205262690782547,
0.07910381257534027,
-0.2886407971382141,
-0.06635748594999313,
-0.20516444742679596,
0.2875976264476776,
0.046893615275621414,
0.27135300636291504,
0.19861872494220734,
-0.14608897268772125,
-0.029880085960030556,
0.119513601064682,
-0.004729968495666981,
-0.23542162775993347,
0.23226481676101685,
0.2363518476486206,
0.10513255000114441,
-0.5865026712417603,
-0.04479821398854256,
-0.14857862889766693,
0.19001968204975128,
-0.47240081429481506,
0.02667451836168766,
0.02915249951183796,
-0.24484430253505707,
0.00996995996683836,
0.2574674189090729,
0.5680676698684692,
0.21438346803188324,
-0.053900863975286484,
0.122360460460186,
-0.1421366035938263,
-0.05924133211374283,
-0.01381436362862587,
0.4059750735759735,
0.00000492945582664106,
-0.07878214865922928,
0.45213279128074646,
0.1227860152721405,
-0.20824740827083588,
0.16543853282928467,
0.10538771748542786,
0.26683706045150757,
-0.18396055698394775,
-0.16742020845413208,
-0.03026735410094261,
-0.07025934010744095,
-0.30139821767807007,
-0.2018900364637375,
-0.1886165589094162,
-0.05045659467577934,
0.39659583568573,
-0.3332307040691376,
-0.00506873382255435,
-0.19033624231815338,
0.09333421289920807,
-0.170590341091156,
0.3120706081390381,
0.636437177658081,
0.28708842396736145,
-0.14289435744285583,
-0.2970390319824219,
-0.38844382762908936,
0.15406891703605652,
-0.589697539806366,
-0.1935308426618576,
-0.20761923491954803,
0.46320658922195435,
0.08989395946264267,
0.32737278938293457,
0.42164015769958496,
0.05159362033009529,
-0.4094788730144501,
0.4779760539531708,
-0.3611391484737396,
-0.39322665333747864,
0.04186838120222092,
0.07663258910179138,
0.046063415706157684,
-0.26485615968704224,
0.11915738135576248,
-0.22472238540649414,
-0.0011505557922646403,
-0.19988331198692322,
-0.18519456684589386,
0.1524484008550644,
-0.045105595141649246,
0.4760362505912781,
0.08967234939336777,
0.3005131781101227,
0.1971118152141571,
-0.5851709842681885,
-0.4740627110004425,
-0.28019455075263977,
-0.07047321647405624,
0.09131357818841934,
0.08886881172657013,
0.44651567935943604,
-0.42782315611839294,
-0.0006203878438100219,
-0.14126674830913544,
0.1998656541109085,
-0.16424018144607544,
-0.20477354526519775,
0.15257234871387482,
-0.18962644040584564,
-0.0411878265440464,
0.40743833780288696,
-0.038551632314920425,
0.09420184791088104,
0.07150568813085556,
0.19402781128883362,
-0.2873760759830475,
-0.33364805579185486,
0.3049749732017517,
0.019307870417833328,
-0.39061594009399414,
0.05596156790852547,
0.10587562620639801,
0.0637912005186081,
-0.010458644479513168,
-0.23752236366271973,
0.10773452371358871,
0.43975338339805603,
-0.033389296382665634,
-0.2493492215871811,
0.10372442752122879,
-0.007917234674096107,
0.1705268770456314,
-0.016954943537712097,
0.5145735144615173,
0.017730368301272392,
-0.3262771964073181,
0.38464483618736267,
-0.11361373215913773
] |