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.15531975030899048, -0.10023094713687897, -0.07032088935375214, -0.07981614768505096, -0.104254350066185, -0.18798762559890747, 0.01040300726890564, 0.27286356687545776, -0.009848978370428085, -0.08414009213447571, 0.2926146686077118, -0.07787517458200455, -0.13245651125907898, 0.21589021384716034, -0.0562291219830513, 0.17054539918899536, 0.2003229260444641, -0.04079771041870117, -0.0923328846693039, 0.02792298048734665, 0.022608809173107147, -0.06870293617248535, 0.08319979906082153, 0.04363047704100609, -0.1837833970785141, 0.005400864407420158, -0.014811558648943901, 0.15649643540382385, -0.43976572155952454, -0.4695698320865631, 0.14524710178375244, 0.23224006593227386, 0.02510657161474228, 0.5705344676971436, -0.00010436370939714834, -0.0003457963466644287, 0.169486403465271, -0.04060111939907074, -0.14010202884674072, -0.21546302735805511, -0.4901066720485687, -0.44479528069496155, -0.07006335258483887, -0.008354775607585907, 0.12880679965019226, 0.05286795645952225, -0.13250048458576202, 0.02384556084871292, 0.384845495223999, 0.10555251687765121, 0.2386108785867691, -0.10285163670778275, 0.18124066293239594, 0.013769678771495819, 0.3920089304447174, 0.5474529266357422, -0.0666346624493599, 0.30320021510124207, 0.05401802808046341, 0.0006766496226191521, 0.06110614910721779, 0.17410795390605927, -0.08237249404191971, -0.28666993975639343, 0.22701933979988098, -0.1779913604259491, 0.5181735157966614, -0.42435336112976074, -0.24158355593681335, -0.0831172838807106, 0.05237922444939613, -0.17814648151397705, -0.40890365839004517, -0.2419358491897583, -0.14994710683822632, 0.0076336320489645, 0.0677805095911026, 0.24686458706855774, 0.03974023088812828, 0.0036496631801128387, -0.37736496329307556, -0.27180925011634827, -0.004407934844493866, 0.04920414835214615, 0.1419411301612854, -0.16262903809547424, 0.0664263665676117, -0.1270381212234497, 0.2942221164703369, -0.04732781648635864, -0.14698350429534912, -0.36763426661491394, -0.24133381247520447, -0.012587281875312328, -0.10261379182338715, -0.1957472264766693, -0.2462070882320404, -0.3248272240161896, 0.425130695104599, 0.38896799087524414, -0.3832732141017914, 0.013739971444010735, -0.030489303171634674, -0.08101627975702286, 0.20718435943126678, 0.11785800755023956, -0.010489948093891144, 0.05848907679319382, 0.5307134985923767, 0.3144405782222748, 0.005158044397830963, 0.3255855441093445, 0.3015693724155426, 0.0030475580133497715, 0.03444693610072136, 0.574118435382843, 0.4289444088935852, -0.2629207670688629, 0.12764763832092285, 0.19597388803958893, -0.3412008285522461, -0.3845081031322479, 0.07113100588321686, -0.0861722007393837, 0.11032518744468689, 0.027132727205753326, -0.11471141129732132, 0.06680183112621307, 0.0451907142996788, -0.03808599337935448, -0.30790308117866516, -0.14148560166358948, -0.3744000196456909, -0.06853028386831284, 0.1860402673482895, -0.45710426568984985, 0.14916765689849854, 0.4325246512889862, -0.06803794205188751, -0.19928531348705292, 0.0445522740483284, 0.12922535836696625, 0.05558646470308304, 0.2961198389530182, -0.1537979394197464, -0.452628493309021, 0.22359654307365417, 0.13133291900157928, -0.06689941138029099, 0.19400441646575928, -0.15989995002746582, -0.26162219047546387, -0.10497665405273438, 0.29776570200920105, -0.14827203750610352, 0.3071560561656952, -0.523766279220581, 0.03637244179844856, -0.004483453929424286, 0.35067063570022583, 0.4910378158092499, 0.3025485873222351, 0.32807859778404236, -0.16859406232833862, 0.06175749748945236, 0.19034533202648163, 0.32351192831993103, -0.0516866073012352, 0.0623050294816494, -0.28773626685142517, 0.10950460284948349, 0.14507406949996948, -0.31215935945510864, 0.017556771636009216, -0.00523599237203598, -0.13128210604190826, 0.010776735842227936, -0.07140655070543289, -0.11198792606592178, -0.09892956912517548, -0.36668533086776733, 0.06940234452486038, -0.04073741286993027, -0.10077667981386185, 0.2079564779996872, -0.3201748728752136, -0.09479425847530365, 0.20508205890655518, -0.14812283217906952, 0.02089834399521351, -0.2919878363609314, -0.6061382293701172, -0.16365623474121094, -0.06343856453895569, 0.12491492927074432, 0.2275637984275818, 0.3607698976993561, -0.005030942615121603, -0.02836146205663681, -0.17140212655067444, -0.009397830814123154, 0.11250690370798111, 0.3421369194984436, -0.14967812597751617, -0.24154193699359894, 0.13224652409553528, -0.3545883297920227, 0.09114063531160355, -0.07851311564445496, -0.009775333106517792, 0.03444886952638626, -0.3157886862754822, 0.3412793278694153, -0.0440533384680748, -0.12080161273479462, -0.11415097117424011, 0.24151715636253357, 0.0959513783454895, -0.17473319172859192, -0.20392119884490967, -0.2074061930179596, 0.26019150018692017, -0.2408308982849121, 0.3018658459186554, 0.1300133764743805, 0.10263761878013611, -0.14118100702762604, -0.036453600972890854, -0.025096537545323372, 0.36193642020225525, 0.23630475997924805, -0.08991732448339462, -0.05915883928537369, 0.16876070201396942, -0.04906287416815758, 0.20357096195220947, 0.22469490766525269, 0.42524170875549316, 0.37361544370651245, -0.10268162190914154, 0.0626007467508316, -0.09179316461086273, -0.07872460037469864, 0.02459406852722168, -0.3291269838809967, 0.32803720235824585, 0.07369399070739746, -0.1394648551940918, -0.17403195798397064, -0.10333307087421417, -0.17407432198524475, -0.22026950120925903, -0.17077213525772095, -0.012950584292411804, -0.16909818351268768, 0.1943647712469101, -0.336591511964798, 0.22236944735050201, -0.2772085666656494, 0.14857842028141022, 0.01505228504538536, -0.2516065239906311, -0.10240078717470169, 0.06829813867807388, -0.0059668272733688354, -0.13271473348140717, 0.12417054921388626, 0.3773832321166992, 0.12787435948848724, 0.17009972035884857, 0.004273947328329086, 0.020151596516370773, 0.25728312134742737, -0.11643563210964203, 0.35332560539245605, 0.14430686831474304, -0.10544468462467194, 0.05406457930803299, 0.3364555835723877, 0.1812187135219574, 0.06433234363794327, 0.3469198942184448, -0.003324562683701515, 0.03525850921869278, -0.20840699970722198, -0.04598452150821686, -0.26021039485931396, -0.5283412933349609, 0.21923714876174927, -0.11063773185014725, -0.3552158772945404, -0.008503539487719536, -0.045366354286670685, 0.04741793870925903, -0.524871826171875, 0.13602985441684723, 0.18358109891414642, 0.2905265688896179, -0.31780317425727844, -0.11997737735509872, 0.12631559371948242, -0.022595219314098358, 0.012344226241111755, 0.1285599321126938, 0.3631601631641388, -0.22668015956878662, 0.45945149660110474, 0.2389804869890213, -0.16955673694610596, -0.4726405143737793, -0.34341275691986084, 0.019129972904920578, -0.20393547415733337, -0.11797492206096649, 0.009818919003009796, -0.09893058240413666, 0.09215272963047028, -0.35854071378707886, -0.32571226358413696, -0.018773561343550682, -0.37300437688827515, -0.16009604930877686, 0.06959538161754608, 0.06288556009531021, -0.23461700975894928, -0.114040307700634, -0.3865901827812195, -0.2821526527404785, 0.4793556332588196, -0.016433335840702057, 0.1156594306230545, -0.043173544108867645, -0.29237738251686096, -0.04591793194413185, 0.08748229593038559, 0.13663941621780396, -0.000044732820242643356, -0.36093276739120483, 0.03256664425134659, -0.040660008788108826, -0.029347021132707596, 0.352609783411026, 0.185491144657135, -0.43024036288261414, 0.07125099003314972, -0.3217610716819763, -0.15581855177879333, -0.05208447575569153, 0.48644453287124634, 0.31411951780319214, -0.09737364947795868, 0.07108013331890106, 0.10355065762996674, -0.19190005958080292, 0.055089302361011505, -0.18161140382289886, 0.1472240537405014, 0.3454881012439728, 0.2857186794281006, 0.03790006786584854, 0.14586713910102844, 0.025497179478406906, 0.7140874862670898, 0.37785014510154724, -0.05965739116072655, 0.21033772826194763, 0.3106972575187683, -0.027718398720026016, 0.003990799188613892, -0.2601567208766937, 0.06504680961370468, -0.10124298930168152, -0.000020891427993774414, 0.08670371025800705, -0.12957841157913208, -0.12296503037214279, -0.011211153119802475, -0.47771474719047546, 0.00915539264678955, -0.4146764278411865, -0.23966337740421295, -0.3181837499141693, 0.1842499077320099, -0.022526197135448456, -0.4854891896247864, 0.1313808411359787, 0.053771283477544785, 0.23057617247104645, 0.21597151458263397, 0.21420590579509735, 0.18121570348739624, -0.02025902271270752, -0.0510849729180336, -0.12007338553667068, -0.06772583723068237, -0.0043314117938280106, 0.14525093138217926, 0.09058025479316711, -0.1670401692390442, 0.03180579096078873, 0.06955048441886902, 0.3299906849861145, -0.014868119731545448, 0.14029152691364288, -0.1708069145679474, -0.5094844102859497, 0.6086313724517822, -0.31859374046325684, 0.13940243422985077, 0.29909852147102356, 0.511225700378418, 0.4397636353969574, -0.295454204082489, -0.19531667232513428, 0.2071230709552765, 0.03255590423941612, 0.1978360414505005, 0.17734965682029724, 0.14497703313827515, 0.2783072888851166, -0.49038165807724, 0.28877443075180054, 0.1548328995704651, -0.2504824697971344, -0.15517577528953552, -0.003905750811100006, -0.027050653472542763, 0.12646320462226868, -0.026304736733436584, -0.24539846181869507, 0.009127533063292503, -0.10943800210952759, 0.1734457015991211, 0.13292016088962555, 0.0698280856013298, 0.41521936655044556, 0.594658613204956, 0.13493412733078003, -0.38919797539711, -0.04820176959037781, -0.175073504447937, -0.07428347319364548, 0.3271433413028717, 0.19835063815116882, 0.24822810292243958, 0.020348815247416496, 0.177686870098114, -0.12347238510847092, -0.2662383019924164, -0.20336651802062988, -0.038491103798151016, -0.07674254477024078, 0.007589764893054962, 0.0873296707868576, -0.04589767009019852, -0.0909920260310173, 0.013048216700553894, 0.1399984359741211, -0.366100013256073, 0.16378472745418549, 0.6180501580238342, 0.9825448989868164, 0.3975675106048584, 0.08903336524963379, -0.25465720891952515, -0.3273831009864807, 0.32599058747291565, -0.340107798576355, -0.16645145416259766, -0.24701717495918274, -0.12358804047107697, -0.18424606323242188, -0.3403114974498749, -0.03869441896677017, -0.48984766006469727, -0.35285624861717224, 0.13511325418949127, -0.21805503964424133, 0.5279181599617004, 0.008177720010280609, 0.12338632345199585, 0.19101889431476593, -0.12231411039829254, 0.25515127182006836, 0.1982704997062683, 0.06181075796484947, 0.10409577190876007, -0.00402781181037426, -0.4687901735305786, -0.002232056111097336, 0.020538557320833206, -0.377269446849823, 0.08914704620838165, -0.34377798438072205, 0.03884657472372055, -0.20635315775871277, -0.31605178117752075, 0.11582718789577484, -0.08704768121242523, 0.6059408187866211, 0.16663071513175964, -0.07945175468921661, -0.044620681554079056, 0.29138895869255066, 0.4645244777202606, -0.2288517951965332, -0.21953073143959045, 0.5223724246025085, -0.21336409449577332, -0.1302180290222168, -0.20476195216178894, -0.08033479750156403, -0.23709243535995483, -0.26094669103622437, -0.1280432492494583, -0.3282320499420166, 0.07950221747159958, 0.04171382263302803, 0.2636536955833435, -0.09107047319412231, -0.16760630905628204, 0.18599317967891693, 0.1154860109090805, -0.10757318884134293, -0.11858441680669785, -0.16952016949653625, -0.2610401511192322, -0.0678161233663559, 0.2016008496284485, 0.1616058051586151, -0.12060702592134476, -0.07676410675048828, 0.09965769946575165, -0.24433693289756775, -0.22078973054885864, -0.2072920799255371, 0.10598742216825485, -0.13946887850761414, 0.09298096597194672, -0.5486779808998108, -0.32993391156196594, 0.051746368408203125, 0.24619311094284058, 0.27941563725471497, 0.3304987847805023, 0.11800003051757812, -0.09977070987224579, -0.2244497388601303, 0.2186433970928192, -0.32792574167251587, 0.16864940524101257, 0.0235847607254982, 0.15881147980690002, -0.026009775698184967, 0.040430840104818344, -0.3905956447124481, 0.16031549870967865, -0.1254814714193344, -0.02112668752670288, -0.2255210429430008, -0.10175298899412155, -0.0006310837343335152, -0.30818644165992737, 0.03248739242553711, 0.023433592170476913, -0.19575649499893188, -0.28301528096199036, 0.09266887605190277, 0.06569582223892212, 0.06478913128376007, -0.05701387673616409, -0.05746075510978699, -0.10815784335136414, 0.08275303989648819, 0.2720326781272888, 0.23969241976737976, -0.15849140286445618, 0.10971303284168243, -0.0322246216237545, 0.17108863592147827, 0.11058498173952103, -0.02477351762354374, 0.08924205601215363, 0.014632649719715118, -0.2658020853996277, -0.035375308245420456, 0.2671601176261902, -0.18174590170383453, -0.21714402735233307, -0.2685391306877136, 0.1888347566127777, 0.1056341901421547, 0.5840901732444763, 0.2028803825378418, 0.14421670138835907, -0.40508270263671875, 0.17540867626667023, -0.053198251873254776, -0.0036357268691062927, -0.16923534870147705, -0.0969405248761177, -0.08496207743883133, 0.27936026453971863, -0.08671969920396805, -0.3035971224308014, 0.2713831961154938, 0.18818144500255585, 0.0007483474910259247, 0.10497083514928818, 0.528075098991394, 0.12962056696414948, -0.18965323269367218, 0.4221358895301819, 0.2712429463863373, -0.08767566829919815, 0.49489980936050415, 0.47023293375968933, -0.11318211257457733, -0.02032490447163582, -0.08273614197969437, 0.11661489307880402, 0.2306870073080063, -0.25409644842147827, 0.12847208976745605, 0.29621919989585876, 0.6462965607643127, -0.16888390481472015, 0.3935551941394806, -0.03309616073966026, 0.34373971819877625, 0.19799339771270752, 0.058740079402923584, -0.24604946374893188, 0.39270907640457153, 0.2117074728012085, 0.330151230096817, -0.6189894080162048, 0.13637332618236542, 0.49140363931655884, 0.04928272217512131, 0.19958184659481049, -0.4001062512397766, -0.04923272505402565, -0.05847582221031189, -0.0483139306306839, -0.07818284630775452, 0.1634962260723114, 0.12373705208301544, 0.28296682238578796, 0.006584443151950836, -0.08837804943323135, -0.04344063997268677, 0.18504858016967773, 0.2415619194507599, -0.11699788272380829, -0.18117256462574005, 0.35775548219680786, -0.2761981785297394, 0.0664932131767273, 0.2154608517885208, 0.1350686252117157, -0.0747159793972969, -0.06863388419151306, 0.18023492395877838, 0.45039471983909607, -0.16993381083011627, 0.02251214161515236, 0.05574929714202881, -0.16256774961948395, 0.15771660208702087, 0.08014677464962006, 0.2580326497554779, -0.053340841084718704, 0.11280304193496704, 0.03542676568031311, -0.41529735922813416, -0.02532232366502285, 0.4330810606479645, 0.5564640760421753, -0.33773133158683777, 0.46013858914375305, 0.11926848441362381, 0.28470075130462646, -0.032683830708265305, 0.4374355673789978, -0.047126404941082, 0.11639227718114853, -0.005153832025825977, 0.1430787295103073, 0.028089283034205437, 0.2575884461402893, 0.1414998173713684, -0.03334501385688782, -0.15928909182548523, 0.03010638803243637, -0.12154112756252289, 0.12743553519248962, 0.2968399226665497, 0.17307059466838837, 0.419888973236084, -0.2947142422199249, 0.12756827473640442, 0.1282345950603485, -0.08756890892982483, -0.3413960635662079, 0.009522133506834507, 0.09408511221408844, -0.3605291247367859, 0.004247438162565231, 0.22248142957687378, -0.0694396123290062, -0.02419467642903328, 0.11893334239721298, 0.409478098154068, 0.19279026985168457, 0.1120925024151802, 0.10513070225715637, -0.049347855150699615, 0.32094356417655945, -0.39184531569480896, 0.22496101260185242, 0.18922272324562073, -0.10292953252792358, -0.221888929605484, -0.051098473370075226, 0.00736699253320694, 0.021280620247125626, -0.4355085492134094, -0.14018112421035767, -0.1622259020805359, 0.42098376154899597, -0.13559670746326447, 0.06829800456762314, -0.3722181022167206, 0.06876710057258606, -0.037134602665901184, 0.2683558464050293, -0.3000990152359009, 0.08640830963850021, 0.052547894418239594, 0.017337849363684654, 0.08837077021598816, 0.13057975471019745, 0.06843435764312744, 0.2528505325317383, -0.35231637954711914, -0.12488970905542374, 0.3586624264717102, -0.01946943625807762, 0.09103637933731079, -0.21726980805397034, 0.41820472478866577, 0.4654460847377777, -0.14808106422424316, -0.3321141302585602, -0.2635180950164795, -0.01115646492689848, -0.2798342704772949, -0.5420887470245361, 0.2986377775669098, 0.13786809146404266, 0.19743876159191132, -0.10587093234062195, 0.03660712391138077, -0.0743267834186554, -0.15276281535625458, 0.06117141619324684, -0.19878648221492767 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.22893105447292328, 0.38345402479171753, 0.040345486253499985, 0.2550400197505951, -0.012111496180295944, 0.26225730776786804, 0.5036689639091492, 0.13295315206050873, 0.3442804515361786, 0.1357182413339615, -0.10897494852542877, 0.0772843211889267, 0.07315035164356232, -0.005698667839169502, -0.12562327086925507, 0.07892754673957825, 0.036445073783397675, -0.005388155579566956, 0.21494904160499573, 0.10395503044128418, -0.4238828718662262, 0.10729576647281647, -0.1728546917438507, 0.18611589074134827, 0.02609490044414997, -0.13634225726127625, 0.12125995755195618, 0.36072954535484314, -0.030788736417889595, -0.3922068774700165, 0.3530234694480896, 0.0634533241391182, 0.4639188349246979, 0.2582458257675171, -0.00011924598948098719, -0.013706348836421967, 0.23068425059318542, 0.1244996041059494, -0.0737270712852478, 0.08709956705570221, -0.18398481607437134, -0.14096809923648834, 0.16522926092147827, -0.09768719971179962, 0.17674356698989868, 0.36349114775657654, -0.1021372526884079, -0.20092961192131042, -0.013041839003562927, 0.37903404235839844, 0.15730063617229462, -0.038184791803359985, -0.118678018450737, -0.07520421594381332, 0.4933357536792755, -0.15929795801639557, -0.13317999243736267, 0.2798379361629486, 0.07902481406927109, -0.1145690307021141, -0.09899056702852249, 0.1995733678340912, -0.16214890778064728, 0.14715716242790222, 0.018658027052879333, 0.031129758805036545, 0.21623119711875916, -0.45810946822166443, 0.35214123129844666, 0.15125836431980133, 0.9656504988670349, -0.195573091506958, -0.1914043426513672, -0.08874819427728653, 0.013304111547768116, -0.03300251066684723, 0.4326036274433136, 0.42862406373023987, -0.32456856966018677, 0.25237080454826355, 0.06596970558166504, 0.08356554806232452, -0.08255104720592499, -0.001908905804157257, 0.07128584384918213, 0.1486530900001526, -0.05047055333852768, 0.11955634504556656, -0.1147308200597763, -0.0834009125828743, 0.3863350450992584, -0.21382763981819153, -0.2546023428440094, 0.19166730344295502, -0.33943650126457214, 0.28986987471580505, 0.05345261096954346, 0.7778055667877197, 0.15787765383720398, 0.31552964448928833, 0.12502345442771912, -0.05405201017856598, 0.21362465620040894, 0.0651903972029686, 0.008592668920755386, 0.3214899003505707, -0.11223883181810379, -0.016922790557146072, 0.42710626125335693, 0.11744193732738495, -0.08161693811416626, -0.008990537375211716, -0.02004595845937729, -0.42947396636009216, 0.3538796007633209, 0.10540708899497986, 0.40811824798583984, -0.28564128279685974, -0.12170109897851944, -0.00029508769512176514, 0.1581321358680725, -0.023971011862158775, 0.05888309329748154, 0.5011533498764038, -0.2717721462249756, 0.04268316924571991, 0.06825161725282669, 0.17944453656673431, 0.018610646948218346, 0.09776216745376587, -0.08779989182949066, -0.08900260925292969, -0.2667176425457001, -0.05143895745277405, 0.40864670276641846, -0.322576105594635, 0.09556524455547333, 0.256676584482193, 0.02704732120037079, -0.17929454147815704, 0.19183221459388733, -0.04149750620126724, -0.03285706788301468, 0.35768699645996094, 0.39729636907577515, 0.33763349056243896, 0.17493215203285217, -0.2122965008020401, -0.03499526530504227, 0.18631160259246826, -0.48729026317596436, -0.40250417590141296, -0.033664800226688385, 0.12132809311151505, -0.08332373201847076, 0.06320543587207794, -0.19803687930107117, -0.04825789853930473, 0.38231295347213745, -0.3008548319339752, -0.06183617562055588, -0.013725530356168747, -0.220620259642601, -0.5042762160301208, 0.04070822894573212, 0.40128839015960693, -0.35969823598861694, 0.1303667575120926, -0.0915532335639, -0.2640872299671173, 0.15043291449546814, 0.005637733265757561, 0.005634448956698179, 0.36168229579925537, -0.28122052550315857, 0.015607401728630066, 0.277459055185318, -0.3938949704170227, -1.0015968084335327, -0.021003341302275658, 0.07310013473033905, 0.1660415381193161, 0.24440604448318481, 0.11913758516311646, 0.3659377694129944, -0.030345479026436806, 0.17047597467899323, 0.31871259212493896, 0.1300753355026245, 0.11197447031736374, -0.06299630552530289, -0.20385552942752838, 0.279660701751709, 0.1339261829853058, 0.08833898603916168, 0.30090340971946716, 0.31260010600090027, -0.05693402886390686, 0.25109589099884033, -0.1872611790895462, 0.1168045699596405, 0.19251582026481628, 0.011496078222990036, -0.03513577580451965, 0.1375143975019455, -0.1277380883693695, -0.4204089641571045, 0.35144808888435364, -0.008118340745568275, 0.08516696840524673, 0.07597886770963669, -0.20274308323860168, -0.3184642195701599, 0.09134078025817871, -0.5447553992271423, -0.28899648785591125, 0.08510653674602509, 0.29389894008636475, 0.21242570877075195, 0.02368234470486641, 0.18916404247283936, 0.3374142050743103, -0.20822711288928986, 0.1271960586309433, -0.18114104866981506, 0.038606904447078705, -0.18833814561367035, -0.13644914329051971, -0.21224789321422577, 0.04691571742296219, 0.2001282274723053, 0.25274816155433655, -0.21343320608139038, 0.19610103964805603, 0.15121357142925262, 0.03749885410070419, -0.37855762243270874, -0.059557005763053894, -0.022377656772732735, 0.12172956764698029, 0.15684814751148224, 0.13817834854125977, 0.14832349121570587, -0.044394154101610184, -0.19221922755241394, 0.1377543956041336, -0.15963472425937653, 0.14373135566711426, -0.3266507387161255, 0.24303588271141052, 0.24470657110214233, 0.09005042910575867, 0.08569688349962234, 0.03445235639810562, 0.30547037720680237, 0.02411862276494503, 0.07459601759910583, -0.2858038544654846, 0.1012619137763977, -0.07780914753675461, 0.05930323526263237, 0.022547908127307892, 0.08128238469362259, 0.24975329637527466, -0.17460155487060547, 0.0168861523270607, 0.28699350357055664, 0.3496789336204529, 0.5377135872840881, -0.04098674654960632, 0.05155012756586075, 0.06679752469062805, 0.047912269830703735, 0.08966917544603348, 0.11925183981657028, 0.08577112853527069, -0.0702270045876503, 0.26344922184944153, 0.12843413650989532, 0.22416624426841736, -0.06479806452989578, -0.1138603538274765, -0.10754140466451645, 0.4194294214248657, -0.48751336336135864, -0.08438761532306671, 0.10005459189414978, 0.07484018057584763, 0.18120110034942627, -0.24284698069095612, -0.08878137171268463, -0.14609836041927338, -0.24304606020450592, 0.31163668632507324, 0.0940709263086319, 0.08353795111179352, -0.5119563341140747, 0.16444027423858643, 0.007537784054875374, -0.20180559158325195, -0.11375711858272552, 0.12387923151254654, -0.16583377122879028, -0.014107219874858856, 0.18624506890773773, -0.17993929982185364, 0.18738843500614166, -0.29515889286994934, 0.24375136196613312, -0.39017677307128906, -0.19543327391147614, 0.015109807252883911, 0.057886600494384766, 0.409841924905777, 0.12543129920959473, 0.1551070511341095, 0.18641042709350586, -0.3417653739452362, 0.05660320818424225, -0.10751954466104507, -0.15106140077114105, 0.23337113857269287, -0.055027563124895096, 0.09385494142770767, 0.034196507185697556, -0.24937549233436584, -0.5408254265785217, -0.2501787543296814, -0.009575776755809784, 0.38589024543762207, 0.09830191731452942, -0.002851073630154133, -0.11265332996845245, 0.00334379356354475, 0.26702892780303955, 0.3937676250934601, -0.21082812547683716, -0.2492024451494217, 0.21024949848651886, -0.20926876366138458, -0.33469969034194946, 0.08194918930530548, -0.10423030704259872, 0.04457155987620354, 0.2523822784423828, -0.4788484573364258, -0.09063425660133362, -0.36006608605384827, 0.4096080958843231, -0.23261573910713196, 0.09382889419794083, 0.34630483388900757, 0.08929312974214554, 0.14639870822429657, -0.04174847900867462, -0.2757156491279602, -0.06513554602861404, -0.294641375541687, -0.06823261827230453, 0.338198184967041, 0.4274495840072632, -0.05757026746869087, 0.3770318031311035, 0.30022844672203064, 0.3604489862918854, 0.33447161316871643, 0.045840829610824585, 0.3711133301258087, 0.05426084250211716, -0.2594742178916931, 0.10877581685781479, -0.19434574246406555, -0.14016005396842957, 0.3007435202598572, 0.08898176997900009, -0.19526353478431702, -0.052531737834215164, -0.38045358657836914, -0.2807893455028534, -0.28528618812561035, -0.09924308955669403, -0.2463313639163971, 0.25375664234161377, 0.11914049088954926, 0.11004225164651871, -0.44624456763267517, -0.36911436915397644, 0.0288442000746727, 0.5546335577964783, -0.3098396956920624, 0.11157587170600891, -0.35080355405807495, 0.1366976648569107, -0.6549718379974365, 0.2522450089454651, 0.03402533754706383, 0.4958058297634125, -0.17412368953227997, 0.12669822573661804, -0.001507483422756195, -0.10742941498756409, 0.5570668578147888, -0.6522977948188782, 0.4618297815322876, 0.05812269076704979, 0.11573196947574615, 0.010196911171078682, -0.22434526681900024, -0.09225606918334961, 0.2416793406009674, 0.13694222271442413, 0.21455557644367218, 0.1639215052127838, 0.04404149949550629, 0.07620953768491745, 0.1665930151939392, -0.20013268291950226, -0.27905774116516113, -0.22713546454906464, -0.3418883681297302, -0.39038607478141785, 0.12800632417201996, 0.04219867289066315, 0.18547098338603973, -0.15174342691898346, 0.11716079711914062, -0.4046885371208191, 0.23697802424430847, 0.13017883896827698, 0.16028201580047607, 0.18779224157333374, 0.06457553803920746, 0.2181592434644699, -0.04804571717977524, 0.07534874230623245, -0.12915588915348053, 0.524086594581604, -0.280476838350296, -0.32837823033332825, -0.05249052494764328, -0.19998617470264435, -0.11711714416742325, 0.11224104464054108, -0.32655784487724304, -0.050091199576854706, -0.13848155736923218, -0.13273650407791138, -0.31433025002479553, 0.11707472056150436, 0.04260404780507088, -0.13543389737606049, -0.37768280506134033, -0.3201932907104492, 0.3641441762447357, 0.2117007076740265, -0.44672733545303345, 0.34047406911849976, 0.119847871363163, -0.42806297540664673, 0.1824691742658615, 0.051760539412498474, 0.7466560006141663, 0.07989033311605453, 0.27802082896232605, 0.0972772017121315, -0.11229567229747772, 0.2001180499792099, 0.11617879569530487, 0.05655685067176819, -0.37288698554039, -0.4541013538837433, -0.09887155890464783, -0.22054263949394226, -0.13453662395477295, -0.024941042065620422, -0.2337944060564041, 0.2817450761795044, -0.11297871917486191, 0.31880494952201843, 0.27430960536003113, 0.04803814738988876, -0.3741960823535919, -0.3764992952346802, -0.12099462747573853, 0.12518657743930817, -0.19382379949092865, 0.13586898148059845, -0.22749045491218567, 0.09111583977937698, 0.08490483462810516, -0.1673942655324936, -0.43912166357040405, 0.1967896819114685, -0.4114464521408081, 0.1381179690361023, -0.29741811752319336, -0.38368284702301025, 0.08779963850975037, 0.5960646867752075, 0.284967839717865, 0.3604602515697479, -0.1543024629354477, 0.06006704270839691, 0.0793890729546547, 0.11794424057006836, 0.02495737001299858, 0.0074557894840836525, 0.19626401364803314, -0.08069460093975067, -0.29818886518478394, -0.015169307589530945, -0.27812710404396057, -0.3215295076370239, -0.105553038418293, 0.28626760840415955, 0.40390515327453613, -0.320111483335495, -0.20768886804580688, -0.31064632534980774, 0.08497351408004761, -0.2798957824707031, 0.09370319545269012, 0.047042153775691986, -0.07560183852910995, 0.37954121828079224, -0.3368881046772003, -0.42571231722831726, -0.14751766622066498, 0.524276077747345, -0.07907655835151672, -0.13375595211982727, 0.5711392164230347, -0.048503048717975616, -0.17853936553001404, -0.01303231529891491, 0.14549288153648376, -0.10098472237586975, -0.46245837211608887, -0.10034400224685669, -0.12253542989492416, 0.10782840847969055, -0.02910695970058441, 0.16985073685646057, 0.27879685163497925, -0.09631005674600601, 0.053403567522764206, -0.75813889503479, -0.2621009051799774, -0.11298516392707825, -0.231143519282341, 0.17163561284542084, 0.18311110138893127, -0.44054079055786133, -0.13530538976192474, -0.28408050537109375, -0.20300325751304626, 0.04410110414028168, -0.21473431587219238, -0.1294415444135666, 0.27790114283561707, 0.15455769002437592, -0.0013412097468972206, 0.12451329827308655, -0.0026244893670082092, 0.09265878796577454, 0.12275488674640656, -0.17137017846107483, -0.12370964884757996, 0.1475239396095276, 0.10378225147724152, -0.0918002501130104, 0.026753831654787064, -0.3284255862236023, -0.07359741628170013, -0.0984257385134697, 0.3940446376800537, 0.2593081593513489, -0.028157226741313934, 0.06791762262582779, -0.12768340110778809, 0.28947070240974426, -0.28270506858825684, 0.4151187539100647, -0.34728410840034485, -0.025130480527877808, -0.013373443856835365, 0.3347688317298889, -0.141316756606102, 0.05412669479846954, -0.11745326966047287, -0.08249495178461075, 0.1532546579837799, 0.06789711862802505, 0.06460647284984589, -0.3769117593765259, 0.0850258320569992, 0.17875710129737854, 0.05933326482772827, 0.06236382573843002, -0.23318256437778473, 0.014841282740235329, 0.24505004286766052, 0.15899252891540527, -0.09227059781551361, -0.12948787212371826, -0.012007571756839752, -0.3234775960445404, -0.17904454469680786, 0.3004147410392761, 0.1639574021100998, -0.38362520933151245, 0.1359911561012268, -0.032405201345682144, 0.5581635236740112, -0.22469530999660492, -0.05772074684500694, 0.4813494384288788, -0.21740023791790009, 0.27380892634391785, 0.21858616173267365, 0.25964298844337463, -0.08437993377447128, 0.551478385925293, 0.1820426881313324, 0.13673906028270721, -0.005867946892976761, -0.17204800248146057, -0.10305257886648178, -0.6628068089485168, 0.2800285220146179, 0.06525275856256485, -0.07369078695774078, 0.05094320327043533, -0.02961721271276474, -0.00863552838563919, -0.3041154742240906, -0.0021536657586693764, -0.43828171491622925, -0.21689368784427643, -0.18088364601135254, -0.2836601138114929, 0.0684342309832573, -0.23384305834770203, 0.17253975570201874, 0.09277597069740295, -0.17077626287937164, -0.14519624412059784, -0.0699784904718399, -0.042751505970954895, -0.303575336933136, -0.2684680223464966, 0.11163219809532166, 0.41336801648139954, -0.2662926912307739, -0.19269151985645294, 0.08904927968978882, 0.0064429715275764465, 0.23958076536655426, 0.08864153921604156, 0.09613712131977081, 0.7200039029121399, 0.36966079473495483, -0.18670602142810822, -0.08271224796772003, 0.20437930524349213, 0.08497972041368484, -0.1013353168964386, 0.30956217646598816, 0.1992662250995636, 0.17723071575164795, 0.3453558683395386, 0.11968505382537842, -0.12446681410074234, 0.03745853155851364, 0.03806000202894211, -0.008947545662522316, -0.08347918093204498, 0.18735942244529724, -0.17643530666828156, -0.1684236377477646, 0.1405666172504425, 0.19802328944206238, -0.07277756184339523, 0.17002755403518677, 0.23236899077892303, 0.06273753196001053, 0.19450896978378296, -0.19005410373210907, 0.02006204053759575, 0.14877964556217194, 0.31554609537124634, 0.35036221146583557, 0.09806947410106659, -0.23355334997177124, -0.06835935264825821, -0.5775805711746216, 0.25459524989128113, -0.01822478696703911, -0.38001489639282227, -0.032235048711299896, -0.1324881762266159, -0.33680179715156555, 0.10613509267568588, 0.16192322969436646, -0.10909673571586609, 0.0555582270026207, 0.2668955326080322, -0.15676136314868927, -0.2936108410358429, 0.38943731784820557, -0.037769339978694916, -0.07810090482234955, -0.6786638498306274, 0.03660114109516144, -0.08876019716262817, 0.032007843255996704, -0.1506994068622589, -0.16663798689842224, 0.03415028750896454, -0.02607458084821701, 0.5437768697738647, 0.26441267132759094, 0.45556047558784485, 0.007837601006031036, 0.09181345254182816, -0.5622044801712036, -0.0687977597117424, -0.14528989791870117, -0.033695004880428314, -0.07782581448554993, 0.2713488042354584, -0.22750388085842133, 0.04143596440553665, -0.12419243156909943, 0.16709394752979279, 0.2662992477416992, 0.3795423209667206, -0.005456246435642242, 0.22790509462356567, 0.18094375729560852, 0.15718919038772583, 0.3478449583053589, 0.06997201591730118, -0.09617958962917328, 0.44603660702705383, -0.24093419313430786, -0.34204840660095215, 0.21094822883605957, -0.39415040612220764, -0.3340475857257843, -0.019208623096346855, 0.32515692710876465, -0.2549190819263458, -0.1531335711479187, -0.2379634976387024, 0.2061091661453247, 0.24783967435359955, -0.14348047971725464, -0.3868970572948456, 0.14134523272514343, -0.15703512728214264, 0.1402919888496399, -0.022752363234758377, 0.03422372043132782, 0.010135134682059288, -0.2253900170326233, 0.1708669513463974, -0.23743672668933868 ]
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.22893105447292328, 0.38345402479171753, 0.040345486253499985, 0.2550400197505951, -0.012111496180295944, 0.26225730776786804, 0.5036689639091492, 0.13295315206050873, 0.3442804515361786, 0.1357182413339615, -0.10897494852542877, 0.0772843211889267, 0.07315035164356232, -0.005698667839169502, -0.12562327086925507, 0.07892754673957825, 0.036445073783397675, -0.005388155579566956, 0.21494904160499573, 0.10395503044128418, -0.4238828718662262, 0.10729576647281647, -0.1728546917438507, 0.18611589074134827, 0.02609490044414997, -0.13634225726127625, 0.12125995755195618, 0.36072954535484314, -0.030788736417889595, -0.3922068774700165, 0.3530234694480896, 0.0634533241391182, 0.4639188349246979, 0.2582458257675171, -0.00011924598948098719, -0.013706348836421967, 0.23068425059318542, 0.1244996041059494, -0.0737270712852478, 0.08709956705570221, -0.18398481607437134, -0.14096809923648834, 0.16522926092147827, -0.09768719971179962, 0.17674356698989868, 0.36349114775657654, -0.1021372526884079, -0.20092961192131042, -0.013041839003562927, 0.37903404235839844, 0.15730063617229462, -0.038184791803359985, -0.118678018450737, -0.07520421594381332, 0.4933357536792755, -0.15929795801639557, -0.13317999243736267, 0.2798379361629486, 0.07902481406927109, -0.1145690307021141, -0.09899056702852249, 0.1995733678340912, -0.16214890778064728, 0.14715716242790222, 0.018658027052879333, 0.031129758805036545, 0.21623119711875916, -0.45810946822166443, 0.35214123129844666, 0.15125836431980133, 0.9656504988670349, -0.195573091506958, -0.1914043426513672, -0.08874819427728653, 0.013304111547768116, -0.03300251066684723, 0.4326036274433136, 0.42862406373023987, -0.32456856966018677, 0.25237080454826355, 0.06596970558166504, 0.08356554806232452, -0.08255104720592499, -0.001908905804157257, 0.07128584384918213, 0.1486530900001526, -0.05047055333852768, 0.11955634504556656, -0.1147308200597763, -0.0834009125828743, 0.3863350450992584, -0.21382763981819153, -0.2546023428440094, 0.19166730344295502, -0.33943650126457214, 0.28986987471580505, 0.05345261096954346, 0.7778055667877197, 0.15787765383720398, 0.31552964448928833, 0.12502345442771912, -0.05405201017856598, 0.21362465620040894, 0.0651903972029686, 0.008592668920755386, 0.3214899003505707, -0.11223883181810379, -0.016922790557146072, 0.42710626125335693, 0.11744193732738495, -0.08161693811416626, -0.008990537375211716, -0.02004595845937729, -0.42947396636009216, 0.3538796007633209, 0.10540708899497986, 0.40811824798583984, -0.28564128279685974, -0.12170109897851944, -0.00029508769512176514, 0.1581321358680725, -0.023971011862158775, 0.05888309329748154, 0.5011533498764038, -0.2717721462249756, 0.04268316924571991, 0.06825161725282669, 0.17944453656673431, 0.018610646948218346, 0.09776216745376587, -0.08779989182949066, -0.08900260925292969, -0.2667176425457001, -0.05143895745277405, 0.40864670276641846, -0.322576105594635, 0.09556524455547333, 0.256676584482193, 0.02704732120037079, -0.17929454147815704, 0.19183221459388733, -0.04149750620126724, -0.03285706788301468, 0.35768699645996094, 0.39729636907577515, 0.33763349056243896, 0.17493215203285217, -0.2122965008020401, -0.03499526530504227, 0.18631160259246826, -0.48729026317596436, -0.40250417590141296, -0.033664800226688385, 0.12132809311151505, -0.08332373201847076, 0.06320543587207794, -0.19803687930107117, -0.04825789853930473, 0.38231295347213745, -0.3008548319339752, -0.06183617562055588, -0.013725530356168747, -0.220620259642601, -0.5042762160301208, 0.04070822894573212, 0.40128839015960693, -0.35969823598861694, 0.1303667575120926, -0.0915532335639, -0.2640872299671173, 0.15043291449546814, 0.005637733265757561, 0.005634448956698179, 0.36168229579925537, -0.28122052550315857, 0.015607401728630066, 0.277459055185318, -0.3938949704170227, -1.0015968084335327, -0.021003341302275658, 0.07310013473033905, 0.1660415381193161, 0.24440604448318481, 0.11913758516311646, 0.3659377694129944, -0.030345479026436806, 0.17047597467899323, 0.31871259212493896, 0.1300753355026245, 0.11197447031736374, -0.06299630552530289, -0.20385552942752838, 0.279660701751709, 0.1339261829853058, 0.08833898603916168, 0.30090340971946716, 0.31260010600090027, -0.05693402886390686, 0.25109589099884033, -0.1872611790895462, 0.1168045699596405, 0.19251582026481628, 0.011496078222990036, -0.03513577580451965, 0.1375143975019455, -0.1277380883693695, -0.4204089641571045, 0.35144808888435364, -0.008118340745568275, 0.08516696840524673, 0.07597886770963669, -0.20274308323860168, -0.3184642195701599, 0.09134078025817871, -0.5447553992271423, -0.28899648785591125, 0.08510653674602509, 0.29389894008636475, 0.21242570877075195, 0.02368234470486641, 0.18916404247283936, 0.3374142050743103, -0.20822711288928986, 0.1271960586309433, -0.18114104866981506, 0.038606904447078705, -0.18833814561367035, -0.13644914329051971, -0.21224789321422577, 0.04691571742296219, 0.2001282274723053, 0.25274816155433655, -0.21343320608139038, 0.19610103964805603, 0.15121357142925262, 0.03749885410070419, -0.37855762243270874, -0.059557005763053894, -0.022377656772732735, 0.12172956764698029, 0.15684814751148224, 0.13817834854125977, 0.14832349121570587, -0.044394154101610184, -0.19221922755241394, 0.1377543956041336, -0.15963472425937653, 0.14373135566711426, -0.3266507387161255, 0.24303588271141052, 0.24470657110214233, 0.09005042910575867, 0.08569688349962234, 0.03445235639810562, 0.30547037720680237, 0.02411862276494503, 0.07459601759910583, -0.2858038544654846, 0.1012619137763977, -0.07780914753675461, 0.05930323526263237, 0.022547908127307892, 0.08128238469362259, 0.24975329637527466, -0.17460155487060547, 0.0168861523270607, 0.28699350357055664, 0.3496789336204529, 0.5377135872840881, -0.04098674654960632, 0.05155012756586075, 0.06679752469062805, 0.047912269830703735, 0.08966917544603348, 0.11925183981657028, 0.08577112853527069, -0.0702270045876503, 0.26344922184944153, 0.12843413650989532, 0.22416624426841736, -0.06479806452989578, -0.1138603538274765, -0.10754140466451645, 0.4194294214248657, -0.48751336336135864, -0.08438761532306671, 0.10005459189414978, 0.07484018057584763, 0.18120110034942627, -0.24284698069095612, -0.08878137171268463, -0.14609836041927338, -0.24304606020450592, 0.31163668632507324, 0.0940709263086319, 0.08353795111179352, -0.5119563341140747, 0.16444027423858643, 0.007537784054875374, -0.20180559158325195, -0.11375711858272552, 0.12387923151254654, -0.16583377122879028, -0.014107219874858856, 0.18624506890773773, -0.17993929982185364, 0.18738843500614166, -0.29515889286994934, 0.24375136196613312, -0.39017677307128906, -0.19543327391147614, 0.015109807252883911, 0.057886600494384766, 0.409841924905777, 0.12543129920959473, 0.1551070511341095, 0.18641042709350586, -0.3417653739452362, 0.05660320818424225, -0.10751954466104507, -0.15106140077114105, 0.23337113857269287, -0.055027563124895096, 0.09385494142770767, 0.034196507185697556, -0.24937549233436584, -0.5408254265785217, -0.2501787543296814, -0.009575776755809784, 0.38589024543762207, 0.09830191731452942, -0.002851073630154133, -0.11265332996845245, 0.00334379356354475, 0.26702892780303955, 0.3937676250934601, -0.21082812547683716, -0.2492024451494217, 0.21024949848651886, -0.20926876366138458, -0.33469969034194946, 0.08194918930530548, -0.10423030704259872, 0.04457155987620354, 0.2523822784423828, -0.4788484573364258, -0.09063425660133362, -0.36006608605384827, 0.4096080958843231, -0.23261573910713196, 0.09382889419794083, 0.34630483388900757, 0.08929312974214554, 0.14639870822429657, -0.04174847900867462, -0.2757156491279602, -0.06513554602861404, -0.294641375541687, -0.06823261827230453, 0.338198184967041, 0.4274495840072632, -0.05757026746869087, 0.3770318031311035, 0.30022844672203064, 0.3604489862918854, 0.33447161316871643, 0.045840829610824585, 0.3711133301258087, 0.05426084250211716, -0.2594742178916931, 0.10877581685781479, -0.19434574246406555, -0.14016005396842957, 0.3007435202598572, 0.08898176997900009, -0.19526353478431702, -0.052531737834215164, -0.38045358657836914, -0.2807893455028534, -0.28528618812561035, -0.09924308955669403, -0.2463313639163971, 0.25375664234161377, 0.11914049088954926, 0.11004225164651871, -0.44624456763267517, -0.36911436915397644, 0.0288442000746727, 0.5546335577964783, -0.3098396956920624, 0.11157587170600891, -0.35080355405807495, 0.1366976648569107, -0.6549718379974365, 0.2522450089454651, 0.03402533754706383, 0.4958058297634125, -0.17412368953227997, 0.12669822573661804, -0.001507483422756195, -0.10742941498756409, 0.5570668578147888, -0.6522977948188782, 0.4618297815322876, 0.05812269076704979, 0.11573196947574615, 0.010196911171078682, -0.22434526681900024, -0.09225606918334961, 0.2416793406009674, 0.13694222271442413, 0.21455557644367218, 0.1639215052127838, 0.04404149949550629, 0.07620953768491745, 0.1665930151939392, -0.20013268291950226, -0.27905774116516113, -0.22713546454906464, -0.3418883681297302, -0.39038607478141785, 0.12800632417201996, 0.04219867289066315, 0.18547098338603973, -0.15174342691898346, 0.11716079711914062, -0.4046885371208191, 0.23697802424430847, 0.13017883896827698, 0.16028201580047607, 0.18779224157333374, 0.06457553803920746, 0.2181592434644699, -0.04804571717977524, 0.07534874230623245, -0.12915588915348053, 0.524086594581604, -0.280476838350296, -0.32837823033332825, -0.05249052494764328, -0.19998617470264435, -0.11711714416742325, 0.11224104464054108, -0.32655784487724304, -0.050091199576854706, -0.13848155736923218, -0.13273650407791138, -0.31433025002479553, 0.11707472056150436, 0.04260404780507088, -0.13543389737606049, -0.37768280506134033, -0.3201932907104492, 0.3641441762447357, 0.2117007076740265, -0.44672733545303345, 0.34047406911849976, 0.119847871363163, -0.42806297540664673, 0.1824691742658615, 0.051760539412498474, 0.7466560006141663, 0.07989033311605453, 0.27802082896232605, 0.0972772017121315, -0.11229567229747772, 0.2001180499792099, 0.11617879569530487, 0.05655685067176819, -0.37288698554039, -0.4541013538837433, -0.09887155890464783, -0.22054263949394226, -0.13453662395477295, -0.024941042065620422, -0.2337944060564041, 0.2817450761795044, -0.11297871917486191, 0.31880494952201843, 0.27430960536003113, 0.04803814738988876, -0.3741960823535919, -0.3764992952346802, -0.12099462747573853, 0.12518657743930817, -0.19382379949092865, 0.13586898148059845, -0.22749045491218567, 0.09111583977937698, 0.08490483462810516, -0.1673942655324936, -0.43912166357040405, 0.1967896819114685, -0.4114464521408081, 0.1381179690361023, -0.29741811752319336, -0.38368284702301025, 0.08779963850975037, 0.5960646867752075, 0.284967839717865, 0.3604602515697479, -0.1543024629354477, 0.06006704270839691, 0.0793890729546547, 0.11794424057006836, 0.02495737001299858, 0.0074557894840836525, 0.19626401364803314, -0.08069460093975067, -0.29818886518478394, -0.015169307589530945, -0.27812710404396057, -0.3215295076370239, -0.105553038418293, 0.28626760840415955, 0.40390515327453613, -0.320111483335495, -0.20768886804580688, -0.31064632534980774, 0.08497351408004761, -0.2798957824707031, 0.09370319545269012, 0.047042153775691986, -0.07560183852910995, 0.37954121828079224, -0.3368881046772003, -0.42571231722831726, -0.14751766622066498, 0.524276077747345, -0.07907655835151672, -0.13375595211982727, 0.5711392164230347, -0.048503048717975616, -0.17853936553001404, -0.01303231529891491, 0.14549288153648376, -0.10098472237586975, -0.46245837211608887, -0.10034400224685669, -0.12253542989492416, 0.10782840847969055, -0.02910695970058441, 0.16985073685646057, 0.27879685163497925, -0.09631005674600601, 0.053403567522764206, -0.75813889503479, -0.2621009051799774, -0.11298516392707825, -0.231143519282341, 0.17163561284542084, 0.18311110138893127, -0.44054079055786133, -0.13530538976192474, -0.28408050537109375, -0.20300325751304626, 0.04410110414028168, -0.21473431587219238, -0.1294415444135666, 0.27790114283561707, 0.15455769002437592, -0.0013412097468972206, 0.12451329827308655, -0.0026244893670082092, 0.09265878796577454, 0.12275488674640656, -0.17137017846107483, -0.12370964884757996, 0.1475239396095276, 0.10378225147724152, -0.0918002501130104, 0.026753831654787064, -0.3284255862236023, -0.07359741628170013, -0.0984257385134697, 0.3940446376800537, 0.2593081593513489, -0.028157226741313934, 0.06791762262582779, -0.12768340110778809, 0.28947070240974426, -0.28270506858825684, 0.4151187539100647, -0.34728410840034485, -0.025130480527877808, -0.013373443856835365, 0.3347688317298889, -0.141316756606102, 0.05412669479846954, -0.11745326966047287, -0.08249495178461075, 0.1532546579837799, 0.06789711862802505, 0.06460647284984589, -0.3769117593765259, 0.0850258320569992, 0.17875710129737854, 0.05933326482772827, 0.06236382573843002, -0.23318256437778473, 0.014841282740235329, 0.24505004286766052, 0.15899252891540527, -0.09227059781551361, -0.12948787212371826, -0.012007571756839752, -0.3234775960445404, -0.17904454469680786, 0.3004147410392761, 0.1639574021100998, -0.38362520933151245, 0.1359911561012268, -0.032405201345682144, 0.5581635236740112, -0.22469530999660492, -0.05772074684500694, 0.4813494384288788, -0.21740023791790009, 0.27380892634391785, 0.21858616173267365, 0.25964298844337463, -0.08437993377447128, 0.551478385925293, 0.1820426881313324, 0.13673906028270721, -0.005867946892976761, -0.17204800248146057, -0.10305257886648178, -0.6628068089485168, 0.2800285220146179, 0.06525275856256485, -0.07369078695774078, 0.05094320327043533, -0.02961721271276474, -0.00863552838563919, -0.3041154742240906, -0.0021536657586693764, -0.43828171491622925, -0.21689368784427643, -0.18088364601135254, -0.2836601138114929, 0.0684342309832573, -0.23384305834770203, 0.17253975570201874, 0.09277597069740295, -0.17077626287937164, -0.14519624412059784, -0.0699784904718399, -0.042751505970954895, -0.303575336933136, -0.2684680223464966, 0.11163219809532166, 0.41336801648139954, -0.2662926912307739, -0.19269151985645294, 0.08904927968978882, 0.0064429715275764465, 0.23958076536655426, 0.08864153921604156, 0.09613712131977081, 0.7200039029121399, 0.36966079473495483, -0.18670602142810822, -0.08271224796772003, 0.20437930524349213, 0.08497972041368484, -0.1013353168964386, 0.30956217646598816, 0.1992662250995636, 0.17723071575164795, 0.3453558683395386, 0.11968505382537842, -0.12446681410074234, 0.03745853155851364, 0.03806000202894211, -0.008947545662522316, -0.08347918093204498, 0.18735942244529724, -0.17643530666828156, -0.1684236377477646, 0.1405666172504425, 0.19802328944206238, -0.07277756184339523, 0.17002755403518677, 0.23236899077892303, 0.06273753196001053, 0.19450896978378296, -0.19005410373210907, 0.02006204053759575, 0.14877964556217194, 0.31554609537124634, 0.35036221146583557, 0.09806947410106659, -0.23355334997177124, -0.06835935264825821, -0.5775805711746216, 0.25459524989128113, -0.01822478696703911, -0.38001489639282227, -0.032235048711299896, -0.1324881762266159, -0.33680179715156555, 0.10613509267568588, 0.16192322969436646, -0.10909673571586609, 0.0555582270026207, 0.2668955326080322, -0.15676136314868927, -0.2936108410358429, 0.38943731784820557, -0.037769339978694916, -0.07810090482234955, -0.6786638498306274, 0.03660114109516144, -0.08876019716262817, 0.032007843255996704, -0.1506994068622589, -0.16663798689842224, 0.03415028750896454, -0.02607458084821701, 0.5437768697738647, 0.26441267132759094, 0.45556047558784485, 0.007837601006031036, 0.09181345254182816, -0.5622044801712036, -0.0687977597117424, -0.14528989791870117, -0.033695004880428314, -0.07782581448554993, 0.2713488042354584, -0.22750388085842133, 0.04143596440553665, -0.12419243156909943, 0.16709394752979279, 0.2662992477416992, 0.3795423209667206, -0.005456246435642242, 0.22790509462356567, 0.18094375729560852, 0.15718919038772583, 0.3478449583053589, 0.06997201591730118, -0.09617958962917328, 0.44603660702705383, -0.24093419313430786, -0.34204840660095215, 0.21094822883605957, -0.39415040612220764, -0.3340475857257843, -0.019208623096346855, 0.32515692710876465, -0.2549190819263458, -0.1531335711479187, -0.2379634976387024, 0.2061091661453247, 0.24783967435359955, -0.14348047971725464, -0.3868970572948456, 0.14134523272514343, -0.15703512728214264, 0.1402919888496399, -0.022752363234758377, 0.03422372043132782, 0.010135134682059288, -0.2253900170326233, 0.1708669513463974, -0.23743672668933868 ]
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.04569007828831673, 0.33450788259506226, 0.11488880217075348, 0.08045118302106857, 0.2304304838180542, 0.1188877746462822, 0.3988851010799408, 0.2548750042915344, -0.10991644859313965, 0.26743894815444946, -0.33538562059402466, 0.4040720462799072, -0.16448089480400085, -0.10746215283870697, -0.03426686301827431, -0.1066436618566513, 0.051110800355672836, 0.1451645791530609, -0.16666440665721893, -0.12261220067739487, -0.21033646166324615, 0.03519109636545181, -0.12747591733932495, 0.07211615890264511, -0.13876396417617798, -0.28114503622055054, 0.01058872975409031, 0.1006443202495575, 0.2441079467535019, -0.01835494115948677, 0.06827961653470993, 0.021176977083086967, -0.17779594659805298, 0.4797627925872803, -0.00011666516365949064, 0.4142075777053833, -0.006127521395683289, 0.1301538199186325, -0.23558081686496735, 0.05651070177555084, -0.06903086602687836, 0.17604999244213104, 0.1245584636926651, -0.05997370183467865, 0.13496798276901245, -0.21777625381946564, -0.025572726503014565, 0.08327299356460571, 0.28249549865722656, 0.4290584623813629, 0.17387717962265015, 0.6678123474121094, 0.049049388617277145, -0.007073971442878246, 0.38278523087501526, 0.06389778107404709, -0.27425894141197205, 0.11617060005664825, -0.23700949549674988, -0.1935144066810608, 0.06556092947721481, 0.5781881809234619, 0.017382437363266945, -0.07479844987392426, -0.13468730449676514, 0.07937832921743393, -0.24748435616493225, -0.21320980787277222, 0.09915623813867569, 0.3864620625972748, 0.29421448707580566, -0.3177286684513092, -0.07044240832328796, -0.1286831498146057, -0.06478439271450043, -0.1454344093799591, 0.19134795665740967, -0.04620642215013504, 0.017386678606271744, 0.13485005497932434, 0.058215219527482986, -0.1622665673494339, -0.261507511138916, -0.0061732083559036255, -0.2810881435871124, -0.10721860826015472, 0.08574363589286804, 0.08013858646154404, 0.4141070544719696, -0.027151543647050858, -0.06863751262426376, 0.04162948578596115, 0.02016325294971466, 0.13079169392585754, -0.20230157673358917, -0.18202082812786102, -0.0392589271068573, -0.17703023552894592, -0.028179513290524483, -0.07086215913295746, 0.23925118148326874, -0.15704479813575745, -0.2443435788154602, 0.06774026155471802, 0.16441909968852997, -0.07058843970298767, -0.6655332446098328, 0.14519941806793213, 0.2680507302284241, -0.1933342069387436, -0.11191998422145844, -0.02867107093334198, 0.0027094860561192036, -0.49814373254776, 0.28611671924591064, -0.21079176664352417, 0.4638057351112366, 0.017413798719644547, -0.5834482908248901, 0.17033584415912628, -0.19436031579971313, 0.4077930152416229, -0.03926560655236244, 0.3421231508255005, -0.00972457230091095, 0.27936795353889465, 0.3236468434333801, -0.003611154854297638, -0.49707069993019104, -0.016200359910726547, -0.05466807261109352, -0.03966240957379341, -0.2995603084564209, -0.33192333579063416, 0.1675925999879837, 0.04395293444395065, -0.04784907400608063, 0.17280714213848114, 0.06108277291059494, 0.10257628560066223, 0.2539462447166443, -0.2808159291744232, 0.5246315598487854, 0.4812730550765991, -0.07509739696979523, 0.24509452283382416, 0.09495806694030762, -0.25070250034332275, -0.12922218441963196, 0.35341814160346985, -0.2710708677768707, -0.15856508910655975, -0.26036524772644043, 0.12456434220075607, -0.12023323774337769, -0.15524691343307495, -0.22380205988883972, 0.04500386118888855, 0.034312859177589417, -0.05954702943563461, 0.08629176020622253, -0.13709141314029694, -0.5523480176925659, -0.26465556025505066, 0.010904328897595406, 0.36509090662002563, -0.19915199279785156, 0.17955124378204346, -0.02543806843459606, -0.3931921124458313, -0.15941062569618225, 0.2656007409095764, 0.06460507214069366, 0.31538328528404236, -0.4097917079925537, -0.1304861456155777, 0.48381954431533813, -0.2320680171251297, -0.451283723115921, 0.23500563204288483, -0.2089938223361969, 0.2142520546913147, -0.3518174886703491, 0.13031741976737976, 0.2125164419412613, -0.20666542649269104, 0.012362159788608551, -0.007045207545161247, -0.06230967491865158, -0.009127004072070122, -0.32360905408859253, -0.010815280489623547, -0.06801830977201462, -0.19527065753936768, -0.015727762132883072, -0.012415856122970581, 0.13186506927013397, -0.04939540848135948, 0.3902638852596283, 0.21969185769557953, 0.19332583248615265, 0.14174765348434448, 0.3756611943244934, -0.17291395366191864, -0.07908884435892105, 0.04328874498605728, -0.37751755118370056, 0.13952457904815674, 0.405678391456604, 0.07770296931266785, -0.12490475177764893, -0.14793625473976135, -0.014970021322369576, 0.19853703677654266, -0.19195027649402618, 0.020079970359802246, 0.07844395190477371, -0.11942455172538757, -0.3427833616733551, 0.2097567766904831, -0.00877343863248825, -0.1780354380607605, -0.2768910825252533, 0.08200826495885849, 0.10280223190784454, 0.4687255620956421, 0.2687627077102661, -0.005573452450335026, -0.2448139637708664, 0.19433826208114624, -0.14946532249450684, -0.030063075944781303, -0.27190208435058594, 0.426939457654953, 0.1747722625732422, 0.3178136348724365, -0.15419718623161316, 0.5814430713653564, 0.10668500512838364, -0.5981355309486389, -0.2948668599128723, 0.3456805348396301, 0.13194774091243744, -0.028623301535844803, -0.017955489456653595, 0.14569851756095886, -0.20072336494922638, 0.1713244616985321, 0.053768835961818695, 0.23926398158073425, 0.04082748293876648, 0.021464083343744278, -0.03639737516641617, -0.34101608395576477, -0.04838133230805397, 0.3614161014556885, -0.3146299123764038, 0.29861462116241455, -0.6084025502204895, 0.19652915000915527, 0.3866647481918335, 0.03110693395137787, -0.16892477869987488, 0.23582980036735535, -0.16949427127838135, 0.061729900538921356, 0.07153797149658203, 0.3181355595588684, 0.4760550856590271, 0.022361338138580322, 0.17279092967510223, 0.13679923117160797, -0.19374001026153564, -0.09025267511606216, 0.23736470937728882, 0.08871420472860336, 0.31243181228637695, 0.20392078161239624, 0.2570452094078064, 0.19310399889945984, -0.30240383744239807, 0.03301859274506569, 0.13020411133766174, 0.172896146774292, -0.45257875323295593, 0.17472262680530548, -0.18073821067810059, -0.03884684666991234, -0.30748987197875977, 0.011746305041015148, 0.03772226721048355, -0.134799987077713, 0.31545960903167725, 0.3967655897140503, -0.4561236798763275, 0.15392330288887024, -0.3289412558078766, 0.12903311848640442, 0.02276877872645855, -0.29593169689178467, 0.18030208349227905, -0.16917894780635834, -0.2714839577674866, 0.03444306179881096, 0.36438706517219543, -0.24427668750286102, 0.41803431510925293, -0.001358548179268837, -0.07474908232688904, -0.1528538316488266, -0.2631639242172241, 0.08977952599525452, -0.09495307505130768, 0.1932285726070404, 0.29371607303619385, 0.33681103587150574, -0.12326736003160477, -0.13017724454402924, 0.14623378217220306, -0.4851285219192505, -0.17861421406269073, 0.13726705312728882, -0.12271815538406372, 0.2090100795030594, 0.020397700369358063, -0.15208956599235535, 0.07417669147253036, -0.3432304263114929, 0.06708268076181412, -0.19137915968894958, 0.12772853672504425, 0.6203327775001526, 0.15204104781150818, -0.08000215888023376, 0.37897077202796936, 0.10768022388219833, -0.17360027134418488, -0.1127353310585022, 0.2009134441614151, -0.20372341573238373, -0.4296337366104126, 0.29090508818626404, 0.03388958051800728, 0.13257908821105957, 0.29555845260620117, -0.6434154510498047, -0.16894198954105377, -0.04373548924922943, 0.17766393721103668, -0.10888655483722687, -0.047006942331790924, 0.1665741503238678, 0.11643645167350769, -0.11971431225538254, -0.34324708580970764, 0.08278648555278778, 0.3821261525154114, -0.22708043456077576, -0.04858043044805527, 0.042270563542842865, 0.08824551105499268, 0.313571035861969, 0.6243579983711243, 0.05083296075463295, -0.34294334053993225, 0.02080368995666504, -0.2982524037361145, 0.5073609352111816, -0.1590907871723175, -0.27957507967948914, 0.015801163390278816, 0.042031459510326385, -0.13273629546165466, 0.24627383053302765, -0.07957783341407776, -0.21037985384464264, 0.057861872017383575, 0.21673274040222168, -0.03759188950061798, -0.5290265083312988, 0.13690240681171417, -0.3965076506137848, 0.19836536049842834, 0.1509983390569687, -0.04255444556474686, -0.15817765891551971, -0.4451104998588562, 0.22895978391170502, 0.20402178168296814, 0.09302552044391632, -0.13661588728427887, -0.19879016280174255, -0.28238850831985474, -0.34255358576774597, 0.06804676353931427, 0.1306476891040802, 0.5035341382026672, 0.09213535487651825, -0.29871997237205505, 0.13605089485645294, 0.27989622950553894, 0.7769170999526978, -0.030116183683276176, -0.0992756187915802, 0.27733340859413147, 0.3224099278450012, -0.40419548749923706, 0.05556335672736168, -0.10501700639724731, -0.004628117196261883, 0.02816341444849968, 0.2416951060295105, 0.07723621279001236, -0.38879379630088806, 0.21295033395290375, 0.17669107019901276, -0.2477182000875473, 0.2110394686460495, -0.3918568789958954, -0.39860302209854126, 0.10136713087558746, 0.08784735202789307, 0.26049408316612244, 0.049756430089473724, -0.10872063040733337, -0.11151230335235596, -0.30123674869537354, -0.24823307991027832, 0.08814430236816406, -0.015626907348632812, 0.3283711075782776, 0.37087175250053406, 0.3975335955619812, 0.05334067717194557, 0.5702842473983765, 0.39386942982673645, 0.4075016379356384, -0.5431126952171326, 0.02142839878797531, 0.07550637423992157, 0.19113285839557648, 0.1251915842294693, 0.44203856587409973, -0.18668581545352936, 0.053141627460718155, -0.41518718004226685, 0.0002787560224533081, -0.3923724293708801, 0.530259370803833, 0.1395118236541748, -0.20313389599323273, -0.0013094479218125343, -0.09222970902919769, 0.13336913287639618, -0.010361379012465477, -0.1489025205373764, 0.6897447109222412, 0.21658258140087128, -0.1877490133047104, 0.2651529312133789, 0.1582140028476715, 1.1080399751663208, -0.0935678631067276, 0.2334684282541275, 0.5235838294029236, -0.26436951756477356, 0.212654247879982, -0.05537976324558258, 0.1353132426738739, -0.06322572380304337, -0.5360189080238342, 0.020139330998063087, -0.012507617473602295, -0.3608238697052002, -0.2005617469549179, 0.18932686746120453, 0.002370519330725074, 0.15720659494400024, 0.41068485379219055, 0.22914598882198334, 0.0776233822107315, 0.2959437072277069, -0.21861931681632996, 0.039656877517700195, 0.022472038865089417, 0.446658730506897, -0.12662005424499512, -0.2026073932647705, -0.12232185900211334, 0.1659473478794098, 0.027122534811496735, -0.03446495160460472, -0.009640885517001152, -0.7225639820098877, 0.27561646699905396, 0.04224846512079239, -0.09043862670660019, -0.02405969612300396, 0.401231586933136, 0.3712243437767029, -0.09887658059597015, -0.15234696865081787, 0.2883429527282715, 0.377362459897995, 0.29301220178604126, 0.09380700439214706, -0.016785889863967896, 0.47509506344795227, 0.03830232471227646, -0.08036363124847412, 0.1676330864429474, -0.05447189509868622, -0.05252288281917572, -0.0370938703417778, -0.1225818544626236, 0.03829426318407059, -0.12055530399084091, 0.04458474740386009, -0.09958517551422119, -0.24590620398521423, -0.057958267629146576, 0.10357752442359924, -0.18048782646656036, -0.10702705383300781, 0.23447361588478088, -0.1927340179681778, -0.4316699802875519, 0.23925673961639404, 0.3922545611858368, -0.12051223963499069, 0.17103491723537445, 0.3036816716194153, -0.07610423117876053, -0.07312791049480438, -0.25623899698257446, 0.34453433752059937, 0.0378299318253994, -0.5670921206474304, 0.2645977735519409, -0.18107597529888153, 0.3202277421951294, -0.10798830538988113, 0.5147191286087036, -0.19703039526939392, 0.02094128727912903, 0.02216009423136711, -0.13972286880016327, -0.39777180552482605, 0.23617467284202576, 0.0018211044371128082, 0.4124113619327545, -0.2537190914154053, 0.4747990071773529, -0.12875348329544067, -0.25279274582862854, -0.29979801177978516, 0.23436705768108368, -0.028114844113588333, 0.07878991961479187, -0.10588608682155609, 0.05765082314610481, 0.3181118965148926, -0.277951717376709, 0.05769581347703934, 0.10732091963291168, -0.13811095058918, -0.13849101960659027, -0.16371415555477142, 0.16327708959579468, 0.028017954900860786, -0.32340100407600403, -0.012979627586901188, -0.17387187480926514, 0.07629115879535675, -0.1113801822066307, 0.3281945288181305, 0.07005293667316437, -0.3296968936920166, 0.027097847312688828, -0.2136472910642624, 0.13094106316566467, 0.1392463892698288, 0.007743675261735916, -0.030591897666454315, 0.37586766481399536, 0.08969546109437943, 0.09814869612455368, -0.23660928010940552, -0.23252610862255096, -0.0303853377699852, 0.28426629304885864, -0.03563772141933441, -0.3600643277168274, 0.037712398916482925, -0.05584821105003357, -0.29388776421546936, -0.059905339032411575, 0.37662944197654724, 0.17997586727142334, -0.463461309671402, -0.13622412085533142, 0.2592979669570923, 0.22421713173389435, -0.24042116105556488, 0.16245035827159882, -0.12176796793937683, 0.019864235073328018, 0.03851151838898659, 0.16629649698734283, 0.18402771651744843, -0.14655476808547974, -0.1428782343864441, 0.17723166942596436, -0.20080335438251495, -0.20362457633018494, 0.031016169115900993, 0.5156283378601074, -0.032535944133996964, 0.23732346296310425, -0.14765354990959167, 0.10366436839103699, 0.12641778588294983, 0.2481575459241867, -0.0781785324215889, 0.4826439619064331, 0.19811072945594788, -0.06543825566768646, -0.03546874225139618, -0.31345221400260925, -0.05552196130156517, 0.16418908536434174, -0.1238175630569458, 0.24218717217445374, -0.036149606108665466, 0.22170990705490112, 0.15493112802505493, -0.42458295822143555, -0.011749574914574623, 0.2324928641319275, -0.08597955852746964, -0.36718884110450745, -0.39003151655197144, -0.20805487036705017, -0.2723340392112732, 0.031124267727136612, -0.00552750751376152, -0.08657306432723999, 0.009404286742210388, 0.10601386427879333, -0.06628252565860748, -0.28257760405540466, -0.11982179433107376, 0.3330775797367096, 0.27780595421791077, -0.23256680369377136, 0.06561335176229477, -0.024808019399642944, -0.06567806005477905, -0.002108696848154068, 0.20820142328739166, 0.08352921903133392, 0.02842143550515175, -0.1759401112794876, 0.011499438434839249, -0.034654274582862854, 0.09226343035697937, -0.04009256139397621, 0.2144378125667572, -0.048917144536972046, -0.1405205875635147, 0.2157972753047943, -0.04918326437473297, -0.07002480328083038, 0.1828450709581375, 0.05197182297706604, 0.0976676344871521, -0.41822460293769836, 0.14988884329795837, -0.0033798739314079285, -0.10168039798736572, -0.22876274585723877, -0.005118027329444885, 0.050867289304733276, -0.10867883265018463, 0.48080024123191833, -0.4602070152759552, 0.3644782602787018, -0.08739127963781357, 0.06821887195110321, -0.009531546384096146, 0.22197946906089783, 0.12710900604724884, 0.3292389214038849, -0.2891255021095276, -0.38428187370300293, -0.5309662818908691, 0.26259845495224, -0.04950680956244469, -0.050644464790821075, 0.21181733906269073, 0.031771816313266754, -0.08889951556921005, -0.06646031141281128, 0.027405336499214172, -0.18654648959636688, 0.11332380026578903, 0.2672543525695801, -0.2658282518386841, -0.03609572723507881, -0.4830031991004944, 0.09843248873949051, 0.019902944564819336, -0.5478622913360596, -0.18008093535900116, -0.17627134919166565, 0.037510037422180176, -0.08184590190649033, -0.02155197784304619, -0.016611484810709953, 0.546023964881897, 0.5247307419776917, 0.12545707821846008, 0.07549706101417542, 0.1195664033293724, -0.1025606319308281, -0.2674235701560974, -0.1794997602701187, -0.3766331970691681, -0.18374773859977722, 0.0070540402084589005, -0.02379615232348442, -0.052943989634513855, 0.19713805615901947, 0.013704986311495304, -0.2977713942527771, 0.18019510805606842, 0.3653971552848816, -0.44008249044418335, 0.19560539722442627, -0.20590299367904663, 0.3725329041481018, 0.26284611225128174, 0.4234927296638489, -0.12966130673885345, 0.21667814254760742, -0.3998854160308838, -0.3820694386959076, 0.4928813874721527, -0.5328615307807922, -0.09300722181797028, -0.024598270654678345, 0.38428547978401184, -0.09380307048559189, 0.03628789633512497, -0.5819952487945557, -0.17655472457408905, 0.3898147940635681, -0.08349338173866272, -0.5030676126480103, 0.17061178386211395, 0.13014698028564453, 0.1384350061416626, 0.11816711723804474, 0.5913188457489014, 0.1401757448911667, -0.19336318969726562, 0.036497678607702255, -0.2862134575843811 ]
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.049338411539793015, 0.09200134873390198, -0.07149402797222137, 0.40184879302978516, 0.41516703367233276, 0.23589500784873962, 0.6366614699363708, 0.2435026913881302, 0.23645862936973572, 0.23132994771003723, 0.01856815256178379, 0.007743119262158871, -0.14426825940608978, -0.31003570556640625, -0.2015363574028015, -0.2443147599697113, -0.15810900926589966, -0.04162128269672394, -0.17707857489585876, 0.21771924197673798, -0.1549791693687439, 0.378737211227417, 0.02463851124048233, 0.15708374977111816, -0.5360066890716553, 0.09007896482944489, -0.12959641218185425, 0.38867464661598206, -0.021506553515791893, -0.37299108505249023, 0.05111868679523468, -0.0467166043817997, 0.06881541758775711, 0.8113576769828796, -0.00012206858809804544, -0.3334410786628723, 0.35423392057418823, -0.056299224495887756, -0.32718950510025024, -0.224309042096138, -0.1685815155506134, -0.5117114186286926, -0.03458501398563385, -0.49880266189575195, 0.18721291422843933, -0.09511928260326385, -0.033190421760082245, -0.8021568059921265, 0.04105229675769806, 0.37330567836761475, 0.1268748641014099, -0.07834679633378983, 0.09102542698383331, -0.2579197287559509, 0.3323118984699249, -0.27798908948898315, 0.004084503278136253, 0.3564028739929199, 0.3556968569755554, -0.09886642545461655, -0.15465021133422852, 0.20321817696094513, -0.03689756989479065, 0.027325022965669632, 0.24715816974639893, 0.07953789830207825, -0.0874827429652214, -0.32616522908210754, 0.29580608010292053, 0.42739394307136536, 0.47143763303756714, -0.09306176751852036, -0.27931225299835205, -0.46769586205482483, 0.1424984186887741, -0.12510593235492706, 0.4885309040546417, -0.0762387216091156, -0.22207437455654144, 0.1514883041381836, -0.17041975259780884, -0.019621310755610466, -0.12359742820262909, -0.11023847758769989, -0.10197481513023376, 0.06506247073411942, 0.04050857573747635, 0.03627917915582657, 0.31111395359039307, -0.34831422567367554, 0.23959575593471527, 0.004836579784750938, 0.07427329570055008, 0.2694607675075531, -0.6542139053344727, 0.14691206812858582, 0.08426731824874878, 0.38549283146858215, 0.25348928570747375, 0.057643823325634, -0.2659733295440674, -0.1483081579208374, 0.19474831223487854, -0.010465599596500397, -0.06495590507984161, 0.37420716881752014, 0.1944449245929718, 0.1612812876701355, 0.301242858171463, 0.07794744521379471, -0.33674678206443787, -0.10693476349115372, -0.076487697660923, -0.5534631013870239, 0.44513842463493347, 0.13359034061431885, 0.07416309416294098, -0.34371116757392883, 0.15045858919620514, 0.5705775022506714, 0.1057044044137001, -0.010489962063729763, 0.22870256006717682, 0.2733798921108246, 0.005434134043753147, 0.11076538264751434, 0.08307428658008575, -0.0899365171790123, -0.08896112442016602, 0.10083572566509247, -0.14731301367282867, -0.11073002219200134, -0.22701914608478546, 0.11241000890731812, 0.0892055332660675, -0.3083968162536621, 0.27928006649017334, -0.22746558487415314, 0.31523990631103516, -0.12495826184749603, -0.08296846598386765, -0.2377428114414215, -0.06673305481672287, 0.15596769750118256, -0.059105802327394485, 0.07391411066055298, 0.2452138364315033, -0.26073384284973145, -0.19206151366233826, -0.07711134105920792, -0.33974918723106384, -0.2851884067058563, -0.06172212213277817, 0.09470310062170029, -0.1654943972826004, 0.2159021645784378, 0.24155426025390625, -0.2671959102153778, 0.6555521488189697, -0.07981885969638824, 0.012796826660633087, -0.2747650742530823, -0.1418105959892273, 0.007191919721662998, 0.04082578420639038, 0.553465723991394, 0.13252395391464233, -0.017562665045261383, -0.06878861784934998, 0.12828129529953003, 0.008666671812534332, 0.37225988507270813, 0.18064577877521515, -0.053596131503582, -0.42195239663124084, 0.3124936819076538, 0.2268710434436798, -0.2402808964252472, -0.4869852364063263, 0.32153841853141785, -0.39430683851242065, 0.0994926318526268, 0.32291194796562195, 0.022883234545588493, 0.051709964871406555, -0.024582387879490852, 0.28533732891082764, 0.18221351504325867, -0.026095619425177574, 0.02349572815001011, -0.20252390205860138, -0.10733113437891006, -0.040630415081977844, 0.1691952496767044, 0.010954219847917557, 0.06700097769498825, 0.07961978018283844, -0.175192192196846, 0.27156862616539, 0.03146364539861679, -0.20404410362243652, 0.373680055141449, 0.13824285566806793, 0.32671868801116943, 0.1860826164484024, -0.10632781684398651, -0.5937498807907104, 0.2637210488319397, -0.12184827029705048, -0.17873188853263855, -0.2175937443971634, -0.18680478632450104, -0.17498928308486938, -0.007289590314030647, 0.0034594647586345673, 0.13513661921024323, -0.02040853537619114, 0.28324878215789795, 0.14178010821342468, -0.13176319003105164, 0.09344077110290527, 0.5883795022964478, -0.17024418711662292, 0.017597468569874763, -0.47811824083328247, -0.1711251586675644, -0.11785472184419632, -0.11254032701253891, 0.031506575644016266, 0.0016393885016441345, 0.3693964183330536, -0.10896877199411392, -0.3443516194820404, 0.44807568192481995, 0.3332767188549042, 0.09753275662660599, -0.1789250671863556, -0.004430979490280151, -0.05686408281326294, 0.2207750678062439, 0.07266977429389954, 0.03981154412031174, 0.007785440422594547, 0.014292150735855103, -0.21357589960098267, 0.3000156879425049, -0.14081653952598572, 0.2712768316268921, 0.028613612055778503, 0.16824084520339966, 0.24617937207221985, -0.1318134069442749, 0.06434572488069534, -0.176122784614563, 0.6458838582038879, -0.21635237336158752, 0.30483996868133545, 0.05478006601333618, 0.04523121565580368, -0.14486438035964966, 0.6458194851875305, 0.04539325460791588, -0.00017743557691574097, 0.19774264097213745, 0.15620112419128418, -0.04081571474671364, -0.01937304623425007, 0.3064885437488556, 0.5111443996429443, 0.1920575648546219, -0.030123021453619003, -0.20650534331798553, 0.39415791630744934, -0.22383424639701843, 0.2563192546367645, 0.015907861292362213, -0.0027925779577344656, 0.3657032549381256, 0.04961807653307915, -0.12908706068992615, 0.05148372799158096, -0.8095083236694336, -0.050441935658454895, 0.22369764745235443, -0.3198081851005554, 0.14808255434036255, -0.13932590186595917, -0.04320499300956726, -0.023800060153007507, 0.0004900768399238586, -0.08039776980876923, -0.4162812829017639, -0.18889367580413818, 0.2785065174102783, -0.14183583855628967, 0.21453402936458588, -0.11883413791656494, -0.0032419413328170776, 0.27128300070762634, -0.014538956806063652, -0.29502761363983154, -0.0016123508103191853, 0.08034427464008331, -0.08376038074493408, 0.2720727324485779, -0.537502646446228, 0.08380384743213654, -0.1256636083126068, -0.06310753524303436, -0.5083535313606262, -0.24988093972206116, 0.11166781187057495, -0.16848011314868927, 0.29356497526168823, 0.3413665294647217, 0.20785747468471527, 0.1666615903377533, 0.05889623612165451, 0.004962285980582237, -0.26227912306785583, 0.02366955392062664, 0.23266398906707764, 0.17789937555789948, -0.022819053381681442, -0.19179973006248474, -0.023455344140529633, -0.3463740944862366, -0.41603314876556396, 0.3207845091819763, 0.030303534120321274, 0.22792896628379822, 0.34118977189064026, -0.07087269425392151, 0.2978118360042572, -0.017973121255636215, 0.24729226529598236, -0.08790640532970428, -0.4463707208633423, 0.41706109046936035, -0.15252242982387543, -0.29905930161476135, -0.4318079948425293, 0.29801326990127563, -0.03550926223397255, 0.1055184006690979, -0.4223639965057373, -0.179072305560112, -0.4012606143951416, 0.338985413312912, -0.335720032453537, 0.005409928038716316, 0.19701996445655823, -0.0852012112736702, -0.05634814873337746, -0.1069377213716507, 0.08490297198295593, 0.23251241445541382, 0.011036276817321777, -0.009520724415779114, 0.0929812490940094, 0.2951667308807373, -0.11607851088047028, 0.453213095664978, 0.36166611313819885, 0.07534864544868469, 0.19538070261478424, -0.13766975700855255, 0.18435727059841156, -0.25903233885765076, -0.1269460767507553, 0.02393760159611702, 0.17447157204151154, -0.22158385813236237, 0.13420608639717102, -0.08539136499166489, 0.014082697220146656, -0.13332000374794006, -0.05779343843460083, 0.10780762881040573, -0.2960291802883148, 0.007316289469599724, 0.04858735576272011, 0.052490077912807465, 0.031080108135938644, 0.14569389820098877, -0.19488678872585297, -0.13091060519218445, -0.02408905327320099, 0.3084796369075775, 0.05407733842730522, -0.023354846984148026, -0.24687330424785614, 0.09150967001914978, -0.337141752243042, 0.44400912523269653, 0.18309183418750763, 0.21379800140857697, -0.06935897469520569, -0.16017349064350128, -0.08004845678806305, 0.046007174998521805, 0.6831175088882446, 0.09912959486246109, 0.3160930275917053, 0.15549565851688385, 0.25470399856567383, -0.1230868473649025, 0.0391717366874218, 0.07955361902713776, 0.370187371969223, 0.13904181122779846, 0.4079340100288391, -0.2308095395565033, 0.03760851174592972, -0.18331637978553772, 0.18554216623306274, -0.11663331091403961, -0.4492170810699463, -0.02628673054277897, 0.008795861154794693, -0.2636868953704834, 0.1616200953722, 0.03360506892204285, 0.2442300170660019, 0.06167266517877579, 0.004912871867418289, -0.060176998376846313, -0.07477866113185883, 0.16015410423278809, 0.17483533918857574, 0.2812635898590088, -0.4468778073787689, 0.26436513662338257, -0.027559436857700348, -0.15952949225902557, 0.23041225969791412, 0.5639729499816895, -0.4439821243286133, -0.24784299731254578, 0.41447290778160095, -0.35655903816223145, 0.0764390379190445, 0.42870816588401794, -0.3107668459415436, -0.15842393040657043, 0.35820597410202026, 0.6321602463722229, 0.12365598231554031, 0.02578270249068737, 0.03256860002875328, 0.1308743953704834, -0.15302151441574097, -0.33461081981658936, 0.21633097529411316, 0.24309499561786652, -0.017834849655628204, 0.5360277891159058, 0.02425140142440796, -0.3025459051132202, 0.2613932490348816, -0.20595425367355347, 1.0209474563598633, -0.18544836342334747, 0.187150239944458, -0.019080180674791336, 0.1287672072649002, 0.49929943680763245, 0.0092904232442379, -0.08422501385211945, -0.4268141984939575, -0.4827863574028015, 0.14020313322544098, -0.14980430901050568, 0.2397724986076355, -0.036678969860076904, -0.13019977509975433, 0.31392866373062134, -0.2595100998878479, 0.017761893570423126, -0.17453187704086304, 0.45279353857040405, -0.6466595530509949, -0.2542141079902649, -0.25032249093055725, 0.047983624041080475, -0.0439816415309906, 0.11015117168426514, 0.061711765825748444, 0.16868647933006287, -0.32926085591316223, -0.2781674861907959, -0.22720620036125183, 0.03703145682811737, -0.4157640039920807, 0.08353055268526077, -0.24390175938606262, -0.2822073698043823, -0.09024199843406677, 0.28521299362182617, -0.032049693167209625, 0.4013371765613556, -0.20359505712985992, 0.09235057979822159, 0.0828218162059784, 0.0968710407614708, 0.07299897819757462, -0.06324413418769836, 0.3176954388618469, 0.01689670979976654, 0.07435301691293716, -0.28570476174354553, 0.005397404544055462, -0.1422327160835266, 0.03248310089111328, -0.023427315056324005, 0.15041396021842957, -0.23082882165908813, -0.32375669479370117, -0.33927252888679504, -0.20386244356632233, -0.15043561160564423, 0.052160535007715225, 0.33356934785842896, -0.23872403800487518, -0.008876502513885498, -0.2857567071914673, -0.4090467095375061, -0.009664677083492279, 0.305509477853775, -0.1481083631515503, -0.04720468446612358, 0.43272820115089417, 0.30000436305999756, -0.21020929515361786, -0.17791685461997986, -0.01901717111468315, -0.17999766767024994, -0.6621261835098267, 0.08230822533369064, 0.03604079782962799, -0.04271087795495987, -0.24160687625408173, -0.2668292820453644, 0.20536048710346222, 0.1265299916267395, 0.1113986223936081, -0.4697996973991394, -0.4082913398742676, -0.2329970747232437, -0.2976682782173157, 0.20161530375480652, -0.05662406235933304, -0.3551490306854248, -0.2588423192501068, 0.03277399018406868, -0.2122098207473755, 0.05999375879764557, -0.1423744112253189, -0.061836861073970795, 0.4633506238460541, -0.14184939861297607, 0.2244606763124466, -0.13970398902893066, 0.04635511338710785, 0.40120911598205566, 0.06941290199756622, -0.18165159225463867, -0.3011120557785034, 0.1451774388551712, 0.04116128385066986, 0.05858436971902847, -0.0672905370593071, -0.37864959239959717, -0.0527515672147274, -0.27983227372169495, 0.1326037496328354, 0.3364621698856354, 0.24244576692581177, 0.07561813294887543, 0.09432999789714813, 0.09865288436412811, -0.03252965211868286, 0.33068498969078064, -0.1649506688117981, -0.13839919865131378, 0.009523492306470871, 0.2725926637649536, -0.21072565019130707, 0.11752605438232422, -0.3212473392486572, 0.15365958213806152, -0.009538769721984863, -0.036182187497615814, 0.07528094947338104, -0.026536859571933746, -0.10968165099620819, 0.556442141532898, 0.23271775245666504, 0.2920385003089905, -0.2722921073436737, -0.23025205731391907, 0.27563202381134033, 0.13391298055648804, 0.016582787036895752, -0.2051161825656891, 0.10736621916294098, -0.12861280143260956, -0.0995858684182167, 0.37343546748161316, -0.0706329271197319, -0.13558737933635712, -0.18993808329105377, -0.12482254952192307, 0.5824732780456543, 0.09355614334344864, -0.0696675181388855, 0.24554680287837982, -0.013625647872686386, 0.07767554372549057, 0.46137043833732605, 0.25026869773864746, 0.016934238374233246, 0.5474840402603149, -0.3130880296230316, 0.029888730496168137, -0.1627940833568573, -0.006218317896127701, -0.2004128396511078, -0.4473770260810852, 0.13166163861751556, 0.31078028678894043, -0.07245743274688721, 0.18736635148525238, -0.14681971073150635, 0.30457574129104614, -0.25019729137420654, 0.18190141022205353, 0.0543661043047905, 0.04922143369913101, -0.10957314819097519, -0.014270344749093056, 0.3495121896266937, -0.025009408593177795, -0.2757624387741089, -0.004661649465560913, -0.1150464117527008, 0.14665570855140686, 0.37960121035575867, 0.2733507752418518, 0.13359257578849792, -0.17536142468452454, 0.004142811521887779, 0.21335840225219727, 0.16631391644477844, -0.4822302758693695, 0.14352306723594666, 0.39096003770828247, -0.08867873251438141, 0.2622946500778198, -0.0017306860536336899, 0.5537611246109009, 0.13979554176330566, 0.09830762445926666, -0.000722651369869709, -0.10646189749240875, -0.011388351209461689, -0.1354411542415619, 0.44462278485298157, -0.03087921440601349, -0.10251381993293762, 0.33876684308052063, 0.028034767135977745, -0.15769360959529877, 0.11466266214847565, 0.19288364052772522, 0.12371625006198883, -0.17515218257904053, 0.2012576162815094, 0.015889428555965424, -0.20776596665382385, -0.17863188683986664, 0.1449805498123169, -0.37866222858428955, -0.16338291764259338, 0.2516911029815674, 0.04038424417376518, 0.2624589502811432, -0.13559414446353912, 0.048980213701725006, -0.11941121518611908, 0.14834462106227875, 0.38399216532707214, 0.24334955215454102, -0.2853374183177948, -0.04056261479854584, -0.602446436882019, 0.22462862730026245, -0.04877280071377754, -0.17107351124286652, 0.045160405337810516, -0.11297567933797836, -0.047112517058849335, -0.1518053412437439, 0.38789820671081543, -0.01592743769288063, 0.11153451353311539, 0.267011821269989, -0.4752599000930786, -0.2240057736635208, 0.17030179500579834, -0.066301628947258, 0.22723457217216492, -0.39887675642967224, 0.1303199976682663, -0.26674434542655945, -0.01373506709933281, -0.1426674872636795, -0.19620108604431152, 0.12866798043251038, 0.3134676218032837, 0.3546338975429535, 0.11241355538368225, 0.2980174422264099, 0.06089770793914795, -0.24986258149147034, -0.3230263292789459, 0.1182485967874527, -0.13211649656295776, 0.015650730580091476, 0.2199660688638687, 0.2973290681838989, -0.40388303995132446, -0.43292027711868286, -0.37707412242889404, 0.5200785398483276, -0.13458755612373352, 0.07144635915756226, -0.12440495193004608, -0.04934093356132507, -0.03062569350004196, 0.27398911118507385, 0.2633129954338074, 0.23375573754310608, 0.07063711434602737, 0.4157316982746124, -0.19068926572799683, -0.29983028769493103, 0.6595057249069214, -0.10658835619688034, -0.4276304244995117, 0.0981968343257904, 0.40865209698677063, 0.07209658622741699, -0.16144773364067078, -0.4712711572647095, 0.15473952889442444, 0.3244367241859436, 0.0784328430891037, -0.2918297350406647, 0.23153716325759888, -0.2830389440059662, 0.12893372774124146, -0.10400557518005371, 0.25166189670562744, 0.26928257942199707, -0.20871414244174957, -0.05915987491607666, -0.19673295319080353 ]
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.049338411539793015, 0.09200134873390198, -0.07149402797222137, 0.40184879302978516, 0.41516703367233276, 0.23589500784873962, 0.6366614699363708, 0.2435026913881302, 0.23645862936973572, 0.23132994771003723, 0.01856815256178379, 0.007743119262158871, -0.14426825940608978, -0.31003570556640625, -0.2015363574028015, -0.2443147599697113, -0.15810900926589966, -0.04162128269672394, -0.17707857489585876, 0.21771924197673798, -0.1549791693687439, 0.378737211227417, 0.02463851124048233, 0.15708374977111816, -0.5360066890716553, 0.09007896482944489, -0.12959641218185425, 0.38867464661598206, -0.021506553515791893, -0.37299108505249023, 0.05111868679523468, -0.0467166043817997, 0.06881541758775711, 0.8113576769828796, -0.00012206858809804544, -0.3334410786628723, 0.35423392057418823, -0.056299224495887756, -0.32718950510025024, -0.224309042096138, -0.1685815155506134, -0.5117114186286926, -0.03458501398563385, -0.49880266189575195, 0.18721291422843933, -0.09511928260326385, -0.033190421760082245, -0.8021568059921265, 0.04105229675769806, 0.37330567836761475, 0.1268748641014099, -0.07834679633378983, 0.09102542698383331, -0.2579197287559509, 0.3323118984699249, -0.27798908948898315, 0.004084503278136253, 0.3564028739929199, 0.3556968569755554, -0.09886642545461655, -0.15465021133422852, 0.20321817696094513, -0.03689756989479065, 0.027325022965669632, 0.24715816974639893, 0.07953789830207825, -0.0874827429652214, -0.32616522908210754, 0.29580608010292053, 0.42739394307136536, 0.47143763303756714, -0.09306176751852036, -0.27931225299835205, -0.46769586205482483, 0.1424984186887741, -0.12510593235492706, 0.4885309040546417, -0.0762387216091156, -0.22207437455654144, 0.1514883041381836, -0.17041975259780884, -0.019621310755610466, -0.12359742820262909, -0.11023847758769989, -0.10197481513023376, 0.06506247073411942, 0.04050857573747635, 0.03627917915582657, 0.31111395359039307, -0.34831422567367554, 0.23959575593471527, 0.004836579784750938, 0.07427329570055008, 0.2694607675075531, -0.6542139053344727, 0.14691206812858582, 0.08426731824874878, 0.38549283146858215, 0.25348928570747375, 0.057643823325634, -0.2659733295440674, -0.1483081579208374, 0.19474831223487854, -0.010465599596500397, -0.06495590507984161, 0.37420716881752014, 0.1944449245929718, 0.1612812876701355, 0.301242858171463, 0.07794744521379471, -0.33674678206443787, -0.10693476349115372, -0.076487697660923, -0.5534631013870239, 0.44513842463493347, 0.13359034061431885, 0.07416309416294098, -0.34371116757392883, 0.15045858919620514, 0.5705775022506714, 0.1057044044137001, -0.010489962063729763, 0.22870256006717682, 0.2733798921108246, 0.005434134043753147, 0.11076538264751434, 0.08307428658008575, -0.0899365171790123, -0.08896112442016602, 0.10083572566509247, -0.14731301367282867, -0.11073002219200134, -0.22701914608478546, 0.11241000890731812, 0.0892055332660675, -0.3083968162536621, 0.27928006649017334, -0.22746558487415314, 0.31523990631103516, -0.12495826184749603, -0.08296846598386765, -0.2377428114414215, -0.06673305481672287, 0.15596769750118256, -0.059105802327394485, 0.07391411066055298, 0.2452138364315033, -0.26073384284973145, -0.19206151366233826, -0.07711134105920792, -0.33974918723106384, -0.2851884067058563, -0.06172212213277817, 0.09470310062170029, -0.1654943972826004, 0.2159021645784378, 0.24155426025390625, -0.2671959102153778, 0.6555521488189697, -0.07981885969638824, 0.012796826660633087, -0.2747650742530823, -0.1418105959892273, 0.007191919721662998, 0.04082578420639038, 0.553465723991394, 0.13252395391464233, -0.017562665045261383, -0.06878861784934998, 0.12828129529953003, 0.008666671812534332, 0.37225988507270813, 0.18064577877521515, -0.053596131503582, -0.42195239663124084, 0.3124936819076538, 0.2268710434436798, -0.2402808964252472, -0.4869852364063263, 0.32153841853141785, -0.39430683851242065, 0.0994926318526268, 0.32291194796562195, 0.022883234545588493, 0.051709964871406555, -0.024582387879490852, 0.28533732891082764, 0.18221351504325867, -0.026095619425177574, 0.02349572815001011, -0.20252390205860138, -0.10733113437891006, -0.040630415081977844, 0.1691952496767044, 0.010954219847917557, 0.06700097769498825, 0.07961978018283844, -0.175192192196846, 0.27156862616539, 0.03146364539861679, -0.20404410362243652, 0.373680055141449, 0.13824285566806793, 0.32671868801116943, 0.1860826164484024, -0.10632781684398651, -0.5937498807907104, 0.2637210488319397, -0.12184827029705048, -0.17873188853263855, -0.2175937443971634, -0.18680478632450104, -0.17498928308486938, -0.007289590314030647, 0.0034594647586345673, 0.13513661921024323, -0.02040853537619114, 0.28324878215789795, 0.14178010821342468, -0.13176319003105164, 0.09344077110290527, 0.5883795022964478, -0.17024418711662292, 0.017597468569874763, -0.47811824083328247, -0.1711251586675644, -0.11785472184419632, -0.11254032701253891, 0.031506575644016266, 0.0016393885016441345, 0.3693964183330536, -0.10896877199411392, -0.3443516194820404, 0.44807568192481995, 0.3332767188549042, 0.09753275662660599, -0.1789250671863556, -0.004430979490280151, -0.05686408281326294, 0.2207750678062439, 0.07266977429389954, 0.03981154412031174, 0.007785440422594547, 0.014292150735855103, -0.21357589960098267, 0.3000156879425049, -0.14081653952598572, 0.2712768316268921, 0.028613612055778503, 0.16824084520339966, 0.24617937207221985, -0.1318134069442749, 0.06434572488069534, -0.176122784614563, 0.6458838582038879, -0.21635237336158752, 0.30483996868133545, 0.05478006601333618, 0.04523121565580368, -0.14486438035964966, 0.6458194851875305, 0.04539325460791588, -0.00017743557691574097, 0.19774264097213745, 0.15620112419128418, -0.04081571474671364, -0.01937304623425007, 0.3064885437488556, 0.5111443996429443, 0.1920575648546219, -0.030123021453619003, -0.20650534331798553, 0.39415791630744934, -0.22383424639701843, 0.2563192546367645, 0.015907861292362213, -0.0027925779577344656, 0.3657032549381256, 0.04961807653307915, -0.12908706068992615, 0.05148372799158096, -0.8095083236694336, -0.050441935658454895, 0.22369764745235443, -0.3198081851005554, 0.14808255434036255, -0.13932590186595917, -0.04320499300956726, -0.023800060153007507, 0.0004900768399238586, -0.08039776980876923, -0.4162812829017639, -0.18889367580413818, 0.2785065174102783, -0.14183583855628967, 0.21453402936458588, -0.11883413791656494, -0.0032419413328170776, 0.27128300070762634, -0.014538956806063652, -0.29502761363983154, -0.0016123508103191853, 0.08034427464008331, -0.08376038074493408, 0.2720727324485779, -0.537502646446228, 0.08380384743213654, -0.1256636083126068, -0.06310753524303436, -0.5083535313606262, -0.24988093972206116, 0.11166781187057495, -0.16848011314868927, 0.29356497526168823, 0.3413665294647217, 0.20785747468471527, 0.1666615903377533, 0.05889623612165451, 0.004962285980582237, -0.26227912306785583, 0.02366955392062664, 0.23266398906707764, 0.17789937555789948, -0.022819053381681442, -0.19179973006248474, -0.023455344140529633, -0.3463740944862366, -0.41603314876556396, 0.3207845091819763, 0.030303534120321274, 0.22792896628379822, 0.34118977189064026, -0.07087269425392151, 0.2978118360042572, -0.017973121255636215, 0.24729226529598236, -0.08790640532970428, -0.4463707208633423, 0.41706109046936035, -0.15252242982387543, -0.29905930161476135, -0.4318079948425293, 0.29801326990127563, -0.03550926223397255, 0.1055184006690979, -0.4223639965057373, -0.179072305560112, -0.4012606143951416, 0.338985413312912, -0.335720032453537, 0.005409928038716316, 0.19701996445655823, -0.0852012112736702, -0.05634814873337746, -0.1069377213716507, 0.08490297198295593, 0.23251241445541382, 0.011036276817321777, -0.009520724415779114, 0.0929812490940094, 0.2951667308807373, -0.11607851088047028, 0.453213095664978, 0.36166611313819885, 0.07534864544868469, 0.19538070261478424, -0.13766975700855255, 0.18435727059841156, -0.25903233885765076, -0.1269460767507553, 0.02393760159611702, 0.17447157204151154, -0.22158385813236237, 0.13420608639717102, -0.08539136499166489, 0.014082697220146656, -0.13332000374794006, -0.05779343843460083, 0.10780762881040573, -0.2960291802883148, 0.007316289469599724, 0.04858735576272011, 0.052490077912807465, 0.031080108135938644, 0.14569389820098877, -0.19488678872585297, -0.13091060519218445, -0.02408905327320099, 0.3084796369075775, 0.05407733842730522, -0.023354846984148026, -0.24687330424785614, 0.09150967001914978, -0.337141752243042, 0.44400912523269653, 0.18309183418750763, 0.21379800140857697, -0.06935897469520569, -0.16017349064350128, -0.08004845678806305, 0.046007174998521805, 0.6831175088882446, 0.09912959486246109, 0.3160930275917053, 0.15549565851688385, 0.25470399856567383, -0.1230868473649025, 0.0391717366874218, 0.07955361902713776, 0.370187371969223, 0.13904181122779846, 0.4079340100288391, -0.2308095395565033, 0.03760851174592972, -0.18331637978553772, 0.18554216623306274, -0.11663331091403961, -0.4492170810699463, -0.02628673054277897, 0.008795861154794693, -0.2636868953704834, 0.1616200953722, 0.03360506892204285, 0.2442300170660019, 0.06167266517877579, 0.004912871867418289, -0.060176998376846313, -0.07477866113185883, 0.16015410423278809, 0.17483533918857574, 0.2812635898590088, -0.4468778073787689, 0.26436513662338257, -0.027559436857700348, -0.15952949225902557, 0.23041225969791412, 0.5639729499816895, -0.4439821243286133, -0.24784299731254578, 0.41447290778160095, -0.35655903816223145, 0.0764390379190445, 0.42870816588401794, -0.3107668459415436, -0.15842393040657043, 0.35820597410202026, 0.6321602463722229, 0.12365598231554031, 0.02578270249068737, 0.03256860002875328, 0.1308743953704834, -0.15302151441574097, -0.33461081981658936, 0.21633097529411316, 0.24309499561786652, -0.017834849655628204, 0.5360277891159058, 0.02425140142440796, -0.3025459051132202, 0.2613932490348816, -0.20595425367355347, 1.0209474563598633, -0.18544836342334747, 0.187150239944458, -0.019080180674791336, 0.1287672072649002, 0.49929943680763245, 0.0092904232442379, -0.08422501385211945, -0.4268141984939575, -0.4827863574028015, 0.14020313322544098, -0.14980430901050568, 0.2397724986076355, -0.036678969860076904, -0.13019977509975433, 0.31392866373062134, -0.2595100998878479, 0.017761893570423126, -0.17453187704086304, 0.45279353857040405, -0.6466595530509949, -0.2542141079902649, -0.25032249093055725, 0.047983624041080475, -0.0439816415309906, 0.11015117168426514, 0.061711765825748444, 0.16868647933006287, -0.32926085591316223, -0.2781674861907959, -0.22720620036125183, 0.03703145682811737, -0.4157640039920807, 0.08353055268526077, -0.24390175938606262, -0.2822073698043823, -0.09024199843406677, 0.28521299362182617, -0.032049693167209625, 0.4013371765613556, -0.20359505712985992, 0.09235057979822159, 0.0828218162059784, 0.0968710407614708, 0.07299897819757462, -0.06324413418769836, 0.3176954388618469, 0.01689670979976654, 0.07435301691293716, -0.28570476174354553, 0.005397404544055462, -0.1422327160835266, 0.03248310089111328, -0.023427315056324005, 0.15041396021842957, -0.23082882165908813, -0.32375669479370117, -0.33927252888679504, -0.20386244356632233, -0.15043561160564423, 0.052160535007715225, 0.33356934785842896, -0.23872403800487518, -0.008876502513885498, -0.2857567071914673, -0.4090467095375061, -0.009664677083492279, 0.305509477853775, -0.1481083631515503, -0.04720468446612358, 0.43272820115089417, 0.30000436305999756, -0.21020929515361786, -0.17791685461997986, -0.01901717111468315, -0.17999766767024994, -0.6621261835098267, 0.08230822533369064, 0.03604079782962799, -0.04271087795495987, -0.24160687625408173, -0.2668292820453644, 0.20536048710346222, 0.1265299916267395, 0.1113986223936081, -0.4697996973991394, -0.4082913398742676, -0.2329970747232437, -0.2976682782173157, 0.20161530375480652, -0.05662406235933304, -0.3551490306854248, -0.2588423192501068, 0.03277399018406868, -0.2122098207473755, 0.05999375879764557, -0.1423744112253189, -0.061836861073970795, 0.4633506238460541, -0.14184939861297607, 0.2244606763124466, -0.13970398902893066, 0.04635511338710785, 0.40120911598205566, 0.06941290199756622, -0.18165159225463867, -0.3011120557785034, 0.1451774388551712, 0.04116128385066986, 0.05858436971902847, -0.0672905370593071, -0.37864959239959717, -0.0527515672147274, -0.27983227372169495, 0.1326037496328354, 0.3364621698856354, 0.24244576692581177, 0.07561813294887543, 0.09432999789714813, 0.09865288436412811, -0.03252965211868286, 0.33068498969078064, -0.1649506688117981, -0.13839919865131378, 0.009523492306470871, 0.2725926637649536, -0.21072565019130707, 0.11752605438232422, -0.3212473392486572, 0.15365958213806152, -0.009538769721984863, -0.036182187497615814, 0.07528094947338104, -0.026536859571933746, -0.10968165099620819, 0.556442141532898, 0.23271775245666504, 0.2920385003089905, -0.2722921073436737, -0.23025205731391907, 0.27563202381134033, 0.13391298055648804, 0.016582787036895752, -0.2051161825656891, 0.10736621916294098, -0.12861280143260956, -0.0995858684182167, 0.37343546748161316, -0.0706329271197319, -0.13558737933635712, -0.18993808329105377, -0.12482254952192307, 0.5824732780456543, 0.09355614334344864, -0.0696675181388855, 0.24554680287837982, -0.013625647872686386, 0.07767554372549057, 0.46137043833732605, 0.25026869773864746, 0.016934238374233246, 0.5474840402603149, -0.3130880296230316, 0.029888730496168137, -0.1627940833568573, -0.006218317896127701, -0.2004128396511078, -0.4473770260810852, 0.13166163861751556, 0.31078028678894043, -0.07245743274688721, 0.18736635148525238, -0.14681971073150635, 0.30457574129104614, -0.25019729137420654, 0.18190141022205353, 0.0543661043047905, 0.04922143369913101, -0.10957314819097519, -0.014270344749093056, 0.3495121896266937, -0.025009408593177795, -0.2757624387741089, -0.004661649465560913, -0.1150464117527008, 0.14665570855140686, 0.37960121035575867, 0.2733507752418518, 0.13359257578849792, -0.17536142468452454, 0.004142811521887779, 0.21335840225219727, 0.16631391644477844, -0.4822302758693695, 0.14352306723594666, 0.39096003770828247, -0.08867873251438141, 0.2622946500778198, -0.0017306860536336899, 0.5537611246109009, 0.13979554176330566, 0.09830762445926666, -0.000722651369869709, -0.10646189749240875, -0.011388351209461689, -0.1354411542415619, 0.44462278485298157, -0.03087921440601349, -0.10251381993293762, 0.33876684308052063, 0.028034767135977745, -0.15769360959529877, 0.11466266214847565, 0.19288364052772522, 0.12371625006198883, -0.17515218257904053, 0.2012576162815094, 0.015889428555965424, -0.20776596665382385, -0.17863188683986664, 0.1449805498123169, -0.37866222858428955, -0.16338291764259338, 0.2516911029815674, 0.04038424417376518, 0.2624589502811432, -0.13559414446353912, 0.048980213701725006, -0.11941121518611908, 0.14834462106227875, 0.38399216532707214, 0.24334955215454102, -0.2853374183177948, -0.04056261479854584, -0.602446436882019, 0.22462862730026245, -0.04877280071377754, -0.17107351124286652, 0.045160405337810516, -0.11297567933797836, -0.047112517058849335, -0.1518053412437439, 0.38789820671081543, -0.01592743769288063, 0.11153451353311539, 0.267011821269989, -0.4752599000930786, -0.2240057736635208, 0.17030179500579834, -0.066301628947258, 0.22723457217216492, -0.39887675642967224, 0.1303199976682663, -0.26674434542655945, -0.01373506709933281, -0.1426674872636795, -0.19620108604431152, 0.12866798043251038, 0.3134676218032837, 0.3546338975429535, 0.11241355538368225, 0.2980174422264099, 0.06089770793914795, -0.24986258149147034, -0.3230263292789459, 0.1182485967874527, -0.13211649656295776, 0.015650730580091476, 0.2199660688638687, 0.2973290681838989, -0.40388303995132446, -0.43292027711868286, -0.37707412242889404, 0.5200785398483276, -0.13458755612373352, 0.07144635915756226, -0.12440495193004608, -0.04934093356132507, -0.03062569350004196, 0.27398911118507385, 0.2633129954338074, 0.23375573754310608, 0.07063711434602737, 0.4157316982746124, -0.19068926572799683, -0.29983028769493103, 0.6595057249069214, -0.10658835619688034, -0.4276304244995117, 0.0981968343257904, 0.40865209698677063, 0.07209658622741699, -0.16144773364067078, -0.4712711572647095, 0.15473952889442444, 0.3244367241859436, 0.0784328430891037, -0.2918297350406647, 0.23153716325759888, -0.2830389440059662, 0.12893372774124146, -0.10400557518005371, 0.25166189670562744, 0.26928257942199707, -0.20871414244174957, -0.05915987491607666, -0.19673295319080353 ]
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.38646548986434937, -0.2204951047897339, 0.08948132395744324, 0.4387415647506714, 0.21570813655853271, 0.12292324751615524, -0.03690968081355095, 0.30938833951950073, 0.24227789044380188, 0.09550275653600693, -0.22643156349658966, 0.426153302192688, -0.06417576223611832, 0.30353352427482605, -0.009466155432164669, -0.258478581905365, -0.00450567901134491, 0.23376582562923431, -0.10492624342441559, 0.12687642872333527, -0.0005550757050514221, 0.1941266804933548, -0.2469933182001114, -0.030422762036323547, 0.05222810432314873, -0.10810365527868271, 0.012406652793288231, 0.28052523732185364, -0.05958238244056702, -0.4462363123893738, 0.12590602040290833, -0.06154806539416313, 0.4121147394180298, 0.3375737965106964, -0.00011450322926975787, 0.27344852685928345, 0.4721425175666809, -0.12278444319963455, -0.48534414172172546, -0.21211494505405426, -0.218665212392807, 0.09612725675106049, 0.04283462464809418, -0.1566350758075714, -0.009134175255894661, 0.07111306488513947, -0.04000506550073624, -0.7192986607551575, 0.31784963607788086, 0.3456362783908844, 0.1778498739004135, 0.04260067269206047, -0.04894839599728584, 0.026822073385119438, 0.06883865594863892, -0.2986646890640259, -0.09200669080018997, 0.12181766331195831, 0.23672667145729065, 0.22874107956886292, -0.3595723807811737, 0.3845904469490051, -0.0658881664276123, 0.06018393114209175, 0.09441426396369934, 0.09672418981790543, -0.1749497354030609, -0.4655051529407501, -0.007393691688776016, 0.18841427564620972, 0.677678644657135, -0.2555167078971863, -0.4161974787712097, -0.23198765516281128, -0.0021712705492973328, -0.6144570708274841, 0.14653167128562927, 0.14892740547657013, -0.4673643112182617, 0.12805984914302826, 0.24596329033374786, -0.00875320564955473, -0.3279944956302643, -0.04587305337190628, -0.24679817259311676, 0.38822296261787415, -0.07678593695163727, -0.023726530373096466, 0.027294401079416275, -0.08662894368171692, 0.46277400851249695, -0.21103458106517792, -0.2845942974090576, -0.06397896260023117, -0.4397556185722351, -0.04206616058945656, -0.07651305943727493, -0.09410988539457321, 0.16814684867858887, 0.21538960933685303, 0.2953195571899414, 0.0882529467344284, 0.15436498820781708, 0.09264445304870605, 0.3555261492729187, 0.360866516828537, 0.059831902384757996, 0.18537728488445282, 0.13118085265159607, 0.09943114966154099, 0.13662408292293549, -0.18189197778701782, -0.14648929238319397, -0.037280723452568054, 0.028163325041532516, -0.013114143162965775, 0.2628587484359741, -0.19123785197734833, -0.41384685039520264, 0.0297919362783432, -0.3057215213775635, -0.07946724444627762, 0.00559076014906168, 0.28171709179878235, 0.09583375602960587, 0.4187793433666229, 0.019458353519439697, 0.11786714941263199, -0.23968343436717987, -0.45739322900772095, -0.0878111720085144, -0.12471860647201538, -0.0010079555213451385, 0.12334693968296051, 0.015335340052843094, -0.188683420419693, 0.1515745371580124, -0.0465376116335392, 0.16210034489631653, -0.0012192204594612122, -0.020855486392974854, -0.11005984246730804, 0.02162923663854599, 0.2049841284751892, 0.2180561125278473, 0.16403548419475555, 0.17951565980911255, -0.19978487491607666, -0.1306825876235962, 0.08862233906984329, -0.14163339138031006, -0.1671275496482849, -0.1788381040096283, 0.21664687991142273, -0.00940218847244978, -0.35062626004219055, -0.09378957003355026, 0.28146857023239136, 0.14095954596996307, -0.20378980040550232, -0.1410706341266632, -0.03914640098810196, -0.12413287162780762, -0.08651600778102875, 0.17927885055541992, 0.5796176791191101, -0.18559104204177856, -0.13802093267440796, -0.15213751792907715, 0.0008930210024118423, 0.5833055377006531, 0.3344022035598755, -0.06079144775867462, 0.08979751914739609, -0.17072248458862305, 0.14765387773513794, 0.5017141699790955, -0.14365872740745544, -0.5796037316322327, 0.5436663627624512, -0.03960764408111572, 0.5637269616127014, 0.2707030773162842, 0.022536763921380043, 0.17423388361930847, 0.04311984032392502, 0.3135278820991516, 0.32990241050720215, -0.14845938980579376, 0.0074824560433626175, -0.33346667885780334, -0.03998405486345291, 0.4416944980621338, 0.1912292093038559, 0.06742905080318451, 0.2502863109111786, -0.028873898088932037, -0.06266774982213974, 0.3689781725406647, -0.07525704801082611, 0.07634565979242325, 0.04100833833217621, 0.14688821136951447, 0.012037578970193863, 0.1379389613866806, -0.2090768814086914, -0.31068265438079834, 0.29723167419433594, 0.07492987811565399, 0.012709487229585648, -0.3174346685409546, 0.2031732201576233, -0.19064581394195557, 0.0017470922321081161, -0.262893944978714, -0.25904032588005066, 0.12431703507900238, 0.3170803487300873, 0.0756213515996933, 0.0505901537835598, -0.3084757626056671, 0.7747208476066589, -0.07825535535812378, -0.013134769164025784, -0.4549148976802826, 0.2024933248758316, -0.0707772895693779, -0.20145733654499054, 0.016439288854599, -0.1265658736228943, 0.06725546717643738, -0.016192669048905373, -0.2579917907714844, 0.3313201367855072, -0.23661351203918457, 0.264070987701416, -0.19543802738189697, -0.1731978803873062, 0.28974446654319763, -0.36447882652282715, -0.08668429404497147, 0.2706029713153839, 0.10750364512205124, 0.12520980834960938, -0.01769860088825226, 0.14808396995067596, 0.20709067583084106, 0.23613396286964417, 0.04344828426837921, 0.11434855312108994, 0.19616849720478058, -0.08167470991611481, -0.0686836689710617, -0.08500942587852478, 0.32404831051826477, -0.3548785448074341, 0.04674943909049034, -0.19892387092113495, -0.27229881286621094, 0.08236131072044373, 0.35867923498153687, -0.14038224518299103, -0.049273788928985596, 0.3303239941596985, -0.2885322868824005, -0.16390764713287354, 0.31456005573272705, 0.194009467959404, 0.47233641147613525, 0.08152143657207489, 0.2573353946208954, -0.045588091015815735, -0.18864789605140686, -0.07350543141365051, 0.30517008900642395, 0.1374838650226593, 0.03146433085203171, 0.24641156196594238, 0.030006226152181625, 0.16357432305812836, -0.3229166865348816, -0.3497171103954315, -0.05663169175386429, 0.11234160512685776, -0.3201865553855896, 0.30630242824554443, -0.3882676362991333, -0.4651738405227661, 0.04635053128004074, 0.15600888431072235, 0.06890590488910675, -0.323558509349823, -0.1817554384469986, 0.2325059026479721, -0.003881828859448433, 0.16368478536605835, -0.2682056725025177, 0.08954691886901855, 0.26717743277549744, -0.013469221070408821, -0.3418695628643036, -0.18084807693958282, -0.27296313643455505, 0.05919772759079933, 0.17499524354934692, -0.4228035509586334, 0.1769195944070816, 0.007425736635923386, -0.116054005920887, -0.14017432928085327, -0.07642336189746857, 0.3197820782661438, -0.15549927949905396, 0.15689587593078613, -0.2774864435195923, 0.14939181506633759, 0.22136227786540985, -0.2503492832183838, 0.12194915860891342, 0.09083347767591476, -0.1187848225235939, 0.280124694108963, 0.09408922493457794, -0.024161163717508316, -0.03058335930109024, -0.30108073353767395, -0.3024667799472809, -0.6177487969398499, 0.05496850609779358, 0.045426491647958755, 0.213551864027977, 0.16430455446243286, 0.0170351080596447, 0.09682458639144897, 0.3292067348957062, 0.09916001558303833, -0.11421224474906921, -0.4199431538581848, 0.3747449219226837, -0.16701506078243256, -0.2868408262729645, -0.32483646273612976, -0.06815966963768005, 0.1972905397415161, 0.25892674922943115, -0.5295247435569763, 0.2950170636177063, -0.4081031382083893, 0.08489322662353516, -0.38345226645469666, -0.09745568037033081, -0.026151761412620544, 0.07628902047872543, -0.03498866409063339, -0.18785756826400757, 0.07074664533138275, -0.11695166677236557, 0.09900693595409393, 0.20661038160324097, 0.10863137990236282, 0.3698713481426239, 0.10084925591945648, 0.33275020122528076, 0.4812113642692566, -0.019549336284399033, 0.3407551050186157, 0.08289063721895218, 0.153799906373024, -0.10043340176343918, -0.06278883665800095, -0.0955619066953659, -0.228080153465271, -0.02611899934709072, 0.09819898754358292, -0.09621326625347137, -0.5762299299240112, -0.2840518653392792, 0.05491508170962334, -0.06923651695251465, -0.23831064999103546, 0.052882932126522064, -0.5117743611335754, 0.04204858839511871, -0.18725726008415222, 0.15833932161331177, 0.08079692721366882, 0.05200182646512985, 0.08604632318019867, 0.17725250124931335, 0.12616358697414398, 0.17212069034576416, -0.18502259254455566, -0.06390615552663803, -0.4881904721260071, 0.18258515000343323, 0.10512664914131165, 0.4215750992298126, -0.1678096503019333, -0.13271597027778625, 0.0791148841381073, -0.06520656496286392, 0.34870490431785583, -0.2754165828227997, 0.0035671330988407135, 0.2673940062522888, 0.14213639497756958, -0.14155235886573792, 0.09176650643348694, -0.3209455907344818, 0.13682924211025238, 0.23595529794692993, 0.0974205881357193, -0.1718236207962036, 0.03333985060453415, -0.08841895312070847, -0.07249544560909271, -0.12530294060707092, -0.016399137675762177, -0.17049695551395416, -0.24923822283744812, -0.1520104855298996, -0.13424274325370789, 0.20327186584472656, 0.12568411231040955, -0.012460417114198208, -0.05679301917552948, -0.046082109212875366, -0.03962470963597298, 0.24185848236083984, 0.22132526338100433, 0.13990983366966248, -0.07228008657693863, 0.2290113866329193, 0.06719908118247986, 0.2844449281692505, 0.2292167991399765, 0.8364323377609253, 0.11819498240947723, -0.5624254941940308, 0.23508259654045105, 0.23395629227161407, 0.16609886288642883, 0.13053925335407257, -0.14823274314403534, -0.008516229689121246, -0.040384989231824875, 0.2698214054107666, -0.30247288942337036, 0.2146555334329605, 0.2112334817647934, -0.050720635801553726, -0.514930248260498, -0.4357539117336273, 0.58833909034729, -0.03936825320124626, -0.07619054615497589, 0.7872920036315918, -0.16650550067424774, -0.3171566426753998, 0.4775419235229492, 0.023435033857822418, 0.758586585521698, 0.09439576417207718, 0.21686868369579315, 0.24074769020080566, -0.3207271099090576, 0.5003341436386108, -0.2320675253868103, 0.3346683979034424, -0.12061021476984024, -0.3350297510623932, -0.08310913294553757, -0.10410962998867035, 0.1709020733833313, -0.14760418236255646, -0.6302545070648193, 0.1709606796503067, -0.05964374169707298, -0.25280579924583435, 0.335351824760437, 0.2742266356945038, -0.6082695722579956, -0.30629298090934753, -0.06754924356937408, 0.1388825923204422, -0.22135920822620392, 0.32396167516708374, 0.13824450969696045, -0.22023306787014008, -0.05157272145152092, -0.08431026339530945, -0.47023558616638184, 0.4758627116680145, -0.2765568792819977, 0.16241486370563507, -0.23903053998947144, -0.4760977625846863, 0.15131275355815887, 0.26640310883522034, -0.14213168621063232, -0.22578535974025726, -0.15825104713439941, 0.2350439727306366, 0.1860542893409729, 0.12802298367023468, 0.0993063896894455, 0.15145882964134216, 0.38835853338241577, 0.05327717214822769, -0.016812920570373535, 0.18844199180603027, -0.008979786187410355, -0.16062834858894348, -0.06378129124641418, 0.05545712262392044, 0.3183140158653259, -0.2681804299354553, 0.23685695230960846, -0.10585147142410278, 0.04292510077357292, -0.18425336480140686, 0.08697214722633362, -0.01883155107498169, -0.17405501008033752, -0.07388748973608017, -0.08129747211933136, -0.2196764498949051, -0.08474414050579071, 0.3771206736564636, 0.14545853435993195, 0.3179708421230316, 0.4994199275970459, 0.028117377310991287, -0.1778796911239624, -0.10367147624492645, -0.05514981225132942, -0.29314011335372925, -0.25261250138282776, 0.06935939192771912, -0.24147574603557587, -0.1610276699066162, -0.2706688642501831, 0.003827117383480072, 0.04483812674880028, -0.10355386883020401, -0.11373834311962128, -0.2993661165237427, -0.1906375288963318, -0.026614919304847717, -0.12424397468566895, 0.2199307382106781, -0.17221972346305847, 0.022204231470823288, 0.003119157627224922, 0.12908616662025452, -0.2706836462020874, -0.12285955995321274, -0.07537071406841278, 0.023117680102586746, 0.26721054315567017, 0.0292680524289608, 0.25923362374305725, 0.10967004299163818, 0.1476224660873413, 0.3139045238494873, -0.027674619108438492, -0.16095393896102905, -0.17879518866539001, 0.13848936557769775, 0.016531338915228844, -0.34805187582969666, -0.15489451587200165, -0.05662072077393532, 0.012690707109868526, -0.12513583898544312, 0.3503149747848511, 0.1812303364276886, 0.03809674456715584, 0.2706013321876526, 0.1240134909749031, 0.05633580684661865, -0.23264837265014648, 0.1542363464832306, -0.264273464679718, 0.2401297390460968, 0.08111175894737244, 0.09284107387065887, -0.07554002851247787, -0.011869147419929504, -0.3646136224269867, 0.0622696578502655, 0.10179534554481506, -0.028018340468406677, 0.5909273624420166, -0.42418134212493896, 0.17204448580741882, -0.04977497085928917, 0.066029854118824, 0.40452250838279724, -0.22961920499801636, -0.20896217226982117, 0.08508564531803131, 0.2000514417886734, -0.04320310801267624, -0.21262109279632568, -0.40104836225509644, -0.10164134949445724, 0.011238500475883484, 0.14595955610275269, -0.10688957571983337, -0.27218353748321533, 0.09996344894170761, -0.2103085219860077, 0.4859830141067505, 0.33584338426589966, 0.267066091299057, 0.483638733625412, -0.1811281442642212, 0.02284729853272438, -0.22602438926696777, 0.020459316670894623, 0.19990649819374084, 0.29704365134239197, 0.0035519003868103027, -0.007869260385632515, -0.16136622428894043, 0.21781915426254272, -0.18597516417503357, -0.482195645570755, -0.07974778115749359, 0.10244757682085037, -0.1647556722164154, 0.390193372964859, 0.14890892803668976, 0.15216028690338135, -0.2779354155063629, -0.05192210525274277, -0.04584231972694397, -0.06612612307071686, -0.014279749244451523, -0.09608116745948792, 0.1068754494190216, -0.012856438755989075, -0.32792240381240845, 0.09760838747024536, 0.012399893254041672, 0.06336839497089386, -0.019864723086357117, 0.28080618381500244, -0.2884637117385864, -0.11850140988826752, -0.08222807198762894, 0.10431793332099915, 0.2999253571033478, -0.3544151782989502, 0.4440692663192749, 0.36619073152542114, -0.15686115622520447, 0.028250068426132202, 0.0700020045042038, 0.4816073775291443, 0.2853381633758545, -0.1766507774591446, 0.0946502760052681, 0.3374163806438446, -0.04363712668418884, -0.040220990777015686, 0.04425382614135742, 0.2830948829650879, 0.17931905388832092, 0.456689715385437, 0.08873913437128067, -0.14854194223880768, 0.10457181930541992, 0.08143529295921326, 0.253888875246048, -0.27993863821029663, 0.46231910586357117, -0.11950662732124329, 0.03669223189353943, 0.027242343872785568, -0.33657142519950867, -0.5624159574508667, -0.028204843401908875, 0.03489607200026512, -0.2285001277923584, 0.07452432811260223, -0.008112357929348946, 0.06287823617458344, 0.11395446956157684, 0.4926684498786926, 0.3248409628868103, -0.018845543265342712, -0.22450971603393555, -0.1508791595697403, -0.23558303713798523, 0.23320239782333374, -0.06747953593730927, -0.1231478825211525, 0.17528603971004486, 0.22192272543907166, -0.004842139780521393, 0.16804955899715424, -0.15844489634037018, 0.020454730838537216, -0.2672829329967499, 0.1405726969242096, -0.39957964420318604, -0.35156747698783875, 0.1919628083705902, 0.17357976734638214, -0.04831184446811676, -0.5764805674552917, 0.18813902139663696, -0.15023978054523468, 0.16081765294075012, 0.09261247515678406, -0.24184809625148773, 0.10114538669586182, -0.2756577730178833, 0.5297331809997559, 0.23311084508895874, 0.3792007565498352, -0.18429532647132874, -0.41195622086524963, -0.0992458164691925, -0.3762305974960327, -0.2749141752719879, -0.01558520644903183, 0.10833388566970825, 0.5696324110031128, -0.14933417737483978, -0.23738352954387665, -0.357470840215683, 0.32626262307167053, 0.060890160501003265, -0.2656734883785248, -0.2735380232334137, 0.1733701229095459, -0.11945965886116028, 0.21312570571899414, 0.3050515949726105, 0.3803454637527466, -0.028712958097457886, 0.16399529576301575, -0.22351540625095367, -0.43332093954086304, 0.5773106813430786, -0.3461062014102936, -0.26596707105636597, 0.24184012413024902, 0.06381396949291229, 0.32649677991867065, 0.24102000892162323, -0.45966625213623047, 0.0893658921122551, 0.35565486550331116, -0.2354128062725067, -0.15118595957756042, 0.14214646816253662, 0.22597083449363708, -0.060719773173332214, -0.08503946661949158, 0.4553113281726837, 0.24239668250083923, -0.24920445680618286, 0.1750812530517578, -0.17863884568214417 ]
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.38646548986434937, -0.2204951047897339, 0.08948132395744324, 0.4387415647506714, 0.21570813655853271, 0.12292324751615524, -0.03690968081355095, 0.30938833951950073, 0.24227789044380188, 0.09550275653600693, -0.22643156349658966, 0.426153302192688, -0.06417576223611832, 0.30353352427482605, -0.009466155432164669, -0.258478581905365, -0.00450567901134491, 0.23376582562923431, -0.10492624342441559, 0.12687642872333527, -0.0005550757050514221, 0.1941266804933548, -0.2469933182001114, -0.030422762036323547, 0.05222810432314873, -0.10810365527868271, 0.012406652793288231, 0.28052523732185364, -0.05958238244056702, -0.4462363123893738, 0.12590602040290833, -0.06154806539416313, 0.4121147394180298, 0.3375737965106964, -0.00011450322926975787, 0.27344852685928345, 0.4721425175666809, -0.12278444319963455, -0.48534414172172546, -0.21211494505405426, -0.218665212392807, 0.09612725675106049, 0.04283462464809418, -0.1566350758075714, -0.009134175255894661, 0.07111306488513947, -0.04000506550073624, -0.7192986607551575, 0.31784963607788086, 0.3456362783908844, 0.1778498739004135, 0.04260067269206047, -0.04894839599728584, 0.026822073385119438, 0.06883865594863892, -0.2986646890640259, -0.09200669080018997, 0.12181766331195831, 0.23672667145729065, 0.22874107956886292, -0.3595723807811737, 0.3845904469490051, -0.0658881664276123, 0.06018393114209175, 0.09441426396369934, 0.09672418981790543, -0.1749497354030609, -0.4655051529407501, -0.007393691688776016, 0.18841427564620972, 0.677678644657135, -0.2555167078971863, -0.4161974787712097, -0.23198765516281128, -0.0021712705492973328, -0.6144570708274841, 0.14653167128562927, 0.14892740547657013, -0.4673643112182617, 0.12805984914302826, 0.24596329033374786, -0.00875320564955473, -0.3279944956302643, -0.04587305337190628, -0.24679817259311676, 0.38822296261787415, -0.07678593695163727, -0.023726530373096466, 0.027294401079416275, -0.08662894368171692, 0.46277400851249695, -0.21103458106517792, -0.2845942974090576, -0.06397896260023117, -0.4397556185722351, -0.04206616058945656, -0.07651305943727493, -0.09410988539457321, 0.16814684867858887, 0.21538960933685303, 0.2953195571899414, 0.0882529467344284, 0.15436498820781708, 0.09264445304870605, 0.3555261492729187, 0.360866516828537, 0.059831902384757996, 0.18537728488445282, 0.13118085265159607, 0.09943114966154099, 0.13662408292293549, -0.18189197778701782, -0.14648929238319397, -0.037280723452568054, 0.028163325041532516, -0.013114143162965775, 0.2628587484359741, -0.19123785197734833, -0.41384685039520264, 0.0297919362783432, -0.3057215213775635, -0.07946724444627762, 0.00559076014906168, 0.28171709179878235, 0.09583375602960587, 0.4187793433666229, 0.019458353519439697, 0.11786714941263199, -0.23968343436717987, -0.45739322900772095, -0.0878111720085144, -0.12471860647201538, -0.0010079555213451385, 0.12334693968296051, 0.015335340052843094, -0.188683420419693, 0.1515745371580124, -0.0465376116335392, 0.16210034489631653, -0.0012192204594612122, -0.020855486392974854, -0.11005984246730804, 0.02162923663854599, 0.2049841284751892, 0.2180561125278473, 0.16403548419475555, 0.17951565980911255, -0.19978487491607666, -0.1306825876235962, 0.08862233906984329, -0.14163339138031006, -0.1671275496482849, -0.1788381040096283, 0.21664687991142273, -0.00940218847244978, -0.35062626004219055, -0.09378957003355026, 0.28146857023239136, 0.14095954596996307, -0.20378980040550232, -0.1410706341266632, -0.03914640098810196, -0.12413287162780762, -0.08651600778102875, 0.17927885055541992, 0.5796176791191101, -0.18559104204177856, -0.13802093267440796, -0.15213751792907715, 0.0008930210024118423, 0.5833055377006531, 0.3344022035598755, -0.06079144775867462, 0.08979751914739609, -0.17072248458862305, 0.14765387773513794, 0.5017141699790955, -0.14365872740745544, -0.5796037316322327, 0.5436663627624512, -0.03960764408111572, 0.5637269616127014, 0.2707030773162842, 0.022536763921380043, 0.17423388361930847, 0.04311984032392502, 0.3135278820991516, 0.32990241050720215, -0.14845938980579376, 0.0074824560433626175, -0.33346667885780334, -0.03998405486345291, 0.4416944980621338, 0.1912292093038559, 0.06742905080318451, 0.2502863109111786, -0.028873898088932037, -0.06266774982213974, 0.3689781725406647, -0.07525704801082611, 0.07634565979242325, 0.04100833833217621, 0.14688821136951447, 0.012037578970193863, 0.1379389613866806, -0.2090768814086914, -0.31068265438079834, 0.29723167419433594, 0.07492987811565399, 0.012709487229585648, -0.3174346685409546, 0.2031732201576233, -0.19064581394195557, 0.0017470922321081161, -0.262893944978714, -0.25904032588005066, 0.12431703507900238, 0.3170803487300873, 0.0756213515996933, 0.0505901537835598, -0.3084757626056671, 0.7747208476066589, -0.07825535535812378, -0.013134769164025784, -0.4549148976802826, 0.2024933248758316, -0.0707772895693779, -0.20145733654499054, 0.016439288854599, -0.1265658736228943, 0.06725546717643738, -0.016192669048905373, -0.2579917907714844, 0.3313201367855072, -0.23661351203918457, 0.264070987701416, -0.19543802738189697, -0.1731978803873062, 0.28974446654319763, -0.36447882652282715, -0.08668429404497147, 0.2706029713153839, 0.10750364512205124, 0.12520980834960938, -0.01769860088825226, 0.14808396995067596, 0.20709067583084106, 0.23613396286964417, 0.04344828426837921, 0.11434855312108994, 0.19616849720478058, -0.08167470991611481, -0.0686836689710617, -0.08500942587852478, 0.32404831051826477, -0.3548785448074341, 0.04674943909049034, -0.19892387092113495, -0.27229881286621094, 0.08236131072044373, 0.35867923498153687, -0.14038224518299103, -0.049273788928985596, 0.3303239941596985, -0.2885322868824005, -0.16390764713287354, 0.31456005573272705, 0.194009467959404, 0.47233641147613525, 0.08152143657207489, 0.2573353946208954, -0.045588091015815735, -0.18864789605140686, -0.07350543141365051, 0.30517008900642395, 0.1374838650226593, 0.03146433085203171, 0.24641156196594238, 0.030006226152181625, 0.16357432305812836, -0.3229166865348816, -0.3497171103954315, -0.05663169175386429, 0.11234160512685776, -0.3201865553855896, 0.30630242824554443, -0.3882676362991333, -0.4651738405227661, 0.04635053128004074, 0.15600888431072235, 0.06890590488910675, -0.323558509349823, -0.1817554384469986, 0.2325059026479721, -0.003881828859448433, 0.16368478536605835, -0.2682056725025177, 0.08954691886901855, 0.26717743277549744, -0.013469221070408821, -0.3418695628643036, -0.18084807693958282, -0.27296313643455505, 0.05919772759079933, 0.17499524354934692, -0.4228035509586334, 0.1769195944070816, 0.007425736635923386, -0.116054005920887, -0.14017432928085327, -0.07642336189746857, 0.3197820782661438, -0.15549927949905396, 0.15689587593078613, -0.2774864435195923, 0.14939181506633759, 0.22136227786540985, -0.2503492832183838, 0.12194915860891342, 0.09083347767591476, -0.1187848225235939, 0.280124694108963, 0.09408922493457794, -0.024161163717508316, -0.03058335930109024, -0.30108073353767395, -0.3024667799472809, -0.6177487969398499, 0.05496850609779358, 0.045426491647958755, 0.213551864027977, 0.16430455446243286, 0.0170351080596447, 0.09682458639144897, 0.3292067348957062, 0.09916001558303833, -0.11421224474906921, -0.4199431538581848, 0.3747449219226837, -0.16701506078243256, -0.2868408262729645, -0.32483646273612976, -0.06815966963768005, 0.1972905397415161, 0.25892674922943115, -0.5295247435569763, 0.2950170636177063, -0.4081031382083893, 0.08489322662353516, -0.38345226645469666, -0.09745568037033081, -0.026151761412620544, 0.07628902047872543, -0.03498866409063339, -0.18785756826400757, 0.07074664533138275, -0.11695166677236557, 0.09900693595409393, 0.20661038160324097, 0.10863137990236282, 0.3698713481426239, 0.10084925591945648, 0.33275020122528076, 0.4812113642692566, -0.019549336284399033, 0.3407551050186157, 0.08289063721895218, 0.153799906373024, -0.10043340176343918, -0.06278883665800095, -0.0955619066953659, -0.228080153465271, -0.02611899934709072, 0.09819898754358292, -0.09621326625347137, -0.5762299299240112, -0.2840518653392792, 0.05491508170962334, -0.06923651695251465, -0.23831064999103546, 0.052882932126522064, -0.5117743611335754, 0.04204858839511871, -0.18725726008415222, 0.15833932161331177, 0.08079692721366882, 0.05200182646512985, 0.08604632318019867, 0.17725250124931335, 0.12616358697414398, 0.17212069034576416, -0.18502259254455566, -0.06390615552663803, -0.4881904721260071, 0.18258515000343323, 0.10512664914131165, 0.4215750992298126, -0.1678096503019333, -0.13271597027778625, 0.0791148841381073, -0.06520656496286392, 0.34870490431785583, -0.2754165828227997, 0.0035671330988407135, 0.2673940062522888, 0.14213639497756958, -0.14155235886573792, 0.09176650643348694, -0.3209455907344818, 0.13682924211025238, 0.23595529794692993, 0.0974205881357193, -0.1718236207962036, 0.03333985060453415, -0.08841895312070847, -0.07249544560909271, -0.12530294060707092, -0.016399137675762177, -0.17049695551395416, -0.24923822283744812, -0.1520104855298996, -0.13424274325370789, 0.20327186584472656, 0.12568411231040955, -0.012460417114198208, -0.05679301917552948, -0.046082109212875366, -0.03962470963597298, 0.24185848236083984, 0.22132526338100433, 0.13990983366966248, -0.07228008657693863, 0.2290113866329193, 0.06719908118247986, 0.2844449281692505, 0.2292167991399765, 0.8364323377609253, 0.11819498240947723, -0.5624254941940308, 0.23508259654045105, 0.23395629227161407, 0.16609886288642883, 0.13053925335407257, -0.14823274314403534, -0.008516229689121246, -0.040384989231824875, 0.2698214054107666, -0.30247288942337036, 0.2146555334329605, 0.2112334817647934, -0.050720635801553726, -0.514930248260498, -0.4357539117336273, 0.58833909034729, -0.03936825320124626, -0.07619054615497589, 0.7872920036315918, -0.16650550067424774, -0.3171566426753998, 0.4775419235229492, 0.023435033857822418, 0.758586585521698, 0.09439576417207718, 0.21686868369579315, 0.24074769020080566, -0.3207271099090576, 0.5003341436386108, -0.2320675253868103, 0.3346683979034424, -0.12061021476984024, -0.3350297510623932, -0.08310913294553757, -0.10410962998867035, 0.1709020733833313, -0.14760418236255646, -0.6302545070648193, 0.1709606796503067, -0.05964374169707298, -0.25280579924583435, 0.335351824760437, 0.2742266356945038, -0.6082695722579956, -0.30629298090934753, -0.06754924356937408, 0.1388825923204422, -0.22135920822620392, 0.32396167516708374, 0.13824450969696045, -0.22023306787014008, -0.05157272145152092, -0.08431026339530945, -0.47023558616638184, 0.4758627116680145, -0.2765568792819977, 0.16241486370563507, -0.23903053998947144, -0.4760977625846863, 0.15131275355815887, 0.26640310883522034, -0.14213168621063232, -0.22578535974025726, -0.15825104713439941, 0.2350439727306366, 0.1860542893409729, 0.12802298367023468, 0.0993063896894455, 0.15145882964134216, 0.38835853338241577, 0.05327717214822769, -0.016812920570373535, 0.18844199180603027, -0.008979786187410355, -0.16062834858894348, -0.06378129124641418, 0.05545712262392044, 0.3183140158653259, -0.2681804299354553, 0.23685695230960846, -0.10585147142410278, 0.04292510077357292, -0.18425336480140686, 0.08697214722633362, -0.01883155107498169, -0.17405501008033752, -0.07388748973608017, -0.08129747211933136, -0.2196764498949051, -0.08474414050579071, 0.3771206736564636, 0.14545853435993195, 0.3179708421230316, 0.4994199275970459, 0.028117377310991287, -0.1778796911239624, -0.10367147624492645, -0.05514981225132942, -0.29314011335372925, -0.25261250138282776, 0.06935939192771912, -0.24147574603557587, -0.1610276699066162, -0.2706688642501831, 0.003827117383480072, 0.04483812674880028, -0.10355386883020401, -0.11373834311962128, -0.2993661165237427, -0.1906375288963318, -0.026614919304847717, -0.12424397468566895, 0.2199307382106781, -0.17221972346305847, 0.022204231470823288, 0.003119157627224922, 0.12908616662025452, -0.2706836462020874, -0.12285955995321274, -0.07537071406841278, 0.023117680102586746, 0.26721054315567017, 0.0292680524289608, 0.25923362374305725, 0.10967004299163818, 0.1476224660873413, 0.3139045238494873, -0.027674619108438492, -0.16095393896102905, -0.17879518866539001, 0.13848936557769775, 0.016531338915228844, -0.34805187582969666, -0.15489451587200165, -0.05662072077393532, 0.012690707109868526, -0.12513583898544312, 0.3503149747848511, 0.1812303364276886, 0.03809674456715584, 0.2706013321876526, 0.1240134909749031, 0.05633580684661865, -0.23264837265014648, 0.1542363464832306, -0.264273464679718, 0.2401297390460968, 0.08111175894737244, 0.09284107387065887, -0.07554002851247787, -0.011869147419929504, -0.3646136224269867, 0.0622696578502655, 0.10179534554481506, -0.028018340468406677, 0.5909273624420166, -0.42418134212493896, 0.17204448580741882, -0.04977497085928917, 0.066029854118824, 0.40452250838279724, -0.22961920499801636, -0.20896217226982117, 0.08508564531803131, 0.2000514417886734, -0.04320310801267624, -0.21262109279632568, -0.40104836225509644, -0.10164134949445724, 0.011238500475883484, 0.14595955610275269, -0.10688957571983337, -0.27218353748321533, 0.09996344894170761, -0.2103085219860077, 0.4859830141067505, 0.33584338426589966, 0.267066091299057, 0.483638733625412, -0.1811281442642212, 0.02284729853272438, -0.22602438926696777, 0.020459316670894623, 0.19990649819374084, 0.29704365134239197, 0.0035519003868103027, -0.007869260385632515, -0.16136622428894043, 0.21781915426254272, -0.18597516417503357, -0.482195645570755, -0.07974778115749359, 0.10244757682085037, -0.1647556722164154, 0.390193372964859, 0.14890892803668976, 0.15216028690338135, -0.2779354155063629, -0.05192210525274277, -0.04584231972694397, -0.06612612307071686, -0.014279749244451523, -0.09608116745948792, 0.1068754494190216, -0.012856438755989075, -0.32792240381240845, 0.09760838747024536, 0.012399893254041672, 0.06336839497089386, -0.019864723086357117, 0.28080618381500244, -0.2884637117385864, -0.11850140988826752, -0.08222807198762894, 0.10431793332099915, 0.2999253571033478, -0.3544151782989502, 0.4440692663192749, 0.36619073152542114, -0.15686115622520447, 0.028250068426132202, 0.0700020045042038, 0.4816073775291443, 0.2853381633758545, -0.1766507774591446, 0.0946502760052681, 0.3374163806438446, -0.04363712668418884, -0.040220990777015686, 0.04425382614135742, 0.2830948829650879, 0.17931905388832092, 0.456689715385437, 0.08873913437128067, -0.14854194223880768, 0.10457181930541992, 0.08143529295921326, 0.253888875246048, -0.27993863821029663, 0.46231910586357117, -0.11950662732124329, 0.03669223189353943, 0.027242343872785568, -0.33657142519950867, -0.5624159574508667, -0.028204843401908875, 0.03489607200026512, -0.2285001277923584, 0.07452432811260223, -0.008112357929348946, 0.06287823617458344, 0.11395446956157684, 0.4926684498786926, 0.3248409628868103, -0.018845543265342712, -0.22450971603393555, -0.1508791595697403, -0.23558303713798523, 0.23320239782333374, -0.06747953593730927, -0.1231478825211525, 0.17528603971004486, 0.22192272543907166, -0.004842139780521393, 0.16804955899715424, -0.15844489634037018, 0.020454730838537216, -0.2672829329967499, 0.1405726969242096, -0.39957964420318604, -0.35156747698783875, 0.1919628083705902, 0.17357976734638214, -0.04831184446811676, -0.5764805674552917, 0.18813902139663696, -0.15023978054523468, 0.16081765294075012, 0.09261247515678406, -0.24184809625148773, 0.10114538669586182, -0.2756577730178833, 0.5297331809997559, 0.23311084508895874, 0.3792007565498352, -0.18429532647132874, -0.41195622086524963, -0.0992458164691925, -0.3762305974960327, -0.2749141752719879, -0.01558520644903183, 0.10833388566970825, 0.5696324110031128, -0.14933417737483978, -0.23738352954387665, -0.357470840215683, 0.32626262307167053, 0.060890160501003265, -0.2656734883785248, -0.2735380232334137, 0.1733701229095459, -0.11945965886116028, 0.21312570571899414, 0.3050515949726105, 0.3803454637527466, -0.028712958097457886, 0.16399529576301575, -0.22351540625095367, -0.43332093954086304, 0.5773106813430786, -0.3461062014102936, -0.26596707105636597, 0.24184012413024902, 0.06381396949291229, 0.32649677991867065, 0.24102000892162323, -0.45966625213623047, 0.0893658921122551, 0.35565486550331116, -0.2354128062725067, -0.15118595957756042, 0.14214646816253662, 0.22597083449363708, -0.060719773173332214, -0.08503946661949158, 0.4553113281726837, 0.24239668250083923, -0.24920445680618286, 0.1750812530517578, -0.17863884568214417 ]
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.12404842674732208, -0.20182505249977112, -0.07033973932266235, 0.18945975601673126, 0.21477316319942474, -0.11205006390810013, 0.02766742929816246, 0.07187370955944061, 0.28058117628097534, 0.085055872797966, 0.16487310826778412, 0.1174071729183197, 0.15548177063465118, 0.1022036150097847, 0.158847376704216, -0.2615046799182892, 0.030185744166374207, 0.039310164749622345, -0.16915124654769897, 0.008864566683769226, -0.32153767347335815, 0.08592844754457474, -0.3066693842411041, -0.11271390318870544, 0.1635582000017166, 0.03244052827358246, -0.2886961102485657, 0.30047082901000977, -0.25459983944892883, -0.16940443217754364, 0.09937030076980591, -0.07090865075588226, 0.18506643176078796, 0.35194918513298035, -0.00010874315194087103, 0.08132579922676086, 0.3922841548919678, 0.023530980572104454, 0.01742926426231861, -0.058175742626190186, -0.2938911020755768, -0.14136870205402374, -0.1911943107843399, -0.3151721954345703, 0.09970591217279434, 0.2347300797700882, 0.045437540858983994, -0.11122839897871017, 0.24436214566230774, 0.44914525747299194, 0.3060821294784546, 0.4809368848800659, -0.11500197649002075, 0.051727183163166046, 0.45546311140060425, 0.05056488886475563, -0.18167616426944733, 0.24919962882995605, 0.3063488006591797, -0.14193715155124664, 0.25700223445892334, -0.059411682188510895, -0.12101113796234131, 0.011558810248970985, 0.0310034342110157, 0.12063578516244888, -0.049464210867881775, -0.5093157291412354, 0.12343191355466843, 0.17437487840652466, 0.31266137957572937, -0.15310877561569214, -0.15854011476039886, 0.11584848910570145, -0.14940020442008972, -0.18569684028625488, 0.27338773012161255, 0.2762607932090759, -0.13931703567504883, 0.18718239665031433, -0.2805481255054474, 0.17438746988773346, -0.2056804746389389, 0.2596927881240845, -0.1191069558262825, 0.32990798354148865, -0.07594972103834152, 0.18944674730300903, -0.1710146814584732, 0.31671810150146484, 0.03771068528294563, -0.32725557684898376, -0.01567722111940384, -0.003989478573203087, 0.0856894925236702, 0.10570800304412842, 0.049354903399944305, 0.5118293166160583, 0.057304173707962036, 0.26434558629989624, 0.03348736837506294, -0.05601862072944641, 0.24109020829200745, 0.07001956552267075, 0.09027203917503357, 0.09497971832752228, -0.29586684703826904, 0.06604406982660294, 0.38178205490112305, 0.3139163553714752, -0.006580285727977753, -0.026201091706752777, -0.03304915502667427, -0.31550684571266174, 0.2965128719806671, -0.0053923893719911575, 0.48603516817092896, -0.047427207231521606, -0.5569099187850952, 0.0026349397376179695, 0.014627918601036072, 0.09089183807373047, -0.002353011630475521, 0.25268620252609253, -0.3218327462673187, -0.022581692785024643, 0.12337028980255127, 0.3000146150588989, -0.12404505163431168, 0.19435729086399078, 0.00406313082203269, 0.1806820034980774, -0.25206878781318665, -0.22607263922691345, 0.3475828766822815, -0.06712980568408966, 0.12012463063001633, 0.19356133043766022, -0.0914592295885086, -0.04287442937493324, 0.0132011529058218, -0.08051620423793793, 0.027182139456272125, 0.4316021502017975, 0.19525642693042755, 0.37025347352027893, -0.009459037333726883, 0.0780787467956543, -0.07072672992944717, 0.20629405975341797, -0.14631623029708862, -0.024970505386590958, 0.021134208887815475, 0.2608018219470978, -0.32658928632736206, -0.18855953216552734, 0.03979369252920151, -0.2664664089679718, -0.04091093689203262, -0.02938896417617798, 0.24959790706634521, -0.19647951424121857, -0.28914812207221985, -0.384131520986557, 0.09299255907535553, 0.52479088306427, -0.3482256531715393, 0.20685118436813354, 0.06146479770541191, -0.2714434862136841, 0.4014228880405426, 0.05860980600118637, 0.13095657527446747, 0.16050979495048523, -0.4302999973297119, 0.04150564968585968, 0.1171322837471962, -0.3501315414905548, -0.4970431625843048, 0.3584975302219391, -0.18995264172554016, 0.32069075107574463, 0.17838126420974731, 0.09198445081710815, 0.29390984773635864, -0.08338102698326111, -0.01203848421573639, 0.3098944425582886, -0.022482549771666527, 0.05824398994445801, -0.12457814812660217, -0.1297621726989746, 0.13000012934207916, 0.10852126777172089, 0.12085965275764465, 0.14329613745212555, 0.2932315468788147, -0.13603970408439636, 0.3164028227329254, 0.1788199543952942, 0.09648939222097397, 0.23754583299160004, 0.2550183832645416, 0.26808932423591614, 0.12365484237670898, -0.22698596119880676, 0.0015708282589912415, 0.28610706329345703, -0.0804188996553421, -0.1590328961610794, -0.24103333055973053, -0.2218061089515686, -0.5582584738731384, 0.022449420765042305, -0.18866224586963654, -0.22198152542114258, 0.16530145704746246, 0.137259379029274, 0.24955376982688904, 0.042695093899965286, 0.07544705271720886, 0.17933662235736847, -0.007186410948634148, -0.06845972687005997, 0.07519043236970901, 0.3602064847946167, -0.34395065903663635, -0.05052394047379494, -0.09659691900014877, -0.07217655330896378, 0.22991764545440674, -0.05668502673506737, -0.015229051932692528, 0.19726821780204773, 0.020261989906430244, -0.04262913763523102, 0.03620869293808937, 0.04865986108779907, 0.016718648374080658, -0.18056167662143707, 0.2716657519340515, 0.5724839568138123, 0.26855725049972534, -0.0967835932970047, -0.03222931921482086, 0.005361638963222504, -0.07502566277980804, 0.01775578409433365, -0.022257784381508827, 0.14869703352451324, 0.19364099204540253, -0.1889592558145523, -0.10111105442047119, 0.002102188766002655, 0.3638000786304474, 0.06130453571677208, -0.09914207458496094, -0.16853411495685577, -0.16799360513687134, 0.167079359292984, 0.5450266599655151, -0.27523279190063477, 0.30147966742515564, 0.07062222063541412, -0.09666352719068527, 0.20947295427322388, -0.18009060621261597, 0.10591787099838257, 0.6080440282821655, 0.033295873552560806, 0.11296103149652481, 0.37115439772605896, 0.008863399736583233, -0.1436055451631546, 0.21492883563041687, 0.1461232751607895, -0.29896998405456543, 0.1730046272277832, -0.05207773298025131, 0.17691949009895325, -0.2095147669315338, -0.2376023530960083, -0.05715707689523697, 0.05267764627933502, -0.34522226452827454, 0.24298949539661407, -0.16144445538520813, -0.1740003526210785, -0.3291533887386322, -0.08695724606513977, -0.07667100429534912, -0.06329300999641418, 0.024691004306077957, 0.28079378604888916, -0.14507360756397247, -0.18183475732803345, -0.43708962202072144, 0.09258928894996643, 0.2119118869304657, -0.3590199649333954, -0.001514483243227005, 0.19920188188552856, -0.2863779067993164, 0.13335859775543213, 0.1517556607723236, -0.09841287136077881, 0.5485374331474304, -0.5067272186279297, 0.057920582592487335, -0.3667601943016052, -0.10093608498573303, -0.06549417972564697, 0.05530909076333046, 0.3579995036125183, 0.1826387643814087, 0.18575042486190796, 0.054812923073768616, 0.10315606743097305, 0.20812518894672394, -0.23898078501224518, -0.17951567471027374, 0.15971580147743225, 0.056488946080207825, -0.39853689074516296, -0.25598764419555664, -0.2491462230682373, -0.20666173100471497, -0.350972443819046, 0.01613427698612213, 0.11000977456569672, 0.12698860466480255, -0.10306856781244278, 0.008076946251094341, 0.03724518045783043, 0.07318698614835739, 0.22466985881328583, -0.08302624523639679, 0.02634996548295021, 0.38674744963645935, -0.042350366711616516, -0.6439454555511475, 0.2405601441860199, -0.01897462084889412, -0.35784053802490234, 0.30524158477783203, -0.5030601024627686, -0.13239260017871857, -0.2873798608779907, 0.25060519576072693, 0.0892271101474762, 0.27787965536117554, 0.3353269100189209, -0.27772799134254456, -0.02459612488746643, -0.30397486686706543, -0.06590718775987625, -0.2901858389377594, -0.10967383533716202, 0.24289679527282715, 0.1826859414577484, 0.3031283915042877, -0.028938064351677895, 0.28554612398147583, 0.2206118106842041, 0.1294395476579666, 0.4378720223903656, -0.38643890619277954, 0.4741615056991577, 0.0013002753257751465, -0.1765855997800827, 0.035116493701934814, -0.2722175419330597, 0.018007896840572357, 0.23765671253204346, 0.022387107834219933, -0.004944127053022385, -0.23122942447662354, -0.16560590267181396, -0.23130950331687927, -0.24787136912345886, 0.1438772976398468, 0.11068417876958847, 0.04078288376331329, 0.12416937947273254, 0.22418832778930664, 0.10284100472927094, -0.15573406219482422, 0.11416491866111755, 0.5970391035079956, -0.2615627646446228, 0.1439674347639084, 0.02278151735663414, -0.16407981514930725, -0.4693877696990967, 0.07167504727840424, 0.10276506841182709, 0.4488423764705658, -0.03016696125268936, 0.04434330761432648, 0.215620219707489, -0.16199658811092377, 0.7495210766792297, -0.21511803567409515, 0.3322600722312927, 0.20321212708950043, -0.006716009229421616, -0.3780360221862793, -0.25835341215133667, -0.5120751857757568, 0.12309835106134415, 0.08177638053894043, -0.05292437970638275, -0.055525071918964386, 0.18523335456848145, 0.11505729705095291, 0.24685996770858765, -0.14289027452468872, -0.38716110587120056, -0.3885156810283661, -0.6134724020957947, -0.24454064667224884, 0.08509121835231781, 0.4038742184638977, -0.043508242815732956, -0.37968599796295166, -0.16640375554561615, -0.06428062170743942, 0.1533767282962799, -0.0725126713514328, -0.027729999274015427, 0.07959611713886261, -0.017775695770978928, 0.1780816912651062, -0.2506747841835022, 0.28624895215034485, -0.17390833795070648, 0.6596165895462036, 0.10549230873584747, -0.14962215721607208, 0.16205912828445435, -0.2683565318584442, -0.20142072439193726, 0.20519579946994781, -0.16493487358093262, -0.22019925713539124, -0.07972060889005661, 0.049250517040491104, -0.32984670996665955, -0.07996287196874619, 0.5729663372039795, -0.1016838327050209, -0.005418825428932905, -0.25961458683013916, 0.1787792146205902, 0.013897158205509186, -0.1558486521244049, 0.2674734890460968, 0.03488496318459511, -0.09249874949455261, -0.10834099352359772, -0.28907185792922974, 0.6511144638061523, 0.21450935304164886, 0.23586584627628326, 0.25903046131134033, -0.5253790020942688, 0.04198659956455231, 0.2136853188276291, 0.07386556267738342, -0.20706409215927124, -0.2838785648345947, -0.03738363832235336, -0.13326247036457062, 0.08258672058582306, -0.03415146470069885, -0.2779363691806793, 0.22078749537467957, -0.0865817740559578, 0.17475666105747223, 0.27441519498825073, -0.15815940499305725, -0.31310588121414185, 0.10845637321472168, -0.032816365361213684, 0.1951170265674591, 0.23858800530433655, 0.6629063487052917, -0.2662181556224823, 0.01849665306508541, -0.17159970104694366, -0.27796614170074463, -0.3965134024620056, 0.25503009557724, -0.13408461213111877, 0.007454544305801392, -0.15991540253162384, 0.1396338790655136, 0.022549577057361603, -0.01473696157336235, 0.0021654516458511353, 0.15718545019626617, -0.22981098294258118, 0.08573858439922333, 0.13416078686714172, -0.08223699778318405, 0.2630032002925873, -0.0994020402431488, 0.11807340383529663, -0.24470815062522888, -0.42294254899024963, -0.07276079803705215, 0.02143942192196846, -0.00272446870803833, -0.02771110087633133, 0.26394158601760864, 0.2187713086605072, -0.18823203444480896, -0.17848171293735504, -0.3920823335647583, 0.08386163413524628, -0.07089456170797348, 0.2175154834985733, 0.04904644191265106, 0.08854296058416367, 0.5029729008674622, -0.28613191843032837, -0.2359028458595276, -0.15548917651176453, 0.39320579171180725, -0.16737022995948792, -0.07556770741939545, 0.11023596674203873, 0.09486822783946991, -0.30697304010391235, -0.2523454427719116, 0.01313646137714386, -0.3942278027534485, -0.2205282747745514, 0.054006919264793396, -0.05436968430876732, 0.28690773248672485, -0.14717674255371094, 0.009005997329950333, 0.13357491791248322, -0.0578676238656044, -0.01518452912569046, -0.6815171837806702, 0.1296803504228592, -0.21979694068431854, 0.41220104694366455, 0.046644505113363266, 0.02624649554491043, -0.15720681846141815, 0.46316930651664734, -0.548916220664978, -0.3702108860015869, -0.0008695749565958977, 0.04950341582298279, -0.12905818223953247, 0.17799736559391022, 0.1302778422832489, 0.1998712420463562, 0.011895021423697472, 0.12122794985771179, 0.0002456679940223694, -0.0661846175789833, -0.24845194816589355, -0.16501764953136444, 0.10459989309310913, -0.05408863723278046, -0.2632083296775818, 0.19007277488708496, -0.4511171579360962, 0.009140371344983578, 0.18899071216583252, 0.1473040133714676, 0.30437561869621277, -0.09577339887619019, 0.03665819764137268, 0.0956634134054184, 0.11463616788387299, -0.2398885041475296, 0.24710209667682648, -0.4936743676662445, 0.5263610482215881, 0.0056515964679419994, 0.17131216824054718, 0.2247190773487091, 0.0065555572509765625, -0.05480257421731949, -0.2813507318496704, 0.06270495802164078, 0.18261992931365967, 0.3916456401348114, -0.11679689586162567, 0.2606547176837921, -0.0006236466579139233, 0.2832513451576233, 0.5525341033935547, -0.3527142405509949, -0.08935016393661499, 0.14336314797401428, 0.2758113741874695, -0.2590065598487854, -0.03468509018421173, 0.08422935009002686, 0.10917216539382935, 0.05762885883450508, 0.1179925799369812, 0.05552439019083977, -0.28266412019729614, -0.09124889969825745, -0.050089627504348755, 0.433503121137619, 0.367079496383667, -0.180838480591774, 0.3947135806083679, 0.006517495959997177, 0.14764977991580963, -0.05766945332288742, -0.021751731634140015, -0.04860220104455948, 0.4234349727630615, 0.04098043590784073, 0.06926596164703369, -0.10912538319826126, 0.025174230337142944, -0.1315765082836151, -0.2052452117204666, 0.07668426632881165, -0.20125705003738403, 0.025450609624385834, 0.09770986437797546, 0.07705105096101761, -0.1540478765964508, -0.27487435936927795, 0.2177981436252594, -0.34541165828704834, -0.06783702969551086, 0.069472536444664, -0.012507472187280655, -0.30367597937583923, -0.07215068489313126, -0.11966530233621597, 0.02526671811938286, 0.14733365178108215, -0.005412764847278595, 0.2599419355392456, 0.07452809810638428, -0.2369663268327713, -0.3160698413848877, 0.012623002752661705, -0.20480245351791382, 0.11341241747140884, -0.28850051760673523, 0.07788974046707153, 0.3658398985862732, 0.16743308305740356, 0.10783825814723969, 0.11485156416893005, 0.5545541048049927, 0.3852178752422333, -0.10724709928035736, -0.061105284839868546, 0.07846169173717499, -0.13316258788108826, -0.3258143365383148, 0.4363553822040558, 0.07163409143686295, 0.19309362769126892, 0.23635078966617584, 0.21840603649616241, -0.23010535538196564, 0.2584099769592285, -0.030818980187177658, -0.07956299185752869, -0.05894643813371658, 0.17917439341545105, -0.2505970299243927, 0.09379590302705765, -0.3897889256477356, -0.10139282792806625, -0.4083532691001892, -0.0985792726278305, 0.17721961438655853, -0.08799545466899872, 0.16670429706573486, -0.34622088074684143, 0.10359311103820801, 0.03752971068024635, 0.21810011565685272, 0.3795771300792694, 0.3196726143360138, -0.08816708624362946, -0.05732336640357971, -0.5226140022277832, 0.3419151306152344, -0.22584322094917297, -0.5296076536178589, -0.08779140561819077, 0.04472729563713074, -0.610586941242218, 0.07223620265722275, 0.34155356884002686, 0.2679622173309326, -0.06360786408185959, 0.32221388816833496, -0.1352422535419464, -0.3121245205402374, 0.03358715400099754, 0.15257106721401215, 0.07591790705919266, -0.5940465927124023, 0.2918211817741394, -0.41705477237701416, 0.16973590850830078, -0.27009010314941406, -0.1863708794116974, -0.011328540742397308, -0.008855942636728287, 0.5608648061752319, 0.1507783979177475, 0.5199143290519714, -0.1912187933921814, -0.12568221986293793, -0.4629918932914734, 0.07810121774673462, -0.11269523948431015, 0.24695181846618652, 0.1166754812002182, -0.18114398419857025, 0.019152596592903137, -0.2678041160106659, -0.06001663953065872, 0.31385472416877747, -0.03684161975979805, 0.09057951718568802, -0.05712278187274933, -0.07280836999416351, -0.18309226632118225, 0.14881783723831177, 0.08115100115537643, 0.14661391079425812, -0.3787931501865387, -0.10185229033231735, -0.03377552330493927, -0.5434587001800537, 0.2741709053516388, -0.269880473613739, -0.333262175321579, -0.2687220573425293, 0.23119071125984192, -0.40320083498954773, 0.0730406641960144, -0.0221857950091362, 0.1500971019268036, 0.1658337116241455, -0.06748438626527786, 0.03998890146613121, 0.29360952973365784, -0.37484583258628845, 0.04060666635632515, 0.2576870322227478, 0.4179145097732544, -0.06966304033994675, -0.17128977179527283, 0.3069993257522583, -0.21486037969589233 ]
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.16129004955291748, -0.13805416226387024, -0.020553553476929665, 0.22738687694072723, 0.11762400716543198, -0.1575976461172104, 0.2670055031776428, 0.29656749963760376, -0.5154968500137329, 0.28040802478790283, 0.1454412341117859, 0.4508609473705292, -0.09352830797433853, -0.1810206025838852, 0.06429950147867203, -0.05757630616426468, 0.1221432238817215, 0.2484460026025772, -0.07153475284576416, -0.23429223895072937, 0.13333387672901154, 0.3007955551147461, -0.25745636224746704, -0.06466102600097656, -0.2737536132335663, 0.08476100116968155, -0.07667054980993271, -0.26933813095092773, -0.053286366164684296, -0.4953400790691376, 0.15393906831741333, 0.0111228097230196, 0.10494495183229446, 0.33388540148735046, -0.00011551438365131617, -0.08517581224441528, 0.036938004195690155, 0.09381233900785446, -0.2382408082485199, -0.15776179730892181, -0.09692781418561935, 0.08862310647964478, -0.069839708507061, -0.02705775946378708, -0.08341062068939209, 0.19374719262123108, 0.05293402448296547, -0.09816253185272217, 0.5147069096565247, 0.29158467054367065, 0.14006797969341278, -0.010242583230137825, -0.25211939215660095, -0.0659523606300354, 0.3198699355125427, 0.031308192759752274, 0.0850754976272583, -0.17802095413208008, 0.2137235403060913, 0.03147920221090317, -0.05166783183813095, 0.618067741394043, -0.28133299946784973, 0.39801838994026184, -0.2359149158000946, 0.12423031777143478, -0.37117695808410645, -0.5308330059051514, 0.266836553812027, 0.21616560220718384, 0.646556556224823, -0.22962388396263123, -0.2044663429260254, -0.2378602921962738, 0.31990846991539, -0.15606503188610077, -0.042169809341430664, -0.01617717556655407, -0.2728021740913391, 0.2350624054670334, -0.009494421072304249, 0.04764767736196518, -0.220401793718338, 0.128880575299263, 0.05581250786781311, -0.10741811990737915, -0.0731363445520401, 0.1385572850704193, -0.1771000325679779, 0.09940946102142334, -0.08586382120847702, 0.27035772800445557, -0.14426173269748688, 0.03412628546357155, -0.14976249635219574, -0.06749074161052704, 0.19251535832881927, -0.3049416244029999, 0.2917177379131317, -0.060220688581466675, 0.3855563700199127, 0.037437956780195236, -0.18567006289958954, -0.08810003846883774, 0.3239296078681946, 0.019808363169431686, -0.023367121815681458, 0.14967738091945648, 0.2298976480960846, -0.2340688556432724, -0.25318607687950134, 0.07371607422828674, -0.014417980797588825, 0.21627357602119446, 0.3318793773651123, -0.26503005623817444, 0.2829248309135437, -0.36764416098594666, -0.5658823847770691, 0.06425027549266815, -0.4400382936000824, -0.10303957015275955, -0.2528017461299896, 0.18167364597320557, 0.16933053731918335, 0.30092665553092957, 0.1449250429868698, 0.22267623245716095, 0.06933920830488205, -0.5628319978713989, -0.18186219036579132, 0.026798643171787262, 0.20986074209213257, 0.030840668827295303, 0.2113284021615982, -0.32370591163635254, 0.3398516774177551, 0.34173423051834106, 0.19545288383960724, -0.4316004812717438, -0.28741100430488586, -0.13017717003822327, 0.0255604088306427, 0.009186077862977982, -0.026490163058042526, 0.3916679620742798, 0.07382082939147949, -0.018290460109710693, 0.007235415279865265, 0.06100797653198242, -0.10655637830495834, 0.006864774972200394, 0.2134006917476654, 0.1364106386899948, -0.0805879533290863, -0.16711384057998657, 0.12324770539999008, 0.36058706045150757, 0.07794493436813354, -0.3008696138858795, 0.0030109062790870667, -0.1827424019575119, -0.39196497201919556, -0.03865903988480568, 0.07733110338449478, 0.30246126651763916, -0.33554717898368835, 0.09542731940746307, 0.17853502929210663, 0.4213973581790924, 0.3944754898548126, 0.24845443665981293, -0.04651014879345894, 0.373439222574234, -0.1168164610862732, 0.30014485120773315, 0.20419929921627045, -0.4621313214302063, -0.39205384254455566, 0.2112353891134262, -0.04960285872220993, 0.24641375243663788, 0.15489058196544647, -0.16278336942195892, 0.30273380875587463, 0.14270742237567902, 0.3759351074695587, 0.15347920358181, 0.14573624730110168, 0.03347969800233841, -0.24468937516212463, -0.05789216607809067, 0.08683036267757416, -0.013140902854502201, 0.0021538957953453064, 0.09558357298374176, 0.037038445472717285, 0.2329704463481903, 0.5271523594856262, 0.07458425313234329, 0.09245173633098602, 0.10296785086393356, 0.16596519947052002, -0.10123151540756226, 0.22397778928279877, -0.26310086250305176, 0.25648653507232666, -0.048897407948970795, 0.2068263292312622, 0.2837984561920166, 0.15403074026107788, 0.0793672651052475, -0.30154550075531006, -0.21888890862464905, -0.299189031124115, -0.3250730633735657, 0.11458174884319305, 0.3257371783256531, -0.01443113200366497, 0.04204661771655083, -0.18985794484615326, 0.3409903049468994, -0.22032657265663147, -0.0741860643029213, 0.023305397480726242, 0.09916575253009796, 0.06385624408721924, -0.24470758438110352, 0.5248862504959106, 0.252898246049881, 0.18514958024024963, 0.20168396830558777, -0.16694176197052002, 0.22355201840400696, -0.014767268672585487, 0.021967507898807526, -0.26371699571609497, -0.3288925290107727, 0.10994835942983627, -0.5017576217651367, -0.11139451712369919, 0.23447144031524658, 0.31817197799682617, -0.004500143229961395, -0.30367568135261536, -0.18347014486789703, 0.13900677859783173, 0.2569383978843689, -0.055444348603487015, -0.06511921435594559, 0.3011585772037506, 0.06625306606292725, -0.35379984974861145, -0.3246978521347046, 0.2526891827583313, -0.23498012125492096, 0.2662215828895569, 0.02028496563434601, -0.341776967048645, 0.15859706699848175, 0.392896443605423, 0.2245115041732788, 0.08520887792110443, 0.2943879961967468, -0.24683251976966858, -0.02701730839908123, -0.12272888422012329, 0.09491194784641266, 0.29076534509658813, 0.2881043255329132, 0.05430147796869278, -0.37645459175109863, -0.1287485659122467, -0.11323212832212448, 0.13933606445789337, -0.1307564675807953, -0.3556293845176697, 0.43511685729026794, 0.35854488611221313, 0.08638771623373032, -0.449384480714798, -0.1341283917427063, -0.14240390062332153, 0.4703679084777832, -0.334960013628006, -0.23163200914859772, -0.43560531735420227, -0.12055262178182602, -0.10900617390871048, 0.06629113107919693, 0.07970383763313293, 0.22555118799209595, 0.21905572712421417, -0.012711886316537857, 0.005456428974866867, 0.13679997622966766, 0.17199163138866425, 0.2340613752603531, 0.07120563834905624, 0.11179893463850021, 0.08630509674549103, 0.3191400170326233, -0.3069571256637573, -0.024269945919513702, 0.025972798466682434, 0.27161338925361633, 0.10742934793233871, -0.14224743843078613, -0.16390249133110046, -0.40679705142974854, 0.05901826173067093, 0.26756417751312256, -0.33016812801361084, 0.5113495588302612, 0.11336216330528259, 0.16024929285049438, -0.22516664862632751, -0.3130819797515869, 0.0026733772829174995, -0.02688739262521267, -0.1686868816614151, 0.3555682599544525, 0.08294308930635452, -0.005615496542304754, -0.048255469650030136, -0.6989758014678955, 0.0993928387761116, -0.2500092387199402, 0.2359427958726883, -0.03286680579185486, 0.21037937700748444, 0.3641350567340851, 0.06060725077986717, 0.08126990497112274, -0.05871250107884407, 0.20536991953849792, -0.4102100431919098, -0.2545943260192871, 0.3561113178730011, 0.26060423254966736, -0.33486998081207275, -0.34056979417800903, 0.05095811188220978, 0.26529544591903687, -0.03223009034991264, -0.4001083970069885, 0.10035404562950134, -0.26746615767478943, 0.1453496515750885, -0.2972603142261505, 0.28261998295783997, 0.38546693325042725, 0.012993749231100082, -0.14950421452522278, -0.16922104358673096, -0.10783275961875916, 0.2658354640007019, 0.3553735017776489, 0.005884595215320587, 0.10114707052707672, 0.06991457939147949, -0.05932735279202461, 0.3506980538368225, 0.64596027135849, 0.20251578092575073, 0.26000654697418213, -0.17655396461486816, 0.09423510730266571, -0.032493531703948975, -0.3995800316333771, 0.027080189436674118, -0.11732447147369385, -0.06256696581840515, 0.4981200695037842, -0.08999676257371902, 0.053631097078323364, -0.16958853602409363, -0.05727764964103699, -0.3290625810623169, -0.1686408668756485, 0.06749197840690613, -0.23594030737876892, 0.18397393822669983, 0.1747751384973526, 0.05282847583293915, 0.16195277869701385, 0.03473491221666336, -0.28616616129875183, -0.2988380193710327, 0.28517329692840576, -0.14997230470180511, -0.08203011751174927, -0.2836107611656189, -0.3772883713245392, -0.12410178780555725, 0.13858383893966675, 0.5095551013946533, -0.21170006692409515, -0.03752005472779274, 0.3600187301635742, 0.29147830605506897, 0.381028950214386, -0.3069939911365509, 0.09087707102298737, 0.010390903800725937, 0.22879114747047424, 0.0055068489164114, 0.005460813641548157, -0.5205013155937195, -0.19675897061824799, -0.04749960079789162, -0.043031856417655945, -0.16689307987689972, -0.008018259890377522, 0.10895956307649612, 0.392744243144989, -0.009747911244630814, -0.24081158638000488, -0.25577059388160706, -0.07579284906387329, -0.33014312386512756, 0.1615663468837738, 0.34223103523254395, 0.04439420998096466, -0.16513308882713318, -0.12032532691955566, 0.1603991836309433, -0.0627521425485611, 0.5332359671592712, 0.0798594206571579, 0.3751767575740814, 0.07396528869867325, 0.30117496848106384, 0.27483975887298584, -0.35777994990348816, -0.25914356112480164, 0.3608149588108063, 0.10096938908100128, -0.14202584326267242, -0.003674602136015892, -0.3468620479106903, 0.328957200050354, 0.4931565225124359, -0.22319115698337555, 0.24192970991134644, -0.2970617711544037, 0.2568942904472351, -0.1529482752084732, 0.09574688225984573, 0.31952881813049316, -0.0749831572175026, -0.07518209517002106, -0.41028645634651184, 0.38228029012680054, -0.0364946648478508, -0.19794794917106628, 0.34455037117004395, 0.09091870486736298, -0.31038203835487366, 0.47125154733657837, -0.2578839957714081, 0.8118337988853455, 0.2264070063829422, 0.3666295111179352, 0.31550174951553345, 0.13815096020698547, 0.32616493105888367, -0.19600909948349, 0.09023230522871017, -0.02201821655035019, -0.0018171314150094986, -0.02156011387705803, 0.058343227952718735, -0.077855683863163, -0.04176020622253418, -0.5769286155700684, 0.17752952873706818, 0.0647166520357132, 0.028871266171336174, 0.18680183589458466, -0.011851515620946884, -0.12949584424495697, -0.10640722513198853, 0.125299334526062, 0.03257150575518608, -0.383939266204834, 0.3074735701084137, 0.3099326193332672, -0.024295426905155182, 0.03140464052557945, -0.5837310552597046, -0.822481095790863, -0.030167648568749428, -0.08251696079969406, -0.22594013810157776, -0.1996796429157257, -0.3336215615272522, 0.36819854378700256, 0.2586001753807068, 0.1915539801120758, 0.32565978169441223, -0.13796792924404144, -0.08526434004306793, 0.36824339628219604, 0.27765101194381714, -0.2679579555988312, -0.025591686367988586, 0.14451898634433746, -0.08603158593177795, -0.3883334994316101, 0.17660337686538696, 0.05515868961811066, 0.09896300733089447, -0.3880655765533447, 0.25383108854293823, -0.11467957496643066, -0.2331583946943283, 0.08573685586452484, 0.42890357971191406, 0.1415162831544876, -0.5119705200195312, 0.1032075434923172, 0.12417187541723251, -0.45886456966400146, 0.32868531346321106, 0.17258425056934357, -0.47551965713500977, -0.063762366771698, 0.25934046506881714, 0.12836137413978577, 0.00025108084082603455, 0.6646648645401001, -0.04148265719413757, 0.04838784039020538, -0.37047573924064636, 0.04069729149341583, -0.020929034799337387, -0.2641947269439697, 0.17911194264888763, 0.058663174510002136, 0.1739627867937088, -0.22652839124202728, 0.25354957580566406, 0.02651369385421276, 0.20480316877365112, -0.28147509694099426, -0.3617304563522339, -0.06197827309370041, -0.0314541757106781, 0.12343618273735046, 0.05524066090583801, -0.2911968231201172, 0.1181856095790863, 0.06881579011678696, 0.3186101019382477, -0.29819193482398987, 0.005974343977868557, -0.051795028150081635, 0.2173205018043518, -0.08404170721769333, 0.08132100850343704, -0.037810321897268295, 0.08517380058765411, 0.2000400424003601, 0.3185157775878906, 0.06729213893413544, -0.15987014770507812, -0.30621451139450073, 0.18384429812431335, 0.04174419119954109, 0.15626412630081177, -0.04076804965734482, 0.10010583698749542, 0.14923903346061707, -0.13370801508426666, -0.10101130604743958, 0.3345831632614136, 0.12536197900772095, 0.21837835013866425, -0.0296320877969265, 0.0370711088180542, 0.1851567178964615, -0.1598651260137558, -0.18397754430770874, -0.17245955765247345, 0.3399854004383087, 0.180613711476326, 0.048744797706604004, -0.04819614440202713, 0.11862451583147049, 0.039923425763845444, -0.13405150175094604, 0.11869505792856216, -0.07783392816781998, -0.26557672023773193, 0.133370041847229, 0.2876855731010437, -0.11947976052761078, 0.37868836522102356, -0.34599417448043823, -0.11189954727888107, 0.0911952555179596, 0.23514413833618164, -0.2654987573623657, -0.12371174991130829, -0.32325035333633423, -0.106551393866539, -0.05830928683280945, 0.2784039378166199, -0.05983133614063263, -0.4723803400993347, 0.12146657705307007, -0.06493829190731049, 0.3360197842121124, -0.5360031723976135, -0.07342135906219482, 0.3985145688056946, 0.014973614364862442, -0.3611198961734772, -0.1933402717113495, -0.015197496861219406, 0.0208011195063591, 0.5450985431671143, -0.3675435781478882, 0.13735823333263397, -0.33860552310943604, 0.026388250291347504, 0.19154828786849976, 0.02560562640428543, -0.038219403475522995, 0.40564194321632385, -0.3271888196468353, -0.04896315187215805, -0.07162423431873322, 0.30504754185676575, -0.11767254024744034, 0.03344614431262016, -0.12804824113845825, -0.05141444876790047, -0.12391933053731918, -0.12486259639263153, -0.3380403220653534, -0.27342867851257324, -0.23037640750408173, 0.006182815879583359, 0.0975419357419014, -0.012554861605167389, 0.14051347970962524, 0.19162246584892273, -0.26688504219055176, -0.5332414507865906, -0.19809377193450928, -0.037783607840538025, 0.17207661271095276, -0.3900321125984192, 0.34038737416267395, 0.30842798948287964, -0.22177034616470337, 0.2584371864795685, 0.2433646023273468, 0.5199829339981079, 0.07158161699771881, 0.0334477499127388, 0.10651938617229462, -0.5706879496574402, -0.09190310537815094, -0.05172242224216461, 0.3297679126262665, -0.12424130737781525, 0.05875521898269653, 0.021863173693418503, 0.015872618183493614, -0.09563983976840973, 0.029347840696573257, 0.228546142578125, -0.07562516629695892, -0.5632564425468445, 0.2190782129764557, -0.14116312563419342, 0.11173228174448013, 0.04065867140889168, 0.07498426735401154, -0.4736693203449249, 0.44173887372016907, 0.3421667516231537, 0.05759613215923309, -0.010626781731843948, 0.002189889084547758, 0.08138871937990189, -0.12637557089328766, -0.11261269450187683, 0.26730477809906006, 0.15798616409301758, -0.2770345211029053, -0.15913556516170502, -0.673578679561615, -0.07148318737745285, -0.0488048754632473, -0.004951950162649155, 0.0006289398297667503, 0.11898073554039001, 0.158683180809021, 0.13626036047935486, 0.069265216588974, -0.02604105696082115, -0.5322325229644775, 0.3291480839252472, -0.21546316146850586, -0.0053821951150894165, -0.087787926197052, 0.43666040897369385, 0.04148939251899719, -0.1064985916018486, 0.010835833847522736, 0.0946904644370079, 0.03401909023523331, 0.06554765999317169, 0.005946151912212372, 0.017562326043844223, -0.12066251039505005, 0.15823808312416077, 0.14234568178653717, 0.17081579566001892, -0.2348543405532837, 0.18956589698791504, -0.2832576632499695, 0.029292725026607513, -0.19824400544166565, 0.1561555564403534, 0.2698149085044861, 0.515843391418457, -0.18345114588737488, -0.06868433952331543, -0.06360141932964325, 0.16536128520965576, 0.1112440824508667, -0.06495948135852814, -0.1914123147726059, 0.08976927399635315, -0.008699759840965271, 0.27149641513824463, -0.262226402759552, 0.10594230890274048, 0.003829449415206909, 0.0026381835341453552, -0.49203991889953613, -0.7109146118164062, 0.4522463083267212, -0.4033142626285553, -0.5287764072418213, -0.07965719699859619, 0.5906728506088257, 0.24035382270812988, -0.03215371072292328, -0.708696186542511, -0.03598929941654205, 0.39599838852882385, 0.24434790015220642, -0.30217140913009644, 0.21298657357692719, 0.12193967401981354, 0.008532237261533737, 0.014424934983253479, 0.6226136684417725, 0.31052467226982117, -0.23275454342365265, 0.26797088980674744, -0.4604586362838745 ]
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.16129004955291748, -0.13805416226387024, -0.020553553476929665, 0.22738687694072723, 0.11762400716543198, -0.1575976461172104, 0.2670055031776428, 0.29656749963760376, -0.5154968500137329, 0.28040802478790283, 0.1454412341117859, 0.4508609473705292, -0.09352830797433853, -0.1810206025838852, 0.06429950147867203, -0.05757630616426468, 0.1221432238817215, 0.2484460026025772, -0.07153475284576416, -0.23429223895072937, 0.13333387672901154, 0.3007955551147461, -0.25745636224746704, -0.06466102600097656, -0.2737536132335663, 0.08476100116968155, -0.07667054980993271, -0.26933813095092773, -0.053286366164684296, -0.4953400790691376, 0.15393906831741333, 0.0111228097230196, 0.10494495183229446, 0.33388540148735046, -0.00011551438365131617, -0.08517581224441528, 0.036938004195690155, 0.09381233900785446, -0.2382408082485199, -0.15776179730892181, -0.09692781418561935, 0.08862310647964478, -0.069839708507061, -0.02705775946378708, -0.08341062068939209, 0.19374719262123108, 0.05293402448296547, -0.09816253185272217, 0.5147069096565247, 0.29158467054367065, 0.14006797969341278, -0.010242583230137825, -0.25211939215660095, -0.0659523606300354, 0.3198699355125427, 0.031308192759752274, 0.0850754976272583, -0.17802095413208008, 0.2137235403060913, 0.03147920221090317, -0.05166783183813095, 0.618067741394043, -0.28133299946784973, 0.39801838994026184, -0.2359149158000946, 0.12423031777143478, -0.37117695808410645, -0.5308330059051514, 0.266836553812027, 0.21616560220718384, 0.646556556224823, -0.22962388396263123, -0.2044663429260254, -0.2378602921962738, 0.31990846991539, -0.15606503188610077, -0.042169809341430664, -0.01617717556655407, -0.2728021740913391, 0.2350624054670334, -0.009494421072304249, 0.04764767736196518, -0.220401793718338, 0.128880575299263, 0.05581250786781311, -0.10741811990737915, -0.0731363445520401, 0.1385572850704193, -0.1771000325679779, 0.09940946102142334, -0.08586382120847702, 0.27035772800445557, -0.14426173269748688, 0.03412628546357155, -0.14976249635219574, -0.06749074161052704, 0.19251535832881927, -0.3049416244029999, 0.2917177379131317, -0.060220688581466675, 0.3855563700199127, 0.037437956780195236, -0.18567006289958954, -0.08810003846883774, 0.3239296078681946, 0.019808363169431686, -0.023367121815681458, 0.14967738091945648, 0.2298976480960846, -0.2340688556432724, -0.25318607687950134, 0.07371607422828674, -0.014417980797588825, 0.21627357602119446, 0.3318793773651123, -0.26503005623817444, 0.2829248309135437, -0.36764416098594666, -0.5658823847770691, 0.06425027549266815, -0.4400382936000824, -0.10303957015275955, -0.2528017461299896, 0.18167364597320557, 0.16933053731918335, 0.30092665553092957, 0.1449250429868698, 0.22267623245716095, 0.06933920830488205, -0.5628319978713989, -0.18186219036579132, 0.026798643171787262, 0.20986074209213257, 0.030840668827295303, 0.2113284021615982, -0.32370591163635254, 0.3398516774177551, 0.34173423051834106, 0.19545288383960724, -0.4316004812717438, -0.28741100430488586, -0.13017717003822327, 0.0255604088306427, 0.009186077862977982, -0.026490163058042526, 0.3916679620742798, 0.07382082939147949, -0.018290460109710693, 0.007235415279865265, 0.06100797653198242, -0.10655637830495834, 0.006864774972200394, 0.2134006917476654, 0.1364106386899948, -0.0805879533290863, -0.16711384057998657, 0.12324770539999008, 0.36058706045150757, 0.07794493436813354, -0.3008696138858795, 0.0030109062790870667, -0.1827424019575119, -0.39196497201919556, -0.03865903988480568, 0.07733110338449478, 0.30246126651763916, -0.33554717898368835, 0.09542731940746307, 0.17853502929210663, 0.4213973581790924, 0.3944754898548126, 0.24845443665981293, -0.04651014879345894, 0.373439222574234, -0.1168164610862732, 0.30014485120773315, 0.20419929921627045, -0.4621313214302063, -0.39205384254455566, 0.2112353891134262, -0.04960285872220993, 0.24641375243663788, 0.15489058196544647, -0.16278336942195892, 0.30273380875587463, 0.14270742237567902, 0.3759351074695587, 0.15347920358181, 0.14573624730110168, 0.03347969800233841, -0.24468937516212463, -0.05789216607809067, 0.08683036267757416, -0.013140902854502201, 0.0021538957953453064, 0.09558357298374176, 0.037038445472717285, 0.2329704463481903, 0.5271523594856262, 0.07458425313234329, 0.09245173633098602, 0.10296785086393356, 0.16596519947052002, -0.10123151540756226, 0.22397778928279877, -0.26310086250305176, 0.25648653507232666, -0.048897407948970795, 0.2068263292312622, 0.2837984561920166, 0.15403074026107788, 0.0793672651052475, -0.30154550075531006, -0.21888890862464905, -0.299189031124115, -0.3250730633735657, 0.11458174884319305, 0.3257371783256531, -0.01443113200366497, 0.04204661771655083, -0.18985794484615326, 0.3409903049468994, -0.22032657265663147, -0.0741860643029213, 0.023305397480726242, 0.09916575253009796, 0.06385624408721924, -0.24470758438110352, 0.5248862504959106, 0.252898246049881, 0.18514958024024963, 0.20168396830558777, -0.16694176197052002, 0.22355201840400696, -0.014767268672585487, 0.021967507898807526, -0.26371699571609497, -0.3288925290107727, 0.10994835942983627, -0.5017576217651367, -0.11139451712369919, 0.23447144031524658, 0.31817197799682617, -0.004500143229961395, -0.30367568135261536, -0.18347014486789703, 0.13900677859783173, 0.2569383978843689, -0.055444348603487015, -0.06511921435594559, 0.3011585772037506, 0.06625306606292725, -0.35379984974861145, -0.3246978521347046, 0.2526891827583313, -0.23498012125492096, 0.2662215828895569, 0.02028496563434601, -0.341776967048645, 0.15859706699848175, 0.392896443605423, 0.2245115041732788, 0.08520887792110443, 0.2943879961967468, -0.24683251976966858, -0.02701730839908123, -0.12272888422012329, 0.09491194784641266, 0.29076534509658813, 0.2881043255329132, 0.05430147796869278, -0.37645459175109863, -0.1287485659122467, -0.11323212832212448, 0.13933606445789337, -0.1307564675807953, -0.3556293845176697, 0.43511685729026794, 0.35854488611221313, 0.08638771623373032, -0.449384480714798, -0.1341283917427063, -0.14240390062332153, 0.4703679084777832, -0.334960013628006, -0.23163200914859772, -0.43560531735420227, -0.12055262178182602, -0.10900617390871048, 0.06629113107919693, 0.07970383763313293, 0.22555118799209595, 0.21905572712421417, -0.012711886316537857, 0.005456428974866867, 0.13679997622966766, 0.17199163138866425, 0.2340613752603531, 0.07120563834905624, 0.11179893463850021, 0.08630509674549103, 0.3191400170326233, -0.3069571256637573, -0.024269945919513702, 0.025972798466682434, 0.27161338925361633, 0.10742934793233871, -0.14224743843078613, -0.16390249133110046, -0.40679705142974854, 0.05901826173067093, 0.26756417751312256, -0.33016812801361084, 0.5113495588302612, 0.11336216330528259, 0.16024929285049438, -0.22516664862632751, -0.3130819797515869, 0.0026733772829174995, -0.02688739262521267, -0.1686868816614151, 0.3555682599544525, 0.08294308930635452, -0.005615496542304754, -0.048255469650030136, -0.6989758014678955, 0.0993928387761116, -0.2500092387199402, 0.2359427958726883, -0.03286680579185486, 0.21037937700748444, 0.3641350567340851, 0.06060725077986717, 0.08126990497112274, -0.05871250107884407, 0.20536991953849792, -0.4102100431919098, -0.2545943260192871, 0.3561113178730011, 0.26060423254966736, -0.33486998081207275, -0.34056979417800903, 0.05095811188220978, 0.26529544591903687, -0.03223009034991264, -0.4001083970069885, 0.10035404562950134, -0.26746615767478943, 0.1453496515750885, -0.2972603142261505, 0.28261998295783997, 0.38546693325042725, 0.012993749231100082, -0.14950421452522278, -0.16922104358673096, -0.10783275961875916, 0.2658354640007019, 0.3553735017776489, 0.005884595215320587, 0.10114707052707672, 0.06991457939147949, -0.05932735279202461, 0.3506980538368225, 0.64596027135849, 0.20251578092575073, 0.26000654697418213, -0.17655396461486816, 0.09423510730266571, -0.032493531703948975, -0.3995800316333771, 0.027080189436674118, -0.11732447147369385, -0.06256696581840515, 0.4981200695037842, -0.08999676257371902, 0.053631097078323364, -0.16958853602409363, -0.05727764964103699, -0.3290625810623169, -0.1686408668756485, 0.06749197840690613, -0.23594030737876892, 0.18397393822669983, 0.1747751384973526, 0.05282847583293915, 0.16195277869701385, 0.03473491221666336, -0.28616616129875183, -0.2988380193710327, 0.28517329692840576, -0.14997230470180511, -0.08203011751174927, -0.2836107611656189, -0.3772883713245392, -0.12410178780555725, 0.13858383893966675, 0.5095551013946533, -0.21170006692409515, -0.03752005472779274, 0.3600187301635742, 0.29147830605506897, 0.381028950214386, -0.3069939911365509, 0.09087707102298737, 0.010390903800725937, 0.22879114747047424, 0.0055068489164114, 0.005460813641548157, -0.5205013155937195, -0.19675897061824799, -0.04749960079789162, -0.043031856417655945, -0.16689307987689972, -0.008018259890377522, 0.10895956307649612, 0.392744243144989, -0.009747911244630814, -0.24081158638000488, -0.25577059388160706, -0.07579284906387329, -0.33014312386512756, 0.1615663468837738, 0.34223103523254395, 0.04439420998096466, -0.16513308882713318, -0.12032532691955566, 0.1603991836309433, -0.0627521425485611, 0.5332359671592712, 0.0798594206571579, 0.3751767575740814, 0.07396528869867325, 0.30117496848106384, 0.27483975887298584, -0.35777994990348816, -0.25914356112480164, 0.3608149588108063, 0.10096938908100128, -0.14202584326267242, -0.003674602136015892, -0.3468620479106903, 0.328957200050354, 0.4931565225124359, -0.22319115698337555, 0.24192970991134644, -0.2970617711544037, 0.2568942904472351, -0.1529482752084732, 0.09574688225984573, 0.31952881813049316, -0.0749831572175026, -0.07518209517002106, -0.41028645634651184, 0.38228029012680054, -0.0364946648478508, -0.19794794917106628, 0.34455037117004395, 0.09091870486736298, -0.31038203835487366, 0.47125154733657837, -0.2578839957714081, 0.8118337988853455, 0.2264070063829422, 0.3666295111179352, 0.31550174951553345, 0.13815096020698547, 0.32616493105888367, -0.19600909948349, 0.09023230522871017, -0.02201821655035019, -0.0018171314150094986, -0.02156011387705803, 0.058343227952718735, -0.077855683863163, -0.04176020622253418, -0.5769286155700684, 0.17752952873706818, 0.0647166520357132, 0.028871266171336174, 0.18680183589458466, -0.011851515620946884, -0.12949584424495697, -0.10640722513198853, 0.125299334526062, 0.03257150575518608, -0.383939266204834, 0.3074735701084137, 0.3099326193332672, -0.024295426905155182, 0.03140464052557945, -0.5837310552597046, -0.822481095790863, -0.030167648568749428, -0.08251696079969406, -0.22594013810157776, -0.1996796429157257, -0.3336215615272522, 0.36819854378700256, 0.2586001753807068, 0.1915539801120758, 0.32565978169441223, -0.13796792924404144, -0.08526434004306793, 0.36824339628219604, 0.27765101194381714, -0.2679579555988312, -0.025591686367988586, 0.14451898634433746, -0.08603158593177795, -0.3883334994316101, 0.17660337686538696, 0.05515868961811066, 0.09896300733089447, -0.3880655765533447, 0.25383108854293823, -0.11467957496643066, -0.2331583946943283, 0.08573685586452484, 0.42890357971191406, 0.1415162831544876, -0.5119705200195312, 0.1032075434923172, 0.12417187541723251, -0.45886456966400146, 0.32868531346321106, 0.17258425056934357, -0.47551965713500977, -0.063762366771698, 0.25934046506881714, 0.12836137413978577, 0.00025108084082603455, 0.6646648645401001, -0.04148265719413757, 0.04838784039020538, -0.37047573924064636, 0.04069729149341583, -0.020929034799337387, -0.2641947269439697, 0.17911194264888763, 0.058663174510002136, 0.1739627867937088, -0.22652839124202728, 0.25354957580566406, 0.02651369385421276, 0.20480316877365112, -0.28147509694099426, -0.3617304563522339, -0.06197827309370041, -0.0314541757106781, 0.12343618273735046, 0.05524066090583801, -0.2911968231201172, 0.1181856095790863, 0.06881579011678696, 0.3186101019382477, -0.29819193482398987, 0.005974343977868557, -0.051795028150081635, 0.2173205018043518, -0.08404170721769333, 0.08132100850343704, -0.037810321897268295, 0.08517380058765411, 0.2000400424003601, 0.3185157775878906, 0.06729213893413544, -0.15987014770507812, -0.30621451139450073, 0.18384429812431335, 0.04174419119954109, 0.15626412630081177, -0.04076804965734482, 0.10010583698749542, 0.14923903346061707, -0.13370801508426666, -0.10101130604743958, 0.3345831632614136, 0.12536197900772095, 0.21837835013866425, -0.0296320877969265, 0.0370711088180542, 0.1851567178964615, -0.1598651260137558, -0.18397754430770874, -0.17245955765247345, 0.3399854004383087, 0.180613711476326, 0.048744797706604004, -0.04819614440202713, 0.11862451583147049, 0.039923425763845444, -0.13405150175094604, 0.11869505792856216, -0.07783392816781998, -0.26557672023773193, 0.133370041847229, 0.2876855731010437, -0.11947976052761078, 0.37868836522102356, -0.34599417448043823, -0.11189954727888107, 0.0911952555179596, 0.23514413833618164, -0.2654987573623657, -0.12371174991130829, -0.32325035333633423, -0.106551393866539, -0.05830928683280945, 0.2784039378166199, -0.05983133614063263, -0.4723803400993347, 0.12146657705307007, -0.06493829190731049, 0.3360197842121124, -0.5360031723976135, -0.07342135906219482, 0.3985145688056946, 0.014973614364862442, -0.3611198961734772, -0.1933402717113495, -0.015197496861219406, 0.0208011195063591, 0.5450985431671143, -0.3675435781478882, 0.13735823333263397, -0.33860552310943604, 0.026388250291347504, 0.19154828786849976, 0.02560562640428543, -0.038219403475522995, 0.40564194321632385, -0.3271888196468353, -0.04896315187215805, -0.07162423431873322, 0.30504754185676575, -0.11767254024744034, 0.03344614431262016, -0.12804824113845825, -0.05141444876790047, -0.12391933053731918, -0.12486259639263153, -0.3380403220653534, -0.27342867851257324, -0.23037640750408173, 0.006182815879583359, 0.0975419357419014, -0.012554861605167389, 0.14051347970962524, 0.19162246584892273, -0.26688504219055176, -0.5332414507865906, -0.19809377193450928, -0.037783607840538025, 0.17207661271095276, -0.3900321125984192, 0.34038737416267395, 0.30842798948287964, -0.22177034616470337, 0.2584371864795685, 0.2433646023273468, 0.5199829339981079, 0.07158161699771881, 0.0334477499127388, 0.10651938617229462, -0.5706879496574402, -0.09190310537815094, -0.05172242224216461, 0.3297679126262665, -0.12424130737781525, 0.05875521898269653, 0.021863173693418503, 0.015872618183493614, -0.09563983976840973, 0.029347840696573257, 0.228546142578125, -0.07562516629695892, -0.5632564425468445, 0.2190782129764557, -0.14116312563419342, 0.11173228174448013, 0.04065867140889168, 0.07498426735401154, -0.4736693203449249, 0.44173887372016907, 0.3421667516231537, 0.05759613215923309, -0.010626781731843948, 0.002189889084547758, 0.08138871937990189, -0.12637557089328766, -0.11261269450187683, 0.26730477809906006, 0.15798616409301758, -0.2770345211029053, -0.15913556516170502, -0.673578679561615, -0.07148318737745285, -0.0488048754632473, -0.004951950162649155, 0.0006289398297667503, 0.11898073554039001, 0.158683180809021, 0.13626036047935486, 0.069265216588974, -0.02604105696082115, -0.5322325229644775, 0.3291480839252472, -0.21546316146850586, -0.0053821951150894165, -0.087787926197052, 0.43666040897369385, 0.04148939251899719, -0.1064985916018486, 0.010835833847522736, 0.0946904644370079, 0.03401909023523331, 0.06554765999317169, 0.005946151912212372, 0.017562326043844223, -0.12066251039505005, 0.15823808312416077, 0.14234568178653717, 0.17081579566001892, -0.2348543405532837, 0.18956589698791504, -0.2832576632499695, 0.029292725026607513, -0.19824400544166565, 0.1561555564403534, 0.2698149085044861, 0.515843391418457, -0.18345114588737488, -0.06868433952331543, -0.06360141932964325, 0.16536128520965576, 0.1112440824508667, -0.06495948135852814, -0.1914123147726059, 0.08976927399635315, -0.008699759840965271, 0.27149641513824463, -0.262226402759552, 0.10594230890274048, 0.003829449415206909, 0.0026381835341453552, -0.49203991889953613, -0.7109146118164062, 0.4522463083267212, -0.4033142626285553, -0.5287764072418213, -0.07965719699859619, 0.5906728506088257, 0.24035382270812988, -0.03215371072292328, -0.708696186542511, -0.03598929941654205, 0.39599838852882385, 0.24434790015220642, -0.30217140913009644, 0.21298657357692719, 0.12193967401981354, 0.008532237261533737, 0.014424934983253479, 0.6226136684417725, 0.31052467226982117, -0.23275454342365265, 0.26797088980674744, -0.4604586362838745 ]
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.12533992528915405, 0.020779907703399658, 0.01851298287510872, 0.025715332478284836, 0.18210411071777344, 0.02519356459379196, 0.47886648774147034, 0.24383263289928436, 0.14579592645168304, -0.23386923968791962, -0.1162838488817215, 0.2687394618988037, 0.08507503569126129, 0.11211278289556503, -0.013202992267906666, 0.31374815106391907, 0.11010225862264633, 0.21448364853858948, -0.07225002348423004, -0.0051928237080574036, -0.29109957814216614, 0.06344236433506012, -0.1833183467388153, -0.21956349909305573, -0.20657645165920258, 0.2937984764575958, -0.04269396886229515, 0.3026081621646881, 0.00840541161596775, -0.37312060594558716, 0.18368114531040192, 0.2550064027309418, 0.18209829926490784, 0.661107063293457, -0.00010971600568154827, 0.06178881227970123, 0.1586233526468277, -0.17931504547595978, -0.17044208943843842, -0.1858089715242386, 0.041995808482170105, -0.04552792012691498, -0.34614625573158264, -0.08420968055725098, -0.0005326643586158752, -0.22075237333774567, -0.17487645149230957, -0.34615111351013184, 0.5304936170578003, 0.4028017520904541, 0.23200739920139313, -0.11041605472564697, 0.12024061381816864, -0.07211781293153763, 0.178712397813797, 0.1414135843515396, -0.06995255500078201, 0.3557817041873932, 0.10452477633953094, -0.207222580909729, -0.09063100069761276, 0.07144787907600403, -0.13013318181037903, 0.05159330740571022, -0.10077717155218124, -0.02663838118314743, 0.32809263467788696, -0.13609066605567932, 0.08565747737884521, 0.17062246799468994, 0.6073066592216492, -0.3377121388912201, -0.4172837734222412, 0.00728568434715271, 0.01831473410129547, -0.24427731335163116, 0.16502371430397034, 0.17925012111663818, -0.007418068125844002, 0.36866629123687744, -0.012619446963071823, -0.025451907888054848, 0.07213741540908813, -0.19480659067630768, -0.030856378376483917, -0.11781926453113556, -0.10041660815477371, -0.03621287643909454, 0.05162045732140541, 0.060248520225286484, 0.421358585357666, -0.021616730839014053, -0.056681472808122635, 0.03428548574447632, -0.029153350740671158, -0.13422061502933502, 0.2153058648109436, -0.3018350601196289, 0.07473693788051605, -0.02819211035966873, -0.0764479786157608, -0.10773593932390213, -0.05920092388987541, 0.04898015782237053, 0.0738610029220581, 0.22614504396915436, -0.1387251615524292, -0.09012024104595184, 0.39101022481918335, 0.17674149572849274, -0.2513786852359772, -0.07261893153190613, 0.02941308543086052, -0.20272758603096008, 0.5261014699935913, -0.06475990265607834, 0.26140403747558594, -0.1472216099500656, -0.40446147322654724, -0.01818089932203293, -0.10707823187112808, 0.003264474216848612, -0.27426406741142273, 0.1767626255750656, 0.02077431231737137, 0.35306480526924133, 0.1341453194618225, 0.18562547862529755, 0.058139555156230927, -0.20635654032230377, -0.22263412177562714, -0.12268686294555664, -0.3091830313205719, 0.02515198104083538, 0.2947830557823181, -0.17088305950164795, 0.34400659799575806, 0.5470420718193054, -0.3297730088233948, -0.5027313232421875, -0.062134698033332825, -0.03143306449055672, 0.1452510803937912, 0.29647374153137207, -0.06330233067274094, -0.08639851957559586, 0.2666996419429779, -0.09013643115758896, -0.01683981716632843, 0.3552980422973633, -0.09144825488328934, -0.30692923069000244, 0.14365242421627045, 0.197564035654068, 0.05110626667737961, 0.19584901630878448, -0.12795129418373108, 0.015527717769145966, 0.3042721152305603, -0.07051827013492584, -0.04579586535692215, -0.0500779002904892, -0.013653356581926346, -0.24845197796821594, 0.04766726493835449, 0.7337819337844849, -0.4681152403354645, 0.008142031729221344, -0.2922006845474243, -0.08908508718013763, 0.24045556783676147, 0.0785246193408966, 0.004703373648226261, 0.04239287227392197, -0.46869030594825745, -0.36033034324645996, 0.16675898432731628, -0.16695214807987213, -0.43696025013923645, 0.005820621270686388, -0.2142418771982193, 0.2575324475765228, 0.1665145456790924, -0.04497828334569931, -0.15013614296913147, -0.017233071848750114, 0.09704709053039551, 0.2490067481994629, 0.09239402413368225, 0.04482365399599075, -0.32461676001548767, -0.2888213098049164, 0.04556865245103836, -0.132967010140419, 0.2855153977870941, 0.4056811034679413, 0.35214391350746155, 0.16662059724330902, 0.3699391782283783, 0.06259281933307648, 0.015510033816099167, 0.014386951923370361, 0.33673691749572754, -0.01800982654094696, 0.033076170831918716, 0.17652061581611633, -0.522168755531311, 0.3075175881385803, -0.033605337142944336, -0.2515622079372406, 0.07289580255746841, -0.07019537687301636, -0.5719505548477173, -0.22833918035030365, -0.07209812104701996, -0.3877536654472351, 0.17254780232906342, 0.4713417887687683, -0.033434733748435974, 0.0184997096657753, -0.1434890329837799, 0.47259753942489624, -0.3845013380050659, -0.04807125777006149, -0.041301168501377106, 0.285520076751709, -0.1932288259267807, -0.18146099150180817, -0.21956844627857208, -0.11879656463861465, 0.2447948455810547, -0.1625746637582779, -0.12155956774950027, 0.4299699366092682, 0.18604792654514313, 0.2720865309238434, -0.3619140088558197, -0.1950375884771347, 0.16521941125392914, -0.01606319099664688, -0.14654895663261414, 0.11854524910449982, 0.24596887826919556, -0.07762636989355087, -0.017394796013832092, 0.27890485525131226, -0.4031006991863251, -0.08858688920736313, 0.07137446105480194, -0.046219829469919205, 0.2666137218475342, -0.2367839813232422, 0.2828179895877838, -0.34039777517318726, -0.34033143520355225, 0.29470205307006836, 0.0018234625458717346, 0.12792792916297913, 0.09892444312572479, 0.11211428046226501, 0.28678008913993835, 0.006671186536550522, 0.047518156468868256, -0.08901221305131912, -0.17656585574150085, -0.2945634126663208, 0.013121380470693111, 0.35000085830688477, 0.5929617285728455, 0.16572566330432892, -0.016661491245031357, 0.14517329633235931, -0.05830691009759903, -0.253808856010437, 0.20438642799854279, -0.2613338232040405, -0.006469659972935915, 0.33118313550949097, 0.18785236775875092, 0.07633659243583679, -0.6370834112167358, 0.1860152631998062, 0.514092743396759, 0.21180260181427002, -0.21951453387737274, -0.19098500907421112, -0.16736556589603424, 0.41251498460769653, 0.06301690638065338, 0.14355099201202393, -0.030055735260248184, -0.10656655579805374, -0.13827387988567352, 0.5955287218093872, -0.05899834260344505, 0.07329227775335312, -0.18508131802082062, -0.07492680847644806, -0.046165913343429565, -0.14269621670246124, -0.14728033542633057, -0.17641480267047882, -0.1414830982685089, 0.09109577536582947, 0.23135821521282196, -0.34192222356796265, 0.14773119986057281, -0.18287605047225952, -0.1267574578523636, -0.3267631530761719, -0.08334323018789291, -0.1293942779302597, 0.034004420042037964, 0.2224019169807434, -0.22504931688308716, 0.14713777601718903, 0.16975662112236023, 0.03256779909133911, -0.004715205170214176, -0.35545414686203003, -0.3341691195964813, -0.10292816907167435, 0.15119925141334534, 0.2633754014968872, -0.26001083850860596, -0.45545634627342224, 0.10902228206396103, -0.37113887071609497, -0.04065752029418945, 0.10156090557575226, -0.0919753760099411, 0.3833358883857727, 0.22381071746349335, -0.03108307346701622, 0.4020077884197235, 0.2698839008808136, -0.437619686126709, -0.27906090021133423, 0.080503448843956, -0.10147791355848312, -0.2633703351020813, 0.014791596680879593, 0.060915201902389526, -0.012119531631469727, 0.2737051844596863, -0.4307684898376465, -0.08452554792165756, -0.2824060916900635, 0.0837782770395279, -0.058575913310050964, 0.2336963564157486, 0.20812299847602844, 0.12076064199209213, -0.21364064514636993, -0.10408008843660355, -0.09567822515964508, -0.041495732963085175, 0.23349177837371826, 0.12698271870613098, 0.021205145865678787, 0.22927913069725037, 0.09353932738304138, 0.6404240131378174, 0.05031098797917366, -0.1254807710647583, 0.508699893951416, 0.12542301416397095, 0.7294847369194031, -0.07403721660375595, -0.3390607535839081, -0.0056345900520682335, -0.18458369374275208, 0.31925779581069946, 0.04202893376350403, -0.10619796812534332, 0.13097941875457764, -0.1564229279756546, 0.024226713925600052, -0.167812317609787, -0.2236509472131729, -0.1179097443819046, -0.2493901550769806, -0.022043906152248383, 0.31423017382621765, -0.10476483404636383, -0.1341651976108551, 0.0813804417848587, -0.018526071682572365, 0.08762866258621216, 0.32204103469848633, 0.08849329501390457, 0.09943901002407074, 0.5284658074378967, -0.10808170586824417, -0.013338804244995117, -0.08779788762331009, 0.3645622730255127, 0.2040727585554123, -0.20238184928894043, 0.058593109250068665, -0.02311757579445839, 0.7181978821754456, -0.21944592893123627, 0.31329095363616943, 0.2286948561668396, 0.011423323303461075, -0.08702146261930466, -0.19676634669303894, 0.10326187312602997, -0.1487741470336914, 0.1887100338935852, 0.3649291396141052, 0.0375472828745842, 0.03900150582194328, -0.10035714507102966, 0.2032167613506317, 0.06212875619530678, -0.16297335922718048, -0.2788124680519104, -0.15997231006622314, -0.45885977149009705, 0.3117336928844452, 0.19158786535263062, 0.08900509029626846, -0.32088708877563477, 0.08463379740715027, -0.24782408773899078, -0.4116817116737366, -0.039585456252098083, 0.1951415091753006, 0.20081904530525208, 0.11396071314811707, 0.04898737743496895, -0.016184072941541672, -0.1171150952577591, 0.26747608184814453, 0.4194464087486267, -0.16499187052249908, 0.06672907620668411, -0.1280568540096283, 0.109395831823349, -0.0675811842083931, 0.3193850517272949, -0.06579679250717163, -0.11205991357564926, -0.3978941738605499, -0.16188187897205353, 0.06209711730480194, 0.06734562665224075, 0.002971736714243889, -0.33545759320259094, -0.09545116126537323, -0.43700912594795227, 0.28718575835227966, -0.06821639835834503, -0.05159803852438927, 0.4572833478450775, 0.23643217980861664, -0.20391201972961426, 0.16251665353775024, 0.052893657237291336, 0.8192437887191772, -0.12214773893356323, 0.16519181430339813, 0.03279032185673714, -0.05938746780157089, 0.4034767150878906, -0.28868141770362854, 0.1940591037273407, -0.17677409946918488, -0.30612388253211975, 0.10449349880218506, -0.04080815613269806, 0.2328803539276123, 0.20792217552661896, -0.12640519440174103, 0.13854065537452698, -0.09847316890954971, 0.4167664647102356, 0.27647778391838074, -0.003026030957698822, -0.2224704474210739, -0.14139239490032196, -0.22919271886348724, 0.14681877195835114, 0.28117185831069946, 0.19268082082271576, -0.1454823613166809, -0.008617324754595757, 0.12203647196292877, -0.022948453202843666, -0.268562376499176, 0.28663551807403564, -0.16425324976444244, 0.3783472776412964, -0.4507664144039154, -0.10984092950820923, 0.03264639899134636, 0.2600937783718109, 0.25496116280555725, 0.2578197121620178, 0.014677411876618862, 0.08309284597635269, 0.41228508949279785, 0.13230808079242706, -0.15511493384838104, 0.0008574426174163818, 0.41588443517684937, 0.10062850266695023, -0.3379727602005005, 0.1988285779953003, -0.09078405797481537, -0.14765501022338867, 0.003759235143661499, 0.27483922243118286, -0.043328240513801575, -0.11250345408916473, -0.0927647203207016, 0.09353692084550858, -0.0749746561050415, -0.4186442792415619, 0.14433574676513672, -0.052253469824790955, -0.1282397359609604, 0.12125639617443085, -0.44810280203819275, -0.4539901316165924, -0.26990264654159546, 0.5651441216468811, 0.1653047502040863, 0.08968806266784668, 0.3432316780090332, -0.19581572711467743, 0.009230460971593857, -0.19560378789901733, 0.03483283519744873, -0.1255524754524231, -0.32504311203956604, 0.5315564274787903, -0.21403135359287262, -0.10113082081079483, 0.18892572820186615, -0.17375396192073822, 0.11054117977619171, 0.380870521068573, 0.163735494017601, -0.28449347615242004, -0.529198944568634, -0.39041852951049805, -0.052490245550870895, 0.22829894721508026, 0.05084845423698425, -0.007294809445738792, -0.01071320939809084, -0.004558570683002472, -0.33507752418518066, 0.24038828909397125, 0.09190575033426285, 0.07293348014354706, 0.12427935749292374, -0.10434820502996445, -0.2560708224773407, -0.25927311182022095, 0.17759540677070618, 0.32094883918762207, -0.02541022002696991, -0.2779422998428345, -0.32961443066596985, 0.09583296626806259, 0.3220798373222351, -0.1090269535779953, -0.19926317036151886, -0.08584731817245483, -0.21283577382564545, -0.11368517577648163, 0.20989586412906647, 0.41468513011932373, -0.050506509840488434, -0.015248944982886314, 0.3320709466934204, 0.002245098352432251, -0.19977429509162903, -0.09585140645503998, -0.2755777835845947, -0.14803609251976013, 0.06965810060501099, 0.2725878655910492, -0.03616023808717728, 0.12739066779613495, -0.4385444223880768, -0.06491669267416, 0.11951793730258942, 0.08854973316192627, 0.191310316324234, -0.22849617898464203, -0.16638274490833282, -0.08600315451622009, 0.22188422083854675, 0.4013625979423523, 0.04893644154071808, -0.1580478847026825, 0.23256677389144897, 0.2389936000108719, -0.5628601312637329, -0.010694344528019428, 0.19435952603816986, -0.0036498578265309334, 0.09856449067592621, 0.1986972987651825, 0.21040526032447815, -0.16817304491996765, -0.061307474970817566, 0.1347883939743042, 0.25475549697875977, -0.06252822279930115, 0.3317427933216095, 0.6826932430267334, 0.176280215382576, 0.24817508459091187, 0.2562505900859833, 0.1975744068622589, 0.16425275802612305, 0.3292226195335388, 0.022968493402004242, -0.02419288642704487, -0.281563401222229, 0.018447529524564743, -0.3797060549259186, -0.3709610104560852, 0.31608763337135315, 0.4231715798377991, -0.21430844068527222, 0.23659232258796692, 0.03536214306950569, -0.3099907338619232, -0.026485923677682877, 0.02994905784726143, -0.2805517315864563, 0.2032463401556015, -0.12363696843385696, -0.32740122079849243, 0.3878675699234009, -0.202610582113266, -0.17774833738803864, 0.1964988261461258, -0.041075605899095535, 0.02626081556081772, -0.13569752871990204, -0.004874922335147858, -0.27219706773757935, -0.4071179926395416, -0.06439130753278732, 0.11552698910236359, 0.13042235374450684, -0.20576618611812592, -0.09847397357225418, 0.30188673734664917, -0.13642841577529907, -0.0018377825617790222, 0.2399723380804062, 0.37889713048934937, 0.21110831201076508, 0.15349075198173523, -0.0022810818627476692, 0.17388257384300232, -0.008814876899123192, -0.3157624900341034, 0.42000147700309753, 0.06627468764781952, -0.0240950845181942, -0.13709120452404022, 0.20393896102905273, -0.2506950795650482, -0.0812046229839325, 0.15220676362514496, 0.014136521145701408, -0.15470778942108154, 0.49929654598236084, 0.0719960629940033, -0.3092767596244812, -0.0027596764266490936, 0.2752631604671478, 0.025196559727191925, -0.07981734722852707, 0.3267327547073364, -0.1332300305366516, 0.2819020748138428, -0.23000770807266235, 0.11098101735115051, 0.11482734978199005, -0.03475308045744896, 0.455512672662735, -0.4898696839809418, -0.2097957283258438, 0.09886159002780914, -0.8163999915122986, 0.012093581259250641, 0.03284856677055359, 0.20083045959472656, -0.14170975983142853, 0.08337006717920303, -0.008318692445755005, 0.021294089034199715, 0.11451312899589539, 0.3138945400714874, 0.07245711237192154, 0.31026583909988403, -0.05394633114337921, -0.13469041883945465, -0.09586609899997711, -0.14770101010799408, -0.11636529117822647, -0.5594714283943176, 0.07595916092395782, -0.185327410697937, 0.20953041315078735, -0.03706011548638344, 0.006510436534881592, 0.2180148810148239, 0.24442026019096375, 0.4945928156375885, 0.028728732839226723, -0.03322005271911621, -0.052002549171447754, -0.13350334763526917, -0.5665877461433411, -0.03980104625225067, -0.24664025008678436, 0.05008363723754883, 0.15206633508205414, 0.13907936215400696, -0.3625167906284332, -0.3033447861671448, -0.21440482139587402, 0.30890345573425293, 0.20045116543769836, -0.03650501370429993, -0.32255813479423523, -0.022642042487859726, -0.08647479116916656, 0.023742280900478363, 0.2618904411792755, 0.281764954328537, -0.3526061475276947, 0.39245736598968506, -0.39136576652526855, -0.3119352459907532, 0.20781004428863525, -0.348877876996994, -0.35972845554351807, -0.11099811643362045, 0.21950864791870117, -0.05901087075471878, -0.08384612202644348, 0.0804014578461647, 0.3842256963253021, 0.22002607583999634, -0.12928169965744019, -0.2282669097185135, 0.11827948689460754, -0.4038979709148407, 0.1522318571805954, -0.09264294803142548, 0.15833711624145508, 0.15146377682685852, -0.215383842587471, 0.1477637141942978, -0.07969997823238373 ]
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.049786314368247986, -0.05474432557821274, -0.12806656956672668, 0.0003010854125022888, -0.03935454785823822, -0.0071311816573143005, 0.35460445284843445, 0.16591526567935944, 0.19368606805801392, 0.20558106899261475, 0.06397932022809982, 0.1460067629814148, -0.02429262548685074, 0.1997431218624115, -0.014876269735395908, -0.20615312457084656, -0.04741782695055008, 0.0075568705797195435, -0.09543997049331665, -0.09535465389490128, -0.1237473413348198, 0.1472281962633133, -0.13759160041809082, -0.21125416457653046, -0.4580725133419037, -0.08757724612951279, -0.17305602133274078, -0.02534545212984085, -0.17212964594364166, -0.07761885225772858, -0.1209002137184143, 0.19935563206672668, -0.143584206700325, 0.3342965543270111, -0.00009734711784403771, -0.11899960041046143, 0.23090723156929016, -0.18028394877910614, -0.08710257709026337, 0.05766133964061737, 0.1233595535159111, -0.018355416133999825, -0.3197697699069977, -0.4497416019439697, -0.19174206256866455, -0.09192657470703125, 0.2502591907978058, 0.08722643554210663, 0.2207231968641281, -0.017193792387843132, 0.32803958654403687, -0.12104445695877075, 0.10394823551177979, 0.024298233911395073, 0.04086683690547943, 0.11211149394512177, -0.13301204144954681, -0.000700509175658226, 0.015008382499217987, -0.32461729645729065, -0.1604316532611847, 0.6847470998764038, 0.017173031345009804, 0.027253972366452217, 0.06144128739833832, 0.05636601150035858, -0.17214149236679077, -0.3297246992588043, 0.17903533577919006, 0.4349500238895416, 0.5310003161430359, 0.0022284984588623047, -0.16606596112251282, -0.053197264671325684, -0.08755920827388763, -0.06500991433858871, 0.1432967185974121, 0.2999431788921356, -0.13682296872138977, 0.02394287846982479, -0.2666972875595093, 0.0028922439087182283, -0.2545391619205475, 0.15935982763767242, -0.19594639539718628, 0.41311222314834595, 0.021566472947597504, 0.032652758061885834, -0.0001826658844947815, -0.2101522833108902, -0.43693745136260986, -0.012732207775115967, 0.21254637837409973, 0.009994764812290668, 0.038108982145786285, -0.2509273886680603, -0.050386399030685425, -0.15460911393165588, 0.3692227602005005, -0.19737845659255981, -0.04035874083638191, 0.07332420349121094, -0.18251340091228485, 0.30016613006591797, 0.11515654623508453, -0.27358055114746094, -0.1728774607181549, 0.021519139409065247, 0.18278463184833527, 0.08740608394145966, -0.2466638684272766, 0.1344638466835022, 0.2253025621175766, -0.10297305136919022, -0.17729878425598145, -0.08780054748058319, 0.10702037811279297, -0.0466613844037056, -0.10756058245897293, -0.008583302609622478, -0.14670515060424805, -0.0710126981139183, -0.4360581040382385, 0.2165168821811676, -0.03357608988881111, 0.10984993726015091, 0.1278970092535019, 0.1473863124847412, -0.2188080996274948, -0.1533711701631546, -0.10578680783510208, 0.10091513395309448, 0.05574006959795952, 0.27904561161994934, 0.12110260128974915, 0.3311379849910736, 0.25673484802246094, -0.08240292221307755, 0.1746453493833542, 0.09472008049488068, 0.04164845496416092, -0.09531080722808838, 0.25552430748939514, -0.008911821991205215, 0.01646241545677185, -0.12272751331329346, -0.051241207867860794, -0.2793620824813843, -0.19902443885803223, 0.027065463364124298, -0.10847281664609909, 0.20363174378871918, -0.32129064202308655, 0.2668367326259613, 0.14469760656356812, -0.058351367712020874, -0.004564233124256134, 0.6982095241546631, 0.09597602486610413, 0.0308421291410923, 0.13653087615966797, 0.14452484250068665, -0.39588481187820435, -0.0636468380689621, 0.24535244703292847, 0.44906818866729736, -0.0886281281709671, 0.025528430938720703, 0.3061012327671051, 0.3564613163471222, 0.019369810819625854, 0.19322054088115692, 0.024550652131438255, -0.01815114915370941, 0.04887533187866211, 0.26301783323287964, -0.1056206002831459, -0.2358686774969101, -0.11953935027122498, -0.1759907603263855, -0.09651158004999161, 0.10207616537809372, 0.032643549144268036, 0.2860513925552368, 0.27005067467689514, -0.10277528315782547, 0.0935341939330101, 0.6013002991676331, -0.18929436802864075, 0.21376574039459229, -0.21300704777240753, -0.38633257150650024, -0.0069002024829387665, 0.32738035917282104, 0.12856359779834747, -0.4685770869255066, 0.22502323985099792, 0.19093994796276093, 0.031998567283153534, -0.38458704948425293, 0.09872263669967651, 0.007533874362707138, -0.031035203486680984, 0.09958434104919434, 0.09182801842689514, -0.23989492654800415, -0.007951736450195312, 0.054679349064826965, 0.20491550862789154, 0.48322197794914246, -0.1773444265127182, -0.24813418090343475, -0.03899585083127022, -0.15137524902820587, -0.10651393234729767, -0.36987102031707764, 0.35374316573143005, 0.12058661878108978, -0.004548672586679459, 0.22105713188648224, 0.07844983041286469, -0.059415921568870544, -0.316344290971756, -0.04560195282101631, 0.1199059784412384, 0.18675994873046875, -0.2623734474182129, -0.018575821071863174, 0.12186606228351593, 0.08605311065912247, -0.08356063812971115, 0.180764839053154, 0.09117485582828522, 0.19132494926452637, 0.046176787465810776, 0.3455415964126587, 0.26779550313949585, 0.053058043122291565, 0.3559017777442932, -0.6900478005409241, -0.06900864839553833, 0.19123424589633942, 0.0030613429844379425, 0.0122598335146904, -0.2659727931022644, 0.1819278448820114, 0.27170395851135254, 0.045216988772153854, -0.08044526726007462, -0.00830848515033722, 0.14734695851802826, -0.024439169093966484, 0.0583702027797699, -0.36466169357299805, -0.0810377299785614, 0.21299909055233002, -0.2515611946582794, -0.23260580003261566, -0.18902426958084106, 0.18087485432624817, 0.5132713317871094, 0.24331724643707275, 0.3687908351421356, 0.16841793060302734, -0.11996790021657944, -0.14010484516620636, -0.006869647651910782, -0.09601569175720215, -0.16881190240383148, 0.3742105960845947, -0.05377241596579552, -0.1260633021593094, -0.2724704146385193, -0.09229523688554764, 0.1780955195426941, -0.015892393887043, 0.22313155233860016, 0.04866483807563782, 0.24922430515289307, -0.02499089017510414, -0.45774397253990173, -0.1271137148141861, -0.15744900703430176, -0.1973031461238861, 0.05628226324915886, 0.07846488803625107, -0.07133181393146515, -0.19916021823883057, -0.06696515530347824, 0.28336066007614136, -0.30871230363845825, -0.11430852860212326, 0.35222285985946655, 0.015218764543533325, -0.11031125485897064, 0.18331359326839447, 0.08732426166534424, 0.17335641384124756, 0.18623438477516174, 0.02455810084939003, -0.13379396498203278, -0.5455777049064636, -0.061116695404052734, 0.26861318945884705, 0.17435939610004425, -0.01615055464208126, 0.537742018699646, -0.1781013309955597, 0.03677402064204216, -0.28842511773109436, -0.7053375244140625, 0.10204719007015228, -0.1840779036283493, 0.19695612788200378, 0.015518277883529663, 0.27606579661369324, -0.22341620922088623, -0.15411317348480225, 0.15462994575500488, -0.1017465814948082, -0.1935490369796753, -0.22095857560634613, 0.04807687923312187, 0.04209984466433525, -0.22918657958507538, -0.21489685773849487, -0.1442076712846756, -0.24474850296974182, 0.10660214722156525, 0.3489592671394348, 0.17218750715255737, 0.06473638862371445, 0.38381731510162354, 0.02806619182229042, -0.02386982925236225, 0.27641358971595764, -0.357116162776947, -0.032202936708927155, 0.36824652552604675, -0.30390986800193787, -0.40381553769111633, -0.16452720761299133, -0.18276670575141907, 0.16991344094276428, 0.05919545143842697, -0.385204553604126, -0.39320582151412964, 0.016092542558908463, 0.19645771384239197, 0.2606026530265808, 0.07765540480613708, 0.16889680922031403, 0.1696973741054535, -0.2888210415840149, -0.12013012915849686, -0.09050038456916809, 0.10876289010047913, 0.08043919503688812, 0.03271743655204773, 0.2156328558921814, 0.09163673222064972, 0.22650334239006042, 0.6132444739341736, -0.16133956611156464, -0.02815696969628334, 0.4119827449321747, -0.038380905985832214, 0.22410418093204498, -0.0002335384488105774, -0.0705116018652916, 0.49728572368621826, 0.009116441011428833, 0.15814514458179474, 0.2489975243806839, 0.10939521342515945, -0.45752620697021484, -0.142506942152977, 0.07410737872123718, -0.4309844374656677, -0.18312905728816986, 0.1126234382390976, 0.2822228670120239, 0.13590240478515625, -0.12557262182235718, -0.11187726259231567, -0.19500744342803955, -0.21409901976585388, 0.1501377373933792, 0.13654610514640808, -0.03306736797094345, -0.08543971180915833, -0.14780277013778687, 0.044079240411520004, -0.20995831489562988, 0.1326000839471817, 0.38083893060684204, -0.1713131070137024, -0.1235295981168747, -0.06418924033641815, -0.14828163385391235, -0.22657343745231628, 0.24561753869056702, -0.3066805899143219, -0.03962182253599167, -0.00018578022718429565, -0.005773566663265228, 0.017194008454680443, 0.22118280827999115, -0.20882590115070343, -0.3443022072315216, -0.04523104056715965, 0.24777260422706604, -0.4293946623802185, 0.08817049860954285, 0.39060866832733154, 0.1875750720500946, -0.09826002269983292, 0.0725133866071701, -0.15351350605487823, -0.446605384349823, -0.46398064494132996, 0.07592828571796417, -0.01792304776608944, 0.2340526282787323, 0.16927435994148254, -0.046104107052087784, -0.04956119507551193, -0.03458037227392197, -0.031356796622276306, 0.3599343001842499, 0.023260530084371567, 0.24515341222286224, -0.1866830587387085, 0.015925906598567963, -0.03627559542655945, -0.03926883637905121, 0.2646232843399048, 0.06555986404418945, 0.06209947168827057, -0.19048818945884705, -0.17988675832748413, -0.008132770657539368, 0.132587268948555, 0.24912528693675995, -0.03252903372049332, 0.00990187469869852, 0.03238069638609886, -0.3869566023349762, 0.21385280787944794, 0.10158636420965195, 0.11076098680496216, -0.014832952059805393, -0.268207848072052, 0.3575323224067688, 0.013969291001558304, 0.08968245983123779, 0.38964924216270447, 0.08274810016155243, -0.40773311257362366, 0.13139747083187103, 0.6063616871833801, 0.8766948580741882, -0.1784278303384781, 0.1968851089477539, 0.11565276235342026, -0.12276973575353622, 0.4901369512081146, -0.012511305510997772, 0.08938979357481003, -0.09030497074127197, 0.046205464750528336, -0.04825744032859802, 0.18107669055461884, 0.023386452347040176, -0.007180027663707733, -0.23839682340621948, -0.059148628264665604, 0.4950779676437378, 0.050988826900720596, 0.022318027913570404, 0.24544116854667664, -0.018000388517975807, -0.3712226152420044, -0.16389159858226776, 0.23962140083312988, -0.13479429483413696, -0.0386178232729435, 0.02055460214614868, -0.12826475501060486, -0.056306593120098114, -0.24087299406528473, -0.26612186431884766, -0.03752627968788147, -0.3923753499984741, 0.20526425540447235, -0.25204792618751526, -0.23213134706020355, 0.05400070175528526, 0.1925722360610962, 0.1538781076669693, -0.011854499578475952, -0.19310209155082703, 0.2699621617794037, -0.21669602394104004, -0.12972860038280487, 0.0994478240609169, -0.07785575091838837, 0.31346091628074646, -0.16212612390518188, -0.2310345470905304, 0.06826409697532654, 0.35306990146636963, -0.20035326480865479, -0.37840569019317627, -0.15962041914463043, 0.2148570716381073, 0.3098067343235016, -0.0714120864868164, 0.03680948540568352, -0.40809300541877747, -0.25505635142326355, 0.26626086235046387, -0.17208440601825714, 0.1280953735113144, 0.0953228548169136, 0.33815744519233704, -0.06617210805416107, 0.012041343376040459, 0.2799670398235321, 0.15132424235343933, 0.06921602785587311, 0.2529289126396179, 0.19705116748809814, -0.15937744081020355, -0.26254820823669434, -0.14282634854316711, -0.21437929570674896, -0.3051331639289856, -0.13529817759990692, 0.0671672597527504, -0.20435284078121185, -0.13380281627178192, 0.364198237657547, 0.1625056266784668, -0.025559239089488983, 0.09161864221096039, -0.07917734235525131, -0.043532248586416245, 0.3351585268974304, -0.2645077109336853, 0.2620089054107666, 0.13626134395599365, 0.09192387759685516, 0.06210027635097504, 0.24666626751422882, -0.469770610332489, 0.0008083214052021503, -0.27682462334632874, 0.22043859958648682, 0.28419581055641174, -0.18620598316192627, -0.02803078293800354, 0.1253686100244522, 0.3021199405193329, 0.0017986800521612167, -0.168561190366745, -0.3627263903617859, -0.24314375221729279, 0.04227727651596069, 0.03341080620884895, -0.13467229902744293, 0.02545703947544098, -0.07903227210044861, -0.08361507952213287, -0.16225314140319824, 0.09319363534450531, -0.22409743070602417, -0.24724198877811432, 0.22282540798187256, -0.18231379985809326, 0.0700707659125328, 0.09484605491161346, -0.18610793352127075, -0.09508487582206726, 0.41560500860214233, 0.0535980686545372, -0.10834205150604248, 0.22086495161056519, -0.13956665992736816, -0.026013752445578575, 0.29093414545059204, -0.2630015015602112, 0.013308010995388031, 0.27663400769233704, 0.14192423224449158, -0.03432460501790047, 0.24412013590335846, 0.26160478591918945, -0.21285313367843628, -0.27817630767822266, -0.07092933356761932, 0.20340582728385925, 0.3885401487350464, -0.348049521446228, -0.00026899881777353585, 0.3647507131099701, -0.40265023708343506, 0.40580040216445923, 0.30525049567222595, 0.16807585954666138, -0.047095030546188354, -0.2581315040588379, 0.07653919607400894, -0.016994807869195938, -0.43400275707244873, -0.020303849130868912, 0.14155584573745728, 0.11057567596435547, 0.04873601719737053, -0.06017052382230759, 0.15924732387065887, 0.27904465794563293, 0.27026307582855225, -0.05767162889242172, 0.40032538771629333, 0.07007229328155518, 0.053659453988075256, 0.2820590138435364, 0.21632394194602966, 0.5008887052536011, 0.1520392745733261, 0.06153292581439018, 0.3375331163406372, 0.06671115756034851, -0.048949308693408966, 0.023166317492723465, -0.14150863885879517, -0.11761551350355148, 0.31344112753868103, -0.014749959111213684, -0.07158579677343369, -0.397522509098053, -0.21558520197868347, -0.05025347322225571, 0.09920422732830048, 0.08556686341762543, -0.14505691826343536, 0.23546361923217773, 0.05249664932489395, -0.1196649968624115, -0.24438636004924774, -0.04307171702384949, -0.06646475940942764, 0.5451586842536926, -0.19913822412490845, 0.06965968757867813, 0.2658623456954956, -0.035609059035778046, 0.0963544100522995, 0.40212225914001465, 0.19850414991378784, 0.0789165049791336, -0.2381744384765625, 0.1088351160287857, -0.04457850009202957, -0.14409804344177246, -0.14252537488937378, -0.030538365244865417, 0.1477598398923874, -0.27485960721969604, 0.34937500953674316, 0.26314598321914673, -0.3019365072250366, -0.32111451029777527, 0.3872305750846863, -0.13458727300167084, -0.010065972805023193, -0.6193215250968933, -0.002628657966852188, 0.04432021826505661, -0.15217699110507965, 0.10487865656614304, -0.5363394618034363, -0.09522518515586853, -0.08854328095912933, -0.03213438391685486, 0.027720224112272263, -0.16482959687709808, 0.13386307656764984, 0.07524232566356659, 0.4413735866546631, 0.2891276776790619, 0.06067609414458275, 0.0619644969701767, -0.22793425619602203, -0.5278969407081604, 0.11675382405519485, -0.07994088530540466, -0.4166080951690674, -0.1129242479801178, 0.3505660891532898, 0.24548953771591187, 0.23853245377540588, 0.10032080858945847, -0.15066558122634888, 0.24236533045768738, 0.07097400724887848, -0.28754207491874695, 0.08085831999778748, 0.05618767812848091, 0.05418020486831665, -0.0941888839006424, -0.1719169318675995, 0.12519590556621552, -0.24718457460403442, 0.3233294188976288, -0.24117575585842133, 0.11204297840595245, -0.17017686367034912, 0.07295744121074677, 0.06469178199768066, -0.02728852815926075, 0.1814376562833786, -0.43561264872550964, -0.31987446546554565, -0.036258962005376816, 0.01158897764980793, -0.1519787609577179, 0.11356347799301147, 0.15610657632350922, 0.5797209739685059, 0.06924936175346375, -0.07130156457424164, 0.10666278749704361, 0.4916713237762451, 0.02018483728170395, 0.029558809474110603, 0.0948425829410553, 0.031026648357510567, 0.2517525255680084, -0.19978243112564087, -0.07885941863059998, 0.3963516056537628, -0.09071627259254456, -0.12833529710769653, -0.0551321767270565, -0.6203973889350891, 0.1190897598862648, -0.43966686725616455, -0.1874823421239853, -0.03732084855437279, -0.13978630304336548, 0.10886219143867493, 0.399653822183609, -0.30557751655578613, 0.20878097414970398, 0.22387003898620605, 0.19300884008407593, -0.2440028190612793, 0.36047792434692383, 0.11555562913417816, -0.14298197627067566, -0.08355705440044403, -0.18053048849105835, -0.04298260062932968, -0.07564948499202728, -0.21745990216732025, -0.32981085777282715 ]
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.08095181733369827, -0.22145545482635498, -0.19897301495075226, 0.013309746980667114, 0.05485624074935913, 0.0012884736061096191, 0.43179571628570557, 0.09052827209234238, 0.29725122451782227, 0.14708267152309418, -0.014003012329339981, 0.11782090365886688, -0.18012912571430206, 0.27506306767463684, 0.1759229302406311, -0.2347298562526703, 0.052885789424180984, -0.052558913826942444, -0.1111661046743393, -0.07941927015781403, -0.05225706472992897, 0.19801343977451324, -0.19383810460567474, -0.2477927953004837, -0.3986717164516449, -0.10571994632482529, -0.17398926615715027, -0.016952037811279297, -0.18466448783874512, 0.03277386724948883, -0.26081275939941406, 0.07331765443086624, -0.11569724977016449, 0.4770057797431946, -0.00009640317875891924, -0.064579539000988, 0.21438449621200562, -0.14239059388637543, -0.05455983430147171, -0.17770765721797943, 0.041535332798957825, -0.004911393392831087, -0.25490087270736694, -0.28132325410842896, -0.18397924304008484, -0.15387800335884094, 0.27004534006118774, -0.002981279045343399, 0.305342435836792, 0.12109779566526413, 0.3088105618953705, -0.14746785163879395, 0.2071540504693985, -0.051437754184007645, 0.13264347612857819, 0.1544087827205658, -0.24827484786510468, -0.09643621742725372, 0.09663920104503632, -0.22675716876983643, -0.24215510487556458, 0.6854543685913086, 0.11605705320835114, 0.025015536695718765, -0.025282233953475952, 0.007096111308783293, -0.09264979511499405, -0.2954960763454437, 0.1886395514011383, 0.4700399339199066, 0.5937215089797974, -0.163062185049057, -0.1721823811531067, 0.09196742624044418, -0.048703745007514954, 0.03976897895336151, 0.040856510400772095, 0.357105016708374, -0.16184033453464508, 0.06495922803878784, -0.17831775546073914, -0.15133218467235565, -0.17268788814544678, 0.2914958596229553, -0.09491044282913208, 0.4078671336174011, -0.03154544159770012, -0.05558110773563385, -0.037376757711172104, -0.17771488428115845, -0.21642373502254486, 0.05230841785669327, 0.2419593185186386, 0.06623635441064835, 0.03358634188771248, -0.12569113075733185, 0.03854900971055031, -0.11351127177476883, 0.34175077080726624, -0.27747219800949097, -0.05657520145177841, 0.13290153443813324, -0.3231116235256195, 0.30923959612846375, 0.1385563164949417, -0.21742470562458038, -0.14503276348114014, -0.18548181653022766, 0.19510145485401154, 0.03250058740377426, -0.2619888484477997, 0.15055793523788452, 0.09972085803747177, -0.021424680948257446, -0.2273956537246704, -0.16076886653900146, -0.05164634436368942, 0.09113915264606476, 0.11939715594053268, -0.07075934112071991, -0.14215874671936035, -0.06617975980043411, -0.31771254539489746, 0.2407016158103943, 0.10100480914115906, 0.08155827224254608, 0.0965307205915451, 0.24758967757225037, -0.14709900319576263, -0.17651672661304474, -0.08815371245145798, 0.22484154999256134, -0.1903701275587082, 0.1265023648738861, 0.15928015112876892, 0.5113361477851868, 0.25375041365623474, -0.07337728887796402, 0.11290910094976425, 0.00183168426156044, 0.08566080033779144, -0.10014010965824127, 0.20698390901088715, -0.05579133704304695, 0.0809682309627533, -0.15241310000419617, -0.07337313890457153, -0.310289204120636, -0.15553882718086243, 0.07735223323106766, -0.08899127691984177, 0.04937728866934776, -0.41611507534980774, 0.253064900636673, 0.12848494946956635, -0.08091790229082108, 0.09084740281105042, 0.7699174284934998, 0.05824897810816765, -0.0342356413602829, 0.17984768748283386, 0.28333473205566406, -0.37971362471580505, -0.0025154605973511934, 0.17577412724494934, 0.39056485891342163, -0.09242035448551178, -0.06425466388463974, 0.13284827768802643, 0.2665214240550995, -0.05839408189058304, 0.21739079058170319, -0.056730691343545914, 0.08785764127969742, 0.02464950643479824, 0.23228783905506134, 0.06946076452732086, -0.13952918350696564, -0.04350058734416962, -0.10111001133918762, -0.08136071264743805, 0.0106057059019804, 0.08365482836961746, 0.29814469814300537, -0.01279376819729805, 0.09652911871671677, 0.008078612387180328, 0.6753436923027039, -0.10981579124927521, 0.22860032320022583, -0.27377793192863464, -0.42782819271087646, -0.011398125439882278, 0.3287436068058014, 0.14537669718265533, -0.40550556778907776, 0.3278425633907318, 0.2322443127632141, 0.09498690068721771, -0.3136892318725586, 0.10858538001775742, 0.022320467978715897, -0.0005046278238296509, 0.14671149849891663, 0.10928486287593842, -0.29647305607795715, -0.08367571979761124, -0.13040170073509216, 0.13182398676872253, 0.4837469160556793, -0.24828927218914032, -0.24802811443805695, 0.004285268485546112, -0.2053588479757309, -0.062192950397729874, -0.270466685295105, 0.36171025037765503, 0.17162993550300598, -0.13062119483947754, 0.27247196435928345, 0.04305848106741905, -0.0919281393289566, -0.2533153295516968, -0.062268782407045364, -0.040629446506500244, 0.15818782150745392, -0.2046286016702652, -0.01777779310941696, 0.04724930226802826, 0.19870054721832275, -0.29617083072662354, 0.0533343143761158, 0.1038888543844223, 0.18656498193740845, 0.07922600954771042, 0.3698841333389282, 0.38739174604415894, 0.11207970976829529, 0.29212355613708496, -0.6291123628616333, 0.11541492491960526, 0.0760284885764122, -0.006125586573034525, -0.017606407403945923, -0.3841998875141144, 0.0472668781876564, 0.19283396005630493, -0.001658111810684204, 0.11443361639976501, 0.07339289784431458, 0.2081536501646042, -0.09567837417125702, -0.004993312992155552, -0.3668540418148041, 0.001606181263923645, 0.17344367504119873, -0.1884860247373581, -0.18246136605739594, -0.20302589237689972, 0.08076875656843185, 0.5237087607383728, 0.22584179043769836, 0.5505995750427246, 0.1254284679889679, -0.14207962155342102, -0.28885772824287415, 0.05498611181974411, -0.29412686824798584, -0.16557727754116058, 0.3116266429424286, -0.025124583393335342, -0.17824266850948334, -0.048234857618808746, -0.08552771806716919, 0.13381607830524445, -0.02769291400909424, 0.19049648940563202, 0.09144411981105804, 0.2914774715900421, -0.11498131603002548, -0.5630306005477905, -0.07052677869796753, -0.02238374762237072, -0.21006318926811218, 0.09556345641613007, 0.05322917550802231, 0.008563747629523277, -0.2813548445701599, -0.0914490669965744, 0.10905756056308746, -0.27413415908813477, -0.04608871787786484, 0.34481674432754517, -0.061295878142118454, -0.10884244740009308, 0.22262899577617645, 0.2646668255329132, 0.2659236490726471, 0.05352286994457245, -0.032707929611206055, -0.056933335959911346, -0.448012113571167, -0.0012578628957271576, 0.2744464874267578, 0.3094530999660492, 0.0774373784661293, 0.44925349950790405, -0.17061860859394073, -0.0032698726281523705, -0.19704028964042664, -0.6828349828720093, 0.19318577647209167, -0.17993319034576416, 0.22229747474193573, 0.046534713357686996, 0.05980030074715614, -0.21620911359786987, -0.17843875288963318, 0.1267051100730896, -0.15505634248256683, -0.12783268094062805, -0.05143868178129196, 0.0643262267112732, 0.07919662445783615, -0.17118224501609802, -0.26518163084983826, -0.1608147919178009, -0.32268476486206055, 0.32410138845443726, 0.23656807839870453, 0.11344929039478302, -0.05678185820579529, 0.38455888628959656, 0.05180151015520096, -0.02313235215842724, 0.2783184051513672, -0.3127381205558777, -0.05892843008041382, 0.15155921876430511, -0.36460402607917786, -0.3476811945438385, -0.2444104254245758, -0.19888103008270264, 0.25256842374801636, 0.08084285259246826, -0.4292118549346924, -0.3522474467754364, 0.03118167072534561, 0.20614655315876007, 0.1419825553894043, 0.08425959944725037, 0.2448367029428482, 0.19040849804878235, -0.2793107032775879, -0.15480665862560272, -0.004161294549703598, 0.025512509047985077, -0.11572083085775375, 0.07603423297405243, 0.17832764983177185, 0.013950968161225319, 0.2965380549430847, 0.44652020931243896, -0.21760551631450653, 0.14767813682556152, 0.3842284083366394, 0.0036173202097415924, 0.1714644581079483, -0.2575019896030426, -0.10828850418329239, 0.5114599466323853, -0.015588045120239258, 0.053223349153995514, 0.3055925965309143, 0.13872328400611877, -0.493772953748703, -0.10477443039417267, 0.1593838483095169, -0.5112807750701904, -0.13315121829509735, 0.1892555058002472, 0.14039021730422974, 0.1600523293018341, -0.1513727903366089, -0.30179303884506226, -0.175591841340065, -0.18795594573020935, 0.18348591029644012, 0.255495548248291, -0.06632307916879654, -0.08578671514987946, -0.17686478793621063, 0.03698524087667465, -0.12111332267522812, 0.04710835963487625, 0.302589476108551, -0.11035996675491333, -0.16570469737052917, -0.12560373544692993, -0.06918081641197205, -0.14235244691371918, 0.2711545526981354, -0.3945426940917969, -0.1802496761083603, 0.10244525969028473, -0.06272757053375244, -0.07763592898845673, 0.27616965770721436, -0.3302932381629944, -0.26177847385406494, 0.06333509087562561, 0.31135380268096924, -0.37196624279022217, 0.07628639042377472, 0.4057542383670807, 0.1531732976436615, 0.004567913711071014, -0.03824713081121445, -0.08394909650087357, -0.23030903935432434, -0.4416760504245758, 0.0756097286939621, -0.04752425104379654, 0.12861569225788116, 0.29467785358428955, -0.07334324717521667, -0.031438663601875305, -0.04845522344112396, -0.09013310074806213, 0.25700971484184265, -0.08997445553541183, 0.28485941886901855, -0.16903060674667358, -0.12597186863422394, -0.11030407249927521, -0.1840963214635849, 0.17070335149765015, -0.08021946251392365, -0.05677470564842224, -0.201410710811615, -0.2966364920139313, 0.09549055993556976, 0.07313936203718185, 0.2481430321931839, 0.08078150451183319, -0.06387706100940704, -0.016712874174118042, -0.33517855405807495, 0.16095896065235138, 0.2288006991147995, 0.21698881685733795, 0.005677528213709593, -0.2819865643978119, 0.3445275127887726, -0.0730208158493042, 0.03978410363197327, 0.36888545751571655, -0.13239923119544983, -0.4168667197227478, 0.3294697403907776, 0.36678004264831543, 0.9066298604011536, -0.14122888445854187, 0.2516900300979614, 0.0521107017993927, 0.044372595846652985, 0.37963032722473145, -0.28289246559143066, 0.06048302724957466, 0.0479288287460804, 0.05638551712036133, -0.05485493689775467, 0.19236822426319122, -0.011786073446273804, 0.03259318321943283, -0.27516570687294006, -0.17450127005577087, 0.35041242837905884, 0.10968862473964691, 0.058124177157878876, 0.346321702003479, -0.0501321405172348, -0.4585261344909668, -0.28101620078086853, 0.23336729407310486, 0.07365462183952332, -0.1327337920665741, -0.01868433505296707, -0.098853699862957, 0.039856281131505966, -0.07208247482776642, -0.33935052156448364, -0.07062475383281708, -0.3228846490383148, 0.21838968992233276, -0.3081163763999939, -0.3472003936767578, 0.1668401062488556, 0.2316644936800003, 0.21304328739643097, 0.12620475888252258, -0.26043230295181274, 0.20590727031230927, -0.08193855732679367, -0.14365233480930328, 0.000034504570066928864, -0.09366391599178314, 0.3640662133693695, -0.15772786736488342, -0.19656488299369812, 0.03128918632864952, 0.2719179391860962, -0.19143874943256378, -0.4962571859359741, -0.176363006234169, 0.32317596673965454, 0.2469758540391922, 0.0594012625515461, 0.2734149098396301, -0.42008212208747864, -0.27990034222602844, 0.2923045754432678, -0.12402765452861786, 0.13973425328731537, 0.09062658995389938, 0.24570384621620178, -0.08709099888801575, -0.048111166805028915, 0.24096989631652832, 0.28114914894104004, 0.08177346736192703, 0.20429101586341858, 0.31325486302375793, -0.12314565479755402, -0.41188210248947144, -0.2268984019756317, 0.011282729916274548, -0.30437979102134705, -0.09970290213823318, 0.07503017038106918, -0.3576359152793884, -0.18534550070762634, 0.2977914810180664, 0.09450677037239075, -0.010885648429393768, -0.02808127924799919, -0.10470706224441528, -0.050486281514167786, 0.4871654510498047, -0.12338970601558685, 0.1704576313495636, 0.04983273893594742, 0.13686352968215942, 0.16614463925361633, 0.2778995633125305, -0.4913753867149353, 0.09990747272968292, -0.1608658730983734, 0.16170647740364075, 0.11409832537174225, -0.21180638670921326, 0.03912116959691048, 0.13119420409202576, 0.28524941205978394, -0.0028897635638713837, -0.17130380868911743, -0.37459808588027954, -0.16068413853645325, 0.04897017776966095, 0.040619321167469025, -0.02180428057909012, 0.20073680579662323, -0.10216923803091049, -0.0751921683549881, -0.2093646228313446, 0.17014050483703613, -0.03321072831749916, -0.23526965081691742, 0.18653033673763275, -0.16080690920352936, 0.11870458722114563, 0.11410021781921387, -0.1843494325876236, -0.020273171365261078, 0.2034224569797516, 0.17483629286289215, -0.16931754350662231, 0.2350272685289383, -0.09057510644197464, 0.07169602066278458, 0.23527276515960693, -0.16093866527080536, 0.15086281299591064, 0.22368314862251282, 0.11561708152294159, 0.04674017056822777, 0.08891168236732483, 0.24422761797904968, -0.20317724347114563, -0.3575412929058075, 0.009893348440527916, 0.21284279227256775, 0.3950456380844116, -0.3788527846336365, -0.10326719284057617, 0.16370601952075958, -0.3952120542526245, 0.4144684672355652, 0.25804004073143005, 0.1857471466064453, -0.010285288095474243, -0.10415004193782806, 0.07064108550548553, -0.1911446750164032, -0.36049461364746094, -0.0429544597864151, 0.04365060478448868, 0.03835899755358696, 0.08624209463596344, -0.12595701217651367, 0.1100238561630249, 0.20905651152133942, 0.2760356664657593, -0.05480944365262985, 0.3306509852409363, -0.01644604280591011, 0.09519044309854507, 0.33872464299201965, 0.2413450926542282, 0.4937801957130432, 0.09870947897434235, 0.02643398940563202, 0.35702165961265564, -0.04185870289802551, 0.2647007405757904, 0.10941662639379501, -0.03478497639298439, -0.15749959647655487, 0.18723264336585999, 0.018663112074136734, -0.11931617558002472, -0.2749848961830139, -0.15809187293052673, -0.13445712625980377, 0.035770658403635025, -0.012138020247220993, -0.06089694797992706, 0.1425047218799591, 0.06594710797071457, -0.11282312870025635, -0.2013249546289444, 0.06159782409667969, -0.0594315305352211, 0.45025283098220825, -0.23464569449424744, 0.25870147347450256, 0.19518980383872986, -0.004693634808063507, 0.020392047241330147, 0.4529596269130707, 0.11210423707962036, 0.019977552816271782, -0.11757197976112366, 0.08753135055303574, -0.11430871486663818, -0.06177174299955368, -0.19209924340248108, 0.07246054708957672, 0.3947683274745941, -0.0750952661037445, 0.24755851924419403, 0.236138254404068, -0.3471648395061493, -0.15230661630630493, 0.43453678488731384, -0.19781017303466797, -0.04680353403091431, -0.5462713241577148, 0.0078045278787612915, 0.04083511233329773, -0.2892579436302185, 0.06904980540275574, -0.6371960043907166, -0.043085746467113495, -0.0008576586842536926, -0.06715676188468933, 0.047366976737976074, -0.09514543414115906, 0.14055076241493225, 0.12367331981658936, 0.44215017557144165, 0.3087596595287323, 0.13027606904506683, 0.09615232795476913, -0.3838951587677002, -0.44643884897232056, 0.16547201573848724, -0.10002288222312927, -0.0665665790438652, -0.14524856209754944, 0.32115408778190613, 0.28465476632118225, 0.277197003364563, -0.008525237441062927, -0.1527164876461029, -0.014644348993897438, 0.11270709335803986, -0.397560179233551, 0.17676931619644165, 0.09611843526363373, 0.19937308132648468, -0.029978910461068153, -0.1019919142127037, 0.10344365984201431, -0.056199878454208374, 0.2615945637226105, -0.20364007353782654, 0.1029626727104187, -0.12649989128112793, -0.06585241854190826, 0.169773131608963, -0.10927766561508179, 0.09203878790140152, -0.45551472902297974, -0.3111361265182495, -0.13918665051460266, -0.12333963811397552, -0.14755098521709442, 0.2659364640712738, 0.2873291075229645, 0.41759103536605835, -0.026123858988285065, -0.10639519989490509, 0.21460986137390137, 0.4109916090965271, -0.006987996399402618, 0.08132826536893845, 0.03002091683447361, -0.07310058176517487, 0.3030548095703125, -0.15915200114250183, -0.09850559383630753, 0.48111701011657715, -0.14489828050136566, -0.21751853823661804, -0.037231117486953735, -0.5459349155426025, 0.08171116560697556, -0.3308121860027313, -0.2261420041322708, -0.07653248310089111, -0.08249609172344208, 0.04652729257941246, 0.23571845889091492, -0.42320215702056885, 0.19491803646087646, 0.2078906148672104, 0.32153263688087463, -0.06278397142887115, 0.3240293264389038, 0.1668279618024826, -0.17045019567012787, -0.15098796784877777, -0.09969240427017212, 0.04327376186847687, -0.074407659471035, -0.19396694004535675, -0.3827582001686096 ]
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.3016425371170044, -0.19038788974285126, -0.024149421602487564, 0.09902919083833694, 0.3130389451980591, -0.1301402449607849, 0.3114990293979645, 0.26464855670928955, -0.10267776250839233, 0.2515559792518616, -0.03294175863265991, 0.35797441005706787, -0.049966856837272644, 0.08787204325199127, -0.1619880348443985, 0.12684950232505798, -0.050525419414043427, 0.06851916015148163, 0.040893301367759705, 0.11360020935535431, -0.5712684988975525, -0.1570848822593689, -0.21687562763690948, 0.057249315083026886, 0.012679610401391983, 0.06866815686225891, 0.0916290134191513, 0.24228164553642273, -0.07749299705028534, -0.46988946199417114, 0.19603678584098816, -0.026332881301641464, -0.04225738346576691, 0.4722329378128052, -0.00010453036520630121, -0.06288353353738785, 0.4584932327270508, 0.2026187777519226, -0.4859759509563446, -0.20958657562732697, -0.1490361988544464, 0.20633448660373688, 0.25314998626708984, -0.2543870210647583, -0.12244918197393417, -0.22151605784893036, 0.08006042242050171, -0.5224382877349854, 0.032809995114803314, 0.22985853254795074, 0.26460039615631104, 0.5858451128005981, 0.1764906793832779, -0.1220322996377945, 0.39200204610824585, -0.186561718583107, -0.09880274534225464, 0.1512858271598816, 0.27914175391197205, 0.03426637500524521, -0.1552177369594574, 0.27381598949432373, -0.2516686022281647, 0.25819411873817444, 0.08306270837783813, 0.04031511768698692, 0.10718059539794922, 0.12367406487464905, 0.005461882799863815, 0.14772632718086243, -0.02446868270635605, -0.24473541975021362, -0.18716292083263397, 0.01328153908252716, -0.15603190660476685, -0.4709233343601227, 0.06602934747934341, 0.2990935146808624, -0.1927742063999176, 0.07073907554149628, -0.15339818596839905, 0.28531238436698914, -0.21783564984798431, 0.20865978300571442, -0.04146398976445198, 0.4749426543712616, 0.010646533221006393, 0.05823008716106415, 0.028252068907022476, 0.05357278138399124, 0.37183913588523865, -0.02909015119075775, 0.025887299329042435, -0.2166377604007721, -0.03533066436648369, 0.0447734072804451, 0.3098425269126892, 0.12990933656692505, 0.1545519232749939, 0.1684168428182602, -0.005012827925384045, -0.06470723450183868, 0.1099809855222702, 0.12570543587207794, -0.015670690685510635, -0.09322403371334076, -0.05864294618368149, 0.17888067662715912, 0.11952640116214752, 0.1648675799369812, -0.13602833449840546, 0.00846339575946331, -0.06681349873542786, -0.3070946931838989, 0.09002415835857391, 0.12943688035011292, 0.5126134157180786, -0.06377812474966049, -0.3585408926010132, -0.16378311812877655, -0.31686604022979736, 0.1315578818321228, -0.08879813551902771, 0.16468508541584015, -0.3344552516937256, 0.052515558898448944, 0.2567439079284668, 0.16658592224121094, -0.3985975384712219, 0.17348404228687286, -0.17293903231620789, -0.0025555379688739777, -0.2071772813796997, -0.1981867551803589, 0.024494457989931107, -0.006106022745370865, 0.03699500858783722, 0.025848910212516785, -0.01691681146621704, -0.05536673590540886, 0.1729722023010254, -0.03044997528195381, 0.09782786667346954, 0.08348798006772995, 0.10380853712558746, 0.023085420951247215, 0.06469593942165375, 0.23655612766742706, 0.0004668235778808594, 0.4194880723953247, -0.13348883390426636, -0.24403275549411774, 0.11649154126644135, 0.3560176193714142, 0.0041359793394804, -0.1565832942724228, 0.18205131590366364, -0.3767898380756378, -0.12203606218099594, -0.08006809651851654, 0.0026524588465690613, -0.2985849976539612, -0.14785952866077423, -0.2639125883579254, 0.22542211413383484, 0.2425369769334793, 0.2605782747268677, 0.05053400993347168, -0.028276892378926277, 0.162733793258667, 0.3797314167022705, 0.1669943481683731, -0.19390884041786194, -0.08965308219194412, -0.13795708119869232, 0.15960855782032013, -0.04862838238477707, -0.4239593744277954, -0.3278157114982605, -0.16077418625354767, -0.1731497049331665, -0.07503718137741089, 0.04963131621479988, 0.03233777731657028, 0.3179515600204468, 0.047934118658304214, -0.03185831755399704, 0.4129534959793091, -0.07409178465604782, 0.07485228031873703, -0.46664127707481384, -0.37981775403022766, 0.5641195178031921, 0.15170542895793915, 0.05702996999025345, -0.34974101185798645, 0.20544886589050293, 0.06083908677101135, 0.5148956775665283, -0.18972069025039673, -0.15184080600738525, -0.2993403673171997, 0.7524661421775818, -0.047450095415115356, 0.011038713157176971, -0.09606990963220596, 0.06652771681547165, 0.020441710948944092, 0.23162856698036194, -0.2802456021308899, -0.1499127447605133, -0.08915436267852783, -0.15245255827903748, 0.1319253146648407, -0.34668388962745667, -0.38215741515159607, 0.24747207760810852, 0.27825790643692017, -0.14560925960540771, -0.13090384006500244, -0.011895298957824707, -0.0933065339922905, -0.3045148551464081, 0.10049394518136978, 0.03861372545361519, 0.10532926023006439, -0.03966193646192551, -0.09412535279989243, -0.11935559660196304, 0.2987472414970398, 0.16293929517269135, -0.06005439534783363, -0.11797138303518295, 0.3312666416168213, 0.24494808912277222, 0.19554683566093445, -0.046819157898426056, 0.007249072194099426, 0.08201786875724792, -0.315689355134964, -0.20248204469680786, 0.32210108637809753, 0.09754092246294022, -0.0025813616812229156, 0.02275148406624794, 0.18939894437789917, -0.23540224134922028, 0.10029235482215881, 0.2986404299736023, 0.0012303534895181656, -0.03909006342291832, -0.17083989083766937, 0.015926677733659744, 0.33521926403045654, 0.25353893637657166, 0.40919509530067444, 0.4384312033653259, 0.047103676944971085, -0.1185912936925888, -0.02913125604391098, 0.17207299172878265, 0.01633487269282341, 0.23276376724243164, 0.17008449137210846, -0.4000135064125061, -0.07772497832775116, -0.08439862728118896, 0.3033125400543213, 0.3952057957649231, 0.27557823061943054, 0.09697189182043076, 0.088724285364151, -0.13241173326969147, -0.28704315423965454, 0.2992976903915405, 0.11520559340715408, 0.020872842520475388, 0.24158358573913574, 0.22974316775798798, 0.10214279592037201, -0.25547972321510315, -0.0732262060046196, -0.13899235427379608, 0.05661705136299133, -0.14600926637649536, -0.04782983288168907, -0.16401275992393494, 0.20112663507461548, -0.11406861245632172, -0.5005600452423096, 0.18164166808128357, -0.2008601278066635, 0.014348894357681274, 0.3810868561267853, -0.20227491855621338, 0.12009719759225845, -0.27705705165863037, 0.09421141445636749, 0.0885692834854126, -0.0884961411356926, 0.1415919065475464, -0.22951708734035492, -0.17601609230041504, 0.17949534952640533, 0.048955630511045456, -0.17695169150829315, 0.39237716794013977, -0.09352342039346695, -0.026575494557619095, -0.17809830605983734, -0.12936706840991974, 0.022803427651524544, 0.2426384836435318, 0.07531072199344635, 0.11149974167346954, 0.05481604486703873, 0.10843048989772797, -0.28109848499298096, 0.3347679376602173, -0.22575731575489044, -0.05279143154621124, 0.12225957214832306, 0.09743526577949524, -0.08596251159906387, -0.15138885378837585, -0.6303593516349792, -0.1750367432832718, -0.3355155289173126, 0.004438754171133041, -0.10781237483024597, 0.12897473573684692, 0.4354718327522278, 0.03879757598042488, 0.16186746954917908, -0.1536659449338913, 0.12164369225502014, -0.08725937455892563, -0.02111170068383217, 0.2169373482465744, -0.13490332663059235, -0.4010962247848511, -0.19834686815738678, -0.1213337853550911, -0.10454466938972473, 0.43392670154571533, -0.2609216570854187, -0.25921979546546936, -0.23132814466953278, 0.0872519314289093, -0.12945319712162018, -0.023215437307953835, 0.39863863587379456, 0.24843116104602814, -0.25696101784706116, -0.2864578068256378, 0.06433704495429993, -0.04337211698293686, -0.068628691136837, 0.038186900317668915, -0.08754412084817886, 0.1517161726951599, 0.1127801239490509, 0.2772789001464844, -0.039199911057949066, -0.038717467337846756, 0.11293865740299225, -0.24959692358970642, 0.19787774980068207, -0.043323107063770294, -0.25691691040992737, 0.16210535168647766, -0.2219967246055603, -0.3214872479438782, 0.04846654459834099, 0.21953070163726807, 0.11488178372383118, 0.014172688126564026, 0.02080303430557251, -0.3543076515197754, -0.26211583614349365, -0.246359184384346, 0.3780522644519806, 0.0837341919541359, -0.06722009927034378, 0.16260460019111633, -0.13161471486091614, -0.1256522834300995, 0.1881817877292633, 0.37599343061447144, 0.10934393852949142, -0.01193389855325222, 0.2482949048280716, 0.012344051152467728, -0.0862116888165474, 0.09987809509038925, 0.009018094278872013, 0.1281888484954834, 0.056687187403440475, -0.19122079014778137, 0.07852249592542648, -0.02000797539949417, 0.16432799398899078, 0.34587645530700684, 0.3874813914299011, 0.30105891823768616, -0.1472468078136444, -0.255145400762558, 0.018963295966386795, -0.5182096362113953, -0.3017999827861786, 0.07005710899829865, 0.16231511533260345, -0.27507027983665466, 0.0511014498770237, 0.374527245759964, 0.1937803477048874, 0.06277583539485931, 0.0518818125128746, 0.00863606482744217, -0.41123875975608826, -0.0766531452536583, 0.07336361706256866, -0.013393799774348736, 0.45119795203208923, -0.03689676523208618, -0.21865643560886383, -0.35608866810798645, -0.3336452841758728, -0.009867869317531586, -0.06953588128089905, 0.4101048409938812, -0.16149044036865234, 0.1817576140165329, 0.006476748734712601, 0.3672035336494446, 0.3950002193450928, 0.21570178866386414, 0.14068597555160522, 0.15151536464691162, -0.007653333246707916, -0.18303410708904266, 0.03054555505514145, 0.10357780754566193, -0.3520219922065735, 0.22597962617874146, -0.31844785809516907, 0.27770107984542847, -0.2909499406814575, 0.19563765823841095, 0.35022711753845215, 0.18430565297603607, 0.27323415875434875, 0.007618900388479233, 0.10566709190607071, -0.1933569461107254, -0.09416498243808746, 0.5531522035598755, -0.1504654437303543, -0.23310615122318268, -0.12270259857177734, 0.14270322024822235, 0.7989791631698608, 0.22827136516571045, 0.1575276255607605, 0.8578516244888306, -0.379422664642334, -0.19980868697166443, 0.33604127168655396, 0.1782056987285614, -0.3571633994579315, 0.0383414551615715, 0.08121664822101593, -0.22877530753612518, 0.027301233261823654, -0.26911115646362305, -0.018553193658590317, -0.18561656773090363, -0.02071169763803482, 0.04463198408484459, 0.10847527533769608, 0.052358478307724, 0.04025336354970932, 0.042453452944755554, -0.29283806681632996, 0.19293975830078125, -0.017914876341819763, 0.12701106071472168, -0.05087844282388687, -0.08395076543092728, 0.24806296825408936, -0.1010972261428833, -0.20435909926891327, 0.341959685087204, -0.5799903273582458, 0.17218194901943207, -0.2692234516143799, -0.45623499155044556, -0.10751877725124359, -0.03678911551833153, -0.228549525141716, 0.16780561208724976, -0.03403152525424957, 0.10888692736625671, -0.02501925826072693, 0.16751067340373993, 0.23507143557071686, 0.030764523893594742, 0.20655393600463867, -0.22431063652038574, 0.009794920682907104, -0.13053128123283386, 0.051677703857421875, -0.4160592555999756, -0.06003236770629883, 0.04676813259720802, 0.49493104219436646, -0.25949379801750183, -0.2402207851409912, -0.2332247793674469, -0.18146365880966187, -0.3135361969470978, 0.2200745940208435, -0.01314862072467804, 0.13509923219680786, 0.1709568053483963, 0.08707115054130554, -0.3995955288410187, -0.10949182510375977, -0.012305490672588348, 0.011949030682444572, 0.13838151097297668, 0.40056461095809937, 0.12434914708137512, -0.32585108280181885, -0.22264939546585083, 0.12601929903030396, 0.1640535145998001, -0.027110088616609573, 0.08686947077512741, -0.04121565818786621, 0.19517908990383148, -0.11181322485208511, 0.005858641117811203, 0.20942255854606628, 0.09912147372961044, -0.19794468581676483, -0.40554943680763245, -0.16605624556541443, 0.1417737901210785, 0.20288142561912537, 0.11818285286426544, -0.026482250541448593, 0.2930472195148468, -0.021311717107892036, -0.25048425793647766, -0.3906230926513672, 0.11079128086566925, 0.23361247777938843, 0.11921844631433487, -0.14548732340335846, -0.2076452374458313, 0.3068409562110901, -0.010407999157905579, 0.2542707324028015, -0.05168752372264862, -0.13477256894111633, -0.3061598837375641, -0.37537339329719543, 0.08592110872268677, 0.07820940017700195, -0.352987140417099, 0.16144108772277832, -0.1700139343738556, 0.0037515703588724136, -0.18765640258789062, 0.1137394905090332, 0.34022706747055054, -0.20842380821704865, -0.07279882580041885, 0.37925654649734497, 0.1400480419397354, -0.23623129725456238, 0.007380055263638496, -0.23874208331108093, 0.2812371253967285, -0.13526348769664764, -0.03312724828720093, 0.12455784529447556, -0.05653084069490433, -0.14418014883995056, -0.23889681696891785, 0.21345119178295135, 0.16059398651123047, 0.2762322425842285, -0.12278322875499725, -0.11529159545898438, -0.15177319943904877, 0.5579533576965332, 0.19814643263816833, -0.1018952950835228, -0.02546858601272106, 0.06578274071216583, 0.3775639533996582, -0.21604473888874054, -0.024656733497977257, -0.14566689729690552, -0.17453911900520325, 0.16097868978977203, -0.06971047073602676, -0.44670194387435913, 0.07242009043693542, -0.1336328089237213, 0.08439431339502335, -0.0011723823845386505, -0.16617035865783691, -0.012229222804307938, 0.17768289148807526, -0.14401917159557343, -0.049987148493528366, 0.09358685463666916, -0.0745280534029007, 0.18131127953529358, 0.23310619592666626, -0.013384446501731873, 0.6520748138427734, 0.5496267676353455, -0.24432900547981262, 0.05717165023088455, -0.05493176728487015, 0.006985820829868317, -0.12364047765731812, -0.03625763952732086, 0.0326865129172802, 0.04094145819544792, 0.22881588339805603, -0.2829382121562958, 0.10475127398967743, -0.05114840716123581, -0.04353928193449974, -0.09900925308465958, -0.2635807693004608, 0.0496000200510025, -0.004704482853412628, -0.07286550104618073, -0.029368113726377487, -0.10203529894351959, 0.022454187273979187, 0.030337266623973846, 0.04763411357998848, -0.10487428307533264, -0.3494413495063782, 0.021304216235876083, 0.20791438221931458, 0.15735140442848206, -0.3372327387332916, 0.08764997124671936, 0.21877366304397583, 0.143193781375885, -0.17037244141101837, 0.4733753502368927, 0.3304481506347656, 0.47191697359085083, -0.22933423519134521, -0.13048148155212402, -0.16754694283008575, -0.0063683949410915375, -0.039440739899873734, -0.06476418673992157, 0.013416014611721039, 0.12693801522254944, 0.22980429232120514, 0.36907461285591125, -0.3680001199245453, 0.2118324488401413, -0.024277877062559128, -0.2714371383190155, -0.1849631667137146, 0.2795253098011017, 0.1443210244178772, -0.2951880097389221, 0.01260005310177803, -0.027996383607387543, -0.2422032356262207, -0.0668562576174736, 0.29008641839027405, 0.2645173668861389, 0.08760930597782135, -0.03970811516046524, 0.14040911197662354, 0.14405621588230133, 0.12328076362609863, 0.10196185857057571, -0.0070678964257240295, -0.42342010140419006, 0.03285764157772064, -0.4711898863315582, 0.49045896530151367, -0.14418011903762817, -0.44658443331718445, 0.07254261523485184, -0.05491730570793152, -0.2503599524497986, 0.2345559149980545, 0.33345872163772583, 0.3571130931377411, 0.15245281159877777, -0.0025294125080108643, -0.255432665348053, 0.13229843974113464, 0.20288413763046265, -0.10327310860157013, -0.12601786851882935, -0.34619027376174927, 0.2244313359260559, -0.23956705629825592, 0.25825589895248413, 0.09346850216388702, 0.04102690517902374, 0.29029032588005066, 0.013817839324474335, 0.01783006265759468, -0.017089297994971275, 0.39506566524505615, -0.320538729429245, 0.04093128442764282, -0.1458008736371994, -0.2275681495666504, 0.02521533891558647, 0.05320734903216362, 0.01726357452571392, 0.08587972819805145, 0.17346927523612976, -0.5986049771308899, -0.4342435896396637, 0.47385624051094055, -0.3005673885345459, -0.14237597584724426, 0.10854489356279373, 0.3310376703739166, 0.0011346116662025452, 0.15557996928691864, -0.03743178769946098, 0.1749420464038849, -0.1264829933643341, 0.058932289481163025, -0.24580475687980652, -0.7254005074501038, 0.2943548560142517, -0.7327600121498108, -0.2969195246696472, -0.2304130494594574, 0.46038195490837097, 0.021248795092105865, 0.23804455995559692, -0.2867963910102844, 0.10301201790571213, 0.2128988653421402, 0.047845155000686646, -0.1016835868358612, 0.1259421855211258, 0.017027508467435837, -0.023834623396396637, 0.11397883296012878, 0.6136487722396851, 0.10387229174375534, -0.09762773662805557, -0.03124261647462845, -0.2827851176261902 ]
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.08303579688072205, -0.25024381279945374, -0.038625724613666534, 0.30153974890708923, 0.2076890617609024, 0.07883664220571518, 0.500155508518219, 0.14941607415676117, 0.12552982568740845, 0.1421065628528595, 0.3285621404647827, 0.05084048584103584, -0.2967575192451477, 0.34206119179725647, -0.262335866689682, -0.2604983448982239, 0.034535691142082214, 0.22248691320419312, 0.015491243451833725, -0.02244715765118599, -0.31306660175323486, 0.1709364801645279, -0.36487728357315063, -0.22216178476810455, -0.15507803857326508, -0.2108081430196762, -0.2160239815711975, -0.2960245907306671, 0.05425166338682175, -0.598713755607605, 0.2819482982158661, -0.069516122341156, 0.09210948646068573, 0.23832246661186218, -0.0001144155248766765, 0.10549221932888031, 0.6381925940513611, -0.14531588554382324, -0.26280397176742554, -0.3394750952720642, -0.5618311762809753, -0.42278000712394714, 0.12416496872901917, -0.35784807801246643, -0.09651291370391846, -0.0749712884426117, 0.094717837870121, -0.3724972903728485, 0.20421308279037476, 0.28396666049957275, 0.2130594253540039, 0.38300082087516785, -0.08455124497413635, -0.07440251111984253, 0.2068212926387787, 0.4162611961364746, -0.26075467467308044, -0.17985308170318604, 0.035758569836616516, 0.2699494957923889, 0.09462866187095642, 0.34923985600471497, -0.11140530556440353, -0.13050729036331177, 0.20943358540534973, 0.08493521064519882, 0.08856233209371567, -0.45219436287879944, -0.2671244740486145, 0.20149561762809753, 0.2924084961414337, 0.0013619102537631989, -0.40846335887908936, -0.21808770298957825, 0.018871545791625977, -0.6638947129249573, 0.2666679322719574, 0.05510156601667404, -0.038627997040748596, -0.026963796466588974, -0.16839289665222168, 0.1450013369321823, -0.21389605104923248, 0.166017085313797, -0.1209740936756134, 0.08079244941473007, -0.13945379853248596, 0.03414127230644226, -0.240279421210289, -0.2700188159942627, 0.05874878168106079, -0.37062501907348633, -0.025752175599336624, 0.21114619076251984, -0.25151327252388, -0.1936303675174713, 0.16734933853149414, 0.010185368359088898, 0.1697201430797577, 0.13799339532852173, -0.06587144732475281, -0.10379760712385178, -0.06935802102088928, -0.016959354281425476, 0.2529103457927704, 0.21360230445861816, 0.41129693388938904, -0.06806930899620056, -0.058174245059490204, 0.19612479209899902, 0.09966142475605011, -0.017597883939743042, 0.1192837506532669, 0.05173976719379425, 0.016925811767578125, 0.4072844684123993, 0.6467190384864807, -0.05256287381052971, -0.39348170161247253, 0.2361948937177658, -0.38535937666893005, -0.03049868904054165, -0.021195482462644577, 0.00619111955165863, 0.08412009477615356, 0.2916475534439087, -0.1465800404548645, 0.21616819500923157, -0.27360352873802185, -0.2508825957775116, -0.2348467856645584, 0.072195865213871, 0.10184094309806824, 0.08859891444444656, -0.05474041774868965, -0.03329986706376076, 0.06581796705722809, 0.1560106724500656, 0.07967934012413025, 0.1009848415851593, -0.0555228665471077, -0.36580875515937805, 0.09250559657812119, 0.15237237513065338, -0.007046051323413849, 0.29215896129608154, 0.37623605132102966, -0.2581285834312439, -0.10916207730770111, 0.11824339628219604, -0.2788120210170746, -0.21751421689987183, -0.005828427150845528, 0.17252948880195618, -0.37956780195236206, 0.04412701353430748, -0.07340433448553085, 0.22634603083133698, 0.21085768938064575, -0.07758928835391998, -0.0965440645813942, -0.08692807704210281, -0.2196173369884491, -0.1535143256187439, -0.09196504205465317, 0.6465165615081787, -0.1091330349445343, -0.012588277459144592, 0.11914999037981033, -0.08989664912223816, 0.3521234691143036, 0.23272117972373962, 0.048147790133953094, -0.05724804848432541, -0.340410977602005, 0.19002996385097504, 0.08313553035259247, -0.11154906451702118, -0.2086065709590912, 0.5657572150230408, 0.023990795016288757, 0.35986918210983276, 0.11346449702978134, 0.09594609588384628, 0.15857020020484924, -0.3072294294834137, 0.01308777928352356, 0.19759884476661682, -0.1874643713235855, -0.22067931294441223, -0.24189874529838562, -0.12316350638866425, 0.5206928253173828, -0.07434640824794769, -0.06409120559692383, 0.20678332448005676, -0.30106136202812195, -0.02311057411134243, -0.14064618945121765, -0.318688303232193, 0.12881353497505188, 0.5053261518478394, 0.21923911571502686, 0.03759640455245972, -0.09674929827451706, -0.4028454124927521, -0.3626861274242401, 0.13121125102043152, -0.17960551381111145, 0.28400009870529175, -0.4932684302330017, -0.17993876338005066, 0.073519766330719, 0.019040757790207863, -0.394746869802475, 0.0015030913054943085, 0.15478110313415527, 0.12149213254451752, -0.1535107046365738, 0.19992303848266602, -0.0773417204618454, 0.27720004320144653, 0.15611113607883453, -0.12485495209693909, -0.5673229694366455, 0.36998775601387024, 0.06950001418590546, -0.2262258231639862, 0.007166855037212372, 0.3033716678619385, 0.331784188747406, -0.08999873697757721, 0.018318284302949905, 0.1505865752696991, 0.02597065642476082, -0.3309905529022217, -0.30678021907806396, -0.15713880956172943, 0.31905969977378845, -0.41859325766563416, -0.22143331170082092, 0.3747457265853882, 0.18254347145557404, -0.10734105110168457, -0.12098843604326248, 0.6575431823730469, 0.015737446025013924, 0.46479129791259766, 0.004207056015729904, 0.17601357400417328, 0.05372772365808487, -0.0018617846071720123, -0.32714277505874634, -0.2869090437889099, 0.1755581945180893, 0.20264098048210144, -0.165078803896904, -0.03991153836250305, -0.3015940487384796, 0.005867630243301392, 0.4108927547931671, 0.0884372889995575, 0.03546374291181564, 0.05708054453134537, -0.0770580843091011, -0.036838069558143616, 0.10924071073532104, -0.1595933586359024, 0.299883633852005, 0.05055828392505646, -0.07321982085704803, 0.07357872277498245, 0.007545077707618475, 0.07453876733779907, 0.17586863040924072, -0.035037241876125336, 0.2430834025144577, 0.02856798656284809, 0.10764824599027634, 0.11769815534353256, -0.17797249555587769, -0.5438491702079773, -0.03985854983329773, 0.14308860898017883, -0.24912117421627045, 0.24928219616413116, -0.4795847237110138, -0.2056160271167755, 0.13041603565216064, -0.21736600995063782, -0.38629525899887085, -0.4440220594406128, -0.16394205391407013, 0.027558350935578346, -0.14083974063396454, 0.22369885444641113, 0.014814939349889755, -0.2624574303627014, 0.29857543110847473, -0.024348685517907143, -0.0831376165151596, -0.1392291784286499, -0.02423320710659027, 0.04631975665688515, 0.16566435992717743, -0.048101987689733505, 0.2467774897813797, 0.03329592943191528, -0.34998446702957153, -0.21268723905086517, -0.2085355818271637, 0.056549832224845886, -0.35036295652389526, 0.07770778238773346, 0.307949423789978, 0.12772782146930695, -0.04940715804696083, -0.19988837838172913, 0.4227287769317627, 0.4243721663951874, -0.21209944784641266, 0.3217686116695404, -0.1020631194114685, -0.035473477095365524, -0.21106520295143127, -0.09590326994657516, -0.15722118318080902, -0.22789324820041656, 0.10760436952114105, 0.21096880733966827, 0.2101617157459259, 0.44710177183151245, 0.047019101679325104, 0.12087906897068024, 0.13558007776737213, -0.17562824487686157, 0.0008857715874910355, -0.015036579221487045, 0.4824742376804352, -0.18278786540031433, -0.27124860882759094, 0.14880003035068512, -0.29872530698776245, 0.0875619649887085, 0.2041163295507431, -0.35755282640457153, -0.1763039082288742, -0.1413789987564087, 0.16113129258155823, 0.07453623414039612, -0.10465775430202484, 0.37757453322410583, 0.2816058099269867, -0.10834550112485886, -0.036769136786460876, -0.050810687243938446, 0.25690019130706787, -0.07055152207612991, 0.028748363256454468, 0.22968745231628418, 0.5177571773529053, 0.03981035575270653, 0.09723453968763351, 0.437643438577652, 0.1970641016960144, 0.42616671323776245, -0.08233232796192169, 0.06893569976091385, -0.16901463270187378, 0.0005423128604888916, -0.17114537954330444, 0.10794007778167725, -0.017855143174529076, 0.083627849817276, -0.23275741934776306, -0.1191914901137352, -0.0793071985244751, -0.06307194381952286, 0.10385216027498245, -0.2357090264558792, 0.12937037646770477, -0.4676784873008728, 0.4429665803909302, -0.08640900254249573, 0.018289953470230103, -0.3036092519760132, -0.004700430203229189, -0.1684730499982834, -0.008302725851535797, 0.3227554261684418, -0.14786653220653534, -0.6496186852455139, -0.17223119735717773, -0.2026037871837616, 0.12155423313379288, 0.30113843083381653, 0.5467788577079773, -0.03376232460141182, -0.06241538003087044, -0.10756446421146393, -0.019171735271811485, 0.4020329713821411, -0.164388507604599, -0.18376271426677704, 0.2454214096069336, -0.26380136609077454, -0.23879374563694, -0.05677435174584389, -0.36927056312561035, 0.33445900678634644, -0.2252185195684433, 0.3618212640285492, -0.3405367434024811, -0.2225630134344101, 0.2660468816757202, 0.07425076514482498, -0.09136831015348434, -0.11321870237588882, -0.09107860177755356, -0.2235621213912964, -0.14560182392597198, 0.012950733304023743, 0.20876677334308624, 0.2621578574180603, -0.13408659398555756, -0.0023916326463222504, -0.5279819965362549, 0.03075059875845909, 0.3058224320411682, -0.2428046613931656, 0.3555576205253601, -0.08594296127557755, 0.1051599532365799, -0.13631302118301392, 0.19407261908054352, 0.20765846967697144, 0.3552796542644501, 0.3771531283855438, -0.6484144926071167, 0.011156979948282242, -0.22744686901569366, 0.16269823908805847, 0.2772215008735657, -0.09346696734428406, 0.09365209937095642, 0.08336485922336578, 0.1915261447429657, -0.21020570397377014, -0.3317118287086487, 0.4189606308937073, -0.08054238557815552, -0.6726537346839905, -0.28722062706947327, 0.264912486076355, 0.096771240234375, 0.2421816736459732, -0.13366225361824036, 0.22322848439216614, -0.21130351722240448, 0.3653748631477356, -0.0063007548451423645, 0.68507981300354, 0.4925394058227539, 0.041899628937244415, 0.5505330562591553, 0.4471416473388672, 0.6043534874916077, 0.40479469299316406, 0.25822168588638306, -0.16250728070735931, -0.6721649765968323, -0.14850549399852753, -0.05859126150608063, 0.4232245981693268, 0.1191025972366333, -0.4531515836715698, 0.4891037344932556, -0.12819941341876984, -0.06382505595684052, -0.09815876930952072, -0.2965752184391022, -0.13172368705272675, -0.04396934434771538, -0.25159546732902527, 0.12456987798213959, 0.06937792897224426, 0.1620192527770996, 0.05738651007413864, -0.3246813416481018, 0.05229657515883446, -0.1667523980140686, -0.19479642808437347, 0.1696542501449585, -0.14336664974689484, 0.09411722421646118, 0.036424245685338974, -0.34638822078704834, 0.2818097472190857, 0.22324106097221375, 0.1879025101661682, -0.13120989501476288, -0.15609274804592133, -0.19690869748592377, 0.040029749274253845, 0.10341403633356094, -0.08015941828489304, -0.07771521061658859, 0.3071269392967224, -0.0268948283046484, -0.14853191375732422, 0.14754921197891235, -0.21429577469825745, 0.10542155802249908, 0.3429107069969177, 0.059051014482975006, -0.1748191863298416, -0.16116589307785034, -0.4532510042190552, 0.030240029096603394, 0.1710837185382843, -0.05008520185947418, 0.11646503210067749, 0.006903365254402161, -0.2920272946357727, -0.049563929438591, -0.19789279997348785, -0.008677467703819275, -0.017159700393676758, 0.3072862923145294, 0.5229864120483398, 0.07681246846914291, 0.6932666301727295, 0.191862553358078, -0.24269312620162964, -0.166066974401474, 0.16272690892219543, 0.18308912217617035, -0.5128661394119263, 0.3100549578666687, -0.1137070432305336, 0.14592047035694122, -0.2419806271791458, 0.4570827782154083, -0.2819417715072632, 0.209084153175354, -0.039303794503211975, -0.11750315129756927, -0.15718424320220947, 0.23256957530975342, -0.13328029215335846, 0.10570970922708511, -0.22264322638511658, 0.11522889137268066, -0.07904741913080215, -0.21667559444904327, -0.29462456703186035, -0.09730403125286102, -0.4076438248157501, 0.36699843406677246, 0.11489082127809525, 0.08583322167396545, 0.21908336877822876, 0.16080060601234436, 0.16813363134860992, 0.08565929532051086, -0.1367592215538025, -0.1968509554862976, -0.0751664787530899, 0.12684912979602814, 0.10730184614658356, -0.18645109236240387, 0.14101000130176544, 0.026902753859758377, -0.06284840404987335, -0.13896821439266205, 0.0139906145632267, 0.1784926950931549, -0.08429762721061707, 0.43051856756210327, 0.3046933114528656, 0.3934035897254944, -0.118110790848732, 0.16062268614768982, -0.03202512860298157, 0.22899805009365082, -0.07312658429145813, 0.08981181681156158, -0.07150949537754059, 0.07873813807964325, -0.4437327980995178, 0.13564984500408173, -0.12916627526283264, 0.11957965046167374, 0.22633051872253418, -0.3602282404899597, 0.03551086410880089, 0.3236734867095947, -0.031114619225263596, 0.07553722709417343, -0.19832369685173035, -0.014955003745853901, 0.09086547046899796, 0.16748404502868652, -0.16102418303489685, 0.004406898748129606, 0.19280007481575012, 0.09837645292282104, 0.05536455288529396, 0.24973255395889282, 0.023815643042325974, 0.2197781205177307, 0.1523764729499817, 0.041066426783800125, 0.0576353445649147, -0.13040421903133392, 0.4767725467681885, 0.25024810433387756, 0.10600662231445312, -0.005962055176496506, -0.04516369104385376, -0.13611602783203125, 0.23747804760932922, 0.4095088839530945, -0.022514238953590393, 0.11335497349500656, 0.4354739189147949, -0.018356632441282272, -0.029948629438877106, -0.266769140958786, -0.1832297444343567, 0.08748158067464828, 0.3381921350955963, 0.202853262424469, 0.18701127171516418, -0.3521421551704407, -0.3258127272129059, -0.2701643705368042, -0.06958279758691788, 0.30993497371673584, -0.05833030492067337, -0.0029458492062985897, 0.035666950047016144, 0.011439546942710876, -0.37402158975601196, -0.24159884452819824, -0.09649227559566498, -0.10929231345653534, 0.2701227068901062, 0.2186555117368698, 0.17627817392349243, -0.3771922290325165, 0.27475929260253906, 0.28086957335472107, 0.2680346965789795, -0.1144813746213913, 0.28419142961502075, 0.39184606075286865, 0.09419337660074234, 0.19323725998401642, 0.5161972641944885, 0.36955082416534424, 0.2945847809314728, -0.020103607326745987, 0.11294934153556824, -0.03907789662480354, -0.34501224756240845, 0.08779959380626678, -0.059846021234989166, -0.2485659122467041, 0.28796258568763733, 0.15582621097564697, 0.1228242814540863, -0.12541356682777405, 0.316838800907135, 0.054472461342811584, -0.11032712459564209, -0.28570985794067383, 0.7373992204666138, -0.2703440487384796, 0.02768126130104065, -0.06510427594184875, -0.2521205246448517, -0.4581925570964813, -0.06524020433425903, 0.3814007043838501, 0.16980719566345215, 0.14951491355895996, 0.21773138642311096, 0.06977047771215439, -0.40824344754219055, 0.3309640884399414, 0.340365469455719, 0.07690588384866714, -0.26513200998306274, 0.061708733439445496, -0.2750622034072876, 0.11164449155330658, -0.1015278548002243, -0.06912221014499664, 0.2495632767677307, 0.12781333923339844, -0.1932559609413147, 0.11486044526100159, -0.22047792375087738, -0.13938185572624207, -0.10432367771863937, 0.2524551749229431, -0.37179678678512573, -0.19465160369873047, 0.28839725255966187, -0.08923804759979248, -0.12511536478996277, -0.26525527238845825, 0.03533203899860382, 0.003945333883166313, 0.07392324507236481, 0.05508262291550636, -0.044890716671943665, -0.32275310158729553, -0.02787226438522339, 0.057250477373600006, 0.6041783690452576, 0.10741248726844788, -0.059311643242836, -0.392254114151001, -0.2225094735622406, -0.27225449681282043, -0.11333192884922028, 0.587104856967926, 0.28251364827156067, 0.6090589761734009, -0.1371043473482132, 0.25318560004234314, -0.05520663782954216, 0.3776596188545227, -0.060990385711193085, 0.043841056525707245, -0.4244898557662964, 0.5184666514396667, -0.3719523549079895, 0.17626969516277313, 0.006877212785184383, 0.18111637234687805, 0.13905151188373566, 0.17747052013874054, -0.05049668252468109, -0.29201552271842957, 0.3989831805229187, -0.30848658084869385, -0.3456192910671234, 0.2019374519586563, -0.0813746452331543, 0.1927640438079834, -0.04738694429397583, -0.30785071849823, -0.13437995314598083, 0.40449681878089905, -0.1600382924079895, -0.27258360385894775, 0.004612717777490616, 0.14974717795848846, -0.06765443086624146, -0.12056219577789307, 0.1607690155506134, -0.07075200229883194, -0.25985363125801086, 0.36028435826301575, -0.3102986216545105 ]
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.2534322738647461, -0.14359146356582642, -0.11700855195522308, 0.12509854137897491, -0.08036214113235474, -0.20694327354431152, 0.3182261884212494, 0.2595028579235077, -0.26621145009994507, 0.24329254031181335, 0.4498225748538971, -0.07759906351566315, -0.009268012829124928, 0.37759658694267273, -0.39721745252609253, -0.08901636302471161, 0.07872093468904495, 0.10890214890241623, -0.052683427929878235, 0.04491834342479706, -0.2720680832862854, 0.06865818798542023, -0.39644795656204224, 0.16087976098060608, 0.0663992241024971, -0.0716041773557663, -0.12159328907728195, -0.25434717535972595, -0.6671603322029114, -0.5313288569450378, 0.31335556507110596, 0.20344996452331543, 0.07602695375680923, 0.2712758779525757, -0.00011104679288109764, -0.4238654375076294, 0.5205673575401306, 0.14866943657398224, -0.2614659368991852, -0.15130390226840973, -0.4164431393146515, -0.535380482673645, -0.1008593961596489, -0.013767533004283905, -0.3072524964809418, -0.10771398991346359, 0.011747825890779495, -0.19432012736797333, -0.06281603872776031, -0.015602185390889645, 0.24801161885261536, 0.16733954846858978, 0.40198004245758057, -0.3542858958244324, 0.18630562722682953, -0.11592504382133484, -0.3703640401363373, -0.24996471405029297, 0.5717850923538208, 0.2568047046661377, 0.22688841819763184, 0.3849825859069824, 0.19126275181770325, -0.19222554564476013, 0.15076270699501038, -0.009772616438567638, 0.2396775782108307, -0.2660328447818756, 0.04153969883918762, 0.07777855545282364, 0.9955614805221558, 0.02036338858306408, -0.3793458044528961, 0.20347490906715393, -0.09273292124271393, -0.2712346315383911, 0.24124735593795776, 0.02728310599923134, -0.029244378209114075, 0.14924238622188568, 0.08733592927455902, -0.4584190845489502, -0.15168282389640808, 0.16021490097045898, -0.027203906327486038, 0.45910510420799255, -0.08871687948703766, 0.10676531493663788, -0.021526265889406204, -0.30153709650039673, 0.2346973568201065, 0.020097173750400543, 0.08503060042858124, 0.15644508600234985, 0.05145218223333359, -0.44021326303482056, 0.10607801377773285, -0.017247147858142853, 0.14981287717819214, 0.19241473078727722, -0.26061901450157166, -0.24916622042655945, -0.04644385352730751, 0.013337746262550354, 0.6594323515892029, 0.0745631605386734, 0.340565949678421, 0.1880098283290863, 0.43294453620910645, 0.25514230132102966, 0.06445977091789246, 0.0997430682182312, 0.06184249371290207, -0.08086689561605453, -0.14551380276679993, 0.2052440643310547, 0.4584415555000305, -0.5718423128128052, 0.3661361634731293, 0.1454993039369583, 0.011530939489603043, -0.07399765402078629, -0.3209308087825775, -0.15084633231163025, -0.037387263029813766, 0.32570427656173706, 0.08936065435409546, -0.19831204414367676, 0.13486133515834808, -0.18055813014507294, -0.19519194960594177, -0.10883399844169617, -0.20098133385181427, -0.018362736329436302, -0.03156161308288574, -0.3116750717163086, -0.27753502130508423, 0.1134495660662651, -0.12540630996227264, -0.04341374710202217, 0.056460097432136536, 0.13020800054073334, -0.22466710209846497, 0.41184893250465393, -0.2466321885585785, 0.0828443244099617, -0.309626966714859, 0.2402786761522293, -0.08194585889577866, 0.3500746488571167, -0.04245677590370178, -0.17805346846580505, -0.3391317129135132, 0.2919039726257324, -0.16665241122245789, -0.07769587635993958, 0.27012836933135986, 0.19532227516174316, -0.20301872491836548, -0.23829901218414307, -0.04943006485700607, 0.17224149405956268, -0.23949064314365387, -0.25693178176879883, -0.06953779608011246, 0.043233007192611694, -0.11934150755405426, 0.15402798354625702, -0.2632964551448822, -0.2000606805086136, 0.1197282001376152, 0.005139889195561409, -0.18423067033290863, -0.3186807930469513, 0.1262589395046234, -0.24555355310440063, 0.30169662833213806, -0.3433004319667816, -0.639559805393219, 0.38153356313705444, -0.28414273262023926, -0.38943690061569214, 0.411467045545578, 0.17413382232189178, 0.29543769359588623, -0.32129621505737305, -0.14097481966018677, -0.08161848038434982, -0.16163252294063568, -0.3559683561325073, -0.441899836063385, -0.4019606113433838, 0.0429009385406971, 0.01811140403151512, 0.22048842906951904, 0.15033701062202454, 0.09527525305747986, 0.4235892593860626, 0.07498244941234589, 0.27978307008743286, 0.2078801691532135, 0.07656630873680115, 0.4828042984008789, -0.12860679626464844, 0.05299003794789314, -0.10065505653619766, -0.2766999900341034, 0.09389380365610123, -0.1435735672712326, 0.15911775827407837, 0.43843305110931396, -0.31896305084228516, -0.20858705043792725, -0.05610495060682297, 0.3260706961154938, -0.07095213234424591, 0.08178173750638962, 0.09157350659370422, -0.2478199303150177, 0.1673496514558792, -0.4060973525047302, 0.13686342537403107, -0.00986609049141407, -0.070663683116436, -0.088441863656044, 0.045247361063957214, -0.29087334871292114, 0.09942600876092911, 0.1788436621427536, 0.0838296040892601, 0.16945227980613708, -0.23905734717845917, 0.174563467502594, -0.08151271194219589, -0.0724000483751297, 0.30898603796958923, 0.35615605115890503, 0.18628822267055511, 0.2350974678993225, 0.20403176546096802, 0.07461071014404297, 0.17105646431446075, -0.05861130356788635, 0.2303551435470581, -0.2253141701221466, 0.3460874557495117, 0.35499218106269836, -0.263200968503952, -0.056474946439266205, 0.14472509920597076, 0.13079628348350525, -0.259910523891449, -0.09816524386405945, -0.25564834475517273, 0.08176634460687637, -0.22111724317073822, -0.291420042514801, 0.22528289258480072, -0.2763936221599579, 0.29653096199035645, 0.5968989133834839, 0.01841944083571434, -0.04782938212156296, 0.08096770197153091, 0.2573697566986084, -0.08099060505628586, 0.1679658591747284, -0.04620636627078056, 0.08849263191223145, 0.25398966670036316, -0.021019000560045242, 0.004968170076608658, 0.12219274044036865, 0.04252854362130165, 0.10275992751121521, 0.04553202912211418, -0.40421101450920105, -0.029937714338302612, 0.05306759104132652, 0.06338680535554886, 0.11527932435274124, 0.1767401099205017, 0.1918167769908905, 0.22660069167613983, 0.06508105993270874, -0.3978857100009918, -0.28350380063056946, -0.06756751239299774, 0.029123079031705856, -0.01949017122387886, 0.06196285039186478, 0.053446315228939056, 0.13821551203727722, 0.14687290787696838, 0.03162689134478569, 0.1826280802488327, -0.1548488885164261, 0.7969358563423157, -0.3889085054397583, 0.4114334285259247, -0.15663981437683105, -0.11990456283092499, -0.31109729409217834, 0.23450523614883423, -0.012480508536100388, -0.27760425209999084, 0.2567165493965149, 0.05373334884643555, 0.20902065932750702, -0.6258600950241089, -0.4577406346797943, 0.05285108834505081, -0.1441255658864975, 0.045297734439373016, 0.03430376201868057, -0.2054455429315567, -0.10702258348464966, 0.22070369124412537, 0.038490455597639084, -0.05876690894365311, -0.20872241258621216, -0.16665862500667572, -0.006819897331297398, 0.07215046882629395, -0.2570261061191559, -0.6848428845405579, -0.13186317682266235, -0.33636459708213806, -0.018551521003246307, -0.10787717998027802, 0.15694059431552887, -0.12324614077806473, -0.05142552778124809, -0.10490935295820236, 0.021720057353377342, -0.3342829644680023, -0.0948752611875534, -0.048730380833148956, 0.094504714012146, -0.008282912895083427, -0.45697295665740967, 0.19938847422599792, 0.1774873584508896, -0.20251187682151794, 0.1531117856502533, -0.5314670205116272, -0.2725241184234619, 0.20652003586292267, -0.04386264085769653, 0.1573563516139984, -0.17763321101665497, 0.5536832809448242, -0.108638234436512, -0.25384169816970825, -0.13455000519752502, -0.28660449385643005, 0.07206126302480698, 0.17124584317207336, 0.32463446259498596, 0.4091806411743164, 0.26245617866516113, 0.024273965507745743, 0.3892093300819397, 0.19030992686748505, 0.026737254112958908, 0.23416060209274292, 0.17951349914073944, 0.19240571558475494, -0.09376648813486099, -0.20985396206378937, 0.06765501201152802, 0.12601366639137268, 0.1618107259273529, 0.15517815947532654, 0.21250534057617188, -0.08542449027299881, -0.3764597475528717, -0.0002554282546043396, -0.005069650709629059, 0.10664921998977661, -0.2045840322971344, 0.19392043352127075, 0.6248508095741272, 0.15598006546497345, -0.06904161721467972, -0.1899847835302353, -0.05028083920478821, -0.12426434457302094, 0.239497572183609, 0.2186521589756012, -0.08031084388494492, 0.00497688353061676, 0.30570903420448303, -0.2312399446964264, 0.3685395121574402, -0.016263596713542938, 0.3051941990852356, -0.17457959055900574, 0.183700293302536, 0.1675747036933899, -0.0165347121655941, -0.0022485852241516113, -0.4258722960948944, 0.2501205801963806, 0.5538985133171082, -0.25770044326782227, 0.1758042573928833, 0.03193264082074165, -0.15974989533424377, -0.11758887767791748, -0.18528732657432556, 0.5539392232894897, -0.061652228236198425, -0.3503073751926422, 0.5332697629928589, 0.09580117464065552, -0.11599333584308624, 0.011696620844304562, -0.14897769689559937, -0.039174798876047134, 0.03618422895669937, -0.06920657306909561, -0.14557237923145294, 0.045096997171640396, 0.07075498253107071, -0.2735249102115631, -0.2130562961101532, -0.23029044270515442, -0.07894118130207062, -0.11622379720211029, 0.23028278350830078, -0.005495274905115366, 0.2637898921966553, 0.10186436772346497, -0.006938658654689789, 0.29441502690315247, 0.31050166487693787, 0.11030177772045135, -0.26450401544570923, 0.1126396507024765, -0.07665755599737167, 0.13211604952812195, 0.3621125817298889, -0.14406126737594604, 0.13535720109939575, -0.03249099478125572, 0.0674985721707344, -0.09203340858221054, -0.26734283566474915, 0.4327612519264221, -0.1655803918838501, -0.2975938618183136, -0.03650170564651489, 0.20603148639202118, 0.16863787174224854, -0.3554569482803345, 0.5559953451156616, 0.2967340648174286, 0.00805437471717596, -0.023656504228711128, -0.2770443558692932, 1.0293960571289062, -0.02873324602842331, -0.07097743451595306, -0.22299546003341675, -0.2106591761112213, 0.31160762906074524, 0.15183304250240326, 0.12755906581878662, -0.14791223406791687, -0.12004119157791138, -0.15635865926742554, 0.025576118379831314, 0.356655091047287, 0.013788662850856781, -0.45225974917411804, 0.18001915514469147, -0.1066877692937851, 0.34587016701698303, 0.18150383234024048, 0.41813698410987854, 0.2039353847503662, 0.21499960124492645, -0.13578717410564423, 0.18121808767318726, 0.04151124879717827, 0.3444072902202606, -0.11158087104558945, -0.11234115064144135, 0.05060965195298195, -0.16847851872444153, -0.37727534770965576, -0.162756085395813, 0.09462263435125351, 0.12849566340446472, -0.04188169166445732, -0.3295050263404846, 0.15016400814056396, -0.20670321583747864, 0.23946167528629303, 0.05871200934052467, -0.15435215830802917, 0.10663332045078278, -0.10029879957437515, -0.29569366574287415, 0.04223567247390747, 0.20251359045505524, 0.24934692680835724, -0.3657999038696289, -0.1296650618314743, 0.20751890540122986, -0.06659575551748276, -0.1957613229751587, -0.380560040473938, 0.014415375888347626, 0.19049982726573944, -0.08584954589605331, 0.0902336984872818, 0.07931065559387207, 0.000038973987102508545, -0.2687566876411438, 0.21664172410964966, 0.23639056086540222, 0.17307233810424805, -0.07047220319509506, 0.09091229736804962, -0.09439770132303238, -0.04622824862599373, 0.33157411217689514, 0.4488440155982971, -0.08695108443498611, -0.05772613734006882, -0.10464806854724884, -0.02531537227332592, -0.296737939119339, 0.16510829329490662, 0.1483703851699829, -0.19265471398830414, 0.3166777789592743, 0.045182112604379654, -0.17714472115039825, 0.09663151204586029, 0.8037611246109009, 0.11329075694084167, -0.08670196682214737, -0.30893823504447937, -0.22691473364830017, -0.20127299427986145, 0.40074676275253296, -0.3507450222969055, -0.063259556889534, -0.17282116413116455, 0.0035145506262779236, 0.17836496233940125, -0.2588581442832947, -0.3582354187965393, 0.10949456691741943, -0.02293449267745018, -0.1558411717414856, 0.38056161999702454, -0.13976478576660156, -0.12688815593719482, -0.16952340304851532, 0.06836100667715073, -0.19142569601535797, -0.4219686985015869, -0.1825898289680481, -0.00688076950609684, 0.1795588880777359, -0.09949962794780731, 0.11059026420116425, -0.21884261071681976, -0.33317118883132935, -0.3294791281223297, 0.5655472278594971, -0.057462841272354126, 0.21055829524993896, 0.265817791223526, -0.0013696029782295227, -0.1911037713289261, 0.08320647478103638, -0.04736034944653511, 0.14442037045955658, 0.29168641567230225, 0.06167347729206085, 0.05258164554834366, 0.21925108134746552, 0.33524051308631897, -0.05124558135867119, -0.3188326358795166, -0.08573167771100998, 0.02837974578142166, 0.10824374109506607, 0.25338491797447205, 0.08450749516487122, 0.07785522937774658, 0.31770604848861694, 0.26134029030799866, 0.14774639904499054, 0.02358786016702652, -0.1045151874423027, 0.14997273683547974, 0.22904635965824127, -0.4348067343235016, -0.21444468200206757, -0.10244354605674744, 0.19541533291339874, -0.35196879506111145, -0.05866394191980362, 0.4161960482597351, 0.37451106309890747, 0.3306235074996948, 0.23533469438552856, 0.32521623373031616, -0.28755462169647217, 0.17533713579177856, 0.29865071177482605, 0.28216221928596497, 0.08192461729049683, 0.27020829916000366, 0.3563089072704315, 0.11984121054410934, -0.11741721630096436, 0.11622270941734314, 0.2579939365386963, 0.6770773530006409, 0.46111342310905457, 0.2945823669433594, -0.167415052652359, 0.1528615802526474, 0.14507617056369781, 0.024857021868228912, -0.009703479707241058, -0.028064340353012085, 0.23412543535232544, -0.2223810851573944, 0.000882523600012064, -0.2526206970214844, -0.19898249208927155, -0.13957682251930237, -0.2066178321838379, 0.08047940582036972, -0.2013022005558014, -0.16393159329891205, -0.049034323543310165, -0.0818430632352829, 0.38813692331314087, 0.4651457965373993, -0.17233629524707794, 0.06459134072065353, -0.10199669748544693, -0.1264232099056244, 0.1757831871509552, 0.2655937075614929, -0.18459682166576385, 0.30188456177711487, -0.4171665906906128, 0.10559451580047607, 0.20459991693496704, 0.5415051579475403, 0.0668875128030777, -0.005513742566108704, -0.09665107727050781, -0.034616824239492416, -0.20498982071876526, -0.09645208716392517, 0.11996643245220184, 0.4839952290058136, 0.2810302972793579, 0.32640182971954346, 0.023384757339954376, 0.0755380392074585, -0.142159104347229, 0.41687172651290894, -0.10790735483169556, -0.1283356249332428, -0.6276835799217224, 0.2174910604953766, -0.10517285764217377, -0.1579536497592926, -0.06128198653459549, 0.1260121762752533, -0.012663692235946655, -0.3415762186050415, 0.27159687876701355, 0.21668855845928192, -0.06430534273386002, -0.24864691495895386, 0.11121860146522522, -0.23084920644760132, 0.042016878724098206, 0.013572219759225845, -0.008657433092594147, -0.019740015268325806, -0.30968672037124634, -0.4489585757255554, 0.390798419713974, 0.1115972250699997, -0.24081459641456604, 0.10528089106082916, 0.21330057084560394, 0.08897830545902252, 0.30819785594940186, 0.0924188643693924, -0.17903971672058105, -0.31719470024108887, -0.1446872055530548, -0.40227434039115906, 0.1941869854927063, 0.3912084698677063, 0.08479383587837219, -0.04224235564470291, -0.2774842381477356, 0.27421918511390686, -0.29324105381965637, 0.032242827117443085, 0.1044759675860405, -0.33371666073799133, 0.3860049843788147, 0.14066636562347412, 0.5287457704544067, 0.032131366431713104, 0.13045485317707062, 0.2330348789691925, -0.13441923260688782, -0.4677232503890991, -0.13288795948028564, -0.03367091715335846, -0.10856831818819046, 0.04182322323322296, 0.0438946932554245, -0.267730712890625, 0.11621518433094025, -0.19904549419879913, 0.05104324221611023, -0.3705941438674927, 0.411442369222641, 0.06625538319349289, 0.10950750857591629, 0.06625036150217056, -0.2569507360458374, 0.2648659944534302, 0.05526766553521156, -0.11630012094974518, -0.2598814070224762, -0.4447283148765564, -0.31967371702194214, 0.29488539695739746, 0.009998398832976818, -0.14694231748580933, -0.11868615448474884, 0.07514171302318573, 0.2601581811904907, -0.2630869150161743, -0.4047778248786926, -0.13587838411331177, 0.30264386534690857, 0.2290503978729248, -0.12055440247058868, 0.0037200963124632835, 0.011636970564723015, -0.18535690009593964, 0.07482282817363739, 0.301775723695755, -0.14734980463981628, -0.11054828763008118, -0.1910792589187622, 0.07434478402137756 ]
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.14233562350273132, 0.17272639274597168, -0.0044712889939546585, 0.04009644314646721, 0.09973692893981934, 0.027367644011974335, -0.01320519670844078, 0.06842201948165894, 0.013826165348291397, 0.05311477929353714, -0.03956028074026108, 0.30000773072242737, 0.34994399547576904, -0.3781616687774658, -0.10492651909589767, 0.13061508536338806, 0.09097261726856232, 0.09414937347173691, 0.2756742835044861, 0.19792817533016205, -0.035914234817028046, 0.09590891003608704, -0.12475433200597763, -0.08929167687892914, -0.33463186025619507, 0.021213926374912262, -0.031671151518821716, -0.12353723496198654, -0.02871754579246044, -0.41674351692199707, 0.30194833874702454, -0.150185227394104, -0.12258533388376236, 0.35763493180274963, -0.00011850786540890113, 0.07807427644729614, 0.4348541498184204, -0.03297175094485283, -0.018321817740797997, -0.2907206416130066, -0.07237981259822845, -0.1354442685842514, 0.27919867634773254, -0.15913209319114685, -0.09534788131713867, 0.161763533949852, 0.09874837100505829, -0.6114606857299805, 0.441523015499115, 0.3961339592933655, 0.22101140022277832, 0.318006694316864, 0.3437507450580597, -0.12438353151082993, 0.4198286831378937, -0.12811219692230225, -0.048951104283332825, -0.2564227879047394, 0.2530341148376465, -0.03889832645654678, -0.02906683087348938, 0.1452290415763855, -0.0944894328713417, -0.2707448899745941, 0.10850374400615692, 0.14813494682312012, -0.46254271268844604, -0.2957310378551483, 0.3149893879890442, 0.11342249810695648, 0.1910264790058136, -0.07123377174139023, -0.251936137676239, 0.045185111463069916, -0.0008991651702672243, 0.1622105985879898, 0.19942042231559753, 0.18945713341236115, 0.0606103278696537, 0.11904220283031464, 0.06539028137922287, -0.12489817291498184, -0.23916135728359222, 0.4135320782661438, -0.0537080317735672, 0.1734447032213211, -0.09754180908203125, 0.10647594928741455, 0.13659441471099854, -0.14607968926429749, 0.07822884619235992, 0.25229522585868835, -0.27293333411216736, -0.05551565811038017, -0.37644264101982117, 0.10244697332382202, -0.11689487844705582, -0.20027151703834534, 0.41850486397743225, -0.06345265358686447, -0.09268470108509064, 0.15973231196403503, 0.6514126062393188, 0.08237047493457794, 0.28602978587150574, -0.06310363113880157, 0.06138167530298233, 0.3085786998271942, 0.07358764857053757, -0.3172643780708313, -0.3174733519554138, -0.2593565285205841, 0.28547918796539307, -0.21496978402137756, 0.4180784821510315, -0.4818156063556671, 0.21345701813697815, -0.03002770058810711, -0.15906555950641632, 0.2193007469177246, -0.5879532098770142, -0.006158096250146627, -0.07535016536712646, 0.1353491097688675, 0.1364610493183136, -0.4953060746192932, 0.03836938738822937, 0.27251625061035156, -0.22893041372299194, 0.14522162079811096, -0.2356664389371872, -0.26598313450813293, 0.0408693365752697, 0.017961792647838593, 0.11603577435016632, -0.6583978533744812, 0.22957271337509155, 0.002188284881412983, 0.08425961434841156, -0.3945719599723816, 0.26301154494285583, -0.08290025591850281, 0.17736360430717468, 0.21885527670383453, 0.0615348182618618, 0.023488463833928108, 0.02322726510465145, -0.4385557174682617, -0.035155411809682846, -0.12219380587339401, -0.38145336508750916, -0.2521410882472992, -0.27648457884788513, 0.21022765338420868, -0.1385771632194519, 0.017178263515233994, 0.13575206696987152, 0.2181534767150879, 0.11031204462051392, -0.008274666965007782, 0.07757581025362015, -0.04035534709692001, -0.2897685766220093, 0.08141598850488663, 0.29978957772254944, 0.20748090744018555, 0.11608573794364929, -0.129006490111351, 0.03454871475696564, 0.4276863634586334, -0.2609283924102783, 0.21411840617656708, -0.23132753372192383, 0.03642946109175682, -0.17314161360263824, 0.4179224371910095, 0.33503052592277527, -0.4630017876625061, -0.6134618520736694, 0.13872092962265015, -0.2306153029203415, -0.09500938653945923, -0.2723558247089386, 0.060784704983234406, 0.6483927965164185, 0.010772193782031536, 0.17986756563186646, 0.24768152832984924, -0.17625731229782104, -0.16789843142032623, -0.15230105817317963, -0.0007274765521287918, -0.14308807253837585, -0.17720246315002441, 0.0628989115357399, 0.090335413813591, 0.2576126158237457, 0.20041006803512573, -0.005573853850364685, 0.18954619765281677, 0.011543041095137596, 0.30669552087783813, 0.35648685693740845, 0.10774920135736465, 0.25268039107322693, -0.12880195677280426, -0.25653156638145447, 0.2232704758644104, 0.08952878415584564, 0.08368605375289917, -0.1827765256166458, -0.11986315995454788, -0.137906014919281, 0.007161583751440048, -0.15699298679828644, 0.03099587932229042, 0.10749730467796326, -0.23774299025535583, -0.21988697350025177, 0.1922544538974762, 0.00023052096366882324, -0.1667480319738388, 0.07281046360731125, 0.2382163405418396, -0.23763902485370636, 0.3120538592338562, -0.08301267772912979, -0.08675331622362137, -0.18836091458797455, -0.012789875268936157, 0.23681652545928955, -0.20603898167610168, -0.1446206271648407, 0.33254143595695496, -0.09940639138221741, 0.317195862531662, 0.1542840600013733, 0.025193870067596436, 0.12611819803714752, -0.6889190673828125, -0.1038777157664299, 0.1420571357011795, 0.05719641596078873, -0.2761909067630768, -0.0003119632601737976, 0.015249192714691162, 0.007225144654512405, 0.37240126729011536, -0.21710239350795746, 0.08687327802181244, -0.0073974598199129105, -0.17348165810108185, -0.45978960394859314, -0.03373270854353905, -0.019845496863126755, -0.3641357123851776, -0.04249116778373718, -0.11294084787368774, -0.11829103529453278, 0.03190460056066513, 0.01611529290676117, 0.15425260365009308, 0.10466200858354568, 0.37098610401153564, 0.020229753106832504, -0.10019181668758392, -0.38004177808761597, -0.020859744399785995, 0.2398633509874344, 0.17840421199798584, 0.14130792021751404, -0.0003942791372537613, 0.01600012183189392, -0.05712631344795227, 0.3174206018447876, 0.34493231773376465, 0.08519112318754196, 0.3284902274608612, 0.42678338289260864, 0.08073503524065018, -0.23499974608421326, -0.05562377721071243, -0.21877099573612213, -0.034960582852363586, -0.2483052760362625, 0.4837777614593506, -0.038178812712430954, 0.12168847769498825, -0.14218200743198395, 0.036698296666145325, -0.26087576150894165, -0.4408203065395355, -0.10007123649120331, 0.19188815355300903, -0.029805626720190048, 0.010196651332080364, -0.3896358907222748, -0.028017058968544006, 0.25365352630615234, -0.271968275308609, 0.14002299308776855, -0.138258159160614, -0.14236360788345337, -0.03425110876560211, 0.18529552221298218, 0.05593548342585564, 0.23909153044223785, 0.22776085138320923, -0.13080427050590515, -0.38574138283729553, -0.44017091393470764, 0.13538479804992676, 0.0270670335739851, 0.33816322684288025, 0.10618359595537186, -0.20703701674938202, -0.41890960931777954, -0.13923628628253937, 0.23917512595653534, -0.15691430866718292, 0.09605224430561066, 0.09899023920297623, 0.08122646063566208, 0.16545571386814117, 0.2521836459636688, -0.2988073229789734, -0.18562965095043182, -0.17730595171451569, 0.03192955255508423, -0.130062073469162, -0.0701896995306015, 0.32654836773872375, -0.010066667571663857, 0.1334313303232193, -0.1179937794804573, -0.09436553716659546, -0.1205616220831871, -0.15527892112731934, 0.05129050463438034, -0.161736860871315, -0.314648300409317, 0.16640280187129974, -0.03586572781205177, -0.24765101075172424, 0.23991672694683075, -0.39511317014694214, 0.21291469037532806, 0.12620513141155243, -0.25794732570648193, -0.30928635597229004, 0.05593530088663101, 0.08564438670873642, -0.26329711079597473, -0.015295447781682014, -0.03317338228225708, 0.029206842184066772, 0.17546343803405762, 0.22315549850463867, 0.09258706867694855, -0.0978388637304306, 0.23610824346542358, -0.0709357038140297, 0.6817721724510193, 0.16039882600307465, -0.013462208211421967, 0.15878620743751526, -0.17086248099803925, 0.3219512701034546, -0.23699307441711426, -0.5023808479309082, -0.14123961329460144, -0.10594409704208374, -0.10542012006044388, -0.028370335698127747, 0.1095743328332901, -0.2827520966529846, -0.11559993028640747, -0.24269047379493713, -0.060500796884298325, -0.5460487008094788, 0.1893928498029709, 0.17110022902488708, 0.0693427324295044, 0.05686541274189949, 0.15642783045768738, 0.12334102392196655, -0.4360741078853607, -0.425250381231308, -0.12721961736679077, -0.1278427243232727, 0.015780102461576462, -0.26754453778266907, 0.19871875643730164, -0.6068621277809143, 0.16466987133026123, -0.05421056970953941, 0.5287724137306213, 0.05517037585377693, 0.0009345971047878265, 0.14209182560443878, 0.1686774641275406, 0.7477443218231201, -0.22517409920692444, -0.11859798431396484, -0.015835348516702652, 0.05479308217763901, -0.5928253531455994, 0.09874610602855682, -0.1476440727710724, 0.6286976933479309, 0.20921866595745087, 0.37377315759658813, 0.028893455862998962, 0.17451851069927216, 0.07553637027740479, -0.10054688900709152, 0.07907013595104218, -0.07784196734428406, -0.22568300366401672, -0.22002717852592468, 0.3044414222240448, 0.27427440881729126, 0.3445188105106354, 0.08100245893001556, 0.32237929105758667, -0.22847755253314972, -0.2969669699668884, -0.030945485457777977, 0.04371831566095352, -0.2290932834148407, 0.2575109302997589, -0.07814813405275345, 0.2960498034954071, 0.4340250492095947, 0.21778537333011627, 0.276228666305542, 0.4081858694553375, -0.24404048919677734, 0.08859356492757797, -0.019674081355333328, -0.03754722326993942, 0.17640995979309082, 0.345209538936615, 0.23339416086673737, 0.15300092101097107, 0.1788766235113144, 0.06654170900583267, -0.21474215388298035, -0.18785911798477173, 0.5031181573867798, 0.13828633725643158, -0.47608640789985657, 0.06704302877187729, 0.3620654046535492, -0.06275171786546707, -0.03086569532752037, 0.07451488077640533, 0.5442930459976196, -0.3988701105117798, 0.6471540331840515, 0.11359819769859314, 0.6712860465049744, 0.08919495344161987, -0.07255643606185913, -0.26307523250579834, 0.11092616617679596, 0.7352769374847412, -0.3347005844116211, 0.25493741035461426, -0.2097504884004593, -0.5855284333229065, -0.06905855983495712, -0.28585025668144226, 0.008680906146764755, -0.22341810166835785, -0.36034825444221497, 0.016650434583425522, -0.382299542427063, 0.2821253836154938, -0.08415574580430984, 0.3374680280685425, -0.15104667842388153, -0.1274796575307846, 0.035268884152173996, 0.15474002063274384, 0.2227136492729187, 0.2692335247993469, 0.1916234791278839, 0.04244479164481163, -0.01742258295416832, -0.2775607109069824, -0.4944607615470886, -0.019128773361444473, -0.12745994329452515, 0.15517397224903107, 0.18276548385620117, -0.04532292112708092, 0.3815470039844513, 0.098896823823452, 0.04814901202917099, 0.10755772888660431, -0.18122370541095734, 0.24065116047859192, -0.008087635040283203, -0.05698366090655327, 0.44466814398765564, -0.22058317065238953, 0.07117947936058044, 0.179122656583786, -0.40241652727127075, -0.018444299697875977, 0.2618081271648407, -0.1858660876750946, -0.08226995170116425, 0.34710317850112915, -0.2522740960121155, -0.373271107673645, -0.23475731909275055, -0.12859179079532623, -0.06755010783672333, -0.14326506853103638, 0.08923211693763733, 0.008490566164255142, -0.12428572028875351, 0.2830710709095001, 0.3689802289009094, -0.24953219294548035, 0.07210104167461395, 0.8503791093826294, -0.21605035662651062, -0.13867385685443878, 0.20747768878936768, 0.06039522960782051, -0.17180238664150238, -0.11009161919355392, 0.32643088698387146, 0.285936176776886, -0.15067726373672485, -0.25924378633499146, -0.46274977922439575, 0.22831623256206512, 0.036962952464818954, 0.03771578520536423, 0.21224604547023773, -0.009236961603164673, -0.18426157534122467, -0.19047731161117554, 0.1433345079421997, 0.1566765308380127, 0.4442588686943054, 0.10218631476163864, -0.319886714220047, -0.4058082401752472, -0.0958280935883522, 0.13750064373016357, -0.24381104111671448, 0.3268672525882721, -0.25202855467796326, 0.006450485438108444, -0.129592165350914, -0.05161621421575546, 0.5856393575668335, -0.37528112530708313, 0.05919640511274338, 0.17448459565639496, -0.05121929198503494, -0.16854047775268555, -0.06370185315608978, 0.11913761496543884, -0.04507606476545334, -0.10700853168964386, -0.166634663939476, -0.23166070878505707, -0.047348443418741226, -0.2600589692592621, 0.026888065040111542, 0.424556702375412, 0.12926939129829407, -0.1663021296262741, -0.15225207805633545, -0.12608706951141357, 0.354925274848938, -0.08605176955461502, 0.2210671752691269, 0.25743353366851807, 0.016934441402554512, 0.285054087638855, 0.10951437801122665, -0.031354278326034546, -0.11664329469203949, 0.27056580781936646, -0.04370790719985962, 0.07836632430553436, 0.2038310170173645, -0.2371044009923935, -0.09618137776851654, 0.5086308717727661, 0.41947096586227417, 0.3942946791648865, -0.3104341924190521, -0.1650983691215515, -0.0005252650007605553, 0.24133113026618958, 0.04924819618463516, -0.24171076714992523, 0.612632691860199, 0.09002534300088882, 0.12838849425315857, 0.20120231807231903, 0.08903901278972626, -0.31309303641319275, -0.3525213599205017, 0.029185902327299118, 0.7695252299308777, 0.13496582210063934, 0.1062518060207367, -0.18472333252429962, -0.029899122193455696, -0.030788179486989975, 0.0969657152891159, 0.15404526889324188, 0.3628752529621124, 0.21087941527366638, 0.009351029992103577, 0.44576364755630493, 0.09463893622159958, 0.2002352625131607, 0.1958201825618744, 0.14632809162139893, 0.2819834351539612, 0.2778770923614502, 0.19834578037261963, 0.06488385796546936, -0.031021632254123688, 0.8150582909584045, -0.008176798932254314, -0.3088994324207306, -0.1074739322066307, 0.012354917824268341, -0.0718856081366539, -0.13820119202136993, 0.2133588194847107, -0.16537979245185852, -0.0008468329906463623, -0.24163852632045746, 0.08490069955587387, -0.02695871889591217, -0.39012807607650757, 0.15754982829093933, 0.11248147487640381, -0.04309522360563278, 0.05088891088962555, -0.14149674773216248, 0.07672008872032166, -0.1664367914199829, 0.003623591735959053, -0.151906356215477, 0.12521204352378845, 0.23516780138015747, 0.3312089443206787, 0.40355953574180603, -0.07472363114356995, -0.1400463730096817, 0.4058654308319092, -0.035012051463127136, -0.14455294609069824, 0.10792140662670135, 0.03183716535568237, -0.0002722516655921936, -0.5440952777862549, 0.1478167027235031, 0.04871272295713425, -0.06358878314495087, 0.01404167152941227, 0.2640840709209442, 0.43219804763793945, -0.15409156680107117, -0.3470180928707123, -0.21063190698623657, 0.07443229109048843, -0.17836466431617737, -0.15063002705574036, -0.160038024187088, 0.09886046499013901, 0.2971239686012268, -0.21230952441692352, 0.1440628170967102, 0.14290133118629456, 0.06288836896419525, -0.08692178130149841, 0.1966792196035385, 0.11604873836040497, -0.055046387016773224, -0.03339742124080658, 0.07475216686725616, -0.20595422387123108, 0.3186420202255249, -0.45080894231796265, 0.16926801204681396, 0.5591518878936768, 0.29605185985565186, -0.2047143280506134, 0.10676649957895279, 0.18077054619789124, -0.23506589233875275, -0.29931262135505676, -0.07724502682685852, -0.01604129560291767, -0.22386698424816132, -0.10156120359897614, 0.026177722960710526, -0.01014176569879055, -0.025155561044812202, 0.10904493927955627, -0.5017808079719543, 0.023462161421775818, -0.23539723455905914, -0.15409579873085022, -0.19839565455913544, -0.17497454583644867, 0.11525078117847443, 0.07642865180969238, 0.2546809911727905, -0.01082548312842846, 0.07054360955953598, -0.19427165389060974, -0.46987438201904297, -0.28177279233932495, 0.26535919308662415, 0.09579090774059296, 0.030969463288784027, -0.2558007538318634, -0.49813929200172424, -0.20893682539463043, 0.14825932681560516, 0.09516969323158264, -0.10516102612018585, -0.49359002709388733, 0.02118384651839733, -0.06647427380084991, 0.12540315091609955, -0.2824282944202423, 0.32178860902786255, -0.05846033990383148, 0.45554566383361816, 0.05762287974357605, -0.4273315370082855, 0.47240856289863586, -0.33195966482162476, 0.00557878240942955, -0.04099426418542862, 0.2926781475543976, 0.6038848161697388, 0.14099344611167908, -0.23869472742080688, -0.1673584282398224, 0.27565354108810425, -0.19434601068496704, -0.24405920505523682, -0.09817366302013397, -0.015066860243678093, 0.19261910021305084, -0.025973239913582802, -0.16197997331619263, 0.27429044246673584, -0.02924884855747223, 0.015126649290323257, -0.09116991609334946 ]
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.2659159302711487, 0.3422670364379883, 0.03556741401553154, 0.30986160039901733, 0.2141987383365631, 0.040436819195747375, 0.36466747522354126, 0.4201541841030121, 0.3040364980697632, 0.07150101661682129, -0.27686935663223267, 0.1901174634695053, 0.1306929588317871, -0.19510632753372192, -0.16129305958747864, 0.3339100480079651, 0.1246943473815918, 0.10538575053215027, -0.2242203652858734, -0.12527911365032196, -0.3106774687767029, 0.1985783576965332, -0.21844765543937683, -0.2842971086502075, -0.05295628681778908, 0.1835625171661377, 0.1532595306634903, 0.23243489861488342, -0.12070263177156448, -0.358711838722229, 0.27882498502731323, 0.27852991223335266, 0.17364296317100525, 0.42961499094963074, -0.0001249283814104274, 0.12080086767673492, 0.28177207708358765, -0.024277634918689728, -0.5012798309326172, -0.2013920694589615, -0.5633583664894104, -0.37422457337379456, -0.007036429829895496, -0.15833570063114166, -0.03448762744665146, 0.23633727431297302, -0.017784884199500084, -0.2750733494758606, 0.0001784488558769226, 0.37369364500045776, 0.11685681343078613, 0.39186733961105347, 0.1609969139099121, 0.0871681421995163, 0.38125741481781006, 0.05049647018313408, -0.09010018408298492, 0.41197457909584045, 0.21939757466316223, -0.03859580680727959, -0.25820183753967285, 0.16832786798477173, -0.423460990190506, 0.30699455738067627, 0.23205816745758057, 0.061882384121418, 0.0648745521903038, -0.13736741244792938, 0.25324761867523193, 0.2994748055934906, 0.498142272233963, -0.41465938091278076, -0.32781311869621277, -0.22857412695884705, -0.2983013689517975, -0.3188686966896057, 0.379134863615036, 0.13985715806484222, -0.19677716493606567, 0.03362946957349777, -0.3680803179740906, 0.14996246993541718, 0.0037703439593315125, 0.1940128207206726, 0.24226751923561096, 0.0545370988547802, 0.03165462613105774, -0.018766194581985474, 0.022112563252449036, 0.02987774834036827, 0.39370763301849365, -0.5399646162986755, -0.20467838644981384, 0.20481041073799133, -0.5590250492095947, 0.07308632135391235, 0.008054949343204498, 0.27770668268203735, 0.35263490676879883, 0.4925142526626587, 0.08900981396436691, 0.2042800486087799, -0.03753899037837982, 0.188515305519104, 0.1643190234899521, 0.21197031438350677, -0.06473513692617416, 0.4100458323955536, 0.2708587646484375, 0.365680456161499, -0.13477782905101776, 0.04320977255702019, -0.005434769671410322, -0.1764214187860489, 0.6712676882743835, -0.12599480152130127, 0.3084338903427124, -0.48904237151145935, -0.4388943910598755, 0.271325945854187, 0.00819937139749527, -0.09479724615812302, 0.08695083111524582, 0.3220200538635254, -0.22657939791679382, 0.15165972709655762, 0.1470196545124054, 0.14769147336483002, -0.21250098943710327, -0.05413270741701126, -0.1873367875814438, -0.07644011080265045, -0.059677936136722565, 0.19760894775390625, 0.29423004388809204, -0.18220078945159912, 0.2553636431694031, 0.10830988734960556, 0.21902647614479065, -0.19608190655708313, 0.2999759614467621, -0.19556301832199097, -0.05336286872625351, 0.31806644797325134, -0.03223099932074547, 0.09612510353326797, 0.24766364693641663, -0.18122342228889465, -0.14394254982471466, 0.18287700414657593, -0.25577640533447266, -0.2137444019317627, -0.12690921127796173, 0.15115119516849518, -0.351426899433136, 0.008209161460399628, -0.23782652616500854, -0.40002602338790894, 0.40632545948028564, -0.32234248518943787, -0.015482902526855469, -0.3542114496231079, -0.2637976109981537, -0.35394424200057983, 0.2389729619026184, 0.4025992751121521, 0.04192398861050606, 0.042652763426303864, -0.09056469798088074, -0.011483728885650635, 0.29419296979904175, 0.18351122736930847, 0.009319894015789032, 0.10563147813081741, -0.41249123215675354, -0.06356114894151688, 0.26065415143966675, -0.3542017936706543, -0.6170883774757385, 0.10361715406179428, 0.12774649262428284, 0.6295827627182007, 0.047642771154642105, 0.07500483840703964, 0.18316803872585297, -0.050239332020282745, 0.22169969975948334, 0.1532370150089264, -0.03878571838140488, 0.12447955459356308, -0.25280508399009705, -0.0325603187084198, -0.0434717983007431, 0.10448656976222992, 0.020173219963908195, 0.24980434775352478, 0.28892168402671814, -0.16611245274543762, 0.2637808322906494, -0.09536603093147278, -0.12573716044425964, 0.23210455477237701, 0.2991997301578522, 0.046875741332769394, 0.06397265195846558, -0.016745951026678085, -0.7693796157836914, 0.3423205614089966, -0.15059271454811096, -0.028012245893478394, -0.07335084676742554, -0.0444161482155323, -0.18030506372451782, -0.11414822190999985, -0.3073669373989105, -0.09120486676692963, -0.012601736932992935, 0.3906348645687103, 0.20742163062095642, 0.020101647824048996, 0.037946391850709915, 0.4137774705886841, -0.3047976791858673, 0.12482915073633194, -0.3346222937107086, 0.41184884309768677, 0.07434230297803879, -0.10293784737586975, 0.13182446360588074, -0.0030288472771644592, 0.1328229457139969, -0.05629473552107811, -0.2745422422885895, 0.43870657682418823, 0.3811515271663666, 0.13638322055339813, -0.1962328851222992, 0.3414158821105957, -0.0699218362569809, -0.1395464837551117, -0.012618547305464745, 0.4393080174922943, 0.12039755284786224, -0.16905540227890015, -0.1533745527267456, 0.34739211201667786, -0.0006351582705974579, 0.1946762204170227, 0.0062536150217056274, 0.057583197951316833, 0.24504956603050232, -0.11670224368572235, -0.14613740146160126, -0.2618686258792877, 0.3650648891925812, 0.12959954142570496, 0.22662483155727386, 0.19694119691848755, -0.15721125900745392, -0.025889627635478973, 0.4515211284160614, -0.07350896298885345, -0.020525261759757996, 0.12885048985481262, 0.04746615141630173, -0.04369352012872696, 0.07537597417831421, 0.23707444965839386, 0.5027204155921936, 0.06688665598630905, -0.04628343507647514, 0.1425229161977768, -0.17180772125720978, -0.06782606989145279, 0.09680472314357758, -0.04073892533779144, 0.19895543158054352, 0.6168531179428101, 0.13804244995117188, -0.15266714990139008, -0.2818838357925415, -0.0774434357881546, -0.12176050990819931, 0.3029193580150604, -0.49030518531799316, 0.07696989923715591, -0.10728748887777328, 0.08582382649183273, -0.37316855788230896, -0.12689971923828125, -0.18559767305850983, -0.2465101182460785, -0.2533244490623474, 0.6255080699920654, 0.02918412908911705, 0.1770877093076706, -0.5438399314880371, 0.026174619793891907, -0.04827313870191574, -0.365887850522995, 0.017864786088466644, 0.20343630015850067, -0.21111071109771729, -0.15474030375480652, 0.5788068771362305, -0.09108760207891464, 0.3742567002773285, -0.4110652506351471, -0.026851098984479904, -0.5500813126564026, -0.22336390614509583, 0.09451515972614288, 0.01622743345797062, 0.2236749529838562, 0.1711827516555786, 0.04065745323896408, -0.019199814647436142, -0.2501072883605957, 0.2409212589263916, -0.04423116147518158, -0.2682676315307617, 0.32362791895866394, -0.15102845430374146, -0.09554973244667053, 0.17093604803085327, -0.19851207733154297, -0.0594511553645134, -0.30505549907684326, -0.12973825633525848, 0.23192210495471954, 0.21338105201721191, 0.19363220036029816, -0.006471211090683937, 0.015293742530047894, 0.13896656036376953, 0.3373677432537079, -0.16820292174816132, -0.6134577989578247, 0.44486308097839355, -0.037825070321559906, -0.22020284831523895, -0.14433160424232483, -0.10698513686656952, 0.11745372414588928, 0.39740437269210815, -0.5095444321632385, 0.016748860478401184, -0.2880870997905731, 0.09456290304660797, 0.09506310522556305, -0.024056406691670418, 0.2160235494375229, 0.1453540325164795, 0.08296540379524231, -0.24995478987693787, -0.27190592885017395, 0.1908770203590393, -0.13722577691078186, 0.19965602457523346, 0.022646993398666382, 0.3025050759315491, -0.2673565149307251, 0.546239972114563, 0.42744287848472595, 0.006137479096651077, 0.2280859649181366, 0.046746473759412766, 0.5268774032592773, -0.1603362262248993, -0.317992627620697, -0.07851119339466095, -0.20986789464950562, -0.13363425433635712, 0.1367110162973404, -0.025606315582990646, -0.12907619774341583, -0.16024035215377808, 0.05656328424811363, -0.2643207609653473, -0.26646319031715393, 0.05570366233587265, -0.2999246120452881, 0.3418464660644531, 0.18070806562900543, 0.17876821756362915, -0.14496463537216187, -0.3675053119659424, -0.01113293319940567, 0.25516408681869507, -0.06216719001531601, -0.06465385109186172, -0.2754189968109131, 0.036128077656030655, -0.09631191939115524, 0.3009791374206543, 0.21668855845928192, 0.43858736753463745, 0.12864218652248383, -0.08465400338172913, -0.018669001758098602, 0.023542042821645737, 0.22706656157970428, -0.2749733626842499, 0.29569754004478455, 0.14856062829494476, -0.00795714184641838, -0.1783580183982849, -0.2544603645801544, -0.04324992001056671, 0.06182227283716202, 0.04338766634464264, 0.5564834475517273, -0.3165840804576874, -0.01635723002254963, 0.24136056005954742, 0.41004282236099243, -0.14618514478206635, -0.2883683443069458, -0.44035604596138, -0.1881624162197113, -0.29695072770118713, -0.18072614073753357, -0.14348697662353516, 0.12070498615503311, -0.2336423695087433, -0.1006111353635788, -0.017982812598347664, 0.057041384279727936, 0.29716813564300537, -0.056949734687805176, 0.44865894317626953, -0.06271502375602722, 0.4389149248600006, 0.04354338347911835, 0.06077486649155617, 0.40352270007133484, 0.8385487198829651, -0.3676980435848236, -0.44208747148513794, -0.07953264564275742, -0.13003118336200714, -0.1770051121711731, 0.07271628826856613, -0.029712945222854614, -0.13397854566574097, 0.236907497048378, -0.13341683149337769, -0.08766337484121323, -0.07257220149040222, 0.21041688323020935, 0.19986246526241302, -0.4859302341938019, -0.47055017948150635, 0.1425006091594696, 0.08549864590167999, -0.056500259786844254, 0.5796324610710144, -0.06785722076892853, -0.17266367375850677, 0.09759189188480377, 0.15627813339233398, 0.7910823225975037, -0.03746909648180008, 0.20977947115898132, 0.2671893537044525, -0.3216480612754822, -0.015329834073781967, -0.28848525881767273, 0.11760421097278595, -0.5410559177398682, -0.4565598666667938, 0.002372879534959793, -0.4108853340148926, 0.06949304789304733, 0.02445659041404724, -0.005876217037439346, 0.36442801356315613, -0.13654044270515442, 0.3639831840991974, 0.1626518815755844, 0.15032491087913513, -0.1333136260509491, -0.019251592457294464, -0.024690236896276474, 0.05636774003505707, -0.1063271313905716, 0.2817873954772949, -0.10432561486959457, 0.07447225600481033, -0.08374319225549698, -0.24914208054542542, -0.33596694469451904, 0.2686167061328888, -0.04842666536569595, 0.30638909339904785, 0.3144688010215759, -0.15623968839645386, -0.19320453703403473, 0.3079410493373871, 0.19318869709968567, 0.12565143406391144, -0.20242716372013092, -0.0966147929430008, 0.4446161091327667, 0.18595898151397705, 0.10808415710926056, -0.1174766793847084, 0.42943745851516724, -0.016474908217787743, -0.17061878740787506, -0.019508033990859985, -0.15670841932296753, -0.5109944939613342, -0.06384684145450592, -0.1865803450345993, -0.01395338773727417, -0.33274567127227783, -0.18218563497066498, -0.14913712441921234, -0.0026480555534362793, -0.1799304038286209, 0.10349555313587189, 0.15092045068740845, -0.1339949369430542, 0.3799225986003876, -0.0015910491347312927, -0.46008485555648804, -0.12746509909629822, 0.5131279826164246, 0.1256902813911438, -0.06667498499155045, 0.5254417657852173, -0.0354960598051548, -0.27411070466041565, -0.13037841022014618, -0.023937124758958817, 0.04297954589128494, -0.2795839011669159, 0.1564885973930359, -0.29231539368629456, 0.32669585943222046, -0.1656525880098343, 0.23092062771320343, 0.1746116578578949, -0.028219111263751984, 0.08037528395652771, -0.5436598658561707, -0.11495625227689743, -0.054523587226867676, 0.07140573114156723, 0.2256128191947937, -0.09616661071777344, -0.13187719881534576, -0.16862721741199493, -0.16431216895580292, -0.21964478492736816, -0.050959423184394836, -0.285068154335022, -0.05039311945438385, 0.06670036911964417, 0.10910819470882416, 0.09547362476587296, -0.08480414748191833, 0.10706773400306702, -0.1395263820886612, -0.15861330926418304, -0.09824525564908981, -0.24731263518333435, 0.19130462408065796, 0.007806180045008659, -0.21952393651008606, 0.10118890553712845, -0.25071048736572266, -0.12310409545898438, -0.2926577925682068, 0.04128384217619896, 0.3332255482673645, -0.16632461547851562, 0.02405671775341034, 0.04791336879134178, -0.005912281572818756, -0.07029561698436737, 0.05986758694052696, -0.35677194595336914, -0.09490865468978882, 0.03533531725406647, 0.08519094437360764, 0.041205983608961105, -0.04275929555296898, 0.038260579109191895, 0.20074591040611267, 0.09748846292495728, -0.03412321209907532, 0.47553834319114685, -0.43635278940200806, 0.040255021303892136, 0.15630224347114563, 0.23568251729011536, 0.42222902178764343, -0.3856208026409149, -0.1175236627459526, 0.13966792821884155, 0.17106857895851135, -0.2858331799507141, -0.14203210175037384, 0.14067037403583527, -0.20545999705791473, 0.024987023323774338, 0.2416565716266632, 0.14429602026939392, -0.5312743186950684, 0.3154035806655884, 0.03654414787888527, 0.18297311663627625, -0.17338857054710388, 0.09529630839824677, 0.42065131664276123, 0.10133881866931915, 0.14036400616168976, 0.13258497416973114, -0.031038925051689148, -0.010568469762802124, 0.04780084639787674, -0.07501188665628433, 0.30365830659866333, -0.35711127519607544, 0.08801953494548798, -0.22013184428215027, -0.5279709696769714, 0.3481959104537964, 0.2502371072769165, -0.06982427835464478, 0.12569333612918854, 0.015217915177345276, 0.08344879746437073, -0.06153774634003639, 0.22070686519145966, -0.35151639580726624, -0.11219990253448486, -0.11604038625955582, 0.030032366514205933, 0.0056704021990299225, -0.33824607729911804, 0.023781344294548035, 0.22826147079467773, -0.04873361811041832, 0.14405813813209534, 0.15894335508346558, 0.12192054092884064, -0.18033148348331451, -0.2696211040019989, 0.2587577998638153, 0.08426083624362946, -0.04098845273256302, -0.18214431405067444, 0.2920795679092407, 0.05271787568926811, 0.06037543714046478, 0.08340469747781754, 0.2604433298110962, 0.45208969712257385, 0.5969563722610474, 0.1655598133802414, -0.22173531353473663, -0.018945634365081787, -0.02312762290239334, -0.0941990464925766, 0.7059615850448608, -0.18014541268348694, -0.2599339783191681, 0.3139139711856842, 0.053090378642082214, -0.14712566137313843, 0.025386542081832886, -0.09723323583602905, -0.29402652382850647, -0.09076368808746338, 0.5079383254051208, -0.023623555898666382, 0.017498306930065155, -0.09955525398254395, 0.22200563549995422, -0.22758078575134277, -0.24917133152484894, 0.43264827132225037, 0.22700980305671692, 0.13768312335014343, 0.07760770618915558, 0.03419770672917366, -0.01862877979874611, 0.17660930752754211, 0.27225014567375183, 0.09021554887294769, -0.37866896390914917, -0.3421306610107422, -0.7264227867126465, 0.34543463587760925, -0.15764936804771423, -0.06199539452791214, 0.11724404245615005, 0.13262048363685608, 0.011623084545135498, 0.10419221967458725, 0.3146461844444275, -0.06412716209888458, -0.20501507818698883, -0.009851120412349701, -0.17590190470218658, -0.30046600103378296, -0.15927241742610931, -0.1377241462469101, -0.19204318523406982, -0.570371687412262, 0.20179173350334167, 0.11519220471382141, 0.048259980976581573, -0.12294785678386688, 0.20971795916557312, 0.0996086448431015, 0.20801933109760284, 0.1852952241897583, 0.15405967831611633, 0.6352709531784058, -0.06470819562673569, -0.22548364102840424, -0.09719967842102051, -0.11416762322187424, -0.15863946080207825, 0.3163210451602936, -0.11485837399959564, 0.346305251121521, -0.10015273094177246, -0.3019840121269226, -0.3574921488761902, 0.391195684671402, 0.24973507225513458, -0.32214364409446716, -0.08384865522384644, 0.07282237708568573, -0.25578758120536804, 0.2184898853302002, 0.025973059237003326, 0.11381366848945618, 0.1335933804512024, 0.45933797955513, -0.16759715974330902, -0.24502159655094147, 0.46466848254203796, -0.21608740091323853, -0.15968376398086548, -0.12332261353731155, 0.2576863765716553, -0.27439379692077637, -0.2150910645723343, -0.6132485270500183, 0.17594388127326965, 0.4812816381454468, -0.13565248250961304, -0.1669333428144455, 0.2582968473434448, -0.20368404686450958, 0.3876017928123474, 0.016390733420848846, 0.3485475182533264, 0.012252584099769592, -0.22214098274707794, -0.053688958287239075, -0.11852740496397018 ]
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.1248532235622406, -0.05359437316656113, 0.029330864548683167, 0.07398074865341187, 0.20472730696201324, -0.0245770625770092, 0.24893778562545776, 0.421301007270813, -0.4746897220611572, 0.17516213655471802, 0.13618361949920654, 0.5513851642608643, -0.3347685933113098, -0.08509577065706253, 0.034483231604099274, 0.1865639090538025, -0.09211177378892899, 0.13845610618591309, -0.26789000630378723, -0.21307456493377686, 0.03989238291978836, 0.3964000642299652, -0.167628675699234, -0.0685962587594986, -0.3741774559020996, 0.24487879872322083, 0.2273777425289154, -0.23149117827415466, 0.10548394918441772, -0.4600350558757782, 0.29247498512268066, 0.14869728684425354, 0.01945996657013893, 0.37023040652275085, -0.00011912988702533767, 0.006321899592876434, 0.2757810354232788, 0.03525397181510925, -0.2775222361087799, -0.44794362783432007, -0.06502625346183777, 0.10858652740716934, 0.05303342640399933, 0.14755335450172424, -0.4656311273574829, -0.17931348085403442, 0.23373086750507355, -0.34094759821891785, 0.029201947152614594, 0.4485590159893036, 0.06858421862125397, -0.0634167492389679, -0.2496635466814041, -0.08246708661317825, 0.36893507838249207, 0.012542489916086197, -0.06251826137304306, 0.05927054584026337, -0.06833608448505402, 0.2411298155784607, 0.21967539191246033, 0.37554869055747986, -0.03132486715912819, 0.012995792552828789, -0.1954188048839569, -0.09356404840946198, -0.2540265917778015, -0.3487868309020996, 0.07476763427257538, 0.2519178092479706, 0.7106896638870239, -0.295862078666687, -0.32151082158088684, -0.26833227276802063, 0.33699488639831543, -0.054221011698246, 0.29112058877944946, 0.025418410077691078, -0.29449257254600525, 0.16272510588169098, -0.562990665435791, 0.07423975318670273, -0.3041751980781555, 0.1429007351398468, -0.09742779284715652, -0.35963353514671326, -0.14377129077911377, 0.18454164266586304, -0.1975928694009781, 0.11638636887073517, 0.11415448784828186, 0.18843981623649597, -0.03961363062262535, -0.092384934425354, -0.32062527537345886, -0.09855629503726959, 0.05592559278011322, -0.08153826743364334, 0.07171384245157242, 0.31728649139404297, 0.28429606556892395, 0.06759421527385712, -0.41746553778648376, -0.13550496101379395, 0.03223126754164696, 0.14816942811012268, 0.18230848014354706, -0.17784059047698975, 0.1011013388633728, -0.07203102856874466, -0.1533753126859665, 0.013992469757795334, 0.018982846289873123, -0.07210031896829605, -0.1062539666891098, -0.015302974730730057, 0.35719239711761475, -0.11757734417915344, -0.5631762742996216, 0.1525678187608719, -0.5025038123130798, 0.21358942985534668, -0.05205604061484337, 0.19477376341819763, -0.21541759371757507, 0.13501755893230438, 0.2971951365470886, 0.08706346154212952, 0.024878641590476036, -0.3115251958370209, -0.09980250895023346, -0.1971575915813446, 0.18287953734397888, 0.09686344116926193, 0.24400939047336578, -0.21037285029888153, 0.21230562031269073, 0.2571353316307068, 0.26150357723236084, -0.15388503670692444, -0.09266508370637894, -0.032623037695884705, 0.25298041105270386, 0.266844779253006, -0.12482000887393951, 0.39391276240348816, -0.05651185289025307, 0.11579389870166779, 0.10667093843221664, 0.2571236491203308, -0.06512238830327988, -0.006171364337205887, 0.56234210729599, 0.06058840453624725, -0.18365353345870972, -0.3006519079208374, -0.10712078958749771, 0.33330464363098145, 0.04427948221564293, -0.06683284044265747, 0.25042009353637695, -0.2751781940460205, -0.22715210914611816, 0.01588255912065506, 0.13589221239089966, 0.15665346384048462, -0.5853273868560791, 0.02432839572429657, 0.19456137716770172, 0.06847167015075684, 0.3222920596599579, 0.30327489972114563, 0.16519595682621002, 0.18117085099220276, -0.08166635036468506, 0.11702239513397217, -0.21993228793144226, -0.3883664608001709, -0.2060423642396927, 0.2092837244272232, -0.2708127796649933, 0.2642597258090973, -0.08326929062604904, -0.21921783685684204, 0.08026697486639023, 0.09913280606269836, 0.36406880617141724, -0.18916095793247223, 0.2466825693845749, -0.10566973686218262, -0.38311508297920227, -0.14455759525299072, 0.1893382966518402, 0.17552602291107178, -0.01771165058016777, 0.05326473340392113, -0.2982356548309326, -0.016457010060548782, 0.40270599722862244, 0.039410389959812164, -0.0291293878108263, -0.025731272995471954, 0.3644508421421051, -0.17753060162067413, 0.2638618052005768, -0.15542253851890564, 0.28723084926605225, 0.027291633188724518, 0.1604725867509842, 0.21987178921699524, 0.5499915480613708, -0.16933013498783112, -0.17794591188430786, -0.0762333944439888, -0.07281973958015442, -0.06831657886505127, 0.058260202407836914, 0.14865826070308685, -0.1489167958498001, 0.3247831463813782, -0.028516924008727074, 0.47125446796417236, -0.48813435435295105, -0.015310307964682579, -0.08798126876354218, -0.1088411957025528, 0.30339106917381287, -0.09879961609840393, 0.11652988195419312, 0.24114254117012024, 0.017299935221672058, 0.08729687333106995, -0.11014295369386673, 0.36368218064308167, 0.22695060074329376, 0.1219177171587944, -0.36820119619369507, -0.40272217988967896, 0.23166881501674652, -0.5078888535499573, -0.4552854597568512, 0.5677574276924133, -0.02766474336385727, 0.20081722736358643, -0.1534447968006134, 0.06044204905629158, 0.08074945211410522, 0.04800029098987579, 0.03484967350959778, 0.036076925694942474, -0.019408436492085457, -0.10792061686515808, -0.4708500802516937, -0.16076621413230896, 0.26079437136650085, -0.20982719957828522, 0.1590224653482437, -0.11612904071807861, -0.32037854194641113, 0.13688907027244568, 0.3158732056617737, -0.050239793956279755, 0.0395466573536396, 0.2744303345680237, -0.1326722502708435, 0.2099824845790863, 0.037569835782051086, 0.1719762533903122, 0.23739278316497803, 0.20091958343982697, 0.0807267278432846, -0.05354765057563782, -0.07819267362356186, -0.2605934739112854, 0.292392373085022, 0.19453933835029602, -0.36514031887054443, 0.38403865694999695, 0.22037054598331451, 0.04898097366094589, -0.43722662329673767, -0.004981357604265213, -0.19044315814971924, 0.28245672583580017, -0.4494036138057709, -0.1749294400215149, -0.3977605998516083, 0.10783591121435165, -0.1361621469259262, -0.021801214665174484, 0.07109594345092773, 0.0436788946390152, 0.3717917799949646, -0.002707146108150482, -0.08599741756916046, 0.2743450701236725, 0.1501094251871109, 0.19156602025032043, -0.11042220890522003, 0.17134225368499756, -0.009668562561273575, 0.1939067393541336, -0.4710179567337036, 0.0452454499900341, -0.16064685583114624, -0.26446589827537537, 0.15043792128562927, -0.192573681473732, -0.10991501808166504, -0.4143470525741577, -0.07154660671949387, 0.1478731632232666, -0.19166199862957, 0.4232136011123657, 0.2326943576335907, -0.04261334240436554, -0.18604324758052826, -0.194431871175766, -0.18875974416732788, -0.031071532517671585, -0.06713023036718369, 0.07144804298877716, -0.13463984429836273, 0.04158445820212364, -0.2561311721801758, -0.8888221383094788, 0.10030187666416168, -0.22046788036823273, 0.7185177803039551, 0.05993497744202614, -0.04604915529489517, 0.541235625743866, 0.2822047173976898, 0.20129117369651794, 0.07925323396921158, 0.18630698323249817, -0.3713887333869934, -0.12307998538017273, 0.07925876975059509, 0.02934490144252777, -0.4573098123073578, -0.2983144521713257, 0.19363878667354584, 0.15480299293994904, 0.2074100375175476, -0.49533796310424805, 0.34973475337028503, -0.1089944839477539, -0.13062995672225952, 0.010287381708621979, -0.1989101767539978, 0.2906796336174011, -0.20380502939224243, -0.11591535806655884, -0.2554521858692169, 0.1175917237997055, 0.3896958529949188, 0.10179716348648071, 0.11271236836910248, 0.3398635685443878, 0.21604850888252258, 0.20030584931373596, 0.3506774306297302, 0.7158650159835815, 0.08281927555799484, 0.03901807963848114, -0.12803447246551514, 0.4244533181190491, -0.07285609096288681, -0.05283229798078537, 0.16007721424102783, 0.059085264801979065, -0.10871170461177826, 0.4583730697631836, -0.08424337208271027, -0.025512346997857094, -0.029336724430322647, -0.06426836550235748, -0.09048968553543091, -0.32777196168899536, -0.02252134494483471, -0.458032488822937, 0.05129705369472504, 0.15355102717876434, 0.2963804602622986, 0.1280052810907364, -0.11446712911128998, -0.04528599604964256, 0.1441747546195984, 0.31945687532424927, -0.12577581405639648, -0.3150956928730011, -0.36130818724632263, -0.4153895974159241, 0.061277836561203, 0.18691802024841309, 0.5611059665679932, -0.2880936861038208, -0.20197248458862305, 0.2231445014476776, 0.10430192947387695, 0.42151176929473877, -0.33805492520332336, -0.042292945086956024, 0.125164195895195, 0.27286970615386963, -0.29762160778045654, -0.07354490458965302, -0.3262292742729187, -0.2899867296218872, 0.27916112542152405, 0.09725246578454971, -0.11770740151405334, -0.13511939346790314, 0.06866110116243362, 0.05842120572924614, 0.016731228679418564, -0.09900462627410889, -0.033219657838344574, 0.030632667243480682, -0.02727966569364071, 0.16377729177474976, 0.17259740829467773, -0.12480328977108002, -0.4919121563434601, -0.384904146194458, -0.055465325713157654, 0.18964293599128723, 0.5516815185546875, 0.022110428661108017, 0.2840610146522522, -0.13086830079555511, 0.24397921562194824, 0.23573744297027588, -0.29603111743927, 0.2580792307853699, 0.19365929067134857, 0.11734934151172638, -0.04140198230743408, 0.13703805208206177, -0.1260073035955429, 0.3830222487449646, 0.3855096995830536, -0.434981107711792, -0.0189775750041008, -0.33858704566955566, 0.18403343856334686, -0.2829490602016449, 0.34594225883483887, 0.4015248417854309, -0.14415410161018372, -0.1260790377855301, -0.4360535442829132, 0.41818416118621826, 0.022923704236745834, -0.16401304304599762, 0.45574912428855896, 0.16198140382766724, -0.24609880149364471, 0.1927158087491989, -0.15675196051597595, 0.809589684009552, 0.18712908029556274, 0.2667505741119385, 0.3340380787849426, 0.11093410849571228, 0.16091933846473694, -0.42877471446990967, 0.035683780908584595, -0.005585040897130966, 0.06986437737941742, -0.13060851395130157, 0.08970144391059875, -0.16814222931861877, 0.37976449728012085, -0.29194173216819763, -0.07839047908782959, 0.21016265451908112, 0.19728288054466248, 0.2774972915649414, -0.07884645462036133, -0.25814053416252136, 0.018633145838975906, 0.08974485844373703, 0.045830853283405304, 0.058743901550769806, 0.30579471588134766, 0.2888178825378418, -0.12820428609848022, 0.009776148945093155, -0.2652781903743744, -0.6595226526260376, 0.020324595272541046, -0.5996918678283691, -0.0947101041674614, 0.14892058074474335, -0.3863413333892822, 0.18383058905601501, 0.3397497832775116, 0.17645516991615295, 0.43374037742614746, -0.4633074104785919, -0.026798885315656662, 0.25110962986946106, 0.11319837719202042, -0.02462800033390522, -0.08301439881324768, 0.3481515944004059, -0.08403261005878448, -0.1434064656496048, -0.07100499421358109, 0.028120476752519608, 0.16605649888515472, -0.1545240581035614, -0.04968529939651489, -0.11856763064861298, -0.342631071805954, 0.04976992681622505, 0.09896142780780792, 0.15278886258602142, -0.23698405921459198, 0.06800437718629837, -0.10388156771659851, -0.06512390822172165, 0.2742635905742645, 0.2779470384120941, -0.5032385587692261, -0.108957439661026, 0.537933886051178, -0.0835733413696289, 0.10776513814926147, 0.6409000158309937, -0.189385786652565, -0.05129820108413696, -0.277519553899765, 0.016869887709617615, 0.25908511877059937, -0.3368992507457733, 0.17191676795482635, 0.032126761972904205, 0.30066460371017456, 0.09660174697637558, -0.04447350278496742, 0.04630462825298309, -0.058990903198719025, -0.2513121962547302, -0.23893380165100098, -0.08124818652868271, 0.1200234666466713, 0.025225698947906494, 0.29118025302886963, 0.027838699519634247, 0.3665982484817505, 0.0767601951956749, -0.34703612327575684, -0.2017674595117569, -0.023725567385554314, 0.055757805705070496, 0.08048588782548904, -0.04783487319946289, 0.027862749993801117, 0.11072719097137451, 0.05451906844973564, 0.01495874859392643, 0.10270851850509644, -0.13355222344398499, -0.08336611092090607, -0.2990177869796753, 0.151118665933609, 0.20114633440971375, 0.11307334899902344, -0.015308375470340252, 0.0650835931301117, -0.05426075682044029, -0.06005212664604187, 0.07611532509326935, 0.38089242577552795, 0.017418142408132553, 0.3620303273200989, 0.11884409189224243, 0.3976138234138489, -0.09363579005002975, -0.26238757371902466, -0.03544050455093384, -0.07757268846035004, 0.16449406743049622, -0.06243724375963211, -0.18508173525333405, -0.058099791407585144, -0.13248774409294128, 0.022096749395132065, 0.0893227756023407, 0.15186074376106262, -0.05466017872095108, -0.2896292805671692, 0.2135312557220459, 0.15491025149822235, 0.050664305686950684, 0.31790098547935486, -0.15313807129859924, -0.2708629071712494, -0.11027587205171585, 0.07899051159620285, -0.024609001353383064, 0.017690163105726242, -0.3351351320743561, -0.015275905840098858, -0.025513162836432457, 0.003125518560409546, 0.055481743067502975, -0.3541378080844879, 0.36231714487075806, -0.01250035222619772, 0.11213479936122894, -0.5960307121276855, 0.1129642128944397, 0.37470000982284546, 0.061339858919382095, -0.00791802629828453, -0.2586425244808197, -0.2529653012752533, -0.0035197436809539795, 0.48609256744384766, -0.24271830916404724, 0.27490484714508057, -0.1475830376148224, -0.0262310691177845, 0.2557944357395172, -0.2615297734737396, -0.24777136743068695, 0.20552396774291992, -0.46312713623046875, 0.16095563769340515, 0.1013554185628891, 0.40353327989578247, -0.046325717121362686, 0.10066626220941544, -0.21050311625003815, -0.021032147109508514, -0.14807412028312683, -0.15863975882530212, -0.35758039355278015, -0.08875396847724915, -0.13836486637592316, -0.17162908613681793, -0.08024272322654724, -0.02858557552099228, 0.12382256239652634, 0.23923349380493164, -0.2778196334838867, -0.5319435596466064, -0.24919772148132324, -0.1834072768688202, 0.2514197826385498, -0.11409881711006165, 0.3520142436027527, 0.10312911123037338, -0.018660515546798706, 0.1629294455051422, 0.3187714219093323, 0.5043588876724243, 0.17908240854740143, -0.10142138600349426, 0.12033814936876297, -0.299843966960907, -0.005622124299407005, 0.0208827406167984, 0.623943567276001, 0.03267841786146164, 0.11734287440776825, 0.05098652467131615, 0.05189190059900284, 0.0013064295053482056, 0.04136103019118309, -0.00849892571568489, 0.04003811627626419, -0.6968816518783569, 0.41766414046287537, 0.01760837994515896, 0.23933878540992737, -0.20144876837730408, -0.04128601402044296, -0.21955257654190063, 0.34183427691459656, 0.6031690835952759, 0.18642187118530273, 0.01860937848687172, -0.09348343312740326, 0.055507972836494446, -0.18102307617664337, 0.12129200994968414, 0.07660215348005295, -0.004844993352890015, -0.10684610158205032, -0.019550643861293793, -0.21396896243095398, 0.08992486447095871, 0.2652164101600647, 0.2187449187040329, 0.01500638760626316, -0.1638362854719162, 0.0671151876449585, 0.0615040622651577, -0.009866699576377869, -0.11820502579212189, -0.2539229989051819, 0.2244304120540619, -0.19698739051818848, 0.015161875635385513, -0.006939545273780823, 0.14061574637889862, 0.14958617091178894, -0.07372301071882248, -0.13266345858573914, 0.1910305619239807, -0.145440936088562, -0.05707657337188721, -0.07595007121562958, 0.17733636498451233, 0.3487189710140228, 0.06860241293907166, 0.09640739858150482, 0.35995054244995117, -0.09155607223510742, 0.07731148600578308, -0.41088321805000305, -0.14205172657966614, -0.22995956242084503, 0.2994231581687927, 0.04981209337711334, 0.3389115631580353, 0.006641939282417297, -0.34420594573020935, 0.13541510701179504, 0.2597315311431885, 0.33301323652267456, -0.16282778978347778, -0.14009791612625122, 0.04773193597793579, -0.32309162616729736, 0.21396777033805847, 0.00005582161247730255, 0.2621961236000061, 0.043066397309303284, 0.1607140749692917, -0.5121688842773438, -0.9930135607719421, 0.625044047832489, -0.7181704044342041, -0.2236548662185669, -0.14277756214141846, 0.2892628312110901, 0.3226873576641083, -0.10158299654722214, -0.5634548664093018, -0.0728687271475792, 0.469315767288208, -0.04016982018947601, -0.09203134477138519, 0.11232133209705353, 0.1479112207889557, 0.3100132346153259, -0.16443325579166412, 0.962283730506897, 0.3237745761871338, -0.1628979593515396, 0.18723973631858826, -0.4706273674964905 ]
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.08848518133163452, 0.03739604353904724, -0.021385841071605682, 0.14961272478103638, -0.018927261233329773, -0.07773534208536148, 0.2245490401983261, 0.36217841506004333, -0.42948922514915466, 0.16333650052547455, 0.15252937376499176, 0.262457013130188, -0.43249064683914185, -0.020130705088377, -0.07111980766057968, 0.2396368682384491, -0.12686201930046082, 0.2598147988319397, -0.3329850435256958, -0.023115485906600952, 0.08259600400924683, 0.24257633090019226, -0.0296567901968956, 0.028361309319734573, -0.08659729361534119, -0.014304393902420998, 0.2008776217699051, -0.09348522871732712, -0.3122859001159668, -0.6014058589935303, 0.23048703372478485, 0.27640724182128906, 0.0768749862909317, 0.16537605226039886, -0.00012745545245707035, 0.10650655627250671, 0.1652289628982544, -0.02306026592850685, -0.49072176218032837, -0.1459859162569046, -0.180824875831604, 0.11329276859760284, 0.011158030480146408, -0.003240726888179779, 0.1294730305671692, -0.23413434624671936, 0.20617108047008514, -0.19666817784309387, 0.3206735849380493, 0.5292423963546753, 0.004974253475666046, 0.23936736583709717, -0.12274821102619171, 0.11940992623567581, 0.3548436760902405, -0.10677242279052734, -0.056146636605262756, 0.07665668427944183, 0.03786667808890343, 0.27338042855262756, 0.213460311293602, 0.3169708251953125, 0.08640561997890472, -0.11383228003978729, -0.2907952070236206, -0.1938820779323578, -0.15452027320861816, -0.23830664157867432, -0.2170848846435547, 0.3288348615169525, 0.7538299560546875, -0.31502437591552734, -0.608788788318634, -0.3401030898094177, 0.19125835597515106, -0.14305509626865387, 0.39232128858566284, -0.19024500250816345, -0.2573823928833008, 0.3908390402793884, -0.639011561870575, -0.20490993559360504, -0.30793285369873047, 0.12957222759723663, 0.015354178845882416, -0.114757239818573, 0.022579483687877655, 0.12358813732862473, -0.17346085608005524, 0.06426656246185303, 0.1816408336162567, 0.1108352541923523, 0.03872954100370407, -0.01097490731626749, -0.14754997193813324, -0.34127143025398254, 0.042393967509269714, -0.18611270189285278, 0.0421026274561882, 0.4260541796684265, 0.5204824805259705, 0.06429051607847214, -0.5445073843002319, -0.07751478999853134, 0.17376470565795898, 0.2407868355512619, -0.025257542729377747, -0.26166242361068726, 0.15693020820617676, 0.04260283708572388, 0.19033178687095642, 0.17482838034629822, 0.02370360866189003, -0.3405405580997467, -0.12930141389369965, 0.11949269473552704, 0.3347740173339844, -0.18882402777671814, -0.5020067691802979, 0.07760565727949142, -0.45458126068115234, 0.1854373961687088, -0.07164100557565689, 0.1207243874669075, -0.22419479489326477, 0.4196053743362427, 0.15545882284641266, 0.06409884989261627, -0.13485226035118103, -0.4040714502334595, 0.1883215755224228, -0.15597158670425415, 0.19084392488002777, -0.049908265471458435, 0.2960178256034851, -0.372298002243042, 0.08815992623567581, 0.14277659356594086, 0.18106362223625183, -0.12146452069282532, -0.12798725068569183, 0.10105697810649872, 0.1780339926481247, 0.21321624517440796, -0.18967150151729584, 0.1723003387451172, -0.08058817684650421, 0.08845637738704681, -0.017210759222507477, -0.019968077540397644, -0.17412564158439636, -0.11035751551389694, 0.3484818935394287, -0.0193806029856205, -0.22609643638134003, -0.2067110538482666, -0.0028783679008483887, 0.13417477905750275, -0.03540097922086716, -0.2685542106628418, 0.14787594974040985, -0.11580494046211243, -0.3188744783401489, -0.015279592014849186, 0.01573038659989834, 0.21443966031074524, -0.6616703271865845, -0.13491180539131165, 0.18249234557151794, -0.00982346385717392, -0.0802723839879036, 0.25918811559677124, -0.01824857108294964, 0.13359850645065308, -0.02142522856593132, 0.06138487160205841, -0.043106965720653534, -0.42886775732040405, -0.3187323212623596, 0.18909302353858948, -0.27187052369117737, 0.23654697835445404, 0.17325928807258606, -0.23176661133766174, 0.32578882575035095, -0.1745205819606781, 0.17625883221626282, -0.2554750442504883, 0.17862190306186676, -0.17102846503257751, -0.43899771571159363, -0.4511154294013977, 0.031019408255815506, -0.05333765596151352, 0.06812021881341934, 0.06481923907995224, 0.05645306780934334, 0.04239794984459877, 0.348816841840744, 0.08292902261018753, 0.01181639265269041, -0.03380243480205536, 0.20004616677761078, -0.08436428010463715, 0.018615227192640305, -0.2243669331073761, 0.08376692980527878, 0.2081041932106018, 0.07658141851425171, 0.17054355144500732, 0.42478495836257935, -0.17888016998767853, -0.2476140558719635, 0.038323163986206055, 0.18726961314678192, 0.12628516554832458, -0.03958766907453537, 0.2273302674293518, -0.08251786231994629, 0.3504413366317749, -0.2704235017299652, 0.46913498640060425, -0.4019199013710022, 0.03728436678647995, -0.05362807586789131, -0.16358399391174316, 0.24747714400291443, 0.08259089291095734, 0.10191811621189117, -0.03941209614276886, -0.10327497869729996, -0.09265599399805069, -0.024524733424186707, 0.5187947750091553, 0.15306444466114044, 0.27677950263023376, -0.1384766399860382, -0.25365740060806274, 0.2143706977367401, -0.26182758808135986, -0.3397196829319, 0.5486403107643127, -0.0972195565700531, 0.44841358065605164, -0.025512881577014923, 0.1951502114534378, 0.14047245681285858, -0.04030890017747879, 0.07058769464492798, -0.07319734990596771, -0.02130850963294506, -0.009351350367069244, -0.530404806137085, -0.17360791563987732, 0.14655925333499908, -0.2134275585412979, 0.14177808165550232, -0.14603905379772186, -0.20466338098049164, -0.08465767651796341, 0.23014463484287262, -0.021298225969076157, 0.059208475053310394, 0.15656678378582, 0.08325203508138657, 0.21178650856018066, 0.0553554892539978, 0.31839317083358765, 0.3474949896335602, 0.08310956507921219, 0.02466169372200966, 0.02140909805893898, -0.2565380334854126, -0.13020206987857819, 0.276820570230484, 0.21888895332813263, -0.3133851885795593, 0.32265686988830566, 0.20633269846439362, 0.03175387531518936, -0.43952083587646484, 0.031972017139196396, -0.040954142808914185, 0.03672444075345993, -0.6262533664703369, -0.009059714153409004, -0.5513139367103577, 0.16901686787605286, -0.33067768812179565, -0.08182643353939056, -0.1623634696006775, 0.004768557846546173, 0.5723299384117126, 0.16943758726119995, -0.08129161596298218, 0.2194671779870987, -0.08763314038515091, 0.36800384521484375, -0.19863919913768768, -0.06180175393819809, 0.038237959146499634, 0.2359498143196106, -0.41492578387260437, 0.002801915630698204, 0.027397017925977707, -0.34622982144355774, 0.2414887696504593, -0.41488105058670044, -0.3009611964225769, -0.23227937519550323, -0.0679202750325203, 0.18919938802719116, 0.06539420783519745, 0.24021129310131073, 0.34572985768318176, 0.1270103007555008, -0.014629708603024483, -0.04187175631523132, -0.27793776988983154, 0.04846741259098053, -0.11599691212177277, -0.10514955967664719, 0.13449721038341522, 0.09828394651412964, -0.28272485733032227, -0.8775436282157898, 0.08410205692052841, -0.16890911757946014, 0.4604315757751465, 0.07951994240283966, 0.18564322590827942, 0.35580354928970337, 0.3462040424346924, 0.10591501742601395, -0.04413335397839546, 0.15444381535053253, -0.08820772916078568, -0.23025839030742645, 0.09353718161582947, 0.08362018316984177, -0.2186218649148941, -0.005752231925725937, 0.2806990146636963, 0.05272301658987999, 0.3915775418281555, -0.4168849587440491, 0.2677837014198303, 0.21947979927062988, -0.13917061686515808, 0.0019316114485263824, -0.3680184781551361, 0.5466490983963013, -0.08344096690416336, 0.01569587178528309, -0.2377287745475769, 0.20562513172626495, 0.13749220967292786, 0.12257744371891022, 0.25491154193878174, 0.32310956716537476, 0.28042295575141907, 0.2665034234523773, 0.5264002084732056, 0.32630544900894165, -0.2103032022714615, 0.22470688819885254, -0.1228167787194252, 0.4726438820362091, 0.04115407541394234, 0.09224212169647217, -0.06510735303163528, -0.09600198268890381, -0.18241609632968903, 0.3834359049797058, -0.0364113412797451, -0.07709600776433945, -0.18889807164669037, 0.22595974802970886, -0.27499106526374817, -0.2729186713695526, 0.04257383570075035, -0.39524373412132263, 0.13605757057666779, 0.2876462936401367, 0.3582552969455719, 0.10156305134296417, 0.03223647177219391, -0.03198911249637604, 0.22707507014274597, 0.33973196148872375, -0.009860433638095856, -0.20522192120552063, -0.08765154331922531, -0.2094876766204834, 0.20322108268737793, 0.40692317485809326, 0.6541625261306763, -0.18643449246883392, -0.08865869045257568, 0.12884853780269623, -0.01911093480885029, 0.2862902283668518, -0.48881709575653076, -0.0456894189119339, -0.07928337156772614, 0.3533954322338104, -0.13272833824157715, -0.12948423624038696, -0.13578522205352783, -0.39848655462265015, 0.11708328127861023, 0.0794338807463646, -0.12472140789031982, -0.03305792808532715, -0.03154168277978897, 0.12648123502731323, -0.10874979197978973, 0.17634226381778717, -0.1473103165626526, -0.018723933026194572, -0.13511493802070618, -0.008912503719329834, 0.08401578664779663, -0.2780791223049164, -0.41680511832237244, -0.07251685857772827, -0.08884303271770477, 0.2681664824485779, 0.38959652185440063, 0.16215084493160248, 0.2874225676059723, -0.1167987734079361, 0.02392018586397171, 0.093040332198143, 0.09800936281681061, 0.32130950689315796, 0.2371065318584442, 0.17381703853607178, -0.18433836102485657, 0.06306029856204987, 0.08204874396324158, 0.10178331285715103, 0.541607141494751, -0.3363021910190582, -0.11839955300092697, -0.1456218808889389, 0.09618894755840302, -0.2815695106983185, 0.39414548873901367, 0.5397124886512756, -0.28542962670326233, -0.3250674605369568, -0.428925484418869, 0.4246484041213989, -0.09044794738292694, -0.22813285887241364, 0.37009918689727783, 0.10165245831012726, -0.3230117857456207, 0.15113690495491028, 0.027633797377347946, 0.9220041036605835, 0.20887286961078644, 0.20676296949386597, 0.1859177052974701, -0.12466597557067871, 0.4331420660018921, -0.5090646147727966, 0.15221144258975983, 0.11980834603309631, 0.01010924857109785, -0.36688727140426636, 0.10920102894306183, 0.09159458428621292, 0.43997079133987427, -0.17496009171009064, 0.04851913079619408, 0.19381792843341827, 0.3199467062950134, 0.24371536076068878, -0.022407107055187225, -0.4007428288459778, 0.0955585390329361, -0.1448122262954712, -0.00006276927888393402, 0.10246645659208298, 0.2897038459777832, 0.026542089879512787, -0.09099148958921432, -0.049829065799713135, -0.4163602590560913, -0.7078109383583069, -0.22666534781455994, -0.4140577018260956, -0.14788025617599487, -0.044510919600725174, -0.11906108260154724, 0.11901062726974487, 0.2762693762779236, 0.2014927715063095, 0.24185118079185486, -0.37732967734336853, 0.020052172243595123, 0.01446550339460373, 0.07429469376802444, 0.10238741338253021, -0.06534533202648163, 0.3629046678543091, -0.07452073693275452, 0.04132624715566635, 0.05395103245973587, -0.07981869578361511, -0.0671611875295639, -0.10244479775428772, -0.045586541295051575, -0.055196791887283325, -0.3396153151988983, 0.1325659155845642, -0.10264405608177185, 0.054560933262109756, -0.1985495388507843, -0.009255576878786087, -0.21274031698703766, 0.11213508248329163, 0.18858198821544647, 0.08923929929733276, -0.4363742768764496, -0.09784930944442749, 0.6311433911323547, -0.2886922061443329, 0.12894709408283234, 0.48414984345436096, -0.31600913405418396, -0.033316563814878464, -0.19413653016090393, -0.02136644348502159, -0.1992967277765274, -0.5194511413574219, 0.014784751459956169, -0.04460347071290016, 0.08007588982582092, -0.12702259421348572, 0.07336543500423431, 0.18021681904792786, 0.17705929279327393, -0.17994317412376404, -0.37724408507347107, 0.04200270026922226, 0.2579893469810486, 0.24474816024303436, 0.34691914916038513, 0.09963793307542801, 0.2187812477350235, -0.004220971837639809, -0.5193971991539001, -0.10863862931728363, -0.10017817467451096, 0.11440382152795792, 0.007444154471158981, 0.05807444453239441, 0.349564790725708, 0.07146865129470825, -0.25466999411582947, -0.14409932494163513, 0.15392440557479858, -0.14973671734333038, 0.022460315376520157, -0.2373717576265335, 0.22851625084877014, 0.0468575581908226, 0.1454446017742157, -0.04252699017524719, -0.016445457935333252, -0.030559591948986053, 0.044814448803663254, -0.08867400884628296, 0.35844719409942627, 0.10184155404567719, 0.1913815140724182, 0.1421765834093094, 0.40535157918930054, -0.24330346286296844, -0.06507138162851334, 0.06824697554111481, 0.19817237555980682, 0.12253798544406891, 0.22548671066761017, -0.20100906491279602, -0.07133148610591888, -0.16644948720932007, 0.25832441449165344, 0.22472511231899261, 0.05033444985747337, 0.05949609726667404, -0.1397152841091156, 0.24661481380462646, 0.07862809300422668, 0.35037264227867126, 0.6881961226463318, -0.11853545904159546, -0.45788609981536865, 0.18320083618164062, -0.027099071070551872, -0.13172383606433868, -0.02542007714509964, -0.30054330825805664, 0.04658566042780876, -0.16275554895401, 0.12730033695697784, 0.014953847974538803, -0.35178327560424805, 0.4608772397041321, 0.12135764211416245, 0.14003592729568481, -0.42946404218673706, 0.1858082115650177, 0.6682863235473633, 0.0034416131675243378, 0.21896974742412567, -0.4196910858154297, -0.30387112498283386, 0.1169406920671463, 0.3170003294944763, -0.3769647181034088, 0.26903241872787476, -0.17610085010528564, -0.07764698565006256, 0.004576459527015686, -0.11818043887615204, -0.3301258981227875, 0.28450608253479004, -0.05860555171966553, 0.47382745146751404, 0.5105354189872742, 0.514228105545044, -0.017204228788614273, -0.09095649421215057, -0.4596336781978607, 0.09346740692853928, 0.08788777887821198, -0.19864925742149353, -0.5646132826805115, -0.26395830512046814, -0.14811043441295624, -0.02020888775587082, -0.16724811494350433, 0.11140581220388412, 0.21923893690109253, 0.28841906785964966, -0.27790719270706177, -0.5320425033569336, -0.21588340401649475, -0.23740226030349731, 0.317085325717926, -0.20494365692138672, 0.27019330859184265, 0.20360583066940308, 0.0774114727973938, 0.2706264555454254, 0.31612202525138855, 0.40583375096321106, 0.09155818074941635, 0.007993780076503754, 0.026318233460187912, -0.2494976669549942, 0.2277773767709732, 0.02649807184934616, 0.4185412526130676, -0.0022920966148376465, 0.16655327379703522, 0.336088091135025, -0.029655490070581436, 0.05638507008552551, 0.18972745537757874, -0.3109249472618103, 0.016030004248023033, -0.813258171081543, 0.3678290545940399, -0.019312001764774323, 0.25328531861305237, -0.20531347393989563, 0.035972170531749725, -0.03774794563651085, 0.363925039768219, 0.37465354800224304, 0.2076764702796936, 0.07155489921569824, -0.0014273228589445353, -0.0013188943266868591, 0.04279596358537674, 0.18326391279697418, 0.31724631786346436, -0.059741102159023285, 0.011521617881953716, -0.017708994448184967, -0.5737124085426331, 0.042316652834415436, 0.05103761702775955, 0.06254560500383377, -0.010965574532747269, -0.2795845568180084, 0.22456124424934387, 0.31195640563964844, 0.143935889005661, -0.03900422900915146, -0.2761302888393402, 0.3555087745189667, -0.14906266331672668, 0.06748300045728683, -0.03360159695148468, 0.20493963360786438, 0.09367910772562027, -0.4758705496788025, 0.12594552338123322, 0.06968588382005692, -0.2321203351020813, -0.04118704795837402, -0.023927655071020126, 0.1523924022912979, 0.1186007410287857, 0.20390506088733673, 0.04176245257258415, 0.35597944259643555, -0.06772913038730621, -0.11481411755084991, -0.5655720829963684, -0.09749498218297958, -0.24597394466400146, 0.31280389428138733, -0.13745953142642975, 0.3027495741844177, -0.14506272971630096, 0.044084031134843826, -0.007792612072080374, 0.38808247447013855, 0.3565620183944702, 0.09904082864522934, -0.1623941957950592, -0.2619992792606354, -0.32274091243743896, 0.13922463357448578, 0.2651118338108063, 0.2450651228427887, -0.03106135129928589, 0.1129160076379776, -0.43958765268325806, -0.7549792528152466, 0.44633957743644714, -0.5544975399971008, -0.09524501860141754, 0.016279075294733047, 0.3003906309604645, 0.3546906113624573, -0.08896283805370331, -0.5038307309150696, -0.1051773652434349, 0.3698122799396515, 0.06514571607112885, -0.047612376511096954, 0.05835041031241417, 0.11366832256317139, 0.054623689502477646, -0.02786092273890972, 1.0447943210601807, 0.2161821722984314, -0.17629778385162354, 0.10371319949626923, -0.4345046877861023 ]
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.3742082715034485, 0.14785820245742798, 0.08840712904930115, 0.0458865761756897, 0.2804531157016754, 0.1281486451625824, 0.15311121940612793, 0.37765175104141235, -0.24275590479373932, 0.2011215090751648, 0.30520081520080566, 0.4177042841911316, -0.1865011304616928, 0.11496049910783768, -0.1479027420282364, 0.009955063462257385, 0.05309244990348816, 0.2520793676376343, 0.1291811466217041, 0.006046682596206665, -0.10626402497291565, 0.17224450409412384, -0.1942494809627533, 0.28158026933670044, -0.29421713948249817, 0.11772796511650085, -0.04198126122355461, -0.047939516603946686, -0.12908245623111725, -0.5930625796318054, 0.33762165904045105, -0.15897910296916962, 0.24371516704559326, 0.3399910032749176, -0.0001267467305297032, 0.11141292750835419, 0.40630847215652466, -0.008188115432858467, -0.2549670338630676, -0.5021973848342896, -0.1217929944396019, -0.05364783853292465, 0.366494745016098, -0.08176644146442413, 0.10271153599023819, -0.7000570297241211, 0.013413673266768456, 0.04993543028831482, -0.1659475713968277, 0.32971951365470886, 0.1360018104314804, 0.06373359262943268, 0.261692076921463, -0.09751997143030167, 0.2251865267753601, 0.062126800417900085, -0.00796768069267273, 0.4649409353733063, 0.0723101943731308, -0.11018814146518707, 0.23560011386871338, -0.08482442796230316, 0.06871268898248672, -0.05136881396174431, 0.09923447668552399, 0.18255455791950226, 0.262999564409256, -0.16271039843559265, 0.19890320301055908, 0.0318581722676754, 0.5882598757743835, -0.6263429522514343, -0.4298144280910492, -0.017660263925790787, 0.2202075570821762, -0.26078346371650696, 0.22628560662269592, 0.2429373860359192, -0.10094064474105835, 0.16287265717983246, -0.05700218304991722, -0.12062045931816101, -0.063535675406456, -0.016482196748256683, -0.42225316166877747, 0.3365800678730011, 0.18812881410121918, 0.14030861854553223, -0.11323937773704529, -0.009330164641141891, 0.002508241683244705, -0.10973338782787323, 0.10199202597141266, -0.07801549881696701, -0.27467378973960876, -0.014431975781917572, -0.07753478735685349, 0.16330918669700623, 0.1757594347000122, 0.20840875804424286, 0.003033781424164772, -0.2792119085788727, 0.2704054117202759, 0.08606017380952835, 0.10359556972980499, 0.12690798938274384, -0.020438410341739655, 0.15629254281520844, 0.10058419406414032, -0.10707677900791168, 0.06900352239608765, -0.0031415708363056183, -0.05813116952776909, -0.05682513117790222, 0.381554514169693, 0.028341511264443398, 0.7426701188087463, -0.23551154136657715, -0.2066708356142044, 0.1739300787448883, -0.3724195063114166, -0.17932522296905518, -0.266004741191864, 0.21872413158416748, 0.030557338148355484, 0.360716313123703, -0.1849217265844345, 0.3320739269256592, -0.0956055149435997, -0.23560751974582672, -0.11359508335590363, 0.1457727998495102, 0.0022751912474632263, -0.15496161580085754, 0.026871446520090103, -0.31019312143325806, -0.08789622783660889, 0.3905240595340729, 0.001473061740398407, 0.12603123486042023, -0.14159896969795227, -0.0541737861931324, -0.1536242663860321, 0.47547647356987, -0.2805727422237396, 0.2540760040283203, 0.13056620955467224, -0.468142569065094, -0.3429703116416931, 0.21160995960235596, -0.2033776342868805, -0.40394872426986694, -0.4072827398777008, 0.12810862064361572, -0.12722761929035187, -0.1809757798910141, -0.14971867203712463, -0.00526268407702446, 0.23063430190086365, -0.1509692519903183, -0.0146375373005867, -0.6668524742126465, 0.10322314500808716, -0.31990471482276917, 0.24670228362083435, 0.1543767750263214, -0.6335016489028931, 0.00875084102153778, 0.17047914862632751, -0.19002188742160797, 0.16581612825393677, -0.1197972446680069, 0.005514652002602816, -0.13987520337104797, 0.029038583859801292, 0.04766327142715454, 0.34689420461654663, -0.19558557868003845, -0.3685944378376007, 0.07286816835403442, 0.05808325111865997, -0.00023846514523029327, 0.25941330194473267, -0.31390270590782166, 0.0474226176738739, 0.18081912398338318, -0.1679070144891739, 0.08111010491847992, 0.0019101519137620926, 0.01607026718556881, -0.17401179671287537, -0.04215708747506142, 0.3828538656234741, 0.2783958315849304, 0.14992138743400574, -0.16017550230026245, 0.02936161309480667, -0.20058543980121613, 0.12867233157157898, -0.08686092495918274, 0.08510541915893555, 0.026491906493902206, 0.40463724732398987, -0.14303967356681824, 0.03394696116447449, -0.21758532524108887, -0.31970056891441345, 0.18671199679374695, 0.06987382471561432, 0.026532599702477455, -0.35607922077178955, -0.18485936522483826, -0.1795908808708191, 0.10886504501104355, -0.108489990234375, -0.028328288346529007, 0.005802307277917862, 0.38322511315345764, 0.07114613056182861, 0.11154818534851074, -0.29748228192329407, 0.2475374937057495, 0.02424061857163906, 0.178135484457016, -0.021211668848991394, 0.47275906801223755, -0.40825894474983215, -0.31531229615211487, 0.09022590517997742, 0.045706357806921005, 0.10286220908164978, 0.039166633039712906, -0.00020596664398908615, 0.2879416048526764, -0.0028906366787850857, 0.05846555531024933, -0.027676425874233246, 0.22501394152641296, 0.013864932581782341, -0.17250192165374756, -0.1926613599061966, 0.25658881664276123, 0.0011451952159404755, 0.4009825885295868, 0.11842475831508636, 0.3715969920158386, 0.5518635511398315, 0.3002984821796417, -0.02346075139939785, 0.0936502069234848, -0.15085238218307495, -0.016852468252182007, 0.10855717211961746, -0.08392024040222168, 0.039352063089609146, -0.10692934691905975, 0.21006660163402557, -0.007699968293309212, -0.5035148859024048, 0.08401940762996674, 0.38331764936447144, -0.05956042557954788, 0.14520251750946045, 0.14363031089305878, -0.2609051764011383, 0.0484304204583168, 0.03393308445811272, 0.134577676653862, 0.2741986811161041, 0.1518545150756836, -0.12465684115886688, 0.1309269219636917, -0.3188163936138153, 0.16480037569999695, 0.1828400045633316, 0.10894755274057388, 0.17599841952323914, 0.18312010169029236, 0.28292956948280334, 0.08661849796772003, -0.05670750513672829, -0.32401448488235474, 0.1387683004140854, 0.3523799180984497, -0.43444669246673584, 0.2530079782009125, -0.34441351890563965, 0.2502819895744324, -0.16690950095653534, -0.18621043860912323, -0.4147603511810303, -0.2429388463497162, -0.030438430607318878, 0.09636931866407394, 0.10050366818904877, 0.2397010177373886, -0.31220710277557373, -0.12963183224201202, 0.046282537281513214, -0.3988124132156372, -0.21866869926452637, -0.1758573055267334, -0.44862908124923706, -0.019090810790657997, 0.20133687555789948, -0.39512500166893005, 0.03965191915631294, -0.21996288001537323, -0.21378622949123383, -0.30606070160865784, -0.18519720435142517, 0.08338800817728043, -0.2393285185098648, 0.29921016097068787, 0.25972986221313477, -0.03824158012866974, -0.04734867811203003, -0.09889186918735504, 0.32354554533958435, -0.3321587145328522, -0.28475844860076904, 0.10064622759819031, -0.09428592026233673, 0.03566046431660652, -0.060392603278160095, -0.4970046579837799, -0.3575111925601959, -0.1462482064962387, 0.01242414116859436, 0.04109978303313255, 0.15556924045085907, -0.06247293949127197, 0.23095175623893738, -0.12492500245571136, -0.14891217648983002, -0.010573290288448334, -0.027686525136232376, 0.003966685384511948, 0.23732517659664154, 0.006279969122260809, -0.2969490587711334, -0.0511554479598999, 0.006424948573112488, 0.08962693810462952, 0.036702871322631836, -0.31444060802459717, -0.14395050704479218, 0.05472979694604874, 0.5389252305030823, -0.32073673605918884, 0.019200365990400314, 0.2970772683620453, 0.26947832107543945, -0.036795567721128464, 0.06308893859386444, -0.1787242442369461, -0.18927976489067078, 0.14467892050743103, 0.14156821370124817, 0.17441344261169434, 0.24109208583831787, -0.0849481076002121, 0.5790002942085266, -0.07034291326999664, -0.2986295521259308, 0.2510007619857788, -0.2920910716056824, 0.34119391441345215, 0.0630534365773201, -0.17983020842075348, -0.08869792520999908, -0.04832945764064789, 0.01564006134867668, 0.25179243087768555, -0.21847990155220032, -0.14967484772205353, -0.12394265830516815, -0.2539535164833069, -0.22122621536254883, -0.04261001572012901, -0.06121136248111725, 0.03599872067570686, 0.2440868318080902, -0.055108167231082916, 0.029861144721508026, -0.040375180542469025, -0.054597072303295135, 0.14564473927021027, 0.30164945125579834, -0.21570822596549988, 0.10174940526485443, -0.18308554589748383, -0.15270757675170898, -0.18033310770988464, 0.3837950825691223, 0.04397003725171089, 0.43773913383483887, 0.15525440871715546, -0.19997191429138184, 0.08330778777599335, -0.16417111456394196, 0.5928210616111755, -0.11870608478784561, 0.12393911927938461, 0.15854015946388245, -0.1371152102947235, -0.39554205536842346, -0.4143475890159607, -0.4618227779865265, 0.08394231647253036, 0.0049624256789684296, 0.19732819497585297, -0.29529011249542236, -0.13784772157669067, 0.23053111135959625, 0.1844812035560608, 0.05069262161850929, -0.026823893189430237, -0.41646698117256165, -0.06581665575504303, -0.1691931039094925, 0.2111225724220276, -0.1269623339176178, 0.3692871034145355, -0.16570840775966644, 0.4781210720539093, -0.14052456617355347, -0.17769575119018555, 0.16546674072742462, 0.22072887420654297, 0.3384036421775818, -0.3253706991672516, -0.003250718116760254, -0.19570572674274445, 0.22428910434246063, 0.6268395185470581, 0.5107086300849915, 0.32667937874794006, -0.3425287902355194, 0.2157903015613556, 0.2769276201725006, 0.5334733724594116, -0.019867628812789917, -0.48275527358055115, -0.09585998207330704, -0.24713557958602905, 0.06028912961483002, -0.06590276211500168, -0.03210261091589928, 0.5593262314796448, -0.10960982739925385, -0.5021070837974548, -0.020202023908495903, 0.5698219537734985, 0.1894666850566864, -0.07937048375606537, 0.0957338958978653, 0.3778424859046936, -0.15573807060718536, 0.3602997660636902, -0.1334691047668457, 0.7824105024337769, 0.01754583790898323, 0.22091276943683624, 0.11558256298303604, -0.4412604570388794, 0.28626173734664917, -0.061378225684165955, 0.09111926704645157, -0.5176578164100647, -0.33662283420562744, -0.1464526653289795, -0.23950159549713135, 0.13034385442733765, 0.01456371322274208, -0.20682859420776367, 0.27470633387565613, 0.04758942127227783, 0.41162407398223877, 0.3609580397605896, 0.31710511445999146, -0.07195127010345459, 0.2720511853694916, -0.2521827518939972, -0.02175624668598175, -0.059352174401283264, 0.0917055606842041, 0.12811920046806335, 0.05869555473327637, -0.22393785417079926, -0.4248761534690857, -0.33838778734207153, 0.05846942216157913, -0.2342778444290161, -0.04213746637105942, 0.4508951008319855, -0.5700245499610901, 0.11825963854789734, 0.04261624068021774, -0.11736391484737396, -0.03296339139342308, -0.15812735259532928, -0.016440168023109436, -0.06273246556520462, 0.18405506014823914, 0.14150506258010864, 0.07661449909210205, 0.42220187187194824, -0.011286044493317604, -0.3214786648750305, 0.2916189432144165, -0.039237700402736664, 0.019097447395324707, -0.051204875111579895, -0.01982855796813965, 0.19738276302814484, -0.2740904688835144, 0.19485464692115784, -0.5745176672935486, 0.27533861994743347, -0.22365964949131012, 0.018647704273462296, -0.10245950520038605, 0.000749039463698864, -0.01631227880716324, 0.11780358850955963, -0.2898904085159302, -0.2125736027956009, 0.36669987440109253, 0.052849750965833664, 0.2823124825954437, 0.5269953608512878, -0.0676543340086937, -0.08177271485328674, -0.04540640860795975, 0.05288158357143402, 0.2541740834712982, -0.3957655131816864, -0.047170404344797134, -0.0543740876019001, 0.032748982310295105, 0.07908559590578079, 0.19848045706748962, 0.22373239696025848, 0.2555370628833771, 0.02011948451399803, -0.5458890199661255, -0.055260539054870605, 0.17430198192596436, -0.18442222476005554, 0.04644250497221947, 0.20215830206871033, 0.2829451858997345, 0.16649238765239716, -0.20048466324806213, -0.18500715494155884, -0.004421343095600605, -0.043111663311719894, 0.13986417651176453, -0.18647079169750214, 0.15304222702980042, 0.13420718908309937, -0.03256212919950485, 0.11823000013828278, -0.21702565252780914, -0.07061708718538284, -0.07409875094890594, -0.22043949365615845, 0.19820284843444824, 0.06246998906135559, 0.23938244581222534, 0.11284343898296356, 0.08842625468969345, -0.012073725461959839, -0.026475727558135986, 0.10663636028766632, 0.17856097221374512, -0.2272362858057022, 0.30603110790252686, 0.49295422434806824, -0.2622912526130676, -0.3427835702896118, -0.038649387657642365, -0.1529737412929535, -0.11577180027961731, 0.15556827187538147, 0.44990038871765137, -0.16310712695121765, 0.18110141158103943, -0.29856714606285095, 0.040074672549963, -0.23881776630878448, -0.03957714885473251, 0.18048562109470367, -0.42563825845718384, -0.2396811544895172, -0.04338333010673523, 0.4485304653644562, 0.2221599668264389, -0.23037539422512054, -0.09805911779403687, 0.11732715368270874, 0.009072265587747097, -0.44905441999435425, 0.035614751279354095, 0.2640772759914398, 0.15501631796360016, -0.041030239313840866, 0.44269198179244995, 0.4489096701145172, -0.28732189536094666, -0.0974356085062027, 0.17744016647338867, 0.49017998576164246, 0.25592708587646484, 0.16211295127868652, 0.5159203410148621, -0.04389389231801033, 0.15822213888168335, 0.4991028308868408, 0.20054639875888824, -0.09988973289728165, 0.43724167346954346, -0.11245382577180862, 0.126139298081398, 0.11646675318479538, -0.20750370621681213, 0.04234187677502632, -0.18604084849357605, 0.2623974680900574, 0.03244423121213913, 0.3752448558807373, -0.26542770862579346, 0.18940496444702148, 0.33129948377609253, 0.20597773790359497, -0.20066425204277039, -0.10158991068601608, 0.06638425588607788, -0.07940874993801117, -0.04491325467824936, 0.11131595075130463, -0.2534870505332947, -0.22936280071735382, -0.05136556923389435, -0.14251349866390228, -0.210042342543602, 0.6946980953216553, 0.2750629782676697, -0.19031791388988495, -0.30788564682006836, 0.12213832885026932, 0.11742943525314331, 0.048913102596998215, -0.27385008335113525, 0.3728538751602173, 0.08059811592102051, -0.0812721699476242, 0.22311639785766602, 0.3539699614048004, 0.8215018510818481, 0.24676193296909332, -0.075799360871315, -0.3166637718677521, -0.1711071878671646, 0.04289091378450394, 0.2550637125968933, -0.012918315827846527, 0.03286540508270264, 0.03127707168459892, 0.2523142993450165, 0.07573402673006058, 0.09421940892934799, -0.02543329820036888, 0.10409510135650635, -0.018615473061800003, -0.4002716839313507, 0.33429163694381714, 0.1377333253622055, -0.23292255401611328, 0.03347769379615784, 0.30487769842147827, -0.24637538194656372, -0.04606029391288757, 0.26615533232688904, 0.5599740743637085, -0.12006781995296478, -0.14167088270187378, -0.009210264310240746, 0.25853195786476135, 0.3113091289997101, 0.5630502104759216, 0.15854208171367645, -0.22429850697517395, -0.18599310517311096, -0.4756968319416046, 0.43088459968566895, -0.21508225798606873, -0.10645473003387451, 0.2760235071182251, 0.06394699960947037, 0.07041101902723312, 0.1569857895374298, 0.34716135263442993, 0.42097923159599304, -0.391006201505661, 0.1344711035490036, -0.3857071101665497, -0.257019966840744, 0.01940077915787697, -0.12370215356349945, -0.07056641578674316, -0.05101384222507477, 0.17150799930095673, -0.5911448001861572, 0.02388031780719757, -0.14542526006698608, -0.232188418507576, 0.17214515805244446, -0.05502796918153763, 0.5031511783599854, 0.007037661038339138, 0.6460564136505127, 0.047030285000801086, -0.19473281502723694, -0.22843915224075317, -0.10458722710609436, -0.4692245423793793, 0.6017158627510071, -0.26834774017333984, 0.22309179604053497, -0.12355321645736694, -0.33534950017929077, -0.22323010861873627, 0.25291115045547485, 0.00314147025346756, 0.08841400593519211, 0.004312695935368538, 0.12099003046751022, 0.07138700038194656, -0.040613364428281784, -0.017388442531228065, -0.058699190616607666, 0.015013288706541061, 0.30132749676704407, -0.5924042463302612, -0.6977593898773193, 0.49540796875953674, -0.31960949301719666, -0.3000353276729584, -0.43100062012672424, 0.24805045127868652, 0.01592518389225006, -0.033642277121543884, -0.5722131133079529, 0.11700545996427536, 0.4677249491214752, 0.07418446242809296, -0.22119803726673126, -0.14956457912921906, -0.0770949274301529, 0.37976139783859253, -0.11589519679546356, 0.4920499920845032, -0.2867053151130676, -0.19166022539138794, -0.23435889184474945, -0.26707130670547485 ]
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.3413379192352295, 0.20062360167503357, 0.049372684210538864, 0.057189907878637314, 0.11079324781894684, 0.08544402569532394, 0.23534011840820312, 0.28167280554771423, -0.17608493566513062, 0.13862170279026031, 0.4381379783153534, 0.3304324746131897, -0.12948466837406158, 0.2977350354194641, -0.19470371305942535, 0.07046322524547577, 0.013385884463787079, 0.14275352656841278, 0.3433140218257904, 0.05624394863843918, -0.12545019388198853, 0.23925867676734924, -0.1946721374988556, 0.12839548289775848, -0.13299909234046936, 0.03721259534358978, -0.1708894520998001, 0.04085756838321686, -0.13878147304058075, -0.46809327602386475, 0.43855687975883484, 0.09022574126720428, 0.181955486536026, 0.6217029094696045, -0.0001299516297876835, 0.1380510777235031, 0.410270631313324, -0.08854309469461441, -0.27312758564949036, -0.54704749584198, 0.07749241590499878, -0.012697262689471245, 0.398808091878891, -0.10407982766628265, 0.09655635803937912, -0.38478174805641174, -0.044882193207740784, 0.10923190414905548, -0.06790333986282349, 0.3774312138557434, 0.08926326036453247, 0.25613105297088623, 0.08928489685058594, 0.013018149882555008, 0.26643678545951843, 0.32022321224212646, -0.17905473709106445, 0.43466442823410034, 0.16347241401672363, -0.1368514746427536, 0.18223115801811218, -0.08189263939857483, -0.0010015126317739487, 0.038112711161375046, 0.058765947818756104, 0.06501369923353195, -0.005421720445156097, -0.2756885290145874, 0.20956090092658997, -0.004676833748817444, 0.47382691502571106, -0.5655615329742432, -0.49996617436408997, 0.03257124871015549, 0.13106924295425415, -0.27599722146987915, 0.19895637035369873, 0.10928873717784882, -0.24751430749893188, 0.11206750571727753, -0.17689421772956848, -0.12104950100183487, -0.07972081750631332, -0.059705838561058044, -0.45207250118255615, 0.19554403424263, 0.14159244298934937, 0.19337046146392822, 0.0005676522850990295, -0.008045457303524017, 0.0825759768486023, -0.10773389041423798, 0.1832355111837387, -0.020200233906507492, -0.23837943375110626, -0.07612575590610504, 0.07234811037778854, 0.3277748227119446, 0.27130287885665894, 0.41958385705947876, 0.04035397619009018, -0.13066786527633667, 0.17426705360412598, 0.09461885690689087, 0.06765289604663849, 0.2015315592288971, -0.03253202140331268, 0.110075443983078, 0.2688361704349518, 0.002264659386128187, 0.025136742740869522, -0.03405294567346573, -0.08208819478750229, -0.1183398887515068, 0.22016777098178864, 0.03079470619559288, 0.8329049348831177, -0.31006094813346863, -0.26441308856010437, 0.06471984833478928, -0.41314125061035156, -0.14563442766666412, -0.19496193528175354, 0.2120336890220642, 0.1063017025589943, 0.3991490602493286, -0.05411260947585106, 0.3935268521308899, -0.09280641376972198, -0.03351520001888275, -0.12549865245819092, 0.09602214395999908, 0.07411003112792969, -0.07458309829235077, 0.22435013949871063, -0.34181705117225647, -0.021451260894536972, 0.2785854935646057, 0.2317495048046112, 0.16883516311645508, 0.08478682488203049, 0.1707441210746765, -0.015824519097805023, 0.5882757902145386, -0.1170843243598938, 0.303057461977005, 0.1808871477842331, -0.46626710891723633, -0.32400843501091003, 0.294248104095459, -0.34171995520591736, -0.311984121799469, -0.15444807708263397, 0.03956236690282822, -0.33098268508911133, -0.22794035077095032, -0.2230113446712494, -0.19956523180007935, 0.2305958867073059, -0.09554348886013031, 0.037782222032547, -0.6431543231010437, 0.1101001501083374, -0.2451973408460617, 0.26608845591545105, 0.25220197439193726, -0.4532634913921356, 0.055128827691078186, -0.005815742537379265, 0.007761616259813309, 0.168653666973114, 0.10818527638912201, -0.06993655115365982, -0.13681071996688843, -0.025997910648584366, 0.08007170259952545, 0.4520938992500305, -0.4171763062477112, -0.3087327778339386, 0.25049686431884766, -0.050209708511829376, 0.05252663791179657, 0.25445830821990967, -0.4099240005016327, 0.0670626237988472, 0.1091567724943161, -0.1023419052362442, -0.05597253888845444, -0.013213178142905235, 0.1008477583527565, -0.11708724498748779, -0.05184754356741905, 0.4205114245414734, 0.2592456638813019, 0.09459704905748367, -0.1817266345024109, -0.061567001044750214, -0.35203033685684204, 0.20803731679916382, -0.05817309394478798, -0.00003457954153418541, -0.047227807343006134, 0.4154106676578522, -0.30174070596694946, 0.037663280963897705, -0.0054554566740989685, -0.28100118041038513, 0.2353978455066681, 0.13972313702106476, 0.18325088918209076, -0.4007824659347534, -0.24609647691249847, -0.29574310779571533, 0.11209283024072647, -0.18158604204654694, -0.025083385407924652, -0.07342295348644257, 0.3676604628562927, 0.09435790777206421, 0.09085194766521454, -0.24598616361618042, 0.12316127121448517, -0.05497061461210251, 0.12163867801427841, -0.015705794095993042, 0.36100873351097107, -0.3976755142211914, -0.31142088770866394, 0.14861780405044556, 0.015297550708055496, 0.1552104949951172, -0.09533525258302689, 0.049206897616386414, 0.19779279828071594, 0.01829274371266365, -0.061506956815719604, 0.02491423301398754, 0.2371176779270172, 0.09744911640882492, -0.14393986761569977, -0.13205452263355255, 0.27384939789772034, -0.052751362323760986, 0.2288922667503357, 0.008953575044870377, 0.448350727558136, 0.43373924493789673, 0.41353732347488403, -0.0052923113107681274, 0.133137047290802, -0.07898013293743134, 0.04646539315581322, -0.10265905410051346, 0.023542553186416626, 0.062319450080394745, -0.1579684019088745, 0.238557830452919, -0.008310871198773384, -0.40837374329566956, 0.17890681326389313, 0.4755973219871521, 0.004528507590293884, 0.051208123564720154, 0.12631835043430328, -0.04640490561723709, 0.013515584170818329, 0.14270557463169098, 0.11965912580490112, 0.36907175183296204, 0.13157019019126892, -0.12699894607067108, 0.12801909446716309, -0.3089666962623596, -0.00023996084928512573, 0.088136687874794, 0.08554036170244217, -0.017723526805639267, 0.10669934749603271, 0.2934767007827759, 0.009475020691752434, -0.17146244645118713, -0.5069286823272705, 0.13862861692905426, 0.35239267349243164, -0.5544528961181641, 0.2957424521446228, -0.2599962651729584, 0.24121862649917603, -0.05639559030532837, -0.09951793402433395, -0.35122400522232056, -0.340032160282135, -0.04263434559106827, 0.1322486698627472, 0.18554237484931946, 0.1987331360578537, -0.31568872928619385, 0.0858139842748642, 0.027886630967259407, -0.547407329082489, -0.3988510072231293, -0.22504810988903046, -0.3432810604572296, -0.008241532370448112, 0.3350313603878021, -0.3440191447734833, 0.10437469184398651, -0.35360080003738403, -0.06156022846698761, -0.3151581585407257, -0.32768210768699646, 0.09710292518138885, -0.3790058493614197, 0.3400275707244873, 0.2641105353832245, 0.1390087902545929, -0.09369199723005295, -0.07758636027574539, 0.2825629711151123, -0.34515079855918884, -0.349821001291275, 0.05580329895019531, -0.03937090188264847, -0.08165905624628067, -0.22975130379199982, -0.43957677483558655, -0.17561151087284088, -0.1256152093410492, 0.17975473403930664, 0.13457603752613068, 0.0894508957862854, 0.16021262109279633, 0.26173147559165955, -0.11196012794971466, 0.00159365963190794, -0.08004466444253922, 0.04162630811333656, -0.18532046675682068, 0.31138530373573303, -0.12298958003520966, -0.29051515460014343, 0.07681432366371155, 0.09018783271312714, 0.2567838728427887, 0.09056330472230911, -0.31956619024276733, -0.20885634422302246, 0.007146570831537247, 0.5721036195755005, -0.15281738340854645, 0.058957330882549286, 0.3950416147708893, 0.18017251789569855, 0.033581122756004333, 0.030317917466163635, -0.2007777839899063, -0.09942688792943954, 0.15768373012542725, 0.05619436874985695, 0.19561991095542908, 0.22704452276229858, -0.06458108872175217, 0.7777855396270752, -0.09126517176628113, -0.2477520853281021, 0.3013988137245178, -0.3482935428619385, 0.4125491678714752, 0.09245966374874115, -0.31436342000961304, -0.1148332953453064, -0.004349052906036377, -0.09836368262767792, 0.17193615436553955, -0.16727137565612793, -0.19684916734695435, -0.13160863518714905, -0.2043852061033249, -0.11719837784767151, -0.09018616378307343, -0.04581405967473984, -0.014826584607362747, 0.27997586131095886, -0.03968830406665802, 0.16787481307983398, -0.13242243230342865, -0.04968717321753502, 0.17422722280025482, 0.4427700638771057, -0.019698090851306915, 0.023720085620880127, -0.26244881749153137, -0.2940680980682373, -0.29594647884368896, 0.37241899967193604, 0.06115709990262985, 0.4008816182613373, -0.026680689305067062, -0.16103103756904602, 0.1031055748462677, -0.30256062746047974, 0.6163396835327148, -0.2401418536901474, 0.08069299906492233, 0.342190682888031, -0.2250518649816513, -0.40683817863464355, -0.32001256942749023, -0.4515892267227173, 0.1839897781610489, -0.02797653153538704, 0.25944989919662476, -0.28012219071388245, -0.3214559853076935, 0.26712748408317566, 0.10506042838096619, 0.06642985343933105, 0.028870582580566406, -0.5246201753616333, -0.4429922103881836, -0.29866838455200195, 0.21401208639144897, 0.05449826270341873, 0.2545928359031677, -0.3563588857650757, 0.4444723427295685, -0.0712299644947052, -0.2317400872707367, 0.2484540045261383, 0.29517272114753723, 0.2508280873298645, -0.13306057453155518, -0.06405602395534515, -0.18158681690692902, 0.009776510298252106, 0.477693647146225, 0.5681915879249573, 0.3777182698249817, -0.2568677067756653, 0.37690991163253784, 0.20318089425563812, 0.5758686661720276, 0.22578902542591095, -0.4059256613254547, -0.05272068828344345, -0.1149652749300003, -0.03791368007659912, -0.0809890553355217, 0.12207646667957306, 0.5143465995788574, -0.21527890861034393, -0.3515264689922333, -0.06737898290157318, 0.376257985830307, 0.2904915511608124, -0.04916895553469658, 0.1210092157125473, 0.40698307752609253, -0.1331273466348648, 0.31321001052856445, -0.13128003478050232, 0.8649086356163025, 0.05738135054707527, 0.25698232650756836, 0.1712695062160492, -0.3226710557937622, 0.08208957314491272, -0.003961000591516495, 0.01754850521683693, -0.45711585879325867, -0.168637216091156, -0.1796826273202896, -0.2954649329185486, 0.23048439621925354, -0.022618189454078674, -0.18655990064144135, 0.2297227382659912, 0.06012485921382904, 0.4995059669017792, 0.4300893545150757, 0.39666056632995605, -0.23162266612052917, 0.3145560920238495, -0.21944276988506317, -0.01729845628142357, 0.029300900176167488, 0.22863127291202545, 0.12447749823331833, -0.0027924319729208946, -0.27465882897377014, -0.4961467385292053, -0.37046265602111816, -0.0256943479180336, -0.2890319526195526, -0.11042258143424988, 0.32959040999412537, -0.7482528686523438, 0.248647540807724, 0.033922962844371796, 0.1098259761929512, 0.007534865289926529, -0.30140557885169983, 0.03664806857705116, -0.1004754975438118, 0.11640477925539017, 0.23055772483348846, -0.01268852036446333, 0.37980517745018005, 0.0022481828927993774, -0.3695720136165619, 0.24874746799468994, -0.07758887857198715, -0.12840703129768372, -0.10458025336265564, 0.06520941853523254, -0.04165568947792053, -0.3378785252571106, 0.17437335848808289, -0.5917774438858032, 0.18222294747829437, -0.08842730522155762, -0.02064431458711624, -0.11919285356998444, 0.09579984098672867, 0.02543455734848976, 0.20536759495735168, -0.22562327980995178, -0.12507115304470062, 0.27431342005729675, -0.06986581534147263, 0.16882947087287903, 0.541367769241333, -0.013897627592086792, 0.041784822940826416, -0.03793547675013542, 0.0337940976023674, 0.2881389260292053, -0.4225570559501648, 0.01937277987599373, -0.06643985956907272, 0.0207815021276474, -0.007983720861375332, 0.5095459818840027, 0.0708172395825386, 0.20018166303634644, -0.039185620844364166, -0.47952520847320557, -0.009307412430644035, 0.2478468269109726, -0.030047889798879623, 0.15695087611675262, 0.13996842503547668, 0.2862483263015747, 0.2056422084569931, -0.4054950773715973, -0.17149101197719574, -0.04002942889928818, -0.0005386006087064743, 0.09705939888954163, -0.12449884414672852, 0.0023442916572093964, 0.171980619430542, -0.021146848797798157, 0.024566812440752983, -0.16810792684555054, -0.07666444778442383, -0.04855990782380104, -0.12290939688682556, 0.2095736712217331, 0.03663792088627815, 0.15803182125091553, 0.19972412288188934, 0.012682728469371796, 0.009816817007958889, -0.01313001662492752, 0.16014549136161804, 0.08294396102428436, -0.13927775621414185, 0.09324318915605545, 0.19146600365638733, -0.1461142599582672, -0.3684518337249756, 0.026094360277056694, -0.16010849177837372, 0.08383240550756454, 0.17343303561210632, 0.38310033082962036, -0.12433021515607834, 0.17004624009132385, -0.16442817449569702, 0.13646388053894043, -0.15961752831935883, 0.013914506882429123, 0.22388657927513123, -0.3504801392555237, -0.22463515400886536, -0.07116300612688065, 0.5016783475875854, 0.2746827006340027, -0.188067227602005, 0.04947218298912048, 0.07359785586595535, -0.06575619429349899, -0.33242067694664, 0.08114805072546005, 0.31314870715141296, 0.16446982324123383, -0.014220405369997025, 0.5696209669113159, 0.3624669313430786, -0.2893325090408325, 0.15902385115623474, 0.11968400329351425, 0.7548350691795349, 0.2659265398979187, 0.06463393568992615, 0.17350515723228455, -0.17275241017341614, 0.17013123631477356, 0.4858211576938629, 0.05952177941799164, -0.05907755345106125, 0.11398427933454514, -0.16607391834259033, 0.1806773543357849, 0.06338612735271454, -0.13966251909732819, 0.0012395009398460388, -0.16610297560691833, 0.3387804925441742, -0.2645161747932434, 0.3434372544288635, -0.20660489797592163, 0.18527236580848694, 0.434705913066864, 0.0754561498761177, -0.17391011118888855, -0.23981532454490662, 0.10661676526069641, -0.022905372083187103, -0.08845068514347076, -0.11495338380336761, -0.24852254986763, -0.18543660640716553, -0.0515630878508091, -0.1260223239660263, -0.12427972257137299, 0.6650731563568115, 0.1825423538684845, -0.18023286759853363, -0.2559804618358612, -0.009241405874490738, 0.028558537364006042, 0.07771599292755127, -0.26376181840896606, 0.4144221544265747, 0.07031834125518799, -0.12955191731452942, 0.06194267421960831, 0.33883631229400635, 0.9245891571044922, 0.1384822279214859, -0.11934107542037964, -0.35759326815605164, -0.2355310171842575, 0.009926015511155128, 0.13869526982307434, 0.007697427645325661, -0.012599028646945953, 0.14951148629188538, 0.13449643552303314, 0.08624684065580368, 0.07146630436182022, -0.05862962827086449, 0.1186971440911293, -0.11727654933929443, -0.4760376513004303, 0.3648817837238312, -0.01683630421757698, -0.17699581384658813, -0.04906264692544937, 0.19289611279964447, -0.21985271573066711, 0.018676239997148514, 0.15101741254329681, 0.4744876027107239, -0.14139756560325623, -0.26538312435150146, -0.01609070599079132, 0.14959587156772614, 0.39903315901756287, 0.47985899448394775, 0.2936069071292877, -0.28840047121047974, -0.16200324892997742, -0.6309643983840942, 0.2499452829360962, -0.10891810059547424, -0.07338964194059372, 0.1761760115623474, 0.19231727719306946, 0.1261349618434906, 0.15658384561538696, 0.25283199548721313, 0.15728162229061127, -0.25267067551612854, 0.07404758036136627, -0.28174930810928345, -0.18422973155975342, -0.11259958148002625, -0.16807392239570618, -0.08373063057661057, -0.05157983675599098, 0.12334036827087402, -0.6046470403671265, -0.04503506049513817, -0.22134868800640106, -0.3686109483242035, 0.13001862168312073, -0.2846071124076843, 0.43594852089881897, -0.04533717781305313, 0.7685070037841797, 0.1256028115749359, -0.15011534094810486, -0.3288875222206116, -0.1370660960674286, -0.28524109721183777, 0.5235639214515686, -0.3340815305709839, 0.2942081093788147, -0.07190615683794022, -0.3801875114440918, -0.23676487803459167, 0.21255707740783691, 0.14735722541809082, 0.01508365012705326, 0.13905538618564606, 0.1891031414270401, -0.09959575533866882, -0.055413827300071716, -0.04359778016805649, -0.03080165386199951, -0.02593732625246048, 0.224990114569664, -0.5183082818984985, -0.6421115398406982, 0.5877330303192139, -0.38761812448501587, -0.2811574637889862, -0.3539850413799286, 0.22090962529182434, -0.18944606184959412, -0.15479272603988647, -0.49084827303886414, 0.021292738616466522, 0.3034397065639496, 0.13607996702194214, -0.25627315044403076, 0.0768878310918808, 0.023782463744282722, 0.2902079224586487, -0.08824680000543594, 0.4993482828140259, -0.3625541925430298, -0.07459188997745514, -0.17572972178459167, -0.19070535898208618 ]
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.4502641558647156, 0.13628941774368286, 0.07276098430156708, -0.007737763226032257, 0.21043932437896729, 0.1455686092376709, 0.13477949798107147, 0.3891869783401489, -0.26127326488494873, 0.19664892554283142, 0.24235865473747253, 0.4409928023815155, -0.17453427612781525, 0.19554714858531952, -0.24655765295028687, 0.020136959850788116, -0.03596080094575882, 0.19910183548927307, 0.13498301804065704, 0.04183584451675415, -0.148624449968338, 0.16259057819843292, -0.21622104942798615, 0.26479625701904297, -0.153704434633255, -0.05620003491640091, -0.08893931657075882, -0.04437948018312454, -0.13040925562381744, -0.5437802076339722, 0.3741046190261841, -0.059600476175546646, 0.1746746152639389, 0.5324847102165222, -0.000123493853607215, 0.13402901589870453, 0.35790306329727173, -0.09974335879087448, -0.32015737891197205, -0.4985056519508362, 0.030355818569660187, 0.02507232315838337, 0.33092889189720154, -0.1497173011302948, 0.045702263712882996, -0.5905308723449707, -0.05606222152709961, 0.011204436421394348, -0.026458635926246643, 0.49213048815727234, 0.1557277888059616, 0.1648605614900589, 0.07555602490901947, -0.13787980377674103, 0.21025505661964417, 0.08985574543476105, -0.07608108222484589, 0.4706765115261078, 0.12163928151130676, -0.07171226292848587, 0.1600067913532257, -0.10232013463973999, -0.021708521991968155, -0.016618885099887848, -0.019736751914024353, 0.08909525722265244, 0.270140141248703, -0.2540651261806488, 0.2758244276046753, 0.0213557668030262, 0.6139841079711914, -0.609930157661438, -0.4028124213218689, 0.058497630059719086, 0.1510484218597412, -0.1977948546409607, 0.20437294244766235, 0.1740206927061081, -0.23459818959236145, 0.1370753049850464, -0.19406192004680634, -0.038115084171295166, -0.07902073860168457, -0.10124266147613525, -0.3796554505825043, 0.2510083317756653, 0.19847622513771057, 0.1712026596069336, -0.015670958906412125, -0.11607964336872101, 0.07631221413612366, -0.16492339968681335, 0.1704011708498001, 0.0014241542667150497, -0.21078751981258392, -0.12968376278877258, -0.0683172270655632, 0.36054179072380066, 0.24468225240707397, 0.24374254047870636, 0.03951941803097725, -0.2193712294101715, 0.2899473309516907, 0.1493438482284546, -0.00020721741020679474, 0.06083034351468086, 0.028259243816137314, 0.15257427096366882, 0.11568419635295868, -0.07430457323789597, 0.011641114950180054, 0.012575920671224594, -0.035671308636665344, -0.1347559541463852, 0.28068944811820984, -0.017558354884386063, 0.7477177381515503, -0.3860921561717987, -0.32942628860473633, 0.11270736902952194, -0.3191035985946655, -0.1121121421456337, -0.1496727466583252, 0.3698424696922302, 0.08019507676362991, 0.30647173523902893, -0.2025550901889801, 0.30273377895355225, -0.1487705260515213, -0.1783849596977234, -0.09530594199895859, 0.08789089322090149, -0.021923983469605446, -0.13318273425102234, 0.1687430441379547, -0.2979695200920105, -0.04650471359491348, 0.34691014885902405, 0.1025208979845047, 0.18799346685409546, 0.06526163220405579, -0.0026957462541759014, -0.05441402643918991, 0.461166113615036, -0.22185009717941284, 0.2516636848449707, 0.17808380722999573, -0.5087432861328125, -0.3634718954563141, 0.2743995785713196, -0.21642568707466125, -0.3534749150276184, -0.2432035356760025, 0.15128149092197418, -0.09201845526695251, -0.2586003541946411, -0.04892828315496445, -0.06135125085711479, 0.1802082359790802, -0.15756334364414215, -0.004294469952583313, -0.669238805770874, 0.12914948165416718, -0.31724438071250916, 0.29797545075416565, 0.23556289076805115, -0.5403273701667786, 0.05119902640581131, 0.11710041016340256, -0.153870090842247, 0.22085675597190857, -0.04805411770939827, 0.02851787395775318, -0.1684468686580658, 0.008382229134440422, 0.0004042014479637146, 0.3619314134120941, -0.3157840967178345, -0.2808326184749603, 0.2037823349237442, 0.13735757768154144, -0.0054163821041584015, 0.2581101059913635, -0.3559536337852478, 0.06767728179693222, 0.13325299322605133, -0.24490171670913696, 0.07075203955173492, -0.06347844749689102, 0.03950023651123047, -0.1724347174167633, 0.011109502986073494, 0.43109065294265747, 0.29425209760665894, 0.07769431173801422, -0.18691885471343994, 0.054162703454494476, -0.2536594569683075, 0.17242379486560822, -0.1534913033246994, 0.0145555529743433, -0.09521050751209259, 0.42285090684890747, -0.307148814201355, 0.0091021116822958, -0.08208505809307098, -0.37202557921409607, 0.21420738101005554, 0.14268600940704346, 0.042782582342624664, -0.333101749420166, -0.25452786684036255, -0.3418060541152954, 0.0929810106754303, -0.11785750091075897, -0.030902821570634842, 0.029023103415966034, 0.383460134267807, 0.08364608883857727, 0.0666087418794632, -0.17853392660617828, 0.1259462535381317, 0.01098109595477581, 0.18438979983329773, -0.021914497017860413, 0.40528643131256104, -0.38489651679992676, -0.32877930998802185, 0.11645247042179108, 0.014768432825803757, 0.21107065677642822, -0.07470078766345978, -0.024430643767118454, 0.35694509744644165, 0.0668141320347786, 0.03249745070934296, 0.03754546493291855, 0.28127479553222656, 0.009507890790700912, -0.2744846045970917, -0.2255581021308899, 0.2845184803009033, -0.05631455034017563, 0.33589109778404236, -0.04778023809194565, 0.42459458112716675, 0.46902063488960266, 0.2440934181213379, 0.0434885248541832, 0.12071564048528671, -0.08766251802444458, 0.030711155384778976, 0.017595699056982994, -0.10276897251605988, 0.12395438551902771, -0.09751394391059875, 0.24295540153980255, 0.007381703704595566, -0.4534863829612732, 0.018111400306224823, 0.33262374997138977, -0.10369668900966644, 0.0797223299741745, 0.10889105498790741, -0.13481757044792175, 0.07133278250694275, 0.13101331889629364, 0.12860141694545746, 0.26710057258605957, 0.15452158451080322, -0.0664285272359848, 0.1459352821111679, -0.39577674865722656, 0.04936870187520981, 0.14745746552944183, 0.04694997891783714, 0.08438365161418915, 0.11784978955984116, 0.20307549834251404, 0.06922563165426254, -0.19645339250564575, -0.43865376710891724, 0.1690078228712082, 0.3975129723548889, -0.4556093215942383, 0.25250372290611267, -0.25930261611938477, 0.28796252608299255, -0.1762992888689041, -0.1013130396604538, -0.2812742590904236, -0.28717291355133057, 0.02980847842991352, 0.1613871157169342, 0.12805278599262238, 0.2844822406768799, -0.3949868977069855, 0.13085263967514038, 0.060437850654125214, -0.5389617681503296, -0.35877349972724915, -0.17885100841522217, -0.43584656715393066, 0.056484874337911606, 0.29300642013549805, -0.29367297887802124, 0.18700169026851654, -0.3385721445083618, -0.10415757447481155, -0.2780034840106964, -0.2546272873878479, 0.10002301633358002, -0.2732533812522888, 0.4224724769592285, 0.23313415050506592, 0.0653018206357956, -0.050942376255989075, -0.13944754004478455, 0.29851219058036804, -0.500691294670105, -0.23821032047271729, 0.10757847130298615, -0.060914814472198486, -0.028160754591226578, -0.09925736486911774, -0.6026321053504944, -0.2700938284397125, -0.17673160135746002, -0.07382935285568237, 0.10129447281360626, 0.11717994511127472, 0.01531902514398098, 0.17950044572353363, -0.04143853858113289, -0.1064005121588707, 0.04073167219758034, 0.02278008498251438, -0.09356790781021118, 0.26387491822242737, -0.1412266194820404, -0.24706201255321503, 0.003032997250556946, 0.05939903110265732, 0.3075079023838043, 0.026312869042158127, -0.3157668709754944, -0.1785081923007965, 0.08708111196756363, 0.5713333487510681, -0.21375471353530884, -0.008834050968289375, 0.20170167088508606, 0.3253881335258484, -0.046130791306495667, 0.04386933892965317, -0.1561376452445984, -0.22579091787338257, 0.0831051766872406, 0.11741676926612854, 0.11736871302127838, 0.2478051483631134, -0.00014703348278999329, 0.7000095248222351, 0.09017035365104675, -0.26471173763275146, 0.24563421308994293, -0.2904430031776428, 0.36461105942726135, 0.021591544151306152, -0.2104305922985077, -0.029302576556801796, -0.003284767270088196, -0.08996839076280594, 0.25670185685157776, -0.18345153331756592, -0.2540487051010132, -0.07478810846805573, -0.18840740621089935, -0.22964918613433838, -0.06973996758460999, -0.038525164127349854, -0.050759054720401764, 0.26926466822624207, -0.07091475278139114, 0.14934515953063965, -0.07006052881479263, -0.10604322701692581, 0.20325374603271484, 0.3706050515174866, -0.25434157252311707, 0.030876897275447845, -0.26971161365509033, -0.2007378339767456, -0.23489853739738464, 0.4246779680252075, -0.012991073541343212, 0.47726139426231384, -0.016962863504886627, -0.12940824031829834, 0.09740851074457169, -0.2080833613872528, 0.478967547416687, -0.2268110066652298, 0.08115154504776001, 0.28939223289489746, -0.1709688901901245, -0.4463437497615814, -0.36209216713905334, -0.49877506494522095, 0.07814160734415054, -0.037669647485017776, 0.22606587409973145, -0.23438692092895508, -0.23196475207805634, 0.22696171700954437, 0.11853816360235214, 0.0725109875202179, 0.0037116436287760735, -0.4310707449913025, -0.2614607810974121, -0.2430790364742279, 0.30343735218048096, -0.10249542444944382, 0.35252222418785095, -0.33259159326553345, 0.40758100152015686, -0.09610062092542648, -0.1727207601070404, 0.24494053423404694, 0.35442987084388733, 0.22494173049926758, -0.21191184222698212, 0.026076506823301315, -0.12502332031726837, 0.23234279453754425, 0.5753098130226135, 0.5339667201042175, 0.23211005330085754, -0.2221548855304718, 0.1890178918838501, 0.23789289593696594, 0.6089590787887573, 0.037967950105667114, -0.4350990653038025, -0.1311745047569275, -0.21597327291965485, 0.04362253099679947, -0.00905922707170248, 0.10546892881393433, 0.536983072757721, -0.12586843967437744, -0.5352916121482849, 0.033951856195926666, 0.4779818058013916, 0.27924641966819763, -0.1366874873638153, 0.07593443989753723, 0.31562507152557373, -0.16744336485862732, 0.43760812282562256, -0.10256548970937729, 0.8173341155052185, -0.0009253472089767456, 0.171964630484581, 0.1389717310667038, -0.30203068256378174, 0.1291724592447281, 0.020028196275234222, 0.01078897062689066, -0.4951131045818329, -0.35238054394721985, -0.12848080694675446, -0.26069214940071106, 0.24953511357307434, 0.058063000440597534, -0.3433752655982971, 0.30057626962661743, 0.019464053213596344, 0.4572974741458893, 0.4209080636501312, 0.29168400168418884, -0.16789299249649048, 0.2989627718925476, -0.2507624328136444, 0.038031645119190216, 0.024416565895080566, 0.07223387062549591, 0.11549519747495651, 0.07646672427654266, -0.14137698709964752, -0.494806706905365, -0.27903854846954346, 0.015146221965551376, -0.29300156235694885, -0.10045865178108215, 0.3964218497276306, -0.5733568668365479, 0.2118072509765625, 0.07209337502717972, 0.04818393290042877, 0.0640391856431961, -0.23337271809577942, 0.012960029765963554, -0.14577803015708923, 0.12769412994384766, 0.1839478760957718, 0.047533538192510605, 0.4533492922782898, -0.008722204715013504, -0.33786463737487793, 0.35816526412963867, -0.08139484375715256, -0.011938616633415222, 0.014829546213150024, -0.1256125569343567, 0.1773066520690918, -0.33680301904678345, 0.24641482532024384, -0.6286609172821045, 0.10997293889522552, -0.17819692194461823, 0.04503738135099411, -0.19843937456607819, 0.0036129688378423452, 0.10916213691234589, 0.2272610366344452, -0.3318325877189636, -0.211831733584404, 0.20839080214500427, 0.0059668757021427155, 0.2285708785057068, 0.5235667824745178, -0.08871237933635712, -0.048078007996082306, -0.10361737012863159, 0.05815386027097702, 0.32729896903038025, -0.3375200927257538, -0.049120333045721054, -0.029716866090893745, 0.06561005115509033, 0.15234346687793732, 0.37685492634773254, 0.2776251435279846, 0.21318787336349487, -0.07444609701633453, -0.5255504846572876, -0.07296574860811234, 0.2375103384256363, -0.07121346890926361, 0.19758814573287964, 0.11746042221784592, 0.3237076699733734, 0.22385913133621216, -0.113493412733078, -0.23970310389995575, -0.03295721113681793, -0.1323358118534088, 0.191933736205101, -0.0868283361196518, 0.09644526988267899, 0.05169970542192459, 0.0634486973285675, 0.08875685930252075, -0.19282986223697662, -0.1422789990901947, -0.11094798892736435, -0.1475551277399063, 0.18353666365146637, 0.10185123234987259, 0.13818565011024475, 0.12649258971214294, 0.05604735016822815, 0.04901457950472832, -0.0467185415327549, 0.13852298259735107, 0.03938652575016022, -0.17921733856201172, 0.2147742062807083, 0.347341388463974, -0.16727691888809204, -0.35854971408843994, -0.037098899483680725, -0.2041282057762146, -0.039642274379730225, 0.14702759683132172, 0.38606396317481995, -0.26222532987594604, 0.06064395606517792, -0.18398037552833557, 0.08918015658855438, -0.03867517411708832, -0.0581180676817894, 0.11452366411685944, -0.3145362138748169, -0.24655447900295258, 0.013893911615014076, 0.4490864872932434, 0.28608566522598267, -0.201555535197258, -0.03005049005150795, 0.23514991998672485, 0.03341386094689369, -0.41200244426727295, 0.008535371161997318, 0.2943558394908905, 0.16434882581233978, 0.09699562191963196, 0.4992047846317291, 0.36793848872184753, -0.33733510971069336, 0.07632042467594147, 0.054107971489429474, 0.4890703558921814, 0.22714518010616302, 0.16241027414798737, 0.42818862199783325, -0.12060500681400299, 0.14897337555885315, 0.5001076459884644, 0.07173770666122437, -0.06867455691099167, 0.3365831971168518, -0.22659677267074585, 0.29017552733421326, 0.05184932053089142, -0.09472796320915222, 0.012078821659088135, -0.14029131829738617, 0.33037877082824707, -0.08364848792552948, 0.30317938327789307, -0.18541932106018066, 0.21076872944831848, 0.3404167890548706, 0.09915260970592499, -0.31039702892303467, -0.26461124420166016, 0.007390618324279785, -0.0769662857055664, -0.1239808052778244, -0.07775723934173584, -0.24878466129302979, -0.31133514642715454, -0.04240040108561516, -0.18332567811012268, -0.21364517509937286, 0.6925197839736938, 0.209476500749588, -0.14585191011428833, -0.28876733779907227, 0.0996054857969284, 0.12556172907352448, 0.06614123284816742, -0.2412375658750534, 0.4364039897918701, -0.0067138150334358215, -0.04618249088525772, 0.15534643828868866, 0.2981884777545929, 0.8132766485214233, 0.21816053986549377, -0.17353978753089905, -0.32582321763038635, -0.23221516609191895, 0.06455744802951813, 0.2646584212779999, 0.06301853805780411, -0.037336401641368866, 0.021262966096401215, 0.29204893112182617, 0.11681210994720459, 0.027758806943893433, -0.07846157252788544, 0.06500285118818283, -0.1590966135263443, -0.4842322766780853, 0.2990453839302063, 0.18477964401245117, -0.10185901820659637, 0.01642223820090294, 0.17674610018730164, -0.2542058527469635, 0.026872359216213226, 0.2197713702917099, 0.40253907442092896, -0.09970112144947052, -0.1280665397644043, 0.013057734817266464, 0.2641710937023163, 0.3753710389137268, 0.46604108810424805, 0.3042023777961731, -0.32638972997665405, -0.23226389288902283, -0.5930101871490479, 0.3081546425819397, -0.11185598373413086, -0.06417253613471985, 0.23115286231040955, 0.07034188508987427, 0.1258239448070526, 0.21518175303936005, 0.3055858612060547, 0.3428936004638672, -0.26369571685791016, 0.10260078310966492, -0.400189608335495, -0.17699536681175232, -0.09045106172561646, -0.1819169521331787, -0.09434620290994644, -0.1717553436756134, 0.1907273381948471, -0.5734685063362122, 0.014778725802898407, -0.12844190001487732, -0.34596580266952515, 0.20035454630851746, -0.19253969192504883, 0.4588805139064789, -0.020361552014946938, 0.7599465847015381, 0.05706425756216049, -0.13146355748176575, -0.19957038760185242, -0.1574079990386963, -0.3382563591003418, 0.5084713101387024, -0.21539613604545593, 0.24390318989753723, -0.035587988793849945, -0.22234632074832916, -0.14480964839458466, 0.23349937796592712, 0.14098140597343445, 0.015727771446108818, 0.08336320519447327, 0.09266474097967148, 0.06414277106523514, -0.09420687705278397, -0.023003336042165756, -0.019734926521778107, -0.0309024378657341, 0.29727140069007874, -0.46803444623947144, -0.6723173260688782, 0.5400302410125732, -0.33879345655441284, -0.23528021574020386, -0.4275926947593689, 0.2575128972530365, -0.0969463661313057, -0.08701151609420776, -0.48075616359710693, 0.10606785863637924, 0.38183513283729553, 0.0325494185090065, -0.22709819674491882, -0.0324547104537487, 0.03265141695737839, 0.3201512396335602, -0.13763150572776794, 0.5239672660827637, -0.28771668672561646, -0.151403546333313, -0.16822180151939392, -0.27104029059410095 ]
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.05949065461754799, -0.11997031420469284, 0.014864053577184677, 0.2438831925392151, 0.4732629656791687, -0.0013422071933746338, 0.44146114587783813, 0.1253981739282608, -0.01429564319550991, 0.26756346225738525, -0.17997747659683228, 0.46588945388793945, -0.11915536969900131, 0.10542633384466171, 0.09335114061832428, -0.1634466052055359, -0.14934825897216797, 0.17890527844429016, -0.0950513631105423, 0.004156026989221573, -0.2951403856277466, -0.12274529039859772, -0.2647021412849426, 0.16010642051696777, -0.4545840620994568, -0.24733632802963257, -0.12372760474681854, -0.028907664120197296, -0.2947981655597687, -0.30720555782318115, 0.39059290289878845, 0.04553208500146866, 0.08020157366991043, 0.5733886361122131, -0.00010463327635079622, 0.08574353158473969, 0.5220624804496765, 0.07952453196048737, -0.10193808376789093, -0.48973047733306885, -0.13645459711551666, -0.16683323681354523, 0.21391718089580536, -0.3938797414302826, -0.17488205432891846, -0.04341856762766838, 0.015630146488547325, 0.10472062230110168, 0.3135630488395691, 0.4849516451358795, 0.30893823504447937, 0.4509340226650238, 0.04645324870944023, -0.26731765270233154, 0.29664069414138794, 0.15159940719604492, -0.0532519705593586, 0.36010250449180603, -0.029763028025627136, -0.10263726115226746, 0.1846827119588852, 0.15670660138130188, -0.26694822311401367, -0.09675848484039307, 0.19038674235343933, 0.06878634542226791, -0.04153859615325928, -0.2908976674079895, -0.07514955848455429, 0.41438695788383484, 0.3387810289859772, -0.4593111574649811, -0.278810054063797, 0.11806515604257584, 0.2122836709022522, -0.2495187222957611, 0.26024630665779114, 0.08561869710683823, -0.012844736687839031, 0.19757303595542908, -0.08679479360580444, 0.2796068787574768, -0.2793038785457611, 0.3049073815345764, -0.16479367017745972, 0.14449648559093475, -0.06308633089065552, 0.03452431410551071, 0.20605114102363586, -0.19196362793445587, 0.05979176610708237, -0.13102690875530243, 0.03567327558994293, 0.100702203810215, -0.24360723793506622, -0.13699492812156677, 0.10915131866931915, -0.055024005472660065, 0.13056108355522156, -0.2993285655975342, 0.15652740001678467, -0.08257408440113068, -0.004699303302913904, 0.4082544147968292, 0.18361523747444153, 0.37427812814712524, 0.23539161682128906, 0.14673329889774323, 0.20310406386852264, 0.12505604326725006, -0.29142725467681885, 0.08516748249530792, -0.19163066148757935, -0.07955652475357056, 0.3350315988063812, 0.1417779177427292, 0.4543799161911011, 0.004213731735944748, -0.4538615047931671, -0.04847011715173721, -0.42317062616348267, 0.07957961410284042, 0.22692027688026428, 0.4578571021556854, -0.1490909457206726, 0.1119702160358429, 0.044868290424346924, 0.15390172600746155, -0.17074565589427948, -0.28313493728637695, -0.286907434463501, 0.41192784905433655, -0.332741379737854, -0.20058928430080414, 0.17256970703601837, 0.06317570805549622, -0.04409346729516983, -0.014276472851634026, -0.1245328038930893, 0.014792367815971375, 0.031217658892273903, -0.48646703362464905, -0.10691804438829422, 0.18023721873760223, 0.036691006273031235, -0.14341962337493896, 0.21774332225322723, -0.43856292963027954, 0.003859780728816986, 0.2104470133781433, -0.13902699947357178, -0.22052499651908875, -0.0644020140171051, 0.2921476364135742, -0.32975590229034424, -0.161749929189682, -0.122080959379673, 0.15815195441246033, 0.1588943600654602, 0.015282180160284042, 0.03860422223806381, -0.08452600240707397, -0.021860942244529724, -0.30670538544654846, 0.026878563687205315, 0.390267550945282, -0.37433385848999023, -0.22777388989925385, -0.11634723842144012, -0.05733541026711464, 0.3309759497642517, -0.0552944652736187, -0.013930198736488819, 0.28425273299217224, -0.016235634684562683, 0.12702053785324097, 0.6166732311248779, -0.38114646077156067, -0.3189845085144043, -0.0871524065732956, -0.05255649983882904, -0.032351139932870865, -0.000008434057235717773, -0.1415093094110489, 0.09520972520112991, 0.18519319593906403, 0.4305957853794098, 0.18257100880146027, 0.01085013709962368, -0.006876328960061073, -0.2708134353160858, -0.2111278772354126, 0.19119426608085632, 0.08953137695789337, 0.13897500932216644, -0.05664452165365219, -0.07800828665494919, -0.2422531247138977, 0.01793104037642479, -0.11919529736042023, -0.13236160576343536, -0.06167299300432205, 0.5806084275245667, -0.08955518901348114, -0.12208913266658783, -0.533130943775177, -0.23846036195755005, 0.145127534866333, -0.0384068563580513, 0.44006580114364624, -0.16476328670978546, -0.213297501206398, -0.4087546467781067, 0.04674912244081497, -0.05343273654580116, -0.04224420711398125, 0.2887168228626251, 0.032719604671001434, -0.16237135231494904, 0.14767244458198547, -0.09393139183521271, 0.06908973306417465, -0.18910664319992065, 0.14024941623210907, 0.11506964266300201, 0.3248275816440582, -0.05265737324953079, -0.43384960293769836, 0.016055256128311157, 0.24504834413528442, 0.4278887212276459, 0.06159822270274162, -0.05183066055178642, 0.31032121181488037, 0.09668101370334625, -0.21664436161518097, -0.33292925357818604, -0.037563979625701904, 0.10615916550159454, -0.32848861813545227, -0.19163809716701508, -0.02861056849360466, 0.1814012974500656, -0.003907982259988785, 0.015586543828248978, 0.506656289100647, 0.07304613292217255, 0.07515450567007065, -0.0834585502743721, 0.19625359773635864, -0.05213020369410515, -0.12022474408149719, -0.11892351508140564, -0.09356632828712463, 0.0853729397058487, -0.05164818838238716, 0.1604619026184082, 0.08396695554256439, -0.14869186282157898, -0.09396170824766159, 0.6276288628578186, 0.06613364815711975, 0.4066182076931, -0.12785768508911133, -0.2530849277973175, 0.14693427085876465, 0.0753541961312294, 0.0935152918100357, 0.35600408911705017, 0.3091842830181122, -0.17418396472930908, -0.012002808973193169, -0.16991370916366577, 0.020033549517393112, 0.09369760006666183, -0.03005785495042801, 0.3375014662742615, -0.019166231155395508, 0.32656562328338623, 0.002522745169699192, -0.31299516558647156, 0.11549840867519379, 0.038316406309604645, 0.18946458399295807, -0.3931477963924408, 0.1806960105895996, -0.3155395984649658, -0.15390516817569733, 0.05927345156669617, -0.13982366025447845, -0.042199041694402695, -0.2707488536834717, -0.08552626520395279, 0.18152551352977753, 0.05897100642323494, 0.264363557100296, 0.15974801778793335, -0.03270791471004486, 0.08473815768957138, -0.0655732974410057, -0.1022353321313858, -0.22010746598243713, -0.17439094185829163, 0.1428496241569519, 0.12740886211395264, 0.2078605592250824, 0.2995346188545227, -0.14255423843860626, 0.04809417575597763, 0.013804721646010876, -0.36022505164146423, 0.08573350310325623, -0.12153434753417969, 0.44019371271133423, 0.34255990386009216, 0.07288344949483871, -0.23687013983726501, 0.017392493784427643, 0.36196649074554443, -0.3473309576511383, -0.10805138945579529, 0.39837729930877686, -0.19799813628196716, 0.05025022104382515, -0.21617136895656586, -0.3248879313468933, -0.5105348825454712, -0.3189549446105957, 0.1311064511537552, -0.029471304267644882, 0.0872795432806015, 0.3062433898448944, 0.22816361486911774, 0.4508945643901825, -0.052571844309568405, 0.039583466947078705, -0.1739945113658905, -0.007780149579048157, 0.3531797230243683, -0.014841319993138313, -0.3720351755619049, 0.007990989834070206, -0.1651001274585724, 0.13139070570468903, -0.011758638545870781, -0.17909064888954163, -0.5396494269371033, -0.14006079733371735, 0.28840041160583496, 0.02294372022151947, -0.09574887901544571, 0.3742547631263733, 0.053973693400621414, -0.1510506272315979, -0.19747626781463623, -0.0822635143995285, 0.03177411109209061, 0.31725671887397766, 0.021964766085147858, -0.06948927044868469, 0.2908794581890106, 0.05522153899073601, 0.28113967180252075, -0.11332322657108307, -0.25137487053871155, 0.41980674862861633, -0.2915056645870209, 0.24614252150058746, -0.07165750116109848, -0.4766027331352234, -0.07762264460325241, -0.05550093948841095, -0.0022868774831295013, -0.03606069087982178, -0.2989495098590851, -0.22007174789905548, -0.29700809717178345, -0.12197668850421906, -0.3595549464225769, -0.15417686104774475, 0.06091412901878357, 0.08911895751953125, 0.05580596253275871, 0.14045406877994537, 0.1550655961036682, -0.3061160445213318, 0.008876796811819077, 0.00001934729516506195, 0.1075969859957695, 0.03720732405781746, -0.2144528329372406, -0.22149476408958435, -0.25093385577201843, -0.29100745916366577, 0.323239266872406, 0.04779542610049248, -0.025101207196712494, -0.10718444734811783, -0.10485954582691193, 0.08477163314819336, -0.05435026064515114, 0.6767697930335999, -0.19645170867443085, 0.07104091346263885, 0.49119284749031067, 0.21054917573928833, -0.4320894777774811, 0.02492218092083931, -0.4132971167564392, 0.11259092390537262, 0.16018088161945343, 0.324083536863327, -0.395109623670578, -0.05424528196454048, 0.2625243365764618, -0.035985272377729416, -0.05942189320921898, -0.26967015862464905, -0.23576542735099792, -0.2557885944843292, -0.10776626318693161, 0.19629599153995514, 0.03532670438289642, 0.4339834749698639, -0.26493266224861145, -0.1105707436800003, -0.23906151950359344, 0.04289550334215164, 0.18685203790664673, 0.25458094477653503, 0.2625075578689575, -0.16144348680973053, -0.15979836881160736, -0.17626383900642395, 0.05880199000239372, 0.2780003845691681, 0.2882099747657776, 0.04454127326607704, -0.4137675166130066, 0.015718111768364906, 0.05813918635249138, 0.2611907124519348, 0.04642535746097565, -0.1333332508802414, -0.030797898769378662, -0.040329042822122574, 0.0974310040473938, 0.14356456696987152, 0.21770507097244263, 0.38608473539352417, 0.059596434235572815, -0.33463993668556213, -0.24376395344734192, 0.3455173075199127, 0.1484423726797104, 0.05053657293319702, 0.017008252441883087, 0.27812591195106506, -0.21170777082443237, 0.2881135940551758, -0.020154252648353577, 1.011183500289917, 0.0690527856349945, -0.059792857617139816, 0.5816107988357544, -0.09528431296348572, 0.5560987591743469, -0.06480246782302856, 0.18613260984420776, -0.2962428033351898, -0.3566817045211792, -0.03657221049070358, -0.1678650677204132, 0.2394377887248993, 0.06466707587242126, -0.6077869534492493, 0.2306775450706482, -0.28656983375549316, 0.141325905919075, 0.03720046579837799, -0.03134070709347725, -0.00692707858979702, -0.024181440472602844, -0.3856898546218872, 0.21182125806808472, -0.12286962568759918, 0.10142731666564941, -0.08456432819366455, -0.10637854784727097, -0.12337970733642578, -0.15914353728294373, -0.1048099547624588, 0.04311209172010422, -0.5134389400482178, -0.15310369431972504, 0.052042827010154724, -0.17723128199577332, -0.07291417568922043, 0.18729081749916077, 0.04021747410297394, 0.07752391695976257, -0.18711654841899872, 0.17002034187316895, 0.19995146989822388, 0.0999656617641449, -0.06926260888576508, -0.03328834846615791, 0.4308823347091675, -0.09169299900531769, -0.39867281913757324, 0.12750238180160522, -0.047068335115909576, 0.13558673858642578, 0.3548530340194702, 0.018290378153324127, -0.020784370601177216, -0.45151400566101074, -0.0984330028295517, -0.14358492195606232, 0.2059473991394043, -0.30686116218566895, 0.2612113952636719, -0.007233418524265289, -0.1372920125722885, 0.010840140283107758, -0.03577353432774544, -0.01851220428943634, -0.039877887815237045, 0.3423735797405243, 0.31809312105178833, 0.4484289288520813, 0.24653075635433197, 0.2419537454843521, -0.12122237682342529, -0.32009151577949524, 0.15322020649909973, 0.23080146312713623, -0.422405481338501, 0.24188482761383057, 0.22600582242012024, -0.1214660257101059, -0.053420256823301315, 0.4723210632801056, 0.08754128217697144, 0.16892167925834656, -0.12573941051959991, -0.1489037275314331, -0.2344326227903366, 0.3241613209247589, 0.10228291153907776, 0.004079852253198624, 0.11474638432264328, 0.4286706745624542, 0.23789992928504944, 0.017731422558426857, -0.44404929876327515, -0.028685057535767555, -0.4677809476852417, 0.07052692770957947, -0.02606964483857155, -0.2602924704551697, 0.20040841400623322, -0.003848649561405182, 0.26069650053977966, 0.1246233806014061, -0.075715072453022, -0.3621690273284912, -0.16297009587287903, 0.09021417051553726, -0.002169804647564888, 0.17059792578220367, 0.1876296103000641, 0.03364841267466545, -0.2303365170955658, -0.12813951075077057, 0.09217657148838043, -0.05532965809106827, -0.1467013955116272, 0.2181796431541443, 0.20544491708278656, 0.322844535112381, 0.017990756779909134, -0.01367117092013359, 0.015237905085086823, -0.0924626886844635, -0.034831155091524124, -0.005064025521278381, 0.12457151710987091, -0.029216963797807693, -0.0914052352309227, -0.0829484835267067, 0.19211772084236145, 0.1356503665447235, 0.020348813384771347, -0.257823646068573, -0.2741314768791199, -0.11455660313367844, 0.2158730924129486, 0.12111623585224152, -0.1575215458869934, 0.17650745809078217, -0.01093192957341671, 0.35138481855392456, -0.3763161301612854, -0.01025407761335373, 0.23012305796146393, -0.0349603109061718, 0.22698301076889038, 0.046301014721393585, -0.28560397028923035, 0.3148674964904785, -0.20312558114528656, 0.09068064391613007, 0.22804632782936096, -0.04434730112552643, 0.10810981690883636, 0.2768344283103943, -0.16949841380119324, -0.033468205481767654, 0.41233760118484497, 0.07038664072751999, 0.14827676117420197, 0.02117083966732025, 0.012819163501262665, 0.14633773267269135, -0.02216695249080658, 0.08586709201335907, 0.30909794569015503, -0.32541030645370483, 0.03230229765176773, 0.20969772338867188, 0.027855463325977325, -0.07970111817121506, -0.26090213656425476, 0.5160673260688782, -0.26350146532058716, -0.1445789635181427, -0.33443865180015564, 0.13850870728492737, -0.20031628012657166, 0.036984365433454514, -0.20154492557048798, -0.11117805540561676, -0.1869925558567047, -0.306619793176651, 0.025955762714147568, -0.09096798300743103, 0.24166034162044525, -0.04935783892869949, -0.028936274349689484, -0.2844852805137634, -0.052366696298122406, 0.35965269804000854, 0.22716054320335388, -0.2038591206073761, 0.10305506736040115, 0.024704203009605408, 0.1235099583864212, -0.18643273413181305, 0.5136398673057556, 0.42702075839042664, 0.28573399782180786, -0.15438489615917206, -0.09367690235376358, 0.03454864025115967, -0.309097021818161, 0.07066014409065247, 0.09696521610021591, 0.29194459319114685, 0.23879244923591614, 0.06440398097038269, 0.2788919508457184, -0.2833414077758789, 0.17622801661491394, -0.06019343063235283, 0.07524441182613373, -0.3707781434059143, 0.33053115010261536, -0.19432775676250458, -0.1633218377828598, -0.16632121801376343, -0.008691199123859406, -0.48057126998901367, 0.1700417846441269, 0.3345668613910675, 0.15055346488952637, 0.18274575471878052, -0.18984472751617432, 0.14262588322162628, -0.20634083449840546, 0.22429664433002472, -0.04338232800364494, 0.333989679813385, -0.2799006700515747, 0.11789418756961823, -0.43625518679618835, 0.39369314908981323, -0.04484834894537926, -0.04896436259150505, 0.07563269138336182, -0.08401591330766678, -0.16167297959327698, 0.03494853153824806, -0.07442472875118256, 0.2408672571182251, 0.12785246968269348, 0.0993812084197998, -0.6071123480796814, -0.1996472179889679, -0.11191008985042572, -0.23076939582824707, 0.13617026805877686, -0.24145054817199707, -0.047243040055036545, -0.1864432543516159, 0.1147017553448677, 0.042796406894922256, -0.30284082889556885, 0.19486819207668304, 0.2954317033290863, 0.606733500957489, 0.15761716663837433, 0.40076199173927307, -0.013851089403033257, 0.09977011382579803, 0.06332071125507355, -0.27006086707115173, -0.15275228023529053, 0.19264139235019684, 0.13509385287761688, 0.3505530059337616, 0.075768381357193, 0.23201751708984375, -0.06884173303842545, 0.07770351320505142, 0.05885884910821915, -0.12438321858644485, -0.12214946746826172, 0.1636989563703537, -0.11731530725955963, -0.22617462277412415, -0.25561875104904175, 0.028279166668653488, 0.075282022356987, 0.04704507440328598, -0.08772239089012146, -0.2791989743709564, 0.6700649261474609, -0.3341491222381592, -0.2696869671344757, -0.05091935023665428, 0.20019596815109253, 0.22844421863555908, -0.24099457263946533, -0.6293927431106567, -0.008995987474918365, 0.42049482464790344, 0.022011809051036835, -0.2528339624404907, 0.213653102517128, -0.06413586437702179, 0.15530507266521454, -0.06347072124481201, 0.02118663117289543, -0.11201656609773636, -0.056375447660684586, 0.04750334098935127, -0.23333266377449036 ]
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.01708628237247467, -0.32405197620391846, 0.06212107464671135, 0.2103671282529831, 0.384010910987854, -0.015518847852945328, 0.41579392552375793, 0.17859183251857758, 0.1879400908946991, 0.31161776185035706, -0.2562711834907532, 0.2617369294166565, -0.09007842093706131, 0.1555979996919632, 0.13464654982089996, -0.17832374572753906, -0.17807039618492126, 0.23624299466609955, -0.14293788373470306, -0.06104150414466858, -0.3072661757469177, 0.01602168194949627, -0.2765932083129883, 0.15632760524749756, -0.3710365891456604, -0.22322943806648254, -0.07274962961673737, -0.033786043524742126, -0.35167059302330017, -0.3736094534397125, 0.35027000308036804, -0.014940448105335236, 0.10775104910135269, 0.39366966485977173, -0.00010927302355412394, 0.03974916785955429, 0.5531895160675049, 0.091672383248806, -0.1215190589427948, -0.48644542694091797, 0.0033006779849529266, -0.1535927653312683, 0.264088898897171, -0.2971884608268738, -0.24914351105690002, -0.16786912083625793, -0.0046057868748903275, 0.15467198193073273, 0.3977605700492859, 0.5068286657333374, 0.27359163761138916, 0.5179873704910278, 0.1557459831237793, -0.30572161078453064, 0.2476203739643097, 0.12956249713897705, -0.08303344249725342, 0.3645506501197815, 0.08680261671543121, 0.032483071088790894, 0.24765902757644653, 0.22567133605480194, -0.2615951597690582, -0.10203284025192261, 0.2481999695301056, 0.07144886255264282, 0.05658212676644325, -0.3359339237213135, -0.08744137734174728, 0.3458365499973297, 0.2176501452922821, -0.4307980537414551, -0.274010568857193, -0.015671774744987488, 0.15893308818340302, -0.27787378430366516, 0.21526408195495605, 0.11177635192871094, -0.06142984330654144, 0.26101094484329224, -0.04775962606072426, 0.29164376854896545, -0.2724871039390564, 0.22647346556186676, 0.03322960436344147, 0.09982988983392715, -0.09743501245975494, 0.08648303896188736, 0.3184734582901001, -0.19785989820957184, -0.07124776393175125, -0.07448429614305496, 0.07654031366109848, 0.19978779554367065, -0.26257261633872986, -0.1569991111755371, 0.04121483117341995, -0.05275554209947586, 0.24789834022521973, -0.06231236457824707, 0.010697536170482635, -0.07843728363513947, 0.08663448691368103, 0.39452314376831055, 0.1457943171262741, 0.3695582449436188, 0.2746928334236145, 0.059643037617206573, 0.14712592959403992, 0.26839011907577515, -0.1179923564195633, 0.05507409945130348, -0.181290403008461, -0.050576239824295044, 0.2737025022506714, 0.10107783228158951, 0.41571152210235596, -0.01238512247800827, -0.3835289478302002, -0.03406133875250816, -0.24938908219337463, 0.21416547894477844, 0.21702226996421814, 0.4983268678188324, -0.10985293239355087, -0.006582982838153839, 0.19207660853862762, 0.1782711297273636, -0.12116024643182755, -0.1304858922958374, -0.23571842908859253, 0.342230886220932, -0.32151105999946594, -0.06173205375671387, 0.22659559547901154, 0.030896736308932304, 0.003927861340343952, -0.004729202948510647, 0.06826050579547882, -0.041804030537605286, -0.01869439147412777, -0.3479032814502716, -0.08214845508337021, 0.25354859232902527, 0.03234254941344261, -0.06852482259273529, 0.22640036046504974, -0.41004377603530884, -0.09811759740114212, 0.130978524684906, -0.07463570684194565, -0.17959871888160706, -0.2304225116968155, 0.2343911975622177, -0.25608789920806885, -0.021302908658981323, -0.09343435615301132, 0.02125377021729946, 0.1447509527206421, 0.10136622190475464, 0.12724211812019348, -0.019077736884355545, 0.017888519912958145, -0.2180710732936859, 0.13807284832000732, 0.36549103260040283, -0.10019108653068542, -0.32056596875190735, 0.032153256237506866, -0.002530410885810852, 0.1171862855553627, -0.017370570451021194, 0.0019338828278705478, 0.24217092990875244, -0.03054751828312874, 0.1668866127729416, 0.4985630214214325, -0.6241475939750671, -0.3442803621292114, -0.2747381329536438, -0.0806373655796051, -0.016146380454301834, 0.03932928666472435, -0.2286878526210785, 0.19146479666233063, 0.2106938511133194, 0.44530022144317627, 0.15278011560440063, 0.15220950543880463, 0.016763901337981224, -0.25982698798179626, -0.28412118554115295, -0.14923007786273956, 0.12166409194469452, 0.05722265690565109, -0.06118270009756088, -0.12467845529317856, -0.33158281445503235, 0.04399597644805908, -0.1464242786169052, -0.09477894753217697, -0.028535284101963043, 0.48025208711624146, -0.026793837547302246, -0.03346126526594162, -0.5103316903114319, -0.31101158261299133, 0.14441069960594177, -0.08274385333061218, 0.4963114857673645, -0.2935876250267029, -0.2401021122932434, -0.3797985315322876, 0.021678538993000984, -0.026031386107206345, -0.10736505687236786, 0.26085299253463745, -0.029300637543201447, -0.07938916981220245, 0.20398564636707306, -0.14815635979175568, 0.3061813414096832, -0.06296731531620026, 0.3361930847167969, -0.08991201221942902, 0.25207826495170593, -0.05190929025411606, -0.45358985662460327, 0.01781199499964714, 0.3152446746826172, 0.40748485922813416, 0.018430007621645927, 0.04007427394390106, 0.2059648036956787, 0.12007349729537964, -0.25166046619415283, -0.3879704773426056, -0.20597980916500092, 0.09089544415473938, -0.20526893436908722, -0.12533144652843475, -0.11939758062362671, 0.187557652592659, 0.04323790967464447, 0.08160288631916046, 0.4845340847969055, 0.000288352370262146, 0.1447356641292572, -0.0010888203978538513, 0.2192259132862091, 0.04642466455698013, -0.22235123813152313, -0.19437026977539062, -0.11165433377027512, 0.1098375916481018, 0.03022417239844799, 0.24807004630565643, 0.017976101487874985, -0.14541636407375336, 0.016800105571746826, 0.6618241667747498, 0.042025376111269, 0.2582581639289856, -0.1182069405913353, -0.3660911023616791, 0.2513485252857208, 0.17394259572029114, 0.08760547637939453, 0.36528491973876953, 0.25241443514823914, -0.29564255475997925, 0.0845421701669693, -0.16359323263168335, 0.050556838512420654, 0.09764911234378815, -0.06796048581600189, 0.3684992790222168, -0.09125309437513351, 0.3075384199619293, 0.01853281818330288, -0.30900633335113525, 0.07445824146270752, -0.07930711656808853, 0.10628724843263626, -0.3757317066192627, 0.11504992097616196, -0.25695163011550903, -0.14785145223140717, -0.008882236666977406, -0.13337348401546478, 0.026657678186893463, -0.1974041759967804, -0.059868112206459045, 0.3584897518157959, 0.08938464522361755, 0.28264081478118896, 0.2069198340177536, 0.01923549175262451, -0.059061337262392044, -0.10304851084947586, -0.15513138473033905, -0.10861780494451523, -0.11700134724378586, 0.08233886957168579, 0.058865420520305634, 0.19155104458332062, 0.3331587314605713, -0.3143274486064911, 0.09096051007509232, 0.1370227336883545, -0.3026360869407654, 0.08582183718681335, -0.1740439236164093, 0.28882163763046265, 0.26844877004623413, 0.15894432365894318, -0.17590487003326416, -0.062461379915475845, 0.4340492784976959, -0.3824959993362427, -0.1924285888671875, 0.2827725112438202, -0.14143623411655426, -0.05508405342698097, -0.2623378038406372, -0.2640995383262634, -0.5197221040725708, -0.29463163018226624, 0.2550329864025116, 0.022699709981679916, 0.07175662368535995, 0.3472681939601898, 0.23404903709888458, 0.4523182511329651, -0.38342270255088806, -0.022939080372452736, -0.14411957561969757, 0.041289251297712326, 0.2728777229785919, -0.0820256918668747, -0.4259679615497589, -0.007768452167510986, -0.08550987392663956, 0.2539593577384949, -0.1286991834640503, -0.05689482018351555, -0.4479479193687439, -0.12663067877292633, 0.32382479310035706, 0.00861452892422676, -0.15314966440200806, 0.6029995679855347, 0.01564067043364048, -0.10780996829271317, -0.15833398699760437, -0.17673848569393158, 0.1045931726694107, 0.13827544450759888, 0.005655393004417419, -0.07007048279047012, 0.24532842636108398, -0.026514573022723198, 0.3515644669532776, -0.004992885515093803, -0.20518942177295685, 0.3471210300922394, -0.3044428825378418, 0.3146960437297821, -0.12184072285890579, -0.5708716511726379, -0.07277794927358627, -0.026523679494857788, 0.052067674696445465, -0.1330881267786026, -0.2462662160396576, -0.0897766724228859, -0.32857459783554077, -0.1738547384738922, -0.4415079355239868, -0.23245418071746826, 0.05816251039505005, 0.1306096613407135, -0.08276904374361038, 0.09588618576526642, 0.07748597115278244, -0.356807142496109, 0.05631086975336075, -0.013216390274465084, 0.21224074065685272, 0.035614013671875, -0.18780629336833954, -0.4234539568424225, -0.2692607641220093, -0.35538944602012634, 0.38304078578948975, 0.046841252595186234, 0.011089010164141655, -0.05060052499175072, -0.10247902572154999, 0.14107687771320343, 0.00763495359569788, 0.6806131601333618, -0.03012959472835064, -0.00559026375412941, 0.41600024700164795, 0.14175330102443695, -0.6230166554450989, 0.0706065446138382, -0.3021712005138397, 0.05319179594516754, 0.12276609241962433, 0.3985322415828705, -0.4662342667579651, -0.15596941113471985, 0.3363064229488373, -0.037249185144901276, -0.03282315656542778, -0.2179408073425293, -0.28828316926956177, -0.3978615403175354, -0.21368713676929474, 0.12518538534641266, 0.14489012956619263, 0.38599368929862976, -0.22502148151397705, -0.10911618173122406, -0.12406708300113678, 0.09480024874210358, 0.03402159363031387, 0.27242717146873474, 0.23626771569252014, -0.2280847132205963, -0.09541290998458862, 0.011318746954202652, 0.08381710946559906, 0.2514638304710388, 0.26858165860176086, -0.04332013800740242, -0.5514883995056152, -0.15143492817878723, 0.10565228760242462, 0.216163769364357, 0.07860031723976135, -0.13576173782348633, 0.007971666753292084, -0.09118697047233582, 0.13399341702461243, 0.21577554941177368, 0.1181633472442627, 0.4902131259441376, 0.16989220678806305, -0.2991672456264496, -0.1917191445827484, 0.45214951038360596, 0.12906335294246674, 0.044720277190208435, 0.1472736895084381, 0.4835736155509949, -0.1690777838230133, 0.27797067165374756, -0.1196073368191719, 1.0848114490509033, -0.0030830800533294678, -0.005264569073915482, 0.5609254240989685, -0.10633422434329987, 0.6737450957298279, 0.09001803398132324, 0.2337670922279358, -0.3639943301677704, -0.194011390209198, -0.01781677082180977, -0.1334923505783081, 0.2924991548061371, -0.06509676575660706, -0.5087831020355225, 0.17536711692810059, -0.23621556162834167, 0.16399787366390228, 0.04378156363964081, 0.047025129199028015, -0.11160068958997726, -0.16344191133975983, -0.31911182403564453, 0.1553264856338501, -0.01899576187133789, 0.2381702959537506, -0.029342681169509888, -0.10321705788373947, -0.2884882986545563, -0.25003743171691895, -0.1799219250679016, 0.048641033470630646, -0.48934975266456604, -0.26446348428726196, 0.20289549231529236, -0.17350131273269653, -0.2620542049407959, 0.03505624458193779, 0.1736059933900833, 0.027179289609193802, -0.2295169234275818, 0.08504226058721542, -0.01163075864315033, -0.005728433839976788, -0.061228446662425995, -0.12011627107858658, 0.4516772925853729, -0.18062326312065125, -0.5559991002082825, -0.0021979734301567078, 0.02834218367934227, 0.11894997954368591, 0.3397737741470337, 0.05339403823018074, -0.07207745313644409, -0.3765556216239929, -0.19563016295433044, -0.08635665476322174, 0.2171401083469391, -0.2849392592906952, 0.2158721685409546, -0.07561850547790527, -0.17487087845802307, -0.0020159631967544556, -0.02169838920235634, -0.054683953523635864, 0.018115989863872528, 0.39953550696372986, 0.25003692507743835, 0.35637205839157104, 0.25368767976760864, 0.14535193145275116, -0.12770427763462067, -0.27880924940109253, 0.045451484620571136, 0.26444411277770996, -0.5634875893592834, 0.14802776277065277, 0.2177889198064804, -0.1283232718706131, -0.07589065283536911, 0.4255406856536865, 0.03409712389111519, 0.01998833194375038, -0.10816048085689545, -0.17111049592494965, -0.24745552241802216, 0.4519796371459961, -0.05328802391886711, -0.0533892847597599, 0.2934170365333557, 0.5443691611289978, 0.22287161648273468, 0.007744336500763893, -0.4028412699699402, 0.025847671553492546, -0.3943948745727539, 0.051604826003313065, 0.05062427744269371, -0.2735675871372223, 0.2741539776325226, -0.06078723073005676, 0.22359426319599152, 0.20089833438396454, -0.06483786553144455, -0.3292418420314789, -0.15746058523654938, 0.1020701453089714, 0.013246498070657253, 0.1558351069688797, 0.14049041271209717, 0.042923301458358765, -0.18654832243919373, -0.14363929629325867, 0.16466180980205536, -0.04848727211356163, -0.051967181265354156, 0.23716692626476288, 0.16914419829845428, 0.31186455488204956, 0.04954618215560913, 0.09092985093593597, -0.002873949706554413, -0.129404217004776, -0.08178327977657318, 0.017882106825709343, 0.009517818689346313, 0.02641770988702774, -0.05654894933104515, -0.10739507526159286, 0.12409240007400513, 0.17480361461639404, 0.09074021875858307, -0.2451833337545395, -0.35292136669158936, -0.2803748548030853, 0.18171043694019318, 0.15338072180747986, -0.1543811559677124, 0.17046576738357544, -0.0670950636267662, 0.294854998588562, -0.42105498909950256, 0.023962441831827164, 0.21941342949867249, -0.006779818795621395, 0.17917434871196747, 0.1512833833694458, -0.2732401192188263, 0.20631131529808044, -0.047162964940071106, 0.028358466923236847, 0.4666558504104614, 0.018106907606124878, 0.08895018696784973, 0.26311182975769043, -0.13171108067035675, -0.034426067024469376, 0.48942360281944275, 0.15612608194351196, 0.2242720127105713, -0.0069709718227386475, -0.08840236812829971, 0.2236964851617813, -0.12400934845209122, 0.074922114610672, 0.2926059663295746, -0.21683266758918762, -0.0012598931789398193, 0.1986997127532959, 0.09429338574409485, -0.12752792239189148, -0.3349519371986389, 0.5498443841934204, -0.23958905041217804, -0.21077072620391846, -0.17772124707698822, 0.19504539668560028, -0.20974469184875488, -0.0012303674593567848, -0.1400182992219925, -0.08104899525642395, -0.12686076760292053, -0.41162243485450745, 0.05615319684147835, -0.15146224200725555, 0.4862959384918213, -0.1211121678352356, -0.0871196836233139, -0.28421083092689514, -0.2175370752811432, 0.408748984336853, 0.3050462305545807, -0.154293030500412, 0.18808384239673615, 0.07063904404640198, 0.17597806453704834, -0.2439066469669342, 0.5857951045036316, 0.42053014039993286, 0.20320521295070648, -0.0877046138048172, -0.0394122414290905, -0.09871871769428253, -0.3073500394821167, 0.07585033029317856, 0.16010349988937378, 0.343722403049469, 0.22101077437400818, 0.0020970795303583145, 0.253330796957016, -0.24432629346847534, 0.2270525097846985, -0.10374115407466888, 0.04407113045454025, -0.40426039695739746, 0.3363023102283478, -0.3260604739189148, -0.24991512298583984, -0.32512563467025757, 0.007001861929893494, -0.4086143374443054, 0.17099213600158691, 0.340310275554657, 0.004055315628647804, 0.15312549471855164, -0.31247851252555847, 0.10259965062141418, -0.12374916672706604, 0.28728023171424866, -0.04214289411902428, 0.29925981163978577, -0.18125095963478088, 0.07317858934402466, -0.4249606430530548, 0.3959842026233673, -0.12529262900352478, -0.11226217448711395, 0.08735139667987823, -0.16188347339630127, -0.14888852834701538, 0.03998520225286484, 0.0557342991232872, 0.4386810064315796, 0.05670350044965744, -0.05905241519212723, -0.5389715433120728, -0.15329162776470184, -0.1344294250011444, -0.22735527157783508, 0.20098920166492462, -0.25202059745788574, 0.08007780462503433, -0.1442420929670334, 0.06376688182353973, 0.029505494982004166, -0.09635938704013824, 0.14421257376670837, 0.06708269566297531, 0.621078610420227, 0.18810415267944336, 0.3392416536808014, -0.04305382817983627, -0.06899558007717133, 0.024992849677801132, -0.17406725883483887, -0.24063585698604584, 0.2803034782409668, 0.21602828800678253, 0.2756667137145996, 0.06257041543722153, 0.08705426007509232, -0.04754485934972763, 0.10858725756406784, 0.08250273764133453, -0.22646905481815338, -0.06166669726371765, 0.1197943165898323, -0.020258262753486633, -0.23730504512786865, -0.19963446259498596, 0.061070896685123444, 0.005293603986501694, 0.07696890085935593, -0.22434523701667786, -0.24810081720352173, 0.7152532339096069, -0.2563152611255646, -0.26379987597465515, 0.055392973124980927, 0.2930927872657776, 0.11650402843952179, -0.4328463077545166, -0.7834481596946716, 0.016644984483718872, 0.2939421236515045, 0.08392642438411713, -0.2240290343761444, 0.29482531547546387, 0.010084797628223896, 0.04821798577904701, -0.07461735606193542, 0.1352369338274002, 0.04077073931694031, -0.016858678311109543, 0.07124687731266022, -0.20073994994163513 ]
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.2277718484401703, -0.3193499445915222, 0.0008595176041126251, 0.3918522596359253, 0.3677237033843994, 0.055745311081409454, 0.3176336884498596, 0.1545289009809494, 0.17334425449371338, 0.29602813720703125, -0.14268603920936584, 0.4552958011627197, -0.07765693217515945, 0.229843869805336, 0.04933346435427666, -0.16517256200313568, -0.210503488779068, 0.26113390922546387, -0.1191706657409668, 0.026228152215480804, -0.50922030210495, -0.07414782047271729, -0.1640850007534027, 0.1349928081035614, -0.23775452375411987, -0.27198076248168945, -0.12409454584121704, 0.040825605392456055, -0.19214272499084473, -0.28385016322135925, 0.3645714521408081, -0.0801880955696106, 0.21226215362548828, 0.5988916158676147, -0.00010084889800054953, -0.15145418047904968, 0.43520587682724, 0.04760051518678665, -0.12549138069152832, -0.35230422019958496, -0.29466375708580017, -0.38472017645835876, 0.1898573338985443, -0.3827027380466461, -0.07430331408977509, -0.008201963268220425, 0.028609005734324455, -0.24263760447502136, 0.34812474250793457, 0.348452091217041, 0.3506995141506195, 0.41590359807014465, 0.0833580493927002, -0.2823812663555145, 0.18847742676734924, 0.07757247239351273, -0.10485318303108215, 0.2966810166835785, 0.06237315386533737, -0.016479341313242912, 0.31453362107276917, 0.1602042317390442, -0.283014178276062, -0.05429883673787117, 0.2551213204860687, 0.0645875483751297, -0.005323931574821472, -0.35592469573020935, 0.031036680564284325, 0.3066703677177429, 0.41957125067710876, -0.39462482929229736, -0.18722042441368103, 0.06077723950147629, 0.1299085021018982, -0.22349785268306732, 0.1539727747440338, -0.01155901700258255, -0.006477172486484051, 0.06588667631149292, -0.004036402329802513, 0.15579228103160858, -0.23680473864078522, 0.21838347613811493, -0.16642388701438904, 0.09019754827022552, -0.212100088596344, 0.10706394910812378, 0.0670977309346199, -0.19923928380012512, 0.04522939398884773, -0.18398606777191162, 0.03513520210981369, 0.1096043586730957, -0.22112680971622467, -0.14527907967567444, 0.12990142405033112, 0.11116825044155121, 0.1270105540752411, -0.24557749927043915, 0.11687162518501282, -0.04831164330244064, -0.023695828393101692, 0.4071715474128723, 0.23989389836788177, 0.2160651683807373, 0.19707217812538147, 0.14963360130786896, 0.21602918207645416, 0.044134337455034256, -0.1853792518377304, -0.05197423696517944, -0.12557633221149445, -0.10145647823810577, 0.28146231174468994, 0.19620627164840698, 0.5696894526481628, -0.06337687373161316, -0.4451119601726532, -0.036989107728004456, -0.20709004998207092, 0.0923670157790184, 0.25414082407951355, 0.37839174270629883, -0.18408650159835815, 0.1531810760498047, 0.21491806209087372, 0.06958378106355667, -0.14264097809791565, -0.23278245329856873, -0.24026831984519958, 0.3336760997772217, -0.2726964056491852, -0.23244863748550415, 0.07322372496128082, 0.0800086185336113, -0.10165180265903473, 0.05153478682041168, -0.04660598933696747, 0.07362615317106247, 0.10525674372911453, -0.38297390937805176, -0.17160028219223022, 0.16135075688362122, 0.13423681259155273, -0.010921765118837357, 0.35754910111427307, -0.4132310152053833, -0.14554259181022644, 0.1080869734287262, -0.3179212510585785, -0.09275365620851517, -0.09039197117090225, 0.3212559223175049, -0.23628990352153778, -0.07920948415994644, -0.1951911747455597, -0.004734955728054047, 0.07721681892871857, -0.20212042331695557, 0.024387307465076447, -0.16129209101200104, 0.009970594197511673, -0.41247525811195374, 0.039672739803791046, 0.5434513092041016, -0.37022554874420166, -0.1319316029548645, -0.35600006580352783, -0.05267147347331047, 0.3650828003883362, -0.16172432899475098, 0.08691868931055069, 0.2049262821674347, -0.16195560991764069, -0.07837902754545212, 0.5953564047813416, -0.3626011312007904, -0.19426241517066956, 0.0556296668946743, -0.07925181090831757, -0.0580405555665493, -0.0674479529261589, -0.014070514589548111, 0.0950176790356636, 0.11393128335475922, 0.40954044461250305, 0.22115495800971985, -0.06333053857088089, -0.02786988951265812, -0.19504033029079437, -0.1733904480934143, 0.16490283608436584, 0.0918375700712204, 0.14367228746414185, 0.1626254916191101, 0.06308348476886749, -0.20378504693508148, 0.018494322896003723, -0.03979218378663063, -0.09291728585958481, -0.0652417540550232, 0.6565252542495728, -0.08722399175167084, -0.07887386530637741, -0.5945643782615662, -0.3253450393676758, 0.16847902536392212, -0.06773652136325836, 0.28072312474250793, -0.1447332352399826, -0.170768141746521, -0.3664010763168335, 0.06777632236480713, -0.04982932284474373, 0.04808853194117546, 0.3426542580127716, 0.1271563172340393, -0.19987227022647858, 0.04511827602982521, -0.1443464607000351, 0.17791979014873505, -0.14985968172550201, 0.10199560225009918, -0.005735162645578384, 0.30328312516212463, -0.01055816374719143, -0.35509371757507324, 0.043721042573451996, 0.23754405975341797, 0.5392077565193176, 0.030110839754343033, -0.07144986838102341, 0.29617175459861755, 0.08397285640239716, -0.1378149539232254, -0.1490660309791565, -0.0828540176153183, 0.11919111758470535, -0.26151004433631897, 0.07613322138786316, 0.11351042985916138, 0.3413477838039398, -0.08067619055509567, 0.13791558146476746, 0.5502914786338806, 0.07054296135902405, 0.21825042366981506, -0.04257974401116371, 0.23599183559417725, -0.04587533697485924, -0.04047554358839989, -0.09132026135921478, -0.13912293314933777, 0.1310136765241623, 0.0969332754611969, 0.17839546501636505, -0.06409034878015518, -0.11669488251209259, 0.06287819147109985, 0.5675641894340515, 0.09858556091785431, 0.38464897871017456, -0.0710383728146553, -0.30022668838500977, 0.15484502911567688, 0.08901764452457428, 0.28227975964546204, 0.4458233118057251, 0.30823707580566406, -0.1348172128200531, 0.002844860777258873, -0.1054735779762268, 0.09092587232589722, 0.0695771798491478, -0.008273787796497345, 0.2112082690000534, -0.01839807629585266, 0.17825199663639069, 0.07994471490383148, -0.1778934895992279, -0.04522004351019859, -0.22354409098625183, 0.2644324004650116, -0.3588176965713501, 0.19164243340492249, -0.2675389051437378, -0.16936060786247253, 0.04168182238936424, -0.06624145805835724, -0.15838906168937683, -0.34399646520614624, -0.23224125802516937, 0.025640135630965233, 0.11330527067184448, 0.13157406449317932, 0.11442559957504272, 0.1559714376926422, 0.008065460249781609, 0.0855935737490654, -0.1656486690044403, -0.10267562419176102, -0.12899354100227356, 0.16394037008285522, 0.12112602591514587, 0.21240746974945068, 0.48516812920570374, -0.2281130999326706, 0.24508200585842133, -0.026444679126143456, -0.22799474000930786, 0.06388485431671143, -0.0960037112236023, 0.49242839217185974, 0.4533849060535431, 0.17071035504341125, -0.08289062231779099, -0.016711005941033363, 0.319782555103302, -0.3656995892524719, 0.029731066897511482, 0.2110726535320282, -0.22123150527477264, 0.10772004723548889, -0.15860582888126373, -0.17414170503616333, -0.5684419870376587, -0.41110554337501526, 0.10356128215789795, 0.16801150143146515, 0.16570694744586945, 0.16241995990276337, 0.12474220991134644, 0.533413290977478, 0.13757432997226715, 0.19339758157730103, -0.19584603607654572, -0.04873540252447128, 0.28361061215400696, -0.12286002933979034, -0.2586844861507416, 0.1470843106508255, -0.10504305362701416, 0.2065625637769699, 0.015534186735749245, -0.17524220049381256, -0.5393424034118652, -0.17314578592777252, 0.15460394322872162, -0.08293271064758301, 0.09190081804990768, 0.26020246744155884, 0.11554048955440521, -0.13905414938926697, -0.2339770793914795, -0.1428651064634323, -0.1661492884159088, 0.25579747557640076, 0.06729342043399811, 0.040175627917051315, 0.33977580070495605, -0.17836736142635345, 0.1294480562210083, 0.006566962227225304, -0.23464880883693695, 0.3460310101509094, -0.2629455327987671, 0.3489428758621216, -0.12483157962560654, -0.5024334192276001, -0.14444005489349365, 0.005821779370307922, -0.09000451862812042, -0.04922987520694733, -0.16131582856178284, -0.16664008796215057, -0.3757924735546112, -0.12356770038604736, -0.44734466075897217, -0.17320892214775085, -0.0268352460116148, 0.21328189969062805, 0.019658681005239487, -0.01078115962445736, 0.12264081090688705, -0.4682357907295227, 0.04893440380692482, -0.0516463927924633, 0.23821350932121277, 0.01974768191576004, -0.2432863712310791, -0.24794083833694458, -0.3090175986289978, -0.18549388647079468, 0.44906139373779297, -0.16298964619636536, 0.03376514092087746, -0.17223946750164032, -0.02091478556394577, 0.0463821142911911, -0.017555933445692062, 0.5029234886169434, -0.34191375970840454, 0.07977235317230225, 0.4985000789165497, 0.1387622356414795, -0.38402825593948364, 0.17398442327976227, -0.4070262014865875, 0.3183741867542267, 0.15173256397247314, 0.28377702832221985, -0.316090852022171, -0.020611176267266273, 0.2402316778898239, 0.1300392597913742, -0.13098140060901642, -0.2083943635225296, -0.14482128620147705, -0.2342960238456726, -0.12783227860927582, 0.024501733481884003, -0.003717247396707535, 0.3006124794483185, -0.13161525130271912, -0.14784947037696838, -0.3589726984500885, 0.022607088088989258, 0.257515013217926, 0.20952466130256653, 0.29556673765182495, -0.09687677770853043, -0.07358470559120178, -0.06800224632024765, 0.08212673664093018, 0.19551213085651398, 0.27449437975883484, 0.01894601434469223, -0.391548216342926, 0.06302893161773682, 0.05650365725159645, 0.2511690855026245, 0.07812154293060303, -0.14416706562042236, -0.05357956141233444, -0.08006270974874496, 0.19437867403030396, -0.05235748365521431, 0.10010627657175064, 0.266603946685791, 0.09289402514696121, -0.4500442445278168, -0.34441426396369934, 0.3886467516422272, 0.19110381603240967, -0.046811122447252274, 0.25152474641799927, 0.25549954175949097, -0.2587038278579712, 0.2411356270313263, 0.05851262807846069, 1.0566792488098145, 0.04513070732355118, -0.17906366288661957, 0.4914725124835968, -0.125318244099617, 0.5688881278038025, 0.04279671609401703, 0.015406306833028793, -0.33789798617362976, -0.26562240719795227, -0.051065050065517426, -0.15461593866348267, 0.32529324293136597, -0.09901890158653259, -0.6059668064117432, 0.2722358703613281, -0.4187103509902954, -0.011303622275590897, -0.05161760747432709, -0.14507240056991577, -0.16157492995262146, -0.13057003915309906, -0.40061432123184204, 0.2759851813316345, -0.17678898572921753, 0.17052285373210907, -0.15395474433898926, -0.04894566908478737, 0.01745424047112465, -0.124323271214962, -0.10454324632883072, -0.006815904751420021, -0.43542400002479553, -0.20154738426208496, -0.11793270707130432, -0.16178500652313232, 0.017373662441968918, 0.14574415981769562, 0.17152100801467896, 0.13368281722068787, -0.23752763867378235, 0.09018599987030029, 0.06006661430001259, 0.06914383172988892, -0.08439327776432037, 0.03532779961824417, 0.24274766445159912, -0.019791973754763603, -0.3155241906642914, 0.17253953218460083, 0.03479142114520073, 0.14839738607406616, 0.36455851793289185, 0.09961346536874771, -0.08317841589450836, -0.3884953558444977, -0.14474403858184814, -0.06020013988018036, 0.2035057246685028, -0.2569366991519928, 0.2733273506164551, 0.12671291828155518, -0.07536594569683075, 0.10747837275266647, -0.0244915671646595, -0.09386901557445526, -0.05633183941245079, 0.27504679560661316, 0.3504137396812439, 0.2657759189605713, 0.0927114486694336, 0.20155228674411774, -0.21497243642807007, -0.3738940358161926, 0.26543575525283813, 0.07702429592609406, -0.22658506035804749, 0.23995009064674377, 0.1424400806427002, -0.04775670915842056, -0.07400843501091003, 0.32813748717308044, 0.10603387653827667, 0.04969404637813568, -0.15294666588306427, -0.28883981704711914, -0.27070462703704834, 0.2582182288169861, 0.12622499465942383, 0.07763281464576721, -0.028471799567341805, 0.20888672769069672, 0.19131729006767273, -0.049212902784347534, -0.4822714924812317, 0.060564540326595306, -0.38360875844955444, -0.08708041906356812, 0.05517645925283432, -0.0908130332827568, 0.1894109696149826, -0.0005158958956599236, 0.26105648279190063, 0.08882588148117065, -0.08104269951581955, -0.342424601316452, -0.1005697101354599, 0.09644260257482529, 0.0030657555907964706, 0.035218432545661926, 0.14856766164302826, -0.1207064688205719, -0.17071829736232758, -0.14116771519184113, 0.026607852429151535, 0.05938785523176193, -0.15879683196544647, 0.1150495707988739, 0.12432646751403809, 0.28314706683158875, 0.03529994934797287, 0.20566695928573608, 0.0769655853509903, -0.022946417331695557, -0.04354202374815941, 0.018797433003783226, 0.0036226327065378428, -0.06407933682203293, -0.030197037383913994, 0.027970094233751297, 0.14513073861598969, 0.140272855758667, 0.1255752146244049, -0.10085053741931915, -0.21022042632102966, 0.08784665912389755, 0.1658077985048294, 0.15596738457679749, -0.14198404550552368, 0.27704623341560364, -0.08683046698570251, 0.3664446771144867, -0.27441051602363586, 0.06080508232116699, 0.19101977348327637, -0.11251924932003021, 0.23193949460983276, 0.15145717561244965, -0.3416766822338104, 0.25747284293174744, -0.16059811413288116, -0.024174412712454796, 0.3763532340526581, -0.15950575470924377, 0.15429486334323883, 0.23224468529224396, -0.10367012023925781, -0.026934612542390823, 0.39104974269866943, 0.2250010073184967, 0.08933500945568085, 0.06976636499166489, -0.10523305088281631, 0.165909543633461, -0.035488471388816833, 0.022982768714427948, 0.23917579650878906, -0.4080979824066162, 0.2459842413663864, 0.25163570046424866, -0.029161065816879272, -0.06563066691160202, -0.16864478588104248, 0.27625003457069397, -0.5681777000427246, -0.10208317637443542, -0.3088054955005646, 0.011397315189242363, -0.17325705289840698, 0.1290307492017746, -0.12826360762119293, -0.14371035993099213, -0.2699713706970215, -0.3319651782512665, 0.055672794580459595, -0.17900869250297546, 0.19546140730381012, -0.137161985039711, 0.10487830638885498, -0.19526399672031403, -0.061172790825366974, 0.24572595953941345, 0.1937711387872696, -0.20824138820171356, -0.04024980217218399, -0.012575224041938782, 0.23608385026454926, -0.1725248247385025, 0.539488673210144, 0.3954850733280182, 0.3322073519229889, -0.1617976874113083, -0.027438785880804062, 0.07311812043190002, -0.2820373475551605, -0.06031574308872223, 0.04854890704154968, 0.034040216356515884, 0.24092423915863037, 0.06595496833324432, 0.3405122458934784, -0.3197939395904541, 0.09676817059516907, -0.06599994003772736, 0.01679222844541073, -0.30437925457954407, 0.4304425120353699, -0.30635640025138855, -0.13282689452171326, -0.11993420124053955, -0.11777279525995255, -0.5592747926712036, 0.060260411351919174, 0.4006088674068451, 0.06404086202383041, 0.10860796272754669, -0.11826305091381073, 0.15099646151065826, -0.1716412454843521, 0.11801645159721375, -0.0006220825016498566, 0.33708158135414124, -0.261521577835083, 0.07738439738750458, -0.48927444219589233, 0.3647937476634979, 0.027636326849460602, -0.19823771715164185, 0.03153759241104126, -0.1190948560833931, -0.14704203605651855, 0.009699970483779907, 0.04012324661016464, 0.2380816489458084, 0.2386038601398468, 0.006259050220251083, -0.5759986042976379, -0.34100282192230225, -0.10113738477230072, -0.21595989167690277, 0.10869075357913971, -0.2300252616405487, -0.044758010655641556, -0.15006300806999207, 0.18267115950584412, -0.04281110316514969, -0.25791487097740173, 0.08402964472770691, 0.11911371350288391, 0.6550237536430359, 0.1934749186038971, 0.39891478419303894, -0.12089642137289047, -0.022604163736104965, 0.15709485113620758, -0.3202399015426636, -0.08176839351654053, 0.2735506296157837, 0.12101346254348755, 0.200299471616745, 0.04154575616121292, 0.16314800083637238, -0.20303329825401306, 0.0024250459391623735, 0.027458161115646362, 0.058539096266031265, -0.14644327759742737, 0.30776283144950867, -0.16456042230129242, -0.23615382611751556, -0.22914445400238037, 0.10953580588102341, 0.06045714393258095, 0.14589931070804596, -0.019830845296382904, -0.11069877445697784, 0.6249814033508301, -0.16928602755069733, -0.25988492369651794, -0.05703891068696976, 0.3724467158317566, 0.00440746545791626, -0.12032794207334518, -0.4922206997871399, 0.0031389370560646057, 0.4646417796611786, -0.048813872039318085, -0.166385680437088, 0.20396579802036285, -0.19556474685668945, -0.01956283301115036, -0.03939564526081085, 0.11102139949798584, -0.018885862082242966, 0.0038259457796812057, 0.2579191327095032, -0.1187555342912674 ]
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.23339340090751648, -0.2121908962726593, 0.015184067189693451, 0.3540363907814026, 0.4313119053840637, 0.05654618889093399, 0.4275257885456085, 0.16688410937786102, 0.16195884346961975, 0.25438785552978516, -0.1491202712059021, 0.4838867485523224, -0.0326276533305645, 0.20084483921527863, 0.135114848613739, -0.1875777244567871, -0.17804878950119019, 0.1836342215538025, -0.20757392048835754, 0.055491335690021515, -0.5303387641906738, -0.06945797055959702, -0.13110029697418213, 0.11422081291675568, -0.16530460119247437, -0.24418237805366516, -0.15802030265331268, 0.098792165517807, -0.17958569526672363, -0.3501783311367035, 0.4064703583717346, -0.11642837524414062, 0.2196376621723175, 0.5620647072792053, -0.00010151932656299323, -0.04592005908489227, 0.4622379541397095, 0.0741889551281929, -0.18267619609832764, -0.31775736808776855, -0.29529669880867004, -0.3818570673465729, 0.17007118463516235, -0.3912408947944641, -0.04817013069987297, -0.03719941899180412, -0.003975512459874153, -0.2519207000732422, 0.2980596423149109, 0.37957942485809326, 0.3288024663925171, 0.4538753032684326, 0.09116257727146149, -0.24887649714946747, 0.1904577910900116, 0.09100259840488434, -0.06212663650512695, 0.3023786246776581, 0.0538952574133873, -0.05676642060279846, 0.21138761937618256, 0.13280855119228363, -0.3628794252872467, -0.0556364469230175, 0.27193155884742737, 0.0631391704082489, 0.03363542631268501, -0.38732922077178955, 0.07486747205257416, 0.30004528164863586, 0.4482407569885254, -0.38963037729263306, -0.24697449803352356, 0.023594394326210022, 0.12234897166490555, -0.1994515061378479, 0.21236369013786316, 0.05095161497592926, 0.0008063334971666336, 0.06162851303815842, 0.01964414119720459, 0.19357769191265106, -0.19301843643188477, 0.2497531622648239, -0.15549099445343018, 0.15984627604484558, -0.16727381944656372, 0.11822829395532608, 0.07085474580526352, -0.20339179039001465, 0.04979577288031578, -0.23699787259101868, 0.007765661925077438, 0.11362120509147644, -0.26226285099983215, -0.057803716510534286, 0.15958715975284576, 0.13281449675559998, 0.09247196465730667, -0.20312459766864777, 0.08403810113668442, -0.03857812285423279, 0.0005329009145498276, 0.3734630346298218, 0.2657100260257721, 0.2719014585018158, 0.2630655765533447, 0.10534984618425369, 0.3113083243370056, 0.09685088694095612, -0.10354022681713104, 0.017160343006253242, -0.17414052784442902, -0.19628868997097015, 0.2919628322124481, 0.27147188782691956, 0.5614542365074158, -0.007139172405004501, -0.4003364145755768, -0.11291177570819855, -0.1762721836566925, 0.04147770255804062, 0.19149397313594818, 0.34883931279182434, -0.1659967303276062, 0.19303947687149048, 0.20036321878433228, 0.12483405321836472, -0.21398060023784637, -0.2602619230747223, -0.23422960937023163, 0.2774368226528168, -0.2562619149684906, -0.1992109715938568, 0.11577452719211578, -0.012631680816411972, -0.07417213916778564, 0.01129921618849039, -0.17714574933052063, 0.1546332985162735, 0.1403738558292389, -0.32974523305892944, -0.19453194737434387, 0.18054039776325226, 0.0513514019548893, 0.046854183077812195, 0.33966439962387085, -0.37678271532058716, -0.14490914344787598, 0.08572858572006226, -0.2972792088985443, -0.14067348837852478, -0.1555439680814743, 0.31377261877059937, -0.20381104946136475, -0.05960201472043991, -0.22110319137573242, -0.02717721089720726, 0.129035085439682, -0.15920761227607727, 0.022494226694107056, -0.15681102871894836, -0.03439422696828842, -0.40686455368995667, 0.0919908955693245, 0.6147857308387756, -0.4071788489818573, -0.15554824471473694, -0.3654855191707611, -0.14992931485176086, 0.32068586349487305, -0.21920470893383026, 0.04204733669757843, 0.20534253120422363, -0.1884392946958542, -0.06704099476337433, 0.5587275624275208, -0.4109596014022827, -0.2658074200153351, 0.0713302418589592, -0.1287924349308014, -0.08685977756977081, 0.040651481598615646, -0.029997747391462326, 0.07223036140203476, 0.11370835453271866, 0.4100968837738037, 0.2751319408416748, 0.0011149868369102478, 0.007901536300778389, -0.18644532561302185, -0.23571233451366425, 0.19917725026607513, 0.06497573852539062, 0.1384473443031311, 0.10235533863306046, 0.14062167704105377, -0.19717955589294434, 0.024663452059030533, -0.048764508217573166, -0.03272470086812973, -0.057789504528045654, 0.5558087825775146, -0.04685477912425995, -0.04484361782670021, -0.5518353581428528, -0.422750860452652, 0.18975502252578735, -0.07995383441448212, 0.3541657328605652, -0.13350370526313782, -0.18728062510490417, -0.32646554708480835, 0.0583026260137558, -0.13896359503269196, -0.02006612718105316, 0.31765300035476685, 0.15457430481910706, -0.1688728779554367, 0.028868485242128372, -0.05646905675530434, 0.2119377851486206, -0.07563073188066483, 0.07361222803592682, -0.1429305374622345, 0.30801841616630554, -0.05763775855302811, -0.33398786187171936, 0.037767887115478516, 0.2538011074066162, 0.5117611885070801, -0.00044895801693201065, -0.06331995129585266, 0.3244800269603729, 0.08667442947626114, -0.04965357482433319, -0.16503456234931946, -0.09998010098934174, 0.15094158053398132, -0.22893744707107544, 0.0971662700176239, 0.08726450800895691, 0.3168583810329437, -0.0662045031785965, 0.09549486637115479, 0.47752320766448975, 0.08892522752285004, 0.28696417808532715, -0.03904813528060913, 0.24175605177879333, -0.04115904122591019, -0.028782986104488373, -0.08499179035425186, -0.17435312271118164, 0.07616786658763885, 0.1894838511943817, 0.2709216773509979, -0.03209216147661209, -0.037703804671764374, 0.09219486266374588, 0.5580123662948608, 0.04432151839137077, 0.353888601064682, -0.08044259995222092, -0.3818507194519043, 0.08841376006603241, 0.18686242401599884, 0.27039289474487305, 0.4774662256240845, 0.3163055181503296, -0.1177278608083725, -0.013574240729212761, -0.06873814761638641, 0.06897194683551788, 0.08990529179573059, 0.00006881356239318848, 0.21827518939971924, 0.0326351597905159, 0.2071538120508194, 0.06082828342914581, -0.21137204766273499, -0.052905261516571045, -0.17337599396705627, 0.22314688563346863, -0.40777450799942017, 0.11844193190336227, -0.32161885499954224, -0.15450593829154968, -0.0203859806060791, 0.0009128805249929428, -0.16656622290611267, -0.37006187438964844, -0.2923043370246887, 0.00907563790678978, 0.05861395224928856, 0.13553130626678467, 0.07294361293315887, 0.08480791747570038, 0.03038041852414608, 0.0038108322769403458, -0.1432914435863495, -0.15066464245319366, -0.19723692536354065, 0.1309269517660141, 0.17239996790885925, 0.20352250337600708, 0.4579102098941803, -0.17239373922348022, 0.14968305826187134, -0.06682399660348892, -0.2592744827270508, 0.06910696625709534, -0.03589179366827011, 0.5192124843597412, 0.4751572906970978, 0.1759488582611084, 0.037335507571697235, -0.07237166911363602, 0.39171403646469116, -0.3375651240348816, -0.036360692232847214, 0.28131771087646484, -0.22624921798706055, 0.1912376582622528, -0.16277433931827545, -0.270955353975296, -0.5850610733032227, -0.43146494030952454, 0.09004935622215271, 0.15819360315799713, 0.15741786360740662, 0.22907330095767975, 0.137630894780159, 0.498982697725296, 0.05544601008296013, 0.1736273169517517, -0.1574208289384842, -0.05170152336359024, 0.28692612051963806, -0.12826871871948242, -0.31886211037635803, 0.06270298361778259, -0.16105902194976807, 0.21237173676490784, 0.009506143629550934, -0.20918039977550507, -0.5421628952026367, -0.19377389550209045, 0.24889904260635376, -0.008854053914546967, 0.1406645029783249, 0.282086044549942, 0.16523782908916473, -0.17189592123031616, -0.20089766383171082, -0.14519578218460083, -0.09587506204843521, 0.26473838090896606, 0.003278173506259918, 0.1268490105867386, 0.3415830433368683, -0.16137096285820007, 0.15917529165744781, 0.02125241979956627, -0.19930830597877502, 0.41500040888786316, -0.26402905583381653, 0.3553530275821686, -0.15535303950309753, -0.5011111497879028, -0.13159997761249542, -0.034155264496803284, 0.011962439864873886, -0.025777369737625122, -0.14988496899604797, -0.1616341471672058, -0.3645356297492981, -0.19629189372062683, -0.4402097463607788, -0.194325789809227, -0.045190371572971344, 0.19967080652713776, 0.020420346409082413, -0.029307153075933456, 0.1270924210548401, -0.4808778762817383, 0.03260999917984009, 0.04268097132444382, 0.2218272089958191, -0.0436275377869606, -0.17677544057369232, -0.2460239976644516, -0.24011105298995972, -0.2647053301334381, 0.45466142892837524, -0.15862034261226654, 0.03671838343143463, -0.1481582224369049, -0.060426950454711914, 0.003013111650943756, -0.07133317738771439, 0.5519669055938721, -0.3454785943031311, 0.1679471880197525, 0.5127311944961548, 0.19823071360588074, -0.3972998559474945, 0.14483070373535156, -0.3467215299606323, 0.19787096977233887, 0.06584477424621582, 0.3129543960094452, -0.35857540369033813, -0.03750899061560631, 0.25157803297042847, 0.20191235840320587, -0.12929849326610565, -0.17405162751674652, -0.1447787880897522, -0.2503766417503357, -0.13170042634010315, -0.05848541110754013, -0.1246141791343689, 0.35948726534843445, -0.12653762102127075, -0.1583642065525055, -0.30935138463974, -0.030119631439447403, 0.17894874513149261, 0.1840762197971344, 0.2802935242652893, -0.07592836767435074, -0.0367618203163147, -0.046406231820583344, 0.07169938087463379, 0.231985941529274, 0.34425896406173706, -0.02394680678844452, -0.3605995774269104, 0.06677611917257309, 0.014034486375749111, 0.2356530725955963, 0.05852586030960083, -0.18437199294567108, -0.1035957857966423, -0.053385257720947266, 0.20020601153373718, -0.10604523122310638, 0.07498511672019958, 0.3068718910217285, 0.06406205147504807, -0.39821016788482666, -0.3787672817707062, 0.40757736563682556, 0.14827784895896912, -0.05587654188275337, 0.26464128494262695, 0.24937230348587036, -0.3079306185245514, 0.26366567611694336, 0.07650415599346161, 0.9972297549247742, 0.06343637406826019, -0.1427229642868042, 0.5291197896003723, -0.09924976527690887, 0.5708350539207458, 0.021664366126060486, 0.07378078997135162, -0.32256460189819336, -0.24031801521778107, -0.06216675788164139, -0.14588145911693573, 0.3637831211090088, 0.0177566297352314, -0.5546258687973022, 0.257011353969574, -0.4040379524230957, 0.03388100117444992, -0.09939491003751755, -0.054079070687294006, -0.16800819337368011, -0.155593603849411, -0.4221654534339905, 0.26156437397003174, -0.1391606330871582, 0.16466714441776276, -0.0964663028717041, -0.05598980188369751, 0.0007048919796943665, -0.15051054954528809, -0.0544884130358696, 0.026048611849546432, -0.4705290198326111, -0.09283130615949631, -0.1959894448518753, -0.14020271599292755, -0.015017678961157799, 0.21177256107330322, 0.10819745808839798, 0.07988069951534271, -0.2208482325077057, 0.07476362586021423, 0.10030041635036469, 0.11136092990636826, -0.07459420710802078, 0.018623758107423782, 0.28604283928871155, -0.03659297153353691, -0.34211787581443787, 0.14515796303749084, -0.034625209867954254, 0.17506349086761475, 0.3781586289405823, 0.07899610698223114, -0.058395273983478546, -0.36032524704933167, -0.1006431132555008, -0.05816316604614258, 0.2370607852935791, -0.25680291652679443, 0.2513565421104431, 0.05455566570162773, -0.0355340912938118, 0.07119809836149216, -0.10545872151851654, -0.08281031996011734, -0.09730266034603119, 0.394163578748703, 0.2912924587726593, 0.2772478759288788, 0.21699310839176178, 0.23510031402111053, -0.22449511289596558, -0.36366650462150574, 0.2889496088027954, 0.0990763008594513, -0.30861276388168335, 0.1984170377254486, 0.2202903777360916, -0.04832281172275543, -0.0357770174741745, 0.3472396433353424, 0.011434201151132584, 0.049836672842502594, -0.13501307368278503, -0.28077638149261475, -0.22253841161727905, 0.2674216330051422, 0.09064307063817978, 0.08440592885017395, 0.02832755446434021, 0.16219867765903473, 0.1774451583623886, -0.05472356081008911, -0.45146921277046204, -0.011736507527530193, -0.3375886380672455, -0.037974365055561066, 0.11412515491247177, -0.06889115273952484, 0.21172305941581726, 0.046973951160907745, 0.2668263018131256, -0.027095697820186615, -0.09540219604969025, -0.32347196340560913, -0.10079512000083923, 0.1007453203201294, -0.03197877109050751, -0.004105469211935997, 0.22435890138149261, -0.13092175126075745, -0.16262534260749817, -0.16517171263694763, 0.17553037405014038, 0.057732485234737396, -0.19021804630756378, 0.10387837141752243, 0.15697453916072845, 0.28340649604797363, 0.04302455484867096, 0.21717646718025208, -0.02665814757347107, -0.05812294781208038, -0.02266506664454937, 0.03911973163485527, 0.01566762663424015, -0.04985629394650459, -0.016041122376918793, 0.04384366050362587, 0.0941367894411087, 0.11545348167419434, 0.10233174264431, -0.13287074863910675, -0.23977194726467133, 0.1010514572262764, 0.17079530656337738, 0.16726982593536377, -0.11698948591947556, 0.24982745945453644, -0.08523958921432495, 0.34323376417160034, -0.30241894721984863, 0.0496230274438858, 0.18671032786369324, -0.15452536940574646, 0.22602352499961853, 0.11560599505901337, -0.3048245310783386, 0.22459417581558228, -0.1469651311635971, -0.012541960924863815, 0.4131203591823578, -0.1344488263130188, 0.21409563720226288, 0.321193665266037, -0.08356069028377533, -0.016689512878656387, 0.37768879532814026, 0.18358227610588074, 0.10865142941474915, 0.031676702201366425, -0.057956211268901825, 0.14708669483661652, -0.019642934203147888, 0.08554209768772125, 0.241409569978714, -0.5050230026245117, 0.27103275060653687, 0.24059897661209106, -0.024310365319252014, -0.11213787645101547, -0.16398966312408447, 0.37124860286712646, -0.5745430588722229, -0.06367092579603195, -0.3064316213130951, 0.05941450223326683, -0.16855686902999878, 0.11595192551612854, -0.11149585247039795, -0.1400386095046997, -0.2565513253211975, -0.2784861922264099, 0.06332897394895554, -0.2414882928133011, 0.24397620558738708, -0.11187270283699036, 0.02112710475921631, -0.2714122235774994, -0.040151745080947876, 0.22178009152412415, 0.12762705981731415, -0.19419673085212708, 0.009710194543004036, 0.05060196295380592, 0.2041797786951065, -0.1806851476430893, 0.552272617816925, 0.3988938331604004, 0.3800225853919983, -0.13546396791934967, -0.06647849082946777, 0.11493588984012604, -0.2638262212276459, -0.09045276790857315, 0.010561225935816765, -0.03626365214586258, 0.2590767443180084, 0.10439443588256836, 0.32031407952308655, -0.30220091342926025, -0.006890803575515747, -0.019003432244062424, 0.005731313489377499, -0.26948049664497375, 0.3833434283733368, -0.29412928223609924, -0.1339462697505951, -0.11302565038204193, -0.07648534327745438, -0.5723280906677246, 0.045301828533411026, 0.43370071053504944, 0.05534976348280907, 0.11604992300271988, -0.17900648713111877, 0.14473627507686615, -0.13810193538665771, 0.19207264482975006, -0.013790357857942581, 0.28975093364715576, -0.2669529914855957, 0.08058135211467743, -0.52471923828125, 0.3150632977485657, 0.03911377862095833, -0.19242943823337555, -0.028471320867538452, -0.1205907016992569, -0.14180392026901245, 0.0033044442534446716, 0.025263294577598572, 0.27408459782600403, 0.2506793141365051, 0.015638675540685654, -0.5449016690254211, -0.29364877939224243, -0.04161620885133743, -0.1840641051530838, 0.0557723343372345, -0.3411942422389984, -0.0023587383329868317, -0.17404964566230774, 0.1497214436531067, 0.0006309915333986282, -0.24992862343788147, 0.14406612515449524, 0.09776830673217773, 0.6802557706832886, 0.18651363253593445, 0.40309518575668335, -0.08699795603752136, -0.04366840049624443, 0.036389488726854324, -0.29322147369384766, -0.11003677546977997, 0.23400458693504333, 0.07532291114330292, 0.20277442038059235, 0.034616619348526, 0.14568662643432617, -0.245183065533638, 0.08542805910110474, 0.017443828284740448, 0.13280346989631653, -0.14758430421352386, 0.3109080195426941, -0.15090882778167725, -0.29782915115356445, -0.1912621706724167, 0.0007489919662475586, 0.10509775578975677, 0.10299559682607651, -0.06943652033805847, -0.23852580785751343, 0.5177170038223267, -0.28555846214294434, -0.1767609566450119, -0.09032762795686722, 0.35201168060302734, -0.04038137197494507, -0.11723598092794418, -0.5067303776741028, 0.05464554578065872, 0.48873016238212585, -0.0022290367633104324, -0.15009334683418274, 0.16388313472270966, -0.20673099160194397, 0.02150212600827217, -0.07061636447906494, 0.011497244238853455, -0.04090605676174164, 0.0008293669670820236, 0.19807983934879303, -0.1320047825574875 ]
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.2608943283557892, -0.20070578157901764, 0.06599944829940796, 0.4001954197883606, 0.464599072933197, 0.011524513363838196, 0.32409659028053284, 0.0941324383020401, 0.18959921598434448, 0.30018186569213867, -0.2849102318286896, 0.4667590260505676, -0.03664378076791763, 0.16685791313648224, 0.07776474952697754, -0.12537360191345215, -0.26064667105674744, 0.26366811990737915, -0.17774656414985657, 0.06136661767959595, -0.5233628749847412, 0.023198604583740234, -0.23736360669136047, 0.08589118719100952, -0.2768002450466156, -0.15339922904968262, -0.028150029480457306, 0.07971358299255371, -0.24621780216693878, -0.2805509567260742, 0.46116089820861816, -0.01596294343471527, 0.16404768824577332, 0.5104124546051025, -0.00010234796354779974, -0.01845693215727806, 0.5836994051933289, 0.053003206849098206, -0.07615110278129578, -0.421190083026886, -0.22556236386299133, -0.3977995812892914, 0.2870034873485565, -0.35481518507003784, -0.12754212319850922, 0.005577661097049713, 0.04051308333873749, -0.18190476298332214, 0.2621392607688904, 0.32043400406837463, 0.3242149353027344, 0.529691219329834, 0.011442746967077255, -0.35997092723846436, 0.1965131163597107, 0.08082960546016693, -0.06368956714868546, 0.3710547387599945, 0.026584647595882416, -0.04749301075935364, 0.24396339058876038, 0.08703036606311798, -0.33535414934158325, 0.05276110768318176, 0.28473567962646484, 0.03825512155890465, 0.009531088173389435, -0.27017030119895935, 0.09647578001022339, 0.3694058954715729, 0.3855825960636139, -0.3826204836368561, -0.15144233405590057, 0.17501002550125122, 0.22396504878997803, -0.2032715231180191, 0.21164900064468384, 0.04687865078449249, 0.016304776072502136, 0.09074489772319794, -0.013072031550109386, 0.17122028768062592, -0.2445583939552307, 0.2749377489089966, -0.2020057588815689, 0.10655120015144348, -0.19354914128780365, 0.1447967290878296, 0.08499746024608612, -0.11885982751846313, 0.07633452117443085, -0.134597048163414, -0.06199774518609047, 0.08909045159816742, -0.20838098227977753, 0.0349295511841774, 0.11520547419786453, 0.15358011424541473, 0.16361179947853088, -0.28436774015426636, 0.1018841415643692, -0.02383337914943695, 0.03979945555329323, 0.4501175880432129, 0.2414603978395462, 0.1897561103105545, 0.27247777581214905, 0.08869324624538422, 0.2660127878189087, 0.06678754091262817, -0.24171388149261475, -0.012088704854249954, -0.15435843169689178, -0.061073265969753265, 0.24279506504535675, 0.14118465781211853, 0.5124642848968506, 0.018915552645921707, -0.45016351342201233, -0.1742379069328308, -0.17213350534439087, 0.09129952639341354, 0.2716411054134369, 0.4277632534503937, -0.15264034271240234, 0.08207672834396362, 0.13324162364006042, 0.17432893812656403, -0.18845175206661224, -0.2918037474155426, -0.31832534074783325, 0.3539682924747467, -0.2528478503227234, -0.2349548637866974, 0.19113844633102417, 0.05796566605567932, -0.044978752732276917, 0.013467094860970974, -0.0958479642868042, 0.10270030796527863, 0.08866897970438004, -0.2908605635166168, -0.2310658097267151, 0.31327131390571594, 0.24430567026138306, -0.06283300369977951, 0.28006088733673096, -0.4668278694152832, -0.09159710258245468, 0.22920382022857666, -0.2898917496204376, -0.16717444360256195, -0.07324445247650146, 0.2667022943496704, -0.33905476331710815, -0.06973500549793243, -0.24416670203208923, 0.046671926975250244, 0.04895768687129021, -0.1566348373889923, -0.10240890830755234, -0.09626084566116333, -0.1126568466424942, -0.42342522740364075, 0.04461929202079773, 0.5165772438049316, -0.375186026096344, -0.19924096763134003, -0.3078085780143738, -0.10918356478214264, 0.3522844612598419, -0.14730116724967957, 0.014566808007657528, 0.06290081888437271, -0.17065688967704773, -0.0006844326853752136, 0.6008660793304443, -0.38471996784210205, -0.28151455521583557, 0.056300267577171326, -0.037187281996011734, -0.11655450612306595, -0.0517217293381691, -0.0470438152551651, 0.0718875452876091, 0.13564345240592957, 0.4128209352493286, 0.24465318024158478, 0.049359217286109924, -0.03246701508760452, -0.21095888316631317, -0.23810982704162598, 0.12804608047008514, 0.15165823698043823, 0.12727057933807373, 0.1630401909351349, 0.07125106453895569, -0.2506301701068878, -0.05571620911359787, -0.006188925355672836, -0.10224486142396927, -0.030163966119289398, 0.536503255367279, -0.1599625051021576, -0.03996352106332779, -0.5328826904296875, -0.3950168192386627, 0.23308181762695312, -0.07792939245700836, 0.25416892766952515, -0.10548928380012512, -0.17003555595874786, -0.35298168659210205, 0.10195054858922958, -0.017024490982294083, 0.0607617050409317, 0.2853279709815979, 0.09096067398786545, -0.20114846527576447, 0.14548809826374054, -0.08090302348136902, 0.16377240419387817, -0.08734921365976334, 0.051231749355793, 0.03350505232810974, 0.2916681468486786, 0.07477729767560959, -0.3356178104877472, 0.035295017063617706, 0.18978455662727356, 0.4574476480484009, -0.010459783487021923, -0.0672706738114357, 0.264090359210968, 0.0708920955657959, -0.07880471646785736, -0.20708614587783813, -0.05381760001182556, 0.08799300342798233, -0.3130647838115692, -0.030365729704499245, 0.03798452764749527, 0.31870922446250916, -0.09437333047389984, 0.06253885477781296, 0.603893518447876, 0.06684309989213943, 0.17446179687976837, -0.07306019216775894, 0.2714175581932068, 0.0653243213891983, -0.03855617344379425, -0.14907677471637726, -0.12862740457057953, 0.04598536714911461, 0.11761821806430817, 0.24863718450069427, 0.006103988736867905, -0.08802146464586258, -0.023189395666122437, 0.576915442943573, 0.09138292074203491, 0.36079132556915283, -0.13751745223999023, -0.420413613319397, 0.11379542201757431, 0.037006158381700516, 0.2525538206100464, 0.503267228603363, 0.33231568336486816, -0.1068643182516098, 0.023629946634173393, -0.05717255920171738, 0.04047263041138649, 0.10329210758209229, 0.04944702610373497, 0.23289790749549866, -0.000023402273654937744, 0.30572158098220825, -0.02094200626015663, -0.3462263345718384, 0.16139161586761475, -0.05384773015975952, 0.18420638144016266, -0.376086950302124, 0.1845395863056183, -0.27470359206199646, -0.07675733417272568, 0.14255128800868988, -0.10272502154111862, -0.12500497698783875, -0.3286280035972595, -0.2664065361022949, 0.10813762992620468, 0.12109054625034332, 0.1938210129737854, 0.14224831759929657, 0.07631893455982208, 0.008745403960347176, -0.025528723374009132, -0.18266119062900543, -0.1326557695865631, -0.148391991853714, 0.08807402849197388, 0.16533535718917847, 0.1819412261247635, 0.41198283433914185, -0.14963757991790771, 0.22848793864250183, -0.05112738162279129, -0.24559888243675232, 0.10017774254083633, -0.057329192757606506, 0.5299293994903564, 0.4086088240146637, 0.0602923221886158, -0.14106450974941254, 0.10045047104358673, 0.4188913106918335, -0.4658014178276062, 0.026478277519345284, 0.36358392238616943, -0.3070647418498993, 0.08372601866722107, -0.25187748670578003, -0.10609955340623856, -0.5478299260139465, -0.428038090467453, 0.06833092123270035, 0.09581956267356873, 0.04497775062918663, 0.17241673171520233, 0.11911794543266296, 0.4440962076187134, 0.11239200830459595, 0.015760039910674095, -0.23304159939289093, -0.08540752530097961, 0.33111271262168884, -0.16932520270347595, -0.3608907163143158, 0.20424893498420715, -0.1323482245206833, 0.25487375259399414, 0.02858656831085682, -0.1609789878129959, -0.5243911743164062, -0.1556175798177719, 0.20535382628440857, -0.005188260227441788, -0.011091364547610283, 0.2912258505821228, 0.040286093950271606, -0.1367860734462738, -0.27267491817474365, -0.14130140841007233, -0.048815540969371796, 0.2352694571018219, -0.06838785856962204, 0.04718406870961189, 0.28253892064094543, -0.12230129539966583, 0.14363853633403778, -0.10943953692913055, -0.18530066311359406, 0.4059680998325348, -0.3138796091079712, 0.37427055835723877, -0.15146476030349731, -0.4665449857711792, -0.21089030802249908, 0.02787119895219803, 0.04224248230457306, 0.04843439161777496, -0.18290004134178162, -0.24296630918979645, -0.38739147782325745, -0.18405874073505402, -0.3091232478618622, -0.1176474392414093, -0.044823288917541504, 0.18691477179527283, -0.034465543925762177, 0.12824082374572754, 0.15066853165626526, -0.4099552035331726, -0.04402158781886101, -0.014515956863760948, 0.19075907766819, 0.00033273547887802124, -0.18749283254146576, -0.1343231499195099, -0.23941415548324585, -0.33497291803359985, 0.466514527797699, -0.1304175704717636, -0.021452732384204865, -0.10481052100658417, -0.022813592106103897, 0.1187157854437828, -0.04580260068178177, 0.5801784992218018, -0.2944781184196472, 0.17192921042442322, 0.5542978048324585, 0.09048031270503998, -0.5516592860221863, 0.10773085057735443, -0.3318449556827545, 0.3005686104297638, 0.13312916457653046, 0.2810218334197998, -0.347042977809906, -0.01938774436712265, 0.21586230397224426, 0.06858575344085693, -0.11510869860649109, -0.24079307913780212, -0.23340843617916107, -0.2933901250362396, -0.04927123337984085, -0.06657246500253677, -0.058612242341041565, 0.422576904296875, -0.13546700775623322, -0.127306267619133, -0.4123398959636688, -0.036734648048877716, 0.16560104489326477, 0.19397355616092682, 0.34225180745124817, -0.13591106235980988, -0.025981904938817024, -0.058792486786842346, 0.08305041491985321, 0.13305388391017914, 0.3568015694618225, 0.08881069719791412, -0.44697368144989014, 0.13907620310783386, 0.07360130548477173, 0.23926153779029846, 0.002429097890853882, -0.21277177333831787, -0.15642204880714417, -0.09731802344322205, 0.12567438185214996, 0.06949117034673691, 0.1411266177892685, 0.23214755952358246, 0.013767124153673649, -0.3646828830242157, -0.23113234341144562, 0.43259236216545105, 0.1745893806219101, 0.025027170777320862, 0.27189964056015015, 0.23464591801166534, -0.22543418407440186, 0.2237931191921234, -0.06492956727743149, 0.9164005517959595, -0.001630730926990509, -0.1102362722158432, 0.6165463924407959, -0.09799041599035263, 0.5674655437469482, 0.06507910788059235, 0.06793416291475296, -0.3704267144203186, -0.28798654675483704, -0.005231522023677826, -0.14537610113620758, 0.25484567880630493, -0.04935365915298462, -0.5216740965843201, 0.2098071128129959, -0.3250353932380676, 0.05638718232512474, -0.03387555480003357, -0.08627261221408844, -0.06887153536081314, -0.16256721317768097, -0.31690946221351624, 0.22038862109184265, -0.11600284278392792, 0.16524861752986908, -0.09055141359567642, -0.07293753325939178, 0.02018742635846138, -0.07935319095849991, -0.08598931133747101, 0.0518675372004509, -0.41057440638542175, -0.10258089005947113, 0.008886750787496567, -0.14894288778305054, -0.049236029386520386, 0.10977701842784882, 0.043908968567848206, 0.023810988292098045, -0.34834447503089905, 0.23607514798641205, 0.05250944197177887, 0.017473140731453896, -0.07425542920827866, 0.07520441710948944, 0.20920902490615845, -0.05937228351831436, -0.26785391569137573, 0.10724060237407684, -0.04713147506117821, 0.1675490140914917, 0.3512035608291626, 0.13514502346515656, -0.1057778000831604, -0.30187779664993286, -0.21502356231212616, -0.13873854279518127, 0.2945331931114197, -0.29509925842285156, 0.25293558835983276, 0.08838547021150589, -0.11284011602401733, 0.0237119123339653, 0.03705595061182976, -0.18078628182411194, -0.03919872269034386, 0.4054495096206665, 0.33154380321502686, 0.32667145133018494, 0.17421162128448486, 0.21394605934619904, -0.13305021822452545, -0.3562074601650238, 0.23564204573631287, 0.07449276000261307, -0.3519975543022156, 0.3284543454647064, 0.2739308476448059, -0.04565398395061493, 0.0271229837089777, 0.4190959930419922, 0.017764531075954437, -0.04062499850988388, -0.12783575057983398, -0.2977454662322998, -0.20528462529182434, 0.2201714813709259, 0.0076375678181648254, -0.013315383344888687, 0.10363208502531052, 0.23537448048591614, 0.19691458344459534, -0.07531565427780151, -0.42562371492385864, 0.11846058815717697, -0.34209761023521423, -0.10644938051700592, 0.03581418842077255, -0.08394267410039902, 0.19919680058956146, 0.09430313110351562, 0.22002115845680237, 0.04124429449439049, -0.11736734211444855, -0.3198774456977844, -0.17088593542575836, 0.11573011428117752, -0.060352884232997894, 0.09846006333827972, 0.1912238597869873, -0.09780193865299225, -0.339977502822876, -0.11381678283214569, 0.08634743094444275, 0.01868293434381485, -0.24856682121753693, 0.038939282298088074, 0.18414132297039032, 0.29607170820236206, 0.024314552545547485, 0.22147658467292786, 0.06482767313718796, -0.05169874429702759, -0.16678062081336975, 0.007017176598310471, 0.0738605484366417, -0.037725865840911865, 0.04539871960878372, -0.024269811809062958, 0.14642491936683655, 0.12582820653915405, 0.14722421765327454, -0.182162806391716, -0.13763883709907532, -0.010655103251338005, 0.16226772964000702, 0.10540153831243515, -0.16789735853672028, 0.31690001487731934, -0.15113916993141174, 0.3191594183444977, -0.37131842970848083, -0.018126649782061577, 0.2591812014579773, -0.003793518990278244, 0.23372453451156616, 0.04873368889093399, -0.21770286560058594, 0.2784508764743805, -0.10017457604408264, -0.008697303012013435, 0.45373955368995667, -0.12444150447845459, 0.06487683951854706, 0.23850809037685394, -0.15005332231521606, 0.06746755540370941, 0.4041025638580322, 0.26060914993286133, 0.09712580591440201, 0.13524982333183289, -0.02997751533985138, 0.1296592354774475, -0.0773412436246872, 0.051117248833179474, 0.1697775274515152, -0.5580493211746216, 0.18610605597496033, 0.16857914626598358, 0.00236549973487854, -0.07915950566530228, -0.23237961530685425, 0.41024675965309143, -0.4937502145767212, -0.06056530401110649, -0.3794309198856354, 0.06437058746814728, -0.16302835941314697, -0.0013761874288320541, -0.1433883011341095, -0.11491919308900833, -0.17176078259944916, -0.2528250217437744, 0.04163515195250511, -0.09905891120433807, 0.24124270677566528, -0.11379453539848328, 0.1046862006187439, -0.1930139809846878, -0.039942458271980286, 0.2786889970302582, 0.04779853671789169, -0.1555447280406952, 0.03981349244713783, -0.060166388750076294, 0.2526922821998596, -0.11667332053184509, 0.4984671175479889, 0.42828330397605896, 0.2650192379951477, -0.20173552632331848, -0.11841388791799545, 0.04389599710702896, -0.2949293553829193, -0.14820395410060883, 0.14488697052001953, 0.1621527373790741, 0.1861356943845749, 0.07484334707260132, 0.2893255650997162, -0.2849993109703064, 0.1308235079050064, -0.0036746375262737274, -0.007818931713700294, -0.2805195748806, 0.3590797483921051, -0.36254969239234924, -0.11782614886760712, -0.1554858386516571, -0.10727161914110184, -0.4793090522289276, 0.09879516810178757, 0.3647938370704651, 0.1218608096241951, 0.1348397135734558, -0.1550246924161911, 0.14311693608760834, -0.26004353165626526, 0.2424021065235138, -0.023232828825712204, 0.365359902381897, -0.23983946442604065, 0.025778234004974365, -0.5430266857147217, 0.44817736744880676, 0.01292525976896286, -0.07826431095600128, 0.08482459932565689, -0.12170228362083435, -0.1154608502984047, -0.03444531559944153, -0.004841700196266174, 0.36308857798576355, 0.270831435918808, -0.04777442663908005, -0.5591890215873718, -0.3568097949028015, -0.09461762011051178, -0.27721962332725525, 0.04613734781742096, -0.29077979922294617, -0.05018286034464836, -0.16049863398075104, 0.13265091180801392, -0.068354532122612, -0.273656964302063, 0.11521337926387787, 0.2708911895751953, 0.666909396648407, 0.20456866919994354, 0.4079801142215729, -0.08747318387031555, 0.09326212108135223, 0.07337760925292969, -0.2984469532966614, -0.07542069256305695, 0.19056600332260132, 0.10106059908866882, 0.13626082241535187, 0.015028459951281548, 0.17342133820056915, -0.14726825058460236, -0.0376882366836071, -0.04048154130578041, 0.05787605047225952, -0.23930205404758453, 0.3138110339641571, -0.289703905582428, -0.19459828734397888, -0.2668881416320801, 0.09523376822471619, 0.08431068062782288, 0.1096615344285965, 0.021883592009544373, -0.09394088387489319, 0.6466466784477234, -0.25513699650764465, -0.31486180424690247, 0.002964963670819998, 0.25523778796195984, 0.03409348055720329, -0.175284281373024, -0.41450655460357666, 0.0628262534737587, 0.4432108998298645, -0.05498633533716202, -0.21835976839065552, 0.2427147775888443, -0.17745542526245117, 0.0503370501101017, -0.1022096574306488, 0.011153988540172577, 0.0516410768032074, -0.06758354604244232, 0.12968166172504425, -0.08301349729299545 ]
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.24667537212371826, -0.21660587191581726, -0.003883836790919304, 0.3586862087249756, 0.4009476900100708, 0.035536400973796844, 0.3025209307670593, 0.15218962728977203, 0.16503536701202393, 0.3566102087497711, -0.17792066931724548, 0.4452136158943176, -0.03825686126947403, 0.19904454052448273, 0.08161988854408264, -0.08996208012104034, -0.2033710479736328, 0.2447066754102707, -0.18422278761863708, 0.010521911084651947, -0.47287634015083313, -0.0185204166918993, -0.1821441352367401, 0.019933320581912994, -0.24807438254356384, -0.20028561353683472, -0.11639862507581711, 0.06450091302394867, -0.21489913761615753, -0.25302964448928833, 0.36321118474006653, 0.045063186436891556, 0.11236836016178131, 0.5467205047607422, -0.00010198417294304818, -0.0862099826335907, 0.49754059314727783, 0.07624039798974991, -0.1133381575345993, -0.22271521389484406, -0.27041277289390564, -0.3431519865989685, 0.18232522904872894, -0.4260810315608978, -0.09165462851524353, 0.0288904570043087, 0.012380996719002724, -0.24819032847881317, 0.3053145408630371, 0.30721402168273926, 0.3397082984447479, 0.4426226019859314, -0.01901620253920555, -0.3322891891002655, 0.21623051166534424, 0.04210381954908371, -0.03231068700551987, 0.3622165322303772, 0.06336018443107605, -0.05373097211122513, 0.1767410933971405, 0.18241091072559357, -0.2867758870124817, -0.0029547028243541718, 0.2504884600639343, 0.08760205656290054, -0.024535156786441803, -0.2595611810684204, 0.102205291390419, 0.2668827176094055, 0.28568822145462036, -0.45208504796028137, -0.12455164641141891, 0.11148112267255783, 0.10435802489519119, -0.23671036958694458, 0.1430760771036148, -0.00361003540456295, -0.019701223820447922, 0.10603629052639008, -0.03515913337469101, 0.13369141519069672, -0.23166541755199432, 0.23966509103775024, -0.2091166377067566, 0.14929470419883728, -0.18942715227603912, 0.09671106934547424, 0.07523024827241898, -0.08528126031160355, 0.053221337497234344, -0.17134112119674683, 0.02107536792755127, 0.010569185018539429, -0.15079562366008759, -0.04721850901842117, 0.18301770091056824, 0.14029476046562195, 0.15340548753738403, -0.2545793652534485, 0.10788682103157043, -0.005875136703252792, 0.11862578988075256, 0.4159373641014099, 0.15438257157802582, 0.24156375229358673, 0.21506303548812866, 0.08808032423257828, 0.2187144011259079, 0.13025140762329102, -0.25680607557296753, -0.011533573269844055, -0.09233567118644714, -0.03635362908244133, 0.30848801136016846, 0.16057175397872925, 0.49787282943725586, 0.014810044318437576, -0.4372946619987488, -0.04824214056134224, -0.23147931694984436, 0.10639925301074982, 0.28516197204589844, 0.3828617334365845, -0.2197893112897873, 0.02807455323636532, 0.19541284441947937, 0.1463479995727539, -0.1679084151983261, -0.28968456387519836, -0.3228365480899811, 0.3451821506023407, -0.32532352209091187, -0.19962935149669647, 0.12553605437278748, 0.09560222923755646, -0.07858593761920929, 0.04803718253970146, -0.03571188449859619, 0.055301129817962646, 0.07634890079498291, -0.247365802526474, -0.17068105936050415, 0.18560583889484406, 0.20968042314052582, -0.10421083122491837, 0.323443204164505, -0.48366832733154297, -0.10272379219532013, 0.1058221161365509, -0.2070777714252472, -0.08960641920566559, -0.035920195281505585, 0.3180174231529236, -0.351398766040802, -0.10086776316165924, -0.15153709053993225, 0.10080717504024506, 0.061245664954185486, -0.15493585169315338, 0.02682853490114212, -0.08387941122055054, -0.046020299196243286, -0.4438784122467041, 0.0987599566578865, 0.577376127243042, -0.3923662602901459, -0.15835347771644592, -0.31497347354888916, -0.04101047292351723, 0.3569570481777191, -0.2316165715456009, 0.13289643824100494, 0.16129951179027557, -0.15059475600719452, 0.030738763511180878, 0.5494590401649475, -0.35942450165748596, -0.29829034209251404, -0.019450493156909943, -0.11950698494911194, -0.0845608115196228, -0.008068405091762543, -0.10454670339822769, 0.07586460560560226, 0.15029685199260712, 0.4117957651615143, 0.24507740139961243, -0.024491427466273308, -0.04034659266471863, -0.23563997447490692, -0.21621417999267578, 0.03015298582613468, 0.10724303126335144, 0.1855028122663498, 0.16095638275146484, 0.10866701602935791, -0.22548846900463104, 0.015082873404026031, -0.016561340540647507, -0.06782707571983337, -0.06646343320608139, 0.5562686920166016, -0.11980137228965759, -0.10301033407449722, -0.5486016869544983, -0.3364979326725006, 0.21377810835838318, -0.06441104412078857, 0.25838184356689453, -0.16227541863918304, -0.17712457478046417, -0.41699621081352234, 0.11737475544214249, -0.05916953459382057, 0.041595667600631714, 0.3479427099227905, 0.15848886966705322, -0.1316370964050293, 0.12016460299491882, -0.03892330452799797, 0.1554764062166214, -0.09755805879831314, 0.06154221296310425, 0.0028674639761447906, 0.36242660880088806, 0.028815070167183876, -0.3402508795261383, 0.012543223798274994, 0.2390858232975006, 0.49202847480773926, 0.0251285582780838, -0.03666054084897041, 0.3425717055797577, 0.015397751703858376, -0.05892403423786163, -0.07136110216379166, 0.012982070446014404, 0.035537492483854294, -0.3102557361125946, 0.09030833095312119, 0.07409404218196869, 0.27433300018310547, -0.05014890432357788, 0.04555932432413101, 0.5526733994483948, 0.06390858441591263, 0.16311822831630707, -0.07747828960418701, 0.2747512757778168, -0.10433327406644821, -0.06520605087280273, -0.15911903977394104, -0.1482444405555725, 0.11650262773036957, 0.052998147904872894, 0.19412626326084137, -0.04457215219736099, -0.10241149365901947, 0.07118578255176544, 0.6148305535316467, 0.07447843253612518, 0.41006171703338623, -0.13506799936294556, -0.36264917254447937, 0.13631483912467957, 0.06328226625919342, 0.26273462176322937, 0.4373953342437744, 0.3606952726840973, -0.05525285378098488, 0.07250647246837616, -0.09560087323188782, 0.04635833203792572, 0.08184704184532166, 0.07800126075744629, 0.17100735008716583, -0.02355910837650299, 0.26488223671913147, 0.00004831608384847641, -0.3021976351737976, 0.03938860073685646, -0.21157197654247284, 0.19996829330921173, -0.34422770142555237, 0.2703236937522888, -0.2761574685573578, -0.1083705872297287, 0.06657055020332336, -0.1341652125120163, -0.11199824512004852, -0.3972249925136566, -0.18969158828258514, 0.0495736300945282, 0.08469848334789276, 0.15966399013996124, 0.1331491321325302, 0.17809519171714783, 0.043584659695625305, -0.050639547407627106, -0.21693643927574158, -0.0929446890950203, -0.14918342232704163, 0.12451985478401184, 0.112788625061512, 0.21955037117004395, 0.4563969671726227, -0.2264527529478073, 0.2653893232345581, 0.04052570462226868, -0.2521413266658783, 0.10910401493310928, -0.11130116879940033, 0.5382037162780762, 0.4217015504837036, 0.0849711000919342, -0.13754895329475403, 0.04792269691824913, 0.402566134929657, -0.3987688720226288, 0.03456060588359833, 0.2760674059391022, -0.17331716418266296, 0.09936663508415222, -0.22149783372879028, -0.10913080722093582, -0.49372971057891846, -0.4305162727832794, 0.05353570729494095, 0.09401626884937286, 0.0907856822013855, 0.16613489389419556, 0.16477005183696747, 0.5161482691764832, 0.09035924077033997, 0.08534185588359833, -0.2309441864490509, -0.09283295273780823, 0.2652719020843506, -0.13562949001789093, -0.3170883059501648, 0.11643733084201813, -0.13272923231124878, 0.18824268877506256, 0.03466304764151573, -0.21737517416477203, -0.5696401000022888, -0.17610688507556915, 0.2179051637649536, -0.034390777349472046, 0.09332101792097092, 0.26999932527542114, 0.0949120968580246, -0.15692180395126343, -0.2845882177352905, -0.16251757740974426, -0.09149598330259323, 0.1541401743888855, -0.03183015435934067, -0.02497071772813797, 0.27864617109298706, -0.11610852181911469, 0.13205620646476746, -0.06656105816364288, -0.20754371583461761, 0.3825693130493164, -0.3480914831161499, 0.39846596121788025, -0.09964015334844589, -0.5200997591018677, -0.17360647022724152, 0.03532829135656357, -0.060932062566280365, 0.048966050148010254, -0.17149591445922852, -0.2166237086057663, -0.3766878843307495, -0.05624682456254959, -0.3627012073993683, -0.18732745945453644, -0.03915944695472717, 0.15603852272033691, -0.03688311576843262, 0.07491514086723328, 0.18881484866142273, -0.449106365442276, 0.057005055248737335, -0.01695084199309349, 0.15379109978675842, -0.0894065573811531, -0.1648549884557724, -0.11857417225837708, -0.24680766463279724, -0.28612980246543884, 0.4680054187774658, -0.149936243891716, -0.05639386922121048, -0.2046155482530594, -0.06607937067747116, 0.09054265916347504, -0.035879943519830704, 0.5689526200294495, -0.350373238325119, 0.18970853090286255, 0.476827472448349, 0.12519727647304535, -0.4568900167942047, 0.1350759118795395, -0.4355602562427521, 0.2517583668231964, 0.21854431927204132, 0.28022730350494385, -0.30605030059814453, 0.019135091453790665, 0.23995718359947205, 0.1026441752910614, -0.11065829545259476, -0.2221301794052124, -0.22178904712200165, -0.31839340925216675, -0.08035527914762497, 0.04201442375779152, -0.02529301866889, 0.4193626940250397, -0.0983458086848259, -0.1282835453748703, -0.3264179825782776, -0.025679146870970726, 0.2025919109582901, 0.25960513949394226, 0.28942984342575073, -0.12314993143081665, -0.1225854903459549, -0.08236517757177353, 0.07923276722431183, 0.13594959676265717, 0.3235682547092438, 0.07935789227485657, -0.34462958574295044, 0.09072724729776382, 0.08888895809650421, 0.278188019990921, 0.05736102908849716, -0.17625942826271057, -0.14405077695846558, -0.08695461601018906, 0.21756276488304138, 0.006137731019407511, 0.17691858112812042, 0.25485870242118835, 0.08978699892759323, -0.38118839263916016, -0.23075799643993378, 0.43377330899238586, 0.17661137878894806, -0.03812422230839729, 0.294884592294693, 0.20820651948451996, -0.23664771020412445, 0.2260974496603012, -0.022161133587360382, 1.0133306980133057, 0.05262398719787598, -0.1635144054889679, 0.5793561935424805, -0.14888876676559448, 0.5672779679298401, -0.019949689507484436, 0.03939756751060486, -0.3318086564540863, -0.29210883378982544, -0.005011418834328651, -0.14916658401489258, 0.2573123276233673, -0.09394071996212006, -0.6075482368469238, 0.19444839656352997, -0.3985600471496582, 0.06098233163356781, 0.00785256177186966, -0.12741228938102722, -0.11916806548833847, -0.10942773520946503, -0.3458574414253235, 0.2644386291503906, -0.13787104189395905, 0.19162411987781525, -0.14864683151245117, -0.06625363230705261, -0.08176778256893158, -0.10981827974319458, -0.1274232715368271, 0.0437014177441597, -0.36695533990859985, -0.18494044244289398, -0.0509839691221714, -0.1615009903907776, -0.10808280110359192, 0.0942898839712143, 0.08131682872772217, 0.14709621667861938, -0.27799496054649353, 0.08808301389217377, 0.08451834321022034, 0.02423737198114395, -0.006938633508980274, 0.00854723434895277, 0.1958826780319214, -0.037082474678754807, -0.2943594753742218, 0.10687220096588135, 0.045787353068590164, 0.11517636477947235, 0.3087924122810364, 0.10357581079006195, -0.0675770491361618, -0.3244163393974304, -0.10348385572433472, -0.0974472314119339, 0.24810919165611267, -0.3131105303764343, 0.27148377895355225, 0.08919963240623474, -0.12014735490083694, 0.09994558990001678, -0.012931056320667267, -0.14131967723369598, -0.0845811665058136, 0.3065219521522522, 0.24755507707595825, 0.31103748083114624, 0.06511413305997849, 0.2337539941072464, -0.14517951011657715, -0.3778768479824066, 0.19461074471473694, 0.12664556503295898, -0.30942854285240173, 0.24518410861492157, 0.11320450901985168, -0.10021349787712097, -0.01896711066365242, 0.3583431541919708, 0.08726727962493896, 0.012129656970500946, -0.13199155032634735, -0.31772005558013916, -0.22757384181022644, 0.19746655225753784, 0.12628421187400818, 0.04679345339536667, 0.04094816744327545, 0.24098694324493408, 0.21606449782848358, -0.014946961775422096, -0.47772717475891113, 0.023357437923550606, -0.35480159521102905, -0.12109526991844177, 0.05531013384461403, -0.13120189309120178, 0.21061813831329346, 0.03077435865998268, 0.26266053318977356, 0.06113721430301666, -0.12301644682884216, -0.3603874742984772, -0.11962321400642395, 0.0878794938325882, -0.0960552841424942, 0.12124686688184738, 0.1928567886352539, -0.06559500098228455, -0.2737077474594116, -0.18214669823646545, 0.06557914614677429, -0.0048973895609378815, -0.1561487466096878, 0.0742095559835434, 0.19551673531532288, 0.30577701330184937, 0.05422179400920868, 0.07680844515562057, 0.11816917359828949, -0.04721754789352417, -0.0940907746553421, 0.050416819751262665, 0.01149157527834177, -0.09162084758281708, 0.0615551583468914, 0.047315940260887146, 0.15794797241687775, 0.12042266875505447, 0.1462680995464325, -0.1426488757133484, -0.17612558603286743, 0.03428434208035469, 0.24583914875984192, 0.16844815015792847, -0.18265344202518463, 0.24511964619159698, -0.20319923758506775, 0.36860159039497375, -0.3018472492694855, 0.04486629739403725, 0.23344627022743225, -0.005772297270596027, 0.2976728081703186, 0.14921356737613678, -0.289226770401001, 0.22511184215545654, -0.15432153642177582, 0.00222889706492424, 0.42088741064071655, -0.08482831716537476, 0.09413214027881622, 0.2553800642490387, -0.161747545003891, 0.07267706096172333, 0.42079582810401917, 0.21576601266860962, 0.08089657127857208, 0.11472585797309875, -0.01203920692205429, 0.20920142531394958, -0.05954807996749878, -0.008851509541273117, 0.17259764671325684, -0.4266684949398041, 0.18628352880477905, 0.19809940457344055, 0.022372394800186157, -0.03816549479961395, -0.2197997272014618, 0.41530078649520874, -0.5084756016731262, -0.056522540748119354, -0.32371416687965393, 0.048777349293231964, -0.17411550879478455, 0.06059760972857475, -0.16821441054344177, -0.12894806265830994, -0.2265682965517044, -0.2804170846939087, 0.1312566101551056, -0.16091756522655487, 0.27993205189704895, -0.16956022381782532, 0.10229437798261642, -0.19380894303321838, -0.06666214764118195, 0.2105492353439331, 0.1612243950366974, -0.20317625999450684, 0.0029698777943849564, -0.019834287464618683, 0.22439360618591309, -0.14448873698711395, 0.47211259603500366, 0.4282219707965851, 0.2557368278503418, -0.1851385235786438, -0.09297473728656769, -0.006572583690285683, -0.293438583612442, -0.17106476426124573, 0.09330468624830246, 0.1752077341079712, 0.17537739872932434, 0.10745714604854584, 0.33132463693618774, -0.3341614603996277, 0.09416186064481735, -0.023793090134859085, -0.01389262080192566, -0.22673532366752625, 0.38321492075920105, -0.2947540581226349, -0.08552573621273041, -0.1702570915222168, -0.1365148425102234, -0.5748510360717773, 0.04058966413140297, 0.34194570779800415, 0.09301739931106567, 0.1262921690940857, -0.16055089235305786, 0.15247708559036255, -0.17488154768943787, 0.17220264673233032, 0.014829277992248535, 0.4054073989391327, -0.2588355541229248, -0.00279940664768219, -0.5410191416740417, 0.42757636308670044, 0.015563124790787697, -0.15880818665027618, 0.03151417523622513, -0.03314732387661934, -0.11466646939516068, -0.017911363393068314, 0.02206302434206009, 0.33603930473327637, 0.22620896995067596, -0.025657735764980316, -0.5814421772956848, -0.29016971588134766, -0.1248452365398407, -0.2796957492828369, 0.13222548365592957, -0.2572004795074463, -0.03584378585219383, -0.20612695813179016, 0.21608436107635498, -0.03793101757764816, -0.2939603924751282, 0.08699862658977509, 0.14208361506462097, 0.6847298741340637, 0.1776425838470459, 0.40540802478790283, -0.16419202089309692, 0.03169310837984085, 0.011777542531490326, -0.24238838255405426, -0.10330193489789963, 0.2090895175933838, 0.07556544244289398, 0.17369171977043152, 0.012759843841195107, 0.13357998430728912, -0.12750808894634247, 0.03202700987458229, 0.11048021912574768, 0.07009903341531754, -0.11591281741857529, 0.2584395408630371, -0.23253729939460754, -0.11883386969566345, -0.18745829164981842, 0.08073195815086365, 0.0883738249540329, 0.20767219364643097, -0.03387022018432617, -0.178132563829422, 0.6508179903030396, -0.19926989078521729, -0.375453382730484, -0.005676887929439545, 0.333024263381958, 0.025154296308755875, -0.18259944021701813, -0.433086097240448, 0.01867096871137619, 0.42222341895103455, -0.0488336905837059, -0.21325910091400146, 0.2750222980976105, -0.25424498319625854, 0.039203446358442307, -0.023348988965153694, 0.07668030261993408, 0.007115108892321587, -0.04886650666594505, 0.16207696497440338, -0.1435602307319641 ]
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.24798239767551422, -0.3217710256576538, 0.07634991407394409, 0.4701034426689148, 0.4953814148902893, 0.01850798726081848, 0.3540433645248413, 0.06149499490857124, 0.24025771021842957, 0.31286153197288513, -0.276409387588501, 0.4540327191352844, -0.06261872500181198, 0.10333333164453506, 0.15565802156925201, -0.15578584372997284, -0.2255951464176178, 0.1679680347442627, -0.07798555493354797, 0.10205505788326263, -0.4996086657047272, -0.02934633009135723, -0.2632771134376526, 0.19516372680664062, -0.15596547722816467, -0.1863708198070526, -0.07376845180988312, 0.08071482926607132, -0.14787417650222778, -0.2537325620651245, 0.568166196346283, -0.10833822190761566, 0.21222855150699615, 0.5568335652351379, -0.0001079976573237218, 0.022329911589622498, 0.5475674271583557, 0.022291479632258415, -0.18126200139522552, -0.5533772110939026, -0.17559313774108887, -0.4152665138244629, 0.32018446922302246, -0.3743583858013153, -0.11459748446941376, 0.07909353822469711, 0.14598852396011353, -0.11177293211221695, 0.3590349555015564, 0.4540639817714691, 0.2855806052684784, 0.7018626928329468, -0.019747696816921234, -0.3421171307563782, 0.13334760069847107, 0.05414494872093201, -0.1285514235496521, 0.28715944290161133, 0.13716694712638855, -0.008233439177274704, 0.43345925211906433, -0.03733167052268982, -0.37050876021385193, 0.09044566750526428, 0.3338052034378052, 0.017311759293079376, 0.04568210616707802, -0.4084409773349762, 0.09899620711803436, 0.3526201546192169, 0.4291328489780426, -0.27898675203323364, -0.14455203711986542, 0.10621761530637741, 0.23932895064353943, -0.061996035277843475, 0.17657917737960815, 0.07574383169412613, -0.029810365289449692, 0.041353270411491394, 0.04638736695051193, 0.17182977497577667, -0.27798640727996826, 0.2125992625951767, -0.1284298151731491, -0.03536601364612579, -0.19327190518379211, 0.2176222801208496, 0.03803667426109314, -0.09714050590991974, 0.031084980815649033, -0.17658279836177826, 0.001849055290222168, 0.145195871591568, -0.307456374168396, -0.03703874722123146, 0.10036014765501022, 0.02064097300171852, 0.2188020944595337, -0.23972658812999725, 0.21414610743522644, -0.08140651136636734, 0.0014908155426383018, 0.3541436493396759, 0.34626972675323486, 0.2386878877878189, 0.21580970287322998, 0.14084573090076447, 0.15175454318523407, 0.022729212418198586, -0.17890411615371704, 0.062140122056007385, -0.2835336923599243, -0.04607158154249191, 0.2485671192407608, 0.2519287168979645, 0.6219195127487183, 0.02261798456311226, -0.5257902145385742, -0.19461552798748016, -0.0697031170129776, 0.07446427643299103, 0.14892582595348358, 0.4044243395328522, -0.2522182762622833, 0.0734095349907875, 0.0253308042883873, 0.28984367847442627, -0.19493286311626434, -0.38263776898384094, -0.25042814016342163, 0.15268383920192719, -0.2685990333557129, -0.27057114243507385, 0.24026204645633698, 0.0925440639257431, 0.03124791942536831, 0.04306093603372574, -0.2270829826593399, 0.08594340085983276, 0.16728897392749786, -0.37100109457969666, -0.31831735372543335, 0.203129380941391, 0.29819053411483765, 0.0132750254124403, 0.2797112464904785, -0.3238164782524109, -0.0456266887485981, 0.29752054810523987, -0.3877721428871155, -0.12059259414672852, -0.12639351189136505, 0.19356006383895874, -0.36293065547943115, -0.15650008618831635, -0.536428689956665, 0.0805208683013916, 0.04011774808168411, -0.08928481489419937, -0.05736889690160751, -0.14254023134708405, -0.06975608319044113, -0.3583664298057556, -0.05518142133951187, 0.47619134187698364, -0.21475939452648163, -0.2288666069507599, -0.3011825382709503, -0.2443198263645172, 0.3596113622188568, -0.14555585384368896, -0.04760357365012169, 0.24565523862838745, -0.13856174051761627, 0.019540555775165558, 0.6420376896858215, -0.5051136016845703, -0.28108322620391846, 0.15326085686683655, -0.1181740015745163, -0.07644126564264297, -0.09492266923189163, -0.044614408165216446, 0.28639522194862366, 0.07587090134620667, 0.3716186285018921, 0.3349784016609192, 0.0008513964712619781, -0.030564332380890846, -0.13110776245594025, -0.210562065243721, 0.29094523191452026, 0.19490286707878113, 0.23611004650592804, 0.2211592197418213, 0.0545341856777668, -0.1998477280139923, -0.035804882645606995, 0.05276848003268242, -0.08131744712591171, -0.02011953666806221, 0.435552179813385, -0.04369652271270752, -0.02576567605137825, -0.5290391445159912, -0.5686801671981812, 0.18995043635368347, -0.08416241407394409, 0.1826200783252716, -0.11573034524917603, -0.06739631295204163, -0.304042786359787, 0.042623937129974365, -0.07802167534828186, -0.021745413541793823, 0.1823788285255432, 0.07941242307424545, -0.2668645679950714, 0.055881451815366745, -0.07700298726558685, 0.19090136885643005, -0.1526101678609848, 0.0957811027765274, 0.12126132845878601, 0.2611960172653198, 0.10169751942157745, -0.3987409770488739, -0.0017727017402648926, 0.1362127959728241, 0.4781358242034912, 0.018362542614340782, -0.08265791833400726, 0.1729598045349121, 0.045810211449861526, -0.10204499959945679, -0.21710816025733948, -0.17620442807674408, 0.0575556755065918, -0.3366033136844635, -0.044761426746845245, 0.13471557199954987, 0.3460840582847595, -0.16048169136047363, 0.08364376425743103, 0.4571967124938965, -0.016792945563793182, 0.34218546748161316, -0.14377883076667786, 0.24062860012054443, 0.052516870200634, -0.060673054307699203, -0.13310742378234863, 0.18047203123569489, 0.12906983494758606, 0.09137466549873352, 0.2827323079109192, -0.03558532893657684, -0.2706822156906128, 0.004667311906814575, 0.6162096858024597, 0.02995963767170906, 0.319414883852005, -0.08315178006887436, -0.3378826975822449, 0.14620280265808105, 0.00003254041075706482, 0.04182656481862068, 0.5353930592536926, 0.263228178024292, -0.11035993695259094, -0.016473041847348213, 0.0007063420489430428, 0.05156881362199783, 0.03337804228067398, 0.06909003108739853, 0.28565889596939087, 0.046130601316690445, 0.2759699821472168, 0.03866349905729294, -0.20053282380104065, 0.1444481462240219, -0.008435843512415886, 0.1951351910829544, -0.39696136116981506, 0.18787899613380432, -0.14235712587833405, -0.11657221615314484, -0.030460741370916367, 0.13702259957790375, -0.10422457754611969, -0.19904498755931854, -0.31349557638168335, 0.1589781790971756, 0.2137136310338974, 0.12652581930160522, 0.1616363376379013, 0.008839577436447144, -0.011312665417790413, -0.040885962545871735, -0.16349506378173828, -0.14585921168327332, -0.18618381023406982, 0.04621630534529686, 0.1946972757577896, 0.07352669537067413, 0.34953773021698, -0.19005528092384338, 0.1245679259300232, -0.10004936903715134, -0.12407225370407104, 0.018916543573141098, -0.07744249701499939, 0.5409657955169678, 0.26838386058807373, 0.2594895362854004, -0.16248226165771484, 0.11941094696521759, 0.37918758392333984, -0.4782690703868866, -0.05120787024497986, 0.33303606510162354, -0.3349438011646271, 0.09676339477300644, -0.2121219038963318, -0.3186376690864563, -0.5942170023918152, -0.393820196390152, 0.20549209415912628, -0.012952573597431183, 0.06968764960765839, 0.3293651044368744, 0.1026407927274704, 0.4716494083404541, 0.21775458753108978, 0.0916106328368187, -0.18446287512779236, -0.034202247858047485, 0.27942511439323425, -0.1346677839756012, -0.3884647488594055, 0.1575419157743454, -0.09710272401571274, 0.2852424383163452, 0.07990846037864685, -0.12456482648849487, -0.2630614638328552, -0.06691178679466248, 0.1975758671760559, -0.12467072904109955, -0.12070702016353607, 0.32315367460250854, -0.08457590639591217, -0.046994443982839584, -0.21153485774993896, -0.12139531970024109, -0.04822523146867752, 0.3319035470485687, -0.007172875106334686, 0.09451679140329361, 0.34159335494041443, -0.1624031662940979, 0.33099377155303955, -0.086829274892807, -0.039396751672029495, 0.40930861234664917, -0.3032320439815521, 0.27769890427589417, -0.09659316390752792, -0.4811324179172516, 0.007316203787922859, 0.05634882301092148, 0.06938278675079346, 0.07898079603910446, -0.2715212404727936, -0.24795778095722198, -0.3175481855869293, -0.25298166275024414, -0.41965073347091675, -0.07618515193462372, -0.0940631851553917, 0.1780710518360138, 0.009004540741443634, 0.17096185684204102, 0.18896839022636414, -0.4353348910808563, -0.10185053944587708, 0.0006983289495110512, 0.23761574923992157, 0.014692157506942749, -0.11296132206916809, -0.26121070981025696, -0.2340482473373413, -0.3139868974685669, 0.34559208154678345, -0.2557937800884247, 0.08330079168081284, -0.14002886414527893, 0.08952256292104721, 0.1889623999595642, 0.0027523632161319256, 0.7596026659011841, -0.18230697512626648, 0.22902143001556396, 0.38683488965034485, 0.2017732858657837, -0.6543712615966797, -0.02793971821665764, -0.29241788387298584, 0.3361032009124756, 0.09061166644096375, 0.39593610167503357, -0.42695170640945435, -0.04438889026641846, 0.15252520143985748, 0.031496159732341766, -0.09392307698726654, -0.24251526594161987, -0.268761545419693, -0.305156946182251, -0.00872795283794403, 0.021820925176143646, 0.009019395336508751, 0.4349668622016907, -0.17009973526000977, -0.1275985836982727, -0.40858718752861023, 0.16029301285743713, 0.11261392384767532, -0.025370381772518158, 0.2526397407054901, -0.05681600049138069, -0.009302837774157524, 0.06357204169034958, -0.007793843746185303, 0.1148451492190361, 0.3582157790660858, 0.027282021939754486, -0.45285409688949585, 0.26153305172920227, -0.021164219826459885, 0.24439942836761475, 0.07095641642808914, -0.1279032826423645, -0.08519912511110306, 0.008784686215221882, 0.07800476998090744, -0.014175412245094776, 0.09054642170667648, 0.34250906109809875, 0.03830529749393463, -0.3234170973300934, -0.40452247858047485, 0.2545504570007324, 0.30319440364837646, 0.04014196991920471, 0.3135269284248352, 0.00830753892660141, -0.16731426119804382, 0.061058737337589264, -0.13467392325401306, 0.8996838331222534, -0.060539811849594116, -0.10178528726100922, 0.6653999090194702, -0.24445517361164093, 0.47850513458251953, 0.030294790863990784, 0.09032666683197021, -0.2928260564804077, -0.27005523443222046, -0.01556906197220087, -0.2568277418613434, 0.2637608051300049, 0.08154911547899246, -0.4304998219013214, 0.3003609776496887, -0.2911157011985779, 0.20780865848064423, 0.021377265453338623, -0.054400116205215454, -0.060865044593811035, -0.11267402768135071, -0.34367111325263977, 0.16298037767410278, -0.26640784740448, 0.26880884170532227, -0.11475050449371338, -0.1441330760717392, -0.03311870992183685, -0.07534350454807281, -0.12978726625442505, 0.156576007604599, -0.3821195363998413, -0.16315089166164398, 0.11582645773887634, -0.20061376690864563, 0.07688458263874054, 0.18196846544742584, 0.07397866994142532, -0.10281199216842651, -0.3268235921859741, 0.17889878153800964, -0.07588336616754532, 0.13643333315849304, -0.0878419503569603, 0.00008251797407865524, 0.24698406457901, -0.10070439428091049, -0.3328224718570709, 0.12364082038402557, -0.06408064812421799, 0.21982301771640778, 0.2899291217327118, 0.18027859926223755, -0.07299606502056122, -0.26217129826545715, -0.21223635971546173, -0.17995142936706543, 0.3643168807029724, -0.27591511607170105, 0.1959189623594284, 0.009252186864614487, -0.10245171189308167, 0.08008144795894623, -0.05071103200316429, -0.12536104023456573, 0.00885426439344883, 0.4873362183570862, 0.4263884425163269, 0.28729376196861267, 0.26606518030166626, 0.2743079364299774, -0.08068206906318665, -0.3562264144420624, 0.2828983664512634, 0.11645577847957611, -0.3351705074310303, 0.30599480867385864, 0.14822229743003845, 0.011609658598899841, 0.016137178987264633, 0.49524739384651184, 0.025640267878770828, -0.02260187268257141, -0.07561516761779785, -0.2714719772338867, -0.29406115412712097, 0.21104662120342255, 0.007054522633552551, -0.04866582527756691, 0.11375197023153305, 0.18835878372192383, 0.28802821040153503, -0.15383341908454895, -0.35716745257377625, 0.12020952999591827, -0.39744576811790466, -0.026375461369752884, 0.022024109959602356, -0.08833708614110947, 0.2679440677165985, 0.07432864606380463, 0.13676564395427704, -0.0063329339027404785, -0.11593730747699738, -0.2485039234161377, -0.22176536917686462, 0.13630877435207367, -0.027841459959745407, 0.15121635794639587, 0.15154489874839783, -0.2163805067539215, -0.2809669077396393, -0.012905599549412727, 0.04690052941441536, 0.02016555145382881, -0.17441537976264954, 0.0505836084485054, 0.19102217257022858, 0.3978148102760315, -0.02178325690329075, 0.2827036380767822, -0.006748192012310028, 0.034538764506578445, -0.14337879419326782, 0.023768458515405655, 0.20309074223041534, 0.025237545371055603, -0.20873700082302094, -0.06448978930711746, 0.250851035118103, 0.16761931777000427, 0.09408628195524216, -0.3053339719772339, -0.12315577268600464, -0.09764514863491058, 0.0022101234644651413, 0.1308596134185791, -0.17236311733722687, 0.29908645153045654, -0.1103159710764885, 0.27010348439216614, -0.27798086404800415, 0.05242462828755379, 0.32695719599723816, -0.12120912224054337, 0.06788121163845062, 0.02834545075893402, -0.32221949100494385, 0.20129814743995667, -0.11265134811401367, 0.15114706754684448, 0.44060978293418884, -0.12479034066200256, 0.0929887592792511, 0.21740306913852692, -0.11620515584945679, -0.01579039916396141, 0.4607022702693939, 0.20200115442276, 0.039333634078502655, 0.1420462429523468, 0.022632688283920288, 0.03663700073957443, -0.04828596115112305, 0.10632060468196869, 0.2827982008457184, -0.47817057371139526, 0.003583267331123352, 0.10940305888652802, -0.0017194151878356934, -0.09504245966672897, -0.3151480555534363, 0.5316862463951111, -0.47294482588768005, -0.12424194067716599, -0.2933815121650696, -0.007862560451030731, -0.18876761198043823, 0.14117178320884705, -0.19200338423252106, -0.13009920716285706, -0.09602425992488861, -0.19645151495933533, 0.0039725229144096375, -0.14528177678585052, 0.2983595132827759, -0.12987855076789856, -0.06219598650932312, -0.15632513165473938, -0.07531437277793884, 0.42354726791381836, -0.04837723821401596, -0.1696937382221222, 0.07147528976202011, -0.15132053196430206, 0.21569368243217468, -0.09761323034763336, 0.5807604789733887, 0.3321210443973541, 0.32866913080215454, -0.2131844311952591, -0.16956748068332672, 0.25452694296836853, -0.3181827664375305, -0.10708765685558319, 0.15483710169792175, 0.158580482006073, 0.1606113612651825, 0.07852089405059814, 0.2066706120967865, -0.2241433709859848, 0.14201875030994415, 0.04365989565849304, -0.1447921097278595, -0.3188245892524719, 0.4858046770095825, -0.3899846076965332, -0.1255379617214203, -0.1277064085006714, -0.0744742676615715, -0.5568336248397827, 0.11908049136400223, 0.27113568782806396, 0.2195585072040558, 0.09889156371355057, -0.1955024003982544, 0.09587027132511139, -0.32252979278564453, 0.22150081396102905, 0.020387418568134308, 0.3648225665092468, -0.3144547641277313, 0.11566321551799774, -0.5239734649658203, 0.45923182368278503, -0.010784521698951721, 0.010512696579098701, 0.15419477224349976, -0.09312181174755096, -0.26544126868247986, -0.003914903849363327, 0.03069407492876053, 0.2047601193189621, 0.39989030361175537, 0.1453908383846283, -0.5745070576667786, -0.39090895652770996, -0.047737687826156616, -0.07274524867534637, 0.09164848178625107, -0.26210010051727295, 0.01292666420340538, -0.15178827941417694, 0.023295670747756958, -0.11175213754177094, -0.3203567862510681, 0.15119823813438416, 0.14068923890590668, 0.7023332118988037, 0.04464338719844818, 0.44112658500671387, 0.028585776686668396, -0.011712228879332542, 0.12163662910461426, -0.3079589605331421, -0.10504592955112457, 0.17643147706985474, -0.004793222993612289, 0.05286625772714615, -0.020993530750274658, 0.27261826395988464, -0.21756228804588318, -0.18123199045658112, -0.1439601182937622, 0.12817247211933136, -0.30535221099853516, 0.31196802854537964, -0.30867499113082886, -0.13937322795391083, -0.34222185611724854, -0.005794476717710495, 0.11767172068357468, 0.04527256637811661, -0.10811220109462738, 0.0493604838848114, 0.6277845501899719, -0.16532179713249207, -0.344037801027298, -0.10382513701915741, 0.3128975033760071, -0.035987578332424164, -0.11266226321458817, -0.5198070406913757, 0.05681978911161423, 0.4852415919303894, -0.06891506910324097, -0.1922021061182022, 0.2341877669095993, -0.14151841402053833, 0.13243868947029114, -0.021421773359179497, -0.09415674209594727, -0.009551025927066803, -0.03140852600336075, 0.21754518151283264, -0.14357918500900269 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.29441067576408386, 0.39009320735931396, -0.1317225843667984, 0.06419653445482254, 0.4353678822517395, 0.13932782411575317, 0.16796399652957916, 0.5879850387573242, -0.026145730167627335, 0.23434165120124817, -0.19477713108062744, -0.04730890318751335, 0.059417400509119034, 0.31870901584625244, 0.06435982137918472, -0.3084110617637634, 0.06527985632419586, -0.013006404042243958, -0.13955245912075043, 0.030854396522045135, -0.0759803056716919, 0.27826204895973206, 0.010026417672634125, 0.06546448171138763, 0.018109174445271492, 0.09367071092128754, -0.0290925744920969, -0.09794490784406662, -0.2686379849910736, -0.43473756313323975, 0.4153392016887665, 0.061375632882118225, 0.16973774135112762, 0.38088488578796387, -0.00010737670527305454, 0.14723344147205353, 0.329101026058197, 0.008616896346211433, -0.2500196695327759, -0.35319507122039795, -0.3288859724998474, -0.11417633295059204, -0.19650353491306305, -0.14808115363121033, -0.08305326104164124, 0.21273599565029144, 0.2038821429014206, -0.26071298122406006, 0.041716381907463074, 0.5573633909225464, 0.2718280255794525, 0.0907752737402916, 0.30793702602386475, -0.3647714853286743, 0.26572656631469727, 0.14753922820091248, -0.03651612251996994, 0.0705636516213417, 0.07858918607234955, 0.0108674056828022, 0.3562815189361572, 0.04600030183792114, -0.13399702310562134, 0.07433134317398071, -0.15536758303642273, -0.08402253687381744, -0.09248162060976028, -0.34242284297943115, 0.2141401469707489, 0.3073769509792328, 0.5096560120582581, -0.2044650912284851, -0.3611646592617035, 0.22677940130233765, -0.05986262112855911, -0.2795485854148865, 0.2698040008544922, 0.18022273480892181, 0.09009139239788055, 0.16981875896453857, 0.17325735092163086, -0.4855837821960449, -0.18901343643665314, 0.052865054458379745, -0.41417890787124634, 0.10760544240474701, -0.11776363849639893, 0.004858877509832382, -0.10592116415500641, -0.12039390206336975, 0.30164578557014465, -0.054791636765003204, -0.03756145015358925, 0.25901269912719727, -0.274545818567276, -0.18414723873138428, 0.10355664789676666, 0.031147819012403488, 0.19200506806373596, 0.049068477004766464, 0.13623103499412537, -0.10176479071378708, -0.5062007308006287, -0.06661354750394821, 0.24186865985393524, -0.10953810811042786, -0.0002668425440788269, 0.3804110884666443, 0.2949267029762268, 0.24163657426834106, 0.14843350648880005, 0.04731418192386627, -0.1586332768201828, -0.35869255661964417, 0.026933439075946808, -0.113103948533535, 0.492836058139801, -0.20854149758815765, -0.3899921774864197, 0.1616978794336319, -0.09008188545703888, -0.1214747503399849, -0.017612341791391373, 0.15179455280303955, -0.024420879781246185, 0.07535751163959503, 0.09186981618404388, 0.1404547095298767, -0.008870641700923443, -0.1377049684524536, -0.26610028743743896, 0.2041446715593338, -0.012519635260105133, 0.07130265235900879, 0.23099975287914276, -0.34486719965934753, 0.09529971331357956, -0.025891389697790146, -0.46248334646224976, 0.08283345401287079, -0.136152982711792, -0.07501623034477234, -0.24587735533714294, 0.36322858929634094, 0.22659099102020264, 0.10456559807062149, 0.0013825930655002594, 0.11343981325626373, -0.2949781119823456, 0.27925634384155273, -0.3678761422634125, -0.06789030879735947, -0.1227777749300003, 0.2941954433917999, -0.3227277398109436, -0.24663913249969482, -0.5071802735328674, -0.03396548703312874, -0.052504248917102814, -0.3056931495666504, -0.12345971912145615, -0.17450372874736786, -0.1805347502231598, -0.251517653465271, 0.11249280720949173, 0.6013510823249817, -0.20639032125473022, 0.02088567614555359, -0.41966238617897034, -0.4201270043849945, 0.189963698387146, 0.2693204879760742, -0.03414066880941391, 0.4477236270904541, -0.3025842607021332, 0.08851774036884308, 0.4392075836658478, -0.1254834681749344, -0.7618818879127502, -0.0033202641643583775, -0.2596685588359833, -0.1898876577615738, 0.17900145053863525, 0.0790310725569725, 0.2497507631778717, -0.10000554472208023, 0.24605689942836761, 0.13707482814788818, 0.012918010354042053, -0.04594685882329941, -0.23870013654232025, -0.010564858093857765, -0.004589378833770752, 0.18394118547439575, 0.10487763583660126, 0.20509816706180573, 0.15016809105873108, -0.07256791740655899, 0.23575568199157715, 0.16073350608348846, 0.09941532462835312, 0.3408912420272827, 0.3313904106616974, -0.026513762772083282, -0.019944271072745323, -0.18357425928115845, -0.1992594599723816, 0.12322906404733658, -0.21627862751483917, 0.10841502249240875, -0.20868052542209625, -0.13046500086784363, -0.44674229621887207, 0.05946260690689087, -0.06538482010364532, -0.09304271638393402, 0.14991708099842072, -0.00027620792388916016, 0.3107367157936096, 0.33210763335227966, -0.02035558968782425, 0.32068198919296265, 0.2677033245563507, 0.10301177948713303, -0.13754382729530334, 0.5665913820266724, -0.13397882878780365, 0.0568045973777771, 0.4536592662334442, -0.2412830889225006, 0.23640355467796326, -0.08168166130781174, -0.062301166355609894, 0.15459385514259338, 0.060469385236501694, 0.34222784638404846, 0.47713372111320496, 0.2396411895751953, 0.17216558754444122, -0.43543529510498047, 0.21166390180587769, 0.34326839447021484, 0.07830245792865753, 0.14114481210708618, -0.19090679287910461, 0.02136162668466568, 0.15398503839969635, 0.035016708076000214, -0.017607316374778748, 0.2682006061077118, 0.5447123050689697, 0.0763237327337265, 0.06330139935016632, -0.06420587003231049, 0.26791590452194214, 0.5545852780342102, 0.22247810661792755, -0.06776239722967148, -0.24191701412200928, 0.14570970833301544, 0.5387059450149536, -0.03721790015697479, 0.05278589949011803, 0.2355954349040985, -0.14766794443130493, -0.06319104880094528, -0.19531014561653137, 0.209787055850029, 0.17180964350700378, 0.0596289187669754, 0.15652203559875488, 0.01063515618443489, -0.07776983827352524, -0.26678815484046936, 0.05513343587517738, 0.07252133637666702, 0.14529500901699066, 0.14184236526489258, 0.1219758465886116, 0.20613351464271545, -0.08200912922620773, -0.30872857570648193, 0.030994316563010216, 0.30566662549972534, -0.131101593375206, -0.07953859120607376, -0.25926828384399414, 0.00494128093123436, -0.2732791602611542, -0.3159630298614502, -0.21133027970790863, -0.3952905833721161, 0.06054206192493439, 0.26576128602027893, 0.06559993326663971, -0.010298384353518486, -0.056036438792943954, 0.03399968147277832, 0.24361513555049896, -0.30984213948249817, -0.13410870730876923, -0.15004943311214447, -0.10418925434350967, 0.1706148236989975, 0.23775996267795563, -0.30771583318710327, 0.39823487401008606, -0.6368309259414673, 0.1199379712343216, -0.5480057001113892, -0.2346217930316925, -0.04311738908290863, -0.18990632891654968, 0.09422885626554489, 0.17561450600624084, 0.40220165252685547, 0.34272921085357666, 0.2505163550376892, 0.1937544345855713, -0.024793073534965515, -0.05100630968809128, 0.08910982310771942, -0.13872043788433075, -0.04412383958697319, 0.18273384869098663, -0.4613676965236664, -0.3021492063999176, -0.22804981470108032, 0.0444352850317955, 0.0629069060087204, 0.2366311103105545, -0.2858436703681946, 0.17098887264728546, 0.06599463522434235, 0.13281075656414032, -0.3080635368824005, -0.12229657918214798, -0.1796015202999115, 0.4985625743865967, -0.23718102276325226, -0.2333056777715683, 0.10590077936649323, 0.1302611082792282, 0.4757523238658905, 0.1674671769142151, -0.44977009296417236, 0.17924362421035767, -0.34597042202949524, 0.15347951650619507, -0.04684629291296005, 0.07588733732700348, 0.3201245069503784, 0.14537306129932404, -0.11372003704309464, -0.056993067264556885, -0.1610035002231598, -0.05003886669874191, -0.38550928235054016, 0.23301124572753906, -0.03675731271505356, 0.2503891587257385, -0.12100684642791748, 0.3981987237930298, 0.25511041283607483, 0.07454706728458405, 0.30406779050827026, -0.19432637095451355, 0.1306033879518509, -0.1279258131980896, -0.18894711136817932, -0.0984252542257309, 0.15770359337329865, -0.11632400751113892, -0.19678689539432526, -0.018463902175426483, 0.0741211473941803, -0.16941308975219727, -0.1042795181274414, -0.20427918434143066, -0.28362467885017395, -0.13036225736141205, 0.017782311886548996, 0.417281836271286, 0.1859097182750702, 0.01568310707807541, -0.16743069887161255, -0.09354198724031448, 0.24436333775520325, 0.1396634727716446, -0.0014966726303100586, -0.018045052886009216, -0.12513697147369385, -0.18431079387664795, -0.6704334020614624, 0.3441165089607239, -0.1174287274479866, 0.2354000210762024, -0.09272401034832001, 0.18525055050849915, 0.11048130691051483, -0.04633784294128418, 0.5471500754356384, 0.06253740191459656, 0.3733004927635193, 0.35639429092407227, 0.27668243646621704, -0.14604613184928894, -0.05251044034957886, -0.13045160472393036, 0.2965843379497528, -0.02636125311255455, 0.3771854341030121, -0.2650288939476013, -0.05549636110663414, 0.22224508225917816, 0.18887139856815338, -0.103156678378582, 0.18050460517406464, -0.06394786387681961, -0.4556209444999695, -0.2093120664358139, -0.17720162868499756, -0.08709842711687088, 0.27388647198677063, -0.15301112830638885, -0.08726147562265396, 0.06726769357919693, -0.14736944437026978, -0.017555594444274902, -0.16865693032741547, 0.3812933564186096, -0.1637209951877594, 0.17716248333454132, -0.009664054960012436, -0.2981497049331665, 0.5925556421279907, 0.911689817905426, -0.0094221830368042, -0.4505525827407837, -0.06999701261520386, 0.10417824238538742, -0.1924930214881897, 0.03705460578203201, -0.10771496593952179, -0.1556163728237152, -0.13476642966270447, 0.12147483229637146, -0.16979961097240448, 0.21793454885482788, 0.26681578159332275, 0.07851208001375198, -0.41894689202308655, -0.3319604694843292, 0.40777426958084106, 0.16759100556373596, -0.04226606339216232, 0.4756699502468109, 0.12317825853824615, 0.005215153098106384, -0.15127474069595337, -0.14658701419830322, 0.7076452374458313, -0.17085181176662445, 0.1218787431716919, 0.3979231119155884, -0.16708938777446747, 0.2951294481754303, 0.053989723324775696, 0.054950643330812454, -0.35602888464927673, 0.2241543084383011, -0.05079846829175949, -0.09560933709144592, 0.042288947850465775, 0.03315947204828262, -0.22615288197994232, 0.37607407569885254, -0.19127054512500763, 0.0057617612183094025, 0.23429906368255615, 0.2299368977546692, -0.23252061009407043, 0.1433074027299881, -0.24940568208694458, 0.23257938027381897, -0.17009110748767853, 0.5963366031646729, 0.012604912742972374, -0.1578865647315979, -0.2352520376443863, -0.08879242837429047, -0.4586823582649231, 0.22263073921203613, -0.35314640402793884, 0.04721802473068237, -0.1291952133178711, -0.22001247107982635, 0.06456001102924347, 0.15864776074886322, 0.30449172854423523, 0.23625591397285461, -0.5237358212471008, 0.26703813672065735, -0.3025304973125458, -0.3513714373111725, 0.17285026609897614, 0.21179835498332977, 0.21361549198627472, -0.03559069335460663, -0.275493323802948, 0.19301310181617737, 0.016578957438468933, -0.1336367130279541, -0.15974381566047668, -0.3023329973220825, 0.09608469903469086, -0.28713399171829224, 0.030884329229593277, -0.17845550179481506, -0.06391707807779312, -0.25925615429878235, 0.21087831258773804, 0.24442870914936066, 0.17908644676208496, -0.077031709253788, -0.20085348188877106, -0.2742713987827301, -0.12531709671020508, 0.4576686918735504, -0.08990699052810669, 0.03626634180545807, 0.30033499002456665, 0.1418551802635193, -0.04210978373885155, -0.23702648282051086, -0.07589437067508698, 0.0870874896645546, -0.07054269313812256, 0.20107048749923706, -0.2461969256401062, 0.4602617621421814, -0.19835342466831207, 0.03105824440717697, 0.007281113415956497, -0.06026146560907364, -0.017448756843805313, -0.41840967535972595, -0.003498847596347332, 0.13995037972927094, 0.06899875402450562, 0.008093636482954025, 0.0801757425069809, 0.337944895029068, 0.07537207752466202, -0.24152356386184692, -0.3141224980354309, 0.15333527326583862, 0.010091898962855339, -0.26027625799179077, 0.3766641318798065, 0.1265028864145279, 0.24597187340259552, -0.10167653858661652, 0.18485566973686218, -0.21972177922725677, -0.2210969477891922, -0.2645953595638275, 0.000029684975743293762, 0.058165043592453, -0.043395817279815674, -0.08841501921415329, 0.12358831614255905, -0.3815775513648987, -0.28942009806632996, 0.24473629891872406, 0.08464232087135315, 0.4267972707748413, -0.02426273375749588, -0.06266185641288757, 0.1742568463087082, 0.02564406394958496, -0.07157351076602936, 0.052293188869953156, -0.050692975521087646, 0.0010750368237495422, -0.024259349331259727, 0.30786141753196716, 0.009836304001510143, -0.14883126318454742, -0.30806779861450195, -0.012468114495277405, 0.06957720220088959, -0.08357422053813934, 0.4794926047325134, -0.23819003999233246, 0.058693502098321915, 0.3324649930000305, 0.13153670728206635, 0.309673547744751, -0.5152159333229065, 0.11309471726417542, 0.04085975140333176, 0.28669875860214233, -0.3299863040447235, -0.12997741997241974, -0.23883557319641113, 0.013305663131177425, -0.12264043092727661, -0.023742802441120148, -0.06547459959983826, 0.15896283090114594, 0.2537429928779602, 0.1377556025981903, 0.37715473771095276, -0.194801926612854, 0.2289056032896042, 0.30932989716529846, 0.10268707573413849, 0.18625317513942719, 0.22176335752010345, 0.07996480911970139, -0.09696844965219498, 0.43506699800491333, -0.2293921709060669, 0.15007571876049042, -0.06771136820316315, 0.07908245921134949, 0.18580372631549835, -0.2016679346561432, -0.3423801362514496, 0.2099466770887375, -0.10701803863048553, -0.04168529808521271, 0.03822515904903412, 0.2646932601928711, -0.38084760308265686, 0.2599397301673889, -0.24715910851955414, 0.21804305911064148, 0.03969181329011917, -0.10703779757022858, -0.07102181017398834, -0.2772124707698822, -0.16157390177249908, 0.1111864298582077, 0.05440310388803482, -0.057487279176712036, -0.11724580824375153, -0.000424407422542572, -0.41129910945892334, -0.4172861576080322, 0.04534309729933739, 0.1922144889831543, 0.1519668996334076, -0.12516120076179504, 0.4158017933368683, -0.06668597459793091, -0.2817399799823761, 0.1539517492055893, 0.48880136013031006, 0.49098360538482666, 0.16524145007133484, 0.2514759302139282, -0.1447678655385971, -0.2571273744106293, -0.21323657035827637, 0.07024981826543808, 0.11483705043792725, -0.033470071852207184, 0.007120581343770027, 0.2830831706523895, 0.2091299146413803, -0.15408654510974884, 0.12444868683815002, 0.002956502139568329, 0.3419489562511444, 0.05638037994503975, 0.37019360065460205, -0.3759681284427643, -0.09316641092300415, -0.2818804383277893, -0.08912762254476547, -0.39366787672042847, -0.19347968697547913, 0.12496548891067505, 0.03782987222075462, 0.009135846048593521, -0.268219918012619, 0.12840184569358826, 0.032174646854400635, 0.18458887934684753, 0.26962339878082275, 0.20586809515953064, -0.24691694974899292, -0.3324059247970581, -0.504206120967865, 0.14899995923042297, -0.1049714982509613, -0.21467362344264984, -0.14114275574684143, 0.02150070108473301, -0.21088427305221558, 0.06252925097942352, 0.29793596267700195, -0.01730494759976864, -0.18923990428447723, -0.16133418679237366, -0.18593712151050568, -0.013821173459291458, -0.17595355212688446, 0.03149545565247536, 0.03161880746483803, -0.33354708552360535, 0.2791331708431244, -0.34898117184638977, 0.07214516401290894, -0.20299223065376282, 0.05827745050191879, 0.08456194400787354, -0.02090570330619812, 0.2773118019104004, 0.1782321035861969, 0.16332143545150757, -0.07166159152984619, -0.1242833137512207, -0.46047818660736084, -0.07522158324718475, -0.19515858590602875, 0.06040487065911293, -0.10340285301208496, 0.09617390483617783, -0.18126721680164337, -0.42622971534729004, -0.12998494505882263, 0.05917438119649887, -0.15105649828910828, 0.0678853765130043, -0.18107600510120392, -0.029920583590865135, -0.050120726227760315, 0.1820131540298462, 0.17484454810619354, 0.047105297446250916, -0.0015654154121875763, 0.09696518629789352, -0.29985326528549194, -0.2840430438518524, 0.16382646560668945, 0.01881062611937523, -0.007454950362443924, -0.09210691601037979, 0.04840271919965744, 0.23156240582466125, 0.06438910961151123, -0.18918228149414062, 0.23621311783790588, 0.41562342643737793, 0.009564390406012535, -0.16962966322898865, 0.193717822432518, -0.11111509799957275, 0.14572811126708984, 0.1789950281381607, 0.4593869745731354, -0.040630415081977844, -0.11746743321418762, 0.022175680845975876, -0.04826795682311058 ]
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.15531975030899048, -0.10023094713687897, -0.07032088935375214, -0.07981614768505096, -0.104254350066185, -0.18798762559890747, 0.01040300726890564, 0.27286356687545776, -0.009848978370428085, -0.08414009213447571, 0.2926146686077118, -0.07787517458200455, -0.13245651125907898, 0.21589021384716034, -0.0562291219830513, 0.17054539918899536, 0.2003229260444641, -0.04079771041870117, -0.0923328846693039, 0.02792298048734665, 0.022608809173107147, -0.06870293617248535, 0.08319979906082153, 0.04363047704100609, -0.1837833970785141, 0.005400864407420158, -0.014811558648943901, 0.15649643540382385, -0.43976572155952454, -0.4695698320865631, 0.14524710178375244, 0.23224006593227386, 0.02510657161474228, 0.5705344676971436, -0.00010436370939714834, -0.0003457963466644287, 0.169486403465271, -0.04060111939907074, -0.14010202884674072, -0.21546302735805511, -0.4901066720485687, -0.44479528069496155, -0.07006335258483887, -0.008354775607585907, 0.12880679965019226, 0.05286795645952225, -0.13250048458576202, 0.02384556084871292, 0.384845495223999, 0.10555251687765121, 0.2386108785867691, -0.10285163670778275, 0.18124066293239594, 0.013769678771495819, 0.3920089304447174, 0.5474529266357422, -0.0666346624493599, 0.30320021510124207, 0.05401802808046341, 0.0006766496226191521, 0.06110614910721779, 0.17410795390605927, -0.08237249404191971, -0.28666993975639343, 0.22701933979988098, -0.1779913604259491, 0.5181735157966614, -0.42435336112976074, -0.24158355593681335, -0.0831172838807106, 0.05237922444939613, -0.17814648151397705, -0.40890365839004517, -0.2419358491897583, -0.14994710683822632, 0.0076336320489645, 0.0677805095911026, 0.24686458706855774, 0.03974023088812828, 0.0036496631801128387, -0.37736496329307556, -0.27180925011634827, -0.004407934844493866, 0.04920414835214615, 0.1419411301612854, -0.16262903809547424, 0.0664263665676117, -0.1270381212234497, 0.2942221164703369, -0.04732781648635864, -0.14698350429534912, -0.36763426661491394, -0.24133381247520447, -0.012587281875312328, -0.10261379182338715, -0.1957472264766693, -0.2462070882320404, -0.3248272240161896, 0.425130695104599, 0.38896799087524414, -0.3832732141017914, 0.013739971444010735, -0.030489303171634674, -0.08101627975702286, 0.20718435943126678, 0.11785800755023956, -0.010489948093891144, 0.05848907679319382, 0.5307134985923767, 0.3144405782222748, 0.005158044397830963, 0.3255855441093445, 0.3015693724155426, 0.0030475580133497715, 0.03444693610072136, 0.574118435382843, 0.4289444088935852, -0.2629207670688629, 0.12764763832092285, 0.19597388803958893, -0.3412008285522461, -0.3845081031322479, 0.07113100588321686, -0.0861722007393837, 0.11032518744468689, 0.027132727205753326, -0.11471141129732132, 0.06680183112621307, 0.0451907142996788, -0.03808599337935448, -0.30790308117866516, -0.14148560166358948, -0.3744000196456909, -0.06853028386831284, 0.1860402673482895, -0.45710426568984985, 0.14916765689849854, 0.4325246512889862, -0.06803794205188751, -0.19928531348705292, 0.0445522740483284, 0.12922535836696625, 0.05558646470308304, 0.2961198389530182, -0.1537979394197464, -0.452628493309021, 0.22359654307365417, 0.13133291900157928, -0.06689941138029099, 0.19400441646575928, -0.15989995002746582, -0.26162219047546387, -0.10497665405273438, 0.29776570200920105, -0.14827203750610352, 0.3071560561656952, -0.523766279220581, 0.03637244179844856, -0.004483453929424286, 0.35067063570022583, 0.4910378158092499, 0.3025485873222351, 0.32807859778404236, -0.16859406232833862, 0.06175749748945236, 0.19034533202648163, 0.32351192831993103, -0.0516866073012352, 0.0623050294816494, -0.28773626685142517, 0.10950460284948349, 0.14507406949996948, -0.31215935945510864, 0.017556771636009216, -0.00523599237203598, -0.13128210604190826, 0.010776735842227936, -0.07140655070543289, -0.11198792606592178, -0.09892956912517548, -0.36668533086776733, 0.06940234452486038, -0.04073741286993027, -0.10077667981386185, 0.2079564779996872, -0.3201748728752136, -0.09479425847530365, 0.20508205890655518, -0.14812283217906952, 0.02089834399521351, -0.2919878363609314, -0.6061382293701172, -0.16365623474121094, -0.06343856453895569, 0.12491492927074432, 0.2275637984275818, 0.3607698976993561, -0.005030942615121603, -0.02836146205663681, -0.17140212655067444, -0.009397830814123154, 0.11250690370798111, 0.3421369194984436, -0.14967812597751617, -0.24154193699359894, 0.13224652409553528, -0.3545883297920227, 0.09114063531160355, -0.07851311564445496, -0.009775333106517792, 0.03444886952638626, -0.3157886862754822, 0.3412793278694153, -0.0440533384680748, -0.12080161273479462, -0.11415097117424011, 0.24151715636253357, 0.0959513783454895, -0.17473319172859192, -0.20392119884490967, -0.2074061930179596, 0.26019150018692017, -0.2408308982849121, 0.3018658459186554, 0.1300133764743805, 0.10263761878013611, -0.14118100702762604, -0.036453600972890854, -0.025096537545323372, 0.36193642020225525, 0.23630475997924805, -0.08991732448339462, -0.05915883928537369, 0.16876070201396942, -0.04906287416815758, 0.20357096195220947, 0.22469490766525269, 0.42524170875549316, 0.37361544370651245, -0.10268162190914154, 0.0626007467508316, -0.09179316461086273, -0.07872460037469864, 0.02459406852722168, -0.3291269838809967, 0.32803720235824585, 0.07369399070739746, -0.1394648551940918, -0.17403195798397064, -0.10333307087421417, -0.17407432198524475, -0.22026950120925903, -0.17077213525772095, -0.012950584292411804, -0.16909818351268768, 0.1943647712469101, -0.336591511964798, 0.22236944735050201, -0.2772085666656494, 0.14857842028141022, 0.01505228504538536, -0.2516065239906311, -0.10240078717470169, 0.06829813867807388, -0.0059668272733688354, -0.13271473348140717, 0.12417054921388626, 0.3773832321166992, 0.12787435948848724, 0.17009972035884857, 0.004273947328329086, 0.020151596516370773, 0.25728312134742737, -0.11643563210964203, 0.35332560539245605, 0.14430686831474304, -0.10544468462467194, 0.05406457930803299, 0.3364555835723877, 0.1812187135219574, 0.06433234363794327, 0.3469198942184448, -0.003324562683701515, 0.03525850921869278, -0.20840699970722198, -0.04598452150821686, -0.26021039485931396, -0.5283412933349609, 0.21923714876174927, -0.11063773185014725, -0.3552158772945404, -0.008503539487719536, -0.045366354286670685, 0.04741793870925903, -0.524871826171875, 0.13602985441684723, 0.18358109891414642, 0.2905265688896179, -0.31780317425727844, -0.11997737735509872, 0.12631559371948242, -0.022595219314098358, 0.012344226241111755, 0.1285599321126938, 0.3631601631641388, -0.22668015956878662, 0.45945149660110474, 0.2389804869890213, -0.16955673694610596, -0.4726405143737793, -0.34341275691986084, 0.019129972904920578, -0.20393547415733337, -0.11797492206096649, 0.009818919003009796, -0.09893058240413666, 0.09215272963047028, -0.35854071378707886, -0.32571226358413696, -0.018773561343550682, -0.37300437688827515, -0.16009604930877686, 0.06959538161754608, 0.06288556009531021, -0.23461700975894928, -0.114040307700634, -0.3865901827812195, -0.2821526527404785, 0.4793556332588196, -0.016433335840702057, 0.1156594306230545, -0.043173544108867645, -0.29237738251686096, -0.04591793194413185, 0.08748229593038559, 0.13663941621780396, -0.000044732820242643356, -0.36093276739120483, 0.03256664425134659, -0.040660008788108826, -0.029347021132707596, 0.352609783411026, 0.185491144657135, -0.43024036288261414, 0.07125099003314972, -0.3217610716819763, -0.15581855177879333, -0.05208447575569153, 0.48644453287124634, 0.31411951780319214, -0.09737364947795868, 0.07108013331890106, 0.10355065762996674, -0.19190005958080292, 0.055089302361011505, -0.18161140382289886, 0.1472240537405014, 0.3454881012439728, 0.2857186794281006, 0.03790006786584854, 0.14586713910102844, 0.025497179478406906, 0.7140874862670898, 0.37785014510154724, -0.05965739116072655, 0.21033772826194763, 0.3106972575187683, -0.027718398720026016, 0.003990799188613892, -0.2601567208766937, 0.06504680961370468, -0.10124298930168152, -0.000020891427993774414, 0.08670371025800705, -0.12957841157913208, -0.12296503037214279, -0.011211153119802475, -0.47771474719047546, 0.00915539264678955, -0.4146764278411865, -0.23966337740421295, -0.3181837499141693, 0.1842499077320099, -0.022526197135448456, -0.4854891896247864, 0.1313808411359787, 0.053771283477544785, 0.23057617247104645, 0.21597151458263397, 0.21420590579509735, 0.18121570348739624, -0.02025902271270752, -0.0510849729180336, -0.12007338553667068, -0.06772583723068237, -0.0043314117938280106, 0.14525093138217926, 0.09058025479316711, -0.1670401692390442, 0.03180579096078873, 0.06955048441886902, 0.3299906849861145, -0.014868119731545448, 0.14029152691364288, -0.1708069145679474, -0.5094844102859497, 0.6086313724517822, -0.31859374046325684, 0.13940243422985077, 0.29909852147102356, 0.511225700378418, 0.4397636353969574, -0.295454204082489, -0.19531667232513428, 0.2071230709552765, 0.03255590423941612, 0.1978360414505005, 0.17734965682029724, 0.14497703313827515, 0.2783072888851166, -0.49038165807724, 0.28877443075180054, 0.1548328995704651, -0.2504824697971344, -0.15517577528953552, -0.003905750811100006, -0.027050653472542763, 0.12646320462226868, -0.026304736733436584, -0.24539846181869507, 0.009127533063292503, -0.10943800210952759, 0.1734457015991211, 0.13292016088962555, 0.0698280856013298, 0.41521936655044556, 0.594658613204956, 0.13493412733078003, -0.38919797539711, -0.04820176959037781, -0.175073504447937, -0.07428347319364548, 0.3271433413028717, 0.19835063815116882, 0.24822810292243958, 0.020348815247416496, 0.177686870098114, -0.12347238510847092, -0.2662383019924164, -0.20336651802062988, -0.038491103798151016, -0.07674254477024078, 0.007589764893054962, 0.0873296707868576, -0.04589767009019852, -0.0909920260310173, 0.013048216700553894, 0.1399984359741211, -0.366100013256073, 0.16378472745418549, 0.6180501580238342, 0.9825448989868164, 0.3975675106048584, 0.08903336524963379, -0.25465720891952515, -0.3273831009864807, 0.32599058747291565, -0.340107798576355, -0.16645145416259766, -0.24701717495918274, -0.12358804047107697, -0.18424606323242188, -0.3403114974498749, -0.03869441896677017, -0.48984766006469727, -0.35285624861717224, 0.13511325418949127, -0.21805503964424133, 0.5279181599617004, 0.008177720010280609, 0.12338632345199585, 0.19101889431476593, -0.12231411039829254, 0.25515127182006836, 0.1982704997062683, 0.06181075796484947, 0.10409577190876007, -0.00402781181037426, -0.4687901735305786, -0.002232056111097336, 0.020538557320833206, -0.377269446849823, 0.08914704620838165, -0.34377798438072205, 0.03884657472372055, -0.20635315775871277, -0.31605178117752075, 0.11582718789577484, -0.08704768121242523, 0.6059408187866211, 0.16663071513175964, -0.07945175468921661, -0.044620681554079056, 0.29138895869255066, 0.4645244777202606, -0.2288517951965332, -0.21953073143959045, 0.5223724246025085, -0.21336409449577332, -0.1302180290222168, -0.20476195216178894, -0.08033479750156403, -0.23709243535995483, -0.26094669103622437, -0.1280432492494583, -0.3282320499420166, 0.07950221747159958, 0.04171382263302803, 0.2636536955833435, -0.09107047319412231, -0.16760630905628204, 0.18599317967891693, 0.1154860109090805, -0.10757318884134293, -0.11858441680669785, -0.16952016949653625, -0.2610401511192322, -0.0678161233663559, 0.2016008496284485, 0.1616058051586151, -0.12060702592134476, -0.07676410675048828, 0.09965769946575165, -0.24433693289756775, -0.22078973054885864, -0.2072920799255371, 0.10598742216825485, -0.13946887850761414, 0.09298096597194672, -0.5486779808998108, -0.32993391156196594, 0.051746368408203125, 0.24619311094284058, 0.27941563725471497, 0.3304987847805023, 0.11800003051757812, -0.09977070987224579, -0.2244497388601303, 0.2186433970928192, -0.32792574167251587, 0.16864940524101257, 0.0235847607254982, 0.15881147980690002, -0.026009775698184967, 0.040430840104818344, -0.3905956447124481, 0.16031549870967865, -0.1254814714193344, -0.02112668752670288, -0.2255210429430008, -0.10175298899412155, -0.0006310837343335152, -0.30818644165992737, 0.03248739242553711, 0.023433592170476913, -0.19575649499893188, -0.28301528096199036, 0.09266887605190277, 0.06569582223892212, 0.06478913128376007, -0.05701387673616409, -0.05746075510978699, -0.10815784335136414, 0.08275303989648819, 0.2720326781272888, 0.23969241976737976, -0.15849140286445618, 0.10971303284168243, -0.0322246216237545, 0.17108863592147827, 0.11058498173952103, -0.02477351762354374, 0.08924205601215363, 0.014632649719715118, -0.2658020853996277, -0.035375308245420456, 0.2671601176261902, -0.18174590170383453, -0.21714402735233307, -0.2685391306877136, 0.1888347566127777, 0.1056341901421547, 0.5840901732444763, 0.2028803825378418, 0.14421670138835907, -0.40508270263671875, 0.17540867626667023, -0.053198251873254776, -0.0036357268691062927, -0.16923534870147705, -0.0969405248761177, -0.08496207743883133, 0.27936026453971863, -0.08671969920396805, -0.3035971224308014, 0.2713831961154938, 0.18818144500255585, 0.0007483474910259247, 0.10497083514928818, 0.528075098991394, 0.12962056696414948, -0.18965323269367218, 0.4221358895301819, 0.2712429463863373, -0.08767566829919815, 0.49489980936050415, 0.47023293375968933, -0.11318211257457733, -0.02032490447163582, -0.08273614197969437, 0.11661489307880402, 0.2306870073080063, -0.25409644842147827, 0.12847208976745605, 0.29621919989585876, 0.6462965607643127, -0.16888390481472015, 0.3935551941394806, -0.03309616073966026, 0.34373971819877625, 0.19799339771270752, 0.058740079402923584, -0.24604946374893188, 0.39270907640457153, 0.2117074728012085, 0.330151230096817, -0.6189894080162048, 0.13637332618236542, 0.49140363931655884, 0.04928272217512131, 0.19958184659481049, -0.4001062512397766, -0.04923272505402565, -0.05847582221031189, -0.0483139306306839, -0.07818284630775452, 0.1634962260723114, 0.12373705208301544, 0.28296682238578796, 0.006584443151950836, -0.08837804943323135, -0.04344063997268677, 0.18504858016967773, 0.2415619194507599, -0.11699788272380829, -0.18117256462574005, 0.35775548219680786, -0.2761981785297394, 0.0664932131767273, 0.2154608517885208, 0.1350686252117157, -0.0747159793972969, -0.06863388419151306, 0.18023492395877838, 0.45039471983909607, -0.16993381083011627, 0.02251214161515236, 0.05574929714202881, -0.16256774961948395, 0.15771660208702087, 0.08014677464962006, 0.2580326497554779, -0.053340841084718704, 0.11280304193496704, 0.03542676568031311, -0.41529735922813416, -0.02532232366502285, 0.4330810606479645, 0.5564640760421753, -0.33773133158683777, 0.46013858914375305, 0.11926848441362381, 0.28470075130462646, -0.032683830708265305, 0.4374355673789978, -0.047126404941082, 0.11639227718114853, -0.005153832025825977, 0.1430787295103073, 0.028089283034205437, 0.2575884461402893, 0.1414998173713684, -0.03334501385688782, -0.15928909182548523, 0.03010638803243637, -0.12154112756252289, 0.12743553519248962, 0.2968399226665497, 0.17307059466838837, 0.419888973236084, -0.2947142422199249, 0.12756827473640442, 0.1282345950603485, -0.08756890892982483, -0.3413960635662079, 0.009522133506834507, 0.09408511221408844, -0.3605291247367859, 0.004247438162565231, 0.22248142957687378, -0.0694396123290062, -0.02419467642903328, 0.11893334239721298, 0.409478098154068, 0.19279026985168457, 0.1120925024151802, 0.10513070225715637, -0.049347855150699615, 0.32094356417655945, -0.39184531569480896, 0.22496101260185242, 0.18922272324562073, -0.10292953252792358, -0.221888929605484, -0.051098473370075226, 0.00736699253320694, 0.021280620247125626, -0.4355085492134094, -0.14018112421035767, -0.1622259020805359, 0.42098376154899597, -0.13559670746326447, 0.06829800456762314, -0.3722181022167206, 0.06876710057258606, -0.037134602665901184, 0.2683558464050293, -0.3000990152359009, 0.08640830963850021, 0.052547894418239594, 0.017337849363684654, 0.08837077021598816, 0.13057975471019745, 0.06843435764312744, 0.2528505325317383, -0.35231637954711914, -0.12488970905542374, 0.3586624264717102, -0.01946943625807762, 0.09103637933731079, -0.21726980805397034, 0.41820472478866577, 0.4654460847377777, -0.14808106422424316, -0.3321141302585602, -0.2635180950164795, -0.01115646492689848, -0.2798342704772949, -0.5420887470245361, 0.2986377775669098, 0.13786809146404266, 0.19743876159191132, -0.10587093234062195, 0.03660712391138077, -0.0743267834186554, -0.15276281535625458, 0.06117141619324684, -0.19878648221492767 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.30499589443206787, 0.12438860535621643, -0.04655841737985611, 0.23689737915992737, 0.15172843635082245, -0.0666598454117775, -0.0069412775337696075, 0.32853978872299194, 0.17373839020729065, 0.02938103675842285, -0.2313872128725052, 0.3581932783126831, -0.15033014118671417, 0.25273653864860535, -0.29778623580932617, -0.13781173527240753, 0.0444694459438324, 0.03212467581033707, -0.06149601936340332, 0.16641293466091156, -0.12391772121191025, 0.4988587498664856, -0.19577628374099731, 0.007079474627971649, 0.22216473519802094, 0.05132158100605011, 0.10912355780601501, 0.1385663002729416, 0.07986205071210861, -0.3392689526081085, 0.5981169939041138, 0.10640649497509003, -0.03486925736069679, 0.49809545278549194, -0.00012130981485825032, 0.09986761212348938, 0.4398064613342285, -0.10739780217409134, -0.45794877409935, -0.36868858337402344, -0.19285297393798828, 0.131994366645813, 0.213113471865654, 0.08116324990987778, -0.07151231169700623, 0.11434200406074524, -0.30349382758140564, -0.3460473120212555, 0.24887673556804657, 0.1989334374666214, 0.22672885656356812, 0.21361520886421204, 0.265742689371109, 0.06658700853586197, 0.17017972469329834, 0.08265241235494614, 0.025971753522753716, -0.0490865595638752, 0.29402822256088257, 0.014262193813920021, 0.043685317039489746, 0.4806101620197296, -0.32835254073143005, -0.21464639902114868, 0.3046182096004486, -0.2982528507709503, 0.10307049006223679, -0.39570382237434387, 0.2999306917190552, 0.07813695073127747, 0.14626362919807434, -0.25551873445510864, -0.5773359537124634, -0.34832534193992615, -0.5121467709541321, -0.28682899475097656, 0.4164738655090332, -0.21635796129703522, -0.20099635422229767, 0.22008347511291504, -0.33426421880722046, -0.027003563940525055, 0.09349846839904785, 0.05351008102297783, -0.058481309562921524, 0.29418468475341797, -0.13183197379112244, -0.0048623159527778625, 0.014983128756284714, -0.13290096819400787, 0.19240790605545044, -0.2750045657157898, -0.19687530398368835, 0.17258015275001526, -0.015560168772935867, -0.05461357161402702, 0.09542211145162582, 0.332328200340271, 0.14057108759880066, 0.03562841936945915, 0.019208921119570732, 0.08454029262065887, -0.040963515639305115, 0.05367744341492653, 0.13732722401618958, 0.4753788411617279, 0.4901203513145447, 0.24679051339626312, 0.2727872431278229, 0.2854887843132019, -0.007885545492172241, -0.0013801641762256622, 0.5281851291656494, -0.16664184629917145, 0.07470692694187164, 0.1517305076122284, 0.19669552147388458, -0.40486907958984375, -0.36021289229393005, 0.1689625382423401, -0.07699987292289734, -0.1250399798154831, 0.22072617709636688, 0.05349492281675339, 0.10056478530168533, 0.21423357725143433, 0.13208158314228058, 0.03385720029473305, -0.19647246599197388, 0.06123437359929085, -0.17251001298427582, -0.17394547164440155, 0.0011620037257671356, -0.1112990751862526, -0.0473051592707634, -0.8997764587402344, 0.17477014660835266, 0.04826036095619202, 0.006349015980958939, 0.10580876469612122, -0.06977400183677673, 0.20743507146835327, 0.17301523685455322, 0.522928774356842, -0.22135867178440094, 0.08390036225318909, 0.16719089448451996, -0.5483273267745972, -0.13868708908557892, 0.012528106570243835, -0.24153757095336914, -0.11120623350143433, 0.2085866630077362, 0.17358626425266266, -0.32967180013656616, 0.012651439756155014, -0.17029926180839539, 0.45154204964637756, 0.2592141032218933, -0.5466864705085754, -0.07795769721269608, -0.21337991952896118, -0.4382350444793701, -0.19971425831317902, 0.09719057381153107, 0.41313689947128296, -0.5942533016204834, -0.32166755199432373, 0.02168734185397625, 0.03190663829445839, 0.03991724178195, -0.1229340136051178, -0.0634385347366333, -0.24447286128997803, -0.10776916146278381, -0.1384173482656479, 0.3606545925140381, -0.3195544481277466, -0.7338929772377014, 0.15372587740421295, 0.23602114617824554, 0.5342658758163452, -0.07095835357904434, -0.13748373091220856, 0.28139427304267883, -0.2578292191028595, 0.14599117636680603, 0.08484457433223724, -0.16490314900875092, -0.007993858307600021, -0.3409697413444519, -0.2346952259540558, 0.22386938333511353, -0.15029074251651764, 0.09041670709848404, 0.33485856652259827, 0.07900666445493698, -0.2542209327220917, 0.050292447209358215, 0.03505011275410652, 0.1049240231513977, 0.19909262657165527, 0.24532361328601837, 0.22376537322998047, 0.28630587458610535, -0.43651869893074036, -0.28014084696769714, 0.2506178319454193, 0.214129239320755, -0.06000049412250519, -0.15240754187107086, -0.19822725653648376, -0.2678273320198059, -0.08841829746961594, -0.15897807478904724, -0.30440953373908997, 0.07887379825115204, 0.02257702499628067, 0.3843640685081482, -0.038502734154462814, -0.11452515423297882, 0.6218647360801697, 0.30845361948013306, 0.09448058158159256, -0.5049416422843933, 0.22964130342006683, -0.05485289543867111, 0.00516843656077981, -0.05918468162417412, 0.037782128900289536, 0.29395923018455505, -0.06852554529905319, -0.2895762026309967, 0.4078751504421234, 0.03925902768969536, 0.08416818827390671, -0.027634337544441223, 0.19374600052833557, 0.1773466020822525, 0.21058306097984314, 0.06393347680568695, 0.27418211102485657, -0.01488402672111988, 0.2087216079235077, -0.19545626640319824, 0.5572488903999329, 0.029374804347753525, 0.3240499794483185, 0.12083446979522705, 0.148756206035614, 0.3702499270439148, 0.13056349754333496, -0.2189950942993164, -0.1370789110660553, 0.3204496204853058, -0.4587228000164032, 0.0626671314239502, 0.012339839711785316, -0.1297929883003235, 0.3776250183582306, 0.07168322056531906, 0.07551193237304688, -0.03345181792974472, 0.31192174553871155, -0.159365713596344, -0.042190395295619965, 0.1813623309135437, 0.4024861454963684, 0.40145087242126465, 0.2088317722082138, 0.05071691796183586, 0.07588188350200653, -0.16153964400291443, -0.024877138435840607, 0.20824959874153137, 0.12934613227844238, -0.16963990032672882, 0.153575599193573, 0.30342090129852295, 0.27320393919944763, -0.306198388338089, 0.09339344501495361, -0.23562407493591309, 0.11953283846378326, -0.2705809772014618, 0.36163705587387085, -0.2810101807117462, -0.22808605432510376, 0.07614190876483917, -0.16783268749713898, -0.26151368021965027, -0.3875217139720917, 0.08989894390106201, 0.39343997836112976, -0.08621860295534134, 0.2567754089832306, 0.01471695676445961, 0.24453997611999512, 0.13616758584976196, -0.19968156516551971, -0.40057170391082764, -0.20788155496120453, -0.3476487100124359, 0.00539754331111908, 0.20513279736042023, -0.15684905648231506, 0.29703599214553833, -0.07631023973226547, -0.20662462711334229, -0.3902946710586548, -0.9079107642173767, -0.04862856864929199, -0.12396524846553802, 0.6180300116539001, 0.3176230192184448, -0.09162616729736328, -0.1352725625038147, -0.23275721073150635, 0.1665801703929901, -0.041315481066703796, -0.4310832917690277, 0.15683919191360474, 0.06662295013666153, 0.1682216078042984, -0.20038539171218872, -0.2270289659500122, -0.11354095488786697, -0.14581939578056335, 0.007939975708723068, -0.12768948078155518, 0.08496592938899994, 0.30940425395965576, 0.11235392838716507, -0.3165164291858673, -0.08720140904188156, 0.13308614492416382, -0.3335404694080353, -0.07733772695064545, 0.07394217699766159, -0.05416269600391388, -0.2302437275648117, -0.03413986414670944, -0.03198046609759331, 0.0831894725561142, 0.37366241216659546, -0.40695953369140625, -0.37917667627334595, -0.2713732123374939, -0.00487377867102623, 0.23117747902870178, 0.0683605819940567, 0.2319665253162384, 0.1899951547384262, 0.039103589951992035, -0.27946871519088745, -0.4342850148677826, -0.08862071484327316, -0.23659583926200867, 0.10954910516738892, 0.1482250988483429, 0.6309944987297058, 0.034562986344099045, 0.47642630338668823, 0.2947264313697815, 0.04896113649010658, 0.13982713222503662, 0.18155482411384583, 0.4972684979438782, -0.32584714889526367, -0.4095647633075714, -0.04670892283320427, -0.046194568276405334, 0.050513237714767456, -0.1531909853219986, 0.17958202958106995, -0.11206088215112686, -0.3487887978553772, 0.00008856877684593201, -0.2515634298324585, -0.24981102347373962, -0.23862777650356293, -0.013643786311149597, 0.26900485157966614, 0.3906218409538269, 0.14076998829841614, -0.3225950002670288, -0.17638498544692993, -0.008136813528835773, 0.4007485508918762, 0.10357676446437836, 0.25022032856941223, -0.18154177069664001, -0.04714185744524002, -0.4509265422821045, 0.49255937337875366, 0.21514518558979034, 0.264892041683197, -0.11775384843349457, -0.1629658341407776, -0.32944756746292114, -0.04924078658223152, 0.592811644077301, -0.363176167011261, 0.04434875398874283, 0.10195447504520416, -0.20818309485912323, -0.382881760597229, 0.05112947151064873, 0.007662627846002579, 0.3649105131626129, 0.05435469001531601, 0.3508074879646301, -0.08211499452590942, -0.073015496134758, -0.08691577613353729, 0.2223743498325348, -0.12459439039230347, 0.019601501524448395, -0.27436235547065735, -0.2049432396888733, -0.1433095633983612, 0.0314197763800621, -0.1528894156217575, 0.16506798565387726, -0.1800081580877304, -0.06853723526000977, -0.11314351856708527, -0.0563928484916687, 0.11538052558898926, 0.13470332324504852, 0.29450294375419617, -0.10000676661729813, 0.11873957514762878, 0.14418062567710876, 0.24052928388118744, 0.04237004369497299, 0.4583910405635834, -0.27559831738471985, -0.27809619903564453, -0.0670713558793068, 0.1208035945892334, -0.11464083939790726, 0.3437366485595703, -0.20401640236377716, -0.017340369522571564, -0.044456906616687775, -0.10204271972179413, -0.02124001830816269, -0.14110244810581207, -0.0019387109205126762, 0.37030303478240967, -0.20492413640022278, -0.28893688321113586, 0.23296445608139038, 0.23905159533023834, -0.20434916019439697, 0.4367760717868805, 0.34225577116012573, -0.28093525767326355, 0.16878968477249146, -0.19995886087417603, 0.7136853337287903, 0.1521686166524887, -0.02985379472374916, 0.08779972791671753, -0.16951783001422882, 0.45245498418807983, 0.31254637241363525, 0.1559777408838272, -0.06676805764436722, -0.2370488941669464, -0.0655059814453125, -0.03474707901477814, 0.15802299976348877, -0.11106160283088684, -0.2036348283290863, 0.5631487369537354, -0.05921915918588638, -0.03538796678185463, 0.1755862534046173, -0.11732907593250275, -0.20230765640735626, 0.019088424742221832, -0.4372626543045044, 0.09912529587745667, -0.021323680877685547, 0.25216639041900635, 0.0010582944378256798, -0.07672212272882462, 0.055220913141965866, -0.3087660074234009, -0.2637815475463867, -0.05239212512969971, -0.39920690655708313, -0.06592722982168198, 0.20812346041202545, -0.43327969312667847, 0.008973371237516403, 0.05262744799256325, 0.2566775679588318, -0.008180331438779831, -0.037300750613212585, -0.0075370147824287415, 0.07026883214712143, 0.49777132272720337, 0.23459263145923615, 0.025033168494701385, 0.28633007407188416, 0.08909415453672409, 0.186784029006958, 0.019597593694925308, -0.14201122522354126, -0.36083900928497314, -0.018652871251106262, 0.0038100332021713257, 0.11803290247917175, -0.15886607766151428, 0.028823044151067734, -0.2428554892539978, 0.021306436508893967, -0.3648621141910553, 0.0650937557220459, -0.0898350328207016, -0.00983914639800787, 0.09432125836610794, -0.016562480479478836, -0.22681789100170135, -0.005353085696697235, 0.6357892155647278, -0.14381468296051025, -0.4367527663707733, 0.12772074341773987, -0.00556609034538269, -0.22358423471450806, 0.035358674824237823, -0.20444118976593018, 0.027419164776802063, -0.2750847637653351, 0.2978781461715698, -0.25112488865852356, -0.10712830722332001, 0.26912951469421387, 0.32279300689697266, 0.18860851228237152, 0.214613139629364, -0.15166646242141724, -0.3945677876472473, -0.13708268105983734, 0.285457581281662, 0.04427365958690643, 0.05498090013861656, -0.031148791313171387, -0.32367050647735596, -0.14442208409309387, -0.20666389167308807, -0.22578871250152588, 0.008752115070819855, 0.33131393790245056, 0.07120858132839203, 0.19048745930194855, 0.22056341171264648, 0.1548963338136673, -0.19956424832344055, -0.013411498628556728, 0.07258662581443787, -0.20382021367549896, -0.10209281742572784, -0.09334567189216614, 0.09354174882173538, -0.09116014093160629, -0.2648991346359253, -0.15461929142475128, -0.0057536158710718155, 0.061403289437294006, -0.16469275951385498, 0.41826775670051575, 0.32141587138175964, -0.11824969947338104, -0.0536908321082592, -0.0327778123319149, 0.04722478240728378, 0.3035393953323364, 0.1383112072944641, 0.01856522262096405, 0.032671451568603516, 0.04270423948764801, 0.19944806396961212, -0.1875811666250229, 0.014096155762672424, 0.0820164754986763, 0.042396180331707, -0.2510473132133484, 0.027089882642030716, 0.3569346070289612, -0.2952960729598999, -0.02164008840918541, 0.5987738966941833, 0.35626745223999023, 0.24375972151756287, -0.13980628550052643, 0.11382973194122314, -0.07773864269256592, 0.15335774421691895, -0.27390503883361816, -0.33267828822135925, 0.20577828586101532, 0.2732258141040802, 0.06095707789063454, 0.18608182668685913, -0.0021066665649414062, 0.029159627854824066, 0.6171150803565979, 0.2176479995250702, 0.4478175938129425, -0.1253162920475006, 0.3508078157901764, 0.5271660089492798, 0.23262836039066315, 0.18437623977661133, 0.24172061681747437, 0.07372477650642395, 0.016092881560325623, 0.5080393552780151, -0.06601006537675858, 0.2586887776851654, 0.21974709630012512, 0.12877090275287628, -0.03551819920539856, -0.4662739038467407, -0.16567467153072357, 0.028322510421276093, -0.07974916696548462, 0.2506764531135559, 0.16615724563598633, 0.08566081523895264, -0.22328396141529083, -0.3345978558063507, 0.011488063260912895, 0.024898622184991837, -0.19362616539001465, -0.21611030399799347, 0.14463897049427032, -0.36391741037368774, -0.057149190455675125, 0.013486314564943314, -0.12084436416625977, 0.07040049880743027, 0.4529310464859009, -0.24694864451885223, -0.12836304306983948, -0.4731905162334442, -0.3793768286705017, 0.05004565790295601, 0.17476409673690796, -0.014010284096002579, 0.4047639071941376, 0.258781373500824, -0.22985482215881348, 0.22198832035064697, 0.25034376978874207, 0.48565059900283813, 0.2468242347240448, 0.027692187577486038, 0.01334693655371666, -0.14204943180084229, -0.05400650203227997, -0.09072275459766388, 0.33564189076423645, -0.08708329498767853, 0.030568327754735947, 0.1879347413778305, 0.11341014504432678, 0.000733465887606144, 0.2053901106119156, -0.040854621678590775, 0.39893990755081177, -0.4661810100078583, 0.08953436464071274, -0.23695385456085205, 0.28487932682037354, 0.015014959499239922, 0.10001436620950699, -0.24902543425559998, -0.11811482906341553, 0.17121459543704987, 0.23181088268756866, 0.2039029598236084, -0.10648466646671295, 0.07481089979410172, 0.1348544955253601, 0.07390917837619781, 0.4687880873680115, -0.09301317483186722, -0.0892462283372879, -0.14648915827274323, -0.653510332107544, -0.05586252361536026, 0.1423015147447586, 0.12806753814220428, -0.06351551413536072, 0.03753000497817993, 0.04901442304253578, 0.18468567728996277, 0.04347316920757294, -0.1836017370223999, 0.1054590716958046, -0.25151437520980835, -0.20000138878822327, -0.1759463995695114, 0.2301202267408371, -0.24214795231819153, 0.05484858900308609, -0.26591041684150696, 0.06277246028184891, -0.04169316962361336, 0.026953235268592834, -0.0059282053261995316, -0.06288377940654755, 0.06751438975334167, 0.3473338782787323, -0.13707388937473297, 0.34939005970954895, 0.2663174867630005, 0.03349287807941437, -0.0034478772431612015, -0.278297483921051, -0.19313564896583557, -0.2683139741420746, 0.07008456438779831, -0.29212450981140137, 0.49186089634895325, -0.40185970067977905, -0.30196312069892883, -0.18042156100273132, 0.27247440814971924, 0.1233787089586258, -0.12682853639125824, -0.47677913308143616, 0.16585826873779297, -0.05875708907842636, 0.08381269127130508, 0.00443768035620451, 0.5087336301803589, 0.05998682230710983, 0.3379512429237366, -0.22663088142871857, -0.3412230908870697, 0.53581702709198, -0.4137616455554962, -0.2617650628089905, -0.13192811608314514, -0.06397368013858795, 0.6073148846626282, -0.4836443364620209, -0.30437353253364563, -0.20376679301261902, 0.27199095487594604, -0.12000533193349838, -0.14902496337890625, 0.15557251870632172, -0.26529785990715027, 0.1745559126138687, -0.18920165300369263, -0.08706063032150269, 0.43938252329826355, -0.08826790004968643, 0.2773542106151581, -0.12994170188903809 ]
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.22893105447292328, 0.38345402479171753, 0.040345486253499985, 0.2550400197505951, -0.012111496180295944, 0.26225730776786804, 0.5036689639091492, 0.13295315206050873, 0.3442804515361786, 0.1357182413339615, -0.10897494852542877, 0.0772843211889267, 0.07315035164356232, -0.005698667839169502, -0.12562327086925507, 0.07892754673957825, 0.036445073783397675, -0.005388155579566956, 0.21494904160499573, 0.10395503044128418, -0.4238828718662262, 0.10729576647281647, -0.1728546917438507, 0.18611589074134827, 0.02609490044414997, -0.13634225726127625, 0.12125995755195618, 0.36072954535484314, -0.030788736417889595, -0.3922068774700165, 0.3530234694480896, 0.0634533241391182, 0.4639188349246979, 0.2582458257675171, -0.00011924598948098719, -0.013706348836421967, 0.23068425059318542, 0.1244996041059494, -0.0737270712852478, 0.08709956705570221, -0.18398481607437134, -0.14096809923648834, 0.16522926092147827, -0.09768719971179962, 0.17674356698989868, 0.36349114775657654, -0.1021372526884079, -0.20092961192131042, -0.013041839003562927, 0.37903404235839844, 0.15730063617229462, -0.038184791803359985, -0.118678018450737, -0.07520421594381332, 0.4933357536792755, -0.15929795801639557, -0.13317999243736267, 0.2798379361629486, 0.07902481406927109, -0.1145690307021141, -0.09899056702852249, 0.1995733678340912, -0.16214890778064728, 0.14715716242790222, 0.018658027052879333, 0.031129758805036545, 0.21623119711875916, -0.45810946822166443, 0.35214123129844666, 0.15125836431980133, 0.9656504988670349, -0.195573091506958, -0.1914043426513672, -0.08874819427728653, 0.013304111547768116, -0.03300251066684723, 0.4326036274433136, 0.42862406373023987, -0.32456856966018677, 0.25237080454826355, 0.06596970558166504, 0.08356554806232452, -0.08255104720592499, -0.001908905804157257, 0.07128584384918213, 0.1486530900001526, -0.05047055333852768, 0.11955634504556656, -0.1147308200597763, -0.0834009125828743, 0.3863350450992584, -0.21382763981819153, -0.2546023428440094, 0.19166730344295502, -0.33943650126457214, 0.28986987471580505, 0.05345261096954346, 0.7778055667877197, 0.15787765383720398, 0.31552964448928833, 0.12502345442771912, -0.05405201017856598, 0.21362465620040894, 0.0651903972029686, 0.008592668920755386, 0.3214899003505707, -0.11223883181810379, -0.016922790557146072, 0.42710626125335693, 0.11744193732738495, -0.08161693811416626, -0.008990537375211716, -0.02004595845937729, -0.42947396636009216, 0.3538796007633209, 0.10540708899497986, 0.40811824798583984, -0.28564128279685974, -0.12170109897851944, -0.00029508769512176514, 0.1581321358680725, -0.023971011862158775, 0.05888309329748154, 0.5011533498764038, -0.2717721462249756, 0.04268316924571991, 0.06825161725282669, 0.17944453656673431, 0.018610646948218346, 0.09776216745376587, -0.08779989182949066, -0.08900260925292969, -0.2667176425457001, -0.05143895745277405, 0.40864670276641846, -0.322576105594635, 0.09556524455547333, 0.256676584482193, 0.02704732120037079, -0.17929454147815704, 0.19183221459388733, -0.04149750620126724, -0.03285706788301468, 0.35768699645996094, 0.39729636907577515, 0.33763349056243896, 0.17493215203285217, -0.2122965008020401, -0.03499526530504227, 0.18631160259246826, -0.48729026317596436, -0.40250417590141296, -0.033664800226688385, 0.12132809311151505, -0.08332373201847076, 0.06320543587207794, -0.19803687930107117, -0.04825789853930473, 0.38231295347213745, -0.3008548319339752, -0.06183617562055588, -0.013725530356168747, -0.220620259642601, -0.5042762160301208, 0.04070822894573212, 0.40128839015960693, -0.35969823598861694, 0.1303667575120926, -0.0915532335639, -0.2640872299671173, 0.15043291449546814, 0.005637733265757561, 0.005634448956698179, 0.36168229579925537, -0.28122052550315857, 0.015607401728630066, 0.277459055185318, -0.3938949704170227, -1.0015968084335327, -0.021003341302275658, 0.07310013473033905, 0.1660415381193161, 0.24440604448318481, 0.11913758516311646, 0.3659377694129944, -0.030345479026436806, 0.17047597467899323, 0.31871259212493896, 0.1300753355026245, 0.11197447031736374, -0.06299630552530289, -0.20385552942752838, 0.279660701751709, 0.1339261829853058, 0.08833898603916168, 0.30090340971946716, 0.31260010600090027, -0.05693402886390686, 0.25109589099884033, -0.1872611790895462, 0.1168045699596405, 0.19251582026481628, 0.011496078222990036, -0.03513577580451965, 0.1375143975019455, -0.1277380883693695, -0.4204089641571045, 0.35144808888435364, -0.008118340745568275, 0.08516696840524673, 0.07597886770963669, -0.20274308323860168, -0.3184642195701599, 0.09134078025817871, -0.5447553992271423, -0.28899648785591125, 0.08510653674602509, 0.29389894008636475, 0.21242570877075195, 0.02368234470486641, 0.18916404247283936, 0.3374142050743103, -0.20822711288928986, 0.1271960586309433, -0.18114104866981506, 0.038606904447078705, -0.18833814561367035, -0.13644914329051971, -0.21224789321422577, 0.04691571742296219, 0.2001282274723053, 0.25274816155433655, -0.21343320608139038, 0.19610103964805603, 0.15121357142925262, 0.03749885410070419, -0.37855762243270874, -0.059557005763053894, -0.022377656772732735, 0.12172956764698029, 0.15684814751148224, 0.13817834854125977, 0.14832349121570587, -0.044394154101610184, -0.19221922755241394, 0.1377543956041336, -0.15963472425937653, 0.14373135566711426, -0.3266507387161255, 0.24303588271141052, 0.24470657110214233, 0.09005042910575867, 0.08569688349962234, 0.03445235639810562, 0.30547037720680237, 0.02411862276494503, 0.07459601759910583, -0.2858038544654846, 0.1012619137763977, -0.07780914753675461, 0.05930323526263237, 0.022547908127307892, 0.08128238469362259, 0.24975329637527466, -0.17460155487060547, 0.0168861523270607, 0.28699350357055664, 0.3496789336204529, 0.5377135872840881, -0.04098674654960632, 0.05155012756586075, 0.06679752469062805, 0.047912269830703735, 0.08966917544603348, 0.11925183981657028, 0.08577112853527069, -0.0702270045876503, 0.26344922184944153, 0.12843413650989532, 0.22416624426841736, -0.06479806452989578, -0.1138603538274765, -0.10754140466451645, 0.4194294214248657, -0.48751336336135864, -0.08438761532306671, 0.10005459189414978, 0.07484018057584763, 0.18120110034942627, -0.24284698069095612, -0.08878137171268463, -0.14609836041927338, -0.24304606020450592, 0.31163668632507324, 0.0940709263086319, 0.08353795111179352, -0.5119563341140747, 0.16444027423858643, 0.007537784054875374, -0.20180559158325195, -0.11375711858272552, 0.12387923151254654, -0.16583377122879028, -0.014107219874858856, 0.18624506890773773, -0.17993929982185364, 0.18738843500614166, -0.29515889286994934, 0.24375136196613312, -0.39017677307128906, -0.19543327391147614, 0.015109807252883911, 0.057886600494384766, 0.409841924905777, 0.12543129920959473, 0.1551070511341095, 0.18641042709350586, -0.3417653739452362, 0.05660320818424225, -0.10751954466104507, -0.15106140077114105, 0.23337113857269287, -0.055027563124895096, 0.09385494142770767, 0.034196507185697556, -0.24937549233436584, -0.5408254265785217, -0.2501787543296814, -0.009575776755809784, 0.38589024543762207, 0.09830191731452942, -0.002851073630154133, -0.11265332996845245, 0.00334379356354475, 0.26702892780303955, 0.3937676250934601, -0.21082812547683716, -0.2492024451494217, 0.21024949848651886, -0.20926876366138458, -0.33469969034194946, 0.08194918930530548, -0.10423030704259872, 0.04457155987620354, 0.2523822784423828, -0.4788484573364258, -0.09063425660133362, -0.36006608605384827, 0.4096080958843231, -0.23261573910713196, 0.09382889419794083, 0.34630483388900757, 0.08929312974214554, 0.14639870822429657, -0.04174847900867462, -0.2757156491279602, -0.06513554602861404, -0.294641375541687, -0.06823261827230453, 0.338198184967041, 0.4274495840072632, -0.05757026746869087, 0.3770318031311035, 0.30022844672203064, 0.3604489862918854, 0.33447161316871643, 0.045840829610824585, 0.3711133301258087, 0.05426084250211716, -0.2594742178916931, 0.10877581685781479, -0.19434574246406555, -0.14016005396842957, 0.3007435202598572, 0.08898176997900009, -0.19526353478431702, -0.052531737834215164, -0.38045358657836914, -0.2807893455028534, -0.28528618812561035, -0.09924308955669403, -0.2463313639163971, 0.25375664234161377, 0.11914049088954926, 0.11004225164651871, -0.44624456763267517, -0.36911436915397644, 0.0288442000746727, 0.5546335577964783, -0.3098396956920624, 0.11157587170600891, -0.35080355405807495, 0.1366976648569107, -0.6549718379974365, 0.2522450089454651, 0.03402533754706383, 0.4958058297634125, -0.17412368953227997, 0.12669822573661804, -0.001507483422756195, -0.10742941498756409, 0.5570668578147888, -0.6522977948188782, 0.4618297815322876, 0.05812269076704979, 0.11573196947574615, 0.010196911171078682, -0.22434526681900024, -0.09225606918334961, 0.2416793406009674, 0.13694222271442413, 0.21455557644367218, 0.1639215052127838, 0.04404149949550629, 0.07620953768491745, 0.1665930151939392, -0.20013268291950226, -0.27905774116516113, -0.22713546454906464, -0.3418883681297302, -0.39038607478141785, 0.12800632417201996, 0.04219867289066315, 0.18547098338603973, -0.15174342691898346, 0.11716079711914062, -0.4046885371208191, 0.23697802424430847, 0.13017883896827698, 0.16028201580047607, 0.18779224157333374, 0.06457553803920746, 0.2181592434644699, -0.04804571717977524, 0.07534874230623245, -0.12915588915348053, 0.524086594581604, -0.280476838350296, -0.32837823033332825, -0.05249052494764328, -0.19998617470264435, -0.11711714416742325, 0.11224104464054108, -0.32655784487724304, -0.050091199576854706, -0.13848155736923218, -0.13273650407791138, -0.31433025002479553, 0.11707472056150436, 0.04260404780507088, -0.13543389737606049, -0.37768280506134033, -0.3201932907104492, 0.3641441762447357, 0.2117007076740265, -0.44672733545303345, 0.34047406911849976, 0.119847871363163, -0.42806297540664673, 0.1824691742658615, 0.051760539412498474, 0.7466560006141663, 0.07989033311605453, 0.27802082896232605, 0.0972772017121315, -0.11229567229747772, 0.2001180499792099, 0.11617879569530487, 0.05655685067176819, -0.37288698554039, -0.4541013538837433, -0.09887155890464783, -0.22054263949394226, -0.13453662395477295, -0.024941042065620422, -0.2337944060564041, 0.2817450761795044, -0.11297871917486191, 0.31880494952201843, 0.27430960536003113, 0.04803814738988876, -0.3741960823535919, -0.3764992952346802, -0.12099462747573853, 0.12518657743930817, -0.19382379949092865, 0.13586898148059845, -0.22749045491218567, 0.09111583977937698, 0.08490483462810516, -0.1673942655324936, -0.43912166357040405, 0.1967896819114685, -0.4114464521408081, 0.1381179690361023, -0.29741811752319336, -0.38368284702301025, 0.08779963850975037, 0.5960646867752075, 0.284967839717865, 0.3604602515697479, -0.1543024629354477, 0.06006704270839691, 0.0793890729546547, 0.11794424057006836, 0.02495737001299858, 0.0074557894840836525, 0.19626401364803314, -0.08069460093975067, -0.29818886518478394, -0.015169307589530945, -0.27812710404396057, -0.3215295076370239, -0.105553038418293, 0.28626760840415955, 0.40390515327453613, -0.320111483335495, -0.20768886804580688, -0.31064632534980774, 0.08497351408004761, -0.2798957824707031, 0.09370319545269012, 0.047042153775691986, -0.07560183852910995, 0.37954121828079224, -0.3368881046772003, -0.42571231722831726, -0.14751766622066498, 0.524276077747345, -0.07907655835151672, -0.13375595211982727, 0.5711392164230347, -0.048503048717975616, -0.17853936553001404, -0.01303231529891491, 0.14549288153648376, -0.10098472237586975, -0.46245837211608887, -0.10034400224685669, -0.12253542989492416, 0.10782840847969055, -0.02910695970058441, 0.16985073685646057, 0.27879685163497925, -0.09631005674600601, 0.053403567522764206, -0.75813889503479, -0.2621009051799774, -0.11298516392707825, -0.231143519282341, 0.17163561284542084, 0.18311110138893127, -0.44054079055786133, -0.13530538976192474, -0.28408050537109375, -0.20300325751304626, 0.04410110414028168, -0.21473431587219238, -0.1294415444135666, 0.27790114283561707, 0.15455769002437592, -0.0013412097468972206, 0.12451329827308655, -0.0026244893670082092, 0.09265878796577454, 0.12275488674640656, -0.17137017846107483, -0.12370964884757996, 0.1475239396095276, 0.10378225147724152, -0.0918002501130104, 0.026753831654787064, -0.3284255862236023, -0.07359741628170013, -0.0984257385134697, 0.3940446376800537, 0.2593081593513489, -0.028157226741313934, 0.06791762262582779, -0.12768340110778809, 0.28947070240974426, -0.28270506858825684, 0.4151187539100647, -0.34728410840034485, -0.025130480527877808, -0.013373443856835365, 0.3347688317298889, -0.141316756606102, 0.05412669479846954, -0.11745326966047287, -0.08249495178461075, 0.1532546579837799, 0.06789711862802505, 0.06460647284984589, -0.3769117593765259, 0.0850258320569992, 0.17875710129737854, 0.05933326482772827, 0.06236382573843002, -0.23318256437778473, 0.014841282740235329, 0.24505004286766052, 0.15899252891540527, -0.09227059781551361, -0.12948787212371826, -0.012007571756839752, -0.3234775960445404, -0.17904454469680786, 0.3004147410392761, 0.1639574021100998, -0.38362520933151245, 0.1359911561012268, -0.032405201345682144, 0.5581635236740112, -0.22469530999660492, -0.05772074684500694, 0.4813494384288788, -0.21740023791790009, 0.27380892634391785, 0.21858616173267365, 0.25964298844337463, -0.08437993377447128, 0.551478385925293, 0.1820426881313324, 0.13673906028270721, -0.005867946892976761, -0.17204800248146057, -0.10305257886648178, -0.6628068089485168, 0.2800285220146179, 0.06525275856256485, -0.07369078695774078, 0.05094320327043533, -0.02961721271276474, -0.00863552838563919, -0.3041154742240906, -0.0021536657586693764, -0.43828171491622925, -0.21689368784427643, -0.18088364601135254, -0.2836601138114929, 0.0684342309832573, -0.23384305834770203, 0.17253975570201874, 0.09277597069740295, -0.17077626287937164, -0.14519624412059784, -0.0699784904718399, -0.042751505970954895, -0.303575336933136, -0.2684680223464966, 0.11163219809532166, 0.41336801648139954, -0.2662926912307739, -0.19269151985645294, 0.08904927968978882, 0.0064429715275764465, 0.23958076536655426, 0.08864153921604156, 0.09613712131977081, 0.7200039029121399, 0.36966079473495483, -0.18670602142810822, -0.08271224796772003, 0.20437930524349213, 0.08497972041368484, -0.1013353168964386, 0.30956217646598816, 0.1992662250995636, 0.17723071575164795, 0.3453558683395386, 0.11968505382537842, -0.12446681410074234, 0.03745853155851364, 0.03806000202894211, -0.008947545662522316, -0.08347918093204498, 0.18735942244529724, -0.17643530666828156, -0.1684236377477646, 0.1405666172504425, 0.19802328944206238, -0.07277756184339523, 0.17002755403518677, 0.23236899077892303, 0.06273753196001053, 0.19450896978378296, -0.19005410373210907, 0.02006204053759575, 0.14877964556217194, 0.31554609537124634, 0.35036221146583557, 0.09806947410106659, -0.23355334997177124, -0.06835935264825821, -0.5775805711746216, 0.25459524989128113, -0.01822478696703911, -0.38001489639282227, -0.032235048711299896, -0.1324881762266159, -0.33680179715156555, 0.10613509267568588, 0.16192322969436646, -0.10909673571586609, 0.0555582270026207, 0.2668955326080322, -0.15676136314868927, -0.2936108410358429, 0.38943731784820557, -0.037769339978694916, -0.07810090482234955, -0.6786638498306274, 0.03660114109516144, -0.08876019716262817, 0.032007843255996704, -0.1506994068622589, -0.16663798689842224, 0.03415028750896454, -0.02607458084821701, 0.5437768697738647, 0.26441267132759094, 0.45556047558784485, 0.007837601006031036, 0.09181345254182816, -0.5622044801712036, -0.0687977597117424, -0.14528989791870117, -0.033695004880428314, -0.07782581448554993, 0.2713488042354584, -0.22750388085842133, 0.04143596440553665, -0.12419243156909943, 0.16709394752979279, 0.2662992477416992, 0.3795423209667206, -0.005456246435642242, 0.22790509462356567, 0.18094375729560852, 0.15718919038772583, 0.3478449583053589, 0.06997201591730118, -0.09617958962917328, 0.44603660702705383, -0.24093419313430786, -0.34204840660095215, 0.21094822883605957, -0.39415040612220764, -0.3340475857257843, -0.019208623096346855, 0.32515692710876465, -0.2549190819263458, -0.1531335711479187, -0.2379634976387024, 0.2061091661453247, 0.24783967435359955, -0.14348047971725464, -0.3868970572948456, 0.14134523272514343, -0.15703512728214264, 0.1402919888496399, -0.022752363234758377, 0.03422372043132782, 0.010135134682059288, -0.2253900170326233, 0.1708669513463974, -0.23743672668933868 ]
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.22893105447292328, 0.38345402479171753, 0.040345486253499985, 0.2550400197505951, -0.012111496180295944, 0.26225730776786804, 0.5036689639091492, 0.13295315206050873, 0.3442804515361786, 0.1357182413339615, -0.10897494852542877, 0.0772843211889267, 0.07315035164356232, -0.005698667839169502, -0.12562327086925507, 0.07892754673957825, 0.036445073783397675, -0.005388155579566956, 0.21494904160499573, 0.10395503044128418, -0.4238828718662262, 0.10729576647281647, -0.1728546917438507, 0.18611589074134827, 0.02609490044414997, -0.13634225726127625, 0.12125995755195618, 0.36072954535484314, -0.030788736417889595, -0.3922068774700165, 0.3530234694480896, 0.0634533241391182, 0.4639188349246979, 0.2582458257675171, -0.00011924598948098719, -0.013706348836421967, 0.23068425059318542, 0.1244996041059494, -0.0737270712852478, 0.08709956705570221, -0.18398481607437134, -0.14096809923648834, 0.16522926092147827, -0.09768719971179962, 0.17674356698989868, 0.36349114775657654, -0.1021372526884079, -0.20092961192131042, -0.013041839003562927, 0.37903404235839844, 0.15730063617229462, -0.038184791803359985, -0.118678018450737, -0.07520421594381332, 0.4933357536792755, -0.15929795801639557, -0.13317999243736267, 0.2798379361629486, 0.07902481406927109, -0.1145690307021141, -0.09899056702852249, 0.1995733678340912, -0.16214890778064728, 0.14715716242790222, 0.018658027052879333, 0.031129758805036545, 0.21623119711875916, -0.45810946822166443, 0.35214123129844666, 0.15125836431980133, 0.9656504988670349, -0.195573091506958, -0.1914043426513672, -0.08874819427728653, 0.013304111547768116, -0.03300251066684723, 0.4326036274433136, 0.42862406373023987, -0.32456856966018677, 0.25237080454826355, 0.06596970558166504, 0.08356554806232452, -0.08255104720592499, -0.001908905804157257, 0.07128584384918213, 0.1486530900001526, -0.05047055333852768, 0.11955634504556656, -0.1147308200597763, -0.0834009125828743, 0.3863350450992584, -0.21382763981819153, -0.2546023428440094, 0.19166730344295502, -0.33943650126457214, 0.28986987471580505, 0.05345261096954346, 0.7778055667877197, 0.15787765383720398, 0.31552964448928833, 0.12502345442771912, -0.05405201017856598, 0.21362465620040894, 0.0651903972029686, 0.008592668920755386, 0.3214899003505707, -0.11223883181810379, -0.016922790557146072, 0.42710626125335693, 0.11744193732738495, -0.08161693811416626, -0.008990537375211716, -0.02004595845937729, -0.42947396636009216, 0.3538796007633209, 0.10540708899497986, 0.40811824798583984, -0.28564128279685974, -0.12170109897851944, -0.00029508769512176514, 0.1581321358680725, -0.023971011862158775, 0.05888309329748154, 0.5011533498764038, -0.2717721462249756, 0.04268316924571991, 0.06825161725282669, 0.17944453656673431, 0.018610646948218346, 0.09776216745376587, -0.08779989182949066, -0.08900260925292969, -0.2667176425457001, -0.05143895745277405, 0.40864670276641846, -0.322576105594635, 0.09556524455547333, 0.256676584482193, 0.02704732120037079, -0.17929454147815704, 0.19183221459388733, -0.04149750620126724, -0.03285706788301468, 0.35768699645996094, 0.39729636907577515, 0.33763349056243896, 0.17493215203285217, -0.2122965008020401, -0.03499526530504227, 0.18631160259246826, -0.48729026317596436, -0.40250417590141296, -0.033664800226688385, 0.12132809311151505, -0.08332373201847076, 0.06320543587207794, -0.19803687930107117, -0.04825789853930473, 0.38231295347213745, -0.3008548319339752, -0.06183617562055588, -0.013725530356168747, -0.220620259642601, -0.5042762160301208, 0.04070822894573212, 0.40128839015960693, -0.35969823598861694, 0.1303667575120926, -0.0915532335639, -0.2640872299671173, 0.15043291449546814, 0.005637733265757561, 0.005634448956698179, 0.36168229579925537, -0.28122052550315857, 0.015607401728630066, 0.277459055185318, -0.3938949704170227, -1.0015968084335327, -0.021003341302275658, 0.07310013473033905, 0.1660415381193161, 0.24440604448318481, 0.11913758516311646, 0.3659377694129944, -0.030345479026436806, 0.17047597467899323, 0.31871259212493896, 0.1300753355026245, 0.11197447031736374, -0.06299630552530289, -0.20385552942752838, 0.279660701751709, 0.1339261829853058, 0.08833898603916168, 0.30090340971946716, 0.31260010600090027, -0.05693402886390686, 0.25109589099884033, -0.1872611790895462, 0.1168045699596405, 0.19251582026481628, 0.011496078222990036, -0.03513577580451965, 0.1375143975019455, -0.1277380883693695, -0.4204089641571045, 0.35144808888435364, -0.008118340745568275, 0.08516696840524673, 0.07597886770963669, -0.20274308323860168, -0.3184642195701599, 0.09134078025817871, -0.5447553992271423, -0.28899648785591125, 0.08510653674602509, 0.29389894008636475, 0.21242570877075195, 0.02368234470486641, 0.18916404247283936, 0.3374142050743103, -0.20822711288928986, 0.1271960586309433, -0.18114104866981506, 0.038606904447078705, -0.18833814561367035, -0.13644914329051971, -0.21224789321422577, 0.04691571742296219, 0.2001282274723053, 0.25274816155433655, -0.21343320608139038, 0.19610103964805603, 0.15121357142925262, 0.03749885410070419, -0.37855762243270874, -0.059557005763053894, -0.022377656772732735, 0.12172956764698029, 0.15684814751148224, 0.13817834854125977, 0.14832349121570587, -0.044394154101610184, -0.19221922755241394, 0.1377543956041336, -0.15963472425937653, 0.14373135566711426, -0.3266507387161255, 0.24303588271141052, 0.24470657110214233, 0.09005042910575867, 0.08569688349962234, 0.03445235639810562, 0.30547037720680237, 0.02411862276494503, 0.07459601759910583, -0.2858038544654846, 0.1012619137763977, -0.07780914753675461, 0.05930323526263237, 0.022547908127307892, 0.08128238469362259, 0.24975329637527466, -0.17460155487060547, 0.0168861523270607, 0.28699350357055664, 0.3496789336204529, 0.5377135872840881, -0.04098674654960632, 0.05155012756586075, 0.06679752469062805, 0.047912269830703735, 0.08966917544603348, 0.11925183981657028, 0.08577112853527069, -0.0702270045876503, 0.26344922184944153, 0.12843413650989532, 0.22416624426841736, -0.06479806452989578, -0.1138603538274765, -0.10754140466451645, 0.4194294214248657, -0.48751336336135864, -0.08438761532306671, 0.10005459189414978, 0.07484018057584763, 0.18120110034942627, -0.24284698069095612, -0.08878137171268463, -0.14609836041927338, -0.24304606020450592, 0.31163668632507324, 0.0940709263086319, 0.08353795111179352, -0.5119563341140747, 0.16444027423858643, 0.007537784054875374, -0.20180559158325195, -0.11375711858272552, 0.12387923151254654, -0.16583377122879028, -0.014107219874858856, 0.18624506890773773, -0.17993929982185364, 0.18738843500614166, -0.29515889286994934, 0.24375136196613312, -0.39017677307128906, -0.19543327391147614, 0.015109807252883911, 0.057886600494384766, 0.409841924905777, 0.12543129920959473, 0.1551070511341095, 0.18641042709350586, -0.3417653739452362, 0.05660320818424225, -0.10751954466104507, -0.15106140077114105, 0.23337113857269287, -0.055027563124895096, 0.09385494142770767, 0.034196507185697556, -0.24937549233436584, -0.5408254265785217, -0.2501787543296814, -0.009575776755809784, 0.38589024543762207, 0.09830191731452942, -0.002851073630154133, -0.11265332996845245, 0.00334379356354475, 0.26702892780303955, 0.3937676250934601, -0.21082812547683716, -0.2492024451494217, 0.21024949848651886, -0.20926876366138458, -0.33469969034194946, 0.08194918930530548, -0.10423030704259872, 0.04457155987620354, 0.2523822784423828, -0.4788484573364258, -0.09063425660133362, -0.36006608605384827, 0.4096080958843231, -0.23261573910713196, 0.09382889419794083, 0.34630483388900757, 0.08929312974214554, 0.14639870822429657, -0.04174847900867462, -0.2757156491279602, -0.06513554602861404, -0.294641375541687, -0.06823261827230453, 0.338198184967041, 0.4274495840072632, -0.05757026746869087, 0.3770318031311035, 0.30022844672203064, 0.3604489862918854, 0.33447161316871643, 0.045840829610824585, 0.3711133301258087, 0.05426084250211716, -0.2594742178916931, 0.10877581685781479, -0.19434574246406555, -0.14016005396842957, 0.3007435202598572, 0.08898176997900009, -0.19526353478431702, -0.052531737834215164, -0.38045358657836914, -0.2807893455028534, -0.28528618812561035, -0.09924308955669403, -0.2463313639163971, 0.25375664234161377, 0.11914049088954926, 0.11004225164651871, -0.44624456763267517, -0.36911436915397644, 0.0288442000746727, 0.5546335577964783, -0.3098396956920624, 0.11157587170600891, -0.35080355405807495, 0.1366976648569107, -0.6549718379974365, 0.2522450089454651, 0.03402533754706383, 0.4958058297634125, -0.17412368953227997, 0.12669822573661804, -0.001507483422756195, -0.10742941498756409, 0.5570668578147888, -0.6522977948188782, 0.4618297815322876, 0.05812269076704979, 0.11573196947574615, 0.010196911171078682, -0.22434526681900024, -0.09225606918334961, 0.2416793406009674, 0.13694222271442413, 0.21455557644367218, 0.1639215052127838, 0.04404149949550629, 0.07620953768491745, 0.1665930151939392, -0.20013268291950226, -0.27905774116516113, -0.22713546454906464, -0.3418883681297302, -0.39038607478141785, 0.12800632417201996, 0.04219867289066315, 0.18547098338603973, -0.15174342691898346, 0.11716079711914062, -0.4046885371208191, 0.23697802424430847, 0.13017883896827698, 0.16028201580047607, 0.18779224157333374, 0.06457553803920746, 0.2181592434644699, -0.04804571717977524, 0.07534874230623245, -0.12915588915348053, 0.524086594581604, -0.280476838350296, -0.32837823033332825, -0.05249052494764328, -0.19998617470264435, -0.11711714416742325, 0.11224104464054108, -0.32655784487724304, -0.050091199576854706, -0.13848155736923218, -0.13273650407791138, -0.31433025002479553, 0.11707472056150436, 0.04260404780507088, -0.13543389737606049, -0.37768280506134033, -0.3201932907104492, 0.3641441762447357, 0.2117007076740265, -0.44672733545303345, 0.34047406911849976, 0.119847871363163, -0.42806297540664673, 0.1824691742658615, 0.051760539412498474, 0.7466560006141663, 0.07989033311605453, 0.27802082896232605, 0.0972772017121315, -0.11229567229747772, 0.2001180499792099, 0.11617879569530487, 0.05655685067176819, -0.37288698554039, -0.4541013538837433, -0.09887155890464783, -0.22054263949394226, -0.13453662395477295, -0.024941042065620422, -0.2337944060564041, 0.2817450761795044, -0.11297871917486191, 0.31880494952201843, 0.27430960536003113, 0.04803814738988876, -0.3741960823535919, -0.3764992952346802, -0.12099462747573853, 0.12518657743930817, -0.19382379949092865, 0.13586898148059845, -0.22749045491218567, 0.09111583977937698, 0.08490483462810516, -0.1673942655324936, -0.43912166357040405, 0.1967896819114685, -0.4114464521408081, 0.1381179690361023, -0.29741811752319336, -0.38368284702301025, 0.08779963850975037, 0.5960646867752075, 0.284967839717865, 0.3604602515697479, -0.1543024629354477, 0.06006704270839691, 0.0793890729546547, 0.11794424057006836, 0.02495737001299858, 0.0074557894840836525, 0.19626401364803314, -0.08069460093975067, -0.29818886518478394, -0.015169307589530945, -0.27812710404396057, -0.3215295076370239, -0.105553038418293, 0.28626760840415955, 0.40390515327453613, -0.320111483335495, -0.20768886804580688, -0.31064632534980774, 0.08497351408004761, -0.2798957824707031, 0.09370319545269012, 0.047042153775691986, -0.07560183852910995, 0.37954121828079224, -0.3368881046772003, -0.42571231722831726, -0.14751766622066498, 0.524276077747345, -0.07907655835151672, -0.13375595211982727, 0.5711392164230347, -0.048503048717975616, -0.17853936553001404, -0.01303231529891491, 0.14549288153648376, -0.10098472237586975, -0.46245837211608887, -0.10034400224685669, -0.12253542989492416, 0.10782840847969055, -0.02910695970058441, 0.16985073685646057, 0.27879685163497925, -0.09631005674600601, 0.053403567522764206, -0.75813889503479, -0.2621009051799774, -0.11298516392707825, -0.231143519282341, 0.17163561284542084, 0.18311110138893127, -0.44054079055786133, -0.13530538976192474, -0.28408050537109375, -0.20300325751304626, 0.04410110414028168, -0.21473431587219238, -0.1294415444135666, 0.27790114283561707, 0.15455769002437592, -0.0013412097468972206, 0.12451329827308655, -0.0026244893670082092, 0.09265878796577454, 0.12275488674640656, -0.17137017846107483, -0.12370964884757996, 0.1475239396095276, 0.10378225147724152, -0.0918002501130104, 0.026753831654787064, -0.3284255862236023, -0.07359741628170013, -0.0984257385134697, 0.3940446376800537, 0.2593081593513489, -0.028157226741313934, 0.06791762262582779, -0.12768340110778809, 0.28947070240974426, -0.28270506858825684, 0.4151187539100647, -0.34728410840034485, -0.025130480527877808, -0.013373443856835365, 0.3347688317298889, -0.141316756606102, 0.05412669479846954, -0.11745326966047287, -0.08249495178461075, 0.1532546579837799, 0.06789711862802505, 0.06460647284984589, -0.3769117593765259, 0.0850258320569992, 0.17875710129737854, 0.05933326482772827, 0.06236382573843002, -0.23318256437778473, 0.014841282740235329, 0.24505004286766052, 0.15899252891540527, -0.09227059781551361, -0.12948787212371826, -0.012007571756839752, -0.3234775960445404, -0.17904454469680786, 0.3004147410392761, 0.1639574021100998, -0.38362520933151245, 0.1359911561012268, -0.032405201345682144, 0.5581635236740112, -0.22469530999660492, -0.05772074684500694, 0.4813494384288788, -0.21740023791790009, 0.27380892634391785, 0.21858616173267365, 0.25964298844337463, -0.08437993377447128, 0.551478385925293, 0.1820426881313324, 0.13673906028270721, -0.005867946892976761, -0.17204800248146057, -0.10305257886648178, -0.6628068089485168, 0.2800285220146179, 0.06525275856256485, -0.07369078695774078, 0.05094320327043533, -0.02961721271276474, -0.00863552838563919, -0.3041154742240906, -0.0021536657586693764, -0.43828171491622925, -0.21689368784427643, -0.18088364601135254, -0.2836601138114929, 0.0684342309832573, -0.23384305834770203, 0.17253975570201874, 0.09277597069740295, -0.17077626287937164, -0.14519624412059784, -0.0699784904718399, -0.042751505970954895, -0.303575336933136, -0.2684680223464966, 0.11163219809532166, 0.41336801648139954, -0.2662926912307739, -0.19269151985645294, 0.08904927968978882, 0.0064429715275764465, 0.23958076536655426, 0.08864153921604156, 0.09613712131977081, 0.7200039029121399, 0.36966079473495483, -0.18670602142810822, -0.08271224796772003, 0.20437930524349213, 0.08497972041368484, -0.1013353168964386, 0.30956217646598816, 0.1992662250995636, 0.17723071575164795, 0.3453558683395386, 0.11968505382537842, -0.12446681410074234, 0.03745853155851364, 0.03806000202894211, -0.008947545662522316, -0.08347918093204498, 0.18735942244529724, -0.17643530666828156, -0.1684236377477646, 0.1405666172504425, 0.19802328944206238, -0.07277756184339523, 0.17002755403518677, 0.23236899077892303, 0.06273753196001053, 0.19450896978378296, -0.19005410373210907, 0.02006204053759575, 0.14877964556217194, 0.31554609537124634, 0.35036221146583557, 0.09806947410106659, -0.23355334997177124, -0.06835935264825821, -0.5775805711746216, 0.25459524989128113, -0.01822478696703911, -0.38001489639282227, -0.032235048711299896, -0.1324881762266159, -0.33680179715156555, 0.10613509267568588, 0.16192322969436646, -0.10909673571586609, 0.0555582270026207, 0.2668955326080322, -0.15676136314868927, -0.2936108410358429, 0.38943731784820557, -0.037769339978694916, -0.07810090482234955, -0.6786638498306274, 0.03660114109516144, -0.08876019716262817, 0.032007843255996704, -0.1506994068622589, -0.16663798689842224, 0.03415028750896454, -0.02607458084821701, 0.5437768697738647, 0.26441267132759094, 0.45556047558784485, 0.007837601006031036, 0.09181345254182816, -0.5622044801712036, -0.0687977597117424, -0.14528989791870117, -0.033695004880428314, -0.07782581448554993, 0.2713488042354584, -0.22750388085842133, 0.04143596440553665, -0.12419243156909943, 0.16709394752979279, 0.2662992477416992, 0.3795423209667206, -0.005456246435642242, 0.22790509462356567, 0.18094375729560852, 0.15718919038772583, 0.3478449583053589, 0.06997201591730118, -0.09617958962917328, 0.44603660702705383, -0.24093419313430786, -0.34204840660095215, 0.21094822883605957, -0.39415040612220764, -0.3340475857257843, -0.019208623096346855, 0.32515692710876465, -0.2549190819263458, -0.1531335711479187, -0.2379634976387024, 0.2061091661453247, 0.24783967435359955, -0.14348047971725464, -0.3868970572948456, 0.14134523272514343, -0.15703512728214264, 0.1402919888496399, -0.022752363234758377, 0.03422372043132782, 0.010135134682059288, -0.2253900170326233, 0.1708669513463974, -0.23743672668933868 ]
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.04569007828831673, 0.33450788259506226, 0.11488880217075348, 0.08045118302106857, 0.2304304838180542, 0.1188877746462822, 0.3988851010799408, 0.2548750042915344, -0.10991644859313965, 0.26743894815444946, -0.33538562059402466, 0.4040720462799072, -0.16448089480400085, -0.10746215283870697, -0.03426686301827431, -0.1066436618566513, 0.051110800355672836, 0.1451645791530609, -0.16666440665721893, -0.12261220067739487, -0.21033646166324615, 0.03519109636545181, -0.12747591733932495, 0.07211615890264511, -0.13876396417617798, -0.28114503622055054, 0.01058872975409031, 0.1006443202495575, 0.2441079467535019, -0.01835494115948677, 0.06827961653470993, 0.021176977083086967, -0.17779594659805298, 0.4797627925872803, -0.00011666516365949064, 0.4142075777053833, -0.006127521395683289, 0.1301538199186325, -0.23558081686496735, 0.05651070177555084, -0.06903086602687836, 0.17604999244213104, 0.1245584636926651, -0.05997370183467865, 0.13496798276901245, -0.21777625381946564, -0.025572726503014565, 0.08327299356460571, 0.28249549865722656, 0.4290584623813629, 0.17387717962265015, 0.6678123474121094, 0.049049388617277145, -0.007073971442878246, 0.38278523087501526, 0.06389778107404709, -0.27425894141197205, 0.11617060005664825, -0.23700949549674988, -0.1935144066810608, 0.06556092947721481, 0.5781881809234619, 0.017382437363266945, -0.07479844987392426, -0.13468730449676514, 0.07937832921743393, -0.24748435616493225, -0.21320980787277222, 0.09915623813867569, 0.3864620625972748, 0.29421448707580566, -0.3177286684513092, -0.07044240832328796, -0.1286831498146057, -0.06478439271450043, -0.1454344093799591, 0.19134795665740967, -0.04620642215013504, 0.017386678606271744, 0.13485005497932434, 0.058215219527482986, -0.1622665673494339, -0.261507511138916, -0.0061732083559036255, -0.2810881435871124, -0.10721860826015472, 0.08574363589286804, 0.08013858646154404, 0.4141070544719696, -0.027151543647050858, -0.06863751262426376, 0.04162948578596115, 0.02016325294971466, 0.13079169392585754, -0.20230157673358917, -0.18202082812786102, -0.0392589271068573, -0.17703023552894592, -0.028179513290524483, -0.07086215913295746, 0.23925118148326874, -0.15704479813575745, -0.2443435788154602, 0.06774026155471802, 0.16441909968852997, -0.07058843970298767, -0.6655332446098328, 0.14519941806793213, 0.2680507302284241, -0.1933342069387436, -0.11191998422145844, -0.02867107093334198, 0.0027094860561192036, -0.49814373254776, 0.28611671924591064, -0.21079176664352417, 0.4638057351112366, 0.017413798719644547, -0.5834482908248901, 0.17033584415912628, -0.19436031579971313, 0.4077930152416229, -0.03926560655236244, 0.3421231508255005, -0.00972457230091095, 0.27936795353889465, 0.3236468434333801, -0.003611154854297638, -0.49707069993019104, -0.016200359910726547, -0.05466807261109352, -0.03966240957379341, -0.2995603084564209, -0.33192333579063416, 0.1675925999879837, 0.04395293444395065, -0.04784907400608063, 0.17280714213848114, 0.06108277291059494, 0.10257628560066223, 0.2539462447166443, -0.2808159291744232, 0.5246315598487854, 0.4812730550765991, -0.07509739696979523, 0.24509452283382416, 0.09495806694030762, -0.25070250034332275, -0.12922218441963196, 0.35341814160346985, -0.2710708677768707, -0.15856508910655975, -0.26036524772644043, 0.12456434220075607, -0.12023323774337769, -0.15524691343307495, -0.22380205988883972, 0.04500386118888855, 0.034312859177589417, -0.05954702943563461, 0.08629176020622253, -0.13709141314029694, -0.5523480176925659, -0.26465556025505066, 0.010904328897595406, 0.36509090662002563, -0.19915199279785156, 0.17955124378204346, -0.02543806843459606, -0.3931921124458313, -0.15941062569618225, 0.2656007409095764, 0.06460507214069366, 0.31538328528404236, -0.4097917079925537, -0.1304861456155777, 0.48381954431533813, -0.2320680171251297, -0.451283723115921, 0.23500563204288483, -0.2089938223361969, 0.2142520546913147, -0.3518174886703491, 0.13031741976737976, 0.2125164419412613, -0.20666542649269104, 0.012362159788608551, -0.007045207545161247, -0.06230967491865158, -0.009127004072070122, -0.32360905408859253, -0.010815280489623547, -0.06801830977201462, -0.19527065753936768, -0.015727762132883072, -0.012415856122970581, 0.13186506927013397, -0.04939540848135948, 0.3902638852596283, 0.21969185769557953, 0.19332583248615265, 0.14174765348434448, 0.3756611943244934, -0.17291395366191864, -0.07908884435892105, 0.04328874498605728, -0.37751755118370056, 0.13952457904815674, 0.405678391456604, 0.07770296931266785, -0.12490475177764893, -0.14793625473976135, -0.014970021322369576, 0.19853703677654266, -0.19195027649402618, 0.020079970359802246, 0.07844395190477371, -0.11942455172538757, -0.3427833616733551, 0.2097567766904831, -0.00877343863248825, -0.1780354380607605, -0.2768910825252533, 0.08200826495885849, 0.10280223190784454, 0.4687255620956421, 0.2687627077102661, -0.005573452450335026, -0.2448139637708664, 0.19433826208114624, -0.14946532249450684, -0.030063075944781303, -0.27190208435058594, 0.426939457654953, 0.1747722625732422, 0.3178136348724365, -0.15419718623161316, 0.5814430713653564, 0.10668500512838364, -0.5981355309486389, -0.2948668599128723, 0.3456805348396301, 0.13194774091243744, -0.028623301535844803, -0.017955489456653595, 0.14569851756095886, -0.20072336494922638, 0.1713244616985321, 0.053768835961818695, 0.23926398158073425, 0.04082748293876648, 0.021464083343744278, -0.03639737516641617, -0.34101608395576477, -0.04838133230805397, 0.3614161014556885, -0.3146299123764038, 0.29861462116241455, -0.6084025502204895, 0.19652915000915527, 0.3866647481918335, 0.03110693395137787, -0.16892477869987488, 0.23582980036735535, -0.16949427127838135, 0.061729900538921356, 0.07153797149658203, 0.3181355595588684, 0.4760550856590271, 0.022361338138580322, 0.17279092967510223, 0.13679923117160797, -0.19374001026153564, -0.09025267511606216, 0.23736470937728882, 0.08871420472860336, 0.31243181228637695, 0.20392078161239624, 0.2570452094078064, 0.19310399889945984, -0.30240383744239807, 0.03301859274506569, 0.13020411133766174, 0.172896146774292, -0.45257875323295593, 0.17472262680530548, -0.18073821067810059, -0.03884684666991234, -0.30748987197875977, 0.011746305041015148, 0.03772226721048355, -0.134799987077713, 0.31545960903167725, 0.3967655897140503, -0.4561236798763275, 0.15392330288887024, -0.3289412558078766, 0.12903311848640442, 0.02276877872645855, -0.29593169689178467, 0.18030208349227905, -0.16917894780635834, -0.2714839577674866, 0.03444306179881096, 0.36438706517219543, -0.24427668750286102, 0.41803431510925293, -0.001358548179268837, -0.07474908232688904, -0.1528538316488266, -0.2631639242172241, 0.08977952599525452, -0.09495307505130768, 0.1932285726070404, 0.29371607303619385, 0.33681103587150574, -0.12326736003160477, -0.13017724454402924, 0.14623378217220306, -0.4851285219192505, -0.17861421406269073, 0.13726705312728882, -0.12271815538406372, 0.2090100795030594, 0.020397700369358063, -0.15208956599235535, 0.07417669147253036, -0.3432304263114929, 0.06708268076181412, -0.19137915968894958, 0.12772853672504425, 0.6203327775001526, 0.15204104781150818, -0.08000215888023376, 0.37897077202796936, 0.10768022388219833, -0.17360027134418488, -0.1127353310585022, 0.2009134441614151, -0.20372341573238373, -0.4296337366104126, 0.29090508818626404, 0.03388958051800728, 0.13257908821105957, 0.29555845260620117, -0.6434154510498047, -0.16894198954105377, -0.04373548924922943, 0.17766393721103668, -0.10888655483722687, -0.047006942331790924, 0.1665741503238678, 0.11643645167350769, -0.11971431225538254, -0.34324708580970764, 0.08278648555278778, 0.3821261525154114, -0.22708043456077576, -0.04858043044805527, 0.042270563542842865, 0.08824551105499268, 0.313571035861969, 0.6243579983711243, 0.05083296075463295, -0.34294334053993225, 0.02080368995666504, -0.2982524037361145, 0.5073609352111816, -0.1590907871723175, -0.27957507967948914, 0.015801163390278816, 0.042031459510326385, -0.13273629546165466, 0.24627383053302765, -0.07957783341407776, -0.21037985384464264, 0.057861872017383575, 0.21673274040222168, -0.03759188950061798, -0.5290265083312988, 0.13690240681171417, -0.3965076506137848, 0.19836536049842834, 0.1509983390569687, -0.04255444556474686, -0.15817765891551971, -0.4451104998588562, 0.22895978391170502, 0.20402178168296814, 0.09302552044391632, -0.13661588728427887, -0.19879016280174255, -0.28238850831985474, -0.34255358576774597, 0.06804676353931427, 0.1306476891040802, 0.5035341382026672, 0.09213535487651825, -0.29871997237205505, 0.13605089485645294, 0.27989622950553894, 0.7769170999526978, -0.030116183683276176, -0.0992756187915802, 0.27733340859413147, 0.3224099278450012, -0.40419548749923706, 0.05556335672736168, -0.10501700639724731, -0.004628117196261883, 0.02816341444849968, 0.2416951060295105, 0.07723621279001236, -0.38879379630088806, 0.21295033395290375, 0.17669107019901276, -0.2477182000875473, 0.2110394686460495, -0.3918568789958954, -0.39860302209854126, 0.10136713087558746, 0.08784735202789307, 0.26049408316612244, 0.049756430089473724, -0.10872063040733337, -0.11151230335235596, -0.30123674869537354, -0.24823307991027832, 0.08814430236816406, -0.015626907348632812, 0.3283711075782776, 0.37087175250053406, 0.3975335955619812, 0.05334067717194557, 0.5702842473983765, 0.39386942982673645, 0.4075016379356384, -0.5431126952171326, 0.02142839878797531, 0.07550637423992157, 0.19113285839557648, 0.1251915842294693, 0.44203856587409973, -0.18668581545352936, 0.053141627460718155, -0.41518718004226685, 0.0002787560224533081, -0.3923724293708801, 0.530259370803833, 0.1395118236541748, -0.20313389599323273, -0.0013094479218125343, -0.09222970902919769, 0.13336913287639618, -0.010361379012465477, -0.1489025205373764, 0.6897447109222412, 0.21658258140087128, -0.1877490133047104, 0.2651529312133789, 0.1582140028476715, 1.1080399751663208, -0.0935678631067276, 0.2334684282541275, 0.5235838294029236, -0.26436951756477356, 0.212654247879982, -0.05537976324558258, 0.1353132426738739, -0.06322572380304337, -0.5360189080238342, 0.020139330998063087, -0.012507617473602295, -0.3608238697052002, -0.2005617469549179, 0.18932686746120453, 0.002370519330725074, 0.15720659494400024, 0.41068485379219055, 0.22914598882198334, 0.0776233822107315, 0.2959437072277069, -0.21861931681632996, 0.039656877517700195, 0.022472038865089417, 0.446658730506897, -0.12662005424499512, -0.2026073932647705, -0.12232185900211334, 0.1659473478794098, 0.027122534811496735, -0.03446495160460472, -0.009640885517001152, -0.7225639820098877, 0.27561646699905396, 0.04224846512079239, -0.09043862670660019, -0.02405969612300396, 0.401231586933136, 0.3712243437767029, -0.09887658059597015, -0.15234696865081787, 0.2883429527282715, 0.377362459897995, 0.29301220178604126, 0.09380700439214706, -0.016785889863967896, 0.47509506344795227, 0.03830232471227646, -0.08036363124847412, 0.1676330864429474, -0.05447189509868622, -0.05252288281917572, -0.0370938703417778, -0.1225818544626236, 0.03829426318407059, -0.12055530399084091, 0.04458474740386009, -0.09958517551422119, -0.24590620398521423, -0.057958267629146576, 0.10357752442359924, -0.18048782646656036, -0.10702705383300781, 0.23447361588478088, -0.1927340179681778, -0.4316699802875519, 0.23925673961639404, 0.3922545611858368, -0.12051223963499069, 0.17103491723537445, 0.3036816716194153, -0.07610423117876053, -0.07312791049480438, -0.25623899698257446, 0.34453433752059937, 0.0378299318253994, -0.5670921206474304, 0.2645977735519409, -0.18107597529888153, 0.3202277421951294, -0.10798830538988113, 0.5147191286087036, -0.19703039526939392, 0.02094128727912903, 0.02216009423136711, -0.13972286880016327, -0.39777180552482605, 0.23617467284202576, 0.0018211044371128082, 0.4124113619327545, -0.2537190914154053, 0.4747990071773529, -0.12875348329544067, -0.25279274582862854, -0.29979801177978516, 0.23436705768108368, -0.028114844113588333, 0.07878991961479187, -0.10588608682155609, 0.05765082314610481, 0.3181118965148926, -0.277951717376709, 0.05769581347703934, 0.10732091963291168, -0.13811095058918, -0.13849101960659027, -0.16371415555477142, 0.16327708959579468, 0.028017954900860786, -0.32340100407600403, -0.012979627586901188, -0.17387187480926514, 0.07629115879535675, -0.1113801822066307, 0.3281945288181305, 0.07005293667316437, -0.3296968936920166, 0.027097847312688828, -0.2136472910642624, 0.13094106316566467, 0.1392463892698288, 0.007743675261735916, -0.030591897666454315, 0.37586766481399536, 0.08969546109437943, 0.09814869612455368, -0.23660928010940552, -0.23252610862255096, -0.0303853377699852, 0.28426629304885864, -0.03563772141933441, -0.3600643277168274, 0.037712398916482925, -0.05584821105003357, -0.29388776421546936, -0.059905339032411575, 0.37662944197654724, 0.17997586727142334, -0.463461309671402, -0.13622412085533142, 0.2592979669570923, 0.22421713173389435, -0.24042116105556488, 0.16245035827159882, -0.12176796793937683, 0.019864235073328018, 0.03851151838898659, 0.16629649698734283, 0.18402771651744843, -0.14655476808547974, -0.1428782343864441, 0.17723166942596436, -0.20080335438251495, -0.20362457633018494, 0.031016169115900993, 0.5156283378601074, -0.032535944133996964, 0.23732346296310425, -0.14765354990959167, 0.10366436839103699, 0.12641778588294983, 0.2481575459241867, -0.0781785324215889, 0.4826439619064331, 0.19811072945594788, -0.06543825566768646, -0.03546874225139618, -0.31345221400260925, -0.05552196130156517, 0.16418908536434174, -0.1238175630569458, 0.24218717217445374, -0.036149606108665466, 0.22170990705490112, 0.15493112802505493, -0.42458295822143555, -0.011749574914574623, 0.2324928641319275, -0.08597955852746964, -0.36718884110450745, -0.39003151655197144, -0.20805487036705017, -0.2723340392112732, 0.031124267727136612, -0.00552750751376152, -0.08657306432723999, 0.009404286742210388, 0.10601386427879333, -0.06628252565860748, -0.28257760405540466, -0.11982179433107376, 0.3330775797367096, 0.27780595421791077, -0.23256680369377136, 0.06561335176229477, -0.024808019399642944, -0.06567806005477905, -0.002108696848154068, 0.20820142328739166, 0.08352921903133392, 0.02842143550515175, -0.1759401112794876, 0.011499438434839249, -0.034654274582862854, 0.09226343035697937, -0.04009256139397621, 0.2144378125667572, -0.048917144536972046, -0.1405205875635147, 0.2157972753047943, -0.04918326437473297, -0.07002480328083038, 0.1828450709581375, 0.05197182297706604, 0.0976676344871521, -0.41822460293769836, 0.14988884329795837, -0.0033798739314079285, -0.10168039798736572, -0.22876274585723877, -0.005118027329444885, 0.050867289304733276, -0.10867883265018463, 0.48080024123191833, -0.4602070152759552, 0.3644782602787018, -0.08739127963781357, 0.06821887195110321, -0.009531546384096146, 0.22197946906089783, 0.12710900604724884, 0.3292389214038849, -0.2891255021095276, -0.38428187370300293, -0.5309662818908691, 0.26259845495224, -0.04950680956244469, -0.050644464790821075, 0.21181733906269073, 0.031771816313266754, -0.08889951556921005, -0.06646031141281128, 0.027405336499214172, -0.18654648959636688, 0.11332380026578903, 0.2672543525695801, -0.2658282518386841, -0.03609572723507881, -0.4830031991004944, 0.09843248873949051, 0.019902944564819336, -0.5478622913360596, -0.18008093535900116, -0.17627134919166565, 0.037510037422180176, -0.08184590190649033, -0.02155197784304619, -0.016611484810709953, 0.546023964881897, 0.5247307419776917, 0.12545707821846008, 0.07549706101417542, 0.1195664033293724, -0.1025606319308281, -0.2674235701560974, -0.1794997602701187, -0.3766331970691681, -0.18374773859977722, 0.0070540402084589005, -0.02379615232348442, -0.052943989634513855, 0.19713805615901947, 0.013704986311495304, -0.2977713942527771, 0.18019510805606842, 0.3653971552848816, -0.44008249044418335, 0.19560539722442627, -0.20590299367904663, 0.3725329041481018, 0.26284611225128174, 0.4234927296638489, -0.12966130673885345, 0.21667814254760742, -0.3998854160308838, -0.3820694386959076, 0.4928813874721527, -0.5328615307807922, -0.09300722181797028, -0.024598270654678345, 0.38428547978401184, -0.09380307048559189, 0.03628789633512497, -0.5819952487945557, -0.17655472457408905, 0.3898147940635681, -0.08349338173866272, -0.5030676126480103, 0.17061178386211395, 0.13014698028564453, 0.1384350061416626, 0.11816711723804474, 0.5913188457489014, 0.1401757448911667, -0.19336318969726562, 0.036497678607702255, -0.2862134575843811 ]
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.049338411539793015, 0.09200134873390198, -0.07149402797222137, 0.40184879302978516, 0.41516703367233276, 0.23589500784873962, 0.6366614699363708, 0.2435026913881302, 0.23645862936973572, 0.23132994771003723, 0.01856815256178379, 0.007743119262158871, -0.14426825940608978, -0.31003570556640625, -0.2015363574028015, -0.2443147599697113, -0.15810900926589966, -0.04162128269672394, -0.17707857489585876, 0.21771924197673798, -0.1549791693687439, 0.378737211227417, 0.02463851124048233, 0.15708374977111816, -0.5360066890716553, 0.09007896482944489, -0.12959641218185425, 0.38867464661598206, -0.021506553515791893, -0.37299108505249023, 0.05111868679523468, -0.0467166043817997, 0.06881541758775711, 0.8113576769828796, -0.00012206858809804544, -0.3334410786628723, 0.35423392057418823, -0.056299224495887756, -0.32718950510025024, -0.224309042096138, -0.1685815155506134, -0.5117114186286926, -0.03458501398563385, -0.49880266189575195, 0.18721291422843933, -0.09511928260326385, -0.033190421760082245, -0.8021568059921265, 0.04105229675769806, 0.37330567836761475, 0.1268748641014099, -0.07834679633378983, 0.09102542698383331, -0.2579197287559509, 0.3323118984699249, -0.27798908948898315, 0.004084503278136253, 0.3564028739929199, 0.3556968569755554, -0.09886642545461655, -0.15465021133422852, 0.20321817696094513, -0.03689756989479065, 0.027325022965669632, 0.24715816974639893, 0.07953789830207825, -0.0874827429652214, -0.32616522908210754, 0.29580608010292053, 0.42739394307136536, 0.47143763303756714, -0.09306176751852036, -0.27931225299835205, -0.46769586205482483, 0.1424984186887741, -0.12510593235492706, 0.4885309040546417, -0.0762387216091156, -0.22207437455654144, 0.1514883041381836, -0.17041975259780884, -0.019621310755610466, -0.12359742820262909, -0.11023847758769989, -0.10197481513023376, 0.06506247073411942, 0.04050857573747635, 0.03627917915582657, 0.31111395359039307, -0.34831422567367554, 0.23959575593471527, 0.004836579784750938, 0.07427329570055008, 0.2694607675075531, -0.6542139053344727, 0.14691206812858582, 0.08426731824874878, 0.38549283146858215, 0.25348928570747375, 0.057643823325634, -0.2659733295440674, -0.1483081579208374, 0.19474831223487854, -0.010465599596500397, -0.06495590507984161, 0.37420716881752014, 0.1944449245929718, 0.1612812876701355, 0.301242858171463, 0.07794744521379471, -0.33674678206443787, -0.10693476349115372, -0.076487697660923, -0.5534631013870239, 0.44513842463493347, 0.13359034061431885, 0.07416309416294098, -0.34371116757392883, 0.15045858919620514, 0.5705775022506714, 0.1057044044137001, -0.010489962063729763, 0.22870256006717682, 0.2733798921108246, 0.005434134043753147, 0.11076538264751434, 0.08307428658008575, -0.0899365171790123, -0.08896112442016602, 0.10083572566509247, -0.14731301367282867, -0.11073002219200134, -0.22701914608478546, 0.11241000890731812, 0.0892055332660675, -0.3083968162536621, 0.27928006649017334, -0.22746558487415314, 0.31523990631103516, -0.12495826184749603, -0.08296846598386765, -0.2377428114414215, -0.06673305481672287, 0.15596769750118256, -0.059105802327394485, 0.07391411066055298, 0.2452138364315033, -0.26073384284973145, -0.19206151366233826, -0.07711134105920792, -0.33974918723106384, -0.2851884067058563, -0.06172212213277817, 0.09470310062170029, -0.1654943972826004, 0.2159021645784378, 0.24155426025390625, -0.2671959102153778, 0.6555521488189697, -0.07981885969638824, 0.012796826660633087, -0.2747650742530823, -0.1418105959892273, 0.007191919721662998, 0.04082578420639038, 0.553465723991394, 0.13252395391464233, -0.017562665045261383, -0.06878861784934998, 0.12828129529953003, 0.008666671812534332, 0.37225988507270813, 0.18064577877521515, -0.053596131503582, -0.42195239663124084, 0.3124936819076538, 0.2268710434436798, -0.2402808964252472, -0.4869852364063263, 0.32153841853141785, -0.39430683851242065, 0.0994926318526268, 0.32291194796562195, 0.022883234545588493, 0.051709964871406555, -0.024582387879490852, 0.28533732891082764, 0.18221351504325867, -0.026095619425177574, 0.02349572815001011, -0.20252390205860138, -0.10733113437891006, -0.040630415081977844, 0.1691952496767044, 0.010954219847917557, 0.06700097769498825, 0.07961978018283844, -0.175192192196846, 0.27156862616539, 0.03146364539861679, -0.20404410362243652, 0.373680055141449, 0.13824285566806793, 0.32671868801116943, 0.1860826164484024, -0.10632781684398651, -0.5937498807907104, 0.2637210488319397, -0.12184827029705048, -0.17873188853263855, -0.2175937443971634, -0.18680478632450104, -0.17498928308486938, -0.007289590314030647, 0.0034594647586345673, 0.13513661921024323, -0.02040853537619114, 0.28324878215789795, 0.14178010821342468, -0.13176319003105164, 0.09344077110290527, 0.5883795022964478, -0.17024418711662292, 0.017597468569874763, -0.47811824083328247, -0.1711251586675644, -0.11785472184419632, -0.11254032701253891, 0.031506575644016266, 0.0016393885016441345, 0.3693964183330536, -0.10896877199411392, -0.3443516194820404, 0.44807568192481995, 0.3332767188549042, 0.09753275662660599, -0.1789250671863556, -0.004430979490280151, -0.05686408281326294, 0.2207750678062439, 0.07266977429389954, 0.03981154412031174, 0.007785440422594547, 0.014292150735855103, -0.21357589960098267, 0.3000156879425049, -0.14081653952598572, 0.2712768316268921, 0.028613612055778503, 0.16824084520339966, 0.24617937207221985, -0.1318134069442749, 0.06434572488069534, -0.176122784614563, 0.6458838582038879, -0.21635237336158752, 0.30483996868133545, 0.05478006601333618, 0.04523121565580368, -0.14486438035964966, 0.6458194851875305, 0.04539325460791588, -0.00017743557691574097, 0.19774264097213745, 0.15620112419128418, -0.04081571474671364, -0.01937304623425007, 0.3064885437488556, 0.5111443996429443, 0.1920575648546219, -0.030123021453619003, -0.20650534331798553, 0.39415791630744934, -0.22383424639701843, 0.2563192546367645, 0.015907861292362213, -0.0027925779577344656, 0.3657032549381256, 0.04961807653307915, -0.12908706068992615, 0.05148372799158096, -0.8095083236694336, -0.050441935658454895, 0.22369764745235443, -0.3198081851005554, 0.14808255434036255, -0.13932590186595917, -0.04320499300956726, -0.023800060153007507, 0.0004900768399238586, -0.08039776980876923, -0.4162812829017639, -0.18889367580413818, 0.2785065174102783, -0.14183583855628967, 0.21453402936458588, -0.11883413791656494, -0.0032419413328170776, 0.27128300070762634, -0.014538956806063652, -0.29502761363983154, -0.0016123508103191853, 0.08034427464008331, -0.08376038074493408, 0.2720727324485779, -0.537502646446228, 0.08380384743213654, -0.1256636083126068, -0.06310753524303436, -0.5083535313606262, -0.24988093972206116, 0.11166781187057495, -0.16848011314868927, 0.29356497526168823, 0.3413665294647217, 0.20785747468471527, 0.1666615903377533, 0.05889623612165451, 0.004962285980582237, -0.26227912306785583, 0.02366955392062664, 0.23266398906707764, 0.17789937555789948, -0.022819053381681442, -0.19179973006248474, -0.023455344140529633, -0.3463740944862366, -0.41603314876556396, 0.3207845091819763, 0.030303534120321274, 0.22792896628379822, 0.34118977189064026, -0.07087269425392151, 0.2978118360042572, -0.017973121255636215, 0.24729226529598236, -0.08790640532970428, -0.4463707208633423, 0.41706109046936035, -0.15252242982387543, -0.29905930161476135, -0.4318079948425293, 0.29801326990127563, -0.03550926223397255, 0.1055184006690979, -0.4223639965057373, -0.179072305560112, -0.4012606143951416, 0.338985413312912, -0.335720032453537, 0.005409928038716316, 0.19701996445655823, -0.0852012112736702, -0.05634814873337746, -0.1069377213716507, 0.08490297198295593, 0.23251241445541382, 0.011036276817321777, -0.009520724415779114, 0.0929812490940094, 0.2951667308807373, -0.11607851088047028, 0.453213095664978, 0.36166611313819885, 0.07534864544868469, 0.19538070261478424, -0.13766975700855255, 0.18435727059841156, -0.25903233885765076, -0.1269460767507553, 0.02393760159611702, 0.17447157204151154, -0.22158385813236237, 0.13420608639717102, -0.08539136499166489, 0.014082697220146656, -0.13332000374794006, -0.05779343843460083, 0.10780762881040573, -0.2960291802883148, 0.007316289469599724, 0.04858735576272011, 0.052490077912807465, 0.031080108135938644, 0.14569389820098877, -0.19488678872585297, -0.13091060519218445, -0.02408905327320099, 0.3084796369075775, 0.05407733842730522, -0.023354846984148026, -0.24687330424785614, 0.09150967001914978, -0.337141752243042, 0.44400912523269653, 0.18309183418750763, 0.21379800140857697, -0.06935897469520569, -0.16017349064350128, -0.08004845678806305, 0.046007174998521805, 0.6831175088882446, 0.09912959486246109, 0.3160930275917053, 0.15549565851688385, 0.25470399856567383, -0.1230868473649025, 0.0391717366874218, 0.07955361902713776, 0.370187371969223, 0.13904181122779846, 0.4079340100288391, -0.2308095395565033, 0.03760851174592972, -0.18331637978553772, 0.18554216623306274, -0.11663331091403961, -0.4492170810699463, -0.02628673054277897, 0.008795861154794693, -0.2636868953704834, 0.1616200953722, 0.03360506892204285, 0.2442300170660019, 0.06167266517877579, 0.004912871867418289, -0.060176998376846313, -0.07477866113185883, 0.16015410423278809, 0.17483533918857574, 0.2812635898590088, -0.4468778073787689, 0.26436513662338257, -0.027559436857700348, -0.15952949225902557, 0.23041225969791412, 0.5639729499816895, -0.4439821243286133, -0.24784299731254578, 0.41447290778160095, -0.35655903816223145, 0.0764390379190445, 0.42870816588401794, -0.3107668459415436, -0.15842393040657043, 0.35820597410202026, 0.6321602463722229, 0.12365598231554031, 0.02578270249068737, 0.03256860002875328, 0.1308743953704834, -0.15302151441574097, -0.33461081981658936, 0.21633097529411316, 0.24309499561786652, -0.017834849655628204, 0.5360277891159058, 0.02425140142440796, -0.3025459051132202, 0.2613932490348816, -0.20595425367355347, 1.0209474563598633, -0.18544836342334747, 0.187150239944458, -0.019080180674791336, 0.1287672072649002, 0.49929943680763245, 0.0092904232442379, -0.08422501385211945, -0.4268141984939575, -0.4827863574028015, 0.14020313322544098, -0.14980430901050568, 0.2397724986076355, -0.036678969860076904, -0.13019977509975433, 0.31392866373062134, -0.2595100998878479, 0.017761893570423126, -0.17453187704086304, 0.45279353857040405, -0.6466595530509949, -0.2542141079902649, -0.25032249093055725, 0.047983624041080475, -0.0439816415309906, 0.11015117168426514, 0.061711765825748444, 0.16868647933006287, -0.32926085591316223, -0.2781674861907959, -0.22720620036125183, 0.03703145682811737, -0.4157640039920807, 0.08353055268526077, -0.24390175938606262, -0.2822073698043823, -0.09024199843406677, 0.28521299362182617, -0.032049693167209625, 0.4013371765613556, -0.20359505712985992, 0.09235057979822159, 0.0828218162059784, 0.0968710407614708, 0.07299897819757462, -0.06324413418769836, 0.3176954388618469, 0.01689670979976654, 0.07435301691293716, -0.28570476174354553, 0.005397404544055462, -0.1422327160835266, 0.03248310089111328, -0.023427315056324005, 0.15041396021842957, -0.23082882165908813, -0.32375669479370117, -0.33927252888679504, -0.20386244356632233, -0.15043561160564423, 0.052160535007715225, 0.33356934785842896, -0.23872403800487518, -0.008876502513885498, -0.2857567071914673, -0.4090467095375061, -0.009664677083492279, 0.305509477853775, -0.1481083631515503, -0.04720468446612358, 0.43272820115089417, 0.30000436305999756, -0.21020929515361786, -0.17791685461997986, -0.01901717111468315, -0.17999766767024994, -0.6621261835098267, 0.08230822533369064, 0.03604079782962799, -0.04271087795495987, -0.24160687625408173, -0.2668292820453644, 0.20536048710346222, 0.1265299916267395, 0.1113986223936081, -0.4697996973991394, -0.4082913398742676, -0.2329970747232437, -0.2976682782173157, 0.20161530375480652, -0.05662406235933304, -0.3551490306854248, -0.2588423192501068, 0.03277399018406868, -0.2122098207473755, 0.05999375879764557, -0.1423744112253189, -0.061836861073970795, 0.4633506238460541, -0.14184939861297607, 0.2244606763124466, -0.13970398902893066, 0.04635511338710785, 0.40120911598205566, 0.06941290199756622, -0.18165159225463867, -0.3011120557785034, 0.1451774388551712, 0.04116128385066986, 0.05858436971902847, -0.0672905370593071, -0.37864959239959717, -0.0527515672147274, -0.27983227372169495, 0.1326037496328354, 0.3364621698856354, 0.24244576692581177, 0.07561813294887543, 0.09432999789714813, 0.09865288436412811, -0.03252965211868286, 0.33068498969078064, -0.1649506688117981, -0.13839919865131378, 0.009523492306470871, 0.2725926637649536, -0.21072565019130707, 0.11752605438232422, -0.3212473392486572, 0.15365958213806152, -0.009538769721984863, -0.036182187497615814, 0.07528094947338104, -0.026536859571933746, -0.10968165099620819, 0.556442141532898, 0.23271775245666504, 0.2920385003089905, -0.2722921073436737, -0.23025205731391907, 0.27563202381134033, 0.13391298055648804, 0.016582787036895752, -0.2051161825656891, 0.10736621916294098, -0.12861280143260956, -0.0995858684182167, 0.37343546748161316, -0.0706329271197319, -0.13558737933635712, -0.18993808329105377, -0.12482254952192307, 0.5824732780456543, 0.09355614334344864, -0.0696675181388855, 0.24554680287837982, -0.013625647872686386, 0.07767554372549057, 0.46137043833732605, 0.25026869773864746, 0.016934238374233246, 0.5474840402603149, -0.3130880296230316, 0.029888730496168137, -0.1627940833568573, -0.006218317896127701, -0.2004128396511078, -0.4473770260810852, 0.13166163861751556, 0.31078028678894043, -0.07245743274688721, 0.18736635148525238, -0.14681971073150635, 0.30457574129104614, -0.25019729137420654, 0.18190141022205353, 0.0543661043047905, 0.04922143369913101, -0.10957314819097519, -0.014270344749093056, 0.3495121896266937, -0.025009408593177795, -0.2757624387741089, -0.004661649465560913, -0.1150464117527008, 0.14665570855140686, 0.37960121035575867, 0.2733507752418518, 0.13359257578849792, -0.17536142468452454, 0.004142811521887779, 0.21335840225219727, 0.16631391644477844, -0.4822302758693695, 0.14352306723594666, 0.39096003770828247, -0.08867873251438141, 0.2622946500778198, -0.0017306860536336899, 0.5537611246109009, 0.13979554176330566, 0.09830762445926666, -0.000722651369869709, -0.10646189749240875, -0.011388351209461689, -0.1354411542415619, 0.44462278485298157, -0.03087921440601349, -0.10251381993293762, 0.33876684308052063, 0.028034767135977745, -0.15769360959529877, 0.11466266214847565, 0.19288364052772522, 0.12371625006198883, -0.17515218257904053, 0.2012576162815094, 0.015889428555965424, -0.20776596665382385, -0.17863188683986664, 0.1449805498123169, -0.37866222858428955, -0.16338291764259338, 0.2516911029815674, 0.04038424417376518, 0.2624589502811432, -0.13559414446353912, 0.048980213701725006, -0.11941121518611908, 0.14834462106227875, 0.38399216532707214, 0.24334955215454102, -0.2853374183177948, -0.04056261479854584, -0.602446436882019, 0.22462862730026245, -0.04877280071377754, -0.17107351124286652, 0.045160405337810516, -0.11297567933797836, -0.047112517058849335, -0.1518053412437439, 0.38789820671081543, -0.01592743769288063, 0.11153451353311539, 0.267011821269989, -0.4752599000930786, -0.2240057736635208, 0.17030179500579834, -0.066301628947258, 0.22723457217216492, -0.39887675642967224, 0.1303199976682663, -0.26674434542655945, -0.01373506709933281, -0.1426674872636795, -0.19620108604431152, 0.12866798043251038, 0.3134676218032837, 0.3546338975429535, 0.11241355538368225, 0.2980174422264099, 0.06089770793914795, -0.24986258149147034, -0.3230263292789459, 0.1182485967874527, -0.13211649656295776, 0.015650730580091476, 0.2199660688638687, 0.2973290681838989, -0.40388303995132446, -0.43292027711868286, -0.37707412242889404, 0.5200785398483276, -0.13458755612373352, 0.07144635915756226, -0.12440495193004608, -0.04934093356132507, -0.03062569350004196, 0.27398911118507385, 0.2633129954338074, 0.23375573754310608, 0.07063711434602737, 0.4157316982746124, -0.19068926572799683, -0.29983028769493103, 0.6595057249069214, -0.10658835619688034, -0.4276304244995117, 0.0981968343257904, 0.40865209698677063, 0.07209658622741699, -0.16144773364067078, -0.4712711572647095, 0.15473952889442444, 0.3244367241859436, 0.0784328430891037, -0.2918297350406647, 0.23153716325759888, -0.2830389440059662, 0.12893372774124146, -0.10400557518005371, 0.25166189670562744, 0.26928257942199707, -0.20871414244174957, -0.05915987491607666, -0.19673295319080353 ]
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.049338411539793015, 0.09200134873390198, -0.07149402797222137, 0.40184879302978516, 0.41516703367233276, 0.23589500784873962, 0.6366614699363708, 0.2435026913881302, 0.23645862936973572, 0.23132994771003723, 0.01856815256178379, 0.007743119262158871, -0.14426825940608978, -0.31003570556640625, -0.2015363574028015, -0.2443147599697113, -0.15810900926589966, -0.04162128269672394, -0.17707857489585876, 0.21771924197673798, -0.1549791693687439, 0.378737211227417, 0.02463851124048233, 0.15708374977111816, -0.5360066890716553, 0.09007896482944489, -0.12959641218185425, 0.38867464661598206, -0.021506553515791893, -0.37299108505249023, 0.05111868679523468, -0.0467166043817997, 0.06881541758775711, 0.8113576769828796, -0.00012206858809804544, -0.3334410786628723, 0.35423392057418823, -0.056299224495887756, -0.32718950510025024, -0.224309042096138, -0.1685815155506134, -0.5117114186286926, -0.03458501398563385, -0.49880266189575195, 0.18721291422843933, -0.09511928260326385, -0.033190421760082245, -0.8021568059921265, 0.04105229675769806, 0.37330567836761475, 0.1268748641014099, -0.07834679633378983, 0.09102542698383331, -0.2579197287559509, 0.3323118984699249, -0.27798908948898315, 0.004084503278136253, 0.3564028739929199, 0.3556968569755554, -0.09886642545461655, -0.15465021133422852, 0.20321817696094513, -0.03689756989479065, 0.027325022965669632, 0.24715816974639893, 0.07953789830207825, -0.0874827429652214, -0.32616522908210754, 0.29580608010292053, 0.42739394307136536, 0.47143763303756714, -0.09306176751852036, -0.27931225299835205, -0.46769586205482483, 0.1424984186887741, -0.12510593235492706, 0.4885309040546417, -0.0762387216091156, -0.22207437455654144, 0.1514883041381836, -0.17041975259780884, -0.019621310755610466, -0.12359742820262909, -0.11023847758769989, -0.10197481513023376, 0.06506247073411942, 0.04050857573747635, 0.03627917915582657, 0.31111395359039307, -0.34831422567367554, 0.23959575593471527, 0.004836579784750938, 0.07427329570055008, 0.2694607675075531, -0.6542139053344727, 0.14691206812858582, 0.08426731824874878, 0.38549283146858215, 0.25348928570747375, 0.057643823325634, -0.2659733295440674, -0.1483081579208374, 0.19474831223487854, -0.010465599596500397, -0.06495590507984161, 0.37420716881752014, 0.1944449245929718, 0.1612812876701355, 0.301242858171463, 0.07794744521379471, -0.33674678206443787, -0.10693476349115372, -0.076487697660923, -0.5534631013870239, 0.44513842463493347, 0.13359034061431885, 0.07416309416294098, -0.34371116757392883, 0.15045858919620514, 0.5705775022506714, 0.1057044044137001, -0.010489962063729763, 0.22870256006717682, 0.2733798921108246, 0.005434134043753147, 0.11076538264751434, 0.08307428658008575, -0.0899365171790123, -0.08896112442016602, 0.10083572566509247, -0.14731301367282867, -0.11073002219200134, -0.22701914608478546, 0.11241000890731812, 0.0892055332660675, -0.3083968162536621, 0.27928006649017334, -0.22746558487415314, 0.31523990631103516, -0.12495826184749603, -0.08296846598386765, -0.2377428114414215, -0.06673305481672287, 0.15596769750118256, -0.059105802327394485, 0.07391411066055298, 0.2452138364315033, -0.26073384284973145, -0.19206151366233826, -0.07711134105920792, -0.33974918723106384, -0.2851884067058563, -0.06172212213277817, 0.09470310062170029, -0.1654943972826004, 0.2159021645784378, 0.24155426025390625, -0.2671959102153778, 0.6555521488189697, -0.07981885969638824, 0.012796826660633087, -0.2747650742530823, -0.1418105959892273, 0.007191919721662998, 0.04082578420639038, 0.553465723991394, 0.13252395391464233, -0.017562665045261383, -0.06878861784934998, 0.12828129529953003, 0.008666671812534332, 0.37225988507270813, 0.18064577877521515, -0.053596131503582, -0.42195239663124084, 0.3124936819076538, 0.2268710434436798, -0.2402808964252472, -0.4869852364063263, 0.32153841853141785, -0.39430683851242065, 0.0994926318526268, 0.32291194796562195, 0.022883234545588493, 0.051709964871406555, -0.024582387879490852, 0.28533732891082764, 0.18221351504325867, -0.026095619425177574, 0.02349572815001011, -0.20252390205860138, -0.10733113437891006, -0.040630415081977844, 0.1691952496767044, 0.010954219847917557, 0.06700097769498825, 0.07961978018283844, -0.175192192196846, 0.27156862616539, 0.03146364539861679, -0.20404410362243652, 0.373680055141449, 0.13824285566806793, 0.32671868801116943, 0.1860826164484024, -0.10632781684398651, -0.5937498807907104, 0.2637210488319397, -0.12184827029705048, -0.17873188853263855, -0.2175937443971634, -0.18680478632450104, -0.17498928308486938, -0.007289590314030647, 0.0034594647586345673, 0.13513661921024323, -0.02040853537619114, 0.28324878215789795, 0.14178010821342468, -0.13176319003105164, 0.09344077110290527, 0.5883795022964478, -0.17024418711662292, 0.017597468569874763, -0.47811824083328247, -0.1711251586675644, -0.11785472184419632, -0.11254032701253891, 0.031506575644016266, 0.0016393885016441345, 0.3693964183330536, -0.10896877199411392, -0.3443516194820404, 0.44807568192481995, 0.3332767188549042, 0.09753275662660599, -0.1789250671863556, -0.004430979490280151, -0.05686408281326294, 0.2207750678062439, 0.07266977429389954, 0.03981154412031174, 0.007785440422594547, 0.014292150735855103, -0.21357589960098267, 0.3000156879425049, -0.14081653952598572, 0.2712768316268921, 0.028613612055778503, 0.16824084520339966, 0.24617937207221985, -0.1318134069442749, 0.06434572488069534, -0.176122784614563, 0.6458838582038879, -0.21635237336158752, 0.30483996868133545, 0.05478006601333618, 0.04523121565580368, -0.14486438035964966, 0.6458194851875305, 0.04539325460791588, -0.00017743557691574097, 0.19774264097213745, 0.15620112419128418, -0.04081571474671364, -0.01937304623425007, 0.3064885437488556, 0.5111443996429443, 0.1920575648546219, -0.030123021453619003, -0.20650534331798553, 0.39415791630744934, -0.22383424639701843, 0.2563192546367645, 0.015907861292362213, -0.0027925779577344656, 0.3657032549381256, 0.04961807653307915, -0.12908706068992615, 0.05148372799158096, -0.8095083236694336, -0.050441935658454895, 0.22369764745235443, -0.3198081851005554, 0.14808255434036255, -0.13932590186595917, -0.04320499300956726, -0.023800060153007507, 0.0004900768399238586, -0.08039776980876923, -0.4162812829017639, -0.18889367580413818, 0.2785065174102783, -0.14183583855628967, 0.21453402936458588, -0.11883413791656494, -0.0032419413328170776, 0.27128300070762634, -0.014538956806063652, -0.29502761363983154, -0.0016123508103191853, 0.08034427464008331, -0.08376038074493408, 0.2720727324485779, -0.537502646446228, 0.08380384743213654, -0.1256636083126068, -0.06310753524303436, -0.5083535313606262, -0.24988093972206116, 0.11166781187057495, -0.16848011314868927, 0.29356497526168823, 0.3413665294647217, 0.20785747468471527, 0.1666615903377533, 0.05889623612165451, 0.004962285980582237, -0.26227912306785583, 0.02366955392062664, 0.23266398906707764, 0.17789937555789948, -0.022819053381681442, -0.19179973006248474, -0.023455344140529633, -0.3463740944862366, -0.41603314876556396, 0.3207845091819763, 0.030303534120321274, 0.22792896628379822, 0.34118977189064026, -0.07087269425392151, 0.2978118360042572, -0.017973121255636215, 0.24729226529598236, -0.08790640532970428, -0.4463707208633423, 0.41706109046936035, -0.15252242982387543, -0.29905930161476135, -0.4318079948425293, 0.29801326990127563, -0.03550926223397255, 0.1055184006690979, -0.4223639965057373, -0.179072305560112, -0.4012606143951416, 0.338985413312912, -0.335720032453537, 0.005409928038716316, 0.19701996445655823, -0.0852012112736702, -0.05634814873337746, -0.1069377213716507, 0.08490297198295593, 0.23251241445541382, 0.011036276817321777, -0.009520724415779114, 0.0929812490940094, 0.2951667308807373, -0.11607851088047028, 0.453213095664978, 0.36166611313819885, 0.07534864544868469, 0.19538070261478424, -0.13766975700855255, 0.18435727059841156, -0.25903233885765076, -0.1269460767507553, 0.02393760159611702, 0.17447157204151154, -0.22158385813236237, 0.13420608639717102, -0.08539136499166489, 0.014082697220146656, -0.13332000374794006, -0.05779343843460083, 0.10780762881040573, -0.2960291802883148, 0.007316289469599724, 0.04858735576272011, 0.052490077912807465, 0.031080108135938644, 0.14569389820098877, -0.19488678872585297, -0.13091060519218445, -0.02408905327320099, 0.3084796369075775, 0.05407733842730522, -0.023354846984148026, -0.24687330424785614, 0.09150967001914978, -0.337141752243042, 0.44400912523269653, 0.18309183418750763, 0.21379800140857697, -0.06935897469520569, -0.16017349064350128, -0.08004845678806305, 0.046007174998521805, 0.6831175088882446, 0.09912959486246109, 0.3160930275917053, 0.15549565851688385, 0.25470399856567383, -0.1230868473649025, 0.0391717366874218, 0.07955361902713776, 0.370187371969223, 0.13904181122779846, 0.4079340100288391, -0.2308095395565033, 0.03760851174592972, -0.18331637978553772, 0.18554216623306274, -0.11663331091403961, -0.4492170810699463, -0.02628673054277897, 0.008795861154794693, -0.2636868953704834, 0.1616200953722, 0.03360506892204285, 0.2442300170660019, 0.06167266517877579, 0.004912871867418289, -0.060176998376846313, -0.07477866113185883, 0.16015410423278809, 0.17483533918857574, 0.2812635898590088, -0.4468778073787689, 0.26436513662338257, -0.027559436857700348, -0.15952949225902557, 0.23041225969791412, 0.5639729499816895, -0.4439821243286133, -0.24784299731254578, 0.41447290778160095, -0.35655903816223145, 0.0764390379190445, 0.42870816588401794, -0.3107668459415436, -0.15842393040657043, 0.35820597410202026, 0.6321602463722229, 0.12365598231554031, 0.02578270249068737, 0.03256860002875328, 0.1308743953704834, -0.15302151441574097, -0.33461081981658936, 0.21633097529411316, 0.24309499561786652, -0.017834849655628204, 0.5360277891159058, 0.02425140142440796, -0.3025459051132202, 0.2613932490348816, -0.20595425367355347, 1.0209474563598633, -0.18544836342334747, 0.187150239944458, -0.019080180674791336, 0.1287672072649002, 0.49929943680763245, 0.0092904232442379, -0.08422501385211945, -0.4268141984939575, -0.4827863574028015, 0.14020313322544098, -0.14980430901050568, 0.2397724986076355, -0.036678969860076904, -0.13019977509975433, 0.31392866373062134, -0.2595100998878479, 0.017761893570423126, -0.17453187704086304, 0.45279353857040405, -0.6466595530509949, -0.2542141079902649, -0.25032249093055725, 0.047983624041080475, -0.0439816415309906, 0.11015117168426514, 0.061711765825748444, 0.16868647933006287, -0.32926085591316223, -0.2781674861907959, -0.22720620036125183, 0.03703145682811737, -0.4157640039920807, 0.08353055268526077, -0.24390175938606262, -0.2822073698043823, -0.09024199843406677, 0.28521299362182617, -0.032049693167209625, 0.4013371765613556, -0.20359505712985992, 0.09235057979822159, 0.0828218162059784, 0.0968710407614708, 0.07299897819757462, -0.06324413418769836, 0.3176954388618469, 0.01689670979976654, 0.07435301691293716, -0.28570476174354553, 0.005397404544055462, -0.1422327160835266, 0.03248310089111328, -0.023427315056324005, 0.15041396021842957, -0.23082882165908813, -0.32375669479370117, -0.33927252888679504, -0.20386244356632233, -0.15043561160564423, 0.052160535007715225, 0.33356934785842896, -0.23872403800487518, -0.008876502513885498, -0.2857567071914673, -0.4090467095375061, -0.009664677083492279, 0.305509477853775, -0.1481083631515503, -0.04720468446612358, 0.43272820115089417, 0.30000436305999756, -0.21020929515361786, -0.17791685461997986, -0.01901717111468315, -0.17999766767024994, -0.6621261835098267, 0.08230822533369064, 0.03604079782962799, -0.04271087795495987, -0.24160687625408173, -0.2668292820453644, 0.20536048710346222, 0.1265299916267395, 0.1113986223936081, -0.4697996973991394, -0.4082913398742676, -0.2329970747232437, -0.2976682782173157, 0.20161530375480652, -0.05662406235933304, -0.3551490306854248, -0.2588423192501068, 0.03277399018406868, -0.2122098207473755, 0.05999375879764557, -0.1423744112253189, -0.061836861073970795, 0.4633506238460541, -0.14184939861297607, 0.2244606763124466, -0.13970398902893066, 0.04635511338710785, 0.40120911598205566, 0.06941290199756622, -0.18165159225463867, -0.3011120557785034, 0.1451774388551712, 0.04116128385066986, 0.05858436971902847, -0.0672905370593071, -0.37864959239959717, -0.0527515672147274, -0.27983227372169495, 0.1326037496328354, 0.3364621698856354, 0.24244576692581177, 0.07561813294887543, 0.09432999789714813, 0.09865288436412811, -0.03252965211868286, 0.33068498969078064, -0.1649506688117981, -0.13839919865131378, 0.009523492306470871, 0.2725926637649536, -0.21072565019130707, 0.11752605438232422, -0.3212473392486572, 0.15365958213806152, -0.009538769721984863, -0.036182187497615814, 0.07528094947338104, -0.026536859571933746, -0.10968165099620819, 0.556442141532898, 0.23271775245666504, 0.2920385003089905, -0.2722921073436737, -0.23025205731391907, 0.27563202381134033, 0.13391298055648804, 0.016582787036895752, -0.2051161825656891, 0.10736621916294098, -0.12861280143260956, -0.0995858684182167, 0.37343546748161316, -0.0706329271197319, -0.13558737933635712, -0.18993808329105377, -0.12482254952192307, 0.5824732780456543, 0.09355614334344864, -0.0696675181388855, 0.24554680287837982, -0.013625647872686386, 0.07767554372549057, 0.46137043833732605, 0.25026869773864746, 0.016934238374233246, 0.5474840402603149, -0.3130880296230316, 0.029888730496168137, -0.1627940833568573, -0.006218317896127701, -0.2004128396511078, -0.4473770260810852, 0.13166163861751556, 0.31078028678894043, -0.07245743274688721, 0.18736635148525238, -0.14681971073150635, 0.30457574129104614, -0.25019729137420654, 0.18190141022205353, 0.0543661043047905, 0.04922143369913101, -0.10957314819097519, -0.014270344749093056, 0.3495121896266937, -0.025009408593177795, -0.2757624387741089, -0.004661649465560913, -0.1150464117527008, 0.14665570855140686, 0.37960121035575867, 0.2733507752418518, 0.13359257578849792, -0.17536142468452454, 0.004142811521887779, 0.21335840225219727, 0.16631391644477844, -0.4822302758693695, 0.14352306723594666, 0.39096003770828247, -0.08867873251438141, 0.2622946500778198, -0.0017306860536336899, 0.5537611246109009, 0.13979554176330566, 0.09830762445926666, -0.000722651369869709, -0.10646189749240875, -0.011388351209461689, -0.1354411542415619, 0.44462278485298157, -0.03087921440601349, -0.10251381993293762, 0.33876684308052063, 0.028034767135977745, -0.15769360959529877, 0.11466266214847565, 0.19288364052772522, 0.12371625006198883, -0.17515218257904053, 0.2012576162815094, 0.015889428555965424, -0.20776596665382385, -0.17863188683986664, 0.1449805498123169, -0.37866222858428955, -0.16338291764259338, 0.2516911029815674, 0.04038424417376518, 0.2624589502811432, -0.13559414446353912, 0.048980213701725006, -0.11941121518611908, 0.14834462106227875, 0.38399216532707214, 0.24334955215454102, -0.2853374183177948, -0.04056261479854584, -0.602446436882019, 0.22462862730026245, -0.04877280071377754, -0.17107351124286652, 0.045160405337810516, -0.11297567933797836, -0.047112517058849335, -0.1518053412437439, 0.38789820671081543, -0.01592743769288063, 0.11153451353311539, 0.267011821269989, -0.4752599000930786, -0.2240057736635208, 0.17030179500579834, -0.066301628947258, 0.22723457217216492, -0.39887675642967224, 0.1303199976682663, -0.26674434542655945, -0.01373506709933281, -0.1426674872636795, -0.19620108604431152, 0.12866798043251038, 0.3134676218032837, 0.3546338975429535, 0.11241355538368225, 0.2980174422264099, 0.06089770793914795, -0.24986258149147034, -0.3230263292789459, 0.1182485967874527, -0.13211649656295776, 0.015650730580091476, 0.2199660688638687, 0.2973290681838989, -0.40388303995132446, -0.43292027711868286, -0.37707412242889404, 0.5200785398483276, -0.13458755612373352, 0.07144635915756226, -0.12440495193004608, -0.04934093356132507, -0.03062569350004196, 0.27398911118507385, 0.2633129954338074, 0.23375573754310608, 0.07063711434602737, 0.4157316982746124, -0.19068926572799683, -0.29983028769493103, 0.6595057249069214, -0.10658835619688034, -0.4276304244995117, 0.0981968343257904, 0.40865209698677063, 0.07209658622741699, -0.16144773364067078, -0.4712711572647095, 0.15473952889442444, 0.3244367241859436, 0.0784328430891037, -0.2918297350406647, 0.23153716325759888, -0.2830389440059662, 0.12893372774124146, -0.10400557518005371, 0.25166189670562744, 0.26928257942199707, -0.20871414244174957, -0.05915987491607666, -0.19673295319080353 ]
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.38646548986434937, -0.2204951047897339, 0.08948132395744324, 0.4387415647506714, 0.21570813655853271, 0.12292324751615524, -0.03690968081355095, 0.30938833951950073, 0.24227789044380188, 0.09550275653600693, -0.22643156349658966, 0.426153302192688, -0.06417576223611832, 0.30353352427482605, -0.009466155432164669, -0.258478581905365, -0.00450567901134491, 0.23376582562923431, -0.10492624342441559, 0.12687642872333527, -0.0005550757050514221, 0.1941266804933548, -0.2469933182001114, -0.030422762036323547, 0.05222810432314873, -0.10810365527868271, 0.012406652793288231, 0.28052523732185364, -0.05958238244056702, -0.4462363123893738, 0.12590602040290833, -0.06154806539416313, 0.4121147394180298, 0.3375737965106964, -0.00011450322926975787, 0.27344852685928345, 0.4721425175666809, -0.12278444319963455, -0.48534414172172546, -0.21211494505405426, -0.218665212392807, 0.09612725675106049, 0.04283462464809418, -0.1566350758075714, -0.009134175255894661, 0.07111306488513947, -0.04000506550073624, -0.7192986607551575, 0.31784963607788086, 0.3456362783908844, 0.1778498739004135, 0.04260067269206047, -0.04894839599728584, 0.026822073385119438, 0.06883865594863892, -0.2986646890640259, -0.09200669080018997, 0.12181766331195831, 0.23672667145729065, 0.22874107956886292, -0.3595723807811737, 0.3845904469490051, -0.0658881664276123, 0.06018393114209175, 0.09441426396369934, 0.09672418981790543, -0.1749497354030609, -0.4655051529407501, -0.007393691688776016, 0.18841427564620972, 0.677678644657135, -0.2555167078971863, -0.4161974787712097, -0.23198765516281128, -0.0021712705492973328, -0.6144570708274841, 0.14653167128562927, 0.14892740547657013, -0.4673643112182617, 0.12805984914302826, 0.24596329033374786, -0.00875320564955473, -0.3279944956302643, -0.04587305337190628, -0.24679817259311676, 0.38822296261787415, -0.07678593695163727, -0.023726530373096466, 0.027294401079416275, -0.08662894368171692, 0.46277400851249695, -0.21103458106517792, -0.2845942974090576, -0.06397896260023117, -0.4397556185722351, -0.04206616058945656, -0.07651305943727493, -0.09410988539457321, 0.16814684867858887, 0.21538960933685303, 0.2953195571899414, 0.0882529467344284, 0.15436498820781708, 0.09264445304870605, 0.3555261492729187, 0.360866516828537, 0.059831902384757996, 0.18537728488445282, 0.13118085265159607, 0.09943114966154099, 0.13662408292293549, -0.18189197778701782, -0.14648929238319397, -0.037280723452568054, 0.028163325041532516, -0.013114143162965775, 0.2628587484359741, -0.19123785197734833, -0.41384685039520264, 0.0297919362783432, -0.3057215213775635, -0.07946724444627762, 0.00559076014906168, 0.28171709179878235, 0.09583375602960587, 0.4187793433666229, 0.019458353519439697, 0.11786714941263199, -0.23968343436717987, -0.45739322900772095, -0.0878111720085144, -0.12471860647201538, -0.0010079555213451385, 0.12334693968296051, 0.015335340052843094, -0.188683420419693, 0.1515745371580124, -0.0465376116335392, 0.16210034489631653, -0.0012192204594612122, -0.020855486392974854, -0.11005984246730804, 0.02162923663854599, 0.2049841284751892, 0.2180561125278473, 0.16403548419475555, 0.17951565980911255, -0.19978487491607666, -0.1306825876235962, 0.08862233906984329, -0.14163339138031006, -0.1671275496482849, -0.1788381040096283, 0.21664687991142273, -0.00940218847244978, -0.35062626004219055, -0.09378957003355026, 0.28146857023239136, 0.14095954596996307, -0.20378980040550232, -0.1410706341266632, -0.03914640098810196, -0.12413287162780762, -0.08651600778102875, 0.17927885055541992, 0.5796176791191101, -0.18559104204177856, -0.13802093267440796, -0.15213751792907715, 0.0008930210024118423, 0.5833055377006531, 0.3344022035598755, -0.06079144775867462, 0.08979751914739609, -0.17072248458862305, 0.14765387773513794, 0.5017141699790955, -0.14365872740745544, -0.5796037316322327, 0.5436663627624512, -0.03960764408111572, 0.5637269616127014, 0.2707030773162842, 0.022536763921380043, 0.17423388361930847, 0.04311984032392502, 0.3135278820991516, 0.32990241050720215, -0.14845938980579376, 0.0074824560433626175, -0.33346667885780334, -0.03998405486345291, 0.4416944980621338, 0.1912292093038559, 0.06742905080318451, 0.2502863109111786, -0.028873898088932037, -0.06266774982213974, 0.3689781725406647, -0.07525704801082611, 0.07634565979242325, 0.04100833833217621, 0.14688821136951447, 0.012037578970193863, 0.1379389613866806, -0.2090768814086914, -0.31068265438079834, 0.29723167419433594, 0.07492987811565399, 0.012709487229585648, -0.3174346685409546, 0.2031732201576233, -0.19064581394195557, 0.0017470922321081161, -0.262893944978714, -0.25904032588005066, 0.12431703507900238, 0.3170803487300873, 0.0756213515996933, 0.0505901537835598, -0.3084757626056671, 0.7747208476066589, -0.07825535535812378, -0.013134769164025784, -0.4549148976802826, 0.2024933248758316, -0.0707772895693779, -0.20145733654499054, 0.016439288854599, -0.1265658736228943, 0.06725546717643738, -0.016192669048905373, -0.2579917907714844, 0.3313201367855072, -0.23661351203918457, 0.264070987701416, -0.19543802738189697, -0.1731978803873062, 0.28974446654319763, -0.36447882652282715, -0.08668429404497147, 0.2706029713153839, 0.10750364512205124, 0.12520980834960938, -0.01769860088825226, 0.14808396995067596, 0.20709067583084106, 0.23613396286964417, 0.04344828426837921, 0.11434855312108994, 0.19616849720478058, -0.08167470991611481, -0.0686836689710617, -0.08500942587852478, 0.32404831051826477, -0.3548785448074341, 0.04674943909049034, -0.19892387092113495, -0.27229881286621094, 0.08236131072044373, 0.35867923498153687, -0.14038224518299103, -0.049273788928985596, 0.3303239941596985, -0.2885322868824005, -0.16390764713287354, 0.31456005573272705, 0.194009467959404, 0.47233641147613525, 0.08152143657207489, 0.2573353946208954, -0.045588091015815735, -0.18864789605140686, -0.07350543141365051, 0.30517008900642395, 0.1374838650226593, 0.03146433085203171, 0.24641156196594238, 0.030006226152181625, 0.16357432305812836, -0.3229166865348816, -0.3497171103954315, -0.05663169175386429, 0.11234160512685776, -0.3201865553855896, 0.30630242824554443, -0.3882676362991333, -0.4651738405227661, 0.04635053128004074, 0.15600888431072235, 0.06890590488910675, -0.323558509349823, -0.1817554384469986, 0.2325059026479721, -0.003881828859448433, 0.16368478536605835, -0.2682056725025177, 0.08954691886901855, 0.26717743277549744, -0.013469221070408821, -0.3418695628643036, -0.18084807693958282, -0.27296313643455505, 0.05919772759079933, 0.17499524354934692, -0.4228035509586334, 0.1769195944070816, 0.007425736635923386, -0.116054005920887, -0.14017432928085327, -0.07642336189746857, 0.3197820782661438, -0.15549927949905396, 0.15689587593078613, -0.2774864435195923, 0.14939181506633759, 0.22136227786540985, -0.2503492832183838, 0.12194915860891342, 0.09083347767591476, -0.1187848225235939, 0.280124694108963, 0.09408922493457794, -0.024161163717508316, -0.03058335930109024, -0.30108073353767395, -0.3024667799472809, -0.6177487969398499, 0.05496850609779358, 0.045426491647958755, 0.213551864027977, 0.16430455446243286, 0.0170351080596447, 0.09682458639144897, 0.3292067348957062, 0.09916001558303833, -0.11421224474906921, -0.4199431538581848, 0.3747449219226837, -0.16701506078243256, -0.2868408262729645, -0.32483646273612976, -0.06815966963768005, 0.1972905397415161, 0.25892674922943115, -0.5295247435569763, 0.2950170636177063, -0.4081031382083893, 0.08489322662353516, -0.38345226645469666, -0.09745568037033081, -0.026151761412620544, 0.07628902047872543, -0.03498866409063339, -0.18785756826400757, 0.07074664533138275, -0.11695166677236557, 0.09900693595409393, 0.20661038160324097, 0.10863137990236282, 0.3698713481426239, 0.10084925591945648, 0.33275020122528076, 0.4812113642692566, -0.019549336284399033, 0.3407551050186157, 0.08289063721895218, 0.153799906373024, -0.10043340176343918, -0.06278883665800095, -0.0955619066953659, -0.228080153465271, -0.02611899934709072, 0.09819898754358292, -0.09621326625347137, -0.5762299299240112, -0.2840518653392792, 0.05491508170962334, -0.06923651695251465, -0.23831064999103546, 0.052882932126522064, -0.5117743611335754, 0.04204858839511871, -0.18725726008415222, 0.15833932161331177, 0.08079692721366882, 0.05200182646512985, 0.08604632318019867, 0.17725250124931335, 0.12616358697414398, 0.17212069034576416, -0.18502259254455566, -0.06390615552663803, -0.4881904721260071, 0.18258515000343323, 0.10512664914131165, 0.4215750992298126, -0.1678096503019333, -0.13271597027778625, 0.0791148841381073, -0.06520656496286392, 0.34870490431785583, -0.2754165828227997, 0.0035671330988407135, 0.2673940062522888, 0.14213639497756958, -0.14155235886573792, 0.09176650643348694, -0.3209455907344818, 0.13682924211025238, 0.23595529794692993, 0.0974205881357193, -0.1718236207962036, 0.03333985060453415, -0.08841895312070847, -0.07249544560909271, -0.12530294060707092, -0.016399137675762177, -0.17049695551395416, -0.24923822283744812, -0.1520104855298996, -0.13424274325370789, 0.20327186584472656, 0.12568411231040955, -0.012460417114198208, -0.05679301917552948, -0.046082109212875366, -0.03962470963597298, 0.24185848236083984, 0.22132526338100433, 0.13990983366966248, -0.07228008657693863, 0.2290113866329193, 0.06719908118247986, 0.2844449281692505, 0.2292167991399765, 0.8364323377609253, 0.11819498240947723, -0.5624254941940308, 0.23508259654045105, 0.23395629227161407, 0.16609886288642883, 0.13053925335407257, -0.14823274314403534, -0.008516229689121246, -0.040384989231824875, 0.2698214054107666, -0.30247288942337036, 0.2146555334329605, 0.2112334817647934, -0.050720635801553726, -0.514930248260498, -0.4357539117336273, 0.58833909034729, -0.03936825320124626, -0.07619054615497589, 0.7872920036315918, -0.16650550067424774, -0.3171566426753998, 0.4775419235229492, 0.023435033857822418, 0.758586585521698, 0.09439576417207718, 0.21686868369579315, 0.24074769020080566, -0.3207271099090576, 0.5003341436386108, -0.2320675253868103, 0.3346683979034424, -0.12061021476984024, -0.3350297510623932, -0.08310913294553757, -0.10410962998867035, 0.1709020733833313, -0.14760418236255646, -0.6302545070648193, 0.1709606796503067, -0.05964374169707298, -0.25280579924583435, 0.335351824760437, 0.2742266356945038, -0.6082695722579956, -0.30629298090934753, -0.06754924356937408, 0.1388825923204422, -0.22135920822620392, 0.32396167516708374, 0.13824450969696045, -0.22023306787014008, -0.05157272145152092, -0.08431026339530945, -0.47023558616638184, 0.4758627116680145, -0.2765568792819977, 0.16241486370563507, -0.23903053998947144, -0.4760977625846863, 0.15131275355815887, 0.26640310883522034, -0.14213168621063232, -0.22578535974025726, -0.15825104713439941, 0.2350439727306366, 0.1860542893409729, 0.12802298367023468, 0.0993063896894455, 0.15145882964134216, 0.38835853338241577, 0.05327717214822769, -0.016812920570373535, 0.18844199180603027, -0.008979786187410355, -0.16062834858894348, -0.06378129124641418, 0.05545712262392044, 0.3183140158653259, -0.2681804299354553, 0.23685695230960846, -0.10585147142410278, 0.04292510077357292, -0.18425336480140686, 0.08697214722633362, -0.01883155107498169, -0.17405501008033752, -0.07388748973608017, -0.08129747211933136, -0.2196764498949051, -0.08474414050579071, 0.3771206736564636, 0.14545853435993195, 0.3179708421230316, 0.4994199275970459, 0.028117377310991287, -0.1778796911239624, -0.10367147624492645, -0.05514981225132942, -0.29314011335372925, -0.25261250138282776, 0.06935939192771912, -0.24147574603557587, -0.1610276699066162, -0.2706688642501831, 0.003827117383480072, 0.04483812674880028, -0.10355386883020401, -0.11373834311962128, -0.2993661165237427, -0.1906375288963318, -0.026614919304847717, -0.12424397468566895, 0.2199307382106781, -0.17221972346305847, 0.022204231470823288, 0.003119157627224922, 0.12908616662025452, -0.2706836462020874, -0.12285955995321274, -0.07537071406841278, 0.023117680102586746, 0.26721054315567017, 0.0292680524289608, 0.25923362374305725, 0.10967004299163818, 0.1476224660873413, 0.3139045238494873, -0.027674619108438492, -0.16095393896102905, -0.17879518866539001, 0.13848936557769775, 0.016531338915228844, -0.34805187582969666, -0.15489451587200165, -0.05662072077393532, 0.012690707109868526, -0.12513583898544312, 0.3503149747848511, 0.1812303364276886, 0.03809674456715584, 0.2706013321876526, 0.1240134909749031, 0.05633580684661865, -0.23264837265014648, 0.1542363464832306, -0.264273464679718, 0.2401297390460968, 0.08111175894737244, 0.09284107387065887, -0.07554002851247787, -0.011869147419929504, -0.3646136224269867, 0.0622696578502655, 0.10179534554481506, -0.028018340468406677, 0.5909273624420166, -0.42418134212493896, 0.17204448580741882, -0.04977497085928917, 0.066029854118824, 0.40452250838279724, -0.22961920499801636, -0.20896217226982117, 0.08508564531803131, 0.2000514417886734, -0.04320310801267624, -0.21262109279632568, -0.40104836225509644, -0.10164134949445724, 0.011238500475883484, 0.14595955610275269, -0.10688957571983337, -0.27218353748321533, 0.09996344894170761, -0.2103085219860077, 0.4859830141067505, 0.33584338426589966, 0.267066091299057, 0.483638733625412, -0.1811281442642212, 0.02284729853272438, -0.22602438926696777, 0.020459316670894623, 0.19990649819374084, 0.29704365134239197, 0.0035519003868103027, -0.007869260385632515, -0.16136622428894043, 0.21781915426254272, -0.18597516417503357, -0.482195645570755, -0.07974778115749359, 0.10244757682085037, -0.1647556722164154, 0.390193372964859, 0.14890892803668976, 0.15216028690338135, -0.2779354155063629, -0.05192210525274277, -0.04584231972694397, -0.06612612307071686, -0.014279749244451523, -0.09608116745948792, 0.1068754494190216, -0.012856438755989075, -0.32792240381240845, 0.09760838747024536, 0.012399893254041672, 0.06336839497089386, -0.019864723086357117, 0.28080618381500244, -0.2884637117385864, -0.11850140988826752, -0.08222807198762894, 0.10431793332099915, 0.2999253571033478, -0.3544151782989502, 0.4440692663192749, 0.36619073152542114, -0.15686115622520447, 0.028250068426132202, 0.0700020045042038, 0.4816073775291443, 0.2853381633758545, -0.1766507774591446, 0.0946502760052681, 0.3374163806438446, -0.04363712668418884, -0.040220990777015686, 0.04425382614135742, 0.2830948829650879, 0.17931905388832092, 0.456689715385437, 0.08873913437128067, -0.14854194223880768, 0.10457181930541992, 0.08143529295921326, 0.253888875246048, -0.27993863821029663, 0.46231910586357117, -0.11950662732124329, 0.03669223189353943, 0.027242343872785568, -0.33657142519950867, -0.5624159574508667, -0.028204843401908875, 0.03489607200026512, -0.2285001277923584, 0.07452432811260223, -0.008112357929348946, 0.06287823617458344, 0.11395446956157684, 0.4926684498786926, 0.3248409628868103, -0.018845543265342712, -0.22450971603393555, -0.1508791595697403, -0.23558303713798523, 0.23320239782333374, -0.06747953593730927, -0.1231478825211525, 0.17528603971004486, 0.22192272543907166, -0.004842139780521393, 0.16804955899715424, -0.15844489634037018, 0.020454730838537216, -0.2672829329967499, 0.1405726969242096, -0.39957964420318604, -0.35156747698783875, 0.1919628083705902, 0.17357976734638214, -0.04831184446811676, -0.5764805674552917, 0.18813902139663696, -0.15023978054523468, 0.16081765294075012, 0.09261247515678406, -0.24184809625148773, 0.10114538669586182, -0.2756577730178833, 0.5297331809997559, 0.23311084508895874, 0.3792007565498352, -0.18429532647132874, -0.41195622086524963, -0.0992458164691925, -0.3762305974960327, -0.2749141752719879, -0.01558520644903183, 0.10833388566970825, 0.5696324110031128, -0.14933417737483978, -0.23738352954387665, -0.357470840215683, 0.32626262307167053, 0.060890160501003265, -0.2656734883785248, -0.2735380232334137, 0.1733701229095459, -0.11945965886116028, 0.21312570571899414, 0.3050515949726105, 0.3803454637527466, -0.028712958097457886, 0.16399529576301575, -0.22351540625095367, -0.43332093954086304, 0.5773106813430786, -0.3461062014102936, -0.26596707105636597, 0.24184012413024902, 0.06381396949291229, 0.32649677991867065, 0.24102000892162323, -0.45966625213623047, 0.0893658921122551, 0.35565486550331116, -0.2354128062725067, -0.15118595957756042, 0.14214646816253662, 0.22597083449363708, -0.060719773173332214, -0.08503946661949158, 0.4553113281726837, 0.24239668250083923, -0.24920445680618286, 0.1750812530517578, -0.17863884568214417 ]
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.38646548986434937, -0.2204951047897339, 0.08948132395744324, 0.4387415647506714, 0.21570813655853271, 0.12292324751615524, -0.03690968081355095, 0.30938833951950073, 0.24227789044380188, 0.09550275653600693, -0.22643156349658966, 0.426153302192688, -0.06417576223611832, 0.30353352427482605, -0.009466155432164669, -0.258478581905365, -0.00450567901134491, 0.23376582562923431, -0.10492624342441559, 0.12687642872333527, -0.0005550757050514221, 0.1941266804933548, -0.2469933182001114, -0.030422762036323547, 0.05222810432314873, -0.10810365527868271, 0.012406652793288231, 0.28052523732185364, -0.05958238244056702, -0.4462363123893738, 0.12590602040290833, -0.06154806539416313, 0.4121147394180298, 0.3375737965106964, -0.00011450322926975787, 0.27344852685928345, 0.4721425175666809, -0.12278444319963455, -0.48534414172172546, -0.21211494505405426, -0.218665212392807, 0.09612725675106049, 0.04283462464809418, -0.1566350758075714, -0.009134175255894661, 0.07111306488513947, -0.04000506550073624, -0.7192986607551575, 0.31784963607788086, 0.3456362783908844, 0.1778498739004135, 0.04260067269206047, -0.04894839599728584, 0.026822073385119438, 0.06883865594863892, -0.2986646890640259, -0.09200669080018997, 0.12181766331195831, 0.23672667145729065, 0.22874107956886292, -0.3595723807811737, 0.3845904469490051, -0.0658881664276123, 0.06018393114209175, 0.09441426396369934, 0.09672418981790543, -0.1749497354030609, -0.4655051529407501, -0.007393691688776016, 0.18841427564620972, 0.677678644657135, -0.2555167078971863, -0.4161974787712097, -0.23198765516281128, -0.0021712705492973328, -0.6144570708274841, 0.14653167128562927, 0.14892740547657013, -0.4673643112182617, 0.12805984914302826, 0.24596329033374786, -0.00875320564955473, -0.3279944956302643, -0.04587305337190628, -0.24679817259311676, 0.38822296261787415, -0.07678593695163727, -0.023726530373096466, 0.027294401079416275, -0.08662894368171692, 0.46277400851249695, -0.21103458106517792, -0.2845942974090576, -0.06397896260023117, -0.4397556185722351, -0.04206616058945656, -0.07651305943727493, -0.09410988539457321, 0.16814684867858887, 0.21538960933685303, 0.2953195571899414, 0.0882529467344284, 0.15436498820781708, 0.09264445304870605, 0.3555261492729187, 0.360866516828537, 0.059831902384757996, 0.18537728488445282, 0.13118085265159607, 0.09943114966154099, 0.13662408292293549, -0.18189197778701782, -0.14648929238319397, -0.037280723452568054, 0.028163325041532516, -0.013114143162965775, 0.2628587484359741, -0.19123785197734833, -0.41384685039520264, 0.0297919362783432, -0.3057215213775635, -0.07946724444627762, 0.00559076014906168, 0.28171709179878235, 0.09583375602960587, 0.4187793433666229, 0.019458353519439697, 0.11786714941263199, -0.23968343436717987, -0.45739322900772095, -0.0878111720085144, -0.12471860647201538, -0.0010079555213451385, 0.12334693968296051, 0.015335340052843094, -0.188683420419693, 0.1515745371580124, -0.0465376116335392, 0.16210034489631653, -0.0012192204594612122, -0.020855486392974854, -0.11005984246730804, 0.02162923663854599, 0.2049841284751892, 0.2180561125278473, 0.16403548419475555, 0.17951565980911255, -0.19978487491607666, -0.1306825876235962, 0.08862233906984329, -0.14163339138031006, -0.1671275496482849, -0.1788381040096283, 0.21664687991142273, -0.00940218847244978, -0.35062626004219055, -0.09378957003355026, 0.28146857023239136, 0.14095954596996307, -0.20378980040550232, -0.1410706341266632, -0.03914640098810196, -0.12413287162780762, -0.08651600778102875, 0.17927885055541992, 0.5796176791191101, -0.18559104204177856, -0.13802093267440796, -0.15213751792907715, 0.0008930210024118423, 0.5833055377006531, 0.3344022035598755, -0.06079144775867462, 0.08979751914739609, -0.17072248458862305, 0.14765387773513794, 0.5017141699790955, -0.14365872740745544, -0.5796037316322327, 0.5436663627624512, -0.03960764408111572, 0.5637269616127014, 0.2707030773162842, 0.022536763921380043, 0.17423388361930847, 0.04311984032392502, 0.3135278820991516, 0.32990241050720215, -0.14845938980579376, 0.0074824560433626175, -0.33346667885780334, -0.03998405486345291, 0.4416944980621338, 0.1912292093038559, 0.06742905080318451, 0.2502863109111786, -0.028873898088932037, -0.06266774982213974, 0.3689781725406647, -0.07525704801082611, 0.07634565979242325, 0.04100833833217621, 0.14688821136951447, 0.012037578970193863, 0.1379389613866806, -0.2090768814086914, -0.31068265438079834, 0.29723167419433594, 0.07492987811565399, 0.012709487229585648, -0.3174346685409546, 0.2031732201576233, -0.19064581394195557, 0.0017470922321081161, -0.262893944978714, -0.25904032588005066, 0.12431703507900238, 0.3170803487300873, 0.0756213515996933, 0.0505901537835598, -0.3084757626056671, 0.7747208476066589, -0.07825535535812378, -0.013134769164025784, -0.4549148976802826, 0.2024933248758316, -0.0707772895693779, -0.20145733654499054, 0.016439288854599, -0.1265658736228943, 0.06725546717643738, -0.016192669048905373, -0.2579917907714844, 0.3313201367855072, -0.23661351203918457, 0.264070987701416, -0.19543802738189697, -0.1731978803873062, 0.28974446654319763, -0.36447882652282715, -0.08668429404497147, 0.2706029713153839, 0.10750364512205124, 0.12520980834960938, -0.01769860088825226, 0.14808396995067596, 0.20709067583084106, 0.23613396286964417, 0.04344828426837921, 0.11434855312108994, 0.19616849720478058, -0.08167470991611481, -0.0686836689710617, -0.08500942587852478, 0.32404831051826477, -0.3548785448074341, 0.04674943909049034, -0.19892387092113495, -0.27229881286621094, 0.08236131072044373, 0.35867923498153687, -0.14038224518299103, -0.049273788928985596, 0.3303239941596985, -0.2885322868824005, -0.16390764713287354, 0.31456005573272705, 0.194009467959404, 0.47233641147613525, 0.08152143657207489, 0.2573353946208954, -0.045588091015815735, -0.18864789605140686, -0.07350543141365051, 0.30517008900642395, 0.1374838650226593, 0.03146433085203171, 0.24641156196594238, 0.030006226152181625, 0.16357432305812836, -0.3229166865348816, -0.3497171103954315, -0.05663169175386429, 0.11234160512685776, -0.3201865553855896, 0.30630242824554443, -0.3882676362991333, -0.4651738405227661, 0.04635053128004074, 0.15600888431072235, 0.06890590488910675, -0.323558509349823, -0.1817554384469986, 0.2325059026479721, -0.003881828859448433, 0.16368478536605835, -0.2682056725025177, 0.08954691886901855, 0.26717743277549744, -0.013469221070408821, -0.3418695628643036, -0.18084807693958282, -0.27296313643455505, 0.05919772759079933, 0.17499524354934692, -0.4228035509586334, 0.1769195944070816, 0.007425736635923386, -0.116054005920887, -0.14017432928085327, -0.07642336189746857, 0.3197820782661438, -0.15549927949905396, 0.15689587593078613, -0.2774864435195923, 0.14939181506633759, 0.22136227786540985, -0.2503492832183838, 0.12194915860891342, 0.09083347767591476, -0.1187848225235939, 0.280124694108963, 0.09408922493457794, -0.024161163717508316, -0.03058335930109024, -0.30108073353767395, -0.3024667799472809, -0.6177487969398499, 0.05496850609779358, 0.045426491647958755, 0.213551864027977, 0.16430455446243286, 0.0170351080596447, 0.09682458639144897, 0.3292067348957062, 0.09916001558303833, -0.11421224474906921, -0.4199431538581848, 0.3747449219226837, -0.16701506078243256, -0.2868408262729645, -0.32483646273612976, -0.06815966963768005, 0.1972905397415161, 0.25892674922943115, -0.5295247435569763, 0.2950170636177063, -0.4081031382083893, 0.08489322662353516, -0.38345226645469666, -0.09745568037033081, -0.026151761412620544, 0.07628902047872543, -0.03498866409063339, -0.18785756826400757, 0.07074664533138275, -0.11695166677236557, 0.09900693595409393, 0.20661038160324097, 0.10863137990236282, 0.3698713481426239, 0.10084925591945648, 0.33275020122528076, 0.4812113642692566, -0.019549336284399033, 0.3407551050186157, 0.08289063721895218, 0.153799906373024, -0.10043340176343918, -0.06278883665800095, -0.0955619066953659, -0.228080153465271, -0.02611899934709072, 0.09819898754358292, -0.09621326625347137, -0.5762299299240112, -0.2840518653392792, 0.05491508170962334, -0.06923651695251465, -0.23831064999103546, 0.052882932126522064, -0.5117743611335754, 0.04204858839511871, -0.18725726008415222, 0.15833932161331177, 0.08079692721366882, 0.05200182646512985, 0.08604632318019867, 0.17725250124931335, 0.12616358697414398, 0.17212069034576416, -0.18502259254455566, -0.06390615552663803, -0.4881904721260071, 0.18258515000343323, 0.10512664914131165, 0.4215750992298126, -0.1678096503019333, -0.13271597027778625, 0.0791148841381073, -0.06520656496286392, 0.34870490431785583, -0.2754165828227997, 0.0035671330988407135, 0.2673940062522888, 0.14213639497756958, -0.14155235886573792, 0.09176650643348694, -0.3209455907344818, 0.13682924211025238, 0.23595529794692993, 0.0974205881357193, -0.1718236207962036, 0.03333985060453415, -0.08841895312070847, -0.07249544560909271, -0.12530294060707092, -0.016399137675762177, -0.17049695551395416, -0.24923822283744812, -0.1520104855298996, -0.13424274325370789, 0.20327186584472656, 0.12568411231040955, -0.012460417114198208, -0.05679301917552948, -0.046082109212875366, -0.03962470963597298, 0.24185848236083984, 0.22132526338100433, 0.13990983366966248, -0.07228008657693863, 0.2290113866329193, 0.06719908118247986, 0.2844449281692505, 0.2292167991399765, 0.8364323377609253, 0.11819498240947723, -0.5624254941940308, 0.23508259654045105, 0.23395629227161407, 0.16609886288642883, 0.13053925335407257, -0.14823274314403534, -0.008516229689121246, -0.040384989231824875, 0.2698214054107666, -0.30247288942337036, 0.2146555334329605, 0.2112334817647934, -0.050720635801553726, -0.514930248260498, -0.4357539117336273, 0.58833909034729, -0.03936825320124626, -0.07619054615497589, 0.7872920036315918, -0.16650550067424774, -0.3171566426753998, 0.4775419235229492, 0.023435033857822418, 0.758586585521698, 0.09439576417207718, 0.21686868369579315, 0.24074769020080566, -0.3207271099090576, 0.5003341436386108, -0.2320675253868103, 0.3346683979034424, -0.12061021476984024, -0.3350297510623932, -0.08310913294553757, -0.10410962998867035, 0.1709020733833313, -0.14760418236255646, -0.6302545070648193, 0.1709606796503067, -0.05964374169707298, -0.25280579924583435, 0.335351824760437, 0.2742266356945038, -0.6082695722579956, -0.30629298090934753, -0.06754924356937408, 0.1388825923204422, -0.22135920822620392, 0.32396167516708374, 0.13824450969696045, -0.22023306787014008, -0.05157272145152092, -0.08431026339530945, -0.47023558616638184, 0.4758627116680145, -0.2765568792819977, 0.16241486370563507, -0.23903053998947144, -0.4760977625846863, 0.15131275355815887, 0.26640310883522034, -0.14213168621063232, -0.22578535974025726, -0.15825104713439941, 0.2350439727306366, 0.1860542893409729, 0.12802298367023468, 0.0993063896894455, 0.15145882964134216, 0.38835853338241577, 0.05327717214822769, -0.016812920570373535, 0.18844199180603027, -0.008979786187410355, -0.16062834858894348, -0.06378129124641418, 0.05545712262392044, 0.3183140158653259, -0.2681804299354553, 0.23685695230960846, -0.10585147142410278, 0.04292510077357292, -0.18425336480140686, 0.08697214722633362, -0.01883155107498169, -0.17405501008033752, -0.07388748973608017, -0.08129747211933136, -0.2196764498949051, -0.08474414050579071, 0.3771206736564636, 0.14545853435993195, 0.3179708421230316, 0.4994199275970459, 0.028117377310991287, -0.1778796911239624, -0.10367147624492645, -0.05514981225132942, -0.29314011335372925, -0.25261250138282776, 0.06935939192771912, -0.24147574603557587, -0.1610276699066162, -0.2706688642501831, 0.003827117383480072, 0.04483812674880028, -0.10355386883020401, -0.11373834311962128, -0.2993661165237427, -0.1906375288963318, -0.026614919304847717, -0.12424397468566895, 0.2199307382106781, -0.17221972346305847, 0.022204231470823288, 0.003119157627224922, 0.12908616662025452, -0.2706836462020874, -0.12285955995321274, -0.07537071406841278, 0.023117680102586746, 0.26721054315567017, 0.0292680524289608, 0.25923362374305725, 0.10967004299163818, 0.1476224660873413, 0.3139045238494873, -0.027674619108438492, -0.16095393896102905, -0.17879518866539001, 0.13848936557769775, 0.016531338915228844, -0.34805187582969666, -0.15489451587200165, -0.05662072077393532, 0.012690707109868526, -0.12513583898544312, 0.3503149747848511, 0.1812303364276886, 0.03809674456715584, 0.2706013321876526, 0.1240134909749031, 0.05633580684661865, -0.23264837265014648, 0.1542363464832306, -0.264273464679718, 0.2401297390460968, 0.08111175894737244, 0.09284107387065887, -0.07554002851247787, -0.011869147419929504, -0.3646136224269867, 0.0622696578502655, 0.10179534554481506, -0.028018340468406677, 0.5909273624420166, -0.42418134212493896, 0.17204448580741882, -0.04977497085928917, 0.066029854118824, 0.40452250838279724, -0.22961920499801636, -0.20896217226982117, 0.08508564531803131, 0.2000514417886734, -0.04320310801267624, -0.21262109279632568, -0.40104836225509644, -0.10164134949445724, 0.011238500475883484, 0.14595955610275269, -0.10688957571983337, -0.27218353748321533, 0.09996344894170761, -0.2103085219860077, 0.4859830141067505, 0.33584338426589966, 0.267066091299057, 0.483638733625412, -0.1811281442642212, 0.02284729853272438, -0.22602438926696777, 0.020459316670894623, 0.19990649819374084, 0.29704365134239197, 0.0035519003868103027, -0.007869260385632515, -0.16136622428894043, 0.21781915426254272, -0.18597516417503357, -0.482195645570755, -0.07974778115749359, 0.10244757682085037, -0.1647556722164154, 0.390193372964859, 0.14890892803668976, 0.15216028690338135, -0.2779354155063629, -0.05192210525274277, -0.04584231972694397, -0.06612612307071686, -0.014279749244451523, -0.09608116745948792, 0.1068754494190216, -0.012856438755989075, -0.32792240381240845, 0.09760838747024536, 0.012399893254041672, 0.06336839497089386, -0.019864723086357117, 0.28080618381500244, -0.2884637117385864, -0.11850140988826752, -0.08222807198762894, 0.10431793332099915, 0.2999253571033478, -0.3544151782989502, 0.4440692663192749, 0.36619073152542114, -0.15686115622520447, 0.028250068426132202, 0.0700020045042038, 0.4816073775291443, 0.2853381633758545, -0.1766507774591446, 0.0946502760052681, 0.3374163806438446, -0.04363712668418884, -0.040220990777015686, 0.04425382614135742, 0.2830948829650879, 0.17931905388832092, 0.456689715385437, 0.08873913437128067, -0.14854194223880768, 0.10457181930541992, 0.08143529295921326, 0.253888875246048, -0.27993863821029663, 0.46231910586357117, -0.11950662732124329, 0.03669223189353943, 0.027242343872785568, -0.33657142519950867, -0.5624159574508667, -0.028204843401908875, 0.03489607200026512, -0.2285001277923584, 0.07452432811260223, -0.008112357929348946, 0.06287823617458344, 0.11395446956157684, 0.4926684498786926, 0.3248409628868103, -0.018845543265342712, -0.22450971603393555, -0.1508791595697403, -0.23558303713798523, 0.23320239782333374, -0.06747953593730927, -0.1231478825211525, 0.17528603971004486, 0.22192272543907166, -0.004842139780521393, 0.16804955899715424, -0.15844489634037018, 0.020454730838537216, -0.2672829329967499, 0.1405726969242096, -0.39957964420318604, -0.35156747698783875, 0.1919628083705902, 0.17357976734638214, -0.04831184446811676, -0.5764805674552917, 0.18813902139663696, -0.15023978054523468, 0.16081765294075012, 0.09261247515678406, -0.24184809625148773, 0.10114538669586182, -0.2756577730178833, 0.5297331809997559, 0.23311084508895874, 0.3792007565498352, -0.18429532647132874, -0.41195622086524963, -0.0992458164691925, -0.3762305974960327, -0.2749141752719879, -0.01558520644903183, 0.10833388566970825, 0.5696324110031128, -0.14933417737483978, -0.23738352954387665, -0.357470840215683, 0.32626262307167053, 0.060890160501003265, -0.2656734883785248, -0.2735380232334137, 0.1733701229095459, -0.11945965886116028, 0.21312570571899414, 0.3050515949726105, 0.3803454637527466, -0.028712958097457886, 0.16399529576301575, -0.22351540625095367, -0.43332093954086304, 0.5773106813430786, -0.3461062014102936, -0.26596707105636597, 0.24184012413024902, 0.06381396949291229, 0.32649677991867065, 0.24102000892162323, -0.45966625213623047, 0.0893658921122551, 0.35565486550331116, -0.2354128062725067, -0.15118595957756042, 0.14214646816253662, 0.22597083449363708, -0.060719773173332214, -0.08503946661949158, 0.4553113281726837, 0.24239668250083923, -0.24920445680618286, 0.1750812530517578, -0.17863884568214417 ]
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.12404842674732208, -0.20182505249977112, -0.07033973932266235, 0.18945975601673126, 0.21477316319942474, -0.11205006390810013, 0.02766742929816246, 0.07187370955944061, 0.28058117628097534, 0.085055872797966, 0.16487310826778412, 0.1174071729183197, 0.15548177063465118, 0.1022036150097847, 0.158847376704216, -0.2615046799182892, 0.030185744166374207, 0.039310164749622345, -0.16915124654769897, 0.008864566683769226, -0.32153767347335815, 0.08592844754457474, -0.3066693842411041, -0.11271390318870544, 0.1635582000017166, 0.03244052827358246, -0.2886961102485657, 0.30047082901000977, -0.25459983944892883, -0.16940443217754364, 0.09937030076980591, -0.07090865075588226, 0.18506643176078796, 0.35194918513298035, -0.00010874315194087103, 0.08132579922676086, 0.3922841548919678, 0.023530980572104454, 0.01742926426231861, -0.058175742626190186, -0.2938911020755768, -0.14136870205402374, -0.1911943107843399, -0.3151721954345703, 0.09970591217279434, 0.2347300797700882, 0.045437540858983994, -0.11122839897871017, 0.24436214566230774, 0.44914525747299194, 0.3060821294784546, 0.4809368848800659, -0.11500197649002075, 0.051727183163166046, 0.45546311140060425, 0.05056488886475563, -0.18167616426944733, 0.24919962882995605, 0.3063488006591797, -0.14193715155124664, 0.25700223445892334, -0.059411682188510895, -0.12101113796234131, 0.011558810248970985, 0.0310034342110157, 0.12063578516244888, -0.049464210867881775, -0.5093157291412354, 0.12343191355466843, 0.17437487840652466, 0.31266137957572937, -0.15310877561569214, -0.15854011476039886, 0.11584848910570145, -0.14940020442008972, -0.18569684028625488, 0.27338773012161255, 0.2762607932090759, -0.13931703567504883, 0.18718239665031433, -0.2805481255054474, 0.17438746988773346, -0.2056804746389389, 0.2596927881240845, -0.1191069558262825, 0.32990798354148865, -0.07594972103834152, 0.18944674730300903, -0.1710146814584732, 0.31671810150146484, 0.03771068528294563, -0.32725557684898376, -0.01567722111940384, -0.003989478573203087, 0.0856894925236702, 0.10570800304412842, 0.049354903399944305, 0.5118293166160583, 0.057304173707962036, 0.26434558629989624, 0.03348736837506294, -0.05601862072944641, 0.24109020829200745, 0.07001956552267075, 0.09027203917503357, 0.09497971832752228, -0.29586684703826904, 0.06604406982660294, 0.38178205490112305, 0.3139163553714752, -0.006580285727977753, -0.026201091706752777, -0.03304915502667427, -0.31550684571266174, 0.2965128719806671, -0.0053923893719911575, 0.48603516817092896, -0.047427207231521606, -0.5569099187850952, 0.0026349397376179695, 0.014627918601036072, 0.09089183807373047, -0.002353011630475521, 0.25268620252609253, -0.3218327462673187, -0.022581692785024643, 0.12337028980255127, 0.3000146150588989, -0.12404505163431168, 0.19435729086399078, 0.00406313082203269, 0.1806820034980774, -0.25206878781318665, -0.22607263922691345, 0.3475828766822815, -0.06712980568408966, 0.12012463063001633, 0.19356133043766022, -0.0914592295885086, -0.04287442937493324, 0.0132011529058218, -0.08051620423793793, 0.027182139456272125, 0.4316021502017975, 0.19525642693042755, 0.37025347352027893, -0.009459037333726883, 0.0780787467956543, -0.07072672992944717, 0.20629405975341797, -0.14631623029708862, -0.024970505386590958, 0.021134208887815475, 0.2608018219470978, -0.32658928632736206, -0.18855953216552734, 0.03979369252920151, -0.2664664089679718, -0.04091093689203262, -0.02938896417617798, 0.24959790706634521, -0.19647951424121857, -0.28914812207221985, -0.384131520986557, 0.09299255907535553, 0.52479088306427, -0.3482256531715393, 0.20685118436813354, 0.06146479770541191, -0.2714434862136841, 0.4014228880405426, 0.05860980600118637, 0.13095657527446747, 0.16050979495048523, -0.4302999973297119, 0.04150564968585968, 0.1171322837471962, -0.3501315414905548, -0.4970431625843048, 0.3584975302219391, -0.18995264172554016, 0.32069075107574463, 0.17838126420974731, 0.09198445081710815, 0.29390984773635864, -0.08338102698326111, -0.01203848421573639, 0.3098944425582886, -0.022482549771666527, 0.05824398994445801, -0.12457814812660217, -0.1297621726989746, 0.13000012934207916, 0.10852126777172089, 0.12085965275764465, 0.14329613745212555, 0.2932315468788147, -0.13603970408439636, 0.3164028227329254, 0.1788199543952942, 0.09648939222097397, 0.23754583299160004, 0.2550183832645416, 0.26808932423591614, 0.12365484237670898, -0.22698596119880676, 0.0015708282589912415, 0.28610706329345703, -0.0804188996553421, -0.1590328961610794, -0.24103333055973053, -0.2218061089515686, -0.5582584738731384, 0.022449420765042305, -0.18866224586963654, -0.22198152542114258, 0.16530145704746246, 0.137259379029274, 0.24955376982688904, 0.042695093899965286, 0.07544705271720886, 0.17933662235736847, -0.007186410948634148, -0.06845972687005997, 0.07519043236970901, 0.3602064847946167, -0.34395065903663635, -0.05052394047379494, -0.09659691900014877, -0.07217655330896378, 0.22991764545440674, -0.05668502673506737, -0.015229051932692528, 0.19726821780204773, 0.020261989906430244, -0.04262913763523102, 0.03620869293808937, 0.04865986108779907, 0.016718648374080658, -0.18056167662143707, 0.2716657519340515, 0.5724839568138123, 0.26855725049972534, -0.0967835932970047, -0.03222931921482086, 0.005361638963222504, -0.07502566277980804, 0.01775578409433365, -0.022257784381508827, 0.14869703352451324, 0.19364099204540253, -0.1889592558145523, -0.10111105442047119, 0.002102188766002655, 0.3638000786304474, 0.06130453571677208, -0.09914207458496094, -0.16853411495685577, -0.16799360513687134, 0.167079359292984, 0.5450266599655151, -0.27523279190063477, 0.30147966742515564, 0.07062222063541412, -0.09666352719068527, 0.20947295427322388, -0.18009060621261597, 0.10591787099838257, 0.6080440282821655, 0.033295873552560806, 0.11296103149652481, 0.37115439772605896, 0.008863399736583233, -0.1436055451631546, 0.21492883563041687, 0.1461232751607895, -0.29896998405456543, 0.1730046272277832, -0.05207773298025131, 0.17691949009895325, -0.2095147669315338, -0.2376023530960083, -0.05715707689523697, 0.05267764627933502, -0.34522226452827454, 0.24298949539661407, -0.16144445538520813, -0.1740003526210785, -0.3291533887386322, -0.08695724606513977, -0.07667100429534912, -0.06329300999641418, 0.024691004306077957, 0.28079378604888916, -0.14507360756397247, -0.18183475732803345, -0.43708962202072144, 0.09258928894996643, 0.2119118869304657, -0.3590199649333954, -0.001514483243227005, 0.19920188188552856, -0.2863779067993164, 0.13335859775543213, 0.1517556607723236, -0.09841287136077881, 0.5485374331474304, -0.5067272186279297, 0.057920582592487335, -0.3667601943016052, -0.10093608498573303, -0.06549417972564697, 0.05530909076333046, 0.3579995036125183, 0.1826387643814087, 0.18575042486190796, 0.054812923073768616, 0.10315606743097305, 0.20812518894672394, -0.23898078501224518, -0.17951567471027374, 0.15971580147743225, 0.056488946080207825, -0.39853689074516296, -0.25598764419555664, -0.2491462230682373, -0.20666173100471497, -0.350972443819046, 0.01613427698612213, 0.11000977456569672, 0.12698860466480255, -0.10306856781244278, 0.008076946251094341, 0.03724518045783043, 0.07318698614835739, 0.22466985881328583, -0.08302624523639679, 0.02634996548295021, 0.38674744963645935, -0.042350366711616516, -0.6439454555511475, 0.2405601441860199, -0.01897462084889412, -0.35784053802490234, 0.30524158477783203, -0.5030601024627686, -0.13239260017871857, -0.2873798608779907, 0.25060519576072693, 0.0892271101474762, 0.27787965536117554, 0.3353269100189209, -0.27772799134254456, -0.02459612488746643, -0.30397486686706543, -0.06590718775987625, -0.2901858389377594, -0.10967383533716202, 0.24289679527282715, 0.1826859414577484, 0.3031283915042877, -0.028938064351677895, 0.28554612398147583, 0.2206118106842041, 0.1294395476579666, 0.4378720223903656, -0.38643890619277954, 0.4741615056991577, 0.0013002753257751465, -0.1765855997800827, 0.035116493701934814, -0.2722175419330597, 0.018007896840572357, 0.23765671253204346, 0.022387107834219933, -0.004944127053022385, -0.23122942447662354, -0.16560590267181396, -0.23130950331687927, -0.24787136912345886, 0.1438772976398468, 0.11068417876958847, 0.04078288376331329, 0.12416937947273254, 0.22418832778930664, 0.10284100472927094, -0.15573406219482422, 0.11416491866111755, 0.5970391035079956, -0.2615627646446228, 0.1439674347639084, 0.02278151735663414, -0.16407981514930725, -0.4693877696990967, 0.07167504727840424, 0.10276506841182709, 0.4488423764705658, -0.03016696125268936, 0.04434330761432648, 0.215620219707489, -0.16199658811092377, 0.7495210766792297, -0.21511803567409515, 0.3322600722312927, 0.20321212708950043, -0.006716009229421616, -0.3780360221862793, -0.25835341215133667, -0.5120751857757568, 0.12309835106134415, 0.08177638053894043, -0.05292437970638275, -0.055525071918964386, 0.18523335456848145, 0.11505729705095291, 0.24685996770858765, -0.14289027452468872, -0.38716110587120056, -0.3885156810283661, -0.6134724020957947, -0.24454064667224884, 0.08509121835231781, 0.4038742184638977, -0.043508242815732956, -0.37968599796295166, -0.16640375554561615, -0.06428062170743942, 0.1533767282962799, -0.0725126713514328, -0.027729999274015427, 0.07959611713886261, -0.017775695770978928, 0.1780816912651062, -0.2506747841835022, 0.28624895215034485, -0.17390833795070648, 0.6596165895462036, 0.10549230873584747, -0.14962215721607208, 0.16205912828445435, -0.2683565318584442, -0.20142072439193726, 0.20519579946994781, -0.16493487358093262, -0.22019925713539124, -0.07972060889005661, 0.049250517040491104, -0.32984670996665955, -0.07996287196874619, 0.5729663372039795, -0.1016838327050209, -0.005418825428932905, -0.25961458683013916, 0.1787792146205902, 0.013897158205509186, -0.1558486521244049, 0.2674734890460968, 0.03488496318459511, -0.09249874949455261, -0.10834099352359772, -0.28907185792922974, 0.6511144638061523, 0.21450935304164886, 0.23586584627628326, 0.25903046131134033, -0.5253790020942688, 0.04198659956455231, 0.2136853188276291, 0.07386556267738342, -0.20706409215927124, -0.2838785648345947, -0.03738363832235336, -0.13326247036457062, 0.08258672058582306, -0.03415146470069885, -0.2779363691806793, 0.22078749537467957, -0.0865817740559578, 0.17475666105747223, 0.27441519498825073, -0.15815940499305725, -0.31310588121414185, 0.10845637321472168, -0.032816365361213684, 0.1951170265674591, 0.23858800530433655, 0.6629063487052917, -0.2662181556224823, 0.01849665306508541, -0.17159970104694366, -0.27796614170074463, -0.3965134024620056, 0.25503009557724, -0.13408461213111877, 0.007454544305801392, -0.15991540253162384, 0.1396338790655136, 0.022549577057361603, -0.01473696157336235, 0.0021654516458511353, 0.15718545019626617, -0.22981098294258118, 0.08573858439922333, 0.13416078686714172, -0.08223699778318405, 0.2630032002925873, -0.0994020402431488, 0.11807340383529663, -0.24470815062522888, -0.42294254899024963, -0.07276079803705215, 0.02143942192196846, -0.00272446870803833, -0.02771110087633133, 0.26394158601760864, 0.2187713086605072, -0.18823203444480896, -0.17848171293735504, -0.3920823335647583, 0.08386163413524628, -0.07089456170797348, 0.2175154834985733, 0.04904644191265106, 0.08854296058416367, 0.5029729008674622, -0.28613191843032837, -0.2359028458595276, -0.15548917651176453, 0.39320579171180725, -0.16737022995948792, -0.07556770741939545, 0.11023596674203873, 0.09486822783946991, -0.30697304010391235, -0.2523454427719116, 0.01313646137714386, -0.3942278027534485, -0.2205282747745514, 0.054006919264793396, -0.05436968430876732, 0.28690773248672485, -0.14717674255371094, 0.009005997329950333, 0.13357491791248322, -0.0578676238656044, -0.01518452912569046, -0.6815171837806702, 0.1296803504228592, -0.21979694068431854, 0.41220104694366455, 0.046644505113363266, 0.02624649554491043, -0.15720681846141815, 0.46316930651664734, -0.548916220664978, -0.3702108860015869, -0.0008695749565958977, 0.04950341582298279, -0.12905818223953247, 0.17799736559391022, 0.1302778422832489, 0.1998712420463562, 0.011895021423697472, 0.12122794985771179, 0.0002456679940223694, -0.0661846175789833, -0.24845194816589355, -0.16501764953136444, 0.10459989309310913, -0.05408863723278046, -0.2632083296775818, 0.19007277488708496, -0.4511171579360962, 0.009140371344983578, 0.18899071216583252, 0.1473040133714676, 0.30437561869621277, -0.09577339887619019, 0.03665819764137268, 0.0956634134054184, 0.11463616788387299, -0.2398885041475296, 0.24710209667682648, -0.4936743676662445, 0.5263610482215881, 0.0056515964679419994, 0.17131216824054718, 0.2247190773487091, 0.0065555572509765625, -0.05480257421731949, -0.2813507318496704, 0.06270495802164078, 0.18261992931365967, 0.3916456401348114, -0.11679689586162567, 0.2606547176837921, -0.0006236466579139233, 0.2832513451576233, 0.5525341033935547, -0.3527142405509949, -0.08935016393661499, 0.14336314797401428, 0.2758113741874695, -0.2590065598487854, -0.03468509018421173, 0.08422935009002686, 0.10917216539382935, 0.05762885883450508, 0.1179925799369812, 0.05552439019083977, -0.28266412019729614, -0.09124889969825745, -0.050089627504348755, 0.433503121137619, 0.367079496383667, -0.180838480591774, 0.3947135806083679, 0.006517495959997177, 0.14764977991580963, -0.05766945332288742, -0.021751731634140015, -0.04860220104455948, 0.4234349727630615, 0.04098043590784073, 0.06926596164703369, -0.10912538319826126, 0.025174230337142944, -0.1315765082836151, -0.2052452117204666, 0.07668426632881165, -0.20125705003738403, 0.025450609624385834, 0.09770986437797546, 0.07705105096101761, -0.1540478765964508, -0.27487435936927795, 0.2177981436252594, -0.34541165828704834, -0.06783702969551086, 0.069472536444664, -0.012507472187280655, -0.30367597937583923, -0.07215068489313126, -0.11966530233621597, 0.02526671811938286, 0.14733365178108215, -0.005412764847278595, 0.2599419355392456, 0.07452809810638428, -0.2369663268327713, -0.3160698413848877, 0.012623002752661705, -0.20480245351791382, 0.11341241747140884, -0.28850051760673523, 0.07788974046707153, 0.3658398985862732, 0.16743308305740356, 0.10783825814723969, 0.11485156416893005, 0.5545541048049927, 0.3852178752422333, -0.10724709928035736, -0.061105284839868546, 0.07846169173717499, -0.13316258788108826, -0.3258143365383148, 0.4363553822040558, 0.07163409143686295, 0.19309362769126892, 0.23635078966617584, 0.21840603649616241, -0.23010535538196564, 0.2584099769592285, -0.030818980187177658, -0.07956299185752869, -0.05894643813371658, 0.17917439341545105, -0.2505970299243927, 0.09379590302705765, -0.3897889256477356, -0.10139282792806625, -0.4083532691001892, -0.0985792726278305, 0.17721961438655853, -0.08799545466899872, 0.16670429706573486, -0.34622088074684143, 0.10359311103820801, 0.03752971068024635, 0.21810011565685272, 0.3795771300792694, 0.3196726143360138, -0.08816708624362946, -0.05732336640357971, -0.5226140022277832, 0.3419151306152344, -0.22584322094917297, -0.5296076536178589, -0.08779140561819077, 0.04472729563713074, -0.610586941242218, 0.07223620265722275, 0.34155356884002686, 0.2679622173309326, -0.06360786408185959, 0.32221388816833496, -0.1352422535419464, -0.3121245205402374, 0.03358715400099754, 0.15257106721401215, 0.07591790705919266, -0.5940465927124023, 0.2918211817741394, -0.41705477237701416, 0.16973590850830078, -0.27009010314941406, -0.1863708794116974, -0.011328540742397308, -0.008855942636728287, 0.5608648061752319, 0.1507783979177475, 0.5199143290519714, -0.1912187933921814, -0.12568221986293793, -0.4629918932914734, 0.07810121774673462, -0.11269523948431015, 0.24695181846618652, 0.1166754812002182, -0.18114398419857025, 0.019152596592903137, -0.2678041160106659, -0.06001663953065872, 0.31385472416877747, -0.03684161975979805, 0.09057951718568802, -0.05712278187274933, -0.07280836999416351, -0.18309226632118225, 0.14881783723831177, 0.08115100115537643, 0.14661391079425812, -0.3787931501865387, -0.10185229033231735, -0.03377552330493927, -0.5434587001800537, 0.2741709053516388, -0.269880473613739, -0.333262175321579, -0.2687220573425293, 0.23119071125984192, -0.40320083498954773, 0.0730406641960144, -0.0221857950091362, 0.1500971019268036, 0.1658337116241455, -0.06748438626527786, 0.03998890146613121, 0.29360952973365784, -0.37484583258628845, 0.04060666635632515, 0.2576870322227478, 0.4179145097732544, -0.06966304033994675, -0.17128977179527283, 0.3069993257522583, -0.21486037969589233 ]
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.16129004955291748, -0.13805416226387024, -0.020553553476929665, 0.22738687694072723, 0.11762400716543198, -0.1575976461172104, 0.2670055031776428, 0.29656749963760376, -0.5154968500137329, 0.28040802478790283, 0.1454412341117859, 0.4508609473705292, -0.09352830797433853, -0.1810206025838852, 0.06429950147867203, -0.05757630616426468, 0.1221432238817215, 0.2484460026025772, -0.07153475284576416, -0.23429223895072937, 0.13333387672901154, 0.3007955551147461, -0.25745636224746704, -0.06466102600097656, -0.2737536132335663, 0.08476100116968155, -0.07667054980993271, -0.26933813095092773, -0.053286366164684296, -0.4953400790691376, 0.15393906831741333, 0.0111228097230196, 0.10494495183229446, 0.33388540148735046, -0.00011551438365131617, -0.08517581224441528, 0.036938004195690155, 0.09381233900785446, -0.2382408082485199, -0.15776179730892181, -0.09692781418561935, 0.08862310647964478, -0.069839708507061, -0.02705775946378708, -0.08341062068939209, 0.19374719262123108, 0.05293402448296547, -0.09816253185272217, 0.5147069096565247, 0.29158467054367065, 0.14006797969341278, -0.010242583230137825, -0.25211939215660095, -0.0659523606300354, 0.3198699355125427, 0.031308192759752274, 0.0850754976272583, -0.17802095413208008, 0.2137235403060913, 0.03147920221090317, -0.05166783183813095, 0.618067741394043, -0.28133299946784973, 0.39801838994026184, -0.2359149158000946, 0.12423031777143478, -0.37117695808410645, -0.5308330059051514, 0.266836553812027, 0.21616560220718384, 0.646556556224823, -0.22962388396263123, -0.2044663429260254, -0.2378602921962738, 0.31990846991539, -0.15606503188610077, -0.042169809341430664, -0.01617717556655407, -0.2728021740913391, 0.2350624054670334, -0.009494421072304249, 0.04764767736196518, -0.220401793718338, 0.128880575299263, 0.05581250786781311, -0.10741811990737915, -0.0731363445520401, 0.1385572850704193, -0.1771000325679779, 0.09940946102142334, -0.08586382120847702, 0.27035772800445557, -0.14426173269748688, 0.03412628546357155, -0.14976249635219574, -0.06749074161052704, 0.19251535832881927, -0.3049416244029999, 0.2917177379131317, -0.060220688581466675, 0.3855563700199127, 0.037437956780195236, -0.18567006289958954, -0.08810003846883774, 0.3239296078681946, 0.019808363169431686, -0.023367121815681458, 0.14967738091945648, 0.2298976480960846, -0.2340688556432724, -0.25318607687950134, 0.07371607422828674, -0.014417980797588825, 0.21627357602119446, 0.3318793773651123, -0.26503005623817444, 0.2829248309135437, -0.36764416098594666, -0.5658823847770691, 0.06425027549266815, -0.4400382936000824, -0.10303957015275955, -0.2528017461299896, 0.18167364597320557, 0.16933053731918335, 0.30092665553092957, 0.1449250429868698, 0.22267623245716095, 0.06933920830488205, -0.5628319978713989, -0.18186219036579132, 0.026798643171787262, 0.20986074209213257, 0.030840668827295303, 0.2113284021615982, -0.32370591163635254, 0.3398516774177551, 0.34173423051834106, 0.19545288383960724, -0.4316004812717438, -0.28741100430488586, -0.13017717003822327, 0.0255604088306427, 0.009186077862977982, -0.026490163058042526, 0.3916679620742798, 0.07382082939147949, -0.018290460109710693, 0.007235415279865265, 0.06100797653198242, -0.10655637830495834, 0.006864774972200394, 0.2134006917476654, 0.1364106386899948, -0.0805879533290863, -0.16711384057998657, 0.12324770539999008, 0.36058706045150757, 0.07794493436813354, -0.3008696138858795, 0.0030109062790870667, -0.1827424019575119, -0.39196497201919556, -0.03865903988480568, 0.07733110338449478, 0.30246126651763916, -0.33554717898368835, 0.09542731940746307, 0.17853502929210663, 0.4213973581790924, 0.3944754898548126, 0.24845443665981293, -0.04651014879345894, 0.373439222574234, -0.1168164610862732, 0.30014485120773315, 0.20419929921627045, -0.4621313214302063, -0.39205384254455566, 0.2112353891134262, -0.04960285872220993, 0.24641375243663788, 0.15489058196544647, -0.16278336942195892, 0.30273380875587463, 0.14270742237567902, 0.3759351074695587, 0.15347920358181, 0.14573624730110168, 0.03347969800233841, -0.24468937516212463, -0.05789216607809067, 0.08683036267757416, -0.013140902854502201, 0.0021538957953453064, 0.09558357298374176, 0.037038445472717285, 0.2329704463481903, 0.5271523594856262, 0.07458425313234329, 0.09245173633098602, 0.10296785086393356, 0.16596519947052002, -0.10123151540756226, 0.22397778928279877, -0.26310086250305176, 0.25648653507232666, -0.048897407948970795, 0.2068263292312622, 0.2837984561920166, 0.15403074026107788, 0.0793672651052475, -0.30154550075531006, -0.21888890862464905, -0.299189031124115, -0.3250730633735657, 0.11458174884319305, 0.3257371783256531, -0.01443113200366497, 0.04204661771655083, -0.18985794484615326, 0.3409903049468994, -0.22032657265663147, -0.0741860643029213, 0.023305397480726242, 0.09916575253009796, 0.06385624408721924, -0.24470758438110352, 0.5248862504959106, 0.252898246049881, 0.18514958024024963, 0.20168396830558777, -0.16694176197052002, 0.22355201840400696, -0.014767268672585487, 0.021967507898807526, -0.26371699571609497, -0.3288925290107727, 0.10994835942983627, -0.5017576217651367, -0.11139451712369919, 0.23447144031524658, 0.31817197799682617, -0.004500143229961395, -0.30367568135261536, -0.18347014486789703, 0.13900677859783173, 0.2569383978843689, -0.055444348603487015, -0.06511921435594559, 0.3011585772037506, 0.06625306606292725, -0.35379984974861145, -0.3246978521347046, 0.2526891827583313, -0.23498012125492096, 0.2662215828895569, 0.02028496563434601, -0.341776967048645, 0.15859706699848175, 0.392896443605423, 0.2245115041732788, 0.08520887792110443, 0.2943879961967468, -0.24683251976966858, -0.02701730839908123, -0.12272888422012329, 0.09491194784641266, 0.29076534509658813, 0.2881043255329132, 0.05430147796869278, -0.37645459175109863, -0.1287485659122467, -0.11323212832212448, 0.13933606445789337, -0.1307564675807953, -0.3556293845176697, 0.43511685729026794, 0.35854488611221313, 0.08638771623373032, -0.449384480714798, -0.1341283917427063, -0.14240390062332153, 0.4703679084777832, -0.334960013628006, -0.23163200914859772, -0.43560531735420227, -0.12055262178182602, -0.10900617390871048, 0.06629113107919693, 0.07970383763313293, 0.22555118799209595, 0.21905572712421417, -0.012711886316537857, 0.005456428974866867, 0.13679997622966766, 0.17199163138866425, 0.2340613752603531, 0.07120563834905624, 0.11179893463850021, 0.08630509674549103, 0.3191400170326233, -0.3069571256637573, -0.024269945919513702, 0.025972798466682434, 0.27161338925361633, 0.10742934793233871, -0.14224743843078613, -0.16390249133110046, -0.40679705142974854, 0.05901826173067093, 0.26756417751312256, -0.33016812801361084, 0.5113495588302612, 0.11336216330528259, 0.16024929285049438, -0.22516664862632751, -0.3130819797515869, 0.0026733772829174995, -0.02688739262521267, -0.1686868816614151, 0.3555682599544525, 0.08294308930635452, -0.005615496542304754, -0.048255469650030136, -0.6989758014678955, 0.0993928387761116, -0.2500092387199402, 0.2359427958726883, -0.03286680579185486, 0.21037937700748444, 0.3641350567340851, 0.06060725077986717, 0.08126990497112274, -0.05871250107884407, 0.20536991953849792, -0.4102100431919098, -0.2545943260192871, 0.3561113178730011, 0.26060423254966736, -0.33486998081207275, -0.34056979417800903, 0.05095811188220978, 0.26529544591903687, -0.03223009034991264, -0.4001083970069885, 0.10035404562950134, -0.26746615767478943, 0.1453496515750885, -0.2972603142261505, 0.28261998295783997, 0.38546693325042725, 0.012993749231100082, -0.14950421452522278, -0.16922104358673096, -0.10783275961875916, 0.2658354640007019, 0.3553735017776489, 0.005884595215320587, 0.10114707052707672, 0.06991457939147949, -0.05932735279202461, 0.3506980538368225, 0.64596027135849, 0.20251578092575073, 0.26000654697418213, -0.17655396461486816, 0.09423510730266571, -0.032493531703948975, -0.3995800316333771, 0.027080189436674118, -0.11732447147369385, -0.06256696581840515, 0.4981200695037842, -0.08999676257371902, 0.053631097078323364, -0.16958853602409363, -0.05727764964103699, -0.3290625810623169, -0.1686408668756485, 0.06749197840690613, -0.23594030737876892, 0.18397393822669983, 0.1747751384973526, 0.05282847583293915, 0.16195277869701385, 0.03473491221666336, -0.28616616129875183, -0.2988380193710327, 0.28517329692840576, -0.14997230470180511, -0.08203011751174927, -0.2836107611656189, -0.3772883713245392, -0.12410178780555725, 0.13858383893966675, 0.5095551013946533, -0.21170006692409515, -0.03752005472779274, 0.3600187301635742, 0.29147830605506897, 0.381028950214386, -0.3069939911365509, 0.09087707102298737, 0.010390903800725937, 0.22879114747047424, 0.0055068489164114, 0.005460813641548157, -0.5205013155937195, -0.19675897061824799, -0.04749960079789162, -0.043031856417655945, -0.16689307987689972, -0.008018259890377522, 0.10895956307649612, 0.392744243144989, -0.009747911244630814, -0.24081158638000488, -0.25577059388160706, -0.07579284906387329, -0.33014312386512756, 0.1615663468837738, 0.34223103523254395, 0.04439420998096466, -0.16513308882713318, -0.12032532691955566, 0.1603991836309433, -0.0627521425485611, 0.5332359671592712, 0.0798594206571579, 0.3751767575740814, 0.07396528869867325, 0.30117496848106384, 0.27483975887298584, -0.35777994990348816, -0.25914356112480164, 0.3608149588108063, 0.10096938908100128, -0.14202584326267242, -0.003674602136015892, -0.3468620479106903, 0.328957200050354, 0.4931565225124359, -0.22319115698337555, 0.24192970991134644, -0.2970617711544037, 0.2568942904472351, -0.1529482752084732, 0.09574688225984573, 0.31952881813049316, -0.0749831572175026, -0.07518209517002106, -0.41028645634651184, 0.38228029012680054, -0.0364946648478508, -0.19794794917106628, 0.34455037117004395, 0.09091870486736298, -0.31038203835487366, 0.47125154733657837, -0.2578839957714081, 0.8118337988853455, 0.2264070063829422, 0.3666295111179352, 0.31550174951553345, 0.13815096020698547, 0.32616493105888367, -0.19600909948349, 0.09023230522871017, -0.02201821655035019, -0.0018171314150094986, -0.02156011387705803, 0.058343227952718735, -0.077855683863163, -0.04176020622253418, -0.5769286155700684, 0.17752952873706818, 0.0647166520357132, 0.028871266171336174, 0.18680183589458466, -0.011851515620946884, -0.12949584424495697, -0.10640722513198853, 0.125299334526062, 0.03257150575518608, -0.383939266204834, 0.3074735701084137, 0.3099326193332672, -0.024295426905155182, 0.03140464052557945, -0.5837310552597046, -0.822481095790863, -0.030167648568749428, -0.08251696079969406, -0.22594013810157776, -0.1996796429157257, -0.3336215615272522, 0.36819854378700256, 0.2586001753807068, 0.1915539801120758, 0.32565978169441223, -0.13796792924404144, -0.08526434004306793, 0.36824339628219604, 0.27765101194381714, -0.2679579555988312, -0.025591686367988586, 0.14451898634433746, -0.08603158593177795, -0.3883334994316101, 0.17660337686538696, 0.05515868961811066, 0.09896300733089447, -0.3880655765533447, 0.25383108854293823, -0.11467957496643066, -0.2331583946943283, 0.08573685586452484, 0.42890357971191406, 0.1415162831544876, -0.5119705200195312, 0.1032075434923172, 0.12417187541723251, -0.45886456966400146, 0.32868531346321106, 0.17258425056934357, -0.47551965713500977, -0.063762366771698, 0.25934046506881714, 0.12836137413978577, 0.00025108084082603455, 0.6646648645401001, -0.04148265719413757, 0.04838784039020538, -0.37047573924064636, 0.04069729149341583, -0.020929034799337387, -0.2641947269439697, 0.17911194264888763, 0.058663174510002136, 0.1739627867937088, -0.22652839124202728, 0.25354957580566406, 0.02651369385421276, 0.20480316877365112, -0.28147509694099426, -0.3617304563522339, -0.06197827309370041, -0.0314541757106781, 0.12343618273735046, 0.05524066090583801, -0.2911968231201172, 0.1181856095790863, 0.06881579011678696, 0.3186101019382477, -0.29819193482398987, 0.005974343977868557, -0.051795028150081635, 0.2173205018043518, -0.08404170721769333, 0.08132100850343704, -0.037810321897268295, 0.08517380058765411, 0.2000400424003601, 0.3185157775878906, 0.06729213893413544, -0.15987014770507812, -0.30621451139450073, 0.18384429812431335, 0.04174419119954109, 0.15626412630081177, -0.04076804965734482, 0.10010583698749542, 0.14923903346061707, -0.13370801508426666, -0.10101130604743958, 0.3345831632614136, 0.12536197900772095, 0.21837835013866425, -0.0296320877969265, 0.0370711088180542, 0.1851567178964615, -0.1598651260137558, -0.18397754430770874, -0.17245955765247345, 0.3399854004383087, 0.180613711476326, 0.048744797706604004, -0.04819614440202713, 0.11862451583147049, 0.039923425763845444, -0.13405150175094604, 0.11869505792856216, -0.07783392816781998, -0.26557672023773193, 0.133370041847229, 0.2876855731010437, -0.11947976052761078, 0.37868836522102356, -0.34599417448043823, -0.11189954727888107, 0.0911952555179596, 0.23514413833618164, -0.2654987573623657, -0.12371174991130829, -0.32325035333633423, -0.106551393866539, -0.05830928683280945, 0.2784039378166199, -0.05983133614063263, -0.4723803400993347, 0.12146657705307007, -0.06493829190731049, 0.3360197842121124, -0.5360031723976135, -0.07342135906219482, 0.3985145688056946, 0.014973614364862442, -0.3611198961734772, -0.1933402717113495, -0.015197496861219406, 0.0208011195063591, 0.5450985431671143, -0.3675435781478882, 0.13735823333263397, -0.33860552310943604, 0.026388250291347504, 0.19154828786849976, 0.02560562640428543, -0.038219403475522995, 0.40564194321632385, -0.3271888196468353, -0.04896315187215805, -0.07162423431873322, 0.30504754185676575, -0.11767254024744034, 0.03344614431262016, -0.12804824113845825, -0.05141444876790047, -0.12391933053731918, -0.12486259639263153, -0.3380403220653534, -0.27342867851257324, -0.23037640750408173, 0.006182815879583359, 0.0975419357419014, -0.012554861605167389, 0.14051347970962524, 0.19162246584892273, -0.26688504219055176, -0.5332414507865906, -0.19809377193450928, -0.037783607840538025, 0.17207661271095276, -0.3900321125984192, 0.34038737416267395, 0.30842798948287964, -0.22177034616470337, 0.2584371864795685, 0.2433646023273468, 0.5199829339981079, 0.07158161699771881, 0.0334477499127388, 0.10651938617229462, -0.5706879496574402, -0.09190310537815094, -0.05172242224216461, 0.3297679126262665, -0.12424130737781525, 0.05875521898269653, 0.021863173693418503, 0.015872618183493614, -0.09563983976840973, 0.029347840696573257, 0.228546142578125, -0.07562516629695892, -0.5632564425468445, 0.2190782129764557, -0.14116312563419342, 0.11173228174448013, 0.04065867140889168, 0.07498426735401154, -0.4736693203449249, 0.44173887372016907, 0.3421667516231537, 0.05759613215923309, -0.010626781731843948, 0.002189889084547758, 0.08138871937990189, -0.12637557089328766, -0.11261269450187683, 0.26730477809906006, 0.15798616409301758, -0.2770345211029053, -0.15913556516170502, -0.673578679561615, -0.07148318737745285, -0.0488048754632473, -0.004951950162649155, 0.0006289398297667503, 0.11898073554039001, 0.158683180809021, 0.13626036047935486, 0.069265216588974, -0.02604105696082115, -0.5322325229644775, 0.3291480839252472, -0.21546316146850586, -0.0053821951150894165, -0.087787926197052, 0.43666040897369385, 0.04148939251899719, -0.1064985916018486, 0.010835833847522736, 0.0946904644370079, 0.03401909023523331, 0.06554765999317169, 0.005946151912212372, 0.017562326043844223, -0.12066251039505005, 0.15823808312416077, 0.14234568178653717, 0.17081579566001892, -0.2348543405532837, 0.18956589698791504, -0.2832576632499695, 0.029292725026607513, -0.19824400544166565, 0.1561555564403534, 0.2698149085044861, 0.515843391418457, -0.18345114588737488, -0.06868433952331543, -0.06360141932964325, 0.16536128520965576, 0.1112440824508667, -0.06495948135852814, -0.1914123147726059, 0.08976927399635315, -0.008699759840965271, 0.27149641513824463, -0.262226402759552, 0.10594230890274048, 0.003829449415206909, 0.0026381835341453552, -0.49203991889953613, -0.7109146118164062, 0.4522463083267212, -0.4033142626285553, -0.5287764072418213, -0.07965719699859619, 0.5906728506088257, 0.24035382270812988, -0.03215371072292328, -0.708696186542511, -0.03598929941654205, 0.39599838852882385, 0.24434790015220642, -0.30217140913009644, 0.21298657357692719, 0.12193967401981354, 0.008532237261533737, 0.014424934983253479, 0.6226136684417725, 0.31052467226982117, -0.23275454342365265, 0.26797088980674744, -0.4604586362838745 ]
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.16129004955291748, -0.13805416226387024, -0.020553553476929665, 0.22738687694072723, 0.11762400716543198, -0.1575976461172104, 0.2670055031776428, 0.29656749963760376, -0.5154968500137329, 0.28040802478790283, 0.1454412341117859, 0.4508609473705292, -0.09352830797433853, -0.1810206025838852, 0.06429950147867203, -0.05757630616426468, 0.1221432238817215, 0.2484460026025772, -0.07153475284576416, -0.23429223895072937, 0.13333387672901154, 0.3007955551147461, -0.25745636224746704, -0.06466102600097656, -0.2737536132335663, 0.08476100116968155, -0.07667054980993271, -0.26933813095092773, -0.053286366164684296, -0.4953400790691376, 0.15393906831741333, 0.0111228097230196, 0.10494495183229446, 0.33388540148735046, -0.00011551438365131617, -0.08517581224441528, 0.036938004195690155, 0.09381233900785446, -0.2382408082485199, -0.15776179730892181, -0.09692781418561935, 0.08862310647964478, -0.069839708507061, -0.02705775946378708, -0.08341062068939209, 0.19374719262123108, 0.05293402448296547, -0.09816253185272217, 0.5147069096565247, 0.29158467054367065, 0.14006797969341278, -0.010242583230137825, -0.25211939215660095, -0.0659523606300354, 0.3198699355125427, 0.031308192759752274, 0.0850754976272583, -0.17802095413208008, 0.2137235403060913, 0.03147920221090317, -0.05166783183813095, 0.618067741394043, -0.28133299946784973, 0.39801838994026184, -0.2359149158000946, 0.12423031777143478, -0.37117695808410645, -0.5308330059051514, 0.266836553812027, 0.21616560220718384, 0.646556556224823, -0.22962388396263123, -0.2044663429260254, -0.2378602921962738, 0.31990846991539, -0.15606503188610077, -0.042169809341430664, -0.01617717556655407, -0.2728021740913391, 0.2350624054670334, -0.009494421072304249, 0.04764767736196518, -0.220401793718338, 0.128880575299263, 0.05581250786781311, -0.10741811990737915, -0.0731363445520401, 0.1385572850704193, -0.1771000325679779, 0.09940946102142334, -0.08586382120847702, 0.27035772800445557, -0.14426173269748688, 0.03412628546357155, -0.14976249635219574, -0.06749074161052704, 0.19251535832881927, -0.3049416244029999, 0.2917177379131317, -0.060220688581466675, 0.3855563700199127, 0.037437956780195236, -0.18567006289958954, -0.08810003846883774, 0.3239296078681946, 0.019808363169431686, -0.023367121815681458, 0.14967738091945648, 0.2298976480960846, -0.2340688556432724, -0.25318607687950134, 0.07371607422828674, -0.014417980797588825, 0.21627357602119446, 0.3318793773651123, -0.26503005623817444, 0.2829248309135437, -0.36764416098594666, -0.5658823847770691, 0.06425027549266815, -0.4400382936000824, -0.10303957015275955, -0.2528017461299896, 0.18167364597320557, 0.16933053731918335, 0.30092665553092957, 0.1449250429868698, 0.22267623245716095, 0.06933920830488205, -0.5628319978713989, -0.18186219036579132, 0.026798643171787262, 0.20986074209213257, 0.030840668827295303, 0.2113284021615982, -0.32370591163635254, 0.3398516774177551, 0.34173423051834106, 0.19545288383960724, -0.4316004812717438, -0.28741100430488586, -0.13017717003822327, 0.0255604088306427, 0.009186077862977982, -0.026490163058042526, 0.3916679620742798, 0.07382082939147949, -0.018290460109710693, 0.007235415279865265, 0.06100797653198242, -0.10655637830495834, 0.006864774972200394, 0.2134006917476654, 0.1364106386899948, -0.0805879533290863, -0.16711384057998657, 0.12324770539999008, 0.36058706045150757, 0.07794493436813354, -0.3008696138858795, 0.0030109062790870667, -0.1827424019575119, -0.39196497201919556, -0.03865903988480568, 0.07733110338449478, 0.30246126651763916, -0.33554717898368835, 0.09542731940746307, 0.17853502929210663, 0.4213973581790924, 0.3944754898548126, 0.24845443665981293, -0.04651014879345894, 0.373439222574234, -0.1168164610862732, 0.30014485120773315, 0.20419929921627045, -0.4621313214302063, -0.39205384254455566, 0.2112353891134262, -0.04960285872220993, 0.24641375243663788, 0.15489058196544647, -0.16278336942195892, 0.30273380875587463, 0.14270742237567902, 0.3759351074695587, 0.15347920358181, 0.14573624730110168, 0.03347969800233841, -0.24468937516212463, -0.05789216607809067, 0.08683036267757416, -0.013140902854502201, 0.0021538957953453064, 0.09558357298374176, 0.037038445472717285, 0.2329704463481903, 0.5271523594856262, 0.07458425313234329, 0.09245173633098602, 0.10296785086393356, 0.16596519947052002, -0.10123151540756226, 0.22397778928279877, -0.26310086250305176, 0.25648653507232666, -0.048897407948970795, 0.2068263292312622, 0.2837984561920166, 0.15403074026107788, 0.0793672651052475, -0.30154550075531006, -0.21888890862464905, -0.299189031124115, -0.3250730633735657, 0.11458174884319305, 0.3257371783256531, -0.01443113200366497, 0.04204661771655083, -0.18985794484615326, 0.3409903049468994, -0.22032657265663147, -0.0741860643029213, 0.023305397480726242, 0.09916575253009796, 0.06385624408721924, -0.24470758438110352, 0.5248862504959106, 0.252898246049881, 0.18514958024024963, 0.20168396830558777, -0.16694176197052002, 0.22355201840400696, -0.014767268672585487, 0.021967507898807526, -0.26371699571609497, -0.3288925290107727, 0.10994835942983627, -0.5017576217651367, -0.11139451712369919, 0.23447144031524658, 0.31817197799682617, -0.004500143229961395, -0.30367568135261536, -0.18347014486789703, 0.13900677859783173, 0.2569383978843689, -0.055444348603487015, -0.06511921435594559, 0.3011585772037506, 0.06625306606292725, -0.35379984974861145, -0.3246978521347046, 0.2526891827583313, -0.23498012125492096, 0.2662215828895569, 0.02028496563434601, -0.341776967048645, 0.15859706699848175, 0.392896443605423, 0.2245115041732788, 0.08520887792110443, 0.2943879961967468, -0.24683251976966858, -0.02701730839908123, -0.12272888422012329, 0.09491194784641266, 0.29076534509658813, 0.2881043255329132, 0.05430147796869278, -0.37645459175109863, -0.1287485659122467, -0.11323212832212448, 0.13933606445789337, -0.1307564675807953, -0.3556293845176697, 0.43511685729026794, 0.35854488611221313, 0.08638771623373032, -0.449384480714798, -0.1341283917427063, -0.14240390062332153, 0.4703679084777832, -0.334960013628006, -0.23163200914859772, -0.43560531735420227, -0.12055262178182602, -0.10900617390871048, 0.06629113107919693, 0.07970383763313293, 0.22555118799209595, 0.21905572712421417, -0.012711886316537857, 0.005456428974866867, 0.13679997622966766, 0.17199163138866425, 0.2340613752603531, 0.07120563834905624, 0.11179893463850021, 0.08630509674549103, 0.3191400170326233, -0.3069571256637573, -0.024269945919513702, 0.025972798466682434, 0.27161338925361633, 0.10742934793233871, -0.14224743843078613, -0.16390249133110046, -0.40679705142974854, 0.05901826173067093, 0.26756417751312256, -0.33016812801361084, 0.5113495588302612, 0.11336216330528259, 0.16024929285049438, -0.22516664862632751, -0.3130819797515869, 0.0026733772829174995, -0.02688739262521267, -0.1686868816614151, 0.3555682599544525, 0.08294308930635452, -0.005615496542304754, -0.048255469650030136, -0.6989758014678955, 0.0993928387761116, -0.2500092387199402, 0.2359427958726883, -0.03286680579185486, 0.21037937700748444, 0.3641350567340851, 0.06060725077986717, 0.08126990497112274, -0.05871250107884407, 0.20536991953849792, -0.4102100431919098, -0.2545943260192871, 0.3561113178730011, 0.26060423254966736, -0.33486998081207275, -0.34056979417800903, 0.05095811188220978, 0.26529544591903687, -0.03223009034991264, -0.4001083970069885, 0.10035404562950134, -0.26746615767478943, 0.1453496515750885, -0.2972603142261505, 0.28261998295783997, 0.38546693325042725, 0.012993749231100082, -0.14950421452522278, -0.16922104358673096, -0.10783275961875916, 0.2658354640007019, 0.3553735017776489, 0.005884595215320587, 0.10114707052707672, 0.06991457939147949, -0.05932735279202461, 0.3506980538368225, 0.64596027135849, 0.20251578092575073, 0.26000654697418213, -0.17655396461486816, 0.09423510730266571, -0.032493531703948975, -0.3995800316333771, 0.027080189436674118, -0.11732447147369385, -0.06256696581840515, 0.4981200695037842, -0.08999676257371902, 0.053631097078323364, -0.16958853602409363, -0.05727764964103699, -0.3290625810623169, -0.1686408668756485, 0.06749197840690613, -0.23594030737876892, 0.18397393822669983, 0.1747751384973526, 0.05282847583293915, 0.16195277869701385, 0.03473491221666336, -0.28616616129875183, -0.2988380193710327, 0.28517329692840576, -0.14997230470180511, -0.08203011751174927, -0.2836107611656189, -0.3772883713245392, -0.12410178780555725, 0.13858383893966675, 0.5095551013946533, -0.21170006692409515, -0.03752005472779274, 0.3600187301635742, 0.29147830605506897, 0.381028950214386, -0.3069939911365509, 0.09087707102298737, 0.010390903800725937, 0.22879114747047424, 0.0055068489164114, 0.005460813641548157, -0.5205013155937195, -0.19675897061824799, -0.04749960079789162, -0.043031856417655945, -0.16689307987689972, -0.008018259890377522, 0.10895956307649612, 0.392744243144989, -0.009747911244630814, -0.24081158638000488, -0.25577059388160706, -0.07579284906387329, -0.33014312386512756, 0.1615663468837738, 0.34223103523254395, 0.04439420998096466, -0.16513308882713318, -0.12032532691955566, 0.1603991836309433, -0.0627521425485611, 0.5332359671592712, 0.0798594206571579, 0.3751767575740814, 0.07396528869867325, 0.30117496848106384, 0.27483975887298584, -0.35777994990348816, -0.25914356112480164, 0.3608149588108063, 0.10096938908100128, -0.14202584326267242, -0.003674602136015892, -0.3468620479106903, 0.328957200050354, 0.4931565225124359, -0.22319115698337555, 0.24192970991134644, -0.2970617711544037, 0.2568942904472351, -0.1529482752084732, 0.09574688225984573, 0.31952881813049316, -0.0749831572175026, -0.07518209517002106, -0.41028645634651184, 0.38228029012680054, -0.0364946648478508, -0.19794794917106628, 0.34455037117004395, 0.09091870486736298, -0.31038203835487366, 0.47125154733657837, -0.2578839957714081, 0.8118337988853455, 0.2264070063829422, 0.3666295111179352, 0.31550174951553345, 0.13815096020698547, 0.32616493105888367, -0.19600909948349, 0.09023230522871017, -0.02201821655035019, -0.0018171314150094986, -0.02156011387705803, 0.058343227952718735, -0.077855683863163, -0.04176020622253418, -0.5769286155700684, 0.17752952873706818, 0.0647166520357132, 0.028871266171336174, 0.18680183589458466, -0.011851515620946884, -0.12949584424495697, -0.10640722513198853, 0.125299334526062, 0.03257150575518608, -0.383939266204834, 0.3074735701084137, 0.3099326193332672, -0.024295426905155182, 0.03140464052557945, -0.5837310552597046, -0.822481095790863, -0.030167648568749428, -0.08251696079969406, -0.22594013810157776, -0.1996796429157257, -0.3336215615272522, 0.36819854378700256, 0.2586001753807068, 0.1915539801120758, 0.32565978169441223, -0.13796792924404144, -0.08526434004306793, 0.36824339628219604, 0.27765101194381714, -0.2679579555988312, -0.025591686367988586, 0.14451898634433746, -0.08603158593177795, -0.3883334994316101, 0.17660337686538696, 0.05515868961811066, 0.09896300733089447, -0.3880655765533447, 0.25383108854293823, -0.11467957496643066, -0.2331583946943283, 0.08573685586452484, 0.42890357971191406, 0.1415162831544876, -0.5119705200195312, 0.1032075434923172, 0.12417187541723251, -0.45886456966400146, 0.32868531346321106, 0.17258425056934357, -0.47551965713500977, -0.063762366771698, 0.25934046506881714, 0.12836137413978577, 0.00025108084082603455, 0.6646648645401001, -0.04148265719413757, 0.04838784039020538, -0.37047573924064636, 0.04069729149341583, -0.020929034799337387, -0.2641947269439697, 0.17911194264888763, 0.058663174510002136, 0.1739627867937088, -0.22652839124202728, 0.25354957580566406, 0.02651369385421276, 0.20480316877365112, -0.28147509694099426, -0.3617304563522339, -0.06197827309370041, -0.0314541757106781, 0.12343618273735046, 0.05524066090583801, -0.2911968231201172, 0.1181856095790863, 0.06881579011678696, 0.3186101019382477, -0.29819193482398987, 0.005974343977868557, -0.051795028150081635, 0.2173205018043518, -0.08404170721769333, 0.08132100850343704, -0.037810321897268295, 0.08517380058765411, 0.2000400424003601, 0.3185157775878906, 0.06729213893413544, -0.15987014770507812, -0.30621451139450073, 0.18384429812431335, 0.04174419119954109, 0.15626412630081177, -0.04076804965734482, 0.10010583698749542, 0.14923903346061707, -0.13370801508426666, -0.10101130604743958, 0.3345831632614136, 0.12536197900772095, 0.21837835013866425, -0.0296320877969265, 0.0370711088180542, 0.1851567178964615, -0.1598651260137558, -0.18397754430770874, -0.17245955765247345, 0.3399854004383087, 0.180613711476326, 0.048744797706604004, -0.04819614440202713, 0.11862451583147049, 0.039923425763845444, -0.13405150175094604, 0.11869505792856216, -0.07783392816781998, -0.26557672023773193, 0.133370041847229, 0.2876855731010437, -0.11947976052761078, 0.37868836522102356, -0.34599417448043823, -0.11189954727888107, 0.0911952555179596, 0.23514413833618164, -0.2654987573623657, -0.12371174991130829, -0.32325035333633423, -0.106551393866539, -0.05830928683280945, 0.2784039378166199, -0.05983133614063263, -0.4723803400993347, 0.12146657705307007, -0.06493829190731049, 0.3360197842121124, -0.5360031723976135, -0.07342135906219482, 0.3985145688056946, 0.014973614364862442, -0.3611198961734772, -0.1933402717113495, -0.015197496861219406, 0.0208011195063591, 0.5450985431671143, -0.3675435781478882, 0.13735823333263397, -0.33860552310943604, 0.026388250291347504, 0.19154828786849976, 0.02560562640428543, -0.038219403475522995, 0.40564194321632385, -0.3271888196468353, -0.04896315187215805, -0.07162423431873322, 0.30504754185676575, -0.11767254024744034, 0.03344614431262016, -0.12804824113845825, -0.05141444876790047, -0.12391933053731918, -0.12486259639263153, -0.3380403220653534, -0.27342867851257324, -0.23037640750408173, 0.006182815879583359, 0.0975419357419014, -0.012554861605167389, 0.14051347970962524, 0.19162246584892273, -0.26688504219055176, -0.5332414507865906, -0.19809377193450928, -0.037783607840538025, 0.17207661271095276, -0.3900321125984192, 0.34038737416267395, 0.30842798948287964, -0.22177034616470337, 0.2584371864795685, 0.2433646023273468, 0.5199829339981079, 0.07158161699771881, 0.0334477499127388, 0.10651938617229462, -0.5706879496574402, -0.09190310537815094, -0.05172242224216461, 0.3297679126262665, -0.12424130737781525, 0.05875521898269653, 0.021863173693418503, 0.015872618183493614, -0.09563983976840973, 0.029347840696573257, 0.228546142578125, -0.07562516629695892, -0.5632564425468445, 0.2190782129764557, -0.14116312563419342, 0.11173228174448013, 0.04065867140889168, 0.07498426735401154, -0.4736693203449249, 0.44173887372016907, 0.3421667516231537, 0.05759613215923309, -0.010626781731843948, 0.002189889084547758, 0.08138871937990189, -0.12637557089328766, -0.11261269450187683, 0.26730477809906006, 0.15798616409301758, -0.2770345211029053, -0.15913556516170502, -0.673578679561615, -0.07148318737745285, -0.0488048754632473, -0.004951950162649155, 0.0006289398297667503, 0.11898073554039001, 0.158683180809021, 0.13626036047935486, 0.069265216588974, -0.02604105696082115, -0.5322325229644775, 0.3291480839252472, -0.21546316146850586, -0.0053821951150894165, -0.087787926197052, 0.43666040897369385, 0.04148939251899719, -0.1064985916018486, 0.010835833847522736, 0.0946904644370079, 0.03401909023523331, 0.06554765999317169, 0.005946151912212372, 0.017562326043844223, -0.12066251039505005, 0.15823808312416077, 0.14234568178653717, 0.17081579566001892, -0.2348543405532837, 0.18956589698791504, -0.2832576632499695, 0.029292725026607513, -0.19824400544166565, 0.1561555564403534, 0.2698149085044861, 0.515843391418457, -0.18345114588737488, -0.06868433952331543, -0.06360141932964325, 0.16536128520965576, 0.1112440824508667, -0.06495948135852814, -0.1914123147726059, 0.08976927399635315, -0.008699759840965271, 0.27149641513824463, -0.262226402759552, 0.10594230890274048, 0.003829449415206909, 0.0026381835341453552, -0.49203991889953613, -0.7109146118164062, 0.4522463083267212, -0.4033142626285553, -0.5287764072418213, -0.07965719699859619, 0.5906728506088257, 0.24035382270812988, -0.03215371072292328, -0.708696186542511, -0.03598929941654205, 0.39599838852882385, 0.24434790015220642, -0.30217140913009644, 0.21298657357692719, 0.12193967401981354, 0.008532237261533737, 0.014424934983253479, 0.6226136684417725, 0.31052467226982117, -0.23275454342365265, 0.26797088980674744, -0.4604586362838745 ]
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.12533992528915405, 0.020779907703399658, 0.01851298287510872, 0.025715332478284836, 0.18210411071777344, 0.02519356459379196, 0.47886648774147034, 0.24383263289928436, 0.14579592645168304, -0.23386923968791962, -0.1162838488817215, 0.2687394618988037, 0.08507503569126129, 0.11211278289556503, -0.013202992267906666, 0.31374815106391907, 0.11010225862264633, 0.21448364853858948, -0.07225002348423004, -0.0051928237080574036, -0.29109957814216614, 0.06344236433506012, -0.1833183467388153, -0.21956349909305573, -0.20657645165920258, 0.2937984764575958, -0.04269396886229515, 0.3026081621646881, 0.00840541161596775, -0.37312060594558716, 0.18368114531040192, 0.2550064027309418, 0.18209829926490784, 0.661107063293457, -0.00010971600568154827, 0.06178881227970123, 0.1586233526468277, -0.17931504547595978, -0.17044208943843842, -0.1858089715242386, 0.041995808482170105, -0.04552792012691498, -0.34614625573158264, -0.08420968055725098, -0.0005326643586158752, -0.22075237333774567, -0.17487645149230957, -0.34615111351013184, 0.5304936170578003, 0.4028017520904541, 0.23200739920139313, -0.11041605472564697, 0.12024061381816864, -0.07211781293153763, 0.178712397813797, 0.1414135843515396, -0.06995255500078201, 0.3557817041873932, 0.10452477633953094, -0.207222580909729, -0.09063100069761276, 0.07144787907600403, -0.13013318181037903, 0.05159330740571022, -0.10077717155218124, -0.02663838118314743, 0.32809263467788696, -0.13609066605567932, 0.08565747737884521, 0.17062246799468994, 0.6073066592216492, -0.3377121388912201, -0.4172837734222412, 0.00728568434715271, 0.01831473410129547, -0.24427731335163116, 0.16502371430397034, 0.17925012111663818, -0.007418068125844002, 0.36866629123687744, -0.012619446963071823, -0.025451907888054848, 0.07213741540908813, -0.19480659067630768, -0.030856378376483917, -0.11781926453113556, -0.10041660815477371, -0.03621287643909454, 0.05162045732140541, 0.060248520225286484, 0.421358585357666, -0.021616730839014053, -0.056681472808122635, 0.03428548574447632, -0.029153350740671158, -0.13422061502933502, 0.2153058648109436, -0.3018350601196289, 0.07473693788051605, -0.02819211035966873, -0.0764479786157608, -0.10773593932390213, -0.05920092388987541, 0.04898015782237053, 0.0738610029220581, 0.22614504396915436, -0.1387251615524292, -0.09012024104595184, 0.39101022481918335, 0.17674149572849274, -0.2513786852359772, -0.07261893153190613, 0.02941308543086052, -0.20272758603096008, 0.5261014699935913, -0.06475990265607834, 0.26140403747558594, -0.1472216099500656, -0.40446147322654724, -0.01818089932203293, -0.10707823187112808, 0.003264474216848612, -0.27426406741142273, 0.1767626255750656, 0.02077431231737137, 0.35306480526924133, 0.1341453194618225, 0.18562547862529755, 0.058139555156230927, -0.20635654032230377, -0.22263412177562714, -0.12268686294555664, -0.3091830313205719, 0.02515198104083538, 0.2947830557823181, -0.17088305950164795, 0.34400659799575806, 0.5470420718193054, -0.3297730088233948, -0.5027313232421875, -0.062134698033332825, -0.03143306449055672, 0.1452510803937912, 0.29647374153137207, -0.06330233067274094, -0.08639851957559586, 0.2666996419429779, -0.09013643115758896, -0.01683981716632843, 0.3552980422973633, -0.09144825488328934, -0.30692923069000244, 0.14365242421627045, 0.197564035654068, 0.05110626667737961, 0.19584901630878448, -0.12795129418373108, 0.015527717769145966, 0.3042721152305603, -0.07051827013492584, -0.04579586535692215, -0.0500779002904892, -0.013653356581926346, -0.24845197796821594, 0.04766726493835449, 0.7337819337844849, -0.4681152403354645, 0.008142031729221344, -0.2922006845474243, -0.08908508718013763, 0.24045556783676147, 0.0785246193408966, 0.004703373648226261, 0.04239287227392197, -0.46869030594825745, -0.36033034324645996, 0.16675898432731628, -0.16695214807987213, -0.43696025013923645, 0.005820621270686388, -0.2142418771982193, 0.2575324475765228, 0.1665145456790924, -0.04497828334569931, -0.15013614296913147, -0.017233071848750114, 0.09704709053039551, 0.2490067481994629, 0.09239402413368225, 0.04482365399599075, -0.32461676001548767, -0.2888213098049164, 0.04556865245103836, -0.132967010140419, 0.2855153977870941, 0.4056811034679413, 0.35214391350746155, 0.16662059724330902, 0.3699391782283783, 0.06259281933307648, 0.015510033816099167, 0.014386951923370361, 0.33673691749572754, -0.01800982654094696, 0.033076170831918716, 0.17652061581611633, -0.522168755531311, 0.3075175881385803, -0.033605337142944336, -0.2515622079372406, 0.07289580255746841, -0.07019537687301636, -0.5719505548477173, -0.22833918035030365, -0.07209812104701996, -0.3877536654472351, 0.17254780232906342, 0.4713417887687683, -0.033434733748435974, 0.0184997096657753, -0.1434890329837799, 0.47259753942489624, -0.3845013380050659, -0.04807125777006149, -0.041301168501377106, 0.285520076751709, -0.1932288259267807, -0.18146099150180817, -0.21956844627857208, -0.11879656463861465, 0.2447948455810547, -0.1625746637582779, -0.12155956774950027, 0.4299699366092682, 0.18604792654514313, 0.2720865309238434, -0.3619140088558197, -0.1950375884771347, 0.16521941125392914, -0.01606319099664688, -0.14654895663261414, 0.11854524910449982, 0.24596887826919556, -0.07762636989355087, -0.017394796013832092, 0.27890485525131226, -0.4031006991863251, -0.08858688920736313, 0.07137446105480194, -0.046219829469919205, 0.2666137218475342, -0.2367839813232422, 0.2828179895877838, -0.34039777517318726, -0.34033143520355225, 0.29470205307006836, 0.0018234625458717346, 0.12792792916297913, 0.09892444312572479, 0.11211428046226501, 0.28678008913993835, 0.006671186536550522, 0.047518156468868256, -0.08901221305131912, -0.17656585574150085, -0.2945634126663208, 0.013121380470693111, 0.35000085830688477, 0.5929617285728455, 0.16572566330432892, -0.016661491245031357, 0.14517329633235931, -0.05830691009759903, -0.253808856010437, 0.20438642799854279, -0.2613338232040405, -0.006469659972935915, 0.33118313550949097, 0.18785236775875092, 0.07633659243583679, -0.6370834112167358, 0.1860152631998062, 0.514092743396759, 0.21180260181427002, -0.21951453387737274, -0.19098500907421112, -0.16736556589603424, 0.41251498460769653, 0.06301690638065338, 0.14355099201202393, -0.030055735260248184, -0.10656655579805374, -0.13827387988567352, 0.5955287218093872, -0.05899834260344505, 0.07329227775335312, -0.18508131802082062, -0.07492680847644806, -0.046165913343429565, -0.14269621670246124, -0.14728033542633057, -0.17641480267047882, -0.1414830982685089, 0.09109577536582947, 0.23135821521282196, -0.34192222356796265, 0.14773119986057281, -0.18287605047225952, -0.1267574578523636, -0.3267631530761719, -0.08334323018789291, -0.1293942779302597, 0.034004420042037964, 0.2224019169807434, -0.22504931688308716, 0.14713777601718903, 0.16975662112236023, 0.03256779909133911, -0.004715205170214176, -0.35545414686203003, -0.3341691195964813, -0.10292816907167435, 0.15119925141334534, 0.2633754014968872, -0.26001083850860596, -0.45545634627342224, 0.10902228206396103, -0.37113887071609497, -0.04065752029418945, 0.10156090557575226, -0.0919753760099411, 0.3833358883857727, 0.22381071746349335, -0.03108307346701622, 0.4020077884197235, 0.2698839008808136, -0.437619686126709, -0.27906090021133423, 0.080503448843956, -0.10147791355848312, -0.2633703351020813, 0.014791596680879593, 0.060915201902389526, -0.012119531631469727, 0.2737051844596863, -0.4307684898376465, -0.08452554792165756, -0.2824060916900635, 0.0837782770395279, -0.058575913310050964, 0.2336963564157486, 0.20812299847602844, 0.12076064199209213, -0.21364064514636993, -0.10408008843660355, -0.09567822515964508, -0.041495732963085175, 0.23349177837371826, 0.12698271870613098, 0.021205145865678787, 0.22927913069725037, 0.09353932738304138, 0.6404240131378174, 0.05031098797917366, -0.1254807710647583, 0.508699893951416, 0.12542301416397095, 0.7294847369194031, -0.07403721660375595, -0.3390607535839081, -0.0056345900520682335, -0.18458369374275208, 0.31925779581069946, 0.04202893376350403, -0.10619796812534332, 0.13097941875457764, -0.1564229279756546, 0.024226713925600052, -0.167812317609787, -0.2236509472131729, -0.1179097443819046, -0.2493901550769806, -0.022043906152248383, 0.31423017382621765, -0.10476483404636383, -0.1341651976108551, 0.0813804417848587, -0.018526071682572365, 0.08762866258621216, 0.32204103469848633, 0.08849329501390457, 0.09943901002407074, 0.5284658074378967, -0.10808170586824417, -0.013338804244995117, -0.08779788762331009, 0.3645622730255127, 0.2040727585554123, -0.20238184928894043, 0.058593109250068665, -0.02311757579445839, 0.7181978821754456, -0.21944592893123627, 0.31329095363616943, 0.2286948561668396, 0.011423323303461075, -0.08702146261930466, -0.19676634669303894, 0.10326187312602997, -0.1487741470336914, 0.1887100338935852, 0.3649291396141052, 0.0375472828745842, 0.03900150582194328, -0.10035714507102966, 0.2032167613506317, 0.06212875619530678, -0.16297335922718048, -0.2788124680519104, -0.15997231006622314, -0.45885977149009705, 0.3117336928844452, 0.19158786535263062, 0.08900509029626846, -0.32088708877563477, 0.08463379740715027, -0.24782408773899078, -0.4116817116737366, -0.039585456252098083, 0.1951415091753006, 0.20081904530525208, 0.11396071314811707, 0.04898737743496895, -0.016184072941541672, -0.1171150952577591, 0.26747608184814453, 0.4194464087486267, -0.16499187052249908, 0.06672907620668411, -0.1280568540096283, 0.109395831823349, -0.0675811842083931, 0.3193850517272949, -0.06579679250717163, -0.11205991357564926, -0.3978941738605499, -0.16188187897205353, 0.06209711730480194, 0.06734562665224075, 0.002971736714243889, -0.33545759320259094, -0.09545116126537323, -0.43700912594795227, 0.28718575835227966, -0.06821639835834503, -0.05159803852438927, 0.4572833478450775, 0.23643217980861664, -0.20391201972961426, 0.16251665353775024, 0.052893657237291336, 0.8192437887191772, -0.12214773893356323, 0.16519181430339813, 0.03279032185673714, -0.05938746780157089, 0.4034767150878906, -0.28868141770362854, 0.1940591037273407, -0.17677409946918488, -0.30612388253211975, 0.10449349880218506, -0.04080815613269806, 0.2328803539276123, 0.20792217552661896, -0.12640519440174103, 0.13854065537452698, -0.09847316890954971, 0.4167664647102356, 0.27647778391838074, -0.003026030957698822, -0.2224704474210739, -0.14139239490032196, -0.22919271886348724, 0.14681877195835114, 0.28117185831069946, 0.19268082082271576, -0.1454823613166809, -0.008617324754595757, 0.12203647196292877, -0.022948453202843666, -0.268562376499176, 0.28663551807403564, -0.16425324976444244, 0.3783472776412964, -0.4507664144039154, -0.10984092950820923, 0.03264639899134636, 0.2600937783718109, 0.25496116280555725, 0.2578197121620178, 0.014677411876618862, 0.08309284597635269, 0.41228508949279785, 0.13230808079242706, -0.15511493384838104, 0.0008574426174163818, 0.41588443517684937, 0.10062850266695023, -0.3379727602005005, 0.1988285779953003, -0.09078405797481537, -0.14765501022338867, 0.003759235143661499, 0.27483922243118286, -0.043328240513801575, -0.11250345408916473, -0.0927647203207016, 0.09353692084550858, -0.0749746561050415, -0.4186442792415619, 0.14433574676513672, -0.052253469824790955, -0.1282397359609604, 0.12125639617443085, -0.44810280203819275, -0.4539901316165924, -0.26990264654159546, 0.5651441216468811, 0.1653047502040863, 0.08968806266784668, 0.3432316780090332, -0.19581572711467743, 0.009230460971593857, -0.19560378789901733, 0.03483283519744873, -0.1255524754524231, -0.32504311203956604, 0.5315564274787903, -0.21403135359287262, -0.10113082081079483, 0.18892572820186615, -0.17375396192073822, 0.11054117977619171, 0.380870521068573, 0.163735494017601, -0.28449347615242004, -0.529198944568634, -0.39041852951049805, -0.052490245550870895, 0.22829894721508026, 0.05084845423698425, -0.007294809445738792, -0.01071320939809084, -0.004558570683002472, -0.33507752418518066, 0.24038828909397125, 0.09190575033426285, 0.07293348014354706, 0.12427935749292374, -0.10434820502996445, -0.2560708224773407, -0.25927311182022095, 0.17759540677070618, 0.32094883918762207, -0.02541022002696991, -0.2779422998428345, -0.32961443066596985, 0.09583296626806259, 0.3220798373222351, -0.1090269535779953, -0.19926317036151886, -0.08584731817245483, -0.21283577382564545, -0.11368517577648163, 0.20989586412906647, 0.41468513011932373, -0.050506509840488434, -0.015248944982886314, 0.3320709466934204, 0.002245098352432251, -0.19977429509162903, -0.09585140645503998, -0.2755777835845947, -0.14803609251976013, 0.06965810060501099, 0.2725878655910492, -0.03616023808717728, 0.12739066779613495, -0.4385444223880768, -0.06491669267416, 0.11951793730258942, 0.08854973316192627, 0.191310316324234, -0.22849617898464203, -0.16638274490833282, -0.08600315451622009, 0.22188422083854675, 0.4013625979423523, 0.04893644154071808, -0.1580478847026825, 0.23256677389144897, 0.2389936000108719, -0.5628601312637329, -0.010694344528019428, 0.19435952603816986, -0.0036498578265309334, 0.09856449067592621, 0.1986972987651825, 0.21040526032447815, -0.16817304491996765, -0.061307474970817566, 0.1347883939743042, 0.25475549697875977, -0.06252822279930115, 0.3317427933216095, 0.6826932430267334, 0.176280215382576, 0.24817508459091187, 0.2562505900859833, 0.1975744068622589, 0.16425275802612305, 0.3292226195335388, 0.022968493402004242, -0.02419288642704487, -0.281563401222229, 0.018447529524564743, -0.3797060549259186, -0.3709610104560852, 0.31608763337135315, 0.4231715798377991, -0.21430844068527222, 0.23659232258796692, 0.03536214306950569, -0.3099907338619232, -0.026485923677682877, 0.02994905784726143, -0.2805517315864563, 0.2032463401556015, -0.12363696843385696, -0.32740122079849243, 0.3878675699234009, -0.202610582113266, -0.17774833738803864, 0.1964988261461258, -0.041075605899095535, 0.02626081556081772, -0.13569752871990204, -0.004874922335147858, -0.27219706773757935, -0.4071179926395416, -0.06439130753278732, 0.11552698910236359, 0.13042235374450684, -0.20576618611812592, -0.09847397357225418, 0.30188673734664917, -0.13642841577529907, -0.0018377825617790222, 0.2399723380804062, 0.37889713048934937, 0.21110831201076508, 0.15349075198173523, -0.0022810818627476692, 0.17388257384300232, -0.008814876899123192, -0.3157624900341034, 0.42000147700309753, 0.06627468764781952, -0.0240950845181942, -0.13709120452404022, 0.20393896102905273, -0.2506950795650482, -0.0812046229839325, 0.15220676362514496, 0.014136521145701408, -0.15470778942108154, 0.49929654598236084, 0.0719960629940033, -0.3092767596244812, -0.0027596764266490936, 0.2752631604671478, 0.025196559727191925, -0.07981734722852707, 0.3267327547073364, -0.1332300305366516, 0.2819020748138428, -0.23000770807266235, 0.11098101735115051, 0.11482734978199005, -0.03475308045744896, 0.455512672662735, -0.4898696839809418, -0.2097957283258438, 0.09886159002780914, -0.8163999915122986, 0.012093581259250641, 0.03284856677055359, 0.20083045959472656, -0.14170975983142853, 0.08337006717920303, -0.008318692445755005, 0.021294089034199715, 0.11451312899589539, 0.3138945400714874, 0.07245711237192154, 0.31026583909988403, -0.05394633114337921, -0.13469041883945465, -0.09586609899997711, -0.14770101010799408, -0.11636529117822647, -0.5594714283943176, 0.07595916092395782, -0.185327410697937, 0.20953041315078735, -0.03706011548638344, 0.006510436534881592, 0.2180148810148239, 0.24442026019096375, 0.4945928156375885, 0.028728732839226723, -0.03322005271911621, -0.052002549171447754, -0.13350334763526917, -0.5665877461433411, -0.03980104625225067, -0.24664025008678436, 0.05008363723754883, 0.15206633508205414, 0.13907936215400696, -0.3625167906284332, -0.3033447861671448, -0.21440482139587402, 0.30890345573425293, 0.20045116543769836, -0.03650501370429993, -0.32255813479423523, -0.022642042487859726, -0.08647479116916656, 0.023742280900478363, 0.2618904411792755, 0.281764954328537, -0.3526061475276947, 0.39245736598968506, -0.39136576652526855, -0.3119352459907532, 0.20781004428863525, -0.348877876996994, -0.35972845554351807, -0.11099811643362045, 0.21950864791870117, -0.05901087075471878, -0.08384612202644348, 0.0804014578461647, 0.3842256963253021, 0.22002607583999634, -0.12928169965744019, -0.2282669097185135, 0.11827948689460754, -0.4038979709148407, 0.1522318571805954, -0.09264294803142548, 0.15833711624145508, 0.15146377682685852, -0.215383842587471, 0.1477637141942978, -0.07969997823238373 ]
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.049786314368247986, -0.05474432557821274, -0.12806656956672668, 0.0003010854125022888, -0.03935454785823822, -0.0071311816573143005, 0.35460445284843445, 0.16591526567935944, 0.19368606805801392, 0.20558106899261475, 0.06397932022809982, 0.1460067629814148, -0.02429262548685074, 0.1997431218624115, -0.014876269735395908, -0.20615312457084656, -0.04741782695055008, 0.0075568705797195435, -0.09543997049331665, -0.09535465389490128, -0.1237473413348198, 0.1472281962633133, -0.13759160041809082, -0.21125416457653046, -0.4580725133419037, -0.08757724612951279, -0.17305602133274078, -0.02534545212984085, -0.17212964594364166, -0.07761885225772858, -0.1209002137184143, 0.19935563206672668, -0.143584206700325, 0.3342965543270111, -0.00009734711784403771, -0.11899960041046143, 0.23090723156929016, -0.18028394877910614, -0.08710257709026337, 0.05766133964061737, 0.1233595535159111, -0.018355416133999825, -0.3197697699069977, -0.4497416019439697, -0.19174206256866455, -0.09192657470703125, 0.2502591907978058, 0.08722643554210663, 0.2207231968641281, -0.017193792387843132, 0.32803958654403687, -0.12104445695877075, 0.10394823551177979, 0.024298233911395073, 0.04086683690547943, 0.11211149394512177, -0.13301204144954681, -0.000700509175658226, 0.015008382499217987, -0.32461729645729065, -0.1604316532611847, 0.6847470998764038, 0.017173031345009804, 0.027253972366452217, 0.06144128739833832, 0.05636601150035858, -0.17214149236679077, -0.3297246992588043, 0.17903533577919006, 0.4349500238895416, 0.5310003161430359, 0.0022284984588623047, -0.16606596112251282, -0.053197264671325684, -0.08755920827388763, -0.06500991433858871, 0.1432967185974121, 0.2999431788921356, -0.13682296872138977, 0.02394287846982479, -0.2666972875595093, 0.0028922439087182283, -0.2545391619205475, 0.15935982763767242, -0.19594639539718628, 0.41311222314834595, 0.021566472947597504, 0.032652758061885834, -0.0001826658844947815, -0.2101522833108902, -0.43693745136260986, -0.012732207775115967, 0.21254637837409973, 0.009994764812290668, 0.038108982145786285, -0.2509273886680603, -0.050386399030685425, -0.15460911393165588, 0.3692227602005005, -0.19737845659255981, -0.04035874083638191, 0.07332420349121094, -0.18251340091228485, 0.30016613006591797, 0.11515654623508453, -0.27358055114746094, -0.1728774607181549, 0.021519139409065247, 0.18278463184833527, 0.08740608394145966, -0.2466638684272766, 0.1344638466835022, 0.2253025621175766, -0.10297305136919022, -0.17729878425598145, -0.08780054748058319, 0.10702037811279297, -0.0466613844037056, -0.10756058245897293, -0.008583302609622478, -0.14670515060424805, -0.0710126981139183, -0.4360581040382385, 0.2165168821811676, -0.03357608988881111, 0.10984993726015091, 0.1278970092535019, 0.1473863124847412, -0.2188080996274948, -0.1533711701631546, -0.10578680783510208, 0.10091513395309448, 0.05574006959795952, 0.27904561161994934, 0.12110260128974915, 0.3311379849910736, 0.25673484802246094, -0.08240292221307755, 0.1746453493833542, 0.09472008049488068, 0.04164845496416092, -0.09531080722808838, 0.25552430748939514, -0.008911821991205215, 0.01646241545677185, -0.12272751331329346, -0.051241207867860794, -0.2793620824813843, -0.19902443885803223, 0.027065463364124298, -0.10847281664609909, 0.20363174378871918, -0.32129064202308655, 0.2668367326259613, 0.14469760656356812, -0.058351367712020874, -0.004564233124256134, 0.6982095241546631, 0.09597602486610413, 0.0308421291410923, 0.13653087615966797, 0.14452484250068665, -0.39588481187820435, -0.0636468380689621, 0.24535244703292847, 0.44906818866729736, -0.0886281281709671, 0.025528430938720703, 0.3061012327671051, 0.3564613163471222, 0.019369810819625854, 0.19322054088115692, 0.024550652131438255, -0.01815114915370941, 0.04887533187866211, 0.26301783323287964, -0.1056206002831459, -0.2358686774969101, -0.11953935027122498, -0.1759907603263855, -0.09651158004999161, 0.10207616537809372, 0.032643549144268036, 0.2860513925552368, 0.27005067467689514, -0.10277528315782547, 0.0935341939330101, 0.6013002991676331, -0.18929436802864075, 0.21376574039459229, -0.21300704777240753, -0.38633257150650024, -0.0069002024829387665, 0.32738035917282104, 0.12856359779834747, -0.4685770869255066, 0.22502323985099792, 0.19093994796276093, 0.031998567283153534, -0.38458704948425293, 0.09872263669967651, 0.007533874362707138, -0.031035203486680984, 0.09958434104919434, 0.09182801842689514, -0.23989492654800415, -0.007951736450195312, 0.054679349064826965, 0.20491550862789154, 0.48322197794914246, -0.1773444265127182, -0.24813418090343475, -0.03899585083127022, -0.15137524902820587, -0.10651393234729767, -0.36987102031707764, 0.35374316573143005, 0.12058661878108978, -0.004548672586679459, 0.22105713188648224, 0.07844983041286469, -0.059415921568870544, -0.316344290971756, -0.04560195282101631, 0.1199059784412384, 0.18675994873046875, -0.2623734474182129, -0.018575821071863174, 0.12186606228351593, 0.08605311065912247, -0.08356063812971115, 0.180764839053154, 0.09117485582828522, 0.19132494926452637, 0.046176787465810776, 0.3455415964126587, 0.26779550313949585, 0.053058043122291565, 0.3559017777442932, -0.6900478005409241, -0.06900864839553833, 0.19123424589633942, 0.0030613429844379425, 0.0122598335146904, -0.2659727931022644, 0.1819278448820114, 0.27170395851135254, 0.045216988772153854, -0.08044526726007462, -0.00830848515033722, 0.14734695851802826, -0.024439169093966484, 0.0583702027797699, -0.36466169357299805, -0.0810377299785614, 0.21299909055233002, -0.2515611946582794, -0.23260580003261566, -0.18902426958084106, 0.18087485432624817, 0.5132713317871094, 0.24331724643707275, 0.3687908351421356, 0.16841793060302734, -0.11996790021657944, -0.14010484516620636, -0.006869647651910782, -0.09601569175720215, -0.16881190240383148, 0.3742105960845947, -0.05377241596579552, -0.1260633021593094, -0.2724704146385193, -0.09229523688554764, 0.1780955195426941, -0.015892393887043, 0.22313155233860016, 0.04866483807563782, 0.24922430515289307, -0.02499089017510414, -0.45774397253990173, -0.1271137148141861, -0.15744900703430176, -0.1973031461238861, 0.05628226324915886, 0.07846488803625107, -0.07133181393146515, -0.19916021823883057, -0.06696515530347824, 0.28336066007614136, -0.30871230363845825, -0.11430852860212326, 0.35222285985946655, 0.015218764543533325, -0.11031125485897064, 0.18331359326839447, 0.08732426166534424, 0.17335641384124756, 0.18623438477516174, 0.02455810084939003, -0.13379396498203278, -0.5455777049064636, -0.061116695404052734, 0.26861318945884705, 0.17435939610004425, -0.01615055464208126, 0.537742018699646, -0.1781013309955597, 0.03677402064204216, -0.28842511773109436, -0.7053375244140625, 0.10204719007015228, -0.1840779036283493, 0.19695612788200378, 0.015518277883529663, 0.27606579661369324, -0.22341620922088623, -0.15411317348480225, 0.15462994575500488, -0.1017465814948082, -0.1935490369796753, -0.22095857560634613, 0.04807687923312187, 0.04209984466433525, -0.22918657958507538, -0.21489685773849487, -0.1442076712846756, -0.24474850296974182, 0.10660214722156525, 0.3489592671394348, 0.17218750715255737, 0.06473638862371445, 0.38381731510162354, 0.02806619182229042, -0.02386982925236225, 0.27641358971595764, -0.357116162776947, -0.032202936708927155, 0.36824652552604675, -0.30390986800193787, -0.40381553769111633, -0.16452720761299133, -0.18276670575141907, 0.16991344094276428, 0.05919545143842697, -0.385204553604126, -0.39320582151412964, 0.016092542558908463, 0.19645771384239197, 0.2606026530265808, 0.07765540480613708, 0.16889680922031403, 0.1696973741054535, -0.2888210415840149, -0.12013012915849686, -0.09050038456916809, 0.10876289010047913, 0.08043919503688812, 0.03271743655204773, 0.2156328558921814, 0.09163673222064972, 0.22650334239006042, 0.6132444739341736, -0.16133956611156464, -0.02815696969628334, 0.4119827449321747, -0.038380905985832214, 0.22410418093204498, -0.0002335384488105774, -0.0705116018652916, 0.49728572368621826, 0.009116441011428833, 0.15814514458179474, 0.2489975243806839, 0.10939521342515945, -0.45752620697021484, -0.142506942152977, 0.07410737872123718, -0.4309844374656677, -0.18312905728816986, 0.1126234382390976, 0.2822228670120239, 0.13590240478515625, -0.12557262182235718, -0.11187726259231567, -0.19500744342803955, -0.21409901976585388, 0.1501377373933792, 0.13654610514640808, -0.03306736797094345, -0.08543971180915833, -0.14780277013778687, 0.044079240411520004, -0.20995831489562988, 0.1326000839471817, 0.38083893060684204, -0.1713131070137024, -0.1235295981168747, -0.06418924033641815, -0.14828163385391235, -0.22657343745231628, 0.24561753869056702, -0.3066805899143219, -0.03962182253599167, -0.00018578022718429565, -0.005773566663265228, 0.017194008454680443, 0.22118280827999115, -0.20882590115070343, -0.3443022072315216, -0.04523104056715965, 0.24777260422706604, -0.4293946623802185, 0.08817049860954285, 0.39060866832733154, 0.1875750720500946, -0.09826002269983292, 0.0725133866071701, -0.15351350605487823, -0.446605384349823, -0.46398064494132996, 0.07592828571796417, -0.01792304776608944, 0.2340526282787323, 0.16927435994148254, -0.046104107052087784, -0.04956119507551193, -0.03458037227392197, -0.031356796622276306, 0.3599343001842499, 0.023260530084371567, 0.24515341222286224, -0.1866830587387085, 0.015925906598567963, -0.03627559542655945, -0.03926883637905121, 0.2646232843399048, 0.06555986404418945, 0.06209947168827057, -0.19048818945884705, -0.17988675832748413, -0.008132770657539368, 0.132587268948555, 0.24912528693675995, -0.03252903372049332, 0.00990187469869852, 0.03238069638609886, -0.3869566023349762, 0.21385280787944794, 0.10158636420965195, 0.11076098680496216, -0.014832952059805393, -0.268207848072052, 0.3575323224067688, 0.013969291001558304, 0.08968245983123779, 0.38964924216270447, 0.08274810016155243, -0.40773311257362366, 0.13139747083187103, 0.6063616871833801, 0.8766948580741882, -0.1784278303384781, 0.1968851089477539, 0.11565276235342026, -0.12276973575353622, 0.4901369512081146, -0.012511305510997772, 0.08938979357481003, -0.09030497074127197, 0.046205464750528336, -0.04825744032859802, 0.18107669055461884, 0.023386452347040176, -0.007180027663707733, -0.23839682340621948, -0.059148628264665604, 0.4950779676437378, 0.050988826900720596, 0.022318027913570404, 0.24544116854667664, -0.018000388517975807, -0.3712226152420044, -0.16389159858226776, 0.23962140083312988, -0.13479429483413696, -0.0386178232729435, 0.02055460214614868, -0.12826475501060486, -0.056306593120098114, -0.24087299406528473, -0.26612186431884766, -0.03752627968788147, -0.3923753499984741, 0.20526425540447235, -0.25204792618751526, -0.23213134706020355, 0.05400070175528526, 0.1925722360610962, 0.1538781076669693, -0.011854499578475952, -0.19310209155082703, 0.2699621617794037, -0.21669602394104004, -0.12972860038280487, 0.0994478240609169, -0.07785575091838837, 0.31346091628074646, -0.16212612390518188, -0.2310345470905304, 0.06826409697532654, 0.35306990146636963, -0.20035326480865479, -0.37840569019317627, -0.15962041914463043, 0.2148570716381073, 0.3098067343235016, -0.0714120864868164, 0.03680948540568352, -0.40809300541877747, -0.25505635142326355, 0.26626086235046387, -0.17208440601825714, 0.1280953735113144, 0.0953228548169136, 0.33815744519233704, -0.06617210805416107, 0.012041343376040459, 0.2799670398235321, 0.15132424235343933, 0.06921602785587311, 0.2529289126396179, 0.19705116748809814, -0.15937744081020355, -0.26254820823669434, -0.14282634854316711, -0.21437929570674896, -0.3051331639289856, -0.13529817759990692, 0.0671672597527504, -0.20435284078121185, -0.13380281627178192, 0.364198237657547, 0.1625056266784668, -0.025559239089488983, 0.09161864221096039, -0.07917734235525131, -0.043532248586416245, 0.3351585268974304, -0.2645077109336853, 0.2620089054107666, 0.13626134395599365, 0.09192387759685516, 0.06210027635097504, 0.24666626751422882, -0.469770610332489, 0.0008083214052021503, -0.27682462334632874, 0.22043859958648682, 0.28419581055641174, -0.18620598316192627, -0.02803078293800354, 0.1253686100244522, 0.3021199405193329, 0.0017986800521612167, -0.168561190366745, -0.3627263903617859, -0.24314375221729279, 0.04227727651596069, 0.03341080620884895, -0.13467229902744293, 0.02545703947544098, -0.07903227210044861, -0.08361507952213287, -0.16225314140319824, 0.09319363534450531, -0.22409743070602417, -0.24724198877811432, 0.22282540798187256, -0.18231379985809326, 0.0700707659125328, 0.09484605491161346, -0.18610793352127075, -0.09508487582206726, 0.41560500860214233, 0.0535980686545372, -0.10834205150604248, 0.22086495161056519, -0.13956665992736816, -0.026013752445578575, 0.29093414545059204, -0.2630015015602112, 0.013308010995388031, 0.27663400769233704, 0.14192423224449158, -0.03432460501790047, 0.24412013590335846, 0.26160478591918945, -0.21285313367843628, -0.27817630767822266, -0.07092933356761932, 0.20340582728385925, 0.3885401487350464, -0.348049521446228, -0.00026899881777353585, 0.3647507131099701, -0.40265023708343506, 0.40580040216445923, 0.30525049567222595, 0.16807585954666138, -0.047095030546188354, -0.2581315040588379, 0.07653919607400894, -0.016994807869195938, -0.43400275707244873, -0.020303849130868912, 0.14155584573745728, 0.11057567596435547, 0.04873601719737053, -0.06017052382230759, 0.15924732387065887, 0.27904465794563293, 0.27026307582855225, -0.05767162889242172, 0.40032538771629333, 0.07007229328155518, 0.053659453988075256, 0.2820590138435364, 0.21632394194602966, 0.5008887052536011, 0.1520392745733261, 0.06153292581439018, 0.3375331163406372, 0.06671115756034851, -0.048949308693408966, 0.023166317492723465, -0.14150863885879517, -0.11761551350355148, 0.31344112753868103, -0.014749959111213684, -0.07158579677343369, -0.397522509098053, -0.21558520197868347, -0.05025347322225571, 0.09920422732830048, 0.08556686341762543, -0.14505691826343536, 0.23546361923217773, 0.05249664932489395, -0.1196649968624115, -0.24438636004924774, -0.04307171702384949, -0.06646475940942764, 0.5451586842536926, -0.19913822412490845, 0.06965968757867813, 0.2658623456954956, -0.035609059035778046, 0.0963544100522995, 0.40212225914001465, 0.19850414991378784, 0.0789165049791336, -0.2381744384765625, 0.1088351160287857, -0.04457850009202957, -0.14409804344177246, -0.14252537488937378, -0.030538365244865417, 0.1477598398923874, -0.27485960721969604, 0.34937500953674316, 0.26314598321914673, -0.3019365072250366, -0.32111451029777527, 0.3872305750846863, -0.13458727300167084, -0.010065972805023193, -0.6193215250968933, -0.002628657966852188, 0.04432021826505661, -0.15217699110507965, 0.10487865656614304, -0.5363394618034363, -0.09522518515586853, -0.08854328095912933, -0.03213438391685486, 0.027720224112272263, -0.16482959687709808, 0.13386307656764984, 0.07524232566356659, 0.4413735866546631, 0.2891276776790619, 0.06067609414458275, 0.0619644969701767, -0.22793425619602203, -0.5278969407081604, 0.11675382405519485, -0.07994088530540466, -0.4166080951690674, -0.1129242479801178, 0.3505660891532898, 0.24548953771591187, 0.23853245377540588, 0.10032080858945847, -0.15066558122634888, 0.24236533045768738, 0.07097400724887848, -0.28754207491874695, 0.08085831999778748, 0.05618767812848091, 0.05418020486831665, -0.0941888839006424, -0.1719169318675995, 0.12519590556621552, -0.24718457460403442, 0.3233294188976288, -0.24117575585842133, 0.11204297840595245, -0.17017686367034912, 0.07295744121074677, 0.06469178199768066, -0.02728852815926075, 0.1814376562833786, -0.43561264872550964, -0.31987446546554565, -0.036258962005376816, 0.01158897764980793, -0.1519787609577179, 0.11356347799301147, 0.15610657632350922, 0.5797209739685059, 0.06924936175346375, -0.07130156457424164, 0.10666278749704361, 0.4916713237762451, 0.02018483728170395, 0.029558809474110603, 0.0948425829410553, 0.031026648357510567, 0.2517525255680084, -0.19978243112564087, -0.07885941863059998, 0.3963516056537628, -0.09071627259254456, -0.12833529710769653, -0.0551321767270565, -0.6203973889350891, 0.1190897598862648, -0.43966686725616455, -0.1874823421239853, -0.03732084855437279, -0.13978630304336548, 0.10886219143867493, 0.399653822183609, -0.30557751655578613, 0.20878097414970398, 0.22387003898620605, 0.19300884008407593, -0.2440028190612793, 0.36047792434692383, 0.11555562913417816, -0.14298197627067566, -0.08355705440044403, -0.18053048849105835, -0.04298260062932968, -0.07564948499202728, -0.21745990216732025, -0.32981085777282715 ]
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.08095181733369827, -0.22145545482635498, -0.19897301495075226, 0.013309746980667114, 0.05485624074935913, 0.0012884736061096191, 0.43179571628570557, 0.09052827209234238, 0.29725122451782227, 0.14708267152309418, -0.014003012329339981, 0.11782090365886688, -0.18012912571430206, 0.27506306767463684, 0.1759229302406311, -0.2347298562526703, 0.052885789424180984, -0.052558913826942444, -0.1111661046743393, -0.07941927015781403, -0.05225706472992897, 0.19801343977451324, -0.19383810460567474, -0.2477927953004837, -0.3986717164516449, -0.10571994632482529, -0.17398926615715027, -0.016952037811279297, -0.18466448783874512, 0.03277386724948883, -0.26081275939941406, 0.07331765443086624, -0.11569724977016449, 0.4770057797431946, -0.00009640317875891924, -0.064579539000988, 0.21438449621200562, -0.14239059388637543, -0.05455983430147171, -0.17770765721797943, 0.041535332798957825, -0.004911393392831087, -0.25490087270736694, -0.28132325410842896, -0.18397924304008484, -0.15387800335884094, 0.27004534006118774, -0.002981279045343399, 0.305342435836792, 0.12109779566526413, 0.3088105618953705, -0.14746785163879395, 0.2071540504693985, -0.051437754184007645, 0.13264347612857819, 0.1544087827205658, -0.24827484786510468, -0.09643621742725372, 0.09663920104503632, -0.22675716876983643, -0.24215510487556458, 0.6854543685913086, 0.11605705320835114, 0.025015536695718765, -0.025282233953475952, 0.007096111308783293, -0.09264979511499405, -0.2954960763454437, 0.1886395514011383, 0.4700399339199066, 0.5937215089797974, -0.163062185049057, -0.1721823811531067, 0.09196742624044418, -0.048703745007514954, 0.03976897895336151, 0.040856510400772095, 0.357105016708374, -0.16184033453464508, 0.06495922803878784, -0.17831775546073914, -0.15133218467235565, -0.17268788814544678, 0.2914958596229553, -0.09491044282913208, 0.4078671336174011, -0.03154544159770012, -0.05558110773563385, -0.037376757711172104, -0.17771488428115845, -0.21642373502254486, 0.05230841785669327, 0.2419593185186386, 0.06623635441064835, 0.03358634188771248, -0.12569113075733185, 0.03854900971055031, -0.11351127177476883, 0.34175077080726624, -0.27747219800949097, -0.05657520145177841, 0.13290153443813324, -0.3231116235256195, 0.30923959612846375, 0.1385563164949417, -0.21742470562458038, -0.14503276348114014, -0.18548181653022766, 0.19510145485401154, 0.03250058740377426, -0.2619888484477997, 0.15055793523788452, 0.09972085803747177, -0.021424680948257446, -0.2273956537246704, -0.16076886653900146, -0.05164634436368942, 0.09113915264606476, 0.11939715594053268, -0.07075934112071991, -0.14215874671936035, -0.06617975980043411, -0.31771254539489746, 0.2407016158103943, 0.10100480914115906, 0.08155827224254608, 0.0965307205915451, 0.24758967757225037, -0.14709900319576263, -0.17651672661304474, -0.08815371245145798, 0.22484154999256134, -0.1903701275587082, 0.1265023648738861, 0.15928015112876892, 0.5113361477851868, 0.25375041365623474, -0.07337728887796402, 0.11290910094976425, 0.00183168426156044, 0.08566080033779144, -0.10014010965824127, 0.20698390901088715, -0.05579133704304695, 0.0809682309627533, -0.15241310000419617, -0.07337313890457153, -0.310289204120636, -0.15553882718086243, 0.07735223323106766, -0.08899127691984177, 0.04937728866934776, -0.41611507534980774, 0.253064900636673, 0.12848494946956635, -0.08091790229082108, 0.09084740281105042, 0.7699174284934998, 0.05824897810816765, -0.0342356413602829, 0.17984768748283386, 0.28333473205566406, -0.37971362471580505, -0.0025154605973511934, 0.17577412724494934, 0.39056485891342163, -0.09242035448551178, -0.06425466388463974, 0.13284827768802643, 0.2665214240550995, -0.05839408189058304, 0.21739079058170319, -0.056730691343545914, 0.08785764127969742, 0.02464950643479824, 0.23228783905506134, 0.06946076452732086, -0.13952918350696564, -0.04350058734416962, -0.10111001133918762, -0.08136071264743805, 0.0106057059019804, 0.08365482836961746, 0.29814469814300537, -0.01279376819729805, 0.09652911871671677, 0.008078612387180328, 0.6753436923027039, -0.10981579124927521, 0.22860032320022583, -0.27377793192863464, -0.42782819271087646, -0.011398125439882278, 0.3287436068058014, 0.14537669718265533, -0.40550556778907776, 0.3278425633907318, 0.2322443127632141, 0.09498690068721771, -0.3136892318725586, 0.10858538001775742, 0.022320467978715897, -0.0005046278238296509, 0.14671149849891663, 0.10928486287593842, -0.29647305607795715, -0.08367571979761124, -0.13040170073509216, 0.13182398676872253, 0.4837469160556793, -0.24828927218914032, -0.24802811443805695, 0.004285268485546112, -0.2053588479757309, -0.062192950397729874, -0.270466685295105, 0.36171025037765503, 0.17162993550300598, -0.13062119483947754, 0.27247196435928345, 0.04305848106741905, -0.0919281393289566, -0.2533153295516968, -0.062268782407045364, -0.040629446506500244, 0.15818782150745392, -0.2046286016702652, -0.01777779310941696, 0.04724930226802826, 0.19870054721832275, -0.29617083072662354, 0.0533343143761158, 0.1038888543844223, 0.18656498193740845, 0.07922600954771042, 0.3698841333389282, 0.38739174604415894, 0.11207970976829529, 0.29212355613708496, -0.6291123628616333, 0.11541492491960526, 0.0760284885764122, -0.006125586573034525, -0.017606407403945923, -0.3841998875141144, 0.0472668781876564, 0.19283396005630493, -0.001658111810684204, 0.11443361639976501, 0.07339289784431458, 0.2081536501646042, -0.09567837417125702, -0.004993312992155552, -0.3668540418148041, 0.001606181263923645, 0.17344367504119873, -0.1884860247373581, -0.18246136605739594, -0.20302589237689972, 0.08076875656843185, 0.5237087607383728, 0.22584179043769836, 0.5505995750427246, 0.1254284679889679, -0.14207962155342102, -0.28885772824287415, 0.05498611181974411, -0.29412686824798584, -0.16557727754116058, 0.3116266429424286, -0.025124583393335342, -0.17824266850948334, -0.048234857618808746, -0.08552771806716919, 0.13381607830524445, -0.02769291400909424, 0.19049648940563202, 0.09144411981105804, 0.2914774715900421, -0.11498131603002548, -0.5630306005477905, -0.07052677869796753, -0.02238374762237072, -0.21006318926811218, 0.09556345641613007, 0.05322917550802231, 0.008563747629523277, -0.2813548445701599, -0.0914490669965744, 0.10905756056308746, -0.27413415908813477, -0.04608871787786484, 0.34481674432754517, -0.061295878142118454, -0.10884244740009308, 0.22262899577617645, 0.2646668255329132, 0.2659236490726471, 0.05352286994457245, -0.032707929611206055, -0.056933335959911346, -0.448012113571167, -0.0012578628957271576, 0.2744464874267578, 0.3094530999660492, 0.0774373784661293, 0.44925349950790405, -0.17061860859394073, -0.0032698726281523705, -0.19704028964042664, -0.6828349828720093, 0.19318577647209167, -0.17993319034576416, 0.22229747474193573, 0.046534713357686996, 0.05980030074715614, -0.21620911359786987, -0.17843875288963318, 0.1267051100730896, -0.15505634248256683, -0.12783268094062805, -0.05143868178129196, 0.0643262267112732, 0.07919662445783615, -0.17118224501609802, -0.26518163084983826, -0.1608147919178009, -0.32268476486206055, 0.32410138845443726, 0.23656807839870453, 0.11344929039478302, -0.05678185820579529, 0.38455888628959656, 0.05180151015520096, -0.02313235215842724, 0.2783184051513672, -0.3127381205558777, -0.05892843008041382, 0.15155921876430511, -0.36460402607917786, -0.3476811945438385, -0.2444104254245758, -0.19888103008270264, 0.25256842374801636, 0.08084285259246826, -0.4292118549346924, -0.3522474467754364, 0.03118167072534561, 0.20614655315876007, 0.1419825553894043, 0.08425959944725037, 0.2448367029428482, 0.19040849804878235, -0.2793107032775879, -0.15480665862560272, -0.004161294549703598, 0.025512509047985077, -0.11572083085775375, 0.07603423297405243, 0.17832764983177185, 0.013950968161225319, 0.2965380549430847, 0.44652020931243896, -0.21760551631450653, 0.14767813682556152, 0.3842284083366394, 0.0036173202097415924, 0.1714644581079483, -0.2575019896030426, -0.10828850418329239, 0.5114599466323853, -0.015588045120239258, 0.053223349153995514, 0.3055925965309143, 0.13872328400611877, -0.493772953748703, -0.10477443039417267, 0.1593838483095169, -0.5112807750701904, -0.13315121829509735, 0.1892555058002472, 0.14039021730422974, 0.1600523293018341, -0.1513727903366089, -0.30179303884506226, -0.175591841340065, -0.18795594573020935, 0.18348591029644012, 0.255495548248291, -0.06632307916879654, -0.08578671514987946, -0.17686478793621063, 0.03698524087667465, -0.12111332267522812, 0.04710835963487625, 0.302589476108551, -0.11035996675491333, -0.16570469737052917, -0.12560373544692993, -0.06918081641197205, -0.14235244691371918, 0.2711545526981354, -0.3945426940917969, -0.1802496761083603, 0.10244525969028473, -0.06272757053375244, -0.07763592898845673, 0.27616965770721436, -0.3302932381629944, -0.26177847385406494, 0.06333509087562561, 0.31135380268096924, -0.37196624279022217, 0.07628639042377472, 0.4057542383670807, 0.1531732976436615, 0.004567913711071014, -0.03824713081121445, -0.08394909650087357, -0.23030903935432434, -0.4416760504245758, 0.0756097286939621, -0.04752425104379654, 0.12861569225788116, 0.29467785358428955, -0.07334324717521667, -0.031438663601875305, -0.04845522344112396, -0.09013310074806213, 0.25700971484184265, -0.08997445553541183, 0.28485941886901855, -0.16903060674667358, -0.12597186863422394, -0.11030407249927521, -0.1840963214635849, 0.17070335149765015, -0.08021946251392365, -0.05677470564842224, -0.201410710811615, -0.2966364920139313, 0.09549055993556976, 0.07313936203718185, 0.2481430321931839, 0.08078150451183319, -0.06387706100940704, -0.016712874174118042, -0.33517855405807495, 0.16095896065235138, 0.2288006991147995, 0.21698881685733795, 0.005677528213709593, -0.2819865643978119, 0.3445275127887726, -0.0730208158493042, 0.03978410363197327, 0.36888545751571655, -0.13239923119544983, -0.4168667197227478, 0.3294697403907776, 0.36678004264831543, 0.9066298604011536, -0.14122888445854187, 0.2516900300979614, 0.0521107017993927, 0.044372595846652985, 0.37963032722473145, -0.28289246559143066, 0.06048302724957466, 0.0479288287460804, 0.05638551712036133, -0.05485493689775467, 0.19236822426319122, -0.011786073446273804, 0.03259318321943283, -0.27516570687294006, -0.17450127005577087, 0.35041242837905884, 0.10968862473964691, 0.058124177157878876, 0.346321702003479, -0.0501321405172348, -0.4585261344909668, -0.28101620078086853, 0.23336729407310486, 0.07365462183952332, -0.1327337920665741, -0.01868433505296707, -0.098853699862957, 0.039856281131505966, -0.07208247482776642, -0.33935052156448364, -0.07062475383281708, -0.3228846490383148, 0.21838968992233276, -0.3081163763999939, -0.3472003936767578, 0.1668401062488556, 0.2316644936800003, 0.21304328739643097, 0.12620475888252258, -0.26043230295181274, 0.20590727031230927, -0.08193855732679367, -0.14365233480930328, 0.000034504570066928864, -0.09366391599178314, 0.3640662133693695, -0.15772786736488342, -0.19656488299369812, 0.03128918632864952, 0.2719179391860962, -0.19143874943256378, -0.4962571859359741, -0.176363006234169, 0.32317596673965454, 0.2469758540391922, 0.0594012625515461, 0.2734149098396301, -0.42008212208747864, -0.27990034222602844, 0.2923045754432678, -0.12402765452861786, 0.13973425328731537, 0.09062658995389938, 0.24570384621620178, -0.08709099888801575, -0.048111166805028915, 0.24096989631652832, 0.28114914894104004, 0.08177346736192703, 0.20429101586341858, 0.31325486302375793, -0.12314565479755402, -0.41188210248947144, -0.2268984019756317, 0.011282729916274548, -0.30437979102134705, -0.09970290213823318, 0.07503017038106918, -0.3576359152793884, -0.18534550070762634, 0.2977914810180664, 0.09450677037239075, -0.010885648429393768, -0.02808127924799919, -0.10470706224441528, -0.050486281514167786, 0.4871654510498047, -0.12338970601558685, 0.1704576313495636, 0.04983273893594742, 0.13686352968215942, 0.16614463925361633, 0.2778995633125305, -0.4913753867149353, 0.09990747272968292, -0.1608658730983734, 0.16170647740364075, 0.11409832537174225, -0.21180638670921326, 0.03912116959691048, 0.13119420409202576, 0.28524941205978394, -0.0028897635638713837, -0.17130380868911743, -0.37459808588027954, -0.16068413853645325, 0.04897017776966095, 0.040619321167469025, -0.02180428057909012, 0.20073680579662323, -0.10216923803091049, -0.0751921683549881, -0.2093646228313446, 0.17014050483703613, -0.03321072831749916, -0.23526965081691742, 0.18653033673763275, -0.16080690920352936, 0.11870458722114563, 0.11410021781921387, -0.1843494325876236, -0.020273171365261078, 0.2034224569797516, 0.17483629286289215, -0.16931754350662231, 0.2350272685289383, -0.09057510644197464, 0.07169602066278458, 0.23527276515960693, -0.16093866527080536, 0.15086281299591064, 0.22368314862251282, 0.11561708152294159, 0.04674017056822777, 0.08891168236732483, 0.24422761797904968, -0.20317724347114563, -0.3575412929058075, 0.009893348440527916, 0.21284279227256775, 0.3950456380844116, -0.3788527846336365, -0.10326719284057617, 0.16370601952075958, -0.3952120542526245, 0.4144684672355652, 0.25804004073143005, 0.1857471466064453, -0.010285288095474243, -0.10415004193782806, 0.07064108550548553, -0.1911446750164032, -0.36049461364746094, -0.0429544597864151, 0.04365060478448868, 0.03835899755358696, 0.08624209463596344, -0.12595701217651367, 0.1100238561630249, 0.20905651152133942, 0.2760356664657593, -0.05480944365262985, 0.3306509852409363, -0.01644604280591011, 0.09519044309854507, 0.33872464299201965, 0.2413450926542282, 0.4937801957130432, 0.09870947897434235, 0.02643398940563202, 0.35702165961265564, -0.04185870289802551, 0.2647007405757904, 0.10941662639379501, -0.03478497639298439, -0.15749959647655487, 0.18723264336585999, 0.018663112074136734, -0.11931617558002472, -0.2749848961830139, -0.15809187293052673, -0.13445712625980377, 0.035770658403635025, -0.012138020247220993, -0.06089694797992706, 0.1425047218799591, 0.06594710797071457, -0.11282312870025635, -0.2013249546289444, 0.06159782409667969, -0.0594315305352211, 0.45025283098220825, -0.23464569449424744, 0.25870147347450256, 0.19518980383872986, -0.004693634808063507, 0.020392047241330147, 0.4529596269130707, 0.11210423707962036, 0.019977552816271782, -0.11757197976112366, 0.08753135055303574, -0.11430871486663818, -0.06177174299955368, -0.19209924340248108, 0.07246054708957672, 0.3947683274745941, -0.0750952661037445, 0.24755851924419403, 0.236138254404068, -0.3471648395061493, -0.15230661630630493, 0.43453678488731384, -0.19781017303466797, -0.04680353403091431, -0.5462713241577148, 0.0078045278787612915, 0.04083511233329773, -0.2892579436302185, 0.06904980540275574, -0.6371960043907166, -0.043085746467113495, -0.0008576586842536926, -0.06715676188468933, 0.047366976737976074, -0.09514543414115906, 0.14055076241493225, 0.12367331981658936, 0.44215017557144165, 0.3087596595287323, 0.13027606904506683, 0.09615232795476913, -0.3838951587677002, -0.44643884897232056, 0.16547201573848724, -0.10002288222312927, -0.0665665790438652, -0.14524856209754944, 0.32115408778190613, 0.28465476632118225, 0.277197003364563, -0.008525237441062927, -0.1527164876461029, -0.014644348993897438, 0.11270709335803986, -0.397560179233551, 0.17676931619644165, 0.09611843526363373, 0.19937308132648468, -0.029978910461068153, -0.1019919142127037, 0.10344365984201431, -0.056199878454208374, 0.2615945637226105, -0.20364007353782654, 0.1029626727104187, -0.12649989128112793, -0.06585241854190826, 0.169773131608963, -0.10927766561508179, 0.09203878790140152, -0.45551472902297974, -0.3111361265182495, -0.13918665051460266, -0.12333963811397552, -0.14755098521709442, 0.2659364640712738, 0.2873291075229645, 0.41759103536605835, -0.026123858988285065, -0.10639519989490509, 0.21460986137390137, 0.4109916090965271, -0.006987996399402618, 0.08132826536893845, 0.03002091683447361, -0.07310058176517487, 0.3030548095703125, -0.15915200114250183, -0.09850559383630753, 0.48111701011657715, -0.14489828050136566, -0.21751853823661804, -0.037231117486953735, -0.5459349155426025, 0.08171116560697556, -0.3308121860027313, -0.2261420041322708, -0.07653248310089111, -0.08249609172344208, 0.04652729257941246, 0.23571845889091492, -0.42320215702056885, 0.19491803646087646, 0.2078906148672104, 0.32153263688087463, -0.06278397142887115, 0.3240293264389038, 0.1668279618024826, -0.17045019567012787, -0.15098796784877777, -0.09969240427017212, 0.04327376186847687, -0.074407659471035, -0.19396694004535675, -0.3827582001686096 ]
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.3016425371170044, -0.19038788974285126, -0.024149421602487564, 0.09902919083833694, 0.3130389451980591, -0.1301402449607849, 0.3114990293979645, 0.26464855670928955, -0.10267776250839233, 0.2515559792518616, -0.03294175863265991, 0.35797441005706787, -0.049966856837272644, 0.08787204325199127, -0.1619880348443985, 0.12684950232505798, -0.050525419414043427, 0.06851916015148163, 0.040893301367759705, 0.11360020935535431, -0.5712684988975525, -0.1570848822593689, -0.21687562763690948, 0.057249315083026886, 0.012679610401391983, 0.06866815686225891, 0.0916290134191513, 0.24228164553642273, -0.07749299705028534, -0.46988946199417114, 0.19603678584098816, -0.026332881301641464, -0.04225738346576691, 0.4722329378128052, -0.00010453036520630121, -0.06288353353738785, 0.4584932327270508, 0.2026187777519226, -0.4859759509563446, -0.20958657562732697, -0.1490361988544464, 0.20633448660373688, 0.25314998626708984, -0.2543870210647583, -0.12244918197393417, -0.22151605784893036, 0.08006042242050171, -0.5224382877349854, 0.032809995114803314, 0.22985853254795074, 0.26460039615631104, 0.5858451128005981, 0.1764906793832779, -0.1220322996377945, 0.39200204610824585, -0.186561718583107, -0.09880274534225464, 0.1512858271598816, 0.27914175391197205, 0.03426637500524521, -0.1552177369594574, 0.27381598949432373, -0.2516686022281647, 0.25819411873817444, 0.08306270837783813, 0.04031511768698692, 0.10718059539794922, 0.12367406487464905, 0.005461882799863815, 0.14772632718086243, -0.02446868270635605, -0.24473541975021362, -0.18716292083263397, 0.01328153908252716, -0.15603190660476685, -0.4709233343601227, 0.06602934747934341, 0.2990935146808624, -0.1927742063999176, 0.07073907554149628, -0.15339818596839905, 0.28531238436698914, -0.21783564984798431, 0.20865978300571442, -0.04146398976445198, 0.4749426543712616, 0.010646533221006393, 0.05823008716106415, 0.028252068907022476, 0.05357278138399124, 0.37183913588523865, -0.02909015119075775, 0.025887299329042435, -0.2166377604007721, -0.03533066436648369, 0.0447734072804451, 0.3098425269126892, 0.12990933656692505, 0.1545519232749939, 0.1684168428182602, -0.005012827925384045, -0.06470723450183868, 0.1099809855222702, 0.12570543587207794, -0.015670690685510635, -0.09322403371334076, -0.05864294618368149, 0.17888067662715912, 0.11952640116214752, 0.1648675799369812, -0.13602833449840546, 0.00846339575946331, -0.06681349873542786, -0.3070946931838989, 0.09002415835857391, 0.12943688035011292, 0.5126134157180786, -0.06377812474966049, -0.3585408926010132, -0.16378311812877655, -0.31686604022979736, 0.1315578818321228, -0.08879813551902771, 0.16468508541584015, -0.3344552516937256, 0.052515558898448944, 0.2567439079284668, 0.16658592224121094, -0.3985975384712219, 0.17348404228687286, -0.17293903231620789, -0.0025555379688739777, -0.2071772813796997, -0.1981867551803589, 0.024494457989931107, -0.006106022745370865, 0.03699500858783722, 0.025848910212516785, -0.01691681146621704, -0.05536673590540886, 0.1729722023010254, -0.03044997528195381, 0.09782786667346954, 0.08348798006772995, 0.10380853712558746, 0.023085420951247215, 0.06469593942165375, 0.23655612766742706, 0.0004668235778808594, 0.4194880723953247, -0.13348883390426636, -0.24403275549411774, 0.11649154126644135, 0.3560176193714142, 0.0041359793394804, -0.1565832942724228, 0.18205131590366364, -0.3767898380756378, -0.12203606218099594, -0.08006809651851654, 0.0026524588465690613, -0.2985849976539612, -0.14785952866077423, -0.2639125883579254, 0.22542211413383484, 0.2425369769334793, 0.2605782747268677, 0.05053400993347168, -0.028276892378926277, 0.162733793258667, 0.3797314167022705, 0.1669943481683731, -0.19390884041786194, -0.08965308219194412, -0.13795708119869232, 0.15960855782032013, -0.04862838238477707, -0.4239593744277954, -0.3278157114982605, -0.16077418625354767, -0.1731497049331665, -0.07503718137741089, 0.04963131621479988, 0.03233777731657028, 0.3179515600204468, 0.047934118658304214, -0.03185831755399704, 0.4129534959793091, -0.07409178465604782, 0.07485228031873703, -0.46664127707481384, -0.37981775403022766, 0.5641195178031921, 0.15170542895793915, 0.05702996999025345, -0.34974101185798645, 0.20544886589050293, 0.06083908677101135, 0.5148956775665283, -0.18972069025039673, -0.15184080600738525, -0.2993403673171997, 0.7524661421775818, -0.047450095415115356, 0.011038713157176971, -0.09606990963220596, 0.06652771681547165, 0.020441710948944092, 0.23162856698036194, -0.2802456021308899, -0.1499127447605133, -0.08915436267852783, -0.15245255827903748, 0.1319253146648407, -0.34668388962745667, -0.38215741515159607, 0.24747207760810852, 0.27825790643692017, -0.14560925960540771, -0.13090384006500244, -0.011895298957824707, -0.0933065339922905, -0.3045148551464081, 0.10049394518136978, 0.03861372545361519, 0.10532926023006439, -0.03966193646192551, -0.09412535279989243, -0.11935559660196304, 0.2987472414970398, 0.16293929517269135, -0.06005439534783363, -0.11797138303518295, 0.3312666416168213, 0.24494808912277222, 0.19554683566093445, -0.046819157898426056, 0.007249072194099426, 0.08201786875724792, -0.315689355134964, -0.20248204469680786, 0.32210108637809753, 0.09754092246294022, -0.0025813616812229156, 0.02275148406624794, 0.18939894437789917, -0.23540224134922028, 0.10029235482215881, 0.2986404299736023, 0.0012303534895181656, -0.03909006342291832, -0.17083989083766937, 0.015926677733659744, 0.33521926403045654, 0.25353893637657166, 0.40919509530067444, 0.4384312033653259, 0.047103676944971085, -0.1185912936925888, -0.02913125604391098, 0.17207299172878265, 0.01633487269282341, 0.23276376724243164, 0.17008449137210846, -0.4000135064125061, -0.07772497832775116, -0.08439862728118896, 0.3033125400543213, 0.3952057957649231, 0.27557823061943054, 0.09697189182043076, 0.088724285364151, -0.13241173326969147, -0.28704315423965454, 0.2992976903915405, 0.11520559340715408, 0.020872842520475388, 0.24158358573913574, 0.22974316775798798, 0.10214279592037201, -0.25547972321510315, -0.0732262060046196, -0.13899235427379608, 0.05661705136299133, -0.14600926637649536, -0.04782983288168907, -0.16401275992393494, 0.20112663507461548, -0.11406861245632172, -0.5005600452423096, 0.18164166808128357, -0.2008601278066635, 0.014348894357681274, 0.3810868561267853, -0.20227491855621338, 0.12009719759225845, -0.27705705165863037, 0.09421141445636749, 0.0885692834854126, -0.0884961411356926, 0.1415919065475464, -0.22951708734035492, -0.17601609230041504, 0.17949534952640533, 0.048955630511045456, -0.17695169150829315, 0.39237716794013977, -0.09352342039346695, -0.026575494557619095, -0.17809830605983734, -0.12936706840991974, 0.022803427651524544, 0.2426384836435318, 0.07531072199344635, 0.11149974167346954, 0.05481604486703873, 0.10843048989772797, -0.28109848499298096, 0.3347679376602173, -0.22575731575489044, -0.05279143154621124, 0.12225957214832306, 0.09743526577949524, -0.08596251159906387, -0.15138885378837585, -0.6303593516349792, -0.1750367432832718, -0.3355155289173126, 0.004438754171133041, -0.10781237483024597, 0.12897473573684692, 0.4354718327522278, 0.03879757598042488, 0.16186746954917908, -0.1536659449338913, 0.12164369225502014, -0.08725937455892563, -0.02111170068383217, 0.2169373482465744, -0.13490332663059235, -0.4010962247848511, -0.19834686815738678, -0.1213337853550911, -0.10454466938972473, 0.43392670154571533, -0.2609216570854187, -0.25921979546546936, -0.23132814466953278, 0.0872519314289093, -0.12945319712162018, -0.023215437307953835, 0.39863863587379456, 0.24843116104602814, -0.25696101784706116, -0.2864578068256378, 0.06433704495429993, -0.04337211698293686, -0.068628691136837, 0.038186900317668915, -0.08754412084817886, 0.1517161726951599, 0.1127801239490509, 0.2772789001464844, -0.039199911057949066, -0.038717467337846756, 0.11293865740299225, -0.24959692358970642, 0.19787774980068207, -0.043323107063770294, -0.25691691040992737, 0.16210535168647766, -0.2219967246055603, -0.3214872479438782, 0.04846654459834099, 0.21953070163726807, 0.11488178372383118, 0.014172688126564026, 0.02080303430557251, -0.3543076515197754, -0.26211583614349365, -0.246359184384346, 0.3780522644519806, 0.0837341919541359, -0.06722009927034378, 0.16260460019111633, -0.13161471486091614, -0.1256522834300995, 0.1881817877292633, 0.37599343061447144, 0.10934393852949142, -0.01193389855325222, 0.2482949048280716, 0.012344051152467728, -0.0862116888165474, 0.09987809509038925, 0.009018094278872013, 0.1281888484954834, 0.056687187403440475, -0.19122079014778137, 0.07852249592542648, -0.02000797539949417, 0.16432799398899078, 0.34587645530700684, 0.3874813914299011, 0.30105891823768616, -0.1472468078136444, -0.255145400762558, 0.018963295966386795, -0.5182096362113953, -0.3017999827861786, 0.07005710899829865, 0.16231511533260345, -0.27507027983665466, 0.0511014498770237, 0.374527245759964, 0.1937803477048874, 0.06277583539485931, 0.0518818125128746, 0.00863606482744217, -0.41123875975608826, -0.0766531452536583, 0.07336361706256866, -0.013393799774348736, 0.45119795203208923, -0.03689676523208618, -0.21865643560886383, -0.35608866810798645, -0.3336452841758728, -0.009867869317531586, -0.06953588128089905, 0.4101048409938812, -0.16149044036865234, 0.1817576140165329, 0.006476748734712601, 0.3672035336494446, 0.3950002193450928, 0.21570178866386414, 0.14068597555160522, 0.15151536464691162, -0.007653333246707916, -0.18303410708904266, 0.03054555505514145, 0.10357780754566193, -0.3520219922065735, 0.22597962617874146, -0.31844785809516907, 0.27770107984542847, -0.2909499406814575, 0.19563765823841095, 0.35022711753845215, 0.18430565297603607, 0.27323415875434875, 0.007618900388479233, 0.10566709190607071, -0.1933569461107254, -0.09416498243808746, 0.5531522035598755, -0.1504654437303543, -0.23310615122318268, -0.12270259857177734, 0.14270322024822235, 0.7989791631698608, 0.22827136516571045, 0.1575276255607605, 0.8578516244888306, -0.379422664642334, -0.19980868697166443, 0.33604127168655396, 0.1782056987285614, -0.3571633994579315, 0.0383414551615715, 0.08121664822101593, -0.22877530753612518, 0.027301233261823654, -0.26911115646362305, -0.018553193658590317, -0.18561656773090363, -0.02071169763803482, 0.04463198408484459, 0.10847527533769608, 0.052358478307724, 0.04025336354970932, 0.042453452944755554, -0.29283806681632996, 0.19293975830078125, -0.017914876341819763, 0.12701106071472168, -0.05087844282388687, -0.08395076543092728, 0.24806296825408936, -0.1010972261428833, -0.20435909926891327, 0.341959685087204, -0.5799903273582458, 0.17218194901943207, -0.2692234516143799, -0.45623499155044556, -0.10751877725124359, -0.03678911551833153, -0.228549525141716, 0.16780561208724976, -0.03403152525424957, 0.10888692736625671, -0.02501925826072693, 0.16751067340373993, 0.23507143557071686, 0.030764523893594742, 0.20655393600463867, -0.22431063652038574, 0.009794920682907104, -0.13053128123283386, 0.051677703857421875, -0.4160592555999756, -0.06003236770629883, 0.04676813259720802, 0.49493104219436646, -0.25949379801750183, -0.2402207851409912, -0.2332247793674469, -0.18146365880966187, -0.3135361969470978, 0.2200745940208435, -0.01314862072467804, 0.13509923219680786, 0.1709568053483963, 0.08707115054130554, -0.3995955288410187, -0.10949182510375977, -0.012305490672588348, 0.011949030682444572, 0.13838151097297668, 0.40056461095809937, 0.12434914708137512, -0.32585108280181885, -0.22264939546585083, 0.12601929903030396, 0.1640535145998001, -0.027110088616609573, 0.08686947077512741, -0.04121565818786621, 0.19517908990383148, -0.11181322485208511, 0.005858641117811203, 0.20942255854606628, 0.09912147372961044, -0.19794468581676483, -0.40554943680763245, -0.16605624556541443, 0.1417737901210785, 0.20288142561912537, 0.11818285286426544, -0.026482250541448593, 0.2930472195148468, -0.021311717107892036, -0.25048425793647766, -0.3906230926513672, 0.11079128086566925, 0.23361247777938843, 0.11921844631433487, -0.14548732340335846, -0.2076452374458313, 0.3068409562110901, -0.010407999157905579, 0.2542707324028015, -0.05168752372264862, -0.13477256894111633, -0.3061598837375641, -0.37537339329719543, 0.08592110872268677, 0.07820940017700195, -0.352987140417099, 0.16144108772277832, -0.1700139343738556, 0.0037515703588724136, -0.18765640258789062, 0.1137394905090332, 0.34022706747055054, -0.20842380821704865, -0.07279882580041885, 0.37925654649734497, 0.1400480419397354, -0.23623129725456238, 0.007380055263638496, -0.23874208331108093, 0.2812371253967285, -0.13526348769664764, -0.03312724828720093, 0.12455784529447556, -0.05653084069490433, -0.14418014883995056, -0.23889681696891785, 0.21345119178295135, 0.16059398651123047, 0.2762322425842285, -0.12278322875499725, -0.11529159545898438, -0.15177319943904877, 0.5579533576965332, 0.19814643263816833, -0.1018952950835228, -0.02546858601272106, 0.06578274071216583, 0.3775639533996582, -0.21604473888874054, -0.024656733497977257, -0.14566689729690552, -0.17453911900520325, 0.16097868978977203, -0.06971047073602676, -0.44670194387435913, 0.07242009043693542, -0.1336328089237213, 0.08439431339502335, -0.0011723823845386505, -0.16617035865783691, -0.012229222804307938, 0.17768289148807526, -0.14401917159557343, -0.049987148493528366, 0.09358685463666916, -0.0745280534029007, 0.18131127953529358, 0.23310619592666626, -0.013384446501731873, 0.6520748138427734, 0.5496267676353455, -0.24432900547981262, 0.05717165023088455, -0.05493176728487015, 0.006985820829868317, -0.12364047765731812, -0.03625763952732086, 0.0326865129172802, 0.04094145819544792, 0.22881588339805603, -0.2829382121562958, 0.10475127398967743, -0.05114840716123581, -0.04353928193449974, -0.09900925308465958, -0.2635807693004608, 0.0496000200510025, -0.004704482853412628, -0.07286550104618073, -0.029368113726377487, -0.10203529894351959, 0.022454187273979187, 0.030337266623973846, 0.04763411357998848, -0.10487428307533264, -0.3494413495063782, 0.021304216235876083, 0.20791438221931458, 0.15735140442848206, -0.3372327387332916, 0.08764997124671936, 0.21877366304397583, 0.143193781375885, -0.17037244141101837, 0.4733753502368927, 0.3304481506347656, 0.47191697359085083, -0.22933423519134521, -0.13048148155212402, -0.16754694283008575, -0.0063683949410915375, -0.039440739899873734, -0.06476418673992157, 0.013416014611721039, 0.12693801522254944, 0.22980429232120514, 0.36907461285591125, -0.3680001199245453, 0.2118324488401413, -0.024277877062559128, -0.2714371383190155, -0.1849631667137146, 0.2795253098011017, 0.1443210244178772, -0.2951880097389221, 0.01260005310177803, -0.027996383607387543, -0.2422032356262207, -0.0668562576174736, 0.29008641839027405, 0.2645173668861389, 0.08760930597782135, -0.03970811516046524, 0.14040911197662354, 0.14405621588230133, 0.12328076362609863, 0.10196185857057571, -0.0070678964257240295, -0.42342010140419006, 0.03285764157772064, -0.4711898863315582, 0.49045896530151367, -0.14418011903762817, -0.44658443331718445, 0.07254261523485184, -0.05491730570793152, -0.2503599524497986, 0.2345559149980545, 0.33345872163772583, 0.3571130931377411, 0.15245281159877777, -0.0025294125080108643, -0.255432665348053, 0.13229843974113464, 0.20288413763046265, -0.10327310860157013, -0.12601786851882935, -0.34619027376174927, 0.2244313359260559, -0.23956705629825592, 0.25825589895248413, 0.09346850216388702, 0.04102690517902374, 0.29029032588005066, 0.013817839324474335, 0.01783006265759468, -0.017089297994971275, 0.39506566524505615, -0.320538729429245, 0.04093128442764282, -0.1458008736371994, -0.2275681495666504, 0.02521533891558647, 0.05320734903216362, 0.01726357452571392, 0.08587972819805145, 0.17346927523612976, -0.5986049771308899, -0.4342435896396637, 0.47385624051094055, -0.3005673885345459, -0.14237597584724426, 0.10854489356279373, 0.3310376703739166, 0.0011346116662025452, 0.15557996928691864, -0.03743178769946098, 0.1749420464038849, -0.1264829933643341, 0.058932289481163025, -0.24580475687980652, -0.7254005074501038, 0.2943548560142517, -0.7327600121498108, -0.2969195246696472, -0.2304130494594574, 0.46038195490837097, 0.021248795092105865, 0.23804455995559692, -0.2867963910102844, 0.10301201790571213, 0.2128988653421402, 0.047845155000686646, -0.1016835868358612, 0.1259421855211258, 0.017027508467435837, -0.023834623396396637, 0.11397883296012878, 0.6136487722396851, 0.10387229174375534, -0.09762773662805557, -0.03124261647462845, -0.2827851176261902 ]
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.08303579688072205, -0.25024381279945374, -0.038625724613666534, 0.30153974890708923, 0.2076890617609024, 0.07883664220571518, 0.500155508518219, 0.14941607415676117, 0.12552982568740845, 0.1421065628528595, 0.3285621404647827, 0.05084048584103584, -0.2967575192451477, 0.34206119179725647, -0.262335866689682, -0.2604983448982239, 0.034535691142082214, 0.22248691320419312, 0.015491243451833725, -0.02244715765118599, -0.31306660175323486, 0.1709364801645279, -0.36487728357315063, -0.22216178476810455, -0.15507803857326508, -0.2108081430196762, -0.2160239815711975, -0.2960245907306671, 0.05425166338682175, -0.598713755607605, 0.2819482982158661, -0.069516122341156, 0.09210948646068573, 0.23832246661186218, -0.0001144155248766765, 0.10549221932888031, 0.6381925940513611, -0.14531588554382324, -0.26280397176742554, -0.3394750952720642, -0.5618311762809753, -0.42278000712394714, 0.12416496872901917, -0.35784807801246643, -0.09651291370391846, -0.0749712884426117, 0.094717837870121, -0.3724972903728485, 0.20421308279037476, 0.28396666049957275, 0.2130594253540039, 0.38300082087516785, -0.08455124497413635, -0.07440251111984253, 0.2068212926387787, 0.4162611961364746, -0.26075467467308044, -0.17985308170318604, 0.035758569836616516, 0.2699494957923889, 0.09462866187095642, 0.34923985600471497, -0.11140530556440353, -0.13050729036331177, 0.20943358540534973, 0.08493521064519882, 0.08856233209371567, -0.45219436287879944, -0.2671244740486145, 0.20149561762809753, 0.2924084961414337, 0.0013619102537631989, -0.40846335887908936, -0.21808770298957825, 0.018871545791625977, -0.6638947129249573, 0.2666679322719574, 0.05510156601667404, -0.038627997040748596, -0.026963796466588974, -0.16839289665222168, 0.1450013369321823, -0.21389605104923248, 0.166017085313797, -0.1209740936756134, 0.08079244941473007, -0.13945379853248596, 0.03414127230644226, -0.240279421210289, -0.2700188159942627, 0.05874878168106079, -0.37062501907348633, -0.025752175599336624, 0.21114619076251984, -0.25151327252388, -0.1936303675174713, 0.16734933853149414, 0.010185368359088898, 0.1697201430797577, 0.13799339532852173, -0.06587144732475281, -0.10379760712385178, -0.06935802102088928, -0.016959354281425476, 0.2529103457927704, 0.21360230445861816, 0.41129693388938904, -0.06806930899620056, -0.058174245059490204, 0.19612479209899902, 0.09966142475605011, -0.017597883939743042, 0.1192837506532669, 0.05173976719379425, 0.016925811767578125, 0.4072844684123993, 0.6467190384864807, -0.05256287381052971, -0.39348170161247253, 0.2361948937177658, -0.38535937666893005, -0.03049868904054165, -0.021195482462644577, 0.00619111955165863, 0.08412009477615356, 0.2916475534439087, -0.1465800404548645, 0.21616819500923157, -0.27360352873802185, -0.2508825957775116, -0.2348467856645584, 0.072195865213871, 0.10184094309806824, 0.08859891444444656, -0.05474041774868965, -0.03329986706376076, 0.06581796705722809, 0.1560106724500656, 0.07967934012413025, 0.1009848415851593, -0.0555228665471077, -0.36580875515937805, 0.09250559657812119, 0.15237237513065338, -0.007046051323413849, 0.29215896129608154, 0.37623605132102966, -0.2581285834312439, -0.10916207730770111, 0.11824339628219604, -0.2788120210170746, -0.21751421689987183, -0.005828427150845528, 0.17252948880195618, -0.37956780195236206, 0.04412701353430748, -0.07340433448553085, 0.22634603083133698, 0.21085768938064575, -0.07758928835391998, -0.0965440645813942, -0.08692807704210281, -0.2196173369884491, -0.1535143256187439, -0.09196504205465317, 0.6465165615081787, -0.1091330349445343, -0.012588277459144592, 0.11914999037981033, -0.08989664912223816, 0.3521234691143036, 0.23272117972373962, 0.048147790133953094, -0.05724804848432541, -0.340410977602005, 0.19002996385097504, 0.08313553035259247, -0.11154906451702118, -0.2086065709590912, 0.5657572150230408, 0.023990795016288757, 0.35986918210983276, 0.11346449702978134, 0.09594609588384628, 0.15857020020484924, -0.3072294294834137, 0.01308777928352356, 0.19759884476661682, -0.1874643713235855, -0.22067931294441223, -0.24189874529838562, -0.12316350638866425, 0.5206928253173828, -0.07434640824794769, -0.06409120559692383, 0.20678332448005676, -0.30106136202812195, -0.02311057411134243, -0.14064618945121765, -0.318688303232193, 0.12881353497505188, 0.5053261518478394, 0.21923911571502686, 0.03759640455245972, -0.09674929827451706, -0.4028454124927521, -0.3626861274242401, 0.13121125102043152, -0.17960551381111145, 0.28400009870529175, -0.4932684302330017, -0.17993876338005066, 0.073519766330719, 0.019040757790207863, -0.394746869802475, 0.0015030913054943085, 0.15478110313415527, 0.12149213254451752, -0.1535107046365738, 0.19992303848266602, -0.0773417204618454, 0.27720004320144653, 0.15611113607883453, -0.12485495209693909, -0.5673229694366455, 0.36998775601387024, 0.06950001418590546, -0.2262258231639862, 0.007166855037212372, 0.3033716678619385, 0.331784188747406, -0.08999873697757721, 0.018318284302949905, 0.1505865752696991, 0.02597065642476082, -0.3309905529022217, -0.30678021907806396, -0.15713880956172943, 0.31905969977378845, -0.41859325766563416, -0.22143331170082092, 0.3747457265853882, 0.18254347145557404, -0.10734105110168457, -0.12098843604326248, 0.6575431823730469, 0.015737446025013924, 0.46479129791259766, 0.004207056015729904, 0.17601357400417328, 0.05372772365808487, -0.0018617846071720123, -0.32714277505874634, -0.2869090437889099, 0.1755581945180893, 0.20264098048210144, -0.165078803896904, -0.03991153836250305, -0.3015940487384796, 0.005867630243301392, 0.4108927547931671, 0.0884372889995575, 0.03546374291181564, 0.05708054453134537, -0.0770580843091011, -0.036838069558143616, 0.10924071073532104, -0.1595933586359024, 0.299883633852005, 0.05055828392505646, -0.07321982085704803, 0.07357872277498245, 0.007545077707618475, 0.07453876733779907, 0.17586863040924072, -0.035037241876125336, 0.2430834025144577, 0.02856798656284809, 0.10764824599027634, 0.11769815534353256, -0.17797249555587769, -0.5438491702079773, -0.03985854983329773, 0.14308860898017883, -0.24912117421627045, 0.24928219616413116, -0.4795847237110138, -0.2056160271167755, 0.13041603565216064, -0.21736600995063782, -0.38629525899887085, -0.4440220594406128, -0.16394205391407013, 0.027558350935578346, -0.14083974063396454, 0.22369885444641113, 0.014814939349889755, -0.2624574303627014, 0.29857543110847473, -0.024348685517907143, -0.0831376165151596, -0.1392291784286499, -0.02423320710659027, 0.04631975665688515, 0.16566435992717743, -0.048101987689733505, 0.2467774897813797, 0.03329592943191528, -0.34998446702957153, -0.21268723905086517, -0.2085355818271637, 0.056549832224845886, -0.35036295652389526, 0.07770778238773346, 0.307949423789978, 0.12772782146930695, -0.04940715804696083, -0.19988837838172913, 0.4227287769317627, 0.4243721663951874, -0.21209944784641266, 0.3217686116695404, -0.1020631194114685, -0.035473477095365524, -0.21106520295143127, -0.09590326994657516, -0.15722118318080902, -0.22789324820041656, 0.10760436952114105, 0.21096880733966827, 0.2101617157459259, 0.44710177183151245, 0.047019101679325104, 0.12087906897068024, 0.13558007776737213, -0.17562824487686157, 0.0008857715874910355, -0.015036579221487045, 0.4824742376804352, -0.18278786540031433, -0.27124860882759094, 0.14880003035068512, -0.29872530698776245, 0.0875619649887085, 0.2041163295507431, -0.35755282640457153, -0.1763039082288742, -0.1413789987564087, 0.16113129258155823, 0.07453623414039612, -0.10465775430202484, 0.37757453322410583, 0.2816058099269867, -0.10834550112485886, -0.036769136786460876, -0.050810687243938446, 0.25690019130706787, -0.07055152207612991, 0.028748363256454468, 0.22968745231628418, 0.5177571773529053, 0.03981035575270653, 0.09723453968763351, 0.437643438577652, 0.1970641016960144, 0.42616671323776245, -0.08233232796192169, 0.06893569976091385, -0.16901463270187378, 0.0005423128604888916, -0.17114537954330444, 0.10794007778167725, -0.017855143174529076, 0.083627849817276, -0.23275741934776306, -0.1191914901137352, -0.0793071985244751, -0.06307194381952286, 0.10385216027498245, -0.2357090264558792, 0.12937037646770477, -0.4676784873008728, 0.4429665803909302, -0.08640900254249573, 0.018289953470230103, -0.3036092519760132, -0.004700430203229189, -0.1684730499982834, -0.008302725851535797, 0.3227554261684418, -0.14786653220653534, -0.6496186852455139, -0.17223119735717773, -0.2026037871837616, 0.12155423313379288, 0.30113843083381653, 0.5467788577079773, -0.03376232460141182, -0.06241538003087044, -0.10756446421146393, -0.019171735271811485, 0.4020329713821411, -0.164388507604599, -0.18376271426677704, 0.2454214096069336, -0.26380136609077454, -0.23879374563694, -0.05677435174584389, -0.36927056312561035, 0.33445900678634644, -0.2252185195684433, 0.3618212640285492, -0.3405367434024811, -0.2225630134344101, 0.2660468816757202, 0.07425076514482498, -0.09136831015348434, -0.11321870237588882, -0.09107860177755356, -0.2235621213912964, -0.14560182392597198, 0.012950733304023743, 0.20876677334308624, 0.2621578574180603, -0.13408659398555756, -0.0023916326463222504, -0.5279819965362549, 0.03075059875845909, 0.3058224320411682, -0.2428046613931656, 0.3555576205253601, -0.08594296127557755, 0.1051599532365799, -0.13631302118301392, 0.19407261908054352, 0.20765846967697144, 0.3552796542644501, 0.3771531283855438, -0.6484144926071167, 0.011156979948282242, -0.22744686901569366, 0.16269823908805847, 0.2772215008735657, -0.09346696734428406, 0.09365209937095642, 0.08336485922336578, 0.1915261447429657, -0.21020570397377014, -0.3317118287086487, 0.4189606308937073, -0.08054238557815552, -0.6726537346839905, -0.28722062706947327, 0.264912486076355, 0.096771240234375, 0.2421816736459732, -0.13366225361824036, 0.22322848439216614, -0.21130351722240448, 0.3653748631477356, -0.0063007548451423645, 0.68507981300354, 0.4925394058227539, 0.041899628937244415, 0.5505330562591553, 0.4471416473388672, 0.6043534874916077, 0.40479469299316406, 0.25822168588638306, -0.16250728070735931, -0.6721649765968323, -0.14850549399852753, -0.05859126150608063, 0.4232245981693268, 0.1191025972366333, -0.4531515836715698, 0.4891037344932556, -0.12819941341876984, -0.06382505595684052, -0.09815876930952072, -0.2965752184391022, -0.13172368705272675, -0.04396934434771538, -0.25159546732902527, 0.12456987798213959, 0.06937792897224426, 0.1620192527770996, 0.05738651007413864, -0.3246813416481018, 0.05229657515883446, -0.1667523980140686, -0.19479642808437347, 0.1696542501449585, -0.14336664974689484, 0.09411722421646118, 0.036424245685338974, -0.34638822078704834, 0.2818097472190857, 0.22324106097221375, 0.1879025101661682, -0.13120989501476288, -0.15609274804592133, -0.19690869748592377, 0.040029749274253845, 0.10341403633356094, -0.08015941828489304, -0.07771521061658859, 0.3071269392967224, -0.0268948283046484, -0.14853191375732422, 0.14754921197891235, -0.21429577469825745, 0.10542155802249908, 0.3429107069969177, 0.059051014482975006, -0.1748191863298416, -0.16116589307785034, -0.4532510042190552, 0.030240029096603394, 0.1710837185382843, -0.05008520185947418, 0.11646503210067749, 0.006903365254402161, -0.2920272946357727, -0.049563929438591, -0.19789279997348785, -0.008677467703819275, -0.017159700393676758, 0.3072862923145294, 0.5229864120483398, 0.07681246846914291, 0.6932666301727295, 0.191862553358078, -0.24269312620162964, -0.166066974401474, 0.16272690892219543, 0.18308912217617035, -0.5128661394119263, 0.3100549578666687, -0.1137070432305336, 0.14592047035694122, -0.2419806271791458, 0.4570827782154083, -0.2819417715072632, 0.209084153175354, -0.039303794503211975, -0.11750315129756927, -0.15718424320220947, 0.23256957530975342, -0.13328029215335846, 0.10570970922708511, -0.22264322638511658, 0.11522889137268066, -0.07904741913080215, -0.21667559444904327, -0.29462456703186035, -0.09730403125286102, -0.4076438248157501, 0.36699843406677246, 0.11489082127809525, 0.08583322167396545, 0.21908336877822876, 0.16080060601234436, 0.16813363134860992, 0.08565929532051086, -0.1367592215538025, -0.1968509554862976, -0.0751664787530899, 0.12684912979602814, 0.10730184614658356, -0.18645109236240387, 0.14101000130176544, 0.026902753859758377, -0.06284840404987335, -0.13896821439266205, 0.0139906145632267, 0.1784926950931549, -0.08429762721061707, 0.43051856756210327, 0.3046933114528656, 0.3934035897254944, -0.118110790848732, 0.16062268614768982, -0.03202512860298157, 0.22899805009365082, -0.07312658429145813, 0.08981181681156158, -0.07150949537754059, 0.07873813807964325, -0.4437327980995178, 0.13564984500408173, -0.12916627526283264, 0.11957965046167374, 0.22633051872253418, -0.3602282404899597, 0.03551086410880089, 0.3236734867095947, -0.031114619225263596, 0.07553722709417343, -0.19832369685173035, -0.014955003745853901, 0.09086547046899796, 0.16748404502868652, -0.16102418303489685, 0.004406898748129606, 0.19280007481575012, 0.09837645292282104, 0.05536455288529396, 0.24973255395889282, 0.023815643042325974, 0.2197781205177307, 0.1523764729499817, 0.041066426783800125, 0.0576353445649147, -0.13040421903133392, 0.4767725467681885, 0.25024810433387756, 0.10600662231445312, -0.005962055176496506, -0.04516369104385376, -0.13611602783203125, 0.23747804760932922, 0.4095088839530945, -0.022514238953590393, 0.11335497349500656, 0.4354739189147949, -0.018356632441282272, -0.029948629438877106, -0.266769140958786, -0.1832297444343567, 0.08748158067464828, 0.3381921350955963, 0.202853262424469, 0.18701127171516418, -0.3521421551704407, -0.3258127272129059, -0.2701643705368042, -0.06958279758691788, 0.30993497371673584, -0.05833030492067337, -0.0029458492062985897, 0.035666950047016144, 0.011439546942710876, -0.37402158975601196, -0.24159884452819824, -0.09649227559566498, -0.10929231345653534, 0.2701227068901062, 0.2186555117368698, 0.17627817392349243, -0.3771922290325165, 0.27475929260253906, 0.28086957335472107, 0.2680346965789795, -0.1144813746213913, 0.28419142961502075, 0.39184606075286865, 0.09419337660074234, 0.19323725998401642, 0.5161972641944885, 0.36955082416534424, 0.2945847809314728, -0.020103607326745987, 0.11294934153556824, -0.03907789662480354, -0.34501224756240845, 0.08779959380626678, -0.059846021234989166, -0.2485659122467041, 0.28796258568763733, 0.15582621097564697, 0.1228242814540863, -0.12541356682777405, 0.316838800907135, 0.054472461342811584, -0.11032712459564209, -0.28570985794067383, 0.7373992204666138, -0.2703440487384796, 0.02768126130104065, -0.06510427594184875, -0.2521205246448517, -0.4581925570964813, -0.06524020433425903, 0.3814007043838501, 0.16980719566345215, 0.14951491355895996, 0.21773138642311096, 0.06977047771215439, -0.40824344754219055, 0.3309640884399414, 0.340365469455719, 0.07690588384866714, -0.26513200998306274, 0.061708733439445496, -0.2750622034072876, 0.11164449155330658, -0.1015278548002243, -0.06912221014499664, 0.2495632767677307, 0.12781333923339844, -0.1932559609413147, 0.11486044526100159, -0.22047792375087738, -0.13938185572624207, -0.10432367771863937, 0.2524551749229431, -0.37179678678512573, -0.19465160369873047, 0.28839725255966187, -0.08923804759979248, -0.12511536478996277, -0.26525527238845825, 0.03533203899860382, 0.003945333883166313, 0.07392324507236481, 0.05508262291550636, -0.044890716671943665, -0.32275310158729553, -0.02787226438522339, 0.057250477373600006, 0.6041783690452576, 0.10741248726844788, -0.059311643242836, -0.392254114151001, -0.2225094735622406, -0.27225449681282043, -0.11333192884922028, 0.587104856967926, 0.28251364827156067, 0.6090589761734009, -0.1371043473482132, 0.25318560004234314, -0.05520663782954216, 0.3776596188545227, -0.060990385711193085, 0.043841056525707245, -0.4244898557662964, 0.5184666514396667, -0.3719523549079895, 0.17626969516277313, 0.006877212785184383, 0.18111637234687805, 0.13905151188373566, 0.17747052013874054, -0.05049668252468109, -0.29201552271842957, 0.3989831805229187, -0.30848658084869385, -0.3456192910671234, 0.2019374519586563, -0.0813746452331543, 0.1927640438079834, -0.04738694429397583, -0.30785071849823, -0.13437995314598083, 0.40449681878089905, -0.1600382924079895, -0.27258360385894775, 0.004612717777490616, 0.14974717795848846, -0.06765443086624146, -0.12056219577789307, 0.1607690155506134, -0.07075200229883194, -0.25985363125801086, 0.36028435826301575, -0.3102986216545105 ]
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.2534322738647461, -0.14359146356582642, -0.11700855195522308, 0.12509854137897491, -0.08036214113235474, -0.20694327354431152, 0.3182261884212494, 0.2595028579235077, -0.26621145009994507, 0.24329254031181335, 0.4498225748538971, -0.07759906351566315, -0.009268012829124928, 0.37759658694267273, -0.39721745252609253, -0.08901636302471161, 0.07872093468904495, 0.10890214890241623, -0.052683427929878235, 0.04491834342479706, -0.2720680832862854, 0.06865818798542023, -0.39644795656204224, 0.16087976098060608, 0.0663992241024971, -0.0716041773557663, -0.12159328907728195, -0.25434717535972595, -0.6671603322029114, -0.5313288569450378, 0.31335556507110596, 0.20344996452331543, 0.07602695375680923, 0.2712758779525757, -0.00011104679288109764, -0.4238654375076294, 0.5205673575401306, 0.14866943657398224, -0.2614659368991852, -0.15130390226840973, -0.4164431393146515, -0.535380482673645, -0.1008593961596489, -0.013767533004283905, -0.3072524964809418, -0.10771398991346359, 0.011747825890779495, -0.19432012736797333, -0.06281603872776031, -0.015602185390889645, 0.24801161885261536, 0.16733954846858978, 0.40198004245758057, -0.3542858958244324, 0.18630562722682953, -0.11592504382133484, -0.3703640401363373, -0.24996471405029297, 0.5717850923538208, 0.2568047046661377, 0.22688841819763184, 0.3849825859069824, 0.19126275181770325, -0.19222554564476013, 0.15076270699501038, -0.009772616438567638, 0.2396775782108307, -0.2660328447818756, 0.04153969883918762, 0.07777855545282364, 0.9955614805221558, 0.02036338858306408, -0.3793458044528961, 0.20347490906715393, -0.09273292124271393, -0.2712346315383911, 0.24124735593795776, 0.02728310599923134, -0.029244378209114075, 0.14924238622188568, 0.08733592927455902, -0.4584190845489502, -0.15168282389640808, 0.16021490097045898, -0.027203906327486038, 0.45910510420799255, -0.08871687948703766, 0.10676531493663788, -0.021526265889406204, -0.30153709650039673, 0.2346973568201065, 0.020097173750400543, 0.08503060042858124, 0.15644508600234985, 0.05145218223333359, -0.44021326303482056, 0.10607801377773285, -0.017247147858142853, 0.14981287717819214, 0.19241473078727722, -0.26061901450157166, -0.24916622042655945, -0.04644385352730751, 0.013337746262550354, 0.6594323515892029, 0.0745631605386734, 0.340565949678421, 0.1880098283290863, 0.43294453620910645, 0.25514230132102966, 0.06445977091789246, 0.0997430682182312, 0.06184249371290207, -0.08086689561605453, -0.14551380276679993, 0.2052440643310547, 0.4584415555000305, -0.5718423128128052, 0.3661361634731293, 0.1454993039369583, 0.011530939489603043, -0.07399765402078629, -0.3209308087825775, -0.15084633231163025, -0.037387263029813766, 0.32570427656173706, 0.08936065435409546, -0.19831204414367676, 0.13486133515834808, -0.18055813014507294, -0.19519194960594177, -0.10883399844169617, -0.20098133385181427, -0.018362736329436302, -0.03156161308288574, -0.3116750717163086, -0.27753502130508423, 0.1134495660662651, -0.12540630996227264, -0.04341374710202217, 0.056460097432136536, 0.13020800054073334, -0.22466710209846497, 0.41184893250465393, -0.2466321885585785, 0.0828443244099617, -0.309626966714859, 0.2402786761522293, -0.08194585889577866, 0.3500746488571167, -0.04245677590370178, -0.17805346846580505, -0.3391317129135132, 0.2919039726257324, -0.16665241122245789, -0.07769587635993958, 0.27012836933135986, 0.19532227516174316, -0.20301872491836548, -0.23829901218414307, -0.04943006485700607, 0.17224149405956268, -0.23949064314365387, -0.25693178176879883, -0.06953779608011246, 0.043233007192611694, -0.11934150755405426, 0.15402798354625702, -0.2632964551448822, -0.2000606805086136, 0.1197282001376152, 0.005139889195561409, -0.18423067033290863, -0.3186807930469513, 0.1262589395046234, -0.24555355310440063, 0.30169662833213806, -0.3433004319667816, -0.639559805393219, 0.38153356313705444, -0.28414273262023926, -0.38943690061569214, 0.411467045545578, 0.17413382232189178, 0.29543769359588623, -0.32129621505737305, -0.14097481966018677, -0.08161848038434982, -0.16163252294063568, -0.3559683561325073, -0.441899836063385, -0.4019606113433838, 0.0429009385406971, 0.01811140403151512, 0.22048842906951904, 0.15033701062202454, 0.09527525305747986, 0.4235892593860626, 0.07498244941234589, 0.27978307008743286, 0.2078801691532135, 0.07656630873680115, 0.4828042984008789, -0.12860679626464844, 0.05299003794789314, -0.10065505653619766, -0.2766999900341034, 0.09389380365610123, -0.1435735672712326, 0.15911775827407837, 0.43843305110931396, -0.31896305084228516, -0.20858705043792725, -0.05610495060682297, 0.3260706961154938, -0.07095213234424591, 0.08178173750638962, 0.09157350659370422, -0.2478199303150177, 0.1673496514558792, -0.4060973525047302, 0.13686342537403107, -0.00986609049141407, -0.070663683116436, -0.088441863656044, 0.045247361063957214, -0.29087334871292114, 0.09942600876092911, 0.1788436621427536, 0.0838296040892601, 0.16945227980613708, -0.23905734717845917, 0.174563467502594, -0.08151271194219589, -0.0724000483751297, 0.30898603796958923, 0.35615605115890503, 0.18628822267055511, 0.2350974678993225, 0.20403176546096802, 0.07461071014404297, 0.17105646431446075, -0.05861130356788635, 0.2303551435470581, -0.2253141701221466, 0.3460874557495117, 0.35499218106269836, -0.263200968503952, -0.056474946439266205, 0.14472509920597076, 0.13079628348350525, -0.259910523891449, -0.09816524386405945, -0.25564834475517273, 0.08176634460687637, -0.22111724317073822, -0.291420042514801, 0.22528289258480072, -0.2763936221599579, 0.29653096199035645, 0.5968989133834839, 0.01841944083571434, -0.04782938212156296, 0.08096770197153091, 0.2573697566986084, -0.08099060505628586, 0.1679658591747284, -0.04620636627078056, 0.08849263191223145, 0.25398966670036316, -0.021019000560045242, 0.004968170076608658, 0.12219274044036865, 0.04252854362130165, 0.10275992751121521, 0.04553202912211418, -0.40421101450920105, -0.029937714338302612, 0.05306759104132652, 0.06338680535554886, 0.11527932435274124, 0.1767401099205017, 0.1918167769908905, 0.22660069167613983, 0.06508105993270874, -0.3978857100009918, -0.28350380063056946, -0.06756751239299774, 0.029123079031705856, -0.01949017122387886, 0.06196285039186478, 0.053446315228939056, 0.13821551203727722, 0.14687290787696838, 0.03162689134478569, 0.1826280802488327, -0.1548488885164261, 0.7969358563423157, -0.3889085054397583, 0.4114334285259247, -0.15663981437683105, -0.11990456283092499, -0.31109729409217834, 0.23450523614883423, -0.012480508536100388, -0.27760425209999084, 0.2567165493965149, 0.05373334884643555, 0.20902065932750702, -0.6258600950241089, -0.4577406346797943, 0.05285108834505081, -0.1441255658864975, 0.045297734439373016, 0.03430376201868057, -0.2054455429315567, -0.10702258348464966, 0.22070369124412537, 0.038490455597639084, -0.05876690894365311, -0.20872241258621216, -0.16665862500667572, -0.006819897331297398, 0.07215046882629395, -0.2570261061191559, -0.6848428845405579, -0.13186317682266235, -0.33636459708213806, -0.018551521003246307, -0.10787717998027802, 0.15694059431552887, -0.12324614077806473, -0.05142552778124809, -0.10490935295820236, 0.021720057353377342, -0.3342829644680023, -0.0948752611875534, -0.048730380833148956, 0.094504714012146, -0.008282912895083427, -0.45697295665740967, 0.19938847422599792, 0.1774873584508896, -0.20251187682151794, 0.1531117856502533, -0.5314670205116272, -0.2725241184234619, 0.20652003586292267, -0.04386264085769653, 0.1573563516139984, -0.17763321101665497, 0.5536832809448242, -0.108638234436512, -0.25384169816970825, -0.13455000519752502, -0.28660449385643005, 0.07206126302480698, 0.17124584317207336, 0.32463446259498596, 0.4091806411743164, 0.26245617866516113, 0.024273965507745743, 0.3892093300819397, 0.19030992686748505, 0.026737254112958908, 0.23416060209274292, 0.17951349914073944, 0.19240571558475494, -0.09376648813486099, -0.20985396206378937, 0.06765501201152802, 0.12601366639137268, 0.1618107259273529, 0.15517815947532654, 0.21250534057617188, -0.08542449027299881, -0.3764597475528717, -0.0002554282546043396, -0.005069650709629059, 0.10664921998977661, -0.2045840322971344, 0.19392043352127075, 0.6248508095741272, 0.15598006546497345, -0.06904161721467972, -0.1899847835302353, -0.05028083920478821, -0.12426434457302094, 0.239497572183609, 0.2186521589756012, -0.08031084388494492, 0.00497688353061676, 0.30570903420448303, -0.2312399446964264, 0.3685395121574402, -0.016263596713542938, 0.3051941990852356, -0.17457959055900574, 0.183700293302536, 0.1675747036933899, -0.0165347121655941, -0.0022485852241516113, -0.4258722960948944, 0.2501205801963806, 0.5538985133171082, -0.25770044326782227, 0.1758042573928833, 0.03193264082074165, -0.15974989533424377, -0.11758887767791748, -0.18528732657432556, 0.5539392232894897, -0.061652228236198425, -0.3503073751926422, 0.5332697629928589, 0.09580117464065552, -0.11599333584308624, 0.011696620844304562, -0.14897769689559937, -0.039174798876047134, 0.03618422895669937, -0.06920657306909561, -0.14557237923145294, 0.045096997171640396, 0.07075498253107071, -0.2735249102115631, -0.2130562961101532, -0.23029044270515442, -0.07894118130207062, -0.11622379720211029, 0.23028278350830078, -0.005495274905115366, 0.2637898921966553, 0.10186436772346497, -0.006938658654689789, 0.29441502690315247, 0.31050166487693787, 0.11030177772045135, -0.26450401544570923, 0.1126396507024765, -0.07665755599737167, 0.13211604952812195, 0.3621125817298889, -0.14406126737594604, 0.13535720109939575, -0.03249099478125572, 0.0674985721707344, -0.09203340858221054, -0.26734283566474915, 0.4327612519264221, -0.1655803918838501, -0.2975938618183136, -0.03650170564651489, 0.20603148639202118, 0.16863787174224854, -0.3554569482803345, 0.5559953451156616, 0.2967340648174286, 0.00805437471717596, -0.023656504228711128, -0.2770443558692932, 1.0293960571289062, -0.02873324602842331, -0.07097743451595306, -0.22299546003341675, -0.2106591761112213, 0.31160762906074524, 0.15183304250240326, 0.12755906581878662, -0.14791223406791687, -0.12004119157791138, -0.15635865926742554, 0.025576118379831314, 0.356655091047287, 0.013788662850856781, -0.45225974917411804, 0.18001915514469147, -0.1066877692937851, 0.34587016701698303, 0.18150383234024048, 0.41813698410987854, 0.2039353847503662, 0.21499960124492645, -0.13578717410564423, 0.18121808767318726, 0.04151124879717827, 0.3444072902202606, -0.11158087104558945, -0.11234115064144135, 0.05060965195298195, -0.16847851872444153, -0.37727534770965576, -0.162756085395813, 0.09462263435125351, 0.12849566340446472, -0.04188169166445732, -0.3295050263404846, 0.15016400814056396, -0.20670321583747864, 0.23946167528629303, 0.05871200934052467, -0.15435215830802917, 0.10663332045078278, -0.10029879957437515, -0.29569366574287415, 0.04223567247390747, 0.20251359045505524, 0.24934692680835724, -0.3657999038696289, -0.1296650618314743, 0.20751890540122986, -0.06659575551748276, -0.1957613229751587, -0.380560040473938, 0.014415375888347626, 0.19049982726573944, -0.08584954589605331, 0.0902336984872818, 0.07931065559387207, 0.000038973987102508545, -0.2687566876411438, 0.21664172410964966, 0.23639056086540222, 0.17307233810424805, -0.07047220319509506, 0.09091229736804962, -0.09439770132303238, -0.04622824862599373, 0.33157411217689514, 0.4488440155982971, -0.08695108443498611, -0.05772613734006882, -0.10464806854724884, -0.02531537227332592, -0.296737939119339, 0.16510829329490662, 0.1483703851699829, -0.19265471398830414, 0.3166777789592743, 0.045182112604379654, -0.17714472115039825, 0.09663151204586029, 0.8037611246109009, 0.11329075694084167, -0.08670196682214737, -0.30893823504447937, -0.22691473364830017, -0.20127299427986145, 0.40074676275253296, -0.3507450222969055, -0.063259556889534, -0.17282116413116455, 0.0035145506262779236, 0.17836496233940125, -0.2588581442832947, -0.3582354187965393, 0.10949456691741943, -0.02293449267745018, -0.1558411717414856, 0.38056161999702454, -0.13976478576660156, -0.12688815593719482, -0.16952340304851532, 0.06836100667715073, -0.19142569601535797, -0.4219686985015869, -0.1825898289680481, -0.00688076950609684, 0.1795588880777359, -0.09949962794780731, 0.11059026420116425, -0.21884261071681976, -0.33317118883132935, -0.3294791281223297, 0.5655472278594971, -0.057462841272354126, 0.21055829524993896, 0.265817791223526, -0.0013696029782295227, -0.1911037713289261, 0.08320647478103638, -0.04736034944653511, 0.14442037045955658, 0.29168641567230225, 0.06167347729206085, 0.05258164554834366, 0.21925108134746552, 0.33524051308631897, -0.05124558135867119, -0.3188326358795166, -0.08573167771100998, 0.02837974578142166, 0.10824374109506607, 0.25338491797447205, 0.08450749516487122, 0.07785522937774658, 0.31770604848861694, 0.26134029030799866, 0.14774639904499054, 0.02358786016702652, -0.1045151874423027, 0.14997273683547974, 0.22904635965824127, -0.4348067343235016, -0.21444468200206757, -0.10244354605674744, 0.19541533291339874, -0.35196879506111145, -0.05866394191980362, 0.4161960482597351, 0.37451106309890747, 0.3306235074996948, 0.23533469438552856, 0.32521623373031616, -0.28755462169647217, 0.17533713579177856, 0.29865071177482605, 0.28216221928596497, 0.08192461729049683, 0.27020829916000366, 0.3563089072704315, 0.11984121054410934, -0.11741721630096436, 0.11622270941734314, 0.2579939365386963, 0.6770773530006409, 0.46111342310905457, 0.2945823669433594, -0.167415052652359, 0.1528615802526474, 0.14507617056369781, 0.024857021868228912, -0.009703479707241058, -0.028064340353012085, 0.23412543535232544, -0.2223810851573944, 0.000882523600012064, -0.2526206970214844, -0.19898249208927155, -0.13957682251930237, -0.2066178321838379, 0.08047940582036972, -0.2013022005558014, -0.16393159329891205, -0.049034323543310165, -0.0818430632352829, 0.38813692331314087, 0.4651457965373993, -0.17233629524707794, 0.06459134072065353, -0.10199669748544693, -0.1264232099056244, 0.1757831871509552, 0.2655937075614929, -0.18459682166576385, 0.30188456177711487, -0.4171665906906128, 0.10559451580047607, 0.20459991693496704, 0.5415051579475403, 0.0668875128030777, -0.005513742566108704, -0.09665107727050781, -0.034616824239492416, -0.20498982071876526, -0.09645208716392517, 0.11996643245220184, 0.4839952290058136, 0.2810302972793579, 0.32640182971954346, 0.023384757339954376, 0.0755380392074585, -0.142159104347229, 0.41687172651290894, -0.10790735483169556, -0.1283356249332428, -0.6276835799217224, 0.2174910604953766, -0.10517285764217377, -0.1579536497592926, -0.06128198653459549, 0.1260121762752533, -0.012663692235946655, -0.3415762186050415, 0.27159687876701355, 0.21668855845928192, -0.06430534273386002, -0.24864691495895386, 0.11121860146522522, -0.23084920644760132, 0.042016878724098206, 0.013572219759225845, -0.008657433092594147, -0.019740015268325806, -0.30968672037124634, -0.4489585757255554, 0.390798419713974, 0.1115972250699997, -0.24081459641456604, 0.10528089106082916, 0.21330057084560394, 0.08897830545902252, 0.30819785594940186, 0.0924188643693924, -0.17903971672058105, -0.31719470024108887, -0.1446872055530548, -0.40227434039115906, 0.1941869854927063, 0.3912084698677063, 0.08479383587837219, -0.04224235564470291, -0.2774842381477356, 0.27421918511390686, -0.29324105381965637, 0.032242827117443085, 0.1044759675860405, -0.33371666073799133, 0.3860049843788147, 0.14066636562347412, 0.5287457704544067, 0.032131366431713104, 0.13045485317707062, 0.2330348789691925, -0.13441923260688782, -0.4677232503890991, -0.13288795948028564, -0.03367091715335846, -0.10856831818819046, 0.04182322323322296, 0.0438946932554245, -0.267730712890625, 0.11621518433094025, -0.19904549419879913, 0.05104324221611023, -0.3705941438674927, 0.411442369222641, 0.06625538319349289, 0.10950750857591629, 0.06625036150217056, -0.2569507360458374, 0.2648659944534302, 0.05526766553521156, -0.11630012094974518, -0.2598814070224762, -0.4447283148765564, -0.31967371702194214, 0.29488539695739746, 0.009998398832976818, -0.14694231748580933, -0.11868615448474884, 0.07514171302318573, 0.2601581811904907, -0.2630869150161743, -0.4047778248786926, -0.13587838411331177, 0.30264386534690857, 0.2290503978729248, -0.12055440247058868, 0.0037200963124632835, 0.011636970564723015, -0.18535690009593964, 0.07482282817363739, 0.301775723695755, -0.14734980463981628, -0.11054828763008118, -0.1910792589187622, 0.07434478402137756 ]
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.14233562350273132, 0.17272639274597168, -0.0044712889939546585, 0.04009644314646721, 0.09973692893981934, 0.027367644011974335, -0.01320519670844078, 0.06842201948165894, 0.013826165348291397, 0.05311477929353714, -0.03956028074026108, 0.30000773072242737, 0.34994399547576904, -0.3781616687774658, -0.10492651909589767, 0.13061508536338806, 0.09097261726856232, 0.09414937347173691, 0.2756742835044861, 0.19792817533016205, -0.035914234817028046, 0.09590891003608704, -0.12475433200597763, -0.08929167687892914, -0.33463186025619507, 0.021213926374912262, -0.031671151518821716, -0.12353723496198654, -0.02871754579246044, -0.41674351692199707, 0.30194833874702454, -0.150185227394104, -0.12258533388376236, 0.35763493180274963, -0.00011850786540890113, 0.07807427644729614, 0.4348541498184204, -0.03297175094485283, -0.018321817740797997, -0.2907206416130066, -0.07237981259822845, -0.1354442685842514, 0.27919867634773254, -0.15913209319114685, -0.09534788131713867, 0.161763533949852, 0.09874837100505829, -0.6114606857299805, 0.441523015499115, 0.3961339592933655, 0.22101140022277832, 0.318006694316864, 0.3437507450580597, -0.12438353151082993, 0.4198286831378937, -0.12811219692230225, -0.048951104283332825, -0.2564227879047394, 0.2530341148376465, -0.03889832645654678, -0.02906683087348938, 0.1452290415763855, -0.0944894328713417, -0.2707448899745941, 0.10850374400615692, 0.14813494682312012, -0.46254271268844604, -0.2957310378551483, 0.3149893879890442, 0.11342249810695648, 0.1910264790058136, -0.07123377174139023, -0.251936137676239, 0.045185111463069916, -0.0008991651702672243, 0.1622105985879898, 0.19942042231559753, 0.18945713341236115, 0.0606103278696537, 0.11904220283031464, 0.06539028137922287, -0.12489817291498184, -0.23916135728359222, 0.4135320782661438, -0.0537080317735672, 0.1734447032213211, -0.09754180908203125, 0.10647594928741455, 0.13659441471099854, -0.14607968926429749, 0.07822884619235992, 0.25229522585868835, -0.27293333411216736, -0.05551565811038017, -0.37644264101982117, 0.10244697332382202, -0.11689487844705582, -0.20027151703834534, 0.41850486397743225, -0.06345265358686447, -0.09268470108509064, 0.15973231196403503, 0.6514126062393188, 0.08237047493457794, 0.28602978587150574, -0.06310363113880157, 0.06138167530298233, 0.3085786998271942, 0.07358764857053757, -0.3172643780708313, -0.3174733519554138, -0.2593565285205841, 0.28547918796539307, -0.21496978402137756, 0.4180784821510315, -0.4818156063556671, 0.21345701813697815, -0.03002770058810711, -0.15906555950641632, 0.2193007469177246, -0.5879532098770142, -0.006158096250146627, -0.07535016536712646, 0.1353491097688675, 0.1364610493183136, -0.4953060746192932, 0.03836938738822937, 0.27251625061035156, -0.22893041372299194, 0.14522162079811096, -0.2356664389371872, -0.26598313450813293, 0.0408693365752697, 0.017961792647838593, 0.11603577435016632, -0.6583978533744812, 0.22957271337509155, 0.002188284881412983, 0.08425961434841156, -0.3945719599723816, 0.26301154494285583, -0.08290025591850281, 0.17736360430717468, 0.21885527670383453, 0.0615348182618618, 0.023488463833928108, 0.02322726510465145, -0.4385557174682617, -0.035155411809682846, -0.12219380587339401, -0.38145336508750916, -0.2521410882472992, -0.27648457884788513, 0.21022765338420868, -0.1385771632194519, 0.017178263515233994, 0.13575206696987152, 0.2181534767150879, 0.11031204462051392, -0.008274666965007782, 0.07757581025362015, -0.04035534709692001, -0.2897685766220093, 0.08141598850488663, 0.29978957772254944, 0.20748090744018555, 0.11608573794364929, -0.129006490111351, 0.03454871475696564, 0.4276863634586334, -0.2609283924102783, 0.21411840617656708, -0.23132753372192383, 0.03642946109175682, -0.17314161360263824, 0.4179224371910095, 0.33503052592277527, -0.4630017876625061, -0.6134618520736694, 0.13872092962265015, -0.2306153029203415, -0.09500938653945923, -0.2723558247089386, 0.060784704983234406, 0.6483927965164185, 0.010772193782031536, 0.17986756563186646, 0.24768152832984924, -0.17625731229782104, -0.16789843142032623, -0.15230105817317963, -0.0007274765521287918, -0.14308807253837585, -0.17720246315002441, 0.0628989115357399, 0.090335413813591, 0.2576126158237457, 0.20041006803512573, -0.005573853850364685, 0.18954619765281677, 0.011543041095137596, 0.30669552087783813, 0.35648685693740845, 0.10774920135736465, 0.25268039107322693, -0.12880195677280426, -0.25653156638145447, 0.2232704758644104, 0.08952878415584564, 0.08368605375289917, -0.1827765256166458, -0.11986315995454788, -0.137906014919281, 0.007161583751440048, -0.15699298679828644, 0.03099587932229042, 0.10749730467796326, -0.23774299025535583, -0.21988697350025177, 0.1922544538974762, 0.00023052096366882324, -0.1667480319738388, 0.07281046360731125, 0.2382163405418396, -0.23763902485370636, 0.3120538592338562, -0.08301267772912979, -0.08675331622362137, -0.18836091458797455, -0.012789875268936157, 0.23681652545928955, -0.20603898167610168, -0.1446206271648407, 0.33254143595695496, -0.09940639138221741, 0.317195862531662, 0.1542840600013733, 0.025193870067596436, 0.12611819803714752, -0.6889190673828125, -0.1038777157664299, 0.1420571357011795, 0.05719641596078873, -0.2761909067630768, -0.0003119632601737976, 0.015249192714691162, 0.007225144654512405, 0.37240126729011536, -0.21710239350795746, 0.08687327802181244, -0.0073974598199129105, -0.17348165810108185, -0.45978960394859314, -0.03373270854353905, -0.019845496863126755, -0.3641357123851776, -0.04249116778373718, -0.11294084787368774, -0.11829103529453278, 0.03190460056066513, 0.01611529290676117, 0.15425260365009308, 0.10466200858354568, 0.37098610401153564, 0.020229753106832504, -0.10019181668758392, -0.38004177808761597, -0.020859744399785995, 0.2398633509874344, 0.17840421199798584, 0.14130792021751404, -0.0003942791372537613, 0.01600012183189392, -0.05712631344795227, 0.3174206018447876, 0.34493231773376465, 0.08519112318754196, 0.3284902274608612, 0.42678338289260864, 0.08073503524065018, -0.23499974608421326, -0.05562377721071243, -0.21877099573612213, -0.034960582852363586, -0.2483052760362625, 0.4837777614593506, -0.038178812712430954, 0.12168847769498825, -0.14218200743198395, 0.036698296666145325, -0.26087576150894165, -0.4408203065395355, -0.10007123649120331, 0.19188815355300903, -0.029805626720190048, 0.010196651332080364, -0.3896358907222748, -0.028017058968544006, 0.25365352630615234, -0.271968275308609, 0.14002299308776855, -0.138258159160614, -0.14236360788345337, -0.03425110876560211, 0.18529552221298218, 0.05593548342585564, 0.23909153044223785, 0.22776085138320923, -0.13080427050590515, -0.38574138283729553, -0.44017091393470764, 0.13538479804992676, 0.0270670335739851, 0.33816322684288025, 0.10618359595537186, -0.20703701674938202, -0.41890960931777954, -0.13923628628253937, 0.23917512595653534, -0.15691430866718292, 0.09605224430561066, 0.09899023920297623, 0.08122646063566208, 0.16545571386814117, 0.2521836459636688, -0.2988073229789734, -0.18562965095043182, -0.17730595171451569, 0.03192955255508423, -0.130062073469162, -0.0701896995306015, 0.32654836773872375, -0.010066667571663857, 0.1334313303232193, -0.1179937794804573, -0.09436553716659546, -0.1205616220831871, -0.15527892112731934, 0.05129050463438034, -0.161736860871315, -0.314648300409317, 0.16640280187129974, -0.03586572781205177, -0.24765101075172424, 0.23991672694683075, -0.39511317014694214, 0.21291469037532806, 0.12620513141155243, -0.25794732570648193, -0.30928635597229004, 0.05593530088663101, 0.08564438670873642, -0.26329711079597473, -0.015295447781682014, -0.03317338228225708, 0.029206842184066772, 0.17546343803405762, 0.22315549850463867, 0.09258706867694855, -0.0978388637304306, 0.23610824346542358, -0.0709357038140297, 0.6817721724510193, 0.16039882600307465, -0.013462208211421967, 0.15878620743751526, -0.17086248099803925, 0.3219512701034546, -0.23699307441711426, -0.5023808479309082, -0.14123961329460144, -0.10594409704208374, -0.10542012006044388, -0.028370335698127747, 0.1095743328332901, -0.2827520966529846, -0.11559993028640747, -0.24269047379493713, -0.060500796884298325, -0.5460487008094788, 0.1893928498029709, 0.17110022902488708, 0.0693427324295044, 0.05686541274189949, 0.15642783045768738, 0.12334102392196655, -0.4360741078853607, -0.425250381231308, -0.12721961736679077, -0.1278427243232727, 0.015780102461576462, -0.26754453778266907, 0.19871875643730164, -0.6068621277809143, 0.16466987133026123, -0.05421056970953941, 0.5287724137306213, 0.05517037585377693, 0.0009345971047878265, 0.14209182560443878, 0.1686774641275406, 0.7477443218231201, -0.22517409920692444, -0.11859798431396484, -0.015835348516702652, 0.05479308217763901, -0.5928253531455994, 0.09874610602855682, -0.1476440727710724, 0.6286976933479309, 0.20921866595745087, 0.37377315759658813, 0.028893455862998962, 0.17451851069927216, 0.07553637027740479, -0.10054688900709152, 0.07907013595104218, -0.07784196734428406, -0.22568300366401672, -0.22002717852592468, 0.3044414222240448, 0.27427440881729126, 0.3445188105106354, 0.08100245893001556, 0.32237929105758667, -0.22847755253314972, -0.2969669699668884, -0.030945485457777977, 0.04371831566095352, -0.2290932834148407, 0.2575109302997589, -0.07814813405275345, 0.2960498034954071, 0.4340250492095947, 0.21778537333011627, 0.276228666305542, 0.4081858694553375, -0.24404048919677734, 0.08859356492757797, -0.019674081355333328, -0.03754722326993942, 0.17640995979309082, 0.345209538936615, 0.23339416086673737, 0.15300092101097107, 0.1788766235113144, 0.06654170900583267, -0.21474215388298035, -0.18785911798477173, 0.5031181573867798, 0.13828633725643158, -0.47608640789985657, 0.06704302877187729, 0.3620654046535492, -0.06275171786546707, -0.03086569532752037, 0.07451488077640533, 0.5442930459976196, -0.3988701105117798, 0.6471540331840515, 0.11359819769859314, 0.6712860465049744, 0.08919495344161987, -0.07255643606185913, -0.26307523250579834, 0.11092616617679596, 0.7352769374847412, -0.3347005844116211, 0.25493741035461426, -0.2097504884004593, -0.5855284333229065, -0.06905855983495712, -0.28585025668144226, 0.008680906146764755, -0.22341810166835785, -0.36034825444221497, 0.016650434583425522, -0.382299542427063, 0.2821253836154938, -0.08415574580430984, 0.3374680280685425, -0.15104667842388153, -0.1274796575307846, 0.035268884152173996, 0.15474002063274384, 0.2227136492729187, 0.2692335247993469, 0.1916234791278839, 0.04244479164481163, -0.01742258295416832, -0.2775607109069824, -0.4944607615470886, -0.019128773361444473, -0.12745994329452515, 0.15517397224903107, 0.18276548385620117, -0.04532292112708092, 0.3815470039844513, 0.098896823823452, 0.04814901202917099, 0.10755772888660431, -0.18122370541095734, 0.24065116047859192, -0.008087635040283203, -0.05698366090655327, 0.44466814398765564, -0.22058317065238953, 0.07117947936058044, 0.179122656583786, -0.40241652727127075, -0.018444299697875977, 0.2618081271648407, -0.1858660876750946, -0.08226995170116425, 0.34710317850112915, -0.2522740960121155, -0.373271107673645, -0.23475731909275055, -0.12859179079532623, -0.06755010783672333, -0.14326506853103638, 0.08923211693763733, 0.008490566164255142, -0.12428572028875351, 0.2830710709095001, 0.3689802289009094, -0.24953219294548035, 0.07210104167461395, 0.8503791093826294, -0.21605035662651062, -0.13867385685443878, 0.20747768878936768, 0.06039522960782051, -0.17180238664150238, -0.11009161919355392, 0.32643088698387146, 0.285936176776886, -0.15067726373672485, -0.25924378633499146, -0.46274977922439575, 0.22831623256206512, 0.036962952464818954, 0.03771578520536423, 0.21224604547023773, -0.009236961603164673, -0.18426157534122467, -0.19047731161117554, 0.1433345079421997, 0.1566765308380127, 0.4442588686943054, 0.10218631476163864, -0.319886714220047, -0.4058082401752472, -0.0958280935883522, 0.13750064373016357, -0.24381104111671448, 0.3268672525882721, -0.25202855467796326, 0.006450485438108444, -0.129592165350914, -0.05161621421575546, 0.5856393575668335, -0.37528112530708313, 0.05919640511274338, 0.17448459565639496, -0.05121929198503494, -0.16854047775268555, -0.06370185315608978, 0.11913761496543884, -0.04507606476545334, -0.10700853168964386, -0.166634663939476, -0.23166070878505707, -0.047348443418741226, -0.2600589692592621, 0.026888065040111542, 0.424556702375412, 0.12926939129829407, -0.1663021296262741, -0.15225207805633545, -0.12608706951141357, 0.354925274848938, -0.08605176955461502, 0.2210671752691269, 0.25743353366851807, 0.016934441402554512, 0.285054087638855, 0.10951437801122665, -0.031354278326034546, -0.11664329469203949, 0.27056580781936646, -0.04370790719985962, 0.07836632430553436, 0.2038310170173645, -0.2371044009923935, -0.09618137776851654, 0.5086308717727661, 0.41947096586227417, 0.3942946791648865, -0.3104341924190521, -0.1650983691215515, -0.0005252650007605553, 0.24133113026618958, 0.04924819618463516, -0.24171076714992523, 0.612632691860199, 0.09002534300088882, 0.12838849425315857, 0.20120231807231903, 0.08903901278972626, -0.31309303641319275, -0.3525213599205017, 0.029185902327299118, 0.7695252299308777, 0.13496582210063934, 0.1062518060207367, -0.18472333252429962, -0.029899122193455696, -0.030788179486989975, 0.0969657152891159, 0.15404526889324188, 0.3628752529621124, 0.21087941527366638, 0.009351029992103577, 0.44576364755630493, 0.09463893622159958, 0.2002352625131607, 0.1958201825618744, 0.14632809162139893, 0.2819834351539612, 0.2778770923614502, 0.19834578037261963, 0.06488385796546936, -0.031021632254123688, 0.8150582909584045, -0.008176798932254314, -0.3088994324207306, -0.1074739322066307, 0.012354917824268341, -0.0718856081366539, -0.13820119202136993, 0.2133588194847107, -0.16537979245185852, -0.0008468329906463623, -0.24163852632045746, 0.08490069955587387, -0.02695871889591217, -0.39012807607650757, 0.15754982829093933, 0.11248147487640381, -0.04309522360563278, 0.05088891088962555, -0.14149674773216248, 0.07672008872032166, -0.1664367914199829, 0.003623591735959053, -0.151906356215477, 0.12521204352378845, 0.23516780138015747, 0.3312089443206787, 0.40355953574180603, -0.07472363114356995, -0.1400463730096817, 0.4058654308319092, -0.035012051463127136, -0.14455294609069824, 0.10792140662670135, 0.03183716535568237, -0.0002722516655921936, -0.5440952777862549, 0.1478167027235031, 0.04871272295713425, -0.06358878314495087, 0.01404167152941227, 0.2640840709209442, 0.43219804763793945, -0.15409156680107117, -0.3470180928707123, -0.21063190698623657, 0.07443229109048843, -0.17836466431617737, -0.15063002705574036, -0.160038024187088, 0.09886046499013901, 0.2971239686012268, -0.21230952441692352, 0.1440628170967102, 0.14290133118629456, 0.06288836896419525, -0.08692178130149841, 0.1966792196035385, 0.11604873836040497, -0.055046387016773224, -0.03339742124080658, 0.07475216686725616, -0.20595422387123108, 0.3186420202255249, -0.45080894231796265, 0.16926801204681396, 0.5591518878936768, 0.29605185985565186, -0.2047143280506134, 0.10676649957895279, 0.18077054619789124, -0.23506589233875275, -0.29931262135505676, -0.07724502682685852, -0.01604129560291767, -0.22386698424816132, -0.10156120359897614, 0.026177722960710526, -0.01014176569879055, -0.025155561044812202, 0.10904493927955627, -0.5017808079719543, 0.023462161421775818, -0.23539723455905914, -0.15409579873085022, -0.19839565455913544, -0.17497454583644867, 0.11525078117847443, 0.07642865180969238, 0.2546809911727905, -0.01082548312842846, 0.07054360955953598, -0.19427165389060974, -0.46987438201904297, -0.28177279233932495, 0.26535919308662415, 0.09579090774059296, 0.030969463288784027, -0.2558007538318634, -0.49813929200172424, -0.20893682539463043, 0.14825932681560516, 0.09516969323158264, -0.10516102612018585, -0.49359002709388733, 0.02118384651839733, -0.06647427380084991, 0.12540315091609955, -0.2824282944202423, 0.32178860902786255, -0.05846033990383148, 0.45554566383361816, 0.05762287974357605, -0.4273315370082855, 0.47240856289863586, -0.33195966482162476, 0.00557878240942955, -0.04099426418542862, 0.2926781475543976, 0.6038848161697388, 0.14099344611167908, -0.23869472742080688, -0.1673584282398224, 0.27565354108810425, -0.19434601068496704, -0.24405920505523682, -0.09817366302013397, -0.015066860243678093, 0.19261910021305084, -0.025973239913582802, -0.16197997331619263, 0.27429044246673584, -0.02924884855747223, 0.015126649290323257, -0.09116991609334946 ]
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.2659159302711487, 0.3422670364379883, 0.03556741401553154, 0.30986160039901733, 0.2141987383365631, 0.040436819195747375, 0.36466747522354126, 0.4201541841030121, 0.3040364980697632, 0.07150101661682129, -0.27686935663223267, 0.1901174634695053, 0.1306929588317871, -0.19510632753372192, -0.16129305958747864, 0.3339100480079651, 0.1246943473815918, 0.10538575053215027, -0.2242203652858734, -0.12527911365032196, -0.3106774687767029, 0.1985783576965332, -0.21844765543937683, -0.2842971086502075, -0.05295628681778908, 0.1835625171661377, 0.1532595306634903, 0.23243489861488342, -0.12070263177156448, -0.358711838722229, 0.27882498502731323, 0.27852991223335266, 0.17364296317100525, 0.42961499094963074, -0.0001249283814104274, 0.12080086767673492, 0.28177207708358765, -0.024277634918689728, -0.5012798309326172, -0.2013920694589615, -0.5633583664894104, -0.37422457337379456, -0.007036429829895496, -0.15833570063114166, -0.03448762744665146, 0.23633727431297302, -0.017784884199500084, -0.2750733494758606, 0.0001784488558769226, 0.37369364500045776, 0.11685681343078613, 0.39186733961105347, 0.1609969139099121, 0.0871681421995163, 0.38125741481781006, 0.05049647018313408, -0.09010018408298492, 0.41197457909584045, 0.21939757466316223, -0.03859580680727959, -0.25820183753967285, 0.16832786798477173, -0.423460990190506, 0.30699455738067627, 0.23205816745758057, 0.061882384121418, 0.0648745521903038, -0.13736741244792938, 0.25324761867523193, 0.2994748055934906, 0.498142272233963, -0.41465938091278076, -0.32781311869621277, -0.22857412695884705, -0.2983013689517975, -0.3188686966896057, 0.379134863615036, 0.13985715806484222, -0.19677716493606567, 0.03362946957349777, -0.3680803179740906, 0.14996246993541718, 0.0037703439593315125, 0.1940128207206726, 0.24226751923561096, 0.0545370988547802, 0.03165462613105774, -0.018766194581985474, 0.022112563252449036, 0.02987774834036827, 0.39370763301849365, -0.5399646162986755, -0.20467838644981384, 0.20481041073799133, -0.5590250492095947, 0.07308632135391235, 0.008054949343204498, 0.27770668268203735, 0.35263490676879883, 0.4925142526626587, 0.08900981396436691, 0.2042800486087799, -0.03753899037837982, 0.188515305519104, 0.1643190234899521, 0.21197031438350677, -0.06473513692617416, 0.4100458323955536, 0.2708587646484375, 0.365680456161499, -0.13477782905101776, 0.04320977255702019, -0.005434769671410322, -0.1764214187860489, 0.6712676882743835, -0.12599480152130127, 0.3084338903427124, -0.48904237151145935, -0.4388943910598755, 0.271325945854187, 0.00819937139749527, -0.09479724615812302, 0.08695083111524582, 0.3220200538635254, -0.22657939791679382, 0.15165972709655762, 0.1470196545124054, 0.14769147336483002, -0.21250098943710327, -0.05413270741701126, -0.1873367875814438, -0.07644011080265045, -0.059677936136722565, 0.19760894775390625, 0.29423004388809204, -0.18220078945159912, 0.2553636431694031, 0.10830988734960556, 0.21902647614479065, -0.19608190655708313, 0.2999759614467621, -0.19556301832199097, -0.05336286872625351, 0.31806644797325134, -0.03223099932074547, 0.09612510353326797, 0.24766364693641663, -0.18122342228889465, -0.14394254982471466, 0.18287700414657593, -0.25577640533447266, -0.2137444019317627, -0.12690921127796173, 0.15115119516849518, -0.351426899433136, 0.008209161460399628, -0.23782652616500854, -0.40002602338790894, 0.40632545948028564, -0.32234248518943787, -0.015482902526855469, -0.3542114496231079, -0.2637976109981537, -0.35394424200057983, 0.2389729619026184, 0.4025992751121521, 0.04192398861050606, 0.042652763426303864, -0.09056469798088074, -0.011483728885650635, 0.29419296979904175, 0.18351122736930847, 0.009319894015789032, 0.10563147813081741, -0.41249123215675354, -0.06356114894151688, 0.26065415143966675, -0.3542017936706543, -0.6170883774757385, 0.10361715406179428, 0.12774649262428284, 0.6295827627182007, 0.047642771154642105, 0.07500483840703964, 0.18316803872585297, -0.050239332020282745, 0.22169969975948334, 0.1532370150089264, -0.03878571838140488, 0.12447955459356308, -0.25280508399009705, -0.0325603187084198, -0.0434717983007431, 0.10448656976222992, 0.020173219963908195, 0.24980434775352478, 0.28892168402671814, -0.16611245274543762, 0.2637808322906494, -0.09536603093147278, -0.12573716044425964, 0.23210455477237701, 0.2991997301578522, 0.046875741332769394, 0.06397265195846558, -0.016745951026678085, -0.7693796157836914, 0.3423205614089966, -0.15059271454811096, -0.028012245893478394, -0.07335084676742554, -0.0444161482155323, -0.18030506372451782, -0.11414822190999985, -0.3073669373989105, -0.09120486676692963, -0.012601736932992935, 0.3906348645687103, 0.20742163062095642, 0.020101647824048996, 0.037946391850709915, 0.4137774705886841, -0.3047976791858673, 0.12482915073633194, -0.3346222937107086, 0.41184884309768677, 0.07434230297803879, -0.10293784737586975, 0.13182446360588074, -0.0030288472771644592, 0.1328229457139969, -0.05629473552107811, -0.2745422422885895, 0.43870657682418823, 0.3811515271663666, 0.13638322055339813, -0.1962328851222992, 0.3414158821105957, -0.0699218362569809, -0.1395464837551117, -0.012618547305464745, 0.4393080174922943, 0.12039755284786224, -0.16905540227890015, -0.1533745527267456, 0.34739211201667786, -0.0006351582705974579, 0.1946762204170227, 0.0062536150217056274, 0.057583197951316833, 0.24504956603050232, -0.11670224368572235, -0.14613740146160126, -0.2618686258792877, 0.3650648891925812, 0.12959954142570496, 0.22662483155727386, 0.19694119691848755, -0.15721125900745392, -0.025889627635478973, 0.4515211284160614, -0.07350896298885345, -0.020525261759757996, 0.12885048985481262, 0.04746615141630173, -0.04369352012872696, 0.07537597417831421, 0.23707444965839386, 0.5027204155921936, 0.06688665598630905, -0.04628343507647514, 0.1425229161977768, -0.17180772125720978, -0.06782606989145279, 0.09680472314357758, -0.04073892533779144, 0.19895543158054352, 0.6168531179428101, 0.13804244995117188, -0.15266714990139008, -0.2818838357925415, -0.0774434357881546, -0.12176050990819931, 0.3029193580150604, -0.49030518531799316, 0.07696989923715591, -0.10728748887777328, 0.08582382649183273, -0.37316855788230896, -0.12689971923828125, -0.18559767305850983, -0.2465101182460785, -0.2533244490623474, 0.6255080699920654, 0.02918412908911705, 0.1770877093076706, -0.5438399314880371, 0.026174619793891907, -0.04827313870191574, -0.365887850522995, 0.017864786088466644, 0.20343630015850067, -0.21111071109771729, -0.15474030375480652, 0.5788068771362305, -0.09108760207891464, 0.3742567002773285, -0.4110652506351471, -0.026851098984479904, -0.5500813126564026, -0.22336390614509583, 0.09451515972614288, 0.01622743345797062, 0.2236749529838562, 0.1711827516555786, 0.04065745323896408, -0.019199814647436142, -0.2501072883605957, 0.2409212589263916, -0.04423116147518158, -0.2682676315307617, 0.32362791895866394, -0.15102845430374146, -0.09554973244667053, 0.17093604803085327, -0.19851207733154297, -0.0594511553645134, -0.30505549907684326, -0.12973825633525848, 0.23192210495471954, 0.21338105201721191, 0.19363220036029816, -0.006471211090683937, 0.015293742530047894, 0.13896656036376953, 0.3373677432537079, -0.16820292174816132, -0.6134577989578247, 0.44486308097839355, -0.037825070321559906, -0.22020284831523895, -0.14433160424232483, -0.10698513686656952, 0.11745372414588928, 0.39740437269210815, -0.5095444321632385, 0.016748860478401184, -0.2880870997905731, 0.09456290304660797, 0.09506310522556305, -0.024056406691670418, 0.2160235494375229, 0.1453540325164795, 0.08296540379524231, -0.24995478987693787, -0.27190592885017395, 0.1908770203590393, -0.13722577691078186, 0.19965602457523346, 0.022646993398666382, 0.3025050759315491, -0.2673565149307251, 0.546239972114563, 0.42744287848472595, 0.006137479096651077, 0.2280859649181366, 0.046746473759412766, 0.5268774032592773, -0.1603362262248993, -0.317992627620697, -0.07851119339466095, -0.20986789464950562, -0.13363425433635712, 0.1367110162973404, -0.025606315582990646, -0.12907619774341583, -0.16024035215377808, 0.05656328424811363, -0.2643207609653473, -0.26646319031715393, 0.05570366233587265, -0.2999246120452881, 0.3418464660644531, 0.18070806562900543, 0.17876821756362915, -0.14496463537216187, -0.3675053119659424, -0.01113293319940567, 0.25516408681869507, -0.06216719001531601, -0.06465385109186172, -0.2754189968109131, 0.036128077656030655, -0.09631191939115524, 0.3009791374206543, 0.21668855845928192, 0.43858736753463745, 0.12864218652248383, -0.08465400338172913, -0.018669001758098602, 0.023542042821645737, 0.22706656157970428, -0.2749733626842499, 0.29569754004478455, 0.14856062829494476, -0.00795714184641838, -0.1783580183982849, -0.2544603645801544, -0.04324992001056671, 0.06182227283716202, 0.04338766634464264, 0.5564834475517273, -0.3165840804576874, -0.01635723002254963, 0.24136056005954742, 0.41004282236099243, -0.14618514478206635, -0.2883683443069458, -0.44035604596138, -0.1881624162197113, -0.29695072770118713, -0.18072614073753357, -0.14348697662353516, 0.12070498615503311, -0.2336423695087433, -0.1006111353635788, -0.017982812598347664, 0.057041384279727936, 0.29716813564300537, -0.056949734687805176, 0.44865894317626953, -0.06271502375602722, 0.4389149248600006, 0.04354338347911835, 0.06077486649155617, 0.40352270007133484, 0.8385487198829651, -0.3676980435848236, -0.44208747148513794, -0.07953264564275742, -0.13003118336200714, -0.1770051121711731, 0.07271628826856613, -0.029712945222854614, -0.13397854566574097, 0.236907497048378, -0.13341683149337769, -0.08766337484121323, -0.07257220149040222, 0.21041688323020935, 0.19986246526241302, -0.4859302341938019, -0.47055017948150635, 0.1425006091594696, 0.08549864590167999, -0.056500259786844254, 0.5796324610710144, -0.06785722076892853, -0.17266367375850677, 0.09759189188480377, 0.15627813339233398, 0.7910823225975037, -0.03746909648180008, 0.20977947115898132, 0.2671893537044525, -0.3216480612754822, -0.015329834073781967, -0.28848525881767273, 0.11760421097278595, -0.5410559177398682, -0.4565598666667938, 0.002372879534959793, -0.4108853340148926, 0.06949304789304733, 0.02445659041404724, -0.005876217037439346, 0.36442801356315613, -0.13654044270515442, 0.3639831840991974, 0.1626518815755844, 0.15032491087913513, -0.1333136260509491, -0.019251592457294464, -0.024690236896276474, 0.05636774003505707, -0.1063271313905716, 0.2817873954772949, -0.10432561486959457, 0.07447225600481033, -0.08374319225549698, -0.24914208054542542, -0.33596694469451904, 0.2686167061328888, -0.04842666536569595, 0.30638909339904785, 0.3144688010215759, -0.15623968839645386, -0.19320453703403473, 0.3079410493373871, 0.19318869709968567, 0.12565143406391144, -0.20242716372013092, -0.0966147929430008, 0.4446161091327667, 0.18595898151397705, 0.10808415710926056, -0.1174766793847084, 0.42943745851516724, -0.016474908217787743, -0.17061878740787506, -0.019508033990859985, -0.15670841932296753, -0.5109944939613342, -0.06384684145450592, -0.1865803450345993, -0.01395338773727417, -0.33274567127227783, -0.18218563497066498, -0.14913712441921234, -0.0026480555534362793, -0.1799304038286209, 0.10349555313587189, 0.15092045068740845, -0.1339949369430542, 0.3799225986003876, -0.0015910491347312927, -0.46008485555648804, -0.12746509909629822, 0.5131279826164246, 0.1256902813911438, -0.06667498499155045, 0.5254417657852173, -0.0354960598051548, -0.27411070466041565, -0.13037841022014618, -0.023937124758958817, 0.04297954589128494, -0.2795839011669159, 0.1564885973930359, -0.29231539368629456, 0.32669585943222046, -0.1656525880098343, 0.23092062771320343, 0.1746116578578949, -0.028219111263751984, 0.08037528395652771, -0.5436598658561707, -0.11495625227689743, -0.054523587226867676, 0.07140573114156723, 0.2256128191947937, -0.09616661071777344, -0.13187719881534576, -0.16862721741199493, -0.16431216895580292, -0.21964478492736816, -0.050959423184394836, -0.285068154335022, -0.05039311945438385, 0.06670036911964417, 0.10910819470882416, 0.09547362476587296, -0.08480414748191833, 0.10706773400306702, -0.1395263820886612, -0.15861330926418304, -0.09824525564908981, -0.24731263518333435, 0.19130462408065796, 0.007806180045008659, -0.21952393651008606, 0.10118890553712845, -0.25071048736572266, -0.12310409545898438, -0.2926577925682068, 0.04128384217619896, 0.3332255482673645, -0.16632461547851562, 0.02405671775341034, 0.04791336879134178, -0.005912281572818756, -0.07029561698436737, 0.05986758694052696, -0.35677194595336914, -0.09490865468978882, 0.03533531725406647, 0.08519094437360764, 0.041205983608961105, -0.04275929555296898, 0.038260579109191895, 0.20074591040611267, 0.09748846292495728, -0.03412321209907532, 0.47553834319114685, -0.43635278940200806, 0.040255021303892136, 0.15630224347114563, 0.23568251729011536, 0.42222902178764343, -0.3856208026409149, -0.1175236627459526, 0.13966792821884155, 0.17106857895851135, -0.2858331799507141, -0.14203210175037384, 0.14067037403583527, -0.20545999705791473, 0.024987023323774338, 0.2416565716266632, 0.14429602026939392, -0.5312743186950684, 0.3154035806655884, 0.03654414787888527, 0.18297311663627625, -0.17338857054710388, 0.09529630839824677, 0.42065131664276123, 0.10133881866931915, 0.14036400616168976, 0.13258497416973114, -0.031038925051689148, -0.010568469762802124, 0.04780084639787674, -0.07501188665628433, 0.30365830659866333, -0.35711127519607544, 0.08801953494548798, -0.22013184428215027, -0.5279709696769714, 0.3481959104537964, 0.2502371072769165, -0.06982427835464478, 0.12569333612918854, 0.015217915177345276, 0.08344879746437073, -0.06153774634003639, 0.22070686519145966, -0.35151639580726624, -0.11219990253448486, -0.11604038625955582, 0.030032366514205933, 0.0056704021990299225, -0.33824607729911804, 0.023781344294548035, 0.22826147079467773, -0.04873361811041832, 0.14405813813209534, 0.15894335508346558, 0.12192054092884064, -0.18033148348331451, -0.2696211040019989, 0.2587577998638153, 0.08426083624362946, -0.04098845273256302, -0.18214431405067444, 0.2920795679092407, 0.05271787568926811, 0.06037543714046478, 0.08340469747781754, 0.2604433298110962, 0.45208969712257385, 0.5969563722610474, 0.1655598133802414, -0.22173531353473663, -0.018945634365081787, -0.02312762290239334, -0.0941990464925766, 0.7059615850448608, -0.18014541268348694, -0.2599339783191681, 0.3139139711856842, 0.053090378642082214, -0.14712566137313843, 0.025386542081832886, -0.09723323583602905, -0.29402652382850647, -0.09076368808746338, 0.5079383254051208, -0.023623555898666382, 0.017498306930065155, -0.09955525398254395, 0.22200563549995422, -0.22758078575134277, -0.24917133152484894, 0.43264827132225037, 0.22700980305671692, 0.13768312335014343, 0.07760770618915558, 0.03419770672917366, -0.01862877979874611, 0.17660930752754211, 0.27225014567375183, 0.09021554887294769, -0.37866896390914917, -0.3421306610107422, -0.7264227867126465, 0.34543463587760925, -0.15764936804771423, -0.06199539452791214, 0.11724404245615005, 0.13262048363685608, 0.011623084545135498, 0.10419221967458725, 0.3146461844444275, -0.06412716209888458, -0.20501507818698883, -0.009851120412349701, -0.17590190470218658, -0.30046600103378296, -0.15927241742610931, -0.1377241462469101, -0.19204318523406982, -0.570371687412262, 0.20179173350334167, 0.11519220471382141, 0.048259980976581573, -0.12294785678386688, 0.20971795916557312, 0.0996086448431015, 0.20801933109760284, 0.1852952241897583, 0.15405967831611633, 0.6352709531784058, -0.06470819562673569, -0.22548364102840424, -0.09719967842102051, -0.11416762322187424, -0.15863946080207825, 0.3163210451602936, -0.11485837399959564, 0.346305251121521, -0.10015273094177246, -0.3019840121269226, -0.3574921488761902, 0.391195684671402, 0.24973507225513458, -0.32214364409446716, -0.08384865522384644, 0.07282237708568573, -0.25578758120536804, 0.2184898853302002, 0.025973059237003326, 0.11381366848945618, 0.1335933804512024, 0.45933797955513, -0.16759715974330902, -0.24502159655094147, 0.46466848254203796, -0.21608740091323853, -0.15968376398086548, -0.12332261353731155, 0.2576863765716553, -0.27439379692077637, -0.2150910645723343, -0.6132485270500183, 0.17594388127326965, 0.4812816381454468, -0.13565248250961304, -0.1669333428144455, 0.2582968473434448, -0.20368404686450958, 0.3876017928123474, 0.016390733420848846, 0.3485475182533264, 0.012252584099769592, -0.22214098274707794, -0.053688958287239075, -0.11852740496397018 ]
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.1248532235622406, -0.05359437316656113, 0.029330864548683167, 0.07398074865341187, 0.20472730696201324, -0.0245770625770092, 0.24893778562545776, 0.421301007270813, -0.4746897220611572, 0.17516213655471802, 0.13618361949920654, 0.5513851642608643, -0.3347685933113098, -0.08509577065706253, 0.034483231604099274, 0.1865639090538025, -0.09211177378892899, 0.13845610618591309, -0.26789000630378723, -0.21307456493377686, 0.03989238291978836, 0.3964000642299652, -0.167628675699234, -0.0685962587594986, -0.3741774559020996, 0.24487879872322083, 0.2273777425289154, -0.23149117827415466, 0.10548394918441772, -0.4600350558757782, 0.29247498512268066, 0.14869728684425354, 0.01945996657013893, 0.37023040652275085, -0.00011912988702533767, 0.006321899592876434, 0.2757810354232788, 0.03525397181510925, -0.2775222361087799, -0.44794362783432007, -0.06502625346183777, 0.10858652740716934, 0.05303342640399933, 0.14755335450172424, -0.4656311273574829, -0.17931348085403442, 0.23373086750507355, -0.34094759821891785, 0.029201947152614594, 0.4485590159893036, 0.06858421862125397, -0.0634167492389679, -0.2496635466814041, -0.08246708661317825, 0.36893507838249207, 0.012542489916086197, -0.06251826137304306, 0.05927054584026337, -0.06833608448505402, 0.2411298155784607, 0.21967539191246033, 0.37554869055747986, -0.03132486715912819, 0.012995792552828789, -0.1954188048839569, -0.09356404840946198, -0.2540265917778015, -0.3487868309020996, 0.07476763427257538, 0.2519178092479706, 0.7106896638870239, -0.295862078666687, -0.32151082158088684, -0.26833227276802063, 0.33699488639831543, -0.054221011698246, 0.29112058877944946, 0.025418410077691078, -0.29449257254600525, 0.16272510588169098, -0.562990665435791, 0.07423975318670273, -0.3041751980781555, 0.1429007351398468, -0.09742779284715652, -0.35963353514671326, -0.14377129077911377, 0.18454164266586304, -0.1975928694009781, 0.11638636887073517, 0.11415448784828186, 0.18843981623649597, -0.03961363062262535, -0.092384934425354, -0.32062527537345886, -0.09855629503726959, 0.05592559278011322, -0.08153826743364334, 0.07171384245157242, 0.31728649139404297, 0.28429606556892395, 0.06759421527385712, -0.41746553778648376, -0.13550496101379395, 0.03223126754164696, 0.14816942811012268, 0.18230848014354706, -0.17784059047698975, 0.1011013388633728, -0.07203102856874466, -0.1533753126859665, 0.013992469757795334, 0.018982846289873123, -0.07210031896829605, -0.1062539666891098, -0.015302974730730057, 0.35719239711761475, -0.11757734417915344, -0.5631762742996216, 0.1525678187608719, -0.5025038123130798, 0.21358942985534668, -0.05205604061484337, 0.19477376341819763, -0.21541759371757507, 0.13501755893230438, 0.2971951365470886, 0.08706346154212952, 0.024878641590476036, -0.3115251958370209, -0.09980250895023346, -0.1971575915813446, 0.18287953734397888, 0.09686344116926193, 0.24400939047336578, -0.21037285029888153, 0.21230562031269073, 0.2571353316307068, 0.26150357723236084, -0.15388503670692444, -0.09266508370637894, -0.032623037695884705, 0.25298041105270386, 0.266844779253006, -0.12482000887393951, 0.39391276240348816, -0.05651185289025307, 0.11579389870166779, 0.10667093843221664, 0.2571236491203308, -0.06512238830327988, -0.006171364337205887, 0.56234210729599, 0.06058840453624725, -0.18365353345870972, -0.3006519079208374, -0.10712078958749771, 0.33330464363098145, 0.04427948221564293, -0.06683284044265747, 0.25042009353637695, -0.2751781940460205, -0.22715210914611816, 0.01588255912065506, 0.13589221239089966, 0.15665346384048462, -0.5853273868560791, 0.02432839572429657, 0.19456137716770172, 0.06847167015075684, 0.3222920596599579, 0.30327489972114563, 0.16519595682621002, 0.18117085099220276, -0.08166635036468506, 0.11702239513397217, -0.21993228793144226, -0.3883664608001709, -0.2060423642396927, 0.2092837244272232, -0.2708127796649933, 0.2642597258090973, -0.08326929062604904, -0.21921783685684204, 0.08026697486639023, 0.09913280606269836, 0.36406880617141724, -0.18916095793247223, 0.2466825693845749, -0.10566973686218262, -0.38311508297920227, -0.14455759525299072, 0.1893382966518402, 0.17552602291107178, -0.01771165058016777, 0.05326473340392113, -0.2982356548309326, -0.016457010060548782, 0.40270599722862244, 0.039410389959812164, -0.0291293878108263, -0.025731272995471954, 0.3644508421421051, -0.17753060162067413, 0.2638618052005768, -0.15542253851890564, 0.28723084926605225, 0.027291633188724518, 0.1604725867509842, 0.21987178921699524, 0.5499915480613708, -0.16933013498783112, -0.17794591188430786, -0.0762333944439888, -0.07281973958015442, -0.06831657886505127, 0.058260202407836914, 0.14865826070308685, -0.1489167958498001, 0.3247831463813782, -0.028516924008727074, 0.47125446796417236, -0.48813435435295105, -0.015310307964682579, -0.08798126876354218, -0.1088411957025528, 0.30339106917381287, -0.09879961609840393, 0.11652988195419312, 0.24114254117012024, 0.017299935221672058, 0.08729687333106995, -0.11014295369386673, 0.36368218064308167, 0.22695060074329376, 0.1219177171587944, -0.36820119619369507, -0.40272217988967896, 0.23166881501674652, -0.5078888535499573, -0.4552854597568512, 0.5677574276924133, -0.02766474336385727, 0.20081722736358643, -0.1534447968006134, 0.06044204905629158, 0.08074945211410522, 0.04800029098987579, 0.03484967350959778, 0.036076925694942474, -0.019408436492085457, -0.10792061686515808, -0.4708500802516937, -0.16076621413230896, 0.26079437136650085, -0.20982719957828522, 0.1590224653482437, -0.11612904071807861, -0.32037854194641113, 0.13688907027244568, 0.3158732056617737, -0.050239793956279755, 0.0395466573536396, 0.2744303345680237, -0.1326722502708435, 0.2099824845790863, 0.037569835782051086, 0.1719762533903122, 0.23739278316497803, 0.20091958343982697, 0.0807267278432846, -0.05354765057563782, -0.07819267362356186, -0.2605934739112854, 0.292392373085022, 0.19453933835029602, -0.36514031887054443, 0.38403865694999695, 0.22037054598331451, 0.04898097366094589, -0.43722662329673767, -0.004981357604265213, -0.19044315814971924, 0.28245672583580017, -0.4494036138057709, -0.1749294400215149, -0.3977605998516083, 0.10783591121435165, -0.1361621469259262, -0.021801214665174484, 0.07109594345092773, 0.0436788946390152, 0.3717917799949646, -0.002707146108150482, -0.08599741756916046, 0.2743450701236725, 0.1501094251871109, 0.19156602025032043, -0.11042220890522003, 0.17134225368499756, -0.009668562561273575, 0.1939067393541336, -0.4710179567337036, 0.0452454499900341, -0.16064685583114624, -0.26446589827537537, 0.15043792128562927, -0.192573681473732, -0.10991501808166504, -0.4143470525741577, -0.07154660671949387, 0.1478731632232666, -0.19166199862957, 0.4232136011123657, 0.2326943576335907, -0.04261334240436554, -0.18604324758052826, -0.194431871175766, -0.18875974416732788, -0.031071532517671585, -0.06713023036718369, 0.07144804298877716, -0.13463984429836273, 0.04158445820212364, -0.2561311721801758, -0.8888221383094788, 0.10030187666416168, -0.22046788036823273, 0.7185177803039551, 0.05993497744202614, -0.04604915529489517, 0.541235625743866, 0.2822047173976898, 0.20129117369651794, 0.07925323396921158, 0.18630698323249817, -0.3713887333869934, -0.12307998538017273, 0.07925876975059509, 0.02934490144252777, -0.4573098123073578, -0.2983144521713257, 0.19363878667354584, 0.15480299293994904, 0.2074100375175476, -0.49533796310424805, 0.34973475337028503, -0.1089944839477539, -0.13062995672225952, 0.010287381708621979, -0.1989101767539978, 0.2906796336174011, -0.20380502939224243, -0.11591535806655884, -0.2554521858692169, 0.1175917237997055, 0.3896958529949188, 0.10179716348648071, 0.11271236836910248, 0.3398635685443878, 0.21604850888252258, 0.20030584931373596, 0.3506774306297302, 0.7158650159835815, 0.08281927555799484, 0.03901807963848114, -0.12803447246551514, 0.4244533181190491, -0.07285609096288681, -0.05283229798078537, 0.16007721424102783, 0.059085264801979065, -0.10871170461177826, 0.4583730697631836, -0.08424337208271027, -0.025512346997857094, -0.029336724430322647, -0.06426836550235748, -0.09048968553543091, -0.32777196168899536, -0.02252134494483471, -0.458032488822937, 0.05129705369472504, 0.15355102717876434, 0.2963804602622986, 0.1280052810907364, -0.11446712911128998, -0.04528599604964256, 0.1441747546195984, 0.31945687532424927, -0.12577581405639648, -0.3150956928730011, -0.36130818724632263, -0.4153895974159241, 0.061277836561203, 0.18691802024841309, 0.5611059665679932, -0.2880936861038208, -0.20197248458862305, 0.2231445014476776, 0.10430192947387695, 0.42151176929473877, -0.33805492520332336, -0.042292945086956024, 0.125164195895195, 0.27286970615386963, -0.29762160778045654, -0.07354490458965302, -0.3262292742729187, -0.2899867296218872, 0.27916112542152405, 0.09725246578454971, -0.11770740151405334, -0.13511939346790314, 0.06866110116243362, 0.05842120572924614, 0.016731228679418564, -0.09900462627410889, -0.033219657838344574, 0.030632667243480682, -0.02727966569364071, 0.16377729177474976, 0.17259740829467773, -0.12480328977108002, -0.4919121563434601, -0.384904146194458, -0.055465325713157654, 0.18964293599128723, 0.5516815185546875, 0.022110428661108017, 0.2840610146522522, -0.13086830079555511, 0.24397921562194824, 0.23573744297027588, -0.29603111743927, 0.2580792307853699, 0.19365929067134857, 0.11734934151172638, -0.04140198230743408, 0.13703805208206177, -0.1260073035955429, 0.3830222487449646, 0.3855096995830536, -0.434981107711792, -0.0189775750041008, -0.33858704566955566, 0.18403343856334686, -0.2829490602016449, 0.34594225883483887, 0.4015248417854309, -0.14415410161018372, -0.1260790377855301, -0.4360535442829132, 0.41818416118621826, 0.022923704236745834, -0.16401304304599762, 0.45574912428855896, 0.16198140382766724, -0.24609880149364471, 0.1927158087491989, -0.15675196051597595, 0.809589684009552, 0.18712908029556274, 0.2667505741119385, 0.3340380787849426, 0.11093410849571228, 0.16091933846473694, -0.42877471446990967, 0.035683780908584595, -0.005585040897130966, 0.06986437737941742, -0.13060851395130157, 0.08970144391059875, -0.16814222931861877, 0.37976449728012085, -0.29194173216819763, -0.07839047908782959, 0.21016265451908112, 0.19728288054466248, 0.2774972915649414, -0.07884645462036133, -0.25814053416252136, 0.018633145838975906, 0.08974485844373703, 0.045830853283405304, 0.058743901550769806, 0.30579471588134766, 0.2888178825378418, -0.12820428609848022, 0.009776148945093155, -0.2652781903743744, -0.6595226526260376, 0.020324595272541046, -0.5996918678283691, -0.0947101041674614, 0.14892058074474335, -0.3863413333892822, 0.18383058905601501, 0.3397497832775116, 0.17645516991615295, 0.43374037742614746, -0.4633074104785919, -0.026798885315656662, 0.25110962986946106, 0.11319837719202042, -0.02462800033390522, -0.08301439881324768, 0.3481515944004059, -0.08403261005878448, -0.1434064656496048, -0.07100499421358109, 0.028120476752519608, 0.16605649888515472, -0.1545240581035614, -0.04968529939651489, -0.11856763064861298, -0.342631071805954, 0.04976992681622505, 0.09896142780780792, 0.15278886258602142, -0.23698405921459198, 0.06800437718629837, -0.10388156771659851, -0.06512390822172165, 0.2742635905742645, 0.2779470384120941, -0.5032385587692261, -0.108957439661026, 0.537933886051178, -0.0835733413696289, 0.10776513814926147, 0.6409000158309937, -0.189385786652565, -0.05129820108413696, -0.277519553899765, 0.016869887709617615, 0.25908511877059937, -0.3368992507457733, 0.17191676795482635, 0.032126761972904205, 0.30066460371017456, 0.09660174697637558, -0.04447350278496742, 0.04630462825298309, -0.058990903198719025, -0.2513121962547302, -0.23893380165100098, -0.08124818652868271, 0.1200234666466713, 0.025225698947906494, 0.29118025302886963, 0.027838699519634247, 0.3665982484817505, 0.0767601951956749, -0.34703612327575684, -0.2017674595117569, -0.023725567385554314, 0.055757805705070496, 0.08048588782548904, -0.04783487319946289, 0.027862749993801117, 0.11072719097137451, 0.05451906844973564, 0.01495874859392643, 0.10270851850509644, -0.13355222344398499, -0.08336611092090607, -0.2990177869796753, 0.151118665933609, 0.20114633440971375, 0.11307334899902344, -0.015308375470340252, 0.0650835931301117, -0.05426075682044029, -0.06005212664604187, 0.07611532509326935, 0.38089242577552795, 0.017418142408132553, 0.3620303273200989, 0.11884409189224243, 0.3976138234138489, -0.09363579005002975, -0.26238757371902466, -0.03544050455093384, -0.07757268846035004, 0.16449406743049622, -0.06243724375963211, -0.18508173525333405, -0.058099791407585144, -0.13248774409294128, 0.022096749395132065, 0.0893227756023407, 0.15186074376106262, -0.05466017872095108, -0.2896292805671692, 0.2135312557220459, 0.15491025149822235, 0.050664305686950684, 0.31790098547935486, -0.15313807129859924, -0.2708629071712494, -0.11027587205171585, 0.07899051159620285, -0.024609001353383064, 0.017690163105726242, -0.3351351320743561, -0.015275905840098858, -0.025513162836432457, 0.003125518560409546, 0.055481743067502975, -0.3541378080844879, 0.36231714487075806, -0.01250035222619772, 0.11213479936122894, -0.5960307121276855, 0.1129642128944397, 0.37470000982284546, 0.061339858919382095, -0.00791802629828453, -0.2586425244808197, -0.2529653012752533, -0.0035197436809539795, 0.48609256744384766, -0.24271830916404724, 0.27490484714508057, -0.1475830376148224, -0.0262310691177845, 0.2557944357395172, -0.2615297734737396, -0.24777136743068695, 0.20552396774291992, -0.46312713623046875, 0.16095563769340515, 0.1013554185628891, 0.40353327989578247, -0.046325717121362686, 0.10066626220941544, -0.21050311625003815, -0.021032147109508514, -0.14807412028312683, -0.15863975882530212, -0.35758039355278015, -0.08875396847724915, -0.13836486637592316, -0.17162908613681793, -0.08024272322654724, -0.02858557552099228, 0.12382256239652634, 0.23923349380493164, -0.2778196334838867, -0.5319435596466064, -0.24919772148132324, -0.1834072768688202, 0.2514197826385498, -0.11409881711006165, 0.3520142436027527, 0.10312911123037338, -0.018660515546798706, 0.1629294455051422, 0.3187714219093323, 0.5043588876724243, 0.17908240854740143, -0.10142138600349426, 0.12033814936876297, -0.299843966960907, -0.005622124299407005, 0.0208827406167984, 0.623943567276001, 0.03267841786146164, 0.11734287440776825, 0.05098652467131615, 0.05189190059900284, 0.0013064295053482056, 0.04136103019118309, -0.00849892571568489, 0.04003811627626419, -0.6968816518783569, 0.41766414046287537, 0.01760837994515896, 0.23933878540992737, -0.20144876837730408, -0.04128601402044296, -0.21955257654190063, 0.34183427691459656, 0.6031690835952759, 0.18642187118530273, 0.01860937848687172, -0.09348343312740326, 0.055507972836494446, -0.18102307617664337, 0.12129200994968414, 0.07660215348005295, -0.004844993352890015, -0.10684610158205032, -0.019550643861293793, -0.21396896243095398, 0.08992486447095871, 0.2652164101600647, 0.2187449187040329, 0.01500638760626316, -0.1638362854719162, 0.0671151876449585, 0.0615040622651577, -0.009866699576377869, -0.11820502579212189, -0.2539229989051819, 0.2244304120540619, -0.19698739051818848, 0.015161875635385513, -0.006939545273780823, 0.14061574637889862, 0.14958617091178894, -0.07372301071882248, -0.13266345858573914, 0.1910305619239807, -0.145440936088562, -0.05707657337188721, -0.07595007121562958, 0.17733636498451233, 0.3487189710140228, 0.06860241293907166, 0.09640739858150482, 0.35995054244995117, -0.09155607223510742, 0.07731148600578308, -0.41088321805000305, -0.14205172657966614, -0.22995956242084503, 0.2994231581687927, 0.04981209337711334, 0.3389115631580353, 0.006641939282417297, -0.34420594573020935, 0.13541510701179504, 0.2597315311431885, 0.33301323652267456, -0.16282778978347778, -0.14009791612625122, 0.04773193597793579, -0.32309162616729736, 0.21396777033805847, 0.00005582161247730255, 0.2621961236000061, 0.043066397309303284, 0.1607140749692917, -0.5121688842773438, -0.9930135607719421, 0.625044047832489, -0.7181704044342041, -0.2236548662185669, -0.14277756214141846, 0.2892628312110901, 0.3226873576641083, -0.10158299654722214, -0.5634548664093018, -0.0728687271475792, 0.469315767288208, -0.04016982018947601, -0.09203134477138519, 0.11232133209705353, 0.1479112207889557, 0.3100132346153259, -0.16443325579166412, 0.962283730506897, 0.3237745761871338, -0.1628979593515396, 0.18723973631858826, -0.4706273674964905 ]
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.08848518133163452, 0.03739604353904724, -0.021385841071605682, 0.14961272478103638, -0.018927261233329773, -0.07773534208536148, 0.2245490401983261, 0.36217841506004333, -0.42948922514915466, 0.16333650052547455, 0.15252937376499176, 0.262457013130188, -0.43249064683914185, -0.020130705088377, -0.07111980766057968, 0.2396368682384491, -0.12686201930046082, 0.2598147988319397, -0.3329850435256958, -0.023115485906600952, 0.08259600400924683, 0.24257633090019226, -0.0296567901968956, 0.028361309319734573, -0.08659729361534119, -0.014304393902420998, 0.2008776217699051, -0.09348522871732712, -0.3122859001159668, -0.6014058589935303, 0.23048703372478485, 0.27640724182128906, 0.0768749862909317, 0.16537605226039886, -0.00012745545245707035, 0.10650655627250671, 0.1652289628982544, -0.02306026592850685, -0.49072176218032837, -0.1459859162569046, -0.180824875831604, 0.11329276859760284, 0.011158030480146408, -0.003240726888179779, 0.1294730305671692, -0.23413434624671936, 0.20617108047008514, -0.19666817784309387, 0.3206735849380493, 0.5292423963546753, 0.004974253475666046, 0.23936736583709717, -0.12274821102619171, 0.11940992623567581, 0.3548436760902405, -0.10677242279052734, -0.056146636605262756, 0.07665668427944183, 0.03786667808890343, 0.27338042855262756, 0.213460311293602, 0.3169708251953125, 0.08640561997890472, -0.11383228003978729, -0.2907952070236206, -0.1938820779323578, -0.15452027320861816, -0.23830664157867432, -0.2170848846435547, 0.3288348615169525, 0.7538299560546875, -0.31502437591552734, -0.608788788318634, -0.3401030898094177, 0.19125835597515106, -0.14305509626865387, 0.39232128858566284, -0.19024500250816345, -0.2573823928833008, 0.3908390402793884, -0.639011561870575, -0.20490993559360504, -0.30793285369873047, 0.12957222759723663, 0.015354178845882416, -0.114757239818573, 0.022579483687877655, 0.12358813732862473, -0.17346085608005524, 0.06426656246185303, 0.1816408336162567, 0.1108352541923523, 0.03872954100370407, -0.01097490731626749, -0.14754997193813324, -0.34127143025398254, 0.042393967509269714, -0.18611270189285278, 0.0421026274561882, 0.4260541796684265, 0.5204824805259705, 0.06429051607847214, -0.5445073843002319, -0.07751478999853134, 0.17376470565795898, 0.2407868355512619, -0.025257542729377747, -0.26166242361068726, 0.15693020820617676, 0.04260283708572388, 0.19033178687095642, 0.17482838034629822, 0.02370360866189003, -0.3405405580997467, -0.12930141389369965, 0.11949269473552704, 0.3347740173339844, -0.18882402777671814, -0.5020067691802979, 0.07760565727949142, -0.45458126068115234, 0.1854373961687088, -0.07164100557565689, 0.1207243874669075, -0.22419479489326477, 0.4196053743362427, 0.15545882284641266, 0.06409884989261627, -0.13485226035118103, -0.4040714502334595, 0.1883215755224228, -0.15597158670425415, 0.19084392488002777, -0.049908265471458435, 0.2960178256034851, -0.372298002243042, 0.08815992623567581, 0.14277659356594086, 0.18106362223625183, -0.12146452069282532, -0.12798725068569183, 0.10105697810649872, 0.1780339926481247, 0.21321624517440796, -0.18967150151729584, 0.1723003387451172, -0.08058817684650421, 0.08845637738704681, -0.017210759222507477, -0.019968077540397644, -0.17412564158439636, -0.11035751551389694, 0.3484818935394287, -0.0193806029856205, -0.22609643638134003, -0.2067110538482666, -0.0028783679008483887, 0.13417477905750275, -0.03540097922086716, -0.2685542106628418, 0.14787594974040985, -0.11580494046211243, -0.3188744783401489, -0.015279592014849186, 0.01573038659989834, 0.21443966031074524, -0.6616703271865845, -0.13491180539131165, 0.18249234557151794, -0.00982346385717392, -0.0802723839879036, 0.25918811559677124, -0.01824857108294964, 0.13359850645065308, -0.02142522856593132, 0.06138487160205841, -0.043106965720653534, -0.42886775732040405, -0.3187323212623596, 0.18909302353858948, -0.27187052369117737, 0.23654697835445404, 0.17325928807258606, -0.23176661133766174, 0.32578882575035095, -0.1745205819606781, 0.17625883221626282, -0.2554750442504883, 0.17862190306186676, -0.17102846503257751, -0.43899771571159363, -0.4511154294013977, 0.031019408255815506, -0.05333765596151352, 0.06812021881341934, 0.06481923907995224, 0.05645306780934334, 0.04239794984459877, 0.348816841840744, 0.08292902261018753, 0.01181639265269041, -0.03380243480205536, 0.20004616677761078, -0.08436428010463715, 0.018615227192640305, -0.2243669331073761, 0.08376692980527878, 0.2081041932106018, 0.07658141851425171, 0.17054355144500732, 0.42478495836257935, -0.17888016998767853, -0.2476140558719635, 0.038323163986206055, 0.18726961314678192, 0.12628516554832458, -0.03958766907453537, 0.2273302674293518, -0.08251786231994629, 0.3504413366317749, -0.2704235017299652, 0.46913498640060425, -0.4019199013710022, 0.03728436678647995, -0.05362807586789131, -0.16358399391174316, 0.24747714400291443, 0.08259089291095734, 0.10191811621189117, -0.03941209614276886, -0.10327497869729996, -0.09265599399805069, -0.024524733424186707, 0.5187947750091553, 0.15306444466114044, 0.27677950263023376, -0.1384766399860382, -0.25365740060806274, 0.2143706977367401, -0.26182758808135986, -0.3397196829319, 0.5486403107643127, -0.0972195565700531, 0.44841358065605164, -0.025512881577014923, 0.1951502114534378, 0.14047245681285858, -0.04030890017747879, 0.07058769464492798, -0.07319734990596771, -0.02130850963294506, -0.009351350367069244, -0.530404806137085, -0.17360791563987732, 0.14655925333499908, -0.2134275585412979, 0.14177808165550232, -0.14603905379772186, -0.20466338098049164, -0.08465767651796341, 0.23014463484287262, -0.021298225969076157, 0.059208475053310394, 0.15656678378582, 0.08325203508138657, 0.21178650856018066, 0.0553554892539978, 0.31839317083358765, 0.3474949896335602, 0.08310956507921219, 0.02466169372200966, 0.02140909805893898, -0.2565380334854126, -0.13020206987857819, 0.276820570230484, 0.21888895332813263, -0.3133851885795593, 0.32265686988830566, 0.20633269846439362, 0.03175387531518936, -0.43952083587646484, 0.031972017139196396, -0.040954142808914185, 0.03672444075345993, -0.6262533664703369, -0.009059714153409004, -0.5513139367103577, 0.16901686787605286, -0.33067768812179565, -0.08182643353939056, -0.1623634696006775, 0.004768557846546173, 0.5723299384117126, 0.16943758726119995, -0.08129161596298218, 0.2194671779870987, -0.08763314038515091, 0.36800384521484375, -0.19863919913768768, -0.06180175393819809, 0.038237959146499634, 0.2359498143196106, -0.41492578387260437, 0.002801915630698204, 0.027397017925977707, -0.34622982144355774, 0.2414887696504593, -0.41488105058670044, -0.3009611964225769, -0.23227937519550323, -0.0679202750325203, 0.18919938802719116, 0.06539420783519745, 0.24021129310131073, 0.34572985768318176, 0.1270103007555008, -0.014629708603024483, -0.04187175631523132, -0.27793776988983154, 0.04846741259098053, -0.11599691212177277, -0.10514955967664719, 0.13449721038341522, 0.09828394651412964, -0.28272485733032227, -0.8775436282157898, 0.08410205692052841, -0.16890911757946014, 0.4604315757751465, 0.07951994240283966, 0.18564322590827942, 0.35580354928970337, 0.3462040424346924, 0.10591501742601395, -0.04413335397839546, 0.15444381535053253, -0.08820772916078568, -0.23025839030742645, 0.09353718161582947, 0.08362018316984177, -0.2186218649148941, -0.005752231925725937, 0.2806990146636963, 0.05272301658987999, 0.3915775418281555, -0.4168849587440491, 0.2677837014198303, 0.21947979927062988, -0.13917061686515808, 0.0019316114485263824, -0.3680184781551361, 0.5466490983963013, -0.08344096690416336, 0.01569587178528309, -0.2377287745475769, 0.20562513172626495, 0.13749220967292786, 0.12257744371891022, 0.25491154193878174, 0.32310956716537476, 0.28042295575141907, 0.2665034234523773, 0.5264002084732056, 0.32630544900894165, -0.2103032022714615, 0.22470688819885254, -0.1228167787194252, 0.4726438820362091, 0.04115407541394234, 0.09224212169647217, -0.06510735303163528, -0.09600198268890381, -0.18241609632968903, 0.3834359049797058, -0.0364113412797451, -0.07709600776433945, -0.18889807164669037, 0.22595974802970886, -0.27499106526374817, -0.2729186713695526, 0.04257383570075035, -0.39524373412132263, 0.13605757057666779, 0.2876462936401367, 0.3582552969455719, 0.10156305134296417, 0.03223647177219391, -0.03198911249637604, 0.22707507014274597, 0.33973196148872375, -0.009860433638095856, -0.20522192120552063, -0.08765154331922531, -0.2094876766204834, 0.20322108268737793, 0.40692317485809326, 0.6541625261306763, -0.18643449246883392, -0.08865869045257568, 0.12884853780269623, -0.01911093480885029, 0.2862902283668518, -0.48881709575653076, -0.0456894189119339, -0.07928337156772614, 0.3533954322338104, -0.13272833824157715, -0.12948423624038696, -0.13578522205352783, -0.39848655462265015, 0.11708328127861023, 0.0794338807463646, -0.12472140789031982, -0.03305792808532715, -0.03154168277978897, 0.12648123502731323, -0.10874979197978973, 0.17634226381778717, -0.1473103165626526, -0.018723933026194572, -0.13511493802070618, -0.008912503719329834, 0.08401578664779663, -0.2780791223049164, -0.41680511832237244, -0.07251685857772827, -0.08884303271770477, 0.2681664824485779, 0.38959652185440063, 0.16215084493160248, 0.2874225676059723, -0.1167987734079361, 0.02392018586397171, 0.093040332198143, 0.09800936281681061, 0.32130950689315796, 0.2371065318584442, 0.17381703853607178, -0.18433836102485657, 0.06306029856204987, 0.08204874396324158, 0.10178331285715103, 0.541607141494751, -0.3363021910190582, -0.11839955300092697, -0.1456218808889389, 0.09618894755840302, -0.2815695106983185, 0.39414548873901367, 0.5397124886512756, -0.28542962670326233, -0.3250674605369568, -0.428925484418869, 0.4246484041213989, -0.09044794738292694, -0.22813285887241364, 0.37009918689727783, 0.10165245831012726, -0.3230117857456207, 0.15113690495491028, 0.027633797377347946, 0.9220041036605835, 0.20887286961078644, 0.20676296949386597, 0.1859177052974701, -0.12466597557067871, 0.4331420660018921, -0.5090646147727966, 0.15221144258975983, 0.11980834603309631, 0.01010924857109785, -0.36688727140426636, 0.10920102894306183, 0.09159458428621292, 0.43997079133987427, -0.17496009171009064, 0.04851913079619408, 0.19381792843341827, 0.3199467062950134, 0.24371536076068878, -0.022407107055187225, -0.4007428288459778, 0.0955585390329361, -0.1448122262954712, -0.00006276927888393402, 0.10246645659208298, 0.2897038459777832, 0.026542089879512787, -0.09099148958921432, -0.049829065799713135, -0.4163602590560913, -0.7078109383583069, -0.22666534781455994, -0.4140577018260956, -0.14788025617599487, -0.044510919600725174, -0.11906108260154724, 0.11901062726974487, 0.2762693762779236, 0.2014927715063095, 0.24185118079185486, -0.37732967734336853, 0.020052172243595123, 0.01446550339460373, 0.07429469376802444, 0.10238741338253021, -0.06534533202648163, 0.3629046678543091, -0.07452073693275452, 0.04132624715566635, 0.05395103245973587, -0.07981869578361511, -0.0671611875295639, -0.10244479775428772, -0.045586541295051575, -0.055196791887283325, -0.3396153151988983, 0.1325659155845642, -0.10264405608177185, 0.054560933262109756, -0.1985495388507843, -0.009255576878786087, -0.21274031698703766, 0.11213508248329163, 0.18858198821544647, 0.08923929929733276, -0.4363742768764496, -0.09784930944442749, 0.6311433911323547, -0.2886922061443329, 0.12894709408283234, 0.48414984345436096, -0.31600913405418396, -0.033316563814878464, -0.19413653016090393, -0.02136644348502159, -0.1992967277765274, -0.5194511413574219, 0.014784751459956169, -0.04460347071290016, 0.08007588982582092, -0.12702259421348572, 0.07336543500423431, 0.18021681904792786, 0.17705929279327393, -0.17994317412376404, -0.37724408507347107, 0.04200270026922226, 0.2579893469810486, 0.24474816024303436, 0.34691914916038513, 0.09963793307542801, 0.2187812477350235, -0.004220971837639809, -0.5193971991539001, -0.10863862931728363, -0.10017817467451096, 0.11440382152795792, 0.007444154471158981, 0.05807444453239441, 0.349564790725708, 0.07146865129470825, -0.25466999411582947, -0.14409932494163513, 0.15392440557479858, -0.14973671734333038, 0.022460315376520157, -0.2373717576265335, 0.22851625084877014, 0.0468575581908226, 0.1454446017742157, -0.04252699017524719, -0.016445457935333252, -0.030559591948986053, 0.044814448803663254, -0.08867400884628296, 0.35844719409942627, 0.10184155404567719, 0.1913815140724182, 0.1421765834093094, 0.40535157918930054, -0.24330346286296844, -0.06507138162851334, 0.06824697554111481, 0.19817237555980682, 0.12253798544406891, 0.22548671066761017, -0.20100906491279602, -0.07133148610591888, -0.16644948720932007, 0.25832441449165344, 0.22472511231899261, 0.05033444985747337, 0.05949609726667404, -0.1397152841091156, 0.24661481380462646, 0.07862809300422668, 0.35037264227867126, 0.6881961226463318, -0.11853545904159546, -0.45788609981536865, 0.18320083618164062, -0.027099071070551872, -0.13172383606433868, -0.02542007714509964, -0.30054330825805664, 0.04658566042780876, -0.16275554895401, 0.12730033695697784, 0.014953847974538803, -0.35178327560424805, 0.4608772397041321, 0.12135764211416245, 0.14003592729568481, -0.42946404218673706, 0.1858082115650177, 0.6682863235473633, 0.0034416131675243378, 0.21896974742412567, -0.4196910858154297, -0.30387112498283386, 0.1169406920671463, 0.3170003294944763, -0.3769647181034088, 0.26903241872787476, -0.17610085010528564, -0.07764698565006256, 0.004576459527015686, -0.11818043887615204, -0.3301258981227875, 0.28450608253479004, -0.05860555171966553, 0.47382745146751404, 0.5105354189872742, 0.514228105545044, -0.017204228788614273, -0.09095649421215057, -0.4596336781978607, 0.09346740692853928, 0.08788777887821198, -0.19864925742149353, -0.5646132826805115, -0.26395830512046814, -0.14811043441295624, -0.02020888775587082, -0.16724811494350433, 0.11140581220388412, 0.21923893690109253, 0.28841906785964966, -0.27790719270706177, -0.5320425033569336, -0.21588340401649475, -0.23740226030349731, 0.317085325717926, -0.20494365692138672, 0.27019330859184265, 0.20360583066940308, 0.0774114727973938, 0.2706264555454254, 0.31612202525138855, 0.40583375096321106, 0.09155818074941635, 0.007993780076503754, 0.026318233460187912, -0.2494976669549942, 0.2277773767709732, 0.02649807184934616, 0.4185412526130676, -0.0022920966148376465, 0.16655327379703522, 0.336088091135025, -0.029655490070581436, 0.05638507008552551, 0.18972745537757874, -0.3109249472618103, 0.016030004248023033, -0.813258171081543, 0.3678290545940399, -0.019312001764774323, 0.25328531861305237, -0.20531347393989563, 0.035972170531749725, -0.03774794563651085, 0.363925039768219, 0.37465354800224304, 0.2076764702796936, 0.07155489921569824, -0.0014273228589445353, -0.0013188943266868591, 0.04279596358537674, 0.18326391279697418, 0.31724631786346436, -0.059741102159023285, 0.011521617881953716, -0.017708994448184967, -0.5737124085426331, 0.042316652834415436, 0.05103761702775955, 0.06254560500383377, -0.010965574532747269, -0.2795845568180084, 0.22456124424934387, 0.31195640563964844, 0.143935889005661, -0.03900422900915146, -0.2761302888393402, 0.3555087745189667, -0.14906266331672668, 0.06748300045728683, -0.03360159695148468, 0.20493963360786438, 0.09367910772562027, -0.4758705496788025, 0.12594552338123322, 0.06968588382005692, -0.2321203351020813, -0.04118704795837402, -0.023927655071020126, 0.1523924022912979, 0.1186007410287857, 0.20390506088733673, 0.04176245257258415, 0.35597944259643555, -0.06772913038730621, -0.11481411755084991, -0.5655720829963684, -0.09749498218297958, -0.24597394466400146, 0.31280389428138733, -0.13745953142642975, 0.3027495741844177, -0.14506272971630096, 0.044084031134843826, -0.007792612072080374, 0.38808247447013855, 0.3565620183944702, 0.09904082864522934, -0.1623941957950592, -0.2619992792606354, -0.32274091243743896, 0.13922463357448578, 0.2651118338108063, 0.2450651228427887, -0.03106135129928589, 0.1129160076379776, -0.43958765268325806, -0.7549792528152466, 0.44633957743644714, -0.5544975399971008, -0.09524501860141754, 0.016279075294733047, 0.3003906309604645, 0.3546906113624573, -0.08896283805370331, -0.5038307309150696, -0.1051773652434349, 0.3698122799396515, 0.06514571607112885, -0.047612376511096954, 0.05835041031241417, 0.11366832256317139, 0.054623689502477646, -0.02786092273890972, 1.0447943210601807, 0.2161821722984314, -0.17629778385162354, 0.10371319949626923, -0.4345046877861023 ]
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.3742082715034485, 0.14785820245742798, 0.08840712904930115, 0.0458865761756897, 0.2804531157016754, 0.1281486451625824, 0.15311121940612793, 0.37765175104141235, -0.24275590479373932, 0.2011215090751648, 0.30520081520080566, 0.4177042841911316, -0.1865011304616928, 0.11496049910783768, -0.1479027420282364, 0.009955063462257385, 0.05309244990348816, 0.2520793676376343, 0.1291811466217041, 0.006046682596206665, -0.10626402497291565, 0.17224450409412384, -0.1942494809627533, 0.28158026933670044, -0.29421713948249817, 0.11772796511650085, -0.04198126122355461, -0.047939516603946686, -0.12908245623111725, -0.5930625796318054, 0.33762165904045105, -0.15897910296916962, 0.24371516704559326, 0.3399910032749176, -0.0001267467305297032, 0.11141292750835419, 0.40630847215652466, -0.008188115432858467, -0.2549670338630676, -0.5021973848342896, -0.1217929944396019, -0.05364783853292465, 0.366494745016098, -0.08176644146442413, 0.10271153599023819, -0.7000570297241211, 0.013413673266768456, 0.04993543028831482, -0.1659475713968277, 0.32971951365470886, 0.1360018104314804, 0.06373359262943268, 0.261692076921463, -0.09751997143030167, 0.2251865267753601, 0.062126800417900085, -0.00796768069267273, 0.4649409353733063, 0.0723101943731308, -0.11018814146518707, 0.23560011386871338, -0.08482442796230316, 0.06871268898248672, -0.05136881396174431, 0.09923447668552399, 0.18255455791950226, 0.262999564409256, -0.16271039843559265, 0.19890320301055908, 0.0318581722676754, 0.5882598757743835, -0.6263429522514343, -0.4298144280910492, -0.017660263925790787, 0.2202075570821762, -0.26078346371650696, 0.22628560662269592, 0.2429373860359192, -0.10094064474105835, 0.16287265717983246, -0.05700218304991722, -0.12062045931816101, -0.063535675406456, -0.016482196748256683, -0.42225316166877747, 0.3365800678730011, 0.18812881410121918, 0.14030861854553223, -0.11323937773704529, -0.009330164641141891, 0.002508241683244705, -0.10973338782787323, 0.10199202597141266, -0.07801549881696701, -0.27467378973960876, -0.014431975781917572, -0.07753478735685349, 0.16330918669700623, 0.1757594347000122, 0.20840875804424286, 0.003033781424164772, -0.2792119085788727, 0.2704054117202759, 0.08606017380952835, 0.10359556972980499, 0.12690798938274384, -0.020438410341739655, 0.15629254281520844, 0.10058419406414032, -0.10707677900791168, 0.06900352239608765, -0.0031415708363056183, -0.05813116952776909, -0.05682513117790222, 0.381554514169693, 0.028341511264443398, 0.7426701188087463, -0.23551154136657715, -0.2066708356142044, 0.1739300787448883, -0.3724195063114166, -0.17932522296905518, -0.266004741191864, 0.21872413158416748, 0.030557338148355484, 0.360716313123703, -0.1849217265844345, 0.3320739269256592, -0.0956055149435997, -0.23560751974582672, -0.11359508335590363, 0.1457727998495102, 0.0022751912474632263, -0.15496161580085754, 0.026871446520090103, -0.31019312143325806, -0.08789622783660889, 0.3905240595340729, 0.001473061740398407, 0.12603123486042023, -0.14159896969795227, -0.0541737861931324, -0.1536242663860321, 0.47547647356987, -0.2805727422237396, 0.2540760040283203, 0.13056620955467224, -0.468142569065094, -0.3429703116416931, 0.21160995960235596, -0.2033776342868805, -0.40394872426986694, -0.4072827398777008, 0.12810862064361572, -0.12722761929035187, -0.1809757798910141, -0.14971867203712463, -0.00526268407702446, 0.23063430190086365, -0.1509692519903183, -0.0146375373005867, -0.6668524742126465, 0.10322314500808716, -0.31990471482276917, 0.24670228362083435, 0.1543767750263214, -0.6335016489028931, 0.00875084102153778, 0.17047914862632751, -0.19002188742160797, 0.16581612825393677, -0.1197972446680069, 0.005514652002602816, -0.13987520337104797, 0.029038583859801292, 0.04766327142715454, 0.34689420461654663, -0.19558557868003845, -0.3685944378376007, 0.07286816835403442, 0.05808325111865997, -0.00023846514523029327, 0.25941330194473267, -0.31390270590782166, 0.0474226176738739, 0.18081912398338318, -0.1679070144891739, 0.08111010491847992, 0.0019101519137620926, 0.01607026718556881, -0.17401179671287537, -0.04215708747506142, 0.3828538656234741, 0.2783958315849304, 0.14992138743400574, -0.16017550230026245, 0.02936161309480667, -0.20058543980121613, 0.12867233157157898, -0.08686092495918274, 0.08510541915893555, 0.026491906493902206, 0.40463724732398987, -0.14303967356681824, 0.03394696116447449, -0.21758532524108887, -0.31970056891441345, 0.18671199679374695, 0.06987382471561432, 0.026532599702477455, -0.35607922077178955, -0.18485936522483826, -0.1795908808708191, 0.10886504501104355, -0.108489990234375, -0.028328288346529007, 0.005802307277917862, 0.38322511315345764, 0.07114613056182861, 0.11154818534851074, -0.29748228192329407, 0.2475374937057495, 0.02424061857163906, 0.178135484457016, -0.021211668848991394, 0.47275906801223755, -0.40825894474983215, -0.31531229615211487, 0.09022590517997742, 0.045706357806921005, 0.10286220908164978, 0.039166633039712906, -0.00020596664398908615, 0.2879416048526764, -0.0028906366787850857, 0.05846555531024933, -0.027676425874233246, 0.22501394152641296, 0.013864932581782341, -0.17250192165374756, -0.1926613599061966, 0.25658881664276123, 0.0011451952159404755, 0.4009825885295868, 0.11842475831508636, 0.3715969920158386, 0.5518635511398315, 0.3002984821796417, -0.02346075139939785, 0.0936502069234848, -0.15085238218307495, -0.016852468252182007, 0.10855717211961746, -0.08392024040222168, 0.039352063089609146, -0.10692934691905975, 0.21006660163402557, -0.007699968293309212, -0.5035148859024048, 0.08401940762996674, 0.38331764936447144, -0.05956042557954788, 0.14520251750946045, 0.14363031089305878, -0.2609051764011383, 0.0484304204583168, 0.03393308445811272, 0.134577676653862, 0.2741986811161041, 0.1518545150756836, -0.12465684115886688, 0.1309269219636917, -0.3188163936138153, 0.16480037569999695, 0.1828400045633316, 0.10894755274057388, 0.17599841952323914, 0.18312010169029236, 0.28292956948280334, 0.08661849796772003, -0.05670750513672829, -0.32401448488235474, 0.1387683004140854, 0.3523799180984497, -0.43444669246673584, 0.2530079782009125, -0.34441351890563965, 0.2502819895744324, -0.16690950095653534, -0.18621043860912323, -0.4147603511810303, -0.2429388463497162, -0.030438430607318878, 0.09636931866407394, 0.10050366818904877, 0.2397010177373886, -0.31220710277557373, -0.12963183224201202, 0.046282537281513214, -0.3988124132156372, -0.21866869926452637, -0.1758573055267334, -0.44862908124923706, -0.019090810790657997, 0.20133687555789948, -0.39512500166893005, 0.03965191915631294, -0.21996288001537323, -0.21378622949123383, -0.30606070160865784, -0.18519720435142517, 0.08338800817728043, -0.2393285185098648, 0.29921016097068787, 0.25972986221313477, -0.03824158012866974, -0.04734867811203003, -0.09889186918735504, 0.32354554533958435, -0.3321587145328522, -0.28475844860076904, 0.10064622759819031, -0.09428592026233673, 0.03566046431660652, -0.060392603278160095, -0.4970046579837799, -0.3575111925601959, -0.1462482064962387, 0.01242414116859436, 0.04109978303313255, 0.15556924045085907, -0.06247293949127197, 0.23095175623893738, -0.12492500245571136, -0.14891217648983002, -0.010573290288448334, -0.027686525136232376, 0.003966685384511948, 0.23732517659664154, 0.006279969122260809, -0.2969490587711334, -0.0511554479598999, 0.006424948573112488, 0.08962693810462952, 0.036702871322631836, -0.31444060802459717, -0.14395050704479218, 0.05472979694604874, 0.5389252305030823, -0.32073673605918884, 0.019200365990400314, 0.2970772683620453, 0.26947832107543945, -0.036795567721128464, 0.06308893859386444, -0.1787242442369461, -0.18927976489067078, 0.14467892050743103, 0.14156821370124817, 0.17441344261169434, 0.24109208583831787, -0.0849481076002121, 0.5790002942085266, -0.07034291326999664, -0.2986295521259308, 0.2510007619857788, -0.2920910716056824, 0.34119391441345215, 0.0630534365773201, -0.17983020842075348, -0.08869792520999908, -0.04832945764064789, 0.01564006134867668, 0.25179243087768555, -0.21847990155220032, -0.14967484772205353, -0.12394265830516815, -0.2539535164833069, -0.22122621536254883, -0.04261001572012901, -0.06121136248111725, 0.03599872067570686, 0.2440868318080902, -0.055108167231082916, 0.029861144721508026, -0.040375180542469025, -0.054597072303295135, 0.14564473927021027, 0.30164945125579834, -0.21570822596549988, 0.10174940526485443, -0.18308554589748383, -0.15270757675170898, -0.18033310770988464, 0.3837950825691223, 0.04397003725171089, 0.43773913383483887, 0.15525440871715546, -0.19997191429138184, 0.08330778777599335, -0.16417111456394196, 0.5928210616111755, -0.11870608478784561, 0.12393911927938461, 0.15854015946388245, -0.1371152102947235, -0.39554205536842346, -0.4143475890159607, -0.4618227779865265, 0.08394231647253036, 0.0049624256789684296, 0.19732819497585297, -0.29529011249542236, -0.13784772157669067, 0.23053111135959625, 0.1844812035560608, 0.05069262161850929, -0.026823893189430237, -0.41646698117256165, -0.06581665575504303, -0.1691931039094925, 0.2111225724220276, -0.1269623339176178, 0.3692871034145355, -0.16570840775966644, 0.4781210720539093, -0.14052456617355347, -0.17769575119018555, 0.16546674072742462, 0.22072887420654297, 0.3384036421775818, -0.3253706991672516, -0.003250718116760254, -0.19570572674274445, 0.22428910434246063, 0.6268395185470581, 0.5107086300849915, 0.32667937874794006, -0.3425287902355194, 0.2157903015613556, 0.2769276201725006, 0.5334733724594116, -0.019867628812789917, -0.48275527358055115, -0.09585998207330704, -0.24713557958602905, 0.06028912961483002, -0.06590276211500168, -0.03210261091589928, 0.5593262314796448, -0.10960982739925385, -0.5021070837974548, -0.020202023908495903, 0.5698219537734985, 0.1894666850566864, -0.07937048375606537, 0.0957338958978653, 0.3778424859046936, -0.15573807060718536, 0.3602997660636902, -0.1334691047668457, 0.7824105024337769, 0.01754583790898323, 0.22091276943683624, 0.11558256298303604, -0.4412604570388794, 0.28626173734664917, -0.061378225684165955, 0.09111926704645157, -0.5176578164100647, -0.33662283420562744, -0.1464526653289795, -0.23950159549713135, 0.13034385442733765, 0.01456371322274208, -0.20682859420776367, 0.27470633387565613, 0.04758942127227783, 0.41162407398223877, 0.3609580397605896, 0.31710511445999146, -0.07195127010345459, 0.2720511853694916, -0.2521827518939972, -0.02175624668598175, -0.059352174401283264, 0.0917055606842041, 0.12811920046806335, 0.05869555473327637, -0.22393785417079926, -0.4248761534690857, -0.33838778734207153, 0.05846942216157913, -0.2342778444290161, -0.04213746637105942, 0.4508951008319855, -0.5700245499610901, 0.11825963854789734, 0.04261624068021774, -0.11736391484737396, -0.03296339139342308, -0.15812735259532928, -0.016440168023109436, -0.06273246556520462, 0.18405506014823914, 0.14150506258010864, 0.07661449909210205, 0.42220187187194824, -0.011286044493317604, -0.3214786648750305, 0.2916189432144165, -0.039237700402736664, 0.019097447395324707, -0.051204875111579895, -0.01982855796813965, 0.19738276302814484, -0.2740904688835144, 0.19485464692115784, -0.5745176672935486, 0.27533861994743347, -0.22365964949131012, 0.018647704273462296, -0.10245950520038605, 0.000749039463698864, -0.01631227880716324, 0.11780358850955963, -0.2898904085159302, -0.2125736027956009, 0.36669987440109253, 0.052849750965833664, 0.2823124825954437, 0.5269953608512878, -0.0676543340086937, -0.08177271485328674, -0.04540640860795975, 0.05288158357143402, 0.2541740834712982, -0.3957655131816864, -0.047170404344797134, -0.0543740876019001, 0.032748982310295105, 0.07908559590578079, 0.19848045706748962, 0.22373239696025848, 0.2555370628833771, 0.02011948451399803, -0.5458890199661255, -0.055260539054870605, 0.17430198192596436, -0.18442222476005554, 0.04644250497221947, 0.20215830206871033, 0.2829451858997345, 0.16649238765239716, -0.20048466324806213, -0.18500715494155884, -0.004421343095600605, -0.043111663311719894, 0.13986417651176453, -0.18647079169750214, 0.15304222702980042, 0.13420718908309937, -0.03256212919950485, 0.11823000013828278, -0.21702565252780914, -0.07061708718538284, -0.07409875094890594, -0.22043949365615845, 0.19820284843444824, 0.06246998906135559, 0.23938244581222534, 0.11284343898296356, 0.08842625468969345, -0.012073725461959839, -0.026475727558135986, 0.10663636028766632, 0.17856097221374512, -0.2272362858057022, 0.30603110790252686, 0.49295422434806824, -0.2622912526130676, -0.3427835702896118, -0.038649387657642365, -0.1529737412929535, -0.11577180027961731, 0.15556827187538147, 0.44990038871765137, -0.16310712695121765, 0.18110141158103943, -0.29856714606285095, 0.040074672549963, -0.23881776630878448, -0.03957714885473251, 0.18048562109470367, -0.42563825845718384, -0.2396811544895172, -0.04338333010673523, 0.4485304653644562, 0.2221599668264389, -0.23037539422512054, -0.09805911779403687, 0.11732715368270874, 0.009072265587747097, -0.44905441999435425, 0.035614751279354095, 0.2640772759914398, 0.15501631796360016, -0.041030239313840866, 0.44269198179244995, 0.4489096701145172, -0.28732189536094666, -0.0974356085062027, 0.17744016647338867, 0.49017998576164246, 0.25592708587646484, 0.16211295127868652, 0.5159203410148621, -0.04389389231801033, 0.15822213888168335, 0.4991028308868408, 0.20054639875888824, -0.09988973289728165, 0.43724167346954346, -0.11245382577180862, 0.126139298081398, 0.11646675318479538, -0.20750370621681213, 0.04234187677502632, -0.18604084849357605, 0.2623974680900574, 0.03244423121213913, 0.3752448558807373, -0.26542770862579346, 0.18940496444702148, 0.33129948377609253, 0.20597773790359497, -0.20066425204277039, -0.10158991068601608, 0.06638425588607788, -0.07940874993801117, -0.04491325467824936, 0.11131595075130463, -0.2534870505332947, -0.22936280071735382, -0.05136556923389435, -0.14251349866390228, -0.210042342543602, 0.6946980953216553, 0.2750629782676697, -0.19031791388988495, -0.30788564682006836, 0.12213832885026932, 0.11742943525314331, 0.048913102596998215, -0.27385008335113525, 0.3728538751602173, 0.08059811592102051, -0.0812721699476242, 0.22311639785766602, 0.3539699614048004, 0.8215018510818481, 0.24676193296909332, -0.075799360871315, -0.3166637718677521, -0.1711071878671646, 0.04289091378450394, 0.2550637125968933, -0.012918315827846527, 0.03286540508270264, 0.03127707168459892, 0.2523142993450165, 0.07573402673006058, 0.09421940892934799, -0.02543329820036888, 0.10409510135650635, -0.018615473061800003, -0.4002716839313507, 0.33429163694381714, 0.1377333253622055, -0.23292255401611328, 0.03347769379615784, 0.30487769842147827, -0.24637538194656372, -0.04606029391288757, 0.26615533232688904, 0.5599740743637085, -0.12006781995296478, -0.14167088270187378, -0.009210264310240746, 0.25853195786476135, 0.3113091289997101, 0.5630502104759216, 0.15854208171367645, -0.22429850697517395, -0.18599310517311096, -0.4756968319416046, 0.43088459968566895, -0.21508225798606873, -0.10645473003387451, 0.2760235071182251, 0.06394699960947037, 0.07041101902723312, 0.1569857895374298, 0.34716135263442993, 0.42097923159599304, -0.391006201505661, 0.1344711035490036, -0.3857071101665497, -0.257019966840744, 0.01940077915787697, -0.12370215356349945, -0.07056641578674316, -0.05101384222507477, 0.17150799930095673, -0.5911448001861572, 0.02388031780719757, -0.14542526006698608, -0.232188418507576, 0.17214515805244446, -0.05502796918153763, 0.5031511783599854, 0.007037661038339138, 0.6460564136505127, 0.047030285000801086, -0.19473281502723694, -0.22843915224075317, -0.10458722710609436, -0.4692245423793793, 0.6017158627510071, -0.26834774017333984, 0.22309179604053497, -0.12355321645736694, -0.33534950017929077, -0.22323010861873627, 0.25291115045547485, 0.00314147025346756, 0.08841400593519211, 0.004312695935368538, 0.12099003046751022, 0.07138700038194656, -0.040613364428281784, -0.017388442531228065, -0.058699190616607666, 0.015013288706541061, 0.30132749676704407, -0.5924042463302612, -0.6977593898773193, 0.49540796875953674, -0.31960949301719666, -0.3000353276729584, -0.43100062012672424, 0.24805045127868652, 0.01592518389225006, -0.033642277121543884, -0.5722131133079529, 0.11700545996427536, 0.4677249491214752, 0.07418446242809296, -0.22119803726673126, -0.14956457912921906, -0.0770949274301529, 0.37976139783859253, -0.11589519679546356, 0.4920499920845032, -0.2867053151130676, -0.19166022539138794, -0.23435889184474945, -0.26707130670547485 ]
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.3413379192352295, 0.20062360167503357, 0.049372684210538864, 0.057189907878637314, 0.11079324781894684, 0.08544402569532394, 0.23534011840820312, 0.28167280554771423, -0.17608493566513062, 0.13862170279026031, 0.4381379783153534, 0.3304324746131897, -0.12948466837406158, 0.2977350354194641, -0.19470371305942535, 0.07046322524547577, 0.013385884463787079, 0.14275352656841278, 0.3433140218257904, 0.05624394863843918, -0.12545019388198853, 0.23925867676734924, -0.1946721374988556, 0.12839548289775848, -0.13299909234046936, 0.03721259534358978, -0.1708894520998001, 0.04085756838321686, -0.13878147304058075, -0.46809327602386475, 0.43855687975883484, 0.09022574126720428, 0.181955486536026, 0.6217029094696045, -0.0001299516297876835, 0.1380510777235031, 0.410270631313324, -0.08854309469461441, -0.27312758564949036, -0.54704749584198, 0.07749241590499878, -0.012697262689471245, 0.398808091878891, -0.10407982766628265, 0.09655635803937912, -0.38478174805641174, -0.044882193207740784, 0.10923190414905548, -0.06790333986282349, 0.3774312138557434, 0.08926326036453247, 0.25613105297088623, 0.08928489685058594, 0.013018149882555008, 0.26643678545951843, 0.32022321224212646, -0.17905473709106445, 0.43466442823410034, 0.16347241401672363, -0.1368514746427536, 0.18223115801811218, -0.08189263939857483, -0.0010015126317739487, 0.038112711161375046, 0.058765947818756104, 0.06501369923353195, -0.005421720445156097, -0.2756885290145874, 0.20956090092658997, -0.004676833748817444, 0.47382691502571106, -0.5655615329742432, -0.49996617436408997, 0.03257124871015549, 0.13106924295425415, -0.27599722146987915, 0.19895637035369873, 0.10928873717784882, -0.24751430749893188, 0.11206750571727753, -0.17689421772956848, -0.12104950100183487, -0.07972081750631332, -0.059705838561058044, -0.45207250118255615, 0.19554403424263, 0.14159244298934937, 0.19337046146392822, 0.0005676522850990295, -0.008045457303524017, 0.0825759768486023, -0.10773389041423798, 0.1832355111837387, -0.020200233906507492, -0.23837943375110626, -0.07612575590610504, 0.07234811037778854, 0.3277748227119446, 0.27130287885665894, 0.41958385705947876, 0.04035397619009018, -0.13066786527633667, 0.17426705360412598, 0.09461885690689087, 0.06765289604663849, 0.2015315592288971, -0.03253202140331268, 0.110075443983078, 0.2688361704349518, 0.002264659386128187, 0.025136742740869522, -0.03405294567346573, -0.08208819478750229, -0.1183398887515068, 0.22016777098178864, 0.03079470619559288, 0.8329049348831177, -0.31006094813346863, -0.26441308856010437, 0.06471984833478928, -0.41314125061035156, -0.14563442766666412, -0.19496193528175354, 0.2120336890220642, 0.1063017025589943, 0.3991490602493286, -0.05411260947585106, 0.3935268521308899, -0.09280641376972198, -0.03351520001888275, -0.12549865245819092, 0.09602214395999908, 0.07411003112792969, -0.07458309829235077, 0.22435013949871063, -0.34181705117225647, -0.021451260894536972, 0.2785854935646057, 0.2317495048046112, 0.16883516311645508, 0.08478682488203049, 0.1707441210746765, -0.015824519097805023, 0.5882757902145386, -0.1170843243598938, 0.303057461977005, 0.1808871477842331, -0.46626710891723633, -0.32400843501091003, 0.294248104095459, -0.34171995520591736, -0.311984121799469, -0.15444807708263397, 0.03956236690282822, -0.33098268508911133, -0.22794035077095032, -0.2230113446712494, -0.19956523180007935, 0.2305958867073059, -0.09554348886013031, 0.037782222032547, -0.6431543231010437, 0.1101001501083374, -0.2451973408460617, 0.26608845591545105, 0.25220197439193726, -0.4532634913921356, 0.055128827691078186, -0.005815742537379265, 0.007761616259813309, 0.168653666973114, 0.10818527638912201, -0.06993655115365982, -0.13681071996688843, -0.025997910648584366, 0.08007170259952545, 0.4520938992500305, -0.4171763062477112, -0.3087327778339386, 0.25049686431884766, -0.050209708511829376, 0.05252663791179657, 0.25445830821990967, -0.4099240005016327, 0.0670626237988472, 0.1091567724943161, -0.1023419052362442, -0.05597253888845444, -0.013213178142905235, 0.1008477583527565, -0.11708724498748779, -0.05184754356741905, 0.4205114245414734, 0.2592456638813019, 0.09459704905748367, -0.1817266345024109, -0.061567001044750214, -0.35203033685684204, 0.20803731679916382, -0.05817309394478798, -0.00003457954153418541, -0.047227807343006134, 0.4154106676578522, -0.30174070596694946, 0.037663280963897705, -0.0054554566740989685, -0.28100118041038513, 0.2353978455066681, 0.13972313702106476, 0.18325088918209076, -0.4007824659347534, -0.24609647691249847, -0.29574310779571533, 0.11209283024072647, -0.18158604204654694, -0.025083385407924652, -0.07342295348644257, 0.3676604628562927, 0.09435790777206421, 0.09085194766521454, -0.24598616361618042, 0.12316127121448517, -0.05497061461210251, 0.12163867801427841, -0.015705794095993042, 0.36100873351097107, -0.3976755142211914, -0.31142088770866394, 0.14861780405044556, 0.015297550708055496, 0.1552104949951172, -0.09533525258302689, 0.049206897616386414, 0.19779279828071594, 0.01829274371266365, -0.061506956815719604, 0.02491423301398754, 0.2371176779270172, 0.09744911640882492, -0.14393986761569977, -0.13205452263355255, 0.27384939789772034, -0.052751362323760986, 0.2288922667503357, 0.008953575044870377, 0.448350727558136, 0.43373924493789673, 0.41353732347488403, -0.0052923113107681274, 0.133137047290802, -0.07898013293743134, 0.04646539315581322, -0.10265905410051346, 0.023542553186416626, 0.062319450080394745, -0.1579684019088745, 0.238557830452919, -0.008310871198773384, -0.40837374329566956, 0.17890681326389313, 0.4755973219871521, 0.004528507590293884, 0.051208123564720154, 0.12631835043430328, -0.04640490561723709, 0.013515584170818329, 0.14270557463169098, 0.11965912580490112, 0.36907175183296204, 0.13157019019126892, -0.12699894607067108, 0.12801909446716309, -0.3089666962623596, -0.00023996084928512573, 0.088136687874794, 0.08554036170244217, -0.017723526805639267, 0.10669934749603271, 0.2934767007827759, 0.009475020691752434, -0.17146244645118713, -0.5069286823272705, 0.13862861692905426, 0.35239267349243164, -0.5544528961181641, 0.2957424521446228, -0.2599962651729584, 0.24121862649917603, -0.05639559030532837, -0.09951793402433395, -0.35122400522232056, -0.340032160282135, -0.04263434559106827, 0.1322486698627472, 0.18554237484931946, 0.1987331360578537, -0.31568872928619385, 0.0858139842748642, 0.027886630967259407, -0.547407329082489, -0.3988510072231293, -0.22504810988903046, -0.3432810604572296, -0.008241532370448112, 0.3350313603878021, -0.3440191447734833, 0.10437469184398651, -0.35360080003738403, -0.06156022846698761, -0.3151581585407257, -0.32768210768699646, 0.09710292518138885, -0.3790058493614197, 0.3400275707244873, 0.2641105353832245, 0.1390087902545929, -0.09369199723005295, -0.07758636027574539, 0.2825629711151123, -0.34515079855918884, -0.349821001291275, 0.05580329895019531, -0.03937090188264847, -0.08165905624628067, -0.22975130379199982, -0.43957677483558655, -0.17561151087284088, -0.1256152093410492, 0.17975473403930664, 0.13457603752613068, 0.0894508957862854, 0.16021262109279633, 0.26173147559165955, -0.11196012794971466, 0.00159365963190794, -0.08004466444253922, 0.04162630811333656, -0.18532046675682068, 0.31138530373573303, -0.12298958003520966, -0.29051515460014343, 0.07681432366371155, 0.09018783271312714, 0.2567838728427887, 0.09056330472230911, -0.31956619024276733, -0.20885634422302246, 0.007146570831537247, 0.5721036195755005, -0.15281738340854645, 0.058957330882549286, 0.3950416147708893, 0.18017251789569855, 0.033581122756004333, 0.030317917466163635, -0.2007777839899063, -0.09942688792943954, 0.15768373012542725, 0.05619436874985695, 0.19561991095542908, 0.22704452276229858, -0.06458108872175217, 0.7777855396270752, -0.09126517176628113, -0.2477520853281021, 0.3013988137245178, -0.3482935428619385, 0.4125491678714752, 0.09245966374874115, -0.31436342000961304, -0.1148332953453064, -0.004349052906036377, -0.09836368262767792, 0.17193615436553955, -0.16727137565612793, -0.19684916734695435, -0.13160863518714905, -0.2043852061033249, -0.11719837784767151, -0.09018616378307343, -0.04581405967473984, -0.014826584607362747, 0.27997586131095886, -0.03968830406665802, 0.16787481307983398, -0.13242243230342865, -0.04968717321753502, 0.17422722280025482, 0.4427700638771057, -0.019698090851306915, 0.023720085620880127, -0.26244881749153137, -0.2940680980682373, -0.29594647884368896, 0.37241899967193604, 0.06115709990262985, 0.4008816182613373, -0.026680689305067062, -0.16103103756904602, 0.1031055748462677, -0.30256062746047974, 0.6163396835327148, -0.2401418536901474, 0.08069299906492233, 0.342190682888031, -0.2250518649816513, -0.40683817863464355, -0.32001256942749023, -0.4515892267227173, 0.1839897781610489, -0.02797653153538704, 0.25944989919662476, -0.28012219071388245, -0.3214559853076935, 0.26712748408317566, 0.10506042838096619, 0.06642985343933105, 0.028870582580566406, -0.5246201753616333, -0.4429922103881836, -0.29866838455200195, 0.21401208639144897, 0.05449826270341873, 0.2545928359031677, -0.3563588857650757, 0.4444723427295685, -0.0712299644947052, -0.2317400872707367, 0.2484540045261383, 0.29517272114753723, 0.2508280873298645, -0.13306057453155518, -0.06405602395534515, -0.18158681690692902, 0.009776510298252106, 0.477693647146225, 0.5681915879249573, 0.3777182698249817, -0.2568677067756653, 0.37690991163253784, 0.20318089425563812, 0.5758686661720276, 0.22578902542591095, -0.4059256613254547, -0.05272068828344345, -0.1149652749300003, -0.03791368007659912, -0.0809890553355217, 0.12207646667957306, 0.5143465995788574, -0.21527890861034393, -0.3515264689922333, -0.06737898290157318, 0.376257985830307, 0.2904915511608124, -0.04916895553469658, 0.1210092157125473, 0.40698307752609253, -0.1331273466348648, 0.31321001052856445, -0.13128003478050232, 0.8649086356163025, 0.05738135054707527, 0.25698232650756836, 0.1712695062160492, -0.3226710557937622, 0.08208957314491272, -0.003961000591516495, 0.01754850521683693, -0.45711585879325867, -0.168637216091156, -0.1796826273202896, -0.2954649329185486, 0.23048439621925354, -0.022618189454078674, -0.18655990064144135, 0.2297227382659912, 0.06012485921382904, 0.4995059669017792, 0.4300893545150757, 0.39666056632995605, -0.23162266612052917, 0.3145560920238495, -0.21944276988506317, -0.01729845628142357, 0.029300900176167488, 0.22863127291202545, 0.12447749823331833, -0.0027924319729208946, -0.27465882897377014, -0.4961467385292053, -0.37046265602111816, -0.0256943479180336, -0.2890319526195526, -0.11042258143424988, 0.32959040999412537, -0.7482528686523438, 0.248647540807724, 0.033922962844371796, 0.1098259761929512, 0.007534865289926529, -0.30140557885169983, 0.03664806857705116, -0.1004754975438118, 0.11640477925539017, 0.23055772483348846, -0.01268852036446333, 0.37980517745018005, 0.0022481828927993774, -0.3695720136165619, 0.24874746799468994, -0.07758887857198715, -0.12840703129768372, -0.10458025336265564, 0.06520941853523254, -0.04165568947792053, -0.3378785252571106, 0.17437335848808289, -0.5917774438858032, 0.18222294747829437, -0.08842730522155762, -0.02064431458711624, -0.11919285356998444, 0.09579984098672867, 0.02543455734848976, 0.20536759495735168, -0.22562327980995178, -0.12507115304470062, 0.27431342005729675, -0.06986581534147263, 0.16882947087287903, 0.541367769241333, -0.013897627592086792, 0.041784822940826416, -0.03793547675013542, 0.0337940976023674, 0.2881389260292053, -0.4225570559501648, 0.01937277987599373, -0.06643985956907272, 0.0207815021276474, -0.007983720861375332, 0.5095459818840027, 0.0708172395825386, 0.20018166303634644, -0.039185620844364166, -0.47952520847320557, -0.009307412430644035, 0.2478468269109726, -0.030047889798879623, 0.15695087611675262, 0.13996842503547668, 0.2862483263015747, 0.2056422084569931, -0.4054950773715973, -0.17149101197719574, -0.04002942889928818, -0.0005386006087064743, 0.09705939888954163, -0.12449884414672852, 0.0023442916572093964, 0.171980619430542, -0.021146848797798157, 0.024566812440752983, -0.16810792684555054, -0.07666444778442383, -0.04855990782380104, -0.12290939688682556, 0.2095736712217331, 0.03663792088627815, 0.15803182125091553, 0.19972412288188934, 0.012682728469371796, 0.009816817007958889, -0.01313001662492752, 0.16014549136161804, 0.08294396102428436, -0.13927775621414185, 0.09324318915605545, 0.19146600365638733, -0.1461142599582672, -0.3684518337249756, 0.026094360277056694, -0.16010849177837372, 0.08383240550756454, 0.17343303561210632, 0.38310033082962036, -0.12433021515607834, 0.17004624009132385, -0.16442817449569702, 0.13646388053894043, -0.15961752831935883, 0.013914506882429123, 0.22388657927513123, -0.3504801392555237, -0.22463515400886536, -0.07116300612688065, 0.5016783475875854, 0.2746827006340027, -0.188067227602005, 0.04947218298912048, 0.07359785586595535, -0.06575619429349899, -0.33242067694664, 0.08114805072546005, 0.31314870715141296, 0.16446982324123383, -0.014220405369997025, 0.5696209669113159, 0.3624669313430786, -0.2893325090408325, 0.15902385115623474, 0.11968400329351425, 0.7548350691795349, 0.2659265398979187, 0.06463393568992615, 0.17350515723228455, -0.17275241017341614, 0.17013123631477356, 0.4858211576938629, 0.05952177941799164, -0.05907755345106125, 0.11398427933454514, -0.16607391834259033, 0.1806773543357849, 0.06338612735271454, -0.13966251909732819, 0.0012395009398460388, -0.16610297560691833, 0.3387804925441742, -0.2645161747932434, 0.3434372544288635, -0.20660489797592163, 0.18527236580848694, 0.434705913066864, 0.0754561498761177, -0.17391011118888855, -0.23981532454490662, 0.10661676526069641, -0.022905372083187103, -0.08845068514347076, -0.11495338380336761, -0.24852254986763, -0.18543660640716553, -0.0515630878508091, -0.1260223239660263, -0.12427972257137299, 0.6650731563568115, 0.1825423538684845, -0.18023286759853363, -0.2559804618358612, -0.009241405874490738, 0.028558537364006042, 0.07771599292755127, -0.26376181840896606, 0.4144221544265747, 0.07031834125518799, -0.12955191731452942, 0.06194267421960831, 0.33883631229400635, 0.9245891571044922, 0.1384822279214859, -0.11934107542037964, -0.35759326815605164, -0.2355310171842575, 0.009926015511155128, 0.13869526982307434, 0.007697427645325661, -0.012599028646945953, 0.14951148629188538, 0.13449643552303314, 0.08624684065580368, 0.07146630436182022, -0.05862962827086449, 0.1186971440911293, -0.11727654933929443, -0.4760376513004303, 0.3648817837238312, -0.01683630421757698, -0.17699581384658813, -0.04906264692544937, 0.19289611279964447, -0.21985271573066711, 0.018676239997148514, 0.15101741254329681, 0.4744876027107239, -0.14139756560325623, -0.26538312435150146, -0.01609070599079132, 0.14959587156772614, 0.39903315901756287, 0.47985899448394775, 0.2936069071292877, -0.28840047121047974, -0.16200324892997742, -0.6309643983840942, 0.2499452829360962, -0.10891810059547424, -0.07338964194059372, 0.1761760115623474, 0.19231727719306946, 0.1261349618434906, 0.15658384561538696, 0.25283199548721313, 0.15728162229061127, -0.25267067551612854, 0.07404758036136627, -0.28174930810928345, -0.18422973155975342, -0.11259958148002625, -0.16807392239570618, -0.08373063057661057, -0.05157983675599098, 0.12334036827087402, -0.6046470403671265, -0.04503506049513817, -0.22134868800640106, -0.3686109483242035, 0.13001862168312073, -0.2846071124076843, 0.43594852089881897, -0.04533717781305313, 0.7685070037841797, 0.1256028115749359, -0.15011534094810486, -0.3288875222206116, -0.1370660960674286, -0.28524109721183777, 0.5235639214515686, -0.3340815305709839, 0.2942081093788147, -0.07190615683794022, -0.3801875114440918, -0.23676487803459167, 0.21255707740783691, 0.14735722541809082, 0.01508365012705326, 0.13905538618564606, 0.1891031414270401, -0.09959575533866882, -0.055413827300071716, -0.04359778016805649, -0.03080165386199951, -0.02593732625246048, 0.224990114569664, -0.5183082818984985, -0.6421115398406982, 0.5877330303192139, -0.38761812448501587, -0.2811574637889862, -0.3539850413799286, 0.22090962529182434, -0.18944606184959412, -0.15479272603988647, -0.49084827303886414, 0.021292738616466522, 0.3034397065639496, 0.13607996702194214, -0.25627315044403076, 0.0768878310918808, 0.023782463744282722, 0.2902079224586487, -0.08824680000543594, 0.4993482828140259, -0.3625541925430298, -0.07459188997745514, -0.17572972178459167, -0.19070535898208618 ]
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.4502641558647156, 0.13628941774368286, 0.07276098430156708, -0.007737763226032257, 0.21043932437896729, 0.1455686092376709, 0.13477949798107147, 0.3891869783401489, -0.26127326488494873, 0.19664892554283142, 0.24235865473747253, 0.4409928023815155, -0.17453427612781525, 0.19554714858531952, -0.24655765295028687, 0.020136959850788116, -0.03596080094575882, 0.19910183548927307, 0.13498301804065704, 0.04183584451675415, -0.148624449968338, 0.16259057819843292, -0.21622104942798615, 0.26479625701904297, -0.153704434633255, -0.05620003491640091, -0.08893931657075882, -0.04437948018312454, -0.13040925562381744, -0.5437802076339722, 0.3741046190261841, -0.059600476175546646, 0.1746746152639389, 0.5324847102165222, -0.000123493853607215, 0.13402901589870453, 0.35790306329727173, -0.09974335879087448, -0.32015737891197205, -0.4985056519508362, 0.030355818569660187, 0.02507232315838337, 0.33092889189720154, -0.1497173011302948, 0.045702263712882996, -0.5905308723449707, -0.05606222152709961, 0.011204436421394348, -0.026458635926246643, 0.49213048815727234, 0.1557277888059616, 0.1648605614900589, 0.07555602490901947, -0.13787980377674103, 0.21025505661964417, 0.08985574543476105, -0.07608108222484589, 0.4706765115261078, 0.12163928151130676, -0.07171226292848587, 0.1600067913532257, -0.10232013463973999, -0.021708521991968155, -0.016618885099887848, -0.019736751914024353, 0.08909525722265244, 0.270140141248703, -0.2540651261806488, 0.2758244276046753, 0.0213557668030262, 0.6139841079711914, -0.609930157661438, -0.4028124213218689, 0.058497630059719086, 0.1510484218597412, -0.1977948546409607, 0.20437294244766235, 0.1740206927061081, -0.23459818959236145, 0.1370753049850464, -0.19406192004680634, -0.038115084171295166, -0.07902073860168457, -0.10124266147613525, -0.3796554505825043, 0.2510083317756653, 0.19847622513771057, 0.1712026596069336, -0.015670958906412125, -0.11607964336872101, 0.07631221413612366, -0.16492339968681335, 0.1704011708498001, 0.0014241542667150497, -0.21078751981258392, -0.12968376278877258, -0.0683172270655632, 0.36054179072380066, 0.24468225240707397, 0.24374254047870636, 0.03951941803097725, -0.2193712294101715, 0.2899473309516907, 0.1493438482284546, -0.00020721741020679474, 0.06083034351468086, 0.028259243816137314, 0.15257427096366882, 0.11568419635295868, -0.07430457323789597, 0.011641114950180054, 0.012575920671224594, -0.035671308636665344, -0.1347559541463852, 0.28068944811820984, -0.017558354884386063, 0.7477177381515503, -0.3860921561717987, -0.32942628860473633, 0.11270736902952194, -0.3191035985946655, -0.1121121421456337, -0.1496727466583252, 0.3698424696922302, 0.08019507676362991, 0.30647173523902893, -0.2025550901889801, 0.30273377895355225, -0.1487705260515213, -0.1783849596977234, -0.09530594199895859, 0.08789089322090149, -0.021923983469605446, -0.13318273425102234, 0.1687430441379547, -0.2979695200920105, -0.04650471359491348, 0.34691014885902405, 0.1025208979845047, 0.18799346685409546, 0.06526163220405579, -0.0026957462541759014, -0.05441402643918991, 0.461166113615036, -0.22185009717941284, 0.2516636848449707, 0.17808380722999573, -0.5087432861328125, -0.3634718954563141, 0.2743995785713196, -0.21642568707466125, -0.3534749150276184, -0.2432035356760025, 0.15128149092197418, -0.09201845526695251, -0.2586003541946411, -0.04892828315496445, -0.06135125085711479, 0.1802082359790802, -0.15756334364414215, -0.004294469952583313, -0.669238805770874, 0.12914948165416718, -0.31724438071250916, 0.29797545075416565, 0.23556289076805115, -0.5403273701667786, 0.05119902640581131, 0.11710041016340256, -0.153870090842247, 0.22085675597190857, -0.04805411770939827, 0.02851787395775318, -0.1684468686580658, 0.008382229134440422, 0.0004042014479637146, 0.3619314134120941, -0.3157840967178345, -0.2808326184749603, 0.2037823349237442, 0.13735757768154144, -0.0054163821041584015, 0.2581101059913635, -0.3559536337852478, 0.06767728179693222, 0.13325299322605133, -0.24490171670913696, 0.07075203955173492, -0.06347844749689102, 0.03950023651123047, -0.1724347174167633, 0.011109502986073494, 0.43109065294265747, 0.29425209760665894, 0.07769431173801422, -0.18691885471343994, 0.054162703454494476, -0.2536594569683075, 0.17242379486560822, -0.1534913033246994, 0.0145555529743433, -0.09521050751209259, 0.42285090684890747, -0.307148814201355, 0.0091021116822958, -0.08208505809307098, -0.37202557921409607, 0.21420738101005554, 0.14268600940704346, 0.042782582342624664, -0.333101749420166, -0.25452786684036255, -0.3418060541152954, 0.0929810106754303, -0.11785750091075897, -0.030902821570634842, 0.029023103415966034, 0.383460134267807, 0.08364608883857727, 0.0666087418794632, -0.17853392660617828, 0.1259462535381317, 0.01098109595477581, 0.18438979983329773, -0.021914497017860413, 0.40528643131256104, -0.38489651679992676, -0.32877930998802185, 0.11645247042179108, 0.014768432825803757, 0.21107065677642822, -0.07470078766345978, -0.024430643767118454, 0.35694509744644165, 0.0668141320347786, 0.03249745070934296, 0.03754546493291855, 0.28127479553222656, 0.009507890790700912, -0.2744846045970917, -0.2255581021308899, 0.2845184803009033, -0.05631455034017563, 0.33589109778404236, -0.04778023809194565, 0.42459458112716675, 0.46902063488960266, 0.2440934181213379, 0.0434885248541832, 0.12071564048528671, -0.08766251802444458, 0.030711155384778976, 0.017595699056982994, -0.10276897251605988, 0.12395438551902771, -0.09751394391059875, 0.24295540153980255, 0.007381703704595566, -0.4534863829612732, 0.018111400306224823, 0.33262374997138977, -0.10369668900966644, 0.0797223299741745, 0.10889105498790741, -0.13481757044792175, 0.07133278250694275, 0.13101331889629364, 0.12860141694545746, 0.26710057258605957, 0.15452158451080322, -0.0664285272359848, 0.1459352821111679, -0.39577674865722656, 0.04936870187520981, 0.14745746552944183, 0.04694997891783714, 0.08438365161418915, 0.11784978955984116, 0.20307549834251404, 0.06922563165426254, -0.19645339250564575, -0.43865376710891724, 0.1690078228712082, 0.3975129723548889, -0.4556093215942383, 0.25250372290611267, -0.25930261611938477, 0.28796252608299255, -0.1762992888689041, -0.1013130396604538, -0.2812742590904236, -0.28717291355133057, 0.02980847842991352, 0.1613871157169342, 0.12805278599262238, 0.2844822406768799, -0.3949868977069855, 0.13085263967514038, 0.060437850654125214, -0.5389617681503296, -0.35877349972724915, -0.17885100841522217, -0.43584656715393066, 0.056484874337911606, 0.29300642013549805, -0.29367297887802124, 0.18700169026851654, -0.3385721445083618, -0.10415757447481155, -0.2780034840106964, -0.2546272873878479, 0.10002301633358002, -0.2732533812522888, 0.4224724769592285, 0.23313415050506592, 0.0653018206357956, -0.050942376255989075, -0.13944754004478455, 0.29851219058036804, -0.500691294670105, -0.23821032047271729, 0.10757847130298615, -0.060914814472198486, -0.028160754591226578, -0.09925736486911774, -0.6026321053504944, -0.2700938284397125, -0.17673160135746002, -0.07382935285568237, 0.10129447281360626, 0.11717994511127472, 0.01531902514398098, 0.17950044572353363, -0.04143853858113289, -0.1064005121588707, 0.04073167219758034, 0.02278008498251438, -0.09356790781021118, 0.26387491822242737, -0.1412266194820404, -0.24706201255321503, 0.003032997250556946, 0.05939903110265732, 0.3075079023838043, 0.026312869042158127, -0.3157668709754944, -0.1785081923007965, 0.08708111196756363, 0.5713333487510681, -0.21375471353530884, -0.008834050968289375, 0.20170167088508606, 0.3253881335258484, -0.046130791306495667, 0.04386933892965317, -0.1561376452445984, -0.22579091787338257, 0.0831051766872406, 0.11741676926612854, 0.11736871302127838, 0.2478051483631134, -0.00014703348278999329, 0.7000095248222351, 0.09017035365104675, -0.26471173763275146, 0.24563421308994293, -0.2904430031776428, 0.36461105942726135, 0.021591544151306152, -0.2104305922985077, -0.029302576556801796, -0.003284767270088196, -0.08996839076280594, 0.25670185685157776, -0.18345153331756592, -0.2540487051010132, -0.07478810846805573, -0.18840740621089935, -0.22964918613433838, -0.06973996758460999, -0.038525164127349854, -0.050759054720401764, 0.26926466822624207, -0.07091475278139114, 0.14934515953063965, -0.07006052881479263, -0.10604322701692581, 0.20325374603271484, 0.3706050515174866, -0.25434157252311707, 0.030876897275447845, -0.26971161365509033, -0.2007378339767456, -0.23489853739738464, 0.4246779680252075, -0.012991073541343212, 0.47726139426231384, -0.016962863504886627, -0.12940824031829834, 0.09740851074457169, -0.2080833613872528, 0.478967547416687, -0.2268110066652298, 0.08115154504776001, 0.28939223289489746, -0.1709688901901245, -0.4463437497615814, -0.36209216713905334, -0.49877506494522095, 0.07814160734415054, -0.037669647485017776, 0.22606587409973145, -0.23438692092895508, -0.23196475207805634, 0.22696171700954437, 0.11853816360235214, 0.0725109875202179, 0.0037116436287760735, -0.4310707449913025, -0.2614607810974121, -0.2430790364742279, 0.30343735218048096, -0.10249542444944382, 0.35252222418785095, -0.33259159326553345, 0.40758100152015686, -0.09610062092542648, -0.1727207601070404, 0.24494053423404694, 0.35442987084388733, 0.22494173049926758, -0.21191184222698212, 0.026076506823301315, -0.12502332031726837, 0.23234279453754425, 0.5753098130226135, 0.5339667201042175, 0.23211005330085754, -0.2221548855304718, 0.1890178918838501, 0.23789289593696594, 0.6089590787887573, 0.037967950105667114, -0.4350990653038025, -0.1311745047569275, -0.21597327291965485, 0.04362253099679947, -0.00905922707170248, 0.10546892881393433, 0.536983072757721, -0.12586843967437744, -0.5352916121482849, 0.033951856195926666, 0.4779818058013916, 0.27924641966819763, -0.1366874873638153, 0.07593443989753723, 0.31562507152557373, -0.16744336485862732, 0.43760812282562256, -0.10256548970937729, 0.8173341155052185, -0.0009253472089767456, 0.171964630484581, 0.1389717310667038, -0.30203068256378174, 0.1291724592447281, 0.020028196275234222, 0.01078897062689066, -0.4951131045818329, -0.35238054394721985, -0.12848080694675446, -0.26069214940071106, 0.24953511357307434, 0.058063000440597534, -0.3433752655982971, 0.30057626962661743, 0.019464053213596344, 0.4572974741458893, 0.4209080636501312, 0.29168400168418884, -0.16789299249649048, 0.2989627718925476, -0.2507624328136444, 0.038031645119190216, 0.024416565895080566, 0.07223387062549591, 0.11549519747495651, 0.07646672427654266, -0.14137698709964752, -0.494806706905365, -0.27903854846954346, 0.015146221965551376, -0.29300156235694885, -0.10045865178108215, 0.3964218497276306, -0.5733568668365479, 0.2118072509765625, 0.07209337502717972, 0.04818393290042877, 0.0640391856431961, -0.23337271809577942, 0.012960029765963554, -0.14577803015708923, 0.12769412994384766, 0.1839478760957718, 0.047533538192510605, 0.4533492922782898, -0.008722204715013504, -0.33786463737487793, 0.35816526412963867, -0.08139484375715256, -0.011938616633415222, 0.014829546213150024, -0.1256125569343567, 0.1773066520690918, -0.33680301904678345, 0.24641482532024384, -0.6286609172821045, 0.10997293889522552, -0.17819692194461823, 0.04503738135099411, -0.19843937456607819, 0.0036129688378423452, 0.10916213691234589, 0.2272610366344452, -0.3318325877189636, -0.211831733584404, 0.20839080214500427, 0.0059668757021427155, 0.2285708785057068, 0.5235667824745178, -0.08871237933635712, -0.048078007996082306, -0.10361737012863159, 0.05815386027097702, 0.32729896903038025, -0.3375200927257538, -0.049120333045721054, -0.029716866090893745, 0.06561005115509033, 0.15234346687793732, 0.37685492634773254, 0.2776251435279846, 0.21318787336349487, -0.07444609701633453, -0.5255504846572876, -0.07296574860811234, 0.2375103384256363, -0.07121346890926361, 0.19758814573287964, 0.11746042221784592, 0.3237076699733734, 0.22385913133621216, -0.113493412733078, -0.23970310389995575, -0.03295721113681793, -0.1323358118534088, 0.191933736205101, -0.0868283361196518, 0.09644526988267899, 0.05169970542192459, 0.0634486973285675, 0.08875685930252075, -0.19282986223697662, -0.1422789990901947, -0.11094798892736435, -0.1475551277399063, 0.18353666365146637, 0.10185123234987259, 0.13818565011024475, 0.12649258971214294, 0.05604735016822815, 0.04901457950472832, -0.0467185415327549, 0.13852298259735107, 0.03938652575016022, -0.17921733856201172, 0.2147742062807083, 0.347341388463974, -0.16727691888809204, -0.35854971408843994, -0.037098899483680725, -0.2041282057762146, -0.039642274379730225, 0.14702759683132172, 0.38606396317481995, -0.26222532987594604, 0.06064395606517792, -0.18398037552833557, 0.08918015658855438, -0.03867517411708832, -0.0581180676817894, 0.11452366411685944, -0.3145362138748169, -0.24655447900295258, 0.013893911615014076, 0.4490864872932434, 0.28608566522598267, -0.201555535197258, -0.03005049005150795, 0.23514991998672485, 0.03341386094689369, -0.41200244426727295, 0.008535371161997318, 0.2943558394908905, 0.16434882581233978, 0.09699562191963196, 0.4992047846317291, 0.36793848872184753, -0.33733510971069336, 0.07632042467594147, 0.054107971489429474, 0.4890703558921814, 0.22714518010616302, 0.16241027414798737, 0.42818862199783325, -0.12060500681400299, 0.14897337555885315, 0.5001076459884644, 0.07173770666122437, -0.06867455691099167, 0.3365831971168518, -0.22659677267074585, 0.29017552733421326, 0.05184932053089142, -0.09472796320915222, 0.012078821659088135, -0.14029131829738617, 0.33037877082824707, -0.08364848792552948, 0.30317938327789307, -0.18541932106018066, 0.21076872944831848, 0.3404167890548706, 0.09915260970592499, -0.31039702892303467, -0.26461124420166016, 0.007390618324279785, -0.0769662857055664, -0.1239808052778244, -0.07775723934173584, -0.24878466129302979, -0.31133514642715454, -0.04240040108561516, -0.18332567811012268, -0.21364517509937286, 0.6925197839736938, 0.209476500749588, -0.14585191011428833, -0.28876733779907227, 0.0996054857969284, 0.12556172907352448, 0.06614123284816742, -0.2412375658750534, 0.4364039897918701, -0.0067138150334358215, -0.04618249088525772, 0.15534643828868866, 0.2981884777545929, 0.8132766485214233, 0.21816053986549377, -0.17353978753089905, -0.32582321763038635, -0.23221516609191895, 0.06455744802951813, 0.2646584212779999, 0.06301853805780411, -0.037336401641368866, 0.021262966096401215, 0.29204893112182617, 0.11681210994720459, 0.027758806943893433, -0.07846157252788544, 0.06500285118818283, -0.1590966135263443, -0.4842322766780853, 0.2990453839302063, 0.18477964401245117, -0.10185901820659637, 0.01642223820090294, 0.17674610018730164, -0.2542058527469635, 0.026872359216213226, 0.2197713702917099, 0.40253907442092896, -0.09970112144947052, -0.1280665397644043, 0.013057734817266464, 0.2641710937023163, 0.3753710389137268, 0.46604108810424805, 0.3042023777961731, -0.32638972997665405, -0.23226389288902283, -0.5930101871490479, 0.3081546425819397, -0.11185598373413086, -0.06417253613471985, 0.23115286231040955, 0.07034188508987427, 0.1258239448070526, 0.21518175303936005, 0.3055858612060547, 0.3428936004638672, -0.26369571685791016, 0.10260078310966492, -0.400189608335495, -0.17699536681175232, -0.09045106172561646, -0.1819169521331787, -0.09434620290994644, -0.1717553436756134, 0.1907273381948471, -0.5734685063362122, 0.014778725802898407, -0.12844190001487732, -0.34596580266952515, 0.20035454630851746, -0.19253969192504883, 0.4588805139064789, -0.020361552014946938, 0.7599465847015381, 0.05706425756216049, -0.13146355748176575, -0.19957038760185242, -0.1574079990386963, -0.3382563591003418, 0.5084713101387024, -0.21539613604545593, 0.24390318989753723, -0.035587988793849945, -0.22234632074832916, -0.14480964839458466, 0.23349937796592712, 0.14098140597343445, 0.015727771446108818, 0.08336320519447327, 0.09266474097967148, 0.06414277106523514, -0.09420687705278397, -0.023003336042165756, -0.019734926521778107, -0.0309024378657341, 0.29727140069007874, -0.46803444623947144, -0.6723173260688782, 0.5400302410125732, -0.33879345655441284, -0.23528021574020386, -0.4275926947593689, 0.2575128972530365, -0.0969463661313057, -0.08701151609420776, -0.48075616359710693, 0.10606785863637924, 0.38183513283729553, 0.0325494185090065, -0.22709819674491882, -0.0324547104537487, 0.03265141695737839, 0.3201512396335602, -0.13763150572776794, 0.5239672660827637, -0.28771668672561646, -0.151403546333313, -0.16822180151939392, -0.27104029059410095 ]
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.05949065461754799, -0.11997031420469284, 0.014864053577184677, 0.2438831925392151, 0.4732629656791687, -0.0013422071933746338, 0.44146114587783813, 0.1253981739282608, -0.01429564319550991, 0.26756346225738525, -0.17997747659683228, 0.46588945388793945, -0.11915536969900131, 0.10542633384466171, 0.09335114061832428, -0.1634466052055359, -0.14934825897216797, 0.17890527844429016, -0.0950513631105423, 0.004156026989221573, -0.2951403856277466, -0.12274529039859772, -0.2647021412849426, 0.16010642051696777, -0.4545840620994568, -0.24733632802963257, -0.12372760474681854, -0.028907664120197296, -0.2947981655597687, -0.30720555782318115, 0.39059290289878845, 0.04553208500146866, 0.08020157366991043, 0.5733886361122131, -0.00010463327635079622, 0.08574353158473969, 0.5220624804496765, 0.07952453196048737, -0.10193808376789093, -0.48973047733306885, -0.13645459711551666, -0.16683323681354523, 0.21391718089580536, -0.3938797414302826, -0.17488205432891846, -0.04341856762766838, 0.015630146488547325, 0.10472062230110168, 0.3135630488395691, 0.4849516451358795, 0.30893823504447937, 0.4509340226650238, 0.04645324870944023, -0.26731765270233154, 0.29664069414138794, 0.15159940719604492, -0.0532519705593586, 0.36010250449180603, -0.029763028025627136, -0.10263726115226746, 0.1846827119588852, 0.15670660138130188, -0.26694822311401367, -0.09675848484039307, 0.19038674235343933, 0.06878634542226791, -0.04153859615325928, -0.2908976674079895, -0.07514955848455429, 0.41438695788383484, 0.3387810289859772, -0.4593111574649811, -0.278810054063797, 0.11806515604257584, 0.2122836709022522, -0.2495187222957611, 0.26024630665779114, 0.08561869710683823, -0.012844736687839031, 0.19757303595542908, -0.08679479360580444, 0.2796068787574768, -0.2793038785457611, 0.3049073815345764, -0.16479367017745972, 0.14449648559093475, -0.06308633089065552, 0.03452431410551071, 0.20605114102363586, -0.19196362793445587, 0.05979176610708237, -0.13102690875530243, 0.03567327558994293, 0.100702203810215, -0.24360723793506622, -0.13699492812156677, 0.10915131866931915, -0.055024005472660065, 0.13056108355522156, -0.2993285655975342, 0.15652740001678467, -0.08257408440113068, -0.004699303302913904, 0.4082544147968292, 0.18361523747444153, 0.37427812814712524, 0.23539161682128906, 0.14673329889774323, 0.20310406386852264, 0.12505604326725006, -0.29142725467681885, 0.08516748249530792, -0.19163066148757935, -0.07955652475357056, 0.3350315988063812, 0.1417779177427292, 0.4543799161911011, 0.004213731735944748, -0.4538615047931671, -0.04847011715173721, -0.42317062616348267, 0.07957961410284042, 0.22692027688026428, 0.4578571021556854, -0.1490909457206726, 0.1119702160358429, 0.044868290424346924, 0.15390172600746155, -0.17074565589427948, -0.28313493728637695, -0.286907434463501, 0.41192784905433655, -0.332741379737854, -0.20058928430080414, 0.17256970703601837, 0.06317570805549622, -0.04409346729516983, -0.014276472851634026, -0.1245328038930893, 0.014792367815971375, 0.031217658892273903, -0.48646703362464905, -0.10691804438829422, 0.18023721873760223, 0.036691006273031235, -0.14341962337493896, 0.21774332225322723, -0.43856292963027954, 0.003859780728816986, 0.2104470133781433, -0.13902699947357178, -0.22052499651908875, -0.0644020140171051, 0.2921476364135742, -0.32975590229034424, -0.161749929189682, -0.122080959379673, 0.15815195441246033, 0.1588943600654602, 0.015282180160284042, 0.03860422223806381, -0.08452600240707397, -0.021860942244529724, -0.30670538544654846, 0.026878563687205315, 0.390267550945282, -0.37433385848999023, -0.22777388989925385, -0.11634723842144012, -0.05733541026711464, 0.3309759497642517, -0.0552944652736187, -0.013930198736488819, 0.28425273299217224, -0.016235634684562683, 0.12702053785324097, 0.6166732311248779, -0.38114646077156067, -0.3189845085144043, -0.0871524065732956, -0.05255649983882904, -0.032351139932870865, -0.000008434057235717773, -0.1415093094110489, 0.09520972520112991, 0.18519319593906403, 0.4305957853794098, 0.18257100880146027, 0.01085013709962368, -0.006876328960061073, -0.2708134353160858, -0.2111278772354126, 0.19119426608085632, 0.08953137695789337, 0.13897500932216644, -0.05664452165365219, -0.07800828665494919, -0.2422531247138977, 0.01793104037642479, -0.11919529736042023, -0.13236160576343536, -0.06167299300432205, 0.5806084275245667, -0.08955518901348114, -0.12208913266658783, -0.533130943775177, -0.23846036195755005, 0.145127534866333, -0.0384068563580513, 0.44006580114364624, -0.16476328670978546, -0.213297501206398, -0.4087546467781067, 0.04674912244081497, -0.05343273654580116, -0.04224420711398125, 0.2887168228626251, 0.032719604671001434, -0.16237135231494904, 0.14767244458198547, -0.09393139183521271, 0.06908973306417465, -0.18910664319992065, 0.14024941623210907, 0.11506964266300201, 0.3248275816440582, -0.05265737324953079, -0.43384960293769836, 0.016055256128311157, 0.24504834413528442, 0.4278887212276459, 0.06159822270274162, -0.05183066055178642, 0.31032121181488037, 0.09668101370334625, -0.21664436161518097, -0.33292925357818604, -0.037563979625701904, 0.10615916550159454, -0.32848861813545227, -0.19163809716701508, -0.02861056849360466, 0.1814012974500656, -0.003907982259988785, 0.015586543828248978, 0.506656289100647, 0.07304613292217255, 0.07515450567007065, -0.0834585502743721, 0.19625359773635864, -0.05213020369410515, -0.12022474408149719, -0.11892351508140564, -0.09356632828712463, 0.0853729397058487, -0.05164818838238716, 0.1604619026184082, 0.08396695554256439, -0.14869186282157898, -0.09396170824766159, 0.6276288628578186, 0.06613364815711975, 0.4066182076931, -0.12785768508911133, -0.2530849277973175, 0.14693427085876465, 0.0753541961312294, 0.0935152918100357, 0.35600408911705017, 0.3091842830181122, -0.17418396472930908, -0.012002808973193169, -0.16991370916366577, 0.020033549517393112, 0.09369760006666183, -0.03005785495042801, 0.3375014662742615, -0.019166231155395508, 0.32656562328338623, 0.002522745169699192, -0.31299516558647156, 0.11549840867519379, 0.038316406309604645, 0.18946458399295807, -0.3931477963924408, 0.1806960105895996, -0.3155395984649658, -0.15390516817569733, 0.05927345156669617, -0.13982366025447845, -0.042199041694402695, -0.2707488536834717, -0.08552626520395279, 0.18152551352977753, 0.05897100642323494, 0.264363557100296, 0.15974801778793335, -0.03270791471004486, 0.08473815768957138, -0.0655732974410057, -0.1022353321313858, -0.22010746598243713, -0.17439094185829163, 0.1428496241569519, 0.12740886211395264, 0.2078605592250824, 0.2995346188545227, -0.14255423843860626, 0.04809417575597763, 0.013804721646010876, -0.36022505164146423, 0.08573350310325623, -0.12153434753417969, 0.44019371271133423, 0.34255990386009216, 0.07288344949483871, -0.23687013983726501, 0.017392493784427643, 0.36196649074554443, -0.3473309576511383, -0.10805138945579529, 0.39837729930877686, -0.19799813628196716, 0.05025022104382515, -0.21617136895656586, -0.3248879313468933, -0.5105348825454712, -0.3189549446105957, 0.1311064511537552, -0.029471304267644882, 0.0872795432806015, 0.3062433898448944, 0.22816361486911774, 0.4508945643901825, -0.052571844309568405, 0.039583466947078705, -0.1739945113658905, -0.007780149579048157, 0.3531797230243683, -0.014841319993138313, -0.3720351755619049, 0.007990989834070206, -0.1651001274585724, 0.13139070570468903, -0.011758638545870781, -0.17909064888954163, -0.5396494269371033, -0.14006079733371735, 0.28840041160583496, 0.02294372022151947, -0.09574887901544571, 0.3742547631263733, 0.053973693400621414, -0.1510506272315979, -0.19747626781463623, -0.0822635143995285, 0.03177411109209061, 0.31725671887397766, 0.021964766085147858, -0.06948927044868469, 0.2908794581890106, 0.05522153899073601, 0.28113967180252075, -0.11332322657108307, -0.25137487053871155, 0.41980674862861633, -0.2915056645870209, 0.24614252150058746, -0.07165750116109848, -0.4766027331352234, -0.07762264460325241, -0.05550093948841095, -0.0022868774831295013, -0.03606069087982178, -0.2989495098590851, -0.22007174789905548, -0.29700809717178345, -0.12197668850421906, -0.3595549464225769, -0.15417686104774475, 0.06091412901878357, 0.08911895751953125, 0.05580596253275871, 0.14045406877994537, 0.1550655961036682, -0.3061160445213318, 0.008876796811819077, 0.00001934729516506195, 0.1075969859957695, 0.03720732405781746, -0.2144528329372406, -0.22149476408958435, -0.25093385577201843, -0.29100745916366577, 0.323239266872406, 0.04779542610049248, -0.025101207196712494, -0.10718444734811783, -0.10485954582691193, 0.08477163314819336, -0.05435026064515114, 0.6767697930335999, -0.19645170867443085, 0.07104091346263885, 0.49119284749031067, 0.21054917573928833, -0.4320894777774811, 0.02492218092083931, -0.4132971167564392, 0.11259092390537262, 0.16018088161945343, 0.324083536863327, -0.395109623670578, -0.05424528196454048, 0.2625243365764618, -0.035985272377729416, -0.05942189320921898, -0.26967015862464905, -0.23576542735099792, -0.2557885944843292, -0.10776626318693161, 0.19629599153995514, 0.03532670438289642, 0.4339834749698639, -0.26493266224861145, -0.1105707436800003, -0.23906151950359344, 0.04289550334215164, 0.18685203790664673, 0.25458094477653503, 0.2625075578689575, -0.16144348680973053, -0.15979836881160736, -0.17626383900642395, 0.05880199000239372, 0.2780003845691681, 0.2882099747657776, 0.04454127326607704, -0.4137675166130066, 0.015718111768364906, 0.05813918635249138, 0.2611907124519348, 0.04642535746097565, -0.1333332508802414, -0.030797898769378662, -0.040329042822122574, 0.0974310040473938, 0.14356456696987152, 0.21770507097244263, 0.38608473539352417, 0.059596434235572815, -0.33463993668556213, -0.24376395344734192, 0.3455173075199127, 0.1484423726797104, 0.05053657293319702, 0.017008252441883087, 0.27812591195106506, -0.21170777082443237, 0.2881135940551758, -0.020154252648353577, 1.011183500289917, 0.0690527856349945, -0.059792857617139816, 0.5816107988357544, -0.09528431296348572, 0.5560987591743469, -0.06480246782302856, 0.18613260984420776, -0.2962428033351898, -0.3566817045211792, -0.03657221049070358, -0.1678650677204132, 0.2394377887248993, 0.06466707587242126, -0.6077869534492493, 0.2306775450706482, -0.28656983375549316, 0.141325905919075, 0.03720046579837799, -0.03134070709347725, -0.00692707858979702, -0.024181440472602844, -0.3856898546218872, 0.21182125806808472, -0.12286962568759918, 0.10142731666564941, -0.08456432819366455, -0.10637854784727097, -0.12337970733642578, -0.15914353728294373, -0.1048099547624588, 0.04311209172010422, -0.5134389400482178, -0.15310369431972504, 0.052042827010154724, -0.17723128199577332, -0.07291417568922043, 0.18729081749916077, 0.04021747410297394, 0.07752391695976257, -0.18711654841899872, 0.17002034187316895, 0.19995146989822388, 0.0999656617641449, -0.06926260888576508, -0.03328834846615791, 0.4308823347091675, -0.09169299900531769, -0.39867281913757324, 0.12750238180160522, -0.047068335115909576, 0.13558673858642578, 0.3548530340194702, 0.018290378153324127, -0.020784370601177216, -0.45151400566101074, -0.0984330028295517, -0.14358492195606232, 0.2059473991394043, -0.30686116218566895, 0.2612113952636719, -0.007233418524265289, -0.1372920125722885, 0.010840140283107758, -0.03577353432774544, -0.01851220428943634, -0.039877887815237045, 0.3423735797405243, 0.31809312105178833, 0.4484289288520813, 0.24653075635433197, 0.2419537454843521, -0.12122237682342529, -0.32009151577949524, 0.15322020649909973, 0.23080146312713623, -0.422405481338501, 0.24188482761383057, 0.22600582242012024, -0.1214660257101059, -0.053420256823301315, 0.4723210632801056, 0.08754128217697144, 0.16892167925834656, -0.12573941051959991, -0.1489037275314331, -0.2344326227903366, 0.3241613209247589, 0.10228291153907776, 0.004079852253198624, 0.11474638432264328, 0.4286706745624542, 0.23789992928504944, 0.017731422558426857, -0.44404929876327515, -0.028685057535767555, -0.4677809476852417, 0.07052692770957947, -0.02606964483857155, -0.2602924704551697, 0.20040841400623322, -0.003848649561405182, 0.26069650053977966, 0.1246233806014061, -0.075715072453022, -0.3621690273284912, -0.16297009587287903, 0.09021417051553726, -0.002169804647564888, 0.17059792578220367, 0.1876296103000641, 0.03364841267466545, -0.2303365170955658, -0.12813951075077057, 0.09217657148838043, -0.05532965809106827, -0.1467013955116272, 0.2181796431541443, 0.20544491708278656, 0.322844535112381, 0.017990756779909134, -0.01367117092013359, 0.015237905085086823, -0.0924626886844635, -0.034831155091524124, -0.005064025521278381, 0.12457151710987091, -0.029216963797807693, -0.0914052352309227, -0.0829484835267067, 0.19211772084236145, 0.1356503665447235, 0.020348813384771347, -0.257823646068573, -0.2741314768791199, -0.11455660313367844, 0.2158730924129486, 0.12111623585224152, -0.1575215458869934, 0.17650745809078217, -0.01093192957341671, 0.35138481855392456, -0.3763161301612854, -0.01025407761335373, 0.23012305796146393, -0.0349603109061718, 0.22698301076889038, 0.046301014721393585, -0.28560397028923035, 0.3148674964904785, -0.20312558114528656, 0.09068064391613007, 0.22804632782936096, -0.04434730112552643, 0.10810981690883636, 0.2768344283103943, -0.16949841380119324, -0.033468205481767654, 0.41233760118484497, 0.07038664072751999, 0.14827676117420197, 0.02117083966732025, 0.012819163501262665, 0.14633773267269135, -0.02216695249080658, 0.08586709201335907, 0.30909794569015503, -0.32541030645370483, 0.03230229765176773, 0.20969772338867188, 0.027855463325977325, -0.07970111817121506, -0.26090213656425476, 0.5160673260688782, -0.26350146532058716, -0.1445789635181427, -0.33443865180015564, 0.13850870728492737, -0.20031628012657166, 0.036984365433454514, -0.20154492557048798, -0.11117805540561676, -0.1869925558567047, -0.306619793176651, 0.025955762714147568, -0.09096798300743103, 0.24166034162044525, -0.04935783892869949, -0.028936274349689484, -0.2844852805137634, -0.052366696298122406, 0.35965269804000854, 0.22716054320335388, -0.2038591206073761, 0.10305506736040115, 0.024704203009605408, 0.1235099583864212, -0.18643273413181305, 0.5136398673057556, 0.42702075839042664, 0.28573399782180786, -0.15438489615917206, -0.09367690235376358, 0.03454864025115967, -0.309097021818161, 0.07066014409065247, 0.09696521610021591, 0.29194459319114685, 0.23879244923591614, 0.06440398097038269, 0.2788919508457184, -0.2833414077758789, 0.17622801661491394, -0.06019343063235283, 0.07524441182613373, -0.3707781434059143, 0.33053115010261536, -0.19432775676250458, -0.1633218377828598, -0.16632121801376343, -0.008691199123859406, -0.48057126998901367, 0.1700417846441269, 0.3345668613910675, 0.15055346488952637, 0.18274575471878052, -0.18984472751617432, 0.14262588322162628, -0.20634083449840546, 0.22429664433002472, -0.04338232800364494, 0.333989679813385, -0.2799006700515747, 0.11789418756961823, -0.43625518679618835, 0.39369314908981323, -0.04484834894537926, -0.04896436259150505, 0.07563269138336182, -0.08401591330766678, -0.16167297959327698, 0.03494853153824806, -0.07442472875118256, 0.2408672571182251, 0.12785246968269348, 0.0993812084197998, -0.6071123480796814, -0.1996472179889679, -0.11191008985042572, -0.23076939582824707, 0.13617026805877686, -0.24145054817199707, -0.047243040055036545, -0.1864432543516159, 0.1147017553448677, 0.042796406894922256, -0.30284082889556885, 0.19486819207668304, 0.2954317033290863, 0.606733500957489, 0.15761716663837433, 0.40076199173927307, -0.013851089403033257, 0.09977011382579803, 0.06332071125507355, -0.27006086707115173, -0.15275228023529053, 0.19264139235019684, 0.13509385287761688, 0.3505530059337616, 0.075768381357193, 0.23201751708984375, -0.06884173303842545, 0.07770351320505142, 0.05885884910821915, -0.12438321858644485, -0.12214946746826172, 0.1636989563703537, -0.11731530725955963, -0.22617462277412415, -0.25561875104904175, 0.028279166668653488, 0.075282022356987, 0.04704507440328598, -0.08772239089012146, -0.2791989743709564, 0.6700649261474609, -0.3341491222381592, -0.2696869671344757, -0.05091935023665428, 0.20019596815109253, 0.22844421863555908, -0.24099457263946533, -0.6293927431106567, -0.008995987474918365, 0.42049482464790344, 0.022011809051036835, -0.2528339624404907, 0.213653102517128, -0.06413586437702179, 0.15530507266521454, -0.06347072124481201, 0.02118663117289543, -0.11201656609773636, -0.056375447660684586, 0.04750334098935127, -0.23333266377449036 ]
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.01708628237247467, -0.32405197620391846, 0.06212107464671135, 0.2103671282529831, 0.384010910987854, -0.015518847852945328, 0.41579392552375793, 0.17859183251857758, 0.1879400908946991, 0.31161776185035706, -0.2562711834907532, 0.2617369294166565, -0.09007842093706131, 0.1555979996919632, 0.13464654982089996, -0.17832374572753906, -0.17807039618492126, 0.23624299466609955, -0.14293788373470306, -0.06104150414466858, -0.3072661757469177, 0.01602168194949627, -0.2765932083129883, 0.15632760524749756, -0.3710365891456604, -0.22322943806648254, -0.07274962961673737, -0.033786043524742126, -0.35167059302330017, -0.3736094534397125, 0.35027000308036804, -0.014940448105335236, 0.10775104910135269, 0.39366966485977173, -0.00010927302355412394, 0.03974916785955429, 0.5531895160675049, 0.091672383248806, -0.1215190589427948, -0.48644542694091797, 0.0033006779849529266, -0.1535927653312683, 0.264088898897171, -0.2971884608268738, -0.24914351105690002, -0.16786912083625793, -0.0046057868748903275, 0.15467198193073273, 0.3977605700492859, 0.5068286657333374, 0.27359163761138916, 0.5179873704910278, 0.1557459831237793, -0.30572161078453064, 0.2476203739643097, 0.12956249713897705, -0.08303344249725342, 0.3645506501197815, 0.08680261671543121, 0.032483071088790894, 0.24765902757644653, 0.22567133605480194, -0.2615951597690582, -0.10203284025192261, 0.2481999695301056, 0.07144886255264282, 0.05658212676644325, -0.3359339237213135, -0.08744137734174728, 0.3458365499973297, 0.2176501452922821, -0.4307980537414551, -0.274010568857193, -0.015671774744987488, 0.15893308818340302, -0.27787378430366516, 0.21526408195495605, 0.11177635192871094, -0.06142984330654144, 0.26101094484329224, -0.04775962606072426, 0.29164376854896545, -0.2724871039390564, 0.22647346556186676, 0.03322960436344147, 0.09982988983392715, -0.09743501245975494, 0.08648303896188736, 0.3184734582901001, -0.19785989820957184, -0.07124776393175125, -0.07448429614305496, 0.07654031366109848, 0.19978779554367065, -0.26257261633872986, -0.1569991111755371, 0.04121483117341995, -0.05275554209947586, 0.24789834022521973, -0.06231236457824707, 0.010697536170482635, -0.07843728363513947, 0.08663448691368103, 0.39452314376831055, 0.1457943171262741, 0.3695582449436188, 0.2746928334236145, 0.059643037617206573, 0.14712592959403992, 0.26839011907577515, -0.1179923564195633, 0.05507409945130348, -0.181290403008461, -0.050576239824295044, 0.2737025022506714, 0.10107783228158951, 0.41571152210235596, -0.01238512247800827, -0.3835289478302002, -0.03406133875250816, -0.24938908219337463, 0.21416547894477844, 0.21702226996421814, 0.4983268678188324, -0.10985293239355087, -0.006582982838153839, 0.19207660853862762, 0.1782711297273636, -0.12116024643182755, -0.1304858922958374, -0.23571842908859253, 0.342230886220932, -0.32151105999946594, -0.06173205375671387, 0.22659559547901154, 0.030896736308932304, 0.003927861340343952, -0.004729202948510647, 0.06826050579547882, -0.041804030537605286, -0.01869439147412777, -0.3479032814502716, -0.08214845508337021, 0.25354859232902527, 0.03234254941344261, -0.06852482259273529, 0.22640036046504974, -0.41004377603530884, -0.09811759740114212, 0.130978524684906, -0.07463570684194565, -0.17959871888160706, -0.2304225116968155, 0.2343911975622177, -0.25608789920806885, -0.021302908658981323, -0.09343435615301132, 0.02125377021729946, 0.1447509527206421, 0.10136622190475464, 0.12724211812019348, -0.019077736884355545, 0.017888519912958145, -0.2180710732936859, 0.13807284832000732, 0.36549103260040283, -0.10019108653068542, -0.32056596875190735, 0.032153256237506866, -0.002530410885810852, 0.1171862855553627, -0.017370570451021194, 0.0019338828278705478, 0.24217092990875244, -0.03054751828312874, 0.1668866127729416, 0.4985630214214325, -0.6241475939750671, -0.3442803621292114, -0.2747381329536438, -0.0806373655796051, -0.016146380454301834, 0.03932928666472435, -0.2286878526210785, 0.19146479666233063, 0.2106938511133194, 0.44530022144317627, 0.15278011560440063, 0.15220950543880463, 0.016763901337981224, -0.25982698798179626, -0.28412118554115295, -0.14923007786273956, 0.12166409194469452, 0.05722265690565109, -0.06118270009756088, -0.12467845529317856, -0.33158281445503235, 0.04399597644805908, -0.1464242786169052, -0.09477894753217697, -0.028535284101963043, 0.48025208711624146, -0.026793837547302246, -0.03346126526594162, -0.5103316903114319, -0.31101158261299133, 0.14441069960594177, -0.08274385333061218, 0.4963114857673645, -0.2935876250267029, -0.2401021122932434, -0.3797985315322876, 0.021678538993000984, -0.026031386107206345, -0.10736505687236786, 0.26085299253463745, -0.029300637543201447, -0.07938916981220245, 0.20398564636707306, -0.14815635979175568, 0.3061813414096832, -0.06296731531620026, 0.3361930847167969, -0.08991201221942902, 0.25207826495170593, -0.05190929025411606, -0.45358985662460327, 0.01781199499964714, 0.3152446746826172, 0.40748485922813416, 0.018430007621645927, 0.04007427394390106, 0.2059648036956787, 0.12007349729537964, -0.25166046619415283, -0.3879704773426056, -0.20597980916500092, 0.09089544415473938, -0.20526893436908722, -0.12533144652843475, -0.11939758062362671, 0.187557652592659, 0.04323790967464447, 0.08160288631916046, 0.4845340847969055, 0.000288352370262146, 0.1447356641292572, -0.0010888203978538513, 0.2192259132862091, 0.04642466455698013, -0.22235123813152313, -0.19437026977539062, -0.11165433377027512, 0.1098375916481018, 0.03022417239844799, 0.24807004630565643, 0.017976101487874985, -0.14541636407375336, 0.016800105571746826, 0.6618241667747498, 0.042025376111269, 0.2582581639289856, -0.1182069405913353, -0.3660911023616791, 0.2513485252857208, 0.17394259572029114, 0.08760547637939453, 0.36528491973876953, 0.25241443514823914, -0.29564255475997925, 0.0845421701669693, -0.16359323263168335, 0.050556838512420654, 0.09764911234378815, -0.06796048581600189, 0.3684992790222168, -0.09125309437513351, 0.3075384199619293, 0.01853281818330288, -0.30900633335113525, 0.07445824146270752, -0.07930711656808853, 0.10628724843263626, -0.3757317066192627, 0.11504992097616196, -0.25695163011550903, -0.14785145223140717, -0.008882236666977406, -0.13337348401546478, 0.026657678186893463, -0.1974041759967804, -0.059868112206459045, 0.3584897518157959, 0.08938464522361755, 0.28264081478118896, 0.2069198340177536, 0.01923549175262451, -0.059061337262392044, -0.10304851084947586, -0.15513138473033905, -0.10861780494451523, -0.11700134724378586, 0.08233886957168579, 0.058865420520305634, 0.19155104458332062, 0.3331587314605713, -0.3143274486064911, 0.09096051007509232, 0.1370227336883545, -0.3026360869407654, 0.08582183718681335, -0.1740439236164093, 0.28882163763046265, 0.26844877004623413, 0.15894432365894318, -0.17590487003326416, -0.062461379915475845, 0.4340492784976959, -0.3824959993362427, -0.1924285888671875, 0.2827725112438202, -0.14143623411655426, -0.05508405342698097, -0.2623378038406372, -0.2640995383262634, -0.5197221040725708, -0.29463163018226624, 0.2550329864025116, 0.022699709981679916, 0.07175662368535995, 0.3472681939601898, 0.23404903709888458, 0.4523182511329651, -0.38342270255088806, -0.022939080372452736, -0.14411957561969757, 0.041289251297712326, 0.2728777229785919, -0.0820256918668747, -0.4259679615497589, -0.007768452167510986, -0.08550987392663956, 0.2539593577384949, -0.1286991834640503, -0.05689482018351555, -0.4479479193687439, -0.12663067877292633, 0.32382479310035706, 0.00861452892422676, -0.15314966440200806, 0.6029995679855347, 0.01564067043364048, -0.10780996829271317, -0.15833398699760437, -0.17673848569393158, 0.1045931726694107, 0.13827544450759888, 0.005655393004417419, -0.07007048279047012, 0.24532842636108398, -0.026514573022723198, 0.3515644669532776, -0.004992885515093803, -0.20518942177295685, 0.3471210300922394, -0.3044428825378418, 0.3146960437297821, -0.12184072285890579, -0.5708716511726379, -0.07277794927358627, -0.026523679494857788, 0.052067674696445465, -0.1330881267786026, -0.2462662160396576, -0.0897766724228859, -0.32857459783554077, -0.1738547384738922, -0.4415079355239868, -0.23245418071746826, 0.05816251039505005, 0.1306096613407135, -0.08276904374361038, 0.09588618576526642, 0.07748597115278244, -0.356807142496109, 0.05631086975336075, -0.013216390274465084, 0.21224074065685272, 0.035614013671875, -0.18780629336833954, -0.4234539568424225, -0.2692607641220093, -0.35538944602012634, 0.38304078578948975, 0.046841252595186234, 0.011089010164141655, -0.05060052499175072, -0.10247902572154999, 0.14107687771320343, 0.00763495359569788, 0.6806131601333618, -0.03012959472835064, -0.00559026375412941, 0.41600024700164795, 0.14175330102443695, -0.6230166554450989, 0.0706065446138382, -0.3021712005138397, 0.05319179594516754, 0.12276609241962433, 0.3985322415828705, -0.4662342667579651, -0.15596941113471985, 0.3363064229488373, -0.037249185144901276, -0.03282315656542778, -0.2179408073425293, -0.28828316926956177, -0.3978615403175354, -0.21368713676929474, 0.12518538534641266, 0.14489012956619263, 0.38599368929862976, -0.22502148151397705, -0.10911618173122406, -0.12406708300113678, 0.09480024874210358, 0.03402159363031387, 0.27242717146873474, 0.23626771569252014, -0.2280847132205963, -0.09541290998458862, 0.011318746954202652, 0.08381710946559906, 0.2514638304710388, 0.26858165860176086, -0.04332013800740242, -0.5514883995056152, -0.15143492817878723, 0.10565228760242462, 0.216163769364357, 0.07860031723976135, -0.13576173782348633, 0.007971666753292084, -0.09118697047233582, 0.13399341702461243, 0.21577554941177368, 0.1181633472442627, 0.4902131259441376, 0.16989220678806305, -0.2991672456264496, -0.1917191445827484, 0.45214951038360596, 0.12906335294246674, 0.044720277190208435, 0.1472736895084381, 0.4835736155509949, -0.1690777838230133, 0.27797067165374756, -0.1196073368191719, 1.0848114490509033, -0.0030830800533294678, -0.005264569073915482, 0.5609254240989685, -0.10633422434329987, 0.6737450957298279, 0.09001803398132324, 0.2337670922279358, -0.3639943301677704, -0.194011390209198, -0.01781677082180977, -0.1334923505783081, 0.2924991548061371, -0.06509676575660706, -0.5087831020355225, 0.17536711692810059, -0.23621556162834167, 0.16399787366390228, 0.04378156363964081, 0.047025129199028015, -0.11160068958997726, -0.16344191133975983, -0.31911182403564453, 0.1553264856338501, -0.01899576187133789, 0.2381702959537506, -0.029342681169509888, -0.10321705788373947, -0.2884882986545563, -0.25003743171691895, -0.1799219250679016, 0.048641033470630646, -0.48934975266456604, -0.26446348428726196, 0.20289549231529236, -0.17350131273269653, -0.2620542049407959, 0.03505624458193779, 0.1736059933900833, 0.027179289609193802, -0.2295169234275818, 0.08504226058721542, -0.01163075864315033, -0.005728433839976788, -0.061228446662425995, -0.12011627107858658, 0.4516772925853729, -0.18062326312065125, -0.5559991002082825, -0.0021979734301567078, 0.02834218367934227, 0.11894997954368591, 0.3397737741470337, 0.05339403823018074, -0.07207745313644409, -0.3765556216239929, -0.19563016295433044, -0.08635665476322174, 0.2171401083469391, -0.2849392592906952, 0.2158721685409546, -0.07561850547790527, -0.17487087845802307, -0.0020159631967544556, -0.02169838920235634, -0.054683953523635864, 0.018115989863872528, 0.39953550696372986, 0.25003692507743835, 0.35637205839157104, 0.25368767976760864, 0.14535193145275116, -0.12770427763462067, -0.27880924940109253, 0.045451484620571136, 0.26444411277770996, -0.5634875893592834, 0.14802776277065277, 0.2177889198064804, -0.1283232718706131, -0.07589065283536911, 0.4255406856536865, 0.03409712389111519, 0.01998833194375038, -0.10816048085689545, -0.17111049592494965, -0.24745552241802216, 0.4519796371459961, -0.05328802391886711, -0.0533892847597599, 0.2934170365333557, 0.5443691611289978, 0.22287161648273468, 0.007744336500763893, -0.4028412699699402, 0.025847671553492546, -0.3943948745727539, 0.051604826003313065, 0.05062427744269371, -0.2735675871372223, 0.2741539776325226, -0.06078723073005676, 0.22359426319599152, 0.20089833438396454, -0.06483786553144455, -0.3292418420314789, -0.15746058523654938, 0.1020701453089714, 0.013246498070657253, 0.1558351069688797, 0.14049041271209717, 0.042923301458358765, -0.18654832243919373, -0.14363929629325867, 0.16466180980205536, -0.04848727211356163, -0.051967181265354156, 0.23716692626476288, 0.16914419829845428, 0.31186455488204956, 0.04954618215560913, 0.09092985093593597, -0.002873949706554413, -0.129404217004776, -0.08178327977657318, 0.017882106825709343, 0.009517818689346313, 0.02641770988702774, -0.05654894933104515, -0.10739507526159286, 0.12409240007400513, 0.17480361461639404, 0.09074021875858307, -0.2451833337545395, -0.35292136669158936, -0.2803748548030853, 0.18171043694019318, 0.15338072180747986, -0.1543811559677124, 0.17046576738357544, -0.0670950636267662, 0.294854998588562, -0.42105498909950256, 0.023962441831827164, 0.21941342949867249, -0.006779818795621395, 0.17917434871196747, 0.1512833833694458, -0.2732401192188263, 0.20631131529808044, -0.047162964940071106, 0.028358466923236847, 0.4666558504104614, 0.018106907606124878, 0.08895018696784973, 0.26311182975769043, -0.13171108067035675, -0.034426067024469376, 0.48942360281944275, 0.15612608194351196, 0.2242720127105713, -0.0069709718227386475, -0.08840236812829971, 0.2236964851617813, -0.12400934845209122, 0.074922114610672, 0.2926059663295746, -0.21683266758918762, -0.0012598931789398193, 0.1986997127532959, 0.09429338574409485, -0.12752792239189148, -0.3349519371986389, 0.5498443841934204, -0.23958905041217804, -0.21077072620391846, -0.17772124707698822, 0.19504539668560028, -0.20974469184875488, -0.0012303674593567848, -0.1400182992219925, -0.08104899525642395, -0.12686076760292053, -0.41162243485450745, 0.05615319684147835, -0.15146224200725555, 0.4862959384918213, -0.1211121678352356, -0.0871196836233139, -0.28421083092689514, -0.2175370752811432, 0.408748984336853, 0.3050462305545807, -0.154293030500412, 0.18808384239673615, 0.07063904404640198, 0.17597806453704834, -0.2439066469669342, 0.5857951045036316, 0.42053014039993286, 0.20320521295070648, -0.0877046138048172, -0.0394122414290905, -0.09871871769428253, -0.3073500394821167, 0.07585033029317856, 0.16010349988937378, 0.343722403049469, 0.22101077437400818, 0.0020970795303583145, 0.253330796957016, -0.24432629346847534, 0.2270525097846985, -0.10374115407466888, 0.04407113045454025, -0.40426039695739746, 0.3363023102283478, -0.3260604739189148, -0.24991512298583984, -0.32512563467025757, 0.007001861929893494, -0.4086143374443054, 0.17099213600158691, 0.340310275554657, 0.004055315628647804, 0.15312549471855164, -0.31247851252555847, 0.10259965062141418, -0.12374916672706604, 0.28728023171424866, -0.04214289411902428, 0.29925981163978577, -0.18125095963478088, 0.07317858934402466, -0.4249606430530548, 0.3959842026233673, -0.12529262900352478, -0.11226217448711395, 0.08735139667987823, -0.16188347339630127, -0.14888852834701538, 0.03998520225286484, 0.0557342991232872, 0.4386810064315796, 0.05670350044965744, -0.05905241519212723, -0.5389715433120728, -0.15329162776470184, -0.1344294250011444, -0.22735527157783508, 0.20098920166492462, -0.25202059745788574, 0.08007780462503433, -0.1442420929670334, 0.06376688182353973, 0.029505494982004166, -0.09635938704013824, 0.14421257376670837, 0.06708269566297531, 0.621078610420227, 0.18810415267944336, 0.3392416536808014, -0.04305382817983627, -0.06899558007717133, 0.024992849677801132, -0.17406725883483887, -0.24063585698604584, 0.2803034782409668, 0.21602828800678253, 0.2756667137145996, 0.06257041543722153, 0.08705426007509232, -0.04754485934972763, 0.10858725756406784, 0.08250273764133453, -0.22646905481815338, -0.06166669726371765, 0.1197943165898323, -0.020258262753486633, -0.23730504512786865, -0.19963446259498596, 0.061070896685123444, 0.005293603986501694, 0.07696890085935593, -0.22434523701667786, -0.24810081720352173, 0.7152532339096069, -0.2563152611255646, -0.26379987597465515, 0.055392973124980927, 0.2930927872657776, 0.11650402843952179, -0.4328463077545166, -0.7834481596946716, 0.016644984483718872, 0.2939421236515045, 0.08392642438411713, -0.2240290343761444, 0.29482531547546387, 0.010084797628223896, 0.04821798577904701, -0.07461735606193542, 0.1352369338274002, 0.04077073931694031, -0.016858678311109543, 0.07124687731266022, -0.20073994994163513 ]
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.2277718484401703, -0.3193499445915222, 0.0008595176041126251, 0.3918522596359253, 0.3677237033843994, 0.055745311081409454, 0.3176336884498596, 0.1545289009809494, 0.17334425449371338, 0.29602813720703125, -0.14268603920936584, 0.4552958011627197, -0.07765693217515945, 0.229843869805336, 0.04933346435427666, -0.16517256200313568, -0.210503488779068, 0.26113390922546387, -0.1191706657409668, 0.026228152215480804, -0.50922030210495, -0.07414782047271729, -0.1640850007534027, 0.1349928081035614, -0.23775452375411987, -0.27198076248168945, -0.12409454584121704, 0.040825605392456055, -0.19214272499084473, -0.28385016322135925, 0.3645714521408081, -0.0801880955696106, 0.21226215362548828, 0.5988916158676147, -0.00010084889800054953, -0.15145418047904968, 0.43520587682724, 0.04760051518678665, -0.12549138069152832, -0.35230422019958496, -0.29466375708580017, -0.38472017645835876, 0.1898573338985443, -0.3827027380466461, -0.07430331408977509, -0.008201963268220425, 0.028609005734324455, -0.24263760447502136, 0.34812474250793457, 0.348452091217041, 0.3506995141506195, 0.41590359807014465, 0.0833580493927002, -0.2823812663555145, 0.18847742676734924, 0.07757247239351273, -0.10485318303108215, 0.2966810166835785, 0.06237315386533737, -0.016479341313242912, 0.31453362107276917, 0.1602042317390442, -0.283014178276062, -0.05429883673787117, 0.2551213204860687, 0.0645875483751297, -0.005323931574821472, -0.35592469573020935, 0.031036680564284325, 0.3066703677177429, 0.41957125067710876, -0.39462482929229736, -0.18722042441368103, 0.06077723950147629, 0.1299085021018982, -0.22349785268306732, 0.1539727747440338, -0.01155901700258255, -0.006477172486484051, 0.06588667631149292, -0.004036402329802513, 0.15579228103160858, -0.23680473864078522, 0.21838347613811493, -0.16642388701438904, 0.09019754827022552, -0.212100088596344, 0.10706394910812378, 0.0670977309346199, -0.19923928380012512, 0.04522939398884773, -0.18398606777191162, 0.03513520210981369, 0.1096043586730957, -0.22112680971622467, -0.14527907967567444, 0.12990142405033112, 0.11116825044155121, 0.1270105540752411, -0.24557749927043915, 0.11687162518501282, -0.04831164330244064, -0.023695828393101692, 0.4071715474128723, 0.23989389836788177, 0.2160651683807373, 0.19707217812538147, 0.14963360130786896, 0.21602918207645416, 0.044134337455034256, -0.1853792518377304, -0.05197423696517944, -0.12557633221149445, -0.10145647823810577, 0.28146231174468994, 0.19620627164840698, 0.5696894526481628, -0.06337687373161316, -0.4451119601726532, -0.036989107728004456, -0.20709004998207092, 0.0923670157790184, 0.25414082407951355, 0.37839174270629883, -0.18408650159835815, 0.1531810760498047, 0.21491806209087372, 0.06958378106355667, -0.14264097809791565, -0.23278245329856873, -0.24026831984519958, 0.3336760997772217, -0.2726964056491852, -0.23244863748550415, 0.07322372496128082, 0.0800086185336113, -0.10165180265903473, 0.05153478682041168, -0.04660598933696747, 0.07362615317106247, 0.10525674372911453, -0.38297390937805176, -0.17160028219223022, 0.16135075688362122, 0.13423681259155273, -0.010921765118837357, 0.35754910111427307, -0.4132310152053833, -0.14554259181022644, 0.1080869734287262, -0.3179212510585785, -0.09275365620851517, -0.09039197117090225, 0.3212559223175049, -0.23628990352153778, -0.07920948415994644, -0.1951911747455597, -0.004734955728054047, 0.07721681892871857, -0.20212042331695557, 0.024387307465076447, -0.16129209101200104, 0.009970594197511673, -0.41247525811195374, 0.039672739803791046, 0.5434513092041016, -0.37022554874420166, -0.1319316029548645, -0.35600006580352783, -0.05267147347331047, 0.3650828003883362, -0.16172432899475098, 0.08691868931055069, 0.2049262821674347, -0.16195560991764069, -0.07837902754545212, 0.5953564047813416, -0.3626011312007904, -0.19426241517066956, 0.0556296668946743, -0.07925181090831757, -0.0580405555665493, -0.0674479529261589, -0.014070514589548111, 0.0950176790356636, 0.11393128335475922, 0.40954044461250305, 0.22115495800971985, -0.06333053857088089, -0.02786988951265812, -0.19504033029079437, -0.1733904480934143, 0.16490283608436584, 0.0918375700712204, 0.14367228746414185, 0.1626254916191101, 0.06308348476886749, -0.20378504693508148, 0.018494322896003723, -0.03979218378663063, -0.09291728585958481, -0.0652417540550232, 0.6565252542495728, -0.08722399175167084, -0.07887386530637741, -0.5945643782615662, -0.3253450393676758, 0.16847902536392212, -0.06773652136325836, 0.28072312474250793, -0.1447332352399826, -0.170768141746521, -0.3664010763168335, 0.06777632236480713, -0.04982932284474373, 0.04808853194117546, 0.3426542580127716, 0.1271563172340393, -0.19987227022647858, 0.04511827602982521, -0.1443464607000351, 0.17791979014873505, -0.14985968172550201, 0.10199560225009918, -0.005735162645578384, 0.30328312516212463, -0.01055816374719143, -0.35509371757507324, 0.043721042573451996, 0.23754405975341797, 0.5392077565193176, 0.030110839754343033, -0.07144986838102341, 0.29617175459861755, 0.08397285640239716, -0.1378149539232254, -0.1490660309791565, -0.0828540176153183, 0.11919111758470535, -0.26151004433631897, 0.07613322138786316, 0.11351042985916138, 0.3413477838039398, -0.08067619055509567, 0.13791558146476746, 0.5502914786338806, 0.07054296135902405, 0.21825042366981506, -0.04257974401116371, 0.23599183559417725, -0.04587533697485924, -0.04047554358839989, -0.09132026135921478, -0.13912293314933777, 0.1310136765241623, 0.0969332754611969, 0.17839546501636505, -0.06409034878015518, -0.11669488251209259, 0.06287819147109985, 0.5675641894340515, 0.09858556091785431, 0.38464897871017456, -0.0710383728146553, -0.30022668838500977, 0.15484502911567688, 0.08901764452457428, 0.28227975964546204, 0.4458233118057251, 0.30823707580566406, -0.1348172128200531, 0.002844860777258873, -0.1054735779762268, 0.09092587232589722, 0.0695771798491478, -0.008273787796497345, 0.2112082690000534, -0.01839807629585266, 0.17825199663639069, 0.07994471490383148, -0.1778934895992279, -0.04522004351019859, -0.22354409098625183, 0.2644324004650116, -0.3588176965713501, 0.19164243340492249, -0.2675389051437378, -0.16936060786247253, 0.04168182238936424, -0.06624145805835724, -0.15838906168937683, -0.34399646520614624, -0.23224125802516937, 0.025640135630965233, 0.11330527067184448, 0.13157406449317932, 0.11442559957504272, 0.1559714376926422, 0.008065460249781609, 0.0855935737490654, -0.1656486690044403, -0.10267562419176102, -0.12899354100227356, 0.16394037008285522, 0.12112602591514587, 0.21240746974945068, 0.48516812920570374, -0.2281130999326706, 0.24508200585842133, -0.026444679126143456, -0.22799474000930786, 0.06388485431671143, -0.0960037112236023, 0.49242839217185974, 0.4533849060535431, 0.17071035504341125, -0.08289062231779099, -0.016711005941033363, 0.319782555103302, -0.3656995892524719, 0.029731066897511482, 0.2110726535320282, -0.22123150527477264, 0.10772004723548889, -0.15860582888126373, -0.17414170503616333, -0.5684419870376587, -0.41110554337501526, 0.10356128215789795, 0.16801150143146515, 0.16570694744586945, 0.16241995990276337, 0.12474220991134644, 0.533413290977478, 0.13757432997226715, 0.19339758157730103, -0.19584603607654572, -0.04873540252447128, 0.28361061215400696, -0.12286002933979034, -0.2586844861507416, 0.1470843106508255, -0.10504305362701416, 0.2065625637769699, 0.015534186735749245, -0.17524220049381256, -0.5393424034118652, -0.17314578592777252, 0.15460394322872162, -0.08293271064758301, 0.09190081804990768, 0.26020246744155884, 0.11554048955440521, -0.13905414938926697, -0.2339770793914795, -0.1428651064634323, -0.1661492884159088, 0.25579747557640076, 0.06729342043399811, 0.040175627917051315, 0.33977580070495605, -0.17836736142635345, 0.1294480562210083, 0.006566962227225304, -0.23464880883693695, 0.3460310101509094, -0.2629455327987671, 0.3489428758621216, -0.12483157962560654, -0.5024334192276001, -0.14444005489349365, 0.005821779370307922, -0.09000451862812042, -0.04922987520694733, -0.16131582856178284, -0.16664008796215057, -0.3757924735546112, -0.12356770038604736, -0.44734466075897217, -0.17320892214775085, -0.0268352460116148, 0.21328189969062805, 0.019658681005239487, -0.01078115962445736, 0.12264081090688705, -0.4682357907295227, 0.04893440380692482, -0.0516463927924633, 0.23821350932121277, 0.01974768191576004, -0.2432863712310791, -0.24794083833694458, -0.3090175986289978, -0.18549388647079468, 0.44906139373779297, -0.16298964619636536, 0.03376514092087746, -0.17223946750164032, -0.02091478556394577, 0.0463821142911911, -0.017555933445692062, 0.5029234886169434, -0.34191375970840454, 0.07977235317230225, 0.4985000789165497, 0.1387622356414795, -0.38402825593948364, 0.17398442327976227, -0.4070262014865875, 0.3183741867542267, 0.15173256397247314, 0.28377702832221985, -0.316090852022171, -0.020611176267266273, 0.2402316778898239, 0.1300392597913742, -0.13098140060901642, -0.2083943635225296, -0.14482128620147705, -0.2342960238456726, -0.12783227860927582, 0.024501733481884003, -0.003717247396707535, 0.3006124794483185, -0.13161525130271912, -0.14784947037696838, -0.3589726984500885, 0.022607088088989258, 0.257515013217926, 0.20952466130256653, 0.29556673765182495, -0.09687677770853043, -0.07358470559120178, -0.06800224632024765, 0.08212673664093018, 0.19551213085651398, 0.27449437975883484, 0.01894601434469223, -0.391548216342926, 0.06302893161773682, 0.05650365725159645, 0.2511690855026245, 0.07812154293060303, -0.14416706562042236, -0.05357956141233444, -0.08006270974874496, 0.19437867403030396, -0.05235748365521431, 0.10010627657175064, 0.266603946685791, 0.09289402514696121, -0.4500442445278168, -0.34441426396369934, 0.3886467516422272, 0.19110381603240967, -0.046811122447252274, 0.25152474641799927, 0.25549954175949097, -0.2587038278579712, 0.2411356270313263, 0.05851262807846069, 1.0566792488098145, 0.04513070732355118, -0.17906366288661957, 0.4914725124835968, -0.125318244099617, 0.5688881278038025, 0.04279671609401703, 0.015406306833028793, -0.33789798617362976, -0.26562240719795227, -0.051065050065517426, -0.15461593866348267, 0.32529324293136597, -0.09901890158653259, -0.6059668064117432, 0.2722358703613281, -0.4187103509902954, -0.011303622275590897, -0.05161760747432709, -0.14507240056991577, -0.16157492995262146, -0.13057003915309906, -0.40061432123184204, 0.2759851813316345, -0.17678898572921753, 0.17052285373210907, -0.15395474433898926, -0.04894566908478737, 0.01745424047112465, -0.124323271214962, -0.10454324632883072, -0.006815904751420021, -0.43542400002479553, -0.20154738426208496, -0.11793270707130432, -0.16178500652313232, 0.017373662441968918, 0.14574415981769562, 0.17152100801467896, 0.13368281722068787, -0.23752763867378235, 0.09018599987030029, 0.06006661430001259, 0.06914383172988892, -0.08439327776432037, 0.03532779961824417, 0.24274766445159912, -0.019791973754763603, -0.3155241906642914, 0.17253953218460083, 0.03479142114520073, 0.14839738607406616, 0.36455851793289185, 0.09961346536874771, -0.08317841589450836, -0.3884953558444977, -0.14474403858184814, -0.06020013988018036, 0.2035057246685028, -0.2569366991519928, 0.2733273506164551, 0.12671291828155518, -0.07536594569683075, 0.10747837275266647, -0.0244915671646595, -0.09386901557445526, -0.05633183941245079, 0.27504679560661316, 0.3504137396812439, 0.2657759189605713, 0.0927114486694336, 0.20155228674411774, -0.21497243642807007, -0.3738940358161926, 0.26543575525283813, 0.07702429592609406, -0.22658506035804749, 0.23995009064674377, 0.1424400806427002, -0.04775670915842056, -0.07400843501091003, 0.32813748717308044, 0.10603387653827667, 0.04969404637813568, -0.15294666588306427, -0.28883981704711914, -0.27070462703704834, 0.2582182288169861, 0.12622499465942383, 0.07763281464576721, -0.028471799567341805, 0.20888672769069672, 0.19131729006767273, -0.049212902784347534, -0.4822714924812317, 0.060564540326595306, -0.38360875844955444, -0.08708041906356812, 0.05517645925283432, -0.0908130332827568, 0.1894109696149826, -0.0005158958956599236, 0.26105648279190063, 0.08882588148117065, -0.08104269951581955, -0.342424601316452, -0.1005697101354599, 0.09644260257482529, 0.0030657555907964706, 0.035218432545661926, 0.14856766164302826, -0.1207064688205719, -0.17071829736232758, -0.14116771519184113, 0.026607852429151535, 0.05938785523176193, -0.15879683196544647, 0.1150495707988739, 0.12432646751403809, 0.28314706683158875, 0.03529994934797287, 0.20566695928573608, 0.0769655853509903, -0.022946417331695557, -0.04354202374815941, 0.018797433003783226, 0.0036226327065378428, -0.06407933682203293, -0.030197037383913994, 0.027970094233751297, 0.14513073861598969, 0.140272855758667, 0.1255752146244049, -0.10085053741931915, -0.21022042632102966, 0.08784665912389755, 0.1658077985048294, 0.15596738457679749, -0.14198404550552368, 0.27704623341560364, -0.08683046698570251, 0.3664446771144867, -0.27441051602363586, 0.06080508232116699, 0.19101977348327637, -0.11251924932003021, 0.23193949460983276, 0.15145717561244965, -0.3416766822338104, 0.25747284293174744, -0.16059811413288116, -0.024174412712454796, 0.3763532340526581, -0.15950575470924377, 0.15429486334323883, 0.23224468529224396, -0.10367012023925781, -0.026934612542390823, 0.39104974269866943, 0.2250010073184967, 0.08933500945568085, 0.06976636499166489, -0.10523305088281631, 0.165909543633461, -0.035488471388816833, 0.022982768714427948, 0.23917579650878906, -0.4080979824066162, 0.2459842413663864, 0.25163570046424866, -0.029161065816879272, -0.06563066691160202, -0.16864478588104248, 0.27625003457069397, -0.5681777000427246, -0.10208317637443542, -0.3088054955005646, 0.011397315189242363, -0.17325705289840698, 0.1290307492017746, -0.12826360762119293, -0.14371035993099213, -0.2699713706970215, -0.3319651782512665, 0.055672794580459595, -0.17900869250297546, 0.19546140730381012, -0.137161985039711, 0.10487830638885498, -0.19526399672031403, -0.061172790825366974, 0.24572595953941345, 0.1937711387872696, -0.20824138820171356, -0.04024980217218399, -0.012575224041938782, 0.23608385026454926, -0.1725248247385025, 0.539488673210144, 0.3954850733280182, 0.3322073519229889, -0.1617976874113083, -0.027438785880804062, 0.07311812043190002, -0.2820373475551605, -0.06031574308872223, 0.04854890704154968, 0.034040216356515884, 0.24092423915863037, 0.06595496833324432, 0.3405122458934784, -0.3197939395904541, 0.09676817059516907, -0.06599994003772736, 0.01679222844541073, -0.30437925457954407, 0.4304425120353699, -0.30635640025138855, -0.13282689452171326, -0.11993420124053955, -0.11777279525995255, -0.5592747926712036, 0.060260411351919174, 0.4006088674068451, 0.06404086202383041, 0.10860796272754669, -0.11826305091381073, 0.15099646151065826, -0.1716412454843521, 0.11801645159721375, -0.0006220825016498566, 0.33708158135414124, -0.261521577835083, 0.07738439738750458, -0.48927444219589233, 0.3647937476634979, 0.027636326849460602, -0.19823771715164185, 0.03153759241104126, -0.1190948560833931, -0.14704203605651855, 0.009699970483779907, 0.04012324661016464, 0.2380816489458084, 0.2386038601398468, 0.006259050220251083, -0.5759986042976379, -0.34100282192230225, -0.10113738477230072, -0.21595989167690277, 0.10869075357913971, -0.2300252616405487, -0.044758010655641556, -0.15006300806999207, 0.18267115950584412, -0.04281110316514969, -0.25791487097740173, 0.08402964472770691, 0.11911371350288391, 0.6550237536430359, 0.1934749186038971, 0.39891478419303894, -0.12089642137289047, -0.022604163736104965, 0.15709485113620758, -0.3202399015426636, -0.08176839351654053, 0.2735506296157837, 0.12101346254348755, 0.200299471616745, 0.04154575616121292, 0.16314800083637238, -0.20303329825401306, 0.0024250459391623735, 0.027458161115646362, 0.058539096266031265, -0.14644327759742737, 0.30776283144950867, -0.16456042230129242, -0.23615382611751556, -0.22914445400238037, 0.10953580588102341, 0.06045714393258095, 0.14589931070804596, -0.019830845296382904, -0.11069877445697784, 0.6249814033508301, -0.16928602755069733, -0.25988492369651794, -0.05703891068696976, 0.3724467158317566, 0.00440746545791626, -0.12032794207334518, -0.4922206997871399, 0.0031389370560646057, 0.4646417796611786, -0.048813872039318085, -0.166385680437088, 0.20396579802036285, -0.19556474685668945, -0.01956283301115036, -0.03939564526081085, 0.11102139949798584, -0.018885862082242966, 0.0038259457796812057, 0.2579191327095032, -0.1187555342912674 ]
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.23339340090751648, -0.2121908962726593, 0.015184067189693451, 0.3540363907814026, 0.4313119053840637, 0.05654618889093399, 0.4275257885456085, 0.16688410937786102, 0.16195884346961975, 0.25438785552978516, -0.1491202712059021, 0.4838867485523224, -0.0326276533305645, 0.20084483921527863, 0.135114848613739, -0.1875777244567871, -0.17804878950119019, 0.1836342215538025, -0.20757392048835754, 0.055491335690021515, -0.5303387641906738, -0.06945797055959702, -0.13110029697418213, 0.11422081291675568, -0.16530460119247437, -0.24418237805366516, -0.15802030265331268, 0.098792165517807, -0.17958569526672363, -0.3501783311367035, 0.4064703583717346, -0.11642837524414062, 0.2196376621723175, 0.5620647072792053, -0.00010151932656299323, -0.04592005908489227, 0.4622379541397095, 0.0741889551281929, -0.18267619609832764, -0.31775736808776855, -0.29529669880867004, -0.3818570673465729, 0.17007118463516235, -0.3912408947944641, -0.04817013069987297, -0.03719941899180412, -0.003975512459874153, -0.2519207000732422, 0.2980596423149109, 0.37957942485809326, 0.3288024663925171, 0.4538753032684326, 0.09116257727146149, -0.24887649714946747, 0.1904577910900116, 0.09100259840488434, -0.06212663650512695, 0.3023786246776581, 0.0538952574133873, -0.05676642060279846, 0.21138761937618256, 0.13280855119228363, -0.3628794252872467, -0.0556364469230175, 0.27193155884742737, 0.0631391704082489, 0.03363542631268501, -0.38732922077178955, 0.07486747205257416, 0.30004528164863586, 0.4482407569885254, -0.38963037729263306, -0.24697449803352356, 0.023594394326210022, 0.12234897166490555, -0.1994515061378479, 0.21236369013786316, 0.05095161497592926, 0.0008063334971666336, 0.06162851303815842, 0.01964414119720459, 0.19357769191265106, -0.19301843643188477, 0.2497531622648239, -0.15549099445343018, 0.15984627604484558, -0.16727381944656372, 0.11822829395532608, 0.07085474580526352, -0.20339179039001465, 0.04979577288031578, -0.23699787259101868, 0.007765661925077438, 0.11362120509147644, -0.26226285099983215, -0.057803716510534286, 0.15958715975284576, 0.13281449675559998, 0.09247196465730667, -0.20312459766864777, 0.08403810113668442, -0.03857812285423279, 0.0005329009145498276, 0.3734630346298218, 0.2657100260257721, 0.2719014585018158, 0.2630655765533447, 0.10534984618425369, 0.3113083243370056, 0.09685088694095612, -0.10354022681713104, 0.017160343006253242, -0.17414052784442902, -0.19628868997097015, 0.2919628322124481, 0.27147188782691956, 0.5614542365074158, -0.007139172405004501, -0.4003364145755768, -0.11291177570819855, -0.1762721836566925, 0.04147770255804062, 0.19149397313594818, 0.34883931279182434, -0.1659967303276062, 0.19303947687149048, 0.20036321878433228, 0.12483405321836472, -0.21398060023784637, -0.2602619230747223, -0.23422960937023163, 0.2774368226528168, -0.2562619149684906, -0.1992109715938568, 0.11577452719211578, -0.012631680816411972, -0.07417213916778564, 0.01129921618849039, -0.17714574933052063, 0.1546332985162735, 0.1403738558292389, -0.32974523305892944, -0.19453194737434387, 0.18054039776325226, 0.0513514019548893, 0.046854183077812195, 0.33966439962387085, -0.37678271532058716, -0.14490914344787598, 0.08572858572006226, -0.2972792088985443, -0.14067348837852478, -0.1555439680814743, 0.31377261877059937, -0.20381104946136475, -0.05960201472043991, -0.22110319137573242, -0.02717721089720726, 0.129035085439682, -0.15920761227607727, 0.022494226694107056, -0.15681102871894836, -0.03439422696828842, -0.40686455368995667, 0.0919908955693245, 0.6147857308387756, -0.4071788489818573, -0.15554824471473694, -0.3654855191707611, -0.14992931485176086, 0.32068586349487305, -0.21920470893383026, 0.04204733669757843, 0.20534253120422363, -0.1884392946958542, -0.06704099476337433, 0.5587275624275208, -0.4109596014022827, -0.2658074200153351, 0.0713302418589592, -0.1287924349308014, -0.08685977756977081, 0.040651481598615646, -0.029997747391462326, 0.07223036140203476, 0.11370835453271866, 0.4100968837738037, 0.2751319408416748, 0.0011149868369102478, 0.007901536300778389, -0.18644532561302185, -0.23571233451366425, 0.19917725026607513, 0.06497573852539062, 0.1384473443031311, 0.10235533863306046, 0.14062167704105377, -0.19717955589294434, 0.024663452059030533, -0.048764508217573166, -0.03272470086812973, -0.057789504528045654, 0.5558087825775146, -0.04685477912425995, -0.04484361782670021, -0.5518353581428528, -0.422750860452652, 0.18975502252578735, -0.07995383441448212, 0.3541657328605652, -0.13350370526313782, -0.18728062510490417, -0.32646554708480835, 0.0583026260137558, -0.13896359503269196, -0.02006612718105316, 0.31765300035476685, 0.15457430481910706, -0.1688728779554367, 0.028868485242128372, -0.05646905675530434, 0.2119377851486206, -0.07563073188066483, 0.07361222803592682, -0.1429305374622345, 0.30801841616630554, -0.05763775855302811, -0.33398786187171936, 0.037767887115478516, 0.2538011074066162, 0.5117611885070801, -0.00044895801693201065, -0.06331995129585266, 0.3244800269603729, 0.08667442947626114, -0.04965357482433319, -0.16503456234931946, -0.09998010098934174, 0.15094158053398132, -0.22893744707107544, 0.0971662700176239, 0.08726450800895691, 0.3168583810329437, -0.0662045031785965, 0.09549486637115479, 0.47752320766448975, 0.08892522752285004, 0.28696417808532715, -0.03904813528060913, 0.24175605177879333, -0.04115904122591019, -0.028782986104488373, -0.08499179035425186, -0.17435312271118164, 0.07616786658763885, 0.1894838511943817, 0.2709216773509979, -0.03209216147661209, -0.037703804671764374, 0.09219486266374588, 0.5580123662948608, 0.04432151839137077, 0.353888601064682, -0.08044259995222092, -0.3818507194519043, 0.08841376006603241, 0.18686242401599884, 0.27039289474487305, 0.4774662256240845, 0.3163055181503296, -0.1177278608083725, -0.013574240729212761, -0.06873814761638641, 0.06897194683551788, 0.08990529179573059, 0.00006881356239318848, 0.21827518939971924, 0.0326351597905159, 0.2071538120508194, 0.06082828342914581, -0.21137204766273499, -0.052905261516571045, -0.17337599396705627, 0.22314688563346863, -0.40777450799942017, 0.11844193190336227, -0.32161885499954224, -0.15450593829154968, -0.0203859806060791, 0.0009128805249929428, -0.16656622290611267, -0.37006187438964844, -0.2923043370246887, 0.00907563790678978, 0.05861395224928856, 0.13553130626678467, 0.07294361293315887, 0.08480791747570038, 0.03038041852414608, 0.0038108322769403458, -0.1432914435863495, -0.15066464245319366, -0.19723692536354065, 0.1309269517660141, 0.17239996790885925, 0.20352250337600708, 0.4579102098941803, -0.17239373922348022, 0.14968305826187134, -0.06682399660348892, -0.2592744827270508, 0.06910696625709534, -0.03589179366827011, 0.5192124843597412, 0.4751572906970978, 0.1759488582611084, 0.037335507571697235, -0.07237166911363602, 0.39171403646469116, -0.3375651240348816, -0.036360692232847214, 0.28131771087646484, -0.22624921798706055, 0.1912376582622528, -0.16277433931827545, -0.270955353975296, -0.5850610733032227, -0.43146494030952454, 0.09004935622215271, 0.15819360315799713, 0.15741786360740662, 0.22907330095767975, 0.137630894780159, 0.498982697725296, 0.05544601008296013, 0.1736273169517517, -0.1574208289384842, -0.05170152336359024, 0.28692612051963806, -0.12826871871948242, -0.31886211037635803, 0.06270298361778259, -0.16105902194976807, 0.21237173676490784, 0.009506143629550934, -0.20918039977550507, -0.5421628952026367, -0.19377389550209045, 0.24889904260635376, -0.008854053914546967, 0.1406645029783249, 0.282086044549942, 0.16523782908916473, -0.17189592123031616, -0.20089766383171082, -0.14519578218460083, -0.09587506204843521, 0.26473838090896606, 0.003278173506259918, 0.1268490105867386, 0.3415830433368683, -0.16137096285820007, 0.15917529165744781, 0.02125241979956627, -0.19930830597877502, 0.41500040888786316, -0.26402905583381653, 0.3553530275821686, -0.15535303950309753, -0.5011111497879028, -0.13159997761249542, -0.034155264496803284, 0.011962439864873886, -0.025777369737625122, -0.14988496899604797, -0.1616341471672058, -0.3645356297492981, -0.19629189372062683, -0.4402097463607788, -0.194325789809227, -0.045190371572971344, 0.19967080652713776, 0.020420346409082413, -0.029307153075933456, 0.1270924210548401, -0.4808778762817383, 0.03260999917984009, 0.04268097132444382, 0.2218272089958191, -0.0436275377869606, -0.17677544057369232, -0.2460239976644516, -0.24011105298995972, -0.2647053301334381, 0.45466142892837524, -0.15862034261226654, 0.03671838343143463, -0.1481582224369049, -0.060426950454711914, 0.003013111650943756, -0.07133317738771439, 0.5519669055938721, -0.3454785943031311, 0.1679471880197525, 0.5127311944961548, 0.19823071360588074, -0.3972998559474945, 0.14483070373535156, -0.3467215299606323, 0.19787096977233887, 0.06584477424621582, 0.3129543960094452, -0.35857540369033813, -0.03750899061560631, 0.25157803297042847, 0.20191235840320587, -0.12929849326610565, -0.17405162751674652, -0.1447787880897522, -0.2503766417503357, -0.13170042634010315, -0.05848541110754013, -0.1246141791343689, 0.35948726534843445, -0.12653762102127075, -0.1583642065525055, -0.30935138463974, -0.030119631439447403, 0.17894874513149261, 0.1840762197971344, 0.2802935242652893, -0.07592836767435074, -0.0367618203163147, -0.046406231820583344, 0.07169938087463379, 0.231985941529274, 0.34425896406173706, -0.02394680678844452, -0.3605995774269104, 0.06677611917257309, 0.014034486375749111, 0.2356530725955963, 0.05852586030960083, -0.18437199294567108, -0.1035957857966423, -0.053385257720947266, 0.20020601153373718, -0.10604523122310638, 0.07498511672019958, 0.3068718910217285, 0.06406205147504807, -0.39821016788482666, -0.3787672817707062, 0.40757736563682556, 0.14827784895896912, -0.05587654188275337, 0.26464128494262695, 0.24937230348587036, -0.3079306185245514, 0.26366567611694336, 0.07650415599346161, 0.9972297549247742, 0.06343637406826019, -0.1427229642868042, 0.5291197896003723, -0.09924976527690887, 0.5708350539207458, 0.021664366126060486, 0.07378078997135162, -0.32256460189819336, -0.24031801521778107, -0.06216675788164139, -0.14588145911693573, 0.3637831211090088, 0.0177566297352314, -0.5546258687973022, 0.257011353969574, -0.4040379524230957, 0.03388100117444992, -0.09939491003751755, -0.054079070687294006, -0.16800819337368011, -0.155593603849411, -0.4221654534339905, 0.26156437397003174, -0.1391606330871582, 0.16466714441776276, -0.0964663028717041, -0.05598980188369751, 0.0007048919796943665, -0.15051054954528809, -0.0544884130358696, 0.026048611849546432, -0.4705290198326111, -0.09283130615949631, -0.1959894448518753, -0.14020271599292755, -0.015017678961157799, 0.21177256107330322, 0.10819745808839798, 0.07988069951534271, -0.2208482325077057, 0.07476362586021423, 0.10030041635036469, 0.11136092990636826, -0.07459420710802078, 0.018623758107423782, 0.28604283928871155, -0.03659297153353691, -0.34211787581443787, 0.14515796303749084, -0.034625209867954254, 0.17506349086761475, 0.3781586289405823, 0.07899610698223114, -0.058395273983478546, -0.36032524704933167, -0.1006431132555008, -0.05816316604614258, 0.2370607852935791, -0.25680291652679443, 0.2513565421104431, 0.05455566570162773, -0.0355340912938118, 0.07119809836149216, -0.10545872151851654, -0.08281031996011734, -0.09730266034603119, 0.394163578748703, 0.2912924587726593, 0.2772478759288788, 0.21699310839176178, 0.23510031402111053, -0.22449511289596558, -0.36366650462150574, 0.2889496088027954, 0.0990763008594513, -0.30861276388168335, 0.1984170377254486, 0.2202903777360916, -0.04832281172275543, -0.0357770174741745, 0.3472396433353424, 0.011434201151132584, 0.049836672842502594, -0.13501307368278503, -0.28077638149261475, -0.22253841161727905, 0.2674216330051422, 0.09064307063817978, 0.08440592885017395, 0.02832755446434021, 0.16219867765903473, 0.1774451583623886, -0.05472356081008911, -0.45146921277046204, -0.011736507527530193, -0.3375886380672455, -0.037974365055561066, 0.11412515491247177, -0.06889115273952484, 0.21172305941581726, 0.046973951160907745, 0.2668263018131256, -0.027095697820186615, -0.09540219604969025, -0.32347196340560913, -0.10079512000083923, 0.1007453203201294, -0.03197877109050751, -0.004105469211935997, 0.22435890138149261, -0.13092175126075745, -0.16262534260749817, -0.16517171263694763, 0.17553037405014038, 0.057732485234737396, -0.19021804630756378, 0.10387837141752243, 0.15697453916072845, 0.28340649604797363, 0.04302455484867096, 0.21717646718025208, -0.02665814757347107, -0.05812294781208038, -0.02266506664454937, 0.03911973163485527, 0.01566762663424015, -0.04985629394650459, -0.016041122376918793, 0.04384366050362587, 0.0941367894411087, 0.11545348167419434, 0.10233174264431, -0.13287074863910675, -0.23977194726467133, 0.1010514572262764, 0.17079530656337738, 0.16726982593536377, -0.11698948591947556, 0.24982745945453644, -0.08523958921432495, 0.34323376417160034, -0.30241894721984863, 0.0496230274438858, 0.18671032786369324, -0.15452536940574646, 0.22602352499961853, 0.11560599505901337, -0.3048245310783386, 0.22459417581558228, -0.1469651311635971, -0.012541960924863815, 0.4131203591823578, -0.1344488263130188, 0.21409563720226288, 0.321193665266037, -0.08356069028377533, -0.016689512878656387, 0.37768879532814026, 0.18358227610588074, 0.10865142941474915, 0.031676702201366425, -0.057956211268901825, 0.14708669483661652, -0.019642934203147888, 0.08554209768772125, 0.241409569978714, -0.5050230026245117, 0.27103275060653687, 0.24059897661209106, -0.024310365319252014, -0.11213787645101547, -0.16398966312408447, 0.37124860286712646, -0.5745430588722229, -0.06367092579603195, -0.3064316213130951, 0.05941450223326683, -0.16855686902999878, 0.11595192551612854, -0.11149585247039795, -0.1400386095046997, -0.2565513253211975, -0.2784861922264099, 0.06332897394895554, -0.2414882928133011, 0.24397620558738708, -0.11187270283699036, 0.02112710475921631, -0.2714122235774994, -0.040151745080947876, 0.22178009152412415, 0.12762705981731415, -0.19419673085212708, 0.009710194543004036, 0.05060196295380592, 0.2041797786951065, -0.1806851476430893, 0.552272617816925, 0.3988938331604004, 0.3800225853919983, -0.13546396791934967, -0.06647849082946777, 0.11493588984012604, -0.2638262212276459, -0.09045276790857315, 0.010561225935816765, -0.03626365214586258, 0.2590767443180084, 0.10439443588256836, 0.32031407952308655, -0.30220091342926025, -0.006890803575515747, -0.019003432244062424, 0.005731313489377499, -0.26948049664497375, 0.3833434283733368, -0.29412928223609924, -0.1339462697505951, -0.11302565038204193, -0.07648534327745438, -0.5723280906677246, 0.045301828533411026, 0.43370071053504944, 0.05534976348280907, 0.11604992300271988, -0.17900648713111877, 0.14473627507686615, -0.13810193538665771, 0.19207264482975006, -0.013790357857942581, 0.28975093364715576, -0.2669529914855957, 0.08058135211467743, -0.52471923828125, 0.3150632977485657, 0.03911377862095833, -0.19242943823337555, -0.028471320867538452, -0.1205907016992569, -0.14180392026901245, 0.0033044442534446716, 0.025263294577598572, 0.27408459782600403, 0.2506793141365051, 0.015638675540685654, -0.5449016690254211, -0.29364877939224243, -0.04161620885133743, -0.1840641051530838, 0.0557723343372345, -0.3411942422389984, -0.0023587383329868317, -0.17404964566230774, 0.1497214436531067, 0.0006309915333986282, -0.24992862343788147, 0.14406612515449524, 0.09776830673217773, 0.6802557706832886, 0.18651363253593445, 0.40309518575668335, -0.08699795603752136, -0.04366840049624443, 0.036389488726854324, -0.29322147369384766, -0.11003677546977997, 0.23400458693504333, 0.07532291114330292, 0.20277442038059235, 0.034616619348526, 0.14568662643432617, -0.245183065533638, 0.08542805910110474, 0.017443828284740448, 0.13280346989631653, -0.14758430421352386, 0.3109080195426941, -0.15090882778167725, -0.29782915115356445, -0.1912621706724167, 0.0007489919662475586, 0.10509775578975677, 0.10299559682607651, -0.06943652033805847, -0.23852580785751343, 0.5177170038223267, -0.28555846214294434, -0.1767609566450119, -0.09032762795686722, 0.35201168060302734, -0.04038137197494507, -0.11723598092794418, -0.5067303776741028, 0.05464554578065872, 0.48873016238212585, -0.0022290367633104324, -0.15009334683418274, 0.16388313472270966, -0.20673099160194397, 0.02150212600827217, -0.07061636447906494, 0.011497244238853455, -0.04090605676174164, 0.0008293669670820236, 0.19807983934879303, -0.1320047825574875 ]
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.2608943283557892, -0.20070578157901764, 0.06599944829940796, 0.4001954197883606, 0.464599072933197, 0.011524513363838196, 0.32409659028053284, 0.0941324383020401, 0.18959921598434448, 0.30018186569213867, -0.2849102318286896, 0.4667590260505676, -0.03664378076791763, 0.16685791313648224, 0.07776474952697754, -0.12537360191345215, -0.26064667105674744, 0.26366811990737915, -0.17774656414985657, 0.06136661767959595, -0.5233628749847412, 0.023198604583740234, -0.23736360669136047, 0.08589118719100952, -0.2768002450466156, -0.15339922904968262, -0.028150029480457306, 0.07971358299255371, -0.24621780216693878, -0.2805509567260742, 0.46116089820861816, -0.01596294343471527, 0.16404768824577332, 0.5104124546051025, -0.00010234796354779974, -0.01845693215727806, 0.5836994051933289, 0.053003206849098206, -0.07615110278129578, -0.421190083026886, -0.22556236386299133, -0.3977995812892914, 0.2870034873485565, -0.35481518507003784, -0.12754212319850922, 0.005577661097049713, 0.04051308333873749, -0.18190476298332214, 0.2621392607688904, 0.32043400406837463, 0.3242149353027344, 0.529691219329834, 0.011442746967077255, -0.35997092723846436, 0.1965131163597107, 0.08082960546016693, -0.06368956714868546, 0.3710547387599945, 0.026584647595882416, -0.04749301075935364, 0.24396339058876038, 0.08703036606311798, -0.33535414934158325, 0.05276110768318176, 0.28473567962646484, 0.03825512155890465, 0.009531088173389435, -0.27017030119895935, 0.09647578001022339, 0.3694058954715729, 0.3855825960636139, -0.3826204836368561, -0.15144233405590057, 0.17501002550125122, 0.22396504878997803, -0.2032715231180191, 0.21164900064468384, 0.04687865078449249, 0.016304776072502136, 0.09074489772319794, -0.013072031550109386, 0.17122028768062592, -0.2445583939552307, 0.2749377489089966, -0.2020057588815689, 0.10655120015144348, -0.19354914128780365, 0.1447967290878296, 0.08499746024608612, -0.11885982751846313, 0.07633452117443085, -0.134597048163414, -0.06199774518609047, 0.08909045159816742, -0.20838098227977753, 0.0349295511841774, 0.11520547419786453, 0.15358011424541473, 0.16361179947853088, -0.28436774015426636, 0.1018841415643692, -0.02383337914943695, 0.03979945555329323, 0.4501175880432129, 0.2414603978395462, 0.1897561103105545, 0.27247777581214905, 0.08869324624538422, 0.2660127878189087, 0.06678754091262817, -0.24171388149261475, -0.012088704854249954, -0.15435843169689178, -0.061073265969753265, 0.24279506504535675, 0.14118465781211853, 0.5124642848968506, 0.018915552645921707, -0.45016351342201233, -0.1742379069328308, -0.17213350534439087, 0.09129952639341354, 0.2716411054134369, 0.4277632534503937, -0.15264034271240234, 0.08207672834396362, 0.13324162364006042, 0.17432893812656403, -0.18845175206661224, -0.2918037474155426, -0.31832534074783325, 0.3539682924747467, -0.2528478503227234, -0.2349548637866974, 0.19113844633102417, 0.05796566605567932, -0.044978752732276917, 0.013467094860970974, -0.0958479642868042, 0.10270030796527863, 0.08866897970438004, -0.2908605635166168, -0.2310658097267151, 0.31327131390571594, 0.24430567026138306, -0.06283300369977951, 0.28006088733673096, -0.4668278694152832, -0.09159710258245468, 0.22920382022857666, -0.2898917496204376, -0.16717444360256195, -0.07324445247650146, 0.2667022943496704, -0.33905476331710815, -0.06973500549793243, -0.24416670203208923, 0.046671926975250244, 0.04895768687129021, -0.1566348373889923, -0.10240890830755234, -0.09626084566116333, -0.1126568466424942, -0.42342522740364075, 0.04461929202079773, 0.5165772438049316, -0.375186026096344, -0.19924096763134003, -0.3078085780143738, -0.10918356478214264, 0.3522844612598419, -0.14730116724967957, 0.014566808007657528, 0.06290081888437271, -0.17065688967704773, -0.0006844326853752136, 0.6008660793304443, -0.38471996784210205, -0.28151455521583557, 0.056300267577171326, -0.037187281996011734, -0.11655450612306595, -0.0517217293381691, -0.0470438152551651, 0.0718875452876091, 0.13564345240592957, 0.4128209352493286, 0.24465318024158478, 0.049359217286109924, -0.03246701508760452, -0.21095888316631317, -0.23810982704162598, 0.12804608047008514, 0.15165823698043823, 0.12727057933807373, 0.1630401909351349, 0.07125106453895569, -0.2506301701068878, -0.05571620911359787, -0.006188925355672836, -0.10224486142396927, -0.030163966119289398, 0.536503255367279, -0.1599625051021576, -0.03996352106332779, -0.5328826904296875, -0.3950168192386627, 0.23308181762695312, -0.07792939245700836, 0.25416892766952515, -0.10548928380012512, -0.17003555595874786, -0.35298168659210205, 0.10195054858922958, -0.017024490982294083, 0.0607617050409317, 0.2853279709815979, 0.09096067398786545, -0.20114846527576447, 0.14548809826374054, -0.08090302348136902, 0.16377240419387817, -0.08734921365976334, 0.051231749355793, 0.03350505232810974, 0.2916681468486786, 0.07477729767560959, -0.3356178104877472, 0.035295017063617706, 0.18978455662727356, 0.4574476480484009, -0.010459783487021923, -0.0672706738114357, 0.264090359210968, 0.0708920955657959, -0.07880471646785736, -0.20708614587783813, -0.05381760001182556, 0.08799300342798233, -0.3130647838115692, -0.030365729704499245, 0.03798452764749527, 0.31870922446250916, -0.09437333047389984, 0.06253885477781296, 0.603893518447876, 0.06684309989213943, 0.17446179687976837, -0.07306019216775894, 0.2714175581932068, 0.0653243213891983, -0.03855617344379425, -0.14907677471637726, -0.12862740457057953, 0.04598536714911461, 0.11761821806430817, 0.24863718450069427, 0.006103988736867905, -0.08802146464586258, -0.023189395666122437, 0.576915442943573, 0.09138292074203491, 0.36079132556915283, -0.13751745223999023, -0.420413613319397, 0.11379542201757431, 0.037006158381700516, 0.2525538206100464, 0.503267228603363, 0.33231568336486816, -0.1068643182516098, 0.023629946634173393, -0.05717255920171738, 0.04047263041138649, 0.10329210758209229, 0.04944702610373497, 0.23289790749549866, -0.000023402273654937744, 0.30572158098220825, -0.02094200626015663, -0.3462263345718384, 0.16139161586761475, -0.05384773015975952, 0.18420638144016266, -0.376086950302124, 0.1845395863056183, -0.27470359206199646, -0.07675733417272568, 0.14255128800868988, -0.10272502154111862, -0.12500497698783875, -0.3286280035972595, -0.2664065361022949, 0.10813762992620468, 0.12109054625034332, 0.1938210129737854, 0.14224831759929657, 0.07631893455982208, 0.008745403960347176, -0.025528723374009132, -0.18266119062900543, -0.1326557695865631, -0.148391991853714, 0.08807402849197388, 0.16533535718917847, 0.1819412261247635, 0.41198283433914185, -0.14963757991790771, 0.22848793864250183, -0.05112738162279129, -0.24559888243675232, 0.10017774254083633, -0.057329192757606506, 0.5299293994903564, 0.4086088240146637, 0.0602923221886158, -0.14106450974941254, 0.10045047104358673, 0.4188913106918335, -0.4658014178276062, 0.026478277519345284, 0.36358392238616943, -0.3070647418498993, 0.08372601866722107, -0.25187748670578003, -0.10609955340623856, -0.5478299260139465, -0.428038090467453, 0.06833092123270035, 0.09581956267356873, 0.04497775062918663, 0.17241673171520233, 0.11911794543266296, 0.4440962076187134, 0.11239200830459595, 0.015760039910674095, -0.23304159939289093, -0.08540752530097961, 0.33111271262168884, -0.16932520270347595, -0.3608907163143158, 0.20424893498420715, -0.1323482245206833, 0.25487375259399414, 0.02858656831085682, -0.1609789878129959, -0.5243911743164062, -0.1556175798177719, 0.20535382628440857, -0.005188260227441788, -0.011091364547610283, 0.2912258505821228, 0.040286093950271606, -0.1367860734462738, -0.27267491817474365, -0.14130140841007233, -0.048815540969371796, 0.2352694571018219, -0.06838785856962204, 0.04718406870961189, 0.28253892064094543, -0.12230129539966583, 0.14363853633403778, -0.10943953692913055, -0.18530066311359406, 0.4059680998325348, -0.3138796091079712, 0.37427055835723877, -0.15146476030349731, -0.4665449857711792, -0.21089030802249908, 0.02787119895219803, 0.04224248230457306, 0.04843439161777496, -0.18290004134178162, -0.24296630918979645, -0.38739147782325745, -0.18405874073505402, -0.3091232478618622, -0.1176474392414093, -0.044823288917541504, 0.18691477179527283, -0.034465543925762177, 0.12824082374572754, 0.15066853165626526, -0.4099552035331726, -0.04402158781886101, -0.014515956863760948, 0.19075907766819, 0.00033273547887802124, -0.18749283254146576, -0.1343231499195099, -0.23941415548324585, -0.33497291803359985, 0.466514527797699, -0.1304175704717636, -0.021452732384204865, -0.10481052100658417, -0.022813592106103897, 0.1187157854437828, -0.04580260068178177, 0.5801784992218018, -0.2944781184196472, 0.17192921042442322, 0.5542978048324585, 0.09048031270503998, -0.5516592860221863, 0.10773085057735443, -0.3318449556827545, 0.3005686104297638, 0.13312916457653046, 0.2810218334197998, -0.347042977809906, -0.01938774436712265, 0.21586230397224426, 0.06858575344085693, -0.11510869860649109, -0.24079307913780212, -0.23340843617916107, -0.2933901250362396, -0.04927123337984085, -0.06657246500253677, -0.058612242341041565, 0.422576904296875, -0.13546700775623322, -0.127306267619133, -0.4123398959636688, -0.036734648048877716, 0.16560104489326477, 0.19397355616092682, 0.34225180745124817, -0.13591106235980988, -0.025981904938817024, -0.058792486786842346, 0.08305041491985321, 0.13305388391017914, 0.3568015694618225, 0.08881069719791412, -0.44697368144989014, 0.13907620310783386, 0.07360130548477173, 0.23926153779029846, 0.002429097890853882, -0.21277177333831787, -0.15642204880714417, -0.09731802344322205, 0.12567438185214996, 0.06949117034673691, 0.1411266177892685, 0.23214755952358246, 0.013767124153673649, -0.3646828830242157, -0.23113234341144562, 0.43259236216545105, 0.1745893806219101, 0.025027170777320862, 0.27189964056015015, 0.23464591801166534, -0.22543418407440186, 0.2237931191921234, -0.06492956727743149, 0.9164005517959595, -0.001630730926990509, -0.1102362722158432, 0.6165463924407959, -0.09799041599035263, 0.5674655437469482, 0.06507910788059235, 0.06793416291475296, -0.3704267144203186, -0.28798654675483704, -0.005231522023677826, -0.14537610113620758, 0.25484567880630493, -0.04935365915298462, -0.5216740965843201, 0.2098071128129959, -0.3250353932380676, 0.05638718232512474, -0.03387555480003357, -0.08627261221408844, -0.06887153536081314, -0.16256721317768097, -0.31690946221351624, 0.22038862109184265, -0.11600284278392792, 0.16524861752986908, -0.09055141359567642, -0.07293753325939178, 0.02018742635846138, -0.07935319095849991, -0.08598931133747101, 0.0518675372004509, -0.41057440638542175, -0.10258089005947113, 0.008886750787496567, -0.14894288778305054, -0.049236029386520386, 0.10977701842784882, 0.043908968567848206, 0.023810988292098045, -0.34834447503089905, 0.23607514798641205, 0.05250944197177887, 0.017473140731453896, -0.07425542920827866, 0.07520441710948944, 0.20920902490615845, -0.05937228351831436, -0.26785391569137573, 0.10724060237407684, -0.04713147506117821, 0.1675490140914917, 0.3512035608291626, 0.13514502346515656, -0.1057778000831604, -0.30187779664993286, -0.21502356231212616, -0.13873854279518127, 0.2945331931114197, -0.29509925842285156, 0.25293558835983276, 0.08838547021150589, -0.11284011602401733, 0.0237119123339653, 0.03705595061182976, -0.18078628182411194, -0.03919872269034386, 0.4054495096206665, 0.33154380321502686, 0.32667145133018494, 0.17421162128448486, 0.21394605934619904, -0.13305021822452545, -0.3562074601650238, 0.23564204573631287, 0.07449276000261307, -0.3519975543022156, 0.3284543454647064, 0.2739308476448059, -0.04565398395061493, 0.0271229837089777, 0.4190959930419922, 0.017764531075954437, -0.04062499850988388, -0.12783575057983398, -0.2977454662322998, -0.20528462529182434, 0.2201714813709259, 0.0076375678181648254, -0.013315383344888687, 0.10363208502531052, 0.23537448048591614, 0.19691458344459534, -0.07531565427780151, -0.42562371492385864, 0.11846058815717697, -0.34209761023521423, -0.10644938051700592, 0.03581418842077255, -0.08394267410039902, 0.19919680058956146, 0.09430313110351562, 0.22002115845680237, 0.04124429449439049, -0.11736734211444855, -0.3198774456977844, -0.17088593542575836, 0.11573011428117752, -0.060352884232997894, 0.09846006333827972, 0.1912238597869873, -0.09780193865299225, -0.339977502822876, -0.11381678283214569, 0.08634743094444275, 0.01868293434381485, -0.24856682121753693, 0.038939282298088074, 0.18414132297039032, 0.29607170820236206, 0.024314552545547485, 0.22147658467292786, 0.06482767313718796, -0.05169874429702759, -0.16678062081336975, 0.007017176598310471, 0.0738605484366417, -0.037725865840911865, 0.04539871960878372, -0.024269811809062958, 0.14642491936683655, 0.12582820653915405, 0.14722421765327454, -0.182162806391716, -0.13763883709907532, -0.010655103251338005, 0.16226772964000702, 0.10540153831243515, -0.16789735853672028, 0.31690001487731934, -0.15113916993141174, 0.3191594183444977, -0.37131842970848083, -0.018126649782061577, 0.2591812014579773, -0.003793518990278244, 0.23372453451156616, 0.04873368889093399, -0.21770286560058594, 0.2784508764743805, -0.10017457604408264, -0.008697303012013435, 0.45373955368995667, -0.12444150447845459, 0.06487683951854706, 0.23850809037685394, -0.15005332231521606, 0.06746755540370941, 0.4041025638580322, 0.26060914993286133, 0.09712580591440201, 0.13524982333183289, -0.02997751533985138, 0.1296592354774475, -0.0773412436246872, 0.051117248833179474, 0.1697775274515152, -0.5580493211746216, 0.18610605597496033, 0.16857914626598358, 0.00236549973487854, -0.07915950566530228, -0.23237961530685425, 0.41024675965309143, -0.4937502145767212, -0.06056530401110649, -0.3794309198856354, 0.06437058746814728, -0.16302835941314697, -0.0013761874288320541, -0.1433883011341095, -0.11491919308900833, -0.17176078259944916, -0.2528250217437744, 0.04163515195250511, -0.09905891120433807, 0.24124270677566528, -0.11379453539848328, 0.1046862006187439, -0.1930139809846878, -0.039942458271980286, 0.2786889970302582, 0.04779853671789169, -0.1555447280406952, 0.03981349244713783, -0.060166388750076294, 0.2526922821998596, -0.11667332053184509, 0.4984671175479889, 0.42828330397605896, 0.2650192379951477, -0.20173552632331848, -0.11841388791799545, 0.04389599710702896, -0.2949293553829193, -0.14820395410060883, 0.14488697052001953, 0.1621527373790741, 0.1861356943845749, 0.07484334707260132, 0.2893255650997162, -0.2849993109703064, 0.1308235079050064, -0.0036746375262737274, -0.007818931713700294, -0.2805195748806, 0.3590797483921051, -0.36254969239234924, -0.11782614886760712, -0.1554858386516571, -0.10727161914110184, -0.4793090522289276, 0.09879516810178757, 0.3647938370704651, 0.1218608096241951, 0.1348397135734558, -0.1550246924161911, 0.14311693608760834, -0.26004353165626526, 0.2424021065235138, -0.023232828825712204, 0.365359902381897, -0.23983946442604065, 0.025778234004974365, -0.5430266857147217, 0.44817736744880676, 0.01292525976896286, -0.07826431095600128, 0.08482459932565689, -0.12170228362083435, -0.1154608502984047, -0.03444531559944153, -0.004841700196266174, 0.36308857798576355, 0.270831435918808, -0.04777442663908005, -0.5591890215873718, -0.3568097949028015, -0.09461762011051178, -0.27721962332725525, 0.04613734781742096, -0.29077979922294617, -0.05018286034464836, -0.16049863398075104, 0.13265091180801392, -0.068354532122612, -0.273656964302063, 0.11521337926387787, 0.2708911895751953, 0.666909396648407, 0.20456866919994354, 0.4079801142215729, -0.08747318387031555, 0.09326212108135223, 0.07337760925292969, -0.2984469532966614, -0.07542069256305695, 0.19056600332260132, 0.10106059908866882, 0.13626082241535187, 0.015028459951281548, 0.17342133820056915, -0.14726825058460236, -0.0376882366836071, -0.04048154130578041, 0.05787605047225952, -0.23930205404758453, 0.3138110339641571, -0.289703905582428, -0.19459828734397888, -0.2668881416320801, 0.09523376822471619, 0.08431068062782288, 0.1096615344285965, 0.021883592009544373, -0.09394088387489319, 0.6466466784477234, -0.25513699650764465, -0.31486180424690247, 0.002964963670819998, 0.25523778796195984, 0.03409348055720329, -0.175284281373024, -0.41450655460357666, 0.0628262534737587, 0.4432108998298645, -0.05498633533716202, -0.21835976839065552, 0.2427147775888443, -0.17745542526245117, 0.0503370501101017, -0.1022096574306488, 0.011153988540172577, 0.0516410768032074, -0.06758354604244232, 0.12968166172504425, -0.08301349729299545 ]
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.24667537212371826, -0.21660587191581726, -0.003883836790919304, 0.3586862087249756, 0.4009476900100708, 0.035536400973796844, 0.3025209307670593, 0.15218962728977203, 0.16503536701202393, 0.3566102087497711, -0.17792066931724548, 0.4452136158943176, -0.03825686126947403, 0.19904454052448273, 0.08161988854408264, -0.08996208012104034, -0.2033710479736328, 0.2447066754102707, -0.18422278761863708, 0.010521911084651947, -0.47287634015083313, -0.0185204166918993, -0.1821441352367401, 0.019933320581912994, -0.24807438254356384, -0.20028561353683472, -0.11639862507581711, 0.06450091302394867, -0.21489913761615753, -0.25302964448928833, 0.36321118474006653, 0.045063186436891556, 0.11236836016178131, 0.5467205047607422, -0.00010198417294304818, -0.0862099826335907, 0.49754059314727783, 0.07624039798974991, -0.1133381575345993, -0.22271521389484406, -0.27041277289390564, -0.3431519865989685, 0.18232522904872894, -0.4260810315608978, -0.09165462851524353, 0.0288904570043087, 0.012380996719002724, -0.24819032847881317, 0.3053145408630371, 0.30721402168273926, 0.3397082984447479, 0.4426226019859314, -0.01901620253920555, -0.3322891891002655, 0.21623051166534424, 0.04210381954908371, -0.03231068700551987, 0.3622165322303772, 0.06336018443107605, -0.05373097211122513, 0.1767410933971405, 0.18241091072559357, -0.2867758870124817, -0.0029547028243541718, 0.2504884600639343, 0.08760205656290054, -0.024535156786441803, -0.2595611810684204, 0.102205291390419, 0.2668827176094055, 0.28568822145462036, -0.45208504796028137, -0.12455164641141891, 0.11148112267255783, 0.10435802489519119, -0.23671036958694458, 0.1430760771036148, -0.00361003540456295, -0.019701223820447922, 0.10603629052639008, -0.03515913337469101, 0.13369141519069672, -0.23166541755199432, 0.23966509103775024, -0.2091166377067566, 0.14929470419883728, -0.18942715227603912, 0.09671106934547424, 0.07523024827241898, -0.08528126031160355, 0.053221337497234344, -0.17134112119674683, 0.02107536792755127, 0.010569185018539429, -0.15079562366008759, -0.04721850901842117, 0.18301770091056824, 0.14029476046562195, 0.15340548753738403, -0.2545793652534485, 0.10788682103157043, -0.005875136703252792, 0.11862578988075256, 0.4159373641014099, 0.15438257157802582, 0.24156375229358673, 0.21506303548812866, 0.08808032423257828, 0.2187144011259079, 0.13025140762329102, -0.25680607557296753, -0.011533573269844055, -0.09233567118644714, -0.03635362908244133, 0.30848801136016846, 0.16057175397872925, 0.49787282943725586, 0.014810044318437576, -0.4372946619987488, -0.04824214056134224, -0.23147931694984436, 0.10639925301074982, 0.28516197204589844, 0.3828617334365845, -0.2197893112897873, 0.02807455323636532, 0.19541284441947937, 0.1463479995727539, -0.1679084151983261, -0.28968456387519836, -0.3228365480899811, 0.3451821506023407, -0.32532352209091187, -0.19962935149669647, 0.12553605437278748, 0.09560222923755646, -0.07858593761920929, 0.04803718253970146, -0.03571188449859619, 0.055301129817962646, 0.07634890079498291, -0.247365802526474, -0.17068105936050415, 0.18560583889484406, 0.20968042314052582, -0.10421083122491837, 0.323443204164505, -0.48366832733154297, -0.10272379219532013, 0.1058221161365509, -0.2070777714252472, -0.08960641920566559, -0.035920195281505585, 0.3180174231529236, -0.351398766040802, -0.10086776316165924, -0.15153709053993225, 0.10080717504024506, 0.061245664954185486, -0.15493585169315338, 0.02682853490114212, -0.08387941122055054, -0.046020299196243286, -0.4438784122467041, 0.0987599566578865, 0.577376127243042, -0.3923662602901459, -0.15835347771644592, -0.31497347354888916, -0.04101047292351723, 0.3569570481777191, -0.2316165715456009, 0.13289643824100494, 0.16129951179027557, -0.15059475600719452, 0.030738763511180878, 0.5494590401649475, -0.35942450165748596, -0.29829034209251404, -0.019450493156909943, -0.11950698494911194, -0.0845608115196228, -0.008068405091762543, -0.10454670339822769, 0.07586460560560226, 0.15029685199260712, 0.4117957651615143, 0.24507740139961243, -0.024491427466273308, -0.04034659266471863, -0.23563997447490692, -0.21621417999267578, 0.03015298582613468, 0.10724303126335144, 0.1855028122663498, 0.16095638275146484, 0.10866701602935791, -0.22548846900463104, 0.015082873404026031, -0.016561340540647507, -0.06782707571983337, -0.06646343320608139, 0.5562686920166016, -0.11980137228965759, -0.10301033407449722, -0.5486016869544983, -0.3364979326725006, 0.21377810835838318, -0.06441104412078857, 0.25838184356689453, -0.16227541863918304, -0.17712457478046417, -0.41699621081352234, 0.11737475544214249, -0.05916953459382057, 0.041595667600631714, 0.3479427099227905, 0.15848886966705322, -0.1316370964050293, 0.12016460299491882, -0.03892330452799797, 0.1554764062166214, -0.09755805879831314, 0.06154221296310425, 0.0028674639761447906, 0.36242660880088806, 0.028815070167183876, -0.3402508795261383, 0.012543223798274994, 0.2390858232975006, 0.49202847480773926, 0.0251285582780838, -0.03666054084897041, 0.3425717055797577, 0.015397751703858376, -0.05892403423786163, -0.07136110216379166, 0.012982070446014404, 0.035537492483854294, -0.3102557361125946, 0.09030833095312119, 0.07409404218196869, 0.27433300018310547, -0.05014890432357788, 0.04555932432413101, 0.5526733994483948, 0.06390858441591263, 0.16311822831630707, -0.07747828960418701, 0.2747512757778168, -0.10433327406644821, -0.06520605087280273, -0.15911903977394104, -0.1482444405555725, 0.11650262773036957, 0.052998147904872894, 0.19412626326084137, -0.04457215219736099, -0.10241149365901947, 0.07118578255176544, 0.6148305535316467, 0.07447843253612518, 0.41006171703338623, -0.13506799936294556, -0.36264917254447937, 0.13631483912467957, 0.06328226625919342, 0.26273462176322937, 0.4373953342437744, 0.3606952726840973, -0.05525285378098488, 0.07250647246837616, -0.09560087323188782, 0.04635833203792572, 0.08184704184532166, 0.07800126075744629, 0.17100735008716583, -0.02355910837650299, 0.26488223671913147, 0.00004831608384847641, -0.3021976351737976, 0.03938860073685646, -0.21157197654247284, 0.19996829330921173, -0.34422770142555237, 0.2703236937522888, -0.2761574685573578, -0.1083705872297287, 0.06657055020332336, -0.1341652125120163, -0.11199824512004852, -0.3972249925136566, -0.18969158828258514, 0.0495736300945282, 0.08469848334789276, 0.15966399013996124, 0.1331491321325302, 0.17809519171714783, 0.043584659695625305, -0.050639547407627106, -0.21693643927574158, -0.0929446890950203, -0.14918342232704163, 0.12451985478401184, 0.112788625061512, 0.21955037117004395, 0.4563969671726227, -0.2264527529478073, 0.2653893232345581, 0.04052570462226868, -0.2521413266658783, 0.10910401493310928, -0.11130116879940033, 0.5382037162780762, 0.4217015504837036, 0.0849711000919342, -0.13754895329475403, 0.04792269691824913, 0.402566134929657, -0.3987688720226288, 0.03456060588359833, 0.2760674059391022, -0.17331716418266296, 0.09936663508415222, -0.22149783372879028, -0.10913080722093582, -0.49372971057891846, -0.4305162727832794, 0.05353570729494095, 0.09401626884937286, 0.0907856822013855, 0.16613489389419556, 0.16477005183696747, 0.5161482691764832, 0.09035924077033997, 0.08534185588359833, -0.2309441864490509, -0.09283295273780823, 0.2652719020843506, -0.13562949001789093, -0.3170883059501648, 0.11643733084201813, -0.13272923231124878, 0.18824268877506256, 0.03466304764151573, -0.21737517416477203, -0.5696401000022888, -0.17610688507556915, 0.2179051637649536, -0.034390777349472046, 0.09332101792097092, 0.26999932527542114, 0.0949120968580246, -0.15692180395126343, -0.2845882177352905, -0.16251757740974426, -0.09149598330259323, 0.1541401743888855, -0.03183015435934067, -0.02497071772813797, 0.27864617109298706, -0.11610852181911469, 0.13205620646476746, -0.06656105816364288, -0.20754371583461761, 0.3825693130493164, -0.3480914831161499, 0.39846596121788025, -0.09964015334844589, -0.5200997591018677, -0.17360647022724152, 0.03532829135656357, -0.060932062566280365, 0.048966050148010254, -0.17149591445922852, -0.2166237086057663, -0.3766878843307495, -0.05624682456254959, -0.3627012073993683, -0.18732745945453644, -0.03915944695472717, 0.15603852272033691, -0.03688311576843262, 0.07491514086723328, 0.18881484866142273, -0.449106365442276, 0.057005055248737335, -0.01695084199309349, 0.15379109978675842, -0.0894065573811531, -0.1648549884557724, -0.11857417225837708, -0.24680766463279724, -0.28612980246543884, 0.4680054187774658, -0.149936243891716, -0.05639386922121048, -0.2046155482530594, -0.06607937067747116, 0.09054265916347504, -0.035879943519830704, 0.5689526200294495, -0.350373238325119, 0.18970853090286255, 0.476827472448349, 0.12519727647304535, -0.4568900167942047, 0.1350759118795395, -0.4355602562427521, 0.2517583668231964, 0.21854431927204132, 0.28022730350494385, -0.30605030059814453, 0.019135091453790665, 0.23995718359947205, 0.1026441752910614, -0.11065829545259476, -0.2221301794052124, -0.22178904712200165, -0.31839340925216675, -0.08035527914762497, 0.04201442375779152, -0.02529301866889, 0.4193626940250397, -0.0983458086848259, -0.1282835453748703, -0.3264179825782776, -0.025679146870970726, 0.2025919109582901, 0.25960513949394226, 0.28942984342575073, -0.12314993143081665, -0.1225854903459549, -0.08236517757177353, 0.07923276722431183, 0.13594959676265717, 0.3235682547092438, 0.07935789227485657, -0.34462958574295044, 0.09072724729776382, 0.08888895809650421, 0.278188019990921, 0.05736102908849716, -0.17625942826271057, -0.14405077695846558, -0.08695461601018906, 0.21756276488304138, 0.006137731019407511, 0.17691858112812042, 0.25485870242118835, 0.08978699892759323, -0.38118839263916016, -0.23075799643993378, 0.43377330899238586, 0.17661137878894806, -0.03812422230839729, 0.294884592294693, 0.20820651948451996, -0.23664771020412445, 0.2260974496603012, -0.022161133587360382, 1.0133306980133057, 0.05262398719787598, -0.1635144054889679, 0.5793561935424805, -0.14888876676559448, 0.5672779679298401, -0.019949689507484436, 0.03939756751060486, -0.3318086564540863, -0.29210883378982544, -0.005011418834328651, -0.14916658401489258, 0.2573123276233673, -0.09394071996212006, -0.6075482368469238, 0.19444839656352997, -0.3985600471496582, 0.06098233163356781, 0.00785256177186966, -0.12741228938102722, -0.11916806548833847, -0.10942773520946503, -0.3458574414253235, 0.2644386291503906, -0.13787104189395905, 0.19162411987781525, -0.14864683151245117, -0.06625363230705261, -0.08176778256893158, -0.10981827974319458, -0.1274232715368271, 0.0437014177441597, -0.36695533990859985, -0.18494044244289398, -0.0509839691221714, -0.1615009903907776, -0.10808280110359192, 0.0942898839712143, 0.08131682872772217, 0.14709621667861938, -0.27799496054649353, 0.08808301389217377, 0.08451834321022034, 0.02423737198114395, -0.006938633508980274, 0.00854723434895277, 0.1958826780319214, -0.037082474678754807, -0.2943594753742218, 0.10687220096588135, 0.045787353068590164, 0.11517636477947235, 0.3087924122810364, 0.10357581079006195, -0.0675770491361618, -0.3244163393974304, -0.10348385572433472, -0.0974472314119339, 0.24810919165611267, -0.3131105303764343, 0.27148377895355225, 0.08919963240623474, -0.12014735490083694, 0.09994558990001678, -0.012931056320667267, -0.14131967723369598, -0.0845811665058136, 0.3065219521522522, 0.24755507707595825, 0.31103748083114624, 0.06511413305997849, 0.2337539941072464, -0.14517951011657715, -0.3778768479824066, 0.19461074471473694, 0.12664556503295898, -0.30942854285240173, 0.24518410861492157, 0.11320450901985168, -0.10021349787712097, -0.01896711066365242, 0.3583431541919708, 0.08726727962493896, 0.012129656970500946, -0.13199155032634735, -0.31772005558013916, -0.22757384181022644, 0.19746655225753784, 0.12628421187400818, 0.04679345339536667, 0.04094816744327545, 0.24098694324493408, 0.21606449782848358, -0.014946961775422096, -0.47772717475891113, 0.023357437923550606, -0.35480159521102905, -0.12109526991844177, 0.05531013384461403, -0.13120189309120178, 0.21061813831329346, 0.03077435865998268, 0.26266053318977356, 0.06113721430301666, -0.12301644682884216, -0.3603874742984772, -0.11962321400642395, 0.0878794938325882, -0.0960552841424942, 0.12124686688184738, 0.1928567886352539, -0.06559500098228455, -0.2737077474594116, -0.18214669823646545, 0.06557914614677429, -0.0048973895609378815, -0.1561487466096878, 0.0742095559835434, 0.19551673531532288, 0.30577701330184937, 0.05422179400920868, 0.07680844515562057, 0.11816917359828949, -0.04721754789352417, -0.0940907746553421, 0.050416819751262665, 0.01149157527834177, -0.09162084758281708, 0.0615551583468914, 0.047315940260887146, 0.15794797241687775, 0.12042266875505447, 0.1462680995464325, -0.1426488757133484, -0.17612558603286743, 0.03428434208035469, 0.24583914875984192, 0.16844815015792847, -0.18265344202518463, 0.24511964619159698, -0.20319923758506775, 0.36860159039497375, -0.3018472492694855, 0.04486629739403725, 0.23344627022743225, -0.005772297270596027, 0.2976728081703186, 0.14921356737613678, -0.289226770401001, 0.22511184215545654, -0.15432153642177582, 0.00222889706492424, 0.42088741064071655, -0.08482831716537476, 0.09413214027881622, 0.2553800642490387, -0.161747545003891, 0.07267706096172333, 0.42079582810401917, 0.21576601266860962, 0.08089657127857208, 0.11472585797309875, -0.01203920692205429, 0.20920142531394958, -0.05954807996749878, -0.008851509541273117, 0.17259764671325684, -0.4266684949398041, 0.18628352880477905, 0.19809940457344055, 0.022372394800186157, -0.03816549479961395, -0.2197997272014618, 0.41530078649520874, -0.5084756016731262, -0.056522540748119354, -0.32371416687965393, 0.048777349293231964, -0.17411550879478455, 0.06059760972857475, -0.16821441054344177, -0.12894806265830994, -0.2265682965517044, -0.2804170846939087, 0.1312566101551056, -0.16091756522655487, 0.27993205189704895, -0.16956022381782532, 0.10229437798261642, -0.19380894303321838, -0.06666214764118195, 0.2105492353439331, 0.1612243950366974, -0.20317625999450684, 0.0029698777943849564, -0.019834287464618683, 0.22439360618591309, -0.14448873698711395, 0.47211259603500366, 0.4282219707965851, 0.2557368278503418, -0.1851385235786438, -0.09297473728656769, -0.006572583690285683, -0.293438583612442, -0.17106476426124573, 0.09330468624830246, 0.1752077341079712, 0.17537739872932434, 0.10745714604854584, 0.33132463693618774, -0.3341614603996277, 0.09416186064481735, -0.023793090134859085, -0.01389262080192566, -0.22673532366752625, 0.38321492075920105, -0.2947540581226349, -0.08552573621273041, -0.1702570915222168, -0.1365148425102234, -0.5748510360717773, 0.04058966413140297, 0.34194570779800415, 0.09301739931106567, 0.1262921690940857, -0.16055089235305786, 0.15247708559036255, -0.17488154768943787, 0.17220264673233032, 0.014829277992248535, 0.4054073989391327, -0.2588355541229248, -0.00279940664768219, -0.5410191416740417, 0.42757636308670044, 0.015563124790787697, -0.15880818665027618, 0.03151417523622513, -0.03314732387661934, -0.11466646939516068, -0.017911363393068314, 0.02206302434206009, 0.33603930473327637, 0.22620896995067596, -0.025657735764980316, -0.5814421772956848, -0.29016971588134766, -0.1248452365398407, -0.2796957492828369, 0.13222548365592957, -0.2572004795074463, -0.03584378585219383, -0.20612695813179016, 0.21608436107635498, -0.03793101757764816, -0.2939603924751282, 0.08699862658977509, 0.14208361506462097, 0.6847298741340637, 0.1776425838470459, 0.40540802478790283, -0.16419202089309692, 0.03169310837984085, 0.011777542531490326, -0.24238838255405426, -0.10330193489789963, 0.2090895175933838, 0.07556544244289398, 0.17369171977043152, 0.012759843841195107, 0.13357998430728912, -0.12750808894634247, 0.03202700987458229, 0.11048021912574768, 0.07009903341531754, -0.11591281741857529, 0.2584395408630371, -0.23253729939460754, -0.11883386969566345, -0.18745829164981842, 0.08073195815086365, 0.0883738249540329, 0.20767219364643097, -0.03387022018432617, -0.178132563829422, 0.6508179903030396, -0.19926989078521729, -0.375453382730484, -0.005676887929439545, 0.333024263381958, 0.025154296308755875, -0.18259944021701813, -0.433086097240448, 0.01867096871137619, 0.42222341895103455, -0.0488336905837059, -0.21325910091400146, 0.2750222980976105, -0.25424498319625854, 0.039203446358442307, -0.023348988965153694, 0.07668030261993408, 0.007115108892321587, -0.04886650666594505, 0.16207696497440338, -0.1435602307319641 ]
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.24798239767551422, -0.3217710256576538, 0.07634991407394409, 0.4701034426689148, 0.4953814148902893, 0.01850798726081848, 0.3540433645248413, 0.06149499490857124, 0.24025771021842957, 0.31286153197288513, -0.276409387588501, 0.4540327191352844, -0.06261872500181198, 0.10333333164453506, 0.15565802156925201, -0.15578584372997284, -0.2255951464176178, 0.1679680347442627, -0.07798555493354797, 0.10205505788326263, -0.4996086657047272, -0.02934633009135723, -0.2632771134376526, 0.19516372680664062, -0.15596547722816467, -0.1863708198070526, -0.07376845180988312, 0.08071482926607132, -0.14787417650222778, -0.2537325620651245, 0.568166196346283, -0.10833822190761566, 0.21222855150699615, 0.5568335652351379, -0.0001079976573237218, 0.022329911589622498, 0.5475674271583557, 0.022291479632258415, -0.18126200139522552, -0.5533772110939026, -0.17559313774108887, -0.4152665138244629, 0.32018446922302246, -0.3743583858013153, -0.11459748446941376, 0.07909353822469711, 0.14598852396011353, -0.11177293211221695, 0.3590349555015564, 0.4540639817714691, 0.2855806052684784, 0.7018626928329468, -0.019747696816921234, -0.3421171307563782, 0.13334760069847107, 0.05414494872093201, -0.1285514235496521, 0.28715944290161133, 0.13716694712638855, -0.008233439177274704, 0.43345925211906433, -0.03733167052268982, -0.37050876021385193, 0.09044566750526428, 0.3338052034378052, 0.017311759293079376, 0.04568210616707802, -0.4084409773349762, 0.09899620711803436, 0.3526201546192169, 0.4291328489780426, -0.27898675203323364, -0.14455203711986542, 0.10621761530637741, 0.23932895064353943, -0.061996035277843475, 0.17657917737960815, 0.07574383169412613, -0.029810365289449692, 0.041353270411491394, 0.04638736695051193, 0.17182977497577667, -0.27798640727996826, 0.2125992625951767, -0.1284298151731491, -0.03536601364612579, -0.19327190518379211, 0.2176222801208496, 0.03803667426109314, -0.09714050590991974, 0.031084980815649033, -0.17658279836177826, 0.001849055290222168, 0.145195871591568, -0.307456374168396, -0.03703874722123146, 0.10036014765501022, 0.02064097300171852, 0.2188020944595337, -0.23972658812999725, 0.21414610743522644, -0.08140651136636734, 0.0014908155426383018, 0.3541436493396759, 0.34626972675323486, 0.2386878877878189, 0.21580970287322998, 0.14084573090076447, 0.15175454318523407, 0.022729212418198586, -0.17890411615371704, 0.062140122056007385, -0.2835336923599243, -0.04607158154249191, 0.2485671192407608, 0.2519287168979645, 0.6219195127487183, 0.02261798456311226, -0.5257902145385742, -0.19461552798748016, -0.0697031170129776, 0.07446427643299103, 0.14892582595348358, 0.4044243395328522, -0.2522182762622833, 0.0734095349907875, 0.0253308042883873, 0.28984367847442627, -0.19493286311626434, -0.38263776898384094, -0.25042814016342163, 0.15268383920192719, -0.2685990333557129, -0.27057114243507385, 0.24026204645633698, 0.0925440639257431, 0.03124791942536831, 0.04306093603372574, -0.2270829826593399, 0.08594340085983276, 0.16728897392749786, -0.37100109457969666, -0.31831735372543335, 0.203129380941391, 0.29819053411483765, 0.0132750254124403, 0.2797112464904785, -0.3238164782524109, -0.0456266887485981, 0.29752054810523987, -0.3877721428871155, -0.12059259414672852, -0.12639351189136505, 0.19356006383895874, -0.36293065547943115, -0.15650008618831635, -0.536428689956665, 0.0805208683013916, 0.04011774808168411, -0.08928481489419937, -0.05736889690160751, -0.14254023134708405, -0.06975608319044113, -0.3583664298057556, -0.05518142133951187, 0.47619134187698364, -0.21475939452648163, -0.2288666069507599, -0.3011825382709503, -0.2443198263645172, 0.3596113622188568, -0.14555585384368896, -0.04760357365012169, 0.24565523862838745, -0.13856174051761627, 0.019540555775165558, 0.6420376896858215, -0.5051136016845703, -0.28108322620391846, 0.15326085686683655, -0.1181740015745163, -0.07644126564264297, -0.09492266923189163, -0.044614408165216446, 0.28639522194862366, 0.07587090134620667, 0.3716186285018921, 0.3349784016609192, 0.0008513964712619781, -0.030564332380890846, -0.13110776245594025, -0.210562065243721, 0.29094523191452026, 0.19490286707878113, 0.23611004650592804, 0.2211592197418213, 0.0545341856777668, -0.1998477280139923, -0.035804882645606995, 0.05276848003268242, -0.08131744712591171, -0.02011953666806221, 0.435552179813385, -0.04369652271270752, -0.02576567605137825, -0.5290391445159912, -0.5686801671981812, 0.18995043635368347, -0.08416241407394409, 0.1826200783252716, -0.11573034524917603, -0.06739631295204163, -0.304042786359787, 0.042623937129974365, -0.07802167534828186, -0.021745413541793823, 0.1823788285255432, 0.07941242307424545, -0.2668645679950714, 0.055881451815366745, -0.07700298726558685, 0.19090136885643005, -0.1526101678609848, 0.0957811027765274, 0.12126132845878601, 0.2611960172653198, 0.10169751942157745, -0.3987409770488739, -0.0017727017402648926, 0.1362127959728241, 0.4781358242034912, 0.018362542614340782, -0.08265791833400726, 0.1729598045349121, 0.045810211449861526, -0.10204499959945679, -0.21710816025733948, -0.17620442807674408, 0.0575556755065918, -0.3366033136844635, -0.044761426746845245, 0.13471557199954987, 0.3460840582847595, -0.16048169136047363, 0.08364376425743103, 0.4571967124938965, -0.016792945563793182, 0.34218546748161316, -0.14377883076667786, 0.24062860012054443, 0.052516870200634, -0.060673054307699203, -0.13310742378234863, 0.18047203123569489, 0.12906983494758606, 0.09137466549873352, 0.2827323079109192, -0.03558532893657684, -0.2706822156906128, 0.004667311906814575, 0.6162096858024597, 0.02995963767170906, 0.319414883852005, -0.08315178006887436, -0.3378826975822449, 0.14620280265808105, 0.00003254041075706482, 0.04182656481862068, 0.5353930592536926, 0.263228178024292, -0.11035993695259094, -0.016473041847348213, 0.0007063420489430428, 0.05156881362199783, 0.03337804228067398, 0.06909003108739853, 0.28565889596939087, 0.046130601316690445, 0.2759699821472168, 0.03866349905729294, -0.20053282380104065, 0.1444481462240219, -0.008435843512415886, 0.1951351910829544, -0.39696136116981506, 0.18787899613380432, -0.14235712587833405, -0.11657221615314484, -0.030460741370916367, 0.13702259957790375, -0.10422457754611969, -0.19904498755931854, -0.31349557638168335, 0.1589781790971756, 0.2137136310338974, 0.12652581930160522, 0.1616363376379013, 0.008839577436447144, -0.011312665417790413, -0.040885962545871735, -0.16349506378173828, -0.14585921168327332, -0.18618381023406982, 0.04621630534529686, 0.1946972757577896, 0.07352669537067413, 0.34953773021698, -0.19005528092384338, 0.1245679259300232, -0.10004936903715134, -0.12407225370407104, 0.018916543573141098, -0.07744249701499939, 0.5409657955169678, 0.26838386058807373, 0.2594895362854004, -0.16248226165771484, 0.11941094696521759, 0.37918758392333984, -0.4782690703868866, -0.05120787024497986, 0.33303606510162354, -0.3349438011646271, 0.09676339477300644, -0.2121219038963318, -0.3186376690864563, -0.5942170023918152, -0.393820196390152, 0.20549209415912628, -0.012952573597431183, 0.06968764960765839, 0.3293651044368744, 0.1026407927274704, 0.4716494083404541, 0.21775458753108978, 0.0916106328368187, -0.18446287512779236, -0.034202247858047485, 0.27942511439323425, -0.1346677839756012, -0.3884647488594055, 0.1575419157743454, -0.09710272401571274, 0.2852424383163452, 0.07990846037864685, -0.12456482648849487, -0.2630614638328552, -0.06691178679466248, 0.1975758671760559, -0.12467072904109955, -0.12070702016353607, 0.32315367460250854, -0.08457590639591217, -0.046994443982839584, -0.21153485774993896, -0.12139531970024109, -0.04822523146867752, 0.3319035470485687, -0.007172875106334686, 0.09451679140329361, 0.34159335494041443, -0.1624031662940979, 0.33099377155303955, -0.086829274892807, -0.039396751672029495, 0.40930861234664917, -0.3032320439815521, 0.27769890427589417, -0.09659316390752792, -0.4811324179172516, 0.007316203787922859, 0.05634882301092148, 0.06938278675079346, 0.07898079603910446, -0.2715212404727936, -0.24795778095722198, -0.3175481855869293, -0.25298166275024414, -0.41965073347091675, -0.07618515193462372, -0.0940631851553917, 0.1780710518360138, 0.009004540741443634, 0.17096185684204102, 0.18896839022636414, -0.4353348910808563, -0.10185053944587708, 0.0006983289495110512, 0.23761574923992157, 0.014692157506942749, -0.11296132206916809, -0.26121070981025696, -0.2340482473373413, -0.3139868974685669, 0.34559208154678345, -0.2557937800884247, 0.08330079168081284, -0.14002886414527893, 0.08952256292104721, 0.1889623999595642, 0.0027523632161319256, 0.7596026659011841, -0.18230697512626648, 0.22902143001556396, 0.38683488965034485, 0.2017732858657837, -0.6543712615966797, -0.02793971821665764, -0.29241788387298584, 0.3361032009124756, 0.09061166644096375, 0.39593610167503357, -0.42695170640945435, -0.04438889026641846, 0.15252520143985748, 0.031496159732341766, -0.09392307698726654, -0.24251526594161987, -0.268761545419693, -0.305156946182251, -0.00872795283794403, 0.021820925176143646, 0.009019395336508751, 0.4349668622016907, -0.17009973526000977, -0.1275985836982727, -0.40858718752861023, 0.16029301285743713, 0.11261392384767532, -0.025370381772518158, 0.2526397407054901, -0.05681600049138069, -0.009302837774157524, 0.06357204169034958, -0.007793843746185303, 0.1148451492190361, 0.3582157790660858, 0.027282021939754486, -0.45285409688949585, 0.26153305172920227, -0.021164219826459885, 0.24439942836761475, 0.07095641642808914, -0.1279032826423645, -0.08519912511110306, 0.008784686215221882, 0.07800476998090744, -0.014175412245094776, 0.09054642170667648, 0.34250906109809875, 0.03830529749393463, -0.3234170973300934, -0.40452247858047485, 0.2545504570007324, 0.30319440364837646, 0.04014196991920471, 0.3135269284248352, 0.00830753892660141, -0.16731426119804382, 0.061058737337589264, -0.13467392325401306, 0.8996838331222534, -0.060539811849594116, -0.10178528726100922, 0.6653999090194702, -0.24445517361164093, 0.47850513458251953, 0.030294790863990784, 0.09032666683197021, -0.2928260564804077, -0.27005523443222046, -0.01556906197220087, -0.2568277418613434, 0.2637608051300049, 0.08154911547899246, -0.4304998219013214, 0.3003609776496887, -0.2911157011985779, 0.20780865848064423, 0.021377265453338623, -0.054400116205215454, -0.060865044593811035, -0.11267402768135071, -0.34367111325263977, 0.16298037767410278, -0.26640784740448, 0.26880884170532227, -0.11475050449371338, -0.1441330760717392, -0.03311870992183685, -0.07534350454807281, -0.12978726625442505, 0.156576007604599, -0.3821195363998413, -0.16315089166164398, 0.11582645773887634, -0.20061376690864563, 0.07688458263874054, 0.18196846544742584, 0.07397866994142532, -0.10281199216842651, -0.3268235921859741, 0.17889878153800964, -0.07588336616754532, 0.13643333315849304, -0.0878419503569603, 0.00008251797407865524, 0.24698406457901, -0.10070439428091049, -0.3328224718570709, 0.12364082038402557, -0.06408064812421799, 0.21982301771640778, 0.2899291217327118, 0.18027859926223755, -0.07299606502056122, -0.26217129826545715, -0.21223635971546173, -0.17995142936706543, 0.3643168807029724, -0.27591511607170105, 0.1959189623594284, 0.009252186864614487, -0.10245171189308167, 0.08008144795894623, -0.05071103200316429, -0.12536104023456573, 0.00885426439344883, 0.4873362183570862, 0.4263884425163269, 0.28729376196861267, 0.26606518030166626, 0.2743079364299774, -0.08068206906318665, -0.3562264144420624, 0.2828983664512634, 0.11645577847957611, -0.3351705074310303, 0.30599480867385864, 0.14822229743003845, 0.011609658598899841, 0.016137178987264633, 0.49524739384651184, 0.025640267878770828, -0.02260187268257141, -0.07561516761779785, -0.2714719772338867, -0.29406115412712097, 0.21104662120342255, 0.007054522633552551, -0.04866582527756691, 0.11375197023153305, 0.18835878372192383, 0.28802821040153503, -0.15383341908454895, -0.35716745257377625, 0.12020952999591827, -0.39744576811790466, -0.026375461369752884, 0.022024109959602356, -0.08833708614110947, 0.2679440677165985, 0.07432864606380463, 0.13676564395427704, -0.0063329339027404785, -0.11593730747699738, -0.2485039234161377, -0.22176536917686462, 0.13630877435207367, -0.027841459959745407, 0.15121635794639587, 0.15154489874839783, -0.2163805067539215, -0.2809669077396393, -0.012905599549412727, 0.04690052941441536, 0.02016555145382881, -0.17441537976264954, 0.0505836084485054, 0.19102217257022858, 0.3978148102760315, -0.02178325690329075, 0.2827036380767822, -0.006748192012310028, 0.034538764506578445, -0.14337879419326782, 0.023768458515405655, 0.20309074223041534, 0.025237545371055603, -0.20873700082302094, -0.06448978930711746, 0.250851035118103, 0.16761931777000427, 0.09408628195524216, -0.3053339719772339, -0.12315577268600464, -0.09764514863491058, 0.0022101234644651413, 0.1308596134185791, -0.17236311733722687, 0.29908645153045654, -0.1103159710764885, 0.27010348439216614, -0.27798086404800415, 0.05242462828755379, 0.32695719599723816, -0.12120912224054337, 0.06788121163845062, 0.02834545075893402, -0.32221949100494385, 0.20129814743995667, -0.11265134811401367, 0.15114706754684448, 0.44060978293418884, -0.12479034066200256, 0.0929887592792511, 0.21740306913852692, -0.11620515584945679, -0.01579039916396141, 0.4607022702693939, 0.20200115442276, 0.039333634078502655, 0.1420462429523468, 0.022632688283920288, 0.03663700073957443, -0.04828596115112305, 0.10632060468196869, 0.2827982008457184, -0.47817057371139526, 0.003583267331123352, 0.10940305888652802, -0.0017194151878356934, -0.09504245966672897, -0.3151480555534363, 0.5316862463951111, -0.47294482588768005, -0.12424194067716599, -0.2933815121650696, -0.007862560451030731, -0.18876761198043823, 0.14117178320884705, -0.19200338423252106, -0.13009920716285706, -0.09602425992488861, -0.19645151495933533, 0.0039725229144096375, -0.14528177678585052, 0.2983595132827759, -0.12987855076789856, -0.06219598650932312, -0.15632513165473938, -0.07531437277793884, 0.42354726791381836, -0.04837723821401596, -0.1696937382221222, 0.07147528976202011, -0.15132053196430206, 0.21569368243217468, -0.09761323034763336, 0.5807604789733887, 0.3321210443973541, 0.32866913080215454, -0.2131844311952591, -0.16956748068332672, 0.25452694296836853, -0.3181827664375305, -0.10708765685558319, 0.15483710169792175, 0.158580482006073, 0.1606113612651825, 0.07852089405059814, 0.2066706120967865, -0.2241433709859848, 0.14201875030994415, 0.04365989565849304, -0.1447921097278595, -0.3188245892524719, 0.4858046770095825, -0.3899846076965332, -0.1255379617214203, -0.1277064085006714, -0.0744742676615715, -0.5568336248397827, 0.11908049136400223, 0.27113568782806396, 0.2195585072040558, 0.09889156371355057, -0.1955024003982544, 0.09587027132511139, -0.32252979278564453, 0.22150081396102905, 0.020387418568134308, 0.3648225665092468, -0.3144547641277313, 0.11566321551799774, -0.5239734649658203, 0.45923182368278503, -0.010784521698951721, 0.010512696579098701, 0.15419477224349976, -0.09312181174755096, -0.26544126868247986, -0.003914903849363327, 0.03069407492876053, 0.2047601193189621, 0.39989030361175537, 0.1453908383846283, -0.5745070576667786, -0.39090895652770996, -0.047737687826156616, -0.07274524867534637, 0.09164848178625107, -0.26210010051727295, 0.01292666420340538, -0.15178827941417694, 0.023295670747756958, -0.11175213754177094, -0.3203567862510681, 0.15119823813438416, 0.14068923890590668, 0.7023332118988037, 0.04464338719844818, 0.44112658500671387, 0.028585776686668396, -0.011712228879332542, 0.12163662910461426, -0.3079589605331421, -0.10504592955112457, 0.17643147706985474, -0.004793222993612289, 0.05286625772714615, -0.020993530750274658, 0.27261826395988464, -0.21756228804588318, -0.18123199045658112, -0.1439601182937622, 0.12817247211933136, -0.30535221099853516, 0.31196802854537964, -0.30867499113082886, -0.13937322795391083, -0.34222185611724854, -0.005794476717710495, 0.11767172068357468, 0.04527256637811661, -0.10811220109462738, 0.0493604838848114, 0.6277845501899719, -0.16532179713249207, -0.344037801027298, -0.10382513701915741, 0.3128975033760071, -0.035987578332424164, -0.11266226321458817, -0.5198070406913757, 0.05681978911161423, 0.4852415919303894, -0.06891506910324097, -0.1922021061182022, 0.2341877669095993, -0.14151841402053833, 0.13243868947029114, -0.021421773359179497, -0.09415674209594727, -0.009551025927066803, -0.03140852600336075, 0.21754518151283264, -0.14357918500900269 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.41715383529663086, -0.24179112911224365, 0.00040663033723831177, 0.1936674863100052, 0.18737871944904327, 0.057204313576221466, 0.5056349039077759, 0.10599516332149506, 0.1942843645811081, 0.13533522188663483, 0.06982944905757904, 0.1297208070755005, -0.20970956981182098, 0.3238826096057892, 0.08931056410074234, 0.0787794291973114, 0.02108100801706314, 0.15888871252536774, 0.03357606381177902, 0.07740560173988342, -0.21570289134979248, 0.20281542837619781, -0.38659900426864624, -0.33394479751586914, -0.13239914178848267, 0.14632655680179596, 0.11002542078495026, 0.14853033423423767, 0.17534787952899933, -0.6307144165039062, 0.26043379306793213, 0.07757391035556793, 0.22291702032089233, 0.7022686004638672, -0.00011092248314525932, 0.1807846575975418, 0.42094892263412476, -0.13875681161880493, -0.5919352769851685, -0.29539793729782104, -0.36836057901382446, -0.3184559643268585, 0.17475241422653198, -0.14602132141590118, -0.11559868603944778, 0.04162968695163727, -0.26451563835144043, -0.40169838070869446, 0.21963068842887878, 0.4454616606235504, 0.21177881956100464, 0.4712965488433838, -0.15099233388900757, -0.1280122697353363, 0.127410426735878, 0.008658461272716522, -0.1527627408504486, 0.29874587059020996, 0.0759948343038559, 0.24648034572601318, -0.030184529721736908, 0.4006466269493103, -0.04774819314479828, 0.19309429824352264, 0.21724075078964233, -0.04031093791127205, -0.06383999437093735, -0.2730312645435333, 0.07796817272901535, 0.22671860456466675, 0.3892455995082855, -0.3428208529949188, -0.1372247338294983, -0.4340839684009552, -0.05501923710107803, -0.40577933192253113, 0.24610373377799988, -0.01205454207956791, -0.24029295146465302, 0.08487561345100403, -0.3027438223361969, 0.15291601419448853, 0.03936363756656647, -0.10083965957164764, -0.05831325799226761, 0.13155481219291687, -0.025936398655176163, 0.17684727907180786, -0.01828650012612343, -0.03945457935333252, 0.11861824989318848, -0.27501359581947327, -0.07704527676105499, 0.19798341393470764, -0.5796871185302734, 0.06174644082784653, 0.35635265707969666, -0.48312023282051086, 0.22483620047569275, 0.07664106786251068, 0.3723798394203186, 0.08084526658058167, 0.12942153215408325, -0.0054171159863471985, 0.39903417229652405, 0.201741561293602, 0.18393981456756592, -0.24463827908039093, 0.16655316948890686, 0.35142287611961365, -0.004633639007806778, -0.3092014789581299, 0.045563530176877975, -0.09289656579494476, 0.26233425736427307, 0.01355961337685585, 0.31324148178100586, 0.052278902381658554, -0.3759034276008606, 0.19844064116477966, -0.25989577174186707, 0.06216374784708023, 0.3526676595211029, 0.2470085322856903, 0.3124094009399414, 0.3316802978515625, -0.1649697870016098, 0.2566642165184021, -0.17016294598579407, -0.45014405250549316, -0.23991693556308746, -0.3115684390068054, 0.02989833429455757, 0.05853271484375, 0.24302928149700165, -0.4115733206272125, 0.21278774738311768, 0.1143839880824089, 0.2314704805612564, -0.1508331596851349, 0.23506543040275574, -0.35599562525749207, 0.27147483825683594, 0.4170610308647156, 0.21322554349899292, 0.3055962920188904, 0.21308620274066925, -0.07812108099460602, 0.08656049519777298, 0.12929832935333252, -0.013574227690696716, -0.3794970214366913, 0.11882831156253815, 0.24181623756885529, -0.18547028303146362, 0.009185079485177994, -0.1626186966896057, 0.3421081006526947, 0.04925969988107681, -0.4903976619243622, 0.10061484575271606, -0.1393190324306488, -0.17882171273231506, -0.13887284696102142, 0.37678200006484985, 0.4191718101501465, -0.3163479268550873, -0.06317582726478577, -0.22237730026245117, -0.19334697723388672, 0.3068191111087799, 0.0627041608095169, -0.1867481917142868, 0.054598964750766754, -0.19890780746936798, -0.03240251913666725, 0.16526252031326294, -0.1338232159614563, -0.45056262612342834, 0.38398000597953796, -0.10031810402870178, 0.4216824173927307, 0.0033682063221931458, 0.034895945340394974, 0.04621310532093048, -0.11796548962593079, 0.20823536813259125, -0.04822053015232086, -0.34298568964004517, 0.13017049431800842, -0.2063288390636444, 0.09627816081047058, 0.17453159391880035, 0.026337362825870514, 0.10805495828390121, 0.14567747712135315, 0.11641564965248108, -0.030761096626520157, 0.19643589854240417, -0.04401015862822533, 0.005336775444447994, 0.290941059589386, 0.04242456331849098, -0.05881814658641815, 0.0003675702027976513, -0.18107229471206665, -0.47020095586776733, 0.3554164171218872, 0.2276417315006256, 0.026553116738796234, 0.06789757311344147, 0.037730976939201355, -0.3046540319919586, 0.14193536341190338, -0.2711752951145172, -0.47716018557548523, 0.19495271146297455, 0.3907281756401062, -0.1118481308221817, 0.08882617950439453, -0.27734309434890747, 0.30205076932907104, -0.16964849829673767, -0.10022283345460892, -0.15285228192806244, 0.12631377577781677, 0.13407163321971893, -0.3565653860569, -0.033736422657966614, 0.0897877961397171, 0.2519126236438751, -0.13449296355247498, -0.23499947786331177, 0.4969184398651123, 0.10699059069156647, 0.06999067217111588, -0.07817301899194717, -0.17321224510669708, 0.1972215622663498, -0.1314573734998703, -0.23216545581817627, 0.4724207818508148, 0.3397762179374695, -0.24348503351211548, -0.139333575963974, 0.18679359555244446, -0.20517906546592712, 0.25646328926086426, -0.06942081451416016, 0.09129354357719421, 0.3283311128616333, 0.3197958469390869, -0.09283758699893951, -0.021259937435388565, 0.20771871507167816, -0.17773973941802979, 0.10312396287918091, -0.16109244525432587, -0.25325942039489746, -0.042863450944423676, 0.19462566077709198, 0.19555354118347168, 0.040655799210071564, 0.05297519266605377, -0.3236103653907776, -0.2086988389492035, 0.37065938115119934, 0.08802023530006409, 0.4839426279067993, 0.07912041246891022, 0.27212271094322205, 0.09226427227258682, -0.010665533132851124, -0.1263321489095688, 0.2971057593822479, 0.0752386674284935, 0.09849736094474792, 0.3603758215904236, 0.249745711684227, -0.12042822688817978, -0.4016779363155365, -0.2251656949520111, 0.13589909672737122, 0.13366377353668213, -0.30523481965065, 0.02976936288177967, -0.12822186946868896, -0.2748437821865082, 0.11330666393041611, -0.40215423703193665, -0.22254368662834167, -0.33376699686050415, -0.2058945596218109, 0.3451237678527832, -0.14696329832077026, 0.14990010857582092, -0.18047523498535156, -0.08826880156993866, 0.3082577586174011, -0.0031163766980171204, -0.23223546147346497, -0.11356180906295776, -0.2594830095767975, 0.03214048966765404, 0.041280146688222885, -0.32347846031188965, 0.43474844098091125, -0.12349919229745865, -0.1801854372024536, -0.15129493176937103, -0.07454520463943481, 0.17409095168113708, 0.04358678683638573, 0.20014075934886932, 0.27433884143829346, 0.21975891292095184, 0.03922087699174881, 0.004569302313029766, 0.42418763041496277, -0.2919018566608429, 0.014643726870417595, 0.3762080669403076, 0.20119978487491608, 0.2666821777820587, -0.22972628474235535, -0.2490319013595581, -0.0779716968536377, -0.43108004331588745, -0.17423127591609955, -0.022772368043661118, 0.027364343404769897, 0.4507269561290741, 0.26248377561569214, 0.3891984820365906, 0.3127641975879669, -0.056631900370121, -0.33487457036972046, -0.34751859307289124, 0.13222375512123108, -0.1974775493144989, -0.4097190797328949, 0.11449401080608368, 0.0011450760066509247, 0.16648569703102112, 0.2781497836112976, -0.30129939317703247, 0.08036452531814575, -0.04083631932735443, 0.11887426674365997, -0.05930187553167343, -0.11201135814189911, 0.1432746797800064, -0.06137789413332939, -0.10192699730396271, -0.33384159207344055, -0.18509113788604736, -0.12761548161506653, -0.15296083688735962, 0.23241183161735535, 0.038184233009815216, 0.5950310230255127, 0.20778194069862366, 0.5280640721321106, 0.4836471676826477, 0.05819733813405037, 0.6157118082046509, -0.23773780465126038, 0.21612858772277832, -0.3673555552959442, -0.3503072261810303, 0.22255247831344604, -0.008587956428527832, -0.13208279013633728, 0.20818844437599182, -0.14705440402030945, -0.2681722044944763, -0.2567494511604309, 0.03510301932692528, -0.06477076560258865, -0.17551454901695251, 0.05122128129005432, -0.26428303122520447, 0.30241239070892334, 0.03593175485730171, 0.20614317059516907, -0.24645626544952393, -0.057494208216667175, -0.23733903467655182, 0.07608210295438766, -0.004537761211395264, 0.0064100660383701324, -0.29676538705825806, 0.02146625891327858, -0.525202751159668, 0.30211877822875977, 0.22278746962547302, 0.6154460906982422, -0.03917122632265091, -0.20886868238449097, 0.045050110667943954, 0.011758241802453995, 0.5304383039474487, -0.37891387939453125, -0.024058610200881958, 0.2964755892753601, -0.09507772326469421, -0.4073818325996399, -0.11024543642997742, -0.23251792788505554, 0.34652870893478394, 0.2328939288854599, 0.14283588528633118, -0.22242671251296997, -0.08862239122390747, 0.13660836219787598, 0.13600246608257294, -0.07512585073709488, -0.18465140461921692, -0.2278956025838852, -0.22022289037704468, -0.19454647600650787, -0.12673798203468323, 0.08430036157369614, 0.24322646856307983, -0.19497670233249664, -0.08503548800945282, -0.10335495322942734, 0.028897974640130997, 0.0844477191567421, 0.10441724956035614, 0.37885746359825134, 0.09033620357513428, 0.2310878336429596, 0.36957818269729614, 0.101572684943676, 0.31000593304634094, 0.5074753761291504, 0.40655839443206787, -0.3184790015220642, 0.2045600712299347, 0.07758719474077225, 0.08565306663513184, 0.2882377505302429, -0.11168365180492401, -0.027631253004074097, 0.07771830260753632, 0.09345776587724686, -0.2894921898841858, 0.19438016414642334, 0.244922935962677, -0.05395352095365524, -0.14954215288162231, -0.5760557651519775, 0.3336382806301117, 0.030438266694545746, 0.01837589591741562, 0.3064608573913574, -0.24649383127689362, -0.2605730891227722, -0.03522980213165283, -0.05465131253004074, 0.4981870651245117, 0.13433346152305603, 0.06615647673606873, 0.4267178177833557, -0.2779957056045532, 0.21073654294013977, -0.14382004737854004, 0.22079701721668243, -0.18793541193008423, -0.39195773005485535, -0.09410224854946136, -0.10854166746139526, 0.05410027131438255, -0.0021507740020751953, -0.22879189252853394, 0.2563299238681793, 0.024575069546699524, 0.25165098905563354, 0.032137639820575714, 0.051376163959503174, -0.4211880564689636, -0.1044379472732544, -0.23103025555610657, 0.22668826580047607, 0.03917396068572998, 0.059566497802734375, -0.19655033946037292, -0.1511443555355072, 0.20585939288139343, -0.34311091899871826, -0.2650851011276245, -0.0005399808287620544, -0.2571268677711487, 0.030491400510072708, -0.07894931733608246, -0.5586477518081665, -0.009275541640818119, 0.16463878750801086, -0.11657360196113586, -0.25749671459198, -0.1603613644838333, 0.0731905847787857, 0.18230673670768738, 0.4032885432243347, -0.030460922047495842, 0.16472715139389038, 0.32204774022102356, -0.01569083146750927, -0.12030457705259323, 0.17139501869678497, -0.20562836527824402, -0.1386832892894745, 0.07920464873313904, 0.05252957344055176, 0.14775395393371582, -0.1950281262397766, 0.07209768891334534, -0.12445354461669922, 0.0610792450606823, -0.2714119255542755, 0.13799914717674255, -0.05229321867227554, -0.24431131780147552, -0.0718853697180748, -0.1764228492975235, -0.10695678740739822, -0.14048556983470917, 0.3965621590614319, -0.12225689738988876, 0.26397958397865295, 0.597973108291626, 0.26283517479896545, -0.06992267072200775, -0.2239041030406952, 0.2011469602584839, 0.06650207936763763, -0.25916793942451477, 0.35765138268470764, -0.06612715870141983, -0.008414670825004578, -0.0689551904797554, 0.373586505651474, -0.013727273792028427, -0.06530038267374039, -0.1425478160381317, -0.2276575267314911, -0.3390946388244629, -0.07664865255355835, -0.06480376422405243, 0.1809474378824234, -0.06148657202720642, 0.020505642518401146, 0.34409382939338684, -0.24832794070243835, -0.3373638093471527, -0.22064857184886932, -0.22573330998420715, 0.1367565095424652, -0.11563590168952942, 0.0903356522321701, 0.2451535016298294, -0.024535294622182846, 0.14017508924007416, 0.18334506452083588, -0.0654689371585846, -0.25145313143730164, -0.07216539233922958, 0.09109701961278915, -0.012687429785728455, -0.21201425790786743, -0.10044456273317337, 0.06918268650770187, -0.3066593110561371, -0.3149638772010803, 0.25425514578819275, 0.02618684619665146, -0.064849853515625, 0.33394718170166016, 0.12089449167251587, 0.22691184282302856, -0.24580208957195282, -0.0012793317437171936, -0.0492914617061615, -0.07142286002635956, -0.26540079712867737, 0.1434948891401291, 0.07414446026086807, 0.01865328848361969, -0.013711507432162762, -0.030240558087825775, -0.0359061062335968, -0.09589851647615433, 0.34572577476501465, -0.3809930682182312, 0.19852125644683838, 0.285386860370636, 0.4326707422733307, 0.30729976296424866, -0.2745673656463623, -0.06012989580631256, -0.028383266180753708, 0.2137221097946167, -0.2702537178993225, 0.1047893539071083, -0.1389298141002655, 0.3404971957206726, 0.18129053711891174, 0.12345428764820099, 0.042962197214365005, -0.28001558780670166, 0.07717449963092804, 0.17459341883659363, 0.07684164494276047, -0.17759568989276886, 0.2129434049129486, 0.4377635717391968, -0.16202004253864288, 0.16365063190460205, -0.09750146418809891, 0.057144153863191605, 0.012012600898742676, 0.4437311887741089, -0.07663001865148544, 0.16321323812007904, 0.2037426233291626, -0.13655424118041992, -0.0510561540722847, -0.31396612524986267, -0.2231903225183487, 0.2932848334312439, -0.1478387415409088, 0.22116538882255554, 0.060754772275686264, 0.11484970897436142, -0.24398238956928253, 0.12409766018390656, -0.31929126381874084, -0.08079949021339417, -0.15559443831443787, 0.046974968165159225, -0.1781298667192459, -0.12487311661243439, -0.2028406411409378, -0.1335259974002838, 0.15048789978027344, 0.1290387511253357, 0.37126511335372925, 0.04325965419411659, -0.007196880877017975, -0.6050088405609131, -0.06622254103422165, 0.32569020986557007, 0.03655116632580757, -0.2266712337732315, 0.23770320415496826, 0.42542457580566406, 0.0902428925037384, 0.384297251701355, 0.3726785480976105, 0.37976545095443726, 0.33745715022087097, -0.06667105853557587, 0.11292346566915512, 0.1543492078781128, -0.1648842990398407, -0.2762874662876129, 0.17856499552726746, -0.04581466317176819, 0.2733030319213867, 0.30344855785369873, 0.127070352435112, -0.14464205503463745, 0.11705505847930908, 0.04499286413192749, 0.05757369473576546, -0.6023662090301514, 0.4265977144241333, -0.47014185786247253, 0.01853056252002716, -0.12080226838588715, -0.1203802302479744, -0.23760822415351868, 0.08212605118751526, 0.28655165433883667, 0.04001038894057274, 0.22747477889060974, -0.09906156361103058, 0.10672980546951294, -0.12554103136062622, 0.2446664273738861, -0.002738114446401596, -0.25581276416778564, -0.20280636847019196, -0.16729304194450378, -0.800927996635437, 0.01487821340560913, 0.08567316830158234, -0.10914067178964615, 0.14447858929634094, 0.1989773064851761, -0.11894913762807846, 0.24640202522277832, 0.38796383142471313, -0.23398829996585846, -0.13093848526477814, 0.32689419388771057, -0.19536036252975464, -0.40794238448143005, -0.4459081292152405, -0.02507445402443409, -0.012066084891557693, -0.24298134446144104, 0.2650613784790039, -0.22267672419548035, 0.14528945088386536, 0.12097446620464325, -0.028392702341079712, 0.11598490178585052, -0.004181355237960815, 0.34618595242500305, 0.16728222370147705, 0.3141985833644867, -0.14469444751739502, 0.17871619760990143, -0.3299380838871002, -0.1000359058380127, -0.30502602458000183, 0.3060706555843353, -0.11265760660171509, 0.4945885241031647, -0.12337759137153625, -0.012499149888753891, -0.16372571885585785, 0.2108144909143448, 0.2584313750267029, -0.26673921942710876, -0.35772550106048584, 0.2748015224933624, -0.2798822224140167, 0.2512659430503845, 0.03180090710520744, 0.3652271032333374, -0.03651856631040573, 0.13531608879566193, -0.26973479986190796, -0.532045304775238, 0.44577205181121826, -0.4308788776397705, -0.3953132927417755, -0.06510071456432343, 0.18633827567100525, 0.24522143602371216, -0.2555919587612152, -0.3518376052379608, 0.1235724464058876, 0.3564773499965668, -0.1301044225692749, -0.2069166600704193, -0.007076427340507507, -0.1155150979757309, 0.054367545992136, -0.07792149484157562, 0.14564241468906403, 0.16641312837600708, -0.15768438577651978, 0.260435551404953, -0.06450667232275009 ]
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.29441067576408386, 0.39009320735931396, -0.1317225843667984, 0.06419653445482254, 0.4353678822517395, 0.13932782411575317, 0.16796399652957916, 0.5879850387573242, -0.026145730167627335, 0.23434165120124817, -0.19477713108062744, -0.04730890318751335, 0.059417400509119034, 0.31870901584625244, 0.06435982137918472, -0.3084110617637634, 0.06527985632419586, -0.013006404042243958, -0.13955245912075043, 0.030854396522045135, -0.0759803056716919, 0.27826204895973206, 0.010026417672634125, 0.06546448171138763, 0.018109174445271492, 0.09367071092128754, -0.0290925744920969, -0.09794490784406662, -0.2686379849910736, -0.43473756313323975, 0.4153392016887665, 0.061375632882118225, 0.16973774135112762, 0.38088488578796387, -0.00010737670527305454, 0.14723344147205353, 0.329101026058197, 0.008616896346211433, -0.2500196695327759, -0.35319507122039795, -0.3288859724998474, -0.11417633295059204, -0.19650353491306305, -0.14808115363121033, -0.08305326104164124, 0.21273599565029144, 0.2038821429014206, -0.26071298122406006, 0.041716381907463074, 0.5573633909225464, 0.2718280255794525, 0.0907752737402916, 0.30793702602386475, -0.3647714853286743, 0.26572656631469727, 0.14753922820091248, -0.03651612251996994, 0.0705636516213417, 0.07858918607234955, 0.0108674056828022, 0.3562815189361572, 0.04600030183792114, -0.13399702310562134, 0.07433134317398071, -0.15536758303642273, -0.08402253687381744, -0.09248162060976028, -0.34242284297943115, 0.2141401469707489, 0.3073769509792328, 0.5096560120582581, -0.2044650912284851, -0.3611646592617035, 0.22677940130233765, -0.05986262112855911, -0.2795485854148865, 0.2698040008544922, 0.18022273480892181, 0.09009139239788055, 0.16981875896453857, 0.17325735092163086, -0.4855837821960449, -0.18901343643665314, 0.052865054458379745, -0.41417890787124634, 0.10760544240474701, -0.11776363849639893, 0.004858877509832382, -0.10592116415500641, -0.12039390206336975, 0.30164578557014465, -0.054791636765003204, -0.03756145015358925, 0.25901269912719727, -0.274545818567276, -0.18414723873138428, 0.10355664789676666, 0.031147819012403488, 0.19200506806373596, 0.049068477004766464, 0.13623103499412537, -0.10176479071378708, -0.5062007308006287, -0.06661354750394821, 0.24186865985393524, -0.10953810811042786, -0.0002668425440788269, 0.3804110884666443, 0.2949267029762268, 0.24163657426834106, 0.14843350648880005, 0.04731418192386627, -0.1586332768201828, -0.35869255661964417, 0.026933439075946808, -0.113103948533535, 0.492836058139801, -0.20854149758815765, -0.3899921774864197, 0.1616978794336319, -0.09008188545703888, -0.1214747503399849, -0.017612341791391373, 0.15179455280303955, -0.024420879781246185, 0.07535751163959503, 0.09186981618404388, 0.1404547095298767, -0.008870641700923443, -0.1377049684524536, -0.26610028743743896, 0.2041446715593338, -0.012519635260105133, 0.07130265235900879, 0.23099975287914276, -0.34486719965934753, 0.09529971331357956, -0.025891389697790146, -0.46248334646224976, 0.08283345401287079, -0.136152982711792, -0.07501623034477234, -0.24587735533714294, 0.36322858929634094, 0.22659099102020264, 0.10456559807062149, 0.0013825930655002594, 0.11343981325626373, -0.2949781119823456, 0.27925634384155273, -0.3678761422634125, -0.06789030879735947, -0.1227777749300003, 0.2941954433917999, -0.3227277398109436, -0.24663913249969482, -0.5071802735328674, -0.03396548703312874, -0.052504248917102814, -0.3056931495666504, -0.12345971912145615, -0.17450372874736786, -0.1805347502231598, -0.251517653465271, 0.11249280720949173, 0.6013510823249817, -0.20639032125473022, 0.02088567614555359, -0.41966238617897034, -0.4201270043849945, 0.189963698387146, 0.2693204879760742, -0.03414066880941391, 0.4477236270904541, -0.3025842607021332, 0.08851774036884308, 0.4392075836658478, -0.1254834681749344, -0.7618818879127502, -0.0033202641643583775, -0.2596685588359833, -0.1898876577615738, 0.17900145053863525, 0.0790310725569725, 0.2497507631778717, -0.10000554472208023, 0.24605689942836761, 0.13707482814788818, 0.012918010354042053, -0.04594685882329941, -0.23870013654232025, -0.010564858093857765, -0.004589378833770752, 0.18394118547439575, 0.10487763583660126, 0.20509816706180573, 0.15016809105873108, -0.07256791740655899, 0.23575568199157715, 0.16073350608348846, 0.09941532462835312, 0.3408912420272827, 0.3313904106616974, -0.026513762772083282, -0.019944271072745323, -0.18357425928115845, -0.1992594599723816, 0.12322906404733658, -0.21627862751483917, 0.10841502249240875, -0.20868052542209625, -0.13046500086784363, -0.44674229621887207, 0.05946260690689087, -0.06538482010364532, -0.09304271638393402, 0.14991708099842072, -0.00027620792388916016, 0.3107367157936096, 0.33210763335227966, -0.02035558968782425, 0.32068198919296265, 0.2677033245563507, 0.10301177948713303, -0.13754382729530334, 0.5665913820266724, -0.13397882878780365, 0.0568045973777771, 0.4536592662334442, -0.2412830889225006, 0.23640355467796326, -0.08168166130781174, -0.062301166355609894, 0.15459385514259338, 0.060469385236501694, 0.34222784638404846, 0.47713372111320496, 0.2396411895751953, 0.17216558754444122, -0.43543529510498047, 0.21166390180587769, 0.34326839447021484, 0.07830245792865753, 0.14114481210708618, -0.19090679287910461, 0.02136162668466568, 0.15398503839969635, 0.035016708076000214, -0.017607316374778748, 0.2682006061077118, 0.5447123050689697, 0.0763237327337265, 0.06330139935016632, -0.06420587003231049, 0.26791590452194214, 0.5545852780342102, 0.22247810661792755, -0.06776239722967148, -0.24191701412200928, 0.14570970833301544, 0.5387059450149536, -0.03721790015697479, 0.05278589949011803, 0.2355954349040985, -0.14766794443130493, -0.06319104880094528, -0.19531014561653137, 0.209787055850029, 0.17180964350700378, 0.0596289187669754, 0.15652203559875488, 0.01063515618443489, -0.07776983827352524, -0.26678815484046936, 0.05513343587517738, 0.07252133637666702, 0.14529500901699066, 0.14184236526489258, 0.1219758465886116, 0.20613351464271545, -0.08200912922620773, -0.30872857570648193, 0.030994316563010216, 0.30566662549972534, -0.131101593375206, -0.07953859120607376, -0.25926828384399414, 0.00494128093123436, -0.2732791602611542, -0.3159630298614502, -0.21133027970790863, -0.3952905833721161, 0.06054206192493439, 0.26576128602027893, 0.06559993326663971, -0.010298384353518486, -0.056036438792943954, 0.03399968147277832, 0.24361513555049896, -0.30984213948249817, -0.13410870730876923, -0.15004943311214447, -0.10418925434350967, 0.1706148236989975, 0.23775996267795563, -0.30771583318710327, 0.39823487401008606, -0.6368309259414673, 0.1199379712343216, -0.5480057001113892, -0.2346217930316925, -0.04311738908290863, -0.18990632891654968, 0.09422885626554489, 0.17561450600624084, 0.40220165252685547, 0.34272921085357666, 0.2505163550376892, 0.1937544345855713, -0.024793073534965515, -0.05100630968809128, 0.08910982310771942, -0.13872043788433075, -0.04412383958697319, 0.18273384869098663, -0.4613676965236664, -0.3021492063999176, -0.22804981470108032, 0.0444352850317955, 0.0629069060087204, 0.2366311103105545, -0.2858436703681946, 0.17098887264728546, 0.06599463522434235, 0.13281075656414032, -0.3080635368824005, -0.12229657918214798, -0.1796015202999115, 0.4985625743865967, -0.23718102276325226, -0.2333056777715683, 0.10590077936649323, 0.1302611082792282, 0.4757523238658905, 0.1674671769142151, -0.44977009296417236, 0.17924362421035767, -0.34597042202949524, 0.15347951650619507, -0.04684629291296005, 0.07588733732700348, 0.3201245069503784, 0.14537306129932404, -0.11372003704309464, -0.056993067264556885, -0.1610035002231598, -0.05003886669874191, -0.38550928235054016, 0.23301124572753906, -0.03675731271505356, 0.2503891587257385, -0.12100684642791748, 0.3981987237930298, 0.25511041283607483, 0.07454706728458405, 0.30406779050827026, -0.19432637095451355, 0.1306033879518509, -0.1279258131980896, -0.18894711136817932, -0.0984252542257309, 0.15770359337329865, -0.11632400751113892, -0.19678689539432526, -0.018463902175426483, 0.0741211473941803, -0.16941308975219727, -0.1042795181274414, -0.20427918434143066, -0.28362467885017395, -0.13036225736141205, 0.017782311886548996, 0.417281836271286, 0.1859097182750702, 0.01568310707807541, -0.16743069887161255, -0.09354198724031448, 0.24436333775520325, 0.1396634727716446, -0.0014966726303100586, -0.018045052886009216, -0.12513697147369385, -0.18431079387664795, -0.6704334020614624, 0.3441165089607239, -0.1174287274479866, 0.2354000210762024, -0.09272401034832001, 0.18525055050849915, 0.11048130691051483, -0.04633784294128418, 0.5471500754356384, 0.06253740191459656, 0.3733004927635193, 0.35639429092407227, 0.27668243646621704, -0.14604613184928894, -0.05251044034957886, -0.13045160472393036, 0.2965843379497528, -0.02636125311255455, 0.3771854341030121, -0.2650288939476013, -0.05549636110663414, 0.22224508225917816, 0.18887139856815338, -0.103156678378582, 0.18050460517406464, -0.06394786387681961, -0.4556209444999695, -0.2093120664358139, -0.17720162868499756, -0.08709842711687088, 0.27388647198677063, -0.15301112830638885, -0.08726147562265396, 0.06726769357919693, -0.14736944437026978, -0.017555594444274902, -0.16865693032741547, 0.3812933564186096, -0.1637209951877594, 0.17716248333454132, -0.009664054960012436, -0.2981497049331665, 0.5925556421279907, 0.911689817905426, -0.0094221830368042, -0.4505525827407837, -0.06999701261520386, 0.10417824238538742, -0.1924930214881897, 0.03705460578203201, -0.10771496593952179, -0.1556163728237152, -0.13476642966270447, 0.12147483229637146, -0.16979961097240448, 0.21793454885482788, 0.26681578159332275, 0.07851208001375198, -0.41894689202308655, -0.3319604694843292, 0.40777426958084106, 0.16759100556373596, -0.04226606339216232, 0.4756699502468109, 0.12317825853824615, 0.005215153098106384, -0.15127474069595337, -0.14658701419830322, 0.7076452374458313, -0.17085181176662445, 0.1218787431716919, 0.3979231119155884, -0.16708938777446747, 0.2951294481754303, 0.053989723324775696, 0.054950643330812454, -0.35602888464927673, 0.2241543084383011, -0.05079846829175949, -0.09560933709144592, 0.042288947850465775, 0.03315947204828262, -0.22615288197994232, 0.37607407569885254, -0.19127054512500763, 0.0057617612183094025, 0.23429906368255615, 0.2299368977546692, -0.23252061009407043, 0.1433074027299881, -0.24940568208694458, 0.23257938027381897, -0.17009110748767853, 0.5963366031646729, 0.012604912742972374, -0.1578865647315979, -0.2352520376443863, -0.08879242837429047, -0.4586823582649231, 0.22263073921203613, -0.35314640402793884, 0.04721802473068237, -0.1291952133178711, -0.22001247107982635, 0.06456001102924347, 0.15864776074886322, 0.30449172854423523, 0.23625591397285461, -0.5237358212471008, 0.26703813672065735, -0.3025304973125458, -0.3513714373111725, 0.17285026609897614, 0.21179835498332977, 0.21361549198627472, -0.03559069335460663, -0.275493323802948, 0.19301310181617737, 0.016578957438468933, -0.1336367130279541, -0.15974381566047668, -0.3023329973220825, 0.09608469903469086, -0.28713399171829224, 0.030884329229593277, -0.17845550179481506, -0.06391707807779312, -0.25925615429878235, 0.21087831258773804, 0.24442870914936066, 0.17908644676208496, -0.077031709253788, -0.20085348188877106, -0.2742713987827301, -0.12531709671020508, 0.4576686918735504, -0.08990699052810669, 0.03626634180545807, 0.30033499002456665, 0.1418551802635193, -0.04210978373885155, -0.23702648282051086, -0.07589437067508698, 0.0870874896645546, -0.07054269313812256, 0.20107048749923706, -0.2461969256401062, 0.4602617621421814, -0.19835342466831207, 0.03105824440717697, 0.007281113415956497, -0.06026146560907364, -0.017448756843805313, -0.41840967535972595, -0.003498847596347332, 0.13995037972927094, 0.06899875402450562, 0.008093636482954025, 0.0801757425069809, 0.337944895029068, 0.07537207752466202, -0.24152356386184692, -0.3141224980354309, 0.15333527326583862, 0.010091898962855339, -0.26027625799179077, 0.3766641318798065, 0.1265028864145279, 0.24597187340259552, -0.10167653858661652, 0.18485566973686218, -0.21972177922725677, -0.2210969477891922, -0.2645953595638275, 0.000029684975743293762, 0.058165043592453, -0.043395817279815674, -0.08841501921415329, 0.12358831614255905, -0.3815775513648987, -0.28942009806632996, 0.24473629891872406, 0.08464232087135315, 0.4267972707748413, -0.02426273375749588, -0.06266185641288757, 0.1742568463087082, 0.02564406394958496, -0.07157351076602936, 0.052293188869953156, -0.050692975521087646, 0.0010750368237495422, -0.024259349331259727, 0.30786141753196716, 0.009836304001510143, -0.14883126318454742, -0.30806779861450195, -0.012468114495277405, 0.06957720220088959, -0.08357422053813934, 0.4794926047325134, -0.23819003999233246, 0.058693502098321915, 0.3324649930000305, 0.13153670728206635, 0.309673547744751, -0.5152159333229065, 0.11309471726417542, 0.04085975140333176, 0.28669875860214233, -0.3299863040447235, -0.12997741997241974, -0.23883557319641113, 0.013305663131177425, -0.12264043092727661, -0.023742802441120148, -0.06547459959983826, 0.15896283090114594, 0.2537429928779602, 0.1377556025981903, 0.37715473771095276, -0.194801926612854, 0.2289056032896042, 0.30932989716529846, 0.10268707573413849, 0.18625317513942719, 0.22176335752010345, 0.07996480911970139, -0.09696844965219498, 0.43506699800491333, -0.2293921709060669, 0.15007571876049042, -0.06771136820316315, 0.07908245921134949, 0.18580372631549835, -0.2016679346561432, -0.3423801362514496, 0.2099466770887375, -0.10701803863048553, -0.04168529808521271, 0.03822515904903412, 0.2646932601928711, -0.38084760308265686, 0.2599397301673889, -0.24715910851955414, 0.21804305911064148, 0.03969181329011917, -0.10703779757022858, -0.07102181017398834, -0.2772124707698822, -0.16157390177249908, 0.1111864298582077, 0.05440310388803482, -0.057487279176712036, -0.11724580824375153, -0.000424407422542572, -0.41129910945892334, -0.4172861576080322, 0.04534309729933739, 0.1922144889831543, 0.1519668996334076, -0.12516120076179504, 0.4158017933368683, -0.06668597459793091, -0.2817399799823761, 0.1539517492055893, 0.48880136013031006, 0.49098360538482666, 0.16524145007133484, 0.2514759302139282, -0.1447678655385971, -0.2571273744106293, -0.21323657035827637, 0.07024981826543808, 0.11483705043792725, -0.033470071852207184, 0.007120581343770027, 0.2830831706523895, 0.2091299146413803, -0.15408654510974884, 0.12444868683815002, 0.002956502139568329, 0.3419489562511444, 0.05638037994503975, 0.37019360065460205, -0.3759681284427643, -0.09316641092300415, -0.2818804383277893, -0.08912762254476547, -0.39366787672042847, -0.19347968697547913, 0.12496548891067505, 0.03782987222075462, 0.009135846048593521, -0.268219918012619, 0.12840184569358826, 0.032174646854400635, 0.18458887934684753, 0.26962339878082275, 0.20586809515953064, -0.24691694974899292, -0.3324059247970581, -0.504206120967865, 0.14899995923042297, -0.1049714982509613, -0.21467362344264984, -0.14114275574684143, 0.02150070108473301, -0.21088427305221558, 0.06252925097942352, 0.29793596267700195, -0.01730494759976864, -0.18923990428447723, -0.16133418679237366, -0.18593712151050568, -0.013821173459291458, -0.17595355212688446, 0.03149545565247536, 0.03161880746483803, -0.33354708552360535, 0.2791331708431244, -0.34898117184638977, 0.07214516401290894, -0.20299223065376282, 0.05827745050191879, 0.08456194400787354, -0.02090570330619812, 0.2773118019104004, 0.1782321035861969, 0.16332143545150757, -0.07166159152984619, -0.1242833137512207, -0.46047818660736084, -0.07522158324718475, -0.19515858590602875, 0.06040487065911293, -0.10340285301208496, 0.09617390483617783, -0.18126721680164337, -0.42622971534729004, -0.12998494505882263, 0.05917438119649887, -0.15105649828910828, 0.0678853765130043, -0.18107600510120392, -0.029920583590865135, -0.050120726227760315, 0.1820131540298462, 0.17484454810619354, 0.047105297446250916, -0.0015654154121875763, 0.09696518629789352, -0.29985326528549194, -0.2840430438518524, 0.16382646560668945, 0.01881062611937523, -0.007454950362443924, -0.09210691601037979, 0.04840271919965744, 0.23156240582466125, 0.06438910961151123, -0.18918228149414062, 0.23621311783790588, 0.41562342643737793, 0.009564390406012535, -0.16962966322898865, 0.193717822432518, -0.11111509799957275, 0.14572811126708984, 0.1789950281381607, 0.4593869745731354, -0.040630415081977844, -0.11746743321418762, 0.022175680845975876, -0.04826795682311058 ]
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.11903820931911469, 0.1679280400276184, -0.04717914015054703, 0.08318368345499039, 0.058133721351623535, -0.18824359774589539, 0.26953986287117004, 0.09011983126401901, 0.031670764088630676, 0.3004502058029175, 0.15717899799346924, -0.040688324719667435, -0.03392978012561798, 0.013773402199149132, -0.22112777829170227, 0.034535303711891174, -0.037572480738162994, 0.46077099442481995, -0.16118204593658447, -0.01883428543806076, -0.21404269337654114, 0.058619968593120575, 0.026600681245326996, 0.14669407904148102, 0.0929168239235878, 0.05884305015206337, 0.3130096197128296, 0.28682202100753784, -0.34678784012794495, -0.4643649756908417, 0.30157122015953064, 0.2356014996767044, 0.0029152706265449524, 0.2852758765220642, -0.00012826443708036095, -0.033366840332746506, 0.20383122563362122, -0.0626530572772026, -0.4011745750904083, -0.4367169737815857, -0.5333261489868164, -0.26590418815612793, 0.30541691184043884, -0.34576505422592163, 0.07803695648908615, -0.2222447544336319, 0.0719514787197113, -0.7639086842536926, 0.593595564365387, 0.17307384312152863, 0.042201749980449677, 0.24000361561775208, -0.05842820554971695, 0.06768643856048584, 0.09102485328912735, 0.18285459280014038, -0.19834066927433014, 0.05761023983359337, 0.22725535929203033, 0.15339037775993347, 0.29522374272346497, 0.25443726778030396, -0.14236776530742645, 0.1849687695503235, 0.41324132680892944, -0.23344169557094574, 0.1443343609571457, -0.18182304501533508, -0.06217866390943527, 0.41508713364601135, 1.1197655200958252, 0.11639495193958282, -0.29343512654304504, -0.12092533707618713, -0.12897799909114838, 0.08569146692752838, 0.42943546175956726, -0.028680039569735527, -0.21897844970226288, 0.06807166337966919, 0.049464575946331024, -0.23021218180656433, -0.2342122495174408, 0.09087414294481277, -0.20127536356449127, 0.4058738052845001, -0.02975422516465187, 0.247170090675354, 0.007698841392993927, -0.15470018982887268, 0.1335834115743637, 0.04338089004158974, -0.044564057141542435, 0.033728666603565216, -0.32124999165534973, -0.1692342460155487, 0.09083519130945206, -0.4048354923725128, -0.04761786386370659, 0.517432689666748, 0.4020606577396393, 0.03273024782538414, -0.34416064620018005, -0.0132741779088974, 0.17452670633792877, 0.19089743494987488, 0.6876800656318665, -0.07967562228441238, 0.44774341583251953, -0.21324536204338074, 0.1390412300825119, -0.1412646770477295, -0.2152569741010666, -0.2961270809173584, 0.13139982521533966, 0.09048518538475037, 0.6935957670211792, -0.29488781094551086, -0.15233533084392548, 0.03421405702829361, -0.14340564608573914, -0.25930553674697876, 0.04863513633608818, 0.07499286532402039, -0.07358986139297485, 0.10862094908952713, 0.19060485064983368, -0.04697593301534653, 0.22741076350212097, 0.03179190680384636, 0.038273848593235016, -0.4006372392177582, -0.1337122768163681, -0.018456077203154564, 0.250858336687088, -0.37662458419799805, 0.4236001670360565, -0.06989700347185135, -0.04863499850034714, -0.00302693247795105, 0.2811373770236969, 0.050567857921123505, 0.1693536639213562, 0.19123110175132751, -0.031728748232126236, 0.1745622158050537, 0.023297002539038658, -0.20152482390403748, -0.27983105182647705, 0.4101698696613312, -0.39286527037620544, -0.20879043638706207, -0.45859140157699585, -0.02683250606060028, -0.2381676286458969, 0.013659879565238953, -0.16893130540847778, -0.34509360790252686, -0.06184176355600357, -0.052614107728004456, 0.20956963300704956, 0.24015751481056213, -0.061588555574417114, -0.15261775255203247, -0.07156269997358322, 0.3001870810985565, -0.24234487116336823, -0.1067412942647934, -0.20431780815124512, -0.018973518162965775, -0.1588856279850006, 0.19151777029037476, -0.44474169611930847, 0.0449007973074913, -0.2232246696949005, 0.19483844935894012, 0.5952614545822144, -0.4956400394439697, -0.07608175277709961, 0.18099281191825867, -0.1531471312046051, 0.0020541418343782425, 0.5405678153038025, -0.16674670577049255, -0.17833805084228516, -0.27372774481773376, -0.537461519241333, 0.2701224684715271, 0.23132987320423126, -0.061075322329998016, 0.0770302265882492, -0.16222794353961945, 0.018018105998635292, -0.20013566315174103, -0.2374698668718338, 0.09798277169466019, 0.15857380628585815, -0.12498161941766739, 0.31109142303466797, -0.22990703582763672, -0.07634211331605911, 0.02606860175728798, 0.2804860770702362, 0.1328604817390442, -0.056147944182157516, 0.14082089066505432, -0.38877296447753906, 0.209693044424057, 0.022978559136390686, -0.0062836408615112305, -0.19002346694469452, -0.32372188568115234, -0.2919836938381195, -0.0033375006169080734, -0.13938285410404205, 0.4665452837944031, -0.15327782928943634, 0.2935824990272522, -0.22407816350460052, -0.1394452452659607, -0.10439243912696838, 0.392851322889328, -0.06128106266260147, 0.13518671691417694, -0.2509835362434387, -0.016980083659291267, 0.13693253695964813, 0.23116588592529297, -0.0492914654314518, -0.16806501150131226, 0.37263211607933044, -0.022089246660470963, -0.11331243067979813, 0.533051609992981, -0.028231972828507423, 0.031984955072402954, -0.104878731071949, 0.1954682618379593, 0.11141015589237213, -0.25140756368637085, 0.1943351775407791, 0.1735413521528244, 0.19796833395957947, -0.11017990112304688, 0.026311509311199188, 0.1806216984987259, -0.017822284251451492, 0.0831882581114769, 0.07544276118278503, -0.15661001205444336, -0.06183929741382599, -0.22913771867752075, -0.37022802233695984, -0.11565729975700378, 0.07816782593727112, 0.0283835269510746, 0.10683585703372955, -0.05782456696033478, -0.23477202653884888, -0.2743080258369446, 0.31484219431877136, 0.0879819393157959, 0.17352977395057678, -0.041484564542770386, 0.0935693085193634, -0.08178988099098206, 0.18749389052391052, 0.010551106184720993, 0.4148560166358948, 0.15264862775802612, 0.13867439329624176, -0.20186981558799744, 0.32612180709838867, -0.19583649933338165, 0.4617409408092499, 0.0994189903140068, -0.19155867397785187, 0.032310254871845245, -0.2889236807823181, -0.0004560975357890129, -0.20487722754478455, -0.12076884508132935, 0.12948136031627655, -0.1390756368637085, -0.5578088164329529, -0.1775348037481308, -0.194799542427063, -0.1773224174976349, -0.07115217298269272, -0.38925206661224365, -0.14081454277038574, -0.022205181419849396, -0.029588457196950912, 0.3878869116306305, -0.0663035660982132, 0.30425208806991577, -0.2504899203777313, 0.2322487086057663, -0.25130659341812134, -0.47208908200263977, -0.2935730814933777, 0.18796676397323608, 0.17815911769866943, -0.020683065056800842, 0.1983250081539154, -0.03751062601804733, 0.34039434790611267, 0.01688072644174099, 0.3036702275276184, -0.4464113414287567, -0.26249614357948303, -0.11124005913734436, -0.09413091838359833, 0.009852795861661434, 0.11296436935663223, 0.22789764404296875, 0.14295154809951782, -0.34945428371429443, -0.0963938981294632, -0.13072042167186737, -0.14070649445056915, 0.0009912867099046707, 0.19418206810951233, -0.07208214700222015, 0.042200345546007156, -0.09231888502836227, -0.06860536336898804, -0.17388010025024414, 0.18468497693538666, 0.058912042528390884, 0.3326398730278015, 0.4182102084159851, 0.02456778660416603, 0.022959191352128983, 0.06035524979233742, 0.0939210057258606, -0.12210822850465775, -0.4152970612049103, 0.281490296125412, -0.22109593451023102, -0.036517661064863205, 0.17377205193042755, 0.23251377046108246, 0.05259586125612259, 0.0665089339017868, -0.29613474011421204, -0.04205355793237686, -0.21806572377681732, 0.47742176055908203, -0.2487524449825287, 0.2532515227794647, 0.5675634145736694, 0.3703920543193817, -0.12158440798521042, -0.16454371809959412, -0.09287314116954803, 0.11029896885156631, 0.05333104729652405, 0.17830580472946167, 0.15503308176994324, -0.07613914459943771, -0.3044642508029938, 0.702834963798523, -0.030735474079847336, 0.33466073870658875, 0.5488697290420532, 0.19781048595905304, 0.3732851445674896, 0.051531367003917694, -0.33888575434684753, -0.3989713490009308, 0.15294387936592102, 0.2582510709762573, 0.1570233702659607, 0.061549410223960876, 0.1797022670507431, -0.380301833152771, -0.1841929405927658, -0.13088363409042358, -0.22017675638198853, -0.03604498505592346, -0.34989503026008606, 0.05439833924174309, 0.04399848356842995, -0.12367638945579529, -0.1354575902223587, -0.07757978141307831, 0.08398312330245972, 0.4269082546234131, 0.1565117985010147, -0.0896432027220726, -0.42593154311180115, 0.3228054344654083, -0.1297937035560608, 0.3699963688850403, -0.09884130209684372, 0.2729548513889313, 0.1579923778772354, -0.0058761220425367355, 0.11531013250350952, 0.2723063826560974, 0.30540215969085693, -0.208663210272789, 0.33128035068511963, -0.12049269676208496, 0.41356977820396423, -0.1751641184091568, 0.03152626380324364, 0.25649720430374146, -0.09987764805555344, -0.26438164710998535, 0.30277496576309204, -0.19136816263198853, -0.40590700507164, 0.1005336120724678, -0.27813246846199036, -0.004816167056560516, -0.08129086345434189, -0.2858092188835144, -0.2675292193889618, -0.02377936989068985, -0.19716086983680725, 0.10563483089208603, 0.07645197957754135, 0.2602632939815521, 0.13189297914505005, -0.544343888759613, -0.10317647457122803, 0.36079955101013184, -0.11665688455104828, 0.03515082597732544, 0.1044917106628418, 0.1588217169046402, 0.0822705328464508, 0.18619392812252045, 0.23271691799163818, 0.616722822189331, -0.29981258511543274, -0.3326888084411621, -0.24652233719825745, -0.014261944219470024, 0.3358975648880005, 0.5567625761032104, -0.3770555257797241, 0.06422115117311478, 0.05243407562375069, 0.0801541805267334, -0.15246625244617462, 0.2843638062477112, 0.005321157164871693, 0.051518168300390244, -0.41080719232559204, -0.32680806517601013, 0.5429558157920837, 0.1056065559387207, -0.30054521560668945, 0.7662754654884338, 0.36929184198379517, -0.40277841687202454, 0.14133846759796143, -0.02471385896205902, 1.2238191366195679, 0.2662177085876465, 0.04392462223768234, 0.06075127795338631, -0.4458107352256775, 0.28218191862106323, 0.054733142256736755, -0.1874696910381317, -0.14749331772327423, -0.3034972846508026, -0.31168562173843384, -0.1509779989719391, 0.5685963034629822, 0.13498075306415558, -0.1568036675453186, 0.05737977474927902, -0.14682412147521973, 0.036137018352746964, 0.10096210986375809, 0.7443876266479492, -0.18512670695781708, 0.046940937638282776, 0.17321786284446716, -0.036479901522397995, -0.04475509375333786, 0.24682368338108063, -0.011691299267113209, -0.11139967292547226, -0.1487339735031128, -0.5499306917190552, -0.07496657967567444, -0.06804677098989487, -0.7534857392311096, -0.00933336652815342, -0.37917277216911316, -0.3681635856628418, 0.5626474022865295, 0.15231651067733765, 0.057612109929323196, 0.2965056300163269, -0.31754836440086365, 0.2552105486392975, 0.09018158912658691, 0.014981449581682682, -0.18032410740852356, 0.11270908266305923, 0.26060518622398376, -0.05022381618618965, -0.061796706169843674, -0.07836005836725235, -0.28372400999069214, -0.33218181133270264, -0.02550148218870163, 0.05294828861951828, 0.3253266215324402, -0.5745773911476135, -0.0056040626950562, 0.012261517345905304, 0.04349277541041374, -0.04655703529715538, -0.035083845257759094, 0.04791244491934776, 0.003964032977819443, 0.11444203555583954, -0.21684132516384125, -0.30066147446632385, 0.17907311022281647, 0.24556419253349304, 0.04637058824300766, 0.0019495561718940735, 0.5263770818710327, -0.5754945278167725, 0.028999879956245422, -0.10346083343029022, 0.19013571739196777, 0.21816536784172058, -0.4234999120235443, 0.18255357444286346, 0.3277738392353058, -0.18259547650814056, -0.107186459004879, 0.37875205278396606, 0.2603487968444824, 0.39529454708099365, 0.16269469261169434, -0.17149567604064941, 0.06904631108045578, -0.08124914765357971, -0.06928253173828125, 0.39773061871528625, -0.20793068408966064, -0.20259110629558563, 0.016309211030602455, 0.005201749503612518, -0.16160184144973755, 0.13889731466770172, 0.2977421283721924, 0.13508827984333038, 0.16765905916690826, 0.1225024163722992, 0.29407936334609985, -0.2935938835144043, -0.09258070588111877, -0.14013266563415527, -0.25130102038383484, -0.06399808824062347, -0.31486520171165466, 0.3228755295276642, 0.10893973708152771, -0.30984312295913696, 0.16594377160072327, -0.442240834236145, 0.04853012412786484, 0.044171012938022614, -0.03422362357378006, 0.18210089206695557, -0.053559765219688416, 0.07244187593460083, 0.37455883622169495, 0.07420924305915833, -0.3295554518699646, 0.37352365255355835, -0.02874673157930374, 0.1948760449886322, -0.17573679983615875, 0.28497204184532166, -0.2727881073951721, -0.08406364172697067, -0.06937572360038757, 0.15639778971672058, 0.23920612037181854, 0.11163155734539032, -0.16275975108146667, 0.04375551640987396, -0.36108696460723877, -0.13686837255954742, 0.27597707509994507, 0.4564221501350403, -0.08459991216659546, -0.34220436215400696, 0.3734617233276367, 0.03502369672060013, -0.1578487604856491, -0.13956859707832336, -0.05066553130745888, 0.028796818107366562, 0.06800758838653564, 0.22452126443386078, 0.09493528306484222, -0.17186886072158813, 0.003387071192264557, -0.05942101776599884, 0.12577277421951294, 0.24442730844020844, 0.43023326992988586, 0.5527544617652893, -0.1809057593345642, -0.2369038313627243, 0.5231283903121948, 0.08974403142929077, -0.07387173920869827, 0.024330511689186096, -0.34174367785453796, 0.2599065899848938, 0.3151954114437103, 0.035334113985300064, -0.21847125887870789, -0.1708521991968155, 0.18697012960910797, 0.028661198914051056, -0.2586023807525635, 0.2146737277507782, 0.272835373878479, 0.26443353295326233, -0.12385047227144241, 0.08313329517841339, -0.06884129345417023, 0.10848033428192139, 0.10664035379886627, -0.1596778780221939, -0.27355557680130005, -0.1660279780626297, -0.1107286587357521, -0.23268087208271027, -0.144352987408638, -0.23822642862796783, 0.014401614665985107, 0.12928327918052673, -0.017813555896282196, -0.1071004867553711, -0.0757051482796669, -0.05767881125211716, 0.15402546525001526, -0.36624521017074585, 0.007056595757603645, 0.13837769627571106, -0.03789988160133362, 0.31394124031066895, 0.5676711797714233, 0.28968170285224915, 0.12286992371082306, 0.2602410912513733, -0.02900853380560875, -0.016542334109544754, -0.07196122407913208, 0.04993855208158493, 0.30276089906692505, 0.08295709639787674, 0.0857033059000969, 0.14719845354557037, -0.005359196104109287, -0.002751537598669529, 0.01454067975282669, -0.08303406834602356, -0.40290114283561707, -0.3799486756324768, 0.366538941860199, -0.005355175584554672, -0.36565282940864563, 0.010615505278110504, 0.08042072504758835, 0.10125697404146194, 0.16274820268154144, 0.5316869616508484, 0.18748313188552856, -0.008082580752670765, -0.1555691957473755, -0.02731146849691868, -0.011067349463701248, 0.35970696806907654, 0.2601286768913269, 0.00838993489742279, -0.32208168506622314, -0.1413496434688568, -0.6859132051467896, 0.04161614924669266, 0.16356045007705688, -0.16814079880714417, 0.20277927815914154, -0.11391759663820267, 0.10699235647916794, 0.10087315738201141, 0.12307421118021011, 0.08775784820318222, -0.07306551933288574, 0.22013863921165466, -0.31370875239372253, 0.15250051021575928, 0.45124614238739014, 0.11608341336250305, 0.05081935226917267, -0.6453539729118347, 0.27988529205322266, -0.024234067648649216, -0.18625015020370483, -0.17207249999046326, -0.10871874541044235, 0.47859877347946167, 0.00009623169898986816, 0.7948833703994751, 0.02990644797682762, 0.36241406202316284, 0.14740628004074097, 0.15367856621742249, 0.04807617515325546, 0.09204013645648956, -0.41065001487731934, 0.26579558849334717, 0.6018596887588501, 0.10372528433799744, -0.334043025970459, 0.1935337483882904, -0.34980475902557373, 0.2718964219093323, -0.1413116753101349, 0.21209540963172913, -0.1843786984682083, -0.2185986191034317, -0.07325688749551773, -0.07931069284677505, -0.045375265181064606, 0.09253130853176117, -0.17314201593399048, 0.18654339015483856, -0.6228410601615906, -0.5094377398490906, 0.6428912878036499, -0.027355238795280457, -0.18401743471622467, -0.06268783658742905, 0.7091814279556274, 0.19093403220176697, -0.04949898272752762, -0.7029512524604797, 0.1149335578083992, 0.4967617094516754, 0.03267491236329079, 0.03741491213440895, 0.3120484948158264, -0.12070199847221375, 0.2600690722465515, -0.026378082111477852, 0.4791584312915802, 0.09881608933210373, -0.23744814097881317, -0.12793521583080292, -0.3826912045478821 ]
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.011216200888156891, 0.14474743604660034, -0.039361342787742615, 0.09581971913576126, 0.0011392589658498764, -0.21814033389091492, 0.4295821189880371, 0.11116665601730347, 0.1069050282239914, 0.336961030960083, 0.11587182432413101, -0.028122765943408012, 0.012059332802891731, 0.03876033425331116, -0.1626240611076355, 0.15405063331127167, -0.062163375318050385, 0.3452989459037781, -0.13905809819698334, 0.008256711065769196, -0.1663801372051239, -0.005150493234395981, 0.05095663666725159, 0.05120766907930374, 0.15815915167331696, 0.09740322083234787, 0.3119136691093445, 0.1957421600818634, -0.2975037693977356, -0.4824241101741791, 0.30030620098114014, 0.3615880012512207, -0.06392638385295868, 0.4107329845428467, -0.00011792379518738016, -0.05906413495540619, 0.2076956331729889, 0.05888912081718445, -0.5383235812187195, -0.4455483555793762, -0.49170541763305664, -0.24828681349754333, 0.21020054817199707, -0.3056310713291168, 0.023995287716388702, -0.07708930224180222, 0.018053807318210602, -0.7141699194908142, 0.4935950040817261, 0.14259123802185059, 0.12354044616222382, 0.42477405071258545, -0.05610024929046631, -0.05468325316905975, 0.09778860211372375, 0.04455128312110901, -0.1430554836988449, 0.06731761246919632, 0.2824341058731079, 0.16835176944732666, 0.3565242290496826, 0.20822563767433167, -0.21565186977386475, 0.11108638346195221, 0.30786651372909546, -0.29731103777885437, 0.13788877427577972, -0.1850423812866211, -0.019656527787446976, 0.47070613503456116, 1.0010162591934204, 0.16905316710472107, -0.46708300709724426, -0.17573432624340057, -0.10484250634908676, 0.06987006217241287, 0.40814289450645447, 0.13505564630031586, -0.11171558499336243, 0.16796328127384186, -0.08350351452827454, -0.03502262011170387, -0.03274143859744072, -0.018371641635894775, -0.27013635635375977, 0.46307626366615295, -0.03828046843409538, 0.2346929907798767, -0.12698234617710114, -0.13104495406150818, 0.1787927895784378, -0.05707918107509613, 0.016365820541977882, -0.00855622161179781, -0.4005129933357239, -0.16914846003055573, 0.15161564946174622, -0.4226422905921936, 0.042875371873378754, 0.34948956966400146, 0.26517340540885925, 0.08397521078586578, -0.3256962299346924, -0.029396750032901764, 0.20814405381679535, 0.21856507658958435, 0.5727407932281494, -0.1588093638420105, 0.4727659225463867, -0.207172229886055, 0.2513415813446045, -0.09864837676286697, -0.0985085517168045, -0.10681037604808807, 0.04230233654379845, 0.0020768847316503525, 0.562196671962738, -0.2326083779335022, -0.21649694442749023, 0.05215974524617195, -0.09580932557582855, -0.2232670783996582, 0.05487740784883499, 0.02100636065006256, -0.14884188771247864, 0.19686535000801086, 0.08455860614776611, -0.05112151801586151, 0.18196672201156616, -0.10012011975049973, -0.062018394470214844, -0.3828083872795105, -0.1790468692779541, 0.04723658412694931, 0.24181441962718964, -0.4406697154045105, 0.3566654920578003, 0.09880249202251434, -0.11421619355678558, 0.043629929423332214, 0.16985011100769043, 0.0908757746219635, -0.017240487039089203, 0.1904597133398056, -0.058017387986183167, 0.16887885332107544, -0.05068067088723183, -0.22791337966918945, -0.2390826940536499, 0.3085813820362091, -0.3904123306274414, -0.2045673280954361, -0.43365371227264404, 0.10971519351005554, -0.293542742729187, 0.066133052110672, -0.08121592551469803, -0.2224247306585312, -0.09179166704416275, -0.08837571740150452, 0.10277942568063736, 0.1798987090587616, -0.18702450394630432, -0.158471018075943, -0.05239459127187729, 0.39643633365631104, -0.1756317913532257, -0.05022064223885536, -0.13653525710105896, 0.029463646933436394, -0.11631368845701218, 0.13945314288139343, -0.4678530693054199, 0.12246578931808472, -0.15089841187000275, -0.04897036403417587, 0.30052223801612854, -0.5388395190238953, -0.09991030395030975, 0.22336240112781525, -0.19508183002471924, 0.23705504834651947, 0.5151137709617615, -0.1638970673084259, -0.1690349578857422, -0.34036651253700256, -0.3859297037124634, 0.23411265015602112, 0.1532602459192276, 0.010853437706828117, -0.042842913419008255, -0.20054663717746735, 0.18907250463962555, -0.08271059393882751, -0.10463923215866089, 0.14610286056995392, 0.14518797397613525, 0.028874371200799942, 0.24224883317947388, -0.2445029318332672, -0.13663387298583984, -0.14471344649791718, 0.2217044234275818, 0.07626514136791229, -0.11037514358758926, 0.03329560160636902, -0.48379063606262207, 0.347239226102829, 0.10790814459323883, 0.24985338747501373, -0.006244845688343048, -0.3379673361778259, -0.2230144739151001, -0.039720550179481506, -0.08059950172901154, 0.36760520935058594, -0.052095331251621246, 0.2502620220184326, -0.15008242428302765, -0.15813499689102173, -0.02978583239018917, 0.5793232917785645, -0.1334761083126068, 0.12988626956939697, -0.36250394582748413, -0.11672179400920868, 0.06306447088718414, 0.35494405031204224, -0.047243863344192505, -0.09263821691274643, 0.303937703371048, -0.07529725134372711, -0.03241383284330368, 0.4737952947616577, 0.11763157695531845, -0.16339190304279327, -0.2493186593055725, 0.2496856153011322, 0.2226753532886505, -0.02402326837182045, 0.11722562462091446, 0.09228816628456116, 0.339216411113739, -0.14249016344547272, -0.0014665089547634125, 0.24047264456748962, -0.0266185961663723, 0.052469927817583084, 0.08161371946334839, -0.2937874495983124, 0.020044920966029167, -0.22238293290138245, -0.3907831907272339, -0.11251600831747055, 0.03812297061085701, 0.019634179770946503, 0.06806816160678864, 0.03611044958233833, -0.18758931756019592, -0.2777257561683655, 0.2804121971130371, 0.018126096576452255, 0.06825698167085648, -0.07596302777528763, 0.22548988461494446, -0.10540031641721725, 0.2398347556591034, -0.13614843785762787, 0.38552170991897583, 0.20889943838119507, 0.059796594083309174, -0.21616435050964355, 0.2650006115436554, -0.28141120076179504, 0.3381405770778656, 0.07733938097953796, -0.3269679546356201, -0.0710420235991478, -0.1665607988834381, 0.11196881532669067, -0.18571236729621887, -0.11207880079746246, 0.20625290274620056, -0.1443515121936798, -0.5838582515716553, -0.19484908878803253, -0.15862981975078583, -0.08237417042255402, -0.036205753684043884, -0.3682664930820465, -0.22062382102012634, -0.12175118178129196, 0.0648023784160614, 0.3796050250530243, -0.13689975440502167, 0.19263124465942383, -0.2595551311969757, 0.25059929490089417, -0.38721224665641785, -0.3063407242298126, -0.20053815841674805, 0.10176875442266464, 0.025154344737529755, 0.050502482801675797, 0.2794830799102783, -0.0904412642121315, 0.4055158495903015, -0.14250437915325165, 0.07677911967039108, -0.2846248745918274, -0.4424416720867157, -0.05632888525724411, -0.17856581509113312, 0.12606464326381683, 0.043868739157915115, -0.014208674430847168, 0.25311553478240967, -0.3800759017467499, -0.18698467314243317, -0.17458997666835785, -0.09087592363357544, 0.04648246616125107, 0.14907950162887573, -0.24065616726875305, -0.09024274349212646, -0.17522940039634705, -0.015253560617566109, -0.21595096588134766, 0.04407608136534691, -0.0034681931138038635, 0.29132509231567383, 0.5777443647384644, -0.10857149958610535, -0.09264694899320602, 0.04406403750181198, 0.28220945596694946, -0.24131469428539276, -0.4220576584339142, 0.13616794347763062, -0.12825746834278107, -0.10119269788265228, 0.11708159744739532, 0.21955904364585876, 0.1298716813325882, 0.12452147156000137, -0.323733925819397, -0.09016569703817368, -0.22226636111736298, 0.4953492283821106, -0.13171982765197754, 0.22760072350502014, 0.4823288321495056, 0.3495176136493683, -0.13129118084907532, -0.135226771235466, -0.11028298735618591, 0.006119266152381897, -0.09559651464223862, 0.11600970476865768, 0.14974120259284973, -0.17847418785095215, -0.21788370609283447, 0.5322818756103516, -0.008103598840534687, 0.1795230507850647, 0.44744664430618286, 0.251537948846817, 0.4841235876083374, -0.05539283901453018, -0.36869096755981445, -0.23759503662586212, 0.166960671544075, 0.3007068634033203, 0.3614528179168701, -0.028880257159471512, 0.17659300565719604, -0.4512162208557129, -0.04204126074910164, -0.16215237975120544, -0.2278551459312439, -0.1509103924036026, -0.28371620178222656, 0.033420953899621964, 0.17418482899665833, 0.023274250328540802, -0.1574230194091797, -0.11085519939661026, -0.06612542271614075, 0.3186628818511963, 0.1897304654121399, -0.13056106865406036, -0.5399689078330994, 0.38670289516448975, -0.11502266675233841, 0.3552757501602173, -0.06913398951292038, 0.4952968657016754, 0.1704869568347931, 0.06519253551959991, 0.025694288313388824, 0.24715545773506165, 0.3881772756576538, -0.21312710642814636, 0.25394493341445923, -0.1053875982761383, 0.2757466733455658, -0.20279604196548462, -0.021842962130904198, 0.11680026352405548, -0.16496685147285461, -0.12917275726795197, 0.26505500078201294, -0.4018349051475525, -0.3482813835144043, 0.16963507235050201, -0.2113066017627716, 0.03276548162102699, -0.2741829454898834, -0.29638928174972534, -0.3259502649307251, -0.010590974241495132, -0.2670186758041382, 0.03023640625178814, 0.1780674159526825, 0.1067328006029129, 0.07052864134311676, -0.45687785744667053, 0.015222761780023575, 0.4961714744567871, 0.01174783706665039, -0.17528286576271057, 0.2310420423746109, 0.37311187386512756, 0.07720191776752472, 0.2146686464548111, 0.2025262415409088, 0.6153802275657654, -0.31132277846336365, -0.365142822265625, -0.24682560563087463, 0.10750600695610046, 0.20367702841758728, 0.6252360343933105, -0.12571878731250763, 0.055585939437150955, 0.018266519531607628, 0.017413880676031113, -0.14805720746517181, 0.2311887890100479, 0.06951901316642761, 0.007526202127337456, -0.5689130425453186, -0.5124379992485046, 0.4097723364830017, 0.1962917000055313, -0.3164059519767761, 0.5638612508773804, 0.22107312083244324, -0.3777575194835663, 0.23637445271015167, -0.06857261806726456, 1.1841131448745728, 0.15113157033920288, -0.02228882536292076, 0.10869234055280685, -0.274347186088562, 0.4086305499076843, -0.019022604450583458, -0.15353257954120636, -0.10129240155220032, -0.39148038625717163, -0.2432568520307541, -0.09747065603733063, 0.49232980608940125, 0.13952891528606415, -0.08094336092472076, 0.1936916559934616, -0.14679306745529175, 0.3107949197292328, 0.1649022400379181, 0.8204010725021362, -0.19684091210365295, -0.04324501007795334, 0.13054952025413513, 0.07137094438076019, -0.06988251209259033, 0.09808911383152008, -0.060422543436288834, -0.08939142525196075, 0.00031690672039985657, -0.5520804524421692, -0.043214622884988785, -0.05954280495643616, -0.5215198993682861, -0.004328764975070953, -0.3476558029651642, -0.1348285973072052, 0.6052548289299011, -0.03148273751139641, 0.22301608324050903, 0.48707786202430725, -0.303720086812973, 0.1740725338459015, 0.026037365198135376, 0.10712967813014984, -0.1010570302605629, 0.08856663852930069, 0.28719714283943176, 0.018047448247671127, -0.10292455554008484, -0.07175547629594803, -0.20841765403747559, -0.09269486367702484, -0.10912980139255524, 0.051661159843206406, 0.29604601860046387, -0.6112050414085388, 0.13217419385910034, 0.1655409336090088, 0.14648456871509552, -0.13147960603237152, 0.06165117025375366, -0.046936579048633575, -0.11232146620750427, 0.208992600440979, -0.254332035779953, -0.3418782949447632, -0.03531252220273018, 0.3156786859035492, 0.1183132454752922, -0.046828899532556534, 0.32478564977645874, -0.4340350329875946, -0.014659535139799118, -0.12397000193595886, 0.04438859224319458, 0.08202085644006729, -0.3374634385108948, 0.13049449026584625, 0.36942803859710693, -0.15174591541290283, -0.11114208400249481, 0.4006415605545044, 0.2646327614784241, 0.23437467217445374, 0.2556474506855011, -0.07406444847583771, 0.19052283465862274, -0.08578510582447052, -0.027128223329782486, 0.36682337522506714, -0.07000726461410522, -0.0851096361875534, -0.23164723813533783, 0.1306426227092743, -0.2717592418193817, -0.06677547842264175, 0.24944758415222168, 0.14562174677848816, 0.15129508078098297, 0.03327486291527748, 0.20196080207824707, -0.30448102951049805, 0.008581152185797691, -0.13796870410442352, -0.2515731155872345, -0.16641339659690857, -0.2767712473869324, 0.26861491799354553, 0.13585960865020752, -0.2527414858341217, 0.1329983025789261, -0.37814223766326904, -0.035032279789447784, -0.05030173435807228, 0.23887524008750916, 0.3519415855407715, -0.04651276767253876, 0.03769347444176674, 0.31870052218437195, 0.2507343888282776, -0.24511931836605072, 0.4744578003883362, -0.056920260190963745, 0.1913251280784607, -0.10511863231658936, 0.3228103816509247, -0.21037667989730835, -0.024967893958091736, -0.03264765068888664, 0.21231219172477722, 0.21477580070495605, 0.1101783961057663, -0.11198388785123825, -0.005164735019207001, -0.2259214073419571, 0.047760482877492905, 0.2360934019088745, 0.4404345750808716, -0.01661054417490959, -0.3979749381542206, 0.39061805605888367, 0.13311667740345, -0.20279762148857117, -0.14773550629615784, -0.13193510472774506, 0.09334967285394669, 0.13929475843906403, 0.386210173368454, 0.2862527370452881, -0.17669418454170227, -0.0275048166513443, -0.13041257858276367, 0.3384789228439331, 0.2866661548614502, 0.4526546895503998, 0.5592707395553589, -0.15429368615150452, -0.1854739487171173, 0.5126246809959412, 0.0068694353103637695, -0.14193806052207947, 0.005470577627420425, -0.2569517195224762, 0.3793477416038513, 0.2748570442199707, 0.1208212748169899, -0.13786432147026062, -0.15116983652114868, 0.33852556347846985, 0.12946555018424988, -0.2375851273536682, 0.1839795708656311, 0.1595330834388733, 0.037508994340896606, -0.25839608907699585, 0.12178423255681992, -0.19168438017368317, 0.05098273605108261, 0.053284063935279846, -0.053939610719680786, -0.3588401675224304, -0.16374075412750244, -0.14857035875320435, -0.22008323669433594, -0.13512930274009705, -0.31767499446868896, 0.040820442140102386, 0.06589489430189133, -0.14867940545082092, -0.25055670738220215, -0.17697477340698242, -0.005816534161567688, 0.1997227668762207, -0.3873651921749115, 0.050213877111673355, 0.17092064023017883, -0.09374825656414032, 0.26962098479270935, 0.6034391522407532, 0.34464791417121887, 0.248909130692482, 0.28292590379714966, -0.0589623861014843, -0.01364605501294136, 0.007322879508137703, -0.06374719738960266, 0.48085883259773254, -0.07539774477481842, 0.19816197454929352, 0.2164330780506134, 0.07230532169342041, -0.06276696920394897, -0.06303553283214569, -0.07113949954509735, -0.40520021319389343, -0.5685388445854187, 0.5356144309043884, 0.02183196321129799, -0.24581733345985413, 0.021223725751042366, 0.17533139884471893, 0.045251473784446716, 0.2339678555727005, 0.5319799780845642, 0.24752700328826904, 0.09894593060016632, -0.22023841738700867, 0.030297141522169113, 0.042172398418188095, 0.32063964009284973, 0.2086661010980606, -0.03904000669717789, -0.35535329580307007, 0.033570513129234314, -0.6624811291694641, 0.12595178186893463, 0.0534825325012207, -0.05215470492839813, 0.1798837035894394, -0.2214944064617157, 0.15300790965557098, 0.1559295952320099, -0.11511290073394775, -0.0013092197477817535, -0.08221706002950668, 0.14745086431503296, -0.2808152139186859, 0.18856070935726166, 0.3135071396827698, -0.03488090634346008, 0.07357293367385864, -0.623781144618988, 0.2831667959690094, -0.09090623259544373, -0.10892069339752197, -0.19772177934646606, 0.06776414811611176, 0.5854009389877319, -0.13557441532611847, 0.6277522444725037, 0.18130138516426086, 0.4258827865123749, 0.1772138476371765, 0.09656058996915817, -0.11110273003578186, -0.03801028057932854, -0.41370078921318054, 0.2449434995651245, 0.43924450874328613, -0.10913914442062378, -0.13690237700939178, 0.06000572070479393, -0.29915305972099304, 0.36129432916641235, -0.05260581895709038, 0.26489362120628357, -0.25763869285583496, -0.25020089745521545, -0.18338720500469208, -0.0939580574631691, -0.022564873099327087, 0.1579706072807312, -0.14626331627368927, 0.13577350974082947, -0.48039597272872925, -0.5864163637161255, 0.5395385026931763, -0.10784812271595001, -0.16723361611366272, -0.24725204706192017, 0.6490896344184875, 0.03947955742478371, -0.20271149277687073, -0.5274105668067932, 0.14776477217674255, 0.5112927556037903, -0.062411725521087646, 0.04295682534575462, 0.3808649778366089, -0.12128499150276184, 0.112543985247612, -0.06276470422744751, 0.14696341753005981, 0.01512422226369381, -0.37140408158302307, 0.01763824373483658, -0.33594363927841187 ]
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.2325657606124878, -0.10259627550840378, 0.059448447078466415, 0.47100698947906494, 0.09914451837539673, 0.09832840412855148, 0.0017995983362197876, 0.5494820475578308, -0.020167462527751923, 0.13166964054107666, -0.11764666438102722, 0.0032900450751185417, -0.11831497400999069, 0.09130853414535522, -0.08515118062496185, 0.1036110520362854, -0.18397879600524902, 0.14324434101581573, -0.22360607981681824, 0.08370454609394073, -0.166070818901062, 0.2510775029659271, -0.29405272006988525, -0.13617579638957977, -0.2839498519897461, -0.027315640822052956, -0.26512962579727173, 0.23779374361038208, -0.25572600960731506, -0.41601648926734924, 0.17589035630226135, -0.3987876772880554, -0.037220120429992676, 0.5550352334976196, -0.0001198018726427108, 0.05333838611841202, 0.2946434020996094, -0.22809737920761108, -0.13074982166290283, -0.1020403653383255, -0.4944334030151367, -0.39405080676078796, -0.1452360302209854, -0.14626377820968628, 0.1926995813846588, -0.12832455337047577, 0.05088850110769272, -0.27932411432266235, 0.45934104919433594, 0.4411790668964386, 0.1552281677722931, 0.3978164494037628, 0.24116145074367523, 0.037161339074373245, 0.36507606506347656, -0.22199226915836334, -0.1318105310201645, -0.03620653226971626, 0.0326932929456234, 0.040524132549762726, 0.08063959330320358, 0.11726780235767365, 0.010847331956028938, 0.2087121456861496, -0.0005471073091030121, -0.04086622968316078, 0.22869116067886353, -0.23625385761260986, 0.1535000205039978, 0.4934613108634949, 0.6223925948143005, -0.1369798481464386, -0.3544658422470093, -0.3586982488632202, -0.41668224334716797, 0.07304912060499191, 0.2820880711078644, 0.4564274251461029, 0.02078305184841156, 0.20885096490383148, -0.3920852243900299, 0.06279749423265457, 0.08873914182186127, 0.10101865231990814, -0.219720721244812, 0.1737973392009735, -0.061373040080070496, 0.09367018193006516, 0.033746033906936646, 0.12052252143621445, 0.22285635769367218, -0.12987101078033447, -0.055268097668886185, 0.1303766369819641, -0.24707074463367462, -0.03999771922826767, 0.0465836226940155, -0.17194637656211853, 0.3725025951862335, 0.315756618976593, 0.33070993423461914, -0.2253408432006836, -0.2792920172214508, -0.0260542631149292, 0.10212960839271545, 0.4864099621772766, -0.003022119402885437, 0.18113508820533752, -0.09942582249641418, 0.15344206988811493, 0.08419021964073181, -0.03832390904426575, -0.0627073347568512, -0.3573575019836426, 0.07822023332118988, 0.05192902684211731, 0.5506390333175659, -0.31376269459724426, -0.5638856887817383, 0.13556337356567383, -0.2717958986759186, -0.24996843934059143, -0.2926042377948761, -0.059870220720767975, -0.3987966477870941, 0.21012967824935913, 0.16259600222110748, -0.15783728659152985, -0.31497663259506226, -0.3888356685638428, -0.2744591236114502, -0.022704143077135086, -0.18766815960407257, 0.1219247430562973, 0.0013913922011852264, -0.1314152628183365, 0.42268604040145874, -0.0792299136519432, -0.04053535312414169, -0.29384303092956543, 0.1657152771949768, 0.011817922815680504, 0.0518365353345871, 0.16753044724464417, -0.2069489061832428, 0.12241404503583908, 0.06869690865278244, 0.0914766788482666, -0.28620418906211853, 0.31059592962265015, -0.29064425826072693, -0.409371942281723, -0.13818389177322388, 0.1050514429807663, -0.37059056758880615, -0.16087505221366882, 0.30737051367759705, -0.05990702286362648, 0.3331334590911865, -0.12109597027301788, -0.08745161443948746, -0.17150308191776276, -0.1489337533712387, -0.13854029774665833, 0.1361488550901413, 0.4009009003639221, -0.2815040647983551, -0.18706101179122925, 0.2009669691324234, -0.10673783719539642, 0.26570600271224976, 0.441942036151886, 0.038311317563056946, 0.10779619216918945, -0.26970621943473816, 0.1994156688451767, 0.10355376452207565, -0.3222501873970032, -0.6370265483856201, 0.3166927397251129, -0.06143880635499954, 0.1890932023525238, 0.11317866295576096, -0.2998301088809967, 0.09972430020570755, -0.11335582286119461, -0.10748539865016937, 0.14254561066627502, -0.18553946912288666, 0.06538887321949005, -0.604255735874176, -0.7404738068580627, 0.4050542712211609, -0.015220453962683678, 0.21996299922466278, -0.20098266005516052, 0.02580280601978302, 0.20237267017364502, 0.4867917597293854, -0.006880950182676315, 0.008240174502134323, 0.18329527974128723, 0.16844883561134338, 0.02001003548502922, -0.02628425508737564, -0.3034961521625519, -0.12707704305648804, 0.2578177750110626, -0.11896443367004395, -0.02521069347858429, 0.2395288348197937, -0.12848974764347076, -0.520149827003479, -0.2797640264034271, -0.0274372436106205, -0.28901275992393494, -0.0011979155242443085, 0.05373341590166092, 0.3314986228942871, 0.07044418156147003, 0.10067181289196014, 0.3630117177963257, 0.05870411545038223, 0.1622793972492218, -0.3886449337005615, 0.2116384208202362, -0.04193074256181717, -0.1590767651796341, 0.14747174084186554, -0.0411897748708725, 0.1578395962715149, -0.17881625890731812, -0.3645527958869934, 0.6570298075675964, 0.13834162056446075, 0.02780914306640625, -0.020633749663829803, 0.17614884674549103, 0.23897935450077057, -0.23260988295078278, 0.1361846625804901, 0.3155075013637543, -0.03670281544327736, -0.03583288937807083, 0.0357467457652092, -0.09578351676464081, 0.11017909646034241, -0.027026623487472534, -0.06295856088399887, 0.0031616296619176865, -0.06770209968090057, -0.20160219073295593, -0.09967226535081863, -0.11949793994426727, 0.07884910702705383, -0.05292200669646263, -0.18256469070911407, 0.07386787980794907, 0.15952806174755096, -0.1473870575428009, 0.7876150012016296, -0.02650882489979267, -0.08109093457460403, 0.267654687166214, -0.2830885946750641, -0.1285569965839386, -0.18377982079982758, 0.13330620527267456, 0.5281819701194763, 0.21161751449108124, 0.1979827582836151, 0.2271815538406372, 0.059582196176052094, -0.09671647846698761, 0.1486261636018753, 0.27888205647468567, 0.21197707951068878, 0.30149227380752563, 0.025365130975842476, 0.07827465236186981, -0.18822979927062988, 0.10177506506443024, 0.11624275892972946, 0.3736380338668823, -0.4455084204673767, -0.15064719319343567, -0.4993301331996918, 0.01670270413160324, -0.289040207862854, 0.1519826203584671, -0.19536998867988586, -0.2340978980064392, -0.05694243311882019, 0.05782539024949074, -0.019075307995080948, 0.2200789451599121, -0.18444572389125824, 0.17441287636756897, 0.1779436618089676, 0.22219644486904144, 0.08345210552215576, -0.0005311327986419201, -0.5165873765945435, 0.019454482942819595, 0.33513179421424866, -0.24981378018856049, 0.41447561979293823, -0.5614911913871765, -0.09216006100177765, -0.2016616016626358, -0.2970207631587982, -0.08936367928981781, 0.008984403684735298, 0.11290983855724335, 0.2927730083465576, 0.21109962463378906, 0.024991482496261597, -0.02264006808400154, 0.10414334386587143, -0.3205738663673401, -0.2713533341884613, -0.09898195415735245, 0.09731229394674301, 0.266128808259964, -0.06413551419973373, -0.5627803206443787, -0.21637021005153656, -0.27572062611579895, 0.326699435710907, 0.11397236585617065, 0.2029811292886734, 0.09259301424026489, 0.06944721937179565, 0.10503945499658585, -0.052355241030454636, 0.11608540266752243, -0.25425484776496887, -0.5217090249061584, 0.3188510537147522, -0.0026786390226334333, -0.3333185911178589, -0.007014986127614975, 0.151137575507164, -0.03922829404473305, 0.025585541501641273, -0.6288370490074158, -0.24205602705478668, -0.4020479619503021, -0.041622344404459, -0.1522623598575592, 0.2767261862754822, 0.4846799969673157, -0.030819183215498924, -0.06325561553239822, -0.15229886770248413, -0.3440423309803009, -0.023711644113063812, 0.16248419880867004, 0.6210068464279175, -0.10532503575086594, 0.18527013063430786, 0.4056093990802765, 0.46295666694641113, 0.53850257396698, 0.04814806580543518, -0.013694904744625092, -0.03213655203580856, 0.1083640605211258, -0.11047898977994919, -0.040116216987371445, 0.2920777499675751, -0.19996419548988342, 0.03563777357339859, 0.29737329483032227, 0.1355913132429123, 0.15616317093372345, -0.003065243363380432, -0.07030754536390305, -0.47797152400016785, -0.20078632235527039, -0.024593548849225044, -0.11114087700843811, 0.1895926296710968, 0.18815059959888458, 0.0732359066605568, -0.24348099529743195, -0.19456321001052856, 0.15985655784606934, -0.004661835730075836, -0.14350175857543945, 0.02076563611626625, 0.0671195238828659, 0.3567476272583008, -0.26261040568351746, 0.38090819120407104, 0.13413316011428833, 0.2630772888660431, 0.14869296550750732, -0.23844802379608154, 0.1142481192946434, 0.005393569823354483, 0.5108361840248108, -0.0777716115117073, -0.0712624192237854, 0.09501031041145325, 0.07253947854042053, -0.4039194583892822, -0.31153130531311035, -0.18367114663124084, 0.03344867751002312, 0.5596083402633667, 0.045381225645542145, -0.4185118079185486, 0.05580740422010422, 0.3097250759601593, 0.43099236488342285, -0.18977142870426178, -0.028551168739795685, -0.15746693313121796, -0.40260350704193115, -0.35480546951293945, -0.12882134318351746, 0.06789699196815491, 0.29780736565589905, -0.091835156083107, -0.06463152170181274, -0.14037223160266876, -0.19782361388206482, 0.1965380311012268, -0.12222170829772949, 0.2837560474872589, -0.00248319236561656, 0.3147861063480377, 0.26659637689590454, 0.3522549867630005, 0.27157822251319885, 0.5941633582115173, 0.000002253800630569458, -0.22874218225479126, -0.050626643002033234, -0.06135984882712364, -0.2377575933933258, 0.3324655294418335, 0.07151362299919128, -0.3414056599140167, 0.056800685822963715, 0.24742291867733002, -0.1786888688802719, 0.3185912072658539, 0.42565155029296875, -0.06354977190494537, -0.44009116291999817, -0.3524288535118103, 0.3958852291107178, 0.21192944049835205, -0.05023844912648201, 0.5040230751037598, -0.04953970015048981, -0.17878985404968262, -0.05576673895120621, -0.042357973754405975, 1.1023484468460083, 0.15647447109222412, -0.10774995386600494, 0.2527414858341217, -0.4704379439353943, 0.2593770921230316, -0.2291090041399002, 0.13411185145378113, -0.2876507341861725, -0.5424712896347046, 0.021385928615927696, -0.28120118379592896, 0.24678540229797363, -0.04316797852516174, -0.22380384802818298, 0.16705487668514252, -0.01071883738040924, 0.05957064777612686, 0.15068930387496948, 0.3264894187450409, -0.279312402009964, 0.12475694715976715, 0.16684679687023163, 0.07916036993265152, -0.12364113330841064, 0.47289377450942993, -0.0779326856136322, -0.13691061735153198, -0.12665526568889618, -0.1621520221233368, -0.6035355925559998, 0.05485758185386658, -0.37961527705192566, 0.24488914012908936, 0.0042181313037872314, 0.05063050985336304, 0.03254261240363121, 0.06625428050756454, 0.2591131329536438, 0.08565917611122131, -0.366394966840744, 0.23652181029319763, -0.07259964197874069, 0.1324075609445572, 0.24620965123176575, 0.011353773064911366, 0.19802293181419373, -0.12489072233438492, -0.2756645083427429, 0.047656647861003876, -0.16181620955467224, -0.10357119888067245, 0.004522934556007385, -0.17501063644886017, 0.30701351165771484, -0.6238244771957397, -0.09819702804088593, -0.05586859583854675, 0.12886470556259155, -0.21354477107524872, 0.0828685611486435, 0.19961334764957428, -0.10792684555053711, 0.47505536675453186, 0.014079861342906952, -0.41188353300094604, -0.1699378937482834, 0.47650787234306335, 0.06739510595798492, 0.041594862937927246, 0.4440053403377533, -0.09668479859828949, -0.030206341296434402, -0.060910798609256744, 0.44120752811431885, -0.0831039622426033, -0.47427013516426086, 0.2274121195077896, -0.33019018173217773, 0.3447000980377197, 0.021001508459448814, 0.3565441966056824, 0.5420541763305664, 0.43919068574905396, -0.013571709394454956, -0.2046363800764084, 0.01589968614280224, 0.0229213684797287, 0.050129082053899765, 0.42373377084732056, -0.09234769642353058, 0.4085058569908142, 0.00413932278752327, -0.027692047879099846, -0.23741433024406433, 0.3453594744205475, -0.047981202602386475, 0.04063425585627556, 0.14095255732536316, -0.03423350304365158, 0.14496548473834991, -0.025378834456205368, -0.05781225860118866, 0.25469696521759033, -0.18961742520332336, -0.12972265481948853, -0.18773511052131653, 0.218501016497612, 0.11131728440523148, -0.14857181906700134, 0.10902725905179977, -0.04808829352259636, 0.09649908542633057, -0.0651797205209732, 0.020398352295160294, 0.08262232691049576, -0.06147906184196472, 0.29907092452049255, 0.04645554721355438, -0.1582021415233612, -0.03225851058959961, 0.1964217871427536, -0.24965959787368774, 0.3323279321193695, 0.13131943345069885, 0.35231998562812805, 0.1779557168483734, 0.003950946033000946, -0.08669295907020569, 0.005066424608230591, 0.033032286912202835, 0.0843176543712616, 0.2701558470726013, -0.25232863426208496, 0.09544502198696136, 0.32073691487312317, 0.1293780505657196, 0.3699228763580322, -0.16707710921764374, -0.198152557015419, 0.2500641345977783, 0.184502974152565, -0.28060728311538696, 0.027438780292868614, 0.48265427350997925, 0.07920434325933456, -0.061439476907253265, 0.1219385415315628, 0.05152340605854988, -0.040397096425294876, -0.18601785600185394, 0.1256127655506134, 0.30578193068504333, 0.17066791653633118, 0.32756873965263367, 0.7761427164077759, -0.1907459795475006, -0.04412340745329857, 0.03297029808163643, -0.2791094183921814, 0.22208160161972046, 0.17889079451560974, -0.1657695472240448, 0.35930779576301575, -0.16198602318763733, 0.33047860860824585, -0.29007405042648315, -0.4505561590194702, -0.08054238557815552, 0.14380888640880585, -0.08444418013095856, 0.13133026659488678, 0.07868167757987976, 0.4334905743598938, -0.20612195134162903, -0.03494488075375557, -0.44426992535591125, 0.2482868731021881, 0.06692138314247131, 0.0064114760607481, 0.06860270351171494, -0.20481474697589874, -0.16501152515411377, 0.09234373271465302, -0.06433545053005219, -0.016690142452716827, 0.32752275466918945, -0.14246530830860138, -0.3697819709777832, -0.4538443982601166, -0.2162763476371765, -0.0822579637169838, 0.21164244413375854, -0.4417616128921509, 0.11986928433179855, 0.10424696654081345, -0.2983013093471527, 0.01444624550640583, 0.6690341234207153, 0.3910438120365143, 0.22214117646217346, -0.008295204490423203, -0.08402024209499359, 0.13981471955776215, 0.15869852900505066, 0.09231055527925491, 0.3012758791446686, 0.09067462384700775, -0.17680595815181732, 0.3088204264640808, 0.02994985692203045, -0.08843362331390381, 0.07007045298814774, -0.36394429206848145, -0.21193137764930725, -0.4602620601654053, 0.23094508051872253, -0.1386173814535141, 0.08855714648962021, -0.07250261306762695, 0.04637179896235466, -0.33388715982437134, -0.07660586386919022, 0.12689287960529327, -0.03443640097975731, 0.24613496661186218, 0.09628015756607056, 0.024332232773303986, -0.3029867708683014, 0.21543319523334503, 0.4572518467903137, -0.23801955580711365, -0.12723363935947418, -0.2411002367734909, -0.5297261476516724, 0.19886715710163116, -0.14531128108501434, -0.22237928211688995, -0.012874362990260124, 0.2722306251525879, -0.2468574047088623, 0.03109651431441307, 0.41035163402557373, 0.2545852065086365, -0.13202430307865143, 0.16706052422523499, -0.3741109073162079, -0.10490317642688751, -0.12440523505210876, 0.06319691985845566, 0.1704511195421219, -0.25947389006614685, 0.23766674101352692, -0.0988563597202301, -0.04036872833967209, -0.15499712526798248, -0.035338882356882095, 0.059816230088472366, -0.06584417819976807, 0.4095594584941864, 0.3740639388561249, 0.2854388356208801, 0.037070758640766144, -0.14655156433582306, -0.2708664536476135, -0.17622147500514984, -0.18874794244766235, 0.46480661630630493, 0.003347069025039673, 0.2654680907726288, -0.15924209356307983, 0.030547577887773514, -0.1501217782497406, 0.5124753713607788, 0.12082494795322418, -0.020225385203957558, -0.246693417429924, -0.2782556414604187, -0.0599173828959465, -0.07594714313745499, 0.42664197087287903, 0.2766798138618469, -0.16499052941799164, 0.10613777488470078, -0.025804564356803894, -0.41283488273620605, 0.4644293785095215, 0.008161731995642185, -0.06493627279996872, -0.18165890872478485, 0.23981207609176636, 0.3171190023422241, -0.2281711995601654, -0.45768997073173523, 0.042085014283657074, 0.6015405654907227, -0.032609906047582626, -0.10801273584365845, 0.16676613688468933, -0.07205215096473694, -0.06101580709218979, 0.08577293157577515, 0.15625505149364471, -0.01380959153175354, -0.31804975867271423, 0.4304463267326355, -0.06330923736095428 ]
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.3607832193374634, -0.23985442519187927, 0.05169728025794029, 0.46070873737335205, -0.04562743008136749, 0.13274210691452026, 0.06605301052331924, 0.6086548566818237, 0.14397089183330536, 0.13747943937778473, -0.22836634516716003, 0.121692955493927, -0.05118674784898758, 0.24088026583194733, 0.0173506997525692, 0.05545218661427498, -0.1288677155971527, 0.20908674597740173, 0.03275248780846596, 0.09640057384967804, -0.2407316416501999, 0.1652146875858307, -0.3307676911354065, -0.08779357373714447, -0.09194272756576538, 0.04680512845516205, -0.07857243716716766, 0.25251877307891846, -0.1423962563276291, -0.37203699350357056, 0.3101978302001953, -0.3209814727306366, 0.052662961184978485, 0.4554580748081207, -0.00012362563575152308, 0.05841191112995148, 0.3002467751502991, -0.24924221634864807, -0.1643611490726471, -0.020218342542648315, -0.49523207545280457, -0.45829644799232483, -0.1188492476940155, -0.11415018141269684, 0.184962660074234, -0.05215849354863167, 0.09237958490848541, -0.23818889260292053, 0.3523256778717041, 0.17602354288101196, 0.10760824382305145, 0.26880618929862976, 0.1909797042608261, -0.014178717508912086, 0.39950013160705566, -0.28850042819976807, -0.2018011212348938, -0.026037704199552536, 0.20259660482406616, 0.23452481627464294, -0.00044996291399002075, 0.2051195651292801, 0.015543090179562569, 0.31760671734809875, 0.12301798164844513, -0.08524522930383682, 0.1734512746334076, -0.22359636425971985, 0.17657488584518433, 0.46329906582832336, 0.7116632461547852, -0.2908663749694824, -0.3333328068256378, -0.4549489915370941, -0.4818347692489624, -0.0767989382147789, 0.3402117192745209, 0.3721659481525421, 0.011020628735423088, 0.2835705280303955, -0.2383941113948822, -0.014435427263379097, 0.08676798641681671, 0.02480553835630417, -0.265261173248291, 0.1660386621952057, -0.06558679044246674, 0.0525524765253067, -0.005364209413528442, 0.13843533396720886, 0.2647069990634918, -0.07358714938163757, 0.054830580949783325, 0.17592233419418335, -0.24086137115955353, -0.07403732091188431, 0.016543392091989517, -0.23525795340538025, 0.37271931767463684, 0.33543139696121216, 0.36359530687332153, -0.19546392560005188, -0.3061279356479645, -0.012784779071807861, 0.20202508568763733, 0.46319520473480225, -0.1391374170780182, 0.040277354419231415, -0.17405791580677032, 0.05758395045995712, 0.11164984107017517, -0.10035555809736252, -0.016987327486276627, -0.3424656391143799, 0.16437594592571259, 0.06348547339439392, 0.6322451233863831, -0.36087626218795776, -0.563814640045166, 0.06203973665833473, -0.2243337333202362, -0.24493113160133362, -0.2871403396129608, -0.07887261360883713, -0.3087587356567383, 0.34459999203681946, 0.10833393037319183, -0.14104939997196198, -0.25083914399147034, -0.409702330827713, -0.2513112425804138, -0.12820155918598175, -0.14434413611888885, 0.041549067944288254, 0.0319388248026371, -0.13854771852493286, 0.29200267791748047, 0.0044020963832736015, -0.048390522599220276, -0.18852731585502625, 0.1772957742214203, -0.04952605068683624, 0.03959173336625099, 0.2417323887348175, -0.06378460675477982, 0.2164580374956131, 0.03117278590798378, 0.12612174451351166, -0.3001105487346649, 0.3434179127216339, -0.3207671046257019, -0.31995880603790283, -0.09843727946281433, 0.07814671099185944, -0.22465655207633972, -0.1677703857421875, 0.10533321648836136, -0.047128308564424515, 0.3671298325061798, -0.22513225674629211, -0.09916242212057114, -0.1212017685174942, -0.1245306134223938, -0.10965138673782349, 0.04496897757053375, 0.534920334815979, -0.45289361476898193, -0.18018153309822083, 0.18557578325271606, -0.14250390231609344, 0.3732620179653168, 0.3822270929813385, 0.08771347999572754, 0.02404479682445526, -0.23599562048912048, 0.08255313336849213, 0.020386531949043274, -0.4213363826274872, -0.802486002445221, 0.42922887206077576, -0.06396888941526413, 0.196150541305542, 0.1568334996700287, -0.1446540504693985, 0.1170867383480072, -0.15085412561893463, 0.057605043053627014, 0.17177580296993256, -0.20160958170890808, 0.0442332923412323, -0.6290656328201294, -0.8196588158607483, 0.38513559103012085, -0.025481360033154488, 0.223965123295784, -0.1056240126490593, 0.02499992400407791, 0.27329063415527344, 0.3688708245754242, 0.10132363438606262, 0.06601717323064804, 0.16582363843917847, 0.003907740116119385, 0.095490463078022, -0.04453565552830696, -0.29338589310646057, -0.3191501796245575, 0.27789968252182007, -0.2501989006996155, -0.12875546514987946, 0.30109935998916626, -0.14114239811897278, -0.5185487270355225, -0.28882044553756714, -0.08627963066101074, -0.09268593788146973, -0.03155370056629181, 0.03899047151207924, 0.2252083122730255, 0.03516290709376335, 0.029835429042577744, 0.3739859461784363, 0.11673478782176971, 0.13846547901630402, -0.2917840778827667, 0.12454116344451904, -0.03965015709400177, -0.016622595489025116, 0.003760453313589096, -0.13159477710723877, 0.1895121932029724, -0.11182761937379837, -0.38345086574554443, 0.6283043026924133, -0.0011393851600587368, 0.11504203081130981, -0.09077630192041397, -0.013246044516563416, 0.26554256677627563, -0.18315166234970093, 0.1516954004764557, 0.330577552318573, -0.03886754438281059, -0.11388257890939713, 0.03777429088950157, -0.18088282644748688, 0.12144790589809418, 0.01562681794166565, -0.11234484612941742, 0.0120700653642416, -0.05925197899341583, -0.16833913326263428, 0.052032507956027985, -0.1470988243818283, 0.04103182628750801, -0.13232126832008362, 0.1531807780265808, -0.05869382619857788, 0.08949814736843109, -0.0775129571557045, 0.6427757143974304, -0.04618989676237106, -0.002412930130958557, 0.27738600969314575, -0.31353724002838135, -0.1165984570980072, -0.14924350380897522, 0.3093588650226593, 0.43153077363967896, 0.2351761758327484, 0.1816485971212387, 0.21485425531864166, -0.048040904104709625, -0.06632514297962189, 0.06239689514040947, 0.2788146138191223, 0.11034873127937317, 0.278704434633255, 0.03146510571241379, 0.06040110066533089, -0.23386061191558838, 0.1105605959892273, 0.19597646594047546, 0.33611899614334106, -0.4241129755973816, -0.17647744715213776, -0.4222448468208313, -0.09840874373912811, -0.225397527217865, 0.17798453569412231, -0.16844035685062408, -0.22848524153232574, -0.08693080395460129, 0.06736790388822556, -0.011214852333068848, 0.18163208663463593, -0.27456608414649963, 0.1598084270954132, 0.13928191363811493, 0.04023975133895874, 0.012566953897476196, 0.02351249009370804, -0.4680192470550537, -0.02324226126074791, 0.33287692070007324, -0.3140127956867218, 0.34913572669029236, -0.5354388952255249, -0.010772811248898506, -0.025656888261437416, -0.15332874655723572, 0.0009081624448299408, 0.08253657817840576, -0.06960297375917435, 0.23422181606292725, 0.23362836241722107, 0.05638289451599121, 0.1101667732000351, 0.12086471170186996, -0.270548939704895, -0.23771700263023376, -0.10754114389419556, 0.12148084491491318, 0.3437820076942444, -0.023393265902996063, -0.5561497211456299, -0.28823766112327576, -0.39059796929359436, 0.24522247910499573, 0.14880356192588806, 0.22246545553207397, 0.3056906759738922, 0.08156333863735199, 0.12641656398773193, 0.12552616000175476, 0.08661217242479324, -0.2552495002746582, -0.38467851281166077, 0.2754497528076172, 0.09553099423646927, -0.26596498489379883, -0.022864092141389847, 0.22000284492969513, -0.06000513955950737, 0.1335957646369934, -0.5093488097190857, -0.1830069124698639, -0.4022885262966156, -0.2084583342075348, -0.12369351089000702, 0.22602280974388123, 0.4829978048801422, 0.014628609642386436, -0.030063917860388756, -0.13768117129802704, -0.33008742332458496, 0.036825817078351974, 0.19500654935836792, 0.4865726828575134, -0.10929851979017258, 0.23801591992378235, 0.3572041690349579, 0.4601346254348755, 0.4681926667690277, 0.11954621970653534, 0.08321849256753922, 0.041775401681661606, 0.2068864107131958, -0.10637404769659042, 0.05970952659845352, 0.12456060200929642, -0.2355281114578247, -0.028262710198760033, 0.26901310682296753, 0.1604708433151245, -0.08776456117630005, -0.09378647804260254, -0.1780090183019638, -0.29764285683631897, -0.1028992235660553, -0.056094855070114136, -0.06753994524478912, 0.17030222713947296, 0.2686716318130493, 0.10517451912164688, -0.3179880678653717, -0.20110318064689636, 0.12883572280406952, 0.037552326917648315, -0.01857714354991913, 0.0662483498454094, 0.09506940841674805, 0.4359322190284729, -0.300875186920166, 0.40846484899520874, 0.11361508816480637, 0.23963645100593567, 0.15710411965847015, -0.22721058130264282, 0.1036057323217392, 0.03305654972791672, 0.4885373115539551, -0.25716009736061096, 0.09512270987033844, 0.08096261322498322, 0.15086081624031067, -0.3015546500682831, -0.28616321086883545, -0.1340232640504837, 0.031259872019290924, 0.5175753235816956, 0.03745095431804657, -0.44276317954063416, 0.03978976234793663, 0.20951324701309204, 0.4867497384548187, -0.21451766788959503, -0.006349940784275532, -0.18368396162986755, -0.3508104681968689, -0.44051751494407654, 0.010053843259811401, 0.14410629868507385, 0.1535170078277588, 0.0876210406422615, -0.10922227799892426, -0.1667594462633133, -0.09141115844249725, 0.13701719045639038, -0.10009650886058807, 0.3531222343444824, 0.02724425680935383, 0.28101497888565063, 0.24077604711055756, 0.3583733141422272, 0.25567689538002014, 0.538351833820343, -0.021165043115615845, -0.04883591830730438, 0.01285307016223669, -0.09266429394483566, -0.2564070522785187, 0.40618211030960083, 0.0760531947016716, -0.307033509016037, 0.10120783001184464, 0.14283695816993713, -0.24153193831443787, 0.24892295897006989, 0.23467974364757538, -0.18335376679897308, -0.5043684244155884, -0.6911813616752625, 0.45534858107566833, 0.17150497436523438, -0.09410589933395386, 0.4634646773338318, -0.07329592108726501, -0.14975950121879578, 0.06286292523145676, -0.10803263634443283, 1.1349257230758667, -0.0019092932343482971, -0.07801896333694458, 0.08735480904579163, -0.5329982042312622, 0.172620952129364, -0.28166085481643677, 0.19412045180797577, -0.20071296393871307, -0.4522465467453003, -0.06416647136211395, -0.25952598452568054, 0.09830375015735626, 0.0390520840883255, -0.1713239699602127, 0.27630099654197693, 0.07490551471710205, 0.14467979967594147, 0.18822059035301208, 0.23707827925682068, -0.30198797583580017, 0.02622065320611, 0.16557423770427704, 0.03742113709449768, -0.20988886058330536, 0.5125647783279419, -0.10525780916213989, -0.24270083010196686, -0.10340087115764618, -0.12326142191886902, -0.5089895129203796, 0.11672956496477127, -0.37654033303260803, 0.27642637491226196, -0.23749294877052307, -0.086280457675457, 0.03579312562942505, -0.05254368111491203, 0.02487920969724655, -0.044972848147153854, -0.39382803440093994, 0.1956786960363388, 0.05945339798927307, 0.2147146612405777, 0.2943230867385864, 0.03357405960559845, 0.25831228494644165, 0.0008406639099121094, -0.10664129257202148, 0.14041352272033691, -0.0813283622264862, -0.23165041208267212, -0.027080677449703217, -0.04368346184492111, 0.30948781967163086, -0.5829213261604309, -0.21635694801807404, -0.10270765423774719, 0.12448172271251678, -0.2333383709192276, 0.0343787707388401, 0.08797571063041687, -0.07463792711496353, 0.34084048867225647, -0.0635322630405426, -0.47171786427497864, -0.19944599270820618, 0.520671546459198, 0.18199056386947632, 0.029335439205169678, 0.358467161655426, -0.14132671058177948, -0.06398426741361618, 0.04704151302576065, 0.30873942375183105, -0.22379063069820404, -0.7066397070884705, 0.33286017179489136, -0.5006844997406006, 0.2621082067489624, 0.05292799323797226, 0.18185275793075562, 0.48507916927337646, 0.41760942339897156, -0.07805982977151871, -0.14454931020736694, -0.04885082691907883, -0.013843104243278503, 0.03819751366972923, 0.38527873158454895, 0.04855121672153473, 0.4218776822090149, 0.10681736469268799, -0.16264599561691284, -0.21201708912849426, 0.27454066276550293, 0.05312678962945938, -0.03907995671033859, 0.06395077705383301, 0.06059086322784424, 0.13907918334007263, -0.12533797323703766, -0.1304658204317093, 0.2742483615875244, -0.22843505442142487, -0.08785218000411987, -0.18363244831562042, 0.23176449537277222, 0.09937800467014313, -0.1137637346982956, -0.06071380898356438, -0.16764698922634125, 0.10752606391906738, -0.10304292291402817, -0.020471669733524323, 0.0792439803481102, 0.004506543278694153, 0.12120179831981659, 0.07529260218143463, -0.1436762511730194, -0.1643713265657425, 0.22731558978557587, -0.1274590641260147, 0.25892752408981323, 0.048545967787504196, 0.37217146158218384, 0.11872756481170654, 0.06776897609233856, -0.21130886673927307, -0.05178884416818619, 0.11616408824920654, 0.1264185905456543, 0.26358386874198914, -0.3530117869377136, 0.12229104340076447, 0.43289676308631897, 0.13213853538036346, 0.33371686935424805, -0.15844963490962982, -0.2856971025466919, 0.09009262174367905, 0.12637144327163696, -0.31193050742149353, 0.07998215407133102, 0.526372492313385, 0.030018195509910583, -0.050225138664245605, 0.16433189809322357, 0.2634994089603424, -0.027880895882844925, -0.25501418113708496, 0.24302977323532104, 0.5129174590110779, 0.16042745113372803, 0.22516891360282898, 1.0427392721176147, 0.01069759950041771, 0.10180167853832245, 0.10389880836009979, 0.004084579646587372, 0.34067267179489136, 0.41266965866088867, 0.08492758125066757, 0.2741696238517761, -0.02479228749871254, 0.39097705483436584, -0.413440078496933, -0.4724242687225342, -0.11341404914855957, 0.31694281101226807, -0.013726107776165009, 0.278759241104126, 0.16789790987968445, 0.2187367081642151, -0.25511229038238525, 0.02235507406294346, -0.3514286279678345, 0.18481795489788055, 0.016843395307660103, -0.03287355601787567, 0.3247114419937134, -0.2265099585056305, -0.14029967784881592, 0.0862736701965332, -0.16057968139648438, 0.13835425674915314, 0.23718206584453583, -0.18598870933055878, -0.19394232332706451, -0.3010241389274597, -0.1874036192893982, 0.010578405112028122, 0.16249847412109375, -0.4342550039291382, 0.1783878058195114, 0.13046635687351227, -0.2807536721229553, 0.03244771808385849, 0.6316356658935547, 0.40810638666152954, 0.30065789818763733, -0.0689980685710907, -0.10266849398612976, 0.30051302909851074, 0.13602229952812195, -0.09127200394868851, 0.10527736693620682, 0.07037360966205597, -0.0674075335264206, 0.3016677498817444, 0.021481482312083244, -0.10851195454597473, 0.015388309955596924, -0.27763527631759644, -0.16976243257522583, -0.35232505202293396, 0.33878618478775024, -0.22935369610786438, 0.06965658813714981, -0.03201329708099365, 0.040482521057128906, -0.37426072359085083, 0.0021913708187639713, 0.12926529347896576, -0.05586283281445503, 0.22969797253608704, 0.1696496158838272, 0.0025293156504631042, -0.14840054512023926, 0.2151016741991043, 0.43009039759635925, -0.32796818017959595, -0.1806132048368454, -0.055386900901794434, -0.6753024458885193, 0.19293461740016937, -0.2446192502975464, -0.16387690603733063, 0.07041562348604202, 0.35782310366630554, -0.17261046171188354, -0.03412725776433945, 0.43781083822250366, 0.37695181369781494, -0.11194153130054474, 0.20100679993629456, -0.17593851685523987, -0.23223097622394562, 0.014995694160461426, 0.03643734008073807, 0.11348594725131989, -0.4270344376564026, 0.21207773685455322, 0.13160336017608643, -0.06731570512056351, -0.20845891535282135, -0.09718859195709229, 0.11513260006904602, -0.14769138395786285, 0.5114880800247192, 0.2450008988380432, 0.3539234399795532, 0.007062952965497971, -0.2918645143508911, -0.2748833894729614, -0.18093609809875488, -0.2635328471660614, 0.3029255270957947, 0.007489582523703575, 0.191379114985466, -0.23447909951210022, -0.05331447347998619, -0.1607615053653717, 0.5604592561721802, 0.11867506802082062, 0.05773434415459633, -0.2615605592727661, -0.2985362112522125, -0.20299091935157776, -0.054315321147441864, 0.42809081077575684, 0.21247515082359314, -0.19550982117652893, 0.11993493139743805, -0.03389998525381088, -0.5013505220413208, 0.38012850284576416, 0.04241818189620972, -0.08643818646669388, -0.09981206059455872, 0.2353787124156952, 0.45154380798339844, -0.10790502279996872, -0.3443452715873718, 0.1179371103644371, 0.4826664924621582, 0.008222786709666252, -0.10749824345111847, 0.142682746052742, -0.125990092754364, -0.10823766142129898, 0.009763147681951523, 0.09634573012590408, 0.05743991583585739, -0.41659456491470337, 0.3547319173812866, -0.10806917399168015 ]
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.33537420630455017, -0.188412606716156, 0.04876263067126274, 0.4328116178512573, 0.059134408831596375, 0.11154092103242874, -0.08526133000850677, 0.5720370411872864, -0.016945065930485725, 0.12638457119464874, -0.12406782060861588, 0.0030229573603719473, -0.07802043110132217, 0.08419771492481232, -0.12841543555259705, 0.028532451018691063, -0.12612727284431458, 0.18757282197475433, -0.25675827264785767, 0.10378044843673706, -0.2894746661186218, 0.26356494426727295, -0.31471264362335205, 0.004334956407546997, -0.17611198127269745, 0.040310267359018326, -0.19970431923866272, 0.15302835404872894, -0.25971829891204834, -0.3653441071510315, 0.27178075909614563, -0.3823177218437195, 0.05903373658657074, 0.4936445355415344, -0.00011823561362689361, 0.029585011303424835, 0.30931299924850464, -0.20890198647975922, -0.08463270962238312, -0.15988610684871674, -0.49555036425590515, -0.4291181266307831, -0.06610354781150818, -0.12108205258846283, 0.19024226069450378, -0.11714202910661697, 0.12682828307151794, -0.32751256227493286, 0.3349780738353729, 0.3231545090675354, 0.17830899357795715, 0.4126838147640228, 0.20729969441890717, 0.0013009659014642239, 0.37591752409935, -0.2919975519180298, -0.22134745121002197, -0.07040770351886749, 0.08605711162090302, 0.026813672855496407, 0.00310380756855011, 0.026894353330135345, 0.023279407992959023, 0.2867482602596283, 0.16306141018867493, -0.03683415427803993, 0.3667396903038025, -0.20628347992897034, 0.10118672996759415, 0.42101067304611206, 0.7274807095527649, -0.21539905667304993, -0.2575472593307495, -0.3073263466358185, -0.3769133388996124, 0.029799407348036766, 0.2773854434490204, 0.4866482615470886, 0.003159940242767334, 0.19840995967388153, -0.30361512303352356, 0.05754049867391586, 0.038236699998378754, 0.1616745889186859, -0.21826374530792236, 0.29670777916908264, -0.0009072963148355484, 0.15270359814167023, -0.09291605651378632, 0.0851416140794754, 0.2732589840888977, -0.12732025980949402, 0.008403342217206955, 0.16112661361694336, -0.2615141272544861, 0.0117763951420784, -0.02821981906890869, -0.24755433201789856, 0.2653855085372925, 0.3092900514602661, 0.36903640627861023, -0.3131038248538971, -0.13796328008174896, -0.003772057592868805, 0.2390369176864624, 0.37990573048591614, -0.04373408108949661, 0.18469899892807007, -0.1888064295053482, 0.03265873342752457, 0.11329220235347748, -0.07556220144033432, -0.028256546705961227, -0.36214882135391235, 0.06590822339057922, -0.01132863387465477, 0.6134745478630066, -0.2487010806798935, -0.6051996946334839, 0.06586776673793793, -0.27939367294311523, -0.25654441118240356, -0.32956206798553467, -0.1635747253894806, -0.31129148602485657, 0.25823861360549927, 0.1950361579656601, -0.08194152265787125, -0.32766368985176086, -0.37215977907180786, -0.28697288036346436, -0.11749811470508575, -0.16203999519348145, 0.04616934806108475, -0.10412988066673279, -0.013192541897296906, 0.38322913646698, -0.05878070741891861, -0.0423811674118042, -0.26994025707244873, 0.14486105740070343, 0.03240014612674713, -0.06995251029729843, 0.1504090428352356, -0.16336803138256073, 0.18283630907535553, 0.04722052067518234, 0.08470828831195831, -0.3564337491989136, 0.38979843258857727, -0.2615618109703064, -0.36364972591400146, -0.2217830866575241, 0.14569754898548126, -0.3320491313934326, -0.21517232060432434, 0.3394039273262024, -0.0417385958135128, 0.24157190322875977, -0.2057955414056778, -0.14081168174743652, -0.22037304937839508, -0.20545066893100739, -0.14001308381557465, 0.07151832431554794, 0.37401196360588074, -0.2969314754009247, -0.21842826902866364, 0.21595489978790283, -0.058300185948610306, 0.40056124329566956, 0.4265969395637512, 0.030636169016361237, 0.006885707378387451, -0.19789810478687286, 0.2515305280685425, 0.10116653144359589, -0.2532140910625458, -0.6780226230621338, 0.4099709093570709, -0.16342365741729736, 0.18147481977939606, 0.11882875114679337, -0.09907216578722, 0.07370547205209732, -0.13175493478775024, -0.08504709601402283, 0.21207651495933533, -0.2106402963399887, 0.07072620093822479, -0.5871100425720215, -0.7869004607200623, 0.37804627418518066, -0.05845107138156891, 0.16274529695510864, -0.17974939942359924, -0.027853764593601227, 0.25995776057243347, 0.49608758091926575, 0.10674260556697845, 0.014728346839547157, 0.10688423365354538, 0.06149575114250183, 0.06813888251781464, -0.08406715095043182, -0.2501349151134491, -0.15885642170906067, 0.21992430090904236, -0.18153107166290283, -0.056299060583114624, 0.30161941051483154, -0.10837400704622269, -0.5671517848968506, -0.20563088357448578, -0.05948710814118385, -0.09703725576400757, 0.0005352683365345001, 0.001390695571899414, 0.18221917748451233, 0.08781829476356506, 0.1549401581287384, 0.3509552478790283, 0.09256050735712051, 0.11530850827693939, -0.3258307874202728, 0.21880076825618744, -0.04206854850053787, -0.11440940946340561, 0.18623274564743042, -0.08072123676538467, 0.1894465684890747, -0.05065836012363434, -0.4008101522922516, 0.6621257066726685, -0.05086515098810196, 0.1304219365119934, -0.048562102019786835, 0.07591008394956589, 0.20871691405773163, -0.16475516557693481, 0.13969208300113678, 0.40400490164756775, -0.007811716757714748, -0.08936574310064316, 0.12857529520988464, -0.1466646045446396, 0.16815656423568726, 0.03858117759227753, -0.13998430967330933, 0.021916145458817482, -0.10823405534029007, -0.19068822264671326, -0.021882355213165283, -0.13638190925121307, 0.12147876620292664, -0.014376666396856308, -0.14866894483566284, 0.04905436187982559, 0.13071660697460175, -0.16637244820594788, 0.7351144552230835, -0.0395384356379509, -0.04932420700788498, 0.308415025472641, -0.3009498417377472, -0.06960822641849518, -0.18691417574882507, 0.20090194046497345, 0.5170978903770447, 0.23734153807163239, 0.1705387681722641, 0.22323964536190033, 0.005984027869999409, -0.1573752462863922, 0.12091731280088425, 0.29864004254341125, 0.22527334094047546, 0.2332681119441986, -0.004037728067487478, 0.0442562997341156, -0.1431470811367035, 0.13589368760585785, 0.05489426851272583, 0.32650911808013916, -0.42147117853164673, -0.22210270166397095, -0.47994545102119446, -0.0070517174899578094, -0.33298665285110474, 0.1856297254562378, -0.18144336342811584, -0.30454835295677185, -0.0691654309630394, 0.07297147065401077, -0.08685553073883057, 0.17727386951446533, -0.261750727891922, 0.11661830544471741, 0.17268426716327667, 0.16842694580554962, 0.11313983798027039, -0.029669910669326782, -0.5200148820877075, 0.016342483460903168, 0.28461071848869324, -0.2646356225013733, 0.3774172067642212, -0.5531550049781799, 0.01950550451874733, -0.07207074761390686, -0.14435511827468872, -0.1200665682554245, 0.059686705470085144, 0.04070517048239708, 0.1904507279396057, 0.1616002470254898, 0.07885140180587769, -0.03248139098286629, 0.18231546878814697, -0.2791777551174164, -0.1931471824645996, -0.06656384468078613, 0.14173902571201324, 0.21539144217967987, -0.015932420268654823, -0.5946938395500183, -0.26403671503067017, -0.3566409945487976, 0.24695327877998352, 0.06863009929656982, 0.18706025183200836, 0.00029209908097982407, 0.08238621801137924, 0.019130747765302658, 0.04284102842211723, 0.0874997153878212, -0.21507228910923004, -0.4413599669933319, 0.336639940738678, 0.06748808920383453, -0.30408260226249695, -0.013975139707326889, 0.28309202194213867, -0.07501816749572754, 0.08526482433080673, -0.6037397384643555, -0.11214849352836609, -0.3842427134513855, -0.10204409062862396, -0.10890011489391327, 0.19097837805747986, 0.42595192790031433, 0.03209556266665459, -0.05229923129081726, -0.14267408847808838, -0.32677385210990906, -0.009112268686294556, 0.28600013256073, 0.5351219177246094, -0.04867400974035263, 0.2700759470462799, 0.3071492612361908, 0.4374690651893616, 0.5364368557929993, 0.07918713986873627, 0.016178570687770844, -0.038535572588443756, 0.08284153789281845, -0.1028326079249382, 0.05359053611755371, 0.1910819411277771, -0.21763765811920166, 0.04924306273460388, 0.3565111756324768, 0.16965079307556152, 0.01275486871600151, -0.03684953600168228, -0.08760207891464233, -0.38987287878990173, -0.18623967468738556, -0.02276753820478916, -0.03137510269880295, 0.1551942229270935, 0.23143640160560608, 0.08149976283311844, -0.2151930183172226, -0.268563449382782, 0.10598123073577881, -0.030025169253349304, -0.14597958326339722, 0.04232959821820259, 0.1752464771270752, 0.37308767437934875, -0.37413671612739563, 0.3963315486907959, 0.09693177044391632, 0.2370707094669342, 0.17601247131824493, -0.262328565120697, 0.134169802069664, 0.06650858372449875, 0.3930378556251526, -0.015950625762343407, -0.08924002945423126, 0.07615859806537628, 0.13356152176856995, -0.4909273386001587, -0.31710267066955566, -0.1052989512681961, 0.10854016244411469, 0.5230333805084229, -0.0738658756017685, -0.3801213502883911, 0.020902341231703758, 0.30689486861228943, 0.43334898352622986, -0.23598115146160126, -0.07290856540203094, -0.12523211538791656, -0.37633728981018066, -0.2850308418273926, -0.19128406047821045, 0.04646310955286026, 0.29288241267204285, 0.004355849698185921, -0.09804127365350723, -0.07330699265003204, -0.208143413066864, 0.17462164163589478, -0.18364915251731873, 0.29250678420066833, -0.0004949792055413127, 0.3188737630844116, 0.26939910650253296, 0.3867368698120117, 0.2052205204963684, 0.5904598832130432, 0.043604522943496704, -0.18671739101409912, -0.038738884031772614, -0.1282728910446167, -0.23443615436553955, 0.30332151055336, 0.11875815689563751, -0.32591402530670166, -0.04013853892683983, 0.1956915408372879, -0.33269330859184265, 0.24289922416210175, 0.4663275480270386, -0.11626436561346054, -0.42400023341178894, -0.44185540080070496, 0.4975847899913788, 0.20400650799274445, -0.04513894394040108, 0.47908610105514526, -0.07989455759525299, -0.16777989268302917, 0.03339225798845291, -0.14595729112625122, 1.0368589162826538, 0.099915511906147, -0.09072071313858032, 0.20943140983581543, -0.5453346371650696, 0.17100398242473602, -0.1999562829732895, 0.22048142552375793, -0.2778281271457672, -0.4051022231578827, 0.006935594603419304, -0.22019441425800323, 0.16505514085292816, -0.013068772852420807, -0.21867461502552032, 0.2340095341205597, -0.03907490521669388, 0.09207704663276672, 0.1622830480337143, 0.2636514902114868, -0.23692944645881653, 0.18532949686050415, 0.26611343026161194, 0.0832999125123024, -0.21285395324230194, 0.5148097276687622, -0.07604214549064636, -0.16090215742588043, -0.1491771638393402, -0.1373741179704666, -0.5546501278877258, 0.05995021015405655, -0.31445279717445374, 0.28853094577789307, -0.21716710925102234, 0.043386608362197876, 0.08808112144470215, 0.09239358454942703, 0.014203518629074097, -0.059497226029634476, -0.3775971233844757, 0.25531670451164246, -0.05252242088317871, 0.1412574201822281, 0.26208776235580444, 0.08320512622594833, 0.11015766113996506, -0.09120340645313263, -0.2372812032699585, 0.04052288830280304, -0.08374875038862228, -0.12296469509601593, -0.09707348048686981, -0.16800689697265625, 0.38671350479125977, -0.6676738262176514, -0.15730616450309753, -0.10340748727321625, 0.14368315041065216, -0.1959364265203476, 0.08749595284461975, 0.10291952639818192, -0.04744371399283409, 0.4278295934200287, 0.0163510013371706, -0.45872265100479126, -0.19430211186408997, 0.43071040511131287, 0.12795612215995789, 0.09168983995914459, 0.4442597031593323, -0.1370527446269989, -0.03767816722393036, 0.011773914098739624, 0.4629656672477722, -0.11310618370771408, -0.5498895645141602, 0.25959286093711853, -0.4044874906539917, 0.3425942063331604, 0.09816841781139374, 0.2810598611831665, 0.5407373309135437, 0.3864489495754242, -0.026415158063173294, -0.11462884396314621, 0.0669916570186615, 0.0011299103498458862, 0.07464617490768433, 0.35882601141929626, -0.08057186007499695, 0.40451374650001526, 0.06726319342851639, -0.07049202173948288, -0.24228131771087646, 0.2544279098510742, 0.015676675364375114, 0.04286939650774002, 0.1455538272857666, 0.02864144556224346, 0.13550803065299988, -0.011796883307397366, -0.03900964558124542, 0.1854177862405777, -0.24322238564491272, -0.09896121919155121, -0.16152465343475342, 0.2079799473285675, 0.05469134449958801, -0.1530827134847641, 0.045655302703380585, -0.15101046860218048, 0.12554596364498138, -0.11626075208187103, -0.1137397438287735, 0.16457447409629822, -0.05136176943778992, 0.21836282312870026, 0.12684530019760132, -0.20660904049873352, -0.06653981655836105, 0.2602386176586151, -0.23443570733070374, 0.4273044466972351, 0.024521123617887497, 0.33840811252593994, 0.2047901302576065, -0.01087421178817749, -0.08503144234418869, -0.05981028825044632, 0.0003598034381866455, 0.1567869633436203, 0.3013489544391632, -0.2508285641670227, 0.12606920301914215, 0.36433953046798706, 0.13748100399971008, 0.4328530430793762, -0.1313251107931137, -0.2906665503978729, 0.10454735904932022, 0.178431436419487, -0.2992360293865204, 0.01616482250392437, 0.49577730894088745, 0.12226864695549011, -0.05677207559347153, 0.0761134922504425, 0.09448853135108948, -0.03117949515581131, -0.33278679847717285, 0.16457098722457886, 0.4324413239955902, 0.22569182515144348, 0.3186541497707367, 0.8666622042655945, -0.020431265234947205, -0.02565428987145424, 0.023776719346642494, -0.18413743376731873, 0.3195384442806244, 0.2806241810321808, -0.15785986185073853, 0.3437284827232361, -0.005677495151758194, 0.3505121171474457, -0.33979862928390503, -0.36720240116119385, -0.10765700042247772, 0.2417440414428711, -0.012182749807834625, 0.21982502937316895, 0.2063261866569519, 0.31087565422058105, -0.2241523265838623, -0.006380890961736441, -0.37265652418136597, 0.16761264204978943, 0.07061483711004257, -0.031357765197753906, 0.05241764336824417, -0.2259845733642578, -0.20600365102291107, 0.0640665739774704, -0.16618098318576813, 0.020216669887304306, 0.2706853151321411, -0.17954082787036896, -0.20287834107875824, -0.3367295563220978, -0.19083163142204285, -0.11357597261667252, 0.18858999013900757, -0.49490031599998474, 0.04654628038406372, 0.13435736298561096, -0.29422104358673096, 0.12901447713375092, 0.6200793981552124, 0.4436339735984802, 0.29798752069473267, -0.1408042162656784, -0.10540574043989182, 0.2517390251159668, 0.10272577404975891, 0.04671759903430939, 0.18576204776763916, 0.04891703650355339, -0.1277918815612793, 0.3198865056037903, 0.05691424757242203, -0.09909936785697937, 0.09341426193714142, -0.2364148050546646, -0.15411028265953064, -0.39874452352523804, 0.23478028178215027, -0.20859897136688232, 0.05475587397813797, 0.0016947612166404724, -0.02847052365541458, -0.3427090048789978, -0.03560032323002815, 0.1651676446199417, -0.06479500234127045, 0.2333303987979889, 0.1454218327999115, 0.021618392318487167, -0.21161878108978271, 0.22478799521923065, 0.4161568582057953, -0.31666624546051025, -0.18429642915725708, -0.23507006466388702, -0.516627311706543, 0.25522077083587646, -0.20808887481689453, -0.17861193418502808, 0.061498552560806274, 0.3182903826236725, -0.22532644867897034, -0.04374133050441742, 0.4135929346084595, 0.29707109928131104, -0.24362915754318237, 0.1413472294807434, -0.30794039368629456, -0.21091897785663605, -0.05626698583364487, 0.04034025967121124, 0.1673973649740219, -0.2650250196456909, 0.22088070213794708, -0.10541144758462906, -0.025727931410074234, -0.25199514627456665, -0.03306332230567932, 0.13484559953212738, -0.08432546257972717, 0.41373878717422485, 0.3345898389816284, 0.29515475034713745, -0.017768841236829758, -0.15736182034015656, -0.2531401813030243, -0.275358647108078, -0.20245704054832458, 0.4000006914138794, -0.03400680795311928, 0.2347240149974823, -0.22568264603614807, 0.057850003242492676, -0.15632933378219604, 0.4413222074508667, 0.016755282878875732, 0.05505053699016571, -0.20077304542064667, -0.29718461632728577, -0.09777254611253738, -0.14190377295017242, 0.36167219281196594, 0.30119454860687256, -0.15482991933822632, 0.13414880633354187, 0.016627520322799683, -0.4505014717578888, 0.46451911330223083, 0.07439925521612167, -0.07884827256202698, -0.10063797980546951, 0.15097954869270325, 0.32838958501815796, -0.05829908698797226, -0.3652932047843933, 0.108265720307827, 0.5874559879302979, 0.02014446258544922, -0.025481564924120903, 0.13244175910949707, -0.044002242386341095, -0.14342936873435974, 0.11587536334991455, 0.16677206754684448, -0.0006542876362800598, -0.44270721077919006, 0.4158492088317871, -0.13640739023685455 ]
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.03272686153650284, -0.15312662720680237, 0.10408978164196014, 0.22862495481967926, 0.0725996196269989, 0.1366073191165924, 0.3329792618751526, 0.4905763566493988, -0.0207689106464386, 0.23007377982139587, 0.23385000228881836, 0.43901801109313965, 0.027152124792337418, -0.1494164764881134, -0.11286677420139313, -0.043492041528224945, 0.036238670349121094, 0.11753664910793304, -0.0013278350234031677, -0.04473073035478592, -0.37874162197113037, 0.08444061130285263, -0.3389018177986145, 0.05751081183552742, -0.3012349009513855, -0.10772935301065445, -0.009030221030116081, 0.0034843385219573975, 0.12988968193531036, -0.4910505712032318, 0.29231956601142883, -0.5293871164321899, -0.15050123631954193, 0.16262061893939972, -0.00011587110930122435, -0.03398652747273445, 0.25184914469718933, 0.05191226303577423, -0.07845443487167358, -0.275826632976532, -0.15681728720664978, -0.2185933142900467, -0.014173908159136772, -0.16535791754722595, 0.17620187997817993, -0.037517040967941284, 0.07602310925722122, -0.1961086094379425, -0.020137563347816467, 0.27090662717819214, 0.14604949951171875, 0.4126620888710022, 0.217869833111763, 0.08923866599798203, 0.45456165075302124, 0.05079183727502823, -0.21424606442451477, 0.3872692584991455, 0.15017734467983246, -0.2261413037776947, 0.10557585209608078, 0.3145453631877899, -0.031207464635372162, 0.016081221401691437, 0.3101092278957367, 0.17673666775226593, -0.06331301480531693, -0.2293650209903717, -0.09567809849977493, 0.14122667908668518, 0.12131227552890778, -0.40144577622413635, -0.4302615821361542, -0.28518134355545044, 0.08363013714551926, -0.3390871286392212, 0.34039655327796936, 0.16856931149959564, -0.1564164012670517, 0.1623668521642685, 0.11551492661237717, 0.20142725110054016, -0.19284921884536743, 0.14998748898506165, -0.10428174585103989, 0.08338254690170288, 0.05035018548369408, 0.26093789935112, -0.05607379600405693, -0.20230041444301605, -0.2976313531398773, -0.18102653324604034, 0.006306212395429611, 0.26301541924476624, -0.3672589361667633, -0.2198311686515808, -0.15048572421073914, -0.15605804324150085, 0.15927419066429138, -0.2276546210050583, 0.29903122782707214, -0.106754370033741, 0.0777343213558197, 0.41287916898727417, 0.06080352142453194, -0.15060991048812866, 0.15270809829235077, 0.10832610726356506, 0.1780024766921997, -0.406110942363739, 0.26364660263061523, -0.034292176365852356, 0.1340160071849823, -0.5859519243240356, 0.5141171216964722, 0.26060253381729126, 0.6728466153144836, -0.11262987554073334, -0.46890249848365784, 0.1276109367609024, -0.789232075214386, 0.33375927805900574, -0.13578031957149506, 0.16271498799324036, 0.01307374332100153, 0.08639021962881088, 0.048419974744319916, 0.27741503715515137, -0.1620684117078781, -0.27432405948638916, 0.014725329354405403, -0.07467827200889587, -0.0540674664080143, -0.04467164725065231, 0.3431840240955353, -0.18989090621471405, 0.245815247297287, 0.17596524953842163, -0.11227865517139435, -0.004600252956151962, 0.26263147592544556, -0.30463817715644836, 0.14800171554088593, 0.17374934256076813, -0.42710015177726746, 0.27943697571754456, 0.03872007876634598, -0.1465894877910614, -0.18923167884349823, 0.2775798738002777, -0.12054743617773056, -0.15885823965072632, -0.21657559275627136, 0.14829547703266144, 0.002229597419500351, -0.21283355355262756, -0.05400169640779495, -0.002000555396080017, 0.24237513542175293, -0.1734899878501892, 0.1846095323562622, -0.21997909247875214, 0.018749002367258072, -0.3760908842086792, -0.011367670260369778, 0.3736346960067749, -0.6385909914970398, 0.07083699107170105, 0.12679500877857208, -0.01857476308941841, -0.03373142331838608, 0.36348506808280945, -0.18706810474395752, -0.013671264052391052, -0.059161923825740814, 0.5252672433853149, -0.008646033704280853, -0.13264630734920502, -0.43739697337150574, 0.13138675689697266, -0.07439572364091873, -0.24445459246635437, 0.04010342061519623, 0.2435707151889801, 0.14176909625530243, -0.14966264367103577, -0.017335228621959686, -0.12138502299785614, -0.13008540868759155, 0.224319189786911, -0.3260706961154938, -0.041179366409778595, 0.17207813262939453, 0.05061675235629082, -0.14694374799728394, -0.21093231439590454, 0.19453579187393188, -0.6835873126983643, 0.0329086035490036, -0.20681193470954895, 0.26666706800460815, 0.3962264657020569, 0.4044357240200043, -0.0465756431221962, 0.15520255267620087, -0.1333550214767456, -0.8110241889953613, 0.19858694076538086, 0.10084585845470428, -0.18216034770011902, -0.48114627599716187, -0.40980982780456543, -0.10612760484218597, 0.3230981230735779, 0.16904664039611816, 0.15397581458091736, 0.07517673075199127, -0.006751418113708496, -0.12268412113189697, -0.059892065823078156, -0.28498584032058716, -0.298653781414032, -0.217265784740448, 0.1865486055612564, -0.22493651509284973, 0.25759556889533997, -0.013921791687607765, -0.21678057312965393, -0.09607476741075516, 0.03442535176873207, 0.17619934678077698, -0.1273750364780426, 0.013591025024652481, 0.482009619474411, 0.10676170140504837, 0.14639197289943695, -0.11827196925878525, 0.027234837412834167, 0.3414064347743988, -0.4875244200229645, -0.27772483229637146, 0.371795117855072, 0.30924683809280396, 0.06549454480409622, -0.1880115568637848, 0.3670312762260437, -0.008577000349760056, 0.14266140758991241, -0.2432318925857544, -0.02401137538254261, 0.04764563590288162, -0.005088288336992264, -0.17066776752471924, -0.07407676428556442, -0.08376947045326233, -0.013224873691797256, 0.23083479702472687, 0.17070047557353973, -0.6484629511833191, 0.006448335945606232, 0.17776542901992798, -0.12628264725208282, 0.14714014530181885, 0.04634565860033035, -0.2821580767631531, 0.36590659618377686, 0.39183560013771057, 0.032289858907461166, 0.3437531590461731, 0.19766393303871155, -0.0775282233953476, 0.005095921456813812, -0.1521710455417633, -0.08245886117219925, 0.34863048791885376, -0.005071289837360382, 0.08308019489049911, 0.13029661774635315, 0.177151620388031, 0.2778599262237549, -0.17541226744651794, 0.018784701824188232, 0.2271975427865982, 0.19064563512802124, -0.5900595784187317, -0.06686704605817795, -0.10820377618074417, 0.07915892452001572, -0.3532589077949524, -0.1602436602115631, -0.0837705135345459, -0.2679254412651062, -0.023833081126213074, 0.1787126362323761, -0.45405450463294983, 0.29627588391304016, -0.05030199885368347, 0.06450094282627106, 0.20975716412067413, -0.287346750497818, -0.19868727028369904, -0.18054428696632385, -0.2069719135761261, 0.0005402602255344391, 0.1689915657043457, -0.06929890066385269, 0.2951599359512329, 0.2671792507171631, -0.10564960539340973, -0.5031930804252625, -0.43417173624038696, 0.02720932476222515, -0.2286228984594345, 0.1287035346031189, 0.19870182871818542, 0.2116255760192871, -0.07717804610729218, -0.34389305114746094, 0.19707976281642914, 0.035332389175891876, -0.2919720411300659, 0.14655521512031555, -0.01719261147081852, -0.04457266628742218, -0.1751169115304947, -0.4850572645664215, -0.03882122039794922, -0.22815969586372375, 0.22342287003993988, -0.31039872765541077, 0.05022655427455902, 0.16306301951408386, 0.32924383878707886, 0.13802668452262878, -0.1170726865530014, -0.15767963230609894, 0.14021743834018707, 0.27769309282302856, 0.5713927745819092, -0.019769975915551186, -0.33246636390686035, 0.2355106770992279, -0.18520911037921906, -0.0800573080778122, 0.4506339430809021, -0.21264132857322693, -0.02392008900642395, -0.11317111551761627, 0.6397435665130615, -0.07026565819978714, -0.026588989421725273, 0.3226296901702881, 0.29419049620628357, 0.013333028182387352, -0.14083850383758545, -0.31690871715545654, 0.06248817592859268, -0.023680366575717926, 0.2940811216831207, 0.0561678409576416, 0.39708778262138367, 0.014369837939739227, 0.7554783225059509, 0.11632034182548523, -0.24538113176822662, 0.1562793254852295, -0.21849802136421204, -0.0008916035294532776, 0.12684637308120728, -0.12043631076812744, -0.11777359247207642, -0.17498087882995605, -0.061520304530858994, -0.12838628888130188, -0.19149518013000488, -0.5315889120101929, 0.09410734474658966, -0.00406058132648468, -0.4546510875225067, -0.3176428973674774, 0.21340933442115784, -0.06599608808755875, 0.30064457654953003, 0.08508220314979553, 0.023706011474132538, -0.2731815576553345, -0.09839969128370285, 0.2626475989818573, -0.06198421120643616, 0.25839972496032715, -0.192772775888443, 0.011645309627056122, -0.2957201600074768, -0.23090308904647827, 0.4249308705329895, 0.280685156583786, 0.14469893276691437, 0.17868287861347198, -0.21880170702934265, -0.008267872035503387, 0.124810591340065, 0.6407938599586487, -0.18439845740795135, -0.003530554473400116, -0.07337798923254013, 0.07950384169816971, -0.4673803746700287, 0.18878015875816345, -0.2618235647678375, 0.12123756855726242, 0.26202112436294556, 0.37910982966423035, -0.42622989416122437, 0.040937092155218124, 0.27196305990219116, 0.030152732506394386, 0.0009179636836051941, -0.17887727916240692, -0.1175888329744339, 0.05389651656150818, -0.11625292897224426, -0.00025247782468795776, 0.25680506229400635, -0.03684196621179581, 0.18096671998500824, -0.10217079520225525, -0.3370203971862793, -0.01486702635884285, 0.007731929421424866, -0.005157513543963432, 0.34210798144340515, -0.22088007628917694, 0.2672508955001831, 0.029098574072122574, 0.32019534707069397, 0.5259209871292114, 0.3236469626426697, 0.23084355890750885, -0.5913681387901306, 0.047908034175634384, -0.04932146146893501, 0.37193217873573303, 0.2339027225971222, -0.01538261491805315, 0.03919569402933121, -0.016908586025238037, 0.07574913650751114, -0.1975090205669403, -0.041587021201848984, 0.32006946206092834, 0.16171284019947052, -0.022055411711335182, 0.07358243316411972, 0.5450217723846436, -0.2178986817598343, -0.08453887701034546, 0.5981540083885193, 0.42567360401153564, -0.17840111255645752, 0.3142673373222351, 0.26511138677597046, 0.8266263604164124, 0.2423481047153473, -0.042832519859075546, 0.5020025372505188, -0.2361520379781723, 0.37530210614204407, 0.43593424558639526, 0.1408495306968689, -0.4725419878959656, 0.0318119078874588, -0.00569777749478817, -0.09022288024425507, 0.056655675172805786, 0.1566026210784912, -0.08796554803848267, 0.1055397167801857, 0.14790596067905426, 0.3768031597137451, 0.011712880805134773, -0.29544275999069214, -0.18227392435073853, -0.23195737600326538, -0.048128269612789154, 0.028775397688150406, 0.05888526886701584, 0.04643828421831131, -0.02514086477458477, -0.25432270765304565, -0.3001083731651306, -0.1459309458732605, -0.02743348479270935, -0.013778440654277802, -0.6243050694465637, 0.1249295175075531, 0.3038371801376343, -0.14982768893241882, 0.10483524203300476, 0.028397155925631523, -0.002994932234287262, 0.04539908468723297, -0.17497439682483673, -0.030861947685480118, 0.16760802268981934, 0.035934288054704666, 0.10779746621847153, -0.12686263024806976, 0.14362303912639618, 0.008867383003234863, -0.33798882365226746, 0.1709945797920227, -0.3489297330379486, -0.08877714723348618, 0.2501184642314911, -0.052568063139915466, -0.2960268259048462, -0.07576315104961395, -0.11020192503929138, -0.15912599861621857, -0.15529988706111908, -0.010497916489839554, 0.07020192593336105, -0.10152800381183624, 0.08717595040798187, -0.08221779018640518, -0.14312274754047394, -0.28057706356048584, 0.056341297924518585, 0.3491207957267761, -0.1585395336151123, 0.2250402271747589, 0.7464406490325928, -0.1259882003068924, -0.09784252941608429, -0.10687506198883057, 0.27532073855400085, 0.2847050428390503, -0.7513655424118042, -0.033911172300577164, -0.2546551525592804, 0.14224950969219208, 0.04342435300350189, 0.3635244071483612, 0.41332900524139404, -0.041406869888305664, -0.12738846242427826, -0.21204917132854462, -0.3010559380054474, 0.25004738569259644, 0.17031298577785492, 0.19661341607570648, -0.12250155955553055, 0.10326197743415833, 0.06227273494005203, -0.25353991985321045, -0.2832319140434265, 0.11401060968637466, -0.08281977474689484, 0.2677059471607208, 0.15020397305488586, 0.2842870056629181, -0.003205233020707965, -0.24809974431991577, 0.08260845392942429, 0.2167171686887741, -0.033285513520240784, -0.12235186994075775, -0.1673530638217926, 0.10684923082590103, -0.01663731038570404, 0.013172328472137451, 0.019371725618839264, -0.19551484286785126, -0.015219427645206451, -0.06626053899526596, 0.039389245212078094, 0.0908399447798729, -0.19360022246837616, 0.3321724236011505, 0.0795074999332428, 0.13292066752910614, -0.37433868646621704, -0.00043866410851478577, -0.029772698879241943, 0.09489241242408752, -0.13210050761699677, 0.2827994227409363, -0.21168173849582672, 0.107241690158844, 0.07847084105014801, 0.09961561113595963, -0.3790980577468872, -0.127696692943573, 0.38358381390571594, -0.3355991840362549, -0.2621271312236786, 0.23329764604568481, 0.1428566724061966, 0.03258144482970238, -0.22080697119235992, 0.042841337621212006, 0.10392507165670395, 0.2010427713394165, -0.35848286747932434, 0.23076343536376953, 0.024183740839362144, 0.15201447904109955, 0.3160276412963867, 0.13002866506576538, 0.12716788053512573, -0.1918470859527588, 0.07123494148254395, -0.05692096799612045, 0.1015779972076416, -0.21539394557476044, -0.21066142618656158, 0.5099623203277588, -0.04213634878396988, 0.14842911064624786, 0.32957491278648376, 0.3196730315685272, 0.5036205053329468, 0.019668255001306534, 0.24916955828666687, 0.2726075351238251, 0.158789724111557, 0.04033792018890381, -0.08166662603616714, -0.2444852590560913, 0.11649894714355469, 0.17136234045028687, -0.100071981549263, -0.020089678466320038, 0.48906758427619934, 0.41659781336784363, -0.028017647564411163, -0.33240586519241333, 0.16118887066841125, -0.07317335903644562, -0.22691133618354797, 0.022663801908493042, -0.6775983572006226, -0.002576403319835663, -0.19357585906982422, -0.1397779881954193, -0.16914813220500946, -0.12195980548858643, 0.8168901205062866, 0.22138866782188416, -0.021000072360038757, -0.3886556029319763, 0.10763721168041229, 0.3059977889060974, 0.48768866062164307, -0.25390926003456116, 0.1352231800556183, 0.12344241142272949, -0.28288209438323975, -0.14006048440933228, 0.49132001399993896, 0.4069628417491913, 0.22492946684360504, -0.12126506865024567, 0.0403527207672596, -0.03470917046070099, -0.054350994527339935, 0.151704341173172, 0.16441713273525238, 0.09870629757642746, 0.1409570574760437, 0.3644827902317047, 0.08705068379640579, -0.09208359569311142, 0.0718839019536972, 0.01316823810338974, 0.2570972442626953, -0.23451754450798035, -0.10191767662763596, -0.3865167796611786, -0.4380472004413605, -0.028046343475580215, -0.20710518956184387, -0.21998757123947144, 0.0009465152397751808, 0.41157209873199463, 0.08820001780986786, 0.09867248684167862, 0.103227399289608, 0.08171715587377548, 0.047465041279792786, 0.2402695268392563, 0.5085471868515015, -0.12689590454101562, -0.28565725684165955, 0.05162179470062256, -0.7157185673713684, 0.20130914449691772, -0.05776764079928398, 0.20437109470367432, 0.2648012340068817, 0.3000231385231018, 0.172027587890625, 0.2032223343849182, 0.16527289152145386, -0.0015441616997122765, 0.02170586958527565, 0.27423620223999023, -0.12245392799377441, -0.19250088930130005, -0.013876639306545258, -0.28041669726371765, 0.07676955312490463, -0.43503043055534363, 0.23258976638317108, -0.09229535609483719, -0.01191987469792366, -0.0938098132610321, -0.07008795440196991, 0.11525756120681763, 0.031784262508153915, 0.4940907955169678, 0.07950445264577866, 0.1511562317609787, 0.03868876397609711, -0.14489035308361053, -0.11159355938434601, -0.22588765621185303, -0.2643376588821411, 0.23396149277687073, 0.08377717435359955, 0.3281973898410797, 0.09524237364530563, -0.2597883343696594, -0.006151734385639429, 0.03157980367541313, -0.03431783616542816, -0.23902514576911926, -0.2667892575263977, 0.3094370365142822, -0.27386584877967834, -0.004987999331206083, -0.15166276693344116, 0.06331364810466766, 0.0026380978524684906, 0.13073596358299255, -0.3194991946220398, -0.4689130187034607, 0.3250770568847656, -0.3774593472480774, -0.10805445909500122, 0.028019051998853683, 0.3486170768737793, 0.4853961765766144, 0.15488609671592712, -0.5569853186607361, -0.11893784254789352, 0.41561004519462585, -0.169512540102005, -0.31433263421058655, -0.19392599165439606, 0.012086236849427223, 0.0381232388317585, 0.051755424588918686, 0.559342622756958, 0.10474804043769836, 0.07320346683263779, 0.13680744171142578, -0.46988028287887573 ]
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.2438097894191742, -0.08374588936567307, -0.10764111578464508, 0.16815105080604553, 0.2711251974105835, 0.015442289412021637, 0.17673838138580322, 0.4127867817878723, 0.14656835794448853, 0.0868595540523529, -0.16489239037036896, -0.07798928767442703, -0.2590736448764801, 0.28017961978912354, -0.231763556599617, -0.29152077436447144, -0.08847101777791977, 0.15226131677627563, -0.11773867905139923, -0.06439495086669922, -0.0891425758600235, 0.3205007314682007, -0.1597214639186859, 0.14768736064434052, -0.28265658020973206, -0.32945162057876587, -0.11367208510637283, 0.09352225065231323, -0.3491751253604889, -0.44046005606651306, 0.2650220990180969, -0.052807506173849106, 0.13877590000629425, 0.38579261302948, -0.000109574590169359, -0.07007767260074615, 0.31012141704559326, -0.17516441643238068, -0.30347689986228943, -0.2981873154640198, -0.07896748185157776, -0.046948909759521484, -0.023372113704681396, -0.3721523582935333, -0.2534295618534088, 0.10506319999694824, -0.061032503843307495, -0.45902302861213684, 0.5346910953521729, 0.6502830982208252, 0.22979140281677246, 0.0913037583231926, 0.38715222477912903, -0.23227055370807648, 0.03155423328280449, 0.2178066223859787, -0.2045280784368515, 0.395279198884964, 0.2633335590362549, -0.12577728927135468, 0.0324164442718029, 0.35591718554496765, 0.04725921154022217, 0.14383907616138458, 0.21959665417671204, -0.015439177863299847, 0.11113670468330383, -0.2860594391822815, 0.22978165745735168, 0.16222253441810608, 0.3204837143421173, -0.42119184136390686, -0.14351797103881836, -0.16988122463226318, 0.05715091526508331, -0.37036222219467163, 0.3384322226047516, 0.04520093649625778, -0.32102781534194946, 0.21981236338615417, 0.24424126744270325, -0.0520666241645813, -0.1897226870059967, 0.12757326662540436, 0.20608824491500854, 0.37652334570884705, -0.10286978632211685, 0.015783242881298065, -0.03865305706858635, -0.19667750597000122, 0.09990916401147842, -0.20339369773864746, 0.04662677273154259, 0.2891247570514679, -0.30351895093917847, -0.06785387545824051, 0.03919136896729469, -0.17982834577560425, 0.11543356627225876, -0.2513123154640198, -0.025180581957101822, 0.07109042257070541, 0.0023865336552262306, 0.009314537048339844, 0.09320832788944244, 0.12633422017097473, 0.2573837339878082, 0.29380348324775696, 0.3097379207611084, 0.2206830531358719, -0.06851235032081604, 0.044471126049757004, 0.00383250555023551, -0.09989506006240845, 0.04764818027615547, 0.17068761587142944, 0.2578560709953308, -0.10943971574306488, -0.3618168234825134, 0.003474429715424776, -0.03249756991863251, 0.024419715628027916, -0.0002828827127814293, 0.30313050746917725, 0.12521089613437653, -0.12380389124155045, 0.16992609202861786, 0.26755720376968384, -0.14355508983135223, -0.3247867226600647, -0.1181284487247467, 0.3308386504650116, -0.1890401989221573, -0.14755794405937195, 0.24923475086688995, -0.16768446564674377, -0.014540644362568855, -0.07859402149915695, 0.14804187417030334, -0.07639551907777786, -0.13467226922512054, -0.19828523695468903, -0.10272938758134842, 0.13399368524551392, -0.03302986919879913, 0.06550605595111847, 0.3730120062828064, -0.5284388065338135, -0.14438971877098083, 0.05469930171966553, -0.027695290744304657, -0.2500072419643402, -0.04746410995721817, 0.22562910616397858, 0.022118739783763885, 0.057318609207868576, -0.3491021692752838, 0.45497334003448486, 0.2764907777309418, -0.030474573373794556, -0.014218784868717194, -0.22283749282360077, -0.04562913998961449, -0.1861790418624878, 0.19861869513988495, 0.5018193125724792, -0.39490002393722534, -0.025526821613311768, -0.29588156938552856, -0.015885818749666214, 0.1709481179714203, 0.3286670744419098, -0.12962104380130768, 0.3348810374736786, -0.33770987391471863, 0.26807403564453125, 0.38654911518096924, -0.32867705821990967, -0.2652454674243927, 0.04210125282406807, -0.08437971025705338, -0.016685407608747482, 0.14695222675800323, -0.008574816398322582, 0.1543230265378952, 0.05682869628071785, 0.21263688802719116, 0.1990092247724533, 0.009834812954068184, 0.090302973985672, -0.21576355397701263, 0.08755215257406235, 0.23707439005374908, 0.12174658477306366, 0.25100043416023254, -0.04290982335805893, 0.18541651964187622, 0.10804734379053116, 0.21328496932983398, -0.3157048225402832, 0.3144254684448242, 0.02353353425860405, 0.23315569758415222, -0.06487950682640076, -0.09761514514684677, -0.3182429373264313, -0.03406509757041931, 0.1612090766429901, -0.09049560129642487, 0.3825840651988983, -0.5090482234954834, -0.1393895447254181, -0.45100438594818115, 0.009789714589715004, -0.41439154744148254, -0.2540184259414673, 0.20005516707897186, 0.05246112495660782, 0.14348439872264862, 0.14026311039924622, -0.15126852691173553, 0.5673830509185791, -0.3430074155330658, 0.01668062061071396, -0.07048232853412628, 0.34891191124916077, -0.32809174060821533, -0.29810062050819397, 0.2780771255493164, 0.22819769382476807, 0.07827850431203842, -0.10924562811851501, -0.13814181089401245, 0.2861905097961426, -0.253243088722229, 0.0027441605925559998, 0.13186299800872803, -0.2189347892999649, -0.02354900725185871, -0.4651162028312683, 0.14608901739120483, 0.18155428767204285, 0.23878616094589233, -0.1993071436882019, 0.012636538594961166, 0.44935643672943115, 0.3232329785823822, 0.1039566621184349, -0.004102669656276703, 0.009562477469444275, 0.4009855091571808, 0.05257406458258629, -0.018391646444797516, -0.19861839711666107, 0.2568436563014984, -0.07519954442977905, 0.28224822878837585, -0.20669478178024292, -0.2829212546348572, 0.013571210205554962, 0.37750348448753357, 0.04914040490984917, 0.44719165563583374, 0.15337887406349182, -0.103297658264637, -0.019599154591560364, -0.16016314923763275, 0.1207776814699173, 0.3303132951259613, 0.028133761137723923, -0.04623359814286232, 0.21448075771331787, -0.10150054842233658, -0.1845666617155075, 0.21783113479614258, -0.008870139718055725, 0.05280207470059395, 0.2028622329235077, 0.12822218239307404, -0.09928536415100098, -0.3807554244995117, -0.21880409121513367, -0.010253478772938251, 0.33876240253448486, -0.26579782366752625, 0.005106942728161812, -0.12715089321136475, -0.37411272525787354, -0.19961199164390564, 0.21059143543243408, -0.12748555839061737, -0.21774812042713165, 0.03890751302242279, -0.040713559836149216, 0.029099617153406143, 0.13275228440761566, 0.09133996069431305, 0.0010948777198791504, 0.1120714545249939, -0.197209894657135, -0.0206986702978611, -0.27956104278564453, -0.19448202848434448, 0.11583214998245239, 0.3588792085647583, 0.1520620733499527, 0.4850720167160034, -0.3050045669078827, 0.013791603967547417, -0.15483100712299347, -0.4496574103832245, -0.005844153463840485, -0.34474611282348633, 0.07219065725803375, 0.09235939383506775, 0.203658789396286, -0.042854104191064835, -0.45958104729652405, 0.3144112825393677, -0.07249955832958221, -0.3400888442993164, 0.14718204736709595, -0.03508324176073074, -0.07722409069538116, -0.006532350555062294, -0.7115243673324585, -0.3026196360588074, -0.375590443611145, -0.054547011852264404, -0.11789290606975555, 0.10178479552268982, 0.07566642016172409, 0.2219255417585373, 0.2336646467447281, 0.052223291248083115, 0.11422746628522873, -0.20152638852596283, -0.20007434487342834, 0.336124062538147, -0.3108825087547302, -0.3760727345943451, 0.09445010125637054, -0.13409754633903503, 0.35076776146888733, -0.2822914719581604, -0.36921483278274536, 0.20770448446273804, -0.2674369215965271, 0.44917652010917664, 0.09266230463981628, -0.13995353877544403, 0.31983572244644165, 0.011075426824390888, -0.0922594666481018, 0.020265869796276093, -0.22114229202270508, 0.12996071577072144, -0.04060836136341095, 0.3319699168205261, 0.009671362116932869, 0.47392773628234863, 0.011861473321914673, 0.6238945126533508, 0.21547000110149384, 0.022820761427283287, 0.41567203402519226, 0.17361411452293396, 0.26692554354667664, -0.3062385022640228, -0.4208291471004486, 0.22768446803092957, -0.0628327876329422, 0.11962316930294037, 0.032303981482982635, -0.10918625444173813, -0.28959476947784424, -0.35099610686302185, -0.32933562994003296, -0.24678665399551392, -0.3040599226951599, 0.17805995047092438, -0.13393694162368774, 0.3296229839324951, -0.15103702247142792, -0.19774994254112244, -0.14770258963108063, 0.09203291684389114, -0.013546082191169262, 0.34335678815841675, -0.3183005452156067, 0.08887826651334763, -0.3328644633293152, -0.26412713527679443, -0.40696656703948975, 0.22104516625404358, 0.18435439467430115, 0.07990673929452896, -0.30193424224853516, 0.19880756735801697, -0.0035235434770584106, -0.06130845472216606, 0.17382340133190155, -0.1815270036458969, 0.2074805647134781, 0.21461421251296997, 0.07278575748205185, -0.08198387175798416, 0.011569961905479431, -0.365307092666626, 0.15260900557041168, 0.22569456696510315, 0.17233061790466309, -0.4129529297351837, 0.08294922113418579, 0.022944089025259018, 0.13357925415039062, -0.10138515383005142, -0.0803685113787651, -0.10861146450042725, -0.36184653639793396, -0.5332016348838806, 0.22365635633468628, 0.3853720426559448, 0.4265890121459961, -0.0034146080724895, 0.2268606275320053, 0.11888602375984192, -0.08768589794635773, 0.1869889795780182, 0.11628447473049164, 0.04827089607715607, 0.1831122785806656, 0.18439838290214539, 0.08210061490535736, 0.008714813739061356, -0.06820348650217056, 0.6501702070236206, 0.24224452674388885, -0.5056646466255188, -0.1315883994102478, -0.23699326813220978, 0.10605031251907349, 0.19450297951698303, -0.0631331130862236, 0.02186683565378189, -0.01951075717806816, -0.04681232571601868, 0.07103325426578522, 0.2546417713165283, 0.25305283069610596, 0.3129631280899048, -0.42402857542037964, -0.3952416479587555, 0.09297467768192291, -0.2013547122478485, -0.019674599170684814, -0.02488468587398529, 0.2520095705986023, -0.42550092935562134, 0.2545575499534607, -0.004593320190906525, 0.9560574889183044, 0.03477093577384949, 0.2339392751455307, 0.14941394329071045, -0.18398426473140717, 0.18414050340652466, 0.028660118579864502, -0.05934983491897583, -0.15310125052928925, 0.15605679154396057, -0.029891513288021088, -0.024732548743486404, 0.296377569437027, -0.10798968374729156, -0.30208349227905273, 0.09644590318202972, -0.027894463390111923, -0.11223295331001282, -0.09037884324789047, 0.29755425453186035, -0.14143574237823486, -0.2657575309276581, -0.5213627219200134, 0.1996452510356903, -0.08861681818962097, 0.1661653220653534, 0.054711632430553436, -0.13751891255378723, -0.16893020272254944, -0.3871946334838867, -0.5968735814094543, -0.008598830550909042, -0.08722055703401566, 0.21623173356056213, -0.16307666897773743, -0.42507272958755493, 0.565302848815918, 0.39264100790023804, 0.657198965549469, 0.13442283868789673, -0.11756165325641632, 0.13070790469646454, -0.18848535418510437, -0.24168649315834045, 0.12481163442134857, 0.0581643283367157, 0.3777546286582947, -0.2391432523727417, -0.3237072229385376, 0.29995837807655334, -0.0002485103905200958, -0.1739891916513443, -0.3040999174118042, -0.16430595517158508, -0.09438291192054749, -0.24171070754528046, -0.12733499705791473, -0.09506009519100189, -0.20038069784641266, -0.3413674533367157, 0.1872369349002838, 0.1308598816394806, -0.21873025596141815, 0.13254553079605103, -0.03594426438212395, -0.20038555562496185, -0.07233402132987976, 0.332536518573761, 0.20053362846374512, 0.026550360023975372, 0.7404001951217651, 0.2742210924625397, -0.24604885280132294, -0.26864585280418396, 0.044100649654865265, 0.2170720398426056, -0.1088809072971344, 0.10440705716609955, 0.04071701318025589, -0.16580794751644135, -0.1185247078537941, 0.5871524810791016, 0.1434546262025833, -0.08346938341856003, 0.08922602236270905, -0.37364351749420166, -0.5136308670043945, 0.1403682380914688, 0.03449424356222153, 0.07110798358917236, 0.1605331301689148, 0.5175582766532898, 0.1939779371023178, 0.25975850224494934, -0.35456717014312744, -0.019979823380708694, -0.12650944292545319, 0.22015829384326935, 0.25642895698547363, -0.10306378453969955, 0.16951720416545868, 0.0986918956041336, 0.1692529171705246, 0.25681835412979126, -0.07449990510940552, -0.25628677010536194, -0.029707495123147964, 0.06849201023578644, 0.060976866632699966, -0.01829581707715988, 0.06270509958267212, -0.41807377338409424, 0.04655691981315613, -0.01981167681515217, 0.09023061394691467, 0.17903763055801392, -0.10408191382884979, 0.2523132264614105, -0.09542946517467499, 0.1027105301618576, 0.2190425544977188, -0.004935860633850098, -0.2229180634021759, -0.03160330653190613, 0.11609584093093872, -0.011886648833751678, -0.008047586306929588, -0.13229915499687195, -0.08370818942785263, 0.03942927345633507, -0.18643321096897125, 0.14574255049228668, 0.4332694113254547, -0.338683545589447, 0.06520898640155792, 0.048555344343185425, 0.20000800490379333, 0.08994154632091522, -0.3356073200702667, 0.2155047059059143, 0.14965012669563293, 0.1620500385761261, -0.5012565851211548, -0.026077261194586754, -0.10486473143100739, -0.1312345415353775, 0.1752728670835495, 0.08970977365970612, -0.05301054194569588, 0.171843022108078, -0.06691953539848328, 0.04152669385075569, 0.21855486929416656, -0.16882938146591187, -0.01815776899456978, 0.17048297822475433, -0.08144055306911469, -0.022954639047384262, 0.3968541920185089, 0.17063091695308685, 0.08171428740024567, 0.7542805671691895, -0.4638422131538391, 0.2728511393070221, 0.028381070122122765, 0.07989897578954697, 0.07516944408416748, -0.0453798845410347, 0.2522484362125397, 0.0665886327624321, -0.15791171789169312, 0.16911016404628754, 0.00046687573194503784, 0.23413056135177612, -0.17010827362537384, 0.10330596566200256, 0.06907302141189575, 0.03034132532775402, -0.1861152946949005, 0.04514040797948837, -0.24740146100521088, -0.16477271914482117, -0.0838669165968895, -0.13830243051052094, -0.16348811984062195, -0.004615373909473419, 0.3166757822036743, 0.03174996003508568, -0.1646096557378769, -0.33792033791542053, 0.1691758632659912, 0.00944729894399643, 0.2030901312828064, -0.224862739443779, 0.2859092652797699, 0.43939298391342163, 0.006821103394031525, 0.2072540819644928, 0.2722851634025574, 0.5848602056503296, 0.25578904151916504, -0.3220207989215851, 0.2581303119659424, -0.19161489605903625, -0.35101982951164246, 0.015338420867919922, 0.20820878446102142, 0.32830801606178284, 0.43782949447631836, 0.294405072927475, 0.20152117311954498, -0.16135045886039734, -0.008940581232309341, 0.27970564365386963, 0.0970088541507721, -0.07757769525051117, 0.17494897544384003, -0.21065063774585724, -0.14003461599349976, -0.27635741233825684, 0.029191143810749054, -0.406203031539917, -0.0574471578001976, 0.23990695178508759, 0.05814165994524956, 0.14197465777397156, -0.25540605187416077, 0.10375498235225677, -0.001310264691710472, 0.4438292980194092, 0.23244190216064453, 0.02144455537199974, -0.4274407625198364, -0.2046920657157898, -0.7065244913101196, -0.04201889783143997, -0.08059553802013397, -0.2868053913116455, -0.24106340110301971, 0.031006114557385445, 0.38932159543037415, 0.10407128185033798, 0.1828172206878662, -0.033789992332458496, -0.20518869161605835, -0.060109272599220276, -0.23380950093269348, -0.2392839640378952, 0.03889328986406326, 0.1976129412651062, 0.05172630399465561, -0.07288461923599243, 0.18484842777252197, 0.42002442479133606, 0.09886419028043747, -0.18606099486351013, 0.035888344049453735, 0.07440665364265442, -0.2081199586391449, 0.05464781075716019, 0.15564359724521637, 0.6450899839401245, -0.18542146682739258, 0.03294893354177475, -0.041480135172605515, -0.07969141751527786, -0.13849176466464996, 0.47967538237571716, 0.279180645942688, 0.6704038381576538, -0.2028394490480423, -0.03110542520880699, -0.07153915613889694, 0.4367155134677887, -0.028990093618631363, -0.39204245805740356, -0.27735787630081177, 0.22601766884326935, 0.11885017901659012, 0.15526796877384186, -0.12160912901163101, 0.3387446999549866, -0.08390094339847565, 0.055587418377399445, -0.3392181396484375, -0.5602795481681824, 0.32885777950286865, -0.1307484656572342, -0.4304899275302887, 0.1566847860813141, 0.06628726422786713, 0.30029118061065674, 0.1371649205684662, -0.7134612202644348, 0.2555778920650482, 0.20976707339286804, -0.032444920390844345, -0.14337925612926483, 0.18057852983474731, 0.010632314719259739, 0.148652121424675, -0.048737041652202606, 0.43463820219039917, -0.03549720346927643, -0.07641983777284622, -0.008387424051761627, -0.30054616928100586 ]
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.16120995581150055, 0.06667280197143555, 0.12359867990016937, 0.14211799204349518, 0.12110598385334015, -0.09257300198078156, 0.41813111305236816, 0.10901573300361633, 0.17314791679382324, -0.07805046439170837, 0.11544585227966309, 0.6156934499740601, -0.02113965153694153, -0.13319483399391174, 0.1611657738685608, 0.23215138912200928, 0.17596416175365448, 0.15019237995147705, 0.08690951764583588, -0.181160107254982, -0.1934698224067688, 0.09174467623233795, -0.4173080325126648, -0.10696528851985931, -0.45972463488578796, 0.024705760180950165, -0.12556196749210358, -0.0259203240275383, 0.23077000677585602, -0.373983234167099, 0.3416948914527893, 0.028604622930288315, 0.3293195962905884, 0.43406468629837036, -0.00012403483560774475, -0.06293286383152008, 0.18991151452064514, -0.11913041770458221, -0.20478028059005737, -0.24169884622097015, -0.04128924757242203, -0.06350252777338028, 0.17220261693000793, -0.17772740125656128, 0.004967924207448959, 0.1066700890660286, -0.06366828829050064, -0.5965544581413269, 0.30433446168899536, 0.26775509119033813, 0.09437204152345657, 0.03729322552680969, -0.25893688201904297, 0.22345268726348877, -0.0972786620259285, -0.10328797996044159, -0.08476752042770386, 0.03564062714576721, 0.27180150151252747, -0.40424296259880066, -0.161034494638443, 0.34303948283195496, -0.2559066414833069, 0.19869115948677063, 0.38003578782081604, 0.06395608931779861, -0.1315133273601532, -0.36240121722221375, 0.3555090129375458, -0.1061248704791069, 0.2827381193637848, -0.4287838935852051, -0.11804350465536118, -0.33754077553749084, -0.108554907143116, -0.1223064437508583, 0.20840606093406677, -0.12880747020244598, 0.1678154021501541, 0.12318794429302216, -0.36313003301620483, -0.07823953777551651, 0.1985262632369995, 0.20720601081848145, -0.14947032928466797, 0.466635137796402, -0.18641871213912964, 0.2081398069858551, -0.14785856008529663, 0.05979171395301819, 0.29989394545555115, -0.1723809391260147, 0.057892508804798126, 0.4553026854991913, -0.18578055500984192, 0.004988275468349457, 0.10425928235054016, 0.016433924436569214, -0.06919880211353302, -0.042994193732738495, 0.09923955798149109, 0.07139046490192413, -0.07835379987955093, 0.056307557970285416, 0.11883904039859772, 0.4971540868282318, 0.09555848687887192, 0.3987935483455658, 0.1923970729112625, -0.07125763595104218, -0.7449440956115723, -0.17289555072784424, -0.13216985762119293, 0.035137712955474854, 0.4841662049293518, 0.10779882222414017, 0.1735486090183258, -0.011994857341051102, 0.016338927671313286, 0.05113353580236435, -0.28967928886413574, -0.21111129224300385, 0.10565365850925446, 0.4156186580657959, -0.08019428700208664, 0.1535249650478363, -0.09498567134141922, 0.1437343955039978, -0.19452820718288422, 0.04101507365703583, -0.12124219536781311, -0.14581100642681122, -0.26523181796073914, 0.3765377998352051, 0.2610451877117157, 0.12392663955688477, 0.40089234709739685, 0.10995006561279297, -0.03339464217424393, -0.24570003151893616, 0.3013136088848114, -0.05830710753798485, 0.5958381295204163, 0.16235792636871338, -0.011866189539432526, 0.5882647633552551, 0.24304646253585815, 0.0027760975062847137, -0.1312851905822754, 0.23405203223228455, -0.6722652316093445, -0.09462422132492065, 0.48096659779548645, -0.0038468195125460625, -0.1870747208595276, -0.09045708179473877, -0.21928122639656067, 0.058336012065410614, 0.5520723462104797, -0.2391301393508911, 0.051040902733802795, -0.3370288014411926, -0.37071463465690613, -0.4002167880535126, 0.16979201138019562, 0.5289983153343201, -0.09080599248409271, -0.14195552468299866, -0.23033662140369415, 0.4682981073856354, 0.20799881219863892, 0.1423209309577942, -0.3177858889102936, 0.285812646150589, -0.30387771129608154, 0.3247830867767334, 0.20618675649166107, -0.40068545937538147, -0.6898712515830994, 0.04441259056329727, -0.018911167979240417, 0.26819315552711487, -0.2062690258026123, -0.06920182704925537, 0.2436879724264145, -0.10892335325479507, 0.03061724454164505, 0.2620006203651428, 0.19785556197166443, 0.31794050335884094, -0.29459348320961, -0.06972057372331619, 0.2854960858821869, -0.23987866938114166, 0.19030845165252686, 0.08739590644836426, 0.048778269439935684, 0.06849128752946854, 0.13007310032844543, 0.005078721791505814, 0.1377953141927719, 0.08028346300125122, 0.1884414553642273, -0.005797959864139557, 0.29428860545158386, -0.004252258688211441, -0.2619265019893646, 0.24794775247573853, -0.20687039196491241, -0.41931265592575073, -0.12663467228412628, -0.0922156497836113, -0.015847358852624893, -0.1833048164844513, -0.42200160026550293, -0.36494243144989014, 0.05387551337480545, 0.2663186192512512, 0.19151990115642548, 0.15262745320796967, -0.17012377083301544, 0.2396804541349411, 0.29253023862838745, -0.12874826788902283, -0.026447348296642303, 0.20794375240802765, 0.17296859622001648, -0.14401055872440338, -0.28899216651916504, 0.10646422952413559, 0.4621393084526062, -0.13235993683338165, -0.27465441823005676, 0.16955126821994781, 0.28873395919799805, 0.1612863540649414, -0.22192314267158508, 0.029677659273147583, 0.10397643595933914, 0.07525499165058136, 0.2001730501651764, 0.2023637890815735, 0.12307761609554291, -0.09771890193223953, 0.15751345455646515, 0.3327410817146301, 0.19185180962085724, 0.19027596712112427, -0.013909202069044113, -0.09602406620979309, 0.09414760768413544, -0.18033559620380402, 0.11435668915510178, -0.23813199996948242, -0.15936671197414398, -0.0464133583009243, 0.40034040808677673, 0.21477369964122772, 0.26899808645248413, 0.3867577314376831, 0.6588146090507507, 0.2824721932411194, 0.19875824451446533, -0.0951090082526207, -0.7050173282623291, -0.24810656905174255, 0.050405338406562805, 0.22601069509983063, 0.36129793524742126, -0.06159437075257301, -0.022983115166425705, 0.04317329823970795, 0.19448497891426086, -0.021319497376680374, 0.017520546913146973, -0.04309850186109543, 0.22247686982154846, 0.21943077445030212, 0.21847482025623322, 0.20634010434150696, -0.10534185916185379, 0.18634338676929474, 0.2211713194847107, 0.2342156022787094, -0.16759520769119263, 0.13372007012367249, -0.47663331031799316, 0.2224491536617279, -0.10267448425292969, -0.1299261450767517, -0.08756795525550842, -0.3107086420059204, -0.16441339254379272, 0.42404529452323914, 0.19987007975578308, 0.21778233349323273, 0.22667109966278076, 0.054219722747802734, -0.05038866400718689, -0.2862823009490967, -0.22004565596580505, -0.32340508699417114, -0.2892325818538666, -0.13966454565525055, 0.21441684663295746, -0.08326449990272522, -0.0014518406242132187, 0.005745235830545425, 0.03934025391936302, -0.3005695939064026, -0.31185629963874817, 0.017897162586450577, 0.1531236469745636, 0.089146189391613, -0.3017300069332123, -0.09301874041557312, -0.3721907138824463, -0.03757037967443466, 0.1113610491156578, -0.4386265277862549, -0.048365429043769836, 0.07445231825113297, 0.012251811102032661, -0.09594862163066864, 0.10136313736438751, -0.2232755422592163, -0.2573916018009186, 0.030153587460517883, 0.07767175137996674, -0.09112188220024109, -0.024840325117111206, -0.08522721379995346, -0.09291297942399979, -0.09443745762109756, -0.17821672558784485, -0.17135079205036163, -0.3487737774848938, -0.24949684739112854, 0.3564099073410034, -0.22924165427684784, -0.19708238542079926, -0.028621917590498924, -0.021307166665792465, 0.22158615291118622, 0.23032599687576294, -0.42299503087997437, -0.13996350765228271, -0.04645080119371414, 0.12764297425746918, 0.040780700743198395, 0.12311762571334839, 0.43443676829338074, 0.08247094601392746, 0.18267756700515747, -0.21574780344963074, -0.21617357432842255, 0.005898214876651764, 0.23455411195755005, 0.092919260263443, 0.12586790323257446, 0.14681218564510345, -0.03914596140384674, 0.8137378692626953, 0.33295485377311707, -0.2891390323638916, 0.39454442262649536, -0.07712220400571823, 0.19911569356918335, -0.21797558665275574, -0.39846232533454895, -0.05657070502638817, -0.18277055025100708, -0.19083376228809357, 0.16933900117874146, -0.037827976047992706, -0.2157120555639267, -0.05028484761714935, -0.19739262759685516, -0.3199205994606018, -0.29778313636779785, 0.11048703640699387, -0.17292381823062897, 0.3215152621269226, 0.3823329508304596, 0.32320472598075867, -0.589629590511322, -0.18513265252113342, 0.14686571061611176, 0.07186693698167801, 0.37745219469070435, 0.06675637513399124, -0.2743138372898102, -0.2742214500904083, -0.28540873527526855, 0.22522974014282227, 0.05437536537647247, 0.45619529485702515, 0.039405059069395065, -0.14485687017440796, 0.0027048587799072266, 0.09722691029310226, 0.27470967173576355, -0.40582194924354553, 0.014449048787355423, 0.23187553882598877, -0.16902941465377808, -0.08411891758441925, -0.16445747017860413, 0.0765199214220047, 0.4333053231239319, 0.1963193714618683, 0.4632548987865448, 0.2221897542476654, 0.04581079259514809, -0.31959226727485657, 0.3016912043094635, -0.24155423045158386, -0.07760927081108093, -0.3578522801399231, 0.0358378142118454, -0.42335084080696106, -0.053377144038677216, -0.07221612334251404, -0.1255096197128296, 0.030496913939714432, -0.11906547844409943, -0.2477414458990097, -0.1286758929491043, 0.015926077961921692, 0.28795987367630005, 0.4373829960823059, 0.15202084183692932, 0.2777382433414459, 0.2438925802707672, -0.09254521131515503, 0.2242041975259781, 0.23019587993621826, -0.1936236321926117, -0.16225460171699524, -0.07048843055963516, 0.02644963189959526, 0.2585749924182892, 0.0949290543794632, -0.37443211674690247, -0.07174012809991837, -0.1470506638288498, -0.1333126276731491, -0.1991478055715561, 0.03900746628642082, 0.11983349919319153, 0.20400182902812958, -0.21846657991409302, -0.49646374583244324, 0.1315726339817047, 0.11481183767318726, -0.22417734563350677, 0.47842809557914734, -0.5268226861953735, -0.23376742005348206, 0.46407628059387207, -0.15890803933143616, 0.6939270496368408, -0.20300598442554474, -0.01317283883690834, -0.15695792436599731, 0.2673534154891968, 0.31759488582611084, -0.2601314187049866, 0.19338427484035492, -0.4079020023345947, -0.07053001970052719, 0.017670346423983574, -0.2399066835641861, -0.060328155755996704, 0.06225033849477768, -0.3646017909049988, 0.28901591897010803, 0.04567466676235199, 0.33560824394226074, -0.011541960760951042, 0.21045523881912231, 0.28578323125839233, -0.13722029328346252, -0.05687437206506729, 0.08195434510707855, 0.0685286670923233, 0.47166717052459717, -0.003663216717541218, 0.004344135522842407, 0.07108855247497559, -0.04495442658662796, -0.09134337306022644, 0.11234375089406967, -0.7211805582046509, 0.3068864345550537, -0.17470566928386688, 0.03364145755767822, -0.051643889397382736, 0.24319495260715485, 0.35104942321777344, 0.19376470148563385, -0.12820705771446228, 0.1868286430835724, 0.1930038034915924, 0.2486361265182495, -0.047793254256248474, -0.3190559446811676, 0.14308224618434906, 0.14766281843185425, -0.17885556817054749, -0.023466847836971283, -0.062438711524009705, -0.3910645842552185, -0.2537938058376312, 0.27181345224380493, 0.47009825706481934, -0.19073404371738434, -0.13811750710010529, 0.1859203577041626, -0.02691652625799179, -0.10349112749099731, 0.02735147997736931, 0.15451331436634064, 0.09788113832473755, 0.5066227912902832, -0.3040742576122284, -0.3529682755470276, 0.09179121255874634, 0.5403843522071838, 0.13948523998260498, -0.0734274685382843, 0.3789072632789612, -0.23895873129367828, -0.07404431700706482, -0.12995846569538116, 0.04303670674562454, -0.046972934156656265, -0.23553955554962158, 0.23354201018810272, -0.09140289574861526, 0.18684260547161102, 0.09002486616373062, -0.035531070083379745, -0.21376679837703705, 0.016254223883152008, -0.3044365346431732, -0.37374889850616455, -0.3308829069137573, -0.0863470584154129, 0.05111485347151756, -0.08650098741054535, 0.4272458553314209, 0.291086882352829, 0.06012880802154541, 0.21895594894886017, -0.18951869010925293, 0.27734169363975525, 0.33140993118286133, 0.16507475078105927, -0.1432034820318222, -0.06375173479318619, 0.017693424597382545, -0.15439261496067047, -0.04805491864681244, 0.17090117931365967, -0.04991326481103897, -0.12039712816476822, -0.19941680133342743, 0.22195851802825928, 0.17116227746009827, -0.02173134684562683, -0.2919604182243347, -0.30678337812423706, 0.1630873829126358, -0.5828195810317993, 0.1274300366640091, 0.20632222294807434, -0.0932624489068985, 0.009513369761407375, 0.3784599304199219, -0.19838979840278625, -0.06998318433761597, 0.07378806918859482, -0.33431771397590637, -0.15352289378643036, 0.006280812900513411, 0.28183257579803467, 0.18309809267520905, 0.19001543521881104, -0.0367172472178936, -0.2239576280117035, 0.10025633871555328, 0.06556375324726105, 0.34663185477256775, -0.284748911857605, -0.1031520813703537, 0.03667706623673439, -0.25933003425598145, 0.29916077852249146, -0.18555839359760284, -0.2341841608285904, 0.28745830059051514, 0.07217200845479965, -0.2727130353450775, -0.17770937085151672, 0.4632626175880432, 0.16241320967674255, -0.05381994694471359, 0.20886193215847015, 0.397156298160553, -0.17309877276420593, 0.22250528633594513, 0.07208471745252609, 0.640904426574707, -0.21010638773441315, 0.30451202392578125, 0.044203877449035645, 0.08775407075881958, 0.29907622933387756, 0.2292420119047165, 0.21531738340854645, -0.13047665357589722, 0.28609949350357056, 0.050204504281282425, 0.2895386517047882, 0.2598910331726074, -0.09949846565723419, -0.005413807928562164, -0.4730806052684784, 0.01575331948697567, 0.1380021870136261, -0.3188565671443939, 0.3985806703567505, -0.07820390164852142, 0.08219869434833527, -0.08053743839263916, -0.13195452094078064, -0.020269624888896942, 0.29778337478637695, -0.3603987693786621, -0.1637580394744873, 0.19184939563274384, -0.0986473336815834, 0.05161929130554199, 0.052970100194215775, 0.02176819182932377, 0.09859310835599899, 0.4778095483779907, 0.08222199231386185, -0.39102035760879517, -0.06289785355329514, -0.33926060795783997, 0.19615697860717773, 0.42297837138175964, -0.18098828196525574, 0.2635441720485687, -0.3162916898727417, 0.039043135941028595, -0.1846117079257965, 0.10909562557935715, 0.385916143655777, 0.45599594712257385, -0.2092546820640564, 0.21419988572597504, 0.2236180156469345, 0.06624075025320053, -0.14140361547470093, 0.3060619831085205, -0.13431097567081451, -0.08278310298919678, -0.0785437524318695, 0.020350052043795586, -0.005041284486651421, -0.09616267681121826, -0.019234661012887955, 0.30186203122138977, -0.01539928000420332, 0.04972667619585991, 0.016482777893543243, -0.033266544342041016, -0.11399313807487488, 0.23522982001304626, -0.24419564008712769, 0.202922984957695, 0.556786835193634, -0.008603421971201897, 0.14962124824523926, -0.3217219114303589, 0.03488372638821602, 0.12194783985614777, 0.21719104051589966, 0.31499090790748596, -0.2996426224708557, -0.4097652733325958, -0.26769784092903137, -0.7540671229362488, 0.3354365825653076, -0.18381410837173462, 0.22101429104804993, -0.058771245181560516, 0.08054044842720032, -0.09036148339509964, -0.1343172937631607, 0.1655183732509613, -0.05265701562166214, 0.023183956742286682, 0.18467754125595093, -0.2335088551044464, -0.14103908836841583, -0.33448952436447144, 0.08516693115234375, 0.14680080115795135, -0.340309202671051, 0.2742246687412262, -0.14839090406894684, 0.0004369579255580902, -0.23218022286891937, -0.10873270034790039, 0.0131375752389431, 0.00827081874012947, 0.8180851936340332, 0.15539465844631195, 0.17735575139522552, -0.034165967255830765, 0.17844994366168976, -0.2499215304851532, 0.07681548595428467, -0.03691934794187546, 0.028761226683855057, -0.00016446784138679504, 0.0974196121096611, -0.16884027421474457, -0.1767752319574356, -0.5049834847450256, -0.16056205332279205, 0.2636038064956665, -0.11144697666168213, -0.09180840104818344, 0.0327225923538208, -0.05833928659558296, 0.3533480167388916, -0.09206612408161163, 0.46321240067481995, -0.19383862614631653, 0.37216490507125854, -0.28001660108566284, -0.16770003736019135, 0.3528716564178467, -0.6539235711097717, -0.4455692768096924, -0.23758508265018463, 0.3042321801185608, -0.2936926484107971, -0.20926229655742645, -0.5068479776382446, -0.02039707452058792, 0.4445631802082062, -0.011422757059335709, -0.2154310643672943, 0.05372427776455879, -0.09017044305801392, 0.2256152480840683, -0.2515745759010315, 0.22793066501617432, 0.2003176510334015, -0.2147219032049179, 0.07533115148544312, -0.14737427234649658 ]
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.1273978054523468, 0.07241488993167877, 0.09145854413509369, 0.009581129997968674, 0.1599632054567337, -0.06600979715585709, 0.404746949672699, 0.24604791402816772, 0.2259850651025772, -0.08738012611865997, 0.1144404485821724, 0.5168574452400208, -0.05836921185255051, -0.1686522215604782, 0.1454252451658249, 0.17430435121059418, 0.2147076278924942, 0.1613190472126007, 0.015195749700069427, -0.17486116290092468, -0.2260824590921402, -0.0004947241395711899, -0.38888293504714966, -0.053019896149635315, -0.4167591631412506, 0.11895248293876648, -0.14968350529670715, -0.06417842954397202, 0.21033591032028198, -0.4711396098136902, 0.34248992800712585, 0.12528842687606812, 0.2924119830131531, 0.37149959802627563, -0.00011757417814806104, -0.03258265554904938, 0.2381012737751007, -0.08872109651565552, -0.1687699556350708, -0.19848544895648956, -0.09116451442241669, -0.0784299224615097, 0.11407534778118134, -0.17402058839797974, 0.014862146228551865, -0.06703462451696396, -0.058018215000629425, -0.5517768859863281, 0.3449014127254486, 0.2660750150680542, 0.15694770216941833, 0.0916648730635643, -0.13243670761585236, 0.14091508090496063, -0.09194748848676682, -0.14746032655239105, -0.040210191160440445, -0.17671902477741241, 0.2883947789669037, -0.40731745958328247, -0.18619278073310852, 0.24079780280590057, -0.14709170162677765, 0.08808654546737671, 0.34595373272895813, 0.026489119976758957, -0.1978936493396759, -0.3031313121318817, 0.30969828367233276, -0.06092521548271179, 0.3651445508003235, -0.4083525240421295, -0.26330941915512085, -0.27160757780075073, -0.1292906552553177, -0.030637459829449654, 0.1167382001876831, -0.21743907034397125, 0.21543772518634796, 0.15866781771183014, -0.46892595291137695, -0.11603544652462006, 0.11138641834259033, 0.19119304418563843, -0.12629219889640808, 0.4278688430786133, -0.08623108267784119, 0.1805846095085144, -0.17289866507053375, -0.05244175344705582, 0.1630067527294159, -0.12792499363422394, 0.05927073955535889, 0.5038400292396545, -0.19770269095897675, -0.027131883427500725, 0.1539084017276764, -0.04861442744731903, 0.05740842968225479, 0.11033736169338226, -0.009578400291502476, 0.2165234088897705, -0.19875580072402954, -0.029594436287879944, 0.15257003903388977, 0.5008952021598816, 0.15954644978046417, 0.4105486571788788, 0.10370739549398422, -0.09126978367567062, -0.6493964195251465, -0.16862034797668457, -0.12851488590240479, -0.05767924338579178, 0.6006779074668884, 0.035232141613960266, 0.2038295418024063, -0.0009119361639022827, 0.10980812460184097, 0.0979166179895401, -0.07160291820764542, -0.19001547992229462, 0.03375454992055893, 0.44915392994880676, -0.039784546941518784, 0.30598747730255127, -0.09419034421443939, 0.21218951046466827, -0.13550175726413727, 0.05623101815581322, -0.1956661492586136, -0.21084719896316528, -0.1978408843278885, 0.28942060470581055, 0.23243962228298187, 0.11115491390228271, 0.35573142766952515, 0.089731365442276, -0.032561466097831726, -0.12094568461179733, 0.27733713388442993, 0.04402623325586319, 0.6040586233139038, 0.12150348722934723, -0.023141935467720032, 0.5818356871604919, 0.2637903392314911, 0.001468125730752945, -0.1511491984128952, 0.1716979742050171, -0.6476755142211914, -0.1697184443473816, 0.38858550786972046, 0.08996059000492096, -0.20568197965621948, -0.15718215703964233, -0.1573636829853058, -0.01075156033039093, 0.5134232640266418, -0.21495221555233002, -0.012253232300281525, -0.3363988995552063, -0.34127816557884216, -0.3847542107105255, 0.1996464729309082, 0.4401875138282776, -0.05122983828186989, -0.15499578416347504, -0.13650083541870117, 0.33556270599365234, 0.1325768381357193, 0.10709461569786072, -0.35551565885543823, 0.33026131987571716, -0.2539386749267578, 0.3772560954093933, 0.2882099151611328, -0.448125422000885, -0.704511821269989, 0.02893339842557907, 0.014852933585643768, 0.26825636625289917, -0.2539275288581848, -0.14518433809280396, 0.2909584939479828, -0.172419473528862, -0.07946270704269409, 0.2683817446231842, 0.21999651193618774, 0.33509260416030884, -0.25603702664375305, -0.13637086749076843, 0.32571858167648315, -0.16900955140590668, 0.2152382731437683, 0.023673266172409058, -0.02199951559305191, 0.09551169723272324, 0.1455848515033722, -0.009712088853120804, 0.24445132911205292, 0.16079692542552948, 0.17614394426345825, 0.08809124678373337, 0.3228497803211212, -0.07430612295866013, -0.2499885857105255, 0.2898172438144684, -0.1547444760799408, -0.4490092992782593, -0.09719069302082062, -0.10666739195585251, -0.10246177762746811, -0.1602703332901001, -0.502553403377533, -0.27565041184425354, 0.1304306536912918, 0.27020758390426636, 0.24305585026741028, 0.11698038876056671, -0.22882723808288574, 0.1204114481806755, 0.319252610206604, -0.126337930560112, -0.08702298998832703, 0.14952677488327026, 0.16313134133815765, -0.09887756407260895, -0.265480101108551, 0.08365333080291748, 0.41135933995246887, -0.09109383076429367, -0.2791554927825928, 0.22016894817352295, 0.21303726732730865, 0.22884909808635712, -0.06588413566350937, 0.00219649076461792, 0.023006213828921318, -0.042274538427591324, 0.14551080763339996, 0.23421943187713623, 0.08800038695335388, -0.11729282140731812, 0.11153116822242737, 0.22273951768875122, 0.2169858068227768, 0.2037425935268402, -0.005545955151319504, -0.0320446640253067, 0.11145313084125519, -0.16955386102199554, 0.09910427033901215, -0.24828849732875824, -0.22172705829143524, -0.1447313129901886, 0.38736969232559204, 0.1267310231924057, 0.3542506992816925, 0.33422476053237915, 0.6654906868934631, 0.17409156262874603, 0.17550258338451385, 0.04770335927605629, -0.6600906848907471, -0.27477604150772095, -0.09002429991960526, 0.16252745687961578, 0.2718923091888428, -0.0032678814604878426, -0.05239475145936012, -0.0592409148812294, 0.17838066816329956, 0.06885335594415665, 0.06342937797307968, -0.023998714983463287, 0.10102910548448563, 0.18338391184806824, 0.1937386393547058, 0.15290100872516632, -0.10323618352413177, 0.17403461039066315, 0.19701680541038513, 0.2634400725364685, -0.16381382942199707, 0.017814164981245995, -0.40339213609695435, 0.40588730573654175, -0.011080504395067692, -0.24892394244670868, -0.047392260283231735, -0.3511248230934143, -0.05602817237377167, 0.2632541358470917, 0.060917627066373825, 0.26476243138313293, 0.057666096836328506, -0.018236756324768066, 0.006251713261008263, -0.3572264015674591, -0.2716265320777893, -0.4146778881549835, -0.2249668538570404, -0.06444723904132843, 0.15975169837474823, -0.11843729019165039, 0.1242043599486351, -0.022265857085585594, 0.08289018273353577, -0.3509312570095062, -0.28793251514434814, -0.06059318035840988, 0.07842984795570374, -0.03722747415304184, -0.24621886014938354, 0.01066529005765915, -0.2674316167831421, -0.11378007382154465, 0.16335129737854004, -0.5391671657562256, -0.041472308337688446, 0.1899373084306717, 0.017356479540467262, -0.06090492010116577, 0.13965387642383575, -0.3343352675437927, -0.18553029000759125, 0.014655392616987228, 0.07902766764163971, -0.0025065913796424866, -0.058157868683338165, -0.07832272350788116, -0.08067880570888519, -0.1290312260389328, -0.2679102122783661, -0.14954650402069092, -0.35556548833847046, -0.32473620772361755, 0.37744802236557007, -0.23813703656196594, -0.26582732796669006, -0.09182554483413696, -0.023352596908807755, 0.21560153365135193, 0.21847981214523315, -0.30695030093193054, -0.06845673173666, -0.1836547553539276, 0.19319887459278107, 0.012749303132295609, 0.15177039802074432, 0.4884284734725952, 0.1360829919576645, 0.09041382372379303, -0.21518868207931519, -0.0438360720872879, 0.05949883162975311, 0.14148260653018951, 0.031021393835544586, 0.07027598470449448, 0.06304524093866348, -0.01582934334874153, 0.8712037205696106, 0.3394302427768707, -0.24347494542598724, 0.39068397879600525, -0.11663966625928879, 0.17123126983642578, -0.2813173532485962, -0.3686886429786682, -0.09210848808288574, -0.1965300738811493, -0.0361899696290493, 0.1398816555738449, 0.0031313877552747726, -0.1993824690580368, 0.0029486380517482758, -0.14365483820438385, -0.42103874683380127, -0.2925756573677063, 0.07499739527702332, -0.0956338495016098, 0.2742873728275299, 0.32406988739967346, 0.2811284065246582, -0.6588510870933533, -0.2407611608505249, 0.20888884365558624, -0.04150989651679993, 0.3959520161151886, -0.016556372866034508, -0.35972830653190613, -0.09427855908870697, -0.33117592334747314, 0.2504329979419708, 0.04880303889513016, 0.4142691195011139, 0.09387396275997162, -0.21369659900665283, -0.045352667570114136, 0.07693063467741013, 0.22193333506584167, -0.3888377249240875, 0.047380805015563965, 0.23005270957946777, -0.14695879817008972, -0.18878652155399323, -0.14791785180568695, 0.04837154969573021, 0.2653455138206482, 0.18812517821788788, 0.4231224060058594, 0.14207977056503296, 0.0004305934999138117, -0.3593810796737671, 0.3494276702404022, -0.24316881597042084, -0.03855916112661362, -0.3027108907699585, 0.0839008167386055, -0.5145266652107239, -0.09966609627008438, -0.08400196582078934, -0.043063417077064514, -0.03388780355453491, -0.11000873148441315, -0.28681451082229614, -0.10158737003803253, -0.020546026527881622, 0.23677076399326324, 0.4534938633441925, 0.03866049647331238, 0.32911595702171326, 0.28245264291763306, -0.18345315754413605, 0.1781746745109558, 0.24568234384059906, -0.13286420702934265, -0.24847716093063354, -0.1681520938873291, 0.09059089422225952, 0.26359823346138, 0.03883238881826401, -0.29949840903282166, -0.07385332137346268, -0.179180309176445, -0.020158693194389343, -0.3251703977584839, 0.08451289683580399, 0.22349585592746735, 0.10663890093564987, -0.26219096779823303, -0.48809880018234253, 0.16623499989509583, 0.08203807473182678, -0.197845920920372, 0.5077853798866272, -0.328802227973938, -0.17825669050216675, 0.5263879299163818, -0.1672300398349762, 0.7030588984489441, -0.261482298374176, 0.022734863683581352, -0.14842888712882996, 0.3079766035079956, 0.28235894441604614, -0.2782197594642639, 0.03770517557859421, -0.4485226571559906, -0.07384844124317169, 0.03707514703273773, -0.1756742000579834, -0.05014471709728241, 0.08578409254550934, -0.3708009421825409, 0.2630680203437805, -0.03073500096797943, 0.4242706894874573, 0.0008195647969841957, 0.2950989007949829, 0.2175413966178894, -0.16115447878837585, 0.07092620432376862, 0.1475212723016739, 0.09551789611577988, 0.41267865896224976, 0.03859010711312294, -0.024280130863189697, 0.05244765803217888, -0.06920377910137177, -0.13680800795555115, 0.1307317614555359, -0.4697881042957306, 0.3341304659843445, -0.1529860645532608, 0.11900050938129425, -0.06030183658003807, 0.36219000816345215, 0.39682668447494507, 0.1983506977558136, -0.2566058039665222, 0.26454445719718933, 0.09788280725479126, 0.21886684000492096, 0.01337909884750843, -0.20774775743484497, 0.08404570817947388, 0.19268298149108887, -0.2933800518512726, 0.06946435570716858, -0.0555582121014595, -0.3760700225830078, -0.36594557762145996, 0.19937410950660706, 0.46980321407318115, -0.3571544885635376, -0.15961498022079468, 0.197279155254364, -0.02598743885755539, -0.12027241289615631, 0.11275872588157654, 0.17941713333129883, 0.07351384311914444, 0.473839670419693, -0.24694211781024933, -0.30064016580581665, 0.09694401919841766, 0.5473603010177612, 0.08685727417469025, -0.07035703957080841, 0.4687364995479584, -0.2822931706905365, -0.07599194347858429, -0.16817772388458252, 0.06282635778188705, 0.12855961918830872, -0.35344213247299194, 0.09837355464696884, -0.00910954363644123, 0.21032507717609406, 0.11476217955350876, -0.023599471896886826, -0.2950790524482727, -0.006765827536582947, -0.279457151889801, -0.2637414038181305, -0.3657049238681793, -0.08591583371162415, 0.03355783224105835, 0.043395914137363434, 0.3683934211730957, 0.17312750220298767, 0.027270475402474403, 0.28436148166656494, -0.27672407031059265, 0.221402108669281, 0.35668155550956726, 0.1540384590625763, -0.2106959968805313, -0.12278320640325546, 0.05638756975531578, -0.2020295411348343, 0.051880598068237305, 0.10561259090900421, -0.0767098143696785, -0.20320868492126465, -0.14987273514270782, 0.17024530470371246, 0.181899756193161, -0.006731092929840088, -0.2689253091812134, -0.1823141723871231, 0.14384688436985016, -0.5760847330093384, 0.15510506927967072, 0.24570336937904358, -0.07188452780246735, 0.1519441157579422, 0.4375990033149719, -0.23166236281394958, -0.02710309997200966, 0.01706414297223091, -0.31730157136917114, -0.04952093958854675, -0.11272864788770676, 0.2077101320028305, 0.1210680827498436, 0.11755777895450592, -0.043798331171274185, -0.12828150391578674, 0.2395613193511963, 0.09346476197242737, 0.3994581401348114, -0.2951734662055969, -0.07392767071723938, 0.11580120772123337, -0.1481219232082367, 0.26106131076812744, -0.29703620076179504, -0.20155362784862518, 0.31405287981033325, 0.19270698726177216, -0.24931788444519043, -0.24179328978061676, 0.3572394847869873, 0.1374015063047409, -0.060515761375427246, 0.011838279664516449, 0.2675014138221741, -0.3133390545845032, 0.28771647810935974, 0.052360899746418, 0.5716950297355652, -0.32058650255203247, 0.281263530254364, 0.20665821433067322, 0.11677171289920807, 0.1284620612859726, 0.12848810851573944, 0.17819321155548096, -0.06839124113321304, 0.317527174949646, -0.011976823210716248, 0.3628059923648834, 0.18186646699905396, -0.06230032816529274, -0.00998077541589737, -0.45475316047668457, -0.02771734818816185, 0.11752265691757202, -0.2924541234970093, 0.36289870738983154, -0.02395240217447281, 0.16717317700386047, 0.07813110202550888, -0.1214316189289093, -0.1191200464963913, 0.31898561120033264, -0.30810874700546265, -0.18043576180934906, 0.14799001812934875, -0.0687658041715622, 0.030222684144973755, 0.02114647999405861, -0.01969233527779579, 0.05291963741183281, 0.3540973365306854, 0.09218345582485199, -0.31800806522369385, -0.09965064376592636, -0.19930273294448853, 0.09192833304405212, 0.4701642394065857, -0.14691537618637085, 0.19373734295368195, -0.1774648278951645, -0.013522408902645111, -0.09180691838264465, 0.22310899198055267, 0.401878297328949, 0.4546133279800415, -0.14829030632972717, 0.36532437801361084, 0.11687500774860382, 0.009523065760731697, -0.10058385878801346, 0.379151314496994, -0.21207818388938904, -0.1514662653207779, -0.004218625836074352, 0.11189928650856018, -0.0705501064658165, -0.2121526151895523, -0.057656172662973404, 0.33303266763687134, -0.007767184171825647, 0.14699923992156982, 0.10227898508310318, -0.057839710265398026, -0.1023925244808197, 0.18045766651630402, -0.28881606459617615, 0.10786419361829758, 0.5013056993484497, 0.09909643232822418, 0.19185620546340942, -0.39194387197494507, 0.07266125828027725, 0.1490279883146286, 0.19680650532245636, 0.34555622935295105, -0.3320752680301666, -0.4023282527923584, -0.3072875738143921, -0.6909540295600891, 0.32823461294174194, -0.1399887353181839, 0.23485487699508667, 0.017306379973888397, 0.046360597014427185, -0.1554476022720337, -0.12467540800571442, 0.21108439564704895, -0.02708561345934868, -0.06858914345502853, 0.22785548865795135, -0.2249157875776291, 0.006883826106786728, -0.23128782212734222, 0.16727782785892487, 0.13725169003009796, -0.38252320885658264, 0.2694318890571594, -0.16534423828125, 0.06545882672071457, -0.1703137904405594, -0.007052551954984665, 0.06707198917865753, -0.056899361312389374, 0.7861574292182922, 0.13113164901733398, 0.1361977607011795, -0.08967506140470505, 0.25518590211868286, -0.3458380699157715, 0.029621711000800133, -0.03957199677824974, 0.007671743631362915, -0.05789302662014961, 0.06258977949619293, -0.15077809989452362, -0.21931694447994232, -0.4397766590118408, -0.2626308500766754, 0.21595866978168488, -0.04738927260041237, -0.14737893640995026, -0.018344871699810028, 0.013437993824481964, 0.31020838022232056, -0.06098514422774315, 0.4418365955352783, -0.18949446082115173, 0.37194398045539856, -0.22400373220443726, -0.26039692759513855, 0.3844134211540222, -0.5583378672599792, -0.46991539001464844, -0.2035352736711502, 0.27411335706710815, -0.24196705222129822, -0.2197265774011612, -0.49718645215034485, 0.11459282785654068, 0.4538174867630005, 0.15939810872077942, -0.18268127739429474, 0.007518328260630369, -0.061916302889585495, 0.23770205676555634, -0.219084233045578, 0.3804849088191986, 0.17657005786895752, -0.07378123700618744, 0.09229914844036102, -0.07816937565803528 ]
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.2557521164417267, 0.4681491255760193, -0.008667729794979095, 0.09381318837404251, -0.09325844049453735, 0.2809453308582306, 0.3591800034046173, 0.013096733018755913, 0.5492926239967346, 0.17232444882392883, -0.10863105952739716, -0.32070693373680115, 0.026963822543621063, -0.13629479706287384, -0.0884396880865097, 0.16005568206310272, -0.012463293969631195, 0.20513272285461426, 0.330827921628952, 0.1052643209695816, -0.34717434644699097, 0.19461162388324738, -0.11635446548461914, 0.17326036095619202, -0.22010426223278046, -0.027302196249365807, -0.22863444685935974, 0.34524524211883545, 0.12022565305233002, -0.07327386736869812, 0.298512727022171, 0.18236009776592255, 0.4611561596393585, 0.43732529878616333, -0.0001192506606457755, -0.009227275848388672, 0.13675987720489502, -0.18338578939437866, -0.16290283203125, 0.12001550942659378, -0.23977556824684143, 0.28231143951416016, -0.26441052556037903, 0.028602324426174164, -0.002813037484884262, 0.20127156376838684, 0.008685119450092316, -0.6335744857788086, -0.2559030055999756, 0.3518748879432678, 0.14445582032203674, -0.2560596466064453, -0.4754665493965149, -0.13101205229759216, 0.3233244717121124, 0.4254636764526367, -0.18952789902687073, 0.17433354258537292, 0.0022009387612342834, -0.2547364830970764, -0.1301954686641693, 0.19848553836345673, 0.07415341585874557, 0.3853287994861603, 0.359475314617157, 0.20239828526973724, -0.08936231583356857, 0.19876806437969208, 0.29811808466911316, -0.028904356062412262, 0.9117106199264526, -0.39265069365501404, -0.06758178770542145, 0.11374766379594803, -0.18824627995491028, -0.3810408413410187, 0.35698017477989197, 0.10961825400590897, -0.2152440845966339, 0.09236244857311249, 0.03224755451083183, -0.20940405130386353, -0.2581733763217926, 0.17355689406394958, 0.15363219380378723, -0.057668790221214294, 0.016617247834801674, -0.0853281244635582, 0.209991455078125, -0.1379803568124771, 0.3040865361690521, -0.2422674000263214, -0.49978819489479065, 0.15865746140480042, -0.22329498827457428, 0.19285592436790466, -0.2934037446975708, 0.5975056886672974, -0.047869548201560974, 0.03497990220785141, 0.06554681062698364, 0.1633860170841217, -0.12207099050283432, -0.025283142924308777, -0.07095339894294739, 0.4531860649585724, 0.08659899979829788, 0.0687401294708252, 0.05911805108189583, -0.17017245292663574, -0.1758125126361847, -0.0881454348564148, -0.2163313776254654, -0.44966888427734375, 0.21822284162044525, 0.060150839388370514, -0.1500677764415741, -0.5533454418182373, 0.06176681071519852, -0.23781511187553406, 0.1814154088497162, -0.1227412298321724, 0.28282594680786133, 0.32875120639801025, 0.1819511502981186, -0.15542590618133545, -0.2453550398349762, 0.12225676327943802, -0.12485427409410477, -0.009361966513097286, -0.04421333596110344, 0.11509592831134796, -0.3545195758342743, 0.45029470324516296, 0.44350701570510864, 0.1504645198583603, -0.08590453863143921, -0.12230519950389862, 0.286900132894516, 0.17319034039974213, -0.015233008190989494, -0.2569102346897125, -0.01755198836326599, 0.16239412128925323, -0.023081518709659576, 0.32868996262550354, 0.09826172143220901, -0.18496356904506683, -0.2361324429512024, 0.2819388210773468, -0.27985942363739014, -0.42007988691329956, -0.1352802813053131, -0.004329117946326733, -0.07335664331912994, -0.33218756318092346, -0.2920283377170563, 0.019031791016459465, 0.03677688539028168, -0.01608813740313053, 0.05140208825469017, 0.07770693302154541, -0.29254505038261414, -0.1867620050907135, -0.15984322130680084, 0.42580902576446533, -0.6456714868545532, 0.054900601506233215, -0.12992870807647705, 0.034993723034858704, 0.15908555686473846, 0.36179739236831665, -0.13140444457530975, 0.14415602385997772, -0.3559280335903168, 0.009469881653785706, 0.2918239235877991, -0.5207453370094299, -0.45747819542884827, 0.0855570137500763, 0.38696587085723877, -0.29773277044296265, 0.2846940755844116, 0.0809175968170166, 0.16067267954349518, -0.16200268268585205, 0.011699952185153961, 0.21610130369663239, 0.0686248242855072, -0.2469923496246338, -0.012033049017190933, -0.1828506737947464, 0.04389302060008049, 0.24150623381137848, -0.003410227596759796, 0.401313453912735, 0.19217056035995483, 0.0047576045617461205, 0.05246203392744064, -0.0943136066198349, 0.12705285847187042, 0.3066820502281189, 0.3205014765262604, 0.4424471855163574, 0.1727307289838791, 0.1762862503528595, -0.2260029911994934, 0.2912076711654663, -0.11700869351625443, -0.217281311750412, 0.28785085678100586, 0.011591475456953049, 0.016136636957526207, -0.29534852504730225, -0.22078578174114227, -0.18113215267658234, -0.007617779076099396, 0.2608891725540161, 0.23492062091827393, -0.2933538854122162, -0.026795316487550735, 0.658947229385376, 0.2265404909849167, -0.19416402280330658, 0.29573050141334534, -0.02691354602575302, -0.18714626133441925, -0.042464729398489, -0.12012217193841934, -0.031133517622947693, 0.21327456831932068, 0.17756995558738708, -0.23258960247039795, 0.3005903959274292, 0.0022566700354218483, -0.07763588428497314, 0.3121994137763977, 0.335896372795105, -0.04627905786037445, -0.012909937649965286, 0.5341500043869019, 0.08750078082084656, -0.011285226792097092, -0.06717502325773239, -0.25362351536750793, -0.02858014404773712, -0.15556931495666504, 0.35716381669044495, -0.21781985461711884, -0.008501110598444939, 0.13212968409061432, -0.08539095520973206, 0.38481348752975464, -0.22514136135578156, 0.3857036530971527, -0.2674024999141693, 0.16080932319164276, -0.20451493561267853, -0.022374406456947327, 0.05002877488732338, 0.20002932846546173, 0.04648246988654137, 0.09000393748283386, 0.38413792848587036, -0.2304578423500061, -0.06130008399486542, 0.11813829839229584, 0.11758483946323395, 0.6406490802764893, 0.14608041942119598, -0.006233301013708115, 0.03811056166887283, -0.13339203596115112, -0.03826890140771866, 0.11260759830474854, -0.18105565011501312, -0.005322909913957119, -0.040673911571502686, -0.06350011378526688, -0.1481620818376541, 0.1249389722943306, -0.35392123460769653, -0.008960302919149399, 0.06032664328813553, -0.40253135561943054, 0.12548717856407166, -0.2663138210773468, -0.24509400129318237, -0.04188882187008858, -0.3795004189014435, -0.19356903433799744, -0.15710783004760742, -0.04391109198331833, 0.07422209531068802, 0.34585610032081604, -0.055446796119213104, -0.6163671612739563, 0.2907785177230835, -0.19381412863731384, -0.5244790315628052, -0.25687724351882935, -0.030818793922662735, -0.3730291724205017, -0.05454491823911667, 0.03154924139380455, 0.033409953117370605, 0.05658205598592758, 0.0013543926179409027, 0.4029363989830017, -0.43318915367126465, 0.2553686499595642, 0.17201539874076843, 0.3753194808959961, 0.2596966028213501, 0.015137463808059692, -0.09037069976329803, 0.04530800133943558, -0.18880946934223175, 0.2970717251300812, -0.08394771814346313, 0.1273827999830246, -0.031231284141540527, -0.1942114233970642, -0.02800288051366806, 0.01939895749092102, 0.2274567186832428, -0.3716919422149658, -0.21202261745929718, -0.24240244925022125, 0.1433379203081131, 0.07974571734666824, 0.3831818997859955, -0.20048879086971283, 0.09536503255367279, 0.2932647466659546, -0.35084012150764465, -0.3323979377746582, -0.3654145896434784, 0.539320170879364, -0.41617289185523987, 0.011838613077998161, 0.19367048144340515, 0.20550736784934998, -0.2015184909105301, 0.21513277292251587, -0.42420482635498047, 0.09649530798196793, -0.1795961707830429, 0.08074288070201874, 0.034293998032808304, -0.08835776150226593, 0.1362946480512619, -0.24338878691196442, -0.039215486496686935, -0.244247168302536, -0.5972723364830017, 0.236533522605896, -0.07241243124008179, 0.4560069441795349, 0.3650610148906708, 0.10597898066043854, -0.09161823987960815, 0.44573020935058594, 0.09642161428928375, 0.15959182381629944, 0.4605717957019806, -0.07350162416696548, 0.31840988993644714, -0.01362503319978714, -0.08092740923166275, 0.13160113990306854, -0.059499889612197876, -0.25267884135246277, 0.2065046727657318, 0.23327940702438354, -0.16243678331375122, 0.025441206991672516, -0.03523057699203491, 0.15128284692764282, -0.10326564311981201, 0.10922801494598389, -0.35046786069869995, 0.24346116185188293, -0.030517935752868652, -0.13860011100769043, -0.3490743041038513, -0.43698418140411377, 0.4707675576210022, 0.5245857238769531, -0.24542877078056335, 0.41930297017097473, -0.18075238168239594, 0.11130426824092865, -0.23604586720466614, 0.4586572051048279, -0.11920610070228577, 0.38187241554260254, -0.4501280188560486, 0.30927106738090515, -0.1123974621295929, -0.014701370149850845, 0.5110962390899658, -0.4883115291595459, 0.17097064852714539, 0.44051721692085266, 0.22151267528533936, 0.16079820692539215, -0.2506410479545593, 0.04548528417944908, 0.3383983373641968, -0.4176425337791443, 0.09014245122671127, 0.2738479971885681, -0.25277015566825867, 0.053220558911561966, -0.02726052515208721, -0.4673561453819275, -0.3163570761680603, -0.0918908417224884, -0.05695708096027374, 0.06410036236047745, -0.27765753865242004, -0.11844085156917572, 0.04010351374745369, 0.3600785434246063, 0.3120993971824646, -0.19307516515254974, 0.1677648425102234, 0.3788405656814575, -0.1430615335702896, 0.333285391330719, 0.20720183849334717, -0.08362610638141632, 0.08449015766382217, 0.18565469980239868, 0.19261480867862701, 0.26155903935432434, -0.16163542866706848, -0.11084789037704468, 0.17436128854751587, -0.25999560952186584, 0.1231757253408432, 0.0483875647187233, -0.19706261157989502, -0.11205772310495377, 0.030653659254312515, -0.02535911649465561, -0.3931266665458679, 0.2096100002527237, -0.04032975435256958, -0.13963839411735535, -0.2823476195335388, -0.39194193482398987, 0.41644522547721863, 0.07440084218978882, -0.17044416069984436, 0.40631774067878723, 0.3550950884819031, -0.3551280200481415, 0.24673737585544586, 0.07815030217170715, 0.6511043310165405, -0.23170919716358185, 0.04132179915904999, -0.2924334406852722, -0.45960068702697754, -0.1842956393957138, -0.19484855234622955, 0.03856779634952545, -0.12402831017971039, -0.2318088263273239, -0.15036910772323608, -0.09033242613077164, 0.3203737139701843, 0.41881752014160156, -0.18802835047245026, 0.5310232639312744, 0.08548557758331299, 0.07329259812831879, 0.10651365667581558, -0.11206302046775818, 0.07410889118909836, -0.3800899386405945, 0.2787131071090698, 0.1939135193824768, -0.0752648413181305, 0.20404061675071716, -0.0995931401848793, 0.1389644742012024, -0.02545544132590294, 0.11243903636932373, -0.46907997131347656, -0.08627691864967346, -0.5284088850021362, 0.05506905913352966, -0.15829461812973022, -0.15726026892662048, 0.10166896879673004, 0.11782330274581909, 0.45693767070770264, -0.04479719325900078, -0.21226906776428223, 0.1578858494758606, 0.14681437611579895, 0.09200652688741684, -0.21347162127494812, -0.016872571781277657, 0.0020500700920820236, -0.1468968391418457, -0.23369957506656647, -0.11243615299463272, 0.0008229995146393776, -0.5835393667221069, -0.2684059739112854, -0.23061297833919525, 0.23159658908843994, -0.002110213041305542, -0.09225299954414368, -0.18223097920417786, 0.2307007908821106, 0.2200392335653305, 0.06761328876018524, -0.00964163988828659, 0.20991215109825134, 0.18662826716899872, -0.4496475160121918, -0.07633742690086365, -0.11411203444004059, -0.05350538343191147, -0.4296337366104126, -0.20645758509635925, 0.2676544189453125, 0.0008905269205570221, -0.09316383302211761, -0.09134417772293091, -0.08951056003570557, 0.03191718831658363, -0.1400098204612732, -0.20135484635829926, -0.06535572558641434, -0.1735585778951645, 0.15631966292858124, -0.06802266836166382, 0.329584538936615, -0.1584559679031372, -0.05596959963440895, -0.4187113046646118, -0.12151901423931122, -0.14660175144672394, -0.3597603142261505, 0.1639639139175415, -0.2259472906589508, -0.39333879947662354, 0.23117777705192566, -0.13832403719425201, -0.1911323368549347, 0.00010443688370287418, 0.1545088291168213, -0.09205320477485657, -0.13641460239887238, 0.19359907507896423, 0.29633933305740356, 0.18625259399414062, -0.06710200011730194, -0.24372069537639618, -0.08764283359050751, -0.07723455131053925, -0.25283896923065186, 0.17781583964824677, 0.0199224054813385, 0.15678547322750092, 0.03846529871225357, -0.23153729736804962, 0.023800451308488846, -0.1065337285399437, 0.13605915009975433, 0.4663171172142029, -0.1788535863161087, 0.3055635392665863, 0.039461079984903336, -0.3041667938232422, -0.3280597925186157, 0.07406040281057358, 0.3465183675289154, 0.3882772922515869, 0.018846742808818817, 0.1808871030807495, -0.07200006395578384, -0.04059496894478798, -0.2922016978263855, 0.061183977872133255, -0.03882196545600891, -0.034999728202819824, -0.22153747081756592, -0.23120765388011932, 0.3110741972923279, 0.22087405622005463, 0.09484445303678513, -0.03359575569629669, -0.02262914925813675, 0.014414625242352486, 0.3749231696128845, 0.04131355881690979, 0.002353142946958542, -0.2669159770011902, -0.11574400961399078, -0.20786918699741364, -0.19731882214546204, 0.45256099104881287, 0.307855486869812, 0.04133114963769913, 0.06996694952249527, -0.11900484561920166, 0.5813831686973572, -0.11594000458717346, -0.34437140822410583, 0.27244022488594055, -0.166822150349617, 0.29115909337997437, 0.4228004813194275, 0.48921313881874084, -0.02943945676088333, 0.8494064807891846, 0.21102142333984375, -0.02398642711341381, 0.37412768602371216, -0.034019988030195236, -0.22465446591377258, -0.5847416520118713, -0.17342673242092133, 0.1263137012720108, 0.2699766457080841, 0.26264843344688416, -0.32285168766975403, 0.17196151614189148, -0.14333289861679077, -0.11617674678564072, -0.17901404201984406, -0.4177314043045044, 0.17158693075180054, -0.337436318397522, 0.3003830909729004, 0.09789545089006424, -0.1745755672454834, 0.09242075681686401, 0.06792619824409485, -0.025371871888637543, 0.127914160490036, -0.22288046777248383, 0.08520849794149399, 0.0766686275601387, 0.3389740586280823, 0.2513729929924011, -0.10989267379045486, -0.1288878321647644, 0.2159271091222763, -0.29582279920578003, 0.1166771948337555, 0.45272329449653625, 0.040850840508937836, 0.1794825941324234, 0.22730308771133423, -0.23773139715194702, -0.05390389263629913, -0.210917666554451, 0.0057935696095228195, -0.04931468516588211, 0.042399972677230835, -0.036436960101127625, -0.13786593079566956, 0.151301771402359, 0.10183225572109222, 0.03310341015458107, 0.2538626492023468, -0.2496425062417984, 0.31618109345436096, 0.02201969176530838, 0.2991950809955597, 0.2000432163476944, 0.19224682450294495, 0.20694133639335632, 0.2616454064846039, -0.25047600269317627, -0.1989162117242813, 0.3196483254432678, -0.0838436484336853, 0.21572670340538025, 0.2454300969839096, 0.019226394593715668, 0.18328699469566345, 0.42342615127563477, 0.11198745667934418, 0.35329344868659973, -0.22954343259334564, -0.08991245180368423, -0.4763195812702179, -0.0003464221954345703, -0.055581990629434586, -0.2668921947479248, -0.04721187800168991, 0.05260033905506134, -0.08923529833555222, -0.1452384740114212, 0.4688035845756531, -0.08667833358049393, 0.04728668928146362, 0.2267998903989792, -0.35493195056915283, -0.010533425956964493, 0.2644640803337097, 0.4981248676776886, 0.15891066193580627, -0.5530814528465271, 0.06720959395170212, 0.4556225538253784, -0.02523166500031948, -0.0870586708188057, -0.0961906835436821, 0.41681188344955444, 0.08894604444503784, 0.46917927265167236, -0.21867583692073822, 0.21270442008972168, 0.25763702392578125, 0.1848219782114029, -0.42172402143478394, 0.04591376706957817, 0.04233448952436447, -0.39322084188461304, -0.025698989629745483, 0.12319150567054749, -0.6304081082344055, -0.029115822166204453, -0.29197993874549866, -0.030026966705918312, 0.14835478365421295, 0.23527304828166962, -0.07667575776576996, 0.30162960290908813, -0.03489994257688522, 0.10339518636465073, 0.40504977107048035, 0.2613583505153656, -0.11893987655639648, 0.2810576856136322, -0.26207447052001953, 0.12226329743862152, 0.3842458128929138, -0.2537781298160553, -0.3603973388671875, 0.07440134882926941, 0.3058953583240509, 0.05285227298736572, -0.16025736927986145, -0.20854291319847107, 0.0974017009139061, 0.229654923081398, 0.22200700640678406, -0.22220325469970703, 0.06918545067310333, -0.1327778846025467, 0.13282929360866547, 0.06884318590164185, 0.04150877147912979, -0.01836962252855301, -0.047943565994501114, -0.3267989158630371, 0.03898511826992035 ]
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.10985814779996872, -0.143166184425354, -0.0036670025438070297, 0.5683763027191162, 0.22946186363697052, -0.07168712466955185, 0.07643388211727142, 0.3127034604549408, 0.13735820353031158, 0.04877609759569168, -0.3296416699886322, 0.03506353497505188, -0.018028516322374344, -0.18346938490867615, 0.16038519144058228, -0.235224187374115, -0.10536158829927444, -0.0622277557849884, -0.41064879298210144, 0.1044706404209137, -0.13088595867156982, 0.3101220726966858, -0.038280170410871506, -0.005235910415649414, -0.059548430144786835, -0.06359963119029999, 0.026993190869688988, 0.4038952887058258, -0.08170348405838013, -0.5142930150032043, 0.3658123016357422, -0.025758642703294754, 0.22217588126659393, 0.633569598197937, -0.00011295233707642183, 0.10023689270019531, 0.3394466042518616, -0.0037235263735055923, -0.4179125428199768, -0.36963826417922974, -0.144729346036911, -0.17477522790431976, 0.14797423779964447, -0.1763250231742859, -0.1769505739212036, 0.19257371127605438, -0.036583311855793, -0.44818708300590515, 0.24868609011173248, 0.2116878479719162, 0.24189554154872894, 0.26720350980758667, 0.3284205496311188, -0.17880666255950928, 0.05946623533964157, -0.025449924170970917, -0.10439006239175797, 0.7655643820762634, 0.11735370755195618, 0.20638009905815125, 0.05108143016695976, 0.3760935366153717, 0.09087418019771576, 0.16046050190925598, 0.47498294711112976, 0.0394846647977829, 0.23045390844345093, -0.26886922121047974, 0.11302974075078964, 0.19522297382354736, 0.4000909924507141, -0.16079288721084595, -0.36654022336006165, -0.19348806142807007, 0.09515665471553802, -0.3805069327354431, 0.3234521746635437, 0.13000474870204926, -0.2127985656261444, 0.11323556303977966, -0.12349327653646469, -0.17734549939632416, -0.27926957607269287, 0.28812655806541443, -0.04477843642234802, -0.16909462213516235, -0.15754090249538422, 0.14632762968540192, 0.18066595494747162, -0.12482382357120514, -0.0539272278547287, 0.00940640177577734, -0.026269037276506424, 0.25797778367996216, -0.24608559906482697, 0.17736497521400452, -0.03109925240278244, 0.18172895908355713, 0.2558589577674866, 0.09048423171043396, -0.1404849737882614, 0.012094784528017044, -0.0953945517539978, 0.18862920999526978, 0.2989627420902252, 0.049646466970443726, -0.0871775671839714, 0.00462791882455349, 0.20702271163463593, 0.5039045214653015, -0.22930853068828583, -0.12746000289916992, 0.011923728510737419, -0.27243223786354065, 0.17700573801994324, -0.12143541127443314, 0.49660438299179077, -0.3770097494125366, -0.10819976776838303, 0.09173627197742462, -0.045859258621931076, 0.04816224053502083, 0.15123164653778076, 0.45516249537467957, -0.25800296664237976, 0.154459148645401, 0.09544429183006287, 0.0614507719874382, -0.12041384726762772, -0.14575479924678802, -0.22779639065265656, 0.18798761069774628, -0.17743384838104248, 0.08854767680168152, 0.3645627200603485, -0.5190116763114929, 0.16396571695804596, -0.01497723814100027, 0.25223249197006226, -0.11672802269458771, -0.018682541325688362, -0.2165723294019699, -0.10779006034135818, 0.3113507032394409, 0.02287868782877922, 0.0862024575471878, 0.17670214176177979, -0.1567438393831253, -0.18328432738780975, -0.06289616972208023, -0.35821250081062317, -0.21064063906669617, -0.08305681496858597, 0.1629568636417389, -0.21425892412662506, 0.06628476083278656, -0.3244726359844208, -0.046409640461206436, -0.10903216153383255, -0.19437146186828613, -0.10861123353242874, -0.13553796708583832, -0.1367984265089035, -0.20914240181446075, 0.3754213750362396, 0.6375406384468079, -0.08081768453121185, 0.05847484618425369, -0.12340147793292999, -0.043158549815416336, 0.13221894204616547, 0.3780943751335144, -0.11989749222993851, -0.020124301314353943, -0.24468302726745605, -0.10780148208141327, 0.28057220578193665, -0.3060961365699768, -0.34428608417510986, 0.11498153209686279, -0.03376829996705055, 0.3318829834461212, -0.05325589329004288, -0.03741270303726196, -0.03187853470444679, 0.1323218196630478, 0.1931561976671219, 0.2832885980606079, -0.056349046528339386, -0.12931713461875916, -0.2122822403907776, -0.25945818424224854, 0.16327440738677979, 0.21740059554576874, 0.18809950351715088, 0.1501256674528122, 0.07709258794784546, 0.04682878777384758, 0.13087962567806244, -0.07782924175262451, 0.06693188101053238, 0.12278490513563156, 0.13519135117530823, 0.4310694932937622, -0.07181850075721741, -0.3716205358505249, -0.44363903999328613, 0.33638057112693787, -0.031461816281080246, 0.19139190018177032, -0.14635179936885834, 0.0657711923122406, -0.410104364156723, 0.030800586566329002, -0.07873024046421051, -0.14573754370212555, 0.10976321995258331, 0.09984612464904785, 0.035346660763025284, 0.26344969868659973, -0.22427073121070862, 0.48215287923812866, 0.053059376776218414, 0.1775316745042801, -0.4551772177219391, 0.25772613286972046, -0.03470619022846222, -0.09158803522586823, 0.031127408146858215, 0.15764732658863068, 0.10899841040372849, -0.09028027206659317, -0.10344240069389343, 0.30639559030532837, 0.02741168439388275, -0.04058466851711273, 0.10882624983787537, -0.10706152021884918, 0.09805479645729065, -0.16915634274482727, 0.06707193702459335, 0.05341840162873268, 0.19219520688056946, -0.006121266633272171, -0.3353883922100067, 0.13132791221141815, -0.15433566272258759, 0.20980075001716614, 0.010758981108665466, 0.032919079065322876, 0.33603784441947937, -0.008118625730276108, -0.0462258905172348, -0.09634532034397125, 0.34445920586586, -0.10846348106861115, 0.49943214654922485, -0.09242866933345795, -0.3686574399471283, -0.18247097730636597, -0.11151200532913208, 0.022624656558036804, 0.0863870158791542, 0.2621726989746094, -0.17163729667663574, -0.04004497453570366, 0.006779841147363186, 0.10417746007442474, 0.3363504111766815, 0.08504648506641388, 0.09395452588796616, 0.09403970837593079, 0.07197266817092896, -0.024529937654733658, 0.14913824200630188, -0.04829810559749603, 0.220009446144104, 0.07696656882762909, 0.13246484100818634, 0.06466655433177948, -0.4159030020236969, -0.3394743800163269, -0.0652078241109848, 0.32324275374412537, -0.34253358840942383, 0.16663116216659546, -0.1244775652885437, -0.3035852909088135, -0.21502242982387543, -0.254646360874176, -0.4462372362613678, -0.2368628829717636, -0.3029865026473999, 0.5309485197067261, 0.16548524796962738, 0.035238415002822876, -0.32152611017227173, 0.058369457721710205, -0.040452491492033005, -0.17344877123832703, -0.1826365888118744, -0.02479868195950985, -0.18036121129989624, 0.040954891592264175, 0.2866392433643341, 0.16514061391353607, 0.4407709836959839, -0.08427891135215759, -0.04422440379858017, -0.23234254121780396, -0.37304118275642395, -0.02943989634513855, 0.00915038213133812, 0.4914529323577881, 0.17176033556461334, 0.42717045545578003, -0.10756674408912659, -0.24441738426685333, 0.47843196988105774, -0.09081708639860153, 0.06854837387800217, 0.07682240754365921, -0.20367328822612762, 0.0741947591304779, 0.0008807219564914703, -0.5234017968177795, -0.32017576694488525, -0.2964969575405121, 0.35653990507125854, 0.0888761579990387, 0.024104878306388855, 0.4940636456012726, -0.008690517395734787, 0.11409171670675278, -0.09235499054193497, 0.16280563175678253, -0.3461088538169861, -0.6181046366691589, 0.3059360086917877, -0.2781549096107483, -0.4102417230606079, 0.06000888720154762, 0.1253887414932251, 0.36334455013275146, -0.03275950253009796, -0.6117782592773438, -0.0045398082584142685, -0.12237754464149475, 0.17430901527404785, -0.0899427980184555, -0.13103152811527252, 0.02078089863061905, -0.12673704326152802, -0.038792114704847336, 0.012993309646844864, -0.19787967205047607, -0.1798408031463623, -0.00887308269739151, 0.12351903319358826, 0.0039654988795518875, 0.3006081283092499, -0.0057000331580638885, 0.5055927038192749, 0.12515969574451447, 0.08534057438373566, 0.369228333234787, 0.05112069100141525, 0.48816823959350586, -0.30191755294799805, -0.507081151008606, -0.13357941806316376, -0.18933147192001343, 0.025670383125543594, 0.005452446639537811, 0.21436458826065063, -0.13024166226387024, -0.3036271929740906, -0.24586914479732513, -0.25168824195861816, -0.2852412462234497, 0.13651345670223236, -0.09921598434448242, 0.13788655400276184, 0.029045961797237396, -0.14679944515228271, -0.19843803346157074, -0.1798202097415924, -0.1898522824048996, 0.585732102394104, 0.28282544016838074, 0.26922807097435, -0.4927920401096344, 0.2591657042503357, -0.54378342628479, 0.13168251514434814, -0.07352025806903839, 0.4005360007286072, -0.24266989529132843, 0.1835508644580841, 0.11852256953716278, 0.020385941490530968, 0.3855636715888977, 0.1478421837091446, 0.42978352308273315, 0.24522534012794495, -0.346916526556015, -0.4284433126449585, 0.14791877567768097, 0.12726613879203796, -0.003035695292055607, 0.4096195697784424, 0.3735690116882324, -0.2575894296169281, -0.030873171985149384, 0.16074667870998383, 0.24865607917308807, -0.16794031858444214, -0.29942062497138977, -0.25622573494911194, -0.2295902669429779, -0.30676984786987305, -0.07363966852426529, -0.0116306496784091, 0.39665836095809937, 0.3705373704433441, 0.05598589405417442, -0.10367315262556076, 0.048780858516693115, 0.24018342792987823, 0.22228248417377472, 0.14292261004447937, 0.0422942154109478, 0.4125685393810272, 0.4882102906703949, 0.11846306174993515, 0.024430282413959503, 0.6174943447113037, -0.027621015906333923, -0.6739385724067688, -0.07558711618185043, 0.23116828501224518, -0.01586098223924637, 0.191960871219635, -0.19428472220897675, -0.1250985562801361, 0.15889964997768402, 0.13960175216197968, -0.08122005313634872, 0.2773298919200897, 0.057407163083553314, 0.1291484534740448, -0.41898778080940247, -0.40656545758247375, 0.4614153206348419, 0.07289929687976837, -0.024879656732082367, 0.31735894083976746, 0.18520155549049377, -0.19006402790546417, 0.060867562890052795, -0.14442145824432373, 0.9203276634216309, -0.037789225578308105, 0.12903256714344025, 0.3462241590023041, -0.08191637694835663, 0.5078819394111633, 0.07774009555578232, 0.011689778417348862, -0.2593935430049896, -0.2144426852464676, -0.0198574997484684, -0.11251629889011383, 0.1943313479423523, -0.1327906996011734, -0.05076849088072777, 0.4270288348197937, 0.04416690766811371, 0.023323174566030502, 0.0325409397482872, 0.19106587767601013, -0.0050383079797029495, -0.27301108837127686, -0.5505594611167908, 0.18950816988945007, -0.19171147048473358, 0.47138163447380066, -0.1486092507839203, -0.14395222067832947, -0.09071646630764008, -0.13189731538295746, -0.09422443062067032, 0.10177295655012131, -0.15826694667339325, 0.30130434036254883, -0.02964947745203972, -0.3180106580257416, -0.018055668100714684, 0.1300051212310791, -0.05977696180343628, 0.16400356590747833, -0.3081126809120178, 0.20883804559707642, -0.17248046398162842, -0.20062407851219177, 0.10040953010320663, 0.17566823959350586, 0.13975439965724945, -0.18886232376098633, -0.15578404068946838, 0.0061073824763298035, -0.0746375098824501, -0.34471094608306885, 0.0671192854642868, -0.012319855391979218, -0.09499779343605042, -0.11769881844520569, -0.25970399379730225, -0.16520097851753235, 0.19191893935203552, -0.07061434537172318, 0.13994602859020233, 0.2263595312833786, 0.03998613357543945, -0.10921136289834976, 0.27890750765800476, -0.26336848735809326, -0.09345793724060059, 0.6049339771270752, -0.04359550029039383, -0.29745039343833923, 0.36841267347335815, 0.2711160480976105, -0.15913668274879456, -0.07732583582401276, 0.029681377112865448, -0.05292600393295288, -0.5901023745536804, 0.11624165624380112, 0.022122938185930252, 0.3236815333366394, -0.1370932161808014, -0.10134570300579071, 0.25409233570098877, -0.3785039782524109, 0.17297589778900146, -0.6587607860565186, -0.2781512439250946, 0.23843570053577423, -0.2570837140083313, 0.1325257271528244, 0.13757768273353577, 0.07737287878990173, -0.12787973880767822, 0.04615146666765213, -0.2828449010848999, 0.2159302979707718, -0.06803303211927414, -0.015345193445682526, 0.4675152003765106, -0.050125159323215485, 0.15226881206035614, -0.14698144793510437, 0.12674567103385925, 0.023775676265358925, -0.18376372754573822, -0.18751481175422668, -0.19447065889835358, 0.11094118654727936, -0.14490297436714172, -0.20546592772006989, -0.07152039557695389, -0.20632264018058777, -0.024848520755767822, -0.14832203090190887, 0.09291686117649078, 0.4028231203556061, -0.0033532753586769104, -0.09446455538272858, 0.07917674630880356, 0.13510043919086456, -0.2862485349178314, 0.35717281699180603, 0.012406706809997559, -0.09372733533382416, 0.059162285178899765, -0.016507070511579514, -0.1653696447610855, -0.10956902801990509, -0.3179789185523987, -0.02779524028301239, -0.028705976903438568, 0.0027029961347579956, 0.5015751719474792, -0.0748109519481659, 0.06465347111225128, 0.2290382832288742, 0.17946678400039673, 0.18002519011497498, -0.08768386393785477, 0.12742802500724792, 0.05329202488064766, 0.1653984636068344, -0.3052544891834259, -0.020253930240869522, 0.16167306900024414, 0.009071007370948792, -0.018988560885190964, 0.10192374140024185, -0.012897118926048279, 0.0412568673491478, -0.15178343653678894, 0.09294228255748749, 0.47235143184661865, -0.04266706854104996, 0.13295838236808777, 0.18960735201835632, -0.1569463610649109, -0.12348312139511108, 0.2636794447898865, 0.17790167033672333, 0.08479515463113785, 0.6215687394142151, -0.1151488646864891, 0.1475515216588974, -0.16627556085586548, 0.023348134011030197, -0.006759181618690491, -0.25837692618370056, -0.3491341471672058, 0.37889865040779114, 0.02656833827495575, 0.052099112421274185, -0.09121052920818329, 0.28275901079177856, -0.2950376272201538, -0.23812560737133026, -0.11051382124423981, 0.11575433611869812, -0.1052902415394783, 0.02953420579433441, 0.008516058325767517, -0.23642513155937195, -0.14093220233917236, 0.016641613095998764, -0.18321537971496582, -0.20496632158756256, 0.3693350553512573, 0.20106355845928192, -0.29499906301498413, -0.46773165464401245, -0.35169848799705505, 0.31625115871429443, -0.02465187758207321, -0.13873586058616638, 0.2355438768863678, 0.39722174406051636, -0.1357559859752655, 0.18254490196704865, 0.34641459584236145, 0.5268884897232056, 0.1495819091796875, 0.19877398014068604, 0.1265125572681427, -0.09132815897464752, -0.07623560726642609, -0.10711856931447983, 0.15645428001880646, 0.05652492493391037, 0.14006274938583374, 0.33333155512809753, 0.20529527962207794, -0.1565948873758316, 0.2190282642841339, -0.10098841786384583, 0.3223043978214264, -0.43917641043663025, 0.30717942118644714, -0.29746586084365845, 0.03319524973630905, -0.10779199004173279, 0.09445507079362869, -0.24464991688728333, 0.0657380074262619, 0.28726455569267273, 0.0876966118812561, -0.026180554181337357, -0.029323678463697433, 0.06307713687419891, 0.0814952552318573, 0.5135882496833801, 0.22200842201709747, 0.05711657181382179, -0.4488471746444702, -0.23527587950229645, -0.8884504437446594, 0.10764426738023758, -0.2813785970211029, -0.11053577065467834, 0.2011597603559494, -0.013007210567593575, -0.03196945786476135, 0.2776530385017395, -0.05502881109714508, 0.04159601405262947, -0.07664653658866882, -0.014577135443687439, -0.22349625825881958, -0.2428143173456192, -0.0475626215338707, -0.02042330987751484, -0.08232514560222626, -0.30947941541671753, 0.1845414936542511, -0.213632732629776, 0.0460992157459259, -0.035747628659009933, 0.028550155460834503, 0.012783709913492203, 0.2756345272064209, 0.30798104405403137, 0.21520106494426727, 0.6308573484420776, 0.02930503338575363, -0.2888154089450836, -0.35020437836647034, -0.5530300140380859, 0.10249438136816025, 0.43337079882621765, 0.20249827206134796, 0.522972583770752, -0.105733722448349, -0.3106372058391571, -0.23982886970043182, 0.626682698726654, -0.17351968586444855, 0.0534479133784771, -0.1775560975074768, 0.045897476375103, 0.01005484163761139, 0.3290853798389435, -0.023276373744010925, 0.3484034240245819, -0.1739281415939331, 0.1046600192785263, -0.15604618191719055, -0.3812665343284607, 0.6492165923118591, -0.4117066562175751, -0.2752853333950043, -0.22860734164714813, 0.1440546214580536, 0.22650140523910522, -0.10335181653499603, -0.49174764752388, 0.14992636442184448, 0.34241029620170593, 0.10573039203882217, -0.3156125843524933, 0.21555784344673157, -0.24738654494285583, -0.00075574591755867, -0.06076428294181824, 0.5921411514282227, 0.01512540690600872, -0.3535509407520294, 0.2004103809595108, -0.09029624611139297 ]
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.3638956844806671, -0.14213049411773682, -0.07971897721290588, 0.12004677951335907, 0.16684147715568542, 0.18720585107803345, 0.03860493004322052, 0.24388042092323303, -0.05715741962194443, -0.1331617683172226, -0.06276541203260422, 0.14414052665233612, 0.34882834553718567, -0.0019749104976654053, -0.09353405982255936, 0.2313060313463211, 0.049256205558776855, -0.18132811784744263, -0.06577363610267639, 0.05411861836910248, -0.06448705494403839, 0.10039231926202774, -0.1485520601272583, -0.15383750200271606, -0.1942010223865509, -0.05920633673667908, -0.1093631163239479, -0.12021719664335251, -0.21298748254776, -0.26418185234069824, 0.31763818860054016, 0.1678791493177414, -0.08664531260728836, 0.562481701374054, -0.00010956420737784356, -0.2061450034379959, 0.3377982974052429, 0.07884813100099564, -0.4498385488986969, -0.46482694149017334, -0.2613335847854614, -0.1185772716999054, 0.08887319266796112, 0.04937200993299484, 0.07927605509757996, 0.1067872866988182, 0.07051029801368713, -0.4283181130886078, 0.3173293471336365, 0.4327322244644165, 0.20175983011722565, 0.1783607453107834, 0.23362286388874054, -0.13822494447231293, 0.1232369914650917, 0.08026285469532013, 0.013452192768454552, 0.4224601686000824, 0.1959223747253418, -0.12283734977245331, 0.2677880823612213, 0.026940103620290756, -0.08591758459806442, 0.22060464322566986, -0.13854357600212097, -0.02032403275370598, 0.1799735575914383, -0.4049909710884094, -0.0455893874168396, 0.1644662320613861, 0.876060962677002, -0.0498090460896492, -0.41233909130096436, -0.2699536383152008, 0.10999895632266998, -0.010712947696447372, 0.3056141138076782, 0.35540083050727844, -0.4313036799430847, 0.22497610747814178, -0.2838400602340698, 0.0700308233499527, 0.030366256833076477, 0.36517810821533203, 0.12236469984054565, -0.015971742570400238, 0.02143152803182602, 0.29206234216690063, 0.09481436014175415, -0.045570142567157745, 0.27094024419784546, -0.3481389284133911, 0.026292920112609863, -0.07309963554143906, -0.40704071521759033, -0.10917599499225616, 0.03453043848276138, 0.15738949179649353, 0.17905259132385254, 0.11413569003343582, -0.03291260078549385, -0.18881407380104065, -0.009300720877945423, 0.13327860832214355, 0.3627241253852844, -0.05140271782875061, 0.022770941257476807, 0.17183293402194977, 0.20547805726528168, -0.07473299652338028, -0.06568051874637604, -0.0005852095782756805, 0.0896892249584198, -0.013408098369836807, 0.11781121790409088, -0.12488309293985367, 0.33346331119537354, -0.29277464747428894, -0.2640202045440674, -0.0683688148856163, 0.12107870727777481, -0.040835797786712646, -0.19971859455108643, 0.17560018599033356, -0.41863253712654114, 0.17371785640716553, -0.023513080552220345, 0.12073557078838348, -0.28600507974624634, -0.38346755504608154, -0.08887365460395813, -0.05426600202918053, -0.22702403366565704, -0.06078232079744339, -0.025594372302293777, -0.0167296901345253, 0.09563672542572021, 0.17421965301036835, 0.08052271604537964, -0.31223538517951965, -0.0038488060235977173, -0.22950923442840576, -0.15639853477478027, 0.1975996047258377, -0.1175183355808258, 0.4563012421131134, 0.0885377824306488, 0.11180281639099121, -0.0920330360531807, -0.04716411978006363, -0.19703570008277893, -0.2452474981546402, -0.16145268082618713, 0.23592329025268555, -0.2093827873468399, -0.253417432308197, -0.1873578429222107, -0.10031315684318542, 0.2682969272136688, 0.05497824773192406, -0.06318043917417526, -0.057491302490234375, 0.048517581075429916, -0.10668332874774933, -0.0858367308974266, 0.36868181824684143, -0.426834374666214, 0.3215620517730713, -0.24273942410945892, 0.12141428887844086, 0.22099874913692474, 0.20915202796459198, -0.2188086360692978, 0.007021322846412659, -0.15986400842666626, -0.17485150694847107, 0.26367899775505066, -0.28034526109695435, -0.6896671652793884, 0.07763462513685226, -0.30678337812423706, 0.03601880371570587, -0.16163566708564758, 0.28240275382995605, 0.33217135071754456, -0.12262557446956635, 0.08510246872901917, 0.4505005478858948, -0.21759101748466492, 0.032492272555828094, -0.4076160490512848, -0.15201184153556824, -0.07754015177488327, 0.14632254838943481, -0.038707297295331955, 0.016048870980739594, -0.13820549845695496, -0.029103755950927734, 0.2990526556968689, 0.4490666091442108, 0.1406911462545395, 0.2543390989303589, 0.09554237127304077, 0.24244670569896698, 0.009589584544301033, -0.18588119745254517, -0.37742164731025696, 0.1745986044406891, 0.5166447162628174, 0.039823535829782486, -0.23470507562160492, -0.03469402715563774, -0.4541691839694977, 0.016655968502163887, -0.04380960389971733, 0.010136755183339119, 0.02898675575852394, 0.16775013506412506, 0.2887015640735626, 0.1997801959514618, 0.019844327121973038, 0.6505974531173706, -0.06818269938230515, 0.3121291399002075, -0.08647195994853973, 0.20737512409687042, -0.16821761429309845, -0.1355978548526764, 0.15900081396102905, -0.31828615069389343, 0.19970810413360596, -0.17437121272087097, -0.1728227734565735, 0.32667142152786255, 0.05898719280958176, 0.10119102895259857, -0.025603272020816803, -0.2437635213136673, 0.23220740258693695, -0.14031893014907837, -0.16422832012176514, 0.35277122259140015, 0.10086347162723541, 0.023694999516010284, -0.2600865066051483, -0.012755140662193298, 0.22085711359977722, 0.18524819612503052, -0.2386239469051361, 0.1970192939043045, 0.19342993199825287, -0.005058854818344116, 0.15450845658779144, -0.06769123673439026, 0.27839401364326477, -0.2629431188106537, 0.13453474640846252, -0.20537394285202026, 0.002580419182777405, 0.37898483872413635, 0.3293522298336029, 0.10568873584270477, -0.21984928846359253, 0.1804497241973877, 0.12968456745147705, -0.11986366659402847, -0.005631878972053528, 0.5065407156944275, 0.30673331022262573, 0.17041166126728058, 0.2266133725643158, -0.07012046128511429, -0.24366924166679382, -0.1433323323726654, 0.1890535056591034, 0.07574975490570068, 0.055556729435920715, -0.09695824235677719, 0.1349182277917862, -0.024318993091583252, -0.029059473425149918, -0.3912775218486786, 0.1723957359790802, 0.30682215094566345, -0.03782864660024643, 0.012093080207705498, -0.24965836107730865, -0.15205654501914978, 0.15689575672149658, -0.11147788166999817, -0.24324336647987366, -0.5550529360771179, -0.11703704297542572, 0.26486825942993164, -0.04857438802719116, 0.03614838421344757, -0.168355792760849, -0.1456136256456375, 0.3770270049571991, -0.2226378172636032, -0.0041133686900138855, -0.15879634022712708, -0.06200496107339859, 0.08505867421627045, 0.21731457114219666, -0.11893095076084137, 0.3502156436443329, -0.24010474979877472, -0.231121227145195, -0.3148247003555298, -0.03135525807738304, 0.015478190034627914, -0.14714719355106354, 0.37726423144340515, -0.22869983315467834, 0.41409629583358765, 0.08519439399242401, 0.11938463151454926, 0.15871752798557281, -0.16459034383296967, -0.07069885730743408, -0.10501012951135635, 0.0962461605668068, 0.1030072420835495, -0.05750419199466705, -0.2533058822154999, -0.20383810997009277, -0.34151265025138855, 0.13566188514232635, -0.13749487698078156, -0.05398973822593689, 0.15291200578212738, 0.22799429297447205, 0.030178509652614594, -0.11516325175762177, 0.0764714777469635, -0.19276562333106995, -0.39001667499542236, 0.4926217198371887, -0.08784746378660202, -0.19768568873405457, 0.013377856463193893, 0.21245168149471283, 0.00708635151386261, 0.3136501908302307, -0.6629760265350342, 0.056831713765859604, -0.31859496235847473, 0.27165693044662476, -0.05466580390930176, -0.282490074634552, 0.2686047852039337, -0.4917541742324829, -0.1053476333618164, 0.03987203538417816, 0.027759164571762085, -0.029760994017124176, 0.1054958626627922, 0.4257921576499939, -0.17380189895629883, 0.2901480793952942, -0.005897007882595062, 0.16786512732505798, 0.23275411128997803, -0.02303098514676094, 0.08527036011219025, 0.12118051946163177, 0.2642666697502136, -0.006339319050312042, -0.3034161329269409, -0.017608635127544403, -0.0341334342956543, -0.13685673475265503, -0.01071641594171524, -0.008525418117642403, -0.2189050316810608, -0.18994875252246857, 0.004796881228685379, -0.2691439092159271, -0.2852286994457245, -0.1181236058473587, -0.2087256908416748, 0.031999312341213226, 0.3415754735469818, 0.21627631783485413, 0.048017632216215134, -0.1770513951778412, -0.14029620587825775, -0.0034885406494140625, -0.1222759261727333, -0.22035548090934753, -0.5491007566452026, 0.13394448161125183, -0.35364359617233276, 0.22308862209320068, -0.06012866273522377, 0.3213074803352356, -0.08073931187391281, 0.11256589740514755, 0.18936662375926971, 0.03791901096701622, 0.6117427349090576, -0.1809253990650177, 0.036236029118299484, 0.017980925738811493, 0.2915149927139282, -0.4782934784889221, -0.07695133239030838, 0.15238267183303833, 0.2845625877380371, 0.5226526856422424, 0.03703637421131134, -0.3182997703552246, 0.022298716008663177, 0.07867759466171265, 0.28489336371421814, 0.12791705131530762, -0.4066616892814636, 0.08613507449626923, -0.1845366656780243, -0.17153604328632355, 0.155686616897583, 0.09902524203062057, 0.139931783080101, -0.0063086338341236115, -0.2252766340970993, 0.1577492654323578, 0.1879138946533203, -0.011469021439552307, -0.10066390037536621, 0.19554853439331055, -0.28009527921676636, 0.5696742534637451, 0.05821942538022995, -0.21681541204452515, 0.32929912209510803, 0.6071473360061646, 0.2037024199962616, -0.4783620238304138, -0.0077774375677108765, -0.03527620807290077, -0.11910311132669449, 0.29410937428474426, 0.06880129873752594, -0.0737713947892189, -0.2819931209087372, 0.3526284098625183, 0.08208466321229935, 0.1576073169708252, 0.2579840123653412, 0.041412353515625, -0.4130150377750397, -0.4910186231136322, 0.19874361157417297, 0.04070524498820305, 0.007740505039691925, 0.7631571292877197, -0.08212611079216003, 0.11729356646537781, 0.216981902718544, 0.00366867333650589, 1.0106483697891235, -0.18492940068244934, 0.05558817833662033, 0.026952438056468964, -0.19689352810382843, 0.4470202922821045, -0.24445022642612457, 0.05335357412695885, -0.07444129884243011, 0.0985228568315506, 0.07905098795890808, -0.09009106457233429, -0.10415280610322952, 0.24953648447990417, -0.2677384614944458, 0.09341288357973099, -0.18662476539611816, 0.11987875401973724, -0.1068740114569664, 0.16023246943950653, -0.3221094310283661, -0.04931310936808586, -0.07387784868478775, 0.25286421179771423, -0.01900351047515869, 0.2423349767923355, 0.05033329129219055, 0.10214022547006607, -0.21651731431484222, -0.05116500332951546, -0.6515235900878906, 0.06079217791557312, -0.10599327832460403, -0.02493857592344284, -0.31618618965148926, -0.26942700147628784, -0.03973572701215744, 0.06479831039905548, 0.18098391592502594, 0.2945520877838135, -0.10852919518947601, 0.27340421080589294, -0.161736398935318, -0.08285443484783173, 0.007087061181664467, -0.2562040388584137, 0.17007960379123688, 0.02574809640645981, -0.4043717384338379, 0.17288874089717865, -0.012018958106637001, -0.19253969192504883, 0.24533924460411072, 0.24512501060962677, 0.15377338230609894, -0.14056061208248138, 0.070539191365242, 0.0044919997453689575, 0.1839313507080078, -0.331531822681427, 0.16464008390903473, 0.27339839935302734, 0.11607873439788818, 0.29347696900367737, -0.13067804276943207, -0.3417878746986389, -0.3124030530452728, 0.4209149479866028, 0.014722917228937149, -0.018271850422024727, 0.2777172327041626, 0.19465099275112152, -0.38317203521728516, -0.3084496557712555, 0.04839480668306351, -0.5737428069114685, -0.37593942880630493, 0.27087515592575073, -0.4809340834617615, 0.368818461894989, -0.05256280675530434, -0.19457465410232544, 0.1614539921283722, 0.04105246812105179, 0.17652972042560577, -0.5769950747489929, -0.07238224893808365, -0.13422541320323944, -0.312486469745636, 0.0035801082849502563, -0.12181710451841354, -0.017435148358345032, 0.2209634631872177, -0.028305457904934883, -0.30590081214904785, 0.10724121332168579, -0.2990964949131012, 0.16669873893260956, 0.363023042678833, -0.11783390492200851, 0.36008545756340027, -0.1476002186536789, 0.07194928079843521, 0.2135470062494278, -0.12591353058815002, -0.18675684928894043, 0.008876964449882507, 0.12042058259248734, -0.09831953048706055, -0.19878417253494263, 0.10216736048460007, -0.4653489589691162, -0.11391593515872955, 0.08365678042173386, -0.13278453052043915, 0.1149018183350563, 0.07513327896595001, -0.21579352021217346, 0.15644778311252594, 0.06085341051220894, 0.031954325735569, 0.17440466582775116, -0.08145314455032349, 0.4345966577529907, 0.23354269564151764, 0.3212582767009735, 0.12802711129188538, 0.047678813338279724, -0.501342236995697, -0.002189457416534424, -0.15553545951843262, 0.008616598322987556, 0.5000969171524048, -0.2849591374397278, 0.0574558787047863, 0.3465833067893982, 0.3582383096218109, 0.5142086744308472, 0.021775413304567337, -0.16601084172725677, 0.34934544563293457, 0.2776166796684265, -0.007257204502820969, -0.09315184503793716, 0.31616508960723877, 0.19545777142047882, 0.012730274349451065, 0.16594460606575012, -0.028660546988248825, -0.15327435731887817, 0.17523281276226044, 0.21328487992286682, 0.7456156015396118, 0.0594356432557106, 0.21208813786506653, 0.23594793677330017, 0.13257886469364166, -0.02564987912774086, 0.4962305724620819, 0.2893047332763672, 0.0648459643125534, 0.1836969256401062, -0.18960702419281006, -0.06991671770811081, -0.0696895495057106, 0.11877626180648804, -0.09256035834550858, -0.25629472732543945, 0.08004681766033173, 0.17296482622623444, -0.2709696292877197, -0.05363999307155609, 0.1682765781879425, 0.1517084836959839, -0.24122174084186554, -0.05269522964954376, -0.16841137409210205, 0.24353286623954773, 0.0784861296415329, 0.21635903418064117, 0.1559382975101471, -0.11664766073226929, -0.12536001205444336, 0.05949932709336281, 0.006154600530862808, -0.26097291707992554, 0.4184810221195221, 0.12325115501880646, 0.09631454199552536, -0.5866308212280273, -0.0014911927282810211, -0.08682302385568619, 0.1881747841835022, -0.4743902385234833, 0.047453660517930984, 0.01809343695640564, -0.2157318890094757, -0.06122133508324623, 0.2576415240764618, 0.5287147760391235, 0.1578769087791443, -0.07362110912799835, 0.18873322010040283, -0.006599916145205498, -0.08333367854356766, -0.06307105720043182, 0.46450772881507874, 0.08902686089277267, -0.07611741125583649, 0.41384389996528625, 0.14463315904140472, -0.22848784923553467, 0.14534586668014526, 0.10897424817085266, 0.2862817049026489, -0.2727351784706116, -0.00847865641117096, -0.05942220985889435, -0.12863093614578247, -0.36552610993385315, -0.14536535739898682, -0.13095706701278687, -0.0148774990811944, 0.44299566745758057, -0.3660320043563843, -0.03841833025217056, -0.26581496000289917, 0.1107902079820633, -0.16122975945472717, 0.31221115589141846, 0.4844057261943817, 0.22829851508140564, -0.17407485842704773, -0.36726194620132446, -0.3894624710083008, 0.07421062886714935, -0.6396655440330505, -0.1502288579940796, -0.1438753306865692, 0.515306830406189, 0.12659093737602234, 0.34815508127212524, 0.3572773039340973, 0.08976764976978302, -0.4011436402797699, 0.47751206159591675, -0.27645811438560486, -0.37659355998039246, -0.050980985164642334, 0.0072236862033605576, 0.08506067097187042, -0.3032618761062622, 0.17786753177642822, -0.2237769514322281, 0.023635372519493103, -0.13773249089717865, -0.206695556640625, 0.22312358021736145, -0.13742004334926605, 0.47270357608795166, 0.0809812992811203, 0.2350999116897583, 0.2856600880622864, -0.5054972171783447, -0.4817368984222412, -0.2052443027496338, 0.005270238034427166, 0.07313805818557739, 0.06347940117120743, 0.3176405131816864, -0.34224724769592285, 0.01492074504494667, -0.12036725878715515, 0.19726742804050446, -0.11433883756399155, -0.2799232006072998, 0.22402842342853546, -0.2387307733297348, -0.02951333485543728, 0.32904037833213806, -0.04373028129339218, 0.15482766926288605, -0.05231732875108719, 0.19669780135154724, -0.2919946312904358, -0.34406864643096924, 0.27960360050201416, 0.03348245844244957, -0.4112813174724579, 0.03868468105792999, 0.16732949018478394, 0.10590043663978577, -0.04837680608034134, -0.2123417854309082, 0.0996663048863411, 0.41789600253105164, -0.06320993602275848, -0.22429819405078888, 0.20848141610622406, 0.05455171316862106, 0.1583583652973175, -0.03662998601794243, 0.48312908411026, 0.026859616860747337, -0.24174512922763824, 0.3183758854866028, -0.14631232619285583 ]
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.3514556586742401, -0.17711474001407623, -0.07967137545347214, 0.16828690469264984, 0.14759472012519836, 0.22328364849090576, 0.02260356768965721, 0.22113995254039764, 0.012353554368019104, -0.18973813951015472, -0.0006057610735297203, 0.07988232374191284, 0.2927660346031189, -0.023499080911278725, 0.004596221260726452, 0.2605559229850769, 0.17460797727108002, -0.1837056279182434, 0.029560208320617676, 0.021248549222946167, 0.003918983042240143, 0.10427107661962509, -0.2045954018831253, -0.18912188708782196, -0.2868833541870117, -0.06323440372943878, -0.10262396931648254, -0.06519443541765213, -0.16135022044181824, -0.2562069594860077, 0.2678036689758301, 0.17475417256355286, -0.11257010698318481, 0.5722387433052063, -0.00011087441089330241, -0.20025888085365295, 0.3267362117767334, 0.06067769229412079, -0.3902624845504761, -0.4879058003425598, -0.2514711320400238, -0.13672815263271332, 0.06485753506422043, 0.06131782382726669, 0.11008114367723465, 0.06500140577554703, 0.07657787203788757, -0.39154788851737976, 0.2778302729129791, 0.4178674817085266, 0.19374100863933563, 0.3087410032749176, 0.1997346132993698, -0.10753823816776276, 0.21466171741485596, -0.0059835463762283325, 0.043371476233005524, 0.3852347135543823, 0.1850036233663559, -0.21504592895507812, 0.22566789388656616, 0.038712289184331894, -0.08732503652572632, 0.21247752010822296, -0.027065157890319824, 0.0023182155564427376, 0.062430236488580704, -0.42958274483680725, -0.026627466082572937, 0.16273462772369385, 0.9098490476608276, 0.015501517802476883, -0.4210052490234375, -0.2765187919139862, 0.06437353044748306, 0.01916065253317356, 0.4107706546783447, 0.3963231146335602, -0.3528384268283844, 0.21955391764640808, -0.28654035925865173, 0.016961628571152687, 0.058576107025146484, 0.3455072045326233, 0.1300356090068817, -0.03658483922481537, 0.05148530378937721, 0.21210330724716187, 0.07769401371479034, -0.012777626514434814, 0.3182253837585449, -0.3606891632080078, 0.0638846755027771, -0.04541194066405296, -0.42237818241119385, -0.059610262513160706, 0.041024528443813324, 0.29654884338378906, 0.2180079221725464, 0.03760198503732681, 0.009040603414177895, -0.23317939043045044, -0.1563534438610077, 0.1810910999774933, 0.41439929604530334, 0.032804496586322784, -0.08634429425001144, 0.15662406384944916, 0.2490016371011734, -0.15633581578731537, -0.06372669339179993, 0.02811540849506855, 0.05355572700500488, -0.004637649282813072, 0.20609523355960846, -0.16088128089904785, 0.26427823305130005, -0.29414159059524536, -0.23413613438606262, -0.03170538321137428, 0.13191092014312744, -0.10885922610759735, -0.21196292340755463, 0.2084045708179474, -0.5190798044204712, 0.2473195195198059, -0.13396300375461578, 0.11474782228469849, -0.3465743958950043, -0.37692633271217346, -0.09950526803731918, 0.04791931062936783, -0.2433876395225525, -0.02848672680556774, -0.046248048543930054, -0.0000031776726245880127, 0.0765841156244278, 0.20440590381622314, 0.01768479496240616, -0.36381345987319946, -0.009905243292450905, -0.23871764540672302, -0.11294334381818771, 0.19917897880077362, -0.15109464526176453, 0.42252928018569946, 0.037646546959877014, 0.10379372537136078, -0.08059617877006531, -0.016250044107437134, -0.331940233707428, -0.23657400906085968, -0.12035374343395233, 0.21285417675971985, -0.31139272451400757, -0.337515652179718, -0.1700793206691742, -0.03492297604680061, 0.24027666449546814, -0.0020038336515426636, -0.09579760581254959, -0.03596051037311554, 0.09144662320613861, -0.10809582471847534, -0.0803290531039238, 0.4175195097923279, -0.4671490490436554, 0.28813010454177856, -0.18596994876861572, 0.13635587692260742, 0.1721726357936859, 0.257050484418869, -0.1467759907245636, 0.04545333608984947, -0.20807257294654846, -0.17753815650939941, 0.2739045023918152, -0.1860809624195099, -0.7467340230941772, 0.0578027181327343, -0.28435009717941284, 0.042419128119945526, -0.11786472052335739, 0.36948487162590027, 0.24071729183197021, -0.14267364144325256, 0.03910339996218681, 0.4280475974082947, -0.2491462528705597, 0.004937710240483284, -0.3930666744709015, -0.20066559314727783, 0.023305822163820267, 0.1867521107196808, 0.01732674241065979, 0.07467811554670334, -0.11237096041440964, -0.04638684540987015, 0.24137744307518005, 0.4207428991794586, 0.10312338173389435, 0.2581169903278351, 0.027650397270917892, 0.3117116689682007, 0.0341697558760643, -0.2208823263645172, -0.46349239349365234, 0.19297149777412415, 0.49742695689201355, -0.04022922366857529, -0.22566290199756622, -0.003894668072462082, -0.3863799273967743, -0.005857562646269798, -0.06645247340202332, 0.020145233720541, 0.006706073880195618, 0.14836016297340393, 0.2730270028114319, 0.26207849383354187, -0.042832132428884506, 0.6063827872276306, 0.06349703669548035, 0.2556883990764618, -0.10816983878612518, 0.20150262117385864, -0.13582266867160797, -0.15735438466072083, 0.1642460823059082, -0.33190304040908813, 0.20646512508392334, -0.14268749952316284, -0.17124074697494507, 0.30650442838668823, 0.04271554574370384, 0.1618182361125946, 0.011498574167490005, -0.10001425445079803, 0.2866932451725006, -0.1438966542482376, -0.15829649567604065, 0.3258189558982849, 0.11365476250648499, 0.003175988793373108, -0.2952043116092682, 0.01754164695739746, 0.16085493564605713, 0.14630785584449768, -0.2422056943178177, 0.1282934546470642, 0.1188991367816925, 0.021880026906728745, 0.23465128242969513, -0.01792779564857483, 0.3345370292663574, -0.28136032819747925, 0.14079956710338593, -0.18998995423316956, -0.019866902381181717, 0.3656047284603119, 0.3421825170516968, 0.1151365339756012, -0.15749359130859375, 0.17379799485206604, 0.12677998840808868, -0.17512139678001404, -0.0009867865592241287, 0.4331414997577667, 0.2764456272125244, 0.1672479808330536, 0.23331984877586365, -0.08592672646045685, -0.1909576803445816, -0.16337497532367706, 0.105318084359169, 0.034864556044340134, -0.036340948194265366, -0.06392455101013184, 0.134812131524086, -0.004275417886674404, -0.07548269629478455, -0.36229127645492554, 0.1658124029636383, 0.25679922103881836, -0.031225766986608505, 0.047379568219184875, -0.2350286841392517, -0.0895153135061264, 0.17976416647434235, -0.06267032772302628, -0.3132670819759369, -0.53461754322052, -0.05703513324260712, 0.2572365999221802, -0.02396579086780548, 0.031437382102012634, -0.21076495945453644, -0.0662350207567215, 0.41849416494369507, -0.2246602475643158, -0.0019353888928890228, -0.19666029512882233, -0.003124494105577469, 0.06662532687187195, 0.22889797389507294, -0.15723010897636414, 0.29784414172172546, -0.2575800120830536, -0.23200741410255432, -0.438240110874176, 0.010009430348873138, 0.024063901975750923, -0.16591350734233856, 0.32628002762794495, -0.2745300233364105, 0.4014866352081299, 0.04676105082035065, 0.1846999228000641, 0.1293174922466278, -0.2159520536661148, -0.05685240775346756, -0.09018495678901672, 0.10981982201337814, 0.09168653190135956, 0.01301480084657669, -0.28326481580734253, -0.2611870765686035, -0.3255771994590759, 0.1303069293498993, -0.1285696029663086, -0.0595824271440506, 0.09944141656160355, 0.2131880819797516, -0.02861696109175682, -0.14001776278018951, 0.13279759883880615, -0.21269074082374573, -0.4661634862422943, 0.5746907591819763, -0.10253989696502686, -0.2443290799856186, 0.07285815477371216, 0.22742076218128204, -0.08491718769073486, 0.3090684413909912, -0.7301833033561707, 0.06512787938117981, -0.33166226744651794, 0.2532578110694885, -0.06613174825906754, -0.18614311516284943, 0.22061337530612946, -0.4908766746520996, -0.09713819622993469, 0.0012671500444412231, 0.03664955124258995, -0.05883654206991196, 0.0865294486284256, 0.4306550621986389, -0.08729640394449234, 0.24497365951538086, -0.011774750426411629, 0.23684708774089813, 0.19697166979312897, 0.03935334458947182, 0.13593082129955292, 0.13158810138702393, 0.28876036405563354, 0.03816423937678337, -0.1975029557943344, 0.005636532790958881, -0.07811036705970764, -0.17137543857097626, 0.0641341358423233, 0.02072073146700859, -0.24241559207439423, -0.19661813974380493, -0.0034144259989261627, -0.28026798367500305, -0.20286916196346283, -0.11540555953979492, -0.23983225226402283, -0.01624489575624466, 0.3200683295726776, 0.21803319454193115, 0.01893119513988495, -0.2698966860771179, -0.03656236082315445, 0.01518896222114563, -0.047050051391124725, -0.1482364982366562, -0.5069872140884399, 0.13405191898345947, -0.3120482265949249, 0.20342415571212769, -0.09548569470643997, 0.35489484667778015, -0.10771545767784119, 0.04296565800905228, 0.15530598163604736, 0.007652018219232559, 0.5914549827575684, -0.10411614924669266, 0.0983438640832901, -0.07158710807561874, 0.28991299867630005, -0.3268389403820038, -0.10911320149898529, 0.18694989383220673, 0.27979958057403564, 0.3968096971511841, -0.08415940403938293, -0.2665337324142456, 0.1139557957649231, 0.021089419722557068, 0.31528183817863464, 0.11120356619358063, -0.464783638715744, 0.03564244881272316, -0.07124420255422592, -0.10731729865074158, 0.12799207866191864, 0.08268433064222336, 0.019734693691134453, -0.018254166468977928, -0.170674130320549, 0.18827632069587708, 0.16990303993225098, 0.0500936396420002, -0.11844685673713684, 0.24675998091697693, -0.3339710235595703, 0.4795379638671875, 0.14935451745986938, -0.22535863518714905, 0.21934106945991516, 0.7089198231697083, 0.1852738857269287, -0.4553837776184082, 0.03365985304117203, 0.020823650062084198, -0.09455867856740952, 0.2738792598247528, 0.047742150723934174, -0.08045420795679092, -0.10908763110637665, 0.30352717638015747, -0.007922588847577572, 0.14791284501552582, 0.24307553470134735, 0.051856327801942825, -0.4522883892059326, -0.5552816390991211, 0.26070329546928406, 0.11195090413093567, 0.003599792718887329, 0.7280551195144653, -0.10572090744972229, 0.15785446763038635, 0.2373599410057068, -0.09947872906923294, 0.9929691553115845, -0.16209988296031952, 0.1493353396654129, -0.03338448330760002, -0.047853682190179825, 0.4863731563091278, -0.3597366213798523, 0.0773661881685257, -0.053777702152729034, -0.003916856832802296, 0.028477607294917107, -0.10739752650260925, -0.23440828919410706, 0.26516100764274597, -0.23735645413398743, 0.22928930819034576, -0.20267730951309204, 0.20660407841205597, -0.12984292209148407, 0.15436753630638123, -0.32037919759750366, -0.011040162295103073, -0.08897372335195541, 0.22196626663208008, 0.026091769337654114, 0.2512620687484741, 0.017446551471948624, 0.11189662665128708, -0.2052425593137741, 0.0056716687977313995, -0.6313535571098328, 0.07184340804815292, -0.12432319670915604, -0.01022082194685936, -0.3196517527103424, -0.3208352327346802, -0.03353213518857956, 0.12963102757930756, 0.16167616844177246, 0.22598551213741302, -0.1288222074508667, 0.31987300515174866, -0.09636429697275162, -0.053741004317998886, -0.00804540328681469, -0.2188047170639038, 0.19299179315567017, 0.021850336343050003, -0.30078667402267456, 0.17267650365829468, -0.0692979246377945, -0.16043442487716675, 0.10415098071098328, 0.28081178665161133, 0.17687657475471497, -0.09427851438522339, 0.05131009593605995, -0.0405617281794548, 0.19641752541065216, -0.2893085181713104, 0.16394829750061035, 0.41162437200546265, 0.19061607122421265, 0.24541279673576355, -0.13408954441547394, -0.27001291513442993, -0.40324676036834717, 0.42758846282958984, 0.0022110603749752045, -0.11017114669084549, 0.21258926391601562, 0.2454710453748703, -0.4511728882789612, -0.2619055211544037, 0.04259960353374481, -0.5402831435203552, -0.39606860280036926, 0.24992699921131134, -0.5254061818122864, 0.3360443711280823, -0.08375116437673569, -0.16350558400154114, 0.17544369399547577, 0.04153133183717728, 0.18816761672496796, -0.5935433506965637, -0.0810244083404541, -0.10038886964321136, -0.28377050161361694, 0.012818846851587296, -0.12153074145317078, -0.1770418882369995, 0.25756174325942993, -0.03401005268096924, -0.29538804292678833, 0.03788591921329498, -0.26458051800727844, 0.09872826188802719, 0.2678190767765045, -0.07157079130411148, 0.36978432536125183, -0.10258224606513977, 0.060798466205596924, 0.1411421149969101, -0.11483928561210632, -0.14953146874904633, 0.006299315020442009, 0.1379145383834839, -0.06339140981435776, -0.14796137809753418, 0.0588899664580822, -0.4454342722892761, -0.0665021687746048, 0.09151847660541534, -0.01564095728099346, 0.1372486650943756, 0.06145739555358887, -0.22704194486141205, 0.1766364723443985, -0.020535431802272797, -0.030989516526460648, 0.20332969725131989, -0.06558535993099213, 0.4361158013343811, 0.19106003642082214, 0.21707208454608917, 0.15376634895801544, 0.04988527297973633, -0.46960222721099854, -0.02896875888109207, -0.10804145038127899, -0.00122031569480896, 0.5069380402565002, -0.3495693802833557, 0.08562055230140686, 0.37643060088157654, 0.3894275724887848, 0.5139310359954834, 0.011211334727704525, -0.1490621715784073, 0.442787766456604, 0.2743193209171295, -0.015441186726093292, -0.16954772174358368, 0.3015778958797455, 0.19128820300102234, 0.02458294853568077, 0.11083575338125229, -0.02006569877266884, -0.1465342938899994, 0.1181677058339119, 0.25669676065444946, 0.7323005795478821, -0.0011005178093910217, 0.19760219752788544, 0.09024767577648163, 0.1754855066537857, 0.004516772925853729, 0.47790825366973877, 0.31050848960876465, -0.03507336229085922, 0.2082252949476242, -0.07628238946199417, -0.11763758957386017, 0.03697795420885086, 0.13231977820396423, -0.10637784749269485, -0.263611763715744, 0.03591831773519516, 0.19577854871749878, -0.2781752645969391, -0.014217987656593323, 0.10206831991672516, 0.18156073987483978, -0.24021025002002716, -0.06883388757705688, -0.19207915663719177, 0.20477165281772614, 0.07950042188167572, 0.25617682933807373, 0.35523325204849243, -0.1377822458744049, -0.08224603533744812, 0.08176004886627197, 0.041342876851558685, -0.23120273649692535, 0.3926381766796112, 0.19536632299423218, 0.1165904700756073, -0.5178906321525574, 0.005887983366847038, -0.09000016003847122, 0.23049449920654297, -0.46538257598876953, 0.08235745131969452, -0.01510995626449585, -0.2950538694858551, -0.021759744733572006, 0.21528078615665436, 0.5295719504356384, 0.18058191239833832, -0.07449567317962646, 0.12099744379520416, -0.04465753957629204, -0.0673840269446373, -0.0638556182384491, 0.5054075717926025, 0.04411691799759865, -0.14882290363311768, 0.3898939788341522, 0.11459192633628845, -0.202414408326149, 0.2241462618112564, 0.056145403534173965, 0.2569642663002014, -0.3092000484466553, -0.05560780316591263, -0.09218679368495941, -0.16187044978141785, -0.3807842433452606, -0.16199949383735657, -0.22222554683685303, -0.03572307154536247, 0.4328233599662781, -0.3476444482803345, -0.032588981091976166, -0.2878084182739258, 0.10025711357593536, -0.13176362216472626, 0.36158424615859985, 0.5655297636985779, 0.3356921374797821, -0.15268568694591522, -0.2620876431465149, -0.46107393503189087, 0.0843295156955719, -0.5949673056602478, -0.07586070895195007, -0.14609043300151825, 0.4706690311431885, 0.07032319903373718, 0.3799138069152832, 0.3234637379646301, 0.05884050577878952, -0.4108413755893707, 0.4678778052330017, -0.32025134563446045, -0.35221293568611145, -0.08157514035701752, 0.03986778110265732, 0.052440524101257324, -0.2496674656867981, 0.19716529548168182, -0.33527427911758423, 0.007786378264427185, -0.1428934782743454, -0.21322199702262878, 0.16587314009666443, -0.05118995159864426, 0.495064377784729, 0.07482101768255234, 0.30297935009002686, 0.29445838928222656, -0.48961004614830017, -0.5438293218612671, -0.28054794669151306, 0.00794966984540224, -0.0352596715092659, 0.03658432140946388, 0.29369238018989563, -0.3994545638561249, 0.03986524045467377, -0.11193292587995529, 0.21742522716522217, -0.1450018435716629, -0.28616613149642944, 0.17583079636096954, -0.2617858648300171, -0.04673008993268013, 0.372997909784317, 0.07405378669500351, 0.18090051412582397, -0.09310369193553925, 0.19038981199264526, -0.2506173849105835, -0.31582173705101013, 0.23526793718338013, -0.023083627223968506, -0.35486534237861633, 0.003519413061439991, 0.16057677567005157, 0.1762247085571289, -0.01400757022202015, -0.19612231850624084, 0.08975712209939957, 0.3986310660839081, 0.004891782999038696, -0.19209571182727814, 0.18237881362438202, 0.049424946308135986, 0.18333378434181213, -0.011885317042469978, 0.47691109776496887, 0.025230223312973976, -0.2749190628528595, 0.3731449842453003, -0.123780257999897 ]
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.3457062542438507, -0.11349116265773773, -0.08899116516113281, 0.12944409251213074, 0.14749175310134888, 0.2143729329109192, 0.04801774397492409, 0.1998877227306366, 0.03385518118739128, -0.09553147852420807, -0.030202707275748253, 0.11687548458576202, 0.24378149211406708, -0.07714832574129105, -0.04912007600069046, 0.23142266273498535, 0.05778604373335838, -0.16223075985908508, -0.05591970682144165, 0.07350243628025055, 0.011059336364269257, 0.12743647396564484, -0.0714070275425911, -0.18327726423740387, -0.29786497354507446, -0.06552435457706451, -0.13290821015834808, 0.0713866800069809, -0.21837538480758667, -0.31135043501853943, 0.25694918632507324, 0.12307368218898773, 0.010395478457212448, 0.6663284301757812, -0.00011161026486661285, -0.15925592184066772, 0.2437494844198227, 0.04264020919799805, -0.4877465069293976, -0.5513874292373657, -0.13421118259429932, -0.19452236592769623, 0.06999799609184265, -0.02382853627204895, 0.11949452012777328, 0.08723043650388718, 0.18626202642917633, -0.42608344554901123, 0.29676496982574463, 0.42541489005088806, 0.17530584335327148, 0.23871824145317078, 0.1722794473171234, -0.025117965415120125, 0.17376035451889038, 0.10747893899679184, 0.05598963052034378, 0.4737628996372223, 0.17528235912322998, -0.13047988712787628, 0.21956253051757812, -0.020969010889530182, -0.1029602587223053, 0.20840734243392944, -0.09647253900766373, 0.10182133316993713, 0.09890172630548477, -0.4662339389324188, -0.06993914395570755, 0.1454068422317505, 0.9318504333496094, -0.047751232981681824, -0.4556195139884949, -0.25368866324424744, 0.06746957451105118, -0.008154299110174179, 0.3597685396671295, 0.3981698751449585, -0.3702106177806854, 0.23843082785606384, -0.23103320598602295, -0.03791685774922371, 0.04562334716320038, 0.366399347782135, 0.12223353981971741, 0.001174040138721466, 0.07176610827445984, 0.19350117444992065, 0.091200090944767, -0.010882265865802765, 0.1897066980600357, -0.28751447796821594, 0.08278286457061768, -0.023027751594781876, -0.31634995341300964, -0.004063297063112259, 0.06554856151342392, 0.15145793557167053, 0.19573882222175598, 0.07829827070236206, 0.05561969429254532, -0.20488885045051575, -0.19198612868785858, 0.15413370728492737, 0.3801202178001404, 0.018090756610035896, -0.031185142695903778, 0.0855461061000824, 0.3153655529022217, -0.06589940935373306, -0.06710127741098404, 0.01070982962846756, 0.07205014675855637, 0.0049375444650650024, 0.24727873504161835, -0.1595619022846222, 0.3136942982673645, -0.15689606964588165, -0.26493388414382935, -0.003285321407020092, -0.008313246071338654, -0.10223939269781113, -0.1726379245519638, 0.1798475831747055, -0.46101272106170654, 0.2657685875892639, 0.07955974340438843, 0.08740377426147461, -0.3733413815498352, -0.3142503499984741, -0.07719779014587402, 0.06103823333978653, -0.2870960533618927, -0.018002646043896675, 0.014178764075040817, -0.10226453840732574, 0.13527530431747437, 0.1678621470928192, 0.0020394697785377502, -0.30979880690574646, -0.017695147544145584, -0.13594423234462738, -0.19761979579925537, 0.21887579560279846, -0.15063154697418213, 0.4216022491455078, 0.058374617248773575, 0.10222053527832031, -0.04033401235938072, -0.038325533270835876, -0.26695114374160767, -0.27882885932922363, -0.13514554500579834, 0.21645277738571167, -0.23732438683509827, -0.21259593963623047, -0.14561760425567627, -0.11631591618061066, 0.2005087435245514, -0.01274995505809784, -0.08984235674142838, -0.04236280918121338, 0.12619760632514954, -0.11594506353139877, -0.025467824190855026, 0.45871293544769287, -0.5205495357513428, 0.22549927234649658, -0.21021732687950134, 0.10504662990570068, 0.1674230843782425, 0.22208556532859802, -0.16809816658496857, 0.12560126185417175, -0.303205281496048, -0.12763240933418274, 0.32636287808418274, -0.20881684124469757, -0.6565337777137756, -0.006463637575507164, -0.4225062131881714, 0.043636538088321686, -0.03988417237997055, 0.31998535990715027, 0.2116355001926422, -0.06214683875441551, 0.023738160729408264, 0.33406710624694824, -0.19207380712032318, 0.014688702300190926, -0.37585195899009705, -0.1495862603187561, -0.053292416036129, 0.1565195769071579, 0.013183072209358215, 0.03865237906575203, -0.09403906017541885, 0.010664551518857479, 0.2913520932197571, 0.3134848475456238, 0.11981193721294403, 0.28046727180480957, 0.06980869174003601, 0.30566996335983276, 0.08199894428253174, -0.24702772498130798, -0.44210970401763916, 0.2378844916820526, 0.5058306455612183, 0.09759826958179474, -0.29183876514434814, -0.01044466719031334, -0.4422041177749634, 0.031291790306568146, -0.025696661323308945, 0.008342558518052101, 0.023564662784337997, 0.19818231463432312, 0.298496812582016, 0.23057620227336884, -0.06883376836776733, 0.5827645659446716, -0.06300076097249985, 0.2926051616668701, -0.2162380963563919, 0.30010583996772766, -0.1852475106716156, -0.1520494520664215, 0.07356489449739456, -0.3078405559062958, 0.07816493511199951, -0.20679669082164764, -0.14225053787231445, 0.34220030903816223, -0.009368648752570152, 0.15894638001918793, 0.04767461121082306, -0.06521040201187134, 0.2794475853443146, -0.12249164283275604, -0.13275092840194702, 0.3763537108898163, 0.09033207595348358, 0.07238826900720596, -0.24747627973556519, -0.00029315799474716187, 0.16029758751392365, 0.17977868020534515, -0.18110984563827515, 0.14448405802249908, 0.1153949499130249, -0.008544381707906723, 0.13294701278209686, -0.044730570167303085, 0.4311593770980835, -0.37004879117012024, 0.12742985785007477, -0.20815928280353546, -0.015293613076210022, 0.3702549934387207, 0.261364609003067, 0.056956518441438675, -0.1585603952407837, 0.17013898491859436, 0.12499473989009857, -0.14098814129829407, -0.08529924601316452, 0.396092027425766, 0.31652504205703735, 0.187519371509552, 0.20484468340873718, -0.09450792521238327, -0.1836347132921219, -0.12542879581451416, 0.12747067213058472, 0.02326073870062828, -0.018718171864748, 0.0660414844751358, 0.17050963640213013, 0.016954082995653152, -0.15881237387657166, -0.4864623546600342, 0.15232525765895844, 0.3400335907936096, -0.12892387807369232, 0.042557112872600555, -0.2582892179489136, -0.08118599653244019, 0.15282227098941803, -0.05561354383826256, -0.30099764466285706, -0.5474966168403625, -0.04880356788635254, 0.35172319412231445, -0.031738512217998505, 0.033320873975753784, -0.16870111227035522, -0.13268129527568817, 0.3515867590904236, -0.19785785675048828, -0.03805193677544594, -0.12424026429653168, -0.02509886771440506, 0.05194016918540001, 0.20812258124351501, -0.1554655134677887, 0.3499414026737213, -0.33039945363998413, -0.2150832861661911, -0.5077784061431885, -0.05739638954401016, 0.042038075625896454, -0.07114668190479279, 0.3454367518424988, -0.13642501831054688, 0.4982603192329407, 0.05155576020479202, 0.023597825318574905, 0.13399729132652283, -0.22584500908851624, -0.10997036099433899, -0.08876658976078033, 0.04899450019001961, 0.14464977383613586, -0.027951680123806, -0.40253162384033203, -0.19800570607185364, -0.3813939392566681, 0.12148059904575348, -0.10502862930297852, -0.04003717005252838, 0.1701105684041977, 0.18364930152893066, 0.0213114432990551, 0.0021812482737004757, 0.13416162133216858, -0.16136181354522705, -0.45380130410194397, 0.453940749168396, -0.12105679512023926, -0.18336772918701172, 0.08705012500286102, 0.13617420196533203, -0.048781413584947586, 0.32001423835754395, -0.7256786227226257, 0.03292383253574371, -0.2690051198005676, 0.2915378212928772, -0.15932872891426086, -0.14234700798988342, 0.2895050346851349, -0.40331369638442993, -0.10868890583515167, 0.04580656439065933, 0.028444036841392517, -0.04522529989480972, 0.1700769066810608, 0.41306549310684204, -0.12012020498514175, 0.2722565531730652, -0.0237957201898098, 0.30740517377853394, 0.09990246593952179, -0.017408419400453568, 0.13619577884674072, 0.12412293255329132, 0.286242812871933, -0.013576969504356384, -0.2499910295009613, -0.03566423058509827, -0.05341237783432007, -0.2116120606660843, 0.08081275224685669, 0.06983701884746552, -0.18214161694049835, -0.18633662164211273, 0.00725935772061348, -0.32952556014060974, -0.23441661894321442, -0.08488031476736069, -0.21649640798568726, -0.002823054790496826, 0.2924293577671051, 0.09913884848356247, -0.05087864398956299, -0.17936307191848755, -0.10072237253189087, 0.09466022253036499, 0.03715267777442932, -0.13770414888858795, -0.5816252827644348, 0.06623929738998413, -0.3708144426345825, 0.14620982110500336, -0.014009061269462109, 0.28270334005355835, -0.059945352375507355, 0.1073080524802208, 0.16347739100456238, -0.029418472200632095, 0.6919804811477661, -0.21523913741111755, 0.03713994845747948, -0.029926477000117302, 0.3537367284297943, -0.42495667934417725, -0.04598679021000862, 0.1862328052520752, 0.3114420771598816, 0.4815092980861664, -0.02399563044309616, -0.3255310356616974, 0.06897567212581635, 0.12531927227973938, 0.3304869532585144, 0.050994668155908585, -0.4549204707145691, 0.09841704368591309, -0.1383914351463318, -0.2370653599500656, 0.08835840970277786, 0.04095340520143509, 0.06717652827501297, 0.05193658173084259, -0.13995793461799622, 0.21376344561576843, 0.14975109696388245, 0.06701439619064331, -0.12142917513847351, 0.21895572543144226, -0.2838040888309479, 0.5442036986351013, 0.14346027374267578, -0.17609645426273346, 0.31623056530952454, 0.7088831663131714, 0.14058756828308105, -0.42471516132354736, 0.0590028315782547, 0.08158524334430695, -0.12780112028121948, 0.29832911491394043, 0.12066306173801422, -0.15699127316474915, -0.19405455887317657, 0.36692196130752563, -0.003560350276529789, 0.15599803626537323, 0.27466416358947754, 0.042525216937065125, -0.42690443992614746, -0.4922940135002136, 0.2004539519548416, 0.10679440200328827, 0.031072288751602173, 0.6868842244148254, -0.048327475786209106, 0.1477251797914505, 0.30776113271713257, -0.0741993859410286, 1.0407166481018066, -0.21797965466976166, 0.11976085603237152, 0.04138251394033432, -0.021408215165138245, 0.5579096674919128, -0.46309220790863037, 0.07481711357831955, -0.10907424986362457, 0.02626977115869522, -0.010922599583864212, -0.15298818051815033, -0.18782243132591248, 0.38448935747146606, -0.1779053807258606, 0.15378117561340332, -0.21427945792675018, 0.173871710896492, -0.12125508487224579, 0.22221755981445312, -0.4063541889190674, -0.06827469170093536, -0.1278558373451233, 0.2052881419658661, 0.007012654095888138, 0.27332571148872375, -0.03555985540151596, 0.2405065894126892, -0.23099589347839355, -0.0035611167550086975, -0.6009575128555298, 0.04829447716474533, -0.14488819241523743, 0.028514176607131958, -0.4012333154678345, -0.3080592453479767, -0.13649022579193115, 0.2661273777484894, 0.174553781747818, 0.2025553286075592, -0.06007266789674759, 0.2379784733057022, -0.13825231790542603, -0.1495213508605957, -0.021051926538348198, -0.2287069857120514, 0.2524908185005188, 0.09274960309267044, -0.38962143659591675, 0.10580720752477646, -0.10776861757040024, -0.18772149085998535, 0.19172433018684387, 0.219991534948349, 0.12353155761957169, -0.0989532396197319, 0.036777012050151825, 0.04335116595029831, 0.12857255339622498, -0.2819083333015442, 0.10951262712478638, 0.34935128688812256, 0.1423758566379547, 0.20951104164123535, -0.13493585586547852, -0.2640581727027893, -0.3781038522720337, 0.41342511773109436, 0.021876268088817596, -0.08570072054862976, 0.3029451072216034, 0.2900460660457611, -0.43627065420150757, -0.24562352895736694, 0.037843942642211914, -0.5051125288009644, -0.4053313732147217, 0.26602110266685486, -0.35730937123298645, 0.3312879800796509, -0.03983570262789726, -0.18019790947437286, 0.19139626622200012, 0.049234502017498016, 0.10255202651023865, -0.6354935169219971, -0.06887280195951462, -0.028222791850566864, -0.2394978255033493, 0.06338459253311157, -0.07983823120594025, -0.18087688088417053, 0.13095374405384064, -0.16102196276187897, -0.2876027822494507, 0.09518995881080627, -0.2553081810474396, 0.09129627048969269, 0.3782762885093689, -0.10464263707399368, 0.37563997507095337, -0.16440150141716003, 0.080548956990242, 0.1534281224012375, -0.13191351294517517, -0.14382979273796082, -0.01693563349545002, 0.14243637025356293, -0.05665489286184311, -0.12163669615983963, 0.16163240373134613, -0.4505065679550171, -0.055755939334630966, 0.02616312727332115, -0.04781638830900192, 0.2395346760749817, 0.07999761402606964, -0.24511098861694336, 0.18293601274490356, 0.003919564187526703, -0.03658156841993332, 0.17254342138767242, -0.03385699540376663, 0.4763277769088745, 0.22038277983665466, 0.2932707369327545, 0.08375756442546844, 0.06732295453548431, -0.577454686164856, 0.028965741395950317, -0.12028779089450836, 0.06374354660511017, 0.46718770265579224, -0.33267951011657715, 0.047375988215208054, 0.325872540473938, 0.4628506004810333, 0.5449541807174683, -0.010152319446206093, -0.09365121275186539, 0.38746973872184753, 0.25395649671554565, 0.021837793290615082, -0.13318414986133575, 0.36420944333076477, 0.10274216532707214, 0.04475836083292961, 0.18044893443584442, -0.02858704701066017, -0.12505128979682922, 0.1498919576406479, 0.20518594980239868, 0.7734177112579346, -0.0462939590215683, 0.16900426149368286, 0.12424243986606598, 0.12034206092357635, 0.006493560969829559, 0.44816139340400696, 0.25403016805648804, 0.10601996630430222, 0.09176971018314362, -0.10665904730558395, -0.09255663305521011, 0.012304255738854408, 0.172487273812294, -0.18298855423927307, -0.33798426389694214, 0.03984330594539642, 0.18474718928337097, -0.1709384024143219, 0.018697328865528107, 0.12397459149360657, 0.23786130547523499, -0.2728775441646576, -0.06086864694952965, -0.15332216024398804, 0.26012128591537476, 0.061755046248435974, 0.2621084451675415, 0.25690534710884094, -0.19479382038116455, -0.1001041978597641, 0.0892079621553421, 0.0280524380505085, -0.25304174423217773, 0.27411943674087524, 0.1652856171131134, 0.08528219163417816, -0.6464284658432007, 0.007451895624399185, -0.11059246212244034, 0.17931610345840454, -0.4398784935474396, 0.04596678912639618, 0.045089125633239746, -0.2883317768573761, -0.07890991866588593, 0.27793455123901367, 0.5579776763916016, 0.16440735757350922, -0.0585423968732357, 0.17806382477283478, -0.12880584597587585, -0.051823608577251434, -0.10806959122419357, 0.3691689968109131, 0.04172360152006149, -0.18893636763095856, 0.3852717876434326, 0.13551631569862366, -0.2180573046207428, 0.14245501160621643, 0.1456933468580246, 0.30207476019859314, -0.2055165022611618, -0.07998234778642654, -0.08096110075712204, -0.1015385165810585, -0.3095257580280304, -0.17375898361206055, -0.1946854591369629, -0.04384836181998253, 0.35463982820510864, -0.33654558658599854, -0.03819965943694115, -0.2726593613624573, 0.10172425955533981, -0.1623689830303192, 0.20153309404850006, 0.5906616449356079, 0.26296213269233704, -0.13394540548324585, -0.24154041707515717, -0.47911494970321655, 0.08672887086868286, -0.5807116627693176, -0.1464294046163559, -0.2388322651386261, 0.4592358469963074, 0.0935247465968132, 0.325100839138031, 0.4186294674873352, 0.05288145691156387, -0.35676559805870056, 0.5118837356567383, -0.2942037284374237, -0.44086331129074097, -0.07024545967578888, 0.07217038422822952, 0.04067198932170868, -0.2368919551372528, 0.08001407235860825, -0.3003024160861969, -0.0044021084904670715, -0.14989086985588074, -0.19323712587356567, 0.18804621696472168, -0.10408928990364075, 0.5126100778579712, 0.0676489919424057, 0.3033859133720398, 0.1854616403579712, -0.5745765566825867, -0.5213244557380676, -0.30287036299705505, -0.04194937273859978, 0.07399240136146545, 0.07506736367940903, 0.5065428018569946, -0.480415940284729, -0.03854707255959511, -0.18810740113258362, 0.12701010704040527, -0.07921254634857178, -0.23479214310646057, 0.14912453293800354, -0.20230989158153534, -0.08655353635549545, 0.375718891620636, 0.031442929059267044, 0.20950275659561157, -0.03208012878894806, 0.2295544594526291, -0.22497227787971497, -0.3684900104999542, 0.2885977327823639, 0.0787874162197113, -0.2721017897129059, 0.08084115386009216, 0.19742095470428467, 0.10260740667581558, -0.016103090718388557, -0.20551131665706635, 0.09393154829740524, 0.40260180830955505, -0.03895936906337738, -0.2909105122089386, 0.09709733724594116, -0.0008463086560368538, 0.10377414524555206, -0.038243625313043594, 0.4988761842250824, 0.0005770344287157059, -0.2682355046272278, 0.3730955123901367, -0.10412184149026871 ]
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.4538247883319855, -0.03595196455717087, -0.10725750029087067, 0.21480663120746613, 0.22540079057216644, 0.09833797067403793, 0.15917165577411652, 0.22687962651252747, -0.05263829231262207, 0.000022843480110168457, -0.16277797520160675, 0.1547377109527588, 0.19559206068515778, -0.13340964913368225, -0.09725366532802582, 0.06104416400194168, -0.05657093971967697, -0.0677601546049118, -0.16155393421649933, 0.08194701373577118, 0.018820881843566895, 0.14368627965450287, -0.11213235557079315, -0.002650342881679535, -0.07669392973184586, -0.1644875705242157, -0.14679822325706482, 0.05072426795959473, -0.29565533995628357, -0.3328927457332611, 0.16948546469211578, 0.2418561726808548, -0.06909013539552689, 0.6850519776344299, -0.00011010315938619897, -0.13972033560276031, 0.2245101034641266, 0.04902321845293045, -0.31123989820480347, -0.5094980597496033, -0.1957666277885437, -0.17420092225074768, -0.0006462509627453983, -0.029179103672504425, 0.18548476696014404, 0.0554976761341095, 0.10899239778518677, -0.2749735713005066, 0.33892005681991577, 0.5729047656059265, 0.19959186017513275, 0.3697788715362549, 0.3693861663341522, -0.053556326776742935, 0.26640188694000244, -0.012151665985584259, 0.03119264729321003, 0.41691854596138, 0.13807792961597443, -0.059635333716869354, 0.18289780616760254, 0.022743219509720802, -0.07561427354812622, 0.15456834435462952, -0.11939180642366409, 0.033361587673425674, 0.2555917203426361, -0.38871729373931885, -0.13837170600891113, 0.2219337821006775, 0.7953237295150757, -0.0027444660663604736, -0.4068213701248169, -0.2871244549751282, 0.16965393722057343, -0.012916136533021927, 0.3349570631980896, 0.2615112066268921, -0.4169997572898865, 0.21747560799121857, -0.2613837420940399, -0.08086614310741425, -0.12663359940052032, 0.44061392545700073, 0.11701470613479614, 0.0012072771787643433, -0.02569754421710968, 0.30072811245918274, 0.2633588910102844, -0.10879458487033844, 0.22215066850185394, -0.31689751148223877, -0.0292469821870327, 0.013749626465141773, -0.338338166475296, -0.18885262310504913, 0.032917726784944534, 0.16386914253234863, 0.3037262558937073, 0.03185581788420677, 0.047106895595788956, -0.19615605473518372, -0.08399650454521179, 0.13981370627880096, 0.3832513093948364, 0.02979734167456627, 0.03673413395881653, 0.05589877814054489, 0.21393723785877228, 0.08050437271595001, -0.09634515643119812, 0.03827276453375816, -0.052035607397556305, 0.037523552775382996, 0.10670329630374908, -0.1745736002922058, 0.41484183073043823, -0.2983427941799164, -0.1657688319683075, 0.025585822761058807, 0.07573755830526352, -0.17028123140335083, -0.16885477304458618, 0.2133614718914032, -0.46823814511299133, 0.24465331435203552, -0.09227441996335983, 0.06521107256412506, -0.36387768387794495, -0.32873713970184326, -0.05139371007680893, 0.013742062263190746, -0.14873945713043213, -0.04312179982662201, -0.0900755226612091, -0.2335732877254486, 0.17903661727905273, 0.14482565224170685, 0.06731051206588745, -0.2530999183654785, 0.006169160827994347, -0.24361276626586914, -0.15517529845237732, 0.12795473635196686, -0.0695505440235138, 0.2915441393852234, 0.12379778921604156, 0.13390707969665527, -0.06375251710414886, 0.018646810203790665, -0.27538177371025085, -0.3336550295352936, -0.2002149075269699, 0.22809578478336334, -0.33593541383743286, -0.274477481842041, 0.025253333151340485, -0.13385961949825287, 0.3139728009700775, -0.1475001722574234, -0.1339821219444275, -0.1570846140384674, 0.060034316033124924, -0.06047588214278221, -0.04142867028713226, 0.31578248739242554, -0.3593461811542511, 0.19147896766662598, -0.25042372941970825, -0.009984958916902542, 0.16815197467803955, 0.2309768944978714, -0.2553587853908539, 0.12007611989974976, -0.21363304555416107, -0.2048167884349823, 0.3608439266681671, -0.3011220395565033, -0.6002123951911926, 0.0031671966426074505, -0.3776432275772095, 0.14168576896190643, -0.13925427198410034, 0.23765188455581665, 0.3605261445045471, -0.006960682105273008, -0.07340702414512634, 0.3193843364715576, -0.20232078433036804, -0.007075807079672813, -0.3626314401626587, -0.16564346849918365, -0.1414763331413269, 0.24229519069194794, 0.07888557016849518, -0.0042997077107429504, -0.03770608454942703, 0.024018585681915283, 0.2975076735019684, 0.31692928075790405, 0.06682584434747696, 0.27821600437164307, 0.14880608022212982, 0.30361127853393555, -0.05026673153042793, -0.26828423142433167, -0.2213939130306244, 0.16412660479545593, 0.5927705764770508, 0.15148556232452393, -0.20555727183818817, 0.05566283315420151, -0.3700692057609558, 0.006408268585801125, -0.09687776863574982, -0.0029630810022354126, 0.03815751522779465, 0.25066059827804565, 0.28698742389678955, 0.26379358768463135, -0.041552022099494934, 0.4684079587459564, -0.027948500588536263, 0.35502928495407104, -0.17943844199180603, 0.27232304215431213, -0.23262222111225128, -0.19060049951076508, 0.03465431183576584, -0.2605828642845154, 0.1190183162689209, -0.167292520403862, -0.13463091850280762, 0.37334445118904114, 0.016951337456703186, 0.058024946600198746, 0.12641757726669312, -0.11985443532466888, 0.22072705626487732, -0.10837079584598541, -0.15032777190208435, 0.2486800104379654, 0.11499384045600891, 0.10636430233716965, -0.1766045093536377, 0.10530147701501846, 0.1430359035730362, 0.20570538938045502, -0.19598348438739777, 0.10094187408685684, 0.15649856626987457, 0.04063200578093529, 0.0823943093419075, 0.026111304759979248, 0.4374152719974518, -0.36415597796440125, 0.04069061949849129, -0.18059849739074707, -0.007135018706321716, 0.3008772134780884, 0.41096311807632446, 0.031015653163194656, -0.18276339769363403, 0.177004873752594, 0.19709622859954834, -0.08961185067892075, -0.031726911664009094, 0.4135083258152008, 0.42537468671798706, 0.2163388729095459, 0.03854270651936531, 0.0027150772511959076, -0.1771414875984192, -0.08919394761323929, 0.16673077642917633, 0.0989227220416069, 0.18165171146392822, 0.09494531899690628, -0.018994582816958427, -0.006782527081668377, -0.08405259251594543, -0.5713556408882141, 0.07940942049026489, 0.4571003019809723, -0.08922789990901947, -0.1376039981842041, -0.1908154934644699, -0.09587986022233963, 0.16836965084075928, 0.01601715385913849, -0.47508352994918823, -0.5786944031715393, -0.06760936975479126, 0.45299285650253296, -0.05249267444014549, 0.059647656977176666, -0.22329816222190857, -0.10371814668178558, 0.3926711976528168, -0.07365167140960693, 0.04453171789646149, -0.2548271417617798, 0.01255703903734684, 0.0856885313987732, 0.22305798530578613, -0.1910487413406372, 0.28095245361328125, -0.330502986907959, -0.20998017489910126, -0.4389464259147644, -0.04391081631183624, 0.115676648914814, -0.2164088636636734, 0.3292769193649292, -0.12317045032978058, 0.5877864956855774, 0.09310999512672424, 0.043649204075336456, 0.20465417206287384, -0.3436300754547119, -0.07767825573682785, -0.05620448663830757, 0.07132568210363388, 0.14509990811347961, 0.05986340716481209, -0.2994946241378784, -0.23018552362918854, -0.4278171956539154, 0.17403700947761536, -0.047938376665115356, 0.09083060920238495, 0.27947476506233215, 0.20593920350074768, 0.0834493562579155, -0.2537418007850647, 0.16921451687812805, -0.12587785720825195, -0.5617027878761292, 0.43278226256370544, -0.11775349080562592, -0.26366421580314636, 0.09965024888515472, 0.3058507442474365, -0.02062224969267845, 0.1772887259721756, -0.6788045167922974, -0.0035093221813440323, -0.23689939081668854, 0.3396565914154053, -0.20226365327835083, -0.18313895165920258, 0.3164770305156708, -0.4094330668449402, -0.10017021000385284, 0.02282184362411499, 0.10978873074054718, -0.011162765324115753, 0.15578174591064453, 0.4228839874267578, -0.06754416227340698, 0.3687634766101837, -0.011091001331806183, 0.3627910614013672, 0.06473129987716675, 0.02539224363863468, 0.03629518300294876, 0.025707466527819633, 0.3557801842689514, 0.04851090908050537, -0.35963037610054016, -0.028046272695064545, -0.011042535305023193, -0.13521085679531097, 0.1352459341287613, 0.02592260017991066, -0.09346149861812592, -0.27181386947631836, -0.08471373468637466, -0.22871193289756775, -0.31633448600769043, -0.0509188249707222, -0.16039840877056122, -0.076590396463871, 0.2381768524646759, 0.16662245988845825, -0.025307506322860718, -0.2131287157535553, -0.09033776819705963, 0.10653405636548996, -0.04342309385538101, -0.15332837402820587, -0.6302167773246765, 0.24682098627090454, -0.40786343812942505, 0.17283913493156433, -0.04849988967180252, 0.23849862813949585, -0.1775382161140442, 0.05931197106838226, 0.16680917143821716, -0.014791145920753479, 0.5320878624916077, -0.11836423724889755, -0.0065427981317043304, -0.041288282722234726, 0.24391210079193115, -0.46841198205947876, -0.03199472278356552, -0.017959870398044586, 0.268428236246109, 0.39099693298339844, 0.10171830654144287, -0.357145220041275, -0.05600154399871826, 0.13744577765464783, 0.20310689508914948, 0.10297530889511108, -0.3991026282310486, 0.07029567658901215, -0.22523730993270874, -0.30887794494628906, 0.16597864031791687, -0.09102091938257217, 0.16003605723381042, -0.044116534292697906, -0.08620233833789825, 0.306735634803772, 0.20419099926948547, 0.002622649073600769, -0.13273726403713226, 0.14016082882881165, -0.2742888331413269, 0.5147089958190918, 0.14738141000270844, -0.257000207901001, 0.5399026870727539, 0.6204404234886169, 0.1855616718530655, -0.524699330329895, -0.002777310088276863, -0.14131711423397064, -0.1575634777545929, 0.26584482192993164, 0.14141827821731567, -0.05646180361509323, -0.18306636810302734, 0.44920146465301514, 0.14713165163993835, 0.22451815009117126, 0.3479784429073334, 0.11220617592334747, -0.38463395833969116, -0.3544842600822449, -0.05181000381708145, 0.0050301458686590195, 0.009807124733924866, 0.6732219457626343, 0.022505678236484528, 0.06050039082765579, 0.24745632708072662, -0.04981578141450882, 1.1006947755813599, -0.16920289397239685, 0.16915734112262726, 0.11339046061038971, -0.13073685765266418, 0.5093159079551697, -0.22138960659503937, 0.0868215337395668, -0.13670018315315247, -0.1483265459537506, 0.0517302006483078, -0.09472814202308655, 0.07300066947937012, 0.1920664757490158, -0.24308328330516815, 0.07075370848178864, -0.15469595789909363, 0.1884453147649765, -0.08833830803632736, 0.13805194199085236, -0.38577520847320557, -0.0779629796743393, -0.13968756794929504, 0.22573143243789673, -0.07525189220905304, 0.2690754532814026, 0.020674429833889008, 0.08688420802354813, -0.23986154794692993, -0.02029845118522644, -0.5047804713249207, 0.09388136863708496, -0.09315179288387299, -0.02741922438144684, -0.44384661316871643, -0.1559702754020691, -0.1467038094997406, 0.2542881369590759, 0.000052094459533691406, 0.19283729791641235, -0.054990872740745544, 0.216949924826622, -0.1297849714756012, -0.09639625251293182, 0.08180935680866241, -0.23730888962745667, 0.1440311223268509, -0.01934475265443325, -0.4969240128993988, 0.2323327362537384, -0.07160992175340652, -0.3198162317276001, 0.1333940625190735, 0.10870324075222015, 0.09351083636283875, -0.12855438888072968, 0.06633749604225159, -0.11900606751441956, 0.04057404026389122, -0.3209662139415741, 0.14663617312908173, 0.29859358072280884, -0.004611453041434288, 0.2261171042919159, -0.08617685735225677, -0.3036794364452362, -0.3014824688434601, 0.3936607837677002, -0.0082368403673172, -0.005000583827495575, 0.25960445404052734, 0.2101563960313797, -0.3978387117385864, -0.28301358222961426, 0.30688121914863586, -0.43838468194007874, -0.39199405908584595, 0.04347000643610954, -0.5033015012741089, 0.3654736876487732, -0.09443019330501556, -0.19628775119781494, 0.2207842618227005, 0.05005687475204468, 0.10578477382659912, -0.6435927152633667, -0.11272457987070084, -0.04417705535888672, -0.08755508065223694, 0.01522647961974144, -0.04378340393304825, -0.20115888118743896, 0.0685490295290947, -0.0929153561592102, -0.322184681892395, 0.038775406777858734, -0.2956767976284027, 0.10022935271263123, 0.40345245599746704, -0.16868343949317932, 0.4216534197330475, -0.20364265143871307, 0.09216190874576569, 0.10771284252405167, -0.16321758925914764, -0.14575400948524475, 0.030068468302488327, 0.13978922367095947, -0.02788112312555313, -0.2190433293581009, 0.12645594775676727, -0.4023294448852539, -0.1240626871585846, 0.06712938845157623, -0.05849380046129227, 0.1805599331855774, 0.008278816938400269, -0.2347153127193451, 0.18872949481010437, 0.0936194658279419, -0.057582467794418335, 0.18962135910987854, -0.07697141170501709, 0.4825533628463745, 0.18688321113586426, 0.372039258480072, 0.02322637103497982, -0.03626374900341034, -0.431880384683609, 0.07049714028835297, -0.07952900230884552, 0.04783156141638756, 0.5599259734153748, -0.2862209677696228, 0.0592891089618206, 0.32813528180122375, 0.5346977710723877, 0.5222041606903076, -0.0060016559436917305, -0.12287354469299316, 0.34135282039642334, 0.2643197476863861, 0.02886471152305603, -0.13236884772777557, 0.4328158497810364, 0.05642582103610039, 0.05382411554455757, 0.17363564670085907, -0.23051363229751587, -0.07263810932636261, 0.16653579473495483, 0.1727386713027954, 0.826609194278717, 0.13318520784378052, 0.17183180153369904, 0.2565767765045166, -0.11357803642749786, -0.0658830851316452, 0.4332054853439331, 0.2657810151576996, -0.002129681408405304, 0.1296420693397522, -0.28969430923461914, -0.024360360577702522, -0.02748853713274002, 0.1395934671163559, -0.027297034859657288, -0.31275367736816406, 0.07777922600507736, 0.14004391431808472, -0.13530004024505615, -0.12187886983156204, 0.0924040675163269, 0.1922762542963028, -0.20829856395721436, -0.16518618166446686, -0.10201797634363174, 0.3825673460960388, 0.0385681614279747, 0.35449638962745667, 0.0017302073538303375, -0.174524188041687, -0.17433014512062073, 0.022015303373336792, 0.09646856784820557, -0.2946988344192505, 0.30901408195495605, 0.25082695484161377, 0.04745480418205261, -0.713967502117157, -0.14182215929031372, -0.06749188899993896, 0.1310347020626068, -0.49036550521850586, 0.1432160586118698, 0.053458478301763535, -0.1623411923646927, -0.022211462259292603, 0.30722784996032715, 0.5712032318115234, 0.12553444504737854, 0.1071019172668457, 0.2486964762210846, -0.08511130511760712, -0.03662848472595215, 0.043594442307949066, 0.3503605127334595, 0.06011511757969856, 0.024383515119552612, 0.3931982219219208, 0.14803370833396912, -0.24035607278347015, 0.1648116409778595, 0.1535256952047348, 0.23814448714256287, -0.21554401516914368, -0.1856289803981781, 0.025431061163544655, -0.1125083640217781, -0.214371919631958, -0.14877158403396606, -0.17262452840805054, -0.0003791879862546921, 0.34186238050460815, -0.28835898637771606, 0.009608704596757889, -0.2853539288043976, 0.09525184333324432, -0.16893234848976135, 0.21294288337230682, 0.5421624779701233, 0.18654948472976685, -0.09287043660879135, -0.20224043726921082, -0.4226512014865875, 0.18455007672309875, -0.5492632985115051, -0.3295218348503113, -0.18507488071918488, 0.3340441882610321, 0.17402175068855286, 0.4482899308204651, 0.4680609107017517, -0.09045962989330292, -0.23687516152858734, 0.39941728115081787, -0.36043640971183777, -0.3117971420288086, 0.07566848397254944, 0.05952884256839752, 0.08115079998970032, -0.20639434456825256, 0.244795560836792, -0.24209541082382202, 0.04375593364238739, -0.061561331152915955, -0.20383906364440918, 0.13012075424194336, -0.27159908413887024, 0.33235031366348267, 0.037063609808683395, 0.3929247558116913, 0.19937485456466675, -0.4113178253173828, -0.3911921977996826, -0.284771203994751, -0.08752565830945969, 0.11739274859428406, 0.16523459553718567, 0.4006870985031128, -0.3302830755710602, -0.19969916343688965, -0.21204808354377747, 0.3072326183319092, -0.1407974362373352, -0.2316659539937973, 0.15351101756095886, -0.24092741310596466, 0.1307958960533142, 0.26888686418533325, -0.03648712858557701, 0.01196732372045517, -0.008522741496562958, 0.1623503863811493, -0.2913174629211426, -0.20299489796161652, 0.3976859152317047, 0.038588378578424454, -0.24755465984344482, -0.0036510019563138485, 0.11979922652244568, 0.09906378388404846, -0.1700860857963562, -0.2421630322933197, 0.0882805660367012, 0.3698869049549103, -0.07661927491426468, -0.256271630525589, 0.09859581291675568, -0.012700151652097702, 0.14159941673278809, 0.0295899398624897, 0.34849247336387634, -0.026365194469690323, -0.338476300239563, 0.3663102388381958, -0.04252808541059494 ]
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.30950188636779785, -0.15040159225463867, -0.12485222518444061, 0.16719189286231995, 0.0626932755112648, 0.23221686482429504, 0.04524654895067215, 0.2481844425201416, 0.02084938809275627, -0.06715616583824158, -0.07025250792503357, 0.16330277919769287, 0.2610349655151367, -0.1121932715177536, -0.1331472247838974, 0.20495694875717163, 0.06651314347982407, -0.22189173102378845, -0.09560158848762512, 0.12066254019737244, -0.0917951762676239, 0.15939126908779144, -0.12834422290325165, -0.11982642114162445, -0.1411834955215454, -0.12013634294271469, -0.13452476263046265, -0.030577294528484344, -0.20299032330513, -0.30591145157814026, 0.22046975791454315, 0.11682809889316559, -0.029211614280939102, 0.643652617931366, -0.00010986373672494665, -0.14217400550842285, 0.2654626667499542, 0.05247430503368378, -0.44099852442741394, -0.510864794254303, -0.26191607117652893, -0.12985332310199738, 0.05907244235277176, -0.031244881451129913, 0.21319890022277832, 0.08362279832363129, 0.1228470429778099, -0.3912440836429596, 0.21179699897766113, 0.48872604966163635, 0.18866246938705444, 0.3496263921260834, 0.21791957318782806, -0.01729835756123066, 0.1792488992214203, 0.07283402979373932, 0.07802001386880875, 0.3980517089366913, 0.18222388625144958, -0.14137136936187744, 0.1812852919101715, 0.021810662001371384, -0.11292924731969833, 0.2673592269420624, -0.11714527755975723, -0.00047694239765405655, 0.14536386728286743, -0.46852442622184753, -0.021649159491062164, 0.12692591547966003, 0.9099084138870239, -0.018525153398513794, -0.4328916370868683, -0.17541520297527313, 0.05276397615671158, 0.08158957958221436, 0.45599451661109924, 0.4742855429649353, -0.3605516254901886, 0.20565049350261688, -0.25973135232925415, -0.0197784174233675, -0.072932668030262, 0.3834024667739868, 0.09014441072940826, 0.047661010175943375, 0.07351231575012207, 0.23175862431526184, 0.09986437857151031, -0.049264729022979736, 0.25353720784187317, -0.36951613426208496, 0.008993774652481079, -0.026194054633378983, -0.32412225008010864, -0.10761989653110504, 0.002049274742603302, 0.15238377451896667, 0.12264148145914078, 0.014424804598093033, -0.0172269269824028, -0.2915511727333069, -0.21474799513816833, 0.17971348762512207, 0.4288497269153595, 0.0015063723549246788, -0.03489358723163605, 0.13497097790241241, 0.2598971426486969, -0.026088790968060493, -0.019368108361959457, 0.08101224899291992, 0.11838398873806, 0.008971466682851315, 0.0835823267698288, -0.13307172060012817, 0.399325966835022, -0.20176728069782257, -0.2572392225265503, -0.028891898691654205, 0.04334693402051926, -0.11790300905704498, -0.22799989581108093, 0.15836206078529358, -0.49066951870918274, 0.20886307954788208, 0.07936529070138931, 0.13702304661273956, -0.3628247380256653, -0.35983970761299133, -0.04341023415327072, 0.11027321219444275, -0.16389548778533936, -0.1707218736410141, -0.059338752180337906, -0.11054728925228119, 0.05114094913005829, 0.12252888828516006, -0.015533819794654846, -0.3069617450237274, -0.07150594890117645, -0.17626971006393433, -0.12453334778547287, 0.23968076705932617, -0.11462758481502533, 0.4079989194869995, 0.1003963053226471, 0.11692720651626587, -0.08203327655792236, 0.03897062689065933, -0.33031219244003296, -0.3403409719467163, -0.12724247574806213, 0.23742058873176575, -0.2133951038122177, -0.30396372079849243, -0.12505361437797546, -0.11042419075965881, 0.25411733984947205, 0.03372368589043617, -0.0793851986527443, -0.09632210433483124, 0.016609806567430496, -0.0846724659204483, -0.15747006237506866, 0.3429018259048462, -0.5084062814712524, 0.3213292956352234, -0.19658268988132477, 0.10419882833957672, 0.18169499933719635, 0.3182145655155182, -0.14965026080608368, 0.09354595094919205, -0.2771325707435608, -0.12049587070941925, 0.2729811370372772, -0.253272145986557, -0.6182511448860168, 0.08208843320608139, -0.3610650897026062, 0.0075526367872953415, -0.08650579303503036, 0.28500866889953613, 0.2797894775867462, -0.13807784020900726, -0.013209007680416107, 0.37522637844085693, -0.21721379458904266, 0.07250908017158508, -0.34901824593544006, -0.18471303582191467, -0.021370023488998413, 0.1756250411272049, -0.018751081079244614, -0.0033905282616615295, -0.14307764172554016, -0.03358116000890732, 0.3587707579135895, 0.3870674669742584, 0.14833447337150574, 0.32162487506866455, 0.024383466690778732, 0.27837830781936646, 0.053457047790288925, -0.20245453715324402, -0.33105966448783875, 0.1612716019153595, 0.5941165685653687, 0.13957840204238892, -0.27064651250839233, 0.0003419555723667145, -0.42841973900794983, 0.08667565137147903, -0.021327953785657883, 0.057129546999931335, 0.018307991325855255, 0.18153873085975647, 0.2960194945335388, 0.24787496030330658, -0.011509738862514496, 0.4557388722896576, -0.05790337175130844, 0.2721841037273407, -0.21146260201931, 0.2506326138973236, -0.21679039299488068, -0.12029357254505157, 0.15606948733329773, -0.35092753171920776, 0.08366703987121582, -0.22689539194107056, -0.21996325254440308, 0.3265953063964844, 0.04389198124408722, 0.11968463659286499, 0.024989956989884377, -0.05961918830871582, 0.22248989343643188, -0.20030300319194794, -0.13457238674163818, 0.4064631164073944, 0.13302496075630188, 0.09982288628816605, -0.2701018750667572, -0.019689828157424927, 0.2064271867275238, 0.22666165232658386, -0.18627305328845978, 0.11162545531988144, 0.09089574217796326, 0.0398535318672657, 0.20472918450832367, -0.04703948646783829, 0.41677209734916687, -0.36399611830711365, 0.05356159433722496, -0.2369758039712906, 0.02568100392818451, 0.3321647047996521, 0.35107502341270447, 0.07033364474773407, -0.18286433815956116, 0.2540562152862549, 0.1528061479330063, -0.13090814650058746, -0.07354088872671127, 0.34772053360939026, 0.26383137702941895, 0.17640945315361023, 0.16167500615119934, -0.12413198500871658, -0.11382761597633362, -0.1220456063747406, 0.1897411346435547, 0.12620516121387482, -0.04369819536805153, -0.01828760653734207, 0.1533735990524292, -0.016834639012813568, -0.1188560277223587, -0.45933035016059875, 0.07277487218379974, 0.40721094608306885, -0.08155811578035355, 0.07310400158166885, -0.2246207594871521, -0.14916092157363892, 0.19985082745552063, -0.05778953805565834, -0.3491252362728119, -0.544754147529602, -0.05164434760808945, 0.3656090795993805, -0.09032729268074036, 0.040689557790756226, -0.08465668559074402, -0.11737342178821564, 0.45727574825286865, -0.15805339813232422, -0.010764282196760178, -0.13319231569766998, -0.04783172160387039, 0.07347258925437927, 0.24265526235103607, -0.19466081261634827, 0.3340426981449127, -0.29362162947654724, -0.2266918420791626, -0.530572772026062, -0.018987085670232773, 0.01683136075735092, -0.17067386209964752, 0.2737126052379608, -0.1221015602350235, 0.5325043201446533, 0.058219701051712036, 0.08580347150564194, 0.08696428686380386, -0.2566452920436859, -0.12342469394207001, -0.0716625303030014, 0.05918729677796364, 0.17489834129810333, -0.010141130536794662, -0.38688409328460693, -0.19185154139995575, -0.4045591950416565, 0.1063610166311264, -0.14773736894130707, 0.021679580211639404, 0.10280538350343704, 0.18359148502349854, 0.02435128390789032, 0.033116329461336136, 0.14114165306091309, -0.1265152394771576, -0.4522259533405304, 0.4309334456920624, -0.06647028028964996, -0.2162594348192215, 0.10431782901287079, 0.22563908994197845, -0.049826886504888535, 0.2152751386165619, -0.751448392868042, -0.014528047293424606, -0.2783271074295044, 0.26973140239715576, -0.17531715333461761, -0.18971635401248932, 0.21623773872852325, -0.4299246072769165, -0.08695769309997559, 0.04756550490856171, 0.03490870073437691, -0.05925501137971878, 0.19913983345031738, 0.3676378130912781, -0.07874792069196701, 0.3557339310646057, -0.012954341247677803, 0.19981834292411804, 0.11844359338283539, 0.04964952543377876, 0.1700468510389328, 0.16907522082328796, 0.27958640456199646, 0.012159980833530426, -0.23396801948547363, -0.058516599237918854, -0.0014457851648330688, -0.23477502167224884, 0.12525008618831635, 0.045606307685375214, -0.18916761875152588, -0.15274307131767273, -0.06853484362363815, -0.28826314210891724, -0.24390839040279388, -0.0603175014257431, -0.1026761382818222, 0.017027974128723145, 0.2532617151737213, 0.09908940643072128, 0.011423422023653984, -0.2779012620449066, -0.07806988060474396, 0.10833799093961716, -0.03954688459634781, -0.18683195114135742, -0.4770651161670685, 0.0852850154042244, -0.3877302408218384, 0.2447301596403122, -0.0003022169694304466, 0.2891823649406433, -0.039619192481040955, 0.11813262850046158, 0.17264816164970398, -0.03415738046169281, 0.646354615688324, -0.15884029865264893, 0.16286104917526245, -0.03755570203065872, 0.2864975929260254, -0.45133188366889954, -0.05551803857088089, 0.054759617894887924, 0.3185354471206665, 0.5014480948448181, -0.0028700977563858032, -0.26230308413505554, 0.01884937472641468, 0.10093539953231812, 0.29595696926116943, 0.05386507138609886, -0.4968964159488678, 0.07955385744571686, -0.2046012580394745, -0.262345552444458, 0.126302570104599, 0.10915925353765488, 0.06863542646169662, 0.03508768975734711, -0.10384834557771683, 0.2448902577161789, 0.0855245366692543, 0.05204252526164055, -0.17044560611248016, 0.1298331916332245, -0.24648217856884003, 0.4957835078239441, 0.04544671252369881, -0.20597639679908752, 0.36957159638404846, 0.6841813921928406, 0.16129951179027557, -0.462818443775177, 0.0990602895617485, -0.03221514821052551, -0.1157461479306221, 0.26436156034469604, 0.11724700033664703, -0.09795036166906357, -0.19942060112953186, 0.368955135345459, 0.020876333117485046, 0.15721599757671356, 0.27184152603149414, 0.08102364838123322, -0.4527800381183624, -0.4301770031452179, 0.11389455199241638, 0.03756486997008324, 0.028945915400981903, 0.6303072571754456, -0.0606512576341629, 0.11596827954053879, 0.341805636882782, -0.06494585424661636, 1.006021499633789, -0.22833408415317535, 0.10648085922002792, 0.04924646019935608, -0.0904071182012558, 0.48867323994636536, -0.4113645553588867, 0.07169005274772644, -0.11770268529653549, 0.013557826168835163, 0.031149445101618767, -0.10909347236156464, -0.19180959463119507, 0.33547472953796387, -0.2478172779083252, 0.09340956807136536, -0.19122055172920227, 0.14505137503147125, -0.12412802875041962, 0.22345596551895142, -0.298900842666626, -0.020694516599178314, -0.19916996359825134, 0.22473746538162231, -0.019831903278827667, 0.25062310695648193, -0.010072559118270874, 0.209699809551239, -0.14631213247776031, -0.0804261788725853, -0.620814859867096, 0.04532656818628311, -0.019543755799531937, 0.031674277037382126, -0.36558064818382263, -0.19742238521575928, -0.0437818318605423, 0.23668739199638367, 0.14167164266109467, 0.22418175637722015, -0.016339128836989403, 0.23414239287376404, -0.10627073794603348, -0.15974542498588562, -0.0008499810937792063, -0.14969868957996368, 0.14449629187583923, 0.0135769322514534, -0.2735597491264343, 0.21436646580696106, -0.10918176174163818, -0.22397558391094208, 0.21205854415893555, 0.23895263671875, 0.0794457197189331, -0.136566162109375, 0.0419682040810585, -0.10806946456432343, 0.1240827888250351, -0.239519402384758, 0.1314409226179123, 0.3121674656867981, 0.1640818566083908, 0.24928036332130432, -0.12059347331523895, -0.35495737195014954, -0.3437146246433258, 0.4136878550052643, 0.05358409136533737, -0.0073900166898965836, 0.3306724727153778, 0.31287485361099243, -0.40307265520095825, -0.30925601720809937, 0.09240748733282089, -0.5343810319900513, -0.3205620050430298, 0.3328480124473572, -0.41576096415519714, 0.3471696376800537, -0.06278830766677856, -0.13781815767288208, 0.20301614701747894, 0.10542167723178864, 0.12336127460002899, -0.6414017677307129, -0.06478775292634964, -0.0836535394191742, -0.20539036393165588, 0.024056490510702133, -0.14605726301670074, -0.19977228343486786, 0.11275744438171387, -0.1422034353017807, -0.2951272130012512, 0.048470765352249146, -0.27459844946861267, 0.09585710614919662, 0.3683101236820221, -0.09025364369153976, 0.41971999406814575, -0.06238733232021332, 0.08878146857023239, 0.10033653676509857, -0.13114121556282043, -0.14709995687007904, 0.016452647745609283, 0.13901111483573914, -0.07666850090026855, -0.1915551871061325, 0.10974240303039551, -0.5065023303031921, -0.08023852109909058, 0.09775131940841675, -0.09535011649131775, 0.13450229167938232, 0.01786775141954422, -0.25707563757896423, 0.17757335305213928, -0.028510361909866333, 0.04426804929971695, 0.22218181192874908, -0.10416314005851746, 0.5471837520599365, 0.196433424949646, 0.2797548174858093, 0.1488572061061859, 0.014890439808368683, -0.5414076447486877, -0.0015545636415481567, -0.09194628894329071, 0.05436112731695175, 0.38109177350997925, -0.31146347522735596, 0.07288330793380737, 0.3426952660083771, 0.4172760248184204, 0.5035350918769836, -0.0343138687312603, -0.1695256531238556, 0.2993571162223816, 0.27286258339881897, 0.06184012442827225, -0.16161783039569855, 0.3489341139793396, 0.08642971515655518, -0.00927358865737915, 0.18481895327568054, -0.10443790256977081, -0.05870157480239868, 0.18565216660499573, 0.23900002241134644, 0.7759048938751221, 0.051462385803461075, 0.1726844310760498, 0.09578412771224976, 0.0030998997390270233, -0.019300471991300583, 0.3979816138744354, 0.19761721789836884, 0.06593991816043854, 0.0808461382985115, -0.13156527280807495, -0.08376647531986237, 0.11718374490737915, 0.1486094743013382, -0.062639020383358, -0.3323947787284851, 0.03463125601410866, 0.10821064561605453, -0.16549864411354065, -0.008060738444328308, 0.20526230335235596, 0.07910387963056564, -0.2886401116847992, -0.06635752320289612, -0.20516467094421387, 0.2875986695289612, 0.04689352959394455, 0.2713528871536255, 0.19861862063407898, -0.14608873426914215, -0.0298798605799675, 0.11951413750648499, -0.004730094224214554, -0.2354210764169693, 0.23226460814476013, 0.23635177314281464, 0.10513218492269516, -0.586502730846405, -0.04479774087667465, -0.1485784947872162, 0.19001996517181396, -0.47240036725997925, 0.02667512558400631, 0.029153168201446533, -0.2448449730873108, 0.009969431906938553, 0.25746726989746094, 0.5680679082870483, 0.2143838256597519, -0.053900811821222305, 0.12236085534095764, -0.1421373039484024, -0.059241317212581635, -0.01381466630846262, 0.405974805355072, 0.00000486522912979126, -0.07878348231315613, 0.45213204622268677, 0.12278623878955841, -0.20824719965457916, 0.1654384434223175, 0.10538789629936218, 0.2668377161026001, -0.18396031856536865, -0.16742107272148132, -0.03026718646287918, -0.07025929540395737, -0.3013976812362671, -0.2018900215625763, -0.18861675262451172, -0.050456706434488297, 0.39659547805786133, -0.3332303762435913, -0.0050682807341217995, -0.19033631682395935, 0.09333423525094986, -0.1705901175737381, 0.31207075715065, 0.6364371180534363, 0.2870884835720062, -0.1428946554660797, -0.297039270401001, -0.38844358921051025, 0.15406879782676697, -0.5896970629692078, -0.19353055953979492, -0.20761935412883759, 0.4632064402103424, 0.08989334851503372, 0.3273729085922241, 0.42164039611816406, 0.051593463867902756, -0.40947893261909485, 0.4779762923717499, -0.3611396551132202, -0.39322662353515625, 0.041868746280670166, 0.07663214206695557, 0.046063072979450226, -0.26485592126846313, 0.11915738135576248, -0.2247229516506195, -0.0011501498520374298, -0.19988375902175903, -0.18519441783428192, 0.15244877338409424, -0.045104943215847015, 0.4760361313819885, 0.08967258781194687, 0.3005131483078003, 0.19711190462112427, -0.5851706266403198, -0.47406286001205444, -0.28019434213638306, -0.07047270238399506, 0.09131287038326263, 0.0888688713312149, 0.4465160667896271, -0.42782309651374817, -0.0006208568811416626, -0.1412665694952011, 0.19986537098884583, -0.16423985362052917, -0.20477379858493805, 0.15257278084754944, -0.18962620198726654, -0.04118727147579193, 0.4074382781982422, -0.038551826030015945, 0.09420205652713776, 0.07150564342737198, 0.19402767717838287, -0.28737694025039673, -0.3336481750011444, 0.3049742579460144, 0.019307881593704224, -0.3906155526638031, 0.055961016565561295, 0.10587484389543533, 0.0637909397482872, -0.010458193719387054, -0.2375224232673645, 0.10773489624261856, 0.43975314497947693, -0.03338935598731041, -0.24934956431388855, 0.10372492671012878, -0.007916999980807304, 0.17052701115608215, -0.01695464923977852, 0.5145736932754517, 0.01773102395236492, -0.3262770473957062, 0.38464412093162537, -0.11361344158649445 ]