html_url
stringlengths 48
51
| title
stringlengths 5
268
| comment
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
listlengths 768
768
|
|---|---|---|---|---|---|---|
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.15531973540782928,
-0.1002308651804924,
-0.07032092660665512,
-0.07981617003679276,
-0.10425446182489395,
-0.18798765540122986,
0.010402891784906387,
0.2728636562824249,
-0.00984908640384674,
-0.08414012938737869,
0.29261478781700134,
-0.07787508517503738,
-0.13245657086372375,
0.21589013934135437,
-0.056228939443826675,
0.17054544389247894,
0.20032291114330292,
-0.04079766571521759,
-0.09233284741640091,
0.027923069894313812,
0.022608669474720955,
-0.06870309263467789,
0.08319990336894989,
0.043630607426166534,
-0.18378335237503052,
0.005400923080742359,
-0.014811626635491848,
0.15649652481079102,
-0.43976572155952454,
-0.4695698022842407,
0.14524723589420319,
0.23224018514156342,
0.02510645240545273,
0.5705346465110779,
-0.00010436370939714834,
-0.0003457187849562615,
0.16948652267456055,
-0.04060114175081253,
-0.14010192453861237,
-0.21546320617198944,
-0.49010682106018066,
-0.4447953402996063,
-0.07006349414587021,
-0.008354744873940945,
0.12880702316761017,
0.05286799743771553,
-0.13250048458576202,
0.0238454882055521,
0.38484567403793335,
0.10555262118577957,
0.2386108934879303,
-0.10285184532403946,
0.18124067783355713,
0.013769826851785183,
0.39200904965400696,
0.5474529266357422,
-0.06663466989994049,
0.3032000958919525,
0.05401795729994774,
0.0006766861188225448,
0.061106160283088684,
0.17410808801651,
-0.08237243443727493,
-0.2866702079772949,
0.22701941430568695,
-0.1779913604259491,
0.5181736946105957,
-0.4243534803390503,
-0.24158358573913574,
-0.08311712741851807,
0.05237904191017151,
-0.17814642190933228,
-0.4089035987854004,
-0.24193596839904785,
-0.1499471664428711,
0.00763351283967495,
0.06778059899806976,
0.24686455726623535,
0.03974035009741783,
0.0036495926324278116,
-0.3773651123046875,
-0.2718093693256378,
-0.004408000037074089,
0.04920420050621033,
0.14194121956825256,
-0.1626288741827011,
0.06642638146877289,
-0.12703824043273926,
0.2942221462726593,
-0.047327931970357895,
-0.14698342978954315,
-0.36763426661491394,
-0.24133388698101044,
-0.012587102130055428,
-0.10261385887861252,
-0.19574721157550812,
-0.24620725214481354,
-0.32482749223709106,
0.4251306653022766,
0.3889678716659546,
-0.38327327370643616,
0.013740005902945995,
-0.0304893646389246,
-0.08101623505353928,
0.20718440413475037,
0.11785796284675598,
-0.01048989500850439,
0.058488957583904266,
0.5307136178016663,
0.31444051861763,
0.005158144515007734,
0.3255856931209564,
0.30156955122947693,
0.0030475857201963663,
0.03444691374897957,
0.5741186141967773,
0.42894452810287476,
-0.2629207670688629,
0.1276474893093109,
0.19597388803958893,
-0.34120091795921326,
-0.3845082223415375,
0.07113084197044373,
-0.0861721783876419,
0.11032514274120331,
0.027132714167237282,
-0.11471130698919296,
0.06680179387331009,
0.04519052058458328,
-0.03808602690696716,
-0.30790308117866516,
-0.1414857655763626,
-0.3744000792503357,
-0.06853027641773224,
0.18604029715061188,
-0.45710432529449463,
0.14916755259037018,
0.43252453207969666,
-0.06803790479898453,
-0.19928522408008575,
0.04455225169658661,
0.12922529876232147,
0.055586449801921844,
0.29611989855766296,
-0.15379802882671356,
-0.4526284635066986,
0.2235964685678482,
0.13133293390274048,
-0.06689950078725815,
0.19400432705879211,
-0.15989989042282104,
-0.26162227988243103,
-0.10497664660215378,
0.2977658212184906,
-0.1482720971107483,
0.30715611577033997,
-0.5237663984298706,
0.03637252748012543,
-0.004483480472117662,
0.35067078471183777,
0.4910377562046051,
0.3025484085083008,
0.32807862758636475,
-0.16859406232833862,
0.0617574118077755,
0.1903453767299652,
0.32351189851760864,
-0.05168672278523445,
0.062304988503456116,
-0.2877363860607147,
0.1095045879483223,
0.14507398009300232,
-0.31215932965278625,
0.01755654253065586,
-0.005236064083874226,
-0.13128210604190826,
0.01077660545706749,
-0.07140649855136871,
-0.11198792606592178,
-0.09892943501472473,
-0.3666854500770569,
0.06940250843763351,
-0.04073735699057579,
-0.10077665001153946,
0.20795653760433197,
-0.3201749324798584,
-0.09479431807994843,
0.20508210361003876,
-0.14812292158603668,
0.02089829370379448,
-0.2919877767562866,
-0.606138288974762,
-0.16365627944469452,
-0.06343865394592285,
0.12491481751203537,
0.22756394743919373,
0.36076995730400085,
-0.005031048785895109,
-0.02836156263947487,
-0.17140212655067444,
-0.009397837333381176,
0.11250702291727066,
0.34213680028915405,
-0.14967824518680573,
-0.24154196679592133,
0.13224650919437408,
-0.3545883595943451,
0.09114079177379608,
-0.07851307094097137,
-0.009775295853614807,
0.034448910504579544,
-0.3157886564731598,
0.34127944707870483,
-0.0440533347427845,
-0.12080159783363342,
-0.1141509860754013,
0.24151724576950073,
0.09595154225826263,
-0.17473335564136505,
-0.20392122864723206,
-0.2074061930179596,
0.2601916193962097,
-0.24083100259304047,
0.30186572670936584,
0.13001346588134766,
0.10263756662607193,
-0.14118121564388275,
-0.036453526467084885,
-0.025096531957387924,
0.36193639039993286,
0.2363048493862152,
-0.08991739153862,
-0.05915878340601921,
0.16876089572906494,
-0.04906293377280235,
0.20357103645801544,
0.22469498217105865,
0.42524170875549316,
0.37361544370651245,
-0.10268162935972214,
0.0626007467508316,
-0.09179318696260452,
-0.07872455567121506,
0.024594129994511604,
-0.32912692427635193,
0.3280372619628906,
0.07369408756494522,
-0.1394646018743515,
-0.17403186857700348,
-0.10333304852247238,
-0.1740741729736328,
-0.22026953101158142,
-0.17077204585075378,
-0.012950659729540348,
-0.16909819841384888,
0.19436496496200562,
-0.3365916907787323,
0.22236937284469604,
-0.2772085964679718,
0.14857828617095947,
0.015052268281579018,
-0.2516063153743744,
-0.10240086168050766,
0.06829802691936493,
-0.005966885946691036,
-0.13271464407444,
0.12417072802782059,
0.377383291721344,
0.12787438929080963,
0.17009972035884857,
0.004273881204426289,
0.020151792094111443,
0.257283091545105,
-0.11643557250499725,
0.3533255159854889,
0.14430692791938782,
-0.10544465482234955,
0.05406458303332329,
0.336455762386322,
0.18121877312660217,
0.06433238834142685,
0.34692004323005676,
-0.003324499586597085,
0.03525839373469353,
-0.20840714871883392,
-0.045984454452991486,
-0.26021048426628113,
-0.5283414721488953,
0.21923710405826569,
-0.1106376051902771,
-0.35521602630615234,
-0.008503594435751438,
-0.04536627605557442,
0.04741789773106575,
-0.5248718857765198,
0.13602988421916962,
0.18358105421066284,
0.2905263900756836,
-0.3178030848503113,
-0.11997764557600021,
0.1263156533241272,
-0.022595206275582314,
0.01234422903507948,
0.12855996191501617,
0.36316022276878357,
-0.22668014466762543,
0.4594516158103943,
0.23898059129714966,
-0.1695568710565567,
-0.4726402163505554,
-0.3434128165245056,
0.0191300380975008,
-0.20393556356430054,
-0.1179749071598053,
0.009818796068429947,
-0.09893053025007248,
0.09215276688337326,
-0.35854077339172363,
-0.32571226358413696,
-0.018773382529616356,
-0.37300458550453186,
-0.16009610891342163,
0.06959540396928787,
0.06288556009531021,
-0.23461708426475525,
-0.11404042690992355,
-0.3865901231765747,
-0.2821527421474457,
0.47935590147972107,
-0.016433272510766983,
0.11565940082073212,
-0.043173566460609436,
-0.2923773527145386,
-0.045917950570583344,
0.08748225122690201,
0.1366395354270935,
-0.00004469808845897205,
-0.3609325885772705,
0.0325666218996048,
-0.040659911930561066,
-0.02934712916612625,
0.35260966420173645,
0.18549124896526337,
-0.4302403926849365,
0.07125116884708405,
-0.32176098227500916,
-0.15581844747066498,
-0.05208449438214302,
0.48644453287124634,
0.31411951780319214,
-0.09737364947795868,
0.07108019292354584,
0.10355080664157867,
-0.1919001042842865,
0.055089205503463745,
-0.1816115826368332,
0.14722397923469543,
0.34548813104629517,
0.2857188582420349,
0.037900131195783615,
0.14586718380451202,
0.02549722045660019,
0.7140876650810242,
0.37785011529922485,
-0.05965748801827431,
0.21033769845962524,
0.3106973469257355,
-0.027718493714928627,
0.0039906552992761135,
-0.26015692949295044,
0.06504672020673752,
-0.10124300420284271,
-0.000020719162421301007,
0.0867035835981369,
-0.12957845628261566,
-0.12296514213085175,
-0.011211237870156765,
-0.47771474719047546,
0.009155470877885818,
-0.4146764278411865,
-0.2396634966135025,
-0.31818392872810364,
0.18424977362155914,
-0.02252618409693241,
-0.4854891896247864,
0.13138088583946228,
0.053771425038576126,
0.23057617247104645,
0.2159716933965683,
0.21420592069625854,
0.18121571838855743,
-0.020259050652384758,
-0.051084935665130615,
-0.12007343769073486,
-0.0677260160446167,
-0.004331386648118496,
0.14525078237056732,
0.09058025479316711,
-0.1670401692390442,
0.031805768609046936,
0.06955049186944962,
0.3299906253814697,
-0.014868183992803097,
0.1402914971113205,
-0.17080676555633545,
-0.5094847083091736,
0.6086313724517822,
-0.3185938894748688,
0.13940247893333435,
0.2990984618663788,
0.5112258195877075,
0.43976372480392456,
-0.2954542338848114,
-0.19531682133674622,
0.20712296664714813,
0.03255590423941612,
0.1978360414505005,
0.17734992504119873,
0.14497695863246918,
0.2783074378967285,
-0.4903816878795624,
0.28877437114715576,
0.15483304858207703,
-0.2504822909832001,
-0.15517573058605194,
-0.003905670950189233,
-0.027050675824284554,
0.12646324932575226,
-0.026304658502340317,
-0.24539846181869507,
0.009127544239163399,
-0.10943787544965744,
0.17344562709331512,
0.13292011618614197,
0.06982813030481339,
0.41521939635276794,
0.5946586728096008,
0.13493414223194122,
-0.3891982436180115,
-0.0482017956674099,
-0.1750735342502594,
-0.07428350299596786,
0.32714328169822693,
0.19835078716278076,
0.24822814762592316,
0.02034880965948105,
0.17768685519695282,
-0.12347234040498734,
-0.2662383019924164,
-0.20336656272411346,
-0.03849127143621445,
-0.07674255967140198,
0.007589792367070913,
0.08732964098453522,
-0.045897603034973145,
-0.09099198132753372,
0.013048315420746803,
0.1399984061717987,
-0.3661000728607178,
0.16378472745418549,
0.618050217628479,
0.9825447201728821,
0.39756742119789124,
0.08903336524963379,
-0.25465741753578186,
-0.3273830711841583,
0.32599058747291565,
-0.3401077389717102,
-0.16645142436027527,
-0.24701723456382751,
-0.12358809262514114,
-0.1842459887266159,
-0.34031161665916443,
-0.0386943556368351,
-0.4898478090763092,
-0.35285627841949463,
0.13511325418949127,
-0.21805521845817566,
0.5279182195663452,
0.008177646435797215,
0.12338633090257645,
0.1910189539194107,
-0.12231427431106567,
0.2551511526107788,
0.1982705295085907,
0.06181073561310768,
0.10409564524888992,
-0.004027787130326033,
-0.46879035234451294,
-0.002231975318863988,
0.020538587123155594,
-0.37726959586143494,
0.08914711326360703,
-0.3437780737876892,
0.038846760988235474,
-0.2063533067703247,
-0.31605175137519836,
0.11582734435796738,
-0.08704760670661926,
0.6059408187866211,
0.16663070023059845,
-0.07945189625024796,
-0.04462076723575592,
0.29138901829719543,
0.46452468633651733,
-0.22885191440582275,
-0.21953071653842926,
0.5223726034164429,
-0.21336418390274048,
-0.13021786510944366,
-0.2047620415687561,
-0.08033473789691925,
-0.23709255456924438,
-0.26094692945480347,
-0.12804310023784637,
-0.3282323181629181,
0.07950219511985779,
0.04171394556760788,
0.26365360617637634,
-0.0910702794790268,
-0.16760627925395966,
0.1859932243824005,
0.11548584699630737,
-0.10757317394018173,
-0.11858434230089188,
-0.16952012479305267,
-0.26104018092155457,
-0.06781598180532455,
0.20160089433193207,
0.16160596907138824,
-0.12060700356960297,
-0.07676426321268082,
0.09965773671865463,
-0.2443370819091797,
-0.22078974545001984,
-0.2072921097278595,
0.10598744451999664,
-0.1394687443971634,
0.09298095852136612,
-0.5486781597137451,
-0.3299342095851898,
0.051746293902397156,
0.2461930513381958,
0.2794156074523926,
0.3304987847805023,
0.11800006777048111,
-0.09977079182863235,
-0.22444963455200195,
0.2186434119939804,
-0.3279258608818054,
0.1686493307352066,
0.02358476258814335,
0.15881159901618958,
-0.026009706780314445,
0.04043079540133476,
-0.3905957043170929,
0.16031542420387268,
-0.12548141181468964,
-0.02112666144967079,
-0.22552089393138885,
-0.10175278782844543,
-0.0006310474709607661,
-0.3081865608692169,
0.03248736262321472,
0.023433532565832138,
-0.19575634598731995,
-0.2830153703689575,
0.09266898036003113,
0.06569575518369675,
0.06478910893201828,
-0.057013917714357376,
-0.05746065825223923,
-0.10815796256065369,
0.0827532410621643,
0.27203258872032166,
0.23969238996505737,
-0.15849146246910095,
0.10971309244632721,
-0.03222464397549629,
0.17108863592147827,
0.11058492213487625,
-0.02477349527180195,
0.08924203366041183,
0.01463253516703844,
-0.2658020853996277,
-0.03537539765238762,
0.26716020703315735,
-0.18174591660499573,
-0.21714401245117188,
-0.26853927969932556,
0.18883471190929413,
0.10563407093286514,
0.5840901136398315,
0.2028803676366806,
0.14421677589416504,
-0.40508270263671875,
0.175408735871315,
-0.05319824069738388,
-0.0036357289645820856,
-0.1692354530096054,
-0.09694048017263412,
-0.0849621444940567,
0.27936044335365295,
-0.08671959489583969,
-0.30359718203544617,
0.2713833749294281,
0.18818144500255585,
0.0007482980145141482,
0.10497096925973892,
0.5280751585960388,
0.1296207308769226,
-0.18965329229831696,
0.4221358895301819,
0.2712428867816925,
-0.08767576515674591,
0.4948998689651489,
0.47023287415504456,
-0.11318212747573853,
-0.020325029268860817,
-0.0827360674738884,
0.11661466211080551,
0.2306870073080063,
-0.254096657037735,
0.12847205996513367,
0.29621922969818115,
0.6462967395782471,
-0.16888369619846344,
0.39355534315109253,
-0.03309621661901474,
0.3437395989894867,
0.19799353182315826,
0.058740053325891495,
-0.24604937434196472,
0.3927091360092163,
0.21170760691165924,
0.33015137910842896,
-0.6189892888069153,
0.13637341558933258,
0.4914034903049469,
0.049282822757959366,
0.19958175718784332,
-0.40010637044906616,
-0.04923272877931595,
-0.05847597494721413,
-0.04831400141119957,
-0.07818280160427094,
0.163496196269989,
0.1237371489405632,
0.2829667329788208,
0.0065843588672578335,
-0.08837797492742538,
-0.0434405654668808,
0.1850484311580658,
0.24156184494495392,
-0.11699796468019485,
-0.18117256462574005,
0.35775551199913025,
-0.27619805932044983,
0.06649328023195267,
0.2154608815908432,
0.1350686401128769,
-0.07471594959497452,
-0.0686337798833847,
0.18023493885993958,
0.45039471983909607,
-0.16993394494056702,
0.022511977702379227,
0.05574922636151314,
-0.16256769001483917,
0.15771664679050446,
0.0801469087600708,
0.2580326497554779,
-0.05334086716175079,
0.1128029003739357,
0.03542672470211983,
-0.41529738903045654,
-0.025322241708636284,
0.4330810606479645,
0.5564640760421753,
-0.337731271982193,
0.4601386785507202,
0.11926848441362381,
0.284700870513916,
-0.03268381953239441,
0.4374355673789978,
-0.047126419842243195,
0.11639248579740524,
-0.005153723992407322,
0.1430787593126297,
0.02808927185833454,
0.2575884759426117,
0.14149977266788483,
-0.033345114439725876,
-0.1592889428138733,
0.030106404796242714,
-0.12154112756252289,
0.12743553519248962,
0.2968400716781616,
0.17307069897651672,
0.419888973236084,
-0.2947141230106354,
0.1275683343410492,
0.12823458015918732,
-0.08756892383098602,
-0.3413962423801422,
0.00952207949012518,
0.09408511221408844,
-0.3605293035507202,
0.004247391130775213,
0.22248141467571259,
-0.06943961977958679,
-0.02419464662671089,
0.11893333494663239,
0.4094780385494232,
0.19279037415981293,
0.11209253966808319,
0.10513080656528473,
-0.04934794455766678,
0.3209437429904938,
-0.3918455243110657,
0.22496110200881958,
0.18922264873981476,
-0.10292938351631165,
-0.22188901901245117,
-0.051098328083753586,
0.0073671163991093636,
0.02128075435757637,
-0.43550872802734375,
-0.14018112421035767,
-0.16222603619098663,
0.4209837019443512,
-0.13559666275978088,
0.06829812377691269,
-0.37221798300743103,
0.0687672570347786,
-0.03713466599583626,
0.2683558166027069,
-0.30009913444519043,
0.08640830963850021,
0.05254780128598213,
0.01733780838549137,
0.0883706584572792,
0.13057978451251984,
0.06843439489603043,
0.2528505325317383,
-0.3523164391517639,
-0.12488967925310135,
0.3586621880531311,
-0.019469469785690308,
0.09103629738092422,
-0.21726974844932556,
0.41820475459098816,
0.46544599533081055,
-0.14808103442192078,
-0.33211442828178406,
-0.26351821422576904,
-0.011156358756124973,
-0.2798343300819397,
-0.5420888066291809,
0.29863765835762024,
0.1378679871559143,
0.19743874669075012,
-0.10587088763713837,
0.03660692647099495,
-0.07432687282562256,
-0.15276286005973816,
0.06117137148976326,
-0.19878646731376648
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.22893114387989044,
0.3834540545940399,
0.04034552723169327,
0.25504016876220703,
-0.012111579068005085,
0.2622572183609009,
0.503669023513794,
0.13295313715934753,
0.34428054094314575,
0.13571831583976746,
-0.10897517204284668,
0.07728414237499237,
0.07315033674240112,
-0.005698914173990488,
-0.12562324106693268,
0.07892745733261108,
0.03644514083862305,
-0.005388336721807718,
0.21494898200035095,
0.10395509749650955,
-0.4238829016685486,
0.10729581117630005,
-0.17285455763339996,
0.18611598014831543,
0.02609497681260109,
-0.13634221255779266,
0.12126001715660095,
0.360729455947876,
-0.030788900330662727,
-0.39220693707466125,
0.35302358865737915,
0.06345326453447342,
0.46391862630844116,
0.2582457363605499,
-0.00011924598220502958,
-0.013706213794648647,
0.2306840717792511,
0.12449946999549866,
-0.07372694462537766,
0.08709963411092758,
-0.18398486077785492,
-0.14096812903881073,
0.1652292013168335,
-0.09768719226121902,
0.17674359679222107,
0.3634910583496094,
-0.10213733464479446,
-0.2009294629096985,
-0.013041754253208637,
0.3790341913700104,
0.15730060636997223,
-0.03818458318710327,
-0.11867831647396088,
-0.07520420849323273,
0.4933356046676636,
-0.15929798781871796,
-0.13318006694316864,
0.27983781695365906,
0.07902494817972183,
-0.1145690307021141,
-0.09899087250232697,
0.19957318902015686,
-0.16214892268180847,
0.14715732634067535,
0.018657824024558067,
0.031129680573940277,
0.21623113751411438,
-0.45810940861701965,
0.3521413207054138,
0.15125828981399536,
0.9656503796577454,
-0.1955731064081192,
-0.19140426814556122,
-0.08874817937612534,
0.013303935527801514,
-0.033002614974975586,
0.43260377645492554,
0.42862409353256226,
-0.324568510055542,
0.2523707449436188,
0.06596963852643967,
0.08356558531522751,
-0.08255093544721603,
-0.0019089985871687531,
0.07128576189279556,
0.14865311980247498,
-0.05047062411904335,
0.11955638974905014,
-0.11473095417022705,
-0.08340095728635788,
0.386335164308548,
-0.2138274908065796,
-0.25460243225097656,
0.1916670799255371,
-0.33943647146224976,
0.2898698151111603,
0.05345281958580017,
0.7778053879737854,
0.15787771344184875,
0.3155296742916107,
0.12502335011959076,
-0.05405188351869583,
0.213624507188797,
0.06519035249948502,
0.008592531085014343,
0.32148998975753784,
-0.11223897337913513,
-0.016922693699598312,
0.4271062910556793,
0.11744201928377151,
-0.08161699026823044,
-0.008990559726953506,
-0.020046072080731392,
-0.42947378754615784,
0.35387977957725525,
0.10540735721588135,
0.40811842679977417,
-0.2856414318084717,
-0.12170089036226273,
-0.00029504569829441607,
0.15813201665878296,
-0.02397097274661064,
0.05888323485851288,
0.5011535286903381,
-0.27177220582962036,
0.04268322512507439,
0.06825149059295654,
0.1794445514678955,
0.018610527738928795,
0.09776178747415543,
-0.08779998868703842,
-0.08900274336338043,
-0.2667175829410553,
-0.05143898352980614,
0.40864694118499756,
-0.322576105594635,
0.0955653190612793,
0.25667646527290344,
0.027047500014305115,
-0.1792943924665451,
0.1918322592973709,
-0.041497521102428436,
-0.03285694494843483,
0.3576870262622833,
0.39729610085487366,
0.33763355016708374,
0.1749320775270462,
-0.21229620277881622,
-0.034995391964912415,
0.18631169199943542,
-0.4872901737689972,
-0.40250420570373535,
-0.03366478532552719,
0.12132807821035385,
-0.08332370966672897,
0.06320539116859436,
-0.19803689420223236,
-0.04825780540704727,
0.3823128640651703,
-0.3008546829223633,
-0.06183617189526558,
-0.013725628145039082,
-0.2206202894449234,
-0.5042760372161865,
0.040708258748054504,
0.4012884199619293,
-0.35969793796539307,
0.1303669959306717,
-0.09155311435461044,
-0.2640872895717621,
0.15043319761753082,
0.0056379144079983234,
0.005634539760649204,
0.36168214678764343,
-0.281220406293869,
0.015607540495693684,
0.27745887637138367,
-0.3938947916030884,
-1.0015968084335327,
-0.021003253757953644,
0.07310014963150024,
0.16604147851467133,
0.2444063425064087,
0.1191374883055687,
0.3659380376338959,
-0.030345462262630463,
0.17047584056854248,
0.3187125623226166,
0.1300753355026245,
0.11197467148303986,
-0.06299621611833572,
-0.2038554847240448,
0.27966073155403137,
0.13392609357833862,
0.08833899348974228,
0.3009033799171448,
0.31260010600090027,
-0.05693430453538895,
0.25109565258026123,
-0.18726123869419098,
0.11680460721254349,
0.19251590967178345,
0.011495920829474926,
-0.0351359024643898,
0.13751451671123505,
-0.12773805856704712,
-0.42040878534317017,
0.35144802927970886,
-0.008118398487567902,
0.08516685664653778,
0.075979083776474,
-0.20274308323860168,
-0.3184642195701599,
0.09134066104888916,
-0.5447555184364319,
-0.28899645805358887,
0.08510662615299225,
0.29389894008636475,
0.21242569386959076,
0.0236823707818985,
0.18916423618793488,
0.3374139666557312,
-0.20822682976722717,
0.12719590961933136,
-0.18114064633846283,
0.038606852293014526,
-0.18833814561367035,
-0.13644902408123016,
-0.21224795281887054,
0.04691566899418831,
0.20012833178043365,
0.2527480125427246,
-0.21343328058719635,
0.19610103964805603,
0.151213601231575,
0.03749880567193031,
-0.37855765223503113,
-0.05955677852034569,
-0.022377723827958107,
0.12172956764698029,
0.1568482220172882,
0.13817840814590454,
0.14832349121570587,
-0.04439409077167511,
-0.19221922755241394,
0.13775432109832764,
-0.15963469445705414,
0.1437312662601471,
-0.32665085792541504,
0.24303556978702545,
0.24470677971839905,
0.09005031734704971,
0.08569695055484772,
0.03445245698094368,
0.30547037720680237,
0.02411867305636406,
0.07459575682878494,
-0.28580382466316223,
0.101261667907238,
-0.07780910283327103,
0.05930330604314804,
0.022547775879502296,
0.0812823474407196,
0.24975351989269257,
-0.1746015101671219,
0.01688612997531891,
0.2869933843612671,
0.34967881441116333,
0.5377137660980225,
-0.04098669812083244,
0.05155038461089134,
0.06679745763540268,
0.047912392765283585,
0.08966916799545288,
0.11925192177295685,
0.0857710912823677,
-0.07022712379693985,
0.2634495496749878,
0.1284342259168625,
0.22416628897190094,
-0.06479810923337936,
-0.11386033147573471,
-0.1075412705540657,
0.41942936182022095,
-0.4875134229660034,
-0.08438747376203537,
0.10005465149879456,
0.07484014332294464,
0.1812010109424591,
-0.24284709990024567,
-0.0887812003493309,
-0.14609843492507935,
-0.24304597079753876,
0.3116368055343628,
0.09407094866037369,
0.08353794366121292,
-0.5119563341140747,
0.16444025933742523,
0.0075377835892140865,
-0.20180554687976837,
-0.11375712603330612,
0.12387921661138535,
-0.16583384573459625,
-0.014107221737504005,
0.18624508380889893,
-0.17993931472301483,
0.18738852441310883,
-0.29515886306762695,
0.24375151097774506,
-0.3901769518852234,
-0.19543322920799255,
0.015109646134078503,
0.057886626571416855,
0.4098418653011322,
0.12543125450611115,
0.15510721504688263,
0.18641026318073273,
-0.34176528453826904,
0.05660318210721016,
-0.1075194925069809,
-0.15106157958507538,
0.2333710640668869,
-0.055027563124895096,
0.09385505318641663,
0.03419669345021248,
-0.24937550723552704,
-0.5408254265785217,
-0.2501787543296814,
-0.009575664065778255,
0.3858901858329773,
0.09830182790756226,
-0.0028513704892247915,
-0.11265350878238678,
0.0033438261598348618,
0.26702913641929626,
0.39376768469810486,
-0.21082808077335358,
-0.24920234084129333,
0.21024970710277557,
-0.20926885306835175,
-0.33469972014427185,
0.0819491520524025,
-0.10423032194375992,
0.04457153007388115,
0.25238221883773804,
-0.4788483679294586,
-0.0906343162059784,
-0.3600659668445587,
0.40960797667503357,
-0.23261573910713196,
0.09382869303226471,
0.3463049530982971,
0.08929306268692017,
0.14639881253242493,
-0.04174824804067612,
-0.2757156491279602,
-0.06513577699661255,
-0.2946411967277527,
-0.06823248416185379,
0.3381982147693634,
0.42744967341423035,
-0.0575702041387558,
0.37703201174736023,
0.30022838711738586,
0.3604489266872406,
0.33447185158729553,
0.045841023325920105,
0.37111327052116394,
0.05426068976521492,
-0.2594741880893707,
0.10877594351768494,
-0.19434581696987152,
-0.14016011357307434,
0.3007434010505676,
0.0889817327260971,
-0.19526371359825134,
-0.05253181234002113,
-0.38045358657836914,
-0.280789315700531,
-0.2852861285209656,
-0.09924276918172836,
-0.246331587433815,
0.2537565529346466,
0.11914046108722687,
0.11004234105348587,
-0.44624465703964233,
-0.3691142201423645,
0.028844231739640236,
0.554633378982544,
-0.30983972549438477,
0.11157606542110443,
-0.35080355405807495,
0.13669753074645996,
-0.6549721956253052,
0.2522450387477875,
0.03402543067932129,
0.49580588936805725,
-0.17412368953227997,
0.12669822573661804,
-0.001507472014054656,
-0.10742946714162827,
0.5570670962333679,
-0.6522976160049438,
0.46182987093925476,
0.058122698217630386,
0.11573182791471481,
0.010197044350206852,
-0.2243453711271286,
-0.09225578606128693,
0.2416791319847107,
0.13694190979003906,
0.2145552933216095,
0.16392146050930023,
0.04404165968298912,
0.07620947808027267,
0.16659297049045563,
-0.20013269782066345,
-0.27905750274658203,
-0.2271355390548706,
-0.34188854694366455,
-0.3903859853744507,
0.128006249666214,
0.042198941111564636,
0.18547086417675018,
-0.15174341201782227,
0.11716057360172272,
-0.40468835830688477,
0.23697811365127563,
0.13017885386943817,
0.1602822244167328,
0.18779222667217255,
0.06457539647817612,
0.21815916895866394,
-0.048045627772808075,
0.0753488540649414,
-0.12915600836277008,
0.5240862965583801,
-0.2804768681526184,
-0.32837826013565063,
-0.052490536123514175,
-0.1999860405921936,
-0.11711722612380981,
0.11224112659692764,
-0.32655778527259827,
-0.05009116604924202,
-0.1384815275669098,
-0.13273660838603973,
-0.31433025002479553,
0.11707510054111481,
0.042604029178619385,
-0.13543370366096497,
-0.3776830732822418,
-0.32019323110580444,
0.36414381861686707,
0.2117006629705429,
-0.44672736525535583,
0.34047412872314453,
0.11984751373529434,
-0.4280628561973572,
0.18246929347515106,
0.051760490983724594,
0.7466558814048767,
0.07989036291837692,
0.2780207097530365,
0.09727710485458374,
-0.11229581385850906,
0.2001180648803711,
0.1161787286400795,
0.05655692517757416,
-0.3728867173194885,
-0.45410144329071045,
-0.09887171536684036,
-0.22054263949394226,
-0.1345367431640625,
-0.02494102716445923,
-0.23379424214363098,
0.2817451059818268,
-0.1129787340760231,
0.3188050389289856,
0.27430960536003113,
0.04803803190588951,
-0.37419575452804565,
-0.3764992952346802,
-0.1209944486618042,
0.12518654763698578,
-0.19382387399673462,
0.13586902618408203,
-0.2274903804063797,
0.09111578017473221,
0.08490471541881561,
-0.16739434003829956,
-0.43912172317504883,
0.1967894732952118,
-0.4114467203617096,
0.13811799883842468,
-0.29741790890693665,
-0.38368257880210876,
0.08779965341091156,
0.596064567565918,
0.2849678695201874,
0.36046022176742554,
-0.1543024480342865,
0.06006699800491333,
0.07938897609710693,
0.11794426292181015,
0.02495754323899746,
0.0074557713232934475,
0.19626395404338837,
-0.08069460093975067,
-0.2981886863708496,
-0.015169328078627586,
-0.2781272530555725,
-0.32152971625328064,
-0.105553038418293,
0.28626739978790283,
0.40390545129776,
-0.32011136412620544,
-0.20768895745277405,
-0.3106463849544525,
0.08497348427772522,
-0.2798957824707031,
0.09370318055152893,
0.04704195633530617,
-0.07560183107852936,
0.37954142689704895,
-0.33688831329345703,
-0.4257122576236725,
-0.14751769602298737,
0.5242762565612793,
-0.07907658070325851,
-0.13375602662563324,
0.5711389780044556,
-0.0485030822455883,
-0.17853944003582,
-0.013032259419560432,
0.14549291133880615,
-0.10098475217819214,
-0.46245843172073364,
-0.10034402459859848,
-0.12253538519144058,
0.10782843828201294,
-0.029107024893164635,
0.16985087096691132,
0.278796911239624,
-0.09630994498729706,
0.05340346321463585,
-0.75813889503479,
-0.26210078597068787,
-0.11298516392707825,
-0.23114357888698578,
0.1716354787349701,
0.1831110268831253,
-0.44054073095321655,
-0.1353054642677307,
-0.28408050537109375,
-0.20300324261188507,
0.04410112649202347,
-0.21473442018032074,
-0.129441499710083,
0.27790117263793945,
0.15455766022205353,
-0.0013409730745479465,
0.12451346218585968,
-0.0026245571207255125,
0.0926588773727417,
0.12275485694408417,
-0.17137014865875244,
-0.12370982766151428,
0.14752395451068878,
0.10378224402666092,
-0.09180020540952682,
0.026753896847367287,
-0.32842549681663513,
-0.07359747588634491,
-0.09842561185359955,
0.39404451847076416,
0.2593080401420593,
-0.02815740928053856,
0.0679173395037651,
-0.1276833564043045,
0.2894706726074219,
-0.2827052175998688,
0.41511866450309753,
-0.3472841680049896,
-0.02513059228658676,
-0.013373618945479393,
0.3347688317298889,
-0.141316756606102,
0.054126594215631485,
-0.11745346337556839,
-0.08249495923519135,
0.15325455367565155,
0.06789704412221909,
0.06460656970739365,
-0.37691158056259155,
0.08502579480409622,
0.17875725030899048,
0.05933332070708275,
0.0623638816177845,
-0.23318253457546234,
0.01484121847897768,
0.24505014717578888,
0.15899260342121124,
-0.09227059036493301,
-0.12948782742023468,
-0.012007682584226131,
-0.32347753643989563,
-0.17904455959796906,
0.30041471123695374,
0.16395756602287292,
-0.38362523913383484,
0.13599130511283875,
-0.03240517899394035,
0.5581636428833008,
-0.2246953696012497,
-0.05772078037261963,
0.48134922981262207,
-0.217400461435318,
0.2738090753555298,
0.21858634054660797,
0.2596428692340851,
-0.0843798816204071,
0.5514783263206482,
0.18204298615455627,
0.13673900067806244,
-0.0058678798377513885,
-0.1720479130744934,
-0.10305272787809372,
-0.6628068089485168,
0.28002840280532837,
0.06525269895792007,
-0.07369084656238556,
0.05094325542449951,
-0.029617061838507652,
-0.008635500445961952,
-0.30411553382873535,
-0.0021535977721214294,
-0.43828168511390686,
-0.21689341962337494,
-0.1808835119009018,
-0.28366005420684814,
0.06843408942222595,
-0.23384292423725128,
0.17253975570201874,
0.09277592599391937,
-0.17077620327472687,
-0.14519621431827545,
-0.06997843831777573,
-0.042751483619213104,
-0.3035753071308136,
-0.26846805214881897,
0.11163219809532166,
0.41336789727211,
-0.2662925720214844,
-0.19269153475761414,
0.08904942125082016,
0.006443039048463106,
0.23958061635494232,
0.08864161372184753,
0.09613718092441559,
0.7200039625167847,
0.3696608543395996,
-0.18670599162578583,
-0.08271218836307526,
0.2043791115283966,
0.08497980237007141,
-0.10133529454469681,
0.3095623850822449,
0.1992662101984024,
0.17723055183887482,
0.34535595774650574,
0.11968500167131424,
-0.12446679174900055,
0.037458572536706924,
0.03806004300713539,
-0.00894754845649004,
-0.0834791362285614,
0.18735943734645844,
-0.17643512785434723,
-0.16842374205589294,
0.14056657254695892,
0.1980232149362564,
-0.07277748733758926,
0.170027494430542,
0.23236894607543945,
0.06273747235536575,
0.1945091038942337,
-0.1900540441274643,
0.02006196789443493,
0.14877957105636597,
0.3155461847782135,
0.3503621220588684,
0.0980692207813263,
-0.2335534542798996,
-0.06835919618606567,
-0.5775803923606873,
0.2545951008796692,
-0.01822463609278202,
-0.3800150156021118,
-0.032235048711299896,
-0.13248836994171143,
-0.3368017077445984,
0.1061350628733635,
0.16192305088043213,
-0.10909658670425415,
0.055558428168296814,
0.2668956220149994,
-0.15676145255565643,
-0.2936108112335205,
0.3894374668598175,
-0.03776906058192253,
-0.07810097932815552,
-0.6786638498306274,
0.036601219326257706,
-0.08875995874404907,
0.032007791101932526,
-0.15069954097270966,
-0.16663819551467896,
0.03415020927786827,
-0.026074185967445374,
0.54377681016922,
0.2644127905368805,
0.45556068420410156,
0.007837480865418911,
0.09181363135576248,
-0.5622043609619141,
-0.06879778951406479,
-0.145289808511734,
-0.033695049583911896,
-0.07782576233148575,
0.2713487148284912,
-0.22750376164913177,
0.04143606126308441,
-0.12419261783361435,
0.16709394752979279,
0.266299307346344,
0.3795420527458191,
-0.005456157028675079,
0.22790515422821045,
0.18094351887702942,
0.15718939900398254,
0.3478449583053589,
0.06997191160917282,
-0.0961795449256897,
0.4460363984107971,
-0.24093420803546906,
-0.34204840660095215,
0.21094822883605957,
-0.39415043592453003,
-0.3340475559234619,
-0.019208701327443123,
0.32515695691108704,
-0.2549189329147339,
-0.15313342213630676,
-0.2379632294178009,
0.20610913634300232,
0.24783968925476074,
-0.14348065853118896,
-0.38689717650413513,
0.14134541153907776,
-0.15703527629375458,
0.14029201865196228,
-0.022752411663532257,
0.03422369062900543,
0.010135121643543243,
-0.22538986802101135,
0.170866921544075,
-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.22893114387989044,
0.3834540545940399,
0.04034552723169327,
0.25504016876220703,
-0.012111579068005085,
0.2622572183609009,
0.503669023513794,
0.13295313715934753,
0.34428054094314575,
0.13571831583976746,
-0.10897517204284668,
0.07728414237499237,
0.07315033674240112,
-0.005698914173990488,
-0.12562324106693268,
0.07892745733261108,
0.03644514083862305,
-0.005388336721807718,
0.21494898200035095,
0.10395509749650955,
-0.4238829016685486,
0.10729581117630005,
-0.17285455763339996,
0.18611598014831543,
0.02609497681260109,
-0.13634221255779266,
0.12126001715660095,
0.360729455947876,
-0.030788900330662727,
-0.39220693707466125,
0.35302358865737915,
0.06345326453447342,
0.46391862630844116,
0.2582457363605499,
-0.00011924598220502958,
-0.013706213794648647,
0.2306840717792511,
0.12449946999549866,
-0.07372694462537766,
0.08709963411092758,
-0.18398486077785492,
-0.14096812903881073,
0.1652292013168335,
-0.09768719226121902,
0.17674359679222107,
0.3634910583496094,
-0.10213733464479446,
-0.2009294629096985,
-0.013041754253208637,
0.3790341913700104,
0.15730060636997223,
-0.03818458318710327,
-0.11867831647396088,
-0.07520420849323273,
0.4933356046676636,
-0.15929798781871796,
-0.13318006694316864,
0.27983781695365906,
0.07902494817972183,
-0.1145690307021141,
-0.09899087250232697,
0.19957318902015686,
-0.16214892268180847,
0.14715732634067535,
0.018657824024558067,
0.031129680573940277,
0.21623113751411438,
-0.45810940861701965,
0.3521413207054138,
0.15125828981399536,
0.9656503796577454,
-0.1955731064081192,
-0.19140426814556122,
-0.08874817937612534,
0.013303935527801514,
-0.033002614974975586,
0.43260377645492554,
0.42862409353256226,
-0.324568510055542,
0.2523707449436188,
0.06596963852643967,
0.08356558531522751,
-0.08255093544721603,
-0.0019089985871687531,
0.07128576189279556,
0.14865311980247498,
-0.05047062411904335,
0.11955638974905014,
-0.11473095417022705,
-0.08340095728635788,
0.386335164308548,
-0.2138274908065796,
-0.25460243225097656,
0.1916670799255371,
-0.33943647146224976,
0.2898698151111603,
0.05345281958580017,
0.7778053879737854,
0.15787771344184875,
0.3155296742916107,
0.12502335011959076,
-0.05405188351869583,
0.213624507188797,
0.06519035249948502,
0.008592531085014343,
0.32148998975753784,
-0.11223897337913513,
-0.016922693699598312,
0.4271062910556793,
0.11744201928377151,
-0.08161699026823044,
-0.008990559726953506,
-0.020046072080731392,
-0.42947378754615784,
0.35387977957725525,
0.10540735721588135,
0.40811842679977417,
-0.2856414318084717,
-0.12170089036226273,
-0.00029504569829441607,
0.15813201665878296,
-0.02397097274661064,
0.05888323485851288,
0.5011535286903381,
-0.27177220582962036,
0.04268322512507439,
0.06825149059295654,
0.1794445514678955,
0.018610527738928795,
0.09776178747415543,
-0.08779998868703842,
-0.08900274336338043,
-0.2667175829410553,
-0.05143898352980614,
0.40864694118499756,
-0.322576105594635,
0.0955653190612793,
0.25667646527290344,
0.027047500014305115,
-0.1792943924665451,
0.1918322592973709,
-0.041497521102428436,
-0.03285694494843483,
0.3576870262622833,
0.39729610085487366,
0.33763355016708374,
0.1749320775270462,
-0.21229620277881622,
-0.034995391964912415,
0.18631169199943542,
-0.4872901737689972,
-0.40250420570373535,
-0.03366478532552719,
0.12132807821035385,
-0.08332370966672897,
0.06320539116859436,
-0.19803689420223236,
-0.04825780540704727,
0.3823128640651703,
-0.3008546829223633,
-0.06183617189526558,
-0.013725628145039082,
-0.2206202894449234,
-0.5042760372161865,
0.040708258748054504,
0.4012884199619293,
-0.35969793796539307,
0.1303669959306717,
-0.09155311435461044,
-0.2640872895717621,
0.15043319761753082,
0.0056379144079983234,
0.005634539760649204,
0.36168214678764343,
-0.281220406293869,
0.015607540495693684,
0.27745887637138367,
-0.3938947916030884,
-1.0015968084335327,
-0.021003253757953644,
0.07310014963150024,
0.16604147851467133,
0.2444063425064087,
0.1191374883055687,
0.3659380376338959,
-0.030345462262630463,
0.17047584056854248,
0.3187125623226166,
0.1300753355026245,
0.11197467148303986,
-0.06299621611833572,
-0.2038554847240448,
0.27966073155403137,
0.13392609357833862,
0.08833899348974228,
0.3009033799171448,
0.31260010600090027,
-0.05693430453538895,
0.25109565258026123,
-0.18726123869419098,
0.11680460721254349,
0.19251590967178345,
0.011495920829474926,
-0.0351359024643898,
0.13751451671123505,
-0.12773805856704712,
-0.42040878534317017,
0.35144802927970886,
-0.008118398487567902,
0.08516685664653778,
0.075979083776474,
-0.20274308323860168,
-0.3184642195701599,
0.09134066104888916,
-0.5447555184364319,
-0.28899645805358887,
0.08510662615299225,
0.29389894008636475,
0.21242569386959076,
0.0236823707818985,
0.18916423618793488,
0.3374139666557312,
-0.20822682976722717,
0.12719590961933136,
-0.18114064633846283,
0.038606852293014526,
-0.18833814561367035,
-0.13644902408123016,
-0.21224795281887054,
0.04691566899418831,
0.20012833178043365,
0.2527480125427246,
-0.21343328058719635,
0.19610103964805603,
0.151213601231575,
0.03749880567193031,
-0.37855765223503113,
-0.05955677852034569,
-0.022377723827958107,
0.12172956764698029,
0.1568482220172882,
0.13817840814590454,
0.14832349121570587,
-0.04439409077167511,
-0.19221922755241394,
0.13775432109832764,
-0.15963469445705414,
0.1437312662601471,
-0.32665085792541504,
0.24303556978702545,
0.24470677971839905,
0.09005031734704971,
0.08569695055484772,
0.03445245698094368,
0.30547037720680237,
0.02411867305636406,
0.07459575682878494,
-0.28580382466316223,
0.101261667907238,
-0.07780910283327103,
0.05930330604314804,
0.022547775879502296,
0.0812823474407196,
0.24975351989269257,
-0.1746015101671219,
0.01688612997531891,
0.2869933843612671,
0.34967881441116333,
0.5377137660980225,
-0.04098669812083244,
0.05155038461089134,
0.06679745763540268,
0.047912392765283585,
0.08966916799545288,
0.11925192177295685,
0.0857710912823677,
-0.07022712379693985,
0.2634495496749878,
0.1284342259168625,
0.22416628897190094,
-0.06479810923337936,
-0.11386033147573471,
-0.1075412705540657,
0.41942936182022095,
-0.4875134229660034,
-0.08438747376203537,
0.10005465149879456,
0.07484014332294464,
0.1812010109424591,
-0.24284709990024567,
-0.0887812003493309,
-0.14609843492507935,
-0.24304597079753876,
0.3116368055343628,
0.09407094866037369,
0.08353794366121292,
-0.5119563341140747,
0.16444025933742523,
0.0075377835892140865,
-0.20180554687976837,
-0.11375712603330612,
0.12387921661138535,
-0.16583384573459625,
-0.014107221737504005,
0.18624508380889893,
-0.17993931472301483,
0.18738852441310883,
-0.29515886306762695,
0.24375151097774506,
-0.3901769518852234,
-0.19543322920799255,
0.015109646134078503,
0.057886626571416855,
0.4098418653011322,
0.12543125450611115,
0.15510721504688263,
0.18641026318073273,
-0.34176528453826904,
0.05660318210721016,
-0.1075194925069809,
-0.15106157958507538,
0.2333710640668869,
-0.055027563124895096,
0.09385505318641663,
0.03419669345021248,
-0.24937550723552704,
-0.5408254265785217,
-0.2501787543296814,
-0.009575664065778255,
0.3858901858329773,
0.09830182790756226,
-0.0028513704892247915,
-0.11265350878238678,
0.0033438261598348618,
0.26702913641929626,
0.39376768469810486,
-0.21082808077335358,
-0.24920234084129333,
0.21024970710277557,
-0.20926885306835175,
-0.33469972014427185,
0.0819491520524025,
-0.10423032194375992,
0.04457153007388115,
0.25238221883773804,
-0.4788483679294586,
-0.0906343162059784,
-0.3600659668445587,
0.40960797667503357,
-0.23261573910713196,
0.09382869303226471,
0.3463049530982971,
0.08929306268692017,
0.14639881253242493,
-0.04174824804067612,
-0.2757156491279602,
-0.06513577699661255,
-0.2946411967277527,
-0.06823248416185379,
0.3381982147693634,
0.42744967341423035,
-0.0575702041387558,
0.37703201174736023,
0.30022838711738586,
0.3604489266872406,
0.33447185158729553,
0.045841023325920105,
0.37111327052116394,
0.05426068976521492,
-0.2594741880893707,
0.10877594351768494,
-0.19434581696987152,
-0.14016011357307434,
0.3007434010505676,
0.0889817327260971,
-0.19526371359825134,
-0.05253181234002113,
-0.38045358657836914,
-0.280789315700531,
-0.2852861285209656,
-0.09924276918172836,
-0.246331587433815,
0.2537565529346466,
0.11914046108722687,
0.11004234105348587,
-0.44624465703964233,
-0.3691142201423645,
0.028844231739640236,
0.554633378982544,
-0.30983972549438477,
0.11157606542110443,
-0.35080355405807495,
0.13669753074645996,
-0.6549721956253052,
0.2522450387477875,
0.03402543067932129,
0.49580588936805725,
-0.17412368953227997,
0.12669822573661804,
-0.001507472014054656,
-0.10742946714162827,
0.5570670962333679,
-0.6522976160049438,
0.46182987093925476,
0.058122698217630386,
0.11573182791471481,
0.010197044350206852,
-0.2243453711271286,
-0.09225578606128693,
0.2416791319847107,
0.13694190979003906,
0.2145552933216095,
0.16392146050930023,
0.04404165968298912,
0.07620947808027267,
0.16659297049045563,
-0.20013269782066345,
-0.27905750274658203,
-0.2271355390548706,
-0.34188854694366455,
-0.3903859853744507,
0.128006249666214,
0.042198941111564636,
0.18547086417675018,
-0.15174341201782227,
0.11716057360172272,
-0.40468835830688477,
0.23697811365127563,
0.13017885386943817,
0.1602822244167328,
0.18779222667217255,
0.06457539647817612,
0.21815916895866394,
-0.048045627772808075,
0.0753488540649414,
-0.12915600836277008,
0.5240862965583801,
-0.2804768681526184,
-0.32837826013565063,
-0.052490536123514175,
-0.1999860405921936,
-0.11711722612380981,
0.11224112659692764,
-0.32655778527259827,
-0.05009116604924202,
-0.1384815275669098,
-0.13273660838603973,
-0.31433025002479553,
0.11707510054111481,
0.042604029178619385,
-0.13543370366096497,
-0.3776830732822418,
-0.32019323110580444,
0.36414381861686707,
0.2117006629705429,
-0.44672736525535583,
0.34047412872314453,
0.11984751373529434,
-0.4280628561973572,
0.18246929347515106,
0.051760490983724594,
0.7466558814048767,
0.07989036291837692,
0.2780207097530365,
0.09727710485458374,
-0.11229581385850906,
0.2001180648803711,
0.1161787286400795,
0.05655692517757416,
-0.3728867173194885,
-0.45410144329071045,
-0.09887171536684036,
-0.22054263949394226,
-0.1345367431640625,
-0.02494102716445923,
-0.23379424214363098,
0.2817451059818268,
-0.1129787340760231,
0.3188050389289856,
0.27430960536003113,
0.04803803190588951,
-0.37419575452804565,
-0.3764992952346802,
-0.1209944486618042,
0.12518654763698578,
-0.19382387399673462,
0.13586902618408203,
-0.2274903804063797,
0.09111578017473221,
0.08490471541881561,
-0.16739434003829956,
-0.43912172317504883,
0.1967894732952118,
-0.4114467203617096,
0.13811799883842468,
-0.29741790890693665,
-0.38368257880210876,
0.08779965341091156,
0.596064567565918,
0.2849678695201874,
0.36046022176742554,
-0.1543024480342865,
0.06006699800491333,
0.07938897609710693,
0.11794426292181015,
0.02495754323899746,
0.0074557713232934475,
0.19626395404338837,
-0.08069460093975067,
-0.2981886863708496,
-0.015169328078627586,
-0.2781272530555725,
-0.32152971625328064,
-0.105553038418293,
0.28626739978790283,
0.40390545129776,
-0.32011136412620544,
-0.20768895745277405,
-0.3106463849544525,
0.08497348427772522,
-0.2798957824707031,
0.09370318055152893,
0.04704195633530617,
-0.07560183107852936,
0.37954142689704895,
-0.33688831329345703,
-0.4257122576236725,
-0.14751769602298737,
0.5242762565612793,
-0.07907658070325851,
-0.13375602662563324,
0.5711389780044556,
-0.0485030822455883,
-0.17853944003582,
-0.013032259419560432,
0.14549291133880615,
-0.10098475217819214,
-0.46245843172073364,
-0.10034402459859848,
-0.12253538519144058,
0.10782843828201294,
-0.029107024893164635,
0.16985087096691132,
0.278796911239624,
-0.09630994498729706,
0.05340346321463585,
-0.75813889503479,
-0.26210078597068787,
-0.11298516392707825,
-0.23114357888698578,
0.1716354787349701,
0.1831110268831253,
-0.44054073095321655,
-0.1353054642677307,
-0.28408050537109375,
-0.20300324261188507,
0.04410112649202347,
-0.21473442018032074,
-0.129441499710083,
0.27790117263793945,
0.15455766022205353,
-0.0013409730745479465,
0.12451346218585968,
-0.0026245571207255125,
0.0926588773727417,
0.12275485694408417,
-0.17137014865875244,
-0.12370982766151428,
0.14752395451068878,
0.10378224402666092,
-0.09180020540952682,
0.026753896847367287,
-0.32842549681663513,
-0.07359747588634491,
-0.09842561185359955,
0.39404451847076416,
0.2593080401420593,
-0.02815740928053856,
0.0679173395037651,
-0.1276833564043045,
0.2894706726074219,
-0.2827052175998688,
0.41511866450309753,
-0.3472841680049896,
-0.02513059228658676,
-0.013373618945479393,
0.3347688317298889,
-0.141316756606102,
0.054126594215631485,
-0.11745346337556839,
-0.08249495923519135,
0.15325455367565155,
0.06789704412221909,
0.06460656970739365,
-0.37691158056259155,
0.08502579480409622,
0.17875725030899048,
0.05933332070708275,
0.0623638816177845,
-0.23318253457546234,
0.01484121847897768,
0.24505014717578888,
0.15899260342121124,
-0.09227059036493301,
-0.12948782742023468,
-0.012007682584226131,
-0.32347753643989563,
-0.17904455959796906,
0.30041471123695374,
0.16395756602287292,
-0.38362523913383484,
0.13599130511283875,
-0.03240517899394035,
0.5581636428833008,
-0.2246953696012497,
-0.05772078037261963,
0.48134922981262207,
-0.217400461435318,
0.2738090753555298,
0.21858634054660797,
0.2596428692340851,
-0.0843798816204071,
0.5514783263206482,
0.18204298615455627,
0.13673900067806244,
-0.0058678798377513885,
-0.1720479130744934,
-0.10305272787809372,
-0.6628068089485168,
0.28002840280532837,
0.06525269895792007,
-0.07369084656238556,
0.05094325542449951,
-0.029617061838507652,
-0.008635500445961952,
-0.30411553382873535,
-0.0021535977721214294,
-0.43828168511390686,
-0.21689341962337494,
-0.1808835119009018,
-0.28366005420684814,
0.06843408942222595,
-0.23384292423725128,
0.17253975570201874,
0.09277592599391937,
-0.17077620327472687,
-0.14519621431827545,
-0.06997843831777573,
-0.042751483619213104,
-0.3035753071308136,
-0.26846805214881897,
0.11163219809532166,
0.41336789727211,
-0.2662925720214844,
-0.19269153475761414,
0.08904942125082016,
0.006443039048463106,
0.23958061635494232,
0.08864161372184753,
0.09613718092441559,
0.7200039625167847,
0.3696608543395996,
-0.18670599162578583,
-0.08271218836307526,
0.2043791115283966,
0.08497980237007141,
-0.10133529454469681,
0.3095623850822449,
0.1992662101984024,
0.17723055183887482,
0.34535595774650574,
0.11968500167131424,
-0.12446679174900055,
0.037458572536706924,
0.03806004300713539,
-0.00894754845649004,
-0.0834791362285614,
0.18735943734645844,
-0.17643512785434723,
-0.16842374205589294,
0.14056657254695892,
0.1980232149362564,
-0.07277748733758926,
0.170027494430542,
0.23236894607543945,
0.06273747235536575,
0.1945091038942337,
-0.1900540441274643,
0.02006196789443493,
0.14877957105636597,
0.3155461847782135,
0.3503621220588684,
0.0980692207813263,
-0.2335534542798996,
-0.06835919618606567,
-0.5775803923606873,
0.2545951008796692,
-0.01822463609278202,
-0.3800150156021118,
-0.032235048711299896,
-0.13248836994171143,
-0.3368017077445984,
0.1061350628733635,
0.16192305088043213,
-0.10909658670425415,
0.055558428168296814,
0.2668956220149994,
-0.15676145255565643,
-0.2936108112335205,
0.3894374668598175,
-0.03776906058192253,
-0.07810097932815552,
-0.6786638498306274,
0.036601219326257706,
-0.08875995874404907,
0.032007791101932526,
-0.15069954097270966,
-0.16663819551467896,
0.03415020927786827,
-0.026074185967445374,
0.54377681016922,
0.2644127905368805,
0.45556068420410156,
0.007837480865418911,
0.09181363135576248,
-0.5622043609619141,
-0.06879778951406479,
-0.145289808511734,
-0.033695049583911896,
-0.07782576233148575,
0.2713487148284912,
-0.22750376164913177,
0.04143606126308441,
-0.12419261783361435,
0.16709394752979279,
0.266299307346344,
0.3795420527458191,
-0.005456157028675079,
0.22790515422821045,
0.18094351887702942,
0.15718939900398254,
0.3478449583053589,
0.06997191160917282,
-0.0961795449256897,
0.4460363984107971,
-0.24093420803546906,
-0.34204840660095215,
0.21094822883605957,
-0.39415043592453003,
-0.3340475559234619,
-0.019208701327443123,
0.32515695691108704,
-0.2549189329147339,
-0.15313342213630676,
-0.2379632294178009,
0.20610913634300232,
0.24783968925476074,
-0.14348065853118896,
-0.38689717650413513,
0.14134541153907776,
-0.15703527629375458,
0.14029201865196228,
-0.022752411663532257,
0.03422369062900543,
0.010135121643543243,
-0.22538986802101135,
0.170866921544075,
-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.04569006338715553,
0.33450770378112793,
0.11488889157772064,
0.08045107871294022,
0.23043054342269897,
0.11888786405324936,
0.398885041475296,
0.2548748850822449,
-0.10991635918617249,
0.2674389183521271,
-0.3353857398033142,
0.40407171845436096,
-0.1644810140132904,
-0.1074623316526413,
-0.034266840666532516,
-0.10664372146129608,
0.05111076310276985,
0.14516448974609375,
-0.16666440665721893,
-0.1226121336221695,
-0.2103366255760193,
0.03519103676080704,
-0.127475768327713,
0.07211615890264511,
-0.13876374065876007,
-0.2811449468135834,
0.010588872246444225,
0.10064477473497391,
0.24410806596279144,
-0.018354913219809532,
0.06827952712774277,
0.021176837384700775,
-0.177795872092247,
0.4797627031803131,
-0.00011666517093544826,
0.41420748829841614,
-0.006127464585006237,
0.13015390932559967,
-0.23558096587657928,
0.056510817259550095,
-0.06903103739023209,
0.17604993283748627,
0.1245584487915039,
-0.05997353419661522,
0.13496796786785126,
-0.21777614951133728,
-0.025572650134563446,
0.0832730308175087,
0.2824956774711609,
0.429058313369751,
0.17387720942497253,
0.667812168598175,
0.049049410969018936,
-0.007073978893458843,
0.3827851712703705,
0.06389793753623962,
-0.27425897121429443,
0.11617069691419601,
-0.23700940608978271,
-0.19351449608802795,
0.06556092947721481,
0.5781880617141724,
0.01738247647881508,
-0.07479867339134216,
-0.13468733429908752,
0.07937826961278915,
-0.247484490275383,
-0.21320995688438416,
0.09915626794099808,
0.3864622712135315,
0.2942141890525818,
-0.31772834062576294,
-0.07044242322444916,
-0.1286831796169281,
-0.06478451937437057,
-0.14543436467647552,
0.19134801626205444,
-0.04620632156729698,
0.017386553809046745,
0.13485004007816315,
0.05821515992283821,
-0.16226661205291748,
-0.26150745153427124,
-0.006173118017613888,
-0.28108808398246765,
-0.10721849650144577,
0.08574362844228745,
0.08013859391212463,
0.41410696506500244,
-0.027151525020599365,
-0.0686376616358757,
0.04162939637899399,
0.020163141191005707,
0.13079187273979187,
-0.202301487326622,
-0.18202079832553864,
-0.03925896808505058,
-0.17702989280223846,
-0.028179563581943512,
-0.07086224853992462,
0.23925122618675232,
-0.15704482793807983,
-0.24434342980384827,
0.0677403137087822,
0.16441917419433594,
-0.07058848440647125,
-0.6655333042144775,
0.14519952237606049,
0.2680506706237793,
-0.1933339387178421,
-0.11191979050636292,
-0.028671132400631905,
0.0027095708064734936,
-0.49814361333847046,
0.28611671924591064,
-0.21079155802726746,
0.4638059139251709,
0.017413711175322533,
-0.5834481120109558,
0.17033597826957703,
-0.19435998797416687,
0.4077930748462677,
-0.03926572948694229,
0.34212324023246765,
-0.009724682196974754,
0.27936771512031555,
0.32364705204963684,
-0.003611185820773244,
-0.4970707297325134,
-0.016200430691242218,
-0.054667867720127106,
-0.0396624356508255,
-0.29956039786338806,
-0.331923246383667,
0.1675925999879837,
0.0439530573785305,
-0.047848865389823914,
0.17280714213848114,
0.06108284369111061,
0.10257641971111298,
0.2539461851119995,
-0.28081586956977844,
0.5246313810348511,
0.4812728762626648,
-0.07509738951921463,
0.24509447813034058,
0.09495793282985687,
-0.2507025897502899,
-0.12922216951847076,
0.3534179627895355,
-0.2710709273815155,
-0.15856507420539856,
-0.26036542654037476,
0.12456431984901428,
-0.12023334205150604,
-0.15524700284004211,
-0.2238021194934845,
0.045003797858953476,
0.03431287407875061,
-0.05954698100686073,
0.0862918347120285,
-0.13709129393100739,
-0.5523478984832764,
-0.26465535163879395,
0.010904371738433838,
0.365090936422348,
-0.19915208220481873,
0.17955127358436584,
-0.025437993928790092,
-0.393191933631897,
-0.1594105213880539,
0.2656008303165436,
0.06460501253604889,
0.31538331508636475,
-0.4097917079925537,
-0.13048629462718964,
0.4838196039199829,
-0.23206789791584015,
-0.4512835144996643,
0.23500566184520721,
-0.20899389684200287,
0.21425221860408783,
-0.35181742906570435,
0.13031725585460663,
0.21251659095287323,
-0.2066652625799179,
0.012362107634544373,
-0.007045158185064793,
-0.062309931963682175,
-0.009126913733780384,
-0.32360905408859253,
-0.010815354995429516,
-0.0680185928940773,
-0.19527074694633484,
-0.015727663412690163,
-0.012415959499776363,
0.1318652629852295,
-0.049395602196455,
0.39026403427124023,
0.2196919173002243,
0.19332590699195862,
0.14174766838550568,
0.3756612539291382,
-0.17291373014450073,
-0.07908879220485687,
0.0432887002825737,
-0.3775175213813782,
0.13952437043190002,
0.4056784212589264,
0.0777028426527977,
-0.12490469217300415,
-0.14793626964092255,
-0.014969968236982822,
0.1985369771718979,
-0.19195038080215454,
0.02008003368973732,
0.07844384014606476,
-0.11942459642887115,
-0.3427833318710327,
0.20975689589977264,
-0.008773361332714558,
-0.17803534865379333,
-0.2768910527229309,
0.0820082351565361,
0.10280216485261917,
0.4687253534793854,
0.26876282691955566,
-0.005573447793722153,
-0.244813933968544,
0.19433848559856415,
-0.14946533739566803,
-0.030063221231102943,
-0.2719019949436188,
0.42693933844566345,
0.17477214336395264,
0.31781360507011414,
-0.15419700741767883,
0.5814430713653564,
0.10668499022722244,
-0.5981356501579285,
-0.2948666214942932,
0.3456805348396301,
0.13194769620895386,
-0.02862316556274891,
-0.01795550249516964,
0.14569860696792603,
-0.2007230669260025,
0.17132461071014404,
0.05376889929175377,
0.23926399648189545,
0.04082769900560379,
0.02146396040916443,
-0.03639727830886841,
-0.34101593494415283,
-0.04838114604353905,
0.36141616106033325,
-0.31463000178337097,
0.2986145615577698,
-0.6084027886390686,
0.19652917981147766,
0.3866650462150574,
0.031107081100344658,
-0.16892459988594055,
0.23582981526851654,
-0.1694943755865097,
0.061729807406663895,
0.07153785228729248,
0.3181355595588684,
0.4760548770427704,
0.0223612729460001,
0.1727907359600067,
0.1367993950843811,
-0.1937399059534073,
-0.09025253355503082,
0.23736460506916046,
0.08871423453092575,
0.31243181228637695,
0.20392084121704102,
0.25704485177993774,
0.19310405850410461,
-0.3024038076400757,
0.033018629997968674,
0.1302039474248886,
0.17289583384990692,
-0.45257875323295593,
0.17472292482852936,
-0.18073806166648865,
-0.03884685039520264,
-0.3074897229671478,
0.011746108531951904,
0.0377221442759037,
-0.13480012118816376,
0.315459668636322,
0.39676547050476074,
-0.4561236798763275,
0.1539231836795807,
-0.32894131541252136,
0.1290331482887268,
0.022768646478652954,
-0.2959316372871399,
0.18030236661434174,
-0.16917917132377625,
-0.2714838981628418,
0.03444299101829529,
0.3643871247768402,
-0.2442767471075058,
0.41803422570228577,
-0.0013583991676568985,
-0.07474915683269501,
-0.1528538316488266,
-0.26316380500793457,
0.08977960795164108,
-0.09495306760072708,
0.19322873651981354,
0.29371604323387146,
0.3368109464645386,
-0.1232672780752182,
-0.13017717003822327,
0.14623375236988068,
-0.48512840270996094,
-0.17861394584178925,
0.13726715743541718,
-0.12271806597709656,
0.20901021361351013,
0.02039797231554985,
-0.15208931267261505,
0.07417663931846619,
-0.34323036670684814,
0.06708253175020218,
-0.1913791298866272,
0.12772832810878754,
0.620332658290863,
0.1520412415266037,
-0.08000212907791138,
0.3789704442024231,
0.10768004506826401,
-0.17360031604766846,
-0.1127353087067604,
0.2009134590625763,
-0.20372343063354492,
-0.4296337962150574,
0.29090526700019836,
0.0338895283639431,
0.13257896900177002,
0.2955583930015564,
-0.6434155106544495,
-0.16894206404685974,
-0.04373536258935928,
0.1776638627052307,
-0.10888653993606567,
-0.04700704663991928,
0.16657422482967377,
0.11643649637699127,
-0.11971427500247955,
-0.34324708580970764,
0.08278664201498032,
0.3821258246898651,
-0.22708049416542053,
-0.048580270260572433,
0.04227050393819809,
0.08824560791254044,
0.3135707676410675,
0.624358057975769,
0.05083277076482773,
-0.34294310212135315,
0.020803775638341904,
-0.2982521951198578,
0.507361114025116,
-0.15909087657928467,
-0.2795751094818115,
0.015801142901182175,
0.042031481862068176,
-0.1327364444732666,
0.2462739646434784,
-0.07957754284143448,
-0.21038000285625458,
0.05786173790693283,
0.21673260629177094,
-0.03759206831455231,
-0.5290265679359436,
0.13690246641635895,
-0.3965074121952057,
0.19836512207984924,
0.1509982794523239,
-0.04255443066358566,
-0.15817759931087494,
-0.4451104998588562,
0.2289598137140274,
0.20402181148529053,
0.09302546828985214,
-0.136616051197052,
-0.1987902969121933,
-0.2823884189128876,
-0.34255340695381165,
0.06804680824279785,
0.1306476593017578,
0.5035340189933777,
0.09213527292013168,
-0.2987198233604431,
0.13605085015296936,
0.2798961400985718,
0.7769170999526978,
-0.03011608123779297,
-0.09927566349506378,
0.27733340859413147,
0.32240989804267883,
-0.4041951894760132,
0.05556339770555496,
-0.10501690953969955,
-0.004628230817615986,
0.02816360630095005,
0.24169519543647766,
0.07723629474639893,
-0.3887937664985657,
0.2129504382610321,
0.17669108510017395,
-0.24771849811077118,
0.21103952825069427,
-0.3918569087982178,
-0.39860284328460693,
0.10136725008487701,
0.08784723281860352,
0.26049408316612244,
0.04975626990199089,
-0.10872061550617218,
-0.1115122064948082,
-0.3012368083000183,
-0.24823306500911713,
0.08814429491758347,
-0.015626832842826843,
0.3283710777759552,
0.3708716928958893,
0.3975333571434021,
0.053340788930654526,
0.5702844858169556,
0.3938692808151245,
0.40750160813331604,
-0.543112576007843,
0.021428415551781654,
0.07550638169050217,
0.1911327838897705,
0.12519174814224243,
0.44203853607177734,
-0.18668562173843384,
0.053141623735427856,
-0.4151870310306549,
0.00027894385857507586,
-0.3923724293708801,
0.5302591323852539,
0.13951177895069122,
-0.20313389599323273,
-0.0013096524635329843,
-0.09222974628210068,
0.1333690583705902,
-0.010361487045884132,
-0.14890247583389282,
0.6897446513175964,
0.21658264100551605,
-0.18774892389774323,
0.26515278220176697,
0.15821388363838196,
1.1080402135849,
-0.09356771409511566,
0.2334684431552887,
0.5235837697982788,
-0.2643696963787079,
0.21265418827533722,
-0.05537969991564751,
0.1353129893541336,
-0.06322582811117172,
-0.5360187292098999,
0.02013920247554779,
-0.012507552281022072,
-0.36082375049591064,
-0.20056165754795074,
0.18932689726352692,
0.00237075611948967,
0.1572064906358719,
0.410684734582901,
0.22914601862430573,
0.07762358337640762,
0.29594382643699646,
-0.21861930191516876,
0.03965675085783005,
0.022471999749541283,
0.4466586112976074,
-0.12661994993686676,
-0.20260734856128693,
-0.12232179939746857,
0.16594737768173218,
0.027122432366013527,
-0.03446495532989502,
-0.009640945121645927,
-0.7225639224052429,
0.2756163775920868,
0.042248331010341644,
-0.09043861925601959,
-0.0240598414093256,
0.4012313187122345,
0.37122440338134766,
-0.09887662529945374,
-0.15234731137752533,
0.28834298253059387,
0.37736251950263977,
0.2930120825767517,
0.09380693733692169,
-0.01678583398461342,
0.4750949740409851,
0.038302380591630936,
-0.08036374300718307,
0.16763301193714142,
-0.054471928626298904,
-0.052523136138916016,
-0.03709398955106735,
-0.12258194386959076,
0.03829439356923103,
-0.12055527418851852,
0.044584572315216064,
-0.0995853990316391,
-0.2459060698747635,
-0.0579582080245018,
0.1035773903131485,
-0.18048758804798126,
-0.10702697932720184,
0.23447343707084656,
-0.19273369014263153,
-0.4316697120666504,
0.2392568141222,
0.39225462079048157,
-0.12051235139369965,
0.1710348129272461,
0.30368176102638245,
-0.07610409706830978,
-0.07312793284654617,
-0.2562389373779297,
0.3445342481136322,
0.03782987967133522,
-0.5670922994613647,
0.26459768414497375,
-0.1810758411884308,
0.32022780179977417,
-0.10798832029104233,
0.5147193074226379,
-0.19703036546707153,
0.020941155031323433,
0.02216002345085144,
-0.139723002910614,
-0.3977716863155365,
0.23617447912693024,
0.0018211569404229522,
0.4124111235141754,
-0.25371915102005005,
0.47479888796806335,
-0.12875328958034515,
-0.2527927756309509,
-0.2997979521751404,
0.23436717689037323,
-0.028114819899201393,
0.07879000157117844,
-0.10588584840297699,
0.05765066295862198,
0.3181118965148926,
-0.27795159816741943,
0.05769573897123337,
0.10732071101665497,
-0.1381109654903412,
-0.13849100470542908,
-0.16371414065361023,
0.16327716410160065,
0.028018005192279816,
-0.32340097427368164,
-0.012979567982256413,
-0.17387184500694275,
0.07629140466451645,
-0.1113802045583725,
0.3281945288181305,
0.07005297392606735,
-0.3296967148780823,
0.027097854763269424,
-0.21364709734916687,
0.13094086945056915,
0.13924641907215118,
0.007743695750832558,
-0.03059195727109909,
0.37586793303489685,
0.0896952897310257,
0.0981486439704895,
-0.23660923540592194,
-0.23252609372138977,
-0.030385181307792664,
0.28426623344421387,
-0.03563757613301277,
-0.3600640892982483,
0.037712469696998596,
-0.05584823340177536,
-0.2938876450061798,
-0.059905149042606354,
0.3766292929649353,
0.17997586727142334,
-0.46346136927604675,
-0.1362243890762329,
0.2592979967594147,
0.22421705722808838,
-0.24042123556137085,
0.16245032846927643,
-0.12176788598299026,
0.019864151254296303,
0.03851151466369629,
0.16629652678966522,
0.18402761220932007,
-0.14655478298664093,
-0.1428779512643814,
0.1772315949201584,
-0.20080314576625824,
-0.20362462103366852,
0.03101653791964054,
0.515628457069397,
-0.0325358510017395,
0.23732337355613708,
-0.14765366911888123,
0.10366429388523102,
0.12641771137714386,
0.2481575608253479,
-0.07817857712507248,
0.48264381289482117,
0.19811075925827026,
-0.06543844938278198,
-0.035468731075525284,
-0.3134523332118988,
-0.05552196130156517,
0.16418887674808502,
-0.12381761521100998,
0.242187038064003,
-0.036149777472019196,
0.2217099517583847,
0.1549312323331833,
-0.42458271980285645,
-0.011749670840799809,
0.2324928492307663,
-0.08597949892282486,
-0.3671887218952179,
-0.3900315761566162,
-0.20805487036705017,
-0.2723340094089508,
0.031124502420425415,
-0.0055275955237448215,
-0.08657320588827133,
0.009404413402080536,
0.1060136929154396,
-0.06628251075744629,
-0.2825775742530823,
-0.11982161551713943,
0.33307749032974243,
0.2778059244155884,
-0.2325667440891266,
0.06561320275068283,
-0.024808229878544807,
-0.06567790359258652,
-0.0021087778732180595,
0.20820143818855286,
0.08352933824062347,
0.028421437367796898,
-0.1759401112794876,
0.011499455198645592,
-0.03465447574853897,
0.0922635942697525,
-0.04009241238236427,
0.21443776786327362,
-0.04891705513000488,
-0.1405206322669983,
0.21579724550247192,
-0.049183327704668045,
-0.07002486288547516,
0.182844877243042,
0.05197177082300186,
0.09766754508018494,
-0.418224573135376,
0.14988896250724792,
-0.003379909787327051,
-0.10168051719665527,
-0.2287627011537552,
-0.0051180156879127026,
0.050867196172475815,
-0.10867879539728165,
0.480800062417984,
-0.4602070450782776,
0.3644781708717346,
-0.08739110082387924,
0.06821882724761963,
-0.009531538933515549,
0.22197949886322021,
0.1271091252565384,
0.32923901081085205,
-0.2891256809234619,
-0.38428163528442383,
-0.5309661626815796,
0.26259827613830566,
-0.04950675740838051,
-0.05064442753791809,
0.21181753277778625,
0.03177182003855705,
-0.08889949321746826,
-0.06646034866571426,
0.02740531787276268,
-0.18654635548591614,
0.11332373321056366,
0.26725438237190247,
-0.2658281624317169,
-0.036095861345529556,
-0.4830029010772705,
0.09843258559703827,
0.019902877509593964,
-0.5478622913360596,
-0.18008102476596832,
-0.1762712001800537,
0.03750993311405182,
-0.0818459615111351,
-0.021552029997110367,
-0.016611721366643906,
0.5460239052772522,
0.5247305631637573,
0.12545707821846008,
0.07549706101417542,
0.1195664182305336,
-0.10256092250347137,
-0.26742368936538696,
-0.17949995398521423,
-0.37663301825523376,
-0.18374766409397125,
0.007053898181766272,
-0.02379618212580681,
-0.05294395238161087,
0.1971379667520523,
0.013705016113817692,
-0.2977713346481323,
0.18019497394561768,
0.3653971254825592,
-0.44008252024650574,
0.1956053227186203,
-0.20590302348136902,
0.37253299355506897,
0.2628457844257355,
0.42349281907081604,
-0.12966127693653107,
0.21667814254760742,
-0.3998854160308838,
-0.3820693790912628,
0.49288123846054077,
-0.5328614115715027,
-0.0930071696639061,
-0.024598300457000732,
0.38428550958633423,
-0.09380315244197845,
0.03628801181912422,
-0.5819953083992004,
-0.1765548288822174,
0.38981491327285767,
-0.0834934264421463,
-0.5030674338340759,
0.17061185836791992,
0.13014671206474304,
0.13843505084514618,
0.11816715449094772,
0.5913184285163879,
0.1401759684085846,
-0.19336307048797607,
0.03649759665131569,
-0.2862132489681244
] |
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.049338456243276596,
0.09200115501880646,
-0.07149400562047958,
0.4018488824367523,
0.4151671528816223,
0.235895037651062,
0.6366615891456604,
0.24350285530090332,
0.2364586591720581,
0.23132987320423126,
0.01856823079288006,
0.007743077352643013,
-0.14426842331886292,
-0.31003594398498535,
-0.20153650641441345,
-0.2443147450685501,
-0.1581089049577713,
-0.0416213683784008,
-0.17707853019237518,
0.2177192121744156,
-0.15497922897338867,
0.37873712182044983,
0.0246385857462883,
0.15708383917808533,
-0.5360066294670105,
0.09007903933525085,
-0.1295962631702423,
0.38867461681365967,
-0.02150679938495159,
-0.3729912340641022,
0.051118649542331696,
-0.04671642184257507,
0.06881558150053024,
0.8113579750061035,
-0.00012206859537400305,
-0.3334411680698395,
0.3542337417602539,
-0.05629916861653328,
-0.32718929648399353,
-0.22430925071239471,
-0.16858138144016266,
-0.511711597442627,
-0.034584786742925644,
-0.49880290031433105,
0.18721291422843933,
-0.09511931985616684,
-0.033190254122018814,
-0.8021569848060608,
0.041052524000406265,
0.37330570816993713,
0.12687483429908752,
-0.07834673672914505,
0.09102550894021988,
-0.2579198479652405,
0.3323119580745697,
-0.2779892385005951,
0.004084636922925711,
0.35640305280685425,
0.3556972146034241,
-0.09886661171913147,
-0.1546502411365509,
0.2032179981470108,
-0.03689778968691826,
0.027324935421347618,
0.24715833365917206,
0.07953793555498123,
-0.0874825268983841,
-0.32616525888442993,
0.2958061099052429,
0.4273938834667206,
0.4714377522468567,
-0.09306181222200394,
-0.27931249141693115,
-0.4676957428455353,
0.14249858260154724,
-0.1251060664653778,
0.48853057622909546,
-0.07623869180679321,
-0.2220744788646698,
0.15148839354515076,
-0.17041951417922974,
-0.01962132193148136,
-0.1235976293683052,
-0.11023854464292526,
-0.10197462141513824,
0.06506257504224777,
0.04050867259502411,
0.036279208958148956,
0.3111136555671692,
-0.3483143448829651,
0.23959600925445557,
0.004836644046008587,
0.07427337020635605,
0.26946091651916504,
-0.6542137861251831,
0.1469123512506485,
0.08426710963249207,
0.38549259305000305,
0.2534894347190857,
0.0576435886323452,
-0.2659735679626465,
-0.14830821752548218,
0.19474834203720093,
-0.010465535335242748,
-0.06495588272809982,
0.37420713901519775,
0.194444939494133,
0.16128136217594147,
0.3012427091598511,
0.0779474601149559,
-0.3367469608783722,
-0.10693491250276566,
-0.07648782432079315,
-0.5534635782241821,
0.4451386034488678,
0.13359050452709198,
0.07416312396526337,
-0.3437114357948303,
0.1504586935043335,
0.5705776214599609,
0.10570433735847473,
-0.010489875450730324,
0.22870244085788727,
0.2733798623085022,
0.005434178281575441,
0.11076540499925613,
0.0830746442079544,
-0.08993645012378693,
-0.0889611691236496,
0.10083560645580292,
-0.14731290936470032,
-0.11073005944490433,
-0.2270190566778183,
0.11241002380847931,
0.08920544385910034,
-0.3083971440792084,
0.27928003668785095,
-0.22746551036834717,
0.3152399957180023,
-0.12495838105678558,
-0.08296861499547958,
-0.2377428412437439,
-0.06673310697078705,
0.1559675633907318,
-0.0591057687997818,
0.07391413301229477,
0.24521388113498688,
-0.26073402166366577,
-0.19206145405769348,
-0.07711131125688553,
-0.3397494852542877,
-0.2851884067058563,
-0.06172198802232742,
0.0947030708193779,
-0.16549426317214966,
0.21590223908424377,
0.2415543645620346,
-0.2671959400177002,
0.6555524468421936,
-0.07981888949871063,
0.012796743772923946,
-0.27476513385772705,
-0.1418103724718094,
0.007191940676420927,
0.040825843811035156,
0.5534656047821045,
0.13252398371696472,
-0.017562557011842728,
-0.06878886371850967,
0.12828119099140167,
0.008666734211146832,
0.37226003408432007,
0.18064580857753754,
-0.053596120327711105,
-0.42195242643356323,
0.3124937117099762,
0.22687120735645294,
-0.24028083682060242,
-0.4869851768016815,
0.32153841853141785,
-0.39430686831474304,
0.09949249774217606,
0.3229121267795563,
0.022883394733071327,
0.05171002820134163,
-0.02458232082426548,
0.28533726930618286,
0.1822134107351303,
-0.026095788925886154,
0.023495610803365707,
-0.2025238275527954,
-0.10733117908239365,
-0.04063034430146217,
0.1691949963569641,
0.010954411700367928,
0.06700119376182556,
0.07961974292993546,
-0.17519238591194153,
0.2715688645839691,
0.03146372362971306,
-0.20404429733753204,
0.373680055141449,
0.13824260234832764,
0.32671883702278137,
0.18608276546001434,
-0.10632786899805069,
-0.5937498807907104,
0.26372119784355164,
-0.12184843420982361,
-0.17873190343379974,
-0.2175939530134201,
-0.18680478632450104,
-0.174989253282547,
-0.007289542350918055,
0.0034594256430864334,
0.13513663411140442,
-0.020408494397997856,
0.28324878215789795,
0.1417800337076187,
-0.13176320493221283,
0.0934407189488411,
0.5883793830871582,
-0.17024436593055725,
0.017597364261746407,
-0.4781182110309601,
-0.17112524807453156,
-0.1178547739982605,
-0.11254028230905533,
0.031506508588790894,
0.0016394315753132105,
0.3693963587284088,
-0.10896860063076019,
-0.34435176849365234,
0.448075532913208,
0.3332768976688385,
0.09753286838531494,
-0.17892509698867798,
-0.004431127104908228,
-0.056864384561777115,
0.22077536582946777,
0.07266993075609207,
0.03981170803308487,
0.00778551772236824,
0.01429200079292059,
-0.2135753631591797,
0.300015926361084,
-0.14081652462482452,
0.271276593208313,
0.02861357294023037,
0.1682407408952713,
0.24617943167686462,
-0.13181336224079132,
0.0643458142876625,
-0.1761227697134018,
0.6458839178085327,
-0.2163524627685547,
0.3048400580883026,
0.054780006408691406,
0.045231517404317856,
-0.14486448466777802,
0.6458193063735962,
0.045393235981464386,
-0.00017754710279405117,
0.19774267077445984,
0.15620115399360657,
-0.040815383195877075,
-0.01937323622405529,
0.3064884543418884,
0.5111443996429443,
0.19205769896507263,
-0.03012317605316639,
-0.2065051943063736,
0.39415794610977173,
-0.22383439540863037,
0.2563192844390869,
0.01590774953365326,
-0.002792695537209511,
0.3657033443450928,
0.049617886543273926,
-0.1290871948003769,
0.05148366838693619,
-0.8095083236694336,
-0.05044201388955116,
0.22369761765003204,
-0.31980815529823303,
0.14808262884616852,
-0.13932599127292633,
-0.043205056339502335,
-0.023800354450941086,
0.000490256177727133,
-0.08039785176515579,
-0.4162813127040863,
-0.188893660902977,
0.27850663661956787,
-0.14183583855628967,
0.21453386545181274,
-0.11883416026830673,
-0.0032419837079942226,
0.2712831497192383,
-0.014538897201418877,
-0.295027494430542,
-0.0016123719979077578,
0.08034414052963257,
-0.08376043289899826,
0.2720727324485779,
-0.5375028252601624,
0.08380401879549026,
-0.12566345930099487,
-0.06310749053955078,
-0.508353590965271,
-0.24988092482089996,
0.11166766285896301,
-0.1684800684452057,
0.29356488585472107,
0.3413660526275635,
0.20785769820213318,
0.16666178405284882,
0.05889628827571869,
0.004962249659001827,
-0.26227903366088867,
0.023669417947530746,
0.23266388475894928,
0.17789937555789948,
-0.022819215431809425,
-0.19179971516132355,
-0.023455657064914703,
-0.3463740944862366,
-0.4160332977771759,
0.3207843601703644,
0.03030368685722351,
0.22792910039424896,
0.34118983149528503,
-0.07087253034114838,
0.29781198501586914,
-0.017972886562347412,
0.2472923845052719,
-0.0879063829779625,
-0.44637057185173035,
0.41706112027168274,
-0.15252241492271423,
-0.29905927181243896,
-0.4318077564239502,
0.2980133295059204,
-0.03550932556390762,
0.10551846027374268,
-0.4223639965057373,
-0.1790723353624344,
-0.40126049518585205,
0.3389853239059448,
-0.33572012186050415,
0.005409834906458855,
0.19701984524726868,
-0.08520099520683289,
-0.05634801834821701,
-0.106937937438488,
0.0849030613899231,
0.2325122058391571,
0.011036265641450882,
-0.009520838037133217,
0.09298152476549149,
0.295166939496994,
-0.11607855558395386,
0.4532134234905243,
0.36166617274284363,
0.07534868270158768,
0.1953808069229126,
-0.13766977190971375,
0.18435724079608917,
-0.25903233885765076,
-0.12694619596004486,
0.023937396705150604,
0.17447155714035034,
-0.2215840369462967,
0.1342058926820755,
-0.08539141714572906,
0.014082743786275387,
-0.13332022726535797,
-0.05779329687356949,
0.10780753195285797,
-0.29602915048599243,
0.00731634022668004,
0.04858717322349548,
0.05249020457267761,
0.03107982501387596,
0.1456940472126007,
-0.19488675892353058,
-0.13091051578521729,
-0.024088948965072632,
0.3084794878959656,
0.054077427834272385,
-0.023354923352599144,
-0.24687322974205017,
0.0915093868970871,
-0.33714163303375244,
0.44400912523269653,
0.18309196829795837,
0.21379797160625458,
-0.06935892254114151,
-0.1601731926202774,
-0.08004838973283768,
0.04600727930665016,
0.6831175088882446,
0.09912998974323273,
0.31609299778938293,
0.1554955691099167,
0.2547038495540619,
-0.12308706343173981,
0.03917166218161583,
0.07955341041088104,
0.3701871633529663,
0.13904182612895966,
0.4079340994358063,
-0.23080968856811523,
0.03760877624154091,
-0.1833166778087616,
0.18554222583770752,
-0.11663345247507095,
-0.4492173492908478,
-0.026286426931619644,
0.00879597757011652,
-0.2636871933937073,
0.16161991655826569,
0.03360505774617195,
0.24423019587993622,
0.061672527343034744,
0.004912979900836945,
-0.06017689406871796,
-0.07477884739637375,
0.16015420854091644,
0.17483550310134888,
0.2812635898590088,
-0.4468778371810913,
0.2643652856349945,
-0.027559295296669006,
-0.1595296412706375,
0.23041245341300964,
0.5639728307723999,
-0.44398221373558044,
-0.24784311652183533,
0.4144725501537323,
-0.35655882954597473,
0.0764390379190445,
0.4287085235118866,
-0.31076687574386597,
-0.1584235280752182,
0.35820621252059937,
0.6321601271629333,
0.12365608662366867,
0.02578241005539894,
0.03256859630346298,
0.1308743804693222,
-0.15302151441574097,
-0.3346109092235565,
0.2163311094045639,
0.24309523403644562,
-0.017834866419434547,
0.5360276103019714,
0.02425113506615162,
-0.302545964717865,
0.26139360666275024,
-0.20595420897006989,
1.0209472179412842,
-0.18544842302799225,
0.1871502548456192,
-0.019080346450209618,
0.12876717746257782,
0.49929922819137573,
0.00929019320756197,
-0.08422508835792542,
-0.42681437730789185,
-0.4827864170074463,
0.140203058719635,
-0.14980436861515045,
0.23977252840995789,
-0.036678943783044815,
-0.13019996881484985,
0.31392866373062134,
-0.25951018929481506,
0.017761893570423126,
-0.17453204095363617,
0.4527934789657593,
-0.6466594934463501,
-0.2542142868041992,
-0.250322550535202,
0.047983571887016296,
-0.04398152977228165,
0.11015111207962036,
0.061711713671684265,
0.16868649423122406,
-0.3292609751224518,
-0.27816757559776306,
-0.22720637917518616,
0.037031471729278564,
-0.4157642722129822,
0.08353079110383987,
-0.24390184879302979,
-0.2822072207927704,
-0.09024185687303543,
0.2852131128311157,
-0.0320499949157238,
0.40133723616600037,
-0.20359505712985992,
0.09235065430402756,
0.08282216638326645,
0.09687092900276184,
0.07299895584583282,
-0.06324401497840881,
0.3176954686641693,
0.01689671166241169,
0.07435327023267746,
-0.28570470213890076,
0.005397237371653318,
-0.1422327160835266,
0.03248336911201477,
-0.023427361622452736,
0.15041406452655792,
-0.2308288812637329,
-0.32375675439834595,
-0.3392724096775055,
-0.2038624882698059,
-0.1504354625940323,
0.05216049402952194,
0.33356940746307373,
-0.23872414231300354,
-0.008876566775143147,
-0.28575652837753296,
-0.40904679894447327,
-0.009664707817137241,
0.30550962686538696,
-0.14810813963413239,
-0.04720471799373627,
0.43272846937179565,
0.30000466108322144,
-0.21020935475826263,
-0.17791692912578583,
-0.01901724562048912,
-0.17999766767024994,
-0.6621260046958923,
0.08230829983949661,
0.036040835082530975,
-0.04271087050437927,
-0.2416066974401474,
-0.266829252243042,
0.20536068081855774,
0.12652985751628876,
0.11139851808547974,
-0.4697997570037842,
-0.4082915186882019,
-0.2329970896244049,
-0.29766833782196045,
0.2016153633594513,
-0.056624025106430054,
-0.35514894127845764,
-0.258842408657074,
0.032774291932582855,
-0.2122098058462143,
0.05999370291829109,
-0.14237450063228607,
-0.06183658167719841,
0.46335074305534363,
-0.1418491154909134,
0.224460631608963,
-0.13970360159873962,
0.04635511711239815,
0.40120917558670044,
0.0694127306342125,
-0.1816515177488327,
-0.30111223459243774,
0.14517740905284882,
0.04116130620241165,
0.05858438089489937,
-0.06729059666395187,
-0.3786497712135315,
-0.05275167152285576,
-0.27983230352401733,
0.13260358572006226,
0.3364622890949249,
0.2424456924200058,
0.07561799883842468,
0.09433026611804962,
0.0986526757478714,
-0.03252954035997391,
0.33068495988845825,
-0.16495080292224884,
-0.13839910924434662,
0.009523698128759861,
0.27259281277656555,
-0.21072550117969513,
0.1175260841846466,
-0.32124751806259155,
0.15365956723690033,
-0.009538659825921059,
-0.03618200495839119,
0.0752810686826706,
-0.02653692476451397,
-0.10968147218227386,
0.556442379951477,
0.23271767795085907,
0.2920384705066681,
-0.27229195833206177,
-0.23025186359882355,
0.27563220262527466,
0.13391293585300446,
0.016582775861024857,
-0.20511601865291595,
0.10736611485481262,
-0.1286129653453827,
-0.0995861068367958,
0.37343552708625793,
-0.07063314318656921,
-0.13558728992938995,
-0.18993805348873138,
-0.12482235580682755,
0.5824731588363647,
0.0935560092329979,
-0.06966737657785416,
0.2455466240644455,
-0.013625483959913254,
0.07767555117607117,
0.4613704979419708,
0.25026875734329224,
0.01693439483642578,
0.5474843978881836,
-0.3130880892276764,
0.029888728633522987,
-0.16279393434524536,
-0.006218234542757273,
-0.2004128396511078,
-0.4473770558834076,
0.1316615343093872,
0.31078019738197327,
-0.07245742529630661,
0.18736638128757477,
-0.14681972563266754,
0.304575651884079,
-0.2501972019672394,
0.18190141022205353,
0.05436617508530617,
0.0492214560508728,
-0.10957315564155579,
-0.014270159415900707,
0.34951239824295044,
-0.02500944212079048,
-0.27576231956481934,
-0.00466181430965662,
-0.11504627764225006,
0.14665570855140686,
0.3796013295650482,
0.27335095405578613,
0.1335926055908203,
-0.1753615140914917,
0.004142763093113899,
0.21335841715335846,
0.1663137823343277,
-0.48223042488098145,
0.14352290332317352,
0.3909599781036377,
-0.08867865800857544,
0.2622947692871094,
-0.001730856136418879,
0.5537614822387695,
0.13979572057724,
0.09830769896507263,
-0.0007227387395687401,
-0.10646214336156845,
-0.011388356797397137,
-0.1354411393404007,
0.44462287425994873,
-0.0308791883289814,
-0.10251371562480927,
0.33876681327819824,
0.02803473174571991,
-0.15769372880458832,
0.11466249823570251,
0.19288380444049835,
0.12371599674224854,
-0.17515245079994202,
0.20125770568847656,
0.01588963344693184,
-0.20776617527008057,
-0.17863208055496216,
0.14498060941696167,
-0.3786621391773224,
-0.1633828729391098,
0.25169113278388977,
0.04038425162434578,
0.262458860874176,
-0.13559412956237793,
0.048980243504047394,
-0.11941121518611908,
0.14834453165531158,
0.38399258255958557,
0.2433495819568634,
-0.28533756732940674,
-0.040562503039836884,
-0.602446436882019,
0.22462862730026245,
-0.048772819340229034,
-0.17107343673706055,
0.045160453766584396,
-0.11297576129436493,
-0.047112852334976196,
-0.1518053412437439,
0.38789811730384827,
-0.015927650034427643,
0.11153464019298553,
0.2670120298862457,
-0.47526004910469055,
-0.22400601208209991,
0.17030183970928192,
-0.06630182266235352,
0.2272346317768097,
-0.398876816034317,
0.13031969964504242,
-0.26674482226371765,
-0.013735057786107063,
-0.14266759157180786,
-0.19620110094547272,
0.12866801023483276,
0.3134678304195404,
0.35463401675224304,
0.11241362243890762,
0.2980174720287323,
0.060897741466760635,
-0.2498626708984375,
-0.32302621006965637,
0.118248350918293,
-0.13211661577224731,
0.01565065048635006,
0.2199660986661911,
0.29732900857925415,
-0.40388330817222595,
-0.4329206049442291,
-0.3770739734172821,
0.5200785994529724,
-0.13458770513534546,
0.07144632190465927,
-0.1244048923254013,
-0.04934089258313179,
-0.030625775456428528,
0.2739889323711395,
0.2633129358291626,
0.23375587165355682,
0.07063713669776917,
0.4157317578792572,
-0.19068938493728638,
-0.2998303174972534,
0.6595057249069214,
-0.10658848285675049,
-0.4276301860809326,
0.0981970801949501,
0.40865206718444824,
0.07209647446870804,
-0.16144759953022003,
-0.4712713658809662,
0.1547396034002304,
0.3244366943836212,
0.0784328430891037,
-0.2918297350406647,
0.23153726756572723,
-0.28303882479667664,
0.12893380224704742,
-0.10400558263063431,
0.2516617476940155,
0.2692826986312866,
-0.20871420204639435,
-0.059159982949495316,
-0.1967330127954483
] |
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.049338456243276596,
0.09200115501880646,
-0.07149400562047958,
0.4018488824367523,
0.4151671528816223,
0.235895037651062,
0.6366615891456604,
0.24350285530090332,
0.2364586591720581,
0.23132987320423126,
0.01856823079288006,
0.007743077352643013,
-0.14426842331886292,
-0.31003594398498535,
-0.20153650641441345,
-0.2443147450685501,
-0.1581089049577713,
-0.0416213683784008,
-0.17707853019237518,
0.2177192121744156,
-0.15497922897338867,
0.37873712182044983,
0.0246385857462883,
0.15708383917808533,
-0.5360066294670105,
0.09007903933525085,
-0.1295962631702423,
0.38867461681365967,
-0.02150679938495159,
-0.3729912340641022,
0.051118649542331696,
-0.04671642184257507,
0.06881558150053024,
0.8113579750061035,
-0.00012206859537400305,
-0.3334411680698395,
0.3542337417602539,
-0.05629916861653328,
-0.32718929648399353,
-0.22430925071239471,
-0.16858138144016266,
-0.511711597442627,
-0.034584786742925644,
-0.49880290031433105,
0.18721291422843933,
-0.09511931985616684,
-0.033190254122018814,
-0.8021569848060608,
0.041052524000406265,
0.37330570816993713,
0.12687483429908752,
-0.07834673672914505,
0.09102550894021988,
-0.2579198479652405,
0.3323119580745697,
-0.2779892385005951,
0.004084636922925711,
0.35640305280685425,
0.3556972146034241,
-0.09886661171913147,
-0.1546502411365509,
0.2032179981470108,
-0.03689778968691826,
0.027324935421347618,
0.24715833365917206,
0.07953793555498123,
-0.0874825268983841,
-0.32616525888442993,
0.2958061099052429,
0.4273938834667206,
0.4714377522468567,
-0.09306181222200394,
-0.27931249141693115,
-0.4676957428455353,
0.14249858260154724,
-0.1251060664653778,
0.48853057622909546,
-0.07623869180679321,
-0.2220744788646698,
0.15148839354515076,
-0.17041951417922974,
-0.01962132193148136,
-0.1235976293683052,
-0.11023854464292526,
-0.10197462141513824,
0.06506257504224777,
0.04050867259502411,
0.036279208958148956,
0.3111136555671692,
-0.3483143448829651,
0.23959600925445557,
0.004836644046008587,
0.07427337020635605,
0.26946091651916504,
-0.6542137861251831,
0.1469123512506485,
0.08426710963249207,
0.38549259305000305,
0.2534894347190857,
0.0576435886323452,
-0.2659735679626465,
-0.14830821752548218,
0.19474834203720093,
-0.010465535335242748,
-0.06495588272809982,
0.37420713901519775,
0.194444939494133,
0.16128136217594147,
0.3012427091598511,
0.0779474601149559,
-0.3367469608783722,
-0.10693491250276566,
-0.07648782432079315,
-0.5534635782241821,
0.4451386034488678,
0.13359050452709198,
0.07416312396526337,
-0.3437114357948303,
0.1504586935043335,
0.5705776214599609,
0.10570433735847473,
-0.010489875450730324,
0.22870244085788727,
0.2733798623085022,
0.005434178281575441,
0.11076540499925613,
0.0830746442079544,
-0.08993645012378693,
-0.0889611691236496,
0.10083560645580292,
-0.14731290936470032,
-0.11073005944490433,
-0.2270190566778183,
0.11241002380847931,
0.08920544385910034,
-0.3083971440792084,
0.27928003668785095,
-0.22746551036834717,
0.3152399957180023,
-0.12495838105678558,
-0.08296861499547958,
-0.2377428412437439,
-0.06673310697078705,
0.1559675633907318,
-0.0591057687997818,
0.07391413301229477,
0.24521388113498688,
-0.26073402166366577,
-0.19206145405769348,
-0.07711131125688553,
-0.3397494852542877,
-0.2851884067058563,
-0.06172198802232742,
0.0947030708193779,
-0.16549426317214966,
0.21590223908424377,
0.2415543645620346,
-0.2671959400177002,
0.6555524468421936,
-0.07981888949871063,
0.012796743772923946,
-0.27476513385772705,
-0.1418103724718094,
0.007191940676420927,
0.040825843811035156,
0.5534656047821045,
0.13252398371696472,
-0.017562557011842728,
-0.06878886371850967,
0.12828119099140167,
0.008666734211146832,
0.37226003408432007,
0.18064580857753754,
-0.053596120327711105,
-0.42195242643356323,
0.3124937117099762,
0.22687120735645294,
-0.24028083682060242,
-0.4869851768016815,
0.32153841853141785,
-0.39430686831474304,
0.09949249774217606,
0.3229121267795563,
0.022883394733071327,
0.05171002820134163,
-0.02458232082426548,
0.28533726930618286,
0.1822134107351303,
-0.026095788925886154,
0.023495610803365707,
-0.2025238275527954,
-0.10733117908239365,
-0.04063034430146217,
0.1691949963569641,
0.010954411700367928,
0.06700119376182556,
0.07961974292993546,
-0.17519238591194153,
0.2715688645839691,
0.03146372362971306,
-0.20404429733753204,
0.373680055141449,
0.13824260234832764,
0.32671883702278137,
0.18608276546001434,
-0.10632786899805069,
-0.5937498807907104,
0.26372119784355164,
-0.12184843420982361,
-0.17873190343379974,
-0.2175939530134201,
-0.18680478632450104,
-0.174989253282547,
-0.007289542350918055,
0.0034594256430864334,
0.13513663411140442,
-0.020408494397997856,
0.28324878215789795,
0.1417800337076187,
-0.13176320493221283,
0.0934407189488411,
0.5883793830871582,
-0.17024436593055725,
0.017597364261746407,
-0.4781182110309601,
-0.17112524807453156,
-0.1178547739982605,
-0.11254028230905533,
0.031506508588790894,
0.0016394315753132105,
0.3693963587284088,
-0.10896860063076019,
-0.34435176849365234,
0.448075532913208,
0.3332768976688385,
0.09753286838531494,
-0.17892509698867798,
-0.004431127104908228,
-0.056864384561777115,
0.22077536582946777,
0.07266993075609207,
0.03981170803308487,
0.00778551772236824,
0.01429200079292059,
-0.2135753631591797,
0.300015926361084,
-0.14081652462482452,
0.271276593208313,
0.02861357294023037,
0.1682407408952713,
0.24617943167686462,
-0.13181336224079132,
0.0643458142876625,
-0.1761227697134018,
0.6458839178085327,
-0.2163524627685547,
0.3048400580883026,
0.054780006408691406,
0.045231517404317856,
-0.14486448466777802,
0.6458193063735962,
0.045393235981464386,
-0.00017754710279405117,
0.19774267077445984,
0.15620115399360657,
-0.040815383195877075,
-0.01937323622405529,
0.3064884543418884,
0.5111443996429443,
0.19205769896507263,
-0.03012317605316639,
-0.2065051943063736,
0.39415794610977173,
-0.22383439540863037,
0.2563192844390869,
0.01590774953365326,
-0.002792695537209511,
0.3657033443450928,
0.049617886543273926,
-0.1290871948003769,
0.05148366838693619,
-0.8095083236694336,
-0.05044201388955116,
0.22369761765003204,
-0.31980815529823303,
0.14808262884616852,
-0.13932599127292633,
-0.043205056339502335,
-0.023800354450941086,
0.000490256177727133,
-0.08039785176515579,
-0.4162813127040863,
-0.188893660902977,
0.27850663661956787,
-0.14183583855628967,
0.21453386545181274,
-0.11883416026830673,
-0.0032419837079942226,
0.2712831497192383,
-0.014538897201418877,
-0.295027494430542,
-0.0016123719979077578,
0.08034414052963257,
-0.08376043289899826,
0.2720727324485779,
-0.5375028252601624,
0.08380401879549026,
-0.12566345930099487,
-0.06310749053955078,
-0.508353590965271,
-0.24988092482089996,
0.11166766285896301,
-0.1684800684452057,
0.29356488585472107,
0.3413660526275635,
0.20785769820213318,
0.16666178405284882,
0.05889628827571869,
0.004962249659001827,
-0.26227903366088867,
0.023669417947530746,
0.23266388475894928,
0.17789937555789948,
-0.022819215431809425,
-0.19179971516132355,
-0.023455657064914703,
-0.3463740944862366,
-0.4160332977771759,
0.3207843601703644,
0.03030368685722351,
0.22792910039424896,
0.34118983149528503,
-0.07087253034114838,
0.29781198501586914,
-0.017972886562347412,
0.2472923845052719,
-0.0879063829779625,
-0.44637057185173035,
0.41706112027168274,
-0.15252241492271423,
-0.29905927181243896,
-0.4318077564239502,
0.2980133295059204,
-0.03550932556390762,
0.10551846027374268,
-0.4223639965057373,
-0.1790723353624344,
-0.40126049518585205,
0.3389853239059448,
-0.33572012186050415,
0.005409834906458855,
0.19701984524726868,
-0.08520099520683289,
-0.05634801834821701,
-0.106937937438488,
0.0849030613899231,
0.2325122058391571,
0.011036265641450882,
-0.009520838037133217,
0.09298152476549149,
0.295166939496994,
-0.11607855558395386,
0.4532134234905243,
0.36166617274284363,
0.07534868270158768,
0.1953808069229126,
-0.13766977190971375,
0.18435724079608917,
-0.25903233885765076,
-0.12694619596004486,
0.023937396705150604,
0.17447155714035034,
-0.2215840369462967,
0.1342058926820755,
-0.08539141714572906,
0.014082743786275387,
-0.13332022726535797,
-0.05779329687356949,
0.10780753195285797,
-0.29602915048599243,
0.00731634022668004,
0.04858717322349548,
0.05249020457267761,
0.03107982501387596,
0.1456940472126007,
-0.19488675892353058,
-0.13091051578521729,
-0.024088948965072632,
0.3084794878959656,
0.054077427834272385,
-0.023354923352599144,
-0.24687322974205017,
0.0915093868970871,
-0.33714163303375244,
0.44400912523269653,
0.18309196829795837,
0.21379797160625458,
-0.06935892254114151,
-0.1601731926202774,
-0.08004838973283768,
0.04600727930665016,
0.6831175088882446,
0.09912998974323273,
0.31609299778938293,
0.1554955691099167,
0.2547038495540619,
-0.12308706343173981,
0.03917166218161583,
0.07955341041088104,
0.3701871633529663,
0.13904182612895966,
0.4079340994358063,
-0.23080968856811523,
0.03760877624154091,
-0.1833166778087616,
0.18554222583770752,
-0.11663345247507095,
-0.4492173492908478,
-0.026286426931619644,
0.00879597757011652,
-0.2636871933937073,
0.16161991655826569,
0.03360505774617195,
0.24423019587993622,
0.061672527343034744,
0.004912979900836945,
-0.06017689406871796,
-0.07477884739637375,
0.16015420854091644,
0.17483550310134888,
0.2812635898590088,
-0.4468778371810913,
0.2643652856349945,
-0.027559295296669006,
-0.1595296412706375,
0.23041245341300964,
0.5639728307723999,
-0.44398221373558044,
-0.24784311652183533,
0.4144725501537323,
-0.35655882954597473,
0.0764390379190445,
0.4287085235118866,
-0.31076687574386597,
-0.1584235280752182,
0.35820621252059937,
0.6321601271629333,
0.12365608662366867,
0.02578241005539894,
0.03256859630346298,
0.1308743804693222,
-0.15302151441574097,
-0.3346109092235565,
0.2163311094045639,
0.24309523403644562,
-0.017834866419434547,
0.5360276103019714,
0.02425113506615162,
-0.302545964717865,
0.26139360666275024,
-0.20595420897006989,
1.0209472179412842,
-0.18544842302799225,
0.1871502548456192,
-0.019080346450209618,
0.12876717746257782,
0.49929922819137573,
0.00929019320756197,
-0.08422508835792542,
-0.42681437730789185,
-0.4827864170074463,
0.140203058719635,
-0.14980436861515045,
0.23977252840995789,
-0.036678943783044815,
-0.13019996881484985,
0.31392866373062134,
-0.25951018929481506,
0.017761893570423126,
-0.17453204095363617,
0.4527934789657593,
-0.6466594934463501,
-0.2542142868041992,
-0.250322550535202,
0.047983571887016296,
-0.04398152977228165,
0.11015111207962036,
0.061711713671684265,
0.16868649423122406,
-0.3292609751224518,
-0.27816757559776306,
-0.22720637917518616,
0.037031471729278564,
-0.4157642722129822,
0.08353079110383987,
-0.24390184879302979,
-0.2822072207927704,
-0.09024185687303543,
0.2852131128311157,
-0.0320499949157238,
0.40133723616600037,
-0.20359505712985992,
0.09235065430402756,
0.08282216638326645,
0.09687092900276184,
0.07299895584583282,
-0.06324401497840881,
0.3176954686641693,
0.01689671166241169,
0.07435327023267746,
-0.28570470213890076,
0.005397237371653318,
-0.1422327160835266,
0.03248336911201477,
-0.023427361622452736,
0.15041406452655792,
-0.2308288812637329,
-0.32375675439834595,
-0.3392724096775055,
-0.2038624882698059,
-0.1504354625940323,
0.05216049402952194,
0.33356940746307373,
-0.23872414231300354,
-0.008876566775143147,
-0.28575652837753296,
-0.40904679894447327,
-0.009664707817137241,
0.30550962686538696,
-0.14810813963413239,
-0.04720471799373627,
0.43272846937179565,
0.30000466108322144,
-0.21020935475826263,
-0.17791692912578583,
-0.01901724562048912,
-0.17999766767024994,
-0.6621260046958923,
0.08230829983949661,
0.036040835082530975,
-0.04271087050437927,
-0.2416066974401474,
-0.266829252243042,
0.20536068081855774,
0.12652985751628876,
0.11139851808547974,
-0.4697997570037842,
-0.4082915186882019,
-0.2329970896244049,
-0.29766833782196045,
0.2016153633594513,
-0.056624025106430054,
-0.35514894127845764,
-0.258842408657074,
0.032774291932582855,
-0.2122098058462143,
0.05999370291829109,
-0.14237450063228607,
-0.06183658167719841,
0.46335074305534363,
-0.1418491154909134,
0.224460631608963,
-0.13970360159873962,
0.04635511711239815,
0.40120917558670044,
0.0694127306342125,
-0.1816515177488327,
-0.30111223459243774,
0.14517740905284882,
0.04116130620241165,
0.05858438089489937,
-0.06729059666395187,
-0.3786497712135315,
-0.05275167152285576,
-0.27983230352401733,
0.13260358572006226,
0.3364622890949249,
0.2424456924200058,
0.07561799883842468,
0.09433026611804962,
0.0986526757478714,
-0.03252954035997391,
0.33068495988845825,
-0.16495080292224884,
-0.13839910924434662,
0.009523698128759861,
0.27259281277656555,
-0.21072550117969513,
0.1175260841846466,
-0.32124751806259155,
0.15365956723690033,
-0.009538659825921059,
-0.03618200495839119,
0.0752810686826706,
-0.02653692476451397,
-0.10968147218227386,
0.556442379951477,
0.23271767795085907,
0.2920384705066681,
-0.27229195833206177,
-0.23025186359882355,
0.27563220262527466,
0.13391293585300446,
0.016582775861024857,
-0.20511601865291595,
0.10736611485481262,
-0.1286129653453827,
-0.0995861068367958,
0.37343552708625793,
-0.07063314318656921,
-0.13558728992938995,
-0.18993805348873138,
-0.12482235580682755,
0.5824731588363647,
0.0935560092329979,
-0.06966737657785416,
0.2455466240644455,
-0.013625483959913254,
0.07767555117607117,
0.4613704979419708,
0.25026875734329224,
0.01693439483642578,
0.5474843978881836,
-0.3130880892276764,
0.029888728633522987,
-0.16279393434524536,
-0.006218234542757273,
-0.2004128396511078,
-0.4473770558834076,
0.1316615343093872,
0.31078019738197327,
-0.07245742529630661,
0.18736638128757477,
-0.14681972563266754,
0.304575651884079,
-0.2501972019672394,
0.18190141022205353,
0.05436617508530617,
0.0492214560508728,
-0.10957315564155579,
-0.014270159415900707,
0.34951239824295044,
-0.02500944212079048,
-0.27576231956481934,
-0.00466181430965662,
-0.11504627764225006,
0.14665570855140686,
0.3796013295650482,
0.27335095405578613,
0.1335926055908203,
-0.1753615140914917,
0.004142763093113899,
0.21335841715335846,
0.1663137823343277,
-0.48223042488098145,
0.14352290332317352,
0.3909599781036377,
-0.08867865800857544,
0.2622947692871094,
-0.001730856136418879,
0.5537614822387695,
0.13979572057724,
0.09830769896507263,
-0.0007227387395687401,
-0.10646214336156845,
-0.011388356797397137,
-0.1354411393404007,
0.44462287425994873,
-0.0308791883289814,
-0.10251371562480927,
0.33876681327819824,
0.02803473174571991,
-0.15769372880458832,
0.11466249823570251,
0.19288380444049835,
0.12371599674224854,
-0.17515245079994202,
0.20125770568847656,
0.01588963344693184,
-0.20776617527008057,
-0.17863208055496216,
0.14498060941696167,
-0.3786621391773224,
-0.1633828729391098,
0.25169113278388977,
0.04038425162434578,
0.262458860874176,
-0.13559412956237793,
0.048980243504047394,
-0.11941121518611908,
0.14834453165531158,
0.38399258255958557,
0.2433495819568634,
-0.28533756732940674,
-0.040562503039836884,
-0.602446436882019,
0.22462862730026245,
-0.048772819340229034,
-0.17107343673706055,
0.045160453766584396,
-0.11297576129436493,
-0.047112852334976196,
-0.1518053412437439,
0.38789811730384827,
-0.015927650034427643,
0.11153464019298553,
0.2670120298862457,
-0.47526004910469055,
-0.22400601208209991,
0.17030183970928192,
-0.06630182266235352,
0.2272346317768097,
-0.398876816034317,
0.13031969964504242,
-0.26674482226371765,
-0.013735057786107063,
-0.14266759157180786,
-0.19620110094547272,
0.12866801023483276,
0.3134678304195404,
0.35463401675224304,
0.11241362243890762,
0.2980174720287323,
0.060897741466760635,
-0.2498626708984375,
-0.32302621006965637,
0.118248350918293,
-0.13211661577224731,
0.01565065048635006,
0.2199660986661911,
0.29732900857925415,
-0.40388330817222595,
-0.4329206049442291,
-0.3770739734172821,
0.5200785994529724,
-0.13458770513534546,
0.07144632190465927,
-0.1244048923254013,
-0.04934089258313179,
-0.030625775456428528,
0.2739889323711395,
0.2633129358291626,
0.23375587165355682,
0.07063713669776917,
0.4157317578792572,
-0.19068938493728638,
-0.2998303174972534,
0.6595057249069214,
-0.10658848285675049,
-0.4276301860809326,
0.0981970801949501,
0.40865206718444824,
0.07209647446870804,
-0.16144759953022003,
-0.4712713658809662,
0.1547396034002304,
0.3244366943836212,
0.0784328430891037,
-0.2918297350406647,
0.23153726756572723,
-0.28303882479667664,
0.12893380224704742,
-0.10400558263063431,
0.2516617476940155,
0.2692826986312866,
-0.20871420204639435,
-0.059159982949495316,
-0.1967330127954483
] |
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.386465460062027,
-0.2204953283071518,
0.08948137611150742,
0.4387418031692505,
0.21570804715156555,
0.12292339652776718,
-0.03690952807664871,
0.30938827991485596,
0.24227766692638397,
0.09550278633832932,
-0.22643151879310608,
0.42615339159965515,
-0.064175546169281,
0.3035336136817932,
-0.009466181509196758,
-0.25847846269607544,
-0.00450564082711935,
0.23376581072807312,
-0.10492606461048126,
0.12687644362449646,
-0.000555428909137845,
0.19412657618522644,
-0.24699340760707855,
-0.030422622337937355,
0.05222805589437485,
-0.10810384154319763,
0.012406794354319572,
0.28052520751953125,
-0.059582389891147614,
-0.4462362825870514,
0.12590616941452026,
-0.06154816225171089,
0.41211456060409546,
0.33757397532463074,
-0.00011450322926975787,
0.2734486162662506,
0.47214242815971375,
-0.12278442084789276,
-0.4853440225124359,
-0.21211490035057068,
-0.21866536140441895,
0.09612726420164108,
0.04283475875854492,
-0.15663516521453857,
-0.009134088642895222,
0.07111319899559021,
-0.04000510275363922,
-0.7192984223365784,
0.31784960627555847,
0.345636248588562,
0.17784982919692993,
0.04260065779089928,
-0.048948485404253006,
0.026822295039892197,
0.06883881986141205,
-0.29866480827331543,
-0.09200667589902878,
0.12181737273931503,
0.23672670125961304,
0.22874121367931366,
-0.3595725893974304,
0.38459041714668274,
-0.06588845700025558,
0.0601840540766716,
0.0944143682718277,
0.09672414511442184,
-0.17494960129261017,
-0.4655051827430725,
-0.0073937345296144485,
0.18841427564620972,
0.6776785254478455,
-0.2555166780948639,
-0.4161974787712097,
-0.23198768496513367,
-0.0021713825408369303,
-0.6144573092460632,
0.14653171598911285,
0.1489274948835373,
-0.4673643708229065,
0.12805970013141632,
0.24596327543258667,
-0.008753356523811817,
-0.3279946744441986,
-0.04587305337190628,
-0.24679814279079437,
0.3882230818271637,
-0.0767858624458313,
-0.02372642047703266,
0.02729434333741665,
-0.08662902563810349,
0.46277427673339844,
-0.21103473007678986,
-0.2845941185951233,
-0.0639788806438446,
-0.4397555887699127,
-0.04206616431474686,
-0.07651294767856598,
-0.09410964697599411,
0.1681467443704605,
0.21538971364498138,
0.2953196167945862,
0.088252954185009,
0.15436503291130066,
0.09264443814754486,
0.35552626848220825,
0.3608665466308594,
0.059832166880369186,
0.1853773295879364,
0.1311807632446289,
0.09943130612373352,
0.13662409782409668,
-0.1818920075893402,
-0.14648935198783875,
-0.03728073835372925,
0.028163373470306396,
-0.013114248402416706,
0.26285862922668457,
-0.19123788177967072,
-0.413846880197525,
0.029792074114084244,
-0.3057215213775635,
-0.07946722209453583,
0.005590961314737797,
0.28171685338020325,
0.09583374112844467,
0.4187794625759125,
0.019458435475826263,
0.11786723881959915,
-0.23968352377414703,
-0.4573931396007538,
-0.08781112730503082,
-0.12471845000982285,
-0.001007902785204351,
0.12334701418876648,
0.015335326083004475,
-0.18868350982666016,
0.15157461166381836,
-0.046537552028894424,
0.16210031509399414,
-0.0012192227877676487,
-0.020855387672781944,
-0.11005986481904984,
0.021629326045513153,
0.20498394966125488,
0.2180560976266861,
0.16403533518314362,
0.17951570451259613,
-0.19978496432304382,
-0.13068245351314545,
0.08862241357564926,
-0.14163339138031006,
-0.1671275496482849,
-0.17883794009685516,
0.21664686501026154,
-0.009402032941579819,
-0.3506263196468353,
-0.09378953278064728,
0.2814685106277466,
0.1409597545862198,
-0.2037898749113083,
-0.14107052981853485,
-0.0391463041305542,
-0.12413296848535538,
-0.08651597052812576,
0.17927883565425873,
0.5796175599098206,
-0.1855909526348114,
-0.1380210518836975,
-0.15213756263256073,
0.0008930093608796597,
0.5833055973052979,
0.3344021737575531,
-0.0607914961874485,
0.0897975042462349,
-0.1707223653793335,
0.14765405654907227,
0.5017139911651611,
-0.1436588019132614,
-0.5796040296554565,
0.5436664819717407,
-0.03960771486163139,
0.5637272000312805,
0.27070316672325134,
0.022536786273121834,
0.17423367500305176,
0.043119776993989944,
0.3135282099246979,
0.3299023509025574,
-0.14845924079418182,
0.0074823759496212006,
-0.33346664905548096,
-0.0399840883910656,
0.4416945278644562,
0.19122901558876038,
0.0674290731549263,
0.2502864599227905,
-0.02887396514415741,
-0.0626678466796875,
0.36897826194763184,
-0.07525694370269775,
0.07634545862674713,
0.04100821539759636,
0.14688830077648163,
0.012037484906613827,
0.13793893158435822,
-0.209076926112175,
-0.31068286299705505,
0.29723164439201355,
0.07492983341217041,
0.012709342874586582,
-0.3174346089363098,
0.20317308604717255,
-0.1906457394361496,
0.0017469982849434018,
-0.2628940939903259,
-0.25904056429862976,
0.12431700527667999,
0.31708019971847534,
0.07562147080898285,
0.05059032887220383,
-0.30847570300102234,
0.7747209072113037,
-0.07825540006160736,
-0.013134914450347424,
-0.45491498708724976,
0.20249320566654205,
-0.07077714800834656,
-0.2014572024345398,
0.01643923483788967,
-0.12656596302986145,
0.0672556608915329,
-0.01619260199368,
-0.2579920291900635,
0.3313201665878296,
-0.23661373555660248,
0.26407110691070557,
-0.19543799757957458,
-0.17319762706756592,
0.2897445559501648,
-0.3644789755344391,
-0.08668423444032669,
0.2706027328968048,
0.1075037270784378,
0.1252097487449646,
-0.01769862323999405,
0.14808396995067596,
0.20709064602851868,
0.236133873462677,
0.04344852268695831,
0.11434853076934814,
0.19616827368736267,
-0.08167490363121033,
-0.06868351250886917,
-0.08500946313142776,
0.3240481913089752,
-0.3548784554004669,
0.04674963280558586,
-0.19892388582229614,
-0.27229881286621094,
0.08236113935709,
0.35867932438850403,
-0.14038214087486267,
-0.04927396774291992,
0.33032408356666565,
-0.2885323166847229,
-0.16390761733055115,
0.3145599365234375,
0.19400939345359802,
0.47233647108078003,
0.08152145147323608,
0.2573353946208954,
-0.04558803141117096,
-0.18864788115024567,
-0.07350555807352066,
0.3051702380180359,
0.13748383522033691,
0.03146423026919365,
0.2464115023612976,
0.03000597469508648,
0.1635744273662567,
-0.32291677594184875,
-0.3497168719768524,
-0.05663178861141205,
0.11234155297279358,
-0.3201865553855896,
0.3063024580478668,
-0.3882676362991333,
-0.46517413854599,
0.04635055735707283,
0.15600904822349548,
0.06890591233968735,
-0.32355862855911255,
-0.1817554235458374,
0.23250597715377808,
-0.0038818209432065487,
0.1636846661567688,
-0.2682056427001953,
0.08954697102308273,
0.2671777009963989,
-0.013469196856021881,
-0.3418697118759155,
-0.18084806203842163,
-0.27296310663223267,
0.05919759348034859,
0.17499542236328125,
-0.4228036105632782,
0.17691944539546967,
0.0074257575906813145,
-0.11605405807495117,
-0.14017443358898163,
-0.07642343640327454,
0.319782018661499,
-0.15549936890602112,
0.15689589083194733,
-0.27748653292655945,
0.14939184486865997,
0.2213623970746994,
-0.25034916400909424,
0.1219492107629776,
0.09083330631256104,
-0.11878497898578644,
0.2801247537136078,
0.09408914297819138,
-0.02416118234395981,
-0.030583128333091736,
-0.3010807931423187,
-0.3024667203426361,
-0.6177487373352051,
0.054968565702438354,
0.0454266183078289,
0.21355202794075012,
0.16430477797985077,
0.017034968361258507,
0.09682463854551315,
0.3292068541049957,
0.0991600751876831,
-0.11421222984790802,
-0.41994330286979675,
0.37474480271339417,
-0.1670149564743042,
-0.2868408262729645,
-0.3248366415500641,
-0.06815972179174423,
0.19729065895080566,
0.2589266300201416,
-0.529524564743042,
0.29501691460609436,
-0.40810325741767883,
0.08489316701889038,
-0.3834521174430847,
-0.09745580703020096,
-0.02615170367062092,
0.07628902047872543,
-0.0349886454641819,
-0.1878577321767807,
0.07074666023254395,
-0.11695155501365662,
0.09900696575641632,
0.20661021769046783,
0.1086314395070076,
0.3698714077472687,
0.10084923356771469,
0.3327501118183136,
0.4812113344669342,
-0.019549310207366943,
0.3407554030418396,
0.08289064466953278,
0.15379996597766876,
-0.10043349862098694,
-0.0627889633178711,
-0.09556200355291367,
-0.22808018326759338,
-0.026119060814380646,
0.09819912165403366,
-0.0962134525179863,
-0.576229989528656,
-0.2840520143508911,
0.05491483211517334,
-0.06923650950193405,
-0.23831042647361755,
0.05288289859890938,
-0.5117741823196411,
0.042048510164022446,
-0.1872573345899582,
0.15833935141563416,
0.08079688996076584,
0.052001792937517166,
0.0860462635755539,
0.17725242674350739,
0.12616372108459473,
0.17212052643299103,
-0.1850224882364273,
-0.06390613317489624,
-0.48819053173065186,
0.182585209608078,
0.10512657463550568,
0.42157506942749023,
-0.16780978441238403,
-0.13271598517894745,
0.07911507040262222,
-0.06520642340183258,
0.3487047851085663,
-0.27541694045066833,
0.003567045321688056,
0.26739418506622314,
0.1421363800764084,
-0.14155235886573792,
0.0917665958404541,
-0.320945680141449,
0.13682910799980164,
0.23595532774925232,
0.09742072224617004,
-0.17182357609272003,
0.03333970159292221,
-0.08841889351606369,
-0.07249537855386734,
-0.1253030002117157,
-0.016399001702666283,
-0.17049703001976013,
-0.24923811852931976,
-0.1520107090473175,
-0.1342426836490631,
0.20327186584472656,
0.1256839632987976,
-0.012460368685424328,
-0.05679302662611008,
-0.04608200490474701,
-0.039624813944101334,
0.2418586015701294,
0.2213253229856491,
0.13990986347198486,
-0.07228010147809982,
0.2290113866329193,
0.06719914078712463,
0.2844450771808624,
0.22921690344810486,
0.8364324569702148,
0.11819501221179962,
-0.5624253749847412,
0.2350824922323227,
0.2339562624692917,
0.1660991609096527,
0.13053955137729645,
-0.14823268353939056,
-0.008516259491443634,
-0.040385037660598755,
0.26982149481773376,
-0.3024728000164032,
0.21465560793876648,
0.21123334765434265,
-0.05072057619690895,
-0.5149303078651428,
-0.43575385212898254,
0.5883391499519348,
-0.03936808928847313,
-0.07619041204452515,
0.7872922420501709,
-0.1665055751800537,
-0.317156583070755,
0.4775419235229492,
0.023435065522789955,
0.7585869431495667,
0.09439579397439957,
0.21686874330043793,
0.24074797332286835,
-0.32072678208351135,
0.5003336668014526,
-0.2320675253868103,
0.33466842770576477,
-0.12061024457216263,
-0.3350299298763275,
-0.08310927450656891,
-0.10410968214273453,
0.1709021031856537,
-0.1476040780544281,
-0.6302544474601746,
0.1709606647491455,
-0.05964367836713791,
-0.25280579924583435,
0.3353518843650818,
0.27422672510147095,
-0.6082696914672852,
-0.3062931001186371,
-0.06754918396472931,
0.13888253271579742,
-0.22135929763317108,
0.3239615857601166,
0.1382445991039276,
-0.22023314237594604,
-0.051572758704423904,
-0.08431030064821243,
-0.47023552656173706,
0.4758627116680145,
-0.2765567898750305,
0.16241489350795746,
-0.23903077840805054,
-0.4760979115962982,
0.15131258964538574,
0.26640310883522034,
-0.14213182032108307,
-0.22578543424606323,
-0.15825115144252777,
0.2350439429283142,
0.1860542893409729,
0.1280229389667511,
0.09930624812841415,
0.15145885944366455,
0.38835853338241577,
0.05327725410461426,
-0.016812974587082863,
0.18844200670719147,
-0.008979782462120056,
-0.16062846779823303,
-0.06378106027841568,
0.055457212030887604,
0.31831416487693787,
-0.2681804597377777,
0.23685671389102936,
-0.10585157573223114,
0.04292502626776695,
-0.18425336480140686,
0.08697214722633362,
-0.01883167400956154,
-0.17405515909194946,
-0.07388757914304733,
-0.0812973901629448,
-0.21967639029026031,
-0.08474412560462952,
0.37712058424949646,
0.1454583704471588,
0.31797096133232117,
0.4994198977947235,
0.028117282316088676,
-0.17787961661815643,
-0.10367143899202347,
-0.05514967069029808,
-0.29314014315605164,
-0.25261250138282776,
0.06935932487249374,
-0.24147586524486542,
-0.1610274761915207,
-0.2706690728664398,
0.0038271546363830566,
0.04483797401189804,
-0.10355384647846222,
-0.11373839527368546,
-0.2993661165237427,
-0.19063755869865417,
-0.02661498822271824,
-0.12424395233392715,
0.21993079781532288,
-0.17221972346305847,
0.02220410294830799,
0.0031193061731755733,
0.12908627092838287,
-0.2706835865974426,
-0.12285953760147095,
-0.07537078112363815,
0.023117728531360626,
0.26721060276031494,
0.029268130660057068,
0.259233683347702,
0.10966996103525162,
0.1476224809885025,
0.31390470266342163,
-0.027674557641148567,
-0.16095395386219025,
-0.17879526317119598,
0.13848938047885895,
0.016531458124518394,
-0.348052054643631,
-0.15489462018013,
-0.05662064999341965,
0.012690556235611439,
-0.1251358836889267,
0.3503149449825287,
0.18123020231723785,
0.03809667378664017,
0.2706013321876526,
0.12401355803012848,
0.056335821747779846,
-0.23264853656291962,
0.15423621237277985,
-0.2642734944820404,
0.24012994766235352,
0.08111169189214706,
0.09284091740846634,
-0.07554018497467041,
-0.011869107373058796,
-0.3646133244037628,
0.0622694194316864,
0.10179527848958969,
-0.028018299490213394,
0.5909274220466614,
-0.4241813123226166,
0.17204461991786957,
-0.04977495223283768,
0.06602954864501953,
0.40452247858047485,
-0.229619100689888,
-0.2089621126651764,
0.08508562296628952,
0.2000514566898346,
-0.043203044682741165,
-0.21262098848819733,
-0.40104803442955017,
-0.10164165496826172,
0.011238278821110725,
0.14595948159694672,
-0.10688955336809158,
-0.27218329906463623,
0.09996354579925537,
-0.21030840277671814,
0.4859829545021057,
0.33584317564964294,
0.2670661211013794,
0.48363882303237915,
-0.18112805485725403,
0.02284720353782177,
-0.2260242998600006,
0.020459555089473724,
0.1999063491821289,
0.29704374074935913,
0.0035519178491085768,
-0.007869269698858261,
-0.16136623919010162,
0.21781925857067108,
-0.18597522377967834,
-0.4821957051753998,
-0.07974797487258911,
0.10244731605052948,
-0.1647557020187378,
0.390193372964859,
0.14890894293785095,
0.1521603912115097,
-0.27793532609939575,
-0.05192176625132561,
-0.04584239050745964,
-0.06612592190504074,
-0.014279805123806,
-0.0960812121629715,
0.10687536746263504,
-0.01285640336573124,
-0.32792216539382935,
0.0976085290312767,
0.012400006875395775,
0.06336840242147446,
-0.019864600151777267,
0.28080615401268005,
-0.2884635925292969,
-0.11850128322839737,
-0.08222784847021103,
0.1043180301785469,
0.29992547631263733,
-0.3544152081012726,
0.4440692365169525,
0.3661908805370331,
-0.1568613350391388,
0.028249986469745636,
0.07000205665826797,
0.4816074073314667,
0.28533828258514404,
-0.1766507923603058,
0.0946502685546875,
0.33741632103919983,
-0.043637245893478394,
-0.04022098705172539,
0.04425389692187309,
0.2830947935581207,
0.17931906878948212,
0.4566896855831146,
0.08873908966779709,
-0.1485418677330017,
0.10457196086645126,
0.08143539726734161,
0.2538890838623047,
-0.2799385190010071,
0.462319016456604,
-0.11950677633285522,
0.03669220954179764,
0.027242159470915794,
-0.33657145500183105,
-0.5624158382415771,
-0.028204504400491714,
0.034896183758974075,
-0.228500097990036,
0.07452432066202164,
-0.008112411014735699,
0.06287817656993866,
0.1139545887708664,
0.4926685094833374,
0.3248409926891327,
-0.01884552091360092,
-0.22450987994670868,
-0.15087901055812836,
-0.23558320105075836,
0.2332025021314621,
-0.06747936457395554,
-0.12314790487289429,
0.17528623342514038,
0.22192269563674927,
-0.00484226131811738,
0.16804936528205872,
-0.15844476222991943,
0.020454589277505875,
-0.2672829329967499,
0.14057262241840363,
-0.3995796740055084,
-0.3515673279762268,
0.19196300208568573,
0.17357976734638214,
-0.0483119860291481,
-0.576480507850647,
0.18813888728618622,
-0.15023992955684662,
0.16081759333610535,
0.09261247515678406,
-0.2418481409549713,
0.10114527493715286,
-0.2756577432155609,
0.5297330021858215,
0.23311080038547516,
0.37920081615448,
-0.18429528176784515,
-0.41195613145828247,
-0.0992456004023552,
-0.37623047828674316,
-0.27491435408592224,
-0.015585196204483509,
0.10833387821912766,
0.569632351398468,
-0.14933405816555023,
-0.23738358914852142,
-0.35747087001800537,
0.32626259326934814,
0.060889992862939835,
-0.2656737267971039,
-0.2735382616519928,
0.17336998879909515,
-0.11945971846580505,
0.21312569081783295,
0.3050515353679657,
0.3803454339504242,
-0.028712939471006393,
0.16399526596069336,
-0.22351542115211487,
-0.4333209693431854,
0.5773107409477234,
-0.3461061716079712,
-0.2659672498703003,
0.24184010922908783,
0.06381399184465408,
0.32649698853492737,
0.24101991951465607,
-0.45966625213623047,
0.08936617523431778,
0.35565486550331116,
-0.2354128360748291,
-0.15118609368801117,
0.14214642345905304,
0.22597070038318634,
-0.06071964651346207,
-0.08503957837820053,
0.4553110897541046,
0.24239663779735565,
-0.2492043823003769,
0.1750812530517578,
-0.17863892018795013
] |
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.386465460062027,
-0.2204953283071518,
0.08948137611150742,
0.4387418031692505,
0.21570804715156555,
0.12292339652776718,
-0.03690952807664871,
0.30938827991485596,
0.24227766692638397,
0.09550278633832932,
-0.22643151879310608,
0.42615339159965515,
-0.064175546169281,
0.3035336136817932,
-0.009466181509196758,
-0.25847846269607544,
-0.00450564082711935,
0.23376581072807312,
-0.10492606461048126,
0.12687644362449646,
-0.000555428909137845,
0.19412657618522644,
-0.24699340760707855,
-0.030422622337937355,
0.05222805589437485,
-0.10810384154319763,
0.012406794354319572,
0.28052520751953125,
-0.059582389891147614,
-0.4462362825870514,
0.12590616941452026,
-0.06154816225171089,
0.41211456060409546,
0.33757397532463074,
-0.00011450322926975787,
0.2734486162662506,
0.47214242815971375,
-0.12278442084789276,
-0.4853440225124359,
-0.21211490035057068,
-0.21866536140441895,
0.09612726420164108,
0.04283475875854492,
-0.15663516521453857,
-0.009134088642895222,
0.07111319899559021,
-0.04000510275363922,
-0.7192984223365784,
0.31784960627555847,
0.345636248588562,
0.17784982919692993,
0.04260065779089928,
-0.048948485404253006,
0.026822295039892197,
0.06883881986141205,
-0.29866480827331543,
-0.09200667589902878,
0.12181737273931503,
0.23672670125961304,
0.22874121367931366,
-0.3595725893974304,
0.38459041714668274,
-0.06588845700025558,
0.0601840540766716,
0.0944143682718277,
0.09672414511442184,
-0.17494960129261017,
-0.4655051827430725,
-0.0073937345296144485,
0.18841427564620972,
0.6776785254478455,
-0.2555166780948639,
-0.4161974787712097,
-0.23198768496513367,
-0.0021713825408369303,
-0.6144573092460632,
0.14653171598911285,
0.1489274948835373,
-0.4673643708229065,
0.12805970013141632,
0.24596327543258667,
-0.008753356523811817,
-0.3279946744441986,
-0.04587305337190628,
-0.24679814279079437,
0.3882230818271637,
-0.0767858624458313,
-0.02372642047703266,
0.02729434333741665,
-0.08662902563810349,
0.46277427673339844,
-0.21103473007678986,
-0.2845941185951233,
-0.0639788806438446,
-0.4397555887699127,
-0.04206616431474686,
-0.07651294767856598,
-0.09410964697599411,
0.1681467443704605,
0.21538971364498138,
0.2953196167945862,
0.088252954185009,
0.15436503291130066,
0.09264443814754486,
0.35552626848220825,
0.3608665466308594,
0.059832166880369186,
0.1853773295879364,
0.1311807632446289,
0.09943130612373352,
0.13662409782409668,
-0.1818920075893402,
-0.14648935198783875,
-0.03728073835372925,
0.028163373470306396,
-0.013114248402416706,
0.26285862922668457,
-0.19123788177967072,
-0.413846880197525,
0.029792074114084244,
-0.3057215213775635,
-0.07946722209453583,
0.005590961314737797,
0.28171685338020325,
0.09583374112844467,
0.4187794625759125,
0.019458435475826263,
0.11786723881959915,
-0.23968352377414703,
-0.4573931396007538,
-0.08781112730503082,
-0.12471845000982285,
-0.001007902785204351,
0.12334701418876648,
0.015335326083004475,
-0.18868350982666016,
0.15157461166381836,
-0.046537552028894424,
0.16210031509399414,
-0.0012192227877676487,
-0.020855387672781944,
-0.11005986481904984,
0.021629326045513153,
0.20498394966125488,
0.2180560976266861,
0.16403533518314362,
0.17951570451259613,
-0.19978496432304382,
-0.13068245351314545,
0.08862241357564926,
-0.14163339138031006,
-0.1671275496482849,
-0.17883794009685516,
0.21664686501026154,
-0.009402032941579819,
-0.3506263196468353,
-0.09378953278064728,
0.2814685106277466,
0.1409597545862198,
-0.2037898749113083,
-0.14107052981853485,
-0.0391463041305542,
-0.12413296848535538,
-0.08651597052812576,
0.17927883565425873,
0.5796175599098206,
-0.1855909526348114,
-0.1380210518836975,
-0.15213756263256073,
0.0008930093608796597,
0.5833055973052979,
0.3344021737575531,
-0.0607914961874485,
0.0897975042462349,
-0.1707223653793335,
0.14765405654907227,
0.5017139911651611,
-0.1436588019132614,
-0.5796040296554565,
0.5436664819717407,
-0.03960771486163139,
0.5637272000312805,
0.27070316672325134,
0.022536786273121834,
0.17423367500305176,
0.043119776993989944,
0.3135282099246979,
0.3299023509025574,
-0.14845924079418182,
0.0074823759496212006,
-0.33346664905548096,
-0.0399840883910656,
0.4416945278644562,
0.19122901558876038,
0.0674290731549263,
0.2502864599227905,
-0.02887396514415741,
-0.0626678466796875,
0.36897826194763184,
-0.07525694370269775,
0.07634545862674713,
0.04100821539759636,
0.14688830077648163,
0.012037484906613827,
0.13793893158435822,
-0.209076926112175,
-0.31068286299705505,
0.29723164439201355,
0.07492983341217041,
0.012709342874586582,
-0.3174346089363098,
0.20317308604717255,
-0.1906457394361496,
0.0017469982849434018,
-0.2628940939903259,
-0.25904056429862976,
0.12431700527667999,
0.31708019971847534,
0.07562147080898285,
0.05059032887220383,
-0.30847570300102234,
0.7747209072113037,
-0.07825540006160736,
-0.013134914450347424,
-0.45491498708724976,
0.20249320566654205,
-0.07077714800834656,
-0.2014572024345398,
0.01643923483788967,
-0.12656596302986145,
0.0672556608915329,
-0.01619260199368,
-0.2579920291900635,
0.3313201665878296,
-0.23661373555660248,
0.26407110691070557,
-0.19543799757957458,
-0.17319762706756592,
0.2897445559501648,
-0.3644789755344391,
-0.08668423444032669,
0.2706027328968048,
0.1075037270784378,
0.1252097487449646,
-0.01769862323999405,
0.14808396995067596,
0.20709064602851868,
0.236133873462677,
0.04344852268695831,
0.11434853076934814,
0.19616827368736267,
-0.08167490363121033,
-0.06868351250886917,
-0.08500946313142776,
0.3240481913089752,
-0.3548784554004669,
0.04674963280558586,
-0.19892388582229614,
-0.27229881286621094,
0.08236113935709,
0.35867932438850403,
-0.14038214087486267,
-0.04927396774291992,
0.33032408356666565,
-0.2885323166847229,
-0.16390761733055115,
0.3145599365234375,
0.19400939345359802,
0.47233647108078003,
0.08152145147323608,
0.2573353946208954,
-0.04558803141117096,
-0.18864788115024567,
-0.07350555807352066,
0.3051702380180359,
0.13748383522033691,
0.03146423026919365,
0.2464115023612976,
0.03000597469508648,
0.1635744273662567,
-0.32291677594184875,
-0.3497168719768524,
-0.05663178861141205,
0.11234155297279358,
-0.3201865553855896,
0.3063024580478668,
-0.3882676362991333,
-0.46517413854599,
0.04635055735707283,
0.15600904822349548,
0.06890591233968735,
-0.32355862855911255,
-0.1817554235458374,
0.23250597715377808,
-0.0038818209432065487,
0.1636846661567688,
-0.2682056427001953,
0.08954697102308273,
0.2671777009963989,
-0.013469196856021881,
-0.3418697118759155,
-0.18084806203842163,
-0.27296310663223267,
0.05919759348034859,
0.17499542236328125,
-0.4228036105632782,
0.17691944539546967,
0.0074257575906813145,
-0.11605405807495117,
-0.14017443358898163,
-0.07642343640327454,
0.319782018661499,
-0.15549936890602112,
0.15689589083194733,
-0.27748653292655945,
0.14939184486865997,
0.2213623970746994,
-0.25034916400909424,
0.1219492107629776,
0.09083330631256104,
-0.11878497898578644,
0.2801247537136078,
0.09408914297819138,
-0.02416118234395981,
-0.030583128333091736,
-0.3010807931423187,
-0.3024667203426361,
-0.6177487373352051,
0.054968565702438354,
0.0454266183078289,
0.21355202794075012,
0.16430477797985077,
0.017034968361258507,
0.09682463854551315,
0.3292068541049957,
0.0991600751876831,
-0.11421222984790802,
-0.41994330286979675,
0.37474480271339417,
-0.1670149564743042,
-0.2868408262729645,
-0.3248366415500641,
-0.06815972179174423,
0.19729065895080566,
0.2589266300201416,
-0.529524564743042,
0.29501691460609436,
-0.40810325741767883,
0.08489316701889038,
-0.3834521174430847,
-0.09745580703020096,
-0.02615170367062092,
0.07628902047872543,
-0.0349886454641819,
-0.1878577321767807,
0.07074666023254395,
-0.11695155501365662,
0.09900696575641632,
0.20661021769046783,
0.1086314395070076,
0.3698714077472687,
0.10084923356771469,
0.3327501118183136,
0.4812113344669342,
-0.019549310207366943,
0.3407554030418396,
0.08289064466953278,
0.15379996597766876,
-0.10043349862098694,
-0.0627889633178711,
-0.09556200355291367,
-0.22808018326759338,
-0.026119060814380646,
0.09819912165403366,
-0.0962134525179863,
-0.576229989528656,
-0.2840520143508911,
0.05491483211517334,
-0.06923650950193405,
-0.23831042647361755,
0.05288289859890938,
-0.5117741823196411,
0.042048510164022446,
-0.1872573345899582,
0.15833935141563416,
0.08079688996076584,
0.052001792937517166,
0.0860462635755539,
0.17725242674350739,
0.12616372108459473,
0.17212052643299103,
-0.1850224882364273,
-0.06390613317489624,
-0.48819053173065186,
0.182585209608078,
0.10512657463550568,
0.42157506942749023,
-0.16780978441238403,
-0.13271598517894745,
0.07911507040262222,
-0.06520642340183258,
0.3487047851085663,
-0.27541694045066833,
0.003567045321688056,
0.26739418506622314,
0.1421363800764084,
-0.14155235886573792,
0.0917665958404541,
-0.320945680141449,
0.13682910799980164,
0.23595532774925232,
0.09742072224617004,
-0.17182357609272003,
0.03333970159292221,
-0.08841889351606369,
-0.07249537855386734,
-0.1253030002117157,
-0.016399001702666283,
-0.17049703001976013,
-0.24923811852931976,
-0.1520107090473175,
-0.1342426836490631,
0.20327186584472656,
0.1256839632987976,
-0.012460368685424328,
-0.05679302662611008,
-0.04608200490474701,
-0.039624813944101334,
0.2418586015701294,
0.2213253229856491,
0.13990986347198486,
-0.07228010147809982,
0.2290113866329193,
0.06719914078712463,
0.2844450771808624,
0.22921690344810486,
0.8364324569702148,
0.11819501221179962,
-0.5624253749847412,
0.2350824922323227,
0.2339562624692917,
0.1660991609096527,
0.13053955137729645,
-0.14823268353939056,
-0.008516259491443634,
-0.040385037660598755,
0.26982149481773376,
-0.3024728000164032,
0.21465560793876648,
0.21123334765434265,
-0.05072057619690895,
-0.5149303078651428,
-0.43575385212898254,
0.5883391499519348,
-0.03936808928847313,
-0.07619041204452515,
0.7872922420501709,
-0.1665055751800537,
-0.317156583070755,
0.4775419235229492,
0.023435065522789955,
0.7585869431495667,
0.09439579397439957,
0.21686874330043793,
0.24074797332286835,
-0.32072678208351135,
0.5003336668014526,
-0.2320675253868103,
0.33466842770576477,
-0.12061024457216263,
-0.3350299298763275,
-0.08310927450656891,
-0.10410968214273453,
0.1709021031856537,
-0.1476040780544281,
-0.6302544474601746,
0.1709606647491455,
-0.05964367836713791,
-0.25280579924583435,
0.3353518843650818,
0.27422672510147095,
-0.6082696914672852,
-0.3062931001186371,
-0.06754918396472931,
0.13888253271579742,
-0.22135929763317108,
0.3239615857601166,
0.1382445991039276,
-0.22023314237594604,
-0.051572758704423904,
-0.08431030064821243,
-0.47023552656173706,
0.4758627116680145,
-0.2765567898750305,
0.16241489350795746,
-0.23903077840805054,
-0.4760979115962982,
0.15131258964538574,
0.26640310883522034,
-0.14213182032108307,
-0.22578543424606323,
-0.15825115144252777,
0.2350439429283142,
0.1860542893409729,
0.1280229389667511,
0.09930624812841415,
0.15145885944366455,
0.38835853338241577,
0.05327725410461426,
-0.016812974587082863,
0.18844200670719147,
-0.008979782462120056,
-0.16062846779823303,
-0.06378106027841568,
0.055457212030887604,
0.31831416487693787,
-0.2681804597377777,
0.23685671389102936,
-0.10585157573223114,
0.04292502626776695,
-0.18425336480140686,
0.08697214722633362,
-0.01883167400956154,
-0.17405515909194946,
-0.07388757914304733,
-0.0812973901629448,
-0.21967639029026031,
-0.08474412560462952,
0.37712058424949646,
0.1454583704471588,
0.31797096133232117,
0.4994198977947235,
0.028117282316088676,
-0.17787961661815643,
-0.10367143899202347,
-0.05514967069029808,
-0.29314014315605164,
-0.25261250138282776,
0.06935932487249374,
-0.24147586524486542,
-0.1610274761915207,
-0.2706690728664398,
0.0038271546363830566,
0.04483797401189804,
-0.10355384647846222,
-0.11373839527368546,
-0.2993661165237427,
-0.19063755869865417,
-0.02661498822271824,
-0.12424395233392715,
0.21993079781532288,
-0.17221972346305847,
0.02220410294830799,
0.0031193061731755733,
0.12908627092838287,
-0.2706835865974426,
-0.12285953760147095,
-0.07537078112363815,
0.023117728531360626,
0.26721060276031494,
0.029268130660057068,
0.259233683347702,
0.10966996103525162,
0.1476224809885025,
0.31390470266342163,
-0.027674557641148567,
-0.16095395386219025,
-0.17879526317119598,
0.13848938047885895,
0.016531458124518394,
-0.348052054643631,
-0.15489462018013,
-0.05662064999341965,
0.012690556235611439,
-0.1251358836889267,
0.3503149449825287,
0.18123020231723785,
0.03809667378664017,
0.2706013321876526,
0.12401355803012848,
0.056335821747779846,
-0.23264853656291962,
0.15423621237277985,
-0.2642734944820404,
0.24012994766235352,
0.08111169189214706,
0.09284091740846634,
-0.07554018497467041,
-0.011869107373058796,
-0.3646133244037628,
0.0622694194316864,
0.10179527848958969,
-0.028018299490213394,
0.5909274220466614,
-0.4241813123226166,
0.17204461991786957,
-0.04977495223283768,
0.06602954864501953,
0.40452247858047485,
-0.229619100689888,
-0.2089621126651764,
0.08508562296628952,
0.2000514566898346,
-0.043203044682741165,
-0.21262098848819733,
-0.40104803442955017,
-0.10164165496826172,
0.011238278821110725,
0.14595948159694672,
-0.10688955336809158,
-0.27218329906463623,
0.09996354579925537,
-0.21030840277671814,
0.4859829545021057,
0.33584317564964294,
0.2670661211013794,
0.48363882303237915,
-0.18112805485725403,
0.02284720353782177,
-0.2260242998600006,
0.020459555089473724,
0.1999063491821289,
0.29704374074935913,
0.0035519178491085768,
-0.007869269698858261,
-0.16136623919010162,
0.21781925857067108,
-0.18597522377967834,
-0.4821957051753998,
-0.07974797487258911,
0.10244731605052948,
-0.1647557020187378,
0.390193372964859,
0.14890894293785095,
0.1521603912115097,
-0.27793532609939575,
-0.05192176625132561,
-0.04584239050745964,
-0.06612592190504074,
-0.014279805123806,
-0.0960812121629715,
0.10687536746263504,
-0.01285640336573124,
-0.32792216539382935,
0.0976085290312767,
0.012400006875395775,
0.06336840242147446,
-0.019864600151777267,
0.28080615401268005,
-0.2884635925292969,
-0.11850128322839737,
-0.08222784847021103,
0.1043180301785469,
0.29992547631263733,
-0.3544152081012726,
0.4440692365169525,
0.3661908805370331,
-0.1568613350391388,
0.028249986469745636,
0.07000205665826797,
0.4816074073314667,
0.28533828258514404,
-0.1766507923603058,
0.0946502685546875,
0.33741632103919983,
-0.043637245893478394,
-0.04022098705172539,
0.04425389692187309,
0.2830947935581207,
0.17931906878948212,
0.4566896855831146,
0.08873908966779709,
-0.1485418677330017,
0.10457196086645126,
0.08143539726734161,
0.2538890838623047,
-0.2799385190010071,
0.462319016456604,
-0.11950677633285522,
0.03669220954179764,
0.027242159470915794,
-0.33657145500183105,
-0.5624158382415771,
-0.028204504400491714,
0.034896183758974075,
-0.228500097990036,
0.07452432066202164,
-0.008112411014735699,
0.06287817656993866,
0.1139545887708664,
0.4926685094833374,
0.3248409926891327,
-0.01884552091360092,
-0.22450987994670868,
-0.15087901055812836,
-0.23558320105075836,
0.2332025021314621,
-0.06747936457395554,
-0.12314790487289429,
0.17528623342514038,
0.22192269563674927,
-0.00484226131811738,
0.16804936528205872,
-0.15844476222991943,
0.020454589277505875,
-0.2672829329967499,
0.14057262241840363,
-0.3995796740055084,
-0.3515673279762268,
0.19196300208568573,
0.17357976734638214,
-0.0483119860291481,
-0.576480507850647,
0.18813888728618622,
-0.15023992955684662,
0.16081759333610535,
0.09261247515678406,
-0.2418481409549713,
0.10114527493715286,
-0.2756577432155609,
0.5297330021858215,
0.23311080038547516,
0.37920081615448,
-0.18429528176784515,
-0.41195613145828247,
-0.0992456004023552,
-0.37623047828674316,
-0.27491435408592224,
-0.015585196204483509,
0.10833387821912766,
0.569632351398468,
-0.14933405816555023,
-0.23738358914852142,
-0.35747087001800537,
0.32626259326934814,
0.060889992862939835,
-0.2656737267971039,
-0.2735382616519928,
0.17336998879909515,
-0.11945971846580505,
0.21312569081783295,
0.3050515353679657,
0.3803454339504242,
-0.028712939471006393,
0.16399526596069336,
-0.22351542115211487,
-0.4333209693431854,
0.5773107409477234,
-0.3461061716079712,
-0.2659672498703003,
0.24184010922908783,
0.06381399184465408,
0.32649698853492737,
0.24101991951465607,
-0.45966625213623047,
0.08936617523431778,
0.35565486550331116,
-0.2354128360748291,
-0.15118609368801117,
0.14214642345905304,
0.22597070038318634,
-0.06071964651346207,
-0.08503957837820053,
0.4553110897541046,
0.24239663779735565,
-0.2492043823003769,
0.1750812530517578,
-0.17863892018795013
] |
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

# 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

# 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.12404850870370865,
-0.20182529091835022,
-0.07033973187208176,
0.189459890127182,
0.21477307379245758,
-0.11205005645751953,
0.02766759693622589,
0.0718737319111824,
0.28058117628097534,
0.0850558802485466,
0.16487307846546173,
0.11740709096193314,
0.15548206865787506,
0.10220319032669067,
0.15884757041931152,
-0.26150476932525635,
0.03018580935895443,
0.03931013494729996,
-0.1691512167453766,
0.008864589966833591,
-0.3215378522872925,
0.08592865616083145,
-0.30666929483413696,
-0.11271382868289948,
0.16355830430984497,
0.032440345734357834,
-0.28869616985321045,
0.30047082901000977,
-0.25459960103034973,
-0.16940459609031677,
0.09937018156051636,
-0.07090877741575241,
0.1850663125514984,
0.3519493639469147,
-0.00010874314466491342,
0.08132592588663101,
0.39228421449661255,
0.02353104017674923,
0.01742919534444809,
-0.058175619691610336,
-0.29389089345932007,
-0.14136859774589539,
-0.19119451940059662,
-0.3151721656322479,
0.09970598667860031,
0.23473016917705536,
0.04543757438659668,
-0.11122836917638779,
0.2443622648715973,
0.44914519786834717,
0.30608218908309937,
0.48093706369400024,
-0.11500204354524612,
0.051727164536714554,
0.4554632902145386,
0.05056479573249817,
-0.181675985455513,
0.2492000162601471,
0.3063487708568573,
-0.14193686842918396,
0.25700223445892334,
-0.05941160023212433,
-0.12101127952337265,
0.011559002101421356,
0.031003253534436226,
0.12063568085432053,
-0.04946422949433327,
-0.509315550327301,
0.12343186885118484,
0.17437490820884705,
0.31266117095947266,
-0.15310871601104736,
-0.15853989124298096,
0.11584857851266861,
-0.149399995803833,
-0.1856967806816101,
0.2733878493309021,
0.27626070380210876,
-0.13931690156459808,
0.18718235194683075,
-0.2805481255054474,
0.17438770830631256,
-0.2056804597377777,
0.25969281792640686,
-0.11910689622163773,
0.3299078941345215,
-0.0759497582912445,
0.18944674730300903,
-0.17101484537124634,
0.3167182207107544,
0.03771057352423668,
-0.3272557854652405,
-0.01567719131708145,
-0.003989518154412508,
0.08568963408470154,
0.10570823401212692,
0.04935479536652565,
0.5118294954299927,
0.057304058223962784,
0.2643454074859619,
0.033487431704998016,
-0.056018706411123276,
0.24109037220478058,
0.0700196921825409,
0.09027186036109924,
0.09497969597578049,
-0.2958669066429138,
0.06604394316673279,
0.381782203912735,
0.31391632556915283,
-0.006580391898751259,
-0.026201210916042328,
-0.03304913267493248,
-0.3155069649219513,
0.29651278257369995,
-0.005392270628362894,
0.4860351085662842,
-0.04742686450481415,
-0.55690997838974,
0.00263488688506186,
0.014627764001488686,
0.09089194238185883,
-0.002352994866669178,
0.2526858448982239,
-0.3218327760696411,
-0.02258157916367054,
0.12337040156126022,
0.30001452565193176,
-0.12404520064592361,
0.1943572610616684,
0.004063163883984089,
0.18068186938762665,
-0.25206875801086426,
-0.22607262432575226,
0.34758293628692627,
-0.06712983548641205,
0.1201247051358223,
0.1935613751411438,
-0.0914590135216713,
-0.0428745411336422,
0.013201141729950905,
-0.08051631599664688,
0.02718218043446541,
0.4316021203994751,
0.19525635242462158,
0.37025323510169983,
-0.00945921428501606,
0.07807869464159012,
-0.07072686403989792,
0.20629407465457916,
-0.1463162750005722,
-0.024970361962914467,
0.021134404465556145,
0.2608019709587097,
-0.3265892565250397,
-0.18855953216552734,
0.039793603122234344,
-0.266466349363327,
-0.04091103374958038,
-0.029388906434178352,
0.2495979219675064,
-0.19647963345050812,
-0.28914809226989746,
-0.38413146138191223,
0.09299246966838837,
0.52479088306427,
-0.34822559356689453,
0.2068510353565216,
0.061464764177799225,
-0.27144336700439453,
0.40142276883125305,
0.05860982835292816,
0.13095657527446747,
0.1605098992586136,
-0.4303000271320343,
0.04150564968585968,
0.11713224649429321,
-0.3501318693161011,
-0.49704328179359436,
0.35849735140800476,
-0.18995267152786255,
0.320690780878067,
0.17838123440742493,
0.0919845700263977,
0.2939101457595825,
-0.08338099718093872,
-0.012038541957736015,
0.309894323348999,
-0.022482680156826973,
0.05824407562613487,
-0.12457814067602158,
-0.1297622174024582,
0.12999993562698364,
0.10852138698101044,
0.12085966020822525,
0.14329606294631958,
0.2932315170764923,
-0.13603971898555756,
0.31640270352363586,
0.17881999909877777,
0.09648934006690979,
0.23754563927650452,
0.2550181448459625,
0.2680893540382385,
0.12365490943193436,
-0.22698600590229034,
0.001570854103192687,
0.2861070930957794,
-0.08041907846927643,
-0.15903286635875702,
-0.24103321135044098,
-0.22180600464344025,
-0.5582586526870728,
0.02244935929775238,
-0.18866223096847534,
-0.2219817191362381,
0.16530151665210724,
0.13725948333740234,
0.24955351650714874,
0.04269521310925484,
0.07544732093811035,
0.17933638393878937,
-0.007186372298747301,
-0.06845981627702713,
0.07519057393074036,
0.3602064549922943,
-0.34395071864128113,
-0.05052387714385986,
-0.09659700840711594,
-0.07217630743980408,
0.2299177199602127,
-0.056685008108615875,
-0.015229078941047192,
0.1972682774066925,
0.020261984318494797,
-0.04262900725007057,
0.03620866686105728,
0.04865971952676773,
0.01671876385807991,
-0.18056195974349976,
0.27166587114334106,
0.5724843144416809,
0.2685573399066925,
-0.09678355604410172,
-0.032229240983724594,
0.0053615025244653225,
-0.07502563297748566,
0.01775568723678589,
-0.022257907316088676,
0.14869698882102966,
0.19364091753959656,
-0.18895918130874634,
-0.10111107677221298,
0.0021021729335188866,
0.3638000786304474,
0.061304546892642975,
-0.09914212673902512,
-0.16853401064872742,
-0.16799360513687134,
0.1670791506767273,
0.545026421546936,
-0.27523285150527954,
0.30147960782051086,
0.07062220573425293,
-0.09666359424591064,
0.20947293937206268,
-0.18009060621261597,
0.10591784864664078,
0.608043909072876,
0.03329595923423767,
0.11296093463897705,
0.3711542785167694,
0.008863328024744987,
-0.14360564947128296,
0.21492886543273926,
0.14612333476543427,
-0.2989700138568878,
0.173004612326622,
-0.05207765847444534,
0.1769195795059204,
-0.2095148116350174,
-0.23760229349136353,
-0.057156991213560104,
0.05267741531133652,
-0.345222145318985,
0.24298951029777527,
-0.1614445447921753,
-0.17400053143501282,
-0.32915347814559937,
-0.08695707470178604,
-0.07667092978954315,
-0.06329283118247986,
0.024691089987754822,
0.2807939052581787,
-0.14507363736629486,
-0.18183451890945435,
-0.4370894432067871,
0.09258945286273956,
0.21191176772117615,
-0.359019935131073,
-0.0015146090881899,
0.19920212030410767,
-0.2863779366016388,
0.13335861265659332,
0.15175549685955048,
-0.0984129011631012,
0.5485374331474304,
-0.506727397441864,
0.05792063847184181,
-0.3667602241039276,
-0.1009361520409584,
-0.06549420952796936,
0.05530916526913643,
0.3579995334148407,
0.18263879418373108,
0.18575045466423035,
0.054813072085380554,
0.1031559407711029,
0.20812523365020752,
-0.2389807403087616,
-0.17951567471027374,
0.15971562266349792,
0.0564887635409832,
-0.3985367715358734,
-0.2559875547885895,
-0.2491462528705597,
-0.2066616415977478,
-0.3509725332260132,
0.016134046018123627,
0.11000975221395493,
0.1269884705543518,
-0.10306847095489502,
0.00807691365480423,
0.03724518418312073,
0.07318714261054993,
0.22467006742954254,
-0.08302628993988037,
0.02634996362030506,
0.3867473602294922,
-0.04235048219561577,
-0.6439452767372131,
0.24056018888950348,
-0.018974699079990387,
-0.35784047842025757,
0.3052414059638977,
-0.5030604004859924,
-0.13239258527755737,
-0.2873798906803131,
0.25060543417930603,
0.08922718465328217,
0.2778795063495636,
0.3353268802165985,
-0.2777279019355774,
-0.024596231058239937,
-0.303974986076355,
-0.06590727716684341,
-0.2901858985424042,
-0.10967384278774261,
0.24289679527282715,
0.18268612027168274,
0.30312833189964294,
-0.028938332572579384,
0.28554603457450867,
0.22061166167259216,
0.1294395923614502,
0.43787193298339844,
-0.38643911480903625,
0.4741615355014801,
0.0012999846367165446,
-0.17658555507659912,
0.03511659801006317,
-0.2722175121307373,
0.018007829785346985,
0.23765668272972107,
0.022387253120541573,
-0.004944140557199717,
-0.23122940957546234,
-0.16560614109039307,
-0.23130953311920166,
-0.24787111580371857,
0.1438772976398468,
0.11068422347307205,
0.040782734751701355,
0.12416953593492508,
0.2241882085800171,
0.1028410866856575,
-0.155734121799469,
0.11416478455066681,
0.5970389246940613,
-0.2615627944469452,
0.14396750926971436,
0.02278156578540802,
-0.16407965123653412,
-0.4693874716758728,
0.07167497277259827,
0.10276512056589127,
0.44884222745895386,
-0.030166998505592346,
0.04434353858232498,
0.21562013030052185,
-0.16199645400047302,
0.7495211958885193,
-0.21511799097061157,
0.3322598934173584,
0.20321203768253326,
-0.006715800613164902,
-0.37803593277931213,
-0.2583533525466919,
-0.5120750069618225,
0.12309812009334564,
0.0817761942744255,
-0.052924320101737976,
-0.05552498623728752,
0.18523356318473816,
0.11505745351314545,
0.24685999751091003,
-0.14289025962352753,
-0.3871611952781677,
-0.3885156214237213,
-0.6134722828865051,
-0.24454069137573242,
0.08509132266044617,
0.4038742780685425,
-0.04350830987095833,
-0.3796861171722412,
-0.16640375554561615,
-0.06428072601556778,
0.15337668359279633,
-0.07251293212175369,
-0.027730002999305725,
0.07959608733654022,
-0.01777569018304348,
0.178081676363945,
-0.2506747245788574,
0.2862490117549896,
-0.17390824854373932,
0.6596164703369141,
0.10549216717481613,
-0.14962203800678253,
0.16205908358097076,
-0.26835647225379944,
-0.20142097771167755,
0.2051958292722702,
-0.16493479907512665,
-0.2201993763446808,
-0.07972052693367004,
0.049250297248363495,
-0.32984694838523865,
-0.07996305078268051,
0.5729663372039795,
-0.10168378800153732,
-0.005418483167886734,
-0.25961458683013916,
0.1787792444229126,
0.013897215016186237,
-0.15584874153137207,
0.2674734592437744,
0.034884974360466,
-0.092498779296875,
-0.10834097862243652,
-0.28907179832458496,
0.6511145830154419,
0.21450930833816528,
0.23586581647396088,
0.25903043150901794,
-0.5253794193267822,
0.041986409574747086,
0.21368548274040222,
0.07386572659015656,
-0.20706388354301453,
-0.2838785648345947,
-0.03738357126712799,
-0.13326232135295868,
0.08258665353059769,
-0.03415139764547348,
-0.27793651819229126,
0.22078752517700195,
-0.0865815207362175,
0.17475678026676178,
0.2744150459766388,
-0.1581595242023468,
-0.31310611963272095,
0.10845629870891571,
-0.032816313207149506,
0.19511710107326508,
0.23858805000782013,
0.662906289100647,
-0.26621824502944946,
0.018496878445148468,
-0.1715996265411377,
-0.2779662311077118,
-0.39651334285736084,
0.25502997636795044,
-0.13408471643924713,
0.007454472128301859,
-0.15991538763046265,
0.1396336406469345,
0.02254931628704071,
-0.014737024903297424,
0.002165411598980427,
0.15718533098697662,
-0.22981086373329163,
0.08573874086141586,
0.13416093587875366,
-0.08223685622215271,
0.2630031704902649,
-0.0994020476937294,
0.11807360500097275,
-0.24470804631710052,
-0.42294278740882874,
-0.07276096940040588,
0.021439552307128906,
-0.00272442027926445,
-0.0277111679315567,
0.26394152641296387,
0.21877144277095795,
-0.18823198974132538,
-0.17848168313503265,
-0.3920823931694031,
0.08386171609163284,
-0.07089469581842422,
0.21751554310321808,
0.04904628172516823,
0.08854304999113083,
0.5029726624488831,
-0.28613176941871643,
-0.2359028309583664,
-0.15548911690711975,
0.3932058811187744,
-0.16737022995948792,
-0.07556775957345963,
0.11023593693971634,
0.09486813843250275,
-0.3069731295108795,
-0.25234538316726685,
0.013136431574821472,
-0.3942279517650604,
-0.22052854299545288,
0.05400696396827698,
-0.054369889199733734,
0.28690773248672485,
-0.14717704057693481,
0.009006001055240631,
0.133574977517128,
-0.057867612689733505,
-0.015184584073722363,
-0.6815170645713806,
0.12968026101589203,
-0.21979692578315735,
0.41220101714134216,
0.046644534915685654,
0.026246575638651848,
-0.15720698237419128,
0.4631694257259369,
-0.5489162802696228,
-0.3702109456062317,
-0.0008693762938492,
0.04950333386659622,
-0.1290581226348877,
0.17799723148345947,
0.13027802109718323,
0.1998712420463562,
0.011895105242729187,
0.12122801691293716,
0.0002455809444654733,
-0.06618469208478928,
-0.24845202267169952,
-0.1650177389383316,
0.10459984093904495,
-0.05408874899148941,
-0.2632082998752594,
0.19007284939289093,
-0.4511171281337738,
0.009140457957983017,
0.18899065256118774,
0.14730417728424072,
0.30437570810317993,
-0.09577333182096481,
0.03665822371840477,
0.09566343575716019,
0.11463604867458344,
-0.23988835513591766,
0.24710218608379364,
-0.4936741292476654,
0.5263611078262329,
0.005651532206684351,
0.17131218314170837,
0.2247191220521927,
0.006555651780217886,
-0.054802581667900085,
-0.28135067224502563,
0.0627051368355751,
0.18261992931365967,
0.3916455805301666,
-0.1167968288064003,
0.2606547772884369,
-0.0006235652253963053,
0.2832511067390442,
0.5525339245796204,
-0.35271450877189636,
-0.08935009688138962,
0.14336305856704712,
0.2758115231990814,
-0.25900664925575256,
-0.03468503803014755,
0.08422927558422089,
0.10917208343744278,
0.05762878432869911,
0.11799245327711105,
0.055524349212646484,
-0.28266412019729614,
-0.09124885499477386,
-0.05008956417441368,
0.43350309133529663,
0.3670792877674103,
-0.18083836138248444,
0.39471352100372314,
0.006517521571367979,
0.14764995872974396,
-0.05766955763101578,
-0.021751919761300087,
-0.048602089285850525,
0.4234347641468048,
0.0409805104136467,
0.06926603615283966,
-0.10912518203258514,
0.025174234062433243,
-0.1315762847661972,
-0.20524507761001587,
0.07668407261371613,
-0.2012571543455124,
0.02545067109167576,
0.09770981967449188,
0.07705099880695343,
-0.1540478616952896,
-0.27487432956695557,
0.2177981734275818,
-0.3454117178916931,
-0.06783720850944519,
0.06947255879640579,
-0.012507503852248192,
-0.30367612838745117,
-0.07215064764022827,
-0.11966530978679657,
0.0252666212618351,
0.1473337560892105,
-0.00541269825771451,
0.25994181632995605,
0.0745280534029007,
-0.23696637153625488,
-0.3160698711872101,
0.012622927315533161,
-0.204802468419075,
0.11341232806444168,
-0.28850051760673523,
0.07788986712694168,
0.3658399283885956,
0.16743314266204834,
0.10783833265304565,
0.11485175788402557,
0.5545542240142822,
0.38521793484687805,
-0.10724708437919617,
-0.06110513582825661,
0.07846170663833618,
-0.13316260278224945,
-0.3258143961429596,
0.4363554120063782,
0.07163412123918533,
0.19309332966804504,
0.23635059595108032,
0.21840615570545197,
-0.23010535538196564,
0.25841015577316284,
-0.030818963423371315,
-0.07956317812204361,
-0.058946315199136734,
0.17917436361312866,
-0.2505972385406494,
0.09379575401544571,
-0.38978907465934753,
-0.10139276087284088,
-0.4083532691001892,
-0.09857909381389618,
0.1772194653749466,
-0.08799557387828827,
0.16670426726341248,
-0.34622082114219666,
0.10359315574169159,
0.03752975910902023,
0.21810007095336914,
0.3795771896839142,
0.3196726143360138,
-0.08816708624362946,
-0.05732329934835434,
-0.5226137638092041,
0.3419153690338135,
-0.22584326565265656,
-0.5296076536178589,
-0.0877915546298027,
0.04472719505429268,
-0.6105871200561523,
0.07223611325025558,
0.3415537476539612,
0.26796188950538635,
-0.06360770016908646,
0.3222137987613678,
-0.13524220883846283,
-0.31212475895881653,
0.03358744829893112,
0.15257114171981812,
0.07591789960861206,
-0.5940465927124023,
0.29182103276252747,
-0.41705480217933655,
0.16973602771759033,
-0.27009010314941406,
-0.1863708198070526,
-0.011328441090881824,
-0.008855992928147316,
0.5608647465705872,
0.15077835321426392,
0.5199143290519714,
-0.19121891260147095,
-0.12568210065364838,
-0.4629921615123749,
0.07810107618570328,
-0.11269503086805344,
0.2469516098499298,
0.11667555570602417,
-0.1811441034078598,
0.019152482971549034,
-0.26780423521995544,
-0.06001667305827141,
0.31385454535484314,
-0.036841634660959244,
0.09057946503162384,
-0.05712287127971649,
-0.07280831038951874,
-0.18309243023395538,
0.14881785213947296,
0.08115105330944061,
0.14661383628845215,
-0.3787931501865387,
-0.10185233503580093,
-0.03377549722790718,
-0.5434587597846985,
0.27417072653770447,
-0.26988035440444946,
-0.3332621157169342,
-0.2687220871448517,
0.23119081556797028,
-0.4032009243965149,
0.0730406865477562,
-0.022185850888490677,
0.15009702742099762,
0.16583366692066193,
-0.0674842819571495,
0.03998897224664688,
0.2936094403266907,
-0.37484586238861084,
0.04060671478509903,
0.2576870918273926,
0.4179142415523529,
-0.06966278702020645,
-0.1712896227836609,
0.3069993555545807,
-0.2148604542016983
] |
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.1380539983510971,
-0.020553486421704292,
0.22738707065582275,
0.11762414872646332,
-0.15759755671024323,
0.26700559258461,
0.2965675890445709,
-0.5154969096183777,
0.28040802478790283,
0.14544112980365753,
0.4508610665798187,
-0.09352816641330719,
-0.18102063238620758,
0.06429968774318695,
-0.05757623538374901,
0.12214332073926926,
0.24844613671302795,
-0.07153476774692535,
-0.23429234325885773,
0.1333337426185608,
0.3007955849170685,
-0.2574562132358551,
-0.06466085463762283,
-0.2737535834312439,
0.08476094156503677,
-0.07667049020528793,
-0.2693380117416382,
-0.05328643321990967,
-0.4953400194644928,
0.15393930673599243,
0.011122780852019787,
0.10494501143693924,
0.3338853716850281,
-0.00011551438365131617,
-0.08517564833164215,
0.03693799301981926,
0.09381239861249924,
-0.23824083805084229,
-0.157761812210083,
-0.09692791104316711,
0.08862317353487015,
-0.06983952224254608,
-0.027057817205786705,
-0.08341064304113388,
0.19374705851078033,
0.052933987230062485,
-0.09816265106201172,
0.5147067904472351,
0.29158470034599304,
0.14006787538528442,
-0.010242540389299393,
-0.25211936235427856,
-0.06595246493816376,
0.31986960768699646,
0.0313081219792366,
0.08507551997900009,
-0.1780208796262741,
0.2137235403060913,
0.03147941827774048,
-0.05166791379451752,
0.618067741394043,
-0.2813331186771393,
0.3980185091495514,
-0.2359149158000946,
0.12423034012317657,
-0.37117713689804077,
-0.5308332443237305,
0.26683640480041504,
0.21616551280021667,
0.6465562582015991,
-0.22962398827075958,
-0.20446635782718658,
-0.23786015808582306,
0.31990838050842285,
-0.1560651659965515,
-0.04216999560594559,
-0.01617725007236004,
-0.27280205488204956,
0.23506256937980652,
-0.009494452737271786,
0.04764743149280548,
-0.2204020917415619,
0.12888051569461823,
0.05581258609890938,
-0.10741811245679855,
-0.07313630729913712,
0.13855735957622528,
-0.17709983885288239,
0.09940952807664871,
-0.08586367964744568,
0.27035775780677795,
-0.14426171779632568,
0.03412604704499245,
-0.14976243674755096,
-0.06749074161052704,
0.19251541793346405,
-0.304941862821579,
0.2917179465293884,
-0.060220710933208466,
0.38555631041526794,
0.037437789142131805,
-0.18567009270191193,
-0.08810000121593475,
0.3239295184612274,
0.01980840228497982,
-0.02336730808019638,
0.14967741072177887,
0.229897603392601,
-0.23406895995140076,
-0.2531859278678894,
0.07371608167886734,
-0.014418098144233227,
0.21627365052700043,
0.3318791687488556,
-0.2650298774242401,
0.2829245924949646,
-0.36764442920684814,
-0.5658825039863586,
0.06425022333860397,
-0.4400382936000824,
-0.10303959995508194,
-0.2528015971183777,
0.18167363107204437,
0.16933061182498932,
0.30092668533325195,
0.14492495357990265,
0.22267615795135498,
0.06933904439210892,
-0.5628321170806885,
-0.1818622499704361,
0.026798736304044724,
0.20986077189445496,
0.030840694904327393,
0.21132825314998627,
-0.3237058222293854,
0.3398515284061432,
0.34173423051834106,
0.1954527348279953,
-0.4316003620624542,
-0.2874111831188202,
-0.13017714023590088,
0.025560496374964714,
0.0091862753033638,
-0.02648996375501156,
0.3916681408882141,
0.07382100820541382,
-0.018290655687451363,
0.007235480938106775,
0.06100788339972496,
-0.10655637830495834,
0.006864713039249182,
0.2134006917476654,
0.13641057908535004,
-0.0805879458785057,
-0.16711406409740448,
0.12324772030115128,
0.36058682203292847,
0.07794494926929474,
-0.3008696734905243,
0.0030108352657407522,
-0.1827424019575119,
-0.3919648230075836,
-0.038659051060676575,
0.07733136415481567,
0.30246126651763916,
-0.3355470895767212,
0.09542718529701233,
0.17853502929210663,
0.42139723896980286,
0.3944756090641022,
0.24845457077026367,
-0.046510111540555954,
0.37343910336494446,
-0.116816446185112,
0.30014491081237793,
0.20419971644878387,
-0.46213141083717346,
-0.3920539915561676,
0.2112354189157486,
-0.049602847546339035,
0.2464137226343155,
0.15489058196544647,
-0.16278322041034698,
0.302733838558197,
0.14270736277103424,
0.3759348690509796,
0.15347911417484283,
0.14573615789413452,
0.03347977623343468,
-0.2446894347667694,
-0.05789213627576828,
0.0868305116891861,
-0.01314073521643877,
0.002154128858819604,
0.09558362513780594,
0.037038352340459824,
0.23297017812728882,
0.527152419090271,
0.07458408176898956,
0.09245166927576065,
0.1029677465558052,
0.1659652292728424,
-0.10123161226511002,
0.22397777438163757,
-0.26310086250305176,
0.2564864158630371,
-0.04889729619026184,
0.20682638883590698,
0.2837983965873718,
0.1540307253599167,
0.0793672651052475,
-0.30154553055763245,
-0.21888890862464905,
-0.29918909072875977,
-0.3250729739665985,
0.11458168923854828,
0.325737327337265,
-0.014431040734052658,
0.042046595364809036,
-0.18985795974731445,
0.3409901261329651,
-0.22032663226127625,
-0.0741860643029213,
0.023305248469114304,
0.09916584938764572,
0.0638560950756073,
-0.24470750987529755,
0.5248860120773315,
0.252898246049881,
0.185149684548378,
0.20168408751487732,
-0.1669417917728424,
0.2235521823167801,
-0.01476703118532896,
0.021967478096485138,
-0.26371699571609497,
-0.3288922905921936,
0.10994853079319,
-0.5017578601837158,
-0.11139468848705292,
0.23447151482105255,
0.31817200779914856,
-0.004500115290284157,
-0.30367574095726013,
-0.18347014486789703,
0.1390068382024765,
0.25693845748901367,
-0.05544435232877731,
-0.0651191920042038,
0.3011588156223297,
0.06625311821699142,
-0.35379981994628906,
-0.3246977925300598,
0.2526889443397522,
-0.23498022556304932,
0.2662215530872345,
0.020284786820411682,
-0.34177684783935547,
0.1585969626903534,
0.3928965628147125,
0.22451156377792358,
0.08520913869142532,
0.2943880558013916,
-0.24683265388011932,
-0.02701730839908123,
-0.12272877991199493,
0.09491192549467087,
0.29076552391052246,
0.28810423612594604,
0.054301392287015915,
-0.376454621553421,
-0.12874847650527954,
-0.11323206126689911,
0.13933591544628143,
-0.13075649738311768,
-0.3556292653083801,
0.4351169764995575,
0.35854506492614746,
0.08638767153024673,
-0.4493846297264099,
-0.13412846624851227,
-0.14240401983261108,
0.4703678786754608,
-0.33495989441871643,
-0.23163188993930817,
-0.4356054663658142,
-0.12055269628763199,
-0.10900617390871048,
0.06629130244255066,
0.0797039195895195,
0.22555126249790192,
0.2190556675195694,
-0.01271186675876379,
0.005456488113850355,
0.13680009543895721,
0.17199161648750305,
0.2340613156557083,
0.0712057426571846,
0.11179886013269424,
0.08630527555942535,
0.31914007663726807,
-0.3069572150707245,
-0.02426999993622303,
0.025972945615649223,
0.271613210439682,
0.10742948204278946,
-0.1422472596168518,
-0.1639024317264557,
-0.4067970812320709,
0.05901825428009033,
0.2675642669200897,
-0.33016806840896606,
0.5113496780395508,
0.11336217075586319,
0.16024938225746155,
-0.2251667082309723,
-0.31308186054229736,
0.0026735221035778522,
-0.026887321844697,
-0.16868680715560913,
0.3555682599544525,
0.08294298499822617,
-0.005615353584289551,
-0.04825542867183685,
-0.6989758014678955,
0.09939269721508026,
-0.2500093877315521,
0.2359428107738495,
-0.03286690637469292,
0.21037933230400085,
0.36413517594337463,
0.06060725077986717,
0.08126969635486603,
-0.058712393045425415,
0.20536965131759644,
-0.410209983587265,
-0.2545941472053528,
0.3561113476753235,
0.26060429215431213,
-0.3348698616027832,
-0.34056973457336426,
0.05095802620053291,
0.26529547572135925,
-0.032230082899332047,
-0.40010830760002136,
0.10035395622253418,
-0.26746630668640137,
0.1453494429588318,
-0.29726019501686096,
0.2826201021671295,
0.3854671120643616,
0.012993774376809597,
-0.14950419962406158,
-0.1692209243774414,
-0.10783283412456512,
0.26583540439605713,
0.3553735017776489,
0.005884540732949972,
0.10114716738462448,
0.0699148029088974,
-0.059327393770217896,
0.3506981432437897,
0.6459603905677795,
0.2025156468153,
0.2600066363811493,
-0.17655396461486816,
0.09423497319221497,
-0.03249359503388405,
-0.3995799720287323,
0.02708001434803009,
-0.11732456833124161,
-0.0625670924782753,
0.498119980096817,
-0.08999690413475037,
0.05363106355071068,
-0.16958844661712646,
-0.05727772042155266,
-0.32906243205070496,
-0.1686408370733261,
0.06749202311038971,
-0.23594006896018982,
0.1839739829301834,
0.17477507889270782,
0.052828479558229446,
0.16195283830165863,
0.0347348228096962,
-0.2861661911010742,
-0.2988381087779999,
0.2851734757423401,
-0.14997224509716034,
-0.08202991634607315,
-0.28361085057258606,
-0.37728819251060486,
-0.12410183995962143,
0.13858377933502197,
0.5095549821853638,
-0.2117001712322235,
-0.03752010315656662,
0.36001884937286377,
0.2914784550666809,
0.38102880120277405,
-0.30699393153190613,
0.09087708592414856,
0.010391024872660637,
0.22879119217395782,
0.005506852176040411,
0.005460845306515694,
-0.5205012559890747,
-0.19675882160663605,
-0.04749960079789162,
-0.04303190857172012,
-0.1668931245803833,
-0.008018579334020615,
0.10895949602127075,
0.39274418354034424,
-0.009748022072017193,
-0.24081142246723175,
-0.25577062368392944,
-0.07579295337200165,
-0.3301430642604828,
0.16156655550003052,
0.34223103523254395,
0.04439426213502884,
-0.16513317823410034,
-0.12032528221607208,
0.16039922833442688,
-0.06275198608636856,
0.5332361459732056,
0.07985962182283401,
0.37517669796943665,
0.07396505773067474,
0.3011748492717743,
0.274839848279953,
-0.357779860496521,
-0.2591434717178345,
0.36081504821777344,
0.10096927732229233,
-0.14202596247196198,
-0.0036746037658303976,
-0.34686198830604553,
0.32895734906196594,
0.49315616488456726,
-0.22319111227989197,
0.24192944169044495,
-0.29706162214279175,
0.25689423084259033,
-0.15294820070266724,
0.09574685245752335,
0.31952863931655884,
-0.07498329877853394,
-0.07518211752176285,
-0.41028639674186707,
0.3822804391384125,
-0.03649482503533363,
-0.19794794917106628,
0.34455037117004395,
0.09091878682374954,
-0.31038200855255127,
0.47125139832496643,
-0.25788405537605286,
0.8118334412574768,
0.22640712559223175,
0.36662954092025757,
0.31550174951553345,
0.13815084099769592,
0.32616499066352844,
-0.1960090696811676,
0.09023265540599823,
-0.02201833389699459,
-0.0018171957926824689,
-0.021560080349445343,
0.058343131095170975,
-0.07785571366548538,
-0.041759975254535675,
-0.5769286751747131,
0.17752942442893982,
0.06471659243106842,
0.028871016576886177,
0.18680165708065033,
-0.011851472780108452,
-0.129495769739151,
-0.10640719532966614,
0.12529928982257843,
0.032571397721767426,
-0.38393935561180115,
0.30747348070144653,
0.3099326193332672,
-0.024295685812830925,
0.031404759734869,
-0.5837308764457703,
-0.8224811553955078,
-0.03016757220029831,
-0.08251699060201645,
-0.22594010829925537,
-0.19967976212501526,
-0.3336215019226074,
0.3681987524032593,
0.25860023498535156,
0.1915539801120758,
0.32565969228744507,
-0.13796795904636383,
-0.08526414632797241,
0.36824333667755127,
0.2776511609554291,
-0.26795780658721924,
-0.025591524317860603,
0.14451885223388672,
-0.08603153377771378,
-0.3883333206176758,
0.17660337686538696,
0.055158648639917374,
0.09896288067102432,
-0.3880656361579895,
0.2538312077522278,
-0.11467956006526947,
-0.23315851390361786,
0.08573705703020096,
0.4289036691188812,
0.14151638746261597,
-0.511970579624176,
0.10320749133825302,
0.12417205423116684,
-0.4588647186756134,
0.3286854326725006,
0.17258411645889282,
-0.47551947832107544,
-0.06376240402460098,
0.25934043526649475,
0.12836147844791412,
0.0002511758357286453,
0.6646648645401001,
-0.04148245230317116,
0.04838799685239792,
-0.37047579884529114,
0.04069716855883598,
-0.020928986370563507,
-0.2641948163509369,
0.1791122853755951,
0.05866312235593796,
0.17396298050880432,
-0.22652842104434967,
0.2535494565963745,
0.026513541117310524,
0.2048032581806183,
-0.28147515654563904,
-0.3617303669452667,
-0.06197831779718399,
-0.031454168260097504,
0.12343611568212509,
0.05524059757590294,
-0.2911967933177948,
0.11818553507328033,
0.06881581246852875,
0.3186100721359253,
-0.2981918454170227,
0.0059744818136096,
-0.05179520696401596,
0.21732041239738464,
-0.0840415433049202,
0.08132117241621017,
-0.037810180336236954,
0.08517366647720337,
0.2000400274991989,
0.31851574778556824,
0.06729219108819962,
-0.15987001359462738,
-0.3062143623828888,
0.18384429812431335,
0.04174410551786423,
0.15626400709152222,
-0.04076800495386124,
0.1001056507229805,
0.1492389738559723,
-0.1337081342935562,
-0.10101133584976196,
0.334583044052124,
0.12536194920539856,
0.21837839484214783,
-0.02963205799460411,
0.03707100823521614,
0.18515658378601074,
-0.15986517071723938,
-0.18397755920886993,
-0.17245954275131226,
0.33998531103134155,
0.18061377108097076,
0.04874474182724953,
-0.04819611832499504,
0.11862441152334213,
0.039923347532749176,
-0.1340513825416565,
0.11869505792856216,
-0.07783368974924088,
-0.26557686924934387,
0.13336996734142303,
0.2876855731010437,
-0.1194794774055481,
0.37868833541870117,
-0.3459942638874054,
-0.11189936846494675,
0.09119518101215363,
0.23514406383037567,
-0.2654988169670105,
-0.12371180951595306,
-0.3232501745223999,
-0.10655146837234497,
-0.058309268206357956,
0.2784038782119751,
-0.05983138456940651,
-0.472380131483078,
0.12146651744842529,
-0.06493815034627914,
0.33602002263069153,
-0.536003053188324,
-0.07342119514942169,
0.3985147774219513,
0.014973683282732964,
-0.36111995577812195,
-0.1933402419090271,
-0.015197639353573322,
0.020801205188035965,
0.5450984835624695,
-0.36754360795021057,
0.13735824823379517,
-0.33860546350479126,
0.02638811245560646,
0.19154824316501617,
0.025605827569961548,
-0.038219377398490906,
0.4056417644023895,
-0.3271888792514801,
-0.048963211476802826,
-0.07162439823150635,
0.30504727363586426,
-0.1176723763346672,
0.03344602882862091,
-0.1280481070280075,
-0.05141435191035271,
-0.12391936033964157,
-0.12486257404088974,
-0.33803999423980713,
-0.2734285891056061,
-0.23037634789943695,
0.006182694807648659,
0.09754196554422379,
-0.012554915621876717,
0.14051346480846405,
0.19162248075008392,
-0.26688501238822937,
-0.533241331577301,
-0.19809354841709137,
-0.037783462554216385,
0.1720767617225647,
-0.3900320827960968,
0.3403874337673187,
0.30842819809913635,
-0.22177045047283173,
0.25843697786331177,
0.24336476624011993,
0.5199828147888184,
0.07158130407333374,
0.03344777971506119,
0.10651936382055283,
-0.5706878900527954,
-0.09190312772989273,
-0.05172231048345566,
0.3297678828239441,
-0.12424144893884659,
0.05875527113676071,
0.021863209083676338,
0.015872610732913017,
-0.09563972055912018,
0.02934780903160572,
0.2285461723804474,
-0.07562518119812012,
-0.5632566213607788,
0.21907812356948853,
-0.14116311073303223,
0.111732117831707,
0.04065866768360138,
0.0749841183423996,
-0.4736693799495697,
0.44173866510391235,
0.342166930437088,
0.05759596452116966,
-0.010626684874296188,
0.002189818536862731,
0.08138871192932129,
-0.12637554109096527,
-0.11261264979839325,
0.26730459928512573,
0.15798619389533997,
-0.27703458070755005,
-0.15913546085357666,
-0.6735783815383911,
-0.07148312032222748,
-0.048804886639118195,
-0.004952027462422848,
0.000628952810075134,
0.11898097395896912,
0.15868313610553741,
0.13626037538051605,
0.06926503032445908,
-0.026041097939014435,
-0.5322327613830566,
0.32914841175079346,
-0.21546298265457153,
-0.005382022354751825,
-0.08778822422027588,
0.43666037917137146,
0.041489314287900925,
-0.10649862885475159,
0.010835972614586353,
0.09469053894281387,
0.034019067883491516,
0.0655476525425911,
0.005946007091552019,
0.017562316730618477,
-0.12066256999969482,
0.15823833644390106,
0.14234568178653717,
0.17081564664840698,
-0.23485438525676727,
0.18956582248210907,
-0.283257395029068,
0.029292738065123558,
-0.19824397563934326,
0.15615543723106384,
0.26981499791145325,
0.5158435106277466,
-0.18345120549201965,
-0.06868429481983185,
-0.06360150873661041,
0.16536132991313934,
0.11124403774738312,
-0.06495962291955948,
-0.19141222536563873,
0.08976924419403076,
-0.008699489757418633,
0.27149632573127747,
-0.2622263431549072,
0.1059422567486763,
0.0038293045945465565,
0.0026381914503872395,
-0.49204009771347046,
-0.710914671421051,
0.45224618911743164,
-0.40331435203552246,
-0.5287766456604004,
-0.07965713739395142,
0.5906728506088257,
0.24035385251045227,
-0.03215363621711731,
-0.708696186542511,
-0.03598939999938011,
0.3959985077381134,
0.2443479597568512,
-0.3021715581417084,
0.2129865437746048,
0.1219397708773613,
0.008532153442502022,
0.01442487072199583,
0.6226134896278381,
0.3105247914791107,
-0.2327544093132019,
0.2679707705974579,
-0.4604586064815521
] |
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.1380539983510971,
-0.020553486421704292,
0.22738707065582275,
0.11762414872646332,
-0.15759755671024323,
0.26700559258461,
0.2965675890445709,
-0.5154969096183777,
0.28040802478790283,
0.14544112980365753,
0.4508610665798187,
-0.09352816641330719,
-0.18102063238620758,
0.06429968774318695,
-0.05757623538374901,
0.12214332073926926,
0.24844613671302795,
-0.07153476774692535,
-0.23429234325885773,
0.1333337426185608,
0.3007955849170685,
-0.2574562132358551,
-0.06466085463762283,
-0.2737535834312439,
0.08476094156503677,
-0.07667049020528793,
-0.2693380117416382,
-0.05328643321990967,
-0.4953400194644928,
0.15393930673599243,
0.011122780852019787,
0.10494501143693924,
0.3338853716850281,
-0.00011551438365131617,
-0.08517564833164215,
0.03693799301981926,
0.09381239861249924,
-0.23824083805084229,
-0.157761812210083,
-0.09692791104316711,
0.08862317353487015,
-0.06983952224254608,
-0.027057817205786705,
-0.08341064304113388,
0.19374705851078033,
0.052933987230062485,
-0.09816265106201172,
0.5147067904472351,
0.29158470034599304,
0.14006787538528442,
-0.010242540389299393,
-0.25211936235427856,
-0.06595246493816376,
0.31986960768699646,
0.0313081219792366,
0.08507551997900009,
-0.1780208796262741,
0.2137235403060913,
0.03147941827774048,
-0.05166791379451752,
0.618067741394043,
-0.2813331186771393,
0.3980185091495514,
-0.2359149158000946,
0.12423034012317657,
-0.37117713689804077,
-0.5308332443237305,
0.26683640480041504,
0.21616551280021667,
0.6465562582015991,
-0.22962398827075958,
-0.20446635782718658,
-0.23786015808582306,
0.31990838050842285,
-0.1560651659965515,
-0.04216999560594559,
-0.01617725007236004,
-0.27280205488204956,
0.23506256937980652,
-0.009494452737271786,
0.04764743149280548,
-0.2204020917415619,
0.12888051569461823,
0.05581258609890938,
-0.10741811245679855,
-0.07313630729913712,
0.13855735957622528,
-0.17709983885288239,
0.09940952807664871,
-0.08586367964744568,
0.27035775780677795,
-0.14426171779632568,
0.03412604704499245,
-0.14976243674755096,
-0.06749074161052704,
0.19251541793346405,
-0.304941862821579,
0.2917179465293884,
-0.060220710933208466,
0.38555631041526794,
0.037437789142131805,
-0.18567009270191193,
-0.08810000121593475,
0.3239295184612274,
0.01980840228497982,
-0.02336730808019638,
0.14967741072177887,
0.229897603392601,
-0.23406895995140076,
-0.2531859278678894,
0.07371608167886734,
-0.014418098144233227,
0.21627365052700043,
0.3318791687488556,
-0.2650298774242401,
0.2829245924949646,
-0.36764442920684814,
-0.5658825039863586,
0.06425022333860397,
-0.4400382936000824,
-0.10303959995508194,
-0.2528015971183777,
0.18167363107204437,
0.16933061182498932,
0.30092668533325195,
0.14492495357990265,
0.22267615795135498,
0.06933904439210892,
-0.5628321170806885,
-0.1818622499704361,
0.026798736304044724,
0.20986077189445496,
0.030840694904327393,
0.21132825314998627,
-0.3237058222293854,
0.3398515284061432,
0.34173423051834106,
0.1954527348279953,
-0.4316003620624542,
-0.2874111831188202,
-0.13017714023590088,
0.025560496374964714,
0.0091862753033638,
-0.02648996375501156,
0.3916681408882141,
0.07382100820541382,
-0.018290655687451363,
0.007235480938106775,
0.06100788339972496,
-0.10655637830495834,
0.006864713039249182,
0.2134006917476654,
0.13641057908535004,
-0.0805879458785057,
-0.16711406409740448,
0.12324772030115128,
0.36058682203292847,
0.07794494926929474,
-0.3008696734905243,
0.0030108352657407522,
-0.1827424019575119,
-0.3919648230075836,
-0.038659051060676575,
0.07733136415481567,
0.30246126651763916,
-0.3355470895767212,
0.09542718529701233,
0.17853502929210663,
0.42139723896980286,
0.3944756090641022,
0.24845457077026367,
-0.046510111540555954,
0.37343910336494446,
-0.116816446185112,
0.30014491081237793,
0.20419971644878387,
-0.46213141083717346,
-0.3920539915561676,
0.2112354189157486,
-0.049602847546339035,
0.2464137226343155,
0.15489058196544647,
-0.16278322041034698,
0.302733838558197,
0.14270736277103424,
0.3759348690509796,
0.15347911417484283,
0.14573615789413452,
0.03347977623343468,
-0.2446894347667694,
-0.05789213627576828,
0.0868305116891861,
-0.01314073521643877,
0.002154128858819604,
0.09558362513780594,
0.037038352340459824,
0.23297017812728882,
0.527152419090271,
0.07458408176898956,
0.09245166927576065,
0.1029677465558052,
0.1659652292728424,
-0.10123161226511002,
0.22397777438163757,
-0.26310086250305176,
0.2564864158630371,
-0.04889729619026184,
0.20682638883590698,
0.2837983965873718,
0.1540307253599167,
0.0793672651052475,
-0.30154553055763245,
-0.21888890862464905,
-0.29918909072875977,
-0.3250729739665985,
0.11458168923854828,
0.325737327337265,
-0.014431040734052658,
0.042046595364809036,
-0.18985795974731445,
0.3409901261329651,
-0.22032663226127625,
-0.0741860643029213,
0.023305248469114304,
0.09916584938764572,
0.0638560950756073,
-0.24470750987529755,
0.5248860120773315,
0.252898246049881,
0.185149684548378,
0.20168408751487732,
-0.1669417917728424,
0.2235521823167801,
-0.01476703118532896,
0.021967478096485138,
-0.26371699571609497,
-0.3288922905921936,
0.10994853079319,
-0.5017578601837158,
-0.11139468848705292,
0.23447151482105255,
0.31817200779914856,
-0.004500115290284157,
-0.30367574095726013,
-0.18347014486789703,
0.1390068382024765,
0.25693845748901367,
-0.05544435232877731,
-0.0651191920042038,
0.3011588156223297,
0.06625311821699142,
-0.35379981994628906,
-0.3246977925300598,
0.2526889443397522,
-0.23498022556304932,
0.2662215530872345,
0.020284786820411682,
-0.34177684783935547,
0.1585969626903534,
0.3928965628147125,
0.22451156377792358,
0.08520913869142532,
0.2943880558013916,
-0.24683265388011932,
-0.02701730839908123,
-0.12272877991199493,
0.09491192549467087,
0.29076552391052246,
0.28810423612594604,
0.054301392287015915,
-0.376454621553421,
-0.12874847650527954,
-0.11323206126689911,
0.13933591544628143,
-0.13075649738311768,
-0.3556292653083801,
0.4351169764995575,
0.35854506492614746,
0.08638767153024673,
-0.4493846297264099,
-0.13412846624851227,
-0.14240401983261108,
0.4703678786754608,
-0.33495989441871643,
-0.23163188993930817,
-0.4356054663658142,
-0.12055269628763199,
-0.10900617390871048,
0.06629130244255066,
0.0797039195895195,
0.22555126249790192,
0.2190556675195694,
-0.01271186675876379,
0.005456488113850355,
0.13680009543895721,
0.17199161648750305,
0.2340613156557083,
0.0712057426571846,
0.11179886013269424,
0.08630527555942535,
0.31914007663726807,
-0.3069572150707245,
-0.02426999993622303,
0.025972945615649223,
0.271613210439682,
0.10742948204278946,
-0.1422472596168518,
-0.1639024317264557,
-0.4067970812320709,
0.05901825428009033,
0.2675642669200897,
-0.33016806840896606,
0.5113496780395508,
0.11336217075586319,
0.16024938225746155,
-0.2251667082309723,
-0.31308186054229736,
0.0026735221035778522,
-0.026887321844697,
-0.16868680715560913,
0.3555682599544525,
0.08294298499822617,
-0.005615353584289551,
-0.04825542867183685,
-0.6989758014678955,
0.09939269721508026,
-0.2500093877315521,
0.2359428107738495,
-0.03286690637469292,
0.21037933230400085,
0.36413517594337463,
0.06060725077986717,
0.08126969635486603,
-0.058712393045425415,
0.20536965131759644,
-0.410209983587265,
-0.2545941472053528,
0.3561113476753235,
0.26060429215431213,
-0.3348698616027832,
-0.34056973457336426,
0.05095802620053291,
0.26529547572135925,
-0.032230082899332047,
-0.40010830760002136,
0.10035395622253418,
-0.26746630668640137,
0.1453494429588318,
-0.29726019501686096,
0.2826201021671295,
0.3854671120643616,
0.012993774376809597,
-0.14950419962406158,
-0.1692209243774414,
-0.10783283412456512,
0.26583540439605713,
0.3553735017776489,
0.005884540732949972,
0.10114716738462448,
0.0699148029088974,
-0.059327393770217896,
0.3506981432437897,
0.6459603905677795,
0.2025156468153,
0.2600066363811493,
-0.17655396461486816,
0.09423497319221497,
-0.03249359503388405,
-0.3995799720287323,
0.02708001434803009,
-0.11732456833124161,
-0.0625670924782753,
0.498119980096817,
-0.08999690413475037,
0.05363106355071068,
-0.16958844661712646,
-0.05727772042155266,
-0.32906243205070496,
-0.1686408370733261,
0.06749202311038971,
-0.23594006896018982,
0.1839739829301834,
0.17477507889270782,
0.052828479558229446,
0.16195283830165863,
0.0347348228096962,
-0.2861661911010742,
-0.2988381087779999,
0.2851734757423401,
-0.14997224509716034,
-0.08202991634607315,
-0.28361085057258606,
-0.37728819251060486,
-0.12410183995962143,
0.13858377933502197,
0.5095549821853638,
-0.2117001712322235,
-0.03752010315656662,
0.36001884937286377,
0.2914784550666809,
0.38102880120277405,
-0.30699393153190613,
0.09087708592414856,
0.010391024872660637,
0.22879119217395782,
0.005506852176040411,
0.005460845306515694,
-0.5205012559890747,
-0.19675882160663605,
-0.04749960079789162,
-0.04303190857172012,
-0.1668931245803833,
-0.008018579334020615,
0.10895949602127075,
0.39274418354034424,
-0.009748022072017193,
-0.24081142246723175,
-0.25577062368392944,
-0.07579295337200165,
-0.3301430642604828,
0.16156655550003052,
0.34223103523254395,
0.04439426213502884,
-0.16513317823410034,
-0.12032528221607208,
0.16039922833442688,
-0.06275198608636856,
0.5332361459732056,
0.07985962182283401,
0.37517669796943665,
0.07396505773067474,
0.3011748492717743,
0.274839848279953,
-0.357779860496521,
-0.2591434717178345,
0.36081504821777344,
0.10096927732229233,
-0.14202596247196198,
-0.0036746037658303976,
-0.34686198830604553,
0.32895734906196594,
0.49315616488456726,
-0.22319111227989197,
0.24192944169044495,
-0.29706162214279175,
0.25689423084259033,
-0.15294820070266724,
0.09574685245752335,
0.31952863931655884,
-0.07498329877853394,
-0.07518211752176285,
-0.41028639674186707,
0.3822804391384125,
-0.03649482503533363,
-0.19794794917106628,
0.34455037117004395,
0.09091878682374954,
-0.31038200855255127,
0.47125139832496643,
-0.25788405537605286,
0.8118334412574768,
0.22640712559223175,
0.36662954092025757,
0.31550174951553345,
0.13815084099769592,
0.32616499066352844,
-0.1960090696811676,
0.09023265540599823,
-0.02201833389699459,
-0.0018171957926824689,
-0.021560080349445343,
0.058343131095170975,
-0.07785571366548538,
-0.041759975254535675,
-0.5769286751747131,
0.17752942442893982,
0.06471659243106842,
0.028871016576886177,
0.18680165708065033,
-0.011851472780108452,
-0.129495769739151,
-0.10640719532966614,
0.12529928982257843,
0.032571397721767426,
-0.38393935561180115,
0.30747348070144653,
0.3099326193332672,
-0.024295685812830925,
0.031404759734869,
-0.5837308764457703,
-0.8224811553955078,
-0.03016757220029831,
-0.08251699060201645,
-0.22594010829925537,
-0.19967976212501526,
-0.3336215019226074,
0.3681987524032593,
0.25860023498535156,
0.1915539801120758,
0.32565969228744507,
-0.13796795904636383,
-0.08526414632797241,
0.36824333667755127,
0.2776511609554291,
-0.26795780658721924,
-0.025591524317860603,
0.14451885223388672,
-0.08603153377771378,
-0.3883333206176758,
0.17660337686538696,
0.055158648639917374,
0.09896288067102432,
-0.3880656361579895,
0.2538312077522278,
-0.11467956006526947,
-0.23315851390361786,
0.08573705703020096,
0.4289036691188812,
0.14151638746261597,
-0.511970579624176,
0.10320749133825302,
0.12417205423116684,
-0.4588647186756134,
0.3286854326725006,
0.17258411645889282,
-0.47551947832107544,
-0.06376240402460098,
0.25934043526649475,
0.12836147844791412,
0.0002511758357286453,
0.6646648645401001,
-0.04148245230317116,
0.04838799685239792,
-0.37047579884529114,
0.04069716855883598,
-0.020928986370563507,
-0.2641948163509369,
0.1791122853755951,
0.05866312235593796,
0.17396298050880432,
-0.22652842104434967,
0.2535494565963745,
0.026513541117310524,
0.2048032581806183,
-0.28147515654563904,
-0.3617303669452667,
-0.06197831779718399,
-0.031454168260097504,
0.12343611568212509,
0.05524059757590294,
-0.2911967933177948,
0.11818553507328033,
0.06881581246852875,
0.3186100721359253,
-0.2981918454170227,
0.0059744818136096,
-0.05179520696401596,
0.21732041239738464,
-0.0840415433049202,
0.08132117241621017,
-0.037810180336236954,
0.08517366647720337,
0.2000400274991989,
0.31851574778556824,
0.06729219108819962,
-0.15987001359462738,
-0.3062143623828888,
0.18384429812431335,
0.04174410551786423,
0.15626400709152222,
-0.04076800495386124,
0.1001056507229805,
0.1492389738559723,
-0.1337081342935562,
-0.10101133584976196,
0.334583044052124,
0.12536194920539856,
0.21837839484214783,
-0.02963205799460411,
0.03707100823521614,
0.18515658378601074,
-0.15986517071723938,
-0.18397755920886993,
-0.17245954275131226,
0.33998531103134155,
0.18061377108097076,
0.04874474182724953,
-0.04819611832499504,
0.11862441152334213,
0.039923347532749176,
-0.1340513825416565,
0.11869505792856216,
-0.07783368974924088,
-0.26557686924934387,
0.13336996734142303,
0.2876855731010437,
-0.1194794774055481,
0.37868833541870117,
-0.3459942638874054,
-0.11189936846494675,
0.09119518101215363,
0.23514406383037567,
-0.2654988169670105,
-0.12371180951595306,
-0.3232501745223999,
-0.10655146837234497,
-0.058309268206357956,
0.2784038782119751,
-0.05983138456940651,
-0.472380131483078,
0.12146651744842529,
-0.06493815034627914,
0.33602002263069153,
-0.536003053188324,
-0.07342119514942169,
0.3985147774219513,
0.014973683282732964,
-0.36111995577812195,
-0.1933402419090271,
-0.015197639353573322,
0.020801205188035965,
0.5450984835624695,
-0.36754360795021057,
0.13735824823379517,
-0.33860546350479126,
0.02638811245560646,
0.19154824316501617,
0.025605827569961548,
-0.038219377398490906,
0.4056417644023895,
-0.3271888792514801,
-0.048963211476802826,
-0.07162439823150635,
0.30504727363586426,
-0.1176723763346672,
0.03344602882862091,
-0.1280481070280075,
-0.05141435191035271,
-0.12391936033964157,
-0.12486257404088974,
-0.33803999423980713,
-0.2734285891056061,
-0.23037634789943695,
0.006182694807648659,
0.09754196554422379,
-0.012554915621876717,
0.14051346480846405,
0.19162248075008392,
-0.26688501238822937,
-0.533241331577301,
-0.19809354841709137,
-0.037783462554216385,
0.1720767617225647,
-0.3900320827960968,
0.3403874337673187,
0.30842819809913635,
-0.22177045047283173,
0.25843697786331177,
0.24336476624011993,
0.5199828147888184,
0.07158130407333374,
0.03344777971506119,
0.10651936382055283,
-0.5706878900527954,
-0.09190312772989273,
-0.05172231048345566,
0.3297678828239441,
-0.12424144893884659,
0.05875527113676071,
0.021863209083676338,
0.015872610732913017,
-0.09563972055912018,
0.02934780903160572,
0.2285461723804474,
-0.07562518119812012,
-0.5632566213607788,
0.21907812356948853,
-0.14116311073303223,
0.111732117831707,
0.04065866768360138,
0.0749841183423996,
-0.4736693799495697,
0.44173866510391235,
0.342166930437088,
0.05759596452116966,
-0.010626684874296188,
0.002189818536862731,
0.08138871192932129,
-0.12637554109096527,
-0.11261264979839325,
0.26730459928512573,
0.15798619389533997,
-0.27703458070755005,
-0.15913546085357666,
-0.6735783815383911,
-0.07148312032222748,
-0.048804886639118195,
-0.004952027462422848,
0.000628952810075134,
0.11898097395896912,
0.15868313610553741,
0.13626037538051605,
0.06926503032445908,
-0.026041097939014435,
-0.5322327613830566,
0.32914841175079346,
-0.21546298265457153,
-0.005382022354751825,
-0.08778822422027588,
0.43666037917137146,
0.041489314287900925,
-0.10649862885475159,
0.010835972614586353,
0.09469053894281387,
0.034019067883491516,
0.0655476525425911,
0.005946007091552019,
0.017562316730618477,
-0.12066256999969482,
0.15823833644390106,
0.14234568178653717,
0.17081564664840698,
-0.23485438525676727,
0.18956582248210907,
-0.283257395029068,
0.029292738065123558,
-0.19824397563934326,
0.15615543723106384,
0.26981499791145325,
0.5158435106277466,
-0.18345120549201965,
-0.06868429481983185,
-0.06360150873661041,
0.16536132991313934,
0.11124403774738312,
-0.06495962291955948,
-0.19141222536563873,
0.08976924419403076,
-0.008699489757418633,
0.27149632573127747,
-0.2622263431549072,
0.1059422567486763,
0.0038293045945465565,
0.0026381914503872395,
-0.49204009771347046,
-0.710914671421051,
0.45224618911743164,
-0.40331435203552246,
-0.5287766456604004,
-0.07965713739395142,
0.5906728506088257,
0.24035385251045227,
-0.03215363621711731,
-0.708696186542511,
-0.03598939999938011,
0.3959985077381134,
0.2443479597568512,
-0.3021715581417084,
0.2129865437746048,
0.1219397708773613,
0.008532153442502022,
0.01442487072199583,
0.6226134896278381,
0.3105247914791107,
-0.2327544093132019,
0.2679707705974579,
-0.4604586064815521
] |
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.1253398358821869,
0.02077982760965824,
0.018512921407818794,
0.025715047493577003,
0.18210408091545105,
0.025193477049469948,
0.47886666655540466,
0.24383293092250824,
0.14579592645168304,
-0.23386915028095245,
-0.11628378927707672,
0.2687394917011261,
0.08507496118545532,
0.11211282759904861,
-0.013203014619648457,
0.3137481212615967,
0.11010228842496872,
0.21448366343975067,
-0.07224980741739273,
-0.005192754790186882,
-0.2910996079444885,
0.06344251334667206,
-0.18331825733184814,
-0.21956346929073334,
-0.2065766602754593,
0.2937983572483063,
-0.042693737894296646,
0.3026082515716553,
0.008405555970966816,
-0.37312051653862,
0.18368101119995117,
0.25500625371932983,
0.18209819495677948,
0.6611071825027466,
-0.00010971599840559065,
0.06178881600499153,
0.1586233228445053,
-0.17931514978408813,
-0.17044197022914886,
-0.1858089119195938,
0.04199568182229996,
-0.04552799090743065,
-0.34614628553390503,
-0.08420974016189575,
-0.0005326158716343343,
-0.22075262665748596,
-0.17487625777721405,
-0.3461509943008423,
0.5304937958717346,
0.40280184149742126,
0.23200739920139313,
-0.11041618883609772,
0.12024067342281342,
-0.0721178874373436,
0.17871227860450745,
0.14141374826431274,
-0.06995254755020142,
0.35578176379203796,
0.10452447831630707,
-0.2072225660085678,
-0.0906309187412262,
0.07144799083471298,
-0.13013333082199097,
0.051593292504549026,
-0.10077746212482452,
-0.02663847617805004,
0.3280925750732422,
-0.1360907256603241,
0.08565757423639297,
0.17062251269817352,
0.6073065400123596,
-0.3377121388912201,
-0.41728371381759644,
0.007285953965038061,
0.018314754590392113,
-0.244277223944664,
0.16502362489700317,
0.1792500764131546,
-0.007417981047183275,
0.368666410446167,
-0.01261930726468563,
-0.02545185200870037,
0.07213737815618515,
-0.19480662047863007,
-0.03085651993751526,
-0.1178191751241684,
-0.10041656345129013,
-0.03621275722980499,
0.0516202412545681,
0.06024866923689842,
0.42135870456695557,
-0.02161678485572338,
-0.05668143182992935,
0.034285347908735275,
-0.02915351837873459,
-0.13422046601772308,
0.21530592441558838,
-0.30183514952659607,
0.07473688572645187,
-0.028192270547151566,
-0.0764477476477623,
-0.1077359989285469,
-0.05920087546110153,
0.0489802286028862,
0.07386071234941483,
0.2261451780796051,
-0.1387251913547516,
-0.0901203379034996,
0.3910103440284729,
0.17674139142036438,
-0.2513786852359772,
-0.07261873781681061,
0.029412999749183655,
-0.20272764563560486,
0.52610182762146,
-0.06475988030433655,
0.2614038586616516,
-0.14722155034542084,
-0.40446171164512634,
-0.01818079687654972,
-0.10707839578390121,
0.003264552913606167,
-0.27426406741142273,
0.1767626851797104,
0.020774243399500847,
0.3530648350715637,
0.1341455727815628,
0.18562521040439606,
0.05813954770565033,
-0.20635661482810974,
-0.22263409197330475,
-0.12268688529729843,
-0.3091828525066376,
0.025151921436190605,
0.29478293657302856,
-0.17088322341442108,
0.3440067172050476,
0.5470421314239502,
-0.3297729194164276,
-0.5027315020561218,
-0.0621347613632679,
-0.03143298998475075,
0.14525087177753448,
0.2964736819267273,
-0.0633024051785469,
-0.08639833331108093,
0.2666996419429779,
-0.09013647586107254,
-0.016839677467942238,
0.3552980124950409,
-0.09144826233386993,
-0.3069295585155487,
0.14365236461162567,
0.19756393134593964,
0.051106344908475876,
0.19584907591342926,
-0.12795142829418182,
0.015527850016951561,
0.3042721450328827,
-0.07051832973957062,
-0.04579602926969528,
-0.05007791891694069,
-0.013653049245476723,
-0.24845203757286072,
0.04766720533370972,
0.7337819933891296,
-0.46811550855636597,
0.008141998201608658,
-0.29220083355903625,
-0.08908514678478241,
0.24045568704605103,
0.07852482050657272,
0.004703405778855085,
0.04239305481314659,
-0.46869027614593506,
-0.3603304624557495,
0.1667589545249939,
-0.16695204377174377,
-0.43696001172065735,
0.005820580758154392,
-0.21424199640750885,
0.2575323283672333,
0.16651472449302673,
-0.04497851803898811,
-0.15013647079467773,
-0.017233001068234444,
0.09704721719026566,
0.2490065097808838,
0.09239411354064941,
0.044823840260505676,
-0.32461684942245483,
-0.288821280002594,
0.045568354427814484,
-0.1329668015241623,
0.28551533818244934,
0.40568098425865173,
0.35214364528656006,
0.16662050783634186,
0.3699391186237335,
0.06259281188249588,
0.015510139986872673,
0.014387113973498344,
0.3367370069026947,
-0.018009865656495094,
0.033076219260692596,
0.17652076482772827,
-0.522168755531311,
0.3075173795223236,
-0.033605195581912994,
-0.25156211853027344,
0.07289601862430573,
-0.07019541412591934,
-0.5719507336616516,
-0.2283390462398529,
-0.07209799438714981,
-0.3877536952495575,
0.17254790663719177,
0.4713418185710907,
-0.03343465179204941,
0.01849968545138836,
-0.1434890329837799,
0.47259753942489624,
-0.38450151681900024,
-0.04807119071483612,
-0.04130107909440994,
0.2855200469493866,
-0.19322890043258667,
-0.18146106600761414,
-0.2195684313774109,
-0.11879656463861465,
0.2447948306798935,
-0.16257455945014954,
-0.12155958265066147,
0.42997005581855774,
0.18604783713817596,
0.27208641171455383,
-0.3619139790534973,
-0.19503764808177948,
0.16521935164928436,
-0.016063213348388672,
-0.1465490460395813,
0.11854530870914459,
0.24596890807151794,
-0.07762636989355087,
-0.01739477925002575,
0.27890464663505554,
-0.4031006991863251,
-0.08858700096607208,
0.07137423753738403,
-0.046219922602176666,
0.26661384105682373,
-0.2367839366197586,
0.28281787037849426,
-0.34039783477783203,
-0.34033140540122986,
0.2947019934654236,
0.0018233973532915115,
0.12792770564556122,
0.09892429411411285,
0.11211409419775009,
0.2867799699306488,
0.006671332288533449,
0.04751824215054512,
-0.0890122503042221,
-0.17656587064266205,
-0.2945634126663208,
0.013121465221047401,
0.35000088810920715,
0.5929617881774902,
0.16572579741477966,
-0.016661597415804863,
0.145173117518425,
-0.058306995779275894,
-0.25380879640579224,
0.20438650250434875,
-0.26133379340171814,
-0.006469582207500935,
0.33118316531181335,
0.18785229325294495,
0.07633666694164276,
-0.6370834112167358,
0.18601514399051666,
0.514092743396759,
0.2118026316165924,
-0.21951451897621155,
-0.19098514318466187,
-0.1673654168844223,
0.4125150740146637,
0.06301699578762054,
0.14355094730854034,
-0.030055778101086617,
-0.10656651854515076,
-0.13827377557754517,
0.5955286622047424,
-0.058998316526412964,
0.07329227030277252,
-0.18508104979991913,
-0.07492683827877045,
-0.046165961772203445,
-0.1426962912082672,
-0.14728045463562012,
-0.17641475796699524,
-0.14148321747779846,
0.09109573811292648,
0.2313579022884369,
-0.34192216396331787,
0.14773108065128326,
-0.18287625908851624,
-0.12675732374191284,
-0.32676318287849426,
-0.08334308862686157,
-0.12939442694187164,
0.03400447219610214,
0.2224019467830658,
-0.22504930198192596,
0.147137850522995,
0.1697564572095871,
0.03256770968437195,
-0.00471522007137537,
-0.35545414686203003,
-0.33416905999183655,
-0.10292822122573853,
0.15119925141334534,
0.26337534189224243,
-0.26001080870628357,
-0.45545637607574463,
0.10902237892150879,
-0.3711390495300293,
-0.04065753147006035,
0.10156109184026718,
-0.09197532385587692,
0.38333576917648315,
0.2238108217716217,
-0.031083032488822937,
0.40200772881507874,
0.2698839604854584,
-0.4376196265220642,
-0.27906104922294617,
0.08050352334976196,
-0.10147792100906372,
-0.2633703649044037,
0.014791528694331646,
0.060915231704711914,
-0.01211942546069622,
0.27370527386665344,
-0.43076857924461365,
-0.08452555537223816,
-0.2824060618877411,
0.08377833664417267,
-0.05857597663998604,
0.2336963266134262,
0.208123117685318,
0.12076090276241302,
-0.2136407047510147,
-0.10408010333776474,
-0.0956784039735794,
-0.041495729237794876,
0.23349177837371826,
0.12698273360729218,
0.021205270662903786,
0.22927908599376678,
0.0935392677783966,
0.6404241323471069,
0.050311025232076645,
-0.12548068165779114,
0.5086998343467712,
0.12542299926280975,
0.7294847965240479,
-0.07403722405433655,
-0.33906078338623047,
-0.0056344387121498585,
-0.1845836639404297,
0.3192578852176666,
0.042028963565826416,
-0.10619810968637466,
0.13097941875457764,
-0.15642289817333221,
0.02422644942998886,
-0.16781242191791534,
-0.22365084290504456,
-0.11790957301855087,
-0.24939000606536865,
-0.022043878212571144,
0.3142301142215729,
-0.1047649011015892,
-0.13416559994220734,
0.0813804641366005,
-0.01852603442966938,
0.08762883394956589,
0.32204094529151917,
0.08849327266216278,
0.09943903237581253,
0.5284658670425415,
-0.10808157920837402,
-0.013338888064026833,
-0.08779793232679367,
0.36456218361854553,
0.2040727436542511,
-0.20238181948661804,
0.05859299749135971,
-0.0231176745146513,
0.7181980609893799,
-0.21944595873355865,
0.31329086422920227,
0.228694885969162,
0.011423402465879917,
-0.08702158182859421,
-0.19676651060581207,
0.10326181352138519,
-0.14877431094646454,
0.18870995938777924,
0.36492931842803955,
0.03754739463329315,
0.039001502096652985,
-0.10035698115825653,
0.20321673154830933,
0.062128741294145584,
-0.1629732847213745,
-0.278812438249588,
-0.15997223556041718,
-0.45885971188545227,
0.31173357367515564,
0.19158783555030823,
0.08900513499975204,
-0.3208870589733124,
0.08463389426469803,
-0.24782416224479675,
-0.41168177127838135,
-0.03958547115325928,
0.19514156877994537,
0.20081904530525208,
0.11396065354347229,
0.0489872507750988,
-0.016183890402317047,
-0.11711501330137253,
0.26747605204582214,
0.4194464385509491,
-0.1649918556213379,
0.06672900915145874,
-0.12805673480033875,
0.1093960627913475,
-0.06758115440607071,
0.3193851411342621,
-0.06579680740833282,
-0.11206001043319702,
-0.3978942632675171,
-0.16188181936740875,
0.06209731474518776,
0.06734585762023926,
0.0029715299606323242,
-0.33545756340026855,
-0.09545133262872696,
-0.4370090365409851,
0.28718578815460205,
-0.06821633130311966,
-0.051598165184259415,
0.45728349685668945,
0.2364322543144226,
-0.20391204953193665,
0.16251684725284576,
0.05289361625909805,
0.8192437291145325,
-0.12214766442775726,
0.16519193351268768,
0.03279036656022072,
-0.05938749760389328,
0.40347665548324585,
-0.28868159651756287,
0.19405925273895264,
-0.17677421867847443,
-0.30612409114837646,
0.10449356585741043,
-0.04080813750624657,
0.2328803539276123,
0.20792216062545776,
-0.1264052391052246,
0.1385405957698822,
-0.09847310185432434,
0.41676652431488037,
0.2764778435230255,
-0.003025943413376808,
-0.22247038781642914,
-0.1413925439119339,
-0.22919267416000366,
0.14681872725486755,
0.2811717092990875,
0.19268091022968292,
-0.1454823613166809,
-0.008617238141596317,
0.12203650921583176,
-0.022948307916522026,
-0.26856228709220886,
0.2866356074810028,
-0.16425323486328125,
0.378347247838974,
-0.4507664144039154,
-0.10984098166227341,
0.032646216452121735,
0.26009389758110046,
0.2549610435962677,
0.2578200399875641,
0.014677358791232109,
0.08309277147054672,
0.4122851490974426,
0.1323079615831375,
-0.1551150232553482,
0.0008575002430006862,
0.41588452458381653,
0.10062863677740097,
-0.3379729092121124,
0.1988285779953003,
-0.09078408032655716,
-0.14765502512454987,
0.0037591462023556232,
0.2748388648033142,
-0.04332825168967247,
-0.11250337213277817,
-0.09276469796895981,
0.09353680908679962,
-0.07497471570968628,
-0.41864433884620667,
0.1443357914686203,
-0.05225341394543648,
-0.12823985517024994,
0.12125644087791443,
-0.4481026828289032,
-0.45399022102355957,
-0.2699025869369507,
0.5651442408561707,
0.16530470550060272,
0.089688241481781,
0.3432316482067108,
-0.19581565260887146,
0.009230447933077812,
-0.19560374319553375,
0.034832727164030075,
-0.12555190920829773,
-0.32504308223724365,
0.5315566062927246,
-0.2140314131975174,
-0.10113101452589035,
0.18892580270767212,
-0.17375390231609344,
0.11054130643606186,
0.3808705806732178,
0.1637355089187622,
-0.28449365496635437,
-0.5291990637779236,
-0.3904184401035309,
-0.052490122616291046,
0.2282991260290146,
0.05084835737943649,
-0.007294780574738979,
-0.010713341645896435,
-0.004558691754937172,
-0.33507758378982544,
0.24038822948932648,
0.0919056087732315,
0.07293345779180527,
0.12427941709756851,
-0.10434818267822266,
-0.25607067346572876,
-0.2592727541923523,
0.17759542167186737,
0.32094863057136536,
-0.025410113856196404,
-0.2779422998428345,
-0.32961443066596985,
0.09583297371864319,
0.3220798373222351,
-0.1090269386768341,
-0.1992630660533905,
-0.08584725856781006,
-0.2128358632326126,
-0.11368504166603088,
0.20989595353603363,
0.41468510031700134,
-0.05050649493932724,
-0.01524881087243557,
0.33207112550735474,
0.00224489183165133,
-0.19977419078350067,
-0.09585138410329819,
-0.2755778431892395,
-0.14803649485111237,
0.06965790688991547,
0.27258795499801636,
-0.036160264164209366,
0.1273905634880066,
-0.43854427337646484,
-0.06491666287183762,
0.11951795220375061,
0.0885498896241188,
0.19131025671958923,
-0.22849629819393158,
-0.16638271510601044,
-0.08600334823131561,
0.2218843400478363,
0.40136241912841797,
0.04893627390265465,
-0.15804781019687653,
0.2325669527053833,
0.2389935851097107,
-0.5628601312637329,
-0.010694361291825771,
0.1943594366312027,
-0.00364971742965281,
0.09856466948986053,
0.19869734346866608,
0.21040508151054382,
-0.16817286610603333,
-0.06130761280655861,
0.13478827476501465,
0.2547553777694702,
-0.0625283420085907,
0.331742525100708,
0.6826934218406677,
0.17628011107444763,
0.24817517399787903,
0.25625079870224,
0.1975744664669037,
0.16425274312496185,
0.3292226493358612,
0.02296861633658409,
-0.02419295534491539,
-0.28156331181526184,
0.01844749227166176,
-0.37970617413520813,
-0.37096112966537476,
0.31608766317367554,
0.4231714904308319,
-0.21430861949920654,
0.23659230768680573,
0.03536203131079674,
-0.3099912703037262,
-0.026485886424779892,
0.029949165880680084,
-0.2805516719818115,
0.20324626564979553,
-0.12363685667514801,
-0.3274012804031372,
0.3878677189350128,
-0.20261052250862122,
-0.17774824798107147,
0.1964990198612213,
-0.04107559099793434,
0.02626083604991436,
-0.1356976330280304,
-0.0048750932328403,
-0.27219709753990173,
-0.4071179926395416,
-0.06439124047756195,
0.1155269518494606,
0.13042250275611877,
-0.20576609671115875,
-0.09847403317689896,
0.3018867075443268,
-0.13642847537994385,
-0.0018377563683316112,
0.2399723380804062,
0.378897100687027,
0.21110841631889343,
0.15349078178405762,
-0.0022810418158769608,
0.17388243973255157,
-0.008815067820250988,
-0.315762460231781,
0.4200015068054199,
0.06627470254898071,
-0.02409510500729084,
-0.1370912492275238,
0.20393900573253632,
-0.2506951093673706,
-0.08120466023683548,
0.15220679342746735,
0.014136608690023422,
-0.15470753610134125,
0.4992964565753937,
0.07199600338935852,
-0.3092769682407379,
-0.0027598030865192413,
0.2752630412578583,
0.025196556001901627,
-0.07981731742620468,
0.32673269510269165,
-0.13323000073432922,
0.28190210461616516,
-0.23000763356685638,
0.11098109185695648,
0.11482717841863632,
-0.03475314751267433,
0.4555123448371887,
-0.4898695945739746,
-0.20979581773281097,
0.09886158257722855,
-0.8163997530937195,
0.012093651108443737,
0.03284871578216553,
0.20083025097846985,
-0.14170965552330017,
0.08336999267339706,
-0.008318767882883549,
0.021293915808200836,
0.11451326310634613,
0.31389468908309937,
0.0724572241306305,
0.3102658987045288,
-0.05394641309976578,
-0.13469041883945465,
-0.09586604684591293,
-0.14770102500915527,
-0.11636525392532349,
-0.5594713687896729,
0.0759592279791832,
-0.1853274703025818,
0.2095305174589157,
-0.03706028312444687,
0.006510313134640455,
0.21801497042179108,
0.24442028999328613,
0.49459272623062134,
0.028728606179356575,
-0.03322016820311546,
-0.05200275406241417,
-0.13350322842597961,
-0.5665875673294067,
-0.03980105370283127,
-0.24664044380187988,
0.05008383467793465,
0.15206636488437653,
0.13907946646213531,
-0.3625165820121765,
-0.3033449649810791,
-0.21440480649471283,
0.3089035153388977,
0.20045116543769836,
-0.0365050807595253,
-0.32255828380584717,
-0.022641871124505997,
-0.08647472411394119,
0.02374202199280262,
0.2618906497955322,
0.2817649841308594,
-0.3526061177253723,
0.39245763421058655,
-0.39136579632759094,
-0.3119351863861084,
0.20781008899211884,
-0.3488779664039612,
-0.35972845554351807,
-0.11099787801504135,
0.2195085883140564,
-0.059010930359363556,
-0.08384617418050766,
0.08040153235197067,
0.3842257559299469,
0.22002609074115753,
-0.12928177416324615,
-0.22826704382896423,
0.11827945709228516,
-0.4038980007171631,
0.15223179757595062,
-0.09264279156923294,
0.15833701193332672,
0.15146379172801971,
-0.21538366377353668,
0.14776358008384705,
-0.07969985902309418
] |
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.04978623613715172,
-0.05474414676427841,
-0.12806656956672668,
0.0003010357322636992,
-0.03935452550649643,
-0.00713132880628109,
0.35460445284843445,
0.16591522097587585,
0.19368593394756317,
0.20558105409145355,
0.06397945433855057,
0.14600683748722076,
-0.024292515590786934,
0.1997428983449936,
-0.014876280911266804,
-0.20615309476852417,
-0.04741765931248665,
0.007556884549558163,
-0.09543991833925247,
-0.09535463899374008,
-0.12374739348888397,
0.14722810685634613,
-0.13759160041809082,
-0.2112540453672409,
-0.45807239413261414,
-0.08757700771093369,
-0.17305615544319153,
-0.02534553036093712,
-0.17212943732738495,
-0.07761876285076141,
-0.12090006470680237,
0.19935566186904907,
-0.1435842365026474,
0.3342965245246887,
-0.00009734712511999533,
-0.11899954080581665,
0.23090729117393494,
-0.1802837997674942,
-0.0871025025844574,
0.05766141787171364,
0.12335940450429916,
-0.018355434760451317,
-0.31976959109306335,
-0.44974151253700256,
-0.19174185395240784,
-0.09192665666341782,
0.2502592206001282,
0.08722647279500961,
0.2207232564687729,
-0.01719369739294052,
0.3280394971370697,
-0.12104446440935135,
0.10394831001758575,
0.024298327043652534,
0.040867000818252563,
0.1121114119887352,
-0.13301201164722443,
-0.000700378033798188,
0.015008404850959778,
-0.3246171474456787,
-0.16043151915073395,
0.6847468614578247,
0.01717301271855831,
0.027253935113549232,
0.06144127994775772,
0.05636611580848694,
-0.1721414476633072,
-0.32972458004951477,
0.1790352761745453,
0.43494996428489685,
0.5310003161430359,
0.002228651661425829,
-0.16606581211090088,
-0.05319720134139061,
-0.08755932748317719,
-0.06501001864671707,
0.1432967483997345,
0.29994311928749084,
-0.13682299852371216,
0.023942871019244194,
-0.26669713854789734,
0.0028922325000166893,
-0.25453928112983704,
0.15935984253883362,
-0.19594629108905792,
0.4131121337413788,
0.021566636860370636,
0.032652828842401505,
-0.0001826640364015475,
-0.2101522833108902,
-0.4369371235370636,
-0.012732155621051788,
0.2125464677810669,
0.009994684718549252,
0.03810901939868927,
-0.2509274184703827,
-0.050386443734169006,
-0.15460902452468872,
0.3692227602005005,
-0.19737836718559265,
-0.0403587780892849,
0.07332411408424377,
-0.1825133115053177,
0.30016621947288513,
0.11515641212463379,
-0.2735804319381714,
-0.17287759482860565,
0.021519111469388008,
0.18278467655181885,
0.08740605413913727,
-0.24666397273540497,
0.13446390628814697,
0.225302591919899,
-0.10297315567731857,
-0.1772986501455307,
-0.08780037611722946,
0.10702048987150192,
-0.04666152223944664,
-0.10756061226129532,
-0.00858322437852621,
-0.14670516550540924,
-0.07101268321275711,
-0.43605801463127136,
0.21651695668697357,
-0.03357614949345589,
0.10984993726015091,
0.12789708375930786,
0.1473863124847412,
-0.21880802512168884,
-0.1533711552619934,
-0.10578694194555283,
0.10091503709554672,
0.055739954113960266,
0.2790457606315613,
0.12110259383916855,
0.331138014793396,
0.2567347288131714,
-0.08240287750959396,
0.17464543879032135,
0.09472019970417023,
0.04164840281009674,
-0.0953107476234436,
0.25552454590797424,
-0.008911803364753723,
0.016462435945868492,
-0.12272748351097107,
-0.05124130845069885,
-0.27936193346977234,
-0.19902430474758148,
0.027065536007285118,
-0.1084727868437767,
0.20363155007362366,
-0.32129067182540894,
0.2668367028236389,
0.14469771087169647,
-0.0583512969315052,
-0.004564288537949324,
0.6982094645500183,
0.09597613662481308,
0.030842233449220657,
0.13653092086315155,
0.14452481269836426,
-0.3958846926689148,
-0.0636468306183815,
0.24535243213176727,
0.4490680694580078,
-0.08862800151109695,
0.025528639554977417,
0.3061012327671051,
0.35646137595176697,
0.01937013678252697,
0.19322043657302856,
0.02455061487853527,
-0.018151074647903442,
0.04887529835104942,
0.26301783323287964,
-0.10562051832675934,
-0.23586858808994293,
-0.11953921616077423,
-0.17599070072174072,
-0.096511609852314,
0.10207594931125641,
0.032643724232912064,
0.28605127334594727,
0.2700505554676056,
-0.10277512669563293,
0.09353413432836533,
0.6013002395629883,
-0.18929436802864075,
0.2137656807899475,
-0.2130071073770523,
-0.3863323926925659,
-0.006900251377373934,
0.32738035917282104,
0.128563791513443,
-0.4685770273208618,
0.22502323985099792,
0.19093988835811615,
0.03199862316250801,
-0.38458698987960815,
0.09872255474328995,
0.007533953059464693,
-0.031035166233778,
0.09958432614803314,
0.0918281227350235,
-0.23989492654800415,
-0.007951688021421432,
0.05467923730611801,
0.20491547882556915,
0.48322194814682007,
-0.1773443967103958,
-0.2481343299150467,
-0.03899572417140007,
-0.1513751596212387,
-0.10651401430368423,
-0.36987102031707764,
0.3537430167198181,
0.12058652192354202,
-0.004548630211502314,
0.2210569977760315,
0.07844992727041245,
-0.05941598862409592,
-0.3163442015647888,
-0.045601941645145416,
0.11990609765052795,
0.1867600828409195,
-0.2623734176158905,
-0.01857590302824974,
0.12186593562364578,
0.08605309575796127,
-0.08356046676635742,
0.18076485395431519,
0.09117460250854492,
0.19132499396800995,
0.04617708548903465,
0.34554150700569153,
0.26779529452323914,
0.053057994693517685,
0.3559018671512604,
-0.6900476813316345,
-0.06900867074728012,
0.191234290599823,
0.003061140887439251,
0.012259899638593197,
-0.265972763299942,
0.18192774057388306,
0.2717040181159973,
0.045216985046863556,
-0.08044536411762238,
-0.008308432064950466,
0.14734706282615662,
-0.02443920075893402,
0.05837029218673706,
-0.3646616041660309,
-0.08103777468204498,
0.21299919486045837,
-0.2515612244606018,
-0.23260581493377686,
-0.18902429938316345,
0.18087488412857056,
0.5132710337638855,
0.24331717193126678,
0.3687909245491028,
0.168417826294899,
-0.11996781826019287,
-0.14010493457317352,
-0.006869826000183821,
-0.09601571410894394,
-0.1688118577003479,
0.37421050667762756,
-0.053772520273923874,
-0.1260633021593094,
-0.2724704146385193,
-0.09229515492916107,
0.17809565365314484,
-0.01589231938123703,
0.2231314480304718,
0.04866470769047737,
0.2492242306470871,
-0.02499089576303959,
-0.4577437937259674,
-0.1271137148141861,
-0.15744897723197937,
-0.19730310142040253,
0.056282199919223785,
0.07846472412347794,
-0.07133180648088455,
-0.19916023313999176,
-0.0669652670621872,
0.28336066007614136,
-0.3087121546268463,
-0.11430847644805908,
0.352222740650177,
0.01521886046975851,
-0.11031129956245422,
0.18331359326839447,
0.08732431381940842,
0.17335627973079681,
0.18623457849025726,
0.024558207020163536,
-0.13379400968551636,
-0.5455777049064636,
-0.061116792261600494,
0.2686131000518799,
0.17435933649539948,
-0.016150381416082382,
0.5377417206764221,
-0.17810119688510895,
0.036774080246686935,
-0.28842514753341675,
-0.7053375840187073,
0.1020471602678299,
-0.1840778887271881,
0.1969560831785202,
0.015518298372626305,
0.2760659158229828,
-0.2234162539243698,
-0.15411321818828583,
0.1546299308538437,
-0.10174669325351715,
-0.1935490518808365,
-0.22095850110054016,
0.048076823353767395,
0.04209988936781883,
-0.22918671369552612,
-0.2148967832326889,
-0.14420758187770844,
-0.24474847316741943,
0.10660207271575928,
0.3489590585231781,
0.17218762636184692,
0.06473648548126221,
0.38381728529930115,
0.028066260740160942,
-0.02386992610991001,
0.2764135003089905,
-0.35711604356765747,
-0.03220289573073387,
0.36824655532836914,
-0.3039097487926483,
-0.40381550788879395,
-0.16452716290950775,
-0.18276670575141907,
0.16991333663463593,
0.059195347130298615,
-0.3852043151855469,
-0.39320600032806396,
0.01609245501458645,
0.1964576244354248,
0.2606026232242584,
0.07765543460845947,
0.16889671981334686,
0.16969731450080872,
-0.2888210415840149,
-0.12013015896081924,
-0.09050031751394272,
0.10876279324293137,
0.08043920248746872,
0.03271741792559624,
0.2156328558921814,
0.09163656830787659,
0.2265031784772873,
0.6132444143295288,
-0.16133959591388702,
-0.02815690077841282,
0.4119827449321747,
-0.03838086500763893,
0.22410404682159424,
-0.00023337762104347348,
-0.07051170617341995,
0.4972856938838959,
0.009116468019783497,
0.15814490616321564,
0.24899742007255554,
0.1093951165676117,
-0.4575260877609253,
-0.1425068974494934,
0.07410725951194763,
-0.43098434805870056,
-0.18312901258468628,
0.11262344568967819,
0.28222304582595825,
0.13590233027935028,
-0.12557268142700195,
-0.11187724024057388,
-0.19500742852687836,
-0.21409906446933746,
0.1501377820968628,
0.13654613494873047,
-0.03306730464100838,
-0.08543974161148071,
-0.14780259132385254,
0.0440790094435215,
-0.20995837450027466,
0.13260014355182648,
0.38083896040916443,
-0.17131298780441284,
-0.12352953106164932,
-0.0641891211271286,
-0.1482815444469452,
-0.22657348215579987,
0.24561747908592224,
-0.3066804111003876,
-0.0396217480301857,
-0.00018551573157310486,
-0.005773553624749184,
0.017194192856550217,
0.2211826890707016,
-0.20882607996463776,
-0.34430214762687683,
-0.04523095488548279,
0.24777249991893768,
-0.42939475178718567,
0.08817040175199509,
0.39060869812965393,
0.18757501244544983,
-0.0982600674033165,
0.07251344621181488,
-0.15351350605487823,
-0.44660520553588867,
-0.463980495929718,
0.07592840492725372,
-0.017923040315508842,
0.23405267298221588,
0.16927433013916016,
-0.046104203909635544,
-0.04956107959151268,
-0.03458038344979286,
-0.03135691583156586,
0.3599342703819275,
0.023260509595274925,
0.24515339732170105,
-0.1866830289363861,
0.015925802290439606,
-0.03627568483352661,
-0.039268821477890015,
0.2646232843399048,
0.06555986404418945,
0.062099527567625046,
-0.1904882788658142,
-0.1798865646123886,
-0.008132691495120525,
0.13258706033229828,
0.24912512302398682,
-0.032528944313526154,
0.009901802986860275,
0.03238080069422722,
-0.38695642352104187,
0.21385277807712555,
0.10158637166023254,
0.1107608899474144,
-0.014832939952611923,
-0.26820793747901917,
0.3575322926044464,
0.013969327323138714,
0.08968247473239899,
0.3896492123603821,
0.08274810761213303,
-0.4077330231666565,
0.1313973367214203,
0.6063616275787354,
0.876694917678833,
-0.17842787504196167,
0.19688503444194794,
0.11565272510051727,
-0.12276957929134369,
0.49013668298721313,
-0.012511075474321842,
0.0893896296620369,
-0.09030492603778839,
0.04620545357465744,
-0.04825741797685623,
0.18107661604881287,
0.023386413231492043,
-0.007180027663707733,
-0.23839697241783142,
-0.05914869159460068,
0.4950779676437378,
0.05098874866962433,
0.022318001836538315,
0.24544113874435425,
-0.01800035499036312,
-0.37122246623039246,
-0.16389140486717224,
0.2396213263273239,
-0.13479448854923248,
-0.038617800921201706,
0.020554665476083755,
-0.12826472520828247,
-0.05630653724074364,
-0.24087302386760712,
-0.26612192392349243,
-0.03752626106142998,
-0.3923754096031189,
0.20526425540447235,
-0.25204795598983765,
-0.23213131725788116,
0.05400058999657631,
0.19257216155529022,
0.15387818217277527,
-0.011854590848088264,
-0.1931021362543106,
0.2699621319770813,
-0.216696098446846,
-0.12972858548164368,
0.09944786131381989,
-0.07785576581954956,
0.3134607672691345,
-0.16212612390518188,
-0.2310345619916916,
0.06826405227184296,
0.3530697226524353,
-0.20035332441329956,
-0.37840569019317627,
-0.15962041914463043,
0.21485696732997894,
0.3098066747188568,
-0.07141203433275223,
0.03680941462516785,
-0.40809309482574463,
-0.25505635142326355,
0.26626086235046387,
-0.17208446562290192,
0.12809520959854126,
0.09532293677330017,
0.3381574749946594,
-0.0661720335483551,
0.012041364796459675,
0.27996695041656494,
0.15132413804531097,
0.06921606510877609,
0.2529289126396179,
0.19705109298229218,
-0.15937742590904236,
-0.26254817843437195,
-0.14282631874084473,
-0.21437926590442657,
-0.3051331639289856,
-0.13529831171035767,
0.06716713309288025,
-0.20435282588005066,
-0.13380266726016998,
0.364198237657547,
0.16250555217266083,
-0.02555915154516697,
0.09161865711212158,
-0.07917734980583191,
-0.04353226721286774,
0.3351583480834961,
-0.26450783014297485,
0.2620086967945099,
0.13626132905483246,
0.0919240191578865,
0.062100380659103394,
0.24666602909564972,
-0.46977055072784424,
0.0008082198328338563,
-0.2768246531486511,
0.22043851017951965,
0.2841958999633789,
-0.18620601296424866,
-0.028030751273036003,
0.12536856532096863,
0.3021198809146881,
0.0017986418679356575,
-0.16856098175048828,
-0.3627263903617859,
-0.24314358830451965,
0.042277246713638306,
0.033410798758268356,
-0.1346723735332489,
0.02545696683228016,
-0.07903238385915756,
-0.08361531049013138,
-0.1622530221939087,
0.09319359064102173,
-0.2240975797176361,
-0.2472420632839203,
0.2228255420923233,
-0.18231387436389923,
0.07007072865962982,
0.09484601765871048,
-0.18610802292823792,
-0.09508485347032547,
0.4156051278114319,
0.053598079830408096,
-0.10834194719791412,
0.22086498141288757,
-0.13956671953201294,
-0.02601371705532074,
0.2909342646598816,
-0.2630016505718231,
0.01330801472067833,
0.2766338884830475,
0.1419242024421692,
-0.034324705600738525,
0.24412015080451965,
0.2616047263145447,
-0.21285296976566315,
-0.2781761586666107,
-0.07092922925949097,
0.20340584218502045,
0.3885400891304016,
-0.3480495512485504,
-0.0002690938126761466,
0.3647507131099701,
-0.4026501774787903,
0.4058001637458801,
0.3052505552768707,
0.16807587444782257,
-0.047095004469156265,
-0.2581315338611603,
0.076539047062397,
-0.016994765028357506,
-0.43400242924690247,
-0.020303921774029732,
0.1415558159351349,
0.11057574301958084,
0.04873596876859665,
-0.06017031520605087,
0.15924741327762604,
0.27904465794563293,
0.27026304602622986,
-0.05767161026597023,
0.4003254473209381,
0.07007240504026413,
0.05365953594446182,
0.28205907344818115,
0.2163238525390625,
0.500888466835022,
0.1520393043756485,
0.06153281405568123,
0.33753296732902527,
0.06671107560396194,
-0.04894936829805374,
0.02316625975072384,
-0.14150874316692352,
-0.11761550605297089,
0.31344106793403625,
-0.014750035479664803,
-0.0715857446193695,
-0.3975224792957306,
-0.21558502316474915,
-0.05025343596935272,
0.09920413047075272,
0.08556687831878662,
-0.14505687355995178,
0.23546358942985535,
0.05249658226966858,
-0.11966492235660553,
-0.2443862408399582,
-0.04307178780436516,
-0.06646468490362167,
0.5451587438583374,
-0.19913816452026367,
0.06965979933738708,
0.2658623158931732,
-0.0356091745197773,
0.0963544100522995,
0.4021223187446594,
0.19850409030914307,
0.07891662418842316,
-0.23817454278469086,
0.10883498936891556,
-0.04457833617925644,
-0.14409802854061127,
-0.14252540469169617,
-0.0305382888764143,
0.14775975048542023,
-0.2748594284057617,
0.3493749797344208,
0.26314595341682434,
-0.3019365072250366,
-0.3211144506931305,
0.3872305154800415,
-0.13458716869354248,
-0.010066010057926178,
-0.6193215847015381,
-0.0026285508647561073,
0.04432019218802452,
-0.1521768867969513,
0.10487852245569229,
-0.536339521408081,
-0.09522514045238495,
-0.08854315429925919,
-0.032134268432855606,
0.02772015891969204,
-0.1648295372724533,
0.13386300206184387,
0.0752423107624054,
0.4413735270500183,
0.2891276180744171,
0.06067618727684021,
0.06196439638733864,
-0.2279340922832489,
-0.5278968811035156,
0.11675378680229187,
-0.07994097471237183,
-0.4166082739830017,
-0.1129242330789566,
0.3505660593509674,
0.24548937380313873,
0.2385324388742447,
0.100320965051651,
-0.15066562592983246,
0.24236544966697693,
0.07097399979829788,
-0.287541925907135,
0.08085845410823822,
0.05618772655725479,
0.05418011173605919,
-0.0941888689994812,
-0.17191706597805023,
0.12519600987434387,
-0.24718451499938965,
0.3233293294906616,
-0.24117568135261536,
0.11204290390014648,
-0.17017678916454315,
0.07295748591423035,
0.06469180434942245,
-0.027288611978292465,
0.18143761157989502,
-0.43561264872550964,
-0.31987428665161133,
-0.03625895828008652,
0.011588912457227707,
-0.1519787758588791,
0.11356351524591446,
0.15610650181770325,
0.5797207951545715,
0.06924934685230255,
-0.07130149006843567,
0.10666260123252869,
0.4916711449623108,
0.020184816792607307,
0.029558658599853516,
0.09484254568815231,
0.03102673962712288,
0.2517525553703308,
-0.19978252053260803,
-0.07885932177305222,
0.3963516056537628,
-0.09071630239486694,
-0.1283353865146637,
-0.055132295936346054,
-0.6203973889350891,
0.11908967792987823,
-0.4396669268608093,
-0.18748216331005096,
-0.03732091560959816,
-0.13978606462478638,
0.10886214673519135,
0.39965394139289856,
-0.30557742714881897,
0.2087809294462204,
0.22386988997459412,
0.1930088847875595,
-0.24400295317173004,
0.3604777157306671,
0.11555570363998413,
-0.14298197627067566,
-0.08355703949928284,
-0.1805305927991867,
-0.04298264533281326,
-0.07564938813447952,
-0.21745985746383667,
-0.3298109769821167
] |
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.08095166832208633,
-0.22145535051822662,
-0.19897308945655823,
0.013309778645634651,
0.05485624447464943,
0.0012884080642834306,
0.4317956268787384,
0.09052835404872894,
0.2972513437271118,
0.14708270132541656,
-0.014002909883856773,
0.11782088875770569,
-0.1801292598247528,
0.27506309747695923,
0.1759229600429535,
-0.23472976684570312,
0.05288594588637352,
-0.05255896970629692,
-0.1111660823225975,
-0.07941924780607224,
-0.05225709080696106,
0.19801340997219086,
-0.19383811950683594,
-0.24779284000396729,
-0.3986717462539673,
-0.10572019219398499,
-0.17398923635482788,
-0.016951916739344597,
-0.18466442823410034,
0.03277386724948883,
-0.26081275939941406,
0.07331781089305878,
-0.11569736897945404,
0.47700586915016174,
-0.00009640317148296162,
-0.06457953155040741,
0.21438445150852203,
-0.14239051938056946,
-0.054559893906116486,
-0.1777077615261078,
0.04153536260128021,
-0.004911542870104313,
-0.25490090250968933,
-0.2813231945037842,
-0.18397927284240723,
-0.1538781374692917,
0.2700452506542206,
-0.0029812755528837442,
0.30534252524375916,
0.12109799683094025,
0.3088105618953705,
-0.14746783673763275,
0.20715393126010895,
-0.05143780633807182,
0.13264334201812744,
0.15440870821475983,
-0.24827486276626587,
-0.09643619507551193,
0.09663917124271393,
-0.22675707936286926,
-0.24215500056743622,
0.6854543089866638,
0.11605691909790039,
0.02501571550965309,
-0.025282276794314384,
0.007096038665622473,
-0.09265007078647614,
-0.29549622535705566,
0.1886395364999771,
0.47004014253616333,
0.5937215089797974,
-0.1630619913339615,
-0.1721826195716858,
0.09196725487709045,
-0.0487036295235157,
0.039769042283296585,
0.040856584906578064,
0.35710519552230835,
-0.1618402898311615,
0.06495915353298187,
-0.17831774055957794,
-0.15133200585842133,
-0.17268775403499603,
0.2914959192276001,
-0.09491041302680969,
0.4078669846057892,
-0.03154561668634415,
-0.05558104068040848,
-0.037376683205366135,
-0.1777149885892868,
-0.21642367541790009,
0.0523085817694664,
0.2419593781232834,
0.06623651832342148,
0.03358634188771248,
-0.12569119036197662,
0.03854909539222717,
-0.1135111153125763,
0.34175100922584534,
-0.2774721682071686,
-0.056575287133455276,
0.1329013854265213,
-0.32311174273490906,
0.30923962593078613,
0.1385563462972641,
-0.21742486953735352,
-0.14503277838230133,
-0.18548211455345154,
0.1951015442609787,
0.0325007326900959,
-0.2619887590408325,
0.15055802464485168,
0.09972085803747177,
-0.021424688398838043,
-0.227395698428154,
-0.16076886653900146,
-0.05164630711078644,
0.09113910794258118,
0.11939707398414612,
-0.0707593783736229,
-0.14215867221355438,
-0.06617993861436844,
-0.3177124857902527,
0.24070152640342712,
0.10100478678941727,
0.08155833929777145,
0.09653064608573914,
0.2475896030664444,
-0.1470990777015686,
-0.17651695013046265,
-0.0881536602973938,
0.2248414158821106,
-0.19037041068077087,
0.12650243937969208,
0.1592802107334137,
0.511336088180542,
0.25375041365623474,
-0.07337714731693268,
0.11290880292654037,
0.0018317009089514613,
0.08566078543663025,
-0.10014023631811142,
0.20698395371437073,
-0.05579115077853203,
0.08096832782030106,
-0.15241318941116333,
-0.07337309420108795,
-0.31028902530670166,
-0.155538871884346,
0.0773521438241005,
-0.08899124711751938,
0.04937739670276642,
-0.41611525416374207,
0.253064900636673,
0.12848499417304993,
-0.08091782033443451,
0.09084723144769669,
0.7699176073074341,
0.05824889615178108,
-0.034235578030347824,
0.1798476278781891,
0.28333455324172974,
-0.3797138035297394,
-0.002515495754778385,
0.17577415704727173,
0.39056479930877686,
-0.09242024272680283,
-0.0642547756433487,
0.13284815847873688,
0.2665214240550995,
-0.058394256979227066,
0.21739085018634796,
-0.05673067271709442,
0.08785752207040787,
0.02464941330254078,
0.23228782415390015,
0.06946086138486862,
-0.13952909409999847,
-0.04350071772933006,
-0.1011100709438324,
-0.08136072009801865,
0.01060555875301361,
0.08365489542484283,
0.298144668340683,
-0.01279380451887846,
0.0965290293097496,
0.008078338578343391,
0.6753435730934143,
-0.10981573909521103,
0.2286003977060318,
-0.2737778425216675,
-0.4278283715248108,
-0.01139815803617239,
0.3287436068058014,
0.14537660777568817,
-0.40550556778907776,
0.3278425931930542,
0.23224426805973053,
0.0949866995215416,
-0.31368914246559143,
0.10858538746833801,
0.022320456802845,
-0.000504625029861927,
0.1467115730047226,
0.10928480327129364,
-0.29647311568260193,
-0.08367589861154556,
-0.130401611328125,
0.1318238526582718,
0.4837469160556793,
-0.2482890486717224,
-0.24802792072296143,
0.004285383503884077,
-0.20535892248153687,
-0.06219298765063286,
-0.27046656608581543,
0.36171022057533264,
0.1716301143169403,
-0.130621075630188,
0.2724720537662506,
0.04305848851799965,
-0.0919281616806984,
-0.25331538915634155,
-0.06226881965994835,
-0.04062943533062935,
0.15818777680397034,
-0.20462846755981445,
-0.017777658998966217,
0.04724924638867378,
0.19870053231716156,
-0.2961708605289459,
0.05333434417843819,
0.1038888469338417,
0.18656480312347412,
0.07922596484422684,
0.3698841333389282,
0.38739171624183655,
0.11207979172468185,
0.2921234667301178,
-0.6291124224662781,
0.11541485786437988,
0.07602854818105698,
-0.006125575862824917,
-0.017606424167752266,
-0.38419976830482483,
0.04726699739694595,
0.19283391535282135,
-0.0016581432428210974,
0.11443351209163666,
0.07339299470186234,
0.2081538438796997,
-0.09567836672067642,
-0.00499332370236516,
-0.3668539524078369,
0.001606083707883954,
0.1734437197446823,
-0.18848596513271332,
-0.18246141076087952,
-0.20302583277225494,
0.08076871931552887,
0.5237088799476624,
0.22584179043769836,
0.5505995154380798,
0.1254284828901291,
-0.14207956194877625,
-0.28885769844055176,
0.0549861304461956,
-0.29412683844566345,
-0.16557732224464417,
0.31162673234939575,
-0.025124501436948776,
-0.17824268341064453,
-0.04823494702577591,
-0.08552767336368561,
0.13381589949131012,
-0.02769295498728752,
0.1904965192079544,
0.09144411236047745,
0.2914775311946869,
-0.11498123407363892,
-0.563030481338501,
-0.07052677869796753,
-0.02238370105624199,
-0.21006333827972412,
0.09556341171264648,
0.05322924628853798,
0.008563573472201824,
-0.28135472536087036,
-0.09144912660121918,
0.10905768722295761,
-0.27413415908813477,
-0.04608871415257454,
0.34481650590896606,
-0.06129568815231323,
-0.10884234309196472,
0.22262898087501526,
0.26466691493988037,
0.26592370867729187,
0.05352279916405678,
-0.03270778805017471,
-0.05693335086107254,
-0.44801196455955505,
-0.0012576794251799583,
0.27444642782211304,
0.30945318937301636,
0.07743735611438751,
0.44925355911254883,
-0.17061857879161835,
-0.003269999986514449,
-0.1970403492450714,
-0.6828349828720093,
0.19318583607673645,
-0.17993319034576416,
0.22229759395122528,
0.04653463140130043,
0.059800442308187485,
-0.2162090539932251,
-0.1784387081861496,
0.12670494616031647,
-0.15505652129650116,
-0.12783260643482208,
-0.05143881216645241,
0.06432610005140305,
0.07919670641422272,
-0.17118220031261444,
-0.26518160104751587,
-0.16081483662128448,
-0.32268476486206055,
0.32410135865211487,
0.23656798899173737,
0.11344930529594421,
-0.05678173899650574,
0.3845588266849518,
0.051801592111587524,
-0.023132340982556343,
0.2783184349536896,
-0.3127382695674896,
-0.058928489685058594,
0.151558980345726,
-0.36460405588150024,
-0.3476811647415161,
-0.2444104105234146,
-0.19888092577457428,
0.2525683641433716,
0.08084288239479065,
-0.42921197414398193,
-0.3522474765777588,
0.031181607395410538,
0.20614665746688843,
0.14198243618011475,
0.08425967395305634,
0.24483683705329895,
0.19040828943252563,
-0.27931079268455505,
-0.15480659902095795,
-0.004161497578024864,
0.025512367486953735,
-0.11572083830833435,
0.07603415101766586,
0.1783277541399002,
0.013951116241514683,
0.2965380549430847,
0.4465201199054718,
-0.21760545670986176,
0.14767804741859436,
0.38422852754592896,
0.0036174352280795574,
0.17146439850330353,
-0.2575021982192993,
-0.10828854143619537,
0.5114598870277405,
-0.015588032081723213,
0.053223542869091034,
0.3055925965309143,
0.1387232095003128,
-0.4937727749347687,
-0.10477433353662491,
0.15938377380371094,
-0.5112808346748352,
-0.13315115869045258,
0.1892554610967636,
0.1403902769088745,
0.16005226969718933,
-0.1513727903366089,
-0.30179300904273987,
-0.1755918562412262,
-0.18795588612556458,
0.18348582088947296,
0.25549566745758057,
-0.06632299721240997,
-0.08578673005104065,
-0.17686478793621063,
0.036985401064157486,
-0.12111353874206543,
0.047108232975006104,
0.30258938670158386,
-0.1103600338101387,
-0.16570475697517395,
-0.12560376524925232,
-0.06918080151081085,
-0.14235246181488037,
0.2711544930934906,
-0.3945426046848297,
-0.18024957180023193,
0.10244503617286682,
-0.06272763013839722,
-0.07763595134019852,
0.27616965770721436,
-0.3302931487560272,
-0.261778324842453,
0.06333506107330322,
0.31135404109954834,
-0.3719661831855774,
0.07628626376390457,
0.4057544767856598,
0.15317320823669434,
0.004568086471408606,
-0.03824703022837639,
-0.08394898474216461,
-0.23030906915664673,
-0.44167599081993103,
0.07560959458351135,
-0.04752426967024803,
0.1286156326532364,
0.2946779727935791,
-0.07334335893392563,
-0.03143864870071411,
-0.04845532402396202,
-0.09013320505619049,
0.2570098340511322,
-0.0899745300412178,
0.2848593294620514,
-0.16903050243854523,
-0.125971719622612,
-0.11030394583940506,
-0.1840963214635849,
0.17070358991622925,
-0.08021952956914902,
-0.05677459016442299,
-0.2014104425907135,
-0.29663655161857605,
0.09549054503440857,
0.07313907891511917,
0.2481430172920227,
0.0807814821600914,
-0.06387706100940704,
-0.016712825745344162,
-0.3351787030696869,
0.16095907986164093,
0.22880077362060547,
0.21698889136314392,
0.005677543114870787,
-0.2819865345954895,
0.3445274829864502,
-0.07302088290452957,
0.03978408873081207,
0.3688853979110718,
-0.13239926099777222,
-0.41686660051345825,
0.32946938276290894,
0.36678022146224976,
0.9066298007965088,
-0.14122894406318665,
0.2516901195049286,
0.052110884338617325,
0.044372569769620895,
0.3796302080154419,
-0.2828923165798187,
0.060482755303382874,
0.04792888090014458,
0.05638554319739342,
-0.05485502630472183,
0.19236817955970764,
-0.01178610511124134,
0.03259321674704552,
-0.2751656174659729,
-0.1745011806488037,
0.3504124879837036,
0.10968861728906631,
0.058124180883169174,
0.3463217616081238,
-0.05013229697942734,
-0.45852622389793396,
-0.2810162901878357,
0.23336729407310486,
0.07365460693836212,
-0.1327337920665741,
-0.018684344366192818,
-0.0988536924123764,
0.03985626623034477,
-0.07208234816789627,
-0.33935049176216125,
-0.07062482833862305,
-0.32288476824760437,
0.21838967502117157,
-0.3081164062023163,
-0.3472001850605011,
0.16684021055698395,
0.2316645383834839,
0.2130434662103653,
0.12620459496974945,
-0.26043227314949036,
0.2059071809053421,
-0.08193841576576233,
-0.14365234971046448,
0.0000343861393048428,
-0.09366403520107269,
0.3640661835670471,
-0.157727912068367,
-0.19656479358673096,
0.03128901124000549,
0.2719181180000305,
-0.19143876433372498,
-0.49625712633132935,
-0.1763629913330078,
0.32317596673965454,
0.24697573482990265,
0.0594012513756752,
0.2734149098396301,
-0.4200820326805115,
-0.27990031242370605,
0.29230454564094543,
-0.1240275576710701,
0.1397341936826706,
0.09062651544809341,
0.2457038164138794,
-0.08709084987640381,
-0.04811118170619011,
0.2409699708223343,
0.2811490595340729,
0.08177367597818375,
0.2042911946773529,
0.3132546842098236,
-0.1231456995010376,
-0.4118821322917938,
-0.2268982082605362,
0.011282852850854397,
-0.30437979102134705,
-0.0997028648853302,
0.07503006607294083,
-0.3576359748840332,
-0.18534539639949799,
0.297791451215744,
0.09450662136077881,
-0.010885627008974552,
-0.028081227093935013,
-0.104707270860672,
-0.050486333668231964,
0.4871654212474823,
-0.12338999658823013,
0.17045754194259644,
0.04983281344175339,
0.13686351478099823,
0.16614466905593872,
0.27789968252182007,
-0.4913753867149353,
0.09990760684013367,
-0.16086582839488983,
0.1617066115140915,
0.11409837752580643,
-0.211806520819664,
0.039121273905038834,
0.1311943233013153,
0.28524941205978394,
-0.002889864379540086,
-0.1713038980960846,
-0.37459802627563477,
-0.16068431735038757,
0.048970140516757965,
0.040619414299726486,
-0.021804332733154297,
0.20073696970939636,
-0.10216917097568512,
-0.07519251108169556,
-0.209364652633667,
0.17014065384864807,
-0.03321075439453125,
-0.23526965081691742,
0.18653030693531036,
-0.16080673038959503,
0.11870452761650085,
0.11410026252269745,
-0.18434949219226837,
-0.02027316763997078,
0.20342235267162323,
0.1748361587524414,
-0.16931737959384918,
0.23502735793590546,
-0.09057508409023285,
0.07169580459594727,
0.23527270555496216,
-0.1609385460615158,
0.15086285769939423,
0.223683163523674,
0.11561700701713562,
0.0467400960624218,
0.08891171216964722,
0.24422773718833923,
-0.2031773030757904,
-0.3575412929058075,
0.009893352165818214,
0.2128429114818573,
0.3950456976890564,
-0.3788527548313141,
-0.1032671332359314,
0.16370606422424316,
-0.39521199464797974,
0.41446852684020996,
0.25804001092910767,
0.18574723601341248,
-0.010285106487572193,
-0.10415016114711761,
0.07064083963632584,
-0.191144660115242,
-0.36049458384513855,
-0.042954374104738235,
0.04365060478448868,
0.03835907578468323,
0.08624210208654404,
-0.1259566843509674,
0.11002381891012192,
0.20905643701553345,
0.27603551745414734,
-0.054809339344501495,
0.33065104484558105,
-0.0164461899548769,
0.0951903760433197,
0.33872494101524353,
0.24134492874145508,
0.49378037452697754,
0.09870952367782593,
0.02643403224647045,
0.3570215702056885,
-0.041858796030282974,
0.26470088958740234,
0.10941647738218307,
-0.03478506579995155,
-0.15749962627887726,
0.1872328668832779,
0.018663067370653152,
-0.11931616067886353,
-0.2749849557876587,
-0.15809182822704315,
-0.13445702195167542,
0.03577075153589249,
-0.012138187885284424,
-0.060896940529346466,
0.1425047218799591,
0.06594724208116531,
-0.11282311379909515,
-0.20132507383823395,
0.061597712337970734,
-0.059431370347738266,
0.45025259256362915,
-0.23464544117450714,
0.2587015628814697,
0.19518965482711792,
-0.004693598952144384,
0.020392045378684998,
0.45295995473861694,
0.11210432648658752,
0.01997753046452999,
-0.11757194250822067,
0.08753129094839096,
-0.114308662712574,
-0.06177172809839249,
-0.19209909439086914,
0.0724605992436409,
0.3947681784629822,
-0.07509515434503555,
0.24755854904651642,
0.23613813519477844,
-0.3471648693084717,
-0.15230657160282135,
0.43453654646873474,
-0.19781015813350677,
-0.04680357873439789,
-0.5462715029716492,
0.007804504130035639,
0.04083532840013504,
-0.28925803303718567,
0.06905001401901245,
-0.6371957659721375,
-0.043085727840662,
-0.000857776787597686,
-0.06715688854455948,
0.047366995364427567,
-0.09514540433883667,
0.14055071771144867,
0.12367329746484756,
0.44215020537376404,
0.30875954031944275,
0.1302761435508728,
0.09615226835012436,
-0.38389506936073303,
-0.44643884897232056,
0.16547207534313202,
-0.10002300888299942,
-0.06656673550605774,
-0.14524850249290466,
0.3211541473865509,
0.28465476632118225,
0.2771969735622406,
-0.008525042794644833,
-0.15271663665771484,
-0.014644128270447254,
0.1127069965004921,
-0.39756014943122864,
0.17676936089992523,
0.09611842781305313,
0.19937285780906677,
-0.029979022219777107,
-0.10199209302663803,
0.10344377160072327,
-0.05619985610246658,
0.2615944445133209,
-0.20363999903202057,
0.10296273976564407,
-0.12650002539157867,
-0.06585242599248886,
0.16977310180664062,
-0.10927748680114746,
0.09203888475894928,
-0.4555147886276245,
-0.3111362159252167,
-0.1391867846250534,
-0.12333950400352478,
-0.14755120873451233,
0.2659362554550171,
0.28732889890670776,
0.41759106516838074,
-0.02612387388944626,
-0.10639534890651703,
0.2146097868680954,
0.4109918177127838,
-0.006988003384321928,
0.0813283622264862,
0.0300209391862154,
-0.07310045510530472,
0.30305472016334534,
-0.1591521054506302,
-0.09850538522005081,
0.4811169505119324,
-0.1448981761932373,
-0.21751852333545685,
-0.037231236696243286,
-0.5459347367286682,
0.08171110600233078,
-0.33081239461898804,
-0.22614187002182007,
-0.0765325054526329,
-0.08249622583389282,
0.04652721807360649,
0.23571835458278656,
-0.42320218682289124,
0.19491791725158691,
0.20789064466953278,
0.3215325176715851,
-0.06278389692306519,
0.3240293860435486,
0.16682802140712738,
-0.17045031487941742,
-0.1509878933429718,
-0.09969238936901093,
0.04327382147312164,
-0.074407659471035,
-0.193966805934906,
-0.38275811076164246
] |
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.30164241790771484,
-0.19038772583007812,
-0.02414940670132637,
0.09902920573949814,
0.31303900480270386,
-0.13014020025730133,
0.3114989101886749,
0.2646484673023224,
-0.10267787426710129,
0.25155606865882874,
-0.03294183313846588,
0.3579743504524231,
-0.04996683448553085,
0.08787187188863754,
-0.1619880050420761,
0.12684932351112366,
-0.050525542348623276,
0.06851917505264282,
0.04089333489537239,
0.11360030621290207,
-0.5712683796882629,
-0.15708458423614502,
-0.21687570214271545,
0.05724947527050972,
0.012679722160100937,
0.06866814941167831,
0.09162896126508713,
0.2422817200422287,
-0.07749297469854355,
-0.469889372587204,
0.19603674113750458,
-0.02633284218609333,
-0.04225727170705795,
0.4722330570220947,
-0.00010453036520630121,
-0.06288350373506546,
0.458493173122406,
0.20261897146701813,
-0.485975980758667,
-0.20958690345287323,
-0.14903613924980164,
0.2063346803188324,
0.25314995646476746,
-0.2543870806694031,
-0.1224493756890297,
-0.22151602804660797,
0.08006038516759872,
-0.5224382281303406,
0.03280987590551376,
0.22985856235027313,
0.2646004259586334,
0.5858451724052429,
0.1764906793832779,
-0.1220322772860527,
0.3920018672943115,
-0.18656182289123535,
-0.09880278259515762,
0.1512858122587204,
0.27914151549339294,
0.034266337752342224,
-0.15521785616874695,
0.2738160490989685,
-0.2516686022281647,
0.258194237947464,
0.08306264877319336,
0.04031525179743767,
0.10718024522066116,
0.12367422878742218,
0.005461878143250942,
0.14772629737854004,
-0.02446865476667881,
-0.24473555386066437,
-0.18716292083263397,
0.013281693682074547,
-0.15603207051753998,
-0.470923513174057,
0.06602936238050461,
0.29909348487854004,
-0.19277416169643402,
0.07073894143104553,
-0.15339815616607666,
0.28531256318092346,
-0.21783560514450073,
0.20865993201732635,
-0.041463758796453476,
0.474942684173584,
0.010646562092006207,
0.05823006480932236,
0.02825232408940792,
0.0535728745162487,
0.3718390464782715,
-0.029090147465467453,
0.025887085124850273,
-0.21663790941238403,
-0.035330530256032944,
0.04477329179644585,
0.30984237790107727,
0.12990927696228027,
0.15455187857151031,
0.16841670870780945,
-0.0050128549337387085,
-0.06470729410648346,
0.10998085141181946,
0.12570539116859436,
-0.015670791268348694,
-0.09322396665811539,
-0.05864311382174492,
0.17888061702251434,
0.11952639371156693,
0.1648675948381424,
-0.13602828979492188,
0.00846339575946331,
-0.06681345403194427,
-0.3070945739746094,
0.09002401679754257,
0.12943685054779053,
0.5126134157180786,
-0.0637781023979187,
-0.3585408329963684,
-0.1637832522392273,
-0.3168661594390869,
0.13155785202980042,
-0.08879798650741577,
0.16468514502048492,
-0.33445534110069275,
0.05251516029238701,
0.2567441165447235,
0.1665860265493393,
-0.39859738945961,
0.1734841763973236,
-0.17293903231620789,
-0.002555566607043147,
-0.20717719197273254,
-0.1981867402791977,
0.02449435368180275,
-0.006105821579694748,
0.03699517995119095,
0.025848763063549995,
-0.016917038708925247,
-0.05536683648824692,
0.17297223210334778,
-0.030449965968728065,
0.09782801568508148,
0.08348799496889114,
0.10380855202674866,
0.023085422813892365,
0.06469587236642838,
0.23655597865581512,
0.00046677724458277225,
0.4194880425930023,
-0.1334886997938156,
-0.24403297901153564,
0.11649144440889359,
0.35601767897605896,
0.004135977942496538,
-0.15658318996429443,
0.18205131590366364,
-0.3767898976802826,
-0.12203622609376907,
-0.08006805926561356,
0.002652361523360014,
-0.2985849380493164,
-0.14785964787006378,
-0.26391246914863586,
0.225422203540802,
0.24253691732883453,
0.26057863235473633,
0.050534069538116455,
-0.028276711702346802,
0.16273391246795654,
0.37973129749298096,
0.1669943928718567,
-0.19390885531902313,
-0.08965309709310532,
-0.13795727491378784,
0.1596086621284485,
-0.04862821847200394,
-0.42395925521850586,
-0.32781562209129333,
-0.16077423095703125,
-0.17314988374710083,
-0.07503726333379745,
0.049631159752607346,
0.03233766555786133,
0.31795117259025574,
0.04793411120772362,
-0.031858429312705994,
0.41295361518859863,
-0.07409156113862991,
0.074852354824543,
-0.4666413366794586,
-0.37981751561164856,
0.5641194581985474,
0.1517052948474884,
0.057029709219932556,
-0.3497410714626312,
0.20544885098934174,
0.060839276760816574,
0.5148956775665283,
-0.18972066044807434,
-0.1518409550189972,
-0.29934045672416687,
0.7524660229682922,
-0.04745011404156685,
0.011038674041628838,
-0.09606975317001343,
0.06652772426605225,
0.020441727712750435,
0.2316286265850067,
-0.28024575114250183,
-0.1499127298593521,
-0.08915430307388306,
-0.1524524837732315,
0.13192525506019592,
-0.34668388962745667,
-0.3821573853492737,
0.24747206270694733,
0.278257817029953,
-0.14560918509960175,
-0.13090389966964722,
-0.011895195581018925,
-0.0933067798614502,
-0.3045148253440857,
0.10049404203891754,
0.03861397132277489,
0.10532939434051514,
-0.039661988615989685,
-0.09412524104118347,
-0.11935554444789886,
0.2987474501132965,
0.16293925046920776,
-0.060054391622543335,
-0.11797139048576355,
0.3312666416168213,
0.24494817852973938,
0.19554679095745087,
-0.046819236129522324,
0.007249075919389725,
0.08201782405376434,
-0.31568941473960876,
-0.20248213410377502,
0.322100967168808,
0.09754110127687454,
-0.0025813209358602762,
0.022751372307538986,
0.18939879536628723,
-0.23540206253528595,
0.10029227286577225,
0.2986404001712799,
0.0012303278781473637,
-0.03909003362059593,
-0.17083975672721863,
0.015926901251077652,
0.3352191746234894,
0.25353896617889404,
0.4091951251029968,
0.4384313225746155,
0.04710354283452034,
-0.11859121918678284,
-0.029131492599844933,
0.17207291722297668,
0.016334837302565575,
0.23276376724243164,
0.17008452117443085,
-0.4000135064125061,
-0.07772498577833176,
-0.08439864218235016,
0.30331242084503174,
0.3952058255672455,
0.27557826042175293,
0.0969720184803009,
0.08872435241937637,
-0.13241182267665863,
-0.28704318404197693,
0.2992977499961853,
0.11520567536354065,
0.02087288163602352,
0.24158358573913574,
0.22974318265914917,
0.10214278846979141,
-0.2554798722267151,
-0.0732261911034584,
-0.13899239897727966,
0.05661715567111969,
-0.14600923657417297,
-0.04782983660697937,
-0.16401280462741852,
0.2011268138885498,
-0.11406882107257843,
-0.5005601644515991,
0.1816415935754776,
-0.20086005330085754,
0.014348833821713924,
0.3810868263244629,
-0.2022750973701477,
0.12009724229574203,
-0.27705690264701843,
0.0942111387848854,
0.08856907486915588,
-0.08849605172872543,
0.14159196615219116,
-0.22951696813106537,
-0.17601631581783295,
0.17949533462524414,
0.04895555227994919,
-0.17695170640945435,
0.39237719774246216,
-0.09352333098649979,
-0.026575345546007156,
-0.17809846997261047,
-0.1293671578168869,
0.02280343882739544,
0.2426384687423706,
0.07531078904867172,
0.11149980127811432,
0.054816123098134995,
0.10843054205179214,
-0.2810983955860138,
0.3347679674625397,
-0.22575710713863373,
-0.05279116705060005,
0.12225949764251709,
0.09743531793355942,
-0.08596239984035492,
-0.15138892829418182,
-0.6303592324256897,
-0.17503660917282104,
-0.3355153799057007,
0.004438643343746662,
-0.10781259834766388,
0.12897461652755737,
0.43547171354293823,
0.03879762440919876,
0.16186745464801788,
-0.1536659300327301,
0.12164369225502014,
-0.08725924044847488,
-0.02111140452325344,
0.21693728864192963,
-0.13490329682826996,
-0.4010961055755615,
-0.19834715127944946,
-0.12133397907018661,
-0.10454463958740234,
0.43392646312713623,
-0.2609216570854187,
-0.2592196762561798,
-0.23132815957069397,
0.08725181967020035,
-0.12945309281349182,
-0.023215409368276596,
0.3986387848854065,
0.24843114614486694,
-0.25696098804473877,
-0.28645768761634827,
0.0643370971083641,
-0.04337199032306671,
-0.0686284676194191,
0.03818689286708832,
-0.08754397928714752,
0.15171629190444946,
0.11278007179498672,
0.2772790193557739,
-0.03919987380504608,
-0.0387176014482975,
0.11293873190879822,
-0.24959686398506165,
0.1978776901960373,
-0.043323125690221786,
-0.25691676139831543,
0.16210514307022095,
-0.22199663519859314,
-0.3214870095252991,
0.04846658930182457,
0.21953076124191284,
0.11488183587789536,
0.014172635972499847,
0.02080300636589527,
-0.354307621717453,
-0.2621156871318817,
-0.2463592141866684,
0.3780522644519806,
0.0837341696023941,
-0.06721989065408707,
0.16260477900505066,
-0.1316145658493042,
-0.12565210461616516,
0.1881818026304245,
0.3759935796260834,
0.10934405028820038,
-0.01193387620151043,
0.24829496443271637,
0.012343771755695343,
-0.08621181547641754,
0.09987810254096985,
0.009018206968903542,
0.12818863987922668,
0.05668748915195465,
-0.19122068583965302,
0.0785224512219429,
-0.020007891580462456,
0.1643277108669281,
0.3458764851093292,
0.38748133182525635,
0.30105894804000854,
-0.14724703133106232,
-0.25514525175094604,
0.018963193520903587,
-0.5182093977928162,
-0.3018002510070801,
0.0700569599866867,
0.16231508553028107,
-0.2750701308250427,
0.05110138654708862,
0.3745272159576416,
0.1937803477048874,
0.06277588754892349,
0.05188171565532684,
0.00863608717918396,
-0.41123872995376587,
-0.07665296643972397,
0.07336358726024628,
-0.013393797911703587,
0.45119786262512207,
-0.03689669072628021,
-0.2186564803123474,
-0.3560884892940521,
-0.33364537358283997,
-0.009867817163467407,
-0.06953590363264084,
0.4101049602031708,
-0.16149036586284637,
0.1817575842142105,
0.006476682145148516,
0.36720365285873413,
0.3949998617172241,
0.215701624751091,
0.14068591594696045,
0.1515154093503952,
-0.007653362583369017,
-0.18303407728672028,
0.030545450747013092,
0.10357758402824402,
-0.3520221412181854,
0.22597962617874146,
-0.31844764947891235,
0.27770107984542847,
-0.2909500300884247,
0.19563773274421692,
0.35022714734077454,
0.1843058317899704,
0.27323442697525024,
0.007618991192430258,
0.10566715896129608,
-0.19335690140724182,
-0.0941648781299591,
0.553152322769165,
-0.1504654437303543,
-0.23310598731040955,
-0.12270265817642212,
0.1427031308412552,
0.7989790439605713,
0.22827160358428955,
0.15752770006656647,
0.8578516244888306,
-0.37942269444465637,
-0.19980879127979279,
0.3360413908958435,
0.17820565402507782,
-0.35716328024864197,
0.03834151476621628,
0.08121661841869354,
-0.22877536714076996,
0.027301287278532982,
-0.2691112756729126,
-0.01855309121310711,
-0.18561673164367676,
-0.020711572840809822,
0.04463215544819832,
0.10847515612840652,
0.05235855653882027,
0.040253665298223495,
0.04245341569185257,
-0.29283803701400757,
0.19293977320194244,
-0.017914874479174614,
0.1270112842321396,
-0.0508783757686615,
-0.08395065367221832,
0.24806281924247742,
-0.10109718143939972,
-0.2043590545654297,
0.34195971488952637,
-0.5799900889396667,
0.17218215763568878,
-0.26922357082366943,
-0.4562349021434784,
-0.10751882940530777,
-0.03678899258375168,
-0.22854933142662048,
0.1678057312965393,
-0.034031614661216736,
0.10888705402612686,
-0.02501922845840454,
0.16751070320606232,
0.2350713163614273,
0.030764594674110413,
0.20655390620231628,
-0.2243107706308365,
0.009795048274099827,
-0.13053123652935028,
0.05167771875858307,
-0.4160591959953308,
-0.06003236025571823,
0.04676802456378937,
0.49493128061294556,
-0.2594938576221466,
-0.2402208000421524,
-0.23322460055351257,
-0.18146349489688873,
-0.3135361969470978,
0.22007456421852112,
-0.013148666359484196,
0.13509920239448547,
0.1709565967321396,
0.08707110583782196,
-0.3995954394340515,
-0.10949188470840454,
-0.012305562384426594,
0.011949026957154274,
0.13838154077529907,
0.40056464076042175,
0.1243492141366005,
-0.32585108280181885,
-0.22264936566352844,
0.12601929903030396,
0.16405335068702698,
-0.027110129594802856,
0.08686941862106323,
-0.04121540114283562,
0.1951790601015091,
-0.11181338876485825,
0.0058587780222296715,
0.2094225436449051,
0.0991215705871582,
-0.1979447454214096,
-0.4055493474006653,
-0.1660560667514801,
0.14177373051643372,
0.20288130640983582,
0.11818273365497589,
-0.026482246816158295,
0.2930472195148468,
-0.02131170779466629,
-0.25048428773880005,
-0.3906230628490448,
0.11079127341508865,
0.233612522482872,
0.11921843141317368,
-0.14548735320568085,
-0.20764537155628204,
0.3068409264087677,
-0.010407968424260616,
0.2542708218097687,
-0.051687538623809814,
-0.13477273285388947,
-0.3061598837375641,
-0.3753737211227417,
0.08592113852500916,
0.07820933312177658,
-0.3529873490333557,
0.1614411622285843,
-0.17001387476921082,
0.0037515333388000727,
-0.18765631318092346,
0.11373943835496902,
0.34022703766822815,
-0.20842382311820984,
-0.07279876619577408,
0.3792564272880554,
0.1400478035211563,
-0.23623153567314148,
0.0073800040408968925,
-0.2387421727180481,
0.28123706579208374,
-0.13526354730129242,
-0.033127475529909134,
0.12455788999795914,
-0.05653100460767746,
-0.1441803127527237,
-0.23889681696891785,
0.213451087474823,
0.16059398651123047,
0.27623221278190613,
-0.12278313934803009,
-0.11529156565666199,
-0.15177328884601593,
0.5579531788825989,
0.19814634323120117,
-0.10189526528120041,
-0.025468679144978523,
0.06578277796506882,
0.3775639235973358,
-0.216044619679451,
-0.024656670168042183,
-0.145667165517807,
-0.17453908920288086,
0.160978764295578,
-0.06971074640750885,
-0.4467020034790039,
0.07242026180028915,
-0.13363277912139893,
0.08439423143863678,
-0.0011722410563379526,
-0.16617032885551453,
-0.012229349464178085,
0.1776827573776245,
-0.14401918649673462,
-0.049987126141786575,
0.09358664602041245,
-0.07452810555696487,
0.1813114434480667,
0.23310586810112,
-0.01338457502424717,
0.6520748138427734,
0.5496267080307007,
-0.24432873725891113,
0.05717158317565918,
-0.05493183806538582,
0.006985870655626059,
-0.12364096194505692,
-0.036257728934288025,
0.032686516642570496,
0.04094132408499718,
0.22881582379341125,
-0.2829381823539734,
0.10475138574838638,
-0.051148444414138794,
-0.04353935644030571,
-0.0990094318985939,
-0.2635808289051056,
0.049600131809711456,
-0.004704449325799942,
-0.07286527007818222,
-0.029368067160248756,
-0.1020352691411972,
0.022454243153333664,
0.030337216332554817,
0.047634027898311615,
-0.10487422347068787,
-0.3494412302970886,
0.02130410261452198,
0.20791439712047577,
0.15735125541687012,
-0.33723264932632446,
0.08764997124671936,
0.21877381205558777,
0.14319376647472382,
-0.17037241160869598,
0.4733752906322479,
0.33044812083244324,
0.4719167649745941,
-0.22933413088321686,
-0.13048155605793,
-0.1675470918416977,
-0.006368336733430624,
-0.039440739899873734,
-0.06476419419050217,
0.013416034169495106,
0.12693797051906586,
0.22980442643165588,
0.36907458305358887,
-0.3680003583431244,
0.21183227002620697,
-0.024277856573462486,
-0.27143675088882446,
-0.1849631816148758,
0.27952539920806885,
0.1443210393190384,
-0.2951880395412445,
0.012600108981132507,
-0.027996283024549484,
-0.24220310151576996,
-0.06685605645179749,
0.2900864779949188,
0.26451733708381653,
0.08760908246040344,
-0.039708223193883896,
0.14040908217430115,
0.14405639469623566,
0.12328076362609863,
0.10196177661418915,
-0.007067784667015076,
-0.4234200716018677,
0.03285765275359154,
-0.47118985652923584,
0.4904589354991913,
-0.14418014883995056,
-0.44658443331718445,
0.07254250347614288,
-0.05491743981838226,
-0.25035974383354187,
0.23455603420734406,
0.33345863223075867,
0.357113242149353,
0.15245263278484344,
-0.002529629971832037,
-0.2554324269294739,
0.13229863345623016,
0.20288416743278503,
-0.103272944688797,
-0.12601785361766815,
-0.3461902439594269,
0.2244313508272171,
-0.23956704139709473,
0.25825583934783936,
0.09346851706504822,
0.041026901453733444,
0.2902902662754059,
0.013818065635859966,
0.017829997465014458,
-0.017089389264583588,
0.39506539702415466,
-0.32053887844085693,
0.04093138501048088,
-0.1458008736371994,
-0.22756819427013397,
0.025215422734618187,
0.0532071478664875,
0.017263440415263176,
0.08587982505559921,
0.17346937954425812,
-0.5986050367355347,
-0.4342438578605652,
0.47385624051094055,
-0.3005673885345459,
-0.14237599074840546,
0.10854509472846985,
0.33103761076927185,
0.0011344343656674027,
0.15558001399040222,
-0.03743160888552666,
0.17494207620620728,
-0.12648311257362366,
0.058932263404130936,
-0.24580466747283936,
-0.725400447845459,
0.2943550646305084,
-0.7327597737312317,
-0.29691946506500244,
-0.23041315376758575,
0.4603818953037262,
0.021248886361718178,
0.23804470896720886,
-0.28679633140563965,
0.10301186889410019,
0.21289891004562378,
0.04784538224339485,
-0.1016833707690239,
0.12594223022460938,
0.0170273594558239,
-0.023834582418203354,
0.11397897452116013,
0.6136491298675537,
0.10387211292982101,
-0.09762775897979736,
-0.031242746859788895,
-0.2827853262424469
] |
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.08303580433130264,
-0.25024375319480896,
-0.03862577676773071,
0.30153968930244446,
0.20768900215625763,
0.07883669435977936,
0.5001558661460876,
0.14941611886024475,
0.12552982568740845,
0.14210660755634308,
0.3285621702671051,
0.050840429961681366,
-0.2967575192451477,
0.34206143021583557,
-0.2623359262943268,
-0.2604982554912567,
0.034535858780145645,
0.22248704731464386,
0.015491299331188202,
-0.02244713343679905,
-0.3130667805671692,
0.17093653976917267,
-0.3648773729801178,
-0.22216176986694336,
-0.15507805347442627,
-0.21080812811851501,
-0.21602404117584229,
-0.2960243821144104,
0.05425163730978966,
-0.5987138152122498,
0.2819482684135437,
-0.0695158988237381,
0.09210938215255737,
0.23832252621650696,
-0.0001144155248766765,
0.10549236834049225,
0.6381926536560059,
-0.14531591534614563,
-0.2628040015697479,
-0.3394750952720642,
-0.561830997467041,
-0.42277994751930237,
0.12416490912437439,
-0.35784804821014404,
-0.09651291370391846,
-0.0749712660908699,
0.09471779316663742,
-0.3724973201751709,
0.20421312749385834,
0.2839667499065399,
0.21305939555168152,
0.3830008804798126,
-0.08455097675323486,
-0.07440262287855148,
0.20682114362716675,
0.4162611663341522,
-0.2607544958591461,
-0.1798529326915741,
0.03575881943106651,
0.26994961500167847,
0.09462880343198776,
0.34923994541168213,
-0.1114053800702095,
-0.13050700724124908,
0.20943360030651093,
0.08493509888648987,
0.08856205642223358,
-0.452194482088089,
-0.26712438464164734,
0.2014956921339035,
0.29240837693214417,
0.0013617175864055753,
-0.40846341848373413,
-0.21808774769306183,
0.018871497362852097,
-0.6638947129249573,
0.2666679918766022,
0.05510156601667404,
-0.03862801939249039,
-0.02696351520717144,
-0.1683928519487381,
0.14500126242637634,
-0.21389605104923248,
0.16601711511611938,
-0.12097404152154922,
0.08079250156879425,
-0.13945399224758148,
0.034141406416893005,
-0.2402794063091278,
-0.27001872658729553,
0.05874892324209213,
-0.37062492966651917,
-0.025751879438757896,
0.21114613115787506,
-0.25151327252388,
-0.1936301738023758,
0.16734932363033295,
0.010185379534959793,
0.16972026228904724,
0.13799330592155457,
-0.06587139517068863,
-0.10379765182733536,
-0.06935768574476242,
-0.016959190368652344,
0.252910315990448,
0.21360212564468384,
0.4112969934940338,
-0.068069227039814,
-0.0581742487847805,
0.19612473249435425,
0.0996614322066307,
-0.01759784109890461,
0.11928369849920273,
0.051739808171987534,
0.016925891861319542,
0.40728428959846497,
0.646719217300415,
-0.05256285145878792,
-0.39348164200782776,
0.2361948937177658,
-0.38535961508750916,
-0.030498744919896126,
-0.02119537815451622,
0.006191272288560867,
0.08412028104066849,
0.29164737462997437,
-0.14658001065254211,
0.21616826951503754,
-0.27360355854034424,
-0.25088265538215637,
-0.23484662175178528,
0.07219572365283966,
0.10184092819690704,
0.08859886229038239,
-0.054740238934755325,
-0.03330007940530777,
0.06581804901361465,
0.15601074695587158,
0.07967964559793472,
0.10098480433225632,
-0.05552294850349426,
-0.3658088445663452,
0.09250559657812119,
0.15237239003181458,
-0.007046108599752188,
0.2921586036682129,
0.376236230134964,
-0.25812867283821106,
-0.10916200280189514,
0.1182434931397438,
-0.27881211042404175,
-0.21751414239406586,
-0.0058284965343773365,
0.17252953350543976,
-0.37956759333610535,
0.04412703588604927,
-0.07340430468320847,
0.22634604573249817,
0.21085776388645172,
-0.07758940011262894,
-0.09654416888952255,
-0.08692806214094162,
-0.21961715817451477,
-0.1535143107175827,
-0.0919651985168457,
0.6465164422988892,
-0.10913305729627609,
-0.012588126584887505,
0.1191500648856163,
-0.08989660441875458,
0.3521236181259155,
0.2327212542295456,
0.0481477715075016,
-0.0572480708360672,
-0.34041091799736023,
0.19003014266490936,
0.0831357091665268,
-0.11154911667108536,
-0.20860671997070312,
0.5657572150230408,
0.02399088256061077,
0.359869122505188,
0.11346440017223358,
0.09594596177339554,
0.15857048332691193,
-0.3072291910648346,
0.0130878034979105,
0.19759872555732727,
-0.18746434152126312,
-0.2206794023513794,
-0.24189876019954681,
-0.12316335737705231,
0.5206928849220276,
-0.07434653490781784,
-0.0640912801027298,
0.2067834585905075,
-0.3010615110397339,
-0.02311069890856743,
-0.1406463384628296,
-0.31868842244148254,
0.12881360948085785,
0.5053262114524841,
0.21923908591270447,
0.037596385926008224,
-0.09674927592277527,
-0.4028454124927521,
-0.3626863658428192,
0.13121116161346436,
-0.17960546910762787,
0.2839999794960022,
-0.49326851963996887,
-0.1799386739730835,
0.07351957261562347,
0.01904083602130413,
-0.39474689960479736,
0.0015027804765850306,
0.1547810286283493,
0.1214921772480011,
-0.1535107046365738,
0.1999228447675705,
-0.07734188437461853,
0.27720004320144653,
0.15611103177070618,
-0.12485502660274506,
-0.5673229098320007,
0.36998796463012695,
0.06949988007545471,
-0.2262258231639862,
0.007167065050452948,
0.3033715784549713,
0.3317842483520508,
-0.0899987742304802,
0.01831825263798237,
0.15058641135692596,
0.025970418006181717,
-0.3309907913208008,
-0.306780070066452,
-0.1571388989686966,
0.3190597593784332,
-0.41859328746795654,
-0.22143325209617615,
0.3747456967830658,
0.18254350125789642,
-0.1073412224650383,
-0.12098848074674606,
0.6575431823730469,
0.015737384557724,
0.4647912383079529,
0.004207059275358915,
0.1760134994983673,
0.05372776463627815,
-0.0018617900786921382,
-0.32714274525642395,
-0.28690916299819946,
0.17555825412273407,
0.20264101028442383,
-0.16507868468761444,
-0.039911650121212006,
-0.3015941083431244,
0.005867615342140198,
0.4108927547931671,
0.08843722939491272,
0.03546372428536415,
0.05708049237728119,
-0.07705794274806976,
-0.03683790564537048,
0.10924060642719269,
-0.15959326922893524,
0.29988378286361694,
0.05055846646428108,
-0.07322007417678833,
0.07357878237962723,
0.007545001804828644,
0.07453866302967072,
0.17586857080459595,
-0.03503741696476936,
0.24308331310749054,
0.028567921370267868,
0.10764817148447037,
0.11769809573888779,
-0.17797242105007172,
-0.5438489317893982,
-0.03985859826207161,
0.14308880269527435,
-0.2491210699081421,
0.2492821365594864,
-0.47958481311798096,
-0.20561598241329193,
0.130416139960289,
-0.21736609935760498,
-0.3862951993942261,
-0.44402214884757996,
-0.16394205391407013,
0.027558468282222748,
-0.14083993434906006,
0.2236989587545395,
0.014815045520663261,
-0.26245763897895813,
0.29857540130615234,
-0.024348465725779533,
-0.08313757181167603,
-0.13922913372516632,
-0.02423316054046154,
0.046319786459207535,
0.16566424071788788,
-0.04810205101966858,
0.24677765369415283,
0.03329584747552872,
-0.34998437762260437,
-0.21268720924854279,
-0.2085355669260025,
0.05654987320303917,
-0.35036301612854004,
0.07770779728889465,
0.30794933438301086,
0.1277279257774353,
-0.04940720647573471,
-0.1998884528875351,
0.422728955745697,
0.4243721663951874,
-0.21209940314292908,
0.32176870107650757,
-0.10206306725740433,
-0.03547361120581627,
-0.2110651284456253,
-0.09590321034193039,
-0.15722128748893738,
-0.22789323329925537,
0.10760438442230225,
0.21096883714199066,
0.21016179025173187,
0.44710180163383484,
0.04701913893222809,
0.12087913602590561,
0.1355801820755005,
-0.17562812566757202,
0.0008857593056745827,
-0.015036793425679207,
0.48247432708740234,
-0.1827879697084427,
-0.27124860882759094,
0.14879974722862244,
-0.2987251877784729,
0.08756178617477417,
0.2041163593530655,
-0.35755282640457153,
-0.17630413174629211,
-0.14137886464595795,
0.1611311137676239,
0.07453632354736328,
-0.10465774685144424,
0.3775743544101715,
0.28160589933395386,
-0.10834537446498871,
-0.03676934540271759,
-0.050810687243938446,
0.2569001317024231,
-0.07055167108774185,
0.02874838560819626,
0.22968751192092896,
0.5177571773529053,
0.03981032222509384,
0.09723454713821411,
0.43764352798461914,
0.19706419110298157,
0.42616674304008484,
-0.08233221620321274,
0.06893585622310638,
-0.1690146028995514,
0.0005420269444584846,
-0.1711454689502716,
0.10794007033109665,
-0.017855197191238403,
0.08362770080566406,
-0.2327575981616974,
-0.11919140815734863,
-0.07930715382099152,
-0.06307206302881241,
0.10385212302207947,
-0.23570886254310608,
0.12937034666538239,
-0.46767839789390564,
0.4429665803909302,
-0.08640898764133453,
0.018289947882294655,
-0.3036092221736908,
-0.004700387828052044,
-0.16847312450408936,
-0.008302812464535236,
0.32275551557540894,
-0.14786648750305176,
-0.6496185660362244,
-0.17223094403743744,
-0.20260389149188995,
0.12155450135469437,
0.3011385202407837,
0.5467788577079773,
-0.03376225009560585,
-0.062415461987257004,
-0.1075645163655281,
-0.019171642139554024,
0.40203285217285156,
-0.16438835859298706,
-0.1837625950574875,
0.2454216033220291,
-0.26380130648612976,
-0.23879382014274597,
-0.05677419900894165,
-0.3692707121372223,
0.3344591557979584,
-0.22521856427192688,
0.3618212342262268,
-0.340536892414093,
-0.22256292402744293,
0.26604682207107544,
0.0742507204413414,
-0.09136833995580673,
-0.11321878433227539,
-0.0910785049200058,
-0.22356221079826355,
-0.1456020325422287,
0.01295078918337822,
0.20876680314540863,
0.2621577978134155,
-0.13408666849136353,
-0.0023918834049254656,
-0.5279818773269653,
0.030750533565878868,
0.3058224022388458,
-0.2428046613931656,
0.3555576205253601,
-0.08594297617673874,
0.10515987873077393,
-0.13631314039230347,
0.1940729320049286,
0.2076587677001953,
0.3552797734737396,
0.3771530091762543,
-0.6484146118164062,
0.011156882159411907,
-0.2274467796087265,
0.1626981645822525,
0.2772213816642761,
-0.09346691519021988,
0.09365221858024597,
0.0833648219704628,
0.1915261149406433,
-0.21020565927028656,
-0.3317117691040039,
0.41896072030067444,
-0.08054224401712418,
-0.6726539134979248,
-0.28722047805786133,
0.2649126648902893,
0.0967712476849556,
0.2421819269657135,
-0.13366228342056274,
0.22322846949100494,
-0.21130354702472687,
0.36537471413612366,
-0.006300665903836489,
0.6850797533988953,
0.4925396144390106,
0.041899483650922775,
0.5505330562591553,
0.44714173674583435,
0.6043534278869629,
0.4047948718070984,
0.2582216262817383,
-0.16250693798065186,
-0.672164797782898,
-0.14850561320781708,
-0.05859137326478958,
0.4232247769832611,
0.11910264194011688,
-0.45315176248550415,
0.4891037046909332,
-0.1281995177268982,
-0.06382495909929276,
-0.09815876930952072,
-0.2965751588344574,
-0.13172371685504913,
-0.043969299644231796,
-0.25159549713134766,
0.12456993013620377,
0.0693778321146965,
0.16201919317245483,
0.0573863722383976,
-0.32468143105506897,
0.05229664221405983,
-0.16675254702568054,
-0.19479654729366302,
0.16965405642986298,
-0.14336684346199036,
0.09411729127168655,
0.03642432019114494,
-0.3463883101940155,
0.2818097472190857,
0.22324083745479584,
0.18790240585803986,
-0.1312098503112793,
-0.1560927778482437,
-0.196908637881279,
0.040029678493738174,
0.10341379046440125,
-0.08015938103199005,
-0.07771511375904083,
0.3071269989013672,
-0.02689482271671295,
-0.148531973361969,
0.1475490927696228,
-0.2142956256866455,
0.10542130470275879,
0.34291085600852966,
0.059051088988780975,
-0.1748192012310028,
-0.1611659675836563,
-0.4532507359981537,
0.03023999184370041,
0.17108376324176788,
-0.05008532106876373,
0.11646503955125809,
0.006903317756950855,
-0.2920272946357727,
-0.04956404119729996,
-0.19789265096187592,
-0.00867738202214241,
-0.017159434035420418,
0.30728641152381897,
0.5229864120483398,
0.0768125057220459,
0.6932668685913086,
0.19186262786388397,
-0.24269309639930725,
-0.16606692969799042,
0.1627270132303238,
0.18308892846107483,
-0.5128660202026367,
0.3100552260875702,
-0.11370731890201569,
0.14592069387435913,
-0.241980642080307,
0.45708295702934265,
-0.28194180130958557,
0.20908406376838684,
-0.039303846657276154,
-0.11750317364931107,
-0.15718431770801544,
0.23256954550743103,
-0.1332802027463913,
0.1057097539305687,
-0.22264321148395538,
0.11522910743951797,
-0.07904735952615738,
-0.2166755646467209,
-0.29462456703186035,
-0.09730398654937744,
-0.4076438844203949,
0.3669983744621277,
0.1148909404873848,
0.08583320677280426,
0.2190832793712616,
0.16080069541931152,
0.16813363134860992,
0.08565931022167206,
-0.13675901293754578,
-0.1968510001897812,
-0.07516653835773468,
0.12684914469718933,
0.10730189085006714,
-0.18645109236240387,
0.14100998640060425,
0.02690269611775875,
-0.06284845620393753,
-0.13896799087524414,
0.013990724459290504,
0.1784926801919937,
-0.08429761976003647,
0.43051859736442566,
0.3046936094760895,
0.39340347051620483,
-0.11811043322086334,
0.1606225073337555,
-0.032025087624788284,
0.22899813950061798,
-0.07312674075365067,
0.08981173485517502,
-0.07150951772928238,
0.07873819023370743,
-0.4437326192855835,
0.13564996421337128,
-0.12916605174541473,
0.1195797547698021,
0.2263304889202118,
-0.3602283000946045,
0.03551085665822029,
0.32367345690727234,
-0.031114565208554268,
0.07553727179765701,
-0.1983238309621811,
-0.014954871498048306,
0.09086543321609497,
0.16748403012752533,
-0.16102425754070282,
0.004406819120049477,
0.1928001046180725,
0.09837643057107925,
0.055364612489938736,
0.24973256886005402,
0.023815631866455078,
0.21977800130844116,
0.15237636864185333,
0.04106634482741356,
0.057635221630334854,
-0.13040423393249512,
0.4767725467681885,
0.2502481937408447,
0.10600648820400238,
-0.005962117109447718,
-0.04516357183456421,
-0.13611583411693573,
0.2374781221151352,
0.4095087945461273,
-0.022514358162879944,
0.11335498839616776,
0.43547385931015015,
-0.018356656655669212,
-0.02994842454791069,
-0.26676931977272034,
-0.18322986364364624,
0.08748148381710052,
0.3381921052932739,
0.20285315811634064,
0.1870112270116806,
-0.3521420955657959,
-0.3258126378059387,
-0.2701643109321594,
-0.06958283483982086,
0.3099350929260254,
-0.058330237865448,
-0.0029459598008543253,
0.035666946321725845,
0.011439690366387367,
-0.3740215599536896,
-0.24159881472587585,
-0.09649209678173065,
-0.10929232090711594,
0.27012261748313904,
0.21865546703338623,
0.17627820372581482,
-0.37719255685806274,
0.27475935220718384,
0.2808694541454315,
0.2680346965789795,
-0.11448128521442413,
0.2841912806034088,
0.39184629917144775,
0.09419342130422592,
0.19323715567588806,
0.5161975026130676,
0.3695509731769562,
0.2945849299430847,
-0.020103687420487404,
0.11294931918382645,
-0.039078060537576675,
-0.34501221776008606,
0.087799571454525,
-0.059846118092536926,
-0.24856586754322052,
0.2879623770713806,
0.15582628548145294,
0.12282426655292511,
-0.12541356682777405,
0.3168390095233917,
0.054472360759973526,
-0.11032723635435104,
-0.2857099175453186,
0.7373992800712585,
-0.27034398913383484,
0.027681175619363785,
-0.0651041567325592,
-0.25212058424949646,
-0.4581925868988037,
-0.06524031609296799,
0.38140103220939636,
0.16980722546577454,
0.1495150625705719,
0.21773141622543335,
0.06977051496505737,
-0.408243328332901,
0.330964058637619,
0.3403654396533966,
0.07690587639808655,
-0.2651320695877075,
0.061708852648735046,
-0.2750619649887085,
0.11164449900388718,
-0.10152800381183624,
-0.0691223070025444,
0.24956315755844116,
0.127813458442688,
-0.19325588643550873,
0.1148606464266777,
-0.2204778492450714,
-0.1393819898366928,
-0.10432380437850952,
0.25245508551597595,
-0.3717968165874481,
-0.19465146958827972,
0.2883969843387604,
-0.08923802524805069,
-0.12511514127254486,
-0.2652554512023926,
0.03533221781253815,
0.0039451709017157555,
0.0739232748746872,
0.055082570761442184,
-0.044890549033880234,
-0.32275301218032837,
-0.027872314676642418,
0.05725035443902016,
0.6041784882545471,
0.10741255432367325,
-0.05931176245212555,
-0.3922540545463562,
-0.22250939905643463,
-0.2722545564174652,
-0.11333189159631729,
0.5871047973632812,
0.2825136184692383,
0.6090589165687561,
-0.1371043175458908,
0.253185510635376,
-0.05520666018128395,
0.37765952944755554,
-0.06099049001932144,
0.0438409149646759,
-0.4244898855686188,
0.5184664726257324,
-0.3719521462917328,
0.1762695610523224,
0.006877191364765167,
0.18111631274223328,
0.13905148208141327,
0.1774706393480301,
-0.05049670487642288,
-0.29201558232307434,
0.3989833891391754,
-0.3084864616394043,
-0.3456193208694458,
0.2019375115633011,
-0.08137498795986176,
0.1927640438079834,
-0.04738711938261986,
-0.30785080790519714,
-0.13437986373901367,
0.4044968783855438,
-0.16003839671611786,
-0.2725834548473358,
0.004612788558006287,
0.1497470885515213,
-0.06765444576740265,
-0.12056200951337814,
0.16076895594596863,
-0.07075201719999313,
-0.2598536014556885,
0.3602842092514038,
-0.31029850244522095
] |
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.2534324526786804,
-0.14359158277511597,
-0.11700852960348129,
0.1250983625650406,
-0.0803619846701622,
-0.20694345235824585,
0.318226158618927,
0.2595031261444092,
-0.26621130108833313,
0.24329280853271484,
0.4498225152492523,
-0.07759923487901688,
-0.009268274530768394,
0.3775966763496399,
-0.397217333316803,
-0.08901652693748474,
0.07872095704078674,
0.10890205204486847,
-0.05268311873078346,
0.04491844400763512,
-0.27206820249557495,
0.068658247590065,
-0.3964480757713318,
0.16087953746318817,
0.06639920175075531,
-0.07160437852144241,
-0.12159326672554016,
-0.2543473541736603,
-0.6671602129936218,
-0.5313287973403931,
0.31335535645484924,
0.20344989001750946,
0.07602700591087341,
0.2712758183479309,
-0.00011104677832918242,
-0.4238654375076294,
0.5205672979354858,
0.14866960048675537,
-0.261465847492218,
-0.15130391716957092,
-0.4164433181285858,
-0.535380482673645,
-0.10085950046777725,
-0.013767390511929989,
-0.3072527050971985,
-0.10771439224481583,
0.011748023331165314,
-0.19431982934474945,
-0.06281600892543793,
-0.0156019926071167,
0.24801167845726013,
0.16733942925930023,
0.40197986364364624,
-0.35428595542907715,
0.18630555272102356,
-0.11592523753643036,
-0.3703642189502716,
-0.2499651163816452,
0.5717850923538208,
0.2568047344684601,
0.2268885374069214,
0.38498276472091675,
0.191262885928154,
-0.1922256052494049,
0.1507626175880432,
-0.009772290475666523,
0.239677295088768,
-0.2660330533981323,
0.041539937257766724,
0.07777859270572662,
0.9955615997314453,
0.020363453775644302,
-0.37934571504592896,
0.20347481966018677,
-0.09273283183574677,
-0.2712346017360687,
0.24124747514724731,
0.027283109724521637,
-0.029244406148791313,
0.1492426097393036,
0.08733577281236649,
-0.4584193825721741,
-0.15168295800685883,
0.16021496057510376,
-0.027203869074583054,
0.45910486578941345,
-0.088717021048069,
0.10676532983779907,
-0.021526096388697624,
-0.30153730511665344,
0.23469731211662292,
0.02009713649749756,
0.08503042906522751,
0.15644524991512299,
0.051452260464429855,
-0.4402131736278534,
0.1060779020190239,
-0.017246833071112633,
0.1498129963874817,
0.1924147754907608,
-0.26061874628067017,
-0.2491660714149475,
-0.04644383490085602,
0.013337799347937107,
0.6594319939613342,
0.07456297427415848,
0.34056586027145386,
0.18800964951515198,
0.43294426798820496,
0.2551422417163849,
0.06445992738008499,
0.09974309056997299,
0.06184232980012894,
-0.08086690306663513,
-0.14551357924938202,
0.20524375140666962,
0.4584415853023529,
-0.5718426704406738,
0.36613646149635315,
0.14549915492534637,
0.011531014926731586,
-0.07399749010801315,
-0.3209311366081238,
-0.150846466422081,
-0.037387266755104065,
0.3257042169570923,
0.08936058729887009,
-0.1983119398355484,
0.13486140966415405,
-0.18055790662765503,
-0.1951920986175537,
-0.10883402824401855,
-0.20098118484020233,
-0.018362626433372498,
-0.031561478972435,
-0.31167536973953247,
-0.27753502130508423,
0.11344970017671585,
-0.12540625035762787,
-0.043413594365119934,
0.05646001920104027,
0.1302081048488617,
-0.22466705739498138,
0.41184911131858826,
-0.24663181602954865,
0.08284439891576767,
-0.3096269369125366,
0.24027885496616364,
-0.08194568008184433,
0.35007449984550476,
-0.04245683178305626,
-0.17805355787277222,
-0.3391317129135132,
0.2919040322303772,
-0.1666523814201355,
-0.07769593596458435,
0.2701282799243927,
0.19532260298728943,
-0.20301884412765503,
-0.23829862475395203,
-0.04943016171455383,
0.1722414791584015,
-0.23949085175991058,
-0.25693199038505554,
-0.06953752785921097,
0.0432327501475811,
-0.11934120208024979,
0.1540280282497406,
-0.26329654455184937,
-0.20006100833415985,
0.119728222489357,
0.0051399534568190575,
-0.18423068523406982,
-0.3186807334423065,
0.12625892460346222,
-0.24555376172065735,
0.3016968071460724,
-0.3433004915714264,
-0.639559805393219,
0.381533682346344,
-0.28414279222488403,
-0.38943740725517273,
0.4114669859409332,
0.17413368821144104,
0.2954377830028534,
-0.321295827627182,
-0.14097508788108826,
-0.08161820471286774,
-0.16163238883018494,
-0.3559684157371521,
-0.44189971685409546,
-0.4019605815410614,
0.04290057718753815,
0.01811167038977146,
0.2204885184764862,
0.15033721923828125,
0.09527554363012314,
0.4235888421535492,
0.07498238980770111,
0.27978307008743286,
0.2078801542520523,
0.07656659930944443,
0.4828043580055237,
-0.12860670685768127,
0.052990179508924484,
-0.10065526515245438,
-0.27669987082481384,
0.09389375150203705,
-0.1435733139514923,
0.15911772847175598,
0.4384331703186035,
-0.31896263360977173,
-0.20858709514141083,
-0.05610509589314461,
0.3260708153247833,
-0.07095251977443695,
0.08178173750638962,
0.09157358109951019,
-0.24781981110572815,
0.16734956204891205,
-0.4060973525047302,
0.1368636190891266,
-0.009866367094218731,
-0.07066377997398376,
-0.08844168484210968,
0.04524761438369751,
-0.29087328910827637,
0.09942574054002762,
0.17884376645088196,
0.08382951468229294,
0.1694522649049759,
-0.23905730247497559,
0.17456334829330444,
-0.08151289820671082,
-0.0724000409245491,
0.30898603796958923,
0.35615625977516174,
0.18628846108913422,
0.23509730398654938,
0.20403124392032623,
0.07461101561784744,
0.17105624079704285,
-0.058611251413822174,
0.23035524785518646,
-0.22531433403491974,
0.3460870683193207,
0.3549920916557312,
-0.2632010579109192,
-0.05647483095526695,
0.14472506940364838,
0.13079632818698883,
-0.2599104046821594,
-0.09816514700651169,
-0.2556484341621399,
0.08176632970571518,
-0.2211175113916397,
-0.2914201021194458,
0.22528254985809326,
-0.27639374136924744,
0.29653066396713257,
0.5968990921974182,
0.01841971091926098,
-0.04782949760556221,
0.08096801489591599,
0.25736990571022034,
-0.08099040389060974,
0.1679658740758896,
-0.04620646312832832,
0.08849246799945831,
0.2539897561073303,
-0.021018940955400467,
0.004968255292624235,
0.12219280749559402,
0.04252871125936508,
0.10276004672050476,
0.04553205519914627,
-0.4042105972766876,
-0.029937682673335075,
0.05306749418377876,
0.06338675320148468,
0.11527882516384125,
0.17673994600772858,
0.1918165534734726,
0.22660046815872192,
0.06508129835128784,
-0.3978857100009918,
-0.28350386023521423,
-0.06756739318370819,
0.029122792184352875,
-0.01949043944478035,
0.061962589621543884,
0.053446538746356964,
0.13821528851985931,
0.14687268435955048,
0.03162699565291405,
0.18262840807437897,
-0.1548490673303604,
0.7969354391098022,
-0.3889084458351135,
0.4114338159561157,
-0.15663953125476837,
-0.11990439146757126,
-0.3110973834991455,
0.234505295753479,
-0.012480607256293297,
-0.277604341506958,
0.25671663880348206,
0.05373330041766167,
0.2090209275484085,
-0.6258600354194641,
-0.45774045586586,
0.05285106599330902,
-0.1441255360841751,
0.04529797285795212,
0.0343036986887455,
-0.205445796251297,
-0.10702279955148697,
0.2207036316394806,
0.03849034756422043,
-0.058767225593328476,
-0.20872244238853455,
-0.1666586697101593,
-0.006819987669587135,
0.07215043902397156,
-0.2570258677005768,
-0.6848429441452026,
-0.13186322152614594,
-0.3363645672798157,
-0.018551677465438843,
-0.10787682235240936,
0.15694086253643036,
-0.12324561923742294,
-0.05142522603273392,
-0.10490921139717102,
0.02172015979886055,
-0.334282785654068,
-0.09487523138523102,
-0.04873051866889,
0.09450488537549973,
-0.008282910101115704,
-0.45697301626205444,
0.1993885338306427,
0.1774873286485672,
-0.20251145958900452,
0.15311214327812195,
-0.5314671397209167,
-0.2725239098072052,
0.2065199762582779,
-0.04386252164840698,
0.1573561578989029,
-0.177633136510849,
0.5536832213401794,
-0.108638234436512,
-0.25384169816970825,
-0.134550079703331,
-0.28660425543785095,
0.07206118851900101,
0.1712457686662674,
0.32463446259498596,
0.4091809093952179,
0.2624562978744507,
0.02427409403026104,
0.3892095386981964,
0.19030974805355072,
0.026737334206700325,
0.2341606765985489,
0.17951345443725586,
0.19240552186965942,
-0.09376663714647293,
-0.20985402166843414,
0.06765498965978622,
0.12601375579833984,
0.1618109941482544,
0.15517830848693848,
0.21250541508197784,
-0.0854245200753212,
-0.3764597177505493,
-0.00025540342903696,
-0.00506945326924324,
0.10664946585893631,
-0.20458418130874634,
0.19392029941082,
0.6248510479927063,
0.1559799462556839,
-0.0690416544675827,
-0.18998469412326813,
-0.05028075352311134,
-0.12426447868347168,
0.23949775099754333,
0.21865209937095642,
-0.08031079918146133,
0.004976539872586727,
0.3057088851928711,
-0.2312399446964264,
0.36853930354118347,
-0.016263501718640327,
0.3051944971084595,
-0.17457960546016693,
0.18370047211647034,
0.16757479310035706,
-0.016534697264432907,
-0.0022485964000225067,
-0.4258725345134735,
0.2501201927661896,
0.5538986325263977,
-0.2577005922794342,
0.17580436170101166,
0.03193265572190285,
-0.15974994003772736,
-0.1175888404250145,
-0.18528766930103302,
0.5539388656616211,
-0.06165190413594246,
-0.3503073751926422,
0.5332697629928589,
0.09580100327730179,
-0.11599341034889221,
0.0116966487839818,
-0.14897769689559937,
-0.03917482867836952,
0.03618399426341057,
-0.06920671463012695,
-0.14557242393493652,
0.04509704187512398,
0.070754773914814,
-0.2735248804092407,
-0.21305637061595917,
-0.2302902340888977,
-0.07894148677587509,
-0.11622389405965805,
0.23028245568275452,
-0.005495409481227398,
0.2637900412082672,
0.10186465084552765,
-0.006938353180885315,
0.2944149971008301,
0.31050148606300354,
0.11030178517103195,
-0.26450395584106445,
0.11263973265886307,
-0.07665751874446869,
0.13211630284786224,
0.36211225390434265,
-0.14406165480613708,
0.13535715639591217,
-0.03249064087867737,
0.06749854236841202,
-0.09203340113162994,
-0.2673429250717163,
0.43276137113571167,
-0.16558049619197845,
-0.29759401082992554,
-0.03650200366973877,
0.20603162050247192,
0.16863827407360077,
-0.35545700788497925,
0.5559954047203064,
0.2967340350151062,
0.008054344914853573,
-0.023656591773033142,
-0.27704429626464844,
1.0293959379196167,
-0.02873333729803562,
-0.07097756862640381,
-0.2229955792427063,
-0.21065980195999146,
0.3116077482700348,
0.15183286368846893,
0.12755905091762543,
-0.14791233837604523,
-0.12004145234823227,
-0.15635867416858673,
0.025575987994670868,
0.3566552698612213,
0.013788659125566483,
-0.4522596597671509,
0.18001927435398102,
-0.10668765008449554,
0.34587040543556213,
0.1815039962530136,
0.41813695430755615,
0.20393532514572144,
0.2149995118379593,
-0.13578729331493378,
0.18121811747550964,
0.041511084884405136,
0.34440726041793823,
-0.11158084124326706,
-0.11234129965305328,
0.05060980096459389,
-0.16847838461399078,
-0.3772754371166229,
-0.1627560406923294,
0.09462282806634903,
0.12849560379981995,
-0.04188160598278046,
-0.32950493693351746,
0.15016421675682068,
-0.206703320145607,
0.23946169018745422,
0.05871187895536423,
-0.15435245633125305,
0.10663336515426636,
-0.10029864311218262,
-0.2956935167312622,
0.04223550856113434,
0.20251360535621643,
0.24934718012809753,
-0.36580002307891846,
-0.1296650618314743,
0.20751908421516418,
-0.06659556925296783,
-0.1957610845565796,
-0.38056036829948425,
0.014414827339351177,
0.1905001550912857,
-0.08584935963153839,
0.09023385494947433,
0.07931060343980789,
0.00003903576362063177,
-0.26875683665275574,
0.21664178371429443,
0.23639068007469177,
0.17307227849960327,
-0.07047223299741745,
0.09091240167617798,
-0.0943976566195488,
-0.04622819274663925,
0.3315742611885071,
0.4488442838191986,
-0.08695095777511597,
-0.057726141065359116,
-0.10464810580015182,
-0.02531530149281025,
-0.2967379093170166,
0.16510814428329468,
0.14837045967578888,
-0.19265492260456085,
0.3166777491569519,
0.0451822429895401,
-0.17714470624923706,
0.09663134068250656,
0.8037613034248352,
0.11329050362110138,
-0.08670225739479065,
-0.30893832445144653,
-0.22691470384597778,
-0.20127329230308533,
0.4007466435432434,
-0.3507452607154846,
-0.06325959414243698,
-0.17282158136367798,
0.003514288691803813,
0.17836518585681915,
-0.2588582932949066,
-0.3582353889942169,
0.10949436575174332,
-0.02293427102267742,
-0.1558411866426468,
0.38056179881095886,
-0.1397647112607956,
-0.1268879771232605,
-0.16952301561832428,
0.06836099922657013,
-0.19142568111419678,
-0.4219686686992645,
-0.18258988857269287,
-0.006880834698677063,
0.1795588582754135,
-0.09949954599142075,
0.11059010028839111,
-0.21884272992610931,
-0.33317118883132935,
-0.32947927713394165,
0.5655476450920105,
-0.0574626587331295,
0.21055805683135986,
0.2658177316188812,
-0.0013692115899175406,
-0.19110369682312012,
0.0832064300775528,
-0.04736015945672989,
0.1444203406572342,
0.291686475276947,
0.06167382001876831,
0.0525817908346653,
0.21925115585327148,
0.33524054288864136,
-0.051245905458927155,
-0.31883302330970764,
-0.08573167026042938,
0.028379956260323524,
0.10824371874332428,
0.2533847689628601,
0.084507517516613,
0.07785540819168091,
0.3177061378955841,
0.26134029030799866,
0.1477459967136383,
0.02358786016702652,
-0.10451551526784897,
0.1499728262424469,
0.22904641926288605,
-0.4348066747188568,
-0.21444475650787354,
-0.1024438738822937,
0.19541522860527039,
-0.3519691824913025,
-0.05866408348083496,
0.4161960184574127,
0.3745107352733612,
0.33062323927879333,
0.2353346198797226,
0.3252158761024475,
-0.28755486011505127,
0.17533700168132782,
0.2986510694026947,
0.28216201066970825,
0.0819244459271431,
0.27020835876464844,
0.35630878806114197,
0.1198413297533989,
-0.11741679161787033,
0.11622278392314911,
0.257994145154953,
0.6770777106285095,
0.4611133337020874,
0.2945825755596161,
-0.16741499304771423,
0.15286169946193695,
0.14507651329040527,
0.02485695295035839,
-0.009703485295176506,
-0.028064575046300888,
0.23412495851516724,
-0.22238042950630188,
0.0008824088727124035,
-0.2526206970214844,
-0.19898243248462677,
-0.139576718211174,
-0.20661792159080505,
0.080479197204113,
-0.20130200684070587,
-0.16393180191516876,
-0.04903427138924599,
-0.08184313774108887,
0.3881370723247528,
0.46514561772346497,
-0.17233611643314362,
0.06459128856658936,
-0.10199680924415588,
-0.1264229118824005,
0.17578351497650146,
0.2655937671661377,
-0.18459679186344147,
0.30188441276550293,
-0.4171665906906128,
0.10559463500976562,
0.2046000212430954,
0.5415050387382507,
0.0668874979019165,
-0.005514067132025957,
-0.09665117412805557,
-0.03461694344878197,
-0.20498983561992645,
-0.09645197540521622,
0.11996665596961975,
0.4839957356452942,
0.2810303866863251,
0.32640179991722107,
0.023384733125567436,
0.07553796470165253,
-0.1421591192483902,
0.41687196493148804,
-0.10790728032588959,
-0.12833581864833832,
-0.6276839971542358,
0.21749091148376465,
-0.10517280548810959,
-0.1579536497592926,
-0.061281852424144745,
0.12601238489151,
-0.012663573026657104,
-0.3415767252445221,
0.2715968191623688,
0.21668845415115356,
-0.06430549174547195,
-0.24864695966243744,
0.1112186536192894,
-0.2308492213487625,
0.04201717674732208,
0.013572169467806816,
-0.008657105267047882,
-0.01974002830684185,
-0.30968692898750305,
-0.44895827770233154,
0.3907984793186188,
0.11159761995077133,
-0.24081483483314514,
0.10528100281953812,
0.21330054104328156,
0.08897817134857178,
0.3081977963447571,
0.09241881221532822,
-0.17903946340084076,
-0.31719478964805603,
-0.14468729496002197,
-0.4022742211818695,
0.194186732172966,
0.39120855927467346,
0.08479410409927368,
-0.04224260896444321,
-0.2774841785430908,
0.27421900629997253,
-0.2932412028312683,
0.03224286809563637,
0.10447567701339722,
-0.33371686935424805,
0.38600507378578186,
0.14066675305366516,
0.5287458300590515,
0.032131507992744446,
0.13045482337474823,
0.23303470015525818,
-0.13441909849643707,
-0.46772316098213196,
-0.1328880935907364,
-0.03367091715335846,
-0.10856829583644867,
0.04182308912277222,
0.043894872069358826,
-0.2677304148674011,
0.11621493101119995,
-0.1990455836057663,
0.051043134182691574,
-0.3705940246582031,
0.4114423096179962,
0.06625548750162125,
0.10950760543346405,
0.06625023484230042,
-0.2569507956504822,
0.26486602425575256,
0.05526776611804962,
-0.11630024015903473,
-0.2598815858364105,
-0.44472816586494446,
-0.3196735382080078,
0.2948850393295288,
0.009998751804232597,
-0.1469423770904541,
-0.1186862513422966,
0.07514163851737976,
0.26015806198120117,
-0.2630869448184967,
-0.40477773547172546,
-0.13587850332260132,
0.3026440739631653,
0.229050412774086,
-0.12055433541536331,
0.00372037710621953,
0.011637534946203232,
-0.18535692989826202,
0.0748228132724762,
0.3017757833003998,
-0.14734987914562225,
-0.1105482205748558,
-0.19107918441295624,
0.07434473186731339
] |
https://github.com/huggingface/datasets/issues/2885
|
Adding an Elastic Search index to a Dataset
|
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env
|
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
| 44
|
Adding an Elastic Search index to a Dataset
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env
|
[
-0.1423356682062149,
0.1727263480424881,
-0.004471363499760628,
0.040096648037433624,
0.09973673522472382,
0.027367614209651947,
-0.01320515014231205,
0.06842199712991714,
0.013826427049934864,
0.053114887326955795,
-0.03956036642193794,
0.30000758171081543,
0.3499439060688019,
-0.37816154956817627,
-0.10492656379938126,
0.1306149810552597,
0.09097269177436829,
0.09414943307638168,
0.27567413449287415,
0.19792820513248444,
-0.03591420128941536,
0.09590878337621689,
-0.12475428730249405,
-0.08929158002138138,
-0.33463171124458313,
0.021213946864008904,
-0.03167138248682022,
-0.12353728711605072,
-0.02871766872704029,
-0.4167432188987732,
0.301948219537735,
-0.15018528699874878,
-0.12258530408143997,
0.35763490200042725,
-0.00011850786540890113,
0.07807427644729614,
0.434854120016098,
-0.032971713691949844,
-0.018321722745895386,
-0.29072055220603943,
-0.07237992435693741,
-0.1354442983865738,
0.2791987955570221,
-0.15913203358650208,
-0.09534785151481628,
0.16176341474056244,
0.09874819964170456,
-0.6114607453346252,
0.44152313470840454,
0.3961339592933655,
0.2210114747285843,
0.31800660490989685,
0.34375062584877014,
-0.12438366562128067,
0.4198285639286041,
-0.1281122863292694,
-0.048951197415590286,
-0.25642263889312744,
0.25303420424461365,
-0.038898222148418427,
-0.029066918417811394,
0.14522910118103027,
-0.09448936581611633,
-0.2707449793815613,
0.1085038036108017,
0.1481347531080246,
-0.46254295110702515,
-0.29573094844818115,
0.3149893879890442,
0.11342243105173111,
0.1910262107849121,
-0.07123375684022903,
-0.2519359588623047,
0.04518508166074753,
-0.0008991628419607878,
0.16221055388450623,
0.1994202882051468,
0.18945719301700592,
0.06061048433184624,
0.11904241889715195,
0.0653899610042572,
-0.12489814311265945,
-0.2391614466905594,
0.41353216767311096,
-0.05370808765292168,
0.17344455420970917,
-0.09754188358783722,
0.10647597908973694,
0.13659444451332092,
-0.14607979357242584,
0.07822859287261963,
0.25229522585868835,
-0.2729335129261017,
-0.05551564693450928,
-0.37644267082214355,
0.10244693607091904,
-0.11689483374357224,
-0.20027151703834534,
0.4185050427913666,
-0.0634528174996376,
-0.09268481284379959,
0.1597324013710022,
0.6514127254486084,
0.08237064629793167,
0.2860300540924072,
-0.06310341507196426,
0.06138165667653084,
0.3085786998271942,
0.07358753681182861,
-0.3172643482685089,
-0.31747332215309143,
-0.2593563497066498,
0.28547918796539307,
-0.214969664812088,
0.4180784225463867,
-0.48181551694869995,
0.21345700323581696,
-0.030027693137526512,
-0.15906564891338348,
0.21930071711540222,
-0.5879532694816589,
-0.006158099044114351,
-0.07535003125667572,
0.13534927368164062,
0.13646118342876434,
-0.495306134223938,
0.03836921975016594,
0.27251628041267395,
-0.2289303094148636,
0.14522144198417664,
-0.2356664389371872,
-0.26598307490348816,
0.04086916521191597,
0.017961975187063217,
0.11603579670190811,
-0.6583979725837708,
0.2295728623867035,
0.002188315847888589,
0.08425963670015335,
-0.39457207918167114,
0.26301148533821106,
-0.08290019631385803,
0.17736375331878662,
0.21885539591312408,
0.06153467670083046,
0.023488502949476242,
0.023227214813232422,
-0.43855562806129456,
-0.03515545651316643,
-0.12219376116991043,
-0.38145342469215393,
-0.2521410882472992,
-0.2764846086502075,
0.2102275937795639,
-0.13857711851596832,
0.017178315669298172,
0.13575181365013123,
0.2181536704301834,
0.1103120818734169,
-0.008274395018815994,
0.0775756910443306,
-0.04035547748208046,
-0.28976866602897644,
0.08141599595546722,
0.29978954792022705,
0.2074810117483139,
0.11608586460351944,
-0.12900640070438385,
0.03454871103167534,
0.4276863634586334,
-0.26092854142189026,
0.21411864459514618,
-0.2313275784254074,
0.03642932325601578,
-0.17314185202121735,
0.41792261600494385,
0.33503055572509766,
-0.46300169825553894,
-0.6134617328643799,
0.13872095942497253,
-0.23061515390872955,
-0.09500910341739655,
-0.2723558247089386,
0.06078474968671799,
0.6483927965164185,
0.010772318579256535,
0.17986758053302765,
0.24768157303333282,
-0.17625731229782104,
-0.16789840161800385,
-0.15230099856853485,
-0.0007275953539647162,
-0.14308804273605347,
-0.1772024929523468,
0.0628989040851593,
0.09033554047346115,
0.25761258602142334,
0.20040982961654663,
-0.005573802627623081,
0.1895461082458496,
0.011543016880750656,
0.3066955804824829,
0.3564869165420532,
0.10774914175271988,
0.2526802718639374,
-0.1288021057844162,
-0.25653156638145447,
0.22327041625976562,
0.08952877670526505,
0.08368594944477081,
-0.1827767938375473,
-0.11986313760280609,
-0.13790611922740936,
0.007161563728004694,
-0.1569930613040924,
0.030995549634099007,
0.10749728232622147,
-0.2377425879240036,
-0.21988706290721893,
0.1922541856765747,
0.0002304046502104029,
-0.16674810647964478,
0.07281053811311722,
0.2382163405418396,
-0.23763899505138397,
0.3120538294315338,
-0.08301298320293427,
-0.08675338327884674,
-0.1883610188961029,
-0.012789865955710411,
0.23681651055812836,
-0.20603905618190765,
-0.14462068676948547,
0.3325415551662445,
-0.09940619766712189,
0.3171956539154053,
0.15428419411182404,
0.02519393153488636,
0.12611836194992065,
-0.6889188885688782,
-0.10387783497571945,
0.14205710589885712,
0.057196274399757385,
-0.27619075775146484,
-0.0003118995809927583,
0.015249456278979778,
0.007225291337817907,
0.3724014163017273,
-0.21710269153118134,
0.0868731364607811,
-0.007397644221782684,
-0.1734815537929535,
-0.4597896337509155,
-0.03373279422521591,
-0.0198453851044178,
-0.3641356825828552,
-0.0424913726747036,
-0.1129406988620758,
-0.11829132586717606,
0.031904660165309906,
0.01611531898379326,
0.15425275266170502,
0.1046619862318039,
0.3709859848022461,
0.02022968791425228,
-0.10019180178642273,
-0.38004159927368164,
-0.02085947059094906,
0.23986321687698364,
0.17840413749217987,
0.1413077861070633,
-0.0003942671755794436,
0.016000045463442802,
-0.05712618678808212,
0.3174205422401428,
0.3449322283267975,
0.0851912572979927,
0.3284901976585388,
0.4267834424972534,
0.08073484152555466,
-0.23499971628189087,
-0.0556238517165184,
-0.2187711000442505,
-0.034960538148880005,
-0.24830542504787445,
0.48377811908721924,
-0.038178905844688416,
0.12168844044208527,
-0.14218224585056305,
0.036698613315820694,
-0.26087576150894165,
-0.4408204257488251,
-0.10007122904062271,
0.19188804924488068,
-0.029805738478899002,
0.010196707211434841,
-0.3896355628967285,
-0.028017308562994003,
0.25365346670150757,
-0.27196821570396423,
0.14002293348312378,
-0.138258159160614,
-0.1423635184764862,
-0.03425110876560211,
0.18529555201530457,
0.055935464799404144,
0.23909151554107666,
0.22776058316230774,
-0.13080453872680664,
-0.38574129343032837,
-0.4401710629463196,
0.1353849172592163,
0.027066977694630623,
0.338163286447525,
0.10618355870246887,
-0.20703698694705963,
-0.41890949010849,
-0.13923637568950653,
0.23917526006698608,
-0.15691444277763367,
0.0960521548986435,
0.09899038076400757,
0.08122660964727402,
0.1654556542634964,
0.2521836459636688,
-0.298807293176651,
-0.1856294870376587,
-0.17730607092380524,
0.031929630786180496,
-0.13006189465522766,
-0.07018974423408508,
0.32654818892478943,
-0.010066523216664791,
0.13343147933483124,
-0.11799375712871552,
-0.09436550736427307,
-0.12056155502796173,
-0.1552787572145462,
0.05129048228263855,
-0.1617371141910553,
-0.31464844942092896,
0.16640274226665497,
-0.03586573898792267,
-0.24765117466449738,
0.2399166077375412,
-0.3951132893562317,
0.21291477978229523,
0.12620513141155243,
-0.2579474449157715,
-0.3092861771583557,
0.05593540892004967,
0.08564423769712448,
-0.26329731941223145,
-0.015295511111617088,
-0.03317338228225708,
0.029206935316324234,
0.1754634529352188,
0.22315546870231628,
0.09258734434843063,
-0.09783893078565598,
0.23610830307006836,
-0.07093558460474014,
0.6817723512649536,
0.1603989601135254,
-0.013462265022099018,
0.15878620743751526,
-0.17086239159107208,
0.3219512403011322,
-0.236993208527565,
-0.5023807287216187,
-0.1412396878004074,
-0.10594407469034195,
-0.10542020201683044,
-0.028370404615998268,
0.10957435518503189,
-0.28275206685066223,
-0.11559988558292389,
-0.24269023537635803,
-0.06050083041191101,
-0.5460485219955444,
0.1893928200006485,
0.17110033333301544,
0.06934275478124619,
0.056865327060222626,
0.15642774105072021,
0.12334126979112625,
-0.43607401847839355,
-0.425250381231308,
-0.12721946835517883,
-0.1278427094221115,
0.015780139714479446,
-0.26754480600357056,
0.19871868193149567,
-0.6068621277809143,
0.1646699458360672,
-0.054210588335990906,
0.5287724733352661,
0.05517034977674484,
0.0009346356382593513,
0.1420917809009552,
0.16867750883102417,
0.7477442026138306,
-0.22517412900924683,
-0.11859791725873947,
-0.015835518017411232,
0.054792869836091995,
-0.592825174331665,
0.0987461656332016,
-0.1476440280675888,
0.6286975741386414,
0.2092188000679016,
0.3737732172012329,
0.02889336831867695,
0.1745183914899826,
0.07553636282682419,
-0.10054687410593033,
0.07907010614871979,
-0.07784201204776764,
-0.22568295896053314,
-0.22002726793289185,
0.3044414222240448,
0.27427437901496887,
0.3445186913013458,
0.08100225031375885,
0.3223791718482971,
-0.22847752273082733,
-0.2969668507575989,
-0.030945615842938423,
0.043718237429857254,
-0.22909323871135712,
0.25751104950904846,
-0.07814792543649673,
0.2960498631000519,
0.4340248107910156,
0.21778558194637299,
0.2762289047241211,
0.4081856906414032,
-0.2440406084060669,
0.08859354257583618,
-0.019674193114042282,
-0.03754708915948868,
0.17641021311283112,
0.34520915150642395,
0.23339420557022095,
0.15300077199935913,
0.178876593708992,
0.06654169410467148,
-0.21474236249923706,
-0.18785925209522247,
0.5031183362007141,
0.13828642666339874,
-0.47608640789985657,
0.0670427680015564,
0.36206549406051636,
-0.06275182962417603,
-0.03086564689874649,
0.07451502978801727,
0.5442929267883301,
-0.39887022972106934,
0.6471542119979858,
0.11359820514917374,
0.6712858080863953,
0.0891948789358139,
-0.07255654036998749,
-0.2630753517150879,
0.11092592775821686,
0.7352771162986755,
-0.33470049500465393,
0.25493738055229187,
-0.20975074172019958,
-0.5855284929275513,
-0.06905847042798996,
-0.28585028648376465,
0.008680878207087517,
-0.22341808676719666,
-0.36034831404685974,
0.016650471836328506,
-0.3822997510433197,
0.28212544322013855,
-0.08415591716766357,
0.3374679386615753,
-0.1510467380285263,
-0.12747961282730103,
0.035268835723400116,
0.1547400951385498,
0.22271372377872467,
0.2692334055900574,
0.19162340462207794,
0.0424446202814579,
-0.01742265187203884,
-0.2775607407093048,
-0.49446091055870056,
-0.019128883257508278,
-0.12745986878871918,
0.15517377853393555,
0.1827656775712967,
-0.04532294347882271,
0.38154715299606323,
0.09889674931764603,
0.048149026930332184,
0.10755757987499237,
-0.18122388422489166,
0.2406509667634964,
-0.008087653666734695,
-0.05698342248797417,
0.44466835260391235,
-0.22058320045471191,
0.07117965072393417,
0.17912264168262482,
-0.4024164080619812,
-0.018444465473294258,
0.2618081569671631,
-0.18586596846580505,
-0.08226970583200455,
0.34710296988487244,
-0.25227412581443787,
-0.3732711672782898,
-0.23475737869739532,
-0.1285918802022934,
-0.0675499215722084,
-0.1432652771472931,
0.08923213928937912,
0.008490588515996933,
-0.12428579479455948,
0.28307104110717773,
0.3689801096916199,
-0.24953216314315796,
0.07210094481706619,
0.8503791093826294,
-0.21605044603347778,
-0.1386737823486328,
0.2074776291847229,
0.06039552763104439,
-0.17180244624614716,
-0.11009164154529572,
0.32643091678619385,
0.285936176776886,
-0.1506773680448532,
-0.25924384593963623,
-0.46274980902671814,
0.22831617295742035,
0.03696288913488388,
0.037715788930654526,
0.21224597096443176,
-0.009236805140972137,
-0.1842617243528366,
-0.1904774010181427,
0.14333437383174896,
0.1566764861345291,
0.44425877928733826,
0.10218636691570282,
-0.31988686323165894,
-0.4058079719543457,
-0.09582794457674026,
0.13750067353248596,
-0.24381111562252045,
0.32686716318130493,
-0.25202858448028564,
0.006450389511883259,
-0.12959210574626923,
-0.05161594599485397,
0.5856391787528992,
-0.37528109550476074,
0.059196386486291885,
0.17448484897613525,
-0.051219258457422256,
-0.16854050755500793,
-0.06370184570550919,
0.11913764476776123,
-0.0450761578977108,
-0.10700855404138565,
-0.1666346937417984,
-0.23166076838970184,
-0.04734847694635391,
-0.2600589990615845,
0.02688812091946602,
0.424556702375412,
0.12926939129829407,
-0.1663019210100174,
-0.15225215256214142,
-0.12608714401721954,
0.3549254834651947,
-0.0860518366098404,
0.22106696665287018,
0.2574334740638733,
0.016934648156166077,
0.28505417704582214,
0.10951443016529083,
-0.031354229897260666,
-0.11664342880249023,
0.27056577801704407,
-0.043708011507987976,
0.07836644351482391,
0.20383109152317047,
-0.23710453510284424,
-0.09618144482374191,
0.5086311101913452,
0.41947123408317566,
0.3942946493625641,
-0.31043413281440735,
-0.1650983840227127,
-0.000525139388628304,
0.24133114516735077,
0.04924799129366875,
-0.24171076714992523,
0.6126326322555542,
0.090025395154953,
0.128388449549675,
0.20120234787464142,
0.08903907239437103,
-0.31309300661087036,
-0.3525211811065674,
0.029185794293880463,
0.7695252299308777,
0.1349656879901886,
0.10625208914279938,
-0.1847231686115265,
-0.02989916317164898,
-0.03078809753060341,
0.09696581214666367,
0.1540452390909195,
0.36287543177604675,
0.21087978780269623,
0.009351136162877083,
0.445763498544693,
0.09463877975940704,
0.20023538172245026,
0.19582019746303558,
0.1463281214237213,
0.28198346495628357,
0.2778770923614502,
0.19834567606449127,
0.06488383561372757,
-0.031021801754832268,
0.8150582909584045,
-0.008176819421350956,
-0.30889958143234253,
-0.10747381299734116,
0.012354990467429161,
-0.07188568264245987,
-0.13820108771324158,
0.21335884928703308,
-0.16537979245185852,
-0.0008469704771414399,
-0.2416384518146515,
0.08490053564310074,
-0.02695886790752411,
-0.39012789726257324,
0.15754973888397217,
0.11248156428337097,
-0.04309558495879173,
0.050888851284980774,
-0.14149680733680725,
0.07672015577554703,
-0.16643689572811127,
0.003623808501288295,
-0.1519063264131546,
0.1252121478319168,
0.23516790568828583,
0.33120885491371155,
0.4035595953464508,
-0.07472364604473114,
-0.14004644751548767,
0.40586552023887634,
-0.03501224145293236,
-0.14455294609069824,
0.10792141407728195,
0.03183726966381073,
-0.0002723837678786367,
-0.5440952777862549,
0.14781683683395386,
0.04871267452836037,
-0.06358882039785385,
0.014041716232895851,
0.26408398151397705,
0.43219825625419617,
-0.15409167110919952,
-0.3470178544521332,
-0.21063193678855896,
0.07443225383758545,
-0.1783645898103714,
-0.1506301760673523,
-0.160038024187088,
0.09886042028665543,
0.2971239686012268,
-0.21230965852737427,
0.14406275749206543,
0.14290128648281097,
0.06288842856884003,
-0.08692174404859543,
0.19667918980121613,
0.11604870110750198,
-0.055046338587999344,
-0.033397555351257324,
0.07475198805332184,
-0.2059541493654251,
0.31864193081855774,
-0.45080864429473877,
0.1692681908607483,
0.5591517686843872,
0.2960517704486847,
-0.20471446216106415,
0.10676658153533936,
0.18077054619789124,
-0.23506581783294678,
-0.2993125021457672,
-0.07724495232105255,
-0.016041243448853493,
-0.22386698424816132,
-0.1015612930059433,
0.026177551597356796,
-0.010141633450984955,
-0.02515552006661892,
0.10904494673013687,
-0.5017808675765991,
0.02346213534474373,
-0.23539748787879944,
-0.1540958285331726,
-0.19839578866958618,
-0.17497460544109344,
0.11525095254182816,
0.07642877101898193,
0.25468096137046814,
-0.01082568895071745,
0.0705433189868927,
-0.19427169859409332,
-0.4698747396469116,
-0.2817726135253906,
0.2653592824935913,
0.09579101949930191,
0.030969493091106415,
-0.25580069422721863,
-0.49813923239707947,
-0.20893709361553192,
0.1482592523097992,
0.09516969323158264,
-0.10516121983528137,
-0.4935900866985321,
0.021183768287301064,
-0.06647433340549469,
0.12540289759635925,
-0.282428115606308,
0.3217887580394745,
-0.05846036598086357,
0.4555458724498749,
0.05762292817234993,
-0.4273313581943512,
0.4724084734916687,
-0.33195972442626953,
0.00557880150154233,
-0.04099411517381668,
0.29267817735671997,
0.6038848757743835,
0.1409933865070343,
-0.23869508504867554,
-0.1673583835363388,
0.275653600692749,
-0.19434590637683868,
-0.244059219956398,
-0.09817367792129517,
-0.015066726133227348,
0.19261892139911652,
-0.025973182171583176,
-0.16198000311851501,
0.2742904722690582,
-0.02924884483218193,
0.015126876533031464,
-0.09116986393928528
] |
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.3422667682170868,
0.035567548125982285,
0.3098617494106293,
0.2141987681388855,
0.04043688625097275,
0.3646674156188965,
0.4201541244983673,
0.30403679609298706,
0.07150106132030487,
-0.2768692970275879,
0.19011738896369934,
0.13069291412830353,
-0.19510620832443237,
-0.1612931340932846,
0.3339100182056427,
0.12469452619552612,
0.10538608580827713,
-0.22422035038471222,
-0.12527917325496674,
-0.3106774389743805,
0.19857817888259888,
-0.2184479534626007,
-0.2842966616153717,
-0.052956413477659225,
0.18356257677078247,
0.1532592922449112,
0.23243483901023865,
-0.12070289999246597,
-0.358711838722229,
0.2788253724575043,
0.2785298526287079,
0.17364327609539032,
0.4296150505542755,
-0.00012492839596234262,
0.12080095708370209,
0.2817721366882324,
-0.024277616292238235,
-0.5012800097465515,
-0.20139235258102417,
-0.5633583068847656,
-0.37422436475753784,
-0.007036229129880667,
-0.15833552181720734,
-0.03448761627078056,
0.23633745312690735,
-0.017785023897886276,
-0.27507367730140686,
0.00017851033771876246,
0.37369367480278015,
0.1168566420674324,
0.39186739921569824,
0.160996675491333,
0.08716820180416107,
0.3812575340270996,
0.050496187061071396,
-0.09009998291730881,
0.4119744300842285,
0.21939806640148163,
-0.038595907390117645,
-0.2582015097141266,
0.16832800209522247,
-0.42346128821372986,
0.30699437856674194,
0.23205839097499847,
0.06188228726387024,
0.06487459689378738,
-0.13736754655838013,
0.25324785709381104,
0.2994745969772339,
0.4981426000595093,
-0.41465944051742554,
-0.3278130888938904,
-0.22857381403446198,
-0.29830124974250793,
-0.31886914372444153,
0.3791346549987793,
0.13985711336135864,
-0.19677694141864777,
0.0336296409368515,
-0.36808058619499207,
0.14996232092380524,
0.003770482027903199,
0.19401292502880096,
0.2422676533460617,
0.05453745648264885,
0.031654708087444305,
-0.018766021355986595,
0.02211250178515911,
0.029878029599785805,
0.3937077224254608,
-0.5399649143218994,
-0.20467835664749146,
0.2048107236623764,
-0.5590248703956604,
0.07308666408061981,
0.008054927922785282,
0.2777065932750702,
0.3526347577571869,
0.49251416325569153,
0.08900973200798035,
0.20428040623664856,
-0.03753884509205818,
0.18851551413536072,
0.16431911289691925,
0.21197018027305603,
-0.06473491340875626,
0.4100460708141327,
0.2708590030670166,
0.3656803369522095,
-0.13477809727191925,
0.04320993274450302,
-0.005434857215732336,
-0.17642106115818024,
0.6712679266929626,
-0.12599477171897888,
0.3084341585636139,
-0.4890425503253937,
-0.4388943910598755,
0.2713259160518646,
0.008198997005820274,
-0.09479711949825287,
0.0869511291384697,
0.32201987504959106,
-0.22657911479473114,
0.15165983140468597,
0.14701960980892181,
0.14769181609153748,
-0.2125009298324585,
-0.0541328601539135,
-0.18733669817447662,
-0.07644023001194,
-0.059678200632333755,
0.197609081864357,
0.2942301034927368,
-0.18220095336437225,
0.25536325573921204,
0.10830985009670258,
0.21902644634246826,
-0.19608211517333984,
0.29997575283050537,
-0.19556280970573425,
-0.053362585604190826,
0.31806620955467224,
-0.03223138302564621,
0.09612485766410828,
0.2476639598608017,
-0.18122348189353943,
-0.14394289255142212,
0.18287712335586548,
-0.25577646493911743,
-0.21374455094337463,
-0.1269088238477707,
0.15115103125572205,
-0.3514269292354584,
0.008209366351366043,
-0.23782691359519958,
-0.40002596378326416,
0.4063251316547394,
-0.3223423957824707,
-0.01548298355191946,
-0.3542117774486542,
-0.2637978494167328,
-0.3539443910121918,
0.23897331953048706,
0.40259984135627747,
0.041924089193344116,
0.04265287145972252,
-0.0905645415186882,
-0.011483822949230671,
0.294192910194397,
0.18351122736930847,
0.009319540113210678,
0.1056315153837204,
-0.4124910533428192,
-0.06356123834848404,
0.2606545388698578,
-0.3542019724845886,
-0.6170885562896729,
0.10361704975366592,
0.12774613499641418,
0.6295827627182007,
0.04764252528548241,
0.07500482350587845,
0.1831681877374649,
-0.050238996744155884,
0.22169993817806244,
0.1532372683286667,
-0.03878584876656532,
0.12447963654994965,
-0.25280508399009705,
-0.03256034851074219,
-0.04347182437777519,
0.10448645055294037,
0.020173275843262672,
0.24980470538139343,
0.288921594619751,
-0.1661122888326645,
0.26378074288368225,
-0.09536612033843994,
-0.12573708593845367,
0.23210464417934418,
0.29919978976249695,
0.0468757338821888,
0.06397274881601334,
-0.016745787113904953,
-0.7693796157836914,
0.3423205316066742,
-0.1505926549434662,
-0.028012486174702644,
-0.07335054874420166,
-0.0444161631166935,
-0.18030476570129395,
-0.11414795368909836,
-0.30736687779426575,
-0.09120496362447739,
-0.012601993978023529,
0.3906347155570984,
0.20742188394069672,
0.020101476460695267,
0.037946175783872604,
0.41377732157707214,
-0.30479779839515686,
0.12482928484678268,
-0.33462241291999817,
0.4118487238883972,
0.07434254139661789,
-0.10293790698051453,
0.1318245232105255,
-0.003029209328815341,
0.13282302021980286,
-0.056294672191143036,
-0.2745421230792999,
0.4387063980102539,
0.3811514675617218,
0.13638311624526978,
-0.19623255729675293,
0.3414160907268524,
-0.06992180645465851,
-0.1395464837551117,
-0.012618333101272583,
0.4393077492713928,
0.12039738148450851,
-0.1690555363893509,
-0.15337435901165009,
0.34739187359809875,
-0.0006352866184897721,
0.19467628002166748,
0.006253197323530912,
0.05758306384086609,
0.24504943192005157,
-0.11670221388339996,
-0.14613747596740723,
-0.2618684768676758,
0.3650648295879364,
0.1295994520187378,
0.22662478685379028,
0.19694119691848755,
-0.15721149742603302,
-0.025889728218317032,
0.45152074098587036,
-0.07350897043943405,
-0.020525256171822548,
0.1288505345582962,
0.047466032207012177,
-0.04369369149208069,
0.0753757506608963,
0.23707400262355804,
0.5027205944061279,
0.06688656657934189,
-0.04628356546163559,
0.1425228714942932,
-0.17180752754211426,
-0.06782576441764832,
0.09680496156215668,
-0.04073897749185562,
0.19895556569099426,
0.6168531179428101,
0.13804224133491516,
-0.15266691148281097,
-0.28188368678092957,
-0.07744341343641281,
-0.12176036089658737,
0.30291956663131714,
-0.49030542373657227,
0.07697010040283203,
-0.10728730261325836,
0.08582380414009094,
-0.37316837906837463,
-0.12689976394176483,
-0.18559785187244415,
-0.2465100884437561,
-0.2533246874809265,
0.625508189201355,
0.0291842482984066,
0.17708775401115417,
-0.5438398122787476,
0.02617497183382511,
-0.04827320948243141,
-0.36588823795318604,
0.01786494255065918,
0.20343656837940216,
-0.21111075580120087,
-0.1547405868768692,
0.5788068771362305,
-0.09108760952949524,
0.37425655126571655,
-0.4110652804374695,
-0.026851056143641472,
-0.5500816106796265,
-0.22336389124393463,
0.09451518207788467,
0.016227396205067635,
0.22367508709430695,
0.17118267714977264,
0.04065746068954468,
-0.019199997186660767,
-0.25010740756988525,
0.24092134833335876,
-0.04423141852021217,
-0.26826757192611694,
0.3236278295516968,
-0.15102843940258026,
-0.09554998576641083,
0.17093603312969208,
-0.1985119730234146,
-0.05945122241973877,
-0.30505552887916565,
-0.12973836064338684,
0.23192201554775238,
0.21338117122650146,
0.19363191723823547,
-0.006471268832683563,
0.015293699689209461,
0.1389663964509964,
0.33736753463745117,
-0.16820287704467773,
-0.6134580969810486,
0.4448632597923279,
-0.03782505914568901,
-0.2202027291059494,
-0.14433155953884125,
-0.10698499530553818,
0.11745353043079376,
0.3974044919013977,
-0.509544312953949,
0.01674903929233551,
-0.2880868911743164,
0.09456289559602737,
0.09506309777498245,
-0.02405628375709057,
0.21602317690849304,
0.1453539878129959,
0.08296561986207962,
-0.24995462596416473,
-0.27190619707107544,
0.1908770650625229,
-0.1372257024049759,
0.19965597987174988,
0.022647235542535782,
0.3025049567222595,
-0.2673569321632385,
0.546239972114563,
0.4274429976940155,
0.006137737538665533,
0.22808587551116943,
0.04674666002392769,
0.5268771052360535,
-0.16033652424812317,
-0.31799250841140747,
-0.07851161807775497,
-0.20986811816692352,
-0.13363446295261383,
0.13671106100082397,
-0.025606533512473106,
-0.12907616794109344,
-0.1602403074502945,
0.056563057005405426,
-0.2643205523490906,
-0.26646310091018677,
0.05570375174283981,
-0.2999249994754791,
0.34184667468070984,
0.1807081252336502,
0.1787680983543396,
-0.14496466517448425,
-0.3675054609775543,
-0.0111333467066288,
0.255164235830307,
-0.062167003750801086,
-0.06465355306863785,
-0.27541878819465637,
0.03612782061100006,
-0.09631168842315674,
0.30097925662994385,
0.2166885882616043,
0.4385872185230255,
0.12864209711551666,
-0.08465375006198883,
-0.018668677657842636,
0.023542296141386032,
0.22706659138202667,
-0.2749735414981842,
0.29569756984710693,
0.14856073260307312,
-0.007957237772643566,
-0.17835772037506104,
-0.2544604539871216,
-0.043249648064374924,
0.061822518706321716,
0.04338756576180458,
0.5564835071563721,
-0.31658414006233215,
-0.01635737344622612,
0.24136070907115936,
0.41004282236099243,
-0.146185040473938,
-0.28836825489997864,
-0.44035598635673523,
-0.1881622076034546,
-0.2969505786895752,
-0.18072612583637238,
-0.14348727464675903,
0.12070489674806595,
-0.23364247381687164,
-0.1006108745932579,
-0.017982952296733856,
0.05704148858785629,
0.29716816544532776,
-0.05694995075464249,
0.4486593008041382,
-0.06271520256996155,
0.43891486525535583,
0.04354345425963402,
0.06077488511800766,
0.40352267026901245,
0.8385488986968994,
-0.3676978647708893,
-0.4420875310897827,
-0.0795326828956604,
-0.13003112375736237,
-0.17700506746768951,
0.07271666079759598,
-0.029712827876210213,
-0.13397836685180664,
0.2369074672460556,
-0.1334165334701538,
-0.08766334503889084,
-0.07257220894098282,
0.21041680872440338,
0.1998625099658966,
-0.48593077063560486,
-0.47055038809776306,
0.14250074326992035,
0.08549858629703522,
-0.05650052800774574,
0.5796328783035278,
-0.0678573027253151,
-0.1726638674736023,
0.09759187698364258,
0.15627801418304443,
0.7910824418067932,
-0.03746936842799187,
0.20977959036827087,
0.2671891152858734,
-0.3216477632522583,
-0.015329732559621334,
-0.2884852886199951,
0.11760430037975311,
-0.5410559177398682,
-0.4565598666667938,
0.0023727426305413246,
-0.41088560223579407,
0.06949296593666077,
0.024456733837723732,
-0.00587647408246994,
0.3644278943538666,
-0.13654035329818726,
0.36398324370384216,
0.1626519113779068,
0.15032503008842468,
-0.1333136260509491,
-0.019251402467489243,
-0.024690238758921623,
0.05636755749583244,
-0.10632724314928055,
0.28178754448890686,
-0.10432553291320801,
0.0744720846414566,
-0.08374346047639847,
-0.24914218485355377,
-0.3359668254852295,
0.26861682534217834,
-0.0484265498816967,
0.3063889741897583,
0.314468652009964,
-0.1562396138906479,
-0.19320452213287354,
0.30794134736061096,
0.19318875670433044,
0.12565146386623383,
-0.20242732763290405,
-0.0966150164604187,
0.44461607933044434,
0.18595872819423676,
0.10808394104242325,
-0.11747673898935318,
0.42943739891052246,
-0.01647469773888588,
-0.1706189513206482,
-0.01950801908969879,
-0.15670853853225708,
-0.5109947323799133,
-0.06384704262018204,
-0.1865803301334381,
-0.013953284360468388,
-0.33274540305137634,
-0.18218566477298737,
-0.14913690090179443,
-0.002648170106112957,
-0.17993007600307465,
0.10349544137716293,
0.1509203314781189,
-0.1339949071407318,
0.37992244958877563,
-0.0015906781191006303,
-0.4600848853588104,
-0.12746500968933105,
0.5131279230117798,
0.1256904900074005,
-0.06667503714561462,
0.5254417657852173,
-0.035495880991220474,
-0.2741107642650604,
-0.13037841022014618,
-0.023937396705150604,
0.04297981783747673,
-0.2795839011669159,
0.15648849308490753,
-0.2923153042793274,
0.3266962170600891,
-0.16565248370170593,
0.230920672416687,
0.17461150884628296,
-0.02821926213800907,
0.08037545531988144,
-0.5436599254608154,
-0.11495620012283325,
-0.05452365428209305,
0.07140577584505081,
0.22561295330524445,
-0.09616639465093613,
-0.13187725841999054,
-0.16862715780735016,
-0.16431237757205963,
-0.21964453160762787,
-0.05095931515097618,
-0.2850681245326996,
-0.0503932386636734,
0.06670042872428894,
0.10910827666521072,
0.09547378122806549,
-0.0848042443394661,
0.10706745833158493,
-0.13952678442001343,
-0.1586134433746338,
-0.09824498742818832,
-0.2473127692937851,
0.1913047879934311,
0.007806112989783287,
-0.21952416002750397,
0.10118880867958069,
-0.25071051716804504,
-0.12310400605201721,
-0.29265788197517395,
0.04128396511077881,
0.33322590589523315,
-0.16632448136806488,
0.024056648835539818,
0.047913361340761185,
-0.005912115331739187,
-0.07029575854539871,
0.059867631644010544,
-0.35677188634872437,
-0.09490872919559479,
0.03533520549535751,
0.08519116044044495,
0.0412062332034111,
-0.04275951534509659,
0.038260553032159805,
0.20074611902236938,
0.09748858958482742,
-0.03412342071533203,
0.4755384027957916,
-0.4363528788089752,
0.04025524854660034,
0.15630224347114563,
0.23568245768547058,
0.42222926020622253,
-0.385621041059494,
-0.11752375960350037,
0.1396678239107132,
0.17106832563877106,
-0.28583309054374695,
-0.1420321762561798,
0.14067034423351288,
-0.20546011626720428,
0.024986539036035538,
0.24165654182434082,
0.1442960798740387,
-0.5312743782997131,
0.3154033124446869,
0.036544010043144226,
0.1829734593629837,
-0.1733883023262024,
0.09529630094766617,
0.42065155506134033,
0.10133911669254303,
0.14036397635936737,
0.13258473575115204,
-0.031038440763950348,
-0.010568955913186073,
0.04780060052871704,
-0.07501213252544403,
0.30365830659866333,
-0.3571113348007202,
0.08801936358213425,
-0.22013206779956818,
-0.5279708504676819,
0.3481960594654083,
0.25023725628852844,
-0.0698244497179985,
0.1256934553384781,
0.015217602252960205,
0.0834488719701767,
-0.061537932604551315,
0.2207067757844925,
-0.35151633620262146,
-0.11219971626996994,
-0.11604046076536179,
0.030032392591238022,
0.005670327693223953,
-0.3382461667060852,
0.023781493306159973,
0.22826142609119415,
-0.04873340576887131,
0.14405830204486847,
0.15894314646720886,
0.12192077934741974,
-0.18033148348331451,
-0.2696208655834198,
0.2587578296661377,
0.08426085859537125,
-0.040988314896821976,
-0.18214432895183563,
0.2920794188976288,
0.052717480808496475,
0.06037534773349762,
0.0834050104022026,
0.2604431211948395,
0.4520893394947052,
0.596956729888916,
0.16555972397327423,
-0.2217351347208023,
-0.018945438787341118,
-0.023127665743231773,
-0.09419888257980347,
0.7059616446495056,
-0.18014545738697052,
-0.25993406772613525,
0.3139140009880066,
0.0530901700258255,
-0.14712543785572052,
0.025386536493897438,
-0.09723342955112457,
-0.2940261960029602,
-0.09076347947120667,
0.5079382061958313,
-0.023623235523700714,
0.017498474568128586,
-0.0995553657412529,
0.2220057249069214,
-0.22758078575134277,
-0.24917104840278625,
0.432648628950119,
0.22700978815555573,
0.13768310844898224,
0.07760745286941528,
0.0341976173222065,
-0.018628833815455437,
0.17660902440547943,
0.2722505033016205,
0.0902155414223671,
-0.3786693215370178,
-0.3421303927898407,
-0.7264227271080017,
0.34543487429618835,
-0.157649427652359,
-0.061995599418878555,
0.11724434047937393,
0.13262023031711578,
0.011623112484812737,
0.1041921004652977,
0.31464624404907227,
-0.06412729620933533,
-0.20501531660556793,
-0.009851135313510895,
-0.17590181529521942,
-0.3004661202430725,
-0.15927287936210632,
-0.1377236545085907,
-0.19204330444335938,
-0.570371687412262,
0.20179195702075958,
0.11519189924001694,
0.04825973138213158,
-0.12294783443212509,
0.20971828699111938,
0.09960886090993881,
0.20801909267902374,
0.18529503047466278,
0.15405981242656708,
0.635270893573761,
-0.0647081509232521,
-0.2254834920167923,
-0.09719987958669662,
-0.11416752636432648,
-0.15863953530788422,
0.3163210153579712,
-0.11485856026411057,
0.34630489349365234,
-0.10015280544757843,
-0.30198433995246887,
-0.35749220848083496,
0.39119574427604675,
0.24973496794700623,
-0.3221435844898224,
-0.08384854346513748,
0.07282189279794693,
-0.2557877004146576,
0.21849000453948975,
0.02597312070429325,
0.11381377279758453,
0.13359349966049194,
0.45933812856674194,
-0.16759717464447021,
-0.245021253824234,
0.4646683931350708,
-0.2160874754190445,
-0.1596837341785431,
-0.1233224868774414,
0.25768640637397766,
-0.27439355850219727,
-0.21509107947349548,
-0.6132486462593079,
0.1759437471628189,
0.48128145933151245,
-0.13565285503864288,
-0.16693362593650818,
0.2582968771457672,
-0.20368383824825287,
0.3876018822193146,
0.01639053039252758,
0.34854695200920105,
0.012252493761479855,
-0.22214089334011078,
-0.05368901789188385,
-0.11852767318487167
] |
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.12485301494598389,
-0.05359438806772232,
0.029330797493457794,
0.07398083806037903,
0.20472727715969086,
-0.024576963856816292,
0.24893800914287567,
0.4213009774684906,
-0.4746897518634796,
0.1751621514558792,
0.13618355989456177,
0.5513849854469299,
-0.3347686231136322,
-0.08509580045938492,
0.03448350355029106,
0.18656395375728607,
-0.09211192280054092,
0.1384560465812683,
-0.2678898572921753,
-0.2130746990442276,
0.03989246487617493,
0.39640000462532043,
-0.16762857139110565,
-0.06859630346298218,
-0.374177485704422,
0.24487890303134918,
0.22737769782543182,
-0.23149128258228302,
0.10548385232686996,
-0.460035115480423,
0.29247498512268066,
0.14869742095470428,
0.019459843635559082,
0.3702305555343628,
-0.00011912988702533767,
0.0063219815492630005,
0.2757810056209564,
0.03525402024388313,
-0.2775220274925232,
-0.44794371724128723,
-0.06502600759267807,
0.10858651250600815,
0.053033504635095596,
0.14755330979824066,
-0.4656312167644501,
-0.17931348085403442,
0.2337307333946228,
-0.34094759821891785,
0.029201770201325417,
0.4485588073730469,
0.06858424097299576,
-0.06341683119535446,
-0.24966342747211456,
-0.08246716856956482,
0.3689350485801697,
0.012542515993118286,
-0.06251813471317291,
0.05927044525742531,
-0.06833595037460327,
0.24112971127033234,
0.21967542171478271,
0.37554827332496643,
-0.03132479637861252,
0.012995908968150616,
-0.19541847705841064,
-0.0935637429356575,
-0.2540266811847687,
-0.34878697991371155,
0.07476746290922165,
0.2519179582595825,
0.7106896042823792,
-0.29586225748062134,
-0.32151079177856445,
-0.2683323621749878,
0.33699485659599304,
-0.05422089993953705,
0.2911204695701599,
0.025418540462851524,
-0.2944924235343933,
0.16272512078285217,
-0.5629907250404358,
0.0742400586605072,
-0.30417510867118835,
0.1429009586572647,
-0.09742772579193115,
-0.35963356494903564,
-0.14377136528491974,
0.18454167246818542,
-0.19759289920330048,
0.11638650298118591,
0.11415465176105499,
0.18843974173069,
-0.039613544940948486,
-0.0923849567770958,
-0.320624977350235,
-0.09855632483959198,
0.0559256337583065,
-0.08153830468654633,
0.0717138722538948,
0.31728658080101013,
0.2842961549758911,
0.06759432703256607,
-0.4174657166004181,
-0.13550490140914917,
0.03223119676113129,
0.1481693834066391,
0.18230850994586945,
-0.17784053087234497,
0.1011013612151146,
-0.07203088700771332,
-0.15337534248828888,
0.01399262621998787,
0.01898307166993618,
-0.07210042327642441,
-0.10625384747982025,
-0.015303093940019608,
0.3571924567222595,
-0.11757729947566986,
-0.5631764531135559,
0.1525678038597107,
-0.5025038123130798,
0.21358953416347504,
-0.052056074142456055,
0.19477376341819763,
-0.21541757881641388,
0.1350177377462387,
0.2971951961517334,
0.08706340193748474,
0.024878544732928276,
-0.3115251958370209,
-0.09980246424674988,
-0.19715753197669983,
0.18287961184978485,
0.09686350077390671,
0.24400949478149414,
-0.21037285029888153,
0.21230565011501312,
0.25713542103767395,
0.2615034282207489,
-0.15388499200344086,
-0.0926651880145073,
-0.032623205333948135,
0.25298041105270386,
0.26684463024139404,
-0.12481998652219772,
0.3939129412174225,
-0.05651196464896202,
0.11579392850399017,
0.10667075216770172,
0.25712355971336365,
-0.06512220203876495,
-0.006171481218189001,
0.56234210729599,
0.06058848649263382,
-0.18365347385406494,
-0.30065202713012695,
-0.10712072998285294,
0.333304762840271,
0.04427948221564293,
-0.0668327808380127,
0.25042015314102173,
-0.27517828345298767,
-0.22715210914611816,
0.01588263548910618,
0.13589243590831757,
0.15665338933467865,
-0.5853272080421448,
0.024328190833330154,
0.1945611834526062,
0.06847166270017624,
0.3222922086715698,
0.30327504873275757,
0.16519594192504883,
0.18117113411426544,
-0.08166655898094177,
0.11702223122119904,
-0.21993212401866913,
-0.38836637139320374,
-0.2060425579547882,
0.20928353071212769,
-0.27081283926963806,
0.2642597556114197,
-0.08326929807662964,
-0.21921762824058533,
0.08026697486639023,
0.09913284331560135,
0.36406925320625305,
-0.18916094303131104,
0.24668265879154205,
-0.10566982626914978,
-0.3831149637699127,
-0.14455747604370117,
0.18933825194835663,
0.17552600800991058,
-0.01771179400384426,
0.05326474830508232,
-0.29823559522628784,
-0.016457267105579376,
0.4027060866355896,
0.0394103117287159,
-0.02912948653101921,
-0.025731299072504044,
0.3644508123397827,
-0.17753033339977264,
0.26386165618896484,
-0.15542252361774445,
0.2872307300567627,
0.027291622012853622,
0.16047270596027374,
0.21987168490886688,
0.5499917268753052,
-0.1693301945924759,
-0.17794585227966309,
-0.07623349875211716,
-0.07281982898712158,
-0.06831668317317963,
0.05826018750667572,
0.1486583799123764,
-0.14891663193702698,
0.3247833251953125,
-0.028516877442598343,
0.47125443816185,
-0.488134503364563,
-0.015310385264456272,
-0.08798126876354218,
-0.10884120315313339,
0.3033909797668457,
-0.09879962354898453,
0.11652989685535431,
0.24114258587360382,
0.017299873754382133,
0.08729690313339233,
-0.11014286428689957,
0.3636821210384369,
0.22695063054561615,
0.12191769480705261,
-0.36820098757743835,
-0.4027220904827118,
0.23166893422603607,
-0.5078888535499573,
-0.4552852213382721,
0.567757785320282,
-0.02766471728682518,
0.20081718266010284,
-0.15344475209712982,
0.06044206768274307,
0.0807495266199112,
0.0480002835392952,
0.03484988957643509,
0.03607706353068352,
-0.019408708438277245,
-0.10792059451341629,
-0.47084999084472656,
-0.16076631844043732,
0.26079460978507996,
-0.20982731878757477,
0.15902237594127655,
-0.11612914502620697,
-0.32037875056266785,
0.13688905537128448,
0.31587323546409607,
-0.050239697098731995,
0.0395466573536396,
0.27443015575408936,
-0.1326722949743271,
0.2099824696779251,
0.03756990283727646,
0.17197613418102264,
0.23739281296730042,
0.20091962814331055,
0.08072681725025177,
-0.05354771763086319,
-0.07819294929504395,
-0.2605934739112854,
0.29239213466644287,
0.19453923404216766,
-0.3651401996612549,
0.38403865694999695,
0.22037038207054138,
0.0489811897277832,
-0.43722662329673767,
-0.004981373902410269,
-0.1904429942369461,
0.2824566066265106,
-0.44940364360809326,
-0.17492952942848206,
-0.3977605104446411,
0.10783595591783524,
-0.13616228103637695,
-0.021801410242915154,
0.07109589129686356,
0.043678682297468185,
0.3717917799949646,
-0.002707182429730892,
-0.08599740266799927,
0.27434518933296204,
0.1501094549894333,
0.1915658414363861,
-0.11042221635580063,
0.17134219408035278,
-0.009668605402112007,
0.19390670955181122,
-0.4710180163383484,
0.04524541273713112,
-0.16064676642417908,
-0.264465868473053,
0.15043796598911285,
-0.19257386028766632,
-0.10991508513689041,
-0.4143473207950592,
-0.07154678553342819,
0.14787307381629944,
-0.19166183471679688,
0.42321354150772095,
0.2326943576335907,
-0.04261329770088196,
-0.18604305386543274,
-0.1944318562746048,
-0.18875940144062042,
-0.031071631237864494,
-0.06713012605905533,
0.07144802063703537,
-0.1346399188041687,
0.04158444702625275,
-0.2561311423778534,
-0.8888221979141235,
0.10030180215835571,
-0.22046785056591034,
0.7185177206993103,
0.05993510037660599,
-0.04604898393154144,
0.5412356853485107,
0.28220465779304504,
0.2012912482023239,
0.07925325632095337,
0.18630707263946533,
-0.37138885259628296,
-0.12308019399642944,
0.0792587473988533,
0.029344765469431877,
-0.45730993151664734,
-0.2983143627643585,
0.19363878667354584,
0.15480294823646545,
0.2074100226163864,
-0.4953378438949585,
0.3497348129749298,
-0.10899475961923599,
-0.1306297928094864,
0.010287361219525337,
-0.1989099681377411,
0.29067954421043396,
-0.20380504429340363,
-0.11591526120901108,
-0.2554522156715393,
0.11759170144796371,
0.3896956443786621,
0.10179699212312698,
0.11271236091852188,
0.3398633897304535,
0.2160484492778778,
0.2003057450056076,
0.3506772518157959,
0.7158647775650024,
0.08281908184289932,
0.03901788219809532,
-0.12803448736667633,
0.4244532883167267,
-0.07285605370998383,
-0.052832331508398056,
0.16007718443870544,
0.059085242450237274,
-0.10871168226003647,
0.4583730399608612,
-0.08424351364374161,
-0.02551242522895336,
-0.029336873441934586,
-0.06426839530467987,
-0.09048974514007568,
-0.3277721107006073,
-0.022521227598190308,
-0.45803236961364746,
0.051297008991241455,
0.15355096757411957,
0.29638049006462097,
0.1280052661895752,
-0.11446704715490341,
-0.04528587684035301,
0.1441744863986969,
0.3194568455219269,
-0.12577563524246216,
-0.31509584188461304,
-0.3613080680370331,
-0.4153892993927002,
0.061277836561203,
0.18691794574260712,
0.5611057877540588,
-0.28809353709220886,
-0.20197267830371857,
0.22314439713954926,
0.10430210828781128,
0.4215117394924164,
-0.3380548655986786,
-0.04229290410876274,
0.12516406178474426,
0.2728697955608368,
-0.29762184619903564,
-0.07354503124952316,
-0.3262292444705963,
-0.2899867594242096,
0.27916112542152405,
0.09725252538919449,
-0.11770715564489365,
-0.13511934876441956,
0.06866124272346497,
0.05842122063040733,
0.016731219366192818,
-0.09900476038455963,
-0.03321949020028114,
0.030632635578513145,
-0.027279583737254143,
0.163777157664299,
0.17259745299816132,
-0.12480330467224121,
-0.49191197752952576,
-0.38490423560142517,
-0.05546538531780243,
0.18964281678199768,
0.5516812801361084,
0.022110460326075554,
0.28406113386154175,
-0.13086839020252228,
0.2439792901277542,
0.23573757708072662,
-0.2960311472415924,
0.2580794095993042,
0.19365936517715454,
0.11734925955533981,
-0.04140176251530647,
0.13703814148902893,
-0.12600739300251007,
0.3830222189426422,
0.3855096697807312,
-0.4349808692932129,
-0.018977593630552292,
-0.3385869562625885,
0.1840333193540573,
-0.2829491198062897,
0.3459421396255493,
0.4015248119831085,
-0.14415399730205536,
-0.12607918679714203,
-0.43605372309684753,
0.41818419098854065,
0.022923922166228294,
-0.1640130579471588,
0.45574915409088135,
0.16198112070560455,
-0.24609872698783875,
0.1927156299352646,
-0.15675197541713715,
0.8095895648002625,
0.18712909519672394,
0.2667507529258728,
0.33403801918029785,
0.11093416064977646,
0.16091923415660858,
-0.42877474427223206,
0.03568391129374504,
-0.005585090257227421,
0.06986446678638458,
-0.13060857355594635,
0.08970138430595398,
-0.16814225912094116,
0.3797646462917328,
-0.29194176197052,
-0.0783904567360878,
0.21016253530979156,
0.19728289544582367,
0.27749714255332947,
-0.07884641736745834,
-0.2581407129764557,
0.01863311417400837,
0.08974480628967285,
0.045830875635147095,
0.05874406173825264,
0.30579471588134766,
0.2888178527355194,
-0.12820416688919067,
0.009775987826287746,
-0.2652782201766968,
-0.6595226526260376,
0.020324548706412315,
-0.5996920466423035,
-0.09471011906862259,
0.14892038702964783,
-0.38634127378463745,
0.18383044004440308,
0.33974966406822205,
0.17645524442195892,
0.4337403476238251,
-0.4633074104785919,
-0.02679910883307457,
0.25110965967178345,
0.11319825053215027,
-0.024627981707453728,
-0.08301449567079544,
0.3481517434120178,
-0.08403269946575165,
-0.1434064358472824,
-0.07100506871938705,
0.02812054753303528,
0.16605646908283234,
-0.1545240581035614,
-0.04968537017703056,
-0.11856761574745178,
-0.3426312208175659,
0.04977000877261162,
0.09896128624677658,
0.1527886986732483,
-0.23698411881923676,
0.06800436228513718,
-0.10388155281543732,
-0.06512413173913956,
0.2742635905742645,
0.2779468595981598,
-0.5032384991645813,
-0.10895740240812302,
0.537933886051178,
-0.0835731029510498,
0.10776539891958237,
0.6408997774124146,
-0.18938583135604858,
-0.05129813030362129,
-0.27751949429512024,
0.016869839280843735,
0.2590852379798889,
-0.3368992805480957,
0.17191676795482635,
0.03212668001651764,
0.3006645739078522,
0.09660173207521439,
-0.04447344318032265,
0.04630471020936966,
-0.05899061635136604,
-0.25131234526634216,
-0.23893380165100098,
-0.08124800771474838,
0.12002337723970413,
0.025225717574357986,
0.2911803126335144,
0.027838818728923798,
0.3665982484817505,
0.07676040381193161,
-0.34703630208969116,
-0.2017674744129181,
-0.023725520819425583,
0.05575789138674736,
0.08048602938652039,
-0.04783482477068901,
0.027862709015607834,
0.11072716116905212,
0.054519083350896835,
0.01495871040970087,
0.10270854830741882,
-0.13355210423469543,
-0.08336614072322845,
-0.2990177571773529,
0.15111865103244781,
0.2011462301015854,
0.1130734384059906,
-0.015308148227632046,
0.06508343666791916,
-0.054260555654764175,
-0.06005212664604187,
0.07611546665430069,
0.380892276763916,
0.01741819456219673,
0.3620304763317108,
0.11884444952011108,
0.3976137042045593,
-0.09363581240177155,
-0.26238757371902466,
-0.035440634936094284,
-0.07757268846035004,
0.16449393332004547,
-0.062437158077955246,
-0.18508166074752808,
-0.0580996610224247,
-0.13248762488365173,
0.022096645087003708,
0.0893227607011795,
0.151860773563385,
-0.05466040223836899,
-0.289629191160202,
0.2135312706232071,
0.15491029620170593,
0.05066429451107979,
0.3179011940956116,
-0.15313830971717834,
-0.27086302638053894,
-0.11027614772319794,
0.07899048179388046,
-0.024608943611383438,
0.017690228298306465,
-0.33513519167900085,
-0.015275944955646992,
-0.025512956082820892,
0.0031258706003427505,
0.05548182502388954,
-0.3541378378868103,
0.36231714487075806,
-0.012500505894422531,
0.11213471740484238,
-0.5960306525230408,
0.11296429485082626,
0.3746998608112335,
0.06133996695280075,
-0.007918073795735836,
-0.25864267349243164,
-0.25296545028686523,
-0.0035198021214455366,
0.4860924482345581,
-0.24271820485591888,
0.27490460872650146,
-0.14758306741714478,
-0.026231074705719948,
0.25579455494880676,
-0.261529803276062,
-0.24777132272720337,
0.20552405714988708,
-0.4631270170211792,
0.16095562279224396,
0.10135552287101746,
0.40353327989578247,
-0.04632585123181343,
0.10066629946231842,
-0.21050317585468292,
-0.021032175049185753,
-0.14807413518428802,
-0.15863953530788422,
-0.35758039355278015,
-0.08875410258769989,
-0.13836480677127838,
-0.17162904143333435,
-0.08024276047945023,
-0.028585582971572876,
0.12382249534130096,
0.2392336130142212,
-0.2778199017047882,
-0.5319435000419617,
-0.24919746816158295,
-0.18340715765953064,
0.25141972303390503,
-0.11409881711006165,
0.35201412439346313,
0.10312899947166443,
-0.018660634756088257,
0.1629292368888855,
0.3187716603279114,
0.5043588876724243,
0.17908240854740143,
-0.10142122954130173,
0.12033823132514954,
-0.29984405636787415,
-0.0056222532875835896,
0.02088283561170101,
0.6239434480667114,
0.03267843648791313,
0.11734264343976974,
0.05098661407828331,
0.0518919862806797,
0.0013064364902675152,
0.04136094078421593,
-0.00849880836904049,
0.04003825783729553,
-0.6968817710876465,
0.4176643192768097,
0.0176084004342556,
0.23933860659599304,
-0.20144854485988617,
-0.04128597676753998,
-0.21955260634422302,
0.3418342173099518,
0.6031690239906311,
0.1864219307899475,
0.018609482795000076,
-0.09348351508378983,
0.05550796538591385,
-0.18102318048477173,
0.1212921291589737,
0.07660214602947235,
-0.004844893701374531,
-0.10684609413146973,
-0.019550763070583344,
-0.21396876871585846,
0.0899251401424408,
0.2652163505554199,
0.2187449187040329,
0.01500636711716652,
-0.16383621096611023,
0.06711503863334656,
0.061504289507865906,
-0.009866583161056042,
-0.11820504069328308,
-0.2539229393005371,
0.22443047165870667,
-0.1969873607158661,
0.01516187284141779,
-0.006939457263797522,
0.14061564207077026,
0.14958621561527252,
-0.07372315973043442,
-0.13266348838806152,
0.191030353307724,
-0.14544084668159485,
-0.057076580822467804,
-0.07594990730285645,
0.17733639478683472,
0.3487192988395691,
0.06860228627920151,
0.09640734642744064,
0.359950453042984,
-0.09155578166246414,
0.07731146365404129,
-0.4108832776546478,
-0.14205186069011688,
-0.2299596071243286,
0.29942330718040466,
0.04981208220124245,
0.3389115035533905,
0.006641853135079145,
-0.3442060649394989,
0.13541504740715027,
0.25973156094551086,
0.3330134153366089,
-0.16282786428928375,
-0.14009781181812286,
0.047731850296258926,
-0.32309162616729736,
0.21396774053573608,
0.00005599336509476416,
0.2621961534023285,
0.043066442012786865,
0.16071416437625885,
-0.512168824672699,
-0.9930139183998108,
0.625044047832489,
-0.7181702256202698,
-0.2236548215150833,
-0.14277762174606323,
0.2892628610134125,
0.3226872384548187,
-0.10158288478851318,
-0.5634549856185913,
-0.07286859303712845,
0.4693160057067871,
-0.0401696041226387,
-0.09203130006790161,
0.11232142150402069,
0.1479109823703766,
0.31001314520835876,
-0.16443325579166412,
0.9622837901115417,
0.3237745463848114,
-0.1628980040550232,
0.18723979592323303,
-0.4706275463104248
] |
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.03739603981375694,
-0.02138594537973404,
0.14961285889148712,
-0.0189274363219738,
-0.07773527503013611,
0.22454902529716492,
0.36217841506004333,
-0.4294893741607666,
0.1633363664150238,
0.15252938866615295,
0.2624570429325104,
-0.43249067664146423,
-0.020130518823862076,
-0.07111965864896774,
0.2396368682384491,
-0.12686210870742798,
0.25981467962265015,
-0.332984983921051,
-0.023115374147892,
0.08259598910808563,
0.24257633090019226,
-0.029656806960701942,
0.02836143970489502,
-0.0865972638130188,
-0.014304457232356071,
0.20087748765945435,
-0.09348531812429428,
-0.3122858703136444,
-0.6014058589935303,
0.2304871529340744,
0.27640727162361145,
0.07687503099441528,
0.16537611186504364,
-0.00012745545245707035,
0.1065068244934082,
0.165228933095932,
-0.02306024730205536,
-0.49072152376174927,
-0.1459859162569046,
-0.1808251440525055,
0.11329268664121628,
0.011158091016113758,
-0.0032407206017524004,
0.12947304546833038,
-0.2341342568397522,
0.20617122948169708,
-0.19666814804077148,
0.3206735849380493,
0.5292422771453857,
0.004974265117198229,
0.23936760425567627,
-0.12274832278490067,
0.11940993368625641,
0.35484352707862854,
-0.10677260905504227,
-0.056146737188100815,
0.07665655016899109,
0.03786657378077507,
0.2733805179595947,
0.21346040070056915,
0.3169708847999573,
0.08640562742948532,
-0.1138322502374649,
-0.29079514741897583,
-0.19388215243816376,
-0.1545201689004898,
-0.23830674588680267,
-0.21708492934703827,
0.32883474230766296,
0.7538297772407532,
-0.31502458453178406,
-0.6087887287139893,
-0.34010303020477295,
0.1912582665681839,
-0.1430550366640091,
0.39232146739959717,
-0.19024507701396942,
-0.257382333278656,
0.39083898067474365,
-0.6390117406845093,
-0.20491015911102295,
-0.3079327642917633,
0.12957227230072021,
0.015354265458881855,
-0.11475719511508942,
0.022579476237297058,
0.1235881820321083,
-0.17346075177192688,
0.06426665931940079,
0.1816408336162567,
0.11083509773015976,
0.03872982785105705,
-0.010974711738526821,
-0.1475500911474228,
-0.3412715494632721,
0.042394183576107025,
-0.18611258268356323,
0.042102668434381485,
0.4260539412498474,
0.5204823613166809,
0.06429048627614975,
-0.5445073843002319,
-0.07751479744911194,
0.17376483976840973,
0.24078676104545593,
-0.02525745891034603,
-0.2616625428199768,
0.15693028271198273,
0.0426027774810791,
0.19033178687095642,
0.17482829093933105,
0.023703651502728462,
-0.34054064750671387,
-0.12930135428905487,
0.11949269473552704,
0.3347742557525635,
-0.1888239085674286,
-0.5020067691802979,
0.07760586589574814,
-0.45458149909973145,
0.18543733656406403,
-0.07164088636636734,
0.12072447687387466,
-0.22419492900371552,
0.41960540413856506,
0.1554587036371231,
0.06409851461648941,
-0.13485242426395416,
-0.4040718078613281,
0.18832148611545563,
-0.15597157180309296,
0.19084389507770538,
-0.049908269196748734,
0.29601794481277466,
-0.37229791283607483,
0.08815990388393402,
0.1427764594554901,
0.18106350302696228,
-0.12146444618701935,
-0.1279870867729187,
0.10105711221694946,
0.17803405225276947,
0.21321645379066467,
-0.1896713525056839,
0.17230041325092316,
-0.08058828860521317,
0.08845645934343338,
-0.017210716381669044,
-0.019968047738075256,
-0.17412559688091278,
-0.1103576123714447,
0.34848204255104065,
-0.019380513578653336,
-0.22609633207321167,
-0.206711083650589,
-0.002878498751670122,
0.1341746747493744,
-0.03540082648396492,
-0.26855432987213135,
0.14787571132183075,
-0.11580480635166168,
-0.3188742995262146,
-0.015279595740139484,
0.015730276703834534,
0.21443966031074524,
-0.6616703271865845,
-0.13491173088550568,
0.18249209225177765,
-0.009823443368077278,
-0.08027255535125732,
0.25918808579444885,
-0.01824859157204628,
0.13359835743904114,
-0.021425137296319008,
0.06138481944799423,
-0.04310699552297592,
-0.4288678467273712,
-0.31873226165771484,
0.18909324705600739,
-0.27187058329582214,
0.2365470975637436,
0.17325927317142487,
-0.23176652193069458,
0.3257885277271271,
-0.17452062666416168,
0.17625872790813446,
-0.2554751932621002,
0.17862190306186676,
-0.17102836072444916,
-0.4389975666999817,
-0.45111528038978577,
0.031019385904073715,
-0.0533377006649971,
0.06812044233083725,
0.06481897830963135,
0.05645307898521423,
0.0423978753387928,
0.34881672263145447,
0.08292911946773529,
0.011816348880529404,
-0.03380246087908745,
0.20004625618457794,
-0.08436442166566849,
0.018615297973155975,
-0.22436709702014923,
0.08376692980527878,
0.208104208111763,
0.07658132165670395,
0.1705433875322342,
0.42478513717651367,
-0.17888028919696808,
-0.24761410057544708,
0.03832343965768814,
0.1872696578502655,
0.12628532946109772,
-0.03958769142627716,
0.22733022272586823,
-0.08251790702342987,
0.35044118762016296,
-0.2704235315322876,
0.4691349267959595,
-0.4019199013710022,
0.03728434070944786,
-0.05362807214260101,
-0.16358409821987152,
0.2474769800901413,
0.08259118348360062,
0.10191799700260162,
-0.03941222280263901,
-0.10327514261007309,
-0.0926559641957283,
-0.024524694308638573,
0.518794596195221,
0.15306439995765686,
0.2767794728279114,
-0.1384766697883606,
-0.2536574900150299,
0.21437056362628937,
-0.261827677488327,
-0.3397198021411896,
0.5486401915550232,
-0.09721934050321579,
0.4484134912490845,
-0.025512641295790672,
0.19515013694763184,
0.14047251641750336,
-0.04030884429812431,
0.07058780640363693,
-0.07319753617048264,
-0.021308403462171555,
-0.009351367130875587,
-0.5304046273231506,
-0.17360781133174896,
0.1465591937303543,
-0.21342769265174866,
0.14177805185317993,
-0.14603902399539948,
-0.2046634405851364,
-0.08465760201215744,
0.23014456033706665,
-0.021298276260495186,
0.05920865759253502,
0.15656673908233643,
0.08325207233428955,
0.211786687374115,
0.05535571277141571,
0.31839317083358765,
0.34749484062194824,
0.08310975134372711,
0.02466166950762272,
0.021408822387456894,
-0.2565382421016693,
-0.1302020102739334,
0.27682074904441833,
0.21888916194438934,
-0.3133852779865265,
0.3226567804813385,
0.20633280277252197,
0.03175397217273712,
-0.4395207464694977,
0.03197207674384117,
-0.04095397889614105,
0.036724358797073364,
-0.6262534856796265,
-0.009059724397957325,
-0.5513138771057129,
0.16901680827140808,
-0.3306777775287628,
-0.08182653039693832,
-0.16236354410648346,
0.004768380895256996,
0.5723299384117126,
0.1694377213716507,
-0.08129166811704636,
0.21946734189987183,
-0.0876331776380539,
0.36800384521484375,
-0.19863899052143097,
-0.06180188059806824,
0.03823793679475784,
0.2359500676393509,
-0.41492563486099243,
0.002801999682560563,
0.0273971538990736,
-0.34622979164123535,
0.24148890376091003,
-0.41488102078437805,
-0.3009610176086426,
-0.23227931559085846,
-0.06792039424180984,
0.1891995370388031,
0.06539423018693924,
0.24021123349666595,
0.345729798078537,
0.12701012194156647,
-0.014629656448960304,
-0.041871875524520874,
-0.2779378890991211,
0.048467379063367844,
-0.11599677056074142,
-0.10514958202838898,
0.13449729979038239,
0.09828387200832367,
-0.28272488713264465,
-0.8775432705879211,
0.08410213887691498,
-0.16890907287597656,
0.4604315757751465,
0.0795200765132904,
0.18564337491989136,
0.3558036684989929,
0.34620416164398193,
0.10591516643762589,
-0.04413318261504173,
0.15444380044937134,
-0.08820769190788269,
-0.2302584946155548,
0.09353730827569962,
0.0836201086640358,
-0.21862183511257172,
-0.005752074532210827,
0.28069886565208435,
0.05272300913929939,
0.3915773928165436,
-0.4168848693370819,
0.2677837014198303,
0.2194799780845642,
-0.1391705721616745,
0.0019316199468448758,
-0.36801856756210327,
0.5466492176055908,
-0.08344078063964844,
0.015695953741669655,
-0.23772892355918884,
0.2056250274181366,
0.13749225437641144,
0.12257737666368484,
0.2549116313457489,
0.32310938835144043,
0.28042280673980713,
0.2665032744407654,
0.5264001488685608,
0.3263052999973297,
-0.21030333638191223,
0.2247069776058197,
-0.12281692773103714,
0.4726439118385315,
0.041154101490974426,
0.09224210679531097,
-0.06510743498802185,
-0.09600192308425903,
-0.18241608142852783,
0.3834356963634491,
-0.03641126677393913,
-0.07709604501724243,
-0.18889813125133514,
0.2259596884250641,
-0.27499085664749146,
-0.2729184031486511,
0.04257373511791229,
-0.39524364471435547,
0.13605767488479614,
0.2876463234424591,
0.35825517773628235,
0.10156272351741791,
0.03223658725619316,
-0.03198918700218201,
0.2270752638578415,
0.33973217010498047,
-0.009860547259449959,
-0.20522180199623108,
-0.08765148371458054,
-0.20948763191699982,
0.2032211273908615,
0.4069233536720276,
0.6541625261306763,
-0.1864345371723175,
-0.08865860849618912,
0.12884853780269623,
-0.019111067056655884,
0.2862902283668518,
-0.4888170659542084,
-0.04568939656019211,
-0.07928337156772614,
0.3533954322338104,
-0.13272835314273834,
-0.12948408722877502,
-0.13578517735004425,
-0.39848649501800537,
0.11708329617977142,
0.07943373918533325,
-0.12472131848335266,
-0.03305794671177864,
-0.03154144436120987,
0.12648138403892517,
-0.10874973237514496,
0.1763422191143036,
-0.14731045067310333,
-0.01872403919696808,
-0.13511496782302856,
-0.00891260989010334,
0.08401565998792648,
-0.27807915210723877,
-0.41680508852005005,
-0.07251705229282379,
-0.08884309232234955,
0.26816633343696594,
0.38959643244743347,
0.16215085983276367,
0.2874223589897156,
-0.1167987659573555,
0.023920364677906036,
0.0930401012301445,
0.09800942242145538,
0.3213096261024475,
0.2371065318584442,
0.1738170087337494,
-0.18433837592601776,
0.0630604550242424,
0.08204886317253113,
0.10178321599960327,
0.541607141494751,
-0.3363022804260254,
-0.11839941889047623,
-0.14562195539474487,
0.09618893265724182,
-0.2815694510936737,
0.39414557814598083,
0.5397123098373413,
-0.2854296565055847,
-0.3250676095485687,
-0.4289255142211914,
0.42464861273765564,
-0.09044796228408813,
-0.2281329482793808,
0.3700992465019226,
0.10165255516767502,
-0.3230116665363312,
0.15113690495491028,
0.027633825317025185,
0.9220038652420044,
0.20887282490730286,
0.20676296949386597,
0.18591775000095367,
-0.12466596812009811,
0.4331417977809906,
-0.5090643763542175,
0.15221156179904938,
0.11980843544006348,
0.010109353810548782,
-0.36688733100891113,
0.10920104384422302,
0.0915946364402771,
0.43997079133987427,
-0.17496004700660706,
0.048519063740968704,
0.1938178539276123,
0.31994664669036865,
0.2437155544757843,
-0.022406917065382004,
-0.40074288845062256,
0.0955585315823555,
-0.14481236040592194,
-0.00006273244798649102,
0.10246653109788895,
0.2897038757801056,
0.02654196508228779,
-0.09099138528108597,
-0.04982895031571388,
-0.41636034846305847,
-0.7078108191490173,
-0.22666549682617188,
-0.41405776143074036,
-0.1478799730539322,
-0.044511012732982635,
-0.11906107515096664,
0.11901075392961502,
0.2762695848941803,
0.20149262249469757,
0.24185121059417725,
-0.37732964754104614,
0.020052190870046616,
0.014465320855379105,
0.07429472357034683,
0.10238751024007797,
-0.06534537672996521,
0.3629048764705658,
-0.07452072203159332,
0.041326168924570084,
0.053951263427734375,
-0.0798187330365181,
-0.06716115772724152,
-0.1024448573589325,
-0.04558625444769859,
-0.05519681051373482,
-0.3396153450012207,
0.1325659453868866,
-0.10264410078525543,
0.05456090718507767,
-0.19854936003684998,
-0.00925556942820549,
-0.2127404659986496,
0.11213517189025879,
0.18858198821544647,
0.08923923969268799,
-0.43637406826019287,
-0.09784921258687973,
0.6311434507369995,
-0.28869208693504333,
0.12894724309444427,
0.4841497242450714,
-0.3160092234611511,
-0.03331657499074936,
-0.19413648545742035,
-0.021366603672504425,
-0.19929686188697815,
-0.5194510817527771,
0.014784726314246655,
-0.04460342228412628,
0.08007579296827316,
-0.12702246010303497,
0.0733654722571373,
0.18021677434444427,
0.17705924808979034,
-0.1799430102109909,
-0.3772442638874054,
0.04200272634625435,
0.2579893171787262,
0.24474799633026123,
0.34691911935806274,
0.09963805973529816,
0.2187814861536026,
-0.004220882430672646,
-0.5193970799446106,
-0.10863865166902542,
-0.10017827898263931,
0.11440391838550568,
0.00744418753311038,
0.058074284344911575,
0.349564790725708,
0.07146863639354706,
-0.25467005372047424,
-0.14409933984279633,
0.15392445027828217,
-0.149736687541008,
0.022460319101810455,
-0.23737172782421112,
0.22851631045341492,
0.04685749486088753,
0.14544443786144257,
-0.0425269678235054,
-0.01644555851817131,
-0.030559692531824112,
0.04481454938650131,
-0.08867405354976654,
0.35844725370407104,
0.10184147208929062,
0.19138135015964508,
0.14217673242092133,
0.4053513705730438,
-0.24330347776412964,
-0.06507115811109543,
0.06824704259634018,
0.19817259907722473,
0.12253805994987488,
0.225486621260643,
-0.20100907981395721,
-0.07133158296346664,
-0.16644948720932007,
0.25832444429397583,
0.22472503781318665,
0.05033441632986069,
0.05949610844254494,
-0.13971540331840515,
0.24661479890346527,
0.0786280483007431,
0.3503727912902832,
0.6881960034370422,
-0.11853542923927307,
-0.4578859806060791,
0.18320098519325256,
-0.027099009603261948,
-0.13172397017478943,
-0.02542000822722912,
-0.3005431294441223,
0.046585626900196075,
-0.16275571286678314,
0.127300426363945,
0.014953991398215294,
-0.3517831563949585,
0.4608774781227112,
0.12135789543390274,
0.14003589749336243,
-0.42946362495422363,
0.18580813705921173,
0.6682866811752319,
0.0034414695110172033,
0.21896986663341522,
-0.4196909964084625,
-0.3038710653781891,
0.1169406995177269,
0.3170003294944763,
-0.3769646883010864,
0.26903244853019714,
-0.17610085010528564,
-0.0776471197605133,
0.00457635847851634,
-0.1181805357336998,
-0.33012595772743225,
0.2845059633255005,
-0.058605555444955826,
0.47382763028144836,
0.5105352401733398,
0.5142280459403992,
-0.017204130068421364,
-0.09095622599124908,
-0.45963355898857117,
0.09346742182970047,
0.08788774907588959,
-0.19864921271800995,
-0.5646132826805115,
-0.2639584243297577,
-0.14811019599437714,
-0.0202090535312891,
-0.16724804043769836,
0.11140567809343338,
0.21923908591270447,
0.2884191572666168,
-0.2779071629047394,
-0.5320424437522888,
-0.21588359773159027,
-0.23740217089653015,
0.317085325717926,
-0.2049434632062912,
0.270193487405777,
0.20360594987869263,
0.0774114802479744,
0.2706264853477478,
0.3161216974258423,
0.40583375096321106,
0.09155824035406113,
0.00799383595585823,
0.026318229734897614,
-0.24949753284454346,
0.22777743637561798,
0.02649804763495922,
0.4185412526130676,
-0.002292104298248887,
0.1665533483028412,
0.3360881209373474,
-0.029655521735548973,
0.05638505890965462,
0.1897275298833847,
-0.3109249472618103,
0.01603003777563572,
-0.8132583498954773,
0.367828905582428,
-0.019312163814902306,
0.2532852292060852,
-0.2053135335445404,
0.03597225248813629,
-0.037747908383607864,
0.36392512917518616,
0.3746536374092102,
0.20767633616924286,
0.07155492901802063,
-0.001427441486157477,
-0.001318877562880516,
0.04279588907957077,
0.18326403200626373,
0.31724610924720764,
-0.05974109098315239,
0.011521562933921814,
-0.017708808183670044,
-0.5737124681472778,
0.04231663793325424,
0.05103769153356552,
0.06254564225673676,
-0.010965469293296337,
-0.27958446741104126,
0.22456100583076477,
0.3119564950466156,
0.1439359486103058,
-0.03900434449315071,
-0.27612999081611633,
0.35550880432128906,
-0.14906246960163116,
0.06748306006193161,
-0.033601682633161545,
0.20493951439857483,
0.09367921203374863,
-0.4758705794811249,
0.12594562768936157,
0.0696859359741211,
-0.23212023079395294,
-0.0411871075630188,
-0.02392764389514923,
0.15239262580871582,
0.11860068887472153,
0.20390506088733673,
0.041762541979551315,
0.35597947239875793,
-0.06772907078266144,
-0.11481400579214096,
-0.5655720233917236,
-0.09749504923820496,
-0.24597378075122833,
0.3128036856651306,
-0.13745950162410736,
0.30274954438209534,
-0.14506258070468903,
0.04408395662903786,
-0.007792525924742222,
0.3880825638771057,
0.35656219720840454,
0.0990409180521965,
-0.1623942106962204,
-0.2619991898536682,
-0.3227410614490509,
0.13922463357448578,
0.2651120126247406,
0.24506531655788422,
-0.031061474233865738,
0.11291606724262238,
-0.4395875036716461,
-0.7549790740013123,
0.44633927941322327,
-0.5544978380203247,
-0.0952448919415474,
0.016279151663184166,
0.3003905117511749,
0.35469046235084534,
-0.08896277844905853,
-0.5038309097290039,
-0.10517752170562744,
0.3698123097419739,
0.06514578312635422,
-0.04761239141225815,
0.0583503358066082,
0.11366866528987885,
0.054623786360025406,
-0.02786085568368435,
1.0447938442230225,
0.21618230640888214,
-0.17629773914813995,
0.10371324419975281,
-0.43450480699539185
] |
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.3742081820964813,
0.1478581726551056,
0.08840718865394592,
0.0458865724503994,
0.28045302629470825,
0.12814880907535553,
0.15311108529567719,
0.37765195965766907,
-0.24275599420070648,
0.2011214941740036,
0.30520057678222656,
0.4177045226097107,
-0.1865009218454361,
0.11496050655841827,
-0.1479029655456543,
0.009955205954611301,
0.05309228599071503,
0.25207939743995667,
0.12918119132518768,
0.006046693306416273,
-0.10626416653394699,
0.17224447429180145,
-0.19424939155578613,
0.2815803587436676,
-0.2942170202732086,
0.11772787570953369,
-0.04198138043284416,
-0.04793957993388176,
-0.12908244132995605,
-0.5930625200271606,
0.33762168884277344,
-0.1589791625738144,
0.24371537566184998,
0.33999091386795044,
-0.0001267467305297032,
0.11141281574964523,
0.40630844235420227,
-0.008188106119632721,
-0.25496727228164673,
-0.5021973252296448,
-0.1217932254076004,
-0.05364786833524704,
0.36649471521377563,
-0.08176634460687637,
0.10271163284778595,
-0.7000571489334106,
0.013413429260253906,
0.04993536323308945,
-0.16594728827476501,
0.3297194242477417,
0.13600176572799683,
0.06373389810323715,
0.26169174909591675,
-0.09752002358436584,
0.22518660128116608,
0.06212686374783516,
-0.00796754751354456,
0.4649409055709839,
0.07230997085571289,
-0.11018813401460648,
0.23560021817684174,
-0.08482427150011063,
0.06871281564235687,
-0.05136901140213013,
0.09923429787158966,
0.18255457282066345,
0.2629997134208679,
-0.16271033883094788,
0.19890330731868744,
0.03185813128948212,
0.5882599353790283,
-0.6263429522514343,
-0.4298144578933716,
-0.01766037940979004,
0.22020746767520905,
-0.26078343391418457,
0.22628559172153473,
0.2429373562335968,
-0.10094092041254044,
0.1628728061914444,
-0.057002224028110504,
-0.12062066048383713,
-0.0635356456041336,
-0.01648246869444847,
-0.42225322127342224,
0.3365805447101593,
0.1881289929151535,
0.14030873775482178,
-0.11323943734169006,
-0.00933008175343275,
0.0025083606597036123,
-0.10973343998193741,
0.10199172049760818,
-0.07801545411348343,
-0.2746739387512207,
-0.014432007446885109,
-0.07753496617078781,
0.16330939531326294,
0.1757594347000122,
0.20840875804424286,
0.0030337844509631395,
-0.27921199798583984,
0.2704054117202759,
0.08606018871068954,
0.10359566658735275,
0.12690795958042145,
-0.020438436418771744,
0.15629269182682037,
0.10058417916297913,
-0.10707692801952362,
0.06900351494550705,
-0.003141616005450487,
-0.058131176978349686,
-0.056824941188097,
0.3815543055534363,
0.028341449797153473,
0.7426703572273254,
-0.23551161587238312,
-0.20667076110839844,
0.17393004894256592,
-0.3724196255207062,
-0.17932522296905518,
-0.2660045325756073,
0.21872402727603912,
0.030557233840227127,
0.36071649193763733,
-0.18492178618907928,
0.3320738971233368,
-0.09560557454824448,
-0.2356075644493103,
-0.11359501630067825,
0.14577265083789825,
0.0022749670315533876,
-0.1549616903066635,
0.02687131054699421,
-0.3101933002471924,
-0.08789611607789993,
0.39052408933639526,
0.0014730315888300538,
0.12603123486042023,
-0.14159895479679108,
-0.054173827171325684,
-0.153624027967453,
0.47547638416290283,
-0.2805730104446411,
0.2540760636329651,
0.13056612014770508,
-0.4681428074836731,
-0.3429702818393707,
0.21160997450351715,
-0.20337770879268646,
-0.40394851565361023,
-0.4072827696800232,
0.12810862064361572,
-0.1272275298833847,
-0.18097572028636932,
-0.14971862733364105,
-0.005262367427349091,
0.23063455522060394,
-0.15096932649612427,
-0.014637320302426815,
-0.6668523550033569,
0.10322301834821701,
-0.31990453600883484,
0.24670232832431793,
0.154376819729805,
-0.6335013508796692,
0.008750800043344498,
0.17047910392284393,
-0.19002199172973633,
0.1658162921667099,
-0.11979710310697556,
0.005514770280569792,
-0.1398751586675644,
0.02903868816792965,
0.04766327515244484,
0.34689417481422424,
-0.1955854445695877,
-0.3685944974422455,
0.07286828756332397,
0.05808328464627266,
-0.0002384266263106838,
0.2594132125377655,
-0.31390276551246643,
0.047422848641872406,
0.1808192878961563,
-0.1679069846868515,
0.08111046254634857,
0.0019100159406661987,
0.01607031561434269,
-0.17401188611984253,
-0.04215686768293381,
0.38285401463508606,
0.27839580178260803,
0.1499214768409729,
-0.1601753830909729,
0.029361627995967865,
-0.2005852907896042,
0.1286724954843521,
-0.08686085790395737,
0.0851055160164833,
0.026491647586226463,
0.4046373665332794,
-0.14303970336914062,
0.03394698351621628,
-0.21758520603179932,
-0.31970053911209106,
0.18671192228794098,
0.06987383216619492,
0.02653246372938156,
-0.3560790717601776,
-0.18485930562019348,
-0.17959092557430267,
0.10886520892381668,
-0.10849004238843918,
-0.02832825295627117,
0.005802195053547621,
0.3832252025604248,
0.07114611566066742,
0.11154824495315552,
-0.29748228192329407,
0.24753761291503906,
0.024240698665380478,
0.17813539505004883,
-0.021211715415120125,
0.4727589190006256,
-0.4082588851451874,
-0.31531232595443726,
0.09022575616836548,
0.04570639878511429,
0.10286205261945724,
0.039166804403066635,
-0.0002058112295344472,
0.2879416346549988,
-0.0028904753271490335,
0.058465536683797836,
-0.02767629735171795,
0.22501391172409058,
0.013864901848137379,
-0.1725018322467804,
-0.192661315202713,
0.2565888464450836,
0.0011453641345724463,
0.40098264813423157,
0.11842470616102219,
0.371597021818161,
0.5518636703491211,
0.30029842257499695,
-0.023460891097784042,
0.09365016967058182,
-0.15085236728191376,
-0.0168526042252779,
0.10855693370103836,
-0.08392013609409332,
0.039351966232061386,
-0.10692933201789856,
0.21006649732589722,
-0.007699920795857906,
-0.5035151243209839,
0.08401936292648315,
0.383317768573761,
-0.05956029146909714,
0.14520256221294403,
0.14363053441047668,
-0.26090529561042786,
0.048430267721414566,
0.03393293544650078,
0.13457763195037842,
0.2741987705230713,
0.1518544703722,
-0.12465644627809525,
0.1309269815683365,
-0.31881654262542725,
0.1648004949092865,
0.18283995985984802,
0.10894753783941269,
0.1759980171918869,
0.18312014639377594,
0.2829296886920929,
0.08661849051713943,
-0.056707415729761124,
-0.3240143954753876,
0.13876833021640778,
0.3523798882961273,
-0.4344465136528015,
0.25300806760787964,
-0.3444134294986725,
0.2502819001674652,
-0.16690954566001892,
-0.18621070683002472,
-0.41476038098335266,
-0.24293874204158783,
-0.030438313260674477,
0.09636929631233215,
0.10050369054079056,
0.23970112204551697,
-0.3122071623802185,
-0.1296316683292389,
0.04628254845738411,
-0.39881208539009094,
-0.21866846084594727,
-0.17585736513137817,
-0.44862914085388184,
-0.019090833142399788,
0.20133693516254425,
-0.39512497186660767,
0.03965185582637787,
-0.21996314823627472,
-0.21378637850284576,
-0.3060606122016907,
-0.18519717454910278,
0.08338803797960281,
-0.23932835459709167,
0.29921025037765503,
0.25972986221313477,
-0.038241736590862274,
-0.047348931431770325,
-0.09889212250709534,
0.3235456049442291,
-0.3321585953235626,
-0.28475865721702576,
0.10064614564180374,
-0.09428587555885315,
0.03566056862473488,
-0.060392655432224274,
-0.49700477719306946,
-0.357511043548584,
-0.14624807238578796,
0.01242407038807869,
0.04109968617558479,
0.15556932985782623,
-0.062472663819789886,
0.23095166683197021,
-0.12492505460977554,
-0.14891237020492554,
-0.010573525913059711,
-0.027686629444360733,
0.003966592252254486,
0.23732520639896393,
0.006279996130615473,
-0.2969488799571991,
-0.05115535855293274,
0.0064250389114022255,
0.0896269902586937,
0.03670281171798706,
-0.31444069743156433,
-0.14395059645175934,
0.0547298938035965,
0.538925290107727,
-0.32073700428009033,
0.019200343638658524,
0.2970770299434662,
0.2694782316684723,
-0.03679555654525757,
0.06308899819850922,
-0.17872421443462372,
-0.18927976489067078,
0.1446790248155594,
0.1415683776140213,
0.17441338300704956,
0.24109219014644623,
-0.08494823426008224,
0.5790001749992371,
-0.07034275680780411,
-0.2986297011375427,
0.25100085139274597,
-0.29209089279174805,
0.34119388461112976,
0.06305354088544846,
-0.17983019351959229,
-0.08869793266057968,
-0.048329297453165054,
0.015639975666999817,
0.2517926096916199,
-0.21847978234291077,
-0.14967502653598785,
-0.12394267320632935,
-0.25395336747169495,
-0.2212260514497757,
-0.04261007532477379,
-0.06121145561337471,
0.035998597741127014,
0.24408677220344543,
-0.05510824918746948,
0.029861101880669594,
-0.040375180542469025,
-0.05459703132510185,
0.14564479887485504,
0.3016494810581207,
-0.21570834517478943,
0.10174933820962906,
-0.18308570981025696,
-0.1527075171470642,
-0.18033301830291748,
0.3837950825691223,
0.0439700223505497,
0.4377392530441284,
0.15525440871715546,
-0.19997195899486542,
0.08330783993005753,
-0.1641709953546524,
0.5928213000297546,
-0.11870601773262024,
0.12393920123577118,
0.15853995084762573,
-0.13711512088775635,
-0.39554208517074585,
-0.4143475890159607,
-0.46182283759117126,
0.08394217491149902,
0.004962449427694082,
0.19732850790023804,
-0.29529011249542236,
-0.1378476321697235,
0.2305312156677246,
0.1844812035560608,
0.0506925992667675,
-0.026823928579688072,
-0.41646695137023926,
-0.06581658869981766,
-0.16919289529323578,
0.21112270653247833,
-0.12696261703968048,
0.3692868649959564,
-0.16570830345153809,
0.47812122106552124,
-0.14052465558052063,
-0.17769566178321838,
0.1654667854309082,
0.22072899341583252,
0.33840370178222656,
-0.3253706395626068,
-0.0032505725976079702,
-0.1957056224346161,
0.224289208650589,
0.6268395185470581,
0.5107084512710571,
0.32667917013168335,
-0.3425287902355194,
0.215790256857872,
0.2769278883934021,
0.5334734916687012,
-0.019867533817887306,
-0.4827551543712616,
-0.09585971385240555,
-0.24713554978370667,
0.06028900668025017,
-0.06590292602777481,
-0.032102420926094055,
0.559326171875,
-0.10960972309112549,
-0.5021070241928101,
-0.02020195685327053,
0.569821834564209,
0.189466655254364,
-0.07937053591012955,
0.09573403000831604,
0.37784215807914734,
-0.15573787689208984,
0.36029958724975586,
-0.13346920907497406,
0.7824109196662903,
0.01754576712846756,
0.2209126204252243,
0.11558255553245544,
-0.4412604868412018,
0.28626182675361633,
-0.06137840449810028,
0.09111903607845306,
-0.5176579356193542,
-0.33662304282188416,
-0.14645269513130188,
-0.239501491189003,
0.13034377992153168,
0.014563596807420254,
-0.20682848989963531,
0.2747062146663666,
0.04758942499756813,
0.4116242229938507,
0.3609580993652344,
0.31710514426231384,
-0.07195117324590683,
0.2720511555671692,
-0.2521827816963196,
-0.021756332367658615,
-0.05935226008296013,
0.09170541167259216,
0.1281193494796753,
0.05869549140334129,
-0.22393770515918732,
-0.42487624287605286,
-0.3383878469467163,
0.058469388633966446,
-0.2342778891324997,
-0.04213744401931763,
0.45089519023895264,
-0.5700245499610901,
0.11825951188802719,
0.04261620715260506,
-0.11736375838518143,
-0.03296329081058502,
-0.15812742710113525,
-0.01644032821059227,
-0.06273269653320312,
0.18405510485172272,
0.14150497317314148,
0.07661443203687668,
0.422201931476593,
-0.011286048218607903,
-0.3214787244796753,
0.29161930084228516,
-0.03923758864402771,
0.019097454845905304,
-0.051204875111579895,
-0.019828548654913902,
0.19738276302814484,
-0.27409037947654724,
0.19485491514205933,
-0.5745176076889038,
0.2753388583660126,
-0.22365958988666534,
0.018647629767656326,
-0.1024596244096756,
0.0007488330593332648,
-0.01631239987909794,
0.11780362576246262,
-0.2898905873298645,
-0.21257361769676208,
0.3666999936103821,
0.05284963920712471,
0.28231269121170044,
0.5269954800605774,
-0.0676543116569519,
-0.08177265524864197,
-0.04540630057454109,
0.052881453186273575,
0.25417402386665344,
-0.39576539397239685,
-0.04717065766453743,
-0.05437402054667473,
0.03274904564023018,
0.0790853202342987,
0.19848044216632843,
0.22373241186141968,
0.2555370330810547,
0.02011934109032154,
-0.5458890199661255,
-0.05526062846183777,
0.17430202662944794,
-0.1844223141670227,
0.04644240438938141,
0.20215819776058197,
0.2829449474811554,
0.16649222373962402,
-0.20048454403877258,
-0.18500714004039764,
-0.004421569872647524,
-0.04311169683933258,
0.1398642659187317,
-0.1864708513021469,
0.15304216742515564,
0.13420705497264862,
-0.03256227448582649,
0.11823005229234695,
-0.2170257419347763,
-0.07061699777841568,
-0.07409871369600296,
-0.2204395979642868,
0.19820286333560944,
0.06247006356716156,
0.2393823266029358,
0.1128433346748352,
0.08842627704143524,
-0.012073659338057041,
-0.02647574432194233,
0.10663644969463348,
0.17856095731258392,
-0.22723622620105743,
0.3060310482978821,
0.4929543435573578,
-0.2622911334037781,
-0.3427833318710327,
-0.038649410009384155,
-0.15297377109527588,
-0.1157718375325203,
0.15556827187538147,
0.44990038871765137,
-0.16310732066631317,
0.18110132217407227,
-0.298566997051239,
0.04007473960518837,
-0.23881761729717255,
-0.03957736864686012,
0.18048547208309174,
-0.4256383180618286,
-0.23968109488487244,
-0.04338342696428299,
0.44853055477142334,
0.22216001152992249,
-0.23037533462047577,
-0.09805906563997269,
0.11732743680477142,
0.009072222746908665,
-0.4490545094013214,
0.03561478108167648,
0.2640773057937622,
0.15501604974269867,
-0.0410303957760334,
0.4426921606063843,
0.44890961050987244,
-0.2873218357563019,
-0.09743575751781464,
0.17744030058383942,
0.49017980694770813,
0.25592705607414246,
0.1621129810810089,
0.5159205794334412,
-0.04389379918575287,
0.15822218358516693,
0.49910300970077515,
0.20054638385772705,
-0.09988992661237717,
0.4372416138648987,
-0.1124538853764534,
0.12613937258720398,
0.11646685749292374,
-0.20750366151332855,
0.04234186187386513,
-0.1860407143831253,
0.2623973786830902,
0.032444342970848083,
0.3752448856830597,
-0.26542770862579346,
0.18940480053424835,
0.3312992453575134,
0.20597784221172333,
-0.2006641924381256,
-0.10159008204936981,
0.06638424843549728,
-0.07940874248743057,
-0.04491342231631279,
0.11131592839956284,
-0.25348708033561707,
-0.2293628454208374,
-0.05136539787054062,
-0.14251355826854706,
-0.21004223823547363,
0.6946982741355896,
0.2750629186630249,
-0.19031789898872375,
-0.3078855872154236,
0.12213849276304245,
0.11742950230836868,
0.0489131435751915,
-0.27385035157203674,
0.37285396456718445,
0.08059803396463394,
-0.08127185702323914,
0.22311662137508392,
0.35396987199783325,
0.8215018510818481,
0.24676208198070526,
-0.07579939812421799,
-0.3166639804840088,
-0.17110727727413177,
0.04289091378450394,
0.25506365299224854,
-0.012917961925268173,
0.03286540508270264,
0.031276773661375046,
0.2523142993450165,
0.07573393732309341,
0.09421944618225098,
-0.025433193892240524,
0.10409523546695709,
-0.01861547864973545,
-0.40027183294296265,
0.3342917263507843,
0.1377333402633667,
-0.23292243480682373,
0.03347771614789963,
0.3048776686191559,
-0.24637532234191895,
-0.04605991020798683,
0.2661551535129547,
0.5599742531776428,
-0.12006796896457672,
-0.14167089760303497,
-0.009210341610014439,
0.25853192806243896,
0.31130900979042053,
0.5630502700805664,
0.15854206681251526,
-0.22429844737052917,
-0.18599319458007812,
-0.4756968021392822,
0.4308846890926361,
-0.2150820791721344,
-0.10645473748445511,
0.27602341771125793,
0.06394683569669724,
0.07041105628013611,
0.15698589384555817,
0.3471613824367523,
0.42097920179367065,
-0.3910060524940491,
0.13447114825248718,
-0.3857070803642273,
-0.25702008605003357,
0.019400596618652344,
-0.12370187789201736,
-0.07056637108325958,
-0.05101391673088074,
0.1715080291032791,
-0.5911445617675781,
0.023880239576101303,
-0.14542527496814728,
-0.2321883887052536,
0.17214512825012207,
-0.05502784252166748,
0.503150999546051,
0.007037667091935873,
0.6460565328598022,
0.04703037440776825,
-0.19473280012607574,
-0.22843904793262482,
-0.10458748042583466,
-0.4692246913909912,
0.6017159223556519,
-0.268347829580307,
0.2230917066335678,
-0.12355323880910873,
-0.33534955978393555,
-0.2232300192117691,
0.2529110014438629,
0.003141575725749135,
0.0884140133857727,
0.004312762059271336,
0.1209898367524147,
0.07138706743717194,
-0.0406133234500885,
-0.01738850586116314,
-0.058699239045381546,
0.015013490803539753,
0.30132773518562317,
-0.5924041867256165,
-0.6977591514587402,
0.49540793895721436,
-0.3196094334125519,
-0.30003517866134644,
-0.43100062012672424,
0.2480504959821701,
0.015925180166959763,
-0.03364235907793045,
-0.5722131729125977,
0.11700554937124252,
0.4677252173423767,
0.0741843655705452,
-0.22119800746440887,
-0.14956450462341309,
-0.07709486782550812,
0.37976160645484924,
-0.11589521169662476,
0.4920499622821808,
-0.2867051661014557,
-0.19166012108325958,
-0.23435886204242706,
-0.26707127690315247
] |
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.34133797883987427,
0.20062345266342163,
0.04937275871634483,
0.057189829647541046,
0.11079324781894684,
0.08544416725635529,
0.23534025251865387,
0.2816729247570038,
-0.176084965467453,
0.138621523976326,
0.43813806772232056,
0.33043229579925537,
-0.1294846385717392,
0.29773515462875366,
-0.19470365345478058,
0.07046328485012054,
0.013385891914367676,
0.14275340735912323,
0.34331414103507996,
0.05624384060502052,
-0.12545019388198853,
0.2392587959766388,
-0.1946721076965332,
0.1283954530954361,
-0.13299886882305145,
0.037212807685136795,
-0.17088934779167175,
0.04085756838321686,
-0.13878150284290314,
-0.46809324622154236,
0.43855682015419006,
0.09022576361894608,
0.18195554614067078,
0.6217027306556702,
-0.0001299516297876835,
0.13805106282234192,
0.4102705121040344,
-0.08854318410158157,
-0.2731274366378784,
-0.5470474362373352,
0.0774923712015152,
-0.012697196565568447,
0.3988082706928253,
-0.10407985001802444,
0.09655618667602539,
-0.38478177785873413,
-0.04488205164670944,
0.10923206061124802,
-0.06790310144424438,
0.3774309456348419,
0.08926326781511307,
0.2561309039592743,
0.0892847552895546,
0.013018311932682991,
0.26643693447113037,
0.3202231228351593,
-0.17905490100383759,
0.43466445803642273,
0.16347232460975647,
-0.13685151934623718,
0.18223126232624054,
-0.08189252763986588,
-0.0010013974970206618,
0.03811289742588997,
0.05876591056585312,
0.0650135949254036,
-0.005421740468591452,
-0.2756885886192322,
0.2095608115196228,
-0.004676740616559982,
0.47382670640945435,
-0.5655615329742432,
-0.4999663233757019,
0.03257141634821892,
0.1310693323612213,
-0.2759974002838135,
0.19895648956298828,
0.10928860306739807,
-0.24751441180706024,
0.11206750571727753,
-0.17689429223537445,
-0.12104959040880203,
-0.0797208845615387,
-0.059705864638090134,
-0.45207247138023376,
0.1955443173646927,
0.14159253239631653,
0.1933705061674118,
0.0005676645087078214,
-0.008045447990298271,
0.08257585763931274,
-0.10773394256830215,
0.18323534727096558,
-0.02020031400024891,
-0.23837949335575104,
-0.07612591981887817,
0.07234805822372437,
0.32777464389801025,
0.2713030278682709,
0.41958361864089966,
0.04035409167408943,
-0.13066798448562622,
0.17426697909832,
0.09461885690689087,
0.06765303015708923,
0.2015315443277359,
-0.032532110810279846,
0.11007530987262726,
0.26883620023727417,
0.00226456206291914,
0.025136684998869896,
-0.034052859991788864,
-0.08208821713924408,
-0.11834004521369934,
0.22016772627830505,
0.030794765800237656,
0.8329048752784729,
-0.3100610673427582,
-0.2644129991531372,
0.06471971422433853,
-0.4131413698196411,
-0.14563453197479248,
-0.19496206939220428,
0.2120334953069687,
0.10630153864622116,
0.399149090051651,
-0.05411263927817345,
0.39352691173553467,
-0.09280635416507721,
-0.03351530805230141,
-0.12549854815006256,
0.0960218533873558,
0.07410988211631775,
-0.07458309829235077,
0.22435013949871063,
-0.3418172597885132,
-0.021451177075505257,
0.2785852551460266,
0.2317492514848709,
0.16883525252342224,
0.08478695154190063,
0.17074422538280487,
-0.01582442596554756,
0.5882759094238281,
-0.11708420515060425,
0.303057461977005,
0.18088719248771667,
-0.4662671685218811,
-0.3240084946155548,
0.2942483425140381,
-0.3417201638221741,
-0.3119840919971466,
-0.15444797277450562,
0.039562344551086426,
-0.3309827148914337,
-0.22794057428836823,
-0.22301143407821655,
-0.19956500828266144,
0.23059579730033875,
-0.09554359316825867,
0.03778223320841789,
-0.6431543827056885,
0.11010007560253143,
-0.24519741535186768,
0.26608848571777344,
0.2522020637989044,
-0.4532633423805237,
0.05512884259223938,
-0.005815836600959301,
0.007761511951684952,
0.16865360736846924,
0.10818532109260559,
-0.06993630528450012,
-0.13681063055992126,
-0.025997890159487724,
0.08007174730300903,
0.45209404826164246,
-0.417176216840744,
-0.3087327778339386,
0.2504970133304596,
-0.050209853798151016,
0.052526794373989105,
0.2544582784175873,
-0.40992385149002075,
0.06706266850233078,
0.1091567724943161,
-0.10234177857637405,
-0.055972568690776825,
-0.013213193975389004,
0.10084772109985352,
-0.11708724498748779,
-0.051847636699676514,
0.42051124572753906,
0.25924554467201233,
0.0945967510342598,
-0.18172655999660492,
-0.06156715378165245,
-0.35203051567077637,
0.20803740620613098,
-0.05817312002182007,
-0.00003459238723735325,
-0.04722774028778076,
0.41541069746017456,
-0.30174076557159424,
0.03766315057873726,
-0.005455491133034229,
-0.28100094199180603,
0.23539775609970093,
0.13972310721874237,
0.18325084447860718,
-0.40078243613243103,
-0.24609647691249847,
-0.29574304819107056,
0.11209286004304886,
-0.18158607184886932,
-0.02508341334760189,
-0.07342302799224854,
0.36766037344932556,
0.0943579450249672,
0.09085187315940857,
-0.24598625302314758,
0.1231612041592598,
-0.05497054010629654,
0.12163867801427841,
-0.01570594497025013,
0.36100879311561584,
-0.3976755738258362,
-0.31142082810401917,
0.1486179083585739,
0.015297594480216503,
0.15521037578582764,
-0.09533535689115524,
0.04920709878206253,
0.19779258966445923,
0.01829272136092186,
-0.061507053673267365,
0.024914342910051346,
0.2371179312467575,
0.09744912385940552,
-0.14393967390060425,
-0.13205425441265106,
0.27384939789772034,
-0.05275135114789009,
0.2288922518491745,
0.008953612297773361,
0.4483509063720703,
0.43373921513557434,
0.4135371446609497,
-0.005292303394526243,
0.13313697278499603,
-0.07898000627756119,
0.046465326100587845,
-0.10265882313251495,
0.023542454466223717,
0.06231946498155594,
-0.15796831250190735,
0.23855774104595184,
-0.008311034180223942,
-0.40837371349334717,
0.17890682816505432,
0.4755975306034088,
0.00452834740281105,
0.051207926124334335,
0.12631835043430328,
-0.04640507325530052,
0.013515613973140717,
0.14270567893981934,
0.11965905874967575,
0.3690716326236725,
0.13157020509243011,
-0.12699903547763824,
0.1280190348625183,
-0.308966726064682,
-0.0002400591765763238,
0.08813691139221191,
0.08554033190011978,
-0.017723748460412025,
0.1066993921995163,
0.29347679018974304,
0.009474852122366428,
-0.17146246135234833,
-0.5069285035133362,
0.1386285275220871,
0.3523927330970764,
-0.5544528961181641,
0.29574260115623474,
-0.2599962651729584,
0.24121837317943573,
-0.05639563873410225,
-0.09951797872781754,
-0.3512239158153534,
-0.34003227949142456,
-0.04263416305184364,
0.13224856555461884,
0.18554244935512543,
0.19873328506946564,
-0.31568843126296997,
0.08581389486789703,
0.027886733412742615,
-0.547407329082489,
-0.39885106682777405,
-0.2250480353832245,
-0.3432812988758087,
-0.008241508156061172,
0.33503130078315735,
-0.34401917457580566,
0.10437465459108353,
-0.3536006808280945,
-0.06156025826931,
-0.31515809893608093,
-0.327682226896286,
0.09710287302732468,
-0.3790060877799988,
0.34002771973609924,
0.2641104757785797,
0.1390090137720108,
-0.09369209408760071,
-0.07758640497922897,
0.28256291151046753,
-0.34515073895454407,
-0.3498210310935974,
0.05580325424671173,
-0.03937092050909996,
-0.0816589817404747,
-0.22975115478038788,
-0.4395768940448761,
-0.17561140656471252,
-0.12561504542827606,
0.17975462973117828,
0.13457609713077545,
0.0894508808851242,
0.16021254658699036,
0.2617315948009491,
-0.11195998638868332,
0.001593804219737649,
-0.08004484325647354,
0.04162636399269104,
-0.18532049655914307,
0.31138524413108826,
-0.1229894682765007,
-0.2905149459838867,
0.07681453973054886,
0.09018787741661072,
0.25678378343582153,
0.09056328982114792,
-0.3195662498474121,
-0.20885641872882843,
0.007146782241761684,
0.5721038579940796,
-0.15281745791435242,
0.0589573048055172,
0.3950416147708893,
0.18017266690731049,
0.03358106687664986,
0.030318140983581543,
-0.20077773928642273,
-0.09942694008350372,
0.15768378973007202,
0.05619431659579277,
0.19561995565891266,
0.2270444929599762,
-0.06458131223917007,
0.7777855396270752,
-0.09126506000757217,
-0.24775195121765137,
0.30139896273612976,
-0.3482935130596161,
0.41254904866218567,
0.09245965629816055,
-0.3143632709980011,
-0.1148332878947258,
-0.004349092021584511,
-0.09836361557245255,
0.1719362586736679,
-0.16727136075496674,
-0.19684922695159912,
-0.13160869479179382,
-0.2043851763010025,
-0.11719844490289688,
-0.09018614143133163,
-0.04581427946686745,
-0.014826569706201553,
0.2799759805202484,
-0.039688315242528915,
0.1678747683763504,
-0.13242241740226746,
-0.04968715459108353,
0.17422711849212646,
0.4427701234817505,
-0.019697973504662514,
0.023720094934105873,
-0.26244881749153137,
-0.2940681278705597,
-0.29594656825065613,
0.3724190592765808,
0.06115719676017761,
0.4008815586566925,
-0.02668057009577751,
-0.16103112697601318,
0.1031055673956871,
-0.30256056785583496,
0.616339921951294,
-0.24014192819595337,
0.08069299906492233,
0.3421907424926758,
-0.22505182027816772,
-0.4068378508090973,
-0.32001256942749023,
-0.4515894055366516,
0.18398985266685486,
-0.027976343408226967,
0.25944992899894714,
-0.2801223695278168,
-0.3214558959007263,
0.26712751388549805,
0.10506055504083633,
0.06642982363700867,
0.028870655223727226,
-0.524619996547699,
-0.442992240190506,
-0.2986683249473572,
0.2140117883682251,
0.05449827387928963,
0.2545927166938782,
-0.35635906457901,
0.4444723427295685,
-0.0712299719452858,
-0.23173998296260834,
0.2484540343284607,
0.29517295956611633,
0.25082796812057495,
-0.13306072354316711,
-0.06405603885650635,
-0.18158671259880066,
0.009776478633284569,
0.47769370675086975,
0.5681914687156677,
0.3777182102203369,
-0.2568677067756653,
0.3769097626209259,
0.203181192278862,
0.5758686661720276,
0.2257891297340393,
-0.4059257507324219,
-0.052720632404088974,
-0.11496511846780777,
-0.03791375830769539,
-0.08098883926868439,
0.12207631766796112,
0.5143465995788574,
-0.21527886390686035,
-0.3515263795852661,
-0.06737906485795975,
0.3762578070163727,
0.29049164056777954,
-0.049168892204761505,
0.12100940197706223,
0.4069828391075134,
-0.13312730193138123,
0.31321021914482117,
-0.13127997517585754,
0.8649086952209473,
0.05738125368952751,
0.2569825053215027,
0.17126935720443726,
-0.3226710259914398,
0.08208958804607391,
-0.003960981033742428,
0.017548687756061554,
-0.4571158289909363,
-0.1686369925737381,
-0.1796826273202896,
-0.2954646944999695,
0.23048439621925354,
-0.022618116810917854,
-0.1865597367286682,
0.22972290217876434,
0.06012503802776337,
0.4995061457157135,
0.43008941411972046,
0.3966605067253113,
-0.23162247240543365,
0.3145560920238495,
-0.21944284439086914,
-0.017298486083745956,
0.029300687834620476,
0.2286313772201538,
0.1244775578379631,
-0.0027925693430006504,
-0.274658739566803,
-0.4961467683315277,
-0.37046271562576294,
-0.025694550946354866,
-0.2890318036079407,
-0.11042263358831406,
0.32959046959877014,
-0.7482529282569885,
0.24864770472049713,
0.03392290323972702,
0.10982607305049896,
0.0075349085964262486,
-0.30140572786331177,
0.03664803132414818,
-0.10047543793916702,
0.11640460044145584,
0.23055768013000488,
-0.012688364833593369,
0.37980517745018005,
0.002248197328299284,
-0.36957216262817383,
0.24874751269817352,
-0.07758878916501999,
-0.12840722501277924,
-0.10458026081323624,
0.06520947068929672,
-0.04165589064359665,
-0.33787843585014343,
0.17437337338924408,
-0.5917774438858032,
0.1822226643562317,
-0.0884273573756218,
-0.020644357427954674,
-0.11919302493333817,
0.09579985588788986,
0.025434421375393867,
0.20536746084690094,
-0.2256232351064682,
-0.12507124245166779,
0.2743135094642639,
-0.06986569613218307,
0.1688295155763626,
0.5413678884506226,
-0.013897797092795372,
0.04178491234779358,
-0.03793537616729736,
0.03379393741488457,
0.2881387770175934,
-0.42255669832229614,
0.01937282830476761,
-0.06643971800804138,
0.02078152261674404,
-0.00798364169895649,
0.5095463991165161,
0.07081721723079681,
0.20018184185028076,
-0.03918560594320297,
-0.47952520847320557,
-0.009307458065450191,
0.2478468269109726,
-0.03004796802997589,
0.1569509357213974,
0.1399686187505722,
0.28624850511550903,
0.20564232766628265,
-0.4054950475692749,
-0.17149105668067932,
-0.04002952575683594,
-0.0005387606797739863,
0.0970592051744461,
-0.12449874728918076,
0.002344437874853611,
0.17198064923286438,
-0.02114667370915413,
0.0245667714625597,
-0.1681079864501953,
-0.07666459679603577,
-0.04855986312031746,
-0.12290924787521362,
0.2095736712217331,
0.03663777932524681,
0.15803153812885284,
0.19972409307956696,
0.012682775035500526,
0.009816745296120644,
-0.013129908591508865,
0.1601453423500061,
0.08294402062892914,
-0.13927754759788513,
0.09324304759502411,
0.19146601855754852,
-0.14611440896987915,
-0.36845195293426514,
0.026094164699316025,
-0.16010858118534088,
0.08383242040872574,
0.17343291640281677,
0.3831001818180084,
-0.12432998418807983,
0.17004621028900146,
-0.16442817449569702,
0.13646399974822998,
-0.15961754322052002,
0.013914462178945541,
0.22388657927513123,
-0.35048002004623413,
-0.22463510930538177,
-0.07116306573152542,
0.5016783475875854,
0.2746828496456146,
-0.18806704878807068,
0.049472033977508545,
0.07359765470027924,
-0.06575626879930496,
-0.33242067694664,
0.08114797621965408,
0.31314876675605774,
0.1644696444272995,
-0.014220409095287323,
0.5696209073066711,
0.3624670207500458,
-0.28933244943618774,
0.15902408957481384,
0.1196838915348053,
0.7548348307609558,
0.26592642068862915,
0.06463384628295898,
0.17350509762763977,
-0.1727522611618042,
0.17013120651245117,
0.4858207702636719,
0.05952177196741104,
-0.05907751992344856,
0.11398426443338394,
-0.16607370972633362,
0.18067717552185059,
0.06338616460561752,
-0.13966268301010132,
0.0012396015226840973,
-0.16610290110111237,
0.33878055214881897,
-0.2645162045955658,
0.3434371054172516,
-0.20660477876663208,
0.18527257442474365,
0.43470561504364014,
0.07545612007379532,
-0.17391015589237213,
-0.23981525003910065,
0.10661665350198746,
-0.02290523052215576,
-0.08845098316669464,
-0.11495328694581985,
-0.24852241575717926,
-0.1854364573955536,
-0.05156300961971283,
-0.12602248787879944,
-0.12427964061498642,
0.6650733947753906,
0.18254244327545166,
-0.18023306131362915,
-0.25598040223121643,
-0.009241306222975254,
0.028558453544974327,
0.07771608978509903,
-0.2637617290019989,
0.41442230343818665,
0.07031844556331635,
-0.12955182790756226,
0.06194277107715607,
0.3388364017009735,
0.9245889782905579,
0.13848207890987396,
-0.11934097111225128,
-0.35759347677230835,
-0.23553095757961273,
0.009926103986799717,
0.13869521021842957,
0.007697449065744877,
-0.012598984874784946,
0.149511456489563,
0.13449648022651672,
0.08624690771102905,
0.0714663714170456,
-0.05862949416041374,
0.1186971664428711,
-0.11727676540613174,
-0.4760376513004303,
0.3648819327354431,
-0.016836371272802353,
-0.1769959181547165,
-0.04906256124377251,
0.19289639592170715,
-0.21985282003879547,
0.018676500767469406,
0.1510174572467804,
0.4744876027107239,
-0.14139771461486816,
-0.2653830349445343,
-0.016090713441371918,
0.14959566295146942,
0.3990332782268524,
0.4798588752746582,
0.29360684752464294,
-0.28840041160583496,
-0.16200321912765503,
-0.6309643387794495,
0.2499452531337738,
-0.10891818255186081,
-0.07338941842317581,
0.1761758178472519,
0.19231712818145752,
0.12613512575626373,
0.1565839648246765,
0.25283196568489075,
0.15728142857551575,
-0.25267061591148376,
0.07404745370149612,
-0.28174927830696106,
-0.18422965705394745,
-0.11259967088699341,
-0.16807393729686737,
-0.0837305560708046,
-0.0515797957777977,
0.12334040552377701,
-0.604647159576416,
-0.04503503814339638,
-0.22134868800640106,
-0.3686109483242035,
0.13001874089241028,
-0.2846071720123291,
0.4359482526779175,
-0.045337263494729996,
0.7685068845748901,
0.12560279667377472,
-0.1501152515411377,
-0.32888728380203247,
-0.13706614077091217,
-0.2852410078048706,
0.5235641002655029,
-0.3340814709663391,
0.2942081093788147,
-0.07190605252981186,
-0.3801873028278351,
-0.23676495254039764,
0.2125571370124817,
0.14735715091228485,
0.015083631500601768,
0.13905547559261322,
0.18910318613052368,
-0.09959564357995987,
-0.05541398376226425,
-0.04359755665063858,
-0.03080154024064541,
-0.02593713253736496,
0.22499020397663116,
-0.5183085203170776,
-0.6421113014221191,
0.5877331495285034,
-0.3876180350780487,
-0.28115740418434143,
-0.3539849817752838,
0.22090958058834076,
-0.18944582343101501,
-0.15479260683059692,
-0.4908483028411865,
0.021292762830853462,
0.30343976616859436,
0.13607990741729736,
-0.2562732398509979,
0.07688792794942856,
0.023782361298799515,
0.2902078628540039,
-0.08824662864208221,
0.4993481934070587,
-0.3625541627407074,
-0.07459190487861633,
-0.17572982609272003,
-0.190705344080925
] |
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.4502642750740051,
0.13628937304019928,
0.0727609395980835,
-0.007737620268017054,
0.21043919026851654,
0.14556846022605896,
0.13477954268455505,
0.3891867399215698,
-0.26127296686172485,
0.19664917886257172,
0.24235869944095612,
0.4409928023815155,
-0.17453418672084808,
0.19554732739925385,
-0.24655781686306,
0.02013690210878849,
-0.03596089780330658,
0.1991017758846283,
0.13498325645923615,
0.04183592647314072,
-0.14862440526485443,
0.1625906080007553,
-0.2162209451198578,
0.26479628682136536,
-0.15370438992977142,
-0.0562000535428524,
-0.08893916010856628,
-0.04437950998544693,
-0.13040940463542938,
-0.5437801480293274,
0.374104380607605,
-0.05960052087903023,
0.17467473447322845,
0.5324847102165222,
-0.000123493853607215,
0.1340291053056717,
0.35790300369262695,
-0.09974333643913269,
-0.3201574981212616,
-0.4985058307647705,
0.030355671420693398,
0.02507220022380352,
0.3309289813041687,
-0.14971722662448883,
0.04570253938436508,
-0.5905306935310364,
-0.056062109768390656,
0.011204336769878864,
-0.02645852044224739,
0.4921303689479828,
0.15572771430015564,
0.16486041247844696,
0.0755559578537941,
-0.13787966966629028,
0.21025486290454865,
0.08985590189695358,
-0.07608110457658768,
0.4706762731075287,
0.12163922935724258,
-0.07171227037906647,
0.16000664234161377,
-0.10232014954090118,
-0.021708598360419273,
-0.016618911176919937,
-0.01973673142492771,
0.08909537643194199,
0.27014026045799255,
-0.2540651559829712,
0.27582451701164246,
0.021355755627155304,
0.613984227180481,
-0.6099300980567932,
-0.40281251072883606,
0.058497704565525055,
0.15104831755161285,
-0.1977948695421219,
0.20437312126159668,
0.17402079701423645,
-0.2345983386039734,
0.13707534968852997,
-0.19406192004680634,
-0.038115110248327255,
-0.07902085036039352,
-0.1012427881360054,
-0.37965548038482666,
0.25100836157798767,
0.19847622513771057,
0.17120277881622314,
-0.015670951455831528,
-0.11607956141233444,
0.07631202042102814,
-0.1649233102798462,
0.1704012006521225,
0.0014241975732147694,
-0.21078741550445557,
-0.12968361377716064,
-0.0683172345161438,
0.3605416715145111,
0.24468205869197845,
0.24374273419380188,
0.039519596844911575,
-0.21937119960784912,
0.2899474501609802,
0.14934375882148743,
-0.00020728935487568378,
0.06083031743764877,
0.028259221464395523,
0.15257412195205688,
0.11568444222211838,
-0.07430452108383179,
0.011641125194728374,
0.012575984001159668,
-0.03567137196660042,
-0.13475586473941803,
0.28068944811820984,
-0.017558323219418526,
0.7477176785469055,
-0.38609233498573303,
-0.3294260501861572,
0.11270754039287567,
-0.3191037178039551,
-0.11211203038692474,
-0.14967282116413116,
0.3698424696922302,
0.08019517362117767,
0.30647194385528564,
-0.2025551199913025,
0.30273380875587463,
-0.1487703174352646,
-0.178384929895401,
-0.09530594199895859,
0.08789104968309402,
-0.021924125030636787,
-0.13318249583244324,
0.16874298453330994,
-0.2979694604873657,
-0.04650506749749184,
0.3469099998474121,
0.10252098739147186,
0.18799328804016113,
0.0652613490819931,
-0.002695741830393672,
-0.05441387742757797,
0.4611661434173584,
-0.22185006737709045,
0.25166356563568115,
0.17808355391025543,
-0.5087435245513916,
-0.36347195506095886,
0.2743995785713196,
-0.2164258062839508,
-0.353474885225296,
-0.24320346117019653,
0.1512814462184906,
-0.09201835840940475,
-0.2586001455783844,
-0.048928502947092056,
-0.06135130301117897,
0.18020851910114288,
-0.15756343305110931,
-0.0042945086024701595,
-0.6692387461662292,
0.12914951145648956,
-0.3172445595264435,
0.29797542095184326,
0.23556290566921234,
-0.5403276085853577,
0.05119895935058594,
0.11710026860237122,
-0.15387000143527985,
0.220856711268425,
-0.048054154962301254,
0.02851785533130169,
-0.16844691336154938,
0.008382394909858704,
0.00040416765841655433,
0.36193153262138367,
-0.3157843053340912,
-0.28083282709121704,
0.20378239452838898,
0.13735753297805786,
-0.005416479893028736,
0.25811004638671875,
-0.3559536635875702,
0.06767738610506058,
0.1332530826330185,
-0.24490176141262054,
0.07075203210115433,
-0.06347828358411789,
0.03950009495019913,
-0.17243468761444092,
0.011109622195363045,
0.4310906231403351,
0.2942521274089813,
0.07769446074962616,
-0.1869186908006668,
0.05416274443268776,
-0.25365957617759705,
0.17242369055747986,
-0.15349127352237701,
0.014555595815181732,
-0.09521052986383438,
0.42285075783729553,
-0.3071487545967102,
0.009102052077651024,
-0.08208517730236053,
-0.37202534079551697,
0.21420735120773315,
0.14268599450588226,
0.04278257489204407,
-0.33310171961784363,
-0.2545278072357178,
-0.34180593490600586,
0.09298102557659149,
-0.11785750836133957,
-0.03090299665927887,
0.02902311086654663,
0.38346031308174133,
0.0836460292339325,
0.06660854816436768,
-0.17853398621082306,
0.12594616413116455,
0.010981057770550251,
0.18438979983329773,
-0.021914510056376457,
0.4052860140800476,
-0.38489654660224915,
-0.32877886295318604,
0.11645226180553436,
0.01476847380399704,
0.2110704481601715,
-0.07470058649778366,
-0.024430615827441216,
0.35694509744644165,
0.06681423634290695,
0.0324973464012146,
0.03754562884569168,
0.2812749445438385,
0.009507701732218266,
-0.27448466420173645,
-0.22555814683437347,
0.284518301486969,
-0.05631447583436966,
0.33589115738868713,
-0.04778018593788147,
0.4245946705341339,
0.4690207242965698,
0.24409347772598267,
0.043488528579473495,
0.12071552127599716,
-0.08766249567270279,
0.030711200088262558,
0.01759539172053337,
-0.10276903957128525,
0.1239544004201889,
-0.09751402586698532,
0.24295519292354584,
0.00738183269277215,
-0.45348644256591797,
0.018111389130353928,
0.33262374997138977,
-0.10369667410850525,
0.07972214370965958,
0.10889115184545517,
-0.13481740653514862,
0.07133274525403976,
0.1310129463672638,
0.12860162556171417,
0.2671003043651581,
0.15452148020267487,
-0.0664287656545639,
0.14593523740768433,
-0.3957768380641937,
0.04936874285340309,
0.1474575400352478,
0.046950213611125946,
0.08438382297754288,
0.11785002052783966,
0.20307575166225433,
0.06922563910484314,
-0.19645310938358307,
-0.4386539161205292,
0.16900776326656342,
0.397512823343277,
-0.4556094706058502,
0.2525039315223694,
-0.2593025863170624,
0.28796255588531494,
-0.17629937827587128,
-0.10131322592496872,
-0.2812742590904236,
-0.2871728539466858,
0.029808426275849342,
0.16138705611228943,
0.1280529648065567,
0.28448206186294556,
-0.3949868977069855,
0.13085290789604187,
0.060437921434640884,
-0.53896164894104,
-0.35877344012260437,
-0.1788509339094162,
-0.4358466863632202,
0.05648481100797653,
0.29300636053085327,
-0.29367300868034363,
0.18700145184993744,
-0.33857226371765137,
-0.10415752232074738,
-0.2780035436153412,
-0.2546270191669464,
0.10002291202545166,
-0.27325332164764404,
0.4224725365638733,
0.23313404619693756,
0.06530188769102097,
-0.05094247683882713,
-0.13944759964942932,
0.29851213097572327,
-0.5006912350654602,
-0.2382105588912964,
0.10757837444543839,
-0.06091475859284401,
-0.028160573914647102,
-0.09925727546215057,
-0.6026320457458496,
-0.27009397745132446,
-0.17673157155513763,
-0.07382930815219879,
0.10129474848508835,
0.11718013137578964,
0.015319074504077435,
0.17950032651424408,
-0.04143872112035751,
-0.10640038549900055,
0.04073179140686989,
0.02278013713657856,
-0.0935678482055664,
0.2638750374317169,
-0.14122654497623444,
-0.24706196784973145,
0.0030330312438309193,
0.05939893424510956,
0.3075077533721924,
0.02631285786628723,
-0.3157667815685272,
-0.1785082221031189,
0.08708111941814423,
0.5713333487510681,
-0.21375463902950287,
-0.008834149688482285,
0.20170152187347412,
0.3253883719444275,
-0.04613083228468895,
0.043869469314813614,
-0.1561376452445984,
-0.225790873169899,
0.08310505747795105,
0.11741670966148376,
0.11736887693405151,
0.24780529737472534,
-0.00014701673353556544,
0.7000096440315247,
0.09017027169466019,
-0.26471179723739624,
0.2456340193748474,
-0.2904428541660309,
0.3646109104156494,
0.02159138210117817,
-0.21043042838573456,
-0.029302751645445824,
-0.003284863429144025,
-0.08996845036745071,
0.25670164823532104,
-0.18345165252685547,
-0.2540484368801117,
-0.0747881680727005,
-0.18840719759464264,
-0.22964917123317719,
-0.06973981112241745,
-0.03852512314915657,
-0.05075914412736893,
0.26926469802856445,
-0.07091483473777771,
0.14934499561786652,
-0.07006047666072845,
-0.10604319721460342,
0.20325356721878052,
0.37060511112213135,
-0.2543415427207947,
0.030876822769641876,
-0.2697114646434784,
-0.2007378339767456,
-0.23489844799041748,
0.4246779978275299,
-0.012990858405828476,
0.4772613048553467,
-0.016963033005595207,
-0.12940821051597595,
0.09740828722715378,
-0.20808345079421997,
0.4789673984050751,
-0.2268107682466507,
0.08115140348672867,
0.2893921136856079,
-0.17096887528896332,
-0.44634371995925903,
-0.3620922267436981,
-0.4987751841545105,
0.07814177125692368,
-0.03766974061727524,
0.22606568038463593,
-0.2343868762254715,
-0.23196473717689514,
0.22696200013160706,
0.11853797733783722,
0.07251087576150894,
0.00371188810095191,
-0.43107080459594727,
-0.2614605724811554,
-0.24307897686958313,
0.303437203168869,
-0.1024954617023468,
0.3525223135948181,
-0.3325917422771454,
0.4075811505317688,
-0.09610051661729813,
-0.17272083461284637,
0.2449404001235962,
0.3544297516345978,
0.22494180500507355,
-0.21191197633743286,
0.02607635036110878,
-0.12502329051494598,
0.23234282433986664,
0.5753098726272583,
0.5339664220809937,
0.2321101576089859,
-0.2221551239490509,
0.18901805579662323,
0.23789311945438385,
0.6089589595794678,
0.037967879325151443,
-0.4350990951061249,
-0.13117434084415436,
-0.21597327291965485,
0.04362256079912186,
-0.009059297852218151,
0.10546886920928955,
0.5369829535484314,
-0.12586839497089386,
-0.5352917909622192,
0.03395194187760353,
0.4779817461967468,
0.27924618124961853,
-0.13668760657310486,
0.07593429088592529,
0.3156249523162842,
-0.1674434095621109,
0.43760791420936584,
-0.10256548970937729,
0.8173342347145081,
-0.0009251984301954508,
0.1719646006822586,
0.13897167146205902,
-0.3020308017730713,
0.12917234003543854,
0.02002819813787937,
0.01078886166214943,
-0.4951132535934448,
-0.3523804247379303,
-0.12848098576068878,
-0.26069214940071106,
0.2495349645614624,
0.058063048869371414,
-0.34337520599365234,
0.30057621002197266,
0.019463950768113136,
0.45729759335517883,
0.420908123254776,
0.291684091091156,
-0.16789276897907257,
0.29896295070648193,
-0.25076204538345337,
0.03803158178925514,
0.024416321888566017,
0.07223393768072128,
0.11549511551856995,
0.07646697759628296,
-0.14137694239616394,
-0.4948066771030426,
-0.27903875708580017,
0.015146039426326752,
-0.2930014729499817,
-0.10045856237411499,
0.3964218497276306,
-0.5733569264411926,
0.21180720627307892,
0.07209344953298569,
0.048183854669332504,
0.0640392079949379,
-0.2333725392818451,
0.012959877029061317,
-0.1457781046628952,
0.12769414484500885,
0.18394805490970612,
0.04753345251083374,
0.45334938168525696,
-0.008722248487174511,
-0.3378647267818451,
0.3581652045249939,
-0.08139479160308838,
-0.011938638053834438,
0.014829408377408981,
-0.12561246752738953,
0.17730654776096344,
-0.3368030786514282,
0.24641478061676025,
-0.6286607384681702,
0.10997289419174194,
-0.1781969517469406,
0.04503730684518814,
-0.1984390765428543,
0.003612799569964409,
0.10916220396757126,
0.22726097702980042,
-0.3318325877189636,
-0.21183156967163086,
0.20839080214500427,
0.005966853350400925,
0.22857089340686798,
0.5235669016838074,
-0.0887124091386795,
-0.04807808995246887,
-0.10361738502979279,
0.05815405771136284,
0.32729896903038025,
-0.3375200927257538,
-0.04912026971578598,
-0.02971700020134449,
0.06561008095741272,
0.1523432433605194,
0.37685516476631165,
0.2776252031326294,
0.2131880223751068,
-0.07444605976343155,
-0.5255507826805115,
-0.07296570390462875,
0.23751027882099152,
-0.07121354341506958,
0.19758789241313934,
0.11746049672365189,
0.32370755076408386,
0.2238589972257614,
-0.11349321901798248,
-0.2397030144929886,
-0.032957062125205994,
-0.13233579695224762,
0.19193364679813385,
-0.08682844787836075,
0.09644531458616257,
0.05169977620244026,
0.06344863772392273,
0.08875680714845657,
-0.19282977283000946,
-0.14227893948554993,
-0.11094790697097778,
-0.14755505323410034,
0.18353672325611115,
0.10185125470161438,
0.1381855458021164,
0.1264924705028534,
0.05604755878448486,
0.049014635384082794,
-0.04671843349933624,
0.1385228931903839,
0.039386577904224396,
-0.17921723425388336,
0.21477432548999786,
0.3473412096500397,
-0.16727687418460846,
-0.3585497736930847,
-0.03709867596626282,
-0.20412833988666534,
-0.03964228555560112,
0.14702774584293365,
0.3860640823841095,
-0.2622251808643341,
0.0606437623500824,
-0.1839805394411087,
0.08918039500713348,
-0.038675110787153244,
-0.058118149638175964,
0.11452363431453705,
-0.3145364224910736,
-0.2465544044971466,
0.013893785886466503,
0.44908657670021057,
0.28608566522598267,
-0.20155556499958038,
-0.030050499364733696,
0.23514987528324127,
0.03341379761695862,
-0.41200247406959534,
0.00853543821722269,
0.29435572028160095,
0.16434863209724426,
0.09699545055627823,
0.4992046654224396,
0.36793839931488037,
-0.3373351991176605,
0.07632026821374893,
0.05410813167691231,
0.48907050490379333,
0.22714515030384064,
0.16241022944450378,
0.4281884431838989,
-0.12060504406690598,
0.14897343516349792,
0.5001077055931091,
0.07173771411180496,
-0.06867467612028122,
0.3365834355354309,
-0.22659659385681152,
0.2901754081249237,
0.05184964835643768,
-0.09472803771495819,
0.01207879651337862,
-0.14029133319854736,
0.3303787112236023,
-0.08364842087030411,
0.3031793236732483,
-0.18541929125785828,
0.21076861023902893,
0.34041669964790344,
0.09915269911289215,
-0.3103967607021332,
-0.26461145281791687,
0.007390593644231558,
-0.07696636766195297,
-0.1239810660481453,
-0.0777573212981224,
-0.24878479540348053,
-0.31133484840393066,
-0.04240025579929352,
-0.1833256632089615,
-0.21364496648311615,
0.6925195455551147,
0.20947647094726562,
-0.14585193991661072,
-0.2887670397758484,
0.09960572421550751,
0.12556180357933044,
0.06614130735397339,
-0.24123775959014893,
0.43640395998954773,
-0.006713717244565487,
-0.046182237565517426,
0.15534663200378418,
0.29818832874298096,
0.8132767677307129,
0.21816030144691467,
-0.17353977262973785,
-0.32582324743270874,
-0.2322152853012085,
0.06455738097429276,
0.2646583914756775,
0.06301842629909515,
-0.0373363122344017,
0.02126293256878853,
0.29204893112182617,
0.11681203544139862,
0.027758987620472908,
-0.07846143841743469,
0.0650029331445694,
-0.1590965837240219,
-0.4842322766780853,
0.2990451753139496,
0.18477986752986908,
-0.10185912251472473,
0.01642240583896637,
0.17674629390239716,
-0.25420573353767395,
0.02687223069369793,
0.21977132558822632,
0.4025391638278961,
-0.09970112144947052,
-0.1280665099620819,
0.013057755306363106,
0.264171302318573,
0.37537112832069397,
0.46604123711586,
0.3042023479938507,
-0.3263895809650421,
-0.23226387798786163,
-0.5930099487304688,
0.3081545829772949,
-0.11185581982135773,
-0.06417248398065567,
0.23115263879299164,
0.07034197449684143,
0.1258239895105362,
0.21518170833587646,
0.30558592081069946,
0.34289345145225525,
-0.26369574666023254,
0.10260070115327835,
-0.40018945932388306,
-0.17699523270130157,
-0.0904509574174881,
-0.1819169521331787,
-0.09434617310762405,
-0.1717553436756134,
0.1907271146774292,
-0.5734683871269226,
0.014778770506381989,
-0.12844185531139374,
-0.34596580266952515,
0.20035456120967865,
-0.19253960251808167,
0.45888039469718933,
-0.020361514762043953,
0.7599466443061829,
0.05706412345170975,
-0.13146358728408813,
-0.19957047700881958,
-0.15740805864334106,
-0.33825647830963135,
0.5084715485572815,
-0.2153961956501007,
0.2439030557870865,
-0.03558789938688278,
-0.2223462462425232,
-0.144809752702713,
0.23349931836128235,
0.14098122715950012,
0.015727728605270386,
0.08336314558982849,
0.09266442805528641,
0.06414294242858887,
-0.09420715272426605,
-0.023003358393907547,
-0.019734976813197136,
-0.030902409926056862,
0.2972713112831116,
-0.4680345952510834,
-0.672317385673523,
0.5400301814079285,
-0.33879324793815613,
-0.23528039455413818,
-0.42759257555007935,
0.2575128674507141,
-0.09694643318653107,
-0.08701138943433762,
-0.480756014585495,
0.10606774687767029,
0.3818351626396179,
0.03254949674010277,
-0.22709830105304718,
-0.03245465084910393,
0.032651375979185104,
0.32015126943588257,
-0.13763155043125153,
0.5239672064781189,
-0.28771665692329407,
-0.15140360593795776,
-0.16822203993797302,
-0.2710403501987457
] |
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.05949091166257858,
-0.11997032910585403,
0.014864055439829826,
0.24388323724269867,
0.47326287627220154,
-0.0013421671465039253,
0.4414611756801605,
0.1253981739282608,
-0.014295512810349464,
0.26756349205970764,
-0.1799776256084442,
0.46588942408561707,
-0.11915555596351624,
0.10542649030685425,
0.09335120022296906,
-0.16344673931598663,
-0.1493481993675232,
0.17890526354312897,
-0.0950513556599617,
0.004156059585511684,
-0.2951405942440033,
-0.12274522334337234,
-0.26470229029655457,
0.16010642051696777,
-0.4545840322971344,
-0.24733658134937286,
-0.12372734397649765,
-0.02890775166451931,
-0.2947981655597687,
-0.307205468416214,
0.390593022108078,
0.04553190618753433,
0.08020161837339401,
0.5733887553215027,
-0.00010463327635079622,
0.08574359118938446,
0.5220624208450317,
0.07952451705932617,
-0.10193820297718048,
-0.4897308945655823,
-0.13645444810390472,
-0.16683335602283478,
0.21391715109348297,
-0.39387962222099304,
-0.17488203942775726,
-0.043418627232313156,
0.015630070120096207,
0.10472062975168228,
0.3135630488395691,
0.48495158553123474,
0.3089381754398346,
0.4509340822696686,
0.046453285962343216,
-0.26731762290000916,
0.29664066433906555,
0.15159940719604492,
-0.05325186997652054,
0.3601022958755493,
-0.02976294420659542,
-0.1026371642947197,
0.1846829503774643,
0.15670666098594666,
-0.266948401927948,
-0.09675866365432739,
0.19038663804531097,
0.06878647953271866,
-0.04153859242796898,
-0.29089778661727905,
-0.07514960318803787,
0.41438716650009155,
0.3387811481952667,
-0.45931103825569153,
-0.27880990505218506,
0.11806529760360718,
0.21228355169296265,
-0.2495189905166626,
0.2602463960647583,
0.0856187492609024,
-0.012844810262322426,
0.19757306575775146,
-0.08679477870464325,
0.27960702776908875,
-0.27930405735969543,
0.3049074709415436,
-0.16479367017745972,
0.1444966048002243,
-0.06308613717556,
0.0345243476331234,
0.20605121552944183,
-0.1919635534286499,
0.05979166924953461,
-0.13102683424949646,
0.03567332774400711,
0.1007022112607956,
-0.2436073124408722,
-0.1369948536157608,
0.10915141552686691,
-0.0550241656601429,
0.13056102395057678,
-0.2993285357952118,
0.15652742981910706,
-0.0825740322470665,
-0.004699327051639557,
0.4082545042037964,
0.18361517786979675,
0.37427812814712524,
0.23539142310619354,
0.14673340320587158,
0.20310430228710175,
0.125055730342865,
-0.2914270758628845,
0.0851677656173706,
-0.19163067638874054,
-0.07955652475357056,
0.3350316882133484,
0.14177802205085754,
0.45437994599342346,
0.004213648848235607,
-0.453861266374588,
-0.048470012843608856,
-0.4231705963611603,
0.07957950234413147,
0.22692032158374786,
0.4578571021556854,
-0.1490909904241562,
0.11197039484977722,
0.044868577271699905,
0.15390168130397797,
-0.17074576020240784,
-0.2831348478794098,
-0.286907434463501,
0.41192764043807983,
-0.33274126052856445,
-0.2005893886089325,
0.1725696623325348,
0.06317576766014099,
-0.04409332945942879,
-0.014276545494794846,
-0.12453275918960571,
0.014792404137551785,
0.031217455863952637,
-0.48646700382232666,
-0.10691830515861511,
0.18023733794689178,
0.036691006273031235,
-0.1434197723865509,
0.217743381857872,
-0.43856289982795715,
0.0038597953971475363,
0.21044710278511047,
-0.13902676105499268,
-0.2205251157283783,
-0.0644020289182663,
0.2921476662158966,
-0.3297558128833771,
-0.16175007820129395,
-0.12208115309476852,
0.15815193951129913,
0.15889443457126617,
0.01528231892734766,
0.03860413655638695,
-0.08452598750591278,
-0.02186087891459465,
-0.3067055344581604,
0.026878520846366882,
0.3902672827243805,
-0.3743340075016022,
-0.2277737408876419,
-0.11634711176156998,
-0.05733560770750046,
0.33097609877586365,
-0.055294375866651535,
-0.013930381275713444,
0.28425270318984985,
-0.016235526651144028,
0.12702040374279022,
0.6166735291481018,
-0.38114646077156067,
-0.3189845085144043,
-0.08715249598026276,
-0.052556540817022324,
-0.032351303845644,
-0.00000830342287372332,
-0.1415090262889862,
0.09520977735519409,
0.18519321084022522,
0.4305957853794098,
0.1825712025165558,
0.010850027203559875,
-0.006876208819448948,
-0.2708132863044739,
-0.2111278921365738,
0.19119437038898468,
0.08953147381544113,
0.13897515833377838,
-0.0566445030272007,
-0.07800840586423874,
-0.24225318431854248,
0.01793130487203598,
-0.11919517815113068,
-0.13236163556575775,
-0.06167292594909668,
0.5806081891059875,
-0.08955502510070801,
-0.1220891922712326,
-0.5331311821937561,
-0.2384604662656784,
0.14512750506401062,
-0.038407038897275925,
0.440065860748291,
-0.1647631824016571,
-0.2132972776889801,
-0.40875452756881714,
0.04674917086958885,
-0.053432647138834,
-0.04224424809217453,
0.28871670365333557,
0.032719530165195465,
-0.16237139701843262,
0.14767234027385712,
-0.09393160045146942,
0.06908971071243286,
-0.18910682201385498,
0.14024943113327026,
0.11506956815719604,
0.3248276710510254,
-0.05265732854604721,
-0.4338497221469879,
0.016055265441536903,
0.24504825472831726,
0.42788854241371155,
0.0615982785820961,
-0.0518307089805603,
0.31032106280326843,
0.09668118506669998,
-0.2166444957256317,
-0.3329293727874756,
-0.03756412863731384,
0.10615912824869156,
-0.32848864793777466,
-0.1916380673646927,
-0.028610415756702423,
0.18140137195587158,
-0.003908067941665649,
0.015586827881634235,
0.506656289100647,
0.07304617017507553,
0.07515455037355423,
-0.0834585651755333,
0.19625355303287506,
-0.05213027074933052,
-0.12022459506988525,
-0.11892331391572952,
-0.09356629103422165,
0.085373155772686,
-0.0516481027007103,
0.16046176850795746,
0.08396703004837036,
-0.1486918181180954,
-0.09396196901798248,
0.627628743648529,
0.06613359600305557,
0.40661802887916565,
-0.12785759568214417,
-0.2530848979949951,
0.14693446457386017,
0.0753542110323906,
0.09351518005132675,
0.35600411891937256,
0.30918431282043457,
-0.17418397963047028,
-0.012002798728644848,
-0.16991372406482697,
0.02003360167145729,
0.09369762241840363,
-0.030057746917009354,
0.3375014364719391,
-0.019166374579072,
0.32656559348106384,
0.0025228443555533886,
-0.312995046377182,
0.11549834161996841,
0.03831638768315315,
0.18946455419063568,
-0.3931478261947632,
0.1806960105895996,
-0.31553956866264343,
-0.1539052128791809,
0.059273362159729004,
-0.13982367515563965,
-0.04219914227724075,
-0.27074873447418213,
-0.08552631735801697,
0.18152548372745514,
0.0589711032807827,
0.26436367630958557,
0.1597481220960617,
-0.03270803019404411,
0.08473815768957138,
-0.06557323783636093,
-0.10223530232906342,
-0.22010745108127594,
-0.17439104616641998,
0.14284951984882355,
0.1274089515209198,
0.2078605741262436,
0.2995348572731018,
-0.14255434274673462,
0.04809417203068733,
0.013804602436721325,
-0.360225111246109,
0.08573350310325623,
-0.12153421342372894,
0.44019368290901184,
0.34255990386009216,
0.07288345694541931,
-0.23686997592449188,
0.01739238016307354,
0.36196646094322205,
-0.347331166267395,
-0.10805152356624603,
0.39837732911109924,
-0.1979982703924179,
0.05025039240717888,
-0.21617121994495392,
-0.3248880207538605,
-0.5105348229408264,
-0.3189551830291748,
0.13110637664794922,
-0.029471363872289658,
0.08727961778640747,
0.3062434196472168,
0.22816342115402222,
0.45089465379714966,
-0.05257170647382736,
0.03958351910114288,
-0.17399455606937408,
-0.0077800932340323925,
0.3531797230243683,
-0.014841243624687195,
-0.3720351755619049,
0.007991043850779533,
-0.16509993374347687,
0.13139070570468903,
-0.011758415028452873,
-0.179090678691864,
-0.5396491885185242,
-0.14006084203720093,
0.2884002923965454,
0.022943705320358276,
-0.09574878960847855,
0.37425482273101807,
0.05397354066371918,
-0.15105058252811432,
-0.19747616350650787,
-0.08226355910301208,
0.031774114817380905,
0.31725654006004333,
0.02196475863456726,
-0.06948907673358917,
0.29087966680526733,
0.05522137135267258,
0.28113967180252075,
-0.1133231595158577,
-0.25137490034103394,
0.4198067784309387,
-0.2915055751800537,
0.24614250659942627,
-0.0716574564576149,
-0.47660255432128906,
-0.07762269675731659,
-0.05550077557563782,
-0.0022867487277835608,
-0.03606060892343521,
-0.29894962906837463,
-0.22007177770137787,
-0.29700809717178345,
-0.12197656184434891,
-0.35955503582954407,
-0.15417678654193878,
0.06091439723968506,
0.08911897242069244,
0.05580601468682289,
0.14045393466949463,
0.15506567060947418,
-0.3061161935329437,
0.00887693464756012,
0.000019207343939342536,
0.1075969785451889,
0.03720723092556,
-0.2144528180360794,
-0.2214946746826172,
-0.2509341239929199,
-0.29100754857063293,
0.3232392370700836,
0.04779535159468651,
-0.025101272389292717,
-0.10718443989753723,
-0.10485958307981491,
0.08477193117141724,
-0.05435014143586159,
0.6767697334289551,
-0.19645176827907562,
0.07104101032018661,
0.4911930561065674,
0.2105492353439331,
-0.43208950757980347,
0.024922305718064308,
-0.4132968485355377,
0.11259093880653381,
0.16018082201480865,
0.3240833580493927,
-0.3951096832752228,
-0.054245416074991226,
0.2625245153903961,
-0.03598526120185852,
-0.05942186340689659,
-0.2696702778339386,
-0.2357654571533203,
-0.25578853487968445,
-0.10776621103286743,
0.19629602134227753,
0.03532666712999344,
0.4339832663536072,
-0.26493269205093384,
-0.11057068407535553,
-0.239061638712883,
0.042895473539829254,
0.1868518739938736,
0.25458088517189026,
0.26250767707824707,
-0.16144350171089172,
-0.1597982794046402,
-0.17626380920410156,
0.05880191922187805,
0.2780003547668457,
0.28820979595184326,
0.04454117268323898,
-0.41376760601997375,
0.01571798510849476,
0.058139167726039886,
0.26119062304496765,
0.04642549902200699,
-0.13333332538604736,
-0.030798008665442467,
-0.04032912105321884,
0.09743097424507141,
0.1435645967721939,
0.21770493686199188,
0.3860846161842346,
0.05959640443325043,
-0.3346399962902069,
-0.24376395344734192,
0.34551751613616943,
0.14844240248203278,
0.05053650215268135,
0.01700824871659279,
0.2781257927417755,
-0.2117077112197876,
0.28811362385749817,
-0.020154522731900215,
1.0111833810806274,
0.06905270367860794,
-0.05979261174798012,
0.581610918045044,
-0.09528438746929169,
0.5560988187789917,
-0.06480225175619125,
0.18613256514072418,
-0.2962428629398346,
-0.3566815257072449,
-0.03657226264476776,
-0.16786505281925201,
0.2394377887248993,
0.06466701626777649,
-0.6077868938446045,
0.23067741096019745,
-0.2865697741508484,
0.14132583141326904,
0.03720052167773247,
-0.031340811401605606,
-0.006926978938281536,
-0.024181382730603218,
-0.385690301656723,
0.21182119846343994,
-0.12286966294050217,
0.10142728686332703,
-0.08456426858901978,
-0.10637851059436798,
-0.1233796700835228,
-0.1591435670852661,
-0.10481001436710358,
0.04311199113726616,
-0.5134389400482178,
-0.15310372412204742,
0.05204286798834801,
-0.17723143100738525,
-0.0729142501950264,
0.18729105591773987,
0.04021743685007095,
0.07752390950918198,
-0.18711628019809723,
0.1700202226638794,
0.19995130598545074,
0.09996587038040161,
-0.06926260143518448,
-0.03328834846615791,
0.4308822751045227,
-0.09169300645589828,
-0.39867275953292847,
0.12750239670276642,
-0.04706840217113495,
0.1355866640806198,
0.35485324263572693,
0.018290452659130096,
-0.02078438550233841,
-0.4515138566493988,
-0.0984327420592308,
-0.14358504116535187,
0.20594744384288788,
-0.3068612515926361,
0.2612112760543823,
-0.0072332420386374,
-0.13729219138622284,
0.01083998754620552,
-0.03577358275651932,
-0.018512018024921417,
-0.03987777233123779,
0.3423735499382019,
0.3180933892726898,
0.4484288692474365,
0.24653084576129913,
0.2419540137052536,
-0.12122222036123276,
-0.32009148597717285,
0.15322017669677734,
0.23080167174339294,
-0.42240551114082336,
0.2418847233057022,
0.22600588202476501,
-0.12146603316068649,
-0.05342014878988266,
0.4723210334777832,
0.08754117041826248,
0.1689215451478958,
-0.12573949992656708,
-0.1489039957523346,
-0.23443269729614258,
0.32416149973869324,
0.10228290408849716,
0.00407989090308547,
0.11474631726741791,
0.4286707043647766,
0.23789985477924347,
0.017731422558426857,
-0.44404926896095276,
-0.028685081750154495,
-0.46778109669685364,
0.0705270767211914,
-0.026069877669215202,
-0.2602924406528473,
0.2004084438085556,
-0.00384850543923676,
0.2606964707374573,
0.1246233731508255,
-0.07571522891521454,
-0.36216896772384644,
-0.16297012567520142,
0.09021418541669846,
-0.0021697941701859236,
0.17059794068336487,
0.18762962520122528,
0.033648308366537094,
-0.23033668100833893,
-0.12813949584960938,
0.09217662364244461,
-0.05532974749803543,
-0.14670132100582123,
0.21817941963672638,
0.2054452896118164,
0.3228445053100586,
0.017990967258810997,
-0.013671055436134338,
0.015237856656312943,
-0.09246278554201126,
-0.034831151366233826,
-0.005064174998551607,
0.12457144260406494,
-0.029217133298516273,
-0.09140521287918091,
-0.0829484760761261,
0.19211775064468384,
0.13565050065517426,
0.020348835736513138,
-0.2578238248825073,
-0.27413177490234375,
-0.11455648392438889,
0.2158730924129486,
0.12111612409353256,
-0.15752142667770386,
0.1765076220035553,
-0.010932008735835552,
0.351384699344635,
-0.3763161301612854,
-0.010254035703837872,
0.23012298345565796,
-0.03496021404862404,
0.2269829362630844,
0.04630104452371597,
-0.2856040894985199,
0.3148675560951233,
-0.20312558114528656,
0.09068062901496887,
0.2280462235212326,
-0.044347308576107025,
0.10810976475477219,
0.27683448791503906,
-0.16949836909770966,
-0.033468347042798996,
0.41233766078948975,
0.07038675993680954,
0.14827653765678406,
0.021170828491449356,
0.012819234281778336,
0.1463378667831421,
-0.022167040035128593,
0.08586721122264862,
0.3090980052947998,
-0.3254103362560272,
0.032302167266607285,
0.20969754457473755,
0.027855465188622475,
-0.07970114052295685,
-0.26090216636657715,
0.5160671472549438,
-0.26350143551826477,
-0.14457876980304718,
-0.3344385623931885,
0.13850870728492737,
-0.20031626522541046,
0.0369843989610672,
-0.20154504477977753,
-0.11117786169052124,
-0.18699242174625397,
-0.30661991238594055,
0.025955749675631523,
-0.0909678041934967,
0.24166032671928406,
-0.04935774579644203,
-0.02893645316362381,
-0.2844856083393097,
-0.05236676335334778,
0.35965293645858765,
0.22716030478477478,
-0.20385907590389252,
0.10305500030517578,
0.024704087525606155,
0.1235099732875824,
-0.1864326149225235,
0.5136397480964661,
0.42702051997184753,
0.28573402762413025,
-0.1543850302696228,
-0.0936768427491188,
0.03454872965812683,
-0.30909690260887146,
0.07066019624471664,
0.09696517884731293,
0.2919446527957916,
0.2387925088405609,
0.06440382450819016,
0.2788918614387512,
-0.2833413779735565,
0.17622797191143036,
-0.06019348278641701,
0.07524442672729492,
-0.37077796459198,
0.33053141832351685,
-0.1943279355764389,
-0.16332176327705383,
-0.16632124781608582,
-0.008691210299730301,
-0.4805714190006256,
0.17004193365573883,
0.33456671237945557,
0.15055353939533234,
0.1827457696199417,
-0.18984465301036835,
0.1426258683204651,
-0.20634067058563232,
0.22429651021957397,
-0.0433824397623539,
0.3339897692203522,
-0.27990061044692993,
0.11789435893297195,
-0.4362551271915436,
0.39369311928749084,
-0.04484806954860687,
-0.048964377492666245,
0.0756327211856842,
-0.08401600271463394,
-0.16167289018630981,
0.034948691725730896,
-0.07442465424537659,
0.24086737632751465,
0.12785257399082184,
0.0993812084197998,
-0.6071125864982605,
-0.19964741170406342,
-0.11191005259752274,
-0.23076939582824707,
0.13617029786109924,
-0.24145053327083588,
-0.0472431406378746,
-0.1864432394504547,
0.11470165103673935,
0.04279622808098793,
-0.30284082889556885,
0.1948680728673935,
0.29543164372444153,
0.6067333817481995,
0.1576172411441803,
0.40076205134391785,
-0.01385089848190546,
0.09977003186941147,
0.06332062184810638,
-0.2700609862804413,
-0.15275242924690247,
0.19264137744903564,
0.13509385287761688,
0.350553035736084,
0.07576809823513031,
0.2320173978805542,
-0.06884177774190903,
0.07770350575447083,
0.05885857716202736,
-0.1243833601474762,
-0.12214943021535873,
0.16369888186454773,
-0.11731532961130142,
-0.22617463767528534,
-0.25561851263046265,
0.028279049322009087,
0.07528204470872879,
0.04704518988728523,
-0.08772247284650803,
-0.2791987955570221,
0.6700650453567505,
-0.33414897322654724,
-0.26968681812286377,
-0.050919536501169205,
0.20019596815109253,
0.2284441441297531,
-0.2409944087266922,
-0.629392683506012,
-0.008995858021080494,
0.4204946458339691,
0.022011712193489075,
-0.2528340220451355,
0.21365317702293396,
-0.06413591653108597,
0.15530496835708618,
-0.063470758497715,
0.021186677739024162,
-0.11201652884483337,
-0.056375421583652496,
0.04750323295593262,
-0.2333325892686844
] |
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.01708633452653885,
-0.32405203580856323,
0.06212107092142105,
0.21036720275878906,
0.38401085138320923,
-0.015518794767558575,
0.4157937467098236,
0.17859210073947906,
0.18794035911560059,
0.3116176426410675,
-0.2562713921070099,
0.2617369592189789,
-0.09007831662893295,
0.15559794008731842,
0.13464656472206116,
-0.17832382023334503,
-0.17807051539421082,
0.23624306917190552,
-0.14293792843818665,
-0.061041757464408875,
-0.3072659969329834,
0.0160216037184,
-0.2765931189060211,
0.15632742643356323,
-0.3710363805294037,
-0.2232295274734497,
-0.07274948805570602,
-0.03378615900874138,
-0.3516705334186554,
-0.3736092746257782,
0.35026994347572327,
-0.014940247870981693,
0.10775116086006165,
0.39366966485977173,
-0.00010927302355412394,
0.03974910080432892,
0.553189754486084,
0.091672383248806,
-0.12151895463466644,
-0.4864455759525299,
0.0033007063902914524,
-0.15359260141849518,
0.264088898897171,
-0.29718834161758423,
-0.249143585562706,
-0.16786925494670868,
-0.0046057188883423805,
0.15467192232608795,
0.39776042103767395,
0.506828784942627,
0.2735916078090668,
0.5179872512817383,
0.1557459831237793,
-0.3057214915752411,
0.2476203292608261,
0.1295626163482666,
-0.08303327113389969,
0.36455053091049194,
0.08680263161659241,
0.0324830524623394,
0.24765893816947937,
0.22567132115364075,
-0.2615951597690582,
-0.10203283280134201,
0.24819988012313843,
0.07144887000322342,
0.056582070887088776,
-0.3359339237213135,
-0.08744124323129654,
0.34583649039268494,
0.21765018999576569,
-0.4307979643344879,
-0.27401041984558105,
-0.01567181944847107,
0.15893295407295227,
-0.2778739035129547,
0.21526409685611725,
0.1117764487862587,
-0.061429914087057114,
0.2610109746456146,
-0.04775971174240112,
0.2916438579559326,
-0.27248719334602356,
0.22647351026535034,
0.033229660242795944,
0.09982987493276596,
-0.09743495285511017,
0.08648307621479034,
0.3184734582901001,
-0.19785988330841064,
-0.07124781608581543,
-0.07448431849479675,
0.07654039561748505,
0.19978779554367065,
-0.2625725567340851,
-0.15699908137321472,
0.04121486097574234,
-0.05275550112128258,
0.2478983849287033,
-0.06231233850121498,
0.010697493329644203,
-0.07843716442584991,
0.0866345539689064,
0.39452311396598816,
0.14579448103904724,
0.3695581257343292,
0.2746928334236145,
0.05964306369423866,
0.14712592959403992,
0.26839011907577515,
-0.11799246072769165,
0.05507409945130348,
-0.18129034340381622,
-0.05057648569345474,
0.2737025320529938,
0.10107771307229996,
0.4157114326953888,
-0.01238526962697506,
-0.3835289776325226,
-0.03406138718128204,
-0.24938906729221344,
0.2141653150320053,
0.21702218055725098,
0.4983268678188324,
-0.10985292494297028,
-0.006582926493138075,
0.1920764148235321,
0.17827123403549194,
-0.12116017937660217,
-0.13048581779003143,
-0.23571842908859253,
0.3422308564186096,
-0.3215109705924988,
-0.061732180416584015,
0.2265957146883011,
0.030896790325641632,
0.003928022924810648,
-0.004729343578219414,
0.06826049089431763,
-0.04180394485592842,
-0.01869443617761135,
-0.34790322184562683,
-0.08214839547872543,
0.25354865193367004,
0.032342687249183655,
-0.06852497160434723,
0.2264004498720169,
-0.4100438058376312,
-0.09811767190694809,
0.13097862899303436,
-0.0746355950832367,
-0.17959851026535034,
-0.23042240738868713,
0.23439116775989532,
-0.25608766078948975,
-0.02130301482975483,
-0.09343475103378296,
0.021253807470202446,
0.14475087821483612,
0.10136625170707703,
0.12724201381206512,
-0.01907772570848465,
0.017888857051730156,
-0.21807105839252472,
0.13807262480258942,
0.3654908239841461,
-0.10019104927778244,
-0.3205658197402954,
0.032153304666280746,
-0.002530493540689349,
0.11718623340129852,
-0.017370425164699554,
0.0019337742123752832,
0.2421710193157196,
-0.03054741397500038,
0.16688664257526398,
0.4985632598400116,
-0.6241476535797119,
-0.3442804515361786,
-0.2747381925582886,
-0.08063721656799316,
-0.016146335750818253,
0.039329465478658676,
-0.228688046336174,
0.1914646178483963,
0.2106938511133194,
0.44530031085014343,
0.15278014540672302,
0.15220947563648224,
0.016763746738433838,
-0.2598269581794739,
-0.2841210663318634,
-0.14923007786273956,
0.12166418880224228,
0.05722282826900482,
-0.06118283048272133,
-0.12467833608388901,
-0.33158302307128906,
0.043995920568704605,
-0.14642444252967834,
-0.09477902948856354,
-0.0285353846848011,
0.4802519381046295,
-0.026793675497174263,
-0.033461347222328186,
-0.5103316307067871,
-0.31101173162460327,
0.14441058039665222,
-0.08274389058351517,
0.49631136655807495,
-0.2935878038406372,
-0.24010206758975983,
-0.37979838252067566,
0.0216782558709383,
-0.026031259447336197,
-0.10736499726772308,
0.2608529031276703,
-0.02930048666894436,
-0.0793890655040741,
0.20398560166358948,
-0.1481565535068512,
0.3061811327934265,
-0.0629672184586525,
0.3361930251121521,
-0.08991215378046036,
0.252078115940094,
-0.051909394562244415,
-0.45358994603157043,
0.017811981961131096,
0.3152446746826172,
0.4074850082397461,
0.01843002252280712,
0.04007432609796524,
0.20596477389335632,
0.12007342278957367,
-0.2516605257987976,
-0.38797032833099365,
-0.20597954094409943,
0.09089533984661102,
-0.20526915788650513,
-0.1253313571214676,
-0.11939752846956253,
0.18755760788917542,
0.04323781281709671,
0.08160291612148285,
0.4845341444015503,
0.0002881813852582127,
0.14473576843738556,
-0.0010888214455917478,
0.21922588348388672,
0.04642488807439804,
-0.22235126793384552,
-0.19437023997306824,
-0.11165419220924377,
0.10983750969171524,
0.030224284157156944,
0.2480699121952057,
0.017976069822907448,
-0.14541637897491455,
0.016800159588456154,
0.6618239879608154,
0.04202531650662422,
0.25825801491737366,
-0.11820684373378754,
-0.36609092354774475,
0.25134843587875366,
0.1739424169063568,
0.08760542422533035,
0.3652849495410919,
0.25241440534591675,
-0.2956426441669464,
0.0845421701669693,
-0.163593128323555,
0.05055677518248558,
0.09764914214611053,
-0.06796039640903473,
0.36849915981292725,
-0.09125301241874695,
0.30753856897354126,
0.0185328871011734,
-0.30900630354881287,
0.07445813715457916,
-0.07930716872215271,
0.10628725588321686,
-0.3757317066192627,
0.11505004018545151,
-0.2569517195224762,
-0.14785149693489075,
-0.008882143534719944,
-0.1333736777305603,
0.026657627895474434,
-0.19740422070026398,
-0.05986820161342621,
0.35848984122276306,
0.08938464522361755,
0.28264108300209045,
0.20691987872123718,
0.019235482439398766,
-0.05906124413013458,
-0.10304872691631317,
-0.15513131022453308,
-0.10861778259277344,
-0.11700130999088287,
0.08233887702226639,
0.0588655062019825,
0.19155104458332062,
0.3331587314605713,
-0.31432756781578064,
0.09096045792102814,
0.1370227038860321,
-0.30263611674308777,
0.08582178503274918,
-0.17404410243034363,
0.2888217866420746,
0.2684487998485565,
0.15894430875778198,
-0.17590507864952087,
-0.062461335211992264,
0.43404915928840637,
-0.3824958801269531,
-0.1924286037683487,
0.2827723026275635,
-0.14143627882003784,
-0.0550839900970459,
-0.2623378336429596,
-0.2640996277332306,
-0.5197219252586365,
-0.294631689786911,
0.25503286719322205,
0.02269965037703514,
0.07175672799348831,
0.3472682535648346,
0.23404893279075623,
0.45231831073760986,
-0.3834226429462433,
-0.022939017042517662,
-0.144119530916214,
0.041289087384939194,
0.27287790179252625,
-0.08202559500932693,
-0.4259679615497589,
-0.007768501061946154,
-0.08550979197025299,
0.2539594769477844,
-0.1286991387605667,
-0.0568946972489357,
-0.44794800877571106,
-0.12663057446479797,
0.3238251209259033,
0.008614474907517433,
-0.1531495451927185,
0.6029995083808899,
0.015640558674931526,
-0.10780996829271317,
-0.15833397209644318,
-0.1767384260892868,
0.10459316521883011,
0.13827532529830933,
0.0056553673930466175,
-0.07007050514221191,
0.24532826244831085,
-0.026514727622270584,
0.3515644073486328,
-0.00499273557215929,
-0.20518937706947327,
0.34712111949920654,
-0.30444276332855225,
0.31469595432281494,
-0.12184067070484161,
-0.5708717703819275,
-0.07277804613113403,
-0.026523666456341743,
0.05206770449876785,
-0.13308794796466827,
-0.2462664097547531,
-0.0897768959403038,
-0.32857459783554077,
-0.17385485768318176,
-0.4415079951286316,
-0.23245400190353394,
0.05816258490085602,
0.13060981035232544,
-0.0827689990401268,
0.09588617831468582,
0.07748588919639587,
-0.35680699348449707,
0.05631091445684433,
-0.013216507621109486,
0.21224090456962585,
0.03561397269368172,
-0.18780626356601715,
-0.4234541952610016,
-0.2692607045173645,
-0.35538944602012634,
0.38304081559181213,
0.04684114828705788,
0.011089099571108818,
-0.0506005734205246,
-0.10247872024774551,
0.14107689261436462,
0.007634968031197786,
0.6806129217147827,
-0.030129745602607727,
-0.005590246059000492,
0.41600024700164795,
0.14175328612327576,
-0.6230164766311646,
0.07060670107603073,
-0.30217117071151733,
0.053191617131233215,
0.1227661743760109,
0.39853230118751526,
-0.46623408794403076,
-0.15596938133239746,
0.33630648255348206,
-0.037249282002449036,
-0.03282306343317032,
-0.21794097125530243,
-0.2882831394672394,
-0.3978615999221802,
-0.21368709206581116,
0.12518532574176788,
0.14489033818244934,
0.3859938681125641,
-0.22502140700817108,
-0.1091160848736763,
-0.12406709790229797,
0.09480059146881104,
0.03402164950966835,
0.2724270820617676,
0.23626762628555298,
-0.22808459401130676,
-0.09541317075490952,
0.011318758130073547,
0.08381722122430801,
0.25146397948265076,
0.2685817778110504,
-0.04332025349140167,
-0.5514886975288391,
-0.1514350324869156,
0.10565221309661865,
0.21616385877132416,
0.0786001980304718,
-0.13576166331768036,
0.00797171052545309,
-0.0911870151758194,
0.1339934915304184,
0.21577565371990204,
0.11816341429948807,
0.4902132749557495,
0.16989223659038544,
-0.2991672456264496,
-0.1917191743850708,
0.45214956998825073,
0.1290634721517563,
0.04472021013498306,
0.14727358520030975,
0.4835737645626068,
-0.16907793283462524,
0.27797070145606995,
-0.11960729211568832,
1.0848116874694824,
-0.003083023941144347,
-0.005264658480882645,
0.5609252452850342,
-0.10633443295955658,
0.6737447381019592,
0.0900181382894516,
0.2337672859430313,
-0.3639942705631256,
-0.19401130080223083,
-0.01781684346497059,
-0.1334923952817917,
0.2924991846084595,
-0.0650968849658966,
-0.5087831616401672,
0.17536737024784088,
-0.23621559143066406,
0.16399765014648438,
0.04378163814544678,
0.04702508822083473,
-0.11160064488649368,
-0.16344188153743744,
-0.3191119432449341,
0.1553265005350113,
-0.018995966762304306,
0.23817013204097748,
-0.029342712834477425,
-0.10321700572967529,
-0.2884882986545563,
-0.25003737211227417,
-0.1799219846725464,
0.048640958964824677,
-0.48934969305992126,
-0.2644634246826172,
0.2028953582048416,
-0.17350131273269653,
-0.2620542347431183,
0.03505629301071167,
0.17360608279705048,
0.027179284021258354,
-0.22951704263687134,
0.08504229038953781,
-0.01163087971508503,
-0.005728306248784065,
-0.06122838705778122,
-0.12011650204658508,
0.45167723298072815,
-0.18062321841716766,
-0.555999219417572,
-0.0021980765741318464,
0.028342194855213165,
0.1189500018954277,
0.33977392315864563,
0.05339393392205238,
-0.07207740098237991,
-0.37655550241470337,
-0.1956300437450409,
-0.08635666221380234,
0.21713995933532715,
-0.28493931889533997,
0.215872123837471,
-0.07561858743429184,
-0.17487087845802307,
-0.002015794161707163,
-0.021698350086808205,
-0.054684143513441086,
0.018115999177098274,
0.39953553676605225,
0.25003698468208313,
0.3563719689846039,
0.25368764996528625,
0.14535173773765564,
-0.12770457565784454,
-0.2788093388080597,
0.04545137286186218,
0.2644440531730652,
-0.5634874105453491,
0.14802798628807068,
0.21778897941112518,
-0.12832321226596832,
-0.0758904218673706,
0.42554086446762085,
0.03409698233008385,
0.019988154992461205,
-0.10816045105457306,
-0.171110600233078,
-0.247455433011055,
0.45197972655296326,
-0.05328823998570442,
-0.05338926985859871,
0.2934171259403229,
0.5443691611289978,
0.22287161648273468,
0.0077445534989237785,
-0.4028412401676178,
0.02584773115813732,
-0.3943949341773987,
0.051604993641376495,
0.05062435567378998,
-0.2735674977302551,
0.27415400743484497,
-0.06078733503818512,
0.22359421849250793,
0.200898215174675,
-0.06483789533376694,
-0.32924187183380127,
-0.15746046602725983,
0.10207019001245499,
0.013246613554656506,
0.15583524107933044,
0.14049048721790314,
0.042923275381326675,
-0.1865483969449997,
-0.1436392366886139,
0.16466185450553894,
-0.04848726466298103,
-0.05196717008948326,
0.23716691136360168,
0.16914430260658264,
0.3118644654750824,
0.04954623058438301,
0.09092971682548523,
-0.0028739843983203173,
-0.12940432131290436,
-0.0817832499742508,
0.017881890758872032,
0.009517847560346127,
0.02641751617193222,
-0.05654901638627052,
-0.10739504545927048,
0.12409252673387527,
0.17480388283729553,
0.09074021130800247,
-0.24518351256847382,
-0.35292157530784607,
-0.2803749740123749,
0.1817103773355484,
0.15338079631328583,
-0.15438109636306763,
0.1704658716917038,
-0.06709495931863785,
0.2948549687862396,
-0.4210548996925354,
0.023962611332535744,
0.21941357851028442,
-0.006779755465686321,
0.1791743040084839,
0.1512834131717682,
-0.27324002981185913,
0.20631130039691925,
-0.04716319218277931,
0.02835845574736595,
0.4666557312011719,
0.018107056617736816,
0.08895023167133331,
0.26311182975769043,
-0.13171111047267914,
-0.03442607820034027,
0.4894236624240875,
0.15612629055976868,
0.2242719531059265,
-0.00697089359164238,
-0.08840230107307434,
0.22369655966758728,
-0.1240096390247345,
0.07492214441299438,
0.29260560870170593,
-0.2168327420949936,
-0.0012599193723872304,
0.1986996978521347,
0.09429353475570679,
-0.1275276243686676,
-0.33495187759399414,
0.5498442649841309,
-0.23958900570869446,
-0.21077068150043488,
-0.17772121727466583,
0.19504550099372864,
-0.2097446322441101,
-0.001230391557328403,
-0.1400182694196701,
-0.08104902505874634,
-0.12686070799827576,
-0.4116223156452179,
0.05615321546792984,
-0.15146204829216003,
0.48629581928253174,
-0.12111206352710724,
-0.08711981773376465,
-0.2842109203338623,
-0.21753685176372528,
0.40874889492988586,
0.30504634976387024,
-0.15429294109344482,
0.18808388710021973,
0.07063888758420944,
0.1759781539440155,
-0.2439066618680954,
0.5857952237129211,
0.4205299913883209,
0.20320521295070648,
-0.08770465105772018,
-0.03941244259476662,
-0.0987188071012497,
-0.3073499798774719,
0.07585035264492035,
0.16010348498821259,
0.3437223434448242,
0.22101062536239624,
0.002097126329317689,
0.2533307671546936,
-0.24432630836963654,
0.22705265879631042,
-0.10374125838279724,
0.04407113790512085,
-0.4042602479457855,
0.3363022804260254,
-0.3260604441165924,
-0.24991518259048462,
-0.32512563467025757,
0.007001881953328848,
-0.40861430764198303,
0.1709921807050705,
0.3403102159500122,
0.004055223893374205,
0.1531255692243576,
-0.3124786615371704,
0.10259968787431717,
-0.12374897301197052,
0.28728020191192627,
-0.04214292764663696,
0.2992597818374634,
-0.18125103414058685,
0.07317853718996048,
-0.42496079206466675,
0.3959839642047882,
-0.12529271841049194,
-0.11226202547550201,
0.08735142648220062,
-0.16188332438468933,
-0.14888843894004822,
0.03998517990112305,
0.05573441833257675,
0.4386809766292572,
0.05670362710952759,
-0.059052418917417526,
-0.5389714241027832,
-0.15329155325889587,
-0.13442954421043396,
-0.2273552268743515,
0.20098906755447388,
-0.25202056765556335,
0.08007784187793732,
-0.14424195885658264,
0.06376690417528152,
0.029505597427487373,
-0.09635920822620392,
0.1442125290632248,
0.06708255410194397,
0.6210787296295166,
0.18810401856899261,
0.33924180269241333,
-0.04305378347635269,
-0.06899578869342804,
0.02499285340309143,
-0.17406724393367767,
-0.24063606560230255,
0.2803036570549011,
0.21602857112884521,
0.2756668031215668,
0.0625704750418663,
0.08705434948205948,
-0.04754490405321121,
0.10858748108148575,
0.08250273019075394,
-0.22646911442279816,
-0.06166669726371765,
0.11979424953460693,
-0.02025822177529335,
-0.23730510473251343,
-0.19963447749614716,
0.06107083335518837,
0.005293633788824081,
0.07696878910064697,
-0.2243453860282898,
-0.24810092151165009,
0.7152534127235413,
-0.2563151717185974,
-0.26380008459091187,
0.05539305508136749,
0.2930927574634552,
0.11650419980287552,
-0.4328463673591614,
-0.7834484577178955,
0.016644950956106186,
0.29394206404685974,
0.08392646163702011,
-0.224029079079628,
0.2948252856731415,
0.010084747336804867,
0.048218194395303726,
-0.07461746037006378,
0.13523709774017334,
0.04077070951461792,
-0.016858670860528946,
0.07124673575162888,
-0.20073989033699036
] |
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.2277717888355255,
-0.31934982538223267,
0.0008596048573963344,
0.3918522000312805,
0.3677235245704651,
0.055745333433151245,
0.317633718252182,
0.15452899038791656,
0.1733444184064865,
0.296028196811676,
-0.14268605411052704,
0.4552958309650421,
-0.07765696942806244,
0.22984382510185242,
0.049333490431308746,
-0.1651725023984909,
-0.21050333976745605,
0.2611338496208191,
-0.11917068809270859,
0.026228168979287148,
-0.50922030210495,
-0.07414790242910385,
-0.16408497095108032,
0.13499264419078827,
-0.23775465786457062,
-0.2719808518886566,
-0.12409459054470062,
0.040825679898262024,
-0.19214265048503876,
-0.28385022282600403,
0.36457133293151855,
-0.08018814772367477,
0.21226215362548828,
0.59889155626297,
-0.00010084890527650714,
-0.15145406126976013,
0.43520599603652954,
0.04760037735104561,
-0.12549129128456116,
-0.35230422019958496,
-0.29466375708580017,
-0.3847203552722931,
0.18985725939273834,
-0.38270264863967896,
-0.07430335134267807,
-0.008201698772609234,
0.028609080240130424,
-0.242637500166893,
0.34812477231025696,
0.3484523892402649,
0.35069942474365234,
0.41590356826782227,
0.08335818350315094,
-0.28238123655319214,
0.1884775012731552,
0.07757232338190079,
-0.10485311597585678,
0.2966809868812561,
0.06237315759062767,
-0.016479311510920525,
0.31453365087509155,
0.16020415723323822,
-0.2830140292644501,
-0.05429888144135475,
0.25512129068374634,
0.06458748131990433,
-0.005323885940015316,
-0.3559246063232422,
0.03103676065802574,
0.30667027831077576,
0.41957128047943115,
-0.39462482929229736,
-0.18722057342529297,
0.06077725812792778,
0.12990844249725342,
-0.22349782288074493,
0.15397274494171143,
-0.011558984406292439,
-0.006477156654000282,
0.06588654965162277,
-0.00403642700985074,
0.155792236328125,
-0.23680473864078522,
0.21838344633579254,
-0.166423961520195,
0.09019751101732254,
-0.21209998428821564,
0.10706394910812378,
0.06709757447242737,
-0.1992393434047699,
0.045229408890008926,
-0.18398600816726685,
0.03513520583510399,
0.10960429161787033,
-0.22112667560577393,
-0.1452791541814804,
0.12990142405033112,
0.11116823554039001,
0.12701068818569183,
-0.24557748436927795,
0.1168714091181755,
-0.04831169545650482,
-0.02369585819542408,
0.40717145800590515,
0.23989392817020416,
0.21606512367725372,
0.19707214832305908,
0.14963380992412567,
0.21602937579154968,
0.04413441941142082,
-0.1853792518377304,
-0.051974162459373474,
-0.12557633221149445,
-0.10145648568868637,
0.28146225214004517,
0.19620639085769653,
0.569689154624939,
-0.0633770003914833,
-0.4451119899749756,
-0.0369892455637455,
-0.2070900797843933,
0.09236692637205124,
0.2541407644748688,
0.37839171290397644,
-0.18408653140068054,
0.15318118035793304,
0.21491797268390656,
0.06958386301994324,
-0.14264096319675446,
-0.23278231918811798,
-0.2402682900428772,
0.3336760401725769,
-0.2726964056491852,
-0.23244844377040863,
0.07322376221418381,
0.08000853657722473,
-0.10165183991193771,
0.05153471976518631,
-0.046605996787548065,
0.07362622022628784,
0.10525663197040558,
-0.382973849773407,
-0.17160022258758545,
0.16135072708129883,
0.13423681259155273,
-0.010921849869191647,
0.3575492203235626,
-0.41323113441467285,
-0.14554263651371002,
0.10808688402175903,
-0.3179212808609009,
-0.09275377541780472,
-0.09039182960987091,
0.32125577330589294,
-0.23628981411457062,
-0.07920943945646286,
-0.19519110023975372,
-0.004734909627586603,
0.077216736972332,
-0.20212046802043915,
0.02438708208501339,
-0.1612922102212906,
0.009970682673156261,
-0.4124753475189209,
0.039672642946243286,
0.5434513688087463,
-0.37022554874420166,
-0.13193170726299286,
-0.3559999465942383,
-0.05267136171460152,
0.3650830388069153,
-0.1617242842912674,
0.08691880851984024,
0.20492619276046753,
-0.16195574402809143,
-0.07837900519371033,
0.5953564643859863,
-0.36260107159614563,
-0.1942623257637024,
0.055629562586545944,
-0.07925167679786682,
-0.058040499687194824,
-0.06744794547557831,
-0.014070553705096245,
0.0950176864862442,
0.1139310970902443,
0.40954047441482544,
0.2211548238992691,
-0.06333056092262268,
-0.02786981873214245,
-0.19504022598266602,
-0.1733904778957367,
0.16490298509597778,
0.091837577521801,
0.14367234706878662,
0.16262559592723846,
0.06308355927467346,
-0.20378491282463074,
0.01849423721432686,
-0.03979209437966347,
-0.09291737526655197,
-0.06524170935153961,
0.6565251350402832,
-0.08722405135631561,
-0.07887369394302368,
-0.5945642590522766,
-0.3253449499607086,
0.16847887635231018,
-0.06773649901151657,
0.28072309494018555,
-0.14473308622837067,
-0.17076821625232697,
-0.3664011061191559,
0.0677761659026146,
-0.049829140305519104,
0.04808838292956352,
0.3426540791988373,
0.1271563619375229,
-0.19987215101718903,
0.04511837288737297,
-0.1443466693162918,
0.17791980504989624,
-0.14985951781272888,
0.10199569165706635,
-0.005735407583415508,
0.30328306555747986,
-0.010558279231190681,
-0.3550935685634613,
0.04372115805745125,
0.23754411935806274,
0.5392078161239624,
0.030110778287053108,
-0.07144980877637863,
0.29617151618003845,
0.08397292345762253,
-0.13781502842903137,
-0.14906591176986694,
-0.08285408467054367,
0.11919119954109192,
-0.2615099847316742,
0.0761331170797348,
0.11351048201322556,
0.34134769439697266,
-0.0806758776307106,
0.13791555166244507,
0.5502915978431702,
0.07054278254508972,
0.21825061738491058,
-0.042579617351293564,
0.2359917163848877,
-0.045875195413827896,
-0.04047543928027153,
-0.09132033586502075,
-0.13912305235862732,
0.13101375102996826,
0.09693329781293869,
0.1783953756093979,
-0.06409047544002533,
-0.11669480055570602,
0.06287836283445358,
0.567564070224762,
0.09858553856611252,
0.38464897871017456,
-0.07103820145130157,
-0.300226628780365,
0.15484510362148285,
0.08901749551296234,
0.28227970004081726,
0.4458233714103699,
0.3082369565963745,
-0.13481689989566803,
0.002844827249646187,
-0.10547352582216263,
0.09092573076486588,
0.06957720220088959,
-0.008273890241980553,
0.21120792627334595,
-0.018398068845272064,
0.17825211584568024,
0.07994454354047775,
-0.17789337038993835,
-0.04522005841135979,
-0.22354428470134735,
0.2644324004650116,
-0.35881778597831726,
0.1916423738002777,
-0.267538845539093,
-0.16936078667640686,
0.04168180003762245,
-0.06624147295951843,
-0.1583891063928604,
-0.34399667382240295,
-0.23224134743213654,
0.02564012072980404,
0.11330529302358627,
0.1315740942955017,
0.11442555487155914,
0.15597139298915863,
0.008065528236329556,
0.08559388667345047,
-0.16564863920211792,
-0.10267563164234161,
-0.12899354100227356,
0.16394028067588806,
0.12112601846456528,
0.21240754425525665,
0.485167920589447,
-0.22811324894428253,
0.24508211016654968,
-0.026444729417562485,
-0.22799471020698547,
0.0638849288225174,
-0.09600373357534409,
0.49242860078811646,
0.45338502526283264,
0.1707102209329605,
-0.0828905701637268,
-0.01671091467142105,
0.3197825849056244,
-0.36569944024086,
0.0297310259193182,
0.21107271313667297,
-0.22123156487941742,
0.10772017389535904,
-0.15860573947429657,
-0.1741417944431305,
-0.5684421062469482,
-0.41110557317733765,
0.10356123000383377,
0.16801150143146515,
0.16570709645748138,
0.16241984069347382,
0.12474197894334793,
0.5334131717681885,
0.13757435977458954,
0.19339755177497864,
-0.19584597647190094,
-0.04873540624976158,
0.2836107611656189,
-0.12286008149385452,
-0.2586844265460968,
0.1470843255519867,
-0.10504310578107834,
0.2065625935792923,
0.015534295700490475,
-0.1752420961856842,
-0.53934246301651,
-0.17314541339874268,
0.15460382401943207,
-0.08293263614177704,
0.0919007733464241,
0.2602022588253021,
0.1155405342578888,
-0.13905413448810577,
-0.23397709429264069,
-0.14286503195762634,
-0.16614916920661926,
0.25579750537872314,
0.06729342043399811,
0.04017559066414833,
0.3397759199142456,
-0.17836739122867584,
0.12944793701171875,
0.006567265372723341,
-0.234648659825325,
0.34603092074394226,
-0.2629455029964447,
0.34894275665283203,
-0.12483135610818863,
-0.5024334788322449,
-0.14444008469581604,
0.0058216494508087635,
-0.09000464528799057,
-0.04922991618514061,
-0.16131576895713806,
-0.16664005815982819,
-0.3757924735546112,
-0.12356793135404587,
-0.44734451174736023,
-0.17320892214775085,
-0.026835191994905472,
0.21328188478946686,
0.01965866982936859,
-0.01078101061284542,
0.12264080345630646,
-0.46823570132255554,
0.048934388905763626,
-0.051646169275045395,
0.2382136434316635,
0.019747883081436157,
-0.2432863414287567,
-0.24794071912765503,
-0.30901774764060974,
-0.18549393117427826,
0.44906145334243774,
-0.16298943758010864,
0.033765245229005814,
-0.17223937809467316,
-0.020914841443300247,
0.046381957828998566,
-0.01755589246749878,
0.5029237270355225,
-0.34191417694091797,
0.07977236062288284,
0.49850013852119446,
0.13876231014728546,
-0.3840283155441284,
0.17398439347743988,
-0.40702641010284424,
0.3183741569519043,
0.15173260867595673,
0.283777117729187,
-0.31609097123146057,
-0.02061113342642784,
0.2402317076921463,
0.1300393044948578,
-0.1309812068939209,
-0.20839419960975647,
-0.1448211669921875,
-0.23429585993289948,
-0.12783211469650269,
0.024501902982592583,
-0.00371735030785203,
0.30061250925064087,
-0.13161513209342957,
-0.14784950017929077,
-0.3589726686477661,
0.02260715328156948,
0.2575150728225708,
0.20952464640140533,
0.2955667972564697,
-0.09687668830156326,
-0.07358474284410477,
-0.0680023804306984,
0.08212657272815704,
0.19551226496696472,
0.2744944989681244,
0.018946008756756783,
-0.39154815673828125,
0.06302884966135025,
0.056503746658563614,
0.2511690855026245,
0.07812169194221497,
-0.14416714012622833,
-0.053579412400722504,
-0.08006293326616287,
0.19437867403030396,
-0.0523575022816658,
0.1001061424612999,
0.2666037082672119,
0.09289400279521942,
-0.4500442445278168,
-0.34441420435905457,
0.38864660263061523,
0.19110390543937683,
-0.046810928732156754,
0.25152474641799927,
0.25549957156181335,
-0.25870388746261597,
0.24113546311855316,
0.058512479066848755,
1.0566790103912354,
0.04513091593980789,
-0.17906388640403748,
0.4914723336696625,
-0.12531815469264984,
0.5688883066177368,
0.04279673472046852,
0.015406404621899128,
-0.337897926568985,
-0.26562243700027466,
-0.051065001636743546,
-0.15461601316928864,
0.32529327273368835,
-0.09901909530162811,
-0.6059666872024536,
0.2722361385822296,
-0.4187101125717163,
-0.01130365114659071,
-0.0516175851225853,
-0.14507253468036652,
-0.16157524287700653,
-0.1305699199438095,
-0.4006143808364868,
0.2759850025177002,
-0.17678901553153992,
0.17052288353443146,
-0.1539546698331833,
-0.048945553600788116,
0.01745421811938286,
-0.12432325631380081,
-0.10454323142766953,
-0.00681595504283905,
-0.4354238510131836,
-0.20154745876789093,
-0.11793272197246552,
-0.16178494691848755,
0.01737365499138832,
0.14574399590492249,
0.1715211421251297,
0.13368289172649384,
-0.23752771317958832,
0.09018596261739731,
0.06006653979420662,
0.06914373487234116,
-0.08439328521490097,
0.03532776981592178,
0.24274763464927673,
-0.019792022183537483,
-0.31552407145500183,
0.17253948748111725,
0.03479138761758804,
0.1483975052833557,
0.364558607339859,
0.09961339831352234,
-0.08317834883928299,
-0.38849520683288574,
-0.1447438895702362,
-0.06020010635256767,
0.20350569486618042,
-0.25693678855895996,
0.2733272910118103,
0.12671276926994324,
-0.07536587119102478,
0.10747841000556946,
-0.024491604417562485,
-0.09386896342039108,
-0.05633179470896721,
0.2750469148159027,
0.35041382908821106,
0.2657758891582489,
0.09271136671304703,
0.20155228674411774,
-0.21497254073619843,
-0.37389400601387024,
0.26543575525283813,
0.07702445238828659,
-0.2265850305557251,
0.2399500459432602,
0.14243990182876587,
-0.04775659367442131,
-0.07400849461555481,
0.32813748717308044,
0.10603386163711548,
0.04969412088394165,
-0.15294675529003143,
-0.2888399362564087,
-0.2707045376300812,
0.25821810960769653,
0.1262250393629074,
0.07763279229402542,
-0.028471868485212326,
0.2088867574930191,
0.19131721556186676,
-0.04921289533376694,
-0.48227137327194214,
0.06056452542543411,
-0.38360872864723206,
-0.08708029985427856,
0.05517614632844925,
-0.09081285446882248,
0.18941102921962738,
-0.0005159584688954055,
0.2610563039779663,
0.08882583677768707,
-0.08104278147220612,
-0.3424244821071625,
-0.1005697175860405,
0.09644263982772827,
0.0030657651368528605,
0.035218335688114166,
0.14856772124767303,
-0.1207064539194107,
-0.17071841657161713,
-0.1411677598953247,
0.026607805863022804,
0.05938773974776268,
-0.1587967872619629,
0.11504946649074554,
0.12432632595300674,
0.28314682841300964,
0.03530001640319824,
0.20566697418689728,
0.07696571201086044,
-0.022946391254663467,
-0.04354216903448105,
0.018797460943460464,
0.003622425487264991,
-0.06407918781042099,
-0.030197057873010635,
0.02797018177807331,
0.14513066411018372,
0.1402728259563446,
0.1255752444267273,
-0.1008506715297699,
-0.21022027730941772,
0.0878467857837677,
0.16580770909786224,
0.15596726536750793,
-0.14198395609855652,
0.2770465016365051,
-0.08683040738105774,
0.36644455790519714,
-0.2744104564189911,
0.06080508604645729,
0.19101999700069427,
-0.11251930147409439,
0.23193934559822083,
0.15145716071128845,
-0.3416765630245209,
0.2574729919433594,
-0.16059806942939758,
-0.024174554273486137,
0.37635308504104614,
-0.15950582921504974,
0.1542949080467224,
0.23224470019340515,
-0.1036699116230011,
-0.02693462185561657,
0.3910496234893799,
0.22500093281269073,
0.08933497965335846,
0.06976647675037384,
-0.10523289442062378,
0.16590967774391174,
-0.035488370805978775,
0.022982731461524963,
0.23917575180530548,
-0.4080978333950043,
0.24598410725593567,
0.25163570046424866,
-0.029161034151911736,
-0.06563083827495575,
-0.1686447262763977,
0.2762499153614044,
-0.5681776404380798,
-0.10208331048488617,
-0.30880531668663025,
0.011397226713597775,
-0.17325694859027863,
0.1290307343006134,
-0.1282634139060974,
-0.14371038973331451,
-0.26997146010398865,
-0.33196505904197693,
0.05567282810807228,
-0.17900875210762024,
0.1954612284898758,
-0.13716188073158264,
0.1048782616853714,
-0.19526395201683044,
-0.0611727237701416,
0.2457258403301239,
0.1937711238861084,
-0.2082413136959076,
-0.04024988412857056,
-0.012575292959809303,
0.23608370125293732,
-0.1725248247385025,
0.5394887924194336,
0.3954850435256958,
0.33220720291137695,
-0.16179779171943665,
-0.0274389386177063,
0.07311812043190002,
-0.28203731775283813,
-0.06031568720936775,
0.048548948019742966,
0.03404004126787186,
0.2409239411354065,
0.0659550204873085,
0.340512216091156,
-0.31979385018348694,
0.09676826000213623,
-0.06599994003772736,
0.016792163252830505,
-0.3043792247772217,
0.43044257164001465,
-0.30635660886764526,
-0.13282674551010132,
-0.11993408203125,
-0.1177728921175003,
-0.5592747926712036,
0.060260407626628876,
0.40060892701148987,
0.06404069066047668,
0.10860791057348251,
-0.1182628720998764,
0.15099644660949707,
-0.1716413050889969,
0.118016317486763,
-0.0006220340146683156,
0.33708178997039795,
-0.26152151823043823,
0.07738443464040756,
-0.4892742335796356,
0.364793598651886,
0.027636399492621422,
-0.19823767244815826,
0.03153759241104126,
-0.11909489333629608,
-0.14704211056232452,
0.009699833579361439,
0.04012318700551987,
0.2380816489458084,
0.23860399425029755,
0.006258962210267782,
-0.5759986042976379,
-0.34100285172462463,
-0.10113728046417236,
-0.21595990657806396,
0.10869063436985016,
-0.23002520203590393,
-0.044758014380931854,
-0.15006299316883087,
0.18267102539539337,
-0.042810872197151184,
-0.257914662361145,
0.0840296819806099,
0.11911369860172272,
0.6550233364105225,
0.1934749037027359,
0.3989149332046509,
-0.12089641392230988,
-0.022604113444685936,
0.15709485113620758,
-0.32023993134498596,
-0.08176839351654053,
0.2735508382320404,
0.12101344019174576,
0.2002994418144226,
0.041545748710632324,
0.16314782202243805,
-0.20303331315517426,
0.002424961421638727,
0.0274581927806139,
0.05853932723402977,
-0.146443173289299,
0.30776289105415344,
-0.16456054151058197,
-0.2361539900302887,
-0.2291443943977356,
0.109535813331604,
0.060457147657871246,
0.1458994597196579,
-0.019830623641610146,
-0.11069868505001068,
0.6249813437461853,
-0.1692861169576645,
-0.25988495349884033,
-0.057038869708776474,
0.37244683504104614,
0.004407704807817936,
-0.12032797932624817,
-0.4922206699848175,
0.0031387791968882084,
0.464641809463501,
-0.04881381615996361,
-0.16638563573360443,
0.2039656937122345,
-0.1955646127462387,
-0.019562702625989914,
-0.03939560055732727,
0.11102133244276047,
-0.018885931000113487,
0.0038259178400039673,
0.25791922211647034,
-0.11875545233488083
] |
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.23339347541332245,
-0.2121906280517578,
0.015184035524725914,
0.354036420583725,
0.43131205439567566,
0.056546226143836975,
0.4275258481502533,
0.16688404977321625,
0.16195866465568542,
0.25438788533210754,
-0.14912022650241852,
0.48388686776161194,
-0.0326276570558548,
0.20084495842456818,
0.13511495292186737,
-0.18757759034633636,
-0.17804871499538422,
0.18363413214683533,
-0.2075737565755844,
0.05549140274524689,
-0.5303390622138977,
-0.0694580227136612,
-0.13110026717185974,
0.1142209842801094,
-0.16530455648899078,
-0.24418222904205322,
-0.15802015364170074,
0.09879214316606522,
-0.1795857846736908,
-0.35017842054367065,
0.4064704179763794,
-0.11642841249704361,
0.21963775157928467,
0.5620646476745605,
-0.00010151931928703561,
-0.04592006281018257,
0.4622379243373871,
0.07418891042470932,
-0.1826762855052948,
-0.3177575469017029,
-0.2952965199947357,
-0.3818570375442505,
0.17007113993167877,
-0.3912409245967865,
-0.04817003756761551,
-0.0371994823217392,
-0.003975628409534693,
-0.2519204616546631,
0.2980596423149109,
0.37957972288131714,
0.3288024961948395,
0.4538751244544983,
0.09116264432668686,
-0.24887655675411224,
0.1904579997062683,
0.09100265800952911,
-0.0621265210211277,
0.30237865447998047,
0.05389517918229103,
-0.05676645785570145,
0.21138735115528107,
0.1328086256980896,
-0.3628794848918915,
-0.055636681616306305,
0.27193158864974976,
0.0631391853094101,
0.03363562375307083,
-0.3873291313648224,
0.07486756891012192,
0.3000452220439911,
0.4482409358024597,
-0.3896304666996002,
-0.24697451293468475,
0.02359425276517868,
0.122348852455616,
-0.19945156574249268,
0.2123638391494751,
0.050951529294252396,
0.0008063428686000407,
0.06162850186228752,
0.019643884152173996,
0.19357775151729584,
-0.19301839172840118,
0.24975326657295227,
-0.1554911881685257,
0.15984635055065155,
-0.16727383434772491,
0.11822829395532608,
0.07085463404655457,
-0.20339177548885345,
0.049795836210250854,
-0.2369978278875351,
0.007765362039208412,
0.11362124234437943,
-0.26226291060447693,
-0.05780373886227608,
0.1595870852470398,
0.13281436264514923,
0.09247203916311264,
-0.20312447845935822,
0.08403800427913666,
-0.03857806324958801,
0.0005328215775080025,
0.373462975025177,
0.26571011543273926,
0.2719014585018158,
0.26306548714637756,
0.10534968227148056,
0.3113083839416504,
0.09685062617063522,
-0.10354021936655045,
0.01716042309999466,
-0.17414069175720215,
-0.19628854095935822,
0.2919629216194153,
0.27147194743156433,
0.5614538192749023,
-0.007139156572520733,
-0.4003361463546753,
-0.11291177570819855,
-0.17627231776714325,
0.041477520018815994,
0.19149397313594818,
0.3488394320011139,
-0.165996715426445,
0.19303937256336212,
0.20036335289478302,
0.12483390420675278,
-0.21398060023784637,
-0.26026207208633423,
-0.23422953486442566,
0.2774367928504944,
-0.2562618553638458,
-0.1992112100124359,
0.11577451229095459,
-0.012631750665605068,
-0.07417211681604385,
0.011299165897071362,
-0.17714588344097137,
0.1546332985162735,
0.1403736174106598,
-0.3297450840473175,
-0.19453197717666626,
0.18054045736789703,
0.05135127156972885,
0.04685419052839279,
0.33966436982154846,
-0.37678262591362,
-0.14490918815135956,
0.08572862297296524,
-0.2972792685031891,
-0.14067351818084717,
-0.1555439829826355,
0.3137725293636322,
-0.20381096005439758,
-0.0596020333468914,
-0.221103236079216,
-0.027177227661013603,
0.12903505563735962,
-0.15920792520046234,
0.022494064643979073,
-0.15681110322475433,
-0.034394219517707825,
-0.406864732503891,
0.09199099987745285,
0.6147854924201965,
-0.40717875957489014,
-0.15554848313331604,
-0.36548542976379395,
-0.14992940425872803,
0.32068589329719543,
-0.21920467913150787,
0.042047251015901566,
0.20534266531467438,
-0.18843941390514374,
-0.06704098731279373,
0.5587276220321655,
-0.41095951199531555,
-0.2658073604106903,
0.07133001834154129,
-0.12879246473312378,
-0.08685969561338425,
0.04065141826868057,
-0.029997751116752625,
0.07223037630319595,
0.11370839178562164,
0.4100968539714813,
0.2751319110393524,
0.001114853541366756,
0.00790170207619667,
-0.1864452362060547,
-0.23571226000785828,
0.19917726516723633,
0.06497577577829361,
0.1384473741054535,
0.10235532373189926,
0.14062167704105377,
-0.1971796154975891,
0.024663537740707397,
-0.048764463514089584,
-0.03272475674748421,
-0.057789526879787445,
0.5558086037635803,
-0.04685458168387413,
-0.04484347254037857,
-0.5518354773521423,
-0.4227510988712311,
0.18975508213043213,
-0.07995381206274033,
0.3541659116744995,
-0.13350385427474976,
-0.18728064000606537,
-0.3264656364917755,
0.05830271169543266,
-0.13896358013153076,
-0.020066238939762115,
0.31765300035476685,
0.15457433462142944,
-0.16887301206588745,
0.02886861562728882,
-0.05646901577711105,
0.21193748712539673,
-0.07563058286905289,
0.07361214607954025,
-0.14293032884597778,
0.3080185651779175,
-0.05763790011405945,
-0.3339878022670746,
0.03776784986257553,
0.25380104780197144,
0.5117611885070801,
-0.00044890944263897836,
-0.06332007050514221,
0.32448020577430725,
0.08667448908090591,
-0.04965353012084961,
-0.1650346964597702,
-0.0999799519777298,
0.15094152092933655,
-0.22893747687339783,
0.09716618061065674,
0.08726461231708527,
0.3168584108352661,
-0.06620455533266068,
0.09549503028392792,
0.4775230884552002,
0.08892542868852615,
0.28696417808532715,
-0.0390482172369957,
0.2417561262845993,
-0.04115888848900795,
-0.028783012181520462,
-0.08499163389205933,
-0.17435292899608612,
0.07616788148880005,
0.18948405981063843,
0.2709216773509979,
-0.03209209814667702,
-0.037703737616539,
0.09219475090503693,
0.5580124855041504,
0.044321514666080475,
0.3538885712623596,
-0.08044260740280151,
-0.38185083866119385,
0.08841374516487122,
0.1868623048067093,
0.2703927457332611,
0.4774661660194397,
0.31630566716194153,
-0.1177278459072113,
-0.013574306853115559,
-0.0687379390001297,
0.06897198408842087,
0.08990547806024551,
0.00006893109093653038,
0.21827521920204163,
0.032635197043418884,
0.20715399086475372,
0.060828156769275665,
-0.2113720327615738,
-0.05290532857179642,
-0.17337608337402344,
0.22314688563346863,
-0.40777459740638733,
0.11844198405742645,
-0.3216187357902527,
-0.15450599789619446,
-0.020385917276144028,
0.0009126905933953822,
-0.1665663868188858,
-0.37006208300590515,
-0.29230421781539917,
0.009075726382434368,
0.05861397087574005,
0.13553136587142944,
0.0729437917470932,
0.08480777591466904,
0.03038073517382145,
0.0038107791915535927,
-0.14329157769680023,
-0.15066476166248322,
-0.19723708927631378,
0.13092702627182007,
0.1724000871181488,
0.20352241396903992,
0.45791012048721313,
-0.1723937690258026,
0.14968310296535492,
-0.06682398170232773,
-0.2592746913433075,
0.06910696625709534,
-0.03589170053601265,
0.5192124247550964,
0.47515732049942017,
0.1759488433599472,
0.037335604429244995,
-0.07237178832292557,
0.3917141258716583,
-0.33756518363952637,
-0.03636093810200691,
0.2813178598880768,
-0.22624917328357697,
0.19123783707618713,
-0.16277427971363068,
-0.270955353975296,
-0.5850609540939331,
-0.43146488070487976,
0.09004926681518555,
0.1581937074661255,
0.15741793811321259,
0.229073166847229,
0.13763077557086945,
0.4989827573299408,
0.05544595047831535,
0.17362728714942932,
-0.1574207842350006,
-0.051701489835977554,
0.2869260013103485,
-0.12826862931251526,
-0.31886208057403564,
0.06270301342010498,
-0.16105914115905762,
0.21237170696258545,
0.009506064467132092,
-0.20918047428131104,
-0.5421624779701233,
-0.19377408921718597,
0.24889902770519257,
-0.008854052051901817,
0.14066453278064728,
0.28208616375923157,
0.16523794829845428,
-0.17189590632915497,
-0.2008974254131317,
-0.14519576728343964,
-0.09587510675191879,
0.26473838090896606,
0.0032782210037112236,
0.12684892117977142,
0.3415830433368683,
-0.16137097775936127,
0.15917529165744781,
0.021252239122986794,
-0.19930827617645264,
0.4150005280971527,
-0.26402899622917175,
0.3553529679775238,
-0.15535324811935425,
-0.5011111497879028,
-0.1316000074148178,
-0.03415525704622269,
0.011962495744228363,
-0.025777297094464302,
-0.14988495409488678,
-0.16163420677185059,
-0.3645356297492981,
-0.19629205763339996,
-0.44020989537239075,
-0.19432587921619415,
-0.045190367847681046,
0.1996709257364273,
0.020420189946889877,
-0.029307125136256218,
0.12709254026412964,
-0.48087793588638306,
0.032610032707452774,
0.042680878192186356,
0.22182711958885193,
-0.04362748935818672,
-0.17677536606788635,
-0.24602414667606354,
-0.24011114239692688,
-0.2647051513195038,
0.4546615481376648,
-0.15862037241458893,
0.03671834617853165,
-0.14815819263458252,
-0.060427017509937286,
0.0030131263192743063,
-0.07133318483829498,
0.5519667863845825,
-0.3454786539077759,
0.16794700920581818,
0.51273113489151,
0.1982307732105255,
-0.39729973673820496,
0.14483055472373962,
-0.3467213213443756,
0.19787093997001648,
0.06584486365318298,
0.3129544258117676,
-0.35857540369033813,
-0.03750889375805855,
0.2515779435634613,
0.2019125372171402,
-0.12929847836494446,
-0.17405161261558533,
-0.14477881789207458,
-0.2503765821456909,
-0.13170042634010315,
-0.058485254645347595,
-0.12461420148611069,
0.3594874143600464,
-0.12653790414333344,
-0.1583641916513443,
-0.3093513250350952,
-0.03011958673596382,
0.1789488047361374,
0.1840762197971344,
0.2802935838699341,
-0.0759284719824791,
-0.036761775612831116,
-0.046406205743551254,
0.0716993510723114,
0.23198601603507996,
0.3442589342594147,
-0.023946592584252357,
-0.36059966683387756,
0.0667760893702507,
0.014034341089427471,
0.23565299808979034,
0.05852599814534187,
-0.18437200784683228,
-0.10359589010477066,
-0.05338529869914055,
0.20020590722560883,
-0.10604531317949295,
0.074985072016716,
0.30687201023101807,
0.06406176835298538,
-0.3982103168964386,
-0.3787672221660614,
0.4075772762298584,
0.14827750623226166,
-0.05587651580572128,
0.2646412253379822,
0.24937210977077484,
-0.3079308271408081,
0.2636657953262329,
0.07650411874055862,
0.9972295761108398,
0.06343638151884079,
-0.14272277057170868,
0.5291197896003723,
-0.0992497131228447,
0.570834755897522,
0.021664289757609367,
0.07378081232309341,
-0.32256487011909485,
-0.24031803011894226,
-0.06216682493686676,
-0.14588138461112976,
0.36378324031829834,
0.01775672659277916,
-0.5546256303787231,
0.2570113241672516,
-0.4040378928184509,
0.03388117998838425,
-0.09939473122358322,
-0.05407922342419624,
-0.16800810396671295,
-0.15559352934360504,
-0.42216575145721436,
0.26156434416770935,
-0.13916060328483582,
0.16466718912124634,
-0.09646626561880112,
-0.05598985403776169,
0.0007047899998724461,
-0.15051066875457764,
-0.05448818579316139,
0.026048550382256508,
-0.47052910923957825,
-0.09283125400543213,
-0.19598938524723053,
-0.1402025818824768,
-0.015017703175544739,
0.21177265048027039,
0.10819725692272186,
0.07988068461418152,
-0.2208482176065445,
0.07476349920034409,
0.10030053555965424,
0.11136102676391602,
-0.0745939388871193,
0.018623681738972664,
0.2860426902770996,
-0.03659310191869736,
-0.34211769700050354,
0.14515799283981323,
-0.03462522104382515,
0.17506341636180878,
0.37815845012664795,
0.07899615168571472,
-0.058395251631736755,
-0.36032530665397644,
-0.10064307600259781,
-0.058163125067949295,
0.23706093430519104,
-0.2568029463291168,
0.2513565421104431,
0.05455589294433594,
-0.03553395718336105,
0.07119809091091156,
-0.10545884817838669,
-0.08281008154153824,
-0.09730274975299835,
0.394163578748703,
0.2912926971912384,
0.2772475481033325,
0.21699316799640656,
0.2351003736257553,
-0.22449521720409393,
-0.36366644501686096,
0.2889498174190521,
0.09907650202512741,
-0.3086128234863281,
0.1984170377254486,
0.22029052674770355,
-0.048322685062885284,
-0.03577703982591629,
0.34723958373069763,
0.011434038169682026,
0.04983671009540558,
-0.13501298427581787,
-0.28077635169029236,
-0.2225385159254074,
0.26742175221443176,
0.09064307808876038,
0.08440601080656052,
0.028327789157629013,
0.1621989756822586,
0.17744505405426025,
-0.054723404347896576,
-0.4514692425727844,
-0.011736495420336723,
-0.3375888168811798,
-0.037974294275045395,
0.11412517726421356,
-0.06889095157384872,
0.21172307431697845,
0.04697391763329506,
0.266826331615448,
-0.02709577977657318,
-0.09540215879678726,
-0.32347196340560913,
-0.10079509019851685,
0.10074528306722641,
-0.031978704035282135,
-0.0041054110042750835,
0.22435879707336426,
-0.13092179596424103,
-0.16262532770633698,
-0.16517171263694763,
0.17553038895130157,
0.057732392102479935,
-0.19021789729595184,
0.10387858748435974,
0.15697455406188965,
0.28340667486190796,
0.043024688959121704,
0.21717657148838043,
-0.026658250018954277,
-0.05812303349375725,
-0.022664956748485565,
0.039119891822338104,
0.015667490661144257,
-0.04985632374882698,
-0.016040991991758347,
0.043843746185302734,
0.09413662552833557,
0.11545351147651672,
0.10233186185359955,
-0.1328706592321396,
-0.23977205157279968,
0.10105148702859879,
0.17079533636569977,
0.16726990044116974,
-0.1169896051287651,
0.24982739984989166,
-0.08523966372013092,
0.3432338237762451,
-0.3024190366268158,
0.04962295666337013,
0.1867104172706604,
-0.1545255184173584,
0.22602352499961853,
0.1156056672334671,
-0.3048245906829834,
0.22459423542022705,
-0.1469651609659195,
-0.012541800737380981,
0.41312023997306824,
-0.13444894552230835,
0.21409578621387482,
0.32119378447532654,
-0.08356060832738876,
-0.016689453274011612,
0.37768882513046265,
0.18358220160007477,
0.10865142941474915,
0.0316767580807209,
-0.05795628949999809,
0.14708667993545532,
-0.019642971456050873,
0.08554202318191528,
0.24140961468219757,
-0.5050230622291565,
0.2710326313972473,
0.24059906601905823,
-0.024310369044542313,
-0.11213788390159607,
-0.1639895886182785,
0.37124860286712646,
-0.5745430588722229,
-0.06367091834545135,
-0.30643174052238464,
0.059414565563201904,
-0.16855686902999878,
0.1159520149230957,
-0.11149586737155914,
-0.14003853499889374,
-0.2565511465072632,
-0.2784862816333771,
0.06332886964082718,
-0.2414882779121399,
0.2439759373664856,
-0.11187257617712021,
0.02112719975411892,
-0.27141231298446655,
-0.040151793509721756,
0.22178001701831818,
0.12762700021266937,
-0.1941966712474823,
0.009710037149488926,
0.05060219392180443,
0.20417983829975128,
-0.18068496882915497,
0.552272379398346,
0.39889371395111084,
0.3800226151943207,
-0.13546399772167206,
-0.06647861748933792,
0.11493588984012604,
-0.2638262212276459,
-0.09045280516147614,
0.010561241768300533,
-0.036263611167669296,
0.2590767741203308,
0.10439439117908478,
0.32031410932540894,
-0.30220097303390503,
-0.006890828721225262,
-0.019003374502062798,
0.005731257144361734,
-0.269480437040329,
0.3833434581756592,
-0.29412925243377686,
-0.13394629955291748,
-0.11302559077739716,
-0.07648536562919617,
-0.5723278522491455,
0.04530186206102371,
0.4337007999420166,
0.055349964648485184,
0.1160498782992363,
-0.17900654673576355,
0.14473628997802734,
-0.13810160756111145,
0.19207268953323364,
-0.013790363445878029,
0.28975096344947815,
-0.2669529616832733,
0.08058138191699982,
-0.5247189998626709,
0.3150632679462433,
0.03911386430263519,
-0.192429319024086,
-0.028471440076828003,
-0.12059087306261063,
-0.1418037861585617,
0.0033044975716620684,
0.025263316929340363,
0.27408456802368164,
0.2506793737411499,
0.01563875935971737,
-0.5449016094207764,
-0.2936486601829529,
-0.041616182774305344,
-0.184064120054245,
0.055772192776203156,
-0.34119412302970886,
-0.0023585858289152384,
-0.17404960095882416,
0.1497214436531067,
0.0006308640586212277,
-0.2499285340309143,
0.14406630396842957,
0.09776844829320908,
0.6802555918693542,
0.1865135282278061,
0.4030950367450714,
-0.08699800819158554,
-0.04366837441921234,
0.03638958930969238,
-0.2932215631008148,
-0.11003689467906952,
0.2340046614408493,
0.07532291859388351,
0.2027745246887207,
0.034616634249687195,
0.14568668603897095,
-0.2451830357313156,
0.08542824536561966,
0.017443770542740822,
0.13280338048934937,
-0.14758430421352386,
0.31090813875198364,
-0.15090879797935486,
-0.297829270362854,
-0.19126224517822266,
0.0007489354466088116,
0.10509788244962692,
0.1029956191778183,
-0.06943662464618683,
-0.23852591216564178,
0.5177169442176819,
-0.28555867075920105,
-0.17676104605197906,
-0.09032757580280304,
0.3520115911960602,
-0.04038144275546074,
-0.11723588407039642,
-0.5067304968833923,
0.05464565008878708,
0.4887303113937378,
-0.002228999510407448,
-0.15009339153766632,
0.1638830602169037,
-0.20673096179962158,
0.021502122282981873,
-0.07061644643545151,
0.011497290804982185,
-0.0409061424434185,
0.0008293107966892421,
0.1980798989534378,
-0.13200484216213226
] |
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.26089438796043396,
-0.2007056474685669,
0.06599956005811691,
0.40019553899765015,
0.4645991325378418,
0.011524584144353867,
0.3240969181060791,
0.09413252770900726,
0.18959929049015045,
0.3001819849014282,
-0.2849099636077881,
0.4667591452598572,
-0.036643754690885544,
0.16685788333415985,
0.07776477932929993,
-0.12537358701229095,
-0.2606465816497803,
0.2636682093143463,
-0.17774663865566254,
0.06136678159236908,
-0.5233629941940308,
0.023198364302515984,
-0.23736357688903809,
0.08589101582765579,
-0.27680039405822754,
-0.15339918434619904,
-0.028150107711553574,
0.07971351593732834,
-0.246217742562294,
-0.28055116534233093,
0.46116116642951965,
-0.015963025391101837,
0.16404764354228973,
0.510412335395813,
-0.00010234796354779974,
-0.018456798046827316,
0.583699643611908,
0.05300338938832283,
-0.07615101337432861,
-0.4211899936199188,
-0.22556224465370178,
-0.39779970049858093,
0.287003755569458,
-0.3548152446746826,
-0.12754212319850922,
0.0055776238441467285,
0.040512893348932266,
-0.1819048374891281,
0.2621391713619232,
0.320434033870697,
0.324214905500412,
0.529691219329834,
0.011442558839917183,
-0.3599708378314972,
0.19651325047016144,
0.08082964271306992,
-0.06368955224752426,
0.3710547983646393,
0.026584593579173088,
-0.04749291017651558,
0.2439633011817932,
0.08703050017356873,
-0.3353542387485504,
0.052761275321245193,
0.2847360074520111,
0.038255129009485245,
0.00953129306435585,
-0.27017027139663696,
0.09647586196660995,
0.3694060146808624,
0.38558265566825867,
-0.3826204538345337,
-0.15144237875938416,
0.17500995099544525,
0.22396498918533325,
-0.2032715529203415,
0.21164891123771667,
0.04687858000397682,
0.01630481332540512,
0.09074480831623077,
-0.013072092086076736,
0.17122043669223785,
-0.24455825984477997,
0.27493786811828613,
-0.20200583338737488,
0.10655104368925095,
-0.19354911148548126,
0.1447969377040863,
0.08499733358621597,
-0.11885984987020493,
0.07633445411920547,
-0.13459724187850952,
-0.06199778616428375,
0.08909048140048981,
-0.20838116109371185,
0.0349295474588871,
0.11520563811063766,
0.15358026325702667,
0.16361205279827118,
-0.28436776995658875,
0.10188397020101547,
-0.02383321337401867,
0.03979969024658203,
0.4501174986362457,
0.2414606809616089,
0.18975619971752167,
0.2724778652191162,
0.08869330585002899,
0.26601293683052063,
0.06678726524114609,
-0.2417137622833252,
-0.012088625691831112,
-0.1543584167957306,
-0.06107333302497864,
0.2427952140569687,
0.14118459820747375,
0.5124644041061401,
0.018915481865406036,
-0.4501633048057556,
-0.17423799633979797,
-0.1721334159374237,
0.0912996307015419,
0.2716410756111145,
0.42776334285736084,
-0.1526404619216919,
0.08207699656486511,
0.1332414746284485,
0.17432908713817596,
-0.18845166265964508,
-0.2918035686016083,
-0.31832537055015564,
0.3539681136608124,
-0.25284767150878906,
-0.234954833984375,
0.19113855063915253,
0.057965513318777084,
-0.044978704303503036,
0.013467170298099518,
-0.09584791958332062,
0.10270051658153534,
0.08866895735263824,
-0.2908604145050049,
-0.23106589913368225,
0.31327128410339355,
0.24430562555789948,
-0.06283299624919891,
0.28006109595298767,
-0.46682748198509216,
-0.09159713983535767,
0.22920377552509308,
-0.28989166021347046,
-0.16717436909675598,
-0.07324452698230743,
0.266702264547348,
-0.33905476331710815,
-0.06973504275083542,
-0.24416689574718475,
0.04667193070054054,
0.04895748570561409,
-0.15663473308086395,
-0.10240902751684189,
-0.0962609127163887,
-0.11265677958726883,
-0.4234253764152527,
0.044619157910346985,
0.5165771842002869,
-0.37518632411956787,
-0.1992410570383072,
-0.30780842900276184,
-0.10918372124433517,
0.3522844612598419,
-0.14730116724967957,
0.014566908590495586,
0.06290067732334137,
-0.17065659165382385,
-0.0006843914743512869,
0.6008660197257996,
-0.3847200572490692,
-0.2815145254135132,
0.05630036070942879,
-0.037187278270721436,
-0.11655441671609879,
-0.05172165110707283,
-0.04704391583800316,
0.07188763469457626,
0.13564351201057434,
0.4128211438655853,
0.24465343356132507,
0.04935923218727112,
-0.03246692195534706,
-0.21095894277095795,
-0.23810984194278717,
0.1280461698770523,
0.1516583412885666,
0.12727046012878418,
0.1630401760339737,
0.0712510421872139,
-0.2506304085254669,
-0.055716224014759064,
-0.006188984494656324,
-0.10224471986293793,
-0.030163945630192757,
0.536503255367279,
-0.1599625051021576,
-0.03996362164616585,
-0.5328828692436218,
-0.3950170576572418,
0.23308183252811432,
-0.07792946696281433,
0.25416895747184753,
-0.10548914968967438,
-0.170035719871521,
-0.35298165678977966,
0.10195044428110123,
-0.017024414613842964,
0.06076168641448021,
0.2853280305862427,
0.0909605547785759,
-0.2011486142873764,
0.14548809826374054,
-0.08090301603078842,
0.16377225518226624,
-0.08734914660453796,
0.05123167484998703,
0.03350520506501198,
0.29166826605796814,
0.0747772678732872,
-0.33561792969703674,
0.035295043140649796,
0.18978476524353027,
0.4574476182460785,
-0.010459711775183678,
-0.06727070361375809,
0.2640903890132904,
0.07089193165302277,
-0.07880496233701706,
-0.2070859968662262,
-0.05381758138537407,
0.08799286186695099,
-0.3130648732185364,
-0.030365685001015663,
0.03798443451523781,
0.31870919466018677,
-0.09437336027622223,
0.06253873556852341,
0.6038935780525208,
0.06684323400259018,
0.17446181178092957,
-0.07306027412414551,
0.27141764760017395,
0.06532428413629532,
-0.03855603560805321,
-0.14907680451869965,
-0.12862755358219147,
0.04598522558808327,
0.11761807650327682,
0.24863731861114502,
0.00610390305519104,
-0.0880214124917984,
-0.02318957820534706,
0.5769156813621521,
0.09138303995132446,
0.36079153418540955,
-0.13751737773418427,
-0.42041394114494324,
0.11379536986351013,
0.0370059460401535,
0.2525537610054016,
0.5032673478126526,
0.33231574296951294,
-0.10686428099870682,
0.023629939183592796,
-0.057172421365976334,
0.040472645312547684,
0.10329214483499527,
0.04944704473018646,
0.2328978180885315,
-0.000023518578018411063,
0.30572178959846497,
-0.02094193547964096,
-0.346226304769516,
0.16139189898967743,
-0.05384762957692146,
0.18420645594596863,
-0.37608686089515686,
0.18453934788703918,
-0.2747035026550293,
-0.07675716280937195,
0.14255110919475555,
-0.10272517800331116,
-0.12500496208667755,
-0.32862821221351624,
-0.266406387090683,
0.10813747346401215,
0.1210906058549881,
0.19382090866565704,
0.14224843680858612,
0.07631881535053253,
0.008745494298636913,
-0.025528674945235252,
-0.18266122043132782,
-0.13265582919120789,
-0.1483919769525528,
0.08807405829429626,
0.16533513367176056,
0.18194139003753662,
0.4119829833507538,
-0.1496375948190689,
0.22848814725875854,
-0.05112762004137039,
-0.24559882283210754,
0.10017767548561096,
-0.05732935667037964,
0.5299294590950012,
0.40860891342163086,
0.06029253453016281,
-0.1410646140575409,
0.10045043379068375,
0.4188917577266693,
-0.4658013880252838,
0.02647838555276394,
0.36358407139778137,
-0.3070647418498993,
0.08372604846954346,
-0.25187745690345764,
-0.10609966516494751,
-0.5478299856185913,
-0.4280380308628082,
0.06833100318908691,
0.09581956267356873,
0.044977836310863495,
0.17241673171520233,
0.11911793798208237,
0.4440964460372925,
0.11239203065633774,
0.015759890899062157,
-0.23304148018360138,
-0.08540764451026917,
0.33111265301704407,
-0.16932529211044312,
-0.36089077591896057,
0.20424893498420715,
-0.13234809041023254,
0.2548735737800598,
0.028586361557245255,
-0.16097909212112427,
-0.5243911743164062,
-0.15561765432357788,
0.20535387098789215,
-0.005188270937651396,
-0.01109142042696476,
0.29122576117515564,
0.040286093950271606,
-0.13678626716136932,
-0.2726748287677765,
-0.1413012444972992,
-0.04881563410162926,
0.23526941239833832,
-0.06838799268007278,
0.047184087336063385,
0.28253883123397827,
-0.1223011463880539,
0.14363862574100494,
-0.10943939536809921,
-0.18530073761940002,
0.4059680998325348,
-0.31387966871261597,
0.3742706775665283,
-0.15146489441394806,
-0.46654507517814636,
-0.21089020371437073,
0.02787117101252079,
0.042242709547281265,
0.048434674739837646,
-0.1829000860452652,
-0.24296621978282928,
-0.3873913288116455,
-0.18405859172344208,
-0.30912312865257263,
-0.11764746159315109,
-0.044823385775089264,
0.18691448867321014,
-0.034465499222278595,
0.12824079394340515,
0.15066850185394287,
-0.409955233335495,
-0.044021546840667725,
-0.01451586652547121,
0.19075921177864075,
0.0003326373698655516,
-0.1874929517507553,
-0.13432304561138153,
-0.23941399157047272,
-0.3349730372428894,
0.4665146470069885,
-0.13041752576828003,
-0.0214527677744627,
-0.10481071472167969,
-0.02281338721513748,
0.1187155619263649,
-0.04580254107713699,
0.5801784992218018,
-0.29447832703590393,
0.1719292849302292,
0.5542980432510376,
0.09048048406839371,
-0.5516595840454102,
0.10773090273141861,
-0.33184489607810974,
0.30056849122047424,
0.13312925398349762,
0.28102198243141174,
-0.34704312682151794,
-0.019387733191251755,
0.21586233377456665,
0.06858595460653305,
-0.11510865390300751,
-0.24079319834709167,
-0.23340855538845062,
-0.29338985681533813,
-0.04927109554409981,
-0.06657275557518005,
-0.05861227586865425,
0.422576904296875,
-0.13546691834926605,
-0.12730632722377777,
-0.4123399257659912,
-0.0367349348962307,
0.16560085117816925,
0.19397355616092682,
0.34225189685821533,
-0.1359112560749054,
-0.025981921702623367,
-0.05879252776503563,
0.08305028825998306,
0.1330539882183075,
0.3568016588687897,
0.08881064504384995,
-0.4469735324382782,
0.13907629251480103,
0.07360108941793442,
0.23926161229610443,
0.0024291116278618574,
-0.21277201175689697,
-0.15642201900482178,
-0.09731808304786682,
0.12567439675331116,
0.06949127465486526,
0.1411265730857849,
0.2321479171514511,
0.013767069205641747,
-0.36468276381492615,
-0.23113231360912323,
0.43259233236312866,
0.17458949983119965,
0.02502722106873989,
0.2718997299671173,
0.23464582860469818,
-0.22543415427207947,
0.223793163895607,
-0.06492982804775238,
0.9164006114006042,
-0.0016308254562318325,
-0.11023611575365067,
0.616546094417572,
-0.09799054265022278,
0.5674653649330139,
0.06507924199104309,
0.06793402880430222,
-0.3704266846179962,
-0.2879866063594818,
-0.005231591407209635,
-0.1453760862350464,
0.25484591722488403,
-0.049353670328855515,
-0.5216740965843201,
0.20980699360370636,
-0.3250354528427124,
0.05638730525970459,
-0.03387559950351715,
-0.08627250045537949,
-0.06887153536081314,
-0.1625671237707138,
-0.31690922379493713,
0.22038863599300385,
-0.11600305885076523,
0.16524849832057953,
-0.09055159240961075,
-0.07293739914894104,
0.020187469199299812,
-0.07935336977243423,
-0.0859893336892128,
0.05186750739812851,
-0.41057437658309937,
-0.10258083045482635,
0.008886816911399364,
-0.14894291758537292,
-0.04923601821064949,
0.10977721214294434,
0.043908990919589996,
0.023810913786292076,
-0.34834447503089905,
0.23607516288757324,
0.0525093674659729,
0.017473360523581505,
-0.07425536215305328,
0.07520432770252228,
0.20920905470848083,
-0.059372298419475555,
-0.2678539752960205,
0.10724054276943207,
-0.04713163524866104,
0.16754916310310364,
0.35120368003845215,
0.13514503836631775,
-0.10577785223722458,
-0.30187779664993286,
-0.21502365171909332,
-0.13873857259750366,
0.2945331931114197,
-0.2950994074344635,
0.25293561816215515,
0.0883852019906044,
-0.1128401979804039,
0.02371198870241642,
0.03705586493015289,
-0.18078632652759552,
-0.03919873386621475,
0.4054495692253113,
0.3315436542034149,
0.3266712725162506,
0.1742117553949356,
0.2139461189508438,
-0.13305027782917023,
-0.35620760917663574,
0.23564231395721436,
0.07449278980493546,
-0.3519977033138275,
0.3284544050693512,
0.27393099665641785,
-0.045653894543647766,
0.02712312527000904,
0.4190962612628937,
0.01776464655995369,
-0.040625039488077164,
-0.12783582508563995,
-0.29774558544158936,
-0.20528468489646912,
0.22017160058021545,
0.007637332193553448,
-0.013315314427018166,
0.10363218933343887,
0.23537468910217285,
0.1969146728515625,
-0.07531588524580002,
-0.4256237745285034,
0.11846060305833817,
-0.3420976996421814,
-0.10644923895597458,
0.035814255475997925,
-0.08394266664981842,
0.19919699430465698,
0.09430325031280518,
0.22002121806144714,
0.04124411195516586,
-0.11736735701560974,
-0.3198774755001068,
-0.17088590562343597,
0.11573003232479095,
-0.06035297363996506,
0.09846007078886032,
0.19122406840324402,
-0.09780179709196091,
-0.3399776220321655,
-0.11381665617227554,
0.08634757995605469,
0.01868286170065403,
-0.24856692552566528,
0.0389392115175724,
0.18414120376110077,
0.29607173800468445,
0.02431453764438629,
0.2214764952659607,
0.06482755392789841,
-0.05169879272580147,
-0.16678068041801453,
0.007017106749117374,
0.07386042922735214,
-0.03772592917084694,
0.04539865627884865,
-0.024269910529255867,
0.14642490446567535,
0.12582819163799286,
0.14722414314746857,
-0.18216294050216675,
-0.1376388669013977,
-0.010655037127435207,
0.1622677743434906,
0.10540151596069336,
-0.1678972691297531,
0.3169001042842865,
-0.1511392742395401,
0.3191594183444977,
-0.37131834030151367,
-0.01812661439180374,
0.25918135046958923,
-0.003793638665229082,
0.23372462391853333,
0.0487336702644825,
-0.21770252287387848,
0.27845099568367004,
-0.10017454624176025,
-0.0086973886936903,
0.45373958349227905,
-0.12444169819355011,
0.06487680971622467,
0.23850835859775543,
-0.1500532031059265,
0.06746762245893478,
0.4041028916835785,
0.2606092393398285,
0.09712576121091843,
0.13524994254112244,
-0.029977478086948395,
0.12965929508209229,
-0.07734121382236481,
0.051117029041051865,
0.16977740824222565,
-0.5580493211746216,
0.18610601127147675,
0.1685788780450821,
0.00236533978022635,
-0.0791594386100769,
-0.23237966001033783,
0.4102471172809601,
-0.4937503933906555,
-0.060565412044525146,
-0.3794309198856354,
0.06437037140130997,
-0.16302840411663055,
-0.0013760763686150312,
-0.14338821172714233,
-0.11491913348436356,
-0.17176072299480438,
-0.2528251111507416,
0.0416351743042469,
-0.09905873239040375,
0.24124287068843842,
-0.11379450559616089,
0.10468633472919464,
-0.1930140107870102,
-0.03994245454668999,
0.27868905663490295,
0.04779845103621483,
-0.15554465353488922,
0.03981352597475052,
-0.06016618758440018,
0.2526923716068268,
-0.11667332798242569,
0.49846726655960083,
0.42828336358070374,
0.26501932740211487,
-0.20173579454421997,
-0.11841404438018799,
0.04389585927128792,
-0.29492929577827454,
-0.14820395410060883,
0.14488688111305237,
0.16215281188488007,
0.18613570928573608,
0.07484343647956848,
0.28932562470436096,
-0.28499937057495117,
0.13082364201545715,
-0.003674762323498726,
-0.007818823680281639,
-0.28051966428756714,
0.35907992720603943,
-0.362549751996994,
-0.11782621592283249,
-0.15548577904701233,
-0.1072717234492302,
-0.4793092608451843,
0.09879501909017563,
0.36479389667510986,
0.12186090648174286,
0.1348397433757782,
-0.15502454340457916,
0.1431170403957367,
-0.26004353165626526,
0.24240222573280334,
-0.02323295921087265,
0.36535969376564026,
-0.23983950912952423,
0.025778349488973618,
-0.5430267453193665,
0.4481773376464844,
0.012925342656672001,
-0.07826413959264755,
0.08482478559017181,
-0.12170218676328659,
-0.11546085774898529,
-0.03444531559944153,
-0.004841554909944534,
0.36308884620666504,
0.2708314061164856,
-0.047774557024240494,
-0.5591891407966614,
-0.35680970549583435,
-0.0946178138256073,
-0.2772195041179657,
0.046137381345033646,
-0.29077985882759094,
-0.050182946026325226,
-0.16049839556217194,
0.13265077769756317,
-0.06835450232028961,
-0.27365705370903015,
0.1152135580778122,
0.2708911597728729,
0.6669094562530518,
0.20456863939762115,
0.4079802334308624,
-0.08747319877147675,
0.09326217323541641,
0.07337775081396103,
-0.2984470725059509,
-0.07542064785957336,
0.1905660629272461,
0.10106039047241211,
0.13626091182231903,
0.015028448775410652,
0.17342133820056915,
-0.14726828038692474,
-0.037688467651605606,
-0.04048150032758713,
0.05787605419754982,
-0.2393021136522293,
0.31381115317344666,
-0.28970372676849365,
-0.19459830224514008,
-0.2668880224227905,
0.09523376077413559,
0.08431077003479004,
0.10966146737337112,
0.021883588284254074,
-0.0939408615231514,
0.6466467380523682,
-0.25513705611228943,
-0.3148619830608368,
0.002965063089504838,
0.2552379071712494,
0.03409351408481598,
-0.1752842664718628,
-0.41450658440589905,
0.06282635033130646,
0.4432108402252197,
-0.05498630180954933,
-0.21835997700691223,
0.2427148073911667,
-0.17745548486709595,
0.05033707991242409,
-0.1022096797823906,
0.011153720319271088,
0.05164099857211113,
-0.06758347153663635,
0.12968160212039948,
-0.08301369845867157
] |
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.24667532742023468,
-0.21660606563091278,
-0.003883910132572055,
0.3586862087249756,
0.4009474813938141,
0.03553649038076401,
0.3025209903717041,
0.15218958258628845,
0.1650354415178299,
0.3566102087497711,
-0.1779203712940216,
0.4452134668827057,
-0.03825676441192627,
0.19904451072216034,
0.08161981403827667,
-0.08996213972568512,
-0.20337092876434326,
0.24470661580562592,
-0.1842227578163147,
0.010521702468395233,
-0.4728762209415436,
-0.01852053590118885,
-0.1821441352367401,
0.01993347704410553,
-0.24807444214820862,
-0.2002856284379959,
-0.11639866232872009,
0.06450091302394867,
-0.21489901840686798,
-0.25302964448928833,
0.363211065530777,
0.0450633205473423,
0.11236821860074997,
0.5467204451560974,
-0.00010198417294304818,
-0.08620986342430115,
0.4975404441356659,
0.07624037563800812,
-0.11333801597356796,
-0.2227150946855545,
-0.2704126536846161,
-0.34315207600593567,
0.18232502043247223,
-0.4260810613632202,
-0.09165468066930771,
0.028890332207083702,
0.012380853295326233,
-0.2481905221939087,
0.30531448125839233,
0.3072141706943512,
0.3397083580493927,
0.4426223635673523,
-0.019016152247786522,
-0.33228904008865356,
0.21623069047927856,
0.042103879153728485,
-0.032310713082551956,
0.36221644282341003,
0.06336026638746262,
-0.053731031715869904,
0.17674104869365692,
0.18241089582443237,
-0.2867758870124817,
-0.002954829717054963,
0.25048860907554626,
0.08760210126638412,
-0.02453523688018322,
-0.2595612108707428,
0.10220528393983841,
0.26688259840011597,
0.2856883108615875,
-0.4520849585533142,
-0.12455148249864578,
0.11148109287023544,
0.1043580025434494,
-0.2367105633020401,
0.14307615160942078,
-0.0036099269054830074,
-0.019701188430190086,
0.10603629052639008,
-0.0351591594517231,
0.13369128108024597,
-0.23166543245315552,
0.2396652102470398,
-0.209116593003273,
0.14929458498954773,
-0.18942716717720032,
0.0967111885547638,
0.07523024827241898,
-0.08528123795986176,
0.0532214492559433,
-0.17134101688861847,
0.021075477823615074,
0.010569135658442974,
-0.15079551935195923,
-0.047218695282936096,
0.18301770091056824,
0.14029456675052643,
0.15340560674667358,
-0.2545791566371918,
0.1078866496682167,
-0.005875268951058388,
0.11862577497959137,
0.4159373342990875,
0.15438267588615417,
0.24156388640403748,
0.21506308019161224,
0.08808043599128723,
0.21871443092823029,
0.13025131821632385,
-0.2568061947822571,
-0.011533363722264767,
-0.09233561903238297,
-0.036353688687086105,
0.30848824977874756,
0.1605718433856964,
0.49787282943725586,
0.014810094609856606,
-0.437294602394104,
-0.04824186861515045,
-0.23147918283939362,
0.10639919340610504,
0.285162091255188,
0.3828617036342621,
-0.21978922188282013,
0.02807464636862278,
0.195412740111351,
0.14634791016578674,
-0.1679084450006485,
-0.2896846830844879,
-0.3228364884853363,
0.3451821506023407,
-0.32532358169555664,
-0.19962947070598602,
0.1255359649658203,
0.09560214728116989,
-0.07858594506978989,
0.0480370856821537,
-0.03571173921227455,
0.0553009919822216,
0.07634878158569336,
-0.24736584722995758,
-0.17068079113960266,
0.18560576438903809,
0.20968042314052582,
-0.10421104729175568,
0.32344338297843933,
-0.4836684763431549,
-0.10272388905286789,
0.10582205653190613,
-0.20707783102989197,
-0.08960626274347305,
-0.03592042624950409,
0.31801745295524597,
-0.3513987064361572,
-0.10086769610643387,
-0.15153715014457703,
0.10080717504024506,
0.061245597898960114,
-0.15493613481521606,
0.026828482747077942,
-0.0838794857263565,
-0.04602022469043732,
-0.44387850165367126,
0.09875987470149994,
0.5773761868476868,
-0.3923662304878235,
-0.15835346281528473,
-0.3149735927581787,
-0.04101051762700081,
0.35695675015449524,
-0.23161658644676208,
0.13289642333984375,
0.1612996608018875,
-0.15059475600719452,
0.030738502740859985,
0.5494588613510132,
-0.359424352645874,
-0.2982904613018036,
-0.019450651481747627,
-0.11950714886188507,
-0.08456090837717056,
-0.008068563416600227,
-0.1045464351773262,
0.07586468011140823,
0.15029673278331757,
0.4117957651615143,
0.2450774610042572,
-0.024491265416145325,
-0.04034655913710594,
-0.2356400489807129,
-0.21621403098106384,
0.030153024941682816,
0.10724297910928726,
0.18550284206867218,
0.1609564870595932,
0.10866707563400269,
-0.2254888117313385,
0.01508282870054245,
-0.01656116545200348,
-0.06782715767621994,
-0.06646329909563065,
0.5562685132026672,
-0.11980147659778595,
-0.10301020741462708,
-0.5486020445823669,
-0.33649808168411255,
0.21377801895141602,
-0.06441088020801544,
0.25838178396224976,
-0.16227521002292633,
-0.17712454497814178,
-0.41699615120887756,
0.11737481504678726,
-0.05916956439614296,
0.041595544666051865,
0.34794268012046814,
0.15848875045776367,
-0.13163717091083527,
0.12016445398330688,
-0.03892354294657707,
0.1554764360189438,
-0.09755800664424896,
0.06154211238026619,
0.002867467235773802,
0.36242663860321045,
0.028815025463700294,
-0.3402508497238159,
0.012543320655822754,
0.2390858680009842,
0.49202853441238403,
0.025128662586212158,
-0.03666050359606743,
0.34257176518440247,
0.015397725626826286,
-0.058923956006765366,
-0.07136105000972748,
0.012981876730918884,
0.035537585616111755,
-0.3102557063102722,
0.09030816704034805,
0.07409399747848511,
0.2743328809738159,
-0.05014900863170624,
0.0455593541264534,
0.5526735186576843,
0.0639086365699768,
0.16311809420585632,
-0.07747825980186462,
0.2747512459754944,
-0.10433327406644821,
-0.06520608812570572,
-0.1591191291809082,
-0.14824458956718445,
0.11650285124778748,
0.05299822613596916,
0.1941262185573578,
-0.044572170823812485,
-0.10241156816482544,
0.07118569314479828,
0.6148306727409363,
0.07447849214076996,
0.4100618064403534,
-0.13506777584552765,
-0.3626490533351898,
0.13631489872932434,
0.06328243017196655,
0.2627348005771637,
0.437395304441452,
0.3606952428817749,
-0.055253054946660995,
0.07250642776489258,
-0.09560076892375946,
0.046358413994312286,
0.08184722810983658,
0.07800113409757614,
0.1710074096918106,
-0.023559127002954483,
0.26488226652145386,
0.00004837703090743162,
-0.30219772458076477,
0.03938837721943855,
-0.2115720510482788,
0.19996841251850128,
-0.3442276120185852,
0.27032357454299927,
-0.276157408952713,
-0.10837037116289139,
0.06657042354345322,
-0.13416524231433868,
-0.11199841648340225,
-0.39722514152526855,
-0.18969154357910156,
0.04957342892885208,
0.08469831198453903,
0.1596640646457672,
0.13314898312091827,
0.1780952513217926,
0.04358465597033501,
-0.050639595836400986,
-0.21693651378154755,
-0.09294485300779343,
-0.1491837054491043,
0.12451992928981781,
0.112788625061512,
0.2195502519607544,
0.45639699697494507,
-0.22645263373851776,
0.2653893530368805,
0.040525712072849274,
-0.2521412670612335,
0.1091039776802063,
-0.11130111664533615,
0.5382035374641418,
0.421701580286026,
0.08497120440006256,
-0.13754871487617493,
0.04792250692844391,
0.40256619453430176,
-0.3987688720226288,
0.03456053137779236,
0.27606743574142456,
-0.1733170598745346,
0.09936655312776566,
-0.22149786353111267,
-0.1091308519244194,
-0.493729829788208,
-0.4305160343647003,
0.053535670042037964,
0.09401625394821167,
0.0907856822013855,
0.16613495349884033,
0.16477003693580627,
0.5161480903625488,
0.09035930037498474,
0.08534197509288788,
-0.2309441864490509,
-0.09283285588026047,
0.2652718424797058,
-0.1356292963027954,
-0.31708842515945435,
0.11643727123737335,
-0.13272938132286072,
0.18824271857738495,
0.034662943333387375,
-0.21737514436244965,
-0.569640040397644,
-0.17610688507556915,
0.21790505945682526,
-0.034390825778245926,
0.09332101047039032,
0.26999932527542114,
0.09491237998008728,
-0.15692181885242462,
-0.2845882475376129,
-0.162517711520195,
-0.0914960503578186,
0.15414007008075714,
-0.031830303370952606,
-0.024970825761556625,
0.2786460816860199,
-0.11610855162143707,
0.13205604255199432,
-0.06656098365783691,
-0.20754365622997284,
0.3825695812702179,
-0.34809157252311707,
0.3984658718109131,
-0.09963999688625336,
-0.5200999975204468,
-0.17360647022724152,
0.03532816469669342,
-0.060932282358407974,
0.04896596446633339,
-0.1714959740638733,
-0.21662402153015137,
-0.37668779492378235,
-0.05624689161777496,
-0.3627011775970459,
-0.1873275488615036,
-0.039159491658210754,
0.15603852272033691,
-0.036883238703012466,
0.07491510361433029,
0.1888146698474884,
-0.4491065442562103,
0.057005200535058975,
-0.016950737684965134,
0.15379084646701813,
-0.08940648287534714,
-0.16485503315925598,
-0.11857427656650543,
-0.24680781364440918,
-0.2861297130584717,
0.4680054187774658,
-0.14993643760681152,
-0.05639384314417839,
-0.20461569726467133,
-0.06607946008443832,
0.09054265916347504,
-0.035880036652088165,
0.5689526200294495,
-0.3503730297088623,
0.18970851600170135,
0.4768276512622833,
0.1251973658800125,
-0.45688989758491516,
0.1350758969783783,
-0.4355601966381073,
0.2517583668231964,
0.21854430437088013,
0.2802274227142334,
-0.3060501217842102,
0.019134895876049995,
0.2399572730064392,
0.10264423489570618,
-0.11065830290317535,
-0.22213007509708405,
-0.22178904712200165,
-0.31839340925216675,
-0.08035517483949661,
0.04201464727520943,
-0.025293253362178802,
0.4193626940250397,
-0.09834559261798859,
-0.12828348577022552,
-0.3264179229736328,
-0.025679387152194977,
0.20259186625480652,
0.2596050202846527,
0.2894297242164612,
-0.12315003573894501,
-0.1225854903459549,
-0.08236514776945114,
0.07923275232315063,
0.13594971597194672,
0.32356807589530945,
0.07935793697834015,
-0.34462958574295044,
0.09072700887918472,
0.0888889729976654,
0.27818790078163147,
0.05736100301146507,
-0.17625947296619415,
-0.14405086636543274,
-0.08695465326309204,
0.2175629884004593,
0.006137627176940441,
0.17691856622695923,
0.25485870242118835,
0.0897868424654007,
-0.3811884820461273,
-0.2307579219341278,
0.433773398399353,
0.17661131918430328,
-0.038124121725559235,
0.29488468170166016,
0.20820657908916473,
-0.2366476058959961,
0.2260974943637848,
-0.022161226719617844,
1.0133306980133057,
0.05262431129813194,
-0.16351449489593506,
0.5793560743331909,
-0.14888888597488403,
0.5672774314880371,
-0.019949689507484436,
0.03939736634492874,
-0.3318086564540863,
-0.2921091616153717,
-0.0050113871693611145,
-0.14916656911373138,
0.25731250643730164,
-0.09394080191850662,
-0.6075481176376343,
0.19444851577281952,
-0.39855989813804626,
0.06098233908414841,
0.00785263441503048,
-0.12741200625896454,
-0.1191680058836937,
-0.1094275414943695,
-0.34585726261138916,
0.26443856954574585,
-0.13787119090557098,
0.19162428379058838,
-0.14864686131477356,
-0.06625363230705261,
-0.0817677229642868,
-0.10981840640306473,
-0.12742330133914948,
0.04370153695344925,
-0.3669552803039551,
-0.18494053184986115,
-0.05098404735326767,
-0.16150090098381042,
-0.10808268189430237,
0.09429003298282623,
0.08131672441959381,
0.14709623157978058,
-0.27799513936042786,
0.08808304369449615,
0.08451835811138153,
0.024237550795078278,
-0.006938711740076542,
0.008547208271920681,
0.19588269293308258,
-0.037082526832818985,
-0.29435938596725464,
0.1068723052740097,
0.04578743875026703,
0.11517646163702011,
0.3087923526763916,
0.10357600450515747,
-0.0675770491361618,
-0.3244163691997528,
-0.10348375886678696,
-0.09744712710380554,
0.24810922145843506,
-0.31311070919036865,
0.2714838981628418,
0.08919960260391235,
-0.12014713138341904,
0.09994570165872574,
-0.012930951081216335,
-0.14131957292556763,
-0.08458108454942703,
0.30652204155921936,
0.24755512177944183,
0.3110376000404358,
0.06511417031288147,
0.23375385999679565,
-0.1451796293258667,
-0.3778769373893738,
0.19461078941822052,
0.12664563953876495,
-0.3094286620616913,
0.24518409371376038,
0.11320432275533676,
-0.10021353513002396,
-0.018967239186167717,
0.35834309458732605,
0.08726717531681061,
0.012129725888371468,
-0.13199156522750854,
-0.31772008538246155,
-0.2275739312171936,
0.19746661186218262,
0.12628424167633057,
0.04679350554943085,
0.040948137640953064,
0.24098697304725647,
0.21606457233428955,
-0.014946725219488144,
-0.4777272343635559,
0.023357374593615532,
-0.3548016846179962,
-0.12109549343585968,
0.05531001463532448,
-0.1312018483877182,
0.2106180489063263,
0.030774105340242386,
0.2626606523990631,
0.061136987060308456,
-0.12301640212535858,
-0.36038738489151,
-0.11962318420410156,
0.08787944167852402,
-0.09605535864830017,
0.12124697118997574,
0.19285686314105988,
-0.06559501588344574,
-0.2737077474594116,
-0.18214677274227142,
0.06557899713516235,
-0.004897427279502153,
-0.1561487466096878,
0.07420962303876877,
0.19551688432693481,
0.305776983499527,
0.054221827536821365,
0.07680832594633102,
0.11816905438899994,
-0.047217536717653275,
-0.09409075975418091,
0.05041671171784401,
0.011491509154438972,
-0.09162089228630066,
0.061555083841085434,
0.04731615632772446,
0.1579480916261673,
0.1204226091504097,
0.1462683528661728,
-0.14264868199825287,
-0.17612560093402863,
0.0342845618724823,
0.2458392232656479,
0.16844813525676727,
-0.18265339732170105,
0.2451198548078537,
-0.20319920778274536,
0.36860162019729614,
-0.30184757709503174,
0.0448661632835865,
0.23344625532627106,
-0.0057721869088709354,
0.2976727783679962,
0.14921358227729797,
-0.2892268896102905,
0.22511164844036102,
-0.1543215662240982,
0.0022289708722382784,
0.4208875000476837,
-0.0848284438252449,
0.09413227438926697,
0.2553800642490387,
-0.16174755990505219,
0.07267708331346512,
0.42079585790634155,
0.21576613187789917,
0.0808965265750885,
0.11472588032484055,
-0.012039167806506157,
0.20920147001743317,
-0.05954791605472565,
-0.008851463906466961,
0.17259754240512848,
-0.42666852474212646,
0.18628361821174622,
0.19809934496879578,
0.022372253239154816,
-0.03816557303071022,
-0.2197997272014618,
0.41530075669288635,
-0.5084754824638367,
-0.05652250349521637,
-0.3237140476703644,
0.04877737909555435,
-0.1741154044866562,
0.0605977438390255,
-0.16821417212486267,
-0.1289478987455368,
-0.22656826674938202,
-0.28041699528694153,
0.13125672936439514,
-0.16091763973236084,
0.2799321115016937,
-0.16956032812595367,
0.10229426622390747,
-0.1938088834285736,
-0.06666184961795807,
0.2105490118265152,
0.16122467815876007,
-0.203176349401474,
0.0029697511345148087,
-0.019834227859973907,
0.22439350187778473,
-0.14448873698711395,
0.4721124768257141,
0.4282219707965851,
0.2557368874549866,
-0.1851385086774826,
-0.09297478944063187,
-0.00657260837033391,
-0.293438583612442,
-0.17106497287750244,
0.09330471605062485,
0.17520759999752045,
0.17537754774093628,
0.10745719820261002,
0.3313247859477997,
-0.33416154980659485,
0.09416203945875168,
-0.023793017491698265,
-0.013892450369894505,
-0.2267352193593979,
0.3832150995731354,
-0.29475411772727966,
-0.08552593737840652,
-0.17025713622570038,
-0.13651496171951294,
-0.5748510360717773,
0.040589526295661926,
0.3419457674026489,
0.09301755577325821,
0.1262921690940857,
-0.16055114567279816,
0.15247705578804016,
-0.17488157749176025,
0.1722026765346527,
0.014829118736088276,
0.40540727972984314,
-0.2588355243206024,
-0.0027994706761091948,
-0.541019082069397,
0.4275762736797333,
0.01556309126317501,
-0.15880830585956573,
0.031514402478933334,
-0.03314756229519844,
-0.1146663948893547,
-0.017911335453391075,
0.022063052281737328,
0.3360392451286316,
0.22620883584022522,
-0.025657668709754944,
-0.5814421772956848,
-0.29016971588134766,
-0.12484531104564667,
-0.27969568967819214,
0.13222552835941315,
-0.2572004795074463,
-0.035843752324581146,
-0.206126868724823,
0.21608442068099976,
-0.037931084632873535,
-0.2939603328704834,
0.08699867874383926,
0.14208349585533142,
0.6847298741340637,
0.17764252424240112,
0.40540799498558044,
-0.16419218480587006,
0.031693071126937866,
0.011777515523135662,
-0.24238817393779755,
-0.10330194234848022,
0.20908962190151215,
0.07556553184986115,
0.1736917942762375,
0.012759867124259472,
0.13358008861541748,
-0.1275080293416977,
0.032026827335357666,
0.1104801744222641,
0.07009918242692947,
-0.11591300368309021,
0.25843971967697144,
-0.23253723978996277,
-0.11883387714624405,
-0.18745838105678558,
0.0807318165898323,
0.0883738175034523,
0.20767205953598022,
-0.03387022390961647,
-0.1781325787305832,
0.6508176922798157,
-0.19926998019218445,
-0.37545329332351685,
-0.005676844157278538,
0.33302438259124756,
0.025154298171401024,
-0.18259960412979126,
-0.4330857992172241,
0.018670888617634773,
0.4222234785556793,
-0.048833705484867096,
-0.21325914561748505,
0.2750222086906433,
-0.25424516201019287,
0.03920339047908783,
-0.02334892749786377,
0.07668043673038483,
0.0071151670999825,
-0.04886660724878311,
0.16207702457904816,
-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.24798224866390228,
-0.3217708468437195,
0.0763499066233635,
0.47010359168052673,
0.49538132548332214,
0.018508072942495346,
0.3540433943271637,
0.06149507313966751,
0.24025776982307434,
0.31286147236824036,
-0.27640941739082336,
0.4540327489376068,
-0.06261871010065079,
0.10333309322595596,
0.15565796196460724,
-0.15578587353229523,
-0.22559495270252228,
0.16796807944774628,
-0.07798561453819275,
0.10205511748790741,
-0.4996086657047272,
-0.02934633381664753,
-0.26327717304229736,
0.1951637864112854,
-0.15596544742584229,
-0.1863706111907959,
-0.07376863062381744,
0.08071483671665192,
-0.1478741466999054,
-0.2537325918674469,
0.5681661367416382,
-0.10833825170993805,
0.21222873032093048,
0.5568336248397827,
-0.00010799765004776418,
0.022329991683363914,
0.5475672483444214,
0.02229159139096737,
-0.1812620460987091,
-0.5533768534660339,
-0.1755930632352829,
-0.4152665138244629,
0.32018452882766724,
-0.3743583559989929,
-0.11459733545780182,
0.07909353077411652,
0.14598852396011353,
-0.11177290230989456,
0.3590348958969116,
0.4540637135505676,
0.285580575466156,
0.701862633228302,
-0.019747864454984665,
-0.3421173393726349,
0.13334766030311584,
0.054145004600286484,
-0.12855128943920135,
0.2871594727039337,
0.1371670514345169,
-0.008233382366597652,
0.43345916271209717,
-0.03733154013752937,
-0.3705087900161743,
0.09044574946165085,
0.3338052034378052,
0.01731191948056221,
0.04568233713507652,
-0.4084409177303314,
0.09899617731571198,
0.3526202142238617,
0.42913269996643066,
-0.27898693084716797,
-0.14455221593379974,
0.10621747374534607,
0.23932889103889465,
-0.061995938420295715,
0.17657923698425293,
0.0757438912987709,
-0.029810437932610512,
0.041353367269039154,
0.04638729244470596,
0.17182990908622742,
-0.2779864966869354,
0.2125995010137558,
-0.1284295916557312,
-0.035365864634513855,
-0.19327175617218018,
0.21762233972549438,
0.03803662955760956,
-0.09714040905237198,
0.031084982678294182,
-0.17658281326293945,
0.0018489111680537462,
0.14519581198692322,
-0.30745619535446167,
-0.03703863546252251,
0.10036007314920425,
0.020641161128878593,
0.21880213916301727,
-0.23972658812999725,
0.2141459435224533,
-0.08140663057565689,
0.001490787137299776,
0.35414382815361023,
0.3462698459625244,
0.23868772387504578,
0.2158098965883255,
0.14084583520889282,
0.15175458788871765,
0.022729292511940002,
-0.17890408635139465,
0.06214015185832977,
-0.28353381156921387,
-0.04607177525758743,
0.24856723845005035,
0.2519287168979645,
0.6219196319580078,
0.022618161514401436,
-0.5257900953292847,
-0.19461563229560852,
-0.06970317661762238,
0.07446429133415222,
0.14892597496509552,
0.4044242203235626,
-0.2522183358669281,
0.07340948283672333,
0.025330889970064163,
0.28984367847442627,
-0.19493290781974792,
-0.38263773918151855,
-0.2504280209541321,
0.15268412232398987,
-0.2685990333557129,
-0.27057090401649475,
0.2402620017528534,
0.09254380315542221,
0.031247928738594055,
0.043060895055532455,
-0.22708305716514587,
0.085943304002285,
0.1672888547182083,
-0.3710011839866638,
-0.3183172345161438,
0.20312915742397308,
0.2981905937194824,
0.013275107368826866,
0.27971115708351135,
-0.32381653785705566,
-0.04562666639685631,
0.2975206673145294,
-0.38777217268943787,
-0.12059276551008224,
-0.12639375030994415,
0.19356000423431396,
-0.36293068528175354,
-0.1564999669790268,
-0.536428689956665,
0.08052078634500504,
0.040117789059877396,
-0.08928506076335907,
-0.057368986308574677,
-0.14254027605056763,
-0.06975614279508591,
-0.35836654901504517,
-0.055181149393320084,
0.4761914312839508,
-0.21475958824157715,
-0.22886665165424347,
-0.30118244886398315,
-0.24432000517845154,
0.35961106419563293,
-0.14555566012859344,
-0.04760385677218437,
0.2456553876399994,
-0.13856184482574463,
0.019540350884199142,
0.6420379281044006,
-0.5051136016845703,
-0.28108349442481995,
0.15326078236103058,
-0.11817390471696854,
-0.07644128054380417,
-0.09492279589176178,
-0.04461432993412018,
0.2863951325416565,
0.07587091624736786,
0.37161871790885925,
0.33497828245162964,
0.0008513941429555416,
-0.030564328655600548,
-0.1311076432466507,
-0.21056237816810608,
0.2909453511238098,
0.19490285217761993,
0.23611010611057281,
0.22115901112556458,
0.05453431233763695,
-0.19984789192676544,
-0.03580484911799431,
0.05276850610971451,
-0.08131752163171768,
-0.020119519904255867,
0.4355522096157074,
-0.043696753680706024,
-0.02576560340821743,
-0.529039204120636,
-0.5686801075935364,
0.18995040655136108,
-0.0841624066233635,
0.18261997401714325,
-0.11573026329278946,
-0.06739628314971924,
-0.30404260754585266,
0.04262422397732735,
-0.07802188396453857,
-0.021745260804891586,
0.1823788583278656,
0.07941249758005142,
-0.2668646275997162,
0.055881474167108536,
-0.07700300961732864,
0.19090145826339722,
-0.15261004865169525,
0.09578096121549606,
0.12126120924949646,
0.26119619607925415,
0.10169719904661179,
-0.3987409770488739,
-0.0017726217629387975,
0.13621272146701813,
0.47813594341278076,
0.018362602218985558,
-0.08265795558691025,
0.17296020686626434,
0.045810095965862274,
-0.10204485803842545,
-0.21710805594921112,
-0.17620471119880676,
0.057555533945560455,
-0.3366033434867859,
-0.04476151242852211,
0.13471537828445435,
0.3460840582847595,
-0.1604815125465393,
0.08364381641149521,
0.4571966826915741,
-0.016792841255664825,
0.34218546748161316,
-0.1437787562608719,
0.24062849581241608,
0.052516646683216095,
-0.060673002153635025,
-0.13310761749744415,
0.1804720014333725,
0.12906982004642487,
0.09137485176324844,
0.2827322483062744,
-0.035585273057222366,
-0.27068209648132324,
0.004667207598686218,
0.616209864616394,
0.029959723353385925,
0.31941506266593933,
-0.0831516683101654,
-0.3378826677799225,
0.1462026685476303,
0.00003264890983700752,
0.04182642325758934,
0.535393238067627,
0.2632282078266144,
-0.11036016792058945,
-0.016473006457090378,
0.0007064208621159196,
0.05156897008419037,
0.033378005027770996,
0.06909003853797913,
0.2856590747833252,
0.0461307130753994,
0.2759700119495392,
0.03866345062851906,
-0.2005329579114914,
0.14444802701473236,
-0.008435895666480064,
0.19513501226902008,
-0.3969614505767822,
0.18787910044193268,
-0.14235727488994598,
-0.11657245457172394,
-0.03046075999736786,
0.1370222568511963,
-0.10422465205192566,
-0.19904494285583496,
-0.3134955167770386,
0.15897813439369202,
0.21371352672576904,
0.12652601301670074,
0.1616363525390625,
0.008839363232254982,
-0.011312771588563919,
-0.040885843336582184,
-0.1634947955608368,
-0.14585912227630615,
-0.186183899641037,
0.046216320246458054,
0.1946972757577896,
0.07352671027183533,
0.3495377004146576,
-0.19005532562732697,
0.12456788867712021,
-0.1000494584441185,
-0.1240721344947815,
0.018916618078947067,
-0.07744250446557999,
0.5409660935401917,
0.2683839797973633,
0.25948959589004517,
-0.16248227655887604,
0.11941081285476685,
0.3791876435279846,
-0.47826915979385376,
-0.051207657903432846,
0.3330361545085907,
-0.33494383096694946,
0.09676319360733032,
-0.2121216505765915,
-0.3186379373073578,
-0.5942171812057495,
-0.39381998777389526,
0.20549197494983673,
-0.012952548451721668,
0.06968770921230316,
0.3293650448322296,
0.10264090448617935,
0.47164949774742126,
0.2177545428276062,
0.09161046892404556,
-0.18446287512779236,
-0.03420231491327286,
0.2794252038002014,
-0.13466772437095642,
-0.3884647488594055,
0.15754196047782898,
-0.09710279107093811,
0.2852422893047333,
0.07990838587284088,
-0.12456487864255905,
-0.2630615532398224,
-0.06691163033246994,
0.19757594168186188,
-0.1246708557009697,
-0.12070714682340622,
0.3231537938117981,
-0.08457585424184799,
-0.046994324773550034,
-0.21153469383716583,
-0.1213955506682396,
-0.048225369304418564,
0.3319036066532135,
-0.0071728164330124855,
0.09451661258935928,
0.3415934145450592,
-0.16240306198596954,
0.3309938311576843,
-0.086829274892807,
-0.0393967367708683,
0.4093088209629059,
-0.30323198437690735,
0.27769896388053894,
-0.09659314900636673,
-0.48113253712654114,
0.007316072937101126,
0.05634870380163193,
0.06938277930021286,
0.07898073643445969,
-0.2715212404727936,
-0.24795760214328766,
-0.3175481855869293,
-0.25298193097114563,
-0.4196508526802063,
-0.07618498802185059,
-0.0940631851553917,
0.17807111144065857,
0.009004541672766209,
0.17096152901649475,
0.18896834552288055,
-0.4353349208831787,
-0.1018504947423935,
0.0006981533369980752,
0.23761585354804993,
0.01469232514500618,
-0.11296123266220093,
-0.26121076941490173,
-0.23404812812805176,
-0.31398677825927734,
0.345592200756073,
-0.2557937502861023,
0.08330071717500687,
-0.14002881944179535,
0.08952252566814423,
0.18896225094795227,
0.0027522484306246042,
0.7596028447151184,
-0.18230688571929932,
0.2290213406085968,
0.3868348300457001,
0.20177341997623444,
-0.6543715000152588,
-0.02793959714472294,
-0.2924180030822754,
0.33610329031944275,
0.09061162918806076,
0.3959362506866455,
-0.42695143818855286,
-0.04438873752951622,
0.1525254100561142,
0.031495995819568634,
-0.09392315149307251,
-0.24251563847064972,
-0.268761545419693,
-0.30515700578689575,
-0.008728250861167908,
0.021820837631821632,
0.009019270539283752,
0.4349668323993683,
-0.17009960114955902,
-0.12759874761104584,
-0.40858709812164307,
0.16029292345046997,
0.11261364072561264,
-0.025370251387357712,
0.25263965129852295,
-0.05681589990854263,
-0.009302743710577488,
0.06357203423976898,
-0.007793528959155083,
0.11484544724225998,
0.3582157790660858,
0.027281947433948517,
-0.4528539776802063,
0.2615329921245575,
-0.021164339035749435,
0.24439962208271027,
0.07095659524202347,
-0.12790338695049286,
-0.08519916236400604,
0.008784648962318897,
0.07800475507974625,
-0.014175319112837315,
0.09054628014564514,
0.342509001493454,
0.038305286318063736,
-0.3234170079231262,
-0.40452247858047485,
0.2545506954193115,
0.303194522857666,
0.040141936391592026,
0.31352698802948,
0.008307399228215218,
-0.16731424629688263,
0.06105893850326538,
-0.13467395305633545,
0.8996841907501221,
-0.060539841651916504,
-0.10178526490926743,
0.6653999090194702,
-0.24445517361164093,
0.47850510478019714,
0.03029491752386093,
0.09032662957906723,
-0.29282599687576294,
-0.27005550265312195,
-0.015569153241813183,
-0.2568276822566986,
0.2637608051300049,
0.08154915273189545,
-0.4304999113082886,
0.3003610670566559,
-0.2911157011985779,
0.2078084647655487,
0.021377116441726685,
-0.0544000081717968,
-0.06086500734090805,
-0.11267402768135071,
-0.34367141127586365,
0.16298042237758636,
-0.26640790700912476,
0.2688088119029999,
-0.11475066095590591,
-0.14413291215896606,
-0.033118728548288345,
-0.07534370571374893,
-0.12978731095790863,
0.15657614171504974,
-0.3821195662021637,
-0.16315068304538727,
0.11582663655281067,
-0.20061372220516205,
0.07688457518815994,
0.1819683462381363,
0.07397842407226562,
-0.10281191766262054,
-0.32682353258132935,
0.17889884114265442,
-0.07588333636522293,
0.13643324375152588,
-0.08784200251102448,
0.00008248323865700513,
0.24698396027088165,
-0.10070442408323288,
-0.33282262086868286,
0.12364088743925095,
-0.06408049166202545,
0.21982289850711823,
0.28992903232574463,
0.18027840554714203,
-0.07299576699733734,
-0.26217135787010193,
-0.21223662793636322,
-0.1799515187740326,
0.3643167018890381,
-0.2759150564670563,
0.19591893255710602,
0.009252172894775867,
-0.10245154798030853,
0.08008135110139847,
-0.0507110059261322,
-0.12536105513572693,
0.00885431282222271,
0.48733627796173096,
0.4263884127140045,
0.28729385137557983,
0.2660652995109558,
0.2743079960346222,
-0.0806819498538971,
-0.3562264144420624,
0.28289830684661865,
0.11645594239234924,
-0.3351704776287079,
0.30599460005760193,
0.1482224017381668,
0.011610042303800583,
0.01613711193203926,
0.4952471852302551,
0.025640318170189857,
-0.022601891309022903,
-0.07561513036489487,
-0.2714720070362091,
-0.2940610349178314,
0.211046501994133,
0.007054441142827272,
-0.04866597428917885,
0.113752081990242,
0.18835870921611786,
0.28802818059921265,
-0.153833270072937,
-0.3571673631668091,
0.12020940333604813,
-0.3974457383155823,
-0.026375407353043556,
0.022024113684892654,
-0.08833697438240051,
0.2679440379142761,
0.07432863861322403,
0.13676562905311584,
-0.00633294926956296,
-0.11593730002641678,
-0.2485039234161377,
-0.22176527976989746,
0.13630880415439606,
-0.02784140221774578,
0.1512162685394287,
0.15154480934143066,
-0.21638044714927673,
-0.28096693754196167,
-0.012905669398605824,
0.04690038040280342,
0.02016550861299038,
-0.17441527545452118,
0.050583723932504654,
0.1910220831632614,
0.3978147506713867,
-0.021783415228128433,
0.2827035188674927,
-0.006748315878212452,
0.03453877195715904,
-0.14337879419326782,
0.02376856841146946,
0.2030908167362213,
0.025237560272216797,
-0.2087370604276657,
-0.06448981165885925,
0.25085100531578064,
0.1676194667816162,
0.09408631175756454,
-0.30533379316329956,
-0.12315566092729568,
-0.09764525294303894,
0.002210098085924983,
0.13085952401161194,
-0.1723632961511612,
0.29908645153045654,
-0.11031612753868103,
0.27010345458984375,
-0.2779809534549713,
0.05242461338639259,
0.3269571363925934,
-0.12120930850505829,
0.0678810104727745,
0.02834533527493477,
-0.32221952080726624,
0.20129820704460144,
-0.11265142261981964,
0.15114690363407135,
0.44061002135276794,
-0.12479022890329361,
0.09298881888389587,
0.21740320324897766,
-0.11620510369539261,
-0.015790460631251335,
0.46070218086242676,
0.20200133323669434,
0.039333660155534744,
0.14204618334770203,
0.02263275347650051,
0.03663685545325279,
-0.04828595742583275,
0.1063208058476448,
0.28279832005500793,
-0.4781707227230072,
0.003583303652703762,
0.10940301418304443,
-0.0017192005179822445,
-0.09504237025976181,
-0.31514808535575867,
0.5316864252090454,
-0.4729447066783905,
-0.1242418959736824,
-0.2933814823627472,
-0.007862478494644165,
-0.18876749277114868,
0.14117154479026794,
-0.19200332462787628,
-0.13009920716285706,
-0.09602432698011398,
-0.19645152986049652,
0.003972402308136225,
-0.14528192579746246,
0.2983594536781311,
-0.12987849116325378,
-0.0621962733566761,
-0.15632538497447968,
-0.07531428337097168,
0.4235473573207855,
-0.0483771450817585,
-0.16969388723373413,
0.07147523760795593,
-0.15132056176662445,
0.21569374203681946,
-0.0976131409406662,
0.5807603001594543,
0.33212125301361084,
0.32866913080215454,
-0.21318447589874268,
-0.16956727206707,
0.2545267343521118,
-0.3181827962398529,
-0.10708747804164886,
0.1548369973897934,
0.15858052670955658,
0.1606113165616989,
0.07852081954479218,
0.2066705822944641,
-0.224143385887146,
0.1420188695192337,
0.04366001859307289,
-0.1447918564081192,
-0.3188246786594391,
0.4858047068119049,
-0.38998472690582275,
-0.12553787231445312,
-0.127706378698349,
-0.07447421550750732,
-0.5568335652351379,
0.11908048391342163,
0.2711358368396759,
0.21955855190753937,
0.09889156371355057,
-0.19550229609012604,
0.0958702340722084,
-0.3225298821926117,
0.2215009480714798,
0.020387843251228333,
0.36482250690460205,
-0.31445473432540894,
0.11566328257322311,
-0.5239737033843994,
0.45923173427581787,
-0.010784603655338287,
0.010512592270970345,
0.15419484674930573,
-0.09312193095684052,
-0.26544108986854553,
-0.00391476321965456,
0.03069424256682396,
0.20476028323173523,
0.3998901844024658,
0.14539079368114471,
-0.5745072364807129,
-0.3909091055393219,
-0.047737520188093185,
-0.0727449283003807,
0.0916483923792839,
-0.26210007071495056,
0.012926655821502209,
-0.15178824961185455,
0.0232955701649189,
-0.11175224930047989,
-0.3203568458557129,
0.15119819343090057,
0.14068928360939026,
0.7023332715034485,
0.04464339837431908,
0.4411265254020691,
0.02858581393957138,
-0.011711999773979187,
0.12163645029067993,
-0.3079589605331421,
-0.10504581034183502,
0.17643164098262787,
-0.004793146159499884,
0.05286610126495361,
-0.02099359966814518,
0.2726181447505951,
-0.2175622433423996,
-0.18123187124729156,
-0.14396019279956818,
0.12817227840423584,
-0.30535221099853516,
0.31196796894073486,
-0.3086749315261841,
-0.139373317360878,
-0.34222176671028137,
-0.0057944487780332565,
0.1176716685295105,
0.04527249187231064,
-0.10811209678649902,
0.049360569566488266,
0.6277844905853271,
-0.1653219610452652,
-0.34403762221336365,
-0.10382509976625443,
0.3128974139690399,
-0.0359872430562973,
-0.11266208440065384,
-0.5198070406913757,
0.0568198636174202,
0.48524177074432373,
-0.06891500949859619,
-0.19220197200775146,
0.23418781161308289,
-0.14151854813098907,
0.13243885338306427,
-0.021421581506729126,
-0.09415663033723831,
-0.009551173076033592,
-0.03140854090452194,
0.21754521131515503,
-0.14357928931713104
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
https://github.com/huggingface/datasets/issues/2860
|
Cannot download TOTTO dataset
|
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it.
|
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
| 20
|
Cannot download TOTTO dataset
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it.
|
[
-0.2944106459617615,
0.3900931477546692,
-0.1317225992679596,
0.06419666856527328,
0.43536779284477234,
0.13932785391807556,
0.1679641157388687,
0.5879847407341003,
-0.026145564392209053,
0.2343415915966034,
-0.19477717578411102,
-0.047309041023254395,
0.05941740423440933,
0.3187090754508972,
0.0643596351146698,
-0.3084108829498291,
0.06527973711490631,
-0.013006509281694889,
-0.13955233991146088,
0.03085423819720745,
-0.0759800598025322,
0.2782619893550873,
0.010026314295828342,
0.06546438485383987,
0.01810915581882,
0.09367083013057709,
-0.02909252606332302,
-0.09794483333826065,
-0.26863789558410645,
-0.43473753333091736,
0.41533908247947693,
0.061375692486763,
0.16973769664764404,
0.3808848261833191,
-0.00010737669799709693,
0.1472335010766983,
0.32910093665122986,
0.008616818115115166,
-0.2500196695327759,
-0.3531950116157532,
-0.32888567447662354,
-0.11417613923549652,
-0.19650378823280334,
-0.14808115363121033,
-0.08305338770151138,
0.2127360701560974,
0.20388224720954895,
-0.26071301102638245,
0.04171622917056084,
0.5573633313179016,
0.2718280553817749,
0.0907750278711319,
0.3079370856285095,
-0.3647714853286743,
0.2657265365123749,
0.14753931760787964,
-0.03651611879467964,
0.07056374847888947,
0.07858909666538239,
0.010867662727832794,
0.3562815487384796,
0.04600029066205025,
-0.1339970976114273,
0.07433116436004639,
-0.1553676426410675,
-0.08402248471975327,
-0.09248163551092148,
-0.34242287278175354,
0.2141401171684265,
0.3073771893978119,
0.5096559524536133,
-0.20446492731571198,
-0.3611646592617035,
0.22677938640117645,
-0.0598626583814621,
-0.2795485258102417,
0.26980409026145935,
0.18022258579730988,
0.09009139239788055,
0.16981881856918335,
0.17325721681118011,
-0.4855838716030121,
-0.18901336193084717,
0.052865006029605865,
-0.41417908668518066,
0.10760539025068283,
-0.1177636906504631,
0.004858848638832569,
-0.10592131316661835,
-0.12039405107498169,
0.30164578557014465,
-0.0547916442155838,
-0.03756137192249298,
0.2590125799179077,
-0.27454569935798645,
-0.18414726853370667,
0.10355675220489502,
0.031148018315434456,
0.1920051872730255,
0.04906840622425079,
0.1362312287092209,
-0.10176484286785126,
-0.5062010288238525,
-0.06661338359117508,
0.24186868965625763,
-0.1095382496714592,
-0.00026669478393159807,
0.3804113268852234,
0.2949266731739044,
0.24163644015789032,
0.1484333574771881,
0.047314148396253586,
-0.15863309800624847,
-0.358692467212677,
0.026933124288916588,
-0.11310390383005142,
0.4928361177444458,
-0.2085416615009308,
-0.3899921774864197,
0.16169783473014832,
-0.09008194506168365,
-0.12147460132837296,
-0.017612405121326447,
0.15179459750652313,
-0.02442091330885887,
0.07535743713378906,
0.09186992049217224,
0.14045466482639313,
-0.008870775811374187,
-0.13770490884780884,
-0.2661002576351166,
0.2041446417570114,
-0.012519396841526031,
0.07130275666713715,
0.2309996485710144,
-0.34486714005470276,
0.09529969096183777,
-0.025891602039337158,
-0.4624832272529602,
0.08283349126577377,
-0.1361532211303711,
-0.07501613348722458,
-0.24587732553482056,
0.36322858929634094,
0.2265910506248474,
0.10456545650959015,
0.0013825095957145095,
0.11343953758478165,
-0.2949780523777008,
0.2792562246322632,
-0.3678761124610901,
-0.06789016723632812,
-0.12277770787477493,
0.29419541358947754,
-0.32272765040397644,
-0.2466391772031784,
-0.5071802139282227,
-0.03396549075841904,
-0.05250425636768341,
-0.3056931793689728,
-0.12345991283655167,
-0.1745036095380783,
-0.18053454160690308,
-0.251517653465271,
0.11249266564846039,
0.601351261138916,
-0.2063903659582138,
0.020885534584522247,
-0.4196625053882599,
-0.42012691497802734,
0.18996374309062958,
0.26932039856910706,
-0.03414052352309227,
0.4477236270904541,
-0.30258429050445557,
0.08851772546768188,
0.439207524061203,
-0.12548363208770752,
-0.7618817687034607,
-0.003320306073874235,
-0.2596686780452728,
-0.1898876577615738,
0.17900143563747406,
0.07903099060058594,
0.2497507929801941,
-0.1000053808093071,
0.24605703353881836,
0.13707484304904938,
0.012917897664010525,
-0.04594685882329941,
-0.23870016634464264,
-0.01056472584605217,
-0.0045893220230937,
0.18394120037555695,
0.10487750917673111,
0.20509816706180573,
0.15016800165176392,
-0.07256824523210526,
0.23575560748577118,
0.16073332726955414,
0.09941522777080536,
0.3408913016319275,
0.33139050006866455,
-0.026513729244470596,
-0.019944269210100174,
-0.18357433378696442,
-0.1992594599723816,
0.12322912365198135,
-0.21627870202064514,
0.10841506719589233,
-0.20868036150932312,
-0.13046494126319885,
-0.44674235582351685,
0.059462565928697586,
-0.06538476049900055,
-0.09304262697696686,
0.1499171257019043,
-0.00027611706173047423,
0.3107365667819977,
0.3321077823638916,
-0.020355425775051117,
0.32068201899528503,
0.26770326495170593,
0.10301177948713303,
-0.1375439167022705,
0.5665911436080933,
-0.13397882878780365,
0.05680464580655098,
0.4536592662334442,
-0.2412831038236618,
0.23640373349189758,
-0.08168148994445801,
-0.06230111047625542,
0.1545938104391098,
0.06046945974230766,
0.3422279953956604,
0.47713354229927063,
0.23964104056358337,
0.17216558754444122,
-0.43543538451194763,
0.2116641104221344,
0.3432684540748596,
0.07830239832401276,
0.1411447823047638,
-0.19090697169303894,
0.021361693739891052,
0.15398508310317993,
0.03501652926206589,
-0.017607320100069046,
0.2682007849216461,
0.5447123050689697,
0.07632357627153397,
0.0633014664053917,
-0.0642058327794075,
0.2679160535335541,
0.5545852780342102,
0.22247804701328278,
-0.0677623376250267,
-0.2419169396162033,
0.145709827542305,
0.5387060046195984,
-0.03721773251891136,
0.05278592184185982,
0.23559531569480896,
-0.14766816794872284,
-0.06319115310907364,
-0.19531004130840302,
0.20978707075119019,
0.17180973291397095,
0.059628862887620926,
0.1565222144126892,
0.010635051876306534,
-0.07776989042758942,
-0.26678821444511414,
0.05513353273272514,
0.07252122461795807,
0.1452949196100235,
0.14184248447418213,
0.12197582423686981,
0.20613358914852142,
-0.08200931549072266,
-0.30872872471809387,
0.030994299799203873,
0.305666446685791,
-0.13110165297985077,
-0.07953863590955734,
-0.259268194437027,
0.0049414560198783875,
-0.2732790410518646,
-0.31596314907073975,
-0.2113303542137146,
-0.3952905535697937,
0.060542043298482895,
0.26576128602027893,
0.06559973210096359,
-0.010298367589712143,
-0.05603621155023575,
0.033999837934970856,
0.2436152547597885,
-0.3098420798778534,
-0.13410891592502594,
-0.15004950761795044,
-0.10418955236673355,
0.1706148087978363,
0.23775982856750488,
-0.3077159523963928,
0.3982348144054413,
-0.6368308663368225,
0.11993805319070816,
-0.5480056405067444,
-0.23462189733982086,
-0.04311726614832878,
-0.18990617990493774,
0.09422899037599564,
0.17561447620391846,
0.4022015333175659,
0.3427291512489319,
0.2505163252353668,
0.19375422596931458,
-0.02479293942451477,
-0.05100634694099426,
0.08910990506410599,
-0.13872039318084717,
-0.04412391036748886,
0.18273381888866425,
-0.4613678455352783,
-0.3021491467952728,
-0.22804978489875793,
0.04443534463644028,
0.06290711462497711,
0.2366311103105545,
-0.2858434319496155,
0.17098884284496307,
0.06599444895982742,
0.1328108012676239,
-0.3080635070800781,
-0.12229657918214798,
-0.1796017289161682,
0.4985625445842743,
-0.23718105256557465,
-0.23330573737621307,
0.10590086132287979,
0.1302611529827118,
0.47575223445892334,
0.16746708750724792,
-0.4497700035572052,
0.17924371361732483,
-0.34597036242485046,
0.15347960591316223,
-0.04684622213244438,
0.07588731497526169,
0.3201242685317993,
0.14537303149700165,
-0.11371996998786926,
-0.05699304863810539,
-0.1610034555196762,
-0.05003901198506355,
-0.385509192943573,
0.23301133513450623,
-0.03675749525427818,
0.2503892481327057,
-0.12100701034069061,
0.39819881319999695,
0.25511038303375244,
0.07454711198806763,
0.3040677607059479,
-0.19432629644870758,
0.13060332834720612,
-0.1279258131980896,
-0.1889469027519226,
-0.09842509031295776,
0.15770356357097626,
-0.11632407456636429,
-0.1967867612838745,
-0.018464062362909317,
0.07412099093198776,
-0.16941317915916443,
-0.10427948087453842,
-0.20427916944026947,
-0.28362470865249634,
-0.1303625851869583,
0.017782142385840416,
0.4172819256782532,
0.18590953946113586,
0.015683190897107124,
-0.16743066906929016,
-0.09354198724031448,
0.2443631887435913,
0.13966333866119385,
-0.00149681291077286,
-0.01804511435329914,
-0.12513703107833862,
-0.1843106597661972,
-0.6704332828521729,
0.34411659836769104,
-0.1174287497997284,
0.23539999127388,
-0.09272421151399612,
0.18525056540966034,
0.11048118770122528,
-0.04633769765496254,
0.5471501350402832,
0.06253737956285477,
0.3733004033565521,
0.35639438033103943,
0.27668243646621704,
-0.1460459977388382,
-0.052510473877191544,
-0.13045160472393036,
0.2965845465660095,
-0.026361217722296715,
0.3771857023239136,
-0.2650289833545685,
-0.05549626424908638,
0.22224505245685577,
0.18887145817279816,
-0.10315660387277603,
0.18050456047058105,
-0.06394790858030319,
-0.4556210935115814,
-0.20931199193000793,
-0.17720147967338562,
-0.08709844946861267,
0.2738865315914154,
-0.15301118791103363,
-0.08726152032613754,
0.06726770102977753,
-0.14736925065517426,
-0.017555413767695427,
-0.16865698993206024,
0.38129308819770813,
-0.163720965385437,
0.1771625280380249,
-0.009664032608270645,
-0.2981497645378113,
0.592555820941925,
0.9116897583007812,
-0.009422083385288715,
-0.4505525827407837,
-0.06999699771404266,
0.10417819768190384,
-0.1924932301044464,
0.03705450892448425,
-0.10771489888429642,
-0.15561628341674805,
-0.13476622104644775,
0.12147470563650131,
-0.1697995513677597,
0.2179345190525055,
0.266815721988678,
0.07851208001375198,
-0.41894686222076416,
-0.3319603204727173,
0.4077741205692291,
0.16759096086025238,
-0.042266037315130234,
0.4756699204444885,
0.12317825108766556,
0.005215136334300041,
-0.15127462148666382,
-0.14658695459365845,
0.7076451182365417,
-0.17085178196430206,
0.1218787208199501,
0.39792296290397644,
-0.16708935797214508,
0.2951295077800751,
0.05398961529135704,
0.054950498044490814,
-0.3560289144515991,
0.22415439784526825,
-0.05079853534698486,
-0.0956093892455101,
0.04228903353214264,
0.033159542828798294,
-0.22615282237529755,
0.37607401609420776,
-0.19127066433429718,
0.00576173746958375,
0.23429933190345764,
0.22993697226047516,
-0.2325206995010376,
0.14330744743347168,
-0.24940547347068787,
0.2325793355703354,
-0.17009109258651733,
0.5963364243507385,
0.01260476466268301,
-0.15788666903972626,
-0.23525193333625793,
-0.08879250288009644,
-0.45868244767189026,
0.22263078391551971,
-0.353146493434906,
0.04721805080771446,
-0.12919536232948303,
-0.22001266479492188,
0.06455999612808228,
0.1586478054523468,
0.30449163913726807,
0.23625601828098297,
-0.5237360000610352,
0.2670381963253021,
-0.3025304973125458,
-0.35137149691581726,
0.1728501170873642,
0.21179847419261932,
0.21361547708511353,
-0.03559083491563797,
-0.2754931151866913,
0.19301311671733856,
0.01657918095588684,
-0.1336367130279541,
-0.1597440093755722,
-0.30233293771743774,
0.09608464688062668,
-0.28713399171829224,
0.03088449314236641,
-0.17845545709133148,
-0.06391683220863342,
-0.2592560946941376,
0.21087826788425446,
0.24442875385284424,
0.1790865659713745,
-0.07703175395727158,
-0.20085324347019196,
-0.2742713689804077,
-0.1253170222043991,
0.45766863226890564,
-0.08990694582462311,
0.036266494542360306,
0.30033496022224426,
0.14185525476932526,
-0.042109839618206024,
-0.23702643811702728,
-0.0758943185210228,
0.08708760887384415,
-0.07054268568754196,
0.2010706067085266,
-0.2461969554424286,
0.46026185154914856,
-0.19835346937179565,
0.031058430671691895,
0.00728113716468215,
-0.06026158854365349,
-0.017448699101805687,
-0.4184098243713379,
-0.003498832695186138,
0.13995036482810974,
0.06899862736463547,
0.008093638345599174,
0.08017579466104507,
0.3379449248313904,
0.07537207752466202,
-0.24152344465255737,
-0.3141225278377533,
0.15333539247512817,
0.010091779753565788,
-0.26027628779411316,
0.3766638934612274,
0.12650303542613983,
0.24597178399562836,
-0.10167625546455383,
0.18485558032989502,
-0.21972182393074036,
-0.22109702229499817,
-0.2645953595638275,
0.00002971019785036333,
0.05816499888896942,
-0.04339580237865448,
-0.08841483294963837,
0.12358833104372025,
-0.38157758116722107,
-0.2894199788570404,
0.24473652243614197,
0.08464226126670837,
0.42679736018180847,
-0.024262739345431328,
-0.06266190856695175,
0.17425678670406342,
0.02564404532313347,
-0.07157348841428757,
0.05229328200221062,
-0.05069277808070183,
0.0010749069042503834,
-0.024259459227323532,
0.3078615069389343,
0.00983642041683197,
-0.14883139729499817,
-0.30806764960289,
-0.012468177825212479,
0.06957730650901794,
-0.08357434719800949,
0.4794926643371582,
-0.23818999528884888,
0.058693546801805496,
0.3324649930000305,
0.13153643906116486,
0.3096736967563629,
-0.5152159929275513,
0.11309458315372467,
0.04085967689752579,
0.2866988480091095,
-0.3299863934516907,
-0.12997746467590332,
-0.23883557319641113,
0.013305697590112686,
-0.12264027446508408,
-0.023743098601698875,
-0.06547462195158005,
0.1589626967906952,
0.2537429928779602,
0.13775570690631866,
0.37715476751327515,
-0.19480185210704803,
0.22890546917915344,
0.3093295395374298,
0.10268685966730118,
0.186253160238266,
0.22176341712474823,
0.07996494323015213,
-0.09696841239929199,
0.4350671172142029,
-0.22939199209213257,
0.15007582306861877,
-0.06771144270896912,
0.07908238470554352,
0.18580381572246552,
-0.20166803896427155,
-0.3423798978328705,
0.20994658768177032,
-0.10701802372932434,
-0.04168528690934181,
0.0382252037525177,
0.26469317078590393,
-0.3808477520942688,
0.25993990898132324,
-0.2471592128276825,
0.21804295480251312,
0.03969178721308708,
-0.10703785717487335,
-0.07102187722921371,
-0.2772125005722046,
-0.1615738570690155,
0.111186683177948,
0.054403021931648254,
-0.057487182319164276,
-0.11724577099084854,
-0.00042441594996489584,
-0.41129931807518005,
-0.41728636622428894,
0.045343220233917236,
0.1922144889831543,
0.15196679532527924,
-0.12516123056411743,
0.41580191254615784,
-0.06668603420257568,
-0.28173989057540894,
0.15395179390907288,
0.4888013005256653,
0.49098342657089233,
0.16524145007133484,
0.2514760494232178,
-0.14476796984672546,
-0.25712719559669495,
-0.2132364958524704,
0.07024990767240524,
0.11483705043792725,
-0.03347029164433479,
0.0071204910054802895,
0.2830831706523895,
0.20912985503673553,
-0.1540866196155548,
0.12444878369569778,
0.0029566350858658552,
0.3419489562511444,
0.0563802644610405,
0.37019336223602295,
-0.3759680688381195,
-0.09316635131835938,
-0.2818804383277893,
-0.08912769705057144,
-0.3936677575111389,
-0.1934797316789627,
0.12496546655893326,
0.03782999888062477,
0.00913598295301199,
-0.26821988821029663,
0.12840190529823303,
0.03217466548085213,
0.18458877503871918,
0.2696234881877899,
0.20586808025836945,
-0.2469169646501541,
-0.3324059247970581,
-0.5042060017585754,
0.14899985492229462,
-0.1049712672829628,
-0.2146734893321991,
-0.14114271104335785,
0.021500801667571068,
-0.2108842134475708,
0.06252923607826233,
0.29793572425842285,
-0.01730484329164028,
-0.18923994898796082,
-0.16133420169353485,
-0.1859370768070221,
-0.013821195811033249,
-0.17595332860946655,
0.031495265662670135,
0.03161881864070892,
-0.33354702591896057,
0.279133141040802,
-0.34898120164871216,
0.07214511185884476,
-0.2029922753572464,
0.05827736482024193,
0.08456210047006607,
-0.02090574987232685,
0.2773115932941437,
0.17823219299316406,
0.16332142055034637,
-0.07166163623332977,
-0.12428334355354309,
-0.46047836542129517,
-0.0752217099070549,
-0.19515857100486755,
0.06040479615330696,
-0.1034029871225357,
0.09617386013269424,
-0.18126720190048218,
-0.4262297451496124,
-0.12998470664024353,
0.05917448550462723,
-0.15105648338794708,
0.06788549572229385,
-0.18107594549655914,
-0.02992084063589573,
-0.050120800733566284,
0.1820133477449417,
0.17484457790851593,
0.047105371952056885,
-0.001565555459819734,
0.09696514904499054,
-0.29985320568084717,
-0.28404316306114197,
0.16382665932178497,
0.018810585141181946,
-0.007454896345734596,
-0.09210700541734695,
0.04840265214443207,
0.23156264424324036,
0.06438902765512466,
-0.18918217718601227,
0.23621304333209991,
0.41562357544898987,
0.009564469568431377,
-0.16962957382202148,
0.19371789693832397,
-0.11111509054899216,
0.14572814106941223,
0.17899517714977264,
0.4593869745731354,
-0.040630221366882324,
-0.11746744811534882,
0.022175611928105354,
-0.048267900943756104
] |
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.15531973540782928,
-0.1002308651804924,
-0.07032092660665512,
-0.07981617003679276,
-0.10425446182489395,
-0.18798765540122986,
0.010402891784906387,
0.2728636562824249,
-0.00984908640384674,
-0.08414012938737869,
0.29261478781700134,
-0.07787508517503738,
-0.13245657086372375,
0.21589013934135437,
-0.056228939443826675,
0.17054544389247894,
0.20032291114330292,
-0.04079766571521759,
-0.09233284741640091,
0.027923069894313812,
0.022608669474720955,
-0.06870309263467789,
0.08319990336894989,
0.043630607426166534,
-0.18378335237503052,
0.005400923080742359,
-0.014811626635491848,
0.15649652481079102,
-0.43976572155952454,
-0.4695698022842407,
0.14524723589420319,
0.23224018514156342,
0.02510645240545273,
0.5705346465110779,
-0.00010436370939714834,
-0.0003457187849562615,
0.16948652267456055,
-0.04060114175081253,
-0.14010192453861237,
-0.21546320617198944,
-0.49010682106018066,
-0.4447953402996063,
-0.07006349414587021,
-0.008354744873940945,
0.12880702316761017,
0.05286799743771553,
-0.13250048458576202,
0.0238454882055521,
0.38484567403793335,
0.10555262118577957,
0.2386108934879303,
-0.10285184532403946,
0.18124067783355713,
0.013769826851785183,
0.39200904965400696,
0.5474529266357422,
-0.06663466989994049,
0.3032000958919525,
0.05401795729994774,
0.0006766861188225448,
0.061106160283088684,
0.17410808801651,
-0.08237243443727493,
-0.2866702079772949,
0.22701941430568695,
-0.1779913604259491,
0.5181736946105957,
-0.4243534803390503,
-0.24158358573913574,
-0.08311712741851807,
0.05237904191017151,
-0.17814642190933228,
-0.4089035987854004,
-0.24193596839904785,
-0.1499471664428711,
0.00763351283967495,
0.06778059899806976,
0.24686455726623535,
0.03974035009741783,
0.0036495926324278116,
-0.3773651123046875,
-0.2718093693256378,
-0.004408000037074089,
0.04920420050621033,
0.14194121956825256,
-0.1626288741827011,
0.06642638146877289,
-0.12703824043273926,
0.2942221462726593,
-0.047327931970357895,
-0.14698342978954315,
-0.36763426661491394,
-0.24133388698101044,
-0.012587102130055428,
-0.10261385887861252,
-0.19574721157550812,
-0.24620725214481354,
-0.32482749223709106,
0.4251306653022766,
0.3889678716659546,
-0.38327327370643616,
0.013740005902945995,
-0.0304893646389246,
-0.08101623505353928,
0.20718440413475037,
0.11785796284675598,
-0.01048989500850439,
0.058488957583904266,
0.5307136178016663,
0.31444051861763,
0.005158144515007734,
0.3255856931209564,
0.30156955122947693,
0.0030475857201963663,
0.03444691374897957,
0.5741186141967773,
0.42894452810287476,
-0.2629207670688629,
0.1276474893093109,
0.19597388803958893,
-0.34120091795921326,
-0.3845082223415375,
0.07113084197044373,
-0.0861721783876419,
0.11032514274120331,
0.027132714167237282,
-0.11471130698919296,
0.06680179387331009,
0.04519052058458328,
-0.03808602690696716,
-0.30790308117866516,
-0.1414857655763626,
-0.3744000792503357,
-0.06853027641773224,
0.18604029715061188,
-0.45710432529449463,
0.14916755259037018,
0.43252453207969666,
-0.06803790479898453,
-0.19928522408008575,
0.04455225169658661,
0.12922529876232147,
0.055586449801921844,
0.29611989855766296,
-0.15379802882671356,
-0.4526284635066986,
0.2235964685678482,
0.13133293390274048,
-0.06689950078725815,
0.19400432705879211,
-0.15989989042282104,
-0.26162227988243103,
-0.10497664660215378,
0.2977658212184906,
-0.1482720971107483,
0.30715611577033997,
-0.5237663984298706,
0.03637252748012543,
-0.004483480472117662,
0.35067078471183777,
0.4910377562046051,
0.3025484085083008,
0.32807862758636475,
-0.16859406232833862,
0.0617574118077755,
0.1903453767299652,
0.32351189851760864,
-0.05168672278523445,
0.062304988503456116,
-0.2877363860607147,
0.1095045879483223,
0.14507398009300232,
-0.31215932965278625,
0.01755654253065586,
-0.005236064083874226,
-0.13128210604190826,
0.01077660545706749,
-0.07140649855136871,
-0.11198792606592178,
-0.09892943501472473,
-0.3666854500770569,
0.06940250843763351,
-0.04073735699057579,
-0.10077665001153946,
0.20795653760433197,
-0.3201749324798584,
-0.09479431807994843,
0.20508210361003876,
-0.14812292158603668,
0.02089829370379448,
-0.2919877767562866,
-0.606138288974762,
-0.16365627944469452,
-0.06343865394592285,
0.12491481751203537,
0.22756394743919373,
0.36076995730400085,
-0.005031048785895109,
-0.02836156263947487,
-0.17140212655067444,
-0.009397837333381176,
0.11250702291727066,
0.34213680028915405,
-0.14967824518680573,
-0.24154196679592133,
0.13224650919437408,
-0.3545883595943451,
0.09114079177379608,
-0.07851307094097137,
-0.009775295853614807,
0.034448910504579544,
-0.3157886564731598,
0.34127944707870483,
-0.0440533347427845,
-0.12080159783363342,
-0.1141509860754013,
0.24151724576950073,
0.09595154225826263,
-0.17473335564136505,
-0.20392122864723206,
-0.2074061930179596,
0.2601916193962097,
-0.24083100259304047,
0.30186572670936584,
0.13001346588134766,
0.10263756662607193,
-0.14118121564388275,
-0.036453526467084885,
-0.025096531957387924,
0.36193639039993286,
0.2363048493862152,
-0.08991739153862,
-0.05915878340601921,
0.16876089572906494,
-0.04906293377280235,
0.20357103645801544,
0.22469498217105865,
0.42524170875549316,
0.37361544370651245,
-0.10268162935972214,
0.0626007467508316,
-0.09179318696260452,
-0.07872455567121506,
0.024594129994511604,
-0.32912692427635193,
0.3280372619628906,
0.07369408756494522,
-0.1394646018743515,
-0.17403186857700348,
-0.10333304852247238,
-0.1740741729736328,
-0.22026953101158142,
-0.17077204585075378,
-0.012950659729540348,
-0.16909819841384888,
0.19436496496200562,
-0.3365916907787323,
0.22236937284469604,
-0.2772085964679718,
0.14857828617095947,
0.015052268281579018,
-0.2516063153743744,
-0.10240086168050766,
0.06829802691936493,
-0.005966885946691036,
-0.13271464407444,
0.12417072802782059,
0.377383291721344,
0.12787438929080963,
0.17009972035884857,
0.004273881204426289,
0.020151792094111443,
0.257283091545105,
-0.11643557250499725,
0.3533255159854889,
0.14430692791938782,
-0.10544465482234955,
0.05406458303332329,
0.336455762386322,
0.18121877312660217,
0.06433238834142685,
0.34692004323005676,
-0.003324499586597085,
0.03525839373469353,
-0.20840714871883392,
-0.045984454452991486,
-0.26021048426628113,
-0.5283414721488953,
0.21923710405826569,
-0.1106376051902771,
-0.35521602630615234,
-0.008503594435751438,
-0.04536627605557442,
0.04741789773106575,
-0.5248718857765198,
0.13602988421916962,
0.18358105421066284,
0.2905263900756836,
-0.3178030848503113,
-0.11997764557600021,
0.1263156533241272,
-0.022595206275582314,
0.01234422903507948,
0.12855996191501617,
0.36316022276878357,
-0.22668014466762543,
0.4594516158103943,
0.23898059129714966,
-0.1695568710565567,
-0.4726402163505554,
-0.3434128165245056,
0.0191300380975008,
-0.20393556356430054,
-0.1179749071598053,
0.009818796068429947,
-0.09893053025007248,
0.09215276688337326,
-0.35854077339172363,
-0.32571226358413696,
-0.018773382529616356,
-0.37300458550453186,
-0.16009610891342163,
0.06959540396928787,
0.06288556009531021,
-0.23461708426475525,
-0.11404042690992355,
-0.3865901231765747,
-0.2821527421474457,
0.47935590147972107,
-0.016433272510766983,
0.11565940082073212,
-0.043173566460609436,
-0.2923773527145386,
-0.045917950570583344,
0.08748225122690201,
0.1366395354270935,
-0.00004469808845897205,
-0.3609325885772705,
0.0325666218996048,
-0.040659911930561066,
-0.02934712916612625,
0.35260966420173645,
0.18549124896526337,
-0.4302403926849365,
0.07125116884708405,
-0.32176098227500916,
-0.15581844747066498,
-0.05208449438214302,
0.48644453287124634,
0.31411951780319214,
-0.09737364947795868,
0.07108019292354584,
0.10355080664157867,
-0.1919001042842865,
0.055089205503463745,
-0.1816115826368332,
0.14722397923469543,
0.34548813104629517,
0.2857188582420349,
0.037900131195783615,
0.14586718380451202,
0.02549722045660019,
0.7140876650810242,
0.37785011529922485,
-0.05965748801827431,
0.21033769845962524,
0.3106973469257355,
-0.027718493714928627,
0.0039906552992761135,
-0.26015692949295044,
0.06504672020673752,
-0.10124300420284271,
-0.000020719162421301007,
0.0867035835981369,
-0.12957845628261566,
-0.12296514213085175,
-0.011211237870156765,
-0.47771474719047546,
0.009155470877885818,
-0.4146764278411865,
-0.2396634966135025,
-0.31818392872810364,
0.18424977362155914,
-0.02252618409693241,
-0.4854891896247864,
0.13138088583946228,
0.053771425038576126,
0.23057617247104645,
0.2159716933965683,
0.21420592069625854,
0.18121571838855743,
-0.020259050652384758,
-0.051084935665130615,
-0.12007343769073486,
-0.0677260160446167,
-0.004331386648118496,
0.14525078237056732,
0.09058025479316711,
-0.1670401692390442,
0.031805768609046936,
0.06955049186944962,
0.3299906253814697,
-0.014868183992803097,
0.1402914971113205,
-0.17080676555633545,
-0.5094847083091736,
0.6086313724517822,
-0.3185938894748688,
0.13940247893333435,
0.2990984618663788,
0.5112258195877075,
0.43976372480392456,
-0.2954542338848114,
-0.19531682133674622,
0.20712296664714813,
0.03255590423941612,
0.1978360414505005,
0.17734992504119873,
0.14497695863246918,
0.2783074378967285,
-0.4903816878795624,
0.28877437114715576,
0.15483304858207703,
-0.2504822909832001,
-0.15517573058605194,
-0.003905670950189233,
-0.027050675824284554,
0.12646324932575226,
-0.026304658502340317,
-0.24539846181869507,
0.009127544239163399,
-0.10943787544965744,
0.17344562709331512,
0.13292011618614197,
0.06982813030481339,
0.41521939635276794,
0.5946586728096008,
0.13493414223194122,
-0.3891982436180115,
-0.0482017956674099,
-0.1750735342502594,
-0.07428350299596786,
0.32714328169822693,
0.19835078716278076,
0.24822814762592316,
0.02034880965948105,
0.17768685519695282,
-0.12347234040498734,
-0.2662383019924164,
-0.20336656272411346,
-0.03849127143621445,
-0.07674255967140198,
0.007589792367070913,
0.08732964098453522,
-0.045897603034973145,
-0.09099198132753372,
0.013048315420746803,
0.1399984061717987,
-0.3661000728607178,
0.16378472745418549,
0.618050217628479,
0.9825447201728821,
0.39756742119789124,
0.08903336524963379,
-0.25465741753578186,
-0.3273830711841583,
0.32599058747291565,
-0.3401077389717102,
-0.16645142436027527,
-0.24701723456382751,
-0.12358809262514114,
-0.1842459887266159,
-0.34031161665916443,
-0.0386943556368351,
-0.4898478090763092,
-0.35285627841949463,
0.13511325418949127,
-0.21805521845817566,
0.5279182195663452,
0.008177646435797215,
0.12338633090257645,
0.1910189539194107,
-0.12231427431106567,
0.2551511526107788,
0.1982705295085907,
0.06181073561310768,
0.10409564524888992,
-0.004027787130326033,
-0.46879035234451294,
-0.002231975318863988,
0.020538587123155594,
-0.37726959586143494,
0.08914711326360703,
-0.3437780737876892,
0.038846760988235474,
-0.2063533067703247,
-0.31605175137519836,
0.11582734435796738,
-0.08704760670661926,
0.6059408187866211,
0.16663070023059845,
-0.07945189625024796,
-0.04462076723575592,
0.29138901829719543,
0.46452468633651733,
-0.22885191440582275,
-0.21953071653842926,
0.5223726034164429,
-0.21336418390274048,
-0.13021786510944366,
-0.2047620415687561,
-0.08033473789691925,
-0.23709255456924438,
-0.26094692945480347,
-0.12804310023784637,
-0.3282323181629181,
0.07950219511985779,
0.04171394556760788,
0.26365360617637634,
-0.0910702794790268,
-0.16760627925395966,
0.1859932243824005,
0.11548584699630737,
-0.10757317394018173,
-0.11858434230089188,
-0.16952012479305267,
-0.26104018092155457,
-0.06781598180532455,
0.20160089433193207,
0.16160596907138824,
-0.12060700356960297,
-0.07676426321268082,
0.09965773671865463,
-0.2443370819091797,
-0.22078974545001984,
-0.2072921097278595,
0.10598744451999664,
-0.1394687443971634,
0.09298095852136612,
-0.5486781597137451,
-0.3299342095851898,
0.051746293902397156,
0.2461930513381958,
0.2794156074523926,
0.3304987847805023,
0.11800006777048111,
-0.09977079182863235,
-0.22444963455200195,
0.2186434119939804,
-0.3279258608818054,
0.1686493307352066,
0.02358476258814335,
0.15881159901618958,
-0.026009706780314445,
0.04043079540133476,
-0.3905957043170929,
0.16031542420387268,
-0.12548141181468964,
-0.02112666144967079,
-0.22552089393138885,
-0.10175278782844543,
-0.0006310474709607661,
-0.3081865608692169,
0.03248736262321472,
0.023433532565832138,
-0.19575634598731995,
-0.2830153703689575,
0.09266898036003113,
0.06569575518369675,
0.06478910893201828,
-0.057013917714357376,
-0.05746065825223923,
-0.10815796256065369,
0.0827532410621643,
0.27203258872032166,
0.23969238996505737,
-0.15849146246910095,
0.10971309244632721,
-0.03222464397549629,
0.17108863592147827,
0.11058492213487625,
-0.02477349527180195,
0.08924203366041183,
0.01463253516703844,
-0.2658020853996277,
-0.03537539765238762,
0.26716020703315735,
-0.18174591660499573,
-0.21714401245117188,
-0.26853927969932556,
0.18883471190929413,
0.10563407093286514,
0.5840901136398315,
0.2028803676366806,
0.14421677589416504,
-0.40508270263671875,
0.175408735871315,
-0.05319824069738388,
-0.0036357289645820856,
-0.1692354530096054,
-0.09694048017263412,
-0.0849621444940567,
0.27936044335365295,
-0.08671959489583969,
-0.30359718203544617,
0.2713833749294281,
0.18818144500255585,
0.0007482980145141482,
0.10497096925973892,
0.5280751585960388,
0.1296207308769226,
-0.18965329229831696,
0.4221358895301819,
0.2712428867816925,
-0.08767576515674591,
0.4948998689651489,
0.47023287415504456,
-0.11318212747573853,
-0.020325029268860817,
-0.0827360674738884,
0.11661466211080551,
0.2306870073080063,
-0.254096657037735,
0.12847205996513367,
0.29621922969818115,
0.6462967395782471,
-0.16888369619846344,
0.39355534315109253,
-0.03309621661901474,
0.3437395989894867,
0.19799353182315826,
0.058740053325891495,
-0.24604937434196472,
0.3927091360092163,
0.21170760691165924,
0.33015137910842896,
-0.6189892888069153,
0.13637341558933258,
0.4914034903049469,
0.049282822757959366,
0.19958175718784332,
-0.40010637044906616,
-0.04923272877931595,
-0.05847597494721413,
-0.04831400141119957,
-0.07818280160427094,
0.163496196269989,
0.1237371489405632,
0.2829667329788208,
0.0065843588672578335,
-0.08837797492742538,
-0.0434405654668808,
0.1850484311580658,
0.24156184494495392,
-0.11699796468019485,
-0.18117256462574005,
0.35775551199913025,
-0.27619805932044983,
0.06649328023195267,
0.2154608815908432,
0.1350686401128769,
-0.07471594959497452,
-0.0686337798833847,
0.18023493885993958,
0.45039471983909607,
-0.16993394494056702,
0.022511977702379227,
0.05574922636151314,
-0.16256769001483917,
0.15771664679050446,
0.0801469087600708,
0.2580326497554779,
-0.05334086716175079,
0.1128029003739357,
0.03542672470211983,
-0.41529738903045654,
-0.025322241708636284,
0.4330810606479645,
0.5564640760421753,
-0.337731271982193,
0.4601386785507202,
0.11926848441362381,
0.284700870513916,
-0.03268381953239441,
0.4374355673789978,
-0.047126419842243195,
0.11639248579740524,
-0.005153723992407322,
0.1430787593126297,
0.02808927185833454,
0.2575884759426117,
0.14149977266788483,
-0.033345114439725876,
-0.1592889428138733,
0.030106404796242714,
-0.12154112756252289,
0.12743553519248962,
0.2968400716781616,
0.17307069897651672,
0.419888973236084,
-0.2947141230106354,
0.1275683343410492,
0.12823458015918732,
-0.08756892383098602,
-0.3413962423801422,
0.00952207949012518,
0.09408511221408844,
-0.3605293035507202,
0.004247391130775213,
0.22248141467571259,
-0.06943961977958679,
-0.02419464662671089,
0.11893333494663239,
0.4094780385494232,
0.19279037415981293,
0.11209253966808319,
0.10513080656528473,
-0.04934794455766678,
0.3209437429904938,
-0.3918455243110657,
0.22496110200881958,
0.18922264873981476,
-0.10292938351631165,
-0.22188901901245117,
-0.051098328083753586,
0.0073671163991093636,
0.02128075435757637,
-0.43550872802734375,
-0.14018112421035767,
-0.16222603619098663,
0.4209837019443512,
-0.13559666275978088,
0.06829812377691269,
-0.37221798300743103,
0.0687672570347786,
-0.03713466599583626,
0.2683558166027069,
-0.30009913444519043,
0.08640830963850021,
0.05254780128598213,
0.01733780838549137,
0.0883706584572792,
0.13057978451251984,
0.06843439489603043,
0.2528505325317383,
-0.3523164391517639,
-0.12488967925310135,
0.3586621880531311,
-0.019469469785690308,
0.09103629738092422,
-0.21726974844932556,
0.41820475459098816,
0.46544599533081055,
-0.14808103442192078,
-0.33211442828178406,
-0.26351821422576904,
-0.011156358756124973,
-0.2798343300819397,
-0.5420888066291809,
0.29863765835762024,
0.1378679871559143,
0.19743874669075012,
-0.10587088763713837,
0.03660692647099495,
-0.07432687282562256,
-0.15276286005973816,
0.06117137148976326,
-0.19878646731376648
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.3049958646297455,
0.1243886947631836,
-0.04655833542346954,
0.23689711093902588,
0.1517283171415329,
-0.06666014343500137,
-0.006941189058125019,
0.3285398781299591,
0.1737385243177414,
0.02938126213848591,
-0.23138724267482758,
0.35819336771965027,
-0.15032997727394104,
0.25273653864860535,
-0.29778623580932617,
-0.1378115713596344,
0.04446941614151001,
0.032124605029821396,
-0.06149572506546974,
0.1664128601551056,
-0.12391770631074905,
0.4988587200641632,
-0.19577637314796448,
0.0070796231739223,
0.22216475009918213,
0.051321420818567276,
0.1091235801577568,
0.13856640458106995,
0.07986222952604294,
-0.33926883339881897,
0.5981168150901794,
0.10640662163496017,
-0.034869175404310226,
0.4980958104133606,
-0.00012130981485825032,
0.09986749291419983,
0.4398064911365509,
-0.10739781707525253,
-0.4579488933086395,
-0.3686886131763458,
-0.19285306334495544,
0.1319943368434906,
0.21311360597610474,
0.08116317540407181,
-0.07151239365339279,
0.11434229463338852,
-0.30349379777908325,
-0.34604722261428833,
0.24887675046920776,
0.19893336296081543,
0.22672881186008453,
0.21361492574214935,
0.2657428979873657,
0.06658690422773361,
0.17017962038516998,
0.08265256881713867,
0.025971753522753716,
-0.0490865632891655,
0.2940283417701721,
0.014262215234339237,
0.043685395270586014,
0.4806102514266968,
-0.3283523917198181,
-0.21464630961418152,
0.30461809039115906,
-0.29825296998023987,
0.1030707135796547,
-0.39570352435112,
0.29993078112602234,
0.07813707739114761,
0.14626352488994598,
-0.25551894307136536,
-0.5773358345031738,
-0.3483254313468933,
-0.5121469497680664,
-0.2868290841579437,
0.4164740741252899,
-0.21635787189006805,
-0.20099635422229767,
0.22008343040943146,
-0.33426401019096375,
-0.027003757655620575,
0.09349845349788666,
0.053510166704654694,
-0.058481521904468536,
0.29418477416038513,
-0.13183201849460602,
-0.004862235859036446,
0.01498299278318882,
-0.1329008936882019,
0.19240804016590118,
-0.27500447630882263,
-0.1968751698732376,
0.17258010804653168,
-0.015560145489871502,
-0.054613739252090454,
0.09542231261730194,
0.3323281705379486,
0.1405709683895111,
0.03562840819358826,
0.019209055230021477,
0.0845404639840126,
-0.04096363112330437,
0.053677789866924286,
0.1373271495103836,
0.47537872195243835,
0.4901200830936432,
0.24679043889045715,
0.27278751134872437,
0.2854887545108795,
-0.007885520346462727,
-0.001380253117531538,
0.5281853079795837,
-0.16664178669452667,
0.07470707595348358,
0.15173044800758362,
0.19669559597969055,
-0.40486910939216614,
-0.3602130711078644,
0.16896246373653412,
-0.07699989527463913,
-0.1250399351119995,
0.22072626650333405,
0.05349477753043175,
0.10056474059820175,
0.21423345804214478,
0.13208165764808655,
0.03385722637176514,
-0.19647231698036194,
0.06123443692922592,
-0.1725100427865982,
-0.17394547164440155,
0.001162076834589243,
-0.11129895597696304,
-0.04730501025915146,
-0.8997764587402344,
0.17477013170719147,
0.0482604093849659,
0.006348683498799801,
0.10580883920192719,
-0.06977387517690659,
0.20743484795093536,
0.1730155497789383,
0.5229288339614868,
-0.22135838866233826,
0.08390041440725327,
0.16719089448451996,
-0.5483276844024658,
-0.13868708908557892,
0.012528158724308014,
-0.24153761565685272,
-0.11120612919330597,
0.20858687162399292,
0.17358621954917908,
-0.32967182993888855,
0.01265149749815464,
-0.17029903829097748,
0.4515422582626343,
0.2592141330242157,
-0.546686589717865,
-0.07795770466327667,
-0.21337972581386566,
-0.43823495507240295,
-0.19971415400505066,
0.09719069302082062,
0.41313672065734863,
-0.5942537188529968,
-0.32166749238967896,
0.021687503904104233,
0.03190654143691063,
0.039917293936014175,
-0.12293409556150436,
-0.06343846768140793,
-0.24447280168533325,
-0.10776906460523605,
-0.13841737806797028,
0.3606545329093933,
-0.31955447793006897,
-0.7338929176330566,
0.1537257730960846,
0.23602105677127838,
0.5342658758163452,
-0.07095828652381897,
-0.13748379051685333,
0.28139418363571167,
-0.25782936811447144,
0.1459912359714508,
0.08484462648630142,
-0.16490314900875092,
-0.007993651553988457,
-0.3409700095653534,
-0.23469506204128265,
0.2238694727420807,
-0.15029071271419525,
0.09041671454906464,
0.33485865592956543,
0.07900673151016235,
-0.2542208731174469,
0.050292424857616425,
0.03505031019449234,
0.10492393374443054,
0.19909252226352692,
0.2453235536813736,
0.2237653136253357,
0.28630581498146057,
-0.43651869893074036,
-0.28014054894447327,
0.2506175935268402,
0.21412937343120575,
-0.06000082194805145,
-0.1524074673652649,
-0.19822727143764496,
-0.2678271234035492,
-0.08841829746961594,
-0.15897810459136963,
-0.30440956354141235,
0.07887378334999084,
0.02257700264453888,
0.38436412811279297,
-0.038502879440784454,
-0.11452515423297882,
0.6218646764755249,
0.3084535300731659,
0.09448050707578659,
-0.5049418807029724,
0.22964130342006683,
-0.05485289543867111,
0.005168402101844549,
-0.05918478965759277,
0.037782128900289536,
0.29395925998687744,
-0.0685255229473114,
-0.2895762026309967,
0.40787506103515625,
0.03925921395421028,
0.0841682180762291,
-0.027634192258119583,
0.19374603033065796,
0.1773466169834137,
0.21058350801467896,
0.06393349915742874,
0.27418220043182373,
-0.014883799478411674,
0.2087218165397644,
-0.19545656442642212,
0.5572488903999329,
0.029374893754720688,
0.3240499794483185,
0.12083448469638824,
0.14875617623329163,
0.3702501356601715,
0.13056357204914093,
-0.2189951390028,
-0.13707882165908813,
0.3204493522644043,
-0.45872262120246887,
0.06266718357801437,
0.012339707463979721,
-0.12979327142238617,
0.3776249885559082,
0.07168295979499817,
0.07551196217536926,
-0.03345164284110069,
0.3119216859340668,
-0.1593659222126007,
-0.04219040647149086,
0.1813623458147049,
0.4024859070777893,
0.4014509320259094,
0.208831787109375,
0.050716839730739594,
0.07588187605142593,
-0.1615397036075592,
-0.024877332150936127,
0.20824947953224182,
0.12934613227844238,
-0.16964001953601837,
0.1535756140947342,
0.3034210205078125,
0.27320393919944763,
-0.30619823932647705,
0.09339354187250137,
-0.23562417924404144,
0.11953283101320267,
-0.27058109641075134,
0.3616369366645813,
-0.2810100018978119,
-0.22808632254600525,
0.07614169269800186,
-0.1678328514099121,
-0.2615136504173279,
-0.3875217139720917,
0.08989904075860977,
0.3934399485588074,
-0.08621867001056671,
0.25677552819252014,
0.014717184007167816,
0.24454018473625183,
0.13616755604743958,
-0.19968166947364807,
-0.4005717635154724,
-0.20788143575191498,
-0.3476486802101135,
0.0053975810296833515,
0.2051326036453247,
-0.15684911608695984,
0.29703590273857117,
-0.07631005346775055,
-0.2066245824098587,
-0.3902946412563324,
-0.9079108834266663,
-0.048628684133291245,
-0.12396500259637833,
0.6180298924446106,
0.31762295961380005,
-0.09162642806768417,
-0.13527239859104156,
-0.23275724053382874,
0.16658027470111847,
-0.04131532832980156,
-0.43108323216438293,
0.15683920681476593,
0.06662280857563019,
0.16822153329849243,
-0.2003854215145111,
-0.22702887654304504,
-0.11354082077741623,
-0.14581957459449768,
0.007940183393657207,
-0.12768931686878204,
0.08496592938899994,
0.30940449237823486,
0.11235380917787552,
-0.3165162205696106,
-0.0872013121843338,
0.13308636844158173,
-0.33354052901268005,
-0.07733777910470963,
0.07394224405288696,
-0.05416254326701164,
-0.2302437424659729,
-0.034139927476644516,
-0.03198055177927017,
0.08318941295146942,
0.3736625611782074,
-0.4069594144821167,
-0.3791768252849579,
-0.27137303352355957,
-0.004873909056186676,
0.23117733001708984,
0.06836077570915222,
0.2319665402173996,
0.1899951547384262,
0.039103567600250244,
-0.2794685661792755,
-0.43428507447242737,
-0.08862093836069107,
-0.23659567534923553,
0.10954894125461578,
0.14822505414485931,
0.6309946179389954,
0.034563109278678894,
0.47642621397972107,
0.29472652077674866,
0.04896131157875061,
0.13982728123664856,
0.18155494332313538,
0.4972686171531677,
-0.32584699988365173,
-0.4095647931098938,
-0.04670896753668785,
-0.046194564551115036,
0.050513073801994324,
-0.15319085121154785,
0.17958196997642517,
-0.11206100881099701,
-0.34878891706466675,
0.00008835956396069378,
-0.2515634000301361,
-0.2498110681772232,
-0.23862789571285248,
-0.01364349015057087,
0.2690049409866333,
0.3906218707561493,
0.1407700628042221,
-0.3225950300693512,
-0.1763850748538971,
-0.008136960677802563,
0.40074852108955383,
0.10357686132192612,
0.2502204477787018,
-0.18154169619083405,
-0.04714199900627136,
-0.4509265124797821,
0.49255913496017456,
0.2151453197002411,
0.2648921012878418,
-0.11775389313697815,
-0.16296598315238953,
-0.3294474482536316,
-0.04924091324210167,
0.592811644077301,
-0.3631760776042938,
0.04434877634048462,
0.1019543930888176,
-0.208183154463768,
-0.38288190960884094,
0.05112946406006813,
0.007662402931600809,
0.36491069197654724,
0.05435479059815407,
0.35080772638320923,
-0.0821147933602333,
-0.07301539182662964,
-0.08691571652889252,
0.22237448394298553,
-0.12459452450275421,
0.019601574167609215,
-0.2743624150753021,
-0.20494318008422852,
-0.1433096081018448,
0.03141990303993225,
-0.15288963913917542,
0.16506800055503845,
-0.1800079047679901,
-0.06853736937046051,
-0.11314348876476288,
-0.05639287084341049,
0.1153804287314415,
0.13470348715782166,
0.2945029139518738,
-0.10000643879175186,
0.11873939633369446,
0.1441807895898819,
0.240529403090477,
0.04236973449587822,
0.4583908021450043,
-0.27559807896614075,
-0.27809610962867737,
-0.06707117706537247,
0.12080345302820206,
-0.1146407276391983,
0.34373676776885986,
-0.20401647686958313,
-0.017340438440442085,
-0.04445713758468628,
-0.10204262286424637,
-0.021240228787064552,
-0.14110267162322998,
-0.0019386421190574765,
0.3703029155731201,
-0.2049240916967392,
-0.28893691301345825,
0.23296451568603516,
0.23905153572559357,
-0.20434927940368652,
0.43677598237991333,
0.34225568175315857,
-0.2809351980686188,
0.16878964006900787,
-0.19995883107185364,
0.7136855125427246,
0.1521688550710678,
-0.029853807762265205,
0.08779977262020111,
-0.16951791942119598,
0.4524550437927246,
0.3125462532043457,
0.1559777408838272,
-0.06676814705133438,
-0.23704898357391357,
-0.06550593674182892,
-0.03474706783890724,
0.15802282094955444,
-0.1110614687204361,
-0.2036348432302475,
0.5631486177444458,
-0.05921917036175728,
-0.035388097167015076,
0.1755862981081009,
-0.11732881516218185,
-0.20230762660503387,
0.01908836141228676,
-0.43726256489753723,
0.09912535548210144,
-0.021323559805750847,
0.2521663010120392,
0.0010582460090517998,
-0.0767219215631485,
0.055221233516931534,
-0.3087659776210785,
-0.2637815773487091,
-0.052392106503248215,
-0.39920690655708313,
-0.06592708081007004,
0.20812362432479858,
-0.4332798719406128,
0.008973169140517712,
0.05262730270624161,
0.2566775381565094,
-0.008180174976587296,
-0.03730068355798721,
-0.007536974269896746,
0.07026863098144531,
0.4977712333202362,
0.23459261655807495,
0.025033356621861458,
0.28633013367652893,
0.08909398317337036,
0.18678413331508636,
0.01959770731627941,
-0.14201121032238007,
-0.3608390986919403,
-0.018652992323040962,
0.0038100213278084993,
0.11803314089775085,
-0.15886624157428741,
0.0288230087608099,
-0.24285556375980377,
0.02130628563463688,
-0.3648621439933777,
0.06509377807378769,
-0.08983472734689713,
-0.009839411824941635,
0.09432154148817062,
-0.0165626909583807,
-0.22681772708892822,
-0.0053531755693256855,
0.6357892155647278,
-0.1438148021697998,
-0.4367525279521942,
0.12772062420845032,
-0.005566129926592112,
-0.22358438372612,
0.03535866364836693,
-0.20444141328334808,
0.027419257909059525,
-0.27508455514907837,
0.2978782653808594,
-0.2511250078678131,
-0.10712815076112747,
0.2691293954849243,
0.322793185710907,
0.1886083334684372,
0.21461284160614014,
-0.1516665518283844,
-0.39456796646118164,
-0.13708257675170898,
0.2854575514793396,
0.04427393525838852,
0.05498082563281059,
-0.031148498877882957,
-0.3236704170703888,
-0.1444220244884491,
-0.20666372776031494,
-0.22578874230384827,
0.008752429857850075,
0.3313140273094177,
0.07120895385742188,
0.19048720598220825,
0.22056341171264648,
0.15489619970321655,
-0.1995641589164734,
-0.013411496765911579,
0.07258673012256622,
-0.20382007956504822,
-0.1020929366350174,
-0.09334594756364822,
0.09354166686534882,
-0.09116007387638092,
-0.26489919424057007,
-0.15461915731430054,
-0.005753723438829184,
0.06140347570180893,
-0.1646929681301117,
0.41826775670051575,
0.32141587138175964,
-0.11824968457221985,
-0.05369089916348457,
-0.03277776762843132,
0.04722476378083229,
0.30353954434394836,
0.13831108808517456,
0.018565256148576736,
0.03267134726047516,
0.04270431399345398,
0.19944815337657928,
-0.18758130073547363,
0.01409618929028511,
0.08201642334461212,
0.042396288365125656,
-0.2510472536087036,
0.027089864015579224,
0.35693463683128357,
-0.2952960133552551,
-0.021640045568346977,
0.5987740159034729,
0.3562674820423126,
0.24375969171524048,
-0.13980638980865479,
0.11382980644702911,
-0.0777386799454689,
0.15335771441459656,
-0.27390509843826294,
-0.3326781988143921,
0.20577849447727203,
0.27322569489479065,
0.06095705181360245,
0.1860816925764084,
-0.002106759464368224,
0.02915966510772705,
0.6171152591705322,
0.2176479697227478,
0.4478176236152649,
-0.12531647086143494,
0.35080787539482117,
0.5271657705307007,
0.23262830078601837,
0.18437610566616058,
0.24172060191631317,
0.07372505217790604,
0.016092702746391296,
0.5080391764640808,
-0.06600994616746902,
0.2586888074874878,
0.21974721550941467,
0.1287706345319748,
-0.03551821783185005,
-0.46627387404441833,
-0.16567473113536835,
0.02832242287695408,
-0.07974915206432343,
0.25067633390426636,
0.16615724563598633,
0.0856606736779213,
-0.22328415513038635,
-0.3345976769924164,
0.011487964540719986,
0.02489851415157318,
-0.1936260461807251,
-0.21611015498638153,
0.14463895559310913,
-0.3639175295829773,
-0.057149119675159454,
0.013486292213201523,
-0.12084421515464783,
0.07040033489465714,
0.4529308080673218,
-0.24694865942001343,
-0.12836289405822754,
-0.4731905460357666,
-0.37937676906585693,
0.05004537105560303,
0.17476411163806915,
-0.014010344631969929,
0.40476369857788086,
0.25878122448921204,
-0.22985483705997467,
0.22198817133903503,
0.2503437101840973,
0.4856504499912262,
0.24682432413101196,
0.027692072093486786,
0.013347172178328037,
-0.14204935729503632,
-0.05400652065873146,
-0.09072290360927582,
0.33564189076423645,
-0.08708322793245316,
0.030568208545446396,
0.1879347264766693,
0.11341021955013275,
0.0007335285190492868,
0.20539002120494843,
-0.0408545657992363,
0.39893999695777893,
-0.46618109941482544,
0.08953436464071274,
-0.2369537651538849,
0.284879207611084,
0.015014942735433578,
0.10001429915428162,
-0.2490254044532776,
-0.11811461299657822,
0.17121435701847076,
0.23181064426898956,
0.20390275120735168,
-0.10648474842309952,
0.07481084018945694,
0.13485443592071533,
0.07390905916690826,
0.4687882363796234,
-0.09301330149173737,
-0.08924634754657745,
-0.14648911356925964,
-0.6535104513168335,
-0.05586222931742668,
0.14230160415172577,
0.12806755304336548,
-0.06351567804813385,
0.037530235946178436,
0.04901433736085892,
0.18468579649925232,
0.043472953140735626,
-0.18360166251659393,
0.10545911639928818,
-0.2515143156051636,
-0.20000140368938446,
-0.17594648897647858,
0.23012025654315948,
-0.24214798212051392,
0.05484854802489281,
-0.26591023802757263,
0.0627724900841713,
-0.04169318079948425,
0.026953374966979027,
-0.00592831801623106,
-0.06288377195596695,
0.06751435250043869,
0.34733399748802185,
-0.1370737999677658,
0.34939002990722656,
0.2663172781467438,
0.033492859452962875,
-0.0034476423170417547,
-0.2782975733280182,
-0.19313564896583557,
-0.2683141827583313,
0.07008440047502518,
-0.29212453961372375,
0.4918607771396637,
-0.40185973048210144,
-0.3019631505012512,
-0.18042154610157013,
0.2724744975566864,
0.123378686606884,
-0.12682856619358063,
-0.47677886486053467,
0.16585808992385864,
-0.05875702574849129,
0.08381283283233643,
0.004437647759914398,
0.5087337493896484,
0.05998691916465759,
0.33795109391212463,
-0.2266310304403305,
-0.3412231504917145,
0.5358169078826904,
-0.41376158595085144,
-0.2617652416229248,
-0.13192830979824066,
-0.06397363543510437,
0.6073147654533386,
-0.4836443364620209,
-0.3043734133243561,
-0.2037668377161026,
0.27199098467826843,
-0.12000543624162674,
-0.14902515709400177,
0.15557247400283813,
-0.26529788970947266,
0.1745557337999344,
-0.18920162320137024,
-0.0870606005191803,
0.4393826127052307,
-0.08826794475317001,
0.27735406160354614,
-0.12994173169136047
] |
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.22893114387989044,
0.3834540545940399,
0.04034552723169327,
0.25504016876220703,
-0.012111579068005085,
0.2622572183609009,
0.503669023513794,
0.13295313715934753,
0.34428054094314575,
0.13571831583976746,
-0.10897517204284668,
0.07728414237499237,
0.07315033674240112,
-0.005698914173990488,
-0.12562324106693268,
0.07892745733261108,
0.03644514083862305,
-0.005388336721807718,
0.21494898200035095,
0.10395509749650955,
-0.4238829016685486,
0.10729581117630005,
-0.17285455763339996,
0.18611598014831543,
0.02609497681260109,
-0.13634221255779266,
0.12126001715660095,
0.360729455947876,
-0.030788900330662727,
-0.39220693707466125,
0.35302358865737915,
0.06345326453447342,
0.46391862630844116,
0.2582457363605499,
-0.00011924598220502958,
-0.013706213794648647,
0.2306840717792511,
0.12449946999549866,
-0.07372694462537766,
0.08709963411092758,
-0.18398486077785492,
-0.14096812903881073,
0.1652292013168335,
-0.09768719226121902,
0.17674359679222107,
0.3634910583496094,
-0.10213733464479446,
-0.2009294629096985,
-0.013041754253208637,
0.3790341913700104,
0.15730060636997223,
-0.03818458318710327,
-0.11867831647396088,
-0.07520420849323273,
0.4933356046676636,
-0.15929798781871796,
-0.13318006694316864,
0.27983781695365906,
0.07902494817972183,
-0.1145690307021141,
-0.09899087250232697,
0.19957318902015686,
-0.16214892268180847,
0.14715732634067535,
0.018657824024558067,
0.031129680573940277,
0.21623113751411438,
-0.45810940861701965,
0.3521413207054138,
0.15125828981399536,
0.9656503796577454,
-0.1955731064081192,
-0.19140426814556122,
-0.08874817937612534,
0.013303935527801514,
-0.033002614974975586,
0.43260377645492554,
0.42862409353256226,
-0.324568510055542,
0.2523707449436188,
0.06596963852643967,
0.08356558531522751,
-0.08255093544721603,
-0.0019089985871687531,
0.07128576189279556,
0.14865311980247498,
-0.05047062411904335,
0.11955638974905014,
-0.11473095417022705,
-0.08340095728635788,
0.386335164308548,
-0.2138274908065796,
-0.25460243225097656,
0.1916670799255371,
-0.33943647146224976,
0.2898698151111603,
0.05345281958580017,
0.7778053879737854,
0.15787771344184875,
0.3155296742916107,
0.12502335011959076,
-0.05405188351869583,
0.213624507188797,
0.06519035249948502,
0.008592531085014343,
0.32148998975753784,
-0.11223897337913513,
-0.016922693699598312,
0.4271062910556793,
0.11744201928377151,
-0.08161699026823044,
-0.008990559726953506,
-0.020046072080731392,
-0.42947378754615784,
0.35387977957725525,
0.10540735721588135,
0.40811842679977417,
-0.2856414318084717,
-0.12170089036226273,
-0.00029504569829441607,
0.15813201665878296,
-0.02397097274661064,
0.05888323485851288,
0.5011535286903381,
-0.27177220582962036,
0.04268322512507439,
0.06825149059295654,
0.1794445514678955,
0.018610527738928795,
0.09776178747415543,
-0.08779998868703842,
-0.08900274336338043,
-0.2667175829410553,
-0.05143898352980614,
0.40864694118499756,
-0.322576105594635,
0.0955653190612793,
0.25667646527290344,
0.027047500014305115,
-0.1792943924665451,
0.1918322592973709,
-0.041497521102428436,
-0.03285694494843483,
0.3576870262622833,
0.39729610085487366,
0.33763355016708374,
0.1749320775270462,
-0.21229620277881622,
-0.034995391964912415,
0.18631169199943542,
-0.4872901737689972,
-0.40250420570373535,
-0.03366478532552719,
0.12132807821035385,
-0.08332370966672897,
0.06320539116859436,
-0.19803689420223236,
-0.04825780540704727,
0.3823128640651703,
-0.3008546829223633,
-0.06183617189526558,
-0.013725628145039082,
-0.2206202894449234,
-0.5042760372161865,
0.040708258748054504,
0.4012884199619293,
-0.35969793796539307,
0.1303669959306717,
-0.09155311435461044,
-0.2640872895717621,
0.15043319761753082,
0.0056379144079983234,
0.005634539760649204,
0.36168214678764343,
-0.281220406293869,
0.015607540495693684,
0.27745887637138367,
-0.3938947916030884,
-1.0015968084335327,
-0.021003253757953644,
0.07310014963150024,
0.16604147851467133,
0.2444063425064087,
0.1191374883055687,
0.3659380376338959,
-0.030345462262630463,
0.17047584056854248,
0.3187125623226166,
0.1300753355026245,
0.11197467148303986,
-0.06299621611833572,
-0.2038554847240448,
0.27966073155403137,
0.13392609357833862,
0.08833899348974228,
0.3009033799171448,
0.31260010600090027,
-0.05693430453538895,
0.25109565258026123,
-0.18726123869419098,
0.11680460721254349,
0.19251590967178345,
0.011495920829474926,
-0.0351359024643898,
0.13751451671123505,
-0.12773805856704712,
-0.42040878534317017,
0.35144802927970886,
-0.008118398487567902,
0.08516685664653778,
0.075979083776474,
-0.20274308323860168,
-0.3184642195701599,
0.09134066104888916,
-0.5447555184364319,
-0.28899645805358887,
0.08510662615299225,
0.29389894008636475,
0.21242569386959076,
0.0236823707818985,
0.18916423618793488,
0.3374139666557312,
-0.20822682976722717,
0.12719590961933136,
-0.18114064633846283,
0.038606852293014526,
-0.18833814561367035,
-0.13644902408123016,
-0.21224795281887054,
0.04691566899418831,
0.20012833178043365,
0.2527480125427246,
-0.21343328058719635,
0.19610103964805603,
0.151213601231575,
0.03749880567193031,
-0.37855765223503113,
-0.05955677852034569,
-0.022377723827958107,
0.12172956764698029,
0.1568482220172882,
0.13817840814590454,
0.14832349121570587,
-0.04439409077167511,
-0.19221922755241394,
0.13775432109832764,
-0.15963469445705414,
0.1437312662601471,
-0.32665085792541504,
0.24303556978702545,
0.24470677971839905,
0.09005031734704971,
0.08569695055484772,
0.03445245698094368,
0.30547037720680237,
0.02411867305636406,
0.07459575682878494,
-0.28580382466316223,
0.101261667907238,
-0.07780910283327103,
0.05930330604314804,
0.022547775879502296,
0.0812823474407196,
0.24975351989269257,
-0.1746015101671219,
0.01688612997531891,
0.2869933843612671,
0.34967881441116333,
0.5377137660980225,
-0.04098669812083244,
0.05155038461089134,
0.06679745763540268,
0.047912392765283585,
0.08966916799545288,
0.11925192177295685,
0.0857710912823677,
-0.07022712379693985,
0.2634495496749878,
0.1284342259168625,
0.22416628897190094,
-0.06479810923337936,
-0.11386033147573471,
-0.1075412705540657,
0.41942936182022095,
-0.4875134229660034,
-0.08438747376203537,
0.10005465149879456,
0.07484014332294464,
0.1812010109424591,
-0.24284709990024567,
-0.0887812003493309,
-0.14609843492507935,
-0.24304597079753876,
0.3116368055343628,
0.09407094866037369,
0.08353794366121292,
-0.5119563341140747,
0.16444025933742523,
0.0075377835892140865,
-0.20180554687976837,
-0.11375712603330612,
0.12387921661138535,
-0.16583384573459625,
-0.014107221737504005,
0.18624508380889893,
-0.17993931472301483,
0.18738852441310883,
-0.29515886306762695,
0.24375151097774506,
-0.3901769518852234,
-0.19543322920799255,
0.015109646134078503,
0.057886626571416855,
0.4098418653011322,
0.12543125450611115,
0.15510721504688263,
0.18641026318073273,
-0.34176528453826904,
0.05660318210721016,
-0.1075194925069809,
-0.15106157958507538,
0.2333710640668869,
-0.055027563124895096,
0.09385505318641663,
0.03419669345021248,
-0.24937550723552704,
-0.5408254265785217,
-0.2501787543296814,
-0.009575664065778255,
0.3858901858329773,
0.09830182790756226,
-0.0028513704892247915,
-0.11265350878238678,
0.0033438261598348618,
0.26702913641929626,
0.39376768469810486,
-0.21082808077335358,
-0.24920234084129333,
0.21024970710277557,
-0.20926885306835175,
-0.33469972014427185,
0.0819491520524025,
-0.10423032194375992,
0.04457153007388115,
0.25238221883773804,
-0.4788483679294586,
-0.0906343162059784,
-0.3600659668445587,
0.40960797667503357,
-0.23261573910713196,
0.09382869303226471,
0.3463049530982971,
0.08929306268692017,
0.14639881253242493,
-0.04174824804067612,
-0.2757156491279602,
-0.06513577699661255,
-0.2946411967277527,
-0.06823248416185379,
0.3381982147693634,
0.42744967341423035,
-0.0575702041387558,
0.37703201174736023,
0.30022838711738586,
0.3604489266872406,
0.33447185158729553,
0.045841023325920105,
0.37111327052116394,
0.05426068976521492,
-0.2594741880893707,
0.10877594351768494,
-0.19434581696987152,
-0.14016011357307434,
0.3007434010505676,
0.0889817327260971,
-0.19526371359825134,
-0.05253181234002113,
-0.38045358657836914,
-0.280789315700531,
-0.2852861285209656,
-0.09924276918172836,
-0.246331587433815,
0.2537565529346466,
0.11914046108722687,
0.11004234105348587,
-0.44624465703964233,
-0.3691142201423645,
0.028844231739640236,
0.554633378982544,
-0.30983972549438477,
0.11157606542110443,
-0.35080355405807495,
0.13669753074645996,
-0.6549721956253052,
0.2522450387477875,
0.03402543067932129,
0.49580588936805725,
-0.17412368953227997,
0.12669822573661804,
-0.001507472014054656,
-0.10742946714162827,
0.5570670962333679,
-0.6522976160049438,
0.46182987093925476,
0.058122698217630386,
0.11573182791471481,
0.010197044350206852,
-0.2243453711271286,
-0.09225578606128693,
0.2416791319847107,
0.13694190979003906,
0.2145552933216095,
0.16392146050930023,
0.04404165968298912,
0.07620947808027267,
0.16659297049045563,
-0.20013269782066345,
-0.27905750274658203,
-0.2271355390548706,
-0.34188854694366455,
-0.3903859853744507,
0.128006249666214,
0.042198941111564636,
0.18547086417675018,
-0.15174341201782227,
0.11716057360172272,
-0.40468835830688477,
0.23697811365127563,
0.13017885386943817,
0.1602822244167328,
0.18779222667217255,
0.06457539647817612,
0.21815916895866394,
-0.048045627772808075,
0.0753488540649414,
-0.12915600836277008,
0.5240862965583801,
-0.2804768681526184,
-0.32837826013565063,
-0.052490536123514175,
-0.1999860405921936,
-0.11711722612380981,
0.11224112659692764,
-0.32655778527259827,
-0.05009116604924202,
-0.1384815275669098,
-0.13273660838603973,
-0.31433025002479553,
0.11707510054111481,
0.042604029178619385,
-0.13543370366096497,
-0.3776830732822418,
-0.32019323110580444,
0.36414381861686707,
0.2117006629705429,
-0.44672736525535583,
0.34047412872314453,
0.11984751373529434,
-0.4280628561973572,
0.18246929347515106,
0.051760490983724594,
0.7466558814048767,
0.07989036291837692,
0.2780207097530365,
0.09727710485458374,
-0.11229581385850906,
0.2001180648803711,
0.1161787286400795,
0.05655692517757416,
-0.3728867173194885,
-0.45410144329071045,
-0.09887171536684036,
-0.22054263949394226,
-0.1345367431640625,
-0.02494102716445923,
-0.23379424214363098,
0.2817451059818268,
-0.1129787340760231,
0.3188050389289856,
0.27430960536003113,
0.04803803190588951,
-0.37419575452804565,
-0.3764992952346802,
-0.1209944486618042,
0.12518654763698578,
-0.19382387399673462,
0.13586902618408203,
-0.2274903804063797,
0.09111578017473221,
0.08490471541881561,
-0.16739434003829956,
-0.43912172317504883,
0.1967894732952118,
-0.4114467203617096,
0.13811799883842468,
-0.29741790890693665,
-0.38368257880210876,
0.08779965341091156,
0.596064567565918,
0.2849678695201874,
0.36046022176742554,
-0.1543024480342865,
0.06006699800491333,
0.07938897609710693,
0.11794426292181015,
0.02495754323899746,
0.0074557713232934475,
0.19626395404338837,
-0.08069460093975067,
-0.2981886863708496,
-0.015169328078627586,
-0.2781272530555725,
-0.32152971625328064,
-0.105553038418293,
0.28626739978790283,
0.40390545129776,
-0.32011136412620544,
-0.20768895745277405,
-0.3106463849544525,
0.08497348427772522,
-0.2798957824707031,
0.09370318055152893,
0.04704195633530617,
-0.07560183107852936,
0.37954142689704895,
-0.33688831329345703,
-0.4257122576236725,
-0.14751769602298737,
0.5242762565612793,
-0.07907658070325851,
-0.13375602662563324,
0.5711389780044556,
-0.0485030822455883,
-0.17853944003582,
-0.013032259419560432,
0.14549291133880615,
-0.10098475217819214,
-0.46245843172073364,
-0.10034402459859848,
-0.12253538519144058,
0.10782843828201294,
-0.029107024893164635,
0.16985087096691132,
0.278796911239624,
-0.09630994498729706,
0.05340346321463585,
-0.75813889503479,
-0.26210078597068787,
-0.11298516392707825,
-0.23114357888698578,
0.1716354787349701,
0.1831110268831253,
-0.44054073095321655,
-0.1353054642677307,
-0.28408050537109375,
-0.20300324261188507,
0.04410112649202347,
-0.21473442018032074,
-0.129441499710083,
0.27790117263793945,
0.15455766022205353,
-0.0013409730745479465,
0.12451346218585968,
-0.0026245571207255125,
0.0926588773727417,
0.12275485694408417,
-0.17137014865875244,
-0.12370982766151428,
0.14752395451068878,
0.10378224402666092,
-0.09180020540952682,
0.026753896847367287,
-0.32842549681663513,
-0.07359747588634491,
-0.09842561185359955,
0.39404451847076416,
0.2593080401420593,
-0.02815740928053856,
0.0679173395037651,
-0.1276833564043045,
0.2894706726074219,
-0.2827052175998688,
0.41511866450309753,
-0.3472841680049896,
-0.02513059228658676,
-0.013373618945479393,
0.3347688317298889,
-0.141316756606102,
0.054126594215631485,
-0.11745346337556839,
-0.08249495923519135,
0.15325455367565155,
0.06789704412221909,
0.06460656970739365,
-0.37691158056259155,
0.08502579480409622,
0.17875725030899048,
0.05933332070708275,
0.0623638816177845,
-0.23318253457546234,
0.01484121847897768,
0.24505014717578888,
0.15899260342121124,
-0.09227059036493301,
-0.12948782742023468,
-0.012007682584226131,
-0.32347753643989563,
-0.17904455959796906,
0.30041471123695374,
0.16395756602287292,
-0.38362523913383484,
0.13599130511283875,
-0.03240517899394035,
0.5581636428833008,
-0.2246953696012497,
-0.05772078037261963,
0.48134922981262207,
-0.217400461435318,
0.2738090753555298,
0.21858634054660797,
0.2596428692340851,
-0.0843798816204071,
0.5514783263206482,
0.18204298615455627,
0.13673900067806244,
-0.0058678798377513885,
-0.1720479130744934,
-0.10305272787809372,
-0.6628068089485168,
0.28002840280532837,
0.06525269895792007,
-0.07369084656238556,
0.05094325542449951,
-0.029617061838507652,
-0.008635500445961952,
-0.30411553382873535,
-0.0021535977721214294,
-0.43828168511390686,
-0.21689341962337494,
-0.1808835119009018,
-0.28366005420684814,
0.06843408942222595,
-0.23384292423725128,
0.17253975570201874,
0.09277592599391937,
-0.17077620327472687,
-0.14519621431827545,
-0.06997843831777573,
-0.042751483619213104,
-0.3035753071308136,
-0.26846805214881897,
0.11163219809532166,
0.41336789727211,
-0.2662925720214844,
-0.19269153475761414,
0.08904942125082016,
0.006443039048463106,
0.23958061635494232,
0.08864161372184753,
0.09613718092441559,
0.7200039625167847,
0.3696608543395996,
-0.18670599162578583,
-0.08271218836307526,
0.2043791115283966,
0.08497980237007141,
-0.10133529454469681,
0.3095623850822449,
0.1992662101984024,
0.17723055183887482,
0.34535595774650574,
0.11968500167131424,
-0.12446679174900055,
0.037458572536706924,
0.03806004300713539,
-0.00894754845649004,
-0.0834791362285614,
0.18735943734645844,
-0.17643512785434723,
-0.16842374205589294,
0.14056657254695892,
0.1980232149362564,
-0.07277748733758926,
0.170027494430542,
0.23236894607543945,
0.06273747235536575,
0.1945091038942337,
-0.1900540441274643,
0.02006196789443493,
0.14877957105636597,
0.3155461847782135,
0.3503621220588684,
0.0980692207813263,
-0.2335534542798996,
-0.06835919618606567,
-0.5775803923606873,
0.2545951008796692,
-0.01822463609278202,
-0.3800150156021118,
-0.032235048711299896,
-0.13248836994171143,
-0.3368017077445984,
0.1061350628733635,
0.16192305088043213,
-0.10909658670425415,
0.055558428168296814,
0.2668956220149994,
-0.15676145255565643,
-0.2936108112335205,
0.3894374668598175,
-0.03776906058192253,
-0.07810097932815552,
-0.6786638498306274,
0.036601219326257706,
-0.08875995874404907,
0.032007791101932526,
-0.15069954097270966,
-0.16663819551467896,
0.03415020927786827,
-0.026074185967445374,
0.54377681016922,
0.2644127905368805,
0.45556068420410156,
0.007837480865418911,
0.09181363135576248,
-0.5622043609619141,
-0.06879778951406479,
-0.145289808511734,
-0.033695049583911896,
-0.07782576233148575,
0.2713487148284912,
-0.22750376164913177,
0.04143606126308441,
-0.12419261783361435,
0.16709394752979279,
0.266299307346344,
0.3795420527458191,
-0.005456157028675079,
0.22790515422821045,
0.18094351887702942,
0.15718939900398254,
0.3478449583053589,
0.06997191160917282,
-0.0961795449256897,
0.4460363984107971,
-0.24093420803546906,
-0.34204840660095215,
0.21094822883605957,
-0.39415043592453003,
-0.3340475559234619,
-0.019208701327443123,
0.32515695691108704,
-0.2549189329147339,
-0.15313342213630676,
-0.2379632294178009,
0.20610913634300232,
0.24783968925476074,
-0.14348065853118896,
-0.38689717650413513,
0.14134541153907776,
-0.15703527629375458,
0.14029201865196228,
-0.022752411663532257,
0.03422369062900543,
0.010135121643543243,
-0.22538986802101135,
0.170866921544075,
-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.22893114387989044,
0.3834540545940399,
0.04034552723169327,
0.25504016876220703,
-0.012111579068005085,
0.2622572183609009,
0.503669023513794,
0.13295313715934753,
0.34428054094314575,
0.13571831583976746,
-0.10897517204284668,
0.07728414237499237,
0.07315033674240112,
-0.005698914173990488,
-0.12562324106693268,
0.07892745733261108,
0.03644514083862305,
-0.005388336721807718,
0.21494898200035095,
0.10395509749650955,
-0.4238829016685486,
0.10729581117630005,
-0.17285455763339996,
0.18611598014831543,
0.02609497681260109,
-0.13634221255779266,
0.12126001715660095,
0.360729455947876,
-0.030788900330662727,
-0.39220693707466125,
0.35302358865737915,
0.06345326453447342,
0.46391862630844116,
0.2582457363605499,
-0.00011924598220502958,
-0.013706213794648647,
0.2306840717792511,
0.12449946999549866,
-0.07372694462537766,
0.08709963411092758,
-0.18398486077785492,
-0.14096812903881073,
0.1652292013168335,
-0.09768719226121902,
0.17674359679222107,
0.3634910583496094,
-0.10213733464479446,
-0.2009294629096985,
-0.013041754253208637,
0.3790341913700104,
0.15730060636997223,
-0.03818458318710327,
-0.11867831647396088,
-0.07520420849323273,
0.4933356046676636,
-0.15929798781871796,
-0.13318006694316864,
0.27983781695365906,
0.07902494817972183,
-0.1145690307021141,
-0.09899087250232697,
0.19957318902015686,
-0.16214892268180847,
0.14715732634067535,
0.018657824024558067,
0.031129680573940277,
0.21623113751411438,
-0.45810940861701965,
0.3521413207054138,
0.15125828981399536,
0.9656503796577454,
-0.1955731064081192,
-0.19140426814556122,
-0.08874817937612534,
0.013303935527801514,
-0.033002614974975586,
0.43260377645492554,
0.42862409353256226,
-0.324568510055542,
0.2523707449436188,
0.06596963852643967,
0.08356558531522751,
-0.08255093544721603,
-0.0019089985871687531,
0.07128576189279556,
0.14865311980247498,
-0.05047062411904335,
0.11955638974905014,
-0.11473095417022705,
-0.08340095728635788,
0.386335164308548,
-0.2138274908065796,
-0.25460243225097656,
0.1916670799255371,
-0.33943647146224976,
0.2898698151111603,
0.05345281958580017,
0.7778053879737854,
0.15787771344184875,
0.3155296742916107,
0.12502335011959076,
-0.05405188351869583,
0.213624507188797,
0.06519035249948502,
0.008592531085014343,
0.32148998975753784,
-0.11223897337913513,
-0.016922693699598312,
0.4271062910556793,
0.11744201928377151,
-0.08161699026823044,
-0.008990559726953506,
-0.020046072080731392,
-0.42947378754615784,
0.35387977957725525,
0.10540735721588135,
0.40811842679977417,
-0.2856414318084717,
-0.12170089036226273,
-0.00029504569829441607,
0.15813201665878296,
-0.02397097274661064,
0.05888323485851288,
0.5011535286903381,
-0.27177220582962036,
0.04268322512507439,
0.06825149059295654,
0.1794445514678955,
0.018610527738928795,
0.09776178747415543,
-0.08779998868703842,
-0.08900274336338043,
-0.2667175829410553,
-0.05143898352980614,
0.40864694118499756,
-0.322576105594635,
0.0955653190612793,
0.25667646527290344,
0.027047500014305115,
-0.1792943924665451,
0.1918322592973709,
-0.041497521102428436,
-0.03285694494843483,
0.3576870262622833,
0.39729610085487366,
0.33763355016708374,
0.1749320775270462,
-0.21229620277881622,
-0.034995391964912415,
0.18631169199943542,
-0.4872901737689972,
-0.40250420570373535,
-0.03366478532552719,
0.12132807821035385,
-0.08332370966672897,
0.06320539116859436,
-0.19803689420223236,
-0.04825780540704727,
0.3823128640651703,
-0.3008546829223633,
-0.06183617189526558,
-0.013725628145039082,
-0.2206202894449234,
-0.5042760372161865,
0.040708258748054504,
0.4012884199619293,
-0.35969793796539307,
0.1303669959306717,
-0.09155311435461044,
-0.2640872895717621,
0.15043319761753082,
0.0056379144079983234,
0.005634539760649204,
0.36168214678764343,
-0.281220406293869,
0.015607540495693684,
0.27745887637138367,
-0.3938947916030884,
-1.0015968084335327,
-0.021003253757953644,
0.07310014963150024,
0.16604147851467133,
0.2444063425064087,
0.1191374883055687,
0.3659380376338959,
-0.030345462262630463,
0.17047584056854248,
0.3187125623226166,
0.1300753355026245,
0.11197467148303986,
-0.06299621611833572,
-0.2038554847240448,
0.27966073155403137,
0.13392609357833862,
0.08833899348974228,
0.3009033799171448,
0.31260010600090027,
-0.05693430453538895,
0.25109565258026123,
-0.18726123869419098,
0.11680460721254349,
0.19251590967178345,
0.011495920829474926,
-0.0351359024643898,
0.13751451671123505,
-0.12773805856704712,
-0.42040878534317017,
0.35144802927970886,
-0.008118398487567902,
0.08516685664653778,
0.075979083776474,
-0.20274308323860168,
-0.3184642195701599,
0.09134066104888916,
-0.5447555184364319,
-0.28899645805358887,
0.08510662615299225,
0.29389894008636475,
0.21242569386959076,
0.0236823707818985,
0.18916423618793488,
0.3374139666557312,
-0.20822682976722717,
0.12719590961933136,
-0.18114064633846283,
0.038606852293014526,
-0.18833814561367035,
-0.13644902408123016,
-0.21224795281887054,
0.04691566899418831,
0.20012833178043365,
0.2527480125427246,
-0.21343328058719635,
0.19610103964805603,
0.151213601231575,
0.03749880567193031,
-0.37855765223503113,
-0.05955677852034569,
-0.022377723827958107,
0.12172956764698029,
0.1568482220172882,
0.13817840814590454,
0.14832349121570587,
-0.04439409077167511,
-0.19221922755241394,
0.13775432109832764,
-0.15963469445705414,
0.1437312662601471,
-0.32665085792541504,
0.24303556978702545,
0.24470677971839905,
0.09005031734704971,
0.08569695055484772,
0.03445245698094368,
0.30547037720680237,
0.02411867305636406,
0.07459575682878494,
-0.28580382466316223,
0.101261667907238,
-0.07780910283327103,
0.05930330604314804,
0.022547775879502296,
0.0812823474407196,
0.24975351989269257,
-0.1746015101671219,
0.01688612997531891,
0.2869933843612671,
0.34967881441116333,
0.5377137660980225,
-0.04098669812083244,
0.05155038461089134,
0.06679745763540268,
0.047912392765283585,
0.08966916799545288,
0.11925192177295685,
0.0857710912823677,
-0.07022712379693985,
0.2634495496749878,
0.1284342259168625,
0.22416628897190094,
-0.06479810923337936,
-0.11386033147573471,
-0.1075412705540657,
0.41942936182022095,
-0.4875134229660034,
-0.08438747376203537,
0.10005465149879456,
0.07484014332294464,
0.1812010109424591,
-0.24284709990024567,
-0.0887812003493309,
-0.14609843492507935,
-0.24304597079753876,
0.3116368055343628,
0.09407094866037369,
0.08353794366121292,
-0.5119563341140747,
0.16444025933742523,
0.0075377835892140865,
-0.20180554687976837,
-0.11375712603330612,
0.12387921661138535,
-0.16583384573459625,
-0.014107221737504005,
0.18624508380889893,
-0.17993931472301483,
0.18738852441310883,
-0.29515886306762695,
0.24375151097774506,
-0.3901769518852234,
-0.19543322920799255,
0.015109646134078503,
0.057886626571416855,
0.4098418653011322,
0.12543125450611115,
0.15510721504688263,
0.18641026318073273,
-0.34176528453826904,
0.05660318210721016,
-0.1075194925069809,
-0.15106157958507538,
0.2333710640668869,
-0.055027563124895096,
0.09385505318641663,
0.03419669345021248,
-0.24937550723552704,
-0.5408254265785217,
-0.2501787543296814,
-0.009575664065778255,
0.3858901858329773,
0.09830182790756226,
-0.0028513704892247915,
-0.11265350878238678,
0.0033438261598348618,
0.26702913641929626,
0.39376768469810486,
-0.21082808077335358,
-0.24920234084129333,
0.21024970710277557,
-0.20926885306835175,
-0.33469972014427185,
0.0819491520524025,
-0.10423032194375992,
0.04457153007388115,
0.25238221883773804,
-0.4788483679294586,
-0.0906343162059784,
-0.3600659668445587,
0.40960797667503357,
-0.23261573910713196,
0.09382869303226471,
0.3463049530982971,
0.08929306268692017,
0.14639881253242493,
-0.04174824804067612,
-0.2757156491279602,
-0.06513577699661255,
-0.2946411967277527,
-0.06823248416185379,
0.3381982147693634,
0.42744967341423035,
-0.0575702041387558,
0.37703201174736023,
0.30022838711738586,
0.3604489266872406,
0.33447185158729553,
0.045841023325920105,
0.37111327052116394,
0.05426068976521492,
-0.2594741880893707,
0.10877594351768494,
-0.19434581696987152,
-0.14016011357307434,
0.3007434010505676,
0.0889817327260971,
-0.19526371359825134,
-0.05253181234002113,
-0.38045358657836914,
-0.280789315700531,
-0.2852861285209656,
-0.09924276918172836,
-0.246331587433815,
0.2537565529346466,
0.11914046108722687,
0.11004234105348587,
-0.44624465703964233,
-0.3691142201423645,
0.028844231739640236,
0.554633378982544,
-0.30983972549438477,
0.11157606542110443,
-0.35080355405807495,
0.13669753074645996,
-0.6549721956253052,
0.2522450387477875,
0.03402543067932129,
0.49580588936805725,
-0.17412368953227997,
0.12669822573661804,
-0.001507472014054656,
-0.10742946714162827,
0.5570670962333679,
-0.6522976160049438,
0.46182987093925476,
0.058122698217630386,
0.11573182791471481,
0.010197044350206852,
-0.2243453711271286,
-0.09225578606128693,
0.2416791319847107,
0.13694190979003906,
0.2145552933216095,
0.16392146050930023,
0.04404165968298912,
0.07620947808027267,
0.16659297049045563,
-0.20013269782066345,
-0.27905750274658203,
-0.2271355390548706,
-0.34188854694366455,
-0.3903859853744507,
0.128006249666214,
0.042198941111564636,
0.18547086417675018,
-0.15174341201782227,
0.11716057360172272,
-0.40468835830688477,
0.23697811365127563,
0.13017885386943817,
0.1602822244167328,
0.18779222667217255,
0.06457539647817612,
0.21815916895866394,
-0.048045627772808075,
0.0753488540649414,
-0.12915600836277008,
0.5240862965583801,
-0.2804768681526184,
-0.32837826013565063,
-0.052490536123514175,
-0.1999860405921936,
-0.11711722612380981,
0.11224112659692764,
-0.32655778527259827,
-0.05009116604924202,
-0.1384815275669098,
-0.13273660838603973,
-0.31433025002479553,
0.11707510054111481,
0.042604029178619385,
-0.13543370366096497,
-0.3776830732822418,
-0.32019323110580444,
0.36414381861686707,
0.2117006629705429,
-0.44672736525535583,
0.34047412872314453,
0.11984751373529434,
-0.4280628561973572,
0.18246929347515106,
0.051760490983724594,
0.7466558814048767,
0.07989036291837692,
0.2780207097530365,
0.09727710485458374,
-0.11229581385850906,
0.2001180648803711,
0.1161787286400795,
0.05655692517757416,
-0.3728867173194885,
-0.45410144329071045,
-0.09887171536684036,
-0.22054263949394226,
-0.1345367431640625,
-0.02494102716445923,
-0.23379424214363098,
0.2817451059818268,
-0.1129787340760231,
0.3188050389289856,
0.27430960536003113,
0.04803803190588951,
-0.37419575452804565,
-0.3764992952346802,
-0.1209944486618042,
0.12518654763698578,
-0.19382387399673462,
0.13586902618408203,
-0.2274903804063797,
0.09111578017473221,
0.08490471541881561,
-0.16739434003829956,
-0.43912172317504883,
0.1967894732952118,
-0.4114467203617096,
0.13811799883842468,
-0.29741790890693665,
-0.38368257880210876,
0.08779965341091156,
0.596064567565918,
0.2849678695201874,
0.36046022176742554,
-0.1543024480342865,
0.06006699800491333,
0.07938897609710693,
0.11794426292181015,
0.02495754323899746,
0.0074557713232934475,
0.19626395404338837,
-0.08069460093975067,
-0.2981886863708496,
-0.015169328078627586,
-0.2781272530555725,
-0.32152971625328064,
-0.105553038418293,
0.28626739978790283,
0.40390545129776,
-0.32011136412620544,
-0.20768895745277405,
-0.3106463849544525,
0.08497348427772522,
-0.2798957824707031,
0.09370318055152893,
0.04704195633530617,
-0.07560183107852936,
0.37954142689704895,
-0.33688831329345703,
-0.4257122576236725,
-0.14751769602298737,
0.5242762565612793,
-0.07907658070325851,
-0.13375602662563324,
0.5711389780044556,
-0.0485030822455883,
-0.17853944003582,
-0.013032259419560432,
0.14549291133880615,
-0.10098475217819214,
-0.46245843172073364,
-0.10034402459859848,
-0.12253538519144058,
0.10782843828201294,
-0.029107024893164635,
0.16985087096691132,
0.278796911239624,
-0.09630994498729706,
0.05340346321463585,
-0.75813889503479,
-0.26210078597068787,
-0.11298516392707825,
-0.23114357888698578,
0.1716354787349701,
0.1831110268831253,
-0.44054073095321655,
-0.1353054642677307,
-0.28408050537109375,
-0.20300324261188507,
0.04410112649202347,
-0.21473442018032074,
-0.129441499710083,
0.27790117263793945,
0.15455766022205353,
-0.0013409730745479465,
0.12451346218585968,
-0.0026245571207255125,
0.0926588773727417,
0.12275485694408417,
-0.17137014865875244,
-0.12370982766151428,
0.14752395451068878,
0.10378224402666092,
-0.09180020540952682,
0.026753896847367287,
-0.32842549681663513,
-0.07359747588634491,
-0.09842561185359955,
0.39404451847076416,
0.2593080401420593,
-0.02815740928053856,
0.0679173395037651,
-0.1276833564043045,
0.2894706726074219,
-0.2827052175998688,
0.41511866450309753,
-0.3472841680049896,
-0.02513059228658676,
-0.013373618945479393,
0.3347688317298889,
-0.141316756606102,
0.054126594215631485,
-0.11745346337556839,
-0.08249495923519135,
0.15325455367565155,
0.06789704412221909,
0.06460656970739365,
-0.37691158056259155,
0.08502579480409622,
0.17875725030899048,
0.05933332070708275,
0.0623638816177845,
-0.23318253457546234,
0.01484121847897768,
0.24505014717578888,
0.15899260342121124,
-0.09227059036493301,
-0.12948782742023468,
-0.012007682584226131,
-0.32347753643989563,
-0.17904455959796906,
0.30041471123695374,
0.16395756602287292,
-0.38362523913383484,
0.13599130511283875,
-0.03240517899394035,
0.5581636428833008,
-0.2246953696012497,
-0.05772078037261963,
0.48134922981262207,
-0.217400461435318,
0.2738090753555298,
0.21858634054660797,
0.2596428692340851,
-0.0843798816204071,
0.5514783263206482,
0.18204298615455627,
0.13673900067806244,
-0.0058678798377513885,
-0.1720479130744934,
-0.10305272787809372,
-0.6628068089485168,
0.28002840280532837,
0.06525269895792007,
-0.07369084656238556,
0.05094325542449951,
-0.029617061838507652,
-0.008635500445961952,
-0.30411553382873535,
-0.0021535977721214294,
-0.43828168511390686,
-0.21689341962337494,
-0.1808835119009018,
-0.28366005420684814,
0.06843408942222595,
-0.23384292423725128,
0.17253975570201874,
0.09277592599391937,
-0.17077620327472687,
-0.14519621431827545,
-0.06997843831777573,
-0.042751483619213104,
-0.3035753071308136,
-0.26846805214881897,
0.11163219809532166,
0.41336789727211,
-0.2662925720214844,
-0.19269153475761414,
0.08904942125082016,
0.006443039048463106,
0.23958061635494232,
0.08864161372184753,
0.09613718092441559,
0.7200039625167847,
0.3696608543395996,
-0.18670599162578583,
-0.08271218836307526,
0.2043791115283966,
0.08497980237007141,
-0.10133529454469681,
0.3095623850822449,
0.1992662101984024,
0.17723055183887482,
0.34535595774650574,
0.11968500167131424,
-0.12446679174900055,
0.037458572536706924,
0.03806004300713539,
-0.00894754845649004,
-0.0834791362285614,
0.18735943734645844,
-0.17643512785434723,
-0.16842374205589294,
0.14056657254695892,
0.1980232149362564,
-0.07277748733758926,
0.170027494430542,
0.23236894607543945,
0.06273747235536575,
0.1945091038942337,
-0.1900540441274643,
0.02006196789443493,
0.14877957105636597,
0.3155461847782135,
0.3503621220588684,
0.0980692207813263,
-0.2335534542798996,
-0.06835919618606567,
-0.5775803923606873,
0.2545951008796692,
-0.01822463609278202,
-0.3800150156021118,
-0.032235048711299896,
-0.13248836994171143,
-0.3368017077445984,
0.1061350628733635,
0.16192305088043213,
-0.10909658670425415,
0.055558428168296814,
0.2668956220149994,
-0.15676145255565643,
-0.2936108112335205,
0.3894374668598175,
-0.03776906058192253,
-0.07810097932815552,
-0.6786638498306274,
0.036601219326257706,
-0.08875995874404907,
0.032007791101932526,
-0.15069954097270966,
-0.16663819551467896,
0.03415020927786827,
-0.026074185967445374,
0.54377681016922,
0.2644127905368805,
0.45556068420410156,
0.007837480865418911,
0.09181363135576248,
-0.5622043609619141,
-0.06879778951406479,
-0.145289808511734,
-0.033695049583911896,
-0.07782576233148575,
0.2713487148284912,
-0.22750376164913177,
0.04143606126308441,
-0.12419261783361435,
0.16709394752979279,
0.266299307346344,
0.3795420527458191,
-0.005456157028675079,
0.22790515422821045,
0.18094351887702942,
0.15718939900398254,
0.3478449583053589,
0.06997191160917282,
-0.0961795449256897,
0.4460363984107971,
-0.24093420803546906,
-0.34204840660095215,
0.21094822883605957,
-0.39415043592453003,
-0.3340475559234619,
-0.019208701327443123,
0.32515695691108704,
-0.2549189329147339,
-0.15313342213630676,
-0.2379632294178009,
0.20610913634300232,
0.24783968925476074,
-0.14348065853118896,
-0.38689717650413513,
0.14134541153907776,
-0.15703527629375458,
0.14029201865196228,
-0.022752411663532257,
0.03422369062900543,
0.010135121643543243,
-0.22538986802101135,
0.170866921544075,
-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.04569006338715553,
0.33450770378112793,
0.11488889157772064,
0.08045107871294022,
0.23043054342269897,
0.11888786405324936,
0.398885041475296,
0.2548748850822449,
-0.10991635918617249,
0.2674389183521271,
-0.3353857398033142,
0.40407171845436096,
-0.1644810140132904,
-0.1074623316526413,
-0.034266840666532516,
-0.10664372146129608,
0.05111076310276985,
0.14516448974609375,
-0.16666440665721893,
-0.1226121336221695,
-0.2103366255760193,
0.03519103676080704,
-0.127475768327713,
0.07211615890264511,
-0.13876374065876007,
-0.2811449468135834,
0.010588872246444225,
0.10064477473497391,
0.24410806596279144,
-0.018354913219809532,
0.06827952712774277,
0.021176837384700775,
-0.177795872092247,
0.4797627031803131,
-0.00011666517093544826,
0.41420748829841614,
-0.006127464585006237,
0.13015390932559967,
-0.23558096587657928,
0.056510817259550095,
-0.06903103739023209,
0.17604993283748627,
0.1245584487915039,
-0.05997353419661522,
0.13496796786785126,
-0.21777614951133728,
-0.025572650134563446,
0.0832730308175087,
0.2824956774711609,
0.429058313369751,
0.17387720942497253,
0.667812168598175,
0.049049410969018936,
-0.007073978893458843,
0.3827851712703705,
0.06389793753623962,
-0.27425897121429443,
0.11617069691419601,
-0.23700940608978271,
-0.19351449608802795,
0.06556092947721481,
0.5781880617141724,
0.01738247647881508,
-0.07479867339134216,
-0.13468733429908752,
0.07937826961278915,
-0.247484490275383,
-0.21320995688438416,
0.09915626794099808,
0.3864622712135315,
0.2942141890525818,
-0.31772834062576294,
-0.07044242322444916,
-0.1286831796169281,
-0.06478451937437057,
-0.14543436467647552,
0.19134801626205444,
-0.04620632156729698,
0.017386553809046745,
0.13485004007816315,
0.05821515992283821,
-0.16226661205291748,
-0.26150745153427124,
-0.006173118017613888,
-0.28108808398246765,
-0.10721849650144577,
0.08574362844228745,
0.08013859391212463,
0.41410696506500244,
-0.027151525020599365,
-0.0686376616358757,
0.04162939637899399,
0.020163141191005707,
0.13079187273979187,
-0.202301487326622,
-0.18202079832553864,
-0.03925896808505058,
-0.17702989280223846,
-0.028179563581943512,
-0.07086224853992462,
0.23925122618675232,
-0.15704482793807983,
-0.24434342980384827,
0.0677403137087822,
0.16441917419433594,
-0.07058848440647125,
-0.6655333042144775,
0.14519952237606049,
0.2680506706237793,
-0.1933339387178421,
-0.11191979050636292,
-0.028671132400631905,
0.0027095708064734936,
-0.49814361333847046,
0.28611671924591064,
-0.21079155802726746,
0.4638059139251709,
0.017413711175322533,
-0.5834481120109558,
0.17033597826957703,
-0.19435998797416687,
0.4077930748462677,
-0.03926572948694229,
0.34212324023246765,
-0.009724682196974754,
0.27936771512031555,
0.32364705204963684,
-0.003611185820773244,
-0.4970707297325134,
-0.016200430691242218,
-0.054667867720127106,
-0.0396624356508255,
-0.29956039786338806,
-0.331923246383667,
0.1675925999879837,
0.0439530573785305,
-0.047848865389823914,
0.17280714213848114,
0.06108284369111061,
0.10257641971111298,
0.2539461851119995,
-0.28081586956977844,
0.5246313810348511,
0.4812728762626648,
-0.07509738951921463,
0.24509447813034058,
0.09495793282985687,
-0.2507025897502899,
-0.12922216951847076,
0.3534179627895355,
-0.2710709273815155,
-0.15856507420539856,
-0.26036542654037476,
0.12456431984901428,
-0.12023334205150604,
-0.15524700284004211,
-0.2238021194934845,
0.045003797858953476,
0.03431287407875061,
-0.05954698100686073,
0.0862918347120285,
-0.13709129393100739,
-0.5523478984832764,
-0.26465535163879395,
0.010904371738433838,
0.365090936422348,
-0.19915208220481873,
0.17955127358436584,
-0.025437993928790092,
-0.393191933631897,
-0.1594105213880539,
0.2656008303165436,
0.06460501253604889,
0.31538331508636475,
-0.4097917079925537,
-0.13048629462718964,
0.4838196039199829,
-0.23206789791584015,
-0.4512835144996643,
0.23500566184520721,
-0.20899389684200287,
0.21425221860408783,
-0.35181742906570435,
0.13031725585460663,
0.21251659095287323,
-0.2066652625799179,
0.012362107634544373,
-0.007045158185064793,
-0.062309931963682175,
-0.009126913733780384,
-0.32360905408859253,
-0.010815354995429516,
-0.0680185928940773,
-0.19527074694633484,
-0.015727663412690163,
-0.012415959499776363,
0.1318652629852295,
-0.049395602196455,
0.39026403427124023,
0.2196919173002243,
0.19332590699195862,
0.14174766838550568,
0.3756612539291382,
-0.17291373014450073,
-0.07908879220485687,
0.0432887002825737,
-0.3775175213813782,
0.13952437043190002,
0.4056784212589264,
0.0777028426527977,
-0.12490469217300415,
-0.14793626964092255,
-0.014969968236982822,
0.1985369771718979,
-0.19195038080215454,
0.02008003368973732,
0.07844384014606476,
-0.11942459642887115,
-0.3427833318710327,
0.20975689589977264,
-0.008773361332714558,
-0.17803534865379333,
-0.2768910527229309,
0.0820082351565361,
0.10280216485261917,
0.4687253534793854,
0.26876282691955566,
-0.005573447793722153,
-0.244813933968544,
0.19433848559856415,
-0.14946533739566803,
-0.030063221231102943,
-0.2719019949436188,
0.42693933844566345,
0.17477214336395264,
0.31781360507011414,
-0.15419700741767883,
0.5814430713653564,
0.10668499022722244,
-0.5981356501579285,
-0.2948666214942932,
0.3456805348396301,
0.13194769620895386,
-0.02862316556274891,
-0.01795550249516964,
0.14569860696792603,
-0.2007230669260025,
0.17132461071014404,
0.05376889929175377,
0.23926399648189545,
0.04082769900560379,
0.02146396040916443,
-0.03639727830886841,
-0.34101593494415283,
-0.04838114604353905,
0.36141616106033325,
-0.31463000178337097,
0.2986145615577698,
-0.6084027886390686,
0.19652917981147766,
0.3866650462150574,
0.031107081100344658,
-0.16892459988594055,
0.23582981526851654,
-0.1694943755865097,
0.061729807406663895,
0.07153785228729248,
0.3181355595588684,
0.4760548770427704,
0.0223612729460001,
0.1727907359600067,
0.1367993950843811,
-0.1937399059534073,
-0.09025253355503082,
0.23736460506916046,
0.08871423453092575,
0.31243181228637695,
0.20392084121704102,
0.25704485177993774,
0.19310405850410461,
-0.3024038076400757,
0.033018629997968674,
0.1302039474248886,
0.17289583384990692,
-0.45257875323295593,
0.17472292482852936,
-0.18073806166648865,
-0.03884685039520264,
-0.3074897229671478,
0.011746108531951904,
0.0377221442759037,
-0.13480012118816376,
0.315459668636322,
0.39676547050476074,
-0.4561236798763275,
0.1539231836795807,
-0.32894131541252136,
0.1290331482887268,
0.022768646478652954,
-0.2959316372871399,
0.18030236661434174,
-0.16917917132377625,
-0.2714838981628418,
0.03444299101829529,
0.3643871247768402,
-0.2442767471075058,
0.41803422570228577,
-0.0013583991676568985,
-0.07474915683269501,
-0.1528538316488266,
-0.26316380500793457,
0.08977960795164108,
-0.09495306760072708,
0.19322873651981354,
0.29371604323387146,
0.3368109464645386,
-0.1232672780752182,
-0.13017717003822327,
0.14623375236988068,
-0.48512840270996094,
-0.17861394584178925,
0.13726715743541718,
-0.12271806597709656,
0.20901021361351013,
0.02039797231554985,
-0.15208931267261505,
0.07417663931846619,
-0.34323036670684814,
0.06708253175020218,
-0.1913791298866272,
0.12772832810878754,
0.620332658290863,
0.1520412415266037,
-0.08000212907791138,
0.3789704442024231,
0.10768004506826401,
-0.17360031604766846,
-0.1127353087067604,
0.2009134590625763,
-0.20372343063354492,
-0.4296337962150574,
0.29090526700019836,
0.0338895283639431,
0.13257896900177002,
0.2955583930015564,
-0.6434155106544495,
-0.16894206404685974,
-0.04373536258935928,
0.1776638627052307,
-0.10888653993606567,
-0.04700704663991928,
0.16657422482967377,
0.11643649637699127,
-0.11971427500247955,
-0.34324708580970764,
0.08278664201498032,
0.3821258246898651,
-0.22708049416542053,
-0.048580270260572433,
0.04227050393819809,
0.08824560791254044,
0.3135707676410675,
0.624358057975769,
0.05083277076482773,
-0.34294310212135315,
0.020803775638341904,
-0.2982521951198578,
0.507361114025116,
-0.15909087657928467,
-0.2795751094818115,
0.015801142901182175,
0.042031481862068176,
-0.1327364444732666,
0.2462739646434784,
-0.07957754284143448,
-0.21038000285625458,
0.05786173790693283,
0.21673260629177094,
-0.03759206831455231,
-0.5290265679359436,
0.13690246641635895,
-0.3965074121952057,
0.19836512207984924,
0.1509982794523239,
-0.04255443066358566,
-0.15817759931087494,
-0.4451104998588562,
0.2289598137140274,
0.20402181148529053,
0.09302546828985214,
-0.136616051197052,
-0.1987902969121933,
-0.2823884189128876,
-0.34255340695381165,
0.06804680824279785,
0.1306476593017578,
0.5035340189933777,
0.09213527292013168,
-0.2987198233604431,
0.13605085015296936,
0.2798961400985718,
0.7769170999526978,
-0.03011608123779297,
-0.09927566349506378,
0.27733340859413147,
0.32240989804267883,
-0.4041951894760132,
0.05556339770555496,
-0.10501690953969955,
-0.004628230817615986,
0.02816360630095005,
0.24169519543647766,
0.07723629474639893,
-0.3887937664985657,
0.2129504382610321,
0.17669108510017395,
-0.24771849811077118,
0.21103952825069427,
-0.3918569087982178,
-0.39860284328460693,
0.10136725008487701,
0.08784723281860352,
0.26049408316612244,
0.04975626990199089,
-0.10872061550617218,
-0.1115122064948082,
-0.3012368083000183,
-0.24823306500911713,
0.08814429491758347,
-0.015626832842826843,
0.3283710777759552,
0.3708716928958893,
0.3975333571434021,
0.053340788930654526,
0.5702844858169556,
0.3938692808151245,
0.40750160813331604,
-0.543112576007843,
0.021428415551781654,
0.07550638169050217,
0.1911327838897705,
0.12519174814224243,
0.44203853607177734,
-0.18668562173843384,
0.053141623735427856,
-0.4151870310306549,
0.00027894385857507586,
-0.3923724293708801,
0.5302591323852539,
0.13951177895069122,
-0.20313389599323273,
-0.0013096524635329843,
-0.09222974628210068,
0.1333690583705902,
-0.010361487045884132,
-0.14890247583389282,
0.6897446513175964,
0.21658264100551605,
-0.18774892389774323,
0.26515278220176697,
0.15821388363838196,
1.1080402135849,
-0.09356771409511566,
0.2334684431552887,
0.5235837697982788,
-0.2643696963787079,
0.21265418827533722,
-0.05537969991564751,
0.1353129893541336,
-0.06322582811117172,
-0.5360187292098999,
0.02013920247554779,
-0.012507552281022072,
-0.36082375049591064,
-0.20056165754795074,
0.18932689726352692,
0.00237075611948967,
0.1572064906358719,
0.410684734582901,
0.22914601862430573,
0.07762358337640762,
0.29594382643699646,
-0.21861930191516876,
0.03965675085783005,
0.022471999749541283,
0.4466586112976074,
-0.12661994993686676,
-0.20260734856128693,
-0.12232179939746857,
0.16594737768173218,
0.027122432366013527,
-0.03446495532989502,
-0.009640945121645927,
-0.7225639224052429,
0.2756163775920868,
0.042248331010341644,
-0.09043861925601959,
-0.0240598414093256,
0.4012313187122345,
0.37122440338134766,
-0.09887662529945374,
-0.15234731137752533,
0.28834298253059387,
0.37736251950263977,
0.2930120825767517,
0.09380693733692169,
-0.01678583398461342,
0.4750949740409851,
0.038302380591630936,
-0.08036374300718307,
0.16763301193714142,
-0.054471928626298904,
-0.052523136138916016,
-0.03709398955106735,
-0.12258194386959076,
0.03829439356923103,
-0.12055527418851852,
0.044584572315216064,
-0.0995853990316391,
-0.2459060698747635,
-0.0579582080245018,
0.1035773903131485,
-0.18048758804798126,
-0.10702697932720184,
0.23447343707084656,
-0.19273369014263153,
-0.4316697120666504,
0.2392568141222,
0.39225462079048157,
-0.12051235139369965,
0.1710348129272461,
0.30368176102638245,
-0.07610409706830978,
-0.07312793284654617,
-0.2562389373779297,
0.3445342481136322,
0.03782987967133522,
-0.5670922994613647,
0.26459768414497375,
-0.1810758411884308,
0.32022780179977417,
-0.10798832029104233,
0.5147193074226379,
-0.19703036546707153,
0.020941155031323433,
0.02216002345085144,
-0.139723002910614,
-0.3977716863155365,
0.23617447912693024,
0.0018211569404229522,
0.4124111235141754,
-0.25371915102005005,
0.47479888796806335,
-0.12875328958034515,
-0.2527927756309509,
-0.2997979521751404,
0.23436717689037323,
-0.028114819899201393,
0.07879000157117844,
-0.10588584840297699,
0.05765066295862198,
0.3181118965148926,
-0.27795159816741943,
0.05769573897123337,
0.10732071101665497,
-0.1381109654903412,
-0.13849100470542908,
-0.16371414065361023,
0.16327716410160065,
0.028018005192279816,
-0.32340097427368164,
-0.012979567982256413,
-0.17387184500694275,
0.07629140466451645,
-0.1113802045583725,
0.3281945288181305,
0.07005297392606735,
-0.3296967148780823,
0.027097854763269424,
-0.21364709734916687,
0.13094086945056915,
0.13924641907215118,
0.007743695750832558,
-0.03059195727109909,
0.37586793303489685,
0.0896952897310257,
0.0981486439704895,
-0.23660923540592194,
-0.23252609372138977,
-0.030385181307792664,
0.28426623344421387,
-0.03563757613301277,
-0.3600640892982483,
0.037712469696998596,
-0.05584823340177536,
-0.2938876450061798,
-0.059905149042606354,
0.3766292929649353,
0.17997586727142334,
-0.46346136927604675,
-0.1362243890762329,
0.2592979967594147,
0.22421705722808838,
-0.24042123556137085,
0.16245032846927643,
-0.12176788598299026,
0.019864151254296303,
0.03851151466369629,
0.16629652678966522,
0.18402761220932007,
-0.14655478298664093,
-0.1428779512643814,
0.1772315949201584,
-0.20080314576625824,
-0.20362462103366852,
0.03101653791964054,
0.515628457069397,
-0.0325358510017395,
0.23732337355613708,
-0.14765366911888123,
0.10366429388523102,
0.12641771137714386,
0.2481575608253479,
-0.07817857712507248,
0.48264381289482117,
0.19811075925827026,
-0.06543844938278198,
-0.035468731075525284,
-0.3134523332118988,
-0.05552196130156517,
0.16418887674808502,
-0.12381761521100998,
0.242187038064003,
-0.036149777472019196,
0.2217099517583847,
0.1549312323331833,
-0.42458271980285645,
-0.011749670840799809,
0.2324928492307663,
-0.08597949892282486,
-0.3671887218952179,
-0.3900315761566162,
-0.20805487036705017,
-0.2723340094089508,
0.031124502420425415,
-0.0055275955237448215,
-0.08657320588827133,
0.009404413402080536,
0.1060136929154396,
-0.06628251075744629,
-0.2825775742530823,
-0.11982161551713943,
0.33307749032974243,
0.2778059244155884,
-0.2325667440891266,
0.06561320275068283,
-0.024808229878544807,
-0.06567790359258652,
-0.0021087778732180595,
0.20820143818855286,
0.08352933824062347,
0.028421437367796898,
-0.1759401112794876,
0.011499455198645592,
-0.03465447574853897,
0.0922635942697525,
-0.04009241238236427,
0.21443776786327362,
-0.04891705513000488,
-0.1405206322669983,
0.21579724550247192,
-0.049183327704668045,
-0.07002486288547516,
0.182844877243042,
0.05197177082300186,
0.09766754508018494,
-0.418224573135376,
0.14988896250724792,
-0.003379909787327051,
-0.10168051719665527,
-0.2287627011537552,
-0.0051180156879127026,
0.050867196172475815,
-0.10867879539728165,
0.480800062417984,
-0.4602070450782776,
0.3644781708717346,
-0.08739110082387924,
0.06821882724761963,
-0.009531538933515549,
0.22197949886322021,
0.1271091252565384,
0.32923901081085205,
-0.2891256809234619,
-0.38428163528442383,
-0.5309661626815796,
0.26259827613830566,
-0.04950675740838051,
-0.05064442753791809,
0.21181753277778625,
0.03177182003855705,
-0.08889949321746826,
-0.06646034866571426,
0.02740531787276268,
-0.18654635548591614,
0.11332373321056366,
0.26725438237190247,
-0.2658281624317169,
-0.036095861345529556,
-0.4830029010772705,
0.09843258559703827,
0.019902877509593964,
-0.5478622913360596,
-0.18008102476596832,
-0.1762712001800537,
0.03750993311405182,
-0.0818459615111351,
-0.021552029997110367,
-0.016611721366643906,
0.5460239052772522,
0.5247305631637573,
0.12545707821846008,
0.07549706101417542,
0.1195664182305336,
-0.10256092250347137,
-0.26742368936538696,
-0.17949995398521423,
-0.37663301825523376,
-0.18374766409397125,
0.007053898181766272,
-0.02379618212580681,
-0.05294395238161087,
0.1971379667520523,
0.013705016113817692,
-0.2977713346481323,
0.18019497394561768,
0.3653971254825592,
-0.44008252024650574,
0.1956053227186203,
-0.20590302348136902,
0.37253299355506897,
0.2628457844257355,
0.42349281907081604,
-0.12966127693653107,
0.21667814254760742,
-0.3998854160308838,
-0.3820693790912628,
0.49288123846054077,
-0.5328614115715027,
-0.0930071696639061,
-0.024598300457000732,
0.38428550958633423,
-0.09380315244197845,
0.03628801181912422,
-0.5819953083992004,
-0.1765548288822174,
0.38981491327285767,
-0.0834934264421463,
-0.5030674338340759,
0.17061185836791992,
0.13014671206474304,
0.13843505084514618,
0.11816715449094772,
0.5913184285163879,
0.1401759684085846,
-0.19336307048797607,
0.03649759665131569,
-0.2862132489681244
] |
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.049338456243276596,
0.09200115501880646,
-0.07149400562047958,
0.4018488824367523,
0.4151671528816223,
0.235895037651062,
0.6366615891456604,
0.24350285530090332,
0.2364586591720581,
0.23132987320423126,
0.01856823079288006,
0.007743077352643013,
-0.14426842331886292,
-0.31003594398498535,
-0.20153650641441345,
-0.2443147450685501,
-0.1581089049577713,
-0.0416213683784008,
-0.17707853019237518,
0.2177192121744156,
-0.15497922897338867,
0.37873712182044983,
0.0246385857462883,
0.15708383917808533,
-0.5360066294670105,
0.09007903933525085,
-0.1295962631702423,
0.38867461681365967,
-0.02150679938495159,
-0.3729912340641022,
0.051118649542331696,
-0.04671642184257507,
0.06881558150053024,
0.8113579750061035,
-0.00012206859537400305,
-0.3334411680698395,
0.3542337417602539,
-0.05629916861653328,
-0.32718929648399353,
-0.22430925071239471,
-0.16858138144016266,
-0.511711597442627,
-0.034584786742925644,
-0.49880290031433105,
0.18721291422843933,
-0.09511931985616684,
-0.033190254122018814,
-0.8021569848060608,
0.041052524000406265,
0.37330570816993713,
0.12687483429908752,
-0.07834673672914505,
0.09102550894021988,
-0.2579198479652405,
0.3323119580745697,
-0.2779892385005951,
0.004084636922925711,
0.35640305280685425,
0.3556972146034241,
-0.09886661171913147,
-0.1546502411365509,
0.2032179981470108,
-0.03689778968691826,
0.027324935421347618,
0.24715833365917206,
0.07953793555498123,
-0.0874825268983841,
-0.32616525888442993,
0.2958061099052429,
0.4273938834667206,
0.4714377522468567,
-0.09306181222200394,
-0.27931249141693115,
-0.4676957428455353,
0.14249858260154724,
-0.1251060664653778,
0.48853057622909546,
-0.07623869180679321,
-0.2220744788646698,
0.15148839354515076,
-0.17041951417922974,
-0.01962132193148136,
-0.1235976293683052,
-0.11023854464292526,
-0.10197462141513824,
0.06506257504224777,
0.04050867259502411,
0.036279208958148956,
0.3111136555671692,
-0.3483143448829651,
0.23959600925445557,
0.004836644046008587,
0.07427337020635605,
0.26946091651916504,
-0.6542137861251831,
0.1469123512506485,
0.08426710963249207,
0.38549259305000305,
0.2534894347190857,
0.0576435886323452,
-0.2659735679626465,
-0.14830821752548218,
0.19474834203720093,
-0.010465535335242748,
-0.06495588272809982,
0.37420713901519775,
0.194444939494133,
0.16128136217594147,
0.3012427091598511,
0.0779474601149559,
-0.3367469608783722,
-0.10693491250276566,
-0.07648782432079315,
-0.5534635782241821,
0.4451386034488678,
0.13359050452709198,
0.07416312396526337,
-0.3437114357948303,
0.1504586935043335,
0.5705776214599609,
0.10570433735847473,
-0.010489875450730324,
0.22870244085788727,
0.2733798623085022,
0.005434178281575441,
0.11076540499925613,
0.0830746442079544,
-0.08993645012378693,
-0.0889611691236496,
0.10083560645580292,
-0.14731290936470032,
-0.11073005944490433,
-0.2270190566778183,
0.11241002380847931,
0.08920544385910034,
-0.3083971440792084,
0.27928003668785095,
-0.22746551036834717,
0.3152399957180023,
-0.12495838105678558,
-0.08296861499547958,
-0.2377428412437439,
-0.06673310697078705,
0.1559675633907318,
-0.0591057687997818,
0.07391413301229477,
0.24521388113498688,
-0.26073402166366577,
-0.19206145405769348,
-0.07711131125688553,
-0.3397494852542877,
-0.2851884067058563,
-0.06172198802232742,
0.0947030708193779,
-0.16549426317214966,
0.21590223908424377,
0.2415543645620346,
-0.2671959400177002,
0.6555524468421936,
-0.07981888949871063,
0.012796743772923946,
-0.27476513385772705,
-0.1418103724718094,
0.007191940676420927,
0.040825843811035156,
0.5534656047821045,
0.13252398371696472,
-0.017562557011842728,
-0.06878886371850967,
0.12828119099140167,
0.008666734211146832,
0.37226003408432007,
0.18064580857753754,
-0.053596120327711105,
-0.42195242643356323,
0.3124937117099762,
0.22687120735645294,
-0.24028083682060242,
-0.4869851768016815,
0.32153841853141785,
-0.39430686831474304,
0.09949249774217606,
0.3229121267795563,
0.022883394733071327,
0.05171002820134163,
-0.02458232082426548,
0.28533726930618286,
0.1822134107351303,
-0.026095788925886154,
0.023495610803365707,
-0.2025238275527954,
-0.10733117908239365,
-0.04063034430146217,
0.1691949963569641,
0.010954411700367928,
0.06700119376182556,
0.07961974292993546,
-0.17519238591194153,
0.2715688645839691,
0.03146372362971306,
-0.20404429733753204,
0.373680055141449,
0.13824260234832764,
0.32671883702278137,
0.18608276546001434,
-0.10632786899805069,
-0.5937498807907104,
0.26372119784355164,
-0.12184843420982361,
-0.17873190343379974,
-0.2175939530134201,
-0.18680478632450104,
-0.174989253282547,
-0.007289542350918055,
0.0034594256430864334,
0.13513663411140442,
-0.020408494397997856,
0.28324878215789795,
0.1417800337076187,
-0.13176320493221283,
0.0934407189488411,
0.5883793830871582,
-0.17024436593055725,
0.017597364261746407,
-0.4781182110309601,
-0.17112524807453156,
-0.1178547739982605,
-0.11254028230905533,
0.031506508588790894,
0.0016394315753132105,
0.3693963587284088,
-0.10896860063076019,
-0.34435176849365234,
0.448075532913208,
0.3332768976688385,
0.09753286838531494,
-0.17892509698867798,
-0.004431127104908228,
-0.056864384561777115,
0.22077536582946777,
0.07266993075609207,
0.03981170803308487,
0.00778551772236824,
0.01429200079292059,
-0.2135753631591797,
0.300015926361084,
-0.14081652462482452,
0.271276593208313,
0.02861357294023037,
0.1682407408952713,
0.24617943167686462,
-0.13181336224079132,
0.0643458142876625,
-0.1761227697134018,
0.6458839178085327,
-0.2163524627685547,
0.3048400580883026,
0.054780006408691406,
0.045231517404317856,
-0.14486448466777802,
0.6458193063735962,
0.045393235981464386,
-0.00017754710279405117,
0.19774267077445984,
0.15620115399360657,
-0.040815383195877075,
-0.01937323622405529,
0.3064884543418884,
0.5111443996429443,
0.19205769896507263,
-0.03012317605316639,
-0.2065051943063736,
0.39415794610977173,
-0.22383439540863037,
0.2563192844390869,
0.01590774953365326,
-0.002792695537209511,
0.3657033443450928,
0.049617886543273926,
-0.1290871948003769,
0.05148366838693619,
-0.8095083236694336,
-0.05044201388955116,
0.22369761765003204,
-0.31980815529823303,
0.14808262884616852,
-0.13932599127292633,
-0.043205056339502335,
-0.023800354450941086,
0.000490256177727133,
-0.08039785176515579,
-0.4162813127040863,
-0.188893660902977,
0.27850663661956787,
-0.14183583855628967,
0.21453386545181274,
-0.11883416026830673,
-0.0032419837079942226,
0.2712831497192383,
-0.014538897201418877,
-0.295027494430542,
-0.0016123719979077578,
0.08034414052963257,
-0.08376043289899826,
0.2720727324485779,
-0.5375028252601624,
0.08380401879549026,
-0.12566345930099487,
-0.06310749053955078,
-0.508353590965271,
-0.24988092482089996,
0.11166766285896301,
-0.1684800684452057,
0.29356488585472107,
0.3413660526275635,
0.20785769820213318,
0.16666178405284882,
0.05889628827571869,
0.004962249659001827,
-0.26227903366088867,
0.023669417947530746,
0.23266388475894928,
0.17789937555789948,
-0.022819215431809425,
-0.19179971516132355,
-0.023455657064914703,
-0.3463740944862366,
-0.4160332977771759,
0.3207843601703644,
0.03030368685722351,
0.22792910039424896,
0.34118983149528503,
-0.07087253034114838,
0.29781198501586914,
-0.017972886562347412,
0.2472923845052719,
-0.0879063829779625,
-0.44637057185173035,
0.41706112027168274,
-0.15252241492271423,
-0.29905927181243896,
-0.4318077564239502,
0.2980133295059204,
-0.03550932556390762,
0.10551846027374268,
-0.4223639965057373,
-0.1790723353624344,
-0.40126049518585205,
0.3389853239059448,
-0.33572012186050415,
0.005409834906458855,
0.19701984524726868,
-0.08520099520683289,
-0.05634801834821701,
-0.106937937438488,
0.0849030613899231,
0.2325122058391571,
0.011036265641450882,
-0.009520838037133217,
0.09298152476549149,
0.295166939496994,
-0.11607855558395386,
0.4532134234905243,
0.36166617274284363,
0.07534868270158768,
0.1953808069229126,
-0.13766977190971375,
0.18435724079608917,
-0.25903233885765076,
-0.12694619596004486,
0.023937396705150604,
0.17447155714035034,
-0.2215840369462967,
0.1342058926820755,
-0.08539141714572906,
0.014082743786275387,
-0.13332022726535797,
-0.05779329687356949,
0.10780753195285797,
-0.29602915048599243,
0.00731634022668004,
0.04858717322349548,
0.05249020457267761,
0.03107982501387596,
0.1456940472126007,
-0.19488675892353058,
-0.13091051578521729,
-0.024088948965072632,
0.3084794878959656,
0.054077427834272385,
-0.023354923352599144,
-0.24687322974205017,
0.0915093868970871,
-0.33714163303375244,
0.44400912523269653,
0.18309196829795837,
0.21379797160625458,
-0.06935892254114151,
-0.1601731926202774,
-0.08004838973283768,
0.04600727930665016,
0.6831175088882446,
0.09912998974323273,
0.31609299778938293,
0.1554955691099167,
0.2547038495540619,
-0.12308706343173981,
0.03917166218161583,
0.07955341041088104,
0.3701871633529663,
0.13904182612895966,
0.4079340994358063,
-0.23080968856811523,
0.03760877624154091,
-0.1833166778087616,
0.18554222583770752,
-0.11663345247507095,
-0.4492173492908478,
-0.026286426931619644,
0.00879597757011652,
-0.2636871933937073,
0.16161991655826569,
0.03360505774617195,
0.24423019587993622,
0.061672527343034744,
0.004912979900836945,
-0.06017689406871796,
-0.07477884739637375,
0.16015420854091644,
0.17483550310134888,
0.2812635898590088,
-0.4468778371810913,
0.2643652856349945,
-0.027559295296669006,
-0.1595296412706375,
0.23041245341300964,
0.5639728307723999,
-0.44398221373558044,
-0.24784311652183533,
0.4144725501537323,
-0.35655882954597473,
0.0764390379190445,
0.4287085235118866,
-0.31076687574386597,
-0.1584235280752182,
0.35820621252059937,
0.6321601271629333,
0.12365608662366867,
0.02578241005539894,
0.03256859630346298,
0.1308743804693222,
-0.15302151441574097,
-0.3346109092235565,
0.2163311094045639,
0.24309523403644562,
-0.017834866419434547,
0.5360276103019714,
0.02425113506615162,
-0.302545964717865,
0.26139360666275024,
-0.20595420897006989,
1.0209472179412842,
-0.18544842302799225,
0.1871502548456192,
-0.019080346450209618,
0.12876717746257782,
0.49929922819137573,
0.00929019320756197,
-0.08422508835792542,
-0.42681437730789185,
-0.4827864170074463,
0.140203058719635,
-0.14980436861515045,
0.23977252840995789,
-0.036678943783044815,
-0.13019996881484985,
0.31392866373062134,
-0.25951018929481506,
0.017761893570423126,
-0.17453204095363617,
0.4527934789657593,
-0.6466594934463501,
-0.2542142868041992,
-0.250322550535202,
0.047983571887016296,
-0.04398152977228165,
0.11015111207962036,
0.061711713671684265,
0.16868649423122406,
-0.3292609751224518,
-0.27816757559776306,
-0.22720637917518616,
0.037031471729278564,
-0.4157642722129822,
0.08353079110383987,
-0.24390184879302979,
-0.2822072207927704,
-0.09024185687303543,
0.2852131128311157,
-0.0320499949157238,
0.40133723616600037,
-0.20359505712985992,
0.09235065430402756,
0.08282216638326645,
0.09687092900276184,
0.07299895584583282,
-0.06324401497840881,
0.3176954686641693,
0.01689671166241169,
0.07435327023267746,
-0.28570470213890076,
0.005397237371653318,
-0.1422327160835266,
0.03248336911201477,
-0.023427361622452736,
0.15041406452655792,
-0.2308288812637329,
-0.32375675439834595,
-0.3392724096775055,
-0.2038624882698059,
-0.1504354625940323,
0.05216049402952194,
0.33356940746307373,
-0.23872414231300354,
-0.008876566775143147,
-0.28575652837753296,
-0.40904679894447327,
-0.009664707817137241,
0.30550962686538696,
-0.14810813963413239,
-0.04720471799373627,
0.43272846937179565,
0.30000466108322144,
-0.21020935475826263,
-0.17791692912578583,
-0.01901724562048912,
-0.17999766767024994,
-0.6621260046958923,
0.08230829983949661,
0.036040835082530975,
-0.04271087050437927,
-0.2416066974401474,
-0.266829252243042,
0.20536068081855774,
0.12652985751628876,
0.11139851808547974,
-0.4697997570037842,
-0.4082915186882019,
-0.2329970896244049,
-0.29766833782196045,
0.2016153633594513,
-0.056624025106430054,
-0.35514894127845764,
-0.258842408657074,
0.032774291932582855,
-0.2122098058462143,
0.05999370291829109,
-0.14237450063228607,
-0.06183658167719841,
0.46335074305534363,
-0.1418491154909134,
0.224460631608963,
-0.13970360159873962,
0.04635511711239815,
0.40120917558670044,
0.0694127306342125,
-0.1816515177488327,
-0.30111223459243774,
0.14517740905284882,
0.04116130620241165,
0.05858438089489937,
-0.06729059666395187,
-0.3786497712135315,
-0.05275167152285576,
-0.27983230352401733,
0.13260358572006226,
0.3364622890949249,
0.2424456924200058,
0.07561799883842468,
0.09433026611804962,
0.0986526757478714,
-0.03252954035997391,
0.33068495988845825,
-0.16495080292224884,
-0.13839910924434662,
0.009523698128759861,
0.27259281277656555,
-0.21072550117969513,
0.1175260841846466,
-0.32124751806259155,
0.15365956723690033,
-0.009538659825921059,
-0.03618200495839119,
0.0752810686826706,
-0.02653692476451397,
-0.10968147218227386,
0.556442379951477,
0.23271767795085907,
0.2920384705066681,
-0.27229195833206177,
-0.23025186359882355,
0.27563220262527466,
0.13391293585300446,
0.016582775861024857,
-0.20511601865291595,
0.10736611485481262,
-0.1286129653453827,
-0.0995861068367958,
0.37343552708625793,
-0.07063314318656921,
-0.13558728992938995,
-0.18993805348873138,
-0.12482235580682755,
0.5824731588363647,
0.0935560092329979,
-0.06966737657785416,
0.2455466240644455,
-0.013625483959913254,
0.07767555117607117,
0.4613704979419708,
0.25026875734329224,
0.01693439483642578,
0.5474843978881836,
-0.3130880892276764,
0.029888728633522987,
-0.16279393434524536,
-0.006218234542757273,
-0.2004128396511078,
-0.4473770558834076,
0.1316615343093872,
0.31078019738197327,
-0.07245742529630661,
0.18736638128757477,
-0.14681972563266754,
0.304575651884079,
-0.2501972019672394,
0.18190141022205353,
0.05436617508530617,
0.0492214560508728,
-0.10957315564155579,
-0.014270159415900707,
0.34951239824295044,
-0.02500944212079048,
-0.27576231956481934,
-0.00466181430965662,
-0.11504627764225006,
0.14665570855140686,
0.3796013295650482,
0.27335095405578613,
0.1335926055908203,
-0.1753615140914917,
0.004142763093113899,
0.21335841715335846,
0.1663137823343277,
-0.48223042488098145,
0.14352290332317352,
0.3909599781036377,
-0.08867865800857544,
0.2622947692871094,
-0.001730856136418879,
0.5537614822387695,
0.13979572057724,
0.09830769896507263,
-0.0007227387395687401,
-0.10646214336156845,
-0.011388356797397137,
-0.1354411393404007,
0.44462287425994873,
-0.0308791883289814,
-0.10251371562480927,
0.33876681327819824,
0.02803473174571991,
-0.15769372880458832,
0.11466249823570251,
0.19288380444049835,
0.12371599674224854,
-0.17515245079994202,
0.20125770568847656,
0.01588963344693184,
-0.20776617527008057,
-0.17863208055496216,
0.14498060941696167,
-0.3786621391773224,
-0.1633828729391098,
0.25169113278388977,
0.04038425162434578,
0.262458860874176,
-0.13559412956237793,
0.048980243504047394,
-0.11941121518611908,
0.14834453165531158,
0.38399258255958557,
0.2433495819568634,
-0.28533756732940674,
-0.040562503039836884,
-0.602446436882019,
0.22462862730026245,
-0.048772819340229034,
-0.17107343673706055,
0.045160453766584396,
-0.11297576129436493,
-0.047112852334976196,
-0.1518053412437439,
0.38789811730384827,
-0.015927650034427643,
0.11153464019298553,
0.2670120298862457,
-0.47526004910469055,
-0.22400601208209991,
0.17030183970928192,
-0.06630182266235352,
0.2272346317768097,
-0.398876816034317,
0.13031969964504242,
-0.26674482226371765,
-0.013735057786107063,
-0.14266759157180786,
-0.19620110094547272,
0.12866801023483276,
0.3134678304195404,
0.35463401675224304,
0.11241362243890762,
0.2980174720287323,
0.060897741466760635,
-0.2498626708984375,
-0.32302621006965637,
0.118248350918293,
-0.13211661577224731,
0.01565065048635006,
0.2199660986661911,
0.29732900857925415,
-0.40388330817222595,
-0.4329206049442291,
-0.3770739734172821,
0.5200785994529724,
-0.13458770513534546,
0.07144632190465927,
-0.1244048923254013,
-0.04934089258313179,
-0.030625775456428528,
0.2739889323711395,
0.2633129358291626,
0.23375587165355682,
0.07063713669776917,
0.4157317578792572,
-0.19068938493728638,
-0.2998303174972534,
0.6595057249069214,
-0.10658848285675049,
-0.4276301860809326,
0.0981970801949501,
0.40865206718444824,
0.07209647446870804,
-0.16144759953022003,
-0.4712713658809662,
0.1547396034002304,
0.3244366943836212,
0.0784328430891037,
-0.2918297350406647,
0.23153726756572723,
-0.28303882479667664,
0.12893380224704742,
-0.10400558263063431,
0.2516617476940155,
0.2692826986312866,
-0.20871420204639435,
-0.059159982949495316,
-0.1967330127954483
] |
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.049338456243276596,
0.09200115501880646,
-0.07149400562047958,
0.4018488824367523,
0.4151671528816223,
0.235895037651062,
0.6366615891456604,
0.24350285530090332,
0.2364586591720581,
0.23132987320423126,
0.01856823079288006,
0.007743077352643013,
-0.14426842331886292,
-0.31003594398498535,
-0.20153650641441345,
-0.2443147450685501,
-0.1581089049577713,
-0.0416213683784008,
-0.17707853019237518,
0.2177192121744156,
-0.15497922897338867,
0.37873712182044983,
0.0246385857462883,
0.15708383917808533,
-0.5360066294670105,
0.09007903933525085,
-0.1295962631702423,
0.38867461681365967,
-0.02150679938495159,
-0.3729912340641022,
0.051118649542331696,
-0.04671642184257507,
0.06881558150053024,
0.8113579750061035,
-0.00012206859537400305,
-0.3334411680698395,
0.3542337417602539,
-0.05629916861653328,
-0.32718929648399353,
-0.22430925071239471,
-0.16858138144016266,
-0.511711597442627,
-0.034584786742925644,
-0.49880290031433105,
0.18721291422843933,
-0.09511931985616684,
-0.033190254122018814,
-0.8021569848060608,
0.041052524000406265,
0.37330570816993713,
0.12687483429908752,
-0.07834673672914505,
0.09102550894021988,
-0.2579198479652405,
0.3323119580745697,
-0.2779892385005951,
0.004084636922925711,
0.35640305280685425,
0.3556972146034241,
-0.09886661171913147,
-0.1546502411365509,
0.2032179981470108,
-0.03689778968691826,
0.027324935421347618,
0.24715833365917206,
0.07953793555498123,
-0.0874825268983841,
-0.32616525888442993,
0.2958061099052429,
0.4273938834667206,
0.4714377522468567,
-0.09306181222200394,
-0.27931249141693115,
-0.4676957428455353,
0.14249858260154724,
-0.1251060664653778,
0.48853057622909546,
-0.07623869180679321,
-0.2220744788646698,
0.15148839354515076,
-0.17041951417922974,
-0.01962132193148136,
-0.1235976293683052,
-0.11023854464292526,
-0.10197462141513824,
0.06506257504224777,
0.04050867259502411,
0.036279208958148956,
0.3111136555671692,
-0.3483143448829651,
0.23959600925445557,
0.004836644046008587,
0.07427337020635605,
0.26946091651916504,
-0.6542137861251831,
0.1469123512506485,
0.08426710963249207,
0.38549259305000305,
0.2534894347190857,
0.0576435886323452,
-0.2659735679626465,
-0.14830821752548218,
0.19474834203720093,
-0.010465535335242748,
-0.06495588272809982,
0.37420713901519775,
0.194444939494133,
0.16128136217594147,
0.3012427091598511,
0.0779474601149559,
-0.3367469608783722,
-0.10693491250276566,
-0.07648782432079315,
-0.5534635782241821,
0.4451386034488678,
0.13359050452709198,
0.07416312396526337,
-0.3437114357948303,
0.1504586935043335,
0.5705776214599609,
0.10570433735847473,
-0.010489875450730324,
0.22870244085788727,
0.2733798623085022,
0.005434178281575441,
0.11076540499925613,
0.0830746442079544,
-0.08993645012378693,
-0.0889611691236496,
0.10083560645580292,
-0.14731290936470032,
-0.11073005944490433,
-0.2270190566778183,
0.11241002380847931,
0.08920544385910034,
-0.3083971440792084,
0.27928003668785095,
-0.22746551036834717,
0.3152399957180023,
-0.12495838105678558,
-0.08296861499547958,
-0.2377428412437439,
-0.06673310697078705,
0.1559675633907318,
-0.0591057687997818,
0.07391413301229477,
0.24521388113498688,
-0.26073402166366577,
-0.19206145405769348,
-0.07711131125688553,
-0.3397494852542877,
-0.2851884067058563,
-0.06172198802232742,
0.0947030708193779,
-0.16549426317214966,
0.21590223908424377,
0.2415543645620346,
-0.2671959400177002,
0.6555524468421936,
-0.07981888949871063,
0.012796743772923946,
-0.27476513385772705,
-0.1418103724718094,
0.007191940676420927,
0.040825843811035156,
0.5534656047821045,
0.13252398371696472,
-0.017562557011842728,
-0.06878886371850967,
0.12828119099140167,
0.008666734211146832,
0.37226003408432007,
0.18064580857753754,
-0.053596120327711105,
-0.42195242643356323,
0.3124937117099762,
0.22687120735645294,
-0.24028083682060242,
-0.4869851768016815,
0.32153841853141785,
-0.39430686831474304,
0.09949249774217606,
0.3229121267795563,
0.022883394733071327,
0.05171002820134163,
-0.02458232082426548,
0.28533726930618286,
0.1822134107351303,
-0.026095788925886154,
0.023495610803365707,
-0.2025238275527954,
-0.10733117908239365,
-0.04063034430146217,
0.1691949963569641,
0.010954411700367928,
0.06700119376182556,
0.07961974292993546,
-0.17519238591194153,
0.2715688645839691,
0.03146372362971306,
-0.20404429733753204,
0.373680055141449,
0.13824260234832764,
0.32671883702278137,
0.18608276546001434,
-0.10632786899805069,
-0.5937498807907104,
0.26372119784355164,
-0.12184843420982361,
-0.17873190343379974,
-0.2175939530134201,
-0.18680478632450104,
-0.174989253282547,
-0.007289542350918055,
0.0034594256430864334,
0.13513663411140442,
-0.020408494397997856,
0.28324878215789795,
0.1417800337076187,
-0.13176320493221283,
0.0934407189488411,
0.5883793830871582,
-0.17024436593055725,
0.017597364261746407,
-0.4781182110309601,
-0.17112524807453156,
-0.1178547739982605,
-0.11254028230905533,
0.031506508588790894,
0.0016394315753132105,
0.3693963587284088,
-0.10896860063076019,
-0.34435176849365234,
0.448075532913208,
0.3332768976688385,
0.09753286838531494,
-0.17892509698867798,
-0.004431127104908228,
-0.056864384561777115,
0.22077536582946777,
0.07266993075609207,
0.03981170803308487,
0.00778551772236824,
0.01429200079292059,
-0.2135753631591797,
0.300015926361084,
-0.14081652462482452,
0.271276593208313,
0.02861357294023037,
0.1682407408952713,
0.24617943167686462,
-0.13181336224079132,
0.0643458142876625,
-0.1761227697134018,
0.6458839178085327,
-0.2163524627685547,
0.3048400580883026,
0.054780006408691406,
0.045231517404317856,
-0.14486448466777802,
0.6458193063735962,
0.045393235981464386,
-0.00017754710279405117,
0.19774267077445984,
0.15620115399360657,
-0.040815383195877075,
-0.01937323622405529,
0.3064884543418884,
0.5111443996429443,
0.19205769896507263,
-0.03012317605316639,
-0.2065051943063736,
0.39415794610977173,
-0.22383439540863037,
0.2563192844390869,
0.01590774953365326,
-0.002792695537209511,
0.3657033443450928,
0.049617886543273926,
-0.1290871948003769,
0.05148366838693619,
-0.8095083236694336,
-0.05044201388955116,
0.22369761765003204,
-0.31980815529823303,
0.14808262884616852,
-0.13932599127292633,
-0.043205056339502335,
-0.023800354450941086,
0.000490256177727133,
-0.08039785176515579,
-0.4162813127040863,
-0.188893660902977,
0.27850663661956787,
-0.14183583855628967,
0.21453386545181274,
-0.11883416026830673,
-0.0032419837079942226,
0.2712831497192383,
-0.014538897201418877,
-0.295027494430542,
-0.0016123719979077578,
0.08034414052963257,
-0.08376043289899826,
0.2720727324485779,
-0.5375028252601624,
0.08380401879549026,
-0.12566345930099487,
-0.06310749053955078,
-0.508353590965271,
-0.24988092482089996,
0.11166766285896301,
-0.1684800684452057,
0.29356488585472107,
0.3413660526275635,
0.20785769820213318,
0.16666178405284882,
0.05889628827571869,
0.004962249659001827,
-0.26227903366088867,
0.023669417947530746,
0.23266388475894928,
0.17789937555789948,
-0.022819215431809425,
-0.19179971516132355,
-0.023455657064914703,
-0.3463740944862366,
-0.4160332977771759,
0.3207843601703644,
0.03030368685722351,
0.22792910039424896,
0.34118983149528503,
-0.07087253034114838,
0.29781198501586914,
-0.017972886562347412,
0.2472923845052719,
-0.0879063829779625,
-0.44637057185173035,
0.41706112027168274,
-0.15252241492271423,
-0.29905927181243896,
-0.4318077564239502,
0.2980133295059204,
-0.03550932556390762,
0.10551846027374268,
-0.4223639965057373,
-0.1790723353624344,
-0.40126049518585205,
0.3389853239059448,
-0.33572012186050415,
0.005409834906458855,
0.19701984524726868,
-0.08520099520683289,
-0.05634801834821701,
-0.106937937438488,
0.0849030613899231,
0.2325122058391571,
0.011036265641450882,
-0.009520838037133217,
0.09298152476549149,
0.295166939496994,
-0.11607855558395386,
0.4532134234905243,
0.36166617274284363,
0.07534868270158768,
0.1953808069229126,
-0.13766977190971375,
0.18435724079608917,
-0.25903233885765076,
-0.12694619596004486,
0.023937396705150604,
0.17447155714035034,
-0.2215840369462967,
0.1342058926820755,
-0.08539141714572906,
0.014082743786275387,
-0.13332022726535797,
-0.05779329687356949,
0.10780753195285797,
-0.29602915048599243,
0.00731634022668004,
0.04858717322349548,
0.05249020457267761,
0.03107982501387596,
0.1456940472126007,
-0.19488675892353058,
-0.13091051578521729,
-0.024088948965072632,
0.3084794878959656,
0.054077427834272385,
-0.023354923352599144,
-0.24687322974205017,
0.0915093868970871,
-0.33714163303375244,
0.44400912523269653,
0.18309196829795837,
0.21379797160625458,
-0.06935892254114151,
-0.1601731926202774,
-0.08004838973283768,
0.04600727930665016,
0.6831175088882446,
0.09912998974323273,
0.31609299778938293,
0.1554955691099167,
0.2547038495540619,
-0.12308706343173981,
0.03917166218161583,
0.07955341041088104,
0.3701871633529663,
0.13904182612895966,
0.4079340994358063,
-0.23080968856811523,
0.03760877624154091,
-0.1833166778087616,
0.18554222583770752,
-0.11663345247507095,
-0.4492173492908478,
-0.026286426931619644,
0.00879597757011652,
-0.2636871933937073,
0.16161991655826569,
0.03360505774617195,
0.24423019587993622,
0.061672527343034744,
0.004912979900836945,
-0.06017689406871796,
-0.07477884739637375,
0.16015420854091644,
0.17483550310134888,
0.2812635898590088,
-0.4468778371810913,
0.2643652856349945,
-0.027559295296669006,
-0.1595296412706375,
0.23041245341300964,
0.5639728307723999,
-0.44398221373558044,
-0.24784311652183533,
0.4144725501537323,
-0.35655882954597473,
0.0764390379190445,
0.4287085235118866,
-0.31076687574386597,
-0.1584235280752182,
0.35820621252059937,
0.6321601271629333,
0.12365608662366867,
0.02578241005539894,
0.03256859630346298,
0.1308743804693222,
-0.15302151441574097,
-0.3346109092235565,
0.2163311094045639,
0.24309523403644562,
-0.017834866419434547,
0.5360276103019714,
0.02425113506615162,
-0.302545964717865,
0.26139360666275024,
-0.20595420897006989,
1.0209472179412842,
-0.18544842302799225,
0.1871502548456192,
-0.019080346450209618,
0.12876717746257782,
0.49929922819137573,
0.00929019320756197,
-0.08422508835792542,
-0.42681437730789185,
-0.4827864170074463,
0.140203058719635,
-0.14980436861515045,
0.23977252840995789,
-0.036678943783044815,
-0.13019996881484985,
0.31392866373062134,
-0.25951018929481506,
0.017761893570423126,
-0.17453204095363617,
0.4527934789657593,
-0.6466594934463501,
-0.2542142868041992,
-0.250322550535202,
0.047983571887016296,
-0.04398152977228165,
0.11015111207962036,
0.061711713671684265,
0.16868649423122406,
-0.3292609751224518,
-0.27816757559776306,
-0.22720637917518616,
0.037031471729278564,
-0.4157642722129822,
0.08353079110383987,
-0.24390184879302979,
-0.2822072207927704,
-0.09024185687303543,
0.2852131128311157,
-0.0320499949157238,
0.40133723616600037,
-0.20359505712985992,
0.09235065430402756,
0.08282216638326645,
0.09687092900276184,
0.07299895584583282,
-0.06324401497840881,
0.3176954686641693,
0.01689671166241169,
0.07435327023267746,
-0.28570470213890076,
0.005397237371653318,
-0.1422327160835266,
0.03248336911201477,
-0.023427361622452736,
0.15041406452655792,
-0.2308288812637329,
-0.32375675439834595,
-0.3392724096775055,
-0.2038624882698059,
-0.1504354625940323,
0.05216049402952194,
0.33356940746307373,
-0.23872414231300354,
-0.008876566775143147,
-0.28575652837753296,
-0.40904679894447327,
-0.009664707817137241,
0.30550962686538696,
-0.14810813963413239,
-0.04720471799373627,
0.43272846937179565,
0.30000466108322144,
-0.21020935475826263,
-0.17791692912578583,
-0.01901724562048912,
-0.17999766767024994,
-0.6621260046958923,
0.08230829983949661,
0.036040835082530975,
-0.04271087050437927,
-0.2416066974401474,
-0.266829252243042,
0.20536068081855774,
0.12652985751628876,
0.11139851808547974,
-0.4697997570037842,
-0.4082915186882019,
-0.2329970896244049,
-0.29766833782196045,
0.2016153633594513,
-0.056624025106430054,
-0.35514894127845764,
-0.258842408657074,
0.032774291932582855,
-0.2122098058462143,
0.05999370291829109,
-0.14237450063228607,
-0.06183658167719841,
0.46335074305534363,
-0.1418491154909134,
0.224460631608963,
-0.13970360159873962,
0.04635511711239815,
0.40120917558670044,
0.0694127306342125,
-0.1816515177488327,
-0.30111223459243774,
0.14517740905284882,
0.04116130620241165,
0.05858438089489937,
-0.06729059666395187,
-0.3786497712135315,
-0.05275167152285576,
-0.27983230352401733,
0.13260358572006226,
0.3364622890949249,
0.2424456924200058,
0.07561799883842468,
0.09433026611804962,
0.0986526757478714,
-0.03252954035997391,
0.33068495988845825,
-0.16495080292224884,
-0.13839910924434662,
0.009523698128759861,
0.27259281277656555,
-0.21072550117969513,
0.1175260841846466,
-0.32124751806259155,
0.15365956723690033,
-0.009538659825921059,
-0.03618200495839119,
0.0752810686826706,
-0.02653692476451397,
-0.10968147218227386,
0.556442379951477,
0.23271767795085907,
0.2920384705066681,
-0.27229195833206177,
-0.23025186359882355,
0.27563220262527466,
0.13391293585300446,
0.016582775861024857,
-0.20511601865291595,
0.10736611485481262,
-0.1286129653453827,
-0.0995861068367958,
0.37343552708625793,
-0.07063314318656921,
-0.13558728992938995,
-0.18993805348873138,
-0.12482235580682755,
0.5824731588363647,
0.0935560092329979,
-0.06966737657785416,
0.2455466240644455,
-0.013625483959913254,
0.07767555117607117,
0.4613704979419708,
0.25026875734329224,
0.01693439483642578,
0.5474843978881836,
-0.3130880892276764,
0.029888728633522987,
-0.16279393434524536,
-0.006218234542757273,
-0.2004128396511078,
-0.4473770558834076,
0.1316615343093872,
0.31078019738197327,
-0.07245742529630661,
0.18736638128757477,
-0.14681972563266754,
0.304575651884079,
-0.2501972019672394,
0.18190141022205353,
0.05436617508530617,
0.0492214560508728,
-0.10957315564155579,
-0.014270159415900707,
0.34951239824295044,
-0.02500944212079048,
-0.27576231956481934,
-0.00466181430965662,
-0.11504627764225006,
0.14665570855140686,
0.3796013295650482,
0.27335095405578613,
0.1335926055908203,
-0.1753615140914917,
0.004142763093113899,
0.21335841715335846,
0.1663137823343277,
-0.48223042488098145,
0.14352290332317352,
0.3909599781036377,
-0.08867865800857544,
0.2622947692871094,
-0.001730856136418879,
0.5537614822387695,
0.13979572057724,
0.09830769896507263,
-0.0007227387395687401,
-0.10646214336156845,
-0.011388356797397137,
-0.1354411393404007,
0.44462287425994873,
-0.0308791883289814,
-0.10251371562480927,
0.33876681327819824,
0.02803473174571991,
-0.15769372880458832,
0.11466249823570251,
0.19288380444049835,
0.12371599674224854,
-0.17515245079994202,
0.20125770568847656,
0.01588963344693184,
-0.20776617527008057,
-0.17863208055496216,
0.14498060941696167,
-0.3786621391773224,
-0.1633828729391098,
0.25169113278388977,
0.04038425162434578,
0.262458860874176,
-0.13559412956237793,
0.048980243504047394,
-0.11941121518611908,
0.14834453165531158,
0.38399258255958557,
0.2433495819568634,
-0.28533756732940674,
-0.040562503039836884,
-0.602446436882019,
0.22462862730026245,
-0.048772819340229034,
-0.17107343673706055,
0.045160453766584396,
-0.11297576129436493,
-0.047112852334976196,
-0.1518053412437439,
0.38789811730384827,
-0.015927650034427643,
0.11153464019298553,
0.2670120298862457,
-0.47526004910469055,
-0.22400601208209991,
0.17030183970928192,
-0.06630182266235352,
0.2272346317768097,
-0.398876816034317,
0.13031969964504242,
-0.26674482226371765,
-0.013735057786107063,
-0.14266759157180786,
-0.19620110094547272,
0.12866801023483276,
0.3134678304195404,
0.35463401675224304,
0.11241362243890762,
0.2980174720287323,
0.060897741466760635,
-0.2498626708984375,
-0.32302621006965637,
0.118248350918293,
-0.13211661577224731,
0.01565065048635006,
0.2199660986661911,
0.29732900857925415,
-0.40388330817222595,
-0.4329206049442291,
-0.3770739734172821,
0.5200785994529724,
-0.13458770513534546,
0.07144632190465927,
-0.1244048923254013,
-0.04934089258313179,
-0.030625775456428528,
0.2739889323711395,
0.2633129358291626,
0.23375587165355682,
0.07063713669776917,
0.4157317578792572,
-0.19068938493728638,
-0.2998303174972534,
0.6595057249069214,
-0.10658848285675049,
-0.4276301860809326,
0.0981970801949501,
0.40865206718444824,
0.07209647446870804,
-0.16144759953022003,
-0.4712713658809662,
0.1547396034002304,
0.3244366943836212,
0.0784328430891037,
-0.2918297350406647,
0.23153726756572723,
-0.28303882479667664,
0.12893380224704742,
-0.10400558263063431,
0.2516617476940155,
0.2692826986312866,
-0.20871420204639435,
-0.059159982949495316,
-0.1967330127954483
] |
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.386465460062027,
-0.2204953283071518,
0.08948137611150742,
0.4387418031692505,
0.21570804715156555,
0.12292339652776718,
-0.03690952807664871,
0.30938827991485596,
0.24227766692638397,
0.09550278633832932,
-0.22643151879310608,
0.42615339159965515,
-0.064175546169281,
0.3035336136817932,
-0.009466181509196758,
-0.25847846269607544,
-0.00450564082711935,
0.23376581072807312,
-0.10492606461048126,
0.12687644362449646,
-0.000555428909137845,
0.19412657618522644,
-0.24699340760707855,
-0.030422622337937355,
0.05222805589437485,
-0.10810384154319763,
0.012406794354319572,
0.28052520751953125,
-0.059582389891147614,
-0.4462362825870514,
0.12590616941452026,
-0.06154816225171089,
0.41211456060409546,
0.33757397532463074,
-0.00011450322926975787,
0.2734486162662506,
0.47214242815971375,
-0.12278442084789276,
-0.4853440225124359,
-0.21211490035057068,
-0.21866536140441895,
0.09612726420164108,
0.04283475875854492,
-0.15663516521453857,
-0.009134088642895222,
0.07111319899559021,
-0.04000510275363922,
-0.7192984223365784,
0.31784960627555847,
0.345636248588562,
0.17784982919692993,
0.04260065779089928,
-0.048948485404253006,
0.026822295039892197,
0.06883881986141205,
-0.29866480827331543,
-0.09200667589902878,
0.12181737273931503,
0.23672670125961304,
0.22874121367931366,
-0.3595725893974304,
0.38459041714668274,
-0.06588845700025558,
0.0601840540766716,
0.0944143682718277,
0.09672414511442184,
-0.17494960129261017,
-0.4655051827430725,
-0.0073937345296144485,
0.18841427564620972,
0.6776785254478455,
-0.2555166780948639,
-0.4161974787712097,
-0.23198768496513367,
-0.0021713825408369303,
-0.6144573092460632,
0.14653171598911285,
0.1489274948835373,
-0.4673643708229065,
0.12805970013141632,
0.24596327543258667,
-0.008753356523811817,
-0.3279946744441986,
-0.04587305337190628,
-0.24679814279079437,
0.3882230818271637,
-0.0767858624458313,
-0.02372642047703266,
0.02729434333741665,
-0.08662902563810349,
0.46277427673339844,
-0.21103473007678986,
-0.2845941185951233,
-0.0639788806438446,
-0.4397555887699127,
-0.04206616431474686,
-0.07651294767856598,
-0.09410964697599411,
0.1681467443704605,
0.21538971364498138,
0.2953196167945862,
0.088252954185009,
0.15436503291130066,
0.09264443814754486,
0.35552626848220825,
0.3608665466308594,
0.059832166880369186,
0.1853773295879364,
0.1311807632446289,
0.09943130612373352,
0.13662409782409668,
-0.1818920075893402,
-0.14648935198783875,
-0.03728073835372925,
0.028163373470306396,
-0.013114248402416706,
0.26285862922668457,
-0.19123788177967072,
-0.413846880197525,
0.029792074114084244,
-0.3057215213775635,
-0.07946722209453583,
0.005590961314737797,
0.28171685338020325,
0.09583374112844467,
0.4187794625759125,
0.019458435475826263,
0.11786723881959915,
-0.23968352377414703,
-0.4573931396007538,
-0.08781112730503082,
-0.12471845000982285,
-0.001007902785204351,
0.12334701418876648,
0.015335326083004475,
-0.18868350982666016,
0.15157461166381836,
-0.046537552028894424,
0.16210031509399414,
-0.0012192227877676487,
-0.020855387672781944,
-0.11005986481904984,
0.021629326045513153,
0.20498394966125488,
0.2180560976266861,
0.16403533518314362,
0.17951570451259613,
-0.19978496432304382,
-0.13068245351314545,
0.08862241357564926,
-0.14163339138031006,
-0.1671275496482849,
-0.17883794009685516,
0.21664686501026154,
-0.009402032941579819,
-0.3506263196468353,
-0.09378953278064728,
0.2814685106277466,
0.1409597545862198,
-0.2037898749113083,
-0.14107052981853485,
-0.0391463041305542,
-0.12413296848535538,
-0.08651597052812576,
0.17927883565425873,
0.5796175599098206,
-0.1855909526348114,
-0.1380210518836975,
-0.15213756263256073,
0.0008930093608796597,
0.5833055973052979,
0.3344021737575531,
-0.0607914961874485,
0.0897975042462349,
-0.1707223653793335,
0.14765405654907227,
0.5017139911651611,
-0.1436588019132614,
-0.5796040296554565,
0.5436664819717407,
-0.03960771486163139,
0.5637272000312805,
0.27070316672325134,
0.022536786273121834,
0.17423367500305176,
0.043119776993989944,
0.3135282099246979,
0.3299023509025574,
-0.14845924079418182,
0.0074823759496212006,
-0.33346664905548096,
-0.0399840883910656,
0.4416945278644562,
0.19122901558876038,
0.0674290731549263,
0.2502864599227905,
-0.02887396514415741,
-0.0626678466796875,
0.36897826194763184,
-0.07525694370269775,
0.07634545862674713,
0.04100821539759636,
0.14688830077648163,
0.012037484906613827,
0.13793893158435822,
-0.209076926112175,
-0.31068286299705505,
0.29723164439201355,
0.07492983341217041,
0.012709342874586582,
-0.3174346089363098,
0.20317308604717255,
-0.1906457394361496,
0.0017469982849434018,
-0.2628940939903259,
-0.25904056429862976,
0.12431700527667999,
0.31708019971847534,
0.07562147080898285,
0.05059032887220383,
-0.30847570300102234,
0.7747209072113037,
-0.07825540006160736,
-0.013134914450347424,
-0.45491498708724976,
0.20249320566654205,
-0.07077714800834656,
-0.2014572024345398,
0.01643923483788967,
-0.12656596302986145,
0.0672556608915329,
-0.01619260199368,
-0.2579920291900635,
0.3313201665878296,
-0.23661373555660248,
0.26407110691070557,
-0.19543799757957458,
-0.17319762706756592,
0.2897445559501648,
-0.3644789755344391,
-0.08668423444032669,
0.2706027328968048,
0.1075037270784378,
0.1252097487449646,
-0.01769862323999405,
0.14808396995067596,
0.20709064602851868,
0.236133873462677,
0.04344852268695831,
0.11434853076934814,
0.19616827368736267,
-0.08167490363121033,
-0.06868351250886917,
-0.08500946313142776,
0.3240481913089752,
-0.3548784554004669,
0.04674963280558586,
-0.19892388582229614,
-0.27229881286621094,
0.08236113935709,
0.35867932438850403,
-0.14038214087486267,
-0.04927396774291992,
0.33032408356666565,
-0.2885323166847229,
-0.16390761733055115,
0.3145599365234375,
0.19400939345359802,
0.47233647108078003,
0.08152145147323608,
0.2573353946208954,
-0.04558803141117096,
-0.18864788115024567,
-0.07350555807352066,
0.3051702380180359,
0.13748383522033691,
0.03146423026919365,
0.2464115023612976,
0.03000597469508648,
0.1635744273662567,
-0.32291677594184875,
-0.3497168719768524,
-0.05663178861141205,
0.11234155297279358,
-0.3201865553855896,
0.3063024580478668,
-0.3882676362991333,
-0.46517413854599,
0.04635055735707283,
0.15600904822349548,
0.06890591233968735,
-0.32355862855911255,
-0.1817554235458374,
0.23250597715377808,
-0.0038818209432065487,
0.1636846661567688,
-0.2682056427001953,
0.08954697102308273,
0.2671777009963989,
-0.013469196856021881,
-0.3418697118759155,
-0.18084806203842163,
-0.27296310663223267,
0.05919759348034859,
0.17499542236328125,
-0.4228036105632782,
0.17691944539546967,
0.0074257575906813145,
-0.11605405807495117,
-0.14017443358898163,
-0.07642343640327454,
0.319782018661499,
-0.15549936890602112,
0.15689589083194733,
-0.27748653292655945,
0.14939184486865997,
0.2213623970746994,
-0.25034916400909424,
0.1219492107629776,
0.09083330631256104,
-0.11878497898578644,
0.2801247537136078,
0.09408914297819138,
-0.02416118234395981,
-0.030583128333091736,
-0.3010807931423187,
-0.3024667203426361,
-0.6177487373352051,
0.054968565702438354,
0.0454266183078289,
0.21355202794075012,
0.16430477797985077,
0.017034968361258507,
0.09682463854551315,
0.3292068541049957,
0.0991600751876831,
-0.11421222984790802,
-0.41994330286979675,
0.37474480271339417,
-0.1670149564743042,
-0.2868408262729645,
-0.3248366415500641,
-0.06815972179174423,
0.19729065895080566,
0.2589266300201416,
-0.529524564743042,
0.29501691460609436,
-0.40810325741767883,
0.08489316701889038,
-0.3834521174430847,
-0.09745580703020096,
-0.02615170367062092,
0.07628902047872543,
-0.0349886454641819,
-0.1878577321767807,
0.07074666023254395,
-0.11695155501365662,
0.09900696575641632,
0.20661021769046783,
0.1086314395070076,
0.3698714077472687,
0.10084923356771469,
0.3327501118183136,
0.4812113344669342,
-0.019549310207366943,
0.3407554030418396,
0.08289064466953278,
0.15379996597766876,
-0.10043349862098694,
-0.0627889633178711,
-0.09556200355291367,
-0.22808018326759338,
-0.026119060814380646,
0.09819912165403366,
-0.0962134525179863,
-0.576229989528656,
-0.2840520143508911,
0.05491483211517334,
-0.06923650950193405,
-0.23831042647361755,
0.05288289859890938,
-0.5117741823196411,
0.042048510164022446,
-0.1872573345899582,
0.15833935141563416,
0.08079688996076584,
0.052001792937517166,
0.0860462635755539,
0.17725242674350739,
0.12616372108459473,
0.17212052643299103,
-0.1850224882364273,
-0.06390613317489624,
-0.48819053173065186,
0.182585209608078,
0.10512657463550568,
0.42157506942749023,
-0.16780978441238403,
-0.13271598517894745,
0.07911507040262222,
-0.06520642340183258,
0.3487047851085663,
-0.27541694045066833,
0.003567045321688056,
0.26739418506622314,
0.1421363800764084,
-0.14155235886573792,
0.0917665958404541,
-0.320945680141449,
0.13682910799980164,
0.23595532774925232,
0.09742072224617004,
-0.17182357609272003,
0.03333970159292221,
-0.08841889351606369,
-0.07249537855386734,
-0.1253030002117157,
-0.016399001702666283,
-0.17049703001976013,
-0.24923811852931976,
-0.1520107090473175,
-0.1342426836490631,
0.20327186584472656,
0.1256839632987976,
-0.012460368685424328,
-0.05679302662611008,
-0.04608200490474701,
-0.039624813944101334,
0.2418586015701294,
0.2213253229856491,
0.13990986347198486,
-0.07228010147809982,
0.2290113866329193,
0.06719914078712463,
0.2844450771808624,
0.22921690344810486,
0.8364324569702148,
0.11819501221179962,
-0.5624253749847412,
0.2350824922323227,
0.2339562624692917,
0.1660991609096527,
0.13053955137729645,
-0.14823268353939056,
-0.008516259491443634,
-0.040385037660598755,
0.26982149481773376,
-0.3024728000164032,
0.21465560793876648,
0.21123334765434265,
-0.05072057619690895,
-0.5149303078651428,
-0.43575385212898254,
0.5883391499519348,
-0.03936808928847313,
-0.07619041204452515,
0.7872922420501709,
-0.1665055751800537,
-0.317156583070755,
0.4775419235229492,
0.023435065522789955,
0.7585869431495667,
0.09439579397439957,
0.21686874330043793,
0.24074797332286835,
-0.32072678208351135,
0.5003336668014526,
-0.2320675253868103,
0.33466842770576477,
-0.12061024457216263,
-0.3350299298763275,
-0.08310927450656891,
-0.10410968214273453,
0.1709021031856537,
-0.1476040780544281,
-0.6302544474601746,
0.1709606647491455,
-0.05964367836713791,
-0.25280579924583435,
0.3353518843650818,
0.27422672510147095,
-0.6082696914672852,
-0.3062931001186371,
-0.06754918396472931,
0.13888253271579742,
-0.22135929763317108,
0.3239615857601166,
0.1382445991039276,
-0.22023314237594604,
-0.051572758704423904,
-0.08431030064821243,
-0.47023552656173706,
0.4758627116680145,
-0.2765567898750305,
0.16241489350795746,
-0.23903077840805054,
-0.4760979115962982,
0.15131258964538574,
0.26640310883522034,
-0.14213182032108307,
-0.22578543424606323,
-0.15825115144252777,
0.2350439429283142,
0.1860542893409729,
0.1280229389667511,
0.09930624812841415,
0.15145885944366455,
0.38835853338241577,
0.05327725410461426,
-0.016812974587082863,
0.18844200670719147,
-0.008979782462120056,
-0.16062846779823303,
-0.06378106027841568,
0.055457212030887604,
0.31831416487693787,
-0.2681804597377777,
0.23685671389102936,
-0.10585157573223114,
0.04292502626776695,
-0.18425336480140686,
0.08697214722633362,
-0.01883167400956154,
-0.17405515909194946,
-0.07388757914304733,
-0.0812973901629448,
-0.21967639029026031,
-0.08474412560462952,
0.37712058424949646,
0.1454583704471588,
0.31797096133232117,
0.4994198977947235,
0.028117282316088676,
-0.17787961661815643,
-0.10367143899202347,
-0.05514967069029808,
-0.29314014315605164,
-0.25261250138282776,
0.06935932487249374,
-0.24147586524486542,
-0.1610274761915207,
-0.2706690728664398,
0.0038271546363830566,
0.04483797401189804,
-0.10355384647846222,
-0.11373839527368546,
-0.2993661165237427,
-0.19063755869865417,
-0.02661498822271824,
-0.12424395233392715,
0.21993079781532288,
-0.17221972346305847,
0.02220410294830799,
0.0031193061731755733,
0.12908627092838287,
-0.2706835865974426,
-0.12285953760147095,
-0.07537078112363815,
0.023117728531360626,
0.26721060276031494,
0.029268130660057068,
0.259233683347702,
0.10966996103525162,
0.1476224809885025,
0.31390470266342163,
-0.027674557641148567,
-0.16095395386219025,
-0.17879526317119598,
0.13848938047885895,
0.016531458124518394,
-0.348052054643631,
-0.15489462018013,
-0.05662064999341965,
0.012690556235611439,
-0.1251358836889267,
0.3503149449825287,
0.18123020231723785,
0.03809667378664017,
0.2706013321876526,
0.12401355803012848,
0.056335821747779846,
-0.23264853656291962,
0.15423621237277985,
-0.2642734944820404,
0.24012994766235352,
0.08111169189214706,
0.09284091740846634,
-0.07554018497467041,
-0.011869107373058796,
-0.3646133244037628,
0.0622694194316864,
0.10179527848958969,
-0.028018299490213394,
0.5909274220466614,
-0.4241813123226166,
0.17204461991786957,
-0.04977495223283768,
0.06602954864501953,
0.40452247858047485,
-0.229619100689888,
-0.2089621126651764,
0.08508562296628952,
0.2000514566898346,
-0.043203044682741165,
-0.21262098848819733,
-0.40104803442955017,
-0.10164165496826172,
0.011238278821110725,
0.14595948159694672,
-0.10688955336809158,
-0.27218329906463623,
0.09996354579925537,
-0.21030840277671814,
0.4859829545021057,
0.33584317564964294,
0.2670661211013794,
0.48363882303237915,
-0.18112805485725403,
0.02284720353782177,
-0.2260242998600006,
0.020459555089473724,
0.1999063491821289,
0.29704374074935913,
0.0035519178491085768,
-0.007869269698858261,
-0.16136623919010162,
0.21781925857067108,
-0.18597522377967834,
-0.4821957051753998,
-0.07974797487258911,
0.10244731605052948,
-0.1647557020187378,
0.390193372964859,
0.14890894293785095,
0.1521603912115097,
-0.27793532609939575,
-0.05192176625132561,
-0.04584239050745964,
-0.06612592190504074,
-0.014279805123806,
-0.0960812121629715,
0.10687536746263504,
-0.01285640336573124,
-0.32792216539382935,
0.0976085290312767,
0.012400006875395775,
0.06336840242147446,
-0.019864600151777267,
0.28080615401268005,
-0.2884635925292969,
-0.11850128322839737,
-0.08222784847021103,
0.1043180301785469,
0.29992547631263733,
-0.3544152081012726,
0.4440692365169525,
0.3661908805370331,
-0.1568613350391388,
0.028249986469745636,
0.07000205665826797,
0.4816074073314667,
0.28533828258514404,
-0.1766507923603058,
0.0946502685546875,
0.33741632103919983,
-0.043637245893478394,
-0.04022098705172539,
0.04425389692187309,
0.2830947935581207,
0.17931906878948212,
0.4566896855831146,
0.08873908966779709,
-0.1485418677330017,
0.10457196086645126,
0.08143539726734161,
0.2538890838623047,
-0.2799385190010071,
0.462319016456604,
-0.11950677633285522,
0.03669220954179764,
0.027242159470915794,
-0.33657145500183105,
-0.5624158382415771,
-0.028204504400491714,
0.034896183758974075,
-0.228500097990036,
0.07452432066202164,
-0.008112411014735699,
0.06287817656993866,
0.1139545887708664,
0.4926685094833374,
0.3248409926891327,
-0.01884552091360092,
-0.22450987994670868,
-0.15087901055812836,
-0.23558320105075836,
0.2332025021314621,
-0.06747936457395554,
-0.12314790487289429,
0.17528623342514038,
0.22192269563674927,
-0.00484226131811738,
0.16804936528205872,
-0.15844476222991943,
0.020454589277505875,
-0.2672829329967499,
0.14057262241840363,
-0.3995796740055084,
-0.3515673279762268,
0.19196300208568573,
0.17357976734638214,
-0.0483119860291481,
-0.576480507850647,
0.18813888728618622,
-0.15023992955684662,
0.16081759333610535,
0.09261247515678406,
-0.2418481409549713,
0.10114527493715286,
-0.2756577432155609,
0.5297330021858215,
0.23311080038547516,
0.37920081615448,
-0.18429528176784515,
-0.41195613145828247,
-0.0992456004023552,
-0.37623047828674316,
-0.27491435408592224,
-0.015585196204483509,
0.10833387821912766,
0.569632351398468,
-0.14933405816555023,
-0.23738358914852142,
-0.35747087001800537,
0.32626259326934814,
0.060889992862939835,
-0.2656737267971039,
-0.2735382616519928,
0.17336998879909515,
-0.11945971846580505,
0.21312569081783295,
0.3050515353679657,
0.3803454339504242,
-0.028712939471006393,
0.16399526596069336,
-0.22351542115211487,
-0.4333209693431854,
0.5773107409477234,
-0.3461061716079712,
-0.2659672498703003,
0.24184010922908783,
0.06381399184465408,
0.32649698853492737,
0.24101991951465607,
-0.45966625213623047,
0.08936617523431778,
0.35565486550331116,
-0.2354128360748291,
-0.15118609368801117,
0.14214642345905304,
0.22597070038318634,
-0.06071964651346207,
-0.08503957837820053,
0.4553110897541046,
0.24239663779735565,
-0.2492043823003769,
0.1750812530517578,
-0.17863892018795013
] |
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.386465460062027,
-0.2204953283071518,
0.08948137611150742,
0.4387418031692505,
0.21570804715156555,
0.12292339652776718,
-0.03690952807664871,
0.30938827991485596,
0.24227766692638397,
0.09550278633832932,
-0.22643151879310608,
0.42615339159965515,
-0.064175546169281,
0.3035336136817932,
-0.009466181509196758,
-0.25847846269607544,
-0.00450564082711935,
0.23376581072807312,
-0.10492606461048126,
0.12687644362449646,
-0.000555428909137845,
0.19412657618522644,
-0.24699340760707855,
-0.030422622337937355,
0.05222805589437485,
-0.10810384154319763,
0.012406794354319572,
0.28052520751953125,
-0.059582389891147614,
-0.4462362825870514,
0.12590616941452026,
-0.06154816225171089,
0.41211456060409546,
0.33757397532463074,
-0.00011450322926975787,
0.2734486162662506,
0.47214242815971375,
-0.12278442084789276,
-0.4853440225124359,
-0.21211490035057068,
-0.21866536140441895,
0.09612726420164108,
0.04283475875854492,
-0.15663516521453857,
-0.009134088642895222,
0.07111319899559021,
-0.04000510275363922,
-0.7192984223365784,
0.31784960627555847,
0.345636248588562,
0.17784982919692993,
0.04260065779089928,
-0.048948485404253006,
0.026822295039892197,
0.06883881986141205,
-0.29866480827331543,
-0.09200667589902878,
0.12181737273931503,
0.23672670125961304,
0.22874121367931366,
-0.3595725893974304,
0.38459041714668274,
-0.06588845700025558,
0.0601840540766716,
0.0944143682718277,
0.09672414511442184,
-0.17494960129261017,
-0.4655051827430725,
-0.0073937345296144485,
0.18841427564620972,
0.6776785254478455,
-0.2555166780948639,
-0.4161974787712097,
-0.23198768496513367,
-0.0021713825408369303,
-0.6144573092460632,
0.14653171598911285,
0.1489274948835373,
-0.4673643708229065,
0.12805970013141632,
0.24596327543258667,
-0.008753356523811817,
-0.3279946744441986,
-0.04587305337190628,
-0.24679814279079437,
0.3882230818271637,
-0.0767858624458313,
-0.02372642047703266,
0.02729434333741665,
-0.08662902563810349,
0.46277427673339844,
-0.21103473007678986,
-0.2845941185951233,
-0.0639788806438446,
-0.4397555887699127,
-0.04206616431474686,
-0.07651294767856598,
-0.09410964697599411,
0.1681467443704605,
0.21538971364498138,
0.2953196167945862,
0.088252954185009,
0.15436503291130066,
0.09264443814754486,
0.35552626848220825,
0.3608665466308594,
0.059832166880369186,
0.1853773295879364,
0.1311807632446289,
0.09943130612373352,
0.13662409782409668,
-0.1818920075893402,
-0.14648935198783875,
-0.03728073835372925,
0.028163373470306396,
-0.013114248402416706,
0.26285862922668457,
-0.19123788177967072,
-0.413846880197525,
0.029792074114084244,
-0.3057215213775635,
-0.07946722209453583,
0.005590961314737797,
0.28171685338020325,
0.09583374112844467,
0.4187794625759125,
0.019458435475826263,
0.11786723881959915,
-0.23968352377414703,
-0.4573931396007538,
-0.08781112730503082,
-0.12471845000982285,
-0.001007902785204351,
0.12334701418876648,
0.015335326083004475,
-0.18868350982666016,
0.15157461166381836,
-0.046537552028894424,
0.16210031509399414,
-0.0012192227877676487,
-0.020855387672781944,
-0.11005986481904984,
0.021629326045513153,
0.20498394966125488,
0.2180560976266861,
0.16403533518314362,
0.17951570451259613,
-0.19978496432304382,
-0.13068245351314545,
0.08862241357564926,
-0.14163339138031006,
-0.1671275496482849,
-0.17883794009685516,
0.21664686501026154,
-0.009402032941579819,
-0.3506263196468353,
-0.09378953278064728,
0.2814685106277466,
0.1409597545862198,
-0.2037898749113083,
-0.14107052981853485,
-0.0391463041305542,
-0.12413296848535538,
-0.08651597052812576,
0.17927883565425873,
0.5796175599098206,
-0.1855909526348114,
-0.1380210518836975,
-0.15213756263256073,
0.0008930093608796597,
0.5833055973052979,
0.3344021737575531,
-0.0607914961874485,
0.0897975042462349,
-0.1707223653793335,
0.14765405654907227,
0.5017139911651611,
-0.1436588019132614,
-0.5796040296554565,
0.5436664819717407,
-0.03960771486163139,
0.5637272000312805,
0.27070316672325134,
0.022536786273121834,
0.17423367500305176,
0.043119776993989944,
0.3135282099246979,
0.3299023509025574,
-0.14845924079418182,
0.0074823759496212006,
-0.33346664905548096,
-0.0399840883910656,
0.4416945278644562,
0.19122901558876038,
0.0674290731549263,
0.2502864599227905,
-0.02887396514415741,
-0.0626678466796875,
0.36897826194763184,
-0.07525694370269775,
0.07634545862674713,
0.04100821539759636,
0.14688830077648163,
0.012037484906613827,
0.13793893158435822,
-0.209076926112175,
-0.31068286299705505,
0.29723164439201355,
0.07492983341217041,
0.012709342874586582,
-0.3174346089363098,
0.20317308604717255,
-0.1906457394361496,
0.0017469982849434018,
-0.2628940939903259,
-0.25904056429862976,
0.12431700527667999,
0.31708019971847534,
0.07562147080898285,
0.05059032887220383,
-0.30847570300102234,
0.7747209072113037,
-0.07825540006160736,
-0.013134914450347424,
-0.45491498708724976,
0.20249320566654205,
-0.07077714800834656,
-0.2014572024345398,
0.01643923483788967,
-0.12656596302986145,
0.0672556608915329,
-0.01619260199368,
-0.2579920291900635,
0.3313201665878296,
-0.23661373555660248,
0.26407110691070557,
-0.19543799757957458,
-0.17319762706756592,
0.2897445559501648,
-0.3644789755344391,
-0.08668423444032669,
0.2706027328968048,
0.1075037270784378,
0.1252097487449646,
-0.01769862323999405,
0.14808396995067596,
0.20709064602851868,
0.236133873462677,
0.04344852268695831,
0.11434853076934814,
0.19616827368736267,
-0.08167490363121033,
-0.06868351250886917,
-0.08500946313142776,
0.3240481913089752,
-0.3548784554004669,
0.04674963280558586,
-0.19892388582229614,
-0.27229881286621094,
0.08236113935709,
0.35867932438850403,
-0.14038214087486267,
-0.04927396774291992,
0.33032408356666565,
-0.2885323166847229,
-0.16390761733055115,
0.3145599365234375,
0.19400939345359802,
0.47233647108078003,
0.08152145147323608,
0.2573353946208954,
-0.04558803141117096,
-0.18864788115024567,
-0.07350555807352066,
0.3051702380180359,
0.13748383522033691,
0.03146423026919365,
0.2464115023612976,
0.03000597469508648,
0.1635744273662567,
-0.32291677594184875,
-0.3497168719768524,
-0.05663178861141205,
0.11234155297279358,
-0.3201865553855896,
0.3063024580478668,
-0.3882676362991333,
-0.46517413854599,
0.04635055735707283,
0.15600904822349548,
0.06890591233968735,
-0.32355862855911255,
-0.1817554235458374,
0.23250597715377808,
-0.0038818209432065487,
0.1636846661567688,
-0.2682056427001953,
0.08954697102308273,
0.2671777009963989,
-0.013469196856021881,
-0.3418697118759155,
-0.18084806203842163,
-0.27296310663223267,
0.05919759348034859,
0.17499542236328125,
-0.4228036105632782,
0.17691944539546967,
0.0074257575906813145,
-0.11605405807495117,
-0.14017443358898163,
-0.07642343640327454,
0.319782018661499,
-0.15549936890602112,
0.15689589083194733,
-0.27748653292655945,
0.14939184486865997,
0.2213623970746994,
-0.25034916400909424,
0.1219492107629776,
0.09083330631256104,
-0.11878497898578644,
0.2801247537136078,
0.09408914297819138,
-0.02416118234395981,
-0.030583128333091736,
-0.3010807931423187,
-0.3024667203426361,
-0.6177487373352051,
0.054968565702438354,
0.0454266183078289,
0.21355202794075012,
0.16430477797985077,
0.017034968361258507,
0.09682463854551315,
0.3292068541049957,
0.0991600751876831,
-0.11421222984790802,
-0.41994330286979675,
0.37474480271339417,
-0.1670149564743042,
-0.2868408262729645,
-0.3248366415500641,
-0.06815972179174423,
0.19729065895080566,
0.2589266300201416,
-0.529524564743042,
0.29501691460609436,
-0.40810325741767883,
0.08489316701889038,
-0.3834521174430847,
-0.09745580703020096,
-0.02615170367062092,
0.07628902047872543,
-0.0349886454641819,
-0.1878577321767807,
0.07074666023254395,
-0.11695155501365662,
0.09900696575641632,
0.20661021769046783,
0.1086314395070076,
0.3698714077472687,
0.10084923356771469,
0.3327501118183136,
0.4812113344669342,
-0.019549310207366943,
0.3407554030418396,
0.08289064466953278,
0.15379996597766876,
-0.10043349862098694,
-0.0627889633178711,
-0.09556200355291367,
-0.22808018326759338,
-0.026119060814380646,
0.09819912165403366,
-0.0962134525179863,
-0.576229989528656,
-0.2840520143508911,
0.05491483211517334,
-0.06923650950193405,
-0.23831042647361755,
0.05288289859890938,
-0.5117741823196411,
0.042048510164022446,
-0.1872573345899582,
0.15833935141563416,
0.08079688996076584,
0.052001792937517166,
0.0860462635755539,
0.17725242674350739,
0.12616372108459473,
0.17212052643299103,
-0.1850224882364273,
-0.06390613317489624,
-0.48819053173065186,
0.182585209608078,
0.10512657463550568,
0.42157506942749023,
-0.16780978441238403,
-0.13271598517894745,
0.07911507040262222,
-0.06520642340183258,
0.3487047851085663,
-0.27541694045066833,
0.003567045321688056,
0.26739418506622314,
0.1421363800764084,
-0.14155235886573792,
0.0917665958404541,
-0.320945680141449,
0.13682910799980164,
0.23595532774925232,
0.09742072224617004,
-0.17182357609272003,
0.03333970159292221,
-0.08841889351606369,
-0.07249537855386734,
-0.1253030002117157,
-0.016399001702666283,
-0.17049703001976013,
-0.24923811852931976,
-0.1520107090473175,
-0.1342426836490631,
0.20327186584472656,
0.1256839632987976,
-0.012460368685424328,
-0.05679302662611008,
-0.04608200490474701,
-0.039624813944101334,
0.2418586015701294,
0.2213253229856491,
0.13990986347198486,
-0.07228010147809982,
0.2290113866329193,
0.06719914078712463,
0.2844450771808624,
0.22921690344810486,
0.8364324569702148,
0.11819501221179962,
-0.5624253749847412,
0.2350824922323227,
0.2339562624692917,
0.1660991609096527,
0.13053955137729645,
-0.14823268353939056,
-0.008516259491443634,
-0.040385037660598755,
0.26982149481773376,
-0.3024728000164032,
0.21465560793876648,
0.21123334765434265,
-0.05072057619690895,
-0.5149303078651428,
-0.43575385212898254,
0.5883391499519348,
-0.03936808928847313,
-0.07619041204452515,
0.7872922420501709,
-0.1665055751800537,
-0.317156583070755,
0.4775419235229492,
0.023435065522789955,
0.7585869431495667,
0.09439579397439957,
0.21686874330043793,
0.24074797332286835,
-0.32072678208351135,
0.5003336668014526,
-0.2320675253868103,
0.33466842770576477,
-0.12061024457216263,
-0.3350299298763275,
-0.08310927450656891,
-0.10410968214273453,
0.1709021031856537,
-0.1476040780544281,
-0.6302544474601746,
0.1709606647491455,
-0.05964367836713791,
-0.25280579924583435,
0.3353518843650818,
0.27422672510147095,
-0.6082696914672852,
-0.3062931001186371,
-0.06754918396472931,
0.13888253271579742,
-0.22135929763317108,
0.3239615857601166,
0.1382445991039276,
-0.22023314237594604,
-0.051572758704423904,
-0.08431030064821243,
-0.47023552656173706,
0.4758627116680145,
-0.2765567898750305,
0.16241489350795746,
-0.23903077840805054,
-0.4760979115962982,
0.15131258964538574,
0.26640310883522034,
-0.14213182032108307,
-0.22578543424606323,
-0.15825115144252777,
0.2350439429283142,
0.1860542893409729,
0.1280229389667511,
0.09930624812841415,
0.15145885944366455,
0.38835853338241577,
0.05327725410461426,
-0.016812974587082863,
0.18844200670719147,
-0.008979782462120056,
-0.16062846779823303,
-0.06378106027841568,
0.055457212030887604,
0.31831416487693787,
-0.2681804597377777,
0.23685671389102936,
-0.10585157573223114,
0.04292502626776695,
-0.18425336480140686,
0.08697214722633362,
-0.01883167400956154,
-0.17405515909194946,
-0.07388757914304733,
-0.0812973901629448,
-0.21967639029026031,
-0.08474412560462952,
0.37712058424949646,
0.1454583704471588,
0.31797096133232117,
0.4994198977947235,
0.028117282316088676,
-0.17787961661815643,
-0.10367143899202347,
-0.05514967069029808,
-0.29314014315605164,
-0.25261250138282776,
0.06935932487249374,
-0.24147586524486542,
-0.1610274761915207,
-0.2706690728664398,
0.0038271546363830566,
0.04483797401189804,
-0.10355384647846222,
-0.11373839527368546,
-0.2993661165237427,
-0.19063755869865417,
-0.02661498822271824,
-0.12424395233392715,
0.21993079781532288,
-0.17221972346305847,
0.02220410294830799,
0.0031193061731755733,
0.12908627092838287,
-0.2706835865974426,
-0.12285953760147095,
-0.07537078112363815,
0.023117728531360626,
0.26721060276031494,
0.029268130660057068,
0.259233683347702,
0.10966996103525162,
0.1476224809885025,
0.31390470266342163,
-0.027674557641148567,
-0.16095395386219025,
-0.17879526317119598,
0.13848938047885895,
0.016531458124518394,
-0.348052054643631,
-0.15489462018013,
-0.05662064999341965,
0.012690556235611439,
-0.1251358836889267,
0.3503149449825287,
0.18123020231723785,
0.03809667378664017,
0.2706013321876526,
0.12401355803012848,
0.056335821747779846,
-0.23264853656291962,
0.15423621237277985,
-0.2642734944820404,
0.24012994766235352,
0.08111169189214706,
0.09284091740846634,
-0.07554018497467041,
-0.011869107373058796,
-0.3646133244037628,
0.0622694194316864,
0.10179527848958969,
-0.028018299490213394,
0.5909274220466614,
-0.4241813123226166,
0.17204461991786957,
-0.04977495223283768,
0.06602954864501953,
0.40452247858047485,
-0.229619100689888,
-0.2089621126651764,
0.08508562296628952,
0.2000514566898346,
-0.043203044682741165,
-0.21262098848819733,
-0.40104803442955017,
-0.10164165496826172,
0.011238278821110725,
0.14595948159694672,
-0.10688955336809158,
-0.27218329906463623,
0.09996354579925537,
-0.21030840277671814,
0.4859829545021057,
0.33584317564964294,
0.2670661211013794,
0.48363882303237915,
-0.18112805485725403,
0.02284720353782177,
-0.2260242998600006,
0.020459555089473724,
0.1999063491821289,
0.29704374074935913,
0.0035519178491085768,
-0.007869269698858261,
-0.16136623919010162,
0.21781925857067108,
-0.18597522377967834,
-0.4821957051753998,
-0.07974797487258911,
0.10244731605052948,
-0.1647557020187378,
0.390193372964859,
0.14890894293785095,
0.1521603912115097,
-0.27793532609939575,
-0.05192176625132561,
-0.04584239050745964,
-0.06612592190504074,
-0.014279805123806,
-0.0960812121629715,
0.10687536746263504,
-0.01285640336573124,
-0.32792216539382935,
0.0976085290312767,
0.012400006875395775,
0.06336840242147446,
-0.019864600151777267,
0.28080615401268005,
-0.2884635925292969,
-0.11850128322839737,
-0.08222784847021103,
0.1043180301785469,
0.29992547631263733,
-0.3544152081012726,
0.4440692365169525,
0.3661908805370331,
-0.1568613350391388,
0.028249986469745636,
0.07000205665826797,
0.4816074073314667,
0.28533828258514404,
-0.1766507923603058,
0.0946502685546875,
0.33741632103919983,
-0.043637245893478394,
-0.04022098705172539,
0.04425389692187309,
0.2830947935581207,
0.17931906878948212,
0.4566896855831146,
0.08873908966779709,
-0.1485418677330017,
0.10457196086645126,
0.08143539726734161,
0.2538890838623047,
-0.2799385190010071,
0.462319016456604,
-0.11950677633285522,
0.03669220954179764,
0.027242159470915794,
-0.33657145500183105,
-0.5624158382415771,
-0.028204504400491714,
0.034896183758974075,
-0.228500097990036,
0.07452432066202164,
-0.008112411014735699,
0.06287817656993866,
0.1139545887708664,
0.4926685094833374,
0.3248409926891327,
-0.01884552091360092,
-0.22450987994670868,
-0.15087901055812836,
-0.23558320105075836,
0.2332025021314621,
-0.06747936457395554,
-0.12314790487289429,
0.17528623342514038,
0.22192269563674927,
-0.00484226131811738,
0.16804936528205872,
-0.15844476222991943,
0.020454589277505875,
-0.2672829329967499,
0.14057262241840363,
-0.3995796740055084,
-0.3515673279762268,
0.19196300208568573,
0.17357976734638214,
-0.0483119860291481,
-0.576480507850647,
0.18813888728618622,
-0.15023992955684662,
0.16081759333610535,
0.09261247515678406,
-0.2418481409549713,
0.10114527493715286,
-0.2756577432155609,
0.5297330021858215,
0.23311080038547516,
0.37920081615448,
-0.18429528176784515,
-0.41195613145828247,
-0.0992456004023552,
-0.37623047828674316,
-0.27491435408592224,
-0.015585196204483509,
0.10833387821912766,
0.569632351398468,
-0.14933405816555023,
-0.23738358914852142,
-0.35747087001800537,
0.32626259326934814,
0.060889992862939835,
-0.2656737267971039,
-0.2735382616519928,
0.17336998879909515,
-0.11945971846580505,
0.21312569081783295,
0.3050515353679657,
0.3803454339504242,
-0.028712939471006393,
0.16399526596069336,
-0.22351542115211487,
-0.4333209693431854,
0.5773107409477234,
-0.3461061716079712,
-0.2659672498703003,
0.24184010922908783,
0.06381399184465408,
0.32649698853492737,
0.24101991951465607,
-0.45966625213623047,
0.08936617523431778,
0.35565486550331116,
-0.2354128360748291,
-0.15118609368801117,
0.14214642345905304,
0.22597070038318634,
-0.06071964651346207,
-0.08503957837820053,
0.4553110897541046,
0.24239663779735565,
-0.2492043823003769,
0.1750812530517578,
-0.17863892018795013
] |
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

# 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

# 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.12404850870370865,
-0.20182529091835022,
-0.07033973187208176,
0.189459890127182,
0.21477307379245758,
-0.11205005645751953,
0.02766759693622589,
0.0718737319111824,
0.28058117628097534,
0.0850558802485466,
0.16487307846546173,
0.11740709096193314,
0.15548206865787506,
0.10220319032669067,
0.15884757041931152,
-0.26150476932525635,
0.03018580935895443,
0.03931013494729996,
-0.1691512167453766,
0.008864589966833591,
-0.3215378522872925,
0.08592865616083145,
-0.30666929483413696,
-0.11271382868289948,
0.16355830430984497,
0.032440345734357834,
-0.28869616985321045,
0.30047082901000977,
-0.25459960103034973,
-0.16940459609031677,
0.09937018156051636,
-0.07090877741575241,
0.1850663125514984,
0.3519493639469147,
-0.00010874314466491342,
0.08132592588663101,
0.39228421449661255,
0.02353104017674923,
0.01742919534444809,
-0.058175619691610336,
-0.29389089345932007,
-0.14136859774589539,
-0.19119451940059662,
-0.3151721656322479,
0.09970598667860031,
0.23473016917705536,
0.04543757438659668,
-0.11122836917638779,
0.2443622648715973,
0.44914519786834717,
0.30608218908309937,
0.48093706369400024,
-0.11500204354524612,
0.051727164536714554,
0.4554632902145386,
0.05056479573249817,
-0.181675985455513,
0.2492000162601471,
0.3063487708568573,
-0.14193686842918396,
0.25700223445892334,
-0.05941160023212433,
-0.12101127952337265,
0.011559002101421356,
0.031003253534436226,
0.12063568085432053,
-0.04946422949433327,
-0.509315550327301,
0.12343186885118484,
0.17437490820884705,
0.31266117095947266,
-0.15310871601104736,
-0.15853989124298096,
0.11584857851266861,
-0.149399995803833,
-0.1856967806816101,
0.2733878493309021,
0.27626070380210876,
-0.13931690156459808,
0.18718235194683075,
-0.2805481255054474,
0.17438770830631256,
-0.2056804597377777,
0.25969281792640686,
-0.11910689622163773,
0.3299078941345215,
-0.0759497582912445,
0.18944674730300903,
-0.17101484537124634,
0.3167182207107544,
0.03771057352423668,
-0.3272557854652405,
-0.01567719131708145,
-0.003989518154412508,
0.08568963408470154,
0.10570823401212692,
0.04935479536652565,
0.5118294954299927,
0.057304058223962784,
0.2643454074859619,
0.033487431704998016,
-0.056018706411123276,
0.24109037220478058,
0.0700196921825409,
0.09027186036109924,
0.09497969597578049,
-0.2958669066429138,
0.06604394316673279,
0.381782203912735,
0.31391632556915283,
-0.006580391898751259,
-0.026201210916042328,
-0.03304913267493248,
-0.3155069649219513,
0.29651278257369995,
-0.005392270628362894,
0.4860351085662842,
-0.04742686450481415,
-0.55690997838974,
0.00263488688506186,
0.014627764001488686,
0.09089194238185883,
-0.002352994866669178,
0.2526858448982239,
-0.3218327760696411,
-0.02258157916367054,
0.12337040156126022,
0.30001452565193176,
-0.12404520064592361,
0.1943572610616684,
0.004063163883984089,
0.18068186938762665,
-0.25206875801086426,
-0.22607262432575226,
0.34758293628692627,
-0.06712983548641205,
0.1201247051358223,
0.1935613751411438,
-0.0914590135216713,
-0.0428745411336422,
0.013201141729950905,
-0.08051631599664688,
0.02718218043446541,
0.4316021203994751,
0.19525635242462158,
0.37025323510169983,
-0.00945921428501606,
0.07807869464159012,
-0.07072686403989792,
0.20629407465457916,
-0.1463162750005722,
-0.024970361962914467,
0.021134404465556145,
0.2608019709587097,
-0.3265892565250397,
-0.18855953216552734,
0.039793603122234344,
-0.266466349363327,
-0.04091103374958038,
-0.029388906434178352,
0.2495979219675064,
-0.19647963345050812,
-0.28914809226989746,
-0.38413146138191223,
0.09299246966838837,
0.52479088306427,
-0.34822559356689453,
0.2068510353565216,
0.061464764177799225,
-0.27144336700439453,
0.40142276883125305,
0.05860982835292816,
0.13095657527446747,
0.1605098992586136,
-0.4303000271320343,
0.04150564968585968,
0.11713224649429321,
-0.3501318693161011,
-0.49704328179359436,
0.35849735140800476,
-0.18995267152786255,
0.320690780878067,
0.17838123440742493,
0.0919845700263977,
0.2939101457595825,
-0.08338099718093872,
-0.012038541957736015,
0.309894323348999,
-0.022482680156826973,
0.05824407562613487,
-0.12457814067602158,
-0.1297622174024582,
0.12999993562698364,
0.10852138698101044,
0.12085966020822525,
0.14329606294631958,
0.2932315170764923,
-0.13603971898555756,
0.31640270352363586,
0.17881999909877777,
0.09648934006690979,
0.23754563927650452,
0.2550181448459625,
0.2680893540382385,
0.12365490943193436,
-0.22698600590229034,
0.001570854103192687,
0.2861070930957794,
-0.08041907846927643,
-0.15903286635875702,
-0.24103321135044098,
-0.22180600464344025,
-0.5582586526870728,
0.02244935929775238,
-0.18866223096847534,
-0.2219817191362381,
0.16530151665210724,
0.13725948333740234,
0.24955351650714874,
0.04269521310925484,
0.07544732093811035,
0.17933638393878937,
-0.007186372298747301,
-0.06845981627702713,
0.07519057393074036,
0.3602064549922943,
-0.34395071864128113,
-0.05052387714385986,
-0.09659700840711594,
-0.07217630743980408,
0.2299177199602127,
-0.056685008108615875,
-0.015229078941047192,
0.1972682774066925,
0.020261984318494797,
-0.04262900725007057,
0.03620866686105728,
0.04865971952676773,
0.01671876385807991,
-0.18056195974349976,
0.27166587114334106,
0.5724843144416809,
0.2685573399066925,
-0.09678355604410172,
-0.032229240983724594,
0.0053615025244653225,
-0.07502563297748566,
0.01775568723678589,
-0.022257907316088676,
0.14869698882102966,
0.19364091753959656,
-0.18895918130874634,
-0.10111107677221298,
0.0021021729335188866,
0.3638000786304474,
0.061304546892642975,
-0.09914212673902512,
-0.16853401064872742,
-0.16799360513687134,
0.1670791506767273,
0.545026421546936,
-0.27523285150527954,
0.30147960782051086,
0.07062220573425293,
-0.09666359424591064,
0.20947293937206268,
-0.18009060621261597,
0.10591784864664078,
0.608043909072876,
0.03329595923423767,
0.11296093463897705,
0.3711542785167694,
0.008863328024744987,
-0.14360564947128296,
0.21492886543273926,
0.14612333476543427,
-0.2989700138568878,
0.173004612326622,
-0.05207765847444534,
0.1769195795059204,
-0.2095148116350174,
-0.23760229349136353,
-0.057156991213560104,
0.05267741531133652,
-0.345222145318985,
0.24298951029777527,
-0.1614445447921753,
-0.17400053143501282,
-0.32915347814559937,
-0.08695707470178604,
-0.07667092978954315,
-0.06329283118247986,
0.024691089987754822,
0.2807939052581787,
-0.14507363736629486,
-0.18183451890945435,
-0.4370894432067871,
0.09258945286273956,
0.21191176772117615,
-0.359019935131073,
-0.0015146090881899,
0.19920212030410767,
-0.2863779366016388,
0.13335861265659332,
0.15175549685955048,
-0.0984129011631012,
0.5485374331474304,
-0.506727397441864,
0.05792063847184181,
-0.3667602241039276,
-0.1009361520409584,
-0.06549420952796936,
0.05530916526913643,
0.3579995334148407,
0.18263879418373108,
0.18575045466423035,
0.054813072085380554,
0.1031559407711029,
0.20812523365020752,
-0.2389807403087616,
-0.17951567471027374,
0.15971562266349792,
0.0564887635409832,
-0.3985367715358734,
-0.2559875547885895,
-0.2491462528705597,
-0.2066616415977478,
-0.3509725332260132,
0.016134046018123627,
0.11000975221395493,
0.1269884705543518,
-0.10306847095489502,
0.00807691365480423,
0.03724518418312073,
0.07318714261054993,
0.22467006742954254,
-0.08302628993988037,
0.02634996362030506,
0.3867473602294922,
-0.04235048219561577,
-0.6439452767372131,
0.24056018888950348,
-0.018974699079990387,
-0.35784047842025757,
0.3052414059638977,
-0.5030604004859924,
-0.13239258527755737,
-0.2873798906803131,
0.25060543417930603,
0.08922718465328217,
0.2778795063495636,
0.3353268802165985,
-0.2777279019355774,
-0.024596231058239937,
-0.303974986076355,
-0.06590727716684341,
-0.2901858985424042,
-0.10967384278774261,
0.24289679527282715,
0.18268612027168274,
0.30312833189964294,
-0.028938332572579384,
0.28554603457450867,
0.22061166167259216,
0.1294395923614502,
0.43787193298339844,
-0.38643911480903625,
0.4741615355014801,
0.0012999846367165446,
-0.17658555507659912,
0.03511659801006317,
-0.2722175121307373,
0.018007829785346985,
0.23765668272972107,
0.022387253120541573,
-0.004944140557199717,
-0.23122940957546234,
-0.16560614109039307,
-0.23130953311920166,
-0.24787111580371857,
0.1438772976398468,
0.11068422347307205,
0.040782734751701355,
0.12416953593492508,
0.2241882085800171,
0.1028410866856575,
-0.155734121799469,
0.11416478455066681,
0.5970389246940613,
-0.2615627944469452,
0.14396750926971436,
0.02278156578540802,
-0.16407965123653412,
-0.4693874716758728,
0.07167497277259827,
0.10276512056589127,
0.44884222745895386,
-0.030166998505592346,
0.04434353858232498,
0.21562013030052185,
-0.16199645400047302,
0.7495211958885193,
-0.21511799097061157,
0.3322598934173584,
0.20321203768253326,
-0.006715800613164902,
-0.37803593277931213,
-0.2583533525466919,
-0.5120750069618225,
0.12309812009334564,
0.0817761942744255,
-0.052924320101737976,
-0.05552498623728752,
0.18523356318473816,
0.11505745351314545,
0.24685999751091003,
-0.14289025962352753,
-0.3871611952781677,
-0.3885156214237213,
-0.6134722828865051,
-0.24454069137573242,
0.08509132266044617,
0.4038742780685425,
-0.04350830987095833,
-0.3796861171722412,
-0.16640375554561615,
-0.06428072601556778,
0.15337668359279633,
-0.07251293212175369,
-0.027730002999305725,
0.07959608733654022,
-0.01777569018304348,
0.178081676363945,
-0.2506747245788574,
0.2862490117549896,
-0.17390824854373932,
0.6596164703369141,
0.10549216717481613,
-0.14962203800678253,
0.16205908358097076,
-0.26835647225379944,
-0.20142097771167755,
0.2051958292722702,
-0.16493479907512665,
-0.2201993763446808,
-0.07972052693367004,
0.049250297248363495,
-0.32984694838523865,
-0.07996305078268051,
0.5729663372039795,
-0.10168378800153732,
-0.005418483167886734,
-0.25961458683013916,
0.1787792444229126,
0.013897215016186237,
-0.15584874153137207,
0.2674734592437744,
0.034884974360466,
-0.092498779296875,
-0.10834097862243652,
-0.28907179832458496,
0.6511145830154419,
0.21450930833816528,
0.23586581647396088,
0.25903043150901794,
-0.5253794193267822,
0.041986409574747086,
0.21368548274040222,
0.07386572659015656,
-0.20706388354301453,
-0.2838785648345947,
-0.03738357126712799,
-0.13326232135295868,
0.08258665353059769,
-0.03415139764547348,
-0.27793651819229126,
0.22078752517700195,
-0.0865815207362175,
0.17475678026676178,
0.2744150459766388,
-0.1581595242023468,
-0.31310611963272095,
0.10845629870891571,
-0.032816313207149506,
0.19511710107326508,
0.23858805000782013,
0.662906289100647,
-0.26621824502944946,
0.018496878445148468,
-0.1715996265411377,
-0.2779662311077118,
-0.39651334285736084,
0.25502997636795044,
-0.13408471643924713,
0.007454472128301859,
-0.15991538763046265,
0.1396336406469345,
0.02254931628704071,
-0.014737024903297424,
0.002165411598980427,
0.15718533098697662,
-0.22981086373329163,
0.08573874086141586,
0.13416093587875366,
-0.08223685622215271,
0.2630031704902649,
-0.0994020476937294,
0.11807360500097275,
-0.24470804631710052,
-0.42294278740882874,
-0.07276096940040588,
0.021439552307128906,
-0.00272442027926445,
-0.0277111679315567,
0.26394152641296387,
0.21877144277095795,
-0.18823198974132538,
-0.17848168313503265,
-0.3920823931694031,
0.08386171609163284,
-0.07089469581842422,
0.21751554310321808,
0.04904628172516823,
0.08854304999113083,
0.5029726624488831,
-0.28613176941871643,
-0.2359028309583664,
-0.15548911690711975,
0.3932058811187744,
-0.16737022995948792,
-0.07556775957345963,
0.11023593693971634,
0.09486813843250275,
-0.3069731295108795,
-0.25234538316726685,
0.013136431574821472,
-0.3942279517650604,
-0.22052854299545288,
0.05400696396827698,
-0.054369889199733734,
0.28690773248672485,
-0.14717704057693481,
0.009006001055240631,
0.133574977517128,
-0.057867612689733505,
-0.015184584073722363,
-0.6815170645713806,
0.12968026101589203,
-0.21979692578315735,
0.41220101714134216,
0.046644534915685654,
0.026246575638651848,
-0.15720698237419128,
0.4631694257259369,
-0.5489162802696228,
-0.3702109456062317,
-0.0008693762938492,
0.04950333386659622,
-0.1290581226348877,
0.17799723148345947,
0.13027802109718323,
0.1998712420463562,
0.011895105242729187,
0.12122801691293716,
0.0002455809444654733,
-0.06618469208478928,
-0.24845202267169952,
-0.1650177389383316,
0.10459984093904495,
-0.05408874899148941,
-0.2632082998752594,
0.19007284939289093,
-0.4511171281337738,
0.009140457957983017,
0.18899065256118774,
0.14730417728424072,
0.30437570810317993,
-0.09577333182096481,
0.03665822371840477,
0.09566343575716019,
0.11463604867458344,
-0.23988835513591766,
0.24710218608379364,
-0.4936741292476654,
0.5263611078262329,
0.005651532206684351,
0.17131218314170837,
0.2247191220521927,
0.006555651780217886,
-0.054802581667900085,
-0.28135067224502563,
0.0627051368355751,
0.18261992931365967,
0.3916455805301666,
-0.1167968288064003,
0.2606547772884369,
-0.0006235652253963053,
0.2832511067390442,
0.5525339245796204,
-0.35271450877189636,
-0.08935009688138962,
0.14336305856704712,
0.2758115231990814,
-0.25900664925575256,
-0.03468503803014755,
0.08422927558422089,
0.10917208343744278,
0.05762878432869911,
0.11799245327711105,
0.055524349212646484,
-0.28266412019729614,
-0.09124885499477386,
-0.05008956417441368,
0.43350309133529663,
0.3670792877674103,
-0.18083836138248444,
0.39471352100372314,
0.006517521571367979,
0.14764995872974396,
-0.05766955763101578,
-0.021751919761300087,
-0.048602089285850525,
0.4234347641468048,
0.0409805104136467,
0.06926603615283966,
-0.10912518203258514,
0.025174234062433243,
-0.1315762847661972,
-0.20524507761001587,
0.07668407261371613,
-0.2012571543455124,
0.02545067109167576,
0.09770981967449188,
0.07705099880695343,
-0.1540478616952896,
-0.27487432956695557,
0.2177981734275818,
-0.3454117178916931,
-0.06783720850944519,
0.06947255879640579,
-0.012507503852248192,
-0.30367612838745117,
-0.07215064764022827,
-0.11966530978679657,
0.0252666212618351,
0.1473337560892105,
-0.00541269825771451,
0.25994181632995605,
0.0745280534029007,
-0.23696637153625488,
-0.3160698711872101,
0.012622927315533161,
-0.204802468419075,
0.11341232806444168,
-0.28850051760673523,
0.07788986712694168,
0.3658399283885956,
0.16743314266204834,
0.10783833265304565,
0.11485175788402557,
0.5545542240142822,
0.38521793484687805,
-0.10724708437919617,
-0.06110513582825661,
0.07846170663833618,
-0.13316260278224945,
-0.3258143961429596,
0.4363554120063782,
0.07163412123918533,
0.19309332966804504,
0.23635059595108032,
0.21840615570545197,
-0.23010535538196564,
0.25841015577316284,
-0.030818963423371315,
-0.07956317812204361,
-0.058946315199136734,
0.17917436361312866,
-0.2505972385406494,
0.09379575401544571,
-0.38978907465934753,
-0.10139276087284088,
-0.4083532691001892,
-0.09857909381389618,
0.1772194653749466,
-0.08799557387828827,
0.16670426726341248,
-0.34622082114219666,
0.10359315574169159,
0.03752975910902023,
0.21810007095336914,
0.3795771896839142,
0.3196726143360138,
-0.08816708624362946,
-0.05732329934835434,
-0.5226137638092041,
0.3419153690338135,
-0.22584326565265656,
-0.5296076536178589,
-0.0877915546298027,
0.04472719505429268,
-0.6105871200561523,
0.07223611325025558,
0.3415537476539612,
0.26796188950538635,
-0.06360770016908646,
0.3222137987613678,
-0.13524220883846283,
-0.31212475895881653,
0.03358744829893112,
0.15257114171981812,
0.07591789960861206,
-0.5940465927124023,
0.29182103276252747,
-0.41705480217933655,
0.16973602771759033,
-0.27009010314941406,
-0.1863708198070526,
-0.011328441090881824,
-0.008855992928147316,
0.5608647465705872,
0.15077835321426392,
0.5199143290519714,
-0.19121891260147095,
-0.12568210065364838,
-0.4629921615123749,
0.07810107618570328,
-0.11269503086805344,
0.2469516098499298,
0.11667555570602417,
-0.1811441034078598,
0.019152482971549034,
-0.26780423521995544,
-0.06001667305827141,
0.31385454535484314,
-0.036841634660959244,
0.09057946503162384,
-0.05712287127971649,
-0.07280831038951874,
-0.18309243023395538,
0.14881785213947296,
0.08115105330944061,
0.14661383628845215,
-0.3787931501865387,
-0.10185233503580093,
-0.03377549722790718,
-0.5434587597846985,
0.27417072653770447,
-0.26988035440444946,
-0.3332621157169342,
-0.2687220871448517,
0.23119081556797028,
-0.4032009243965149,
0.0730406865477562,
-0.022185850888490677,
0.15009702742099762,
0.16583366692066193,
-0.0674842819571495,
0.03998897224664688,
0.2936094403266907,
-0.37484586238861084,
0.04060671478509903,
0.2576870918273926,
0.4179142415523529,
-0.06966278702020645,
-0.1712896227836609,
0.3069993555545807,
-0.2148604542016983
] |
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.1380539983510971,
-0.020553486421704292,
0.22738707065582275,
0.11762414872646332,
-0.15759755671024323,
0.26700559258461,
0.2965675890445709,
-0.5154969096183777,
0.28040802478790283,
0.14544112980365753,
0.4508610665798187,
-0.09352816641330719,
-0.18102063238620758,
0.06429968774318695,
-0.05757623538374901,
0.12214332073926926,
0.24844613671302795,
-0.07153476774692535,
-0.23429234325885773,
0.1333337426185608,
0.3007955849170685,
-0.2574562132358551,
-0.06466085463762283,
-0.2737535834312439,
0.08476094156503677,
-0.07667049020528793,
-0.2693380117416382,
-0.05328643321990967,
-0.4953400194644928,
0.15393930673599243,
0.011122780852019787,
0.10494501143693924,
0.3338853716850281,
-0.00011551438365131617,
-0.08517564833164215,
0.03693799301981926,
0.09381239861249924,
-0.23824083805084229,
-0.157761812210083,
-0.09692791104316711,
0.08862317353487015,
-0.06983952224254608,
-0.027057817205786705,
-0.08341064304113388,
0.19374705851078033,
0.052933987230062485,
-0.09816265106201172,
0.5147067904472351,
0.29158470034599304,
0.14006787538528442,
-0.010242540389299393,
-0.25211936235427856,
-0.06595246493816376,
0.31986960768699646,
0.0313081219792366,
0.08507551997900009,
-0.1780208796262741,
0.2137235403060913,
0.03147941827774048,
-0.05166791379451752,
0.618067741394043,
-0.2813331186771393,
0.3980185091495514,
-0.2359149158000946,
0.12423034012317657,
-0.37117713689804077,
-0.5308332443237305,
0.26683640480041504,
0.21616551280021667,
0.6465562582015991,
-0.22962398827075958,
-0.20446635782718658,
-0.23786015808582306,
0.31990838050842285,
-0.1560651659965515,
-0.04216999560594559,
-0.01617725007236004,
-0.27280205488204956,
0.23506256937980652,
-0.009494452737271786,
0.04764743149280548,
-0.2204020917415619,
0.12888051569461823,
0.05581258609890938,
-0.10741811245679855,
-0.07313630729913712,
0.13855735957622528,
-0.17709983885288239,
0.09940952807664871,
-0.08586367964744568,
0.27035775780677795,
-0.14426171779632568,
0.03412604704499245,
-0.14976243674755096,
-0.06749074161052704,
0.19251541793346405,
-0.304941862821579,
0.2917179465293884,
-0.060220710933208466,
0.38555631041526794,
0.037437789142131805,
-0.18567009270191193,
-0.08810000121593475,
0.3239295184612274,
0.01980840228497982,
-0.02336730808019638,
0.14967741072177887,
0.229897603392601,
-0.23406895995140076,
-0.2531859278678894,
0.07371608167886734,
-0.014418098144233227,
0.21627365052700043,
0.3318791687488556,
-0.2650298774242401,
0.2829245924949646,
-0.36764442920684814,
-0.5658825039863586,
0.06425022333860397,
-0.4400382936000824,
-0.10303959995508194,
-0.2528015971183777,
0.18167363107204437,
0.16933061182498932,
0.30092668533325195,
0.14492495357990265,
0.22267615795135498,
0.06933904439210892,
-0.5628321170806885,
-0.1818622499704361,
0.026798736304044724,
0.20986077189445496,
0.030840694904327393,
0.21132825314998627,
-0.3237058222293854,
0.3398515284061432,
0.34173423051834106,
0.1954527348279953,
-0.4316003620624542,
-0.2874111831188202,
-0.13017714023590088,
0.025560496374964714,
0.0091862753033638,
-0.02648996375501156,
0.3916681408882141,
0.07382100820541382,
-0.018290655687451363,
0.007235480938106775,
0.06100788339972496,
-0.10655637830495834,
0.006864713039249182,
0.2134006917476654,
0.13641057908535004,
-0.0805879458785057,
-0.16711406409740448,
0.12324772030115128,
0.36058682203292847,
0.07794494926929474,
-0.3008696734905243,
0.0030108352657407522,
-0.1827424019575119,
-0.3919648230075836,
-0.038659051060676575,
0.07733136415481567,
0.30246126651763916,
-0.3355470895767212,
0.09542718529701233,
0.17853502929210663,
0.42139723896980286,
0.3944756090641022,
0.24845457077026367,
-0.046510111540555954,
0.37343910336494446,
-0.116816446185112,
0.30014491081237793,
0.20419971644878387,
-0.46213141083717346,
-0.3920539915561676,
0.2112354189157486,
-0.049602847546339035,
0.2464137226343155,
0.15489058196544647,
-0.16278322041034698,
0.302733838558197,
0.14270736277103424,
0.3759348690509796,
0.15347911417484283,
0.14573615789413452,
0.03347977623343468,
-0.2446894347667694,
-0.05789213627576828,
0.0868305116891861,
-0.01314073521643877,
0.002154128858819604,
0.09558362513780594,
0.037038352340459824,
0.23297017812728882,
0.527152419090271,
0.07458408176898956,
0.09245166927576065,
0.1029677465558052,
0.1659652292728424,
-0.10123161226511002,
0.22397777438163757,
-0.26310086250305176,
0.2564864158630371,
-0.04889729619026184,
0.20682638883590698,
0.2837983965873718,
0.1540307253599167,
0.0793672651052475,
-0.30154553055763245,
-0.21888890862464905,
-0.29918909072875977,
-0.3250729739665985,
0.11458168923854828,
0.325737327337265,
-0.014431040734052658,
0.042046595364809036,
-0.18985795974731445,
0.3409901261329651,
-0.22032663226127625,
-0.0741860643029213,
0.023305248469114304,
0.09916584938764572,
0.0638560950756073,
-0.24470750987529755,
0.5248860120773315,
0.252898246049881,
0.185149684548378,
0.20168408751487732,
-0.1669417917728424,
0.2235521823167801,
-0.01476703118532896,
0.021967478096485138,
-0.26371699571609497,
-0.3288922905921936,
0.10994853079319,
-0.5017578601837158,
-0.11139468848705292,
0.23447151482105255,
0.31817200779914856,
-0.004500115290284157,
-0.30367574095726013,
-0.18347014486789703,
0.1390068382024765,
0.25693845748901367,
-0.05544435232877731,
-0.0651191920042038,
0.3011588156223297,
0.06625311821699142,
-0.35379981994628906,
-0.3246977925300598,
0.2526889443397522,
-0.23498022556304932,
0.2662215530872345,
0.020284786820411682,
-0.34177684783935547,
0.1585969626903534,
0.3928965628147125,
0.22451156377792358,
0.08520913869142532,
0.2943880558013916,
-0.24683265388011932,
-0.02701730839908123,
-0.12272877991199493,
0.09491192549467087,
0.29076552391052246,
0.28810423612594604,
0.054301392287015915,
-0.376454621553421,
-0.12874847650527954,
-0.11323206126689911,
0.13933591544628143,
-0.13075649738311768,
-0.3556292653083801,
0.4351169764995575,
0.35854506492614746,
0.08638767153024673,
-0.4493846297264099,
-0.13412846624851227,
-0.14240401983261108,
0.4703678786754608,
-0.33495989441871643,
-0.23163188993930817,
-0.4356054663658142,
-0.12055269628763199,
-0.10900617390871048,
0.06629130244255066,
0.0797039195895195,
0.22555126249790192,
0.2190556675195694,
-0.01271186675876379,
0.005456488113850355,
0.13680009543895721,
0.17199161648750305,
0.2340613156557083,
0.0712057426571846,
0.11179886013269424,
0.08630527555942535,
0.31914007663726807,
-0.3069572150707245,
-0.02426999993622303,
0.025972945615649223,
0.271613210439682,
0.10742948204278946,
-0.1422472596168518,
-0.1639024317264557,
-0.4067970812320709,
0.05901825428009033,
0.2675642669200897,
-0.33016806840896606,
0.5113496780395508,
0.11336217075586319,
0.16024938225746155,
-0.2251667082309723,
-0.31308186054229736,
0.0026735221035778522,
-0.026887321844697,
-0.16868680715560913,
0.3555682599544525,
0.08294298499822617,
-0.005615353584289551,
-0.04825542867183685,
-0.6989758014678955,
0.09939269721508026,
-0.2500093877315521,
0.2359428107738495,
-0.03286690637469292,
0.21037933230400085,
0.36413517594337463,
0.06060725077986717,
0.08126969635486603,
-0.058712393045425415,
0.20536965131759644,
-0.410209983587265,
-0.2545941472053528,
0.3561113476753235,
0.26060429215431213,
-0.3348698616027832,
-0.34056973457336426,
0.05095802620053291,
0.26529547572135925,
-0.032230082899332047,
-0.40010830760002136,
0.10035395622253418,
-0.26746630668640137,
0.1453494429588318,
-0.29726019501686096,
0.2826201021671295,
0.3854671120643616,
0.012993774376809597,
-0.14950419962406158,
-0.1692209243774414,
-0.10783283412456512,
0.26583540439605713,
0.3553735017776489,
0.005884540732949972,
0.10114716738462448,
0.0699148029088974,
-0.059327393770217896,
0.3506981432437897,
0.6459603905677795,
0.2025156468153,
0.2600066363811493,
-0.17655396461486816,
0.09423497319221497,
-0.03249359503388405,
-0.3995799720287323,
0.02708001434803009,
-0.11732456833124161,
-0.0625670924782753,
0.498119980096817,
-0.08999690413475037,
0.05363106355071068,
-0.16958844661712646,
-0.05727772042155266,
-0.32906243205070496,
-0.1686408370733261,
0.06749202311038971,
-0.23594006896018982,
0.1839739829301834,
0.17477507889270782,
0.052828479558229446,
0.16195283830165863,
0.0347348228096962,
-0.2861661911010742,
-0.2988381087779999,
0.2851734757423401,
-0.14997224509716034,
-0.08202991634607315,
-0.28361085057258606,
-0.37728819251060486,
-0.12410183995962143,
0.13858377933502197,
0.5095549821853638,
-0.2117001712322235,
-0.03752010315656662,
0.36001884937286377,
0.2914784550666809,
0.38102880120277405,
-0.30699393153190613,
0.09087708592414856,
0.010391024872660637,
0.22879119217395782,
0.005506852176040411,
0.005460845306515694,
-0.5205012559890747,
-0.19675882160663605,
-0.04749960079789162,
-0.04303190857172012,
-0.1668931245803833,
-0.008018579334020615,
0.10895949602127075,
0.39274418354034424,
-0.009748022072017193,
-0.24081142246723175,
-0.25577062368392944,
-0.07579295337200165,
-0.3301430642604828,
0.16156655550003052,
0.34223103523254395,
0.04439426213502884,
-0.16513317823410034,
-0.12032528221607208,
0.16039922833442688,
-0.06275198608636856,
0.5332361459732056,
0.07985962182283401,
0.37517669796943665,
0.07396505773067474,
0.3011748492717743,
0.274839848279953,
-0.357779860496521,
-0.2591434717178345,
0.36081504821777344,
0.10096927732229233,
-0.14202596247196198,
-0.0036746037658303976,
-0.34686198830604553,
0.32895734906196594,
0.49315616488456726,
-0.22319111227989197,
0.24192944169044495,
-0.29706162214279175,
0.25689423084259033,
-0.15294820070266724,
0.09574685245752335,
0.31952863931655884,
-0.07498329877853394,
-0.07518211752176285,
-0.41028639674186707,
0.3822804391384125,
-0.03649482503533363,
-0.19794794917106628,
0.34455037117004395,
0.09091878682374954,
-0.31038200855255127,
0.47125139832496643,
-0.25788405537605286,
0.8118334412574768,
0.22640712559223175,
0.36662954092025757,
0.31550174951553345,
0.13815084099769592,
0.32616499066352844,
-0.1960090696811676,
0.09023265540599823,
-0.02201833389699459,
-0.0018171957926824689,
-0.021560080349445343,
0.058343131095170975,
-0.07785571366548538,
-0.041759975254535675,
-0.5769286751747131,
0.17752942442893982,
0.06471659243106842,
0.028871016576886177,
0.18680165708065033,
-0.011851472780108452,
-0.129495769739151,
-0.10640719532966614,
0.12529928982257843,
0.032571397721767426,
-0.38393935561180115,
0.30747348070144653,
0.3099326193332672,
-0.024295685812830925,
0.031404759734869,
-0.5837308764457703,
-0.8224811553955078,
-0.03016757220029831,
-0.08251699060201645,
-0.22594010829925537,
-0.19967976212501526,
-0.3336215019226074,
0.3681987524032593,
0.25860023498535156,
0.1915539801120758,
0.32565969228744507,
-0.13796795904636383,
-0.08526414632797241,
0.36824333667755127,
0.2776511609554291,
-0.26795780658721924,
-0.025591524317860603,
0.14451885223388672,
-0.08603153377771378,
-0.3883333206176758,
0.17660337686538696,
0.055158648639917374,
0.09896288067102432,
-0.3880656361579895,
0.2538312077522278,
-0.11467956006526947,
-0.23315851390361786,
0.08573705703020096,
0.4289036691188812,
0.14151638746261597,
-0.511970579624176,
0.10320749133825302,
0.12417205423116684,
-0.4588647186756134,
0.3286854326725006,
0.17258411645889282,
-0.47551947832107544,
-0.06376240402460098,
0.25934043526649475,
0.12836147844791412,
0.0002511758357286453,
0.6646648645401001,
-0.04148245230317116,
0.04838799685239792,
-0.37047579884529114,
0.04069716855883598,
-0.020928986370563507,
-0.2641948163509369,
0.1791122853755951,
0.05866312235593796,
0.17396298050880432,
-0.22652842104434967,
0.2535494565963745,
0.026513541117310524,
0.2048032581806183,
-0.28147515654563904,
-0.3617303669452667,
-0.06197831779718399,
-0.031454168260097504,
0.12343611568212509,
0.05524059757590294,
-0.2911967933177948,
0.11818553507328033,
0.06881581246852875,
0.3186100721359253,
-0.2981918454170227,
0.0059744818136096,
-0.05179520696401596,
0.21732041239738464,
-0.0840415433049202,
0.08132117241621017,
-0.037810180336236954,
0.08517366647720337,
0.2000400274991989,
0.31851574778556824,
0.06729219108819962,
-0.15987001359462738,
-0.3062143623828888,
0.18384429812431335,
0.04174410551786423,
0.15626400709152222,
-0.04076800495386124,
0.1001056507229805,
0.1492389738559723,
-0.1337081342935562,
-0.10101133584976196,
0.334583044052124,
0.12536194920539856,
0.21837839484214783,
-0.02963205799460411,
0.03707100823521614,
0.18515658378601074,
-0.15986517071723938,
-0.18397755920886993,
-0.17245954275131226,
0.33998531103134155,
0.18061377108097076,
0.04874474182724953,
-0.04819611832499504,
0.11862441152334213,
0.039923347532749176,
-0.1340513825416565,
0.11869505792856216,
-0.07783368974924088,
-0.26557686924934387,
0.13336996734142303,
0.2876855731010437,
-0.1194794774055481,
0.37868833541870117,
-0.3459942638874054,
-0.11189936846494675,
0.09119518101215363,
0.23514406383037567,
-0.2654988169670105,
-0.12371180951595306,
-0.3232501745223999,
-0.10655146837234497,
-0.058309268206357956,
0.2784038782119751,
-0.05983138456940651,
-0.472380131483078,
0.12146651744842529,
-0.06493815034627914,
0.33602002263069153,
-0.536003053188324,
-0.07342119514942169,
0.3985147774219513,
0.014973683282732964,
-0.36111995577812195,
-0.1933402419090271,
-0.015197639353573322,
0.020801205188035965,
0.5450984835624695,
-0.36754360795021057,
0.13735824823379517,
-0.33860546350479126,
0.02638811245560646,
0.19154824316501617,
0.025605827569961548,
-0.038219377398490906,
0.4056417644023895,
-0.3271888792514801,
-0.048963211476802826,
-0.07162439823150635,
0.30504727363586426,
-0.1176723763346672,
0.03344602882862091,
-0.1280481070280075,
-0.05141435191035271,
-0.12391936033964157,
-0.12486257404088974,
-0.33803999423980713,
-0.2734285891056061,
-0.23037634789943695,
0.006182694807648659,
0.09754196554422379,
-0.012554915621876717,
0.14051346480846405,
0.19162248075008392,
-0.26688501238822937,
-0.533241331577301,
-0.19809354841709137,
-0.037783462554216385,
0.1720767617225647,
-0.3900320827960968,
0.3403874337673187,
0.30842819809913635,
-0.22177045047283173,
0.25843697786331177,
0.24336476624011993,
0.5199828147888184,
0.07158130407333374,
0.03344777971506119,
0.10651936382055283,
-0.5706878900527954,
-0.09190312772989273,
-0.05172231048345566,
0.3297678828239441,
-0.12424144893884659,
0.05875527113676071,
0.021863209083676338,
0.015872610732913017,
-0.09563972055912018,
0.02934780903160572,
0.2285461723804474,
-0.07562518119812012,
-0.5632566213607788,
0.21907812356948853,
-0.14116311073303223,
0.111732117831707,
0.04065866768360138,
0.0749841183423996,
-0.4736693799495697,
0.44173866510391235,
0.342166930437088,
0.05759596452116966,
-0.010626684874296188,
0.002189818536862731,
0.08138871192932129,
-0.12637554109096527,
-0.11261264979839325,
0.26730459928512573,
0.15798619389533997,
-0.27703458070755005,
-0.15913546085357666,
-0.6735783815383911,
-0.07148312032222748,
-0.048804886639118195,
-0.004952027462422848,
0.000628952810075134,
0.11898097395896912,
0.15868313610553741,
0.13626037538051605,
0.06926503032445908,
-0.026041097939014435,
-0.5322327613830566,
0.32914841175079346,
-0.21546298265457153,
-0.005382022354751825,
-0.08778822422027588,
0.43666037917137146,
0.041489314287900925,
-0.10649862885475159,
0.010835972614586353,
0.09469053894281387,
0.034019067883491516,
0.0655476525425911,
0.005946007091552019,
0.017562316730618477,
-0.12066256999969482,
0.15823833644390106,
0.14234568178653717,
0.17081564664840698,
-0.23485438525676727,
0.18956582248210907,
-0.283257395029068,
0.029292738065123558,
-0.19824397563934326,
0.15615543723106384,
0.26981499791145325,
0.5158435106277466,
-0.18345120549201965,
-0.06868429481983185,
-0.06360150873661041,
0.16536132991313934,
0.11124403774738312,
-0.06495962291955948,
-0.19141222536563873,
0.08976924419403076,
-0.008699489757418633,
0.27149632573127747,
-0.2622263431549072,
0.1059422567486763,
0.0038293045945465565,
0.0026381914503872395,
-0.49204009771347046,
-0.710914671421051,
0.45224618911743164,
-0.40331435203552246,
-0.5287766456604004,
-0.07965713739395142,
0.5906728506088257,
0.24035385251045227,
-0.03215363621711731,
-0.708696186542511,
-0.03598939999938011,
0.3959985077381134,
0.2443479597568512,
-0.3021715581417084,
0.2129865437746048,
0.1219397708773613,
0.008532153442502022,
0.01442487072199583,
0.6226134896278381,
0.3105247914791107,
-0.2327544093132019,
0.2679707705974579,
-0.4604586064815521
] |
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.1380539983510971,
-0.020553486421704292,
0.22738707065582275,
0.11762414872646332,
-0.15759755671024323,
0.26700559258461,
0.2965675890445709,
-0.5154969096183777,
0.28040802478790283,
0.14544112980365753,
0.4508610665798187,
-0.09352816641330719,
-0.18102063238620758,
0.06429968774318695,
-0.05757623538374901,
0.12214332073926926,
0.24844613671302795,
-0.07153476774692535,
-0.23429234325885773,
0.1333337426185608,
0.3007955849170685,
-0.2574562132358551,
-0.06466085463762283,
-0.2737535834312439,
0.08476094156503677,
-0.07667049020528793,
-0.2693380117416382,
-0.05328643321990967,
-0.4953400194644928,
0.15393930673599243,
0.011122780852019787,
0.10494501143693924,
0.3338853716850281,
-0.00011551438365131617,
-0.08517564833164215,
0.03693799301981926,
0.09381239861249924,
-0.23824083805084229,
-0.157761812210083,
-0.09692791104316711,
0.08862317353487015,
-0.06983952224254608,
-0.027057817205786705,
-0.08341064304113388,
0.19374705851078033,
0.052933987230062485,
-0.09816265106201172,
0.5147067904472351,
0.29158470034599304,
0.14006787538528442,
-0.010242540389299393,
-0.25211936235427856,
-0.06595246493816376,
0.31986960768699646,
0.0313081219792366,
0.08507551997900009,
-0.1780208796262741,
0.2137235403060913,
0.03147941827774048,
-0.05166791379451752,
0.618067741394043,
-0.2813331186771393,
0.3980185091495514,
-0.2359149158000946,
0.12423034012317657,
-0.37117713689804077,
-0.5308332443237305,
0.26683640480041504,
0.21616551280021667,
0.6465562582015991,
-0.22962398827075958,
-0.20446635782718658,
-0.23786015808582306,
0.31990838050842285,
-0.1560651659965515,
-0.04216999560594559,
-0.01617725007236004,
-0.27280205488204956,
0.23506256937980652,
-0.009494452737271786,
0.04764743149280548,
-0.2204020917415619,
0.12888051569461823,
0.05581258609890938,
-0.10741811245679855,
-0.07313630729913712,
0.13855735957622528,
-0.17709983885288239,
0.09940952807664871,
-0.08586367964744568,
0.27035775780677795,
-0.14426171779632568,
0.03412604704499245,
-0.14976243674755096,
-0.06749074161052704,
0.19251541793346405,
-0.304941862821579,
0.2917179465293884,
-0.060220710933208466,
0.38555631041526794,
0.037437789142131805,
-0.18567009270191193,
-0.08810000121593475,
0.3239295184612274,
0.01980840228497982,
-0.02336730808019638,
0.14967741072177887,
0.229897603392601,
-0.23406895995140076,
-0.2531859278678894,
0.07371608167886734,
-0.014418098144233227,
0.21627365052700043,
0.3318791687488556,
-0.2650298774242401,
0.2829245924949646,
-0.36764442920684814,
-0.5658825039863586,
0.06425022333860397,
-0.4400382936000824,
-0.10303959995508194,
-0.2528015971183777,
0.18167363107204437,
0.16933061182498932,
0.30092668533325195,
0.14492495357990265,
0.22267615795135498,
0.06933904439210892,
-0.5628321170806885,
-0.1818622499704361,
0.026798736304044724,
0.20986077189445496,
0.030840694904327393,
0.21132825314998627,
-0.3237058222293854,
0.3398515284061432,
0.34173423051834106,
0.1954527348279953,
-0.4316003620624542,
-0.2874111831188202,
-0.13017714023590088,
0.025560496374964714,
0.0091862753033638,
-0.02648996375501156,
0.3916681408882141,
0.07382100820541382,
-0.018290655687451363,
0.007235480938106775,
0.06100788339972496,
-0.10655637830495834,
0.006864713039249182,
0.2134006917476654,
0.13641057908535004,
-0.0805879458785057,
-0.16711406409740448,
0.12324772030115128,
0.36058682203292847,
0.07794494926929474,
-0.3008696734905243,
0.0030108352657407522,
-0.1827424019575119,
-0.3919648230075836,
-0.038659051060676575,
0.07733136415481567,
0.30246126651763916,
-0.3355470895767212,
0.09542718529701233,
0.17853502929210663,
0.42139723896980286,
0.3944756090641022,
0.24845457077026367,
-0.046510111540555954,
0.37343910336494446,
-0.116816446185112,
0.30014491081237793,
0.20419971644878387,
-0.46213141083717346,
-0.3920539915561676,
0.2112354189157486,
-0.049602847546339035,
0.2464137226343155,
0.15489058196544647,
-0.16278322041034698,
0.302733838558197,
0.14270736277103424,
0.3759348690509796,
0.15347911417484283,
0.14573615789413452,
0.03347977623343468,
-0.2446894347667694,
-0.05789213627576828,
0.0868305116891861,
-0.01314073521643877,
0.002154128858819604,
0.09558362513780594,
0.037038352340459824,
0.23297017812728882,
0.527152419090271,
0.07458408176898956,
0.09245166927576065,
0.1029677465558052,
0.1659652292728424,
-0.10123161226511002,
0.22397777438163757,
-0.26310086250305176,
0.2564864158630371,
-0.04889729619026184,
0.20682638883590698,
0.2837983965873718,
0.1540307253599167,
0.0793672651052475,
-0.30154553055763245,
-0.21888890862464905,
-0.29918909072875977,
-0.3250729739665985,
0.11458168923854828,
0.325737327337265,
-0.014431040734052658,
0.042046595364809036,
-0.18985795974731445,
0.3409901261329651,
-0.22032663226127625,
-0.0741860643029213,
0.023305248469114304,
0.09916584938764572,
0.0638560950756073,
-0.24470750987529755,
0.5248860120773315,
0.252898246049881,
0.185149684548378,
0.20168408751487732,
-0.1669417917728424,
0.2235521823167801,
-0.01476703118532896,
0.021967478096485138,
-0.26371699571609497,
-0.3288922905921936,
0.10994853079319,
-0.5017578601837158,
-0.11139468848705292,
0.23447151482105255,
0.31817200779914856,
-0.004500115290284157,
-0.30367574095726013,
-0.18347014486789703,
0.1390068382024765,
0.25693845748901367,
-0.05544435232877731,
-0.0651191920042038,
0.3011588156223297,
0.06625311821699142,
-0.35379981994628906,
-0.3246977925300598,
0.2526889443397522,
-0.23498022556304932,
0.2662215530872345,
0.020284786820411682,
-0.34177684783935547,
0.1585969626903534,
0.3928965628147125,
0.22451156377792358,
0.08520913869142532,
0.2943880558013916,
-0.24683265388011932,
-0.02701730839908123,
-0.12272877991199493,
0.09491192549467087,
0.29076552391052246,
0.28810423612594604,
0.054301392287015915,
-0.376454621553421,
-0.12874847650527954,
-0.11323206126689911,
0.13933591544628143,
-0.13075649738311768,
-0.3556292653083801,
0.4351169764995575,
0.35854506492614746,
0.08638767153024673,
-0.4493846297264099,
-0.13412846624851227,
-0.14240401983261108,
0.4703678786754608,
-0.33495989441871643,
-0.23163188993930817,
-0.4356054663658142,
-0.12055269628763199,
-0.10900617390871048,
0.06629130244255066,
0.0797039195895195,
0.22555126249790192,
0.2190556675195694,
-0.01271186675876379,
0.005456488113850355,
0.13680009543895721,
0.17199161648750305,
0.2340613156557083,
0.0712057426571846,
0.11179886013269424,
0.08630527555942535,
0.31914007663726807,
-0.3069572150707245,
-0.02426999993622303,
0.025972945615649223,
0.271613210439682,
0.10742948204278946,
-0.1422472596168518,
-0.1639024317264557,
-0.4067970812320709,
0.05901825428009033,
0.2675642669200897,
-0.33016806840896606,
0.5113496780395508,
0.11336217075586319,
0.16024938225746155,
-0.2251667082309723,
-0.31308186054229736,
0.0026735221035778522,
-0.026887321844697,
-0.16868680715560913,
0.3555682599544525,
0.08294298499822617,
-0.005615353584289551,
-0.04825542867183685,
-0.6989758014678955,
0.09939269721508026,
-0.2500093877315521,
0.2359428107738495,
-0.03286690637469292,
0.21037933230400085,
0.36413517594337463,
0.06060725077986717,
0.08126969635486603,
-0.058712393045425415,
0.20536965131759644,
-0.410209983587265,
-0.2545941472053528,
0.3561113476753235,
0.26060429215431213,
-0.3348698616027832,
-0.34056973457336426,
0.05095802620053291,
0.26529547572135925,
-0.032230082899332047,
-0.40010830760002136,
0.10035395622253418,
-0.26746630668640137,
0.1453494429588318,
-0.29726019501686096,
0.2826201021671295,
0.3854671120643616,
0.012993774376809597,
-0.14950419962406158,
-0.1692209243774414,
-0.10783283412456512,
0.26583540439605713,
0.3553735017776489,
0.005884540732949972,
0.10114716738462448,
0.0699148029088974,
-0.059327393770217896,
0.3506981432437897,
0.6459603905677795,
0.2025156468153,
0.2600066363811493,
-0.17655396461486816,
0.09423497319221497,
-0.03249359503388405,
-0.3995799720287323,
0.02708001434803009,
-0.11732456833124161,
-0.0625670924782753,
0.498119980096817,
-0.08999690413475037,
0.05363106355071068,
-0.16958844661712646,
-0.05727772042155266,
-0.32906243205070496,
-0.1686408370733261,
0.06749202311038971,
-0.23594006896018982,
0.1839739829301834,
0.17477507889270782,
0.052828479558229446,
0.16195283830165863,
0.0347348228096962,
-0.2861661911010742,
-0.2988381087779999,
0.2851734757423401,
-0.14997224509716034,
-0.08202991634607315,
-0.28361085057258606,
-0.37728819251060486,
-0.12410183995962143,
0.13858377933502197,
0.5095549821853638,
-0.2117001712322235,
-0.03752010315656662,
0.36001884937286377,
0.2914784550666809,
0.38102880120277405,
-0.30699393153190613,
0.09087708592414856,
0.010391024872660637,
0.22879119217395782,
0.005506852176040411,
0.005460845306515694,
-0.5205012559890747,
-0.19675882160663605,
-0.04749960079789162,
-0.04303190857172012,
-0.1668931245803833,
-0.008018579334020615,
0.10895949602127075,
0.39274418354034424,
-0.009748022072017193,
-0.24081142246723175,
-0.25577062368392944,
-0.07579295337200165,
-0.3301430642604828,
0.16156655550003052,
0.34223103523254395,
0.04439426213502884,
-0.16513317823410034,
-0.12032528221607208,
0.16039922833442688,
-0.06275198608636856,
0.5332361459732056,
0.07985962182283401,
0.37517669796943665,
0.07396505773067474,
0.3011748492717743,
0.274839848279953,
-0.357779860496521,
-0.2591434717178345,
0.36081504821777344,
0.10096927732229233,
-0.14202596247196198,
-0.0036746037658303976,
-0.34686198830604553,
0.32895734906196594,
0.49315616488456726,
-0.22319111227989197,
0.24192944169044495,
-0.29706162214279175,
0.25689423084259033,
-0.15294820070266724,
0.09574685245752335,
0.31952863931655884,
-0.07498329877853394,
-0.07518211752176285,
-0.41028639674186707,
0.3822804391384125,
-0.03649482503533363,
-0.19794794917106628,
0.34455037117004395,
0.09091878682374954,
-0.31038200855255127,
0.47125139832496643,
-0.25788405537605286,
0.8118334412574768,
0.22640712559223175,
0.36662954092025757,
0.31550174951553345,
0.13815084099769592,
0.32616499066352844,
-0.1960090696811676,
0.09023265540599823,
-0.02201833389699459,
-0.0018171957926824689,
-0.021560080349445343,
0.058343131095170975,
-0.07785571366548538,
-0.041759975254535675,
-0.5769286751747131,
0.17752942442893982,
0.06471659243106842,
0.028871016576886177,
0.18680165708065033,
-0.011851472780108452,
-0.129495769739151,
-0.10640719532966614,
0.12529928982257843,
0.032571397721767426,
-0.38393935561180115,
0.30747348070144653,
0.3099326193332672,
-0.024295685812830925,
0.031404759734869,
-0.5837308764457703,
-0.8224811553955078,
-0.03016757220029831,
-0.08251699060201645,
-0.22594010829925537,
-0.19967976212501526,
-0.3336215019226074,
0.3681987524032593,
0.25860023498535156,
0.1915539801120758,
0.32565969228744507,
-0.13796795904636383,
-0.08526414632797241,
0.36824333667755127,
0.2776511609554291,
-0.26795780658721924,
-0.025591524317860603,
0.14451885223388672,
-0.08603153377771378,
-0.3883333206176758,
0.17660337686538696,
0.055158648639917374,
0.09896288067102432,
-0.3880656361579895,
0.2538312077522278,
-0.11467956006526947,
-0.23315851390361786,
0.08573705703020096,
0.4289036691188812,
0.14151638746261597,
-0.511970579624176,
0.10320749133825302,
0.12417205423116684,
-0.4588647186756134,
0.3286854326725006,
0.17258411645889282,
-0.47551947832107544,
-0.06376240402460098,
0.25934043526649475,
0.12836147844791412,
0.0002511758357286453,
0.6646648645401001,
-0.04148245230317116,
0.04838799685239792,
-0.37047579884529114,
0.04069716855883598,
-0.020928986370563507,
-0.2641948163509369,
0.1791122853755951,
0.05866312235593796,
0.17396298050880432,
-0.22652842104434967,
0.2535494565963745,
0.026513541117310524,
0.2048032581806183,
-0.28147515654563904,
-0.3617303669452667,
-0.06197831779718399,
-0.031454168260097504,
0.12343611568212509,
0.05524059757590294,
-0.2911967933177948,
0.11818553507328033,
0.06881581246852875,
0.3186100721359253,
-0.2981918454170227,
0.0059744818136096,
-0.05179520696401596,
0.21732041239738464,
-0.0840415433049202,
0.08132117241621017,
-0.037810180336236954,
0.08517366647720337,
0.2000400274991989,
0.31851574778556824,
0.06729219108819962,
-0.15987001359462738,
-0.3062143623828888,
0.18384429812431335,
0.04174410551786423,
0.15626400709152222,
-0.04076800495386124,
0.1001056507229805,
0.1492389738559723,
-0.1337081342935562,
-0.10101133584976196,
0.334583044052124,
0.12536194920539856,
0.21837839484214783,
-0.02963205799460411,
0.03707100823521614,
0.18515658378601074,
-0.15986517071723938,
-0.18397755920886993,
-0.17245954275131226,
0.33998531103134155,
0.18061377108097076,
0.04874474182724953,
-0.04819611832499504,
0.11862441152334213,
0.039923347532749176,
-0.1340513825416565,
0.11869505792856216,
-0.07783368974924088,
-0.26557686924934387,
0.13336996734142303,
0.2876855731010437,
-0.1194794774055481,
0.37868833541870117,
-0.3459942638874054,
-0.11189936846494675,
0.09119518101215363,
0.23514406383037567,
-0.2654988169670105,
-0.12371180951595306,
-0.3232501745223999,
-0.10655146837234497,
-0.058309268206357956,
0.2784038782119751,
-0.05983138456940651,
-0.472380131483078,
0.12146651744842529,
-0.06493815034627914,
0.33602002263069153,
-0.536003053188324,
-0.07342119514942169,
0.3985147774219513,
0.014973683282732964,
-0.36111995577812195,
-0.1933402419090271,
-0.015197639353573322,
0.020801205188035965,
0.5450984835624695,
-0.36754360795021057,
0.13735824823379517,
-0.33860546350479126,
0.02638811245560646,
0.19154824316501617,
0.025605827569961548,
-0.038219377398490906,
0.4056417644023895,
-0.3271888792514801,
-0.048963211476802826,
-0.07162439823150635,
0.30504727363586426,
-0.1176723763346672,
0.03344602882862091,
-0.1280481070280075,
-0.05141435191035271,
-0.12391936033964157,
-0.12486257404088974,
-0.33803999423980713,
-0.2734285891056061,
-0.23037634789943695,
0.006182694807648659,
0.09754196554422379,
-0.012554915621876717,
0.14051346480846405,
0.19162248075008392,
-0.26688501238822937,
-0.533241331577301,
-0.19809354841709137,
-0.037783462554216385,
0.1720767617225647,
-0.3900320827960968,
0.3403874337673187,
0.30842819809913635,
-0.22177045047283173,
0.25843697786331177,
0.24336476624011993,
0.5199828147888184,
0.07158130407333374,
0.03344777971506119,
0.10651936382055283,
-0.5706878900527954,
-0.09190312772989273,
-0.05172231048345566,
0.3297678828239441,
-0.12424144893884659,
0.05875527113676071,
0.021863209083676338,
0.015872610732913017,
-0.09563972055912018,
0.02934780903160572,
0.2285461723804474,
-0.07562518119812012,
-0.5632566213607788,
0.21907812356948853,
-0.14116311073303223,
0.111732117831707,
0.04065866768360138,
0.0749841183423996,
-0.4736693799495697,
0.44173866510391235,
0.342166930437088,
0.05759596452116966,
-0.010626684874296188,
0.002189818536862731,
0.08138871192932129,
-0.12637554109096527,
-0.11261264979839325,
0.26730459928512573,
0.15798619389533997,
-0.27703458070755005,
-0.15913546085357666,
-0.6735783815383911,
-0.07148312032222748,
-0.048804886639118195,
-0.004952027462422848,
0.000628952810075134,
0.11898097395896912,
0.15868313610553741,
0.13626037538051605,
0.06926503032445908,
-0.026041097939014435,
-0.5322327613830566,
0.32914841175079346,
-0.21546298265457153,
-0.005382022354751825,
-0.08778822422027588,
0.43666037917137146,
0.041489314287900925,
-0.10649862885475159,
0.010835972614586353,
0.09469053894281387,
0.034019067883491516,
0.0655476525425911,
0.005946007091552019,
0.017562316730618477,
-0.12066256999969482,
0.15823833644390106,
0.14234568178653717,
0.17081564664840698,
-0.23485438525676727,
0.18956582248210907,
-0.283257395029068,
0.029292738065123558,
-0.19824397563934326,
0.15615543723106384,
0.26981499791145325,
0.5158435106277466,
-0.18345120549201965,
-0.06868429481983185,
-0.06360150873661041,
0.16536132991313934,
0.11124403774738312,
-0.06495962291955948,
-0.19141222536563873,
0.08976924419403076,
-0.008699489757418633,
0.27149632573127747,
-0.2622263431549072,
0.1059422567486763,
0.0038293045945465565,
0.0026381914503872395,
-0.49204009771347046,
-0.710914671421051,
0.45224618911743164,
-0.40331435203552246,
-0.5287766456604004,
-0.07965713739395142,
0.5906728506088257,
0.24035385251045227,
-0.03215363621711731,
-0.708696186542511,
-0.03598939999938011,
0.3959985077381134,
0.2443479597568512,
-0.3021715581417084,
0.2129865437746048,
0.1219397708773613,
0.008532153442502022,
0.01442487072199583,
0.6226134896278381,
0.3105247914791107,
-0.2327544093132019,
0.2679707705974579,
-0.4604586064815521
] |
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.1253398358821869,
0.02077982760965824,
0.018512921407818794,
0.025715047493577003,
0.18210408091545105,
0.025193477049469948,
0.47886666655540466,
0.24383293092250824,
0.14579592645168304,
-0.23386915028095245,
-0.11628378927707672,
0.2687394917011261,
0.08507496118545532,
0.11211282759904861,
-0.013203014619648457,
0.3137481212615967,
0.11010228842496872,
0.21448366343975067,
-0.07224980741739273,
-0.005192754790186882,
-0.2910996079444885,
0.06344251334667206,
-0.18331825733184814,
-0.21956346929073334,
-0.2065766602754593,
0.2937983572483063,
-0.042693737894296646,
0.3026082515716553,
0.008405555970966816,
-0.37312051653862,
0.18368101119995117,
0.25500625371932983,
0.18209819495677948,
0.6611071825027466,
-0.00010971599840559065,
0.06178881600499153,
0.1586233228445053,
-0.17931514978408813,
-0.17044197022914886,
-0.1858089119195938,
0.04199568182229996,
-0.04552799090743065,
-0.34614628553390503,
-0.08420974016189575,
-0.0005326158716343343,
-0.22075262665748596,
-0.17487625777721405,
-0.3461509943008423,
0.5304937958717346,
0.40280184149742126,
0.23200739920139313,
-0.11041618883609772,
0.12024067342281342,
-0.0721178874373436,
0.17871227860450745,
0.14141374826431274,
-0.06995254755020142,
0.35578176379203796,
0.10452447831630707,
-0.2072225660085678,
-0.0906309187412262,
0.07144799083471298,
-0.13013333082199097,
0.051593292504549026,
-0.10077746212482452,
-0.02663847617805004,
0.3280925750732422,
-0.1360907256603241,
0.08565757423639297,
0.17062251269817352,
0.6073065400123596,
-0.3377121388912201,
-0.41728371381759644,
0.007285953965038061,
0.018314754590392113,
-0.244277223944664,
0.16502362489700317,
0.1792500764131546,
-0.007417981047183275,
0.368666410446167,
-0.01261930726468563,
-0.02545185200870037,
0.07213737815618515,
-0.19480662047863007,
-0.03085651993751526,
-0.1178191751241684,
-0.10041656345129013,
-0.03621275722980499,
0.0516202412545681,
0.06024866923689842,
0.42135870456695557,
-0.02161678485572338,
-0.05668143182992935,
0.034285347908735275,
-0.02915351837873459,
-0.13422046601772308,
0.21530592441558838,
-0.30183514952659607,
0.07473688572645187,
-0.028192270547151566,
-0.0764477476477623,
-0.1077359989285469,
-0.05920087546110153,
0.0489802286028862,
0.07386071234941483,
0.2261451780796051,
-0.1387251913547516,
-0.0901203379034996,
0.3910103440284729,
0.17674139142036438,
-0.2513786852359772,
-0.07261873781681061,
0.029412999749183655,
-0.20272764563560486,
0.52610182762146,
-0.06475988030433655,
0.2614038586616516,
-0.14722155034542084,
-0.40446171164512634,
-0.01818079687654972,
-0.10707839578390121,
0.003264552913606167,
-0.27426406741142273,
0.1767626851797104,
0.020774243399500847,
0.3530648350715637,
0.1341455727815628,
0.18562521040439606,
0.05813954770565033,
-0.20635661482810974,
-0.22263409197330475,
-0.12268688529729843,
-0.3091828525066376,
0.025151921436190605,
0.29478293657302856,
-0.17088322341442108,
0.3440067172050476,
0.5470421314239502,
-0.3297729194164276,
-0.5027315020561218,
-0.0621347613632679,
-0.03143298998475075,
0.14525087177753448,
0.2964736819267273,
-0.0633024051785469,
-0.08639833331108093,
0.2666996419429779,
-0.09013647586107254,
-0.016839677467942238,
0.3552980124950409,
-0.09144826233386993,
-0.3069295585155487,
0.14365236461162567,
0.19756393134593964,
0.051106344908475876,
0.19584907591342926,
-0.12795142829418182,
0.015527850016951561,
0.3042721450328827,
-0.07051832973957062,
-0.04579602926969528,
-0.05007791891694069,
-0.013653049245476723,
-0.24845203757286072,
0.04766720533370972,
0.7337819933891296,
-0.46811550855636597,
0.008141998201608658,
-0.29220083355903625,
-0.08908514678478241,
0.24045568704605103,
0.07852482050657272,
0.004703405778855085,
0.04239305481314659,
-0.46869027614593506,
-0.3603304624557495,
0.1667589545249939,
-0.16695204377174377,
-0.43696001172065735,
0.005820580758154392,
-0.21424199640750885,
0.2575323283672333,
0.16651472449302673,
-0.04497851803898811,
-0.15013647079467773,
-0.017233001068234444,
0.09704721719026566,
0.2490065097808838,
0.09239411354064941,
0.044823840260505676,
-0.32461684942245483,
-0.288821280002594,
0.045568354427814484,
-0.1329668015241623,
0.28551533818244934,
0.40568098425865173,
0.35214364528656006,
0.16662050783634186,
0.3699391186237335,
0.06259281188249588,
0.015510139986872673,
0.014387113973498344,
0.3367370069026947,
-0.018009865656495094,
0.033076219260692596,
0.17652076482772827,
-0.522168755531311,
0.3075173795223236,
-0.033605195581912994,
-0.25156211853027344,
0.07289601862430573,
-0.07019541412591934,
-0.5719507336616516,
-0.2283390462398529,
-0.07209799438714981,
-0.3877536952495575,
0.17254790663719177,
0.4713418185710907,
-0.03343465179204941,
0.01849968545138836,
-0.1434890329837799,
0.47259753942489624,
-0.38450151681900024,
-0.04807119071483612,
-0.04130107909440994,
0.2855200469493866,
-0.19322890043258667,
-0.18146106600761414,
-0.2195684313774109,
-0.11879656463861465,
0.2447948306798935,
-0.16257455945014954,
-0.12155958265066147,
0.42997005581855774,
0.18604783713817596,
0.27208641171455383,
-0.3619139790534973,
-0.19503764808177948,
0.16521935164928436,
-0.016063213348388672,
-0.1465490460395813,
0.11854530870914459,
0.24596890807151794,
-0.07762636989355087,
-0.01739477925002575,
0.27890464663505554,
-0.4031006991863251,
-0.08858700096607208,
0.07137423753738403,
-0.046219922602176666,
0.26661384105682373,
-0.2367839366197586,
0.28281787037849426,
-0.34039783477783203,
-0.34033140540122986,
0.2947019934654236,
0.0018233973532915115,
0.12792770564556122,
0.09892429411411285,
0.11211409419775009,
0.2867799699306488,
0.006671332288533449,
0.04751824215054512,
-0.0890122503042221,
-0.17656587064266205,
-0.2945634126663208,
0.013121465221047401,
0.35000088810920715,
0.5929617881774902,
0.16572579741477966,
-0.016661597415804863,
0.145173117518425,
-0.058306995779275894,
-0.25380879640579224,
0.20438650250434875,
-0.26133379340171814,
-0.006469582207500935,
0.33118316531181335,
0.18785229325294495,
0.07633666694164276,
-0.6370834112167358,
0.18601514399051666,
0.514092743396759,
0.2118026316165924,
-0.21951451897621155,
-0.19098514318466187,
-0.1673654168844223,
0.4125150740146637,
0.06301699578762054,
0.14355094730854034,
-0.030055778101086617,
-0.10656651854515076,
-0.13827377557754517,
0.5955286622047424,
-0.058998316526412964,
0.07329227030277252,
-0.18508104979991913,
-0.07492683827877045,
-0.046165961772203445,
-0.1426962912082672,
-0.14728045463562012,
-0.17641475796699524,
-0.14148321747779846,
0.09109573811292648,
0.2313579022884369,
-0.34192216396331787,
0.14773108065128326,
-0.18287625908851624,
-0.12675732374191284,
-0.32676318287849426,
-0.08334308862686157,
-0.12939442694187164,
0.03400447219610214,
0.2224019467830658,
-0.22504930198192596,
0.147137850522995,
0.1697564572095871,
0.03256770968437195,
-0.00471522007137537,
-0.35545414686203003,
-0.33416905999183655,
-0.10292822122573853,
0.15119925141334534,
0.26337534189224243,
-0.26001080870628357,
-0.45545637607574463,
0.10902237892150879,
-0.3711390495300293,
-0.04065753147006035,
0.10156109184026718,
-0.09197532385587692,
0.38333576917648315,
0.2238108217716217,
-0.031083032488822937,
0.40200772881507874,
0.2698839604854584,
-0.4376196265220642,
-0.27906104922294617,
0.08050352334976196,
-0.10147792100906372,
-0.2633703649044037,
0.014791528694331646,
0.060915231704711914,
-0.01211942546069622,
0.27370527386665344,
-0.43076857924461365,
-0.08452555537223816,
-0.2824060618877411,
0.08377833664417267,
-0.05857597663998604,
0.2336963266134262,
0.208123117685318,
0.12076090276241302,
-0.2136407047510147,
-0.10408010333776474,
-0.0956784039735794,
-0.041495729237794876,
0.23349177837371826,
0.12698273360729218,
0.021205270662903786,
0.22927908599376678,
0.0935392677783966,
0.6404241323471069,
0.050311025232076645,
-0.12548068165779114,
0.5086998343467712,
0.12542299926280975,
0.7294847965240479,
-0.07403722405433655,
-0.33906078338623047,
-0.0056344387121498585,
-0.1845836639404297,
0.3192578852176666,
0.042028963565826416,
-0.10619810968637466,
0.13097941875457764,
-0.15642289817333221,
0.02422644942998886,
-0.16781242191791534,
-0.22365084290504456,
-0.11790957301855087,
-0.24939000606536865,
-0.022043878212571144,
0.3142301142215729,
-0.1047649011015892,
-0.13416559994220734,
0.0813804641366005,
-0.01852603442966938,
0.08762883394956589,
0.32204094529151917,
0.08849327266216278,
0.09943903237581253,
0.5284658670425415,
-0.10808157920837402,
-0.013338888064026833,
-0.08779793232679367,
0.36456218361854553,
0.2040727436542511,
-0.20238181948661804,
0.05859299749135971,
-0.0231176745146513,
0.7181980609893799,
-0.21944595873355865,
0.31329086422920227,
0.228694885969162,
0.011423402465879917,
-0.08702158182859421,
-0.19676651060581207,
0.10326181352138519,
-0.14877431094646454,
0.18870995938777924,
0.36492931842803955,
0.03754739463329315,
0.039001502096652985,
-0.10035698115825653,
0.20321673154830933,
0.062128741294145584,
-0.1629732847213745,
-0.278812438249588,
-0.15997223556041718,
-0.45885971188545227,
0.31173357367515564,
0.19158783555030823,
0.08900513499975204,
-0.3208870589733124,
0.08463389426469803,
-0.24782416224479675,
-0.41168177127838135,
-0.03958547115325928,
0.19514156877994537,
0.20081904530525208,
0.11396065354347229,
0.0489872507750988,
-0.016183890402317047,
-0.11711501330137253,
0.26747605204582214,
0.4194464385509491,
-0.1649918556213379,
0.06672900915145874,
-0.12805673480033875,
0.1093960627913475,
-0.06758115440607071,
0.3193851411342621,
-0.06579680740833282,
-0.11206001043319702,
-0.3978942632675171,
-0.16188181936740875,
0.06209731474518776,
0.06734585762023926,
0.0029715299606323242,
-0.33545756340026855,
-0.09545133262872696,
-0.4370090365409851,
0.28718578815460205,
-0.06821633130311966,
-0.051598165184259415,
0.45728349685668945,
0.2364322543144226,
-0.20391204953193665,
0.16251684725284576,
0.05289361625909805,
0.8192437291145325,
-0.12214766442775726,
0.16519193351268768,
0.03279036656022072,
-0.05938749760389328,
0.40347665548324585,
-0.28868159651756287,
0.19405925273895264,
-0.17677421867847443,
-0.30612409114837646,
0.10449356585741043,
-0.04080813750624657,
0.2328803539276123,
0.20792216062545776,
-0.1264052391052246,
0.1385405957698822,
-0.09847310185432434,
0.41676652431488037,
0.2764778435230255,
-0.003025943413376808,
-0.22247038781642914,
-0.1413925439119339,
-0.22919267416000366,
0.14681872725486755,
0.2811717092990875,
0.19268091022968292,
-0.1454823613166809,
-0.008617238141596317,
0.12203650921583176,
-0.022948307916522026,
-0.26856228709220886,
0.2866356074810028,
-0.16425323486328125,
0.378347247838974,
-0.4507664144039154,
-0.10984098166227341,
0.032646216452121735,
0.26009389758110046,
0.2549610435962677,
0.2578200399875641,
0.014677358791232109,
0.08309277147054672,
0.4122851490974426,
0.1323079615831375,
-0.1551150232553482,
0.0008575002430006862,
0.41588452458381653,
0.10062863677740097,
-0.3379729092121124,
0.1988285779953003,
-0.09078408032655716,
-0.14765502512454987,
0.0037591462023556232,
0.2748388648033142,
-0.04332825168967247,
-0.11250337213277817,
-0.09276469796895981,
0.09353680908679962,
-0.07497471570968628,
-0.41864433884620667,
0.1443357914686203,
-0.05225341394543648,
-0.12823985517024994,
0.12125644087791443,
-0.4481026828289032,
-0.45399022102355957,
-0.2699025869369507,
0.5651442408561707,
0.16530470550060272,
0.089688241481781,
0.3432316482067108,
-0.19581565260887146,
0.009230447933077812,
-0.19560374319553375,
0.034832727164030075,
-0.12555190920829773,
-0.32504308223724365,
0.5315566062927246,
-0.2140314131975174,
-0.10113101452589035,
0.18892580270767212,
-0.17375390231609344,
0.11054130643606186,
0.3808705806732178,
0.1637355089187622,
-0.28449365496635437,
-0.5291990637779236,
-0.3904184401035309,
-0.052490122616291046,
0.2282991260290146,
0.05084835737943649,
-0.007294780574738979,
-0.010713341645896435,
-0.004558691754937172,
-0.33507758378982544,
0.24038822948932648,
0.0919056087732315,
0.07293345779180527,
0.12427941709756851,
-0.10434818267822266,
-0.25607067346572876,
-0.2592727541923523,
0.17759542167186737,
0.32094863057136536,
-0.025410113856196404,
-0.2779422998428345,
-0.32961443066596985,
0.09583297371864319,
0.3220798373222351,
-0.1090269386768341,
-0.1992630660533905,
-0.08584725856781006,
-0.2128358632326126,
-0.11368504166603088,
0.20989595353603363,
0.41468510031700134,
-0.05050649493932724,
-0.01524881087243557,
0.33207112550735474,
0.00224489183165133,
-0.19977419078350067,
-0.09585138410329819,
-0.2755778431892395,
-0.14803649485111237,
0.06965790688991547,
0.27258795499801636,
-0.036160264164209366,
0.1273905634880066,
-0.43854427337646484,
-0.06491666287183762,
0.11951795220375061,
0.0885498896241188,
0.19131025671958923,
-0.22849629819393158,
-0.16638271510601044,
-0.08600334823131561,
0.2218843400478363,
0.40136241912841797,
0.04893627390265465,
-0.15804781019687653,
0.2325669527053833,
0.2389935851097107,
-0.5628601312637329,
-0.010694361291825771,
0.1943594366312027,
-0.00364971742965281,
0.09856466948986053,
0.19869734346866608,
0.21040508151054382,
-0.16817286610603333,
-0.06130761280655861,
0.13478827476501465,
0.2547553777694702,
-0.0625283420085907,
0.331742525100708,
0.6826934218406677,
0.17628011107444763,
0.24817517399787903,
0.25625079870224,
0.1975744664669037,
0.16425274312496185,
0.3292226493358612,
0.02296861633658409,
-0.02419295534491539,
-0.28156331181526184,
0.01844749227166176,
-0.37970617413520813,
-0.37096112966537476,
0.31608766317367554,
0.4231714904308319,
-0.21430861949920654,
0.23659230768680573,
0.03536203131079674,
-0.3099912703037262,
-0.026485886424779892,
0.029949165880680084,
-0.2805516719818115,
0.20324626564979553,
-0.12363685667514801,
-0.3274012804031372,
0.3878677189350128,
-0.20261052250862122,
-0.17774824798107147,
0.1964990198612213,
-0.04107559099793434,
0.02626083604991436,
-0.1356976330280304,
-0.0048750932328403,
-0.27219709753990173,
-0.4071179926395416,
-0.06439124047756195,
0.1155269518494606,
0.13042250275611877,
-0.20576609671115875,
-0.09847403317689896,
0.3018867075443268,
-0.13642847537994385,
-0.0018377563683316112,
0.2399723380804062,
0.378897100687027,
0.21110841631889343,
0.15349078178405762,
-0.0022810418158769608,
0.17388243973255157,
-0.008815067820250988,
-0.315762460231781,
0.4200015068054199,
0.06627470254898071,
-0.02409510500729084,
-0.1370912492275238,
0.20393900573253632,
-0.2506951093673706,
-0.08120466023683548,
0.15220679342746735,
0.014136608690023422,
-0.15470753610134125,
0.4992964565753937,
0.07199600338935852,
-0.3092769682407379,
-0.0027598030865192413,
0.2752630412578583,
0.025196556001901627,
-0.07981731742620468,
0.32673269510269165,
-0.13323000073432922,
0.28190210461616516,
-0.23000763356685638,
0.11098109185695648,
0.11482717841863632,
-0.03475314751267433,
0.4555123448371887,
-0.4898695945739746,
-0.20979581773281097,
0.09886158257722855,
-0.8163997530937195,
0.012093651108443737,
0.03284871578216553,
0.20083025097846985,
-0.14170965552330017,
0.08336999267339706,
-0.008318767882883549,
0.021293915808200836,
0.11451326310634613,
0.31389468908309937,
0.0724572241306305,
0.3102658987045288,
-0.05394641309976578,
-0.13469041883945465,
-0.09586604684591293,
-0.14770102500915527,
-0.11636525392532349,
-0.5594713687896729,
0.0759592279791832,
-0.1853274703025818,
0.2095305174589157,
-0.03706028312444687,
0.006510313134640455,
0.21801497042179108,
0.24442028999328613,
0.49459272623062134,
0.028728606179356575,
-0.03322016820311546,
-0.05200275406241417,
-0.13350322842597961,
-0.5665875673294067,
-0.03980105370283127,
-0.24664044380187988,
0.05008383467793465,
0.15206636488437653,
0.13907946646213531,
-0.3625165820121765,
-0.3033449649810791,
-0.21440480649471283,
0.3089035153388977,
0.20045116543769836,
-0.0365050807595253,
-0.32255828380584717,
-0.022641871124505997,
-0.08647472411394119,
0.02374202199280262,
0.2618906497955322,
0.2817649841308594,
-0.3526061177253723,
0.39245763421058655,
-0.39136579632759094,
-0.3119351863861084,
0.20781008899211884,
-0.3488779664039612,
-0.35972845554351807,
-0.11099787801504135,
0.2195085883140564,
-0.059010930359363556,
-0.08384617418050766,
0.08040153235197067,
0.3842257559299469,
0.22002609074115753,
-0.12928177416324615,
-0.22826704382896423,
0.11827945709228516,
-0.4038980007171631,
0.15223179757595062,
-0.09264279156923294,
0.15833701193332672,
0.15146379172801971,
-0.21538366377353668,
0.14776358008384705,
-0.07969985902309418
] |
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.04978623613715172,
-0.05474414676427841,
-0.12806656956672668,
0.0003010357322636992,
-0.03935452550649643,
-0.00713132880628109,
0.35460445284843445,
0.16591522097587585,
0.19368593394756317,
0.20558105409145355,
0.06397945433855057,
0.14600683748722076,
-0.024292515590786934,
0.1997428983449936,
-0.014876280911266804,
-0.20615309476852417,
-0.04741765931248665,
0.007556884549558163,
-0.09543991833925247,
-0.09535463899374008,
-0.12374739348888397,
0.14722810685634613,
-0.13759160041809082,
-0.2112540453672409,
-0.45807239413261414,
-0.08757700771093369,
-0.17305615544319153,
-0.02534553036093712,
-0.17212943732738495,
-0.07761876285076141,
-0.12090006470680237,
0.19935566186904907,
-0.1435842365026474,
0.3342965245246887,
-0.00009734712511999533,
-0.11899954080581665,
0.23090729117393494,
-0.1802837997674942,
-0.0871025025844574,
0.05766141787171364,
0.12335940450429916,
-0.018355434760451317,
-0.31976959109306335,
-0.44974151253700256,
-0.19174185395240784,
-0.09192665666341782,
0.2502592206001282,
0.08722647279500961,
0.2207232564687729,
-0.01719369739294052,
0.3280394971370697,
-0.12104446440935135,
0.10394831001758575,
0.024298327043652534,
0.040867000818252563,
0.1121114119887352,
-0.13301201164722443,
-0.000700378033798188,
0.015008404850959778,
-0.3246171474456787,
-0.16043151915073395,
0.6847468614578247,
0.01717301271855831,
0.027253935113549232,
0.06144127994775772,
0.05636611580848694,
-0.1721414476633072,
-0.32972458004951477,
0.1790352761745453,
0.43494996428489685,
0.5310003161430359,
0.002228651661425829,
-0.16606581211090088,
-0.05319720134139061,
-0.08755932748317719,
-0.06501001864671707,
0.1432967483997345,
0.29994311928749084,
-0.13682299852371216,
0.023942871019244194,
-0.26669713854789734,
0.0028922325000166893,
-0.25453928112983704,
0.15935984253883362,
-0.19594629108905792,
0.4131121337413788,
0.021566636860370636,
0.032652828842401505,
-0.0001826640364015475,
-0.2101522833108902,
-0.4369371235370636,
-0.012732155621051788,
0.2125464677810669,
0.009994684718549252,
0.03810901939868927,
-0.2509274184703827,
-0.050386443734169006,
-0.15460902452468872,
0.3692227602005005,
-0.19737836718559265,
-0.0403587780892849,
0.07332411408424377,
-0.1825133115053177,
0.30016621947288513,
0.11515641212463379,
-0.2735804319381714,
-0.17287759482860565,
0.021519111469388008,
0.18278467655181885,
0.08740605413913727,
-0.24666397273540497,
0.13446390628814697,
0.225302591919899,
-0.10297315567731857,
-0.1772986501455307,
-0.08780037611722946,
0.10702048987150192,
-0.04666152223944664,
-0.10756061226129532,
-0.00858322437852621,
-0.14670516550540924,
-0.07101268321275711,
-0.43605801463127136,
0.21651695668697357,
-0.03357614949345589,
0.10984993726015091,
0.12789708375930786,
0.1473863124847412,
-0.21880802512168884,
-0.1533711552619934,
-0.10578694194555283,
0.10091503709554672,
0.055739954113960266,
0.2790457606315613,
0.12110259383916855,
0.331138014793396,
0.2567347288131714,
-0.08240287750959396,
0.17464543879032135,
0.09472019970417023,
0.04164840281009674,
-0.0953107476234436,
0.25552454590797424,
-0.008911803364753723,
0.016462435945868492,
-0.12272748351097107,
-0.05124130845069885,
-0.27936193346977234,
-0.19902430474758148,
0.027065536007285118,
-0.1084727868437767,
0.20363155007362366,
-0.32129067182540894,
0.2668367028236389,
0.14469771087169647,
-0.0583512969315052,
-0.004564288537949324,
0.6982094645500183,
0.09597613662481308,
0.030842233449220657,
0.13653092086315155,
0.14452481269836426,
-0.3958846926689148,
-0.0636468306183815,
0.24535243213176727,
0.4490680694580078,
-0.08862800151109695,
0.025528639554977417,
0.3061012327671051,
0.35646137595176697,
0.01937013678252697,
0.19322043657302856,
0.02455061487853527,
-0.018151074647903442,
0.04887529835104942,
0.26301783323287964,
-0.10562051832675934,
-0.23586858808994293,
-0.11953921616077423,
-0.17599070072174072,
-0.096511609852314,
0.10207594931125641,
0.032643724232912064,
0.28605127334594727,
0.2700505554676056,
-0.10277512669563293,
0.09353413432836533,
0.6013002395629883,
-0.18929436802864075,
0.2137656807899475,
-0.2130071073770523,
-0.3863323926925659,
-0.006900251377373934,
0.32738035917282104,
0.128563791513443,
-0.4685770273208618,
0.22502323985099792,
0.19093988835811615,
0.03199862316250801,
-0.38458698987960815,
0.09872255474328995,
0.007533953059464693,
-0.031035166233778,
0.09958432614803314,
0.0918281227350235,
-0.23989492654800415,
-0.007951688021421432,
0.05467923730611801,
0.20491547882556915,
0.48322194814682007,
-0.1773443967103958,
-0.2481343299150467,
-0.03899572417140007,
-0.1513751596212387,
-0.10651401430368423,
-0.36987102031707764,
0.3537430167198181,
0.12058652192354202,
-0.004548630211502314,
0.2210569977760315,
0.07844992727041245,
-0.05941598862409592,
-0.3163442015647888,
-0.045601941645145416,
0.11990609765052795,
0.1867600828409195,
-0.2623734176158905,
-0.01857590302824974,
0.12186593562364578,
0.08605309575796127,
-0.08356046676635742,
0.18076485395431519,
0.09117460250854492,
0.19132499396800995,
0.04617708548903465,
0.34554150700569153,
0.26779529452323914,
0.053057994693517685,
0.3559018671512604,
-0.6900476813316345,
-0.06900867074728012,
0.191234290599823,
0.003061140887439251,
0.012259899638593197,
-0.265972763299942,
0.18192774057388306,
0.2717040181159973,
0.045216985046863556,
-0.08044536411762238,
-0.008308432064950466,
0.14734706282615662,
-0.02443920075893402,
0.05837029218673706,
-0.3646616041660309,
-0.08103777468204498,
0.21299919486045837,
-0.2515612244606018,
-0.23260581493377686,
-0.18902429938316345,
0.18087488412857056,
0.5132710337638855,
0.24331717193126678,
0.3687909245491028,
0.168417826294899,
-0.11996781826019287,
-0.14010493457317352,
-0.006869826000183821,
-0.09601571410894394,
-0.1688118577003479,
0.37421050667762756,
-0.053772520273923874,
-0.1260633021593094,
-0.2724704146385193,
-0.09229515492916107,
0.17809565365314484,
-0.01589231938123703,
0.2231314480304718,
0.04866470769047737,
0.2492242306470871,
-0.02499089576303959,
-0.4577437937259674,
-0.1271137148141861,
-0.15744897723197937,
-0.19730310142040253,
0.056282199919223785,
0.07846472412347794,
-0.07133180648088455,
-0.19916023313999176,
-0.0669652670621872,
0.28336066007614136,
-0.3087121546268463,
-0.11430847644805908,
0.352222740650177,
0.01521886046975851,
-0.11031129956245422,
0.18331359326839447,
0.08732431381940842,
0.17335627973079681,
0.18623457849025726,
0.024558207020163536,
-0.13379400968551636,
-0.5455777049064636,
-0.061116792261600494,
0.2686131000518799,
0.17435933649539948,
-0.016150381416082382,
0.5377417206764221,
-0.17810119688510895,
0.036774080246686935,
-0.28842514753341675,
-0.7053375840187073,
0.1020471602678299,
-0.1840778887271881,
0.1969560831785202,
0.015518298372626305,
0.2760659158229828,
-0.2234162539243698,
-0.15411321818828583,
0.1546299308538437,
-0.10174669325351715,
-0.1935490518808365,
-0.22095850110054016,
0.048076823353767395,
0.04209988936781883,
-0.22918671369552612,
-0.2148967832326889,
-0.14420758187770844,
-0.24474847316741943,
0.10660207271575928,
0.3489590585231781,
0.17218762636184692,
0.06473648548126221,
0.38381728529930115,
0.028066260740160942,
-0.02386992610991001,
0.2764135003089905,
-0.35711604356765747,
-0.03220289573073387,
0.36824655532836914,
-0.3039097487926483,
-0.40381550788879395,
-0.16452716290950775,
-0.18276670575141907,
0.16991333663463593,
0.059195347130298615,
-0.3852043151855469,
-0.39320600032806396,
0.01609245501458645,
0.1964576244354248,
0.2606026232242584,
0.07765543460845947,
0.16889671981334686,
0.16969731450080872,
-0.2888210415840149,
-0.12013015896081924,
-0.09050031751394272,
0.10876279324293137,
0.08043920248746872,
0.03271741792559624,
0.2156328558921814,
0.09163656830787659,
0.2265031784772873,
0.6132444143295288,
-0.16133959591388702,
-0.02815690077841282,
0.4119827449321747,
-0.03838086500763893,
0.22410404682159424,
-0.00023337762104347348,
-0.07051170617341995,
0.4972856938838959,
0.009116468019783497,
0.15814490616321564,
0.24899742007255554,
0.1093951165676117,
-0.4575260877609253,
-0.1425068974494934,
0.07410725951194763,
-0.43098434805870056,
-0.18312901258468628,
0.11262344568967819,
0.28222304582595825,
0.13590233027935028,
-0.12557268142700195,
-0.11187724024057388,
-0.19500742852687836,
-0.21409906446933746,
0.1501377820968628,
0.13654613494873047,
-0.03306730464100838,
-0.08543974161148071,
-0.14780259132385254,
0.0440790094435215,
-0.20995837450027466,
0.13260014355182648,
0.38083896040916443,
-0.17131298780441284,
-0.12352953106164932,
-0.0641891211271286,
-0.1482815444469452,
-0.22657348215579987,
0.24561747908592224,
-0.3066804111003876,
-0.0396217480301857,
-0.00018551573157310486,
-0.005773553624749184,
0.017194192856550217,
0.2211826890707016,
-0.20882607996463776,
-0.34430214762687683,
-0.04523095488548279,
0.24777249991893768,
-0.42939475178718567,
0.08817040175199509,
0.39060869812965393,
0.18757501244544983,
-0.0982600674033165,
0.07251344621181488,
-0.15351350605487823,
-0.44660520553588867,
-0.463980495929718,
0.07592840492725372,
-0.017923040315508842,
0.23405267298221588,
0.16927433013916016,
-0.046104203909635544,
-0.04956107959151268,
-0.03458038344979286,
-0.03135691583156586,
0.3599342703819275,
0.023260509595274925,
0.24515339732170105,
-0.1866830289363861,
0.015925802290439606,
-0.03627568483352661,
-0.039268821477890015,
0.2646232843399048,
0.06555986404418945,
0.062099527567625046,
-0.1904882788658142,
-0.1798865646123886,
-0.008132691495120525,
0.13258706033229828,
0.24912512302398682,
-0.032528944313526154,
0.009901802986860275,
0.03238080069422722,
-0.38695642352104187,
0.21385277807712555,
0.10158637166023254,
0.1107608899474144,
-0.014832939952611923,
-0.26820793747901917,
0.3575322926044464,
0.013969327323138714,
0.08968247473239899,
0.3896492123603821,
0.08274810761213303,
-0.4077330231666565,
0.1313973367214203,
0.6063616275787354,
0.876694917678833,
-0.17842787504196167,
0.19688503444194794,
0.11565272510051727,
-0.12276957929134369,
0.49013668298721313,
-0.012511075474321842,
0.0893896296620369,
-0.09030492603778839,
0.04620545357465744,
-0.04825741797685623,
0.18107661604881287,
0.023386413231492043,
-0.007180027663707733,
-0.23839697241783142,
-0.05914869159460068,
0.4950779676437378,
0.05098874866962433,
0.022318001836538315,
0.24544113874435425,
-0.01800035499036312,
-0.37122246623039246,
-0.16389140486717224,
0.2396213263273239,
-0.13479448854923248,
-0.038617800921201706,
0.020554665476083755,
-0.12826472520828247,
-0.05630653724074364,
-0.24087302386760712,
-0.26612192392349243,
-0.03752626106142998,
-0.3923754096031189,
0.20526425540447235,
-0.25204795598983765,
-0.23213131725788116,
0.05400058999657631,
0.19257216155529022,
0.15387818217277527,
-0.011854590848088264,
-0.1931021362543106,
0.2699621319770813,
-0.216696098446846,
-0.12972858548164368,
0.09944786131381989,
-0.07785576581954956,
0.3134607672691345,
-0.16212612390518188,
-0.2310345619916916,
0.06826405227184296,
0.3530697226524353,
-0.20035332441329956,
-0.37840569019317627,
-0.15962041914463043,
0.21485696732997894,
0.3098066747188568,
-0.07141203433275223,
0.03680941462516785,
-0.40809309482574463,
-0.25505635142326355,
0.26626086235046387,
-0.17208446562290192,
0.12809520959854126,
0.09532293677330017,
0.3381574749946594,
-0.0661720335483551,
0.012041364796459675,
0.27996695041656494,
0.15132413804531097,
0.06921606510877609,
0.2529289126396179,
0.19705109298229218,
-0.15937742590904236,
-0.26254817843437195,
-0.14282631874084473,
-0.21437926590442657,
-0.3051331639289856,
-0.13529831171035767,
0.06716713309288025,
-0.20435282588005066,
-0.13380266726016998,
0.364198237657547,
0.16250555217266083,
-0.02555915154516697,
0.09161865711212158,
-0.07917734980583191,
-0.04353226721286774,
0.3351583480834961,
-0.26450783014297485,
0.2620086967945099,
0.13626132905483246,
0.0919240191578865,
0.062100380659103394,
0.24666602909564972,
-0.46977055072784424,
0.0008082198328338563,
-0.2768246531486511,
0.22043851017951965,
0.2841958999633789,
-0.18620601296424866,
-0.028030751273036003,
0.12536856532096863,
0.3021198809146881,
0.0017986418679356575,
-0.16856098175048828,
-0.3627263903617859,
-0.24314358830451965,
0.042277246713638306,
0.033410798758268356,
-0.1346723735332489,
0.02545696683228016,
-0.07903238385915756,
-0.08361531049013138,
-0.1622530221939087,
0.09319359064102173,
-0.2240975797176361,
-0.2472420632839203,
0.2228255420923233,
-0.18231387436389923,
0.07007072865962982,
0.09484601765871048,
-0.18610802292823792,
-0.09508485347032547,
0.4156051278114319,
0.053598079830408096,
-0.10834194719791412,
0.22086498141288757,
-0.13956671953201294,
-0.02601371705532074,
0.2909342646598816,
-0.2630016505718231,
0.01330801472067833,
0.2766338884830475,
0.1419242024421692,
-0.034324705600738525,
0.24412015080451965,
0.2616047263145447,
-0.21285296976566315,
-0.2781761586666107,
-0.07092922925949097,
0.20340584218502045,
0.3885400891304016,
-0.3480495512485504,
-0.0002690938126761466,
0.3647507131099701,
-0.4026501774787903,
0.4058001637458801,
0.3052505552768707,
0.16807587444782257,
-0.047095004469156265,
-0.2581315338611603,
0.076539047062397,
-0.016994765028357506,
-0.43400242924690247,
-0.020303921774029732,
0.1415558159351349,
0.11057574301958084,
0.04873596876859665,
-0.06017031520605087,
0.15924741327762604,
0.27904465794563293,
0.27026304602622986,
-0.05767161026597023,
0.4003254473209381,
0.07007240504026413,
0.05365953594446182,
0.28205907344818115,
0.2163238525390625,
0.500888466835022,
0.1520393043756485,
0.06153281405568123,
0.33753296732902527,
0.06671107560396194,
-0.04894936829805374,
0.02316625975072384,
-0.14150874316692352,
-0.11761550605297089,
0.31344106793403625,
-0.014750035479664803,
-0.0715857446193695,
-0.3975224792957306,
-0.21558502316474915,
-0.05025343596935272,
0.09920413047075272,
0.08556687831878662,
-0.14505687355995178,
0.23546358942985535,
0.05249658226966858,
-0.11966492235660553,
-0.2443862408399582,
-0.04307178780436516,
-0.06646468490362167,
0.5451587438583374,
-0.19913816452026367,
0.06965979933738708,
0.2658623158931732,
-0.0356091745197773,
0.0963544100522995,
0.4021223187446594,
0.19850409030914307,
0.07891662418842316,
-0.23817454278469086,
0.10883498936891556,
-0.04457833617925644,
-0.14409802854061127,
-0.14252540469169617,
-0.0305382888764143,
0.14775975048542023,
-0.2748594284057617,
0.3493749797344208,
0.26314595341682434,
-0.3019365072250366,
-0.3211144506931305,
0.3872305154800415,
-0.13458716869354248,
-0.010066010057926178,
-0.6193215847015381,
-0.0026285508647561073,
0.04432019218802452,
-0.1521768867969513,
0.10487852245569229,
-0.536339521408081,
-0.09522514045238495,
-0.08854315429925919,
-0.032134268432855606,
0.02772015891969204,
-0.1648295372724533,
0.13386300206184387,
0.0752423107624054,
0.4413735270500183,
0.2891276180744171,
0.06067618727684021,
0.06196439638733864,
-0.2279340922832489,
-0.5278968811035156,
0.11675378680229187,
-0.07994097471237183,
-0.4166082739830017,
-0.1129242330789566,
0.3505660593509674,
0.24548937380313873,
0.2385324388742447,
0.100320965051651,
-0.15066562592983246,
0.24236544966697693,
0.07097399979829788,
-0.287541925907135,
0.08085845410823822,
0.05618772655725479,
0.05418011173605919,
-0.0941888689994812,
-0.17191706597805023,
0.12519600987434387,
-0.24718451499938965,
0.3233293294906616,
-0.24117568135261536,
0.11204290390014648,
-0.17017678916454315,
0.07295748591423035,
0.06469180434942245,
-0.027288611978292465,
0.18143761157989502,
-0.43561264872550964,
-0.31987428665161133,
-0.03625895828008652,
0.011588912457227707,
-0.1519787758588791,
0.11356351524591446,
0.15610650181770325,
0.5797207951545715,
0.06924934685230255,
-0.07130149006843567,
0.10666260123252869,
0.4916711449623108,
0.020184816792607307,
0.029558658599853516,
0.09484254568815231,
0.03102673962712288,
0.2517525553703308,
-0.19978252053260803,
-0.07885932177305222,
0.3963516056537628,
-0.09071630239486694,
-0.1283353865146637,
-0.055132295936346054,
-0.6203973889350891,
0.11908967792987823,
-0.4396669268608093,
-0.18748216331005096,
-0.03732091560959816,
-0.13978606462478638,
0.10886214673519135,
0.39965394139289856,
-0.30557742714881897,
0.2087809294462204,
0.22386988997459412,
0.1930088847875595,
-0.24400295317173004,
0.3604777157306671,
0.11555570363998413,
-0.14298197627067566,
-0.08355703949928284,
-0.1805305927991867,
-0.04298264533281326,
-0.07564938813447952,
-0.21745985746383667,
-0.3298109769821167
] |
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.08095166832208633,
-0.22145535051822662,
-0.19897308945655823,
0.013309778645634651,
0.05485624447464943,
0.0012884080642834306,
0.4317956268787384,
0.09052835404872894,
0.2972513437271118,
0.14708270132541656,
-0.014002909883856773,
0.11782088875770569,
-0.1801292598247528,
0.27506309747695923,
0.1759229600429535,
-0.23472976684570312,
0.05288594588637352,
-0.05255896970629692,
-0.1111660823225975,
-0.07941924780607224,
-0.05225709080696106,
0.19801340997219086,
-0.19383811950683594,
-0.24779284000396729,
-0.3986717462539673,
-0.10572019219398499,
-0.17398923635482788,
-0.016951916739344597,
-0.18466442823410034,
0.03277386724948883,
-0.26081275939941406,
0.07331781089305878,
-0.11569736897945404,
0.47700586915016174,
-0.00009640317148296162,
-0.06457953155040741,
0.21438445150852203,
-0.14239051938056946,
-0.054559893906116486,
-0.1777077615261078,
0.04153536260128021,
-0.004911542870104313,
-0.25490090250968933,
-0.2813231945037842,
-0.18397927284240723,
-0.1538781374692917,
0.2700452506542206,
-0.0029812755528837442,
0.30534252524375916,
0.12109799683094025,
0.3088105618953705,
-0.14746783673763275,
0.20715393126010895,
-0.05143780633807182,
0.13264334201812744,
0.15440870821475983,
-0.24827486276626587,
-0.09643619507551193,
0.09663917124271393,
-0.22675707936286926,
-0.24215500056743622,
0.6854543089866638,
0.11605691909790039,
0.02501571550965309,
-0.025282276794314384,
0.007096038665622473,
-0.09265007078647614,
-0.29549622535705566,
0.1886395364999771,
0.47004014253616333,
0.5937215089797974,
-0.1630619913339615,
-0.1721826195716858,
0.09196725487709045,
-0.0487036295235157,
0.039769042283296585,
0.040856584906578064,
0.35710519552230835,
-0.1618402898311615,
0.06495915353298187,
-0.17831774055957794,
-0.15133200585842133,
-0.17268775403499603,
0.2914959192276001,
-0.09491041302680969,
0.4078669846057892,
-0.03154561668634415,
-0.05558104068040848,
-0.037376683205366135,
-0.1777149885892868,
-0.21642367541790009,
0.0523085817694664,
0.2419593781232834,
0.06623651832342148,
0.03358634188771248,
-0.12569119036197662,
0.03854909539222717,
-0.1135111153125763,
0.34175100922584534,
-0.2774721682071686,
-0.056575287133455276,
0.1329013854265213,
-0.32311174273490906,
0.30923962593078613,
0.1385563462972641,
-0.21742486953735352,
-0.14503277838230133,
-0.18548211455345154,
0.1951015442609787,
0.0325007326900959,
-0.2619887590408325,
0.15055802464485168,
0.09972085803747177,
-0.021424688398838043,
-0.227395698428154,
-0.16076886653900146,
-0.05164630711078644,
0.09113910794258118,
0.11939707398414612,
-0.0707593783736229,
-0.14215867221355438,
-0.06617993861436844,
-0.3177124857902527,
0.24070152640342712,
0.10100478678941727,
0.08155833929777145,
0.09653064608573914,
0.2475896030664444,
-0.1470990777015686,
-0.17651695013046265,
-0.0881536602973938,
0.2248414158821106,
-0.19037041068077087,
0.12650243937969208,
0.1592802107334137,
0.511336088180542,
0.25375041365623474,
-0.07337714731693268,
0.11290880292654037,
0.0018317009089514613,
0.08566078543663025,
-0.10014023631811142,
0.20698395371437073,
-0.05579115077853203,
0.08096832782030106,
-0.15241318941116333,
-0.07337309420108795,
-0.31028902530670166,
-0.155538871884346,
0.0773521438241005,
-0.08899124711751938,
0.04937739670276642,
-0.41611525416374207,
0.253064900636673,
0.12848499417304993,
-0.08091782033443451,
0.09084723144769669,
0.7699176073074341,
0.05824889615178108,
-0.034235578030347824,
0.1798476278781891,
0.28333455324172974,
-0.3797138035297394,
-0.002515495754778385,
0.17577415704727173,
0.39056479930877686,
-0.09242024272680283,
-0.0642547756433487,
0.13284815847873688,
0.2665214240550995,
-0.058394256979227066,
0.21739085018634796,
-0.05673067271709442,
0.08785752207040787,
0.02464941330254078,
0.23228782415390015,
0.06946086138486862,
-0.13952909409999847,
-0.04350071772933006,
-0.1011100709438324,
-0.08136072009801865,
0.01060555875301361,
0.08365489542484283,
0.298144668340683,
-0.01279380451887846,
0.0965290293097496,
0.008078338578343391,
0.6753435730934143,
-0.10981573909521103,
0.2286003977060318,
-0.2737778425216675,
-0.4278283715248108,
-0.01139815803617239,
0.3287436068058014,
0.14537660777568817,
-0.40550556778907776,
0.3278425931930542,
0.23224426805973053,
0.0949866995215416,
-0.31368914246559143,
0.10858538746833801,
0.022320456802845,
-0.000504625029861927,
0.1467115730047226,
0.10928480327129364,
-0.29647311568260193,
-0.08367589861154556,
-0.130401611328125,
0.1318238526582718,
0.4837469160556793,
-0.2482890486717224,
-0.24802792072296143,
0.004285383503884077,
-0.20535892248153687,
-0.06219298765063286,
-0.27046656608581543,
0.36171022057533264,
0.1716301143169403,
-0.130621075630188,
0.2724720537662506,
0.04305848851799965,
-0.0919281616806984,
-0.25331538915634155,
-0.06226881965994835,
-0.04062943533062935,
0.15818777680397034,
-0.20462846755981445,
-0.017777658998966217,
0.04724924638867378,
0.19870053231716156,
-0.2961708605289459,
0.05333434417843819,
0.1038888469338417,
0.18656480312347412,
0.07922596484422684,
0.3698841333389282,
0.38739171624183655,
0.11207979172468185,
0.2921234667301178,
-0.6291124224662781,
0.11541485786437988,
0.07602854818105698,
-0.006125575862824917,
-0.017606424167752266,
-0.38419976830482483,
0.04726699739694595,
0.19283391535282135,
-0.0016581432428210974,
0.11443351209163666,
0.07339299470186234,
0.2081538438796997,
-0.09567836672067642,
-0.00499332370236516,
-0.3668539524078369,
0.001606083707883954,
0.1734437197446823,
-0.18848596513271332,
-0.18246141076087952,
-0.20302583277225494,
0.08076871931552887,
0.5237088799476624,
0.22584179043769836,
0.5505995154380798,
0.1254284828901291,
-0.14207956194877625,
-0.28885769844055176,
0.0549861304461956,
-0.29412683844566345,
-0.16557732224464417,
0.31162673234939575,
-0.025124501436948776,
-0.17824268341064453,
-0.04823494702577591,
-0.08552767336368561,
0.13381589949131012,
-0.02769295498728752,
0.1904965192079544,
0.09144411236047745,
0.2914775311946869,
-0.11498123407363892,
-0.563030481338501,
-0.07052677869796753,
-0.02238370105624199,
-0.21006333827972412,
0.09556341171264648,
0.05322924628853798,
0.008563573472201824,
-0.28135472536087036,
-0.09144912660121918,
0.10905768722295761,
-0.27413415908813477,
-0.04608871415257454,
0.34481650590896606,
-0.06129568815231323,
-0.10884234309196472,
0.22262898087501526,
0.26466691493988037,
0.26592370867729187,
0.05352279916405678,
-0.03270778805017471,
-0.05693335086107254,
-0.44801196455955505,
-0.0012576794251799583,
0.27444642782211304,
0.30945318937301636,
0.07743735611438751,
0.44925355911254883,
-0.17061857879161835,
-0.003269999986514449,
-0.1970403492450714,
-0.6828349828720093,
0.19318583607673645,
-0.17993319034576416,
0.22229759395122528,
0.04653463140130043,
0.059800442308187485,
-0.2162090539932251,
-0.1784387081861496,
0.12670494616031647,
-0.15505652129650116,
-0.12783260643482208,
-0.05143881216645241,
0.06432610005140305,
0.07919670641422272,
-0.17118220031261444,
-0.26518160104751587,
-0.16081483662128448,
-0.32268476486206055,
0.32410135865211487,
0.23656798899173737,
0.11344930529594421,
-0.05678173899650574,
0.3845588266849518,
0.051801592111587524,
-0.023132340982556343,
0.2783184349536896,
-0.3127382695674896,
-0.058928489685058594,
0.151558980345726,
-0.36460405588150024,
-0.3476811647415161,
-0.2444104105234146,
-0.19888092577457428,
0.2525683641433716,
0.08084288239479065,
-0.42921197414398193,
-0.3522474765777588,
0.031181607395410538,
0.20614665746688843,
0.14198243618011475,
0.08425967395305634,
0.24483683705329895,
0.19040828943252563,
-0.27931079268455505,
-0.15480659902095795,
-0.004161497578024864,
0.025512367486953735,
-0.11572083830833435,
0.07603415101766586,
0.1783277541399002,
0.013951116241514683,
0.2965380549430847,
0.4465201199054718,
-0.21760545670986176,
0.14767804741859436,
0.38422852754592896,
0.0036174352280795574,
0.17146439850330353,
-0.2575021982192993,
-0.10828854143619537,
0.5114598870277405,
-0.015588032081723213,
0.053223542869091034,
0.3055925965309143,
0.1387232095003128,
-0.4937727749347687,
-0.10477433353662491,
0.15938377380371094,
-0.5112808346748352,
-0.13315115869045258,
0.1892554610967636,
0.1403902769088745,
0.16005226969718933,
-0.1513727903366089,
-0.30179300904273987,
-0.1755918562412262,
-0.18795588612556458,
0.18348582088947296,
0.25549566745758057,
-0.06632299721240997,
-0.08578673005104065,
-0.17686478793621063,
0.036985401064157486,
-0.12111353874206543,
0.047108232975006104,
0.30258938670158386,
-0.1103600338101387,
-0.16570475697517395,
-0.12560376524925232,
-0.06918080151081085,
-0.14235246181488037,
0.2711544930934906,
-0.3945426046848297,
-0.18024957180023193,
0.10244503617286682,
-0.06272763013839722,
-0.07763595134019852,
0.27616965770721436,
-0.3302931487560272,
-0.261778324842453,
0.06333506107330322,
0.31135404109954834,
-0.3719661831855774,
0.07628626376390457,
0.4057544767856598,
0.15317320823669434,
0.004568086471408606,
-0.03824703022837639,
-0.08394898474216461,
-0.23030906915664673,
-0.44167599081993103,
0.07560959458351135,
-0.04752426967024803,
0.1286156326532364,
0.2946779727935791,
-0.07334335893392563,
-0.03143864870071411,
-0.04845532402396202,
-0.09013320505619049,
0.2570098340511322,
-0.0899745300412178,
0.2848593294620514,
-0.16903050243854523,
-0.125971719622612,
-0.11030394583940506,
-0.1840963214635849,
0.17070358991622925,
-0.08021952956914902,
-0.05677459016442299,
-0.2014104425907135,
-0.29663655161857605,
0.09549054503440857,
0.07313907891511917,
0.2481430172920227,
0.0807814821600914,
-0.06387706100940704,
-0.016712825745344162,
-0.3351787030696869,
0.16095907986164093,
0.22880077362060547,
0.21698889136314392,
0.005677543114870787,
-0.2819865345954895,
0.3445274829864502,
-0.07302088290452957,
0.03978408873081207,
0.3688853979110718,
-0.13239926099777222,
-0.41686660051345825,
0.32946938276290894,
0.36678022146224976,
0.9066298007965088,
-0.14122894406318665,
0.2516901195049286,
0.052110884338617325,
0.044372569769620895,
0.3796302080154419,
-0.2828923165798187,
0.060482755303382874,
0.04792888090014458,
0.05638554319739342,
-0.05485502630472183,
0.19236817955970764,
-0.01178610511124134,
0.03259321674704552,
-0.2751656174659729,
-0.1745011806488037,
0.3504124879837036,
0.10968861728906631,
0.058124180883169174,
0.3463217616081238,
-0.05013229697942734,
-0.45852622389793396,
-0.2810162901878357,
0.23336729407310486,
0.07365460693836212,
-0.1327337920665741,
-0.018684344366192818,
-0.0988536924123764,
0.03985626623034477,
-0.07208234816789627,
-0.33935049176216125,
-0.07062482833862305,
-0.32288476824760437,
0.21838967502117157,
-0.3081164062023163,
-0.3472001850605011,
0.16684021055698395,
0.2316645383834839,
0.2130434662103653,
0.12620459496974945,
-0.26043227314949036,
0.2059071809053421,
-0.08193841576576233,
-0.14365234971046448,
0.0000343861393048428,
-0.09366403520107269,
0.3640661835670471,
-0.157727912068367,
-0.19656479358673096,
0.03128901124000549,
0.2719181180000305,
-0.19143876433372498,
-0.49625712633132935,
-0.1763629913330078,
0.32317596673965454,
0.24697573482990265,
0.0594012513756752,
0.2734149098396301,
-0.4200820326805115,
-0.27990031242370605,
0.29230454564094543,
-0.1240275576710701,
0.1397341936826706,
0.09062651544809341,
0.2457038164138794,
-0.08709084987640381,
-0.04811118170619011,
0.2409699708223343,
0.2811490595340729,
0.08177367597818375,
0.2042911946773529,
0.3132546842098236,
-0.1231456995010376,
-0.4118821322917938,
-0.2268982082605362,
0.011282852850854397,
-0.30437979102134705,
-0.0997028648853302,
0.07503006607294083,
-0.3576359748840332,
-0.18534539639949799,
0.297791451215744,
0.09450662136077881,
-0.010885627008974552,
-0.028081227093935013,
-0.104707270860672,
-0.050486333668231964,
0.4871654212474823,
-0.12338999658823013,
0.17045754194259644,
0.04983281344175339,
0.13686351478099823,
0.16614466905593872,
0.27789968252182007,
-0.4913753867149353,
0.09990760684013367,
-0.16086582839488983,
0.1617066115140915,
0.11409837752580643,
-0.211806520819664,
0.039121273905038834,
0.1311943233013153,
0.28524941205978394,
-0.002889864379540086,
-0.1713038980960846,
-0.37459802627563477,
-0.16068431735038757,
0.048970140516757965,
0.040619414299726486,
-0.021804332733154297,
0.20073696970939636,
-0.10216917097568512,
-0.07519251108169556,
-0.209364652633667,
0.17014065384864807,
-0.03321075439453125,
-0.23526965081691742,
0.18653030693531036,
-0.16080673038959503,
0.11870452761650085,
0.11410026252269745,
-0.18434949219226837,
-0.02027316763997078,
0.20342235267162323,
0.1748361587524414,
-0.16931737959384918,
0.23502735793590546,
-0.09057508409023285,
0.07169580459594727,
0.23527270555496216,
-0.1609385460615158,
0.15086285769939423,
0.223683163523674,
0.11561700701713562,
0.0467400960624218,
0.08891171216964722,
0.24422773718833923,
-0.2031773030757904,
-0.3575412929058075,
0.009893352165818214,
0.2128429114818573,
0.3950456976890564,
-0.3788527548313141,
-0.1032671332359314,
0.16370606422424316,
-0.39521199464797974,
0.41446852684020996,
0.25804001092910767,
0.18574723601341248,
-0.010285106487572193,
-0.10415016114711761,
0.07064083963632584,
-0.191144660115242,
-0.36049458384513855,
-0.042954374104738235,
0.04365060478448868,
0.03835907578468323,
0.08624210208654404,
-0.1259566843509674,
0.11002381891012192,
0.20905643701553345,
0.27603551745414734,
-0.054809339344501495,
0.33065104484558105,
-0.0164461899548769,
0.0951903760433197,
0.33872494101524353,
0.24134492874145508,
0.49378037452697754,
0.09870952367782593,
0.02643403224647045,
0.3570215702056885,
-0.041858796030282974,
0.26470088958740234,
0.10941647738218307,
-0.03478506579995155,
-0.15749962627887726,
0.1872328668832779,
0.018663067370653152,
-0.11931616067886353,
-0.2749849557876587,
-0.15809182822704315,
-0.13445702195167542,
0.03577075153589249,
-0.012138187885284424,
-0.060896940529346466,
0.1425047218799591,
0.06594724208116531,
-0.11282311379909515,
-0.20132507383823395,
0.061597712337970734,
-0.059431370347738266,
0.45025259256362915,
-0.23464544117450714,
0.2587015628814697,
0.19518965482711792,
-0.004693598952144384,
0.020392045378684998,
0.45295995473861694,
0.11210432648658752,
0.01997753046452999,
-0.11757194250822067,
0.08753129094839096,
-0.114308662712574,
-0.06177172809839249,
-0.19209909439086914,
0.0724605992436409,
0.3947681784629822,
-0.07509515434503555,
0.24755854904651642,
0.23613813519477844,
-0.3471648693084717,
-0.15230657160282135,
0.43453654646873474,
-0.19781015813350677,
-0.04680357873439789,
-0.5462715029716492,
0.007804504130035639,
0.04083532840013504,
-0.28925803303718567,
0.06905001401901245,
-0.6371957659721375,
-0.043085727840662,
-0.000857776787597686,
-0.06715688854455948,
0.047366995364427567,
-0.09514540433883667,
0.14055071771144867,
0.12367329746484756,
0.44215020537376404,
0.30875954031944275,
0.1302761435508728,
0.09615226835012436,
-0.38389506936073303,
-0.44643884897232056,
0.16547207534313202,
-0.10002300888299942,
-0.06656673550605774,
-0.14524850249290466,
0.3211541473865509,
0.28465476632118225,
0.2771969735622406,
-0.008525042794644833,
-0.15271663665771484,
-0.014644128270447254,
0.1127069965004921,
-0.39756014943122864,
0.17676936089992523,
0.09611842781305313,
0.19937285780906677,
-0.029979022219777107,
-0.10199209302663803,
0.10344377160072327,
-0.05619985610246658,
0.2615944445133209,
-0.20363999903202057,
0.10296273976564407,
-0.12650002539157867,
-0.06585242599248886,
0.16977310180664062,
-0.10927748680114746,
0.09203888475894928,
-0.4555147886276245,
-0.3111362159252167,
-0.1391867846250534,
-0.12333950400352478,
-0.14755120873451233,
0.2659362554550171,
0.28732889890670776,
0.41759106516838074,
-0.02612387388944626,
-0.10639534890651703,
0.2146097868680954,
0.4109918177127838,
-0.006988003384321928,
0.0813283622264862,
0.0300209391862154,
-0.07310045510530472,
0.30305472016334534,
-0.1591521054506302,
-0.09850538522005081,
0.4811169505119324,
-0.1448981761932373,
-0.21751852333545685,
-0.037231236696243286,
-0.5459347367286682,
0.08171110600233078,
-0.33081239461898804,
-0.22614187002182007,
-0.0765325054526329,
-0.08249622583389282,
0.04652721807360649,
0.23571835458278656,
-0.42320218682289124,
0.19491791725158691,
0.20789064466953278,
0.3215325176715851,
-0.06278389692306519,
0.3240293860435486,
0.16682802140712738,
-0.17045031487941742,
-0.1509878933429718,
-0.09969238936901093,
0.04327382147312164,
-0.074407659471035,
-0.193966805934906,
-0.38275811076164246
] |
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.30164241790771484,
-0.19038772583007812,
-0.02414940670132637,
0.09902920573949814,
0.31303900480270386,
-0.13014020025730133,
0.3114989101886749,
0.2646484673023224,
-0.10267787426710129,
0.25155606865882874,
-0.03294183313846588,
0.3579743504524231,
-0.04996683448553085,
0.08787187188863754,
-0.1619880050420761,
0.12684932351112366,
-0.050525542348623276,
0.06851917505264282,
0.04089333489537239,
0.11360030621290207,
-0.5712683796882629,
-0.15708458423614502,
-0.21687570214271545,
0.05724947527050972,
0.012679722160100937,
0.06866814941167831,
0.09162896126508713,
0.2422817200422287,
-0.07749297469854355,
-0.469889372587204,
0.19603674113750458,
-0.02633284218609333,
-0.04225727170705795,
0.4722330570220947,
-0.00010453036520630121,
-0.06288350373506546,
0.458493173122406,
0.20261897146701813,
-0.485975980758667,
-0.20958690345287323,
-0.14903613924980164,
0.2063346803188324,
0.25314995646476746,
-0.2543870806694031,
-0.1224493756890297,
-0.22151602804660797,
0.08006038516759872,
-0.5224382281303406,
0.03280987590551376,
0.22985856235027313,
0.2646004259586334,
0.5858451724052429,
0.1764906793832779,
-0.1220322772860527,
0.3920018672943115,
-0.18656182289123535,
-0.09880278259515762,
0.1512858122587204,
0.27914151549339294,
0.034266337752342224,
-0.15521785616874695,
0.2738160490989685,
-0.2516686022281647,
0.258194237947464,
0.08306264877319336,
0.04031525179743767,
0.10718024522066116,
0.12367422878742218,
0.005461878143250942,
0.14772629737854004,
-0.02446865476667881,
-0.24473555386066437,
-0.18716292083263397,
0.013281693682074547,
-0.15603207051753998,
-0.470923513174057,
0.06602936238050461,
0.29909348487854004,
-0.19277416169643402,
0.07073894143104553,
-0.15339815616607666,
0.28531256318092346,
-0.21783560514450073,
0.20865993201732635,
-0.041463758796453476,
0.474942684173584,
0.010646562092006207,
0.05823006480932236,
0.02825232408940792,
0.0535728745162487,
0.3718390464782715,
-0.029090147465467453,
0.025887085124850273,
-0.21663790941238403,
-0.035330530256032944,
0.04477329179644585,
0.30984237790107727,
0.12990927696228027,
0.15455187857151031,
0.16841670870780945,
-0.0050128549337387085,
-0.06470729410648346,
0.10998085141181946,
0.12570539116859436,
-0.015670791268348694,
-0.09322396665811539,
-0.05864311382174492,
0.17888061702251434,
0.11952639371156693,
0.1648675948381424,
-0.13602828979492188,
0.00846339575946331,
-0.06681345403194427,
-0.3070945739746094,
0.09002401679754257,
0.12943685054779053,
0.5126134157180786,
-0.0637781023979187,
-0.3585408329963684,
-0.1637832522392273,
-0.3168661594390869,
0.13155785202980042,
-0.08879798650741577,
0.16468514502048492,
-0.33445534110069275,
0.05251516029238701,
0.2567441165447235,
0.1665860265493393,
-0.39859738945961,
0.1734841763973236,
-0.17293903231620789,
-0.002555566607043147,
-0.20717719197273254,
-0.1981867402791977,
0.02449435368180275,
-0.006105821579694748,
0.03699517995119095,
0.025848763063549995,
-0.016917038708925247,
-0.05536683648824692,
0.17297223210334778,
-0.030449965968728065,
0.09782801568508148,
0.08348799496889114,
0.10380855202674866,
0.023085422813892365,
0.06469587236642838,
0.23655597865581512,
0.00046677724458277225,
0.4194880425930023,
-0.1334886997938156,
-0.24403297901153564,
0.11649144440889359,
0.35601767897605896,
0.004135977942496538,
-0.15658318996429443,
0.18205131590366364,
-0.3767898976802826,
-0.12203622609376907,
-0.08006805926561356,
0.002652361523360014,
-0.2985849380493164,
-0.14785964787006378,
-0.26391246914863586,
0.225422203540802,
0.24253691732883453,
0.26057863235473633,
0.050534069538116455,
-0.028276711702346802,
0.16273391246795654,
0.37973129749298096,
0.1669943928718567,
-0.19390885531902313,
-0.08965309709310532,
-0.13795727491378784,
0.1596086621284485,
-0.04862821847200394,
-0.42395925521850586,
-0.32781562209129333,
-0.16077423095703125,
-0.17314988374710083,
-0.07503726333379745,
0.049631159752607346,
0.03233766555786133,
0.31795117259025574,
0.04793411120772362,
-0.031858429312705994,
0.41295361518859863,
-0.07409156113862991,
0.074852354824543,
-0.4666413366794586,
-0.37981751561164856,
0.5641194581985474,
0.1517052948474884,
0.057029709219932556,
-0.3497410714626312,
0.20544885098934174,
0.060839276760816574,
0.5148956775665283,
-0.18972066044807434,
-0.1518409550189972,
-0.29934045672416687,
0.7524660229682922,
-0.04745011404156685,
0.011038674041628838,
-0.09606975317001343,
0.06652772426605225,
0.020441727712750435,
0.2316286265850067,
-0.28024575114250183,
-0.1499127298593521,
-0.08915430307388306,
-0.1524524837732315,
0.13192525506019592,
-0.34668388962745667,
-0.3821573853492737,
0.24747206270694733,
0.278257817029953,
-0.14560918509960175,
-0.13090389966964722,
-0.011895195581018925,
-0.0933067798614502,
-0.3045148253440857,
0.10049404203891754,
0.03861397132277489,
0.10532939434051514,
-0.039661988615989685,
-0.09412524104118347,
-0.11935554444789886,
0.2987474501132965,
0.16293925046920776,
-0.060054391622543335,
-0.11797139048576355,
0.3312666416168213,
0.24494817852973938,
0.19554679095745087,
-0.046819236129522324,
0.007249075919389725,
0.08201782405376434,
-0.31568941473960876,
-0.20248213410377502,
0.322100967168808,
0.09754110127687454,
-0.0025813209358602762,
0.022751372307538986,
0.18939879536628723,
-0.23540206253528595,
0.10029227286577225,
0.2986404001712799,
0.0012303278781473637,
-0.03909003362059593,
-0.17083975672721863,
0.015926901251077652,
0.3352191746234894,
0.25353896617889404,
0.4091951251029968,
0.4384313225746155,
0.04710354283452034,
-0.11859121918678284,
-0.029131492599844933,
0.17207291722297668,
0.016334837302565575,
0.23276376724243164,
0.17008452117443085,
-0.4000135064125061,
-0.07772498577833176,
-0.08439864218235016,
0.30331242084503174,
0.3952058255672455,
0.27557826042175293,
0.0969720184803009,
0.08872435241937637,
-0.13241182267665863,
-0.28704318404197693,
0.2992977499961853,
0.11520567536354065,
0.02087288163602352,
0.24158358573913574,
0.22974318265914917,
0.10214278846979141,
-0.2554798722267151,
-0.0732261911034584,
-0.13899239897727966,
0.05661715567111969,
-0.14600923657417297,
-0.04782983660697937,
-0.16401280462741852,
0.2011268138885498,
-0.11406882107257843,
-0.5005601644515991,
0.1816415935754776,
-0.20086005330085754,
0.014348833821713924,
0.3810868263244629,
-0.2022750973701477,
0.12009724229574203,
-0.27705690264701843,
0.0942111387848854,
0.08856907486915588,
-0.08849605172872543,
0.14159196615219116,
-0.22951696813106537,
-0.17601631581783295,
0.17949533462524414,
0.04895555227994919,
-0.17695170640945435,
0.39237719774246216,
-0.09352333098649979,
-0.026575345546007156,
-0.17809846997261047,
-0.1293671578168869,
0.02280343882739544,
0.2426384687423706,
0.07531078904867172,
0.11149980127811432,
0.054816123098134995,
0.10843054205179214,
-0.2810983955860138,
0.3347679674625397,
-0.22575710713863373,
-0.05279116705060005,
0.12225949764251709,
0.09743531793355942,
-0.08596239984035492,
-0.15138892829418182,
-0.6303592324256897,
-0.17503660917282104,
-0.3355153799057007,
0.004438643343746662,
-0.10781259834766388,
0.12897461652755737,
0.43547171354293823,
0.03879762440919876,
0.16186745464801788,
-0.1536659300327301,
0.12164369225502014,
-0.08725924044847488,
-0.02111140452325344,
0.21693728864192963,
-0.13490329682826996,
-0.4010961055755615,
-0.19834715127944946,
-0.12133397907018661,
-0.10454463958740234,
0.43392646312713623,
-0.2609216570854187,
-0.2592196762561798,
-0.23132815957069397,
0.08725181967020035,
-0.12945309281349182,
-0.023215409368276596,
0.3986387848854065,
0.24843114614486694,
-0.25696098804473877,
-0.28645768761634827,
0.0643370971083641,
-0.04337199032306671,
-0.0686284676194191,
0.03818689286708832,
-0.08754397928714752,
0.15171629190444946,
0.11278007179498672,
0.2772790193557739,
-0.03919987380504608,
-0.0387176014482975,
0.11293873190879822,
-0.24959686398506165,
0.1978776901960373,
-0.043323125690221786,
-0.25691676139831543,
0.16210514307022095,
-0.22199663519859314,
-0.3214870095252991,
0.04846658930182457,
0.21953076124191284,
0.11488183587789536,
0.014172635972499847,
0.02080300636589527,
-0.354307621717453,
-0.2621156871318817,
-0.2463592141866684,
0.3780522644519806,
0.0837341696023941,
-0.06721989065408707,
0.16260477900505066,
-0.1316145658493042,
-0.12565210461616516,
0.1881818026304245,
0.3759935796260834,
0.10934405028820038,
-0.01193387620151043,
0.24829496443271637,
0.012343771755695343,
-0.08621181547641754,
0.09987810254096985,
0.009018206968903542,
0.12818863987922668,
0.05668748915195465,
-0.19122068583965302,
0.0785224512219429,
-0.020007891580462456,
0.1643277108669281,
0.3458764851093292,
0.38748133182525635,
0.30105894804000854,
-0.14724703133106232,
-0.25514525175094604,
0.018963193520903587,
-0.5182093977928162,
-0.3018002510070801,
0.0700569599866867,
0.16231508553028107,
-0.2750701308250427,
0.05110138654708862,
0.3745272159576416,
0.1937803477048874,
0.06277588754892349,
0.05188171565532684,
0.00863608717918396,
-0.41123872995376587,
-0.07665296643972397,
0.07336358726024628,
-0.013393797911703587,
0.45119786262512207,
-0.03689669072628021,
-0.2186564803123474,
-0.3560884892940521,
-0.33364537358283997,
-0.009867817163467407,
-0.06953590363264084,
0.4101049602031708,
-0.16149036586284637,
0.1817575842142105,
0.006476682145148516,
0.36720365285873413,
0.3949998617172241,
0.215701624751091,
0.14068591594696045,
0.1515154093503952,
-0.007653362583369017,
-0.18303407728672028,
0.030545450747013092,
0.10357758402824402,
-0.3520221412181854,
0.22597962617874146,
-0.31844764947891235,
0.27770107984542847,
-0.2909500300884247,
0.19563773274421692,
0.35022714734077454,
0.1843058317899704,
0.27323442697525024,
0.007618991192430258,
0.10566715896129608,
-0.19335690140724182,
-0.0941648781299591,
0.553152322769165,
-0.1504654437303543,
-0.23310598731040955,
-0.12270265817642212,
0.1427031308412552,
0.7989790439605713,
0.22827160358428955,
0.15752770006656647,
0.8578516244888306,
-0.37942269444465637,
-0.19980879127979279,
0.3360413908958435,
0.17820565402507782,
-0.35716328024864197,
0.03834151476621628,
0.08121661841869354,
-0.22877536714076996,
0.027301287278532982,
-0.2691112756729126,
-0.01855309121310711,
-0.18561673164367676,
-0.020711572840809822,
0.04463215544819832,
0.10847515612840652,
0.05235855653882027,
0.040253665298223495,
0.04245341569185257,
-0.29283803701400757,
0.19293977320194244,
-0.017914874479174614,
0.1270112842321396,
-0.0508783757686615,
-0.08395065367221832,
0.24806281924247742,
-0.10109718143939972,
-0.2043590545654297,
0.34195971488952637,
-0.5799900889396667,
0.17218215763568878,
-0.26922357082366943,
-0.4562349021434784,
-0.10751882940530777,
-0.03678899258375168,
-0.22854933142662048,
0.1678057312965393,
-0.034031614661216736,
0.10888705402612686,
-0.02501922845840454,
0.16751070320606232,
0.2350713163614273,
0.030764594674110413,
0.20655390620231628,
-0.2243107706308365,
0.009795048274099827,
-0.13053123652935028,
0.05167771875858307,
-0.4160591959953308,
-0.06003236025571823,
0.04676802456378937,
0.49493128061294556,
-0.2594938576221466,
-0.2402208000421524,
-0.23322460055351257,
-0.18146349489688873,
-0.3135361969470978,
0.22007456421852112,
-0.013148666359484196,
0.13509920239448547,
0.1709565967321396,
0.08707110583782196,
-0.3995954394340515,
-0.10949188470840454,
-0.012305562384426594,
0.011949026957154274,
0.13838154077529907,
0.40056464076042175,
0.1243492141366005,
-0.32585108280181885,
-0.22264936566352844,
0.12601929903030396,
0.16405335068702698,
-0.027110129594802856,
0.08686941862106323,
-0.04121540114283562,
0.1951790601015091,
-0.11181338876485825,
0.0058587780222296715,
0.2094225436449051,
0.0991215705871582,
-0.1979447454214096,
-0.4055493474006653,
-0.1660560667514801,
0.14177373051643372,
0.20288130640983582,
0.11818273365497589,
-0.026482246816158295,
0.2930472195148468,
-0.02131170779466629,
-0.25048428773880005,
-0.3906230628490448,
0.11079127341508865,
0.233612522482872,
0.11921843141317368,
-0.14548735320568085,
-0.20764537155628204,
0.3068409264087677,
-0.010407968424260616,
0.2542708218097687,
-0.051687538623809814,
-0.13477273285388947,
-0.3061598837375641,
-0.3753737211227417,
0.08592113852500916,
0.07820933312177658,
-0.3529873490333557,
0.1614411622285843,
-0.17001387476921082,
0.0037515333388000727,
-0.18765631318092346,
0.11373943835496902,
0.34022703766822815,
-0.20842382311820984,
-0.07279876619577408,
0.3792564272880554,
0.1400478035211563,
-0.23623153567314148,
0.0073800040408968925,
-0.2387421727180481,
0.28123706579208374,
-0.13526354730129242,
-0.033127475529909134,
0.12455788999795914,
-0.05653100460767746,
-0.1441803127527237,
-0.23889681696891785,
0.213451087474823,
0.16059398651123047,
0.27623221278190613,
-0.12278313934803009,
-0.11529156565666199,
-0.15177328884601593,
0.5579531788825989,
0.19814634323120117,
-0.10189526528120041,
-0.025468679144978523,
0.06578277796506882,
0.3775639235973358,
-0.216044619679451,
-0.024656670168042183,
-0.145667165517807,
-0.17453908920288086,
0.160978764295578,
-0.06971074640750885,
-0.4467020034790039,
0.07242026180028915,
-0.13363277912139893,
0.08439423143863678,
-0.0011722410563379526,
-0.16617032885551453,
-0.012229349464178085,
0.1776827573776245,
-0.14401918649673462,
-0.049987126141786575,
0.09358664602041245,
-0.07452810555696487,
0.1813114434480667,
0.23310586810112,
-0.01338457502424717,
0.6520748138427734,
0.5496267080307007,
-0.24432873725891113,
0.05717158317565918,
-0.05493183806538582,
0.006985870655626059,
-0.12364096194505692,
-0.036257728934288025,
0.032686516642570496,
0.04094132408499718,
0.22881582379341125,
-0.2829381823539734,
0.10475138574838638,
-0.051148444414138794,
-0.04353935644030571,
-0.0990094318985939,
-0.2635808289051056,
0.049600131809711456,
-0.004704449325799942,
-0.07286527007818222,
-0.029368067160248756,
-0.1020352691411972,
0.022454243153333664,
0.030337216332554817,
0.047634027898311615,
-0.10487422347068787,
-0.3494412302970886,
0.02130410261452198,
0.20791439712047577,
0.15735125541687012,
-0.33723264932632446,
0.08764997124671936,
0.21877381205558777,
0.14319376647472382,
-0.17037241160869598,
0.4733752906322479,
0.33044812083244324,
0.4719167649745941,
-0.22933413088321686,
-0.13048155605793,
-0.1675470918416977,
-0.006368336733430624,
-0.039440739899873734,
-0.06476419419050217,
0.013416034169495106,
0.12693797051906586,
0.22980442643165588,
0.36907458305358887,
-0.3680003583431244,
0.21183227002620697,
-0.024277856573462486,
-0.27143675088882446,
-0.1849631816148758,
0.27952539920806885,
0.1443210393190384,
-0.2951880395412445,
0.012600108981132507,
-0.027996283024549484,
-0.24220310151576996,
-0.06685605645179749,
0.2900864779949188,
0.26451733708381653,
0.08760908246040344,
-0.039708223193883896,
0.14040908217430115,
0.14405639469623566,
0.12328076362609863,
0.10196177661418915,
-0.007067784667015076,
-0.4234200716018677,
0.03285765275359154,
-0.47118985652923584,
0.4904589354991913,
-0.14418014883995056,
-0.44658443331718445,
0.07254250347614288,
-0.05491743981838226,
-0.25035974383354187,
0.23455603420734406,
0.33345863223075867,
0.357113242149353,
0.15245263278484344,
-0.002529629971832037,
-0.2554324269294739,
0.13229863345623016,
0.20288416743278503,
-0.103272944688797,
-0.12601785361766815,
-0.3461902439594269,
0.2244313508272171,
-0.23956704139709473,
0.25825583934783936,
0.09346851706504822,
0.041026901453733444,
0.2902902662754059,
0.013818065635859966,
0.017829997465014458,
-0.017089389264583588,
0.39506539702415466,
-0.32053887844085693,
0.04093138501048088,
-0.1458008736371994,
-0.22756819427013397,
0.025215422734618187,
0.0532071478664875,
0.017263440415263176,
0.08587982505559921,
0.17346937954425812,
-0.5986050367355347,
-0.4342438578605652,
0.47385624051094055,
-0.3005673885345459,
-0.14237599074840546,
0.10854509472846985,
0.33103761076927185,
0.0011344343656674027,
0.15558001399040222,
-0.03743160888552666,
0.17494207620620728,
-0.12648311257362366,
0.058932263404130936,
-0.24580466747283936,
-0.725400447845459,
0.2943550646305084,
-0.7327597737312317,
-0.29691946506500244,
-0.23041315376758575,
0.4603818953037262,
0.021248886361718178,
0.23804470896720886,
-0.28679633140563965,
0.10301186889410019,
0.21289891004562378,
0.04784538224339485,
-0.1016833707690239,
0.12594223022460938,
0.0170273594558239,
-0.023834582418203354,
0.11397897452116013,
0.6136491298675537,
0.10387211292982101,
-0.09762775897979736,
-0.031242746859788895,
-0.2827853262424469
] |
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.08303580433130264,
-0.25024375319480896,
-0.03862577676773071,
0.30153968930244446,
0.20768900215625763,
0.07883669435977936,
0.5001558661460876,
0.14941611886024475,
0.12552982568740845,
0.14210660755634308,
0.3285621702671051,
0.050840429961681366,
-0.2967575192451477,
0.34206143021583557,
-0.2623359262943268,
-0.2604982554912567,
0.034535858780145645,
0.22248704731464386,
0.015491299331188202,
-0.02244713343679905,
-0.3130667805671692,
0.17093653976917267,
-0.3648773729801178,
-0.22216176986694336,
-0.15507805347442627,
-0.21080812811851501,
-0.21602404117584229,
-0.2960243821144104,
0.05425163730978966,
-0.5987138152122498,
0.2819482684135437,
-0.0695158988237381,
0.09210938215255737,
0.23832252621650696,
-0.0001144155248766765,
0.10549236834049225,
0.6381926536560059,
-0.14531591534614563,
-0.2628040015697479,
-0.3394750952720642,
-0.561830997467041,
-0.42277994751930237,
0.12416490912437439,
-0.35784804821014404,
-0.09651291370391846,
-0.0749712660908699,
0.09471779316663742,
-0.3724973201751709,
0.20421312749385834,
0.2839667499065399,
0.21305939555168152,
0.3830008804798126,
-0.08455097675323486,
-0.07440262287855148,
0.20682114362716675,
0.4162611663341522,
-0.2607544958591461,
-0.1798529326915741,
0.03575881943106651,
0.26994961500167847,
0.09462880343198776,
0.34923994541168213,
-0.1114053800702095,
-0.13050700724124908,
0.20943360030651093,
0.08493509888648987,
0.08856205642223358,
-0.452194482088089,
-0.26712438464164734,
0.2014956921339035,
0.29240837693214417,
0.0013617175864055753,
-0.40846341848373413,
-0.21808774769306183,
0.018871497362852097,
-0.6638947129249573,
0.2666679918766022,
0.05510156601667404,
-0.03862801939249039,
-0.02696351520717144,
-0.1683928519487381,
0.14500126242637634,
-0.21389605104923248,
0.16601711511611938,
-0.12097404152154922,
0.08079250156879425,
-0.13945399224758148,
0.034141406416893005,
-0.2402794063091278,
-0.27001872658729553,
0.05874892324209213,
-0.37062492966651917,
-0.025751879438757896,
0.21114613115787506,
-0.25151327252388,
-0.1936301738023758,
0.16734932363033295,
0.010185379534959793,
0.16972026228904724,
0.13799330592155457,
-0.06587139517068863,
-0.10379765182733536,
-0.06935768574476242,
-0.016959190368652344,
0.252910315990448,
0.21360212564468384,
0.4112969934940338,
-0.068069227039814,
-0.0581742487847805,
0.19612473249435425,
0.0996614322066307,
-0.01759784109890461,
0.11928369849920273,
0.051739808171987534,
0.016925891861319542,
0.40728428959846497,
0.646719217300415,
-0.05256285145878792,
-0.39348164200782776,
0.2361948937177658,
-0.38535961508750916,
-0.030498744919896126,
-0.02119537815451622,
0.006191272288560867,
0.08412028104066849,
0.29164737462997437,
-0.14658001065254211,
0.21616826951503754,
-0.27360355854034424,
-0.25088265538215637,
-0.23484662175178528,
0.07219572365283966,
0.10184092819690704,
0.08859886229038239,
-0.054740238934755325,
-0.03330007940530777,
0.06581804901361465,
0.15601074695587158,
0.07967964559793472,
0.10098480433225632,
-0.05552294850349426,
-0.3658088445663452,
0.09250559657812119,
0.15237239003181458,
-0.007046108599752188,
0.2921586036682129,
0.376236230134964,
-0.25812867283821106,
-0.10916200280189514,
0.1182434931397438,
-0.27881211042404175,
-0.21751414239406586,
-0.0058284965343773365,
0.17252953350543976,
-0.37956759333610535,
0.04412703588604927,
-0.07340430468320847,
0.22634604573249817,
0.21085776388645172,
-0.07758940011262894,
-0.09654416888952255,
-0.08692806214094162,
-0.21961715817451477,
-0.1535143107175827,
-0.0919651985168457,
0.6465164422988892,
-0.10913305729627609,
-0.012588126584887505,
0.1191500648856163,
-0.08989660441875458,
0.3521236181259155,
0.2327212542295456,
0.0481477715075016,
-0.0572480708360672,
-0.34041091799736023,
0.19003014266490936,
0.0831357091665268,
-0.11154911667108536,
-0.20860671997070312,
0.5657572150230408,
0.02399088256061077,
0.359869122505188,
0.11346440017223358,
0.09594596177339554,
0.15857048332691193,
-0.3072291910648346,
0.0130878034979105,
0.19759872555732727,
-0.18746434152126312,
-0.2206794023513794,
-0.24189876019954681,
-0.12316335737705231,
0.5206928849220276,
-0.07434653490781784,
-0.0640912801027298,
0.2067834585905075,
-0.3010615110397339,
-0.02311069890856743,
-0.1406463384628296,
-0.31868842244148254,
0.12881360948085785,
0.5053262114524841,
0.21923908591270447,
0.037596385926008224,
-0.09674927592277527,
-0.4028454124927521,
-0.3626863658428192,
0.13121116161346436,
-0.17960546910762787,
0.2839999794960022,
-0.49326851963996887,
-0.1799386739730835,
0.07351957261562347,
0.01904083602130413,
-0.39474689960479736,
0.0015027804765850306,
0.1547810286283493,
0.1214921772480011,
-0.1535107046365738,
0.1999228447675705,
-0.07734188437461853,
0.27720004320144653,
0.15611103177070618,
-0.12485502660274506,
-0.5673229098320007,
0.36998796463012695,
0.06949988007545471,
-0.2262258231639862,
0.007167065050452948,
0.3033715784549713,
0.3317842483520508,
-0.0899987742304802,
0.01831825263798237,
0.15058641135692596,
0.025970418006181717,
-0.3309907913208008,
-0.306780070066452,
-0.1571388989686966,
0.3190597593784332,
-0.41859328746795654,
-0.22143325209617615,
0.3747456967830658,
0.18254350125789642,
-0.1073412224650383,
-0.12098848074674606,
0.6575431823730469,
0.015737384557724,
0.4647912383079529,
0.004207059275358915,
0.1760134994983673,
0.05372776463627815,
-0.0018617900786921382,
-0.32714274525642395,
-0.28690916299819946,
0.17555825412273407,
0.20264101028442383,
-0.16507868468761444,
-0.039911650121212006,
-0.3015941083431244,
0.005867615342140198,
0.4108927547931671,
0.08843722939491272,
0.03546372428536415,
0.05708049237728119,
-0.07705794274806976,
-0.03683790564537048,
0.10924060642719269,
-0.15959326922893524,
0.29988378286361694,
0.05055846646428108,
-0.07322007417678833,
0.07357878237962723,
0.007545001804828644,
0.07453866302967072,
0.17586857080459595,
-0.03503741696476936,
0.24308331310749054,
0.028567921370267868,
0.10764817148447037,
0.11769809573888779,
-0.17797242105007172,
-0.5438489317893982,
-0.03985859826207161,
0.14308880269527435,
-0.2491210699081421,
0.2492821365594864,
-0.47958481311798096,
-0.20561598241329193,
0.130416139960289,
-0.21736609935760498,
-0.3862951993942261,
-0.44402214884757996,
-0.16394205391407013,
0.027558468282222748,
-0.14083993434906006,
0.2236989587545395,
0.014815045520663261,
-0.26245763897895813,
0.29857540130615234,
-0.024348465725779533,
-0.08313757181167603,
-0.13922913372516632,
-0.02423316054046154,
0.046319786459207535,
0.16566424071788788,
-0.04810205101966858,
0.24677765369415283,
0.03329584747552872,
-0.34998437762260437,
-0.21268720924854279,
-0.2085355669260025,
0.05654987320303917,
-0.35036301612854004,
0.07770779728889465,
0.30794933438301086,
0.1277279257774353,
-0.04940720647573471,
-0.1998884528875351,
0.422728955745697,
0.4243721663951874,
-0.21209940314292908,
0.32176870107650757,
-0.10206306725740433,
-0.03547361120581627,
-0.2110651284456253,
-0.09590321034193039,
-0.15722128748893738,
-0.22789323329925537,
0.10760438442230225,
0.21096883714199066,
0.21016179025173187,
0.44710180163383484,
0.04701913893222809,
0.12087913602590561,
0.1355801820755005,
-0.17562812566757202,
0.0008857593056745827,
-0.015036793425679207,
0.48247432708740234,
-0.1827879697084427,
-0.27124860882759094,
0.14879974722862244,
-0.2987251877784729,
0.08756178617477417,
0.2041163593530655,
-0.35755282640457153,
-0.17630413174629211,
-0.14137886464595795,
0.1611311137676239,
0.07453632354736328,
-0.10465774685144424,
0.3775743544101715,
0.28160589933395386,
-0.10834537446498871,
-0.03676934540271759,
-0.050810687243938446,
0.2569001317024231,
-0.07055167108774185,
0.02874838560819626,
0.22968751192092896,
0.5177571773529053,
0.03981032222509384,
0.09723454713821411,
0.43764352798461914,
0.19706419110298157,
0.42616674304008484,
-0.08233221620321274,
0.06893585622310638,
-0.1690146028995514,
0.0005420269444584846,
-0.1711454689502716,
0.10794007033109665,
-0.017855197191238403,
0.08362770080566406,
-0.2327575981616974,
-0.11919140815734863,
-0.07930715382099152,
-0.06307206302881241,
0.10385212302207947,
-0.23570886254310608,
0.12937034666538239,
-0.46767839789390564,
0.4429665803909302,
-0.08640898764133453,
0.018289947882294655,
-0.3036092221736908,
-0.004700387828052044,
-0.16847312450408936,
-0.008302812464535236,
0.32275551557540894,
-0.14786648750305176,
-0.6496185660362244,
-0.17223094403743744,
-0.20260389149188995,
0.12155450135469437,
0.3011385202407837,
0.5467788577079773,
-0.03376225009560585,
-0.062415461987257004,
-0.1075645163655281,
-0.019171642139554024,
0.40203285217285156,
-0.16438835859298706,
-0.1837625950574875,
0.2454216033220291,
-0.26380130648612976,
-0.23879382014274597,
-0.05677419900894165,
-0.3692707121372223,
0.3344591557979584,
-0.22521856427192688,
0.3618212342262268,
-0.340536892414093,
-0.22256292402744293,
0.26604682207107544,
0.0742507204413414,
-0.09136833995580673,
-0.11321878433227539,
-0.0910785049200058,
-0.22356221079826355,
-0.1456020325422287,
0.01295078918337822,
0.20876680314540863,
0.2621577978134155,
-0.13408666849136353,
-0.0023918834049254656,
-0.5279818773269653,
0.030750533565878868,
0.3058224022388458,
-0.2428046613931656,
0.3555576205253601,
-0.08594297617673874,
0.10515987873077393,
-0.13631314039230347,
0.1940729320049286,
0.2076587677001953,
0.3552797734737396,
0.3771530091762543,
-0.6484146118164062,
0.011156882159411907,
-0.2274467796087265,
0.1626981645822525,
0.2772213816642761,
-0.09346691519021988,
0.09365221858024597,
0.0833648219704628,
0.1915261149406433,
-0.21020565927028656,
-0.3317117691040039,
0.41896072030067444,
-0.08054224401712418,
-0.6726539134979248,
-0.28722047805786133,
0.2649126648902893,
0.0967712476849556,
0.2421819269657135,
-0.13366228342056274,
0.22322846949100494,
-0.21130354702472687,
0.36537471413612366,
-0.006300665903836489,
0.6850797533988953,
0.4925396144390106,
0.041899483650922775,
0.5505330562591553,
0.44714173674583435,
0.6043534278869629,
0.4047948718070984,
0.2582216262817383,
-0.16250693798065186,
-0.672164797782898,
-0.14850561320781708,
-0.05859137326478958,
0.4232247769832611,
0.11910264194011688,
-0.45315176248550415,
0.4891037046909332,
-0.1281995177268982,
-0.06382495909929276,
-0.09815876930952072,
-0.2965751588344574,
-0.13172371685504913,
-0.043969299644231796,
-0.25159549713134766,
0.12456993013620377,
0.0693778321146965,
0.16201919317245483,
0.0573863722383976,
-0.32468143105506897,
0.05229664221405983,
-0.16675254702568054,
-0.19479654729366302,
0.16965405642986298,
-0.14336684346199036,
0.09411729127168655,
0.03642432019114494,
-0.3463883101940155,
0.2818097472190857,
0.22324083745479584,
0.18790240585803986,
-0.1312098503112793,
-0.1560927778482437,
-0.196908637881279,
0.040029678493738174,
0.10341379046440125,
-0.08015938103199005,
-0.07771511375904083,
0.3071269989013672,
-0.02689482271671295,
-0.148531973361969,
0.1475490927696228,
-0.2142956256866455,
0.10542130470275879,
0.34291085600852966,
0.059051088988780975,
-0.1748192012310028,
-0.1611659675836563,
-0.4532507359981537,
0.03023999184370041,
0.17108376324176788,
-0.05008532106876373,
0.11646503955125809,
0.006903317756950855,
-0.2920272946357727,
-0.04956404119729996,
-0.19789265096187592,
-0.00867738202214241,
-0.017159434035420418,
0.30728641152381897,
0.5229864120483398,
0.0768125057220459,
0.6932668685913086,
0.19186262786388397,
-0.24269309639930725,
-0.16606692969799042,
0.1627270132303238,
0.18308892846107483,
-0.5128660202026367,
0.3100552260875702,
-0.11370731890201569,
0.14592069387435913,
-0.241980642080307,
0.45708295702934265,
-0.28194180130958557,
0.20908406376838684,
-0.039303846657276154,
-0.11750317364931107,
-0.15718431770801544,
0.23256954550743103,
-0.1332802027463913,
0.1057097539305687,
-0.22264321148395538,
0.11522910743951797,
-0.07904735952615738,
-0.2166755646467209,
-0.29462456703186035,
-0.09730398654937744,
-0.4076438844203949,
0.3669983744621277,
0.1148909404873848,
0.08583320677280426,
0.2190832793712616,
0.16080069541931152,
0.16813363134860992,
0.08565931022167206,
-0.13675901293754578,
-0.1968510001897812,
-0.07516653835773468,
0.12684914469718933,
0.10730189085006714,
-0.18645109236240387,
0.14100998640060425,
0.02690269611775875,
-0.06284845620393753,
-0.13896799087524414,
0.013990724459290504,
0.1784926801919937,
-0.08429761976003647,
0.43051859736442566,
0.3046936094760895,
0.39340347051620483,
-0.11811043322086334,
0.1606225073337555,
-0.032025087624788284,
0.22899813950061798,
-0.07312674075365067,
0.08981173485517502,
-0.07150951772928238,
0.07873819023370743,
-0.4437326192855835,
0.13564996421337128,
-0.12916605174541473,
0.1195797547698021,
0.2263304889202118,
-0.3602283000946045,
0.03551085665822029,
0.32367345690727234,
-0.031114565208554268,
0.07553727179765701,
-0.1983238309621811,
-0.014954871498048306,
0.09086543321609497,
0.16748403012752533,
-0.16102425754070282,
0.004406819120049477,
0.1928001046180725,
0.09837643057107925,
0.055364612489938736,
0.24973256886005402,
0.023815631866455078,
0.21977800130844116,
0.15237636864185333,
0.04106634482741356,
0.057635221630334854,
-0.13040423393249512,
0.4767725467681885,
0.2502481937408447,
0.10600648820400238,
-0.005962117109447718,
-0.04516357183456421,
-0.13611583411693573,
0.2374781221151352,
0.4095087945461273,
-0.022514358162879944,
0.11335498839616776,
0.43547385931015015,
-0.018356656655669212,
-0.02994842454791069,
-0.26676931977272034,
-0.18322986364364624,
0.08748148381710052,
0.3381921052932739,
0.20285315811634064,
0.1870112270116806,
-0.3521420955657959,
-0.3258126378059387,
-0.2701643109321594,
-0.06958283483982086,
0.3099350929260254,
-0.058330237865448,
-0.0029459598008543253,
0.035666946321725845,
0.011439690366387367,
-0.3740215599536896,
-0.24159881472587585,
-0.09649209678173065,
-0.10929232090711594,
0.27012261748313904,
0.21865546703338623,
0.17627820372581482,
-0.37719255685806274,
0.27475935220718384,
0.2808694541454315,
0.2680346965789795,
-0.11448128521442413,
0.2841912806034088,
0.39184629917144775,
0.09419342130422592,
0.19323715567588806,
0.5161975026130676,
0.3695509731769562,
0.2945849299430847,
-0.020103687420487404,
0.11294931918382645,
-0.039078060537576675,
-0.34501221776008606,
0.087799571454525,
-0.059846118092536926,
-0.24856586754322052,
0.2879623770713806,
0.15582628548145294,
0.12282426655292511,
-0.12541356682777405,
0.3168390095233917,
0.054472360759973526,
-0.11032723635435104,
-0.2857099175453186,
0.7373992800712585,
-0.27034398913383484,
0.027681175619363785,
-0.0651041567325592,
-0.25212058424949646,
-0.4581925868988037,
-0.06524031609296799,
0.38140103220939636,
0.16980722546577454,
0.1495150625705719,
0.21773141622543335,
0.06977051496505737,
-0.408243328332901,
0.330964058637619,
0.3403654396533966,
0.07690587639808655,
-0.2651320695877075,
0.061708852648735046,
-0.2750619649887085,
0.11164449900388718,
-0.10152800381183624,
-0.0691223070025444,
0.24956315755844116,
0.127813458442688,
-0.19325588643550873,
0.1148606464266777,
-0.2204778492450714,
-0.1393819898366928,
-0.10432380437850952,
0.25245508551597595,
-0.3717968165874481,
-0.19465146958827972,
0.2883969843387604,
-0.08923802524805069,
-0.12511514127254486,
-0.2652554512023926,
0.03533221781253815,
0.0039451709017157555,
0.0739232748746872,
0.055082570761442184,
-0.044890549033880234,
-0.32275301218032837,
-0.027872314676642418,
0.05725035443902016,
0.6041784882545471,
0.10741255432367325,
-0.05931176245212555,
-0.3922540545463562,
-0.22250939905643463,
-0.2722545564174652,
-0.11333189159631729,
0.5871047973632812,
0.2825136184692383,
0.6090589165687561,
-0.1371043175458908,
0.253185510635376,
-0.05520666018128395,
0.37765952944755554,
-0.06099049001932144,
0.0438409149646759,
-0.4244898855686188,
0.5184664726257324,
-0.3719521462917328,
0.1762695610523224,
0.006877191364765167,
0.18111631274223328,
0.13905148208141327,
0.1774706393480301,
-0.05049670487642288,
-0.29201558232307434,
0.3989833891391754,
-0.3084864616394043,
-0.3456193208694458,
0.2019375115633011,
-0.08137498795986176,
0.1927640438079834,
-0.04738711938261986,
-0.30785080790519714,
-0.13437986373901367,
0.4044968783855438,
-0.16003839671611786,
-0.2725834548473358,
0.004612788558006287,
0.1497470885515213,
-0.06765444576740265,
-0.12056200951337814,
0.16076895594596863,
-0.07075201719999313,
-0.2598536014556885,
0.3602842092514038,
-0.31029850244522095
] |
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.2534324526786804,
-0.14359158277511597,
-0.11700852960348129,
0.1250983625650406,
-0.0803619846701622,
-0.20694345235824585,
0.318226158618927,
0.2595031261444092,
-0.26621130108833313,
0.24329280853271484,
0.4498225152492523,
-0.07759923487901688,
-0.009268274530768394,
0.3775966763496399,
-0.397217333316803,
-0.08901652693748474,
0.07872095704078674,
0.10890205204486847,
-0.05268311873078346,
0.04491844400763512,
-0.27206820249557495,
0.068658247590065,
-0.3964480757713318,
0.16087953746318817,
0.06639920175075531,
-0.07160437852144241,
-0.12159326672554016,
-0.2543473541736603,
-0.6671602129936218,
-0.5313287973403931,
0.31335535645484924,
0.20344989001750946,
0.07602700591087341,
0.2712758183479309,
-0.00011104677832918242,
-0.4238654375076294,
0.5205672979354858,
0.14866960048675537,
-0.261465847492218,
-0.15130391716957092,
-0.4164433181285858,
-0.535380482673645,
-0.10085950046777725,
-0.013767390511929989,
-0.3072527050971985,
-0.10771439224481583,
0.011748023331165314,
-0.19431982934474945,
-0.06281600892543793,
-0.0156019926071167,
0.24801167845726013,
0.16733942925930023,
0.40197986364364624,
-0.35428595542907715,
0.18630555272102356,
-0.11592523753643036,
-0.3703642189502716,
-0.2499651163816452,
0.5717850923538208,
0.2568047344684601,
0.2268885374069214,
0.38498276472091675,
0.191262885928154,
-0.1922256052494049,
0.1507626175880432,
-0.009772290475666523,
0.239677295088768,
-0.2660330533981323,
0.041539937257766724,
0.07777859270572662,
0.9955615997314453,
0.020363453775644302,
-0.37934571504592896,
0.20347481966018677,
-0.09273283183574677,
-0.2712346017360687,
0.24124747514724731,
0.027283109724521637,
-0.029244406148791313,
0.1492426097393036,
0.08733577281236649,
-0.4584193825721741,
-0.15168295800685883,
0.16021496057510376,
-0.027203869074583054,
0.45910486578941345,
-0.088717021048069,
0.10676532983779907,
-0.021526096388697624,
-0.30153730511665344,
0.23469731211662292,
0.02009713649749756,
0.08503042906522751,
0.15644524991512299,
0.051452260464429855,
-0.4402131736278534,
0.1060779020190239,
-0.017246833071112633,
0.1498129963874817,
0.1924147754907608,
-0.26061874628067017,
-0.2491660714149475,
-0.04644383490085602,
0.013337799347937107,
0.6594319939613342,
0.07456297427415848,
0.34056586027145386,
0.18800964951515198,
0.43294426798820496,
0.2551422417163849,
0.06445992738008499,
0.09974309056997299,
0.06184232980012894,
-0.08086690306663513,
-0.14551357924938202,
0.20524375140666962,
0.4584415853023529,
-0.5718426704406738,
0.36613646149635315,
0.14549915492534637,
0.011531014926731586,
-0.07399749010801315,
-0.3209311366081238,
-0.150846466422081,
-0.037387266755104065,
0.3257042169570923,
0.08936058729887009,
-0.1983119398355484,
0.13486140966415405,
-0.18055790662765503,
-0.1951920986175537,
-0.10883402824401855,
-0.20098118484020233,
-0.018362626433372498,
-0.031561478972435,
-0.31167536973953247,
-0.27753502130508423,
0.11344970017671585,
-0.12540625035762787,
-0.043413594365119934,
0.05646001920104027,
0.1302081048488617,
-0.22466705739498138,
0.41184911131858826,
-0.24663181602954865,
0.08284439891576767,
-0.3096269369125366,
0.24027885496616364,
-0.08194568008184433,
0.35007449984550476,
-0.04245683178305626,
-0.17805355787277222,
-0.3391317129135132,
0.2919040322303772,
-0.1666523814201355,
-0.07769593596458435,
0.2701282799243927,
0.19532260298728943,
-0.20301884412765503,
-0.23829862475395203,
-0.04943016171455383,
0.1722414791584015,
-0.23949085175991058,
-0.25693199038505554,
-0.06953752785921097,
0.0432327501475811,
-0.11934120208024979,
0.1540280282497406,
-0.26329654455184937,
-0.20006100833415985,
0.119728222489357,
0.0051399534568190575,
-0.18423068523406982,
-0.3186807334423065,
0.12625892460346222,
-0.24555376172065735,
0.3016968071460724,
-0.3433004915714264,
-0.639559805393219,
0.381533682346344,
-0.28414279222488403,
-0.38943740725517273,
0.4114669859409332,
0.17413368821144104,
0.2954377830028534,
-0.321295827627182,
-0.14097508788108826,
-0.08161820471286774,
-0.16163238883018494,
-0.3559684157371521,
-0.44189971685409546,
-0.4019605815410614,
0.04290057718753815,
0.01811167038977146,
0.2204885184764862,
0.15033721923828125,
0.09527554363012314,
0.4235888421535492,
0.07498238980770111,
0.27978307008743286,
0.2078801542520523,
0.07656659930944443,
0.4828043580055237,
-0.12860670685768127,
0.052990179508924484,
-0.10065526515245438,
-0.27669987082481384,
0.09389375150203705,
-0.1435733139514923,
0.15911772847175598,
0.4384331703186035,
-0.31896263360977173,
-0.20858709514141083,
-0.05610509589314461,
0.3260708153247833,
-0.07095251977443695,
0.08178173750638962,
0.09157358109951019,
-0.24781981110572815,
0.16734956204891205,
-0.4060973525047302,
0.1368636190891266,
-0.009866367094218731,
-0.07066377997398376,
-0.08844168484210968,
0.04524761438369751,
-0.29087328910827637,
0.09942574054002762,
0.17884376645088196,
0.08382951468229294,
0.1694522649049759,
-0.23905730247497559,
0.17456334829330444,
-0.08151289820671082,
-0.0724000409245491,
0.30898603796958923,
0.35615625977516174,
0.18628846108913422,
0.23509730398654938,
0.20403124392032623,
0.07461101561784744,
0.17105624079704285,
-0.058611251413822174,
0.23035524785518646,
-0.22531433403491974,
0.3460870683193207,
0.3549920916557312,
-0.2632010579109192,
-0.05647483095526695,
0.14472506940364838,
0.13079632818698883,
-0.2599104046821594,
-0.09816514700651169,
-0.2556484341621399,
0.08176632970571518,
-0.2211175113916397,
-0.2914201021194458,
0.22528254985809326,
-0.27639374136924744,
0.29653066396713257,
0.5968990921974182,
0.01841971091926098,
-0.04782949760556221,
0.08096801489591599,
0.25736990571022034,
-0.08099040389060974,
0.1679658740758896,
-0.04620646312832832,
0.08849246799945831,
0.2539897561073303,
-0.021018940955400467,
0.004968255292624235,
0.12219280749559402,
0.04252871125936508,
0.10276004672050476,
0.04553205519914627,
-0.4042105972766876,
-0.029937682673335075,
0.05306749418377876,
0.06338675320148468,
0.11527882516384125,
0.17673994600772858,
0.1918165534734726,
0.22660046815872192,
0.06508129835128784,
-0.3978857100009918,
-0.28350386023521423,
-0.06756739318370819,
0.029122792184352875,
-0.01949043944478035,
0.061962589621543884,
0.053446538746356964,
0.13821528851985931,
0.14687268435955048,
0.03162699565291405,
0.18262840807437897,
-0.1548490673303604,
0.7969354391098022,
-0.3889084458351135,
0.4114338159561157,
-0.15663953125476837,
-0.11990439146757126,
-0.3110973834991455,
0.234505295753479,
-0.012480607256293297,
-0.277604341506958,
0.25671663880348206,
0.05373330041766167,
0.2090209275484085,
-0.6258600354194641,
-0.45774045586586,
0.05285106599330902,
-0.1441255360841751,
0.04529797285795212,
0.0343036986887455,
-0.205445796251297,
-0.10702279955148697,
0.2207036316394806,
0.03849034756422043,
-0.058767225593328476,
-0.20872244238853455,
-0.1666586697101593,
-0.006819987669587135,
0.07215043902397156,
-0.2570258677005768,
-0.6848429441452026,
-0.13186322152614594,
-0.3363645672798157,
-0.018551677465438843,
-0.10787682235240936,
0.15694086253643036,
-0.12324561923742294,
-0.05142522603273392,
-0.10490921139717102,
0.02172015979886055,
-0.334282785654068,
-0.09487523138523102,
-0.04873051866889,
0.09450488537549973,
-0.008282910101115704,
-0.45697301626205444,
0.1993885338306427,
0.1774873286485672,
-0.20251145958900452,
0.15311214327812195,
-0.5314671397209167,
-0.2725239098072052,
0.2065199762582779,
-0.04386252164840698,
0.1573561578989029,
-0.177633136510849,
0.5536832213401794,
-0.108638234436512,
-0.25384169816970825,
-0.134550079703331,
-0.28660425543785095,
0.07206118851900101,
0.1712457686662674,
0.32463446259498596,
0.4091809093952179,
0.2624562978744507,
0.02427409403026104,
0.3892095386981964,
0.19030974805355072,
0.026737334206700325,
0.2341606765985489,
0.17951345443725586,
0.19240552186965942,
-0.09376663714647293,
-0.20985402166843414,
0.06765498965978622,
0.12601375579833984,
0.1618109941482544,
0.15517830848693848,
0.21250541508197784,
-0.0854245200753212,
-0.3764597177505493,
-0.00025540342903696,
-0.00506945326924324,
0.10664946585893631,
-0.20458418130874634,
0.19392029941082,
0.6248510479927063,
0.1559799462556839,
-0.0690416544675827,
-0.18998469412326813,
-0.05028075352311134,
-0.12426447868347168,
0.23949775099754333,
0.21865209937095642,
-0.08031079918146133,
0.004976539872586727,
0.3057088851928711,
-0.2312399446964264,
0.36853930354118347,
-0.016263501718640327,
0.3051944971084595,
-0.17457960546016693,
0.18370047211647034,
0.16757479310035706,
-0.016534697264432907,
-0.0022485964000225067,
-0.4258725345134735,
0.2501201927661896,
0.5538986325263977,
-0.2577005922794342,
0.17580436170101166,
0.03193265572190285,
-0.15974994003772736,
-0.1175888404250145,
-0.18528766930103302,
0.5539388656616211,
-0.06165190413594246,
-0.3503073751926422,
0.5332697629928589,
0.09580100327730179,
-0.11599341034889221,
0.0116966487839818,
-0.14897769689559937,
-0.03917482867836952,
0.03618399426341057,
-0.06920671463012695,
-0.14557242393493652,
0.04509704187512398,
0.070754773914814,
-0.2735248804092407,
-0.21305637061595917,
-0.2302902340888977,
-0.07894148677587509,
-0.11622389405965805,
0.23028245568275452,
-0.005495409481227398,
0.2637900412082672,
0.10186465084552765,
-0.006938353180885315,
0.2944149971008301,
0.31050148606300354,
0.11030178517103195,
-0.26450395584106445,
0.11263973265886307,
-0.07665751874446869,
0.13211630284786224,
0.36211225390434265,
-0.14406165480613708,
0.13535715639591217,
-0.03249064087867737,
0.06749854236841202,
-0.09203340113162994,
-0.2673429250717163,
0.43276137113571167,
-0.16558049619197845,
-0.29759401082992554,
-0.03650200366973877,
0.20603162050247192,
0.16863827407360077,
-0.35545700788497925,
0.5559954047203064,
0.2967340350151062,
0.008054344914853573,
-0.023656591773033142,
-0.27704429626464844,
1.0293959379196167,
-0.02873333729803562,
-0.07097756862640381,
-0.2229955792427063,
-0.21065980195999146,
0.3116077482700348,
0.15183286368846893,
0.12755905091762543,
-0.14791233837604523,
-0.12004145234823227,
-0.15635867416858673,
0.025575987994670868,
0.3566552698612213,
0.013788659125566483,
-0.4522596597671509,
0.18001927435398102,
-0.10668765008449554,
0.34587040543556213,
0.1815039962530136,
0.41813695430755615,
0.20393532514572144,
0.2149995118379593,
-0.13578729331493378,
0.18121811747550964,
0.041511084884405136,
0.34440726041793823,
-0.11158084124326706,
-0.11234129965305328,
0.05060980096459389,
-0.16847838461399078,
-0.3772754371166229,
-0.1627560406923294,
0.09462282806634903,
0.12849560379981995,
-0.04188160598278046,
-0.32950493693351746,
0.15016421675682068,
-0.206703320145607,
0.23946169018745422,
0.05871187895536423,
-0.15435245633125305,
0.10663336515426636,
-0.10029864311218262,
-0.2956935167312622,
0.04223550856113434,
0.20251360535621643,
0.24934718012809753,
-0.36580002307891846,
-0.1296650618314743,
0.20751908421516418,
-0.06659556925296783,
-0.1957610845565796,
-0.38056036829948425,
0.014414827339351177,
0.1905001550912857,
-0.08584935963153839,
0.09023385494947433,
0.07931060343980789,
0.00003903576362063177,
-0.26875683665275574,
0.21664178371429443,
0.23639068007469177,
0.17307227849960327,
-0.07047223299741745,
0.09091240167617798,
-0.0943976566195488,
-0.04622819274663925,
0.3315742611885071,
0.4488442838191986,
-0.08695095777511597,
-0.057726141065359116,
-0.10464810580015182,
-0.02531530149281025,
-0.2967379093170166,
0.16510814428329468,
0.14837045967578888,
-0.19265492260456085,
0.3166777491569519,
0.0451822429895401,
-0.17714470624923706,
0.09663134068250656,
0.8037613034248352,
0.11329050362110138,
-0.08670225739479065,
-0.30893832445144653,
-0.22691470384597778,
-0.20127329230308533,
0.4007466435432434,
-0.3507452607154846,
-0.06325959414243698,
-0.17282158136367798,
0.003514288691803813,
0.17836518585681915,
-0.2588582932949066,
-0.3582353889942169,
0.10949436575174332,
-0.02293427102267742,
-0.1558411866426468,
0.38056179881095886,
-0.1397647112607956,
-0.1268879771232605,
-0.16952301561832428,
0.06836099922657013,
-0.19142568111419678,
-0.4219686686992645,
-0.18258988857269287,
-0.006880834698677063,
0.1795588582754135,
-0.09949954599142075,
0.11059010028839111,
-0.21884272992610931,
-0.33317118883132935,
-0.32947927713394165,
0.5655476450920105,
-0.0574626587331295,
0.21055805683135986,
0.2658177316188812,
-0.0013692115899175406,
-0.19110369682312012,
0.0832064300775528,
-0.04736015945672989,
0.1444203406572342,
0.291686475276947,
0.06167382001876831,
0.0525817908346653,
0.21925115585327148,
0.33524054288864136,
-0.051245905458927155,
-0.31883302330970764,
-0.08573167026042938,
0.028379956260323524,
0.10824371874332428,
0.2533847689628601,
0.084507517516613,
0.07785540819168091,
0.3177061378955841,
0.26134029030799866,
0.1477459967136383,
0.02358786016702652,
-0.10451551526784897,
0.1499728262424469,
0.22904641926288605,
-0.4348066747188568,
-0.21444475650787354,
-0.1024438738822937,
0.19541522860527039,
-0.3519691824913025,
-0.05866408348083496,
0.4161960184574127,
0.3745107352733612,
0.33062323927879333,
0.2353346198797226,
0.3252158761024475,
-0.28755486011505127,
0.17533700168132782,
0.2986510694026947,
0.28216201066970825,
0.0819244459271431,
0.27020835876464844,
0.35630878806114197,
0.1198413297533989,
-0.11741679161787033,
0.11622278392314911,
0.257994145154953,
0.6770777106285095,
0.4611133337020874,
0.2945825755596161,
-0.16741499304771423,
0.15286169946193695,
0.14507651329040527,
0.02485695295035839,
-0.009703485295176506,
-0.028064575046300888,
0.23412495851516724,
-0.22238042950630188,
0.0008824088727124035,
-0.2526206970214844,
-0.19898243248462677,
-0.139576718211174,
-0.20661792159080505,
0.080479197204113,
-0.20130200684070587,
-0.16393180191516876,
-0.04903427138924599,
-0.08184313774108887,
0.3881370723247528,
0.46514561772346497,
-0.17233611643314362,
0.06459128856658936,
-0.10199680924415588,
-0.1264229118824005,
0.17578351497650146,
0.2655937671661377,
-0.18459679186344147,
0.30188441276550293,
-0.4171665906906128,
0.10559463500976562,
0.2046000212430954,
0.5415050387382507,
0.0668874979019165,
-0.005514067132025957,
-0.09665117412805557,
-0.03461694344878197,
-0.20498983561992645,
-0.09645197540521622,
0.11996665596961975,
0.4839957356452942,
0.2810303866863251,
0.32640179991722107,
0.023384733125567436,
0.07553796470165253,
-0.1421591192483902,
0.41687196493148804,
-0.10790728032588959,
-0.12833581864833832,
-0.6276839971542358,
0.21749091148376465,
-0.10517280548810959,
-0.1579536497592926,
-0.061281852424144745,
0.12601238489151,
-0.012663573026657104,
-0.3415767252445221,
0.2715968191623688,
0.21668845415115356,
-0.06430549174547195,
-0.24864695966243744,
0.1112186536192894,
-0.2308492213487625,
0.04201717674732208,
0.013572169467806816,
-0.008657105267047882,
-0.01974002830684185,
-0.30968692898750305,
-0.44895827770233154,
0.3907984793186188,
0.11159761995077133,
-0.24081483483314514,
0.10528100281953812,
0.21330054104328156,
0.08897817134857178,
0.3081977963447571,
0.09241881221532822,
-0.17903946340084076,
-0.31719478964805603,
-0.14468729496002197,
-0.4022742211818695,
0.194186732172966,
0.39120855927467346,
0.08479410409927368,
-0.04224260896444321,
-0.2774841785430908,
0.27421900629997253,
-0.2932412028312683,
0.03224286809563637,
0.10447567701339722,
-0.33371686935424805,
0.38600507378578186,
0.14066675305366516,
0.5287458300590515,
0.032131507992744446,
0.13045482337474823,
0.23303470015525818,
-0.13441909849643707,
-0.46772316098213196,
-0.1328880935907364,
-0.03367091715335846,
-0.10856829583644867,
0.04182308912277222,
0.043894872069358826,
-0.2677304148674011,
0.11621493101119995,
-0.1990455836057663,
0.051043134182691574,
-0.3705940246582031,
0.4114423096179962,
0.06625548750162125,
0.10950760543346405,
0.06625023484230042,
-0.2569507956504822,
0.26486602425575256,
0.05526776611804962,
-0.11630024015903473,
-0.2598815858364105,
-0.44472816586494446,
-0.3196735382080078,
0.2948850393295288,
0.009998751804232597,
-0.1469423770904541,
-0.1186862513422966,
0.07514163851737976,
0.26015806198120117,
-0.2630869448184967,
-0.40477773547172546,
-0.13587850332260132,
0.3026440739631653,
0.229050412774086,
-0.12055433541536331,
0.00372037710621953,
0.011637534946203232,
-0.18535692989826202,
0.0748228132724762,
0.3017757833003998,
-0.14734987914562225,
-0.1105482205748558,
-0.19107918441295624,
0.07434473186731339
] |
https://github.com/huggingface/datasets/issues/2885
|
Adding an Elastic Search index to a Dataset
|
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env
|
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
| 44
|
Adding an Elastic Search index to a Dataset
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env
|
[
-0.1423356682062149,
0.1727263480424881,
-0.004471363499760628,
0.040096648037433624,
0.09973673522472382,
0.027367614209651947,
-0.01320515014231205,
0.06842199712991714,
0.013826427049934864,
0.053114887326955795,
-0.03956036642193794,
0.30000758171081543,
0.3499439060688019,
-0.37816154956817627,
-0.10492656379938126,
0.1306149810552597,
0.09097269177436829,
0.09414943307638168,
0.27567413449287415,
0.19792820513248444,
-0.03591420128941536,
0.09590878337621689,
-0.12475428730249405,
-0.08929158002138138,
-0.33463171124458313,
0.021213946864008904,
-0.03167138248682022,
-0.12353728711605072,
-0.02871766872704029,
-0.4167432188987732,
0.301948219537735,
-0.15018528699874878,
-0.12258530408143997,
0.35763490200042725,
-0.00011850786540890113,
0.07807427644729614,
0.434854120016098,
-0.032971713691949844,
-0.018321722745895386,
-0.29072055220603943,
-0.07237992435693741,
-0.1354442983865738,
0.2791987955570221,
-0.15913203358650208,
-0.09534785151481628,
0.16176341474056244,
0.09874819964170456,
-0.6114607453346252,
0.44152313470840454,
0.3961339592933655,
0.2210114747285843,
0.31800660490989685,
0.34375062584877014,
-0.12438366562128067,
0.4198285639286041,
-0.1281122863292694,
-0.048951197415590286,
-0.25642263889312744,
0.25303420424461365,
-0.038898222148418427,
-0.029066918417811394,
0.14522910118103027,
-0.09448936581611633,
-0.2707449793815613,
0.1085038036108017,
0.1481347531080246,
-0.46254295110702515,
-0.29573094844818115,
0.3149893879890442,
0.11342243105173111,
0.1910262107849121,
-0.07123375684022903,
-0.2519359588623047,
0.04518508166074753,
-0.0008991628419607878,
0.16221055388450623,
0.1994202882051468,
0.18945719301700592,
0.06061048433184624,
0.11904241889715195,
0.0653899610042572,
-0.12489814311265945,
-0.2391614466905594,
0.41353216767311096,
-0.05370808765292168,
0.17344455420970917,
-0.09754188358783722,
0.10647597908973694,
0.13659444451332092,
-0.14607979357242584,
0.07822859287261963,
0.25229522585868835,
-0.2729335129261017,
-0.05551564693450928,
-0.37644267082214355,
0.10244693607091904,
-0.11689483374357224,
-0.20027151703834534,
0.4185050427913666,
-0.0634528174996376,
-0.09268481284379959,
0.1597324013710022,
0.6514127254486084,
0.08237064629793167,
0.2860300540924072,
-0.06310341507196426,
0.06138165667653084,
0.3085786998271942,
0.07358753681182861,
-0.3172643482685089,
-0.31747332215309143,
-0.2593563497066498,
0.28547918796539307,
-0.214969664812088,
0.4180784225463867,
-0.48181551694869995,
0.21345700323581696,
-0.030027693137526512,
-0.15906564891338348,
0.21930071711540222,
-0.5879532694816589,
-0.006158099044114351,
-0.07535003125667572,
0.13534927368164062,
0.13646118342876434,
-0.495306134223938,
0.03836921975016594,
0.27251628041267395,
-0.2289303094148636,
0.14522144198417664,
-0.2356664389371872,
-0.26598307490348816,
0.04086916521191597,
0.017961975187063217,
0.11603579670190811,
-0.6583979725837708,
0.2295728623867035,
0.002188315847888589,
0.08425963670015335,
-0.39457207918167114,
0.26301148533821106,
-0.08290019631385803,
0.17736375331878662,
0.21885539591312408,
0.06153467670083046,
0.023488502949476242,
0.023227214813232422,
-0.43855562806129456,
-0.03515545651316643,
-0.12219376116991043,
-0.38145342469215393,
-0.2521410882472992,
-0.2764846086502075,
0.2102275937795639,
-0.13857711851596832,
0.017178315669298172,
0.13575181365013123,
0.2181536704301834,
0.1103120818734169,
-0.008274395018815994,
0.0775756910443306,
-0.04035547748208046,
-0.28976866602897644,
0.08141599595546722,
0.29978954792022705,
0.2074810117483139,
0.11608586460351944,
-0.12900640070438385,
0.03454871103167534,
0.4276863634586334,
-0.26092854142189026,
0.21411864459514618,
-0.2313275784254074,
0.03642932325601578,
-0.17314185202121735,
0.41792261600494385,
0.33503055572509766,
-0.46300169825553894,
-0.6134617328643799,
0.13872095942497253,
-0.23061515390872955,
-0.09500910341739655,
-0.2723558247089386,
0.06078474968671799,
0.6483927965164185,
0.010772318579256535,
0.17986758053302765,
0.24768157303333282,
-0.17625731229782104,
-0.16789840161800385,
-0.15230099856853485,
-0.0007275953539647162,
-0.14308804273605347,
-0.1772024929523468,
0.0628989040851593,
0.09033554047346115,
0.25761258602142334,
0.20040982961654663,
-0.005573802627623081,
0.1895461082458496,
0.011543016880750656,
0.3066955804824829,
0.3564869165420532,
0.10774914175271988,
0.2526802718639374,
-0.1288021057844162,
-0.25653156638145447,
0.22327041625976562,
0.08952877670526505,
0.08368594944477081,
-0.1827767938375473,
-0.11986313760280609,
-0.13790611922740936,
0.007161563728004694,
-0.1569930613040924,
0.030995549634099007,
0.10749728232622147,
-0.2377425879240036,
-0.21988706290721893,
0.1922541856765747,
0.0002304046502104029,
-0.16674810647964478,
0.07281053811311722,
0.2382163405418396,
-0.23763899505138397,
0.3120538294315338,
-0.08301298320293427,
-0.08675338327884674,
-0.1883610188961029,
-0.012789865955710411,
0.23681651055812836,
-0.20603905618190765,
-0.14462068676948547,
0.3325415551662445,
-0.09940619766712189,
0.3171956539154053,
0.15428419411182404,
0.02519393153488636,
0.12611836194992065,
-0.6889188885688782,
-0.10387783497571945,
0.14205710589885712,
0.057196274399757385,
-0.27619075775146484,
-0.0003118995809927583,
0.015249456278979778,
0.007225291337817907,
0.3724014163017273,
-0.21710269153118134,
0.0868731364607811,
-0.007397644221782684,
-0.1734815537929535,
-0.4597896337509155,
-0.03373279422521591,
-0.0198453851044178,
-0.3641356825828552,
-0.0424913726747036,
-0.1129406988620758,
-0.11829132586717606,
0.031904660165309906,
0.01611531898379326,
0.15425275266170502,
0.1046619862318039,
0.3709859848022461,
0.02022968791425228,
-0.10019180178642273,
-0.38004159927368164,
-0.02085947059094906,
0.23986321687698364,
0.17840413749217987,
0.1413077861070633,
-0.0003942671755794436,
0.016000045463442802,
-0.05712618678808212,
0.3174205422401428,
0.3449322283267975,
0.0851912572979927,
0.3284901976585388,
0.4267834424972534,
0.08073484152555466,
-0.23499971628189087,
-0.0556238517165184,
-0.2187711000442505,
-0.034960538148880005,
-0.24830542504787445,
0.48377811908721924,
-0.038178905844688416,
0.12168844044208527,
-0.14218224585056305,
0.036698613315820694,
-0.26087576150894165,
-0.4408204257488251,
-0.10007122904062271,
0.19188804924488068,
-0.029805738478899002,
0.010196707211434841,
-0.3896355628967285,
-0.028017308562994003,
0.25365346670150757,
-0.27196821570396423,
0.14002293348312378,
-0.138258159160614,
-0.1423635184764862,
-0.03425110876560211,
0.18529555201530457,
0.055935464799404144,
0.23909151554107666,
0.22776058316230774,
-0.13080453872680664,
-0.38574129343032837,
-0.4401710629463196,
0.1353849172592163,
0.027066977694630623,
0.338163286447525,
0.10618355870246887,
-0.20703698694705963,
-0.41890949010849,
-0.13923637568950653,
0.23917526006698608,
-0.15691444277763367,
0.0960521548986435,
0.09899038076400757,
0.08122660964727402,
0.1654556542634964,
0.2521836459636688,
-0.298807293176651,
-0.1856294870376587,
-0.17730607092380524,
0.031929630786180496,
-0.13006189465522766,
-0.07018974423408508,
0.32654818892478943,
-0.010066523216664791,
0.13343147933483124,
-0.11799375712871552,
-0.09436550736427307,
-0.12056155502796173,
-0.1552787572145462,
0.05129048228263855,
-0.1617371141910553,
-0.31464844942092896,
0.16640274226665497,
-0.03586573898792267,
-0.24765117466449738,
0.2399166077375412,
-0.3951132893562317,
0.21291477978229523,
0.12620513141155243,
-0.2579474449157715,
-0.3092861771583557,
0.05593540892004967,
0.08564423769712448,
-0.26329731941223145,
-0.015295511111617088,
-0.03317338228225708,
0.029206935316324234,
0.1754634529352188,
0.22315546870231628,
0.09258734434843063,
-0.09783893078565598,
0.23610830307006836,
-0.07093558460474014,
0.6817723512649536,
0.1603989601135254,
-0.013462265022099018,
0.15878620743751526,
-0.17086239159107208,
0.3219512403011322,
-0.236993208527565,
-0.5023807287216187,
-0.1412396878004074,
-0.10594407469034195,
-0.10542020201683044,
-0.028370404615998268,
0.10957435518503189,
-0.28275206685066223,
-0.11559988558292389,
-0.24269023537635803,
-0.06050083041191101,
-0.5460485219955444,
0.1893928200006485,
0.17110033333301544,
0.06934275478124619,
0.056865327060222626,
0.15642774105072021,
0.12334126979112625,
-0.43607401847839355,
-0.425250381231308,
-0.12721946835517883,
-0.1278427094221115,
0.015780139714479446,
-0.26754480600357056,
0.19871868193149567,
-0.6068621277809143,
0.1646699458360672,
-0.054210588335990906,
0.5287724733352661,
0.05517034977674484,
0.0009346356382593513,
0.1420917809009552,
0.16867750883102417,
0.7477442026138306,
-0.22517412900924683,
-0.11859791725873947,
-0.015835518017411232,
0.054792869836091995,
-0.592825174331665,
0.0987461656332016,
-0.1476440280675888,
0.6286975741386414,
0.2092188000679016,
0.3737732172012329,
0.02889336831867695,
0.1745183914899826,
0.07553636282682419,
-0.10054687410593033,
0.07907010614871979,
-0.07784201204776764,
-0.22568295896053314,
-0.22002726793289185,
0.3044414222240448,
0.27427437901496887,
0.3445186913013458,
0.08100225031375885,
0.3223791718482971,
-0.22847752273082733,
-0.2969668507575989,
-0.030945615842938423,
0.043718237429857254,
-0.22909323871135712,
0.25751104950904846,
-0.07814792543649673,
0.2960498631000519,
0.4340248107910156,
0.21778558194637299,
0.2762289047241211,
0.4081856906414032,
-0.2440406084060669,
0.08859354257583618,
-0.019674193114042282,
-0.03754708915948868,
0.17641021311283112,
0.34520915150642395,
0.23339420557022095,
0.15300077199935913,
0.178876593708992,
0.06654169410467148,
-0.21474236249923706,
-0.18785925209522247,
0.5031183362007141,
0.13828642666339874,
-0.47608640789985657,
0.0670427680015564,
0.36206549406051636,
-0.06275182962417603,
-0.03086564689874649,
0.07451502978801727,
0.5442929267883301,
-0.39887022972106934,
0.6471542119979858,
0.11359820514917374,
0.6712858080863953,
0.0891948789358139,
-0.07255654036998749,
-0.2630753517150879,
0.11092592775821686,
0.7352771162986755,
-0.33470049500465393,
0.25493738055229187,
-0.20975074172019958,
-0.5855284929275513,
-0.06905847042798996,
-0.28585028648376465,
0.008680878207087517,
-0.22341808676719666,
-0.36034831404685974,
0.016650471836328506,
-0.3822997510433197,
0.28212544322013855,
-0.08415591716766357,
0.3374679386615753,
-0.1510467380285263,
-0.12747961282730103,
0.035268835723400116,
0.1547400951385498,
0.22271372377872467,
0.2692334055900574,
0.19162340462207794,
0.0424446202814579,
-0.01742265187203884,
-0.2775607407093048,
-0.49446091055870056,
-0.019128883257508278,
-0.12745986878871918,
0.15517377853393555,
0.1827656775712967,
-0.04532294347882271,
0.38154715299606323,
0.09889674931764603,
0.048149026930332184,
0.10755757987499237,
-0.18122388422489166,
0.2406509667634964,
-0.008087653666734695,
-0.05698342248797417,
0.44466835260391235,
-0.22058320045471191,
0.07117965072393417,
0.17912264168262482,
-0.4024164080619812,
-0.018444465473294258,
0.2618081569671631,
-0.18586596846580505,
-0.08226970583200455,
0.34710296988487244,
-0.25227412581443787,
-0.3732711672782898,
-0.23475737869739532,
-0.1285918802022934,
-0.0675499215722084,
-0.1432652771472931,
0.08923213928937912,
0.008490588515996933,
-0.12428579479455948,
0.28307104110717773,
0.3689801096916199,
-0.24953216314315796,
0.07210094481706619,
0.8503791093826294,
-0.21605044603347778,
-0.1386737823486328,
0.2074776291847229,
0.06039552763104439,
-0.17180244624614716,
-0.11009164154529572,
0.32643091678619385,
0.285936176776886,
-0.1506773680448532,
-0.25924384593963623,
-0.46274980902671814,
0.22831617295742035,
0.03696288913488388,
0.037715788930654526,
0.21224597096443176,
-0.009236805140972137,
-0.1842617243528366,
-0.1904774010181427,
0.14333437383174896,
0.1566764861345291,
0.44425877928733826,
0.10218636691570282,
-0.31988686323165894,
-0.4058079719543457,
-0.09582794457674026,
0.13750067353248596,
-0.24381111562252045,
0.32686716318130493,
-0.25202858448028564,
0.006450389511883259,
-0.12959210574626923,
-0.05161594599485397,
0.5856391787528992,
-0.37528109550476074,
0.059196386486291885,
0.17448484897613525,
-0.051219258457422256,
-0.16854050755500793,
-0.06370184570550919,
0.11913764476776123,
-0.0450761578977108,
-0.10700855404138565,
-0.1666346937417984,
-0.23166076838970184,
-0.04734847694635391,
-0.2600589990615845,
0.02688812091946602,
0.424556702375412,
0.12926939129829407,
-0.1663019210100174,
-0.15225215256214142,
-0.12608714401721954,
0.3549254834651947,
-0.0860518366098404,
0.22106696665287018,
0.2574334740638733,
0.016934648156166077,
0.28505417704582214,
0.10951443016529083,
-0.031354229897260666,
-0.11664342880249023,
0.27056577801704407,
-0.043708011507987976,
0.07836644351482391,
0.20383109152317047,
-0.23710453510284424,
-0.09618144482374191,
0.5086311101913452,
0.41947123408317566,
0.3942946493625641,
-0.31043413281440735,
-0.1650983840227127,
-0.000525139388628304,
0.24133114516735077,
0.04924799129366875,
-0.24171076714992523,
0.6126326322555542,
0.090025395154953,
0.128388449549675,
0.20120234787464142,
0.08903907239437103,
-0.31309300661087036,
-0.3525211811065674,
0.029185794293880463,
0.7695252299308777,
0.1349656879901886,
0.10625208914279938,
-0.1847231686115265,
-0.02989916317164898,
-0.03078809753060341,
0.09696581214666367,
0.1540452390909195,
0.36287543177604675,
0.21087978780269623,
0.009351136162877083,
0.445763498544693,
0.09463877975940704,
0.20023538172245026,
0.19582019746303558,
0.1463281214237213,
0.28198346495628357,
0.2778770923614502,
0.19834567606449127,
0.06488383561372757,
-0.031021801754832268,
0.8150582909584045,
-0.008176819421350956,
-0.30889958143234253,
-0.10747381299734116,
0.012354990467429161,
-0.07188568264245987,
-0.13820108771324158,
0.21335884928703308,
-0.16537979245185852,
-0.0008469704771414399,
-0.2416384518146515,
0.08490053564310074,
-0.02695886790752411,
-0.39012789726257324,
0.15754973888397217,
0.11248156428337097,
-0.04309558495879173,
0.050888851284980774,
-0.14149680733680725,
0.07672015577554703,
-0.16643689572811127,
0.003623808501288295,
-0.1519063264131546,
0.1252121478319168,
0.23516790568828583,
0.33120885491371155,
0.4035595953464508,
-0.07472364604473114,
-0.14004644751548767,
0.40586552023887634,
-0.03501224145293236,
-0.14455294609069824,
0.10792141407728195,
0.03183726966381073,
-0.0002723837678786367,
-0.5440952777862549,
0.14781683683395386,
0.04871267452836037,
-0.06358882039785385,
0.014041716232895851,
0.26408398151397705,
0.43219825625419617,
-0.15409167110919952,
-0.3470178544521332,
-0.21063193678855896,
0.07443225383758545,
-0.1783645898103714,
-0.1506301760673523,
-0.160038024187088,
0.09886042028665543,
0.2971239686012268,
-0.21230965852737427,
0.14406275749206543,
0.14290128648281097,
0.06288842856884003,
-0.08692174404859543,
0.19667918980121613,
0.11604870110750198,
-0.055046338587999344,
-0.033397555351257324,
0.07475198805332184,
-0.2059541493654251,
0.31864193081855774,
-0.45080864429473877,
0.1692681908607483,
0.5591517686843872,
0.2960517704486847,
-0.20471446216106415,
0.10676658153533936,
0.18077054619789124,
-0.23506581783294678,
-0.2993125021457672,
-0.07724495232105255,
-0.016041243448853493,
-0.22386698424816132,
-0.1015612930059433,
0.026177551597356796,
-0.010141633450984955,
-0.02515552006661892,
0.10904494673013687,
-0.5017808675765991,
0.02346213534474373,
-0.23539748787879944,
-0.1540958285331726,
-0.19839578866958618,
-0.17497460544109344,
0.11525095254182816,
0.07642877101898193,
0.25468096137046814,
-0.01082568895071745,
0.0705433189868927,
-0.19427169859409332,
-0.4698747396469116,
-0.2817726135253906,
0.2653592824935913,
0.09579101949930191,
0.030969493091106415,
-0.25580069422721863,
-0.49813923239707947,
-0.20893709361553192,
0.1482592523097992,
0.09516969323158264,
-0.10516121983528137,
-0.4935900866985321,
0.021183768287301064,
-0.06647433340549469,
0.12540289759635925,
-0.282428115606308,
0.3217887580394745,
-0.05846036598086357,
0.4555458724498749,
0.05762292817234993,
-0.4273313581943512,
0.4724084734916687,
-0.33195972442626953,
0.00557880150154233,
-0.04099411517381668,
0.29267817735671997,
0.6038848757743835,
0.1409933865070343,
-0.23869508504867554,
-0.1673583835363388,
0.275653600692749,
-0.19434590637683868,
-0.244059219956398,
-0.09817367792129517,
-0.015066726133227348,
0.19261892139911652,
-0.025973182171583176,
-0.16198000311851501,
0.2742904722690582,
-0.02924884483218193,
0.015126876533031464,
-0.09116986393928528
] |
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.3422667682170868,
0.035567548125982285,
0.3098617494106293,
0.2141987681388855,
0.04043688625097275,
0.3646674156188965,
0.4201541244983673,
0.30403679609298706,
0.07150106132030487,
-0.2768692970275879,
0.19011738896369934,
0.13069291412830353,
-0.19510620832443237,
-0.1612931340932846,
0.3339100182056427,
0.12469452619552612,
0.10538608580827713,
-0.22422035038471222,
-0.12527917325496674,
-0.3106774389743805,
0.19857817888259888,
-0.2184479534626007,
-0.2842966616153717,
-0.052956413477659225,
0.18356257677078247,
0.1532592922449112,
0.23243483901023865,
-0.12070289999246597,
-0.358711838722229,
0.2788253724575043,
0.2785298526287079,
0.17364327609539032,
0.4296150505542755,
-0.00012492839596234262,
0.12080095708370209,
0.2817721366882324,
-0.024277616292238235,
-0.5012800097465515,
-0.20139235258102417,
-0.5633583068847656,
-0.37422436475753784,
-0.007036229129880667,
-0.15833552181720734,
-0.03448761627078056,
0.23633745312690735,
-0.017785023897886276,
-0.27507367730140686,
0.00017851033771876246,
0.37369367480278015,
0.1168566420674324,
0.39186739921569824,
0.160996675491333,
0.08716820180416107,
0.3812575340270996,
0.050496187061071396,
-0.09009998291730881,
0.4119744300842285,
0.21939806640148163,
-0.038595907390117645,
-0.2582015097141266,
0.16832800209522247,
-0.42346128821372986,
0.30699437856674194,
0.23205839097499847,
0.06188228726387024,
0.06487459689378738,
-0.13736754655838013,
0.25324785709381104,
0.2994745969772339,
0.4981426000595093,
-0.41465944051742554,
-0.3278130888938904,
-0.22857381403446198,
-0.29830124974250793,
-0.31886914372444153,
0.3791346549987793,
0.13985711336135864,
-0.19677694141864777,
0.0336296409368515,
-0.36808058619499207,
0.14996232092380524,
0.003770482027903199,
0.19401292502880096,
0.2422676533460617,
0.05453745648264885,
0.031654708087444305,
-0.018766021355986595,
0.02211250178515911,
0.029878029599785805,
0.3937077224254608,
-0.5399649143218994,
-0.20467835664749146,
0.2048107236623764,
-0.5590248703956604,
0.07308666408061981,
0.008054927922785282,
0.2777065932750702,
0.3526347577571869,
0.49251416325569153,
0.08900973200798035,
0.20428040623664856,
-0.03753884509205818,
0.18851551413536072,
0.16431911289691925,
0.21197018027305603,
-0.06473491340875626,
0.4100460708141327,
0.2708590030670166,
0.3656803369522095,
-0.13477809727191925,
0.04320993274450302,
-0.005434857215732336,
-0.17642106115818024,
0.6712679266929626,
-0.12599477171897888,
0.3084341585636139,
-0.4890425503253937,
-0.4388943910598755,
0.2713259160518646,
0.008198997005820274,
-0.09479711949825287,
0.0869511291384697,
0.32201987504959106,
-0.22657911479473114,
0.15165983140468597,
0.14701960980892181,
0.14769181609153748,
-0.2125009298324585,
-0.0541328601539135,
-0.18733669817447662,
-0.07644023001194,
-0.059678200632333755,
0.197609081864357,
0.2942301034927368,
-0.18220095336437225,
0.25536325573921204,
0.10830985009670258,
0.21902644634246826,
-0.19608211517333984,
0.29997575283050537,
-0.19556280970573425,
-0.053362585604190826,
0.31806620955467224,
-0.03223138302564621,
0.09612485766410828,
0.2476639598608017,
-0.18122348189353943,
-0.14394289255142212,
0.18287712335586548,
-0.25577646493911743,
-0.21374455094337463,
-0.1269088238477707,
0.15115103125572205,
-0.3514269292354584,
0.008209366351366043,
-0.23782691359519958,
-0.40002596378326416,
0.4063251316547394,
-0.3223423957824707,
-0.01548298355191946,
-0.3542117774486542,
-0.2637978494167328,
-0.3539443910121918,
0.23897331953048706,
0.40259984135627747,
0.041924089193344116,
0.04265287145972252,
-0.0905645415186882,
-0.011483822949230671,
0.294192910194397,
0.18351122736930847,
0.009319540113210678,
0.1056315153837204,
-0.4124910533428192,
-0.06356123834848404,
0.2606545388698578,
-0.3542019724845886,
-0.6170885562896729,
0.10361704975366592,
0.12774613499641418,
0.6295827627182007,
0.04764252528548241,
0.07500482350587845,
0.1831681877374649,
-0.050238996744155884,
0.22169993817806244,
0.1532372683286667,
-0.03878584876656532,
0.12447963654994965,
-0.25280508399009705,
-0.03256034851074219,
-0.04347182437777519,
0.10448645055294037,
0.020173275843262672,
0.24980470538139343,
0.288921594619751,
-0.1661122888326645,
0.26378074288368225,
-0.09536612033843994,
-0.12573708593845367,
0.23210464417934418,
0.29919978976249695,
0.0468757338821888,
0.06397274881601334,
-0.016745787113904953,
-0.7693796157836914,
0.3423205316066742,
-0.1505926549434662,
-0.028012486174702644,
-0.07335054874420166,
-0.0444161631166935,
-0.18030476570129395,
-0.11414795368909836,
-0.30736687779426575,
-0.09120496362447739,
-0.012601993978023529,
0.3906347155570984,
0.20742188394069672,
0.020101476460695267,
0.037946175783872604,
0.41377732157707214,
-0.30479779839515686,
0.12482928484678268,
-0.33462241291999817,
0.4118487238883972,
0.07434254139661789,
-0.10293790698051453,
0.1318245232105255,
-0.003029209328815341,
0.13282302021980286,
-0.056294672191143036,
-0.2745421230792999,
0.4387063980102539,
0.3811514675617218,
0.13638311624526978,
-0.19623255729675293,
0.3414160907268524,
-0.06992180645465851,
-0.1395464837551117,
-0.012618333101272583,
0.4393077492713928,
0.12039738148450851,
-0.1690555363893509,
-0.15337435901165009,
0.34739187359809875,
-0.0006352866184897721,
0.19467628002166748,
0.006253197323530912,
0.05758306384086609,
0.24504943192005157,
-0.11670221388339996,
-0.14613747596740723,
-0.2618684768676758,
0.3650648295879364,
0.1295994520187378,
0.22662478685379028,
0.19694119691848755,
-0.15721149742603302,
-0.025889728218317032,
0.45152074098587036,
-0.07350897043943405,
-0.020525256171822548,
0.1288505345582962,
0.047466032207012177,
-0.04369369149208069,
0.0753757506608963,
0.23707400262355804,
0.5027205944061279,
0.06688656657934189,
-0.04628356546163559,
0.1425228714942932,
-0.17180752754211426,
-0.06782576441764832,
0.09680496156215668,
-0.04073897749185562,
0.19895556569099426,
0.6168531179428101,
0.13804224133491516,
-0.15266691148281097,
-0.28188368678092957,
-0.07744341343641281,
-0.12176036089658737,
0.30291956663131714,
-0.49030542373657227,
0.07697010040283203,
-0.10728730261325836,
0.08582380414009094,
-0.37316837906837463,
-0.12689976394176483,
-0.18559785187244415,
-0.2465100884437561,
-0.2533246874809265,
0.625508189201355,
0.0291842482984066,
0.17708775401115417,
-0.5438398122787476,
0.02617497183382511,
-0.04827320948243141,
-0.36588823795318604,
0.01786494255065918,
0.20343656837940216,
-0.21111075580120087,
-0.1547405868768692,
0.5788068771362305,
-0.09108760952949524,
0.37425655126571655,
-0.4110652804374695,
-0.026851056143641472,
-0.5500816106796265,
-0.22336389124393463,
0.09451518207788467,
0.016227396205067635,
0.22367508709430695,
0.17118267714977264,
0.04065746068954468,
-0.019199997186660767,
-0.25010740756988525,
0.24092134833335876,
-0.04423141852021217,
-0.26826757192611694,
0.3236278295516968,
-0.15102843940258026,
-0.09554998576641083,
0.17093603312969208,
-0.1985119730234146,
-0.05945122241973877,
-0.30505552887916565,
-0.12973836064338684,
0.23192201554775238,
0.21338117122650146,
0.19363191723823547,
-0.006471268832683563,
0.015293699689209461,
0.1389663964509964,
0.33736753463745117,
-0.16820287704467773,
-0.6134580969810486,
0.4448632597923279,
-0.03782505914568901,
-0.2202027291059494,
-0.14433155953884125,
-0.10698499530553818,
0.11745353043079376,
0.3974044919013977,
-0.509544312953949,
0.01674903929233551,
-0.2880868911743164,
0.09456289559602737,
0.09506309777498245,
-0.02405628375709057,
0.21602317690849304,
0.1453539878129959,
0.08296561986207962,
-0.24995462596416473,
-0.27190619707107544,
0.1908770650625229,
-0.1372257024049759,
0.19965597987174988,
0.022647235542535782,
0.3025049567222595,
-0.2673569321632385,
0.546239972114563,
0.4274429976940155,
0.006137737538665533,
0.22808587551116943,
0.04674666002392769,
0.5268771052360535,
-0.16033652424812317,
-0.31799250841140747,
-0.07851161807775497,
-0.20986811816692352,
-0.13363446295261383,
0.13671106100082397,
-0.025606533512473106,
-0.12907616794109344,
-0.1602403074502945,
0.056563057005405426,
-0.2643205523490906,
-0.26646310091018677,
0.05570375174283981,
-0.2999249994754791,
0.34184667468070984,
0.1807081252336502,
0.1787680983543396,
-0.14496466517448425,
-0.3675054609775543,
-0.0111333467066288,
0.255164235830307,
-0.062167003750801086,
-0.06465355306863785,
-0.27541878819465637,
0.03612782061100006,
-0.09631168842315674,
0.30097925662994385,
0.2166885882616043,
0.4385872185230255,
0.12864209711551666,
-0.08465375006198883,
-0.018668677657842636,
0.023542296141386032,
0.22706659138202667,
-0.2749735414981842,
0.29569756984710693,
0.14856073260307312,
-0.007957237772643566,
-0.17835772037506104,
-0.2544604539871216,
-0.043249648064374924,
0.061822518706321716,
0.04338756576180458,
0.5564835071563721,
-0.31658414006233215,
-0.01635737344622612,
0.24136070907115936,
0.41004282236099243,
-0.146185040473938,
-0.28836825489997864,
-0.44035598635673523,
-0.1881622076034546,
-0.2969505786895752,
-0.18072612583637238,
-0.14348727464675903,
0.12070489674806595,
-0.23364247381687164,
-0.1006108745932579,
-0.017982952296733856,
0.05704148858785629,
0.29716816544532776,
-0.05694995075464249,
0.4486593008041382,
-0.06271520256996155,
0.43891486525535583,
0.04354345425963402,
0.06077488511800766,
0.40352267026901245,
0.8385488986968994,
-0.3676978647708893,
-0.4420875310897827,
-0.0795326828956604,
-0.13003112375736237,
-0.17700506746768951,
0.07271666079759598,
-0.029712827876210213,
-0.13397836685180664,
0.2369074672460556,
-0.1334165334701538,
-0.08766334503889084,
-0.07257220894098282,
0.21041680872440338,
0.1998625099658966,
-0.48593077063560486,
-0.47055038809776306,
0.14250074326992035,
0.08549858629703522,
-0.05650052800774574,
0.5796328783035278,
-0.0678573027253151,
-0.1726638674736023,
0.09759187698364258,
0.15627801418304443,
0.7910824418067932,
-0.03746936842799187,
0.20977959036827087,
0.2671891152858734,
-0.3216477632522583,
-0.015329732559621334,
-0.2884852886199951,
0.11760430037975311,
-0.5410559177398682,
-0.4565598666667938,
0.0023727426305413246,
-0.41088560223579407,
0.06949296593666077,
0.024456733837723732,
-0.00587647408246994,
0.3644278943538666,
-0.13654035329818726,
0.36398324370384216,
0.1626519113779068,
0.15032503008842468,
-0.1333136260509491,
-0.019251402467489243,
-0.024690238758921623,
0.05636755749583244,
-0.10632724314928055,
0.28178754448890686,
-0.10432553291320801,
0.0744720846414566,
-0.08374346047639847,
-0.24914218485355377,
-0.3359668254852295,
0.26861682534217834,
-0.0484265498816967,
0.3063889741897583,
0.314468652009964,
-0.1562396138906479,
-0.19320452213287354,
0.30794134736061096,
0.19318875670433044,
0.12565146386623383,
-0.20242732763290405,
-0.0966150164604187,
0.44461607933044434,
0.18595872819423676,
0.10808394104242325,
-0.11747673898935318,
0.42943739891052246,
-0.01647469773888588,
-0.1706189513206482,
-0.01950801908969879,
-0.15670853853225708,
-0.5109947323799133,
-0.06384704262018204,
-0.1865803301334381,
-0.013953284360468388,
-0.33274540305137634,
-0.18218566477298737,
-0.14913690090179443,
-0.002648170106112957,
-0.17993007600307465,
0.10349544137716293,
0.1509203314781189,
-0.1339949071407318,
0.37992244958877563,
-0.0015906781191006303,
-0.4600848853588104,
-0.12746500968933105,
0.5131279230117798,
0.1256904900074005,
-0.06667503714561462,
0.5254417657852173,
-0.035495880991220474,
-0.2741107642650604,
-0.13037841022014618,
-0.023937396705150604,
0.04297981783747673,
-0.2795839011669159,
0.15648849308490753,
-0.2923153042793274,
0.3266962170600891,
-0.16565248370170593,
0.230920672416687,
0.17461150884628296,
-0.02821926213800907,
0.08037545531988144,
-0.5436599254608154,
-0.11495620012283325,
-0.05452365428209305,
0.07140577584505081,
0.22561295330524445,
-0.09616639465093613,
-0.13187725841999054,
-0.16862715780735016,
-0.16431237757205963,
-0.21964453160762787,
-0.05095931515097618,
-0.2850681245326996,
-0.0503932386636734,
0.06670042872428894,
0.10910827666521072,
0.09547378122806549,
-0.0848042443394661,
0.10706745833158493,
-0.13952678442001343,
-0.1586134433746338,
-0.09824498742818832,
-0.2473127692937851,
0.1913047879934311,
0.007806112989783287,
-0.21952416002750397,
0.10118880867958069,
-0.25071051716804504,
-0.12310400605201721,
-0.29265788197517395,
0.04128396511077881,
0.33322590589523315,
-0.16632448136806488,
0.024056648835539818,
0.047913361340761185,
-0.005912115331739187,
-0.07029575854539871,
0.059867631644010544,
-0.35677188634872437,
-0.09490872919559479,
0.03533520549535751,
0.08519116044044495,
0.0412062332034111,
-0.04275951534509659,
0.038260553032159805,
0.20074611902236938,
0.09748858958482742,
-0.03412342071533203,
0.4755384027957916,
-0.4363528788089752,
0.04025524854660034,
0.15630224347114563,
0.23568245768547058,
0.42222926020622253,
-0.385621041059494,
-0.11752375960350037,
0.1396678239107132,
0.17106832563877106,
-0.28583309054374695,
-0.1420321762561798,
0.14067034423351288,
-0.20546011626720428,
0.024986539036035538,
0.24165654182434082,
0.1442960798740387,
-0.5312743782997131,
0.3154033124446869,
0.036544010043144226,
0.1829734593629837,
-0.1733883023262024,
0.09529630094766617,
0.42065155506134033,
0.10133911669254303,
0.14036397635936737,
0.13258473575115204,
-0.031038440763950348,
-0.010568955913186073,
0.04780060052871704,
-0.07501213252544403,
0.30365830659866333,
-0.3571113348007202,
0.08801936358213425,
-0.22013206779956818,
-0.5279708504676819,
0.3481960594654083,
0.25023725628852844,
-0.0698244497179985,
0.1256934553384781,
0.015217602252960205,
0.0834488719701767,
-0.061537932604551315,
0.2207067757844925,
-0.35151633620262146,
-0.11219971626996994,
-0.11604046076536179,
0.030032392591238022,
0.005670327693223953,
-0.3382461667060852,
0.023781493306159973,
0.22826142609119415,
-0.04873340576887131,
0.14405830204486847,
0.15894314646720886,
0.12192077934741974,
-0.18033148348331451,
-0.2696208655834198,
0.2587578296661377,
0.08426085859537125,
-0.040988314896821976,
-0.18214432895183563,
0.2920794188976288,
0.052717480808496475,
0.06037534773349762,
0.0834050104022026,
0.2604431211948395,
0.4520893394947052,
0.596956729888916,
0.16555972397327423,
-0.2217351347208023,
-0.018945438787341118,
-0.023127665743231773,
-0.09419888257980347,
0.7059616446495056,
-0.18014545738697052,
-0.25993406772613525,
0.3139140009880066,
0.0530901700258255,
-0.14712543785572052,
0.025386536493897438,
-0.09723342955112457,
-0.2940261960029602,
-0.09076347947120667,
0.5079382061958313,
-0.023623235523700714,
0.017498474568128586,
-0.0995553657412529,
0.2220057249069214,
-0.22758078575134277,
-0.24917104840278625,
0.432648628950119,
0.22700978815555573,
0.13768310844898224,
0.07760745286941528,
0.0341976173222065,
-0.018628833815455437,
0.17660902440547943,
0.2722505033016205,
0.0902155414223671,
-0.3786693215370178,
-0.3421303927898407,
-0.7264227271080017,
0.34543487429618835,
-0.157649427652359,
-0.061995599418878555,
0.11724434047937393,
0.13262023031711578,
0.011623112484812737,
0.1041921004652977,
0.31464624404907227,
-0.06412729620933533,
-0.20501531660556793,
-0.009851135313510895,
-0.17590181529521942,
-0.3004661202430725,
-0.15927287936210632,
-0.1377236545085907,
-0.19204330444335938,
-0.570371687412262,
0.20179195702075958,
0.11519189924001694,
0.04825973138213158,
-0.12294783443212509,
0.20971828699111938,
0.09960886090993881,
0.20801909267902374,
0.18529503047466278,
0.15405981242656708,
0.635270893573761,
-0.0647081509232521,
-0.2254834920167923,
-0.09719987958669662,
-0.11416752636432648,
-0.15863953530788422,
0.3163210153579712,
-0.11485856026411057,
0.34630489349365234,
-0.10015280544757843,
-0.30198433995246887,
-0.35749220848083496,
0.39119574427604675,
0.24973496794700623,
-0.3221435844898224,
-0.08384854346513748,
0.07282189279794693,
-0.2557877004146576,
0.21849000453948975,
0.02597312070429325,
0.11381377279758453,
0.13359349966049194,
0.45933812856674194,
-0.16759717464447021,
-0.245021253824234,
0.4646683931350708,
-0.2160874754190445,
-0.1596837341785431,
-0.1233224868774414,
0.25768640637397766,
-0.27439355850219727,
-0.21509107947349548,
-0.6132486462593079,
0.1759437471628189,
0.48128145933151245,
-0.13565285503864288,
-0.16693362593650818,
0.2582968771457672,
-0.20368383824825287,
0.3876018822193146,
0.01639053039252758,
0.34854695200920105,
0.012252493761479855,
-0.22214089334011078,
-0.05368901789188385,
-0.11852767318487167
] |
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.12485301494598389,
-0.05359438806772232,
0.029330797493457794,
0.07398083806037903,
0.20472727715969086,
-0.024576963856816292,
0.24893800914287567,
0.4213009774684906,
-0.4746897518634796,
0.1751621514558792,
0.13618355989456177,
0.5513849854469299,
-0.3347686231136322,
-0.08509580045938492,
0.03448350355029106,
0.18656395375728607,
-0.09211192280054092,
0.1384560465812683,
-0.2678898572921753,
-0.2130746990442276,
0.03989246487617493,
0.39640000462532043,
-0.16762857139110565,
-0.06859630346298218,
-0.374177485704422,
0.24487890303134918,
0.22737769782543182,
-0.23149128258228302,
0.10548385232686996,
-0.460035115480423,
0.29247498512268066,
0.14869742095470428,
0.019459843635559082,
0.3702305555343628,
-0.00011912988702533767,
0.0063219815492630005,
0.2757810056209564,
0.03525402024388313,
-0.2775220274925232,
-0.44794371724128723,
-0.06502600759267807,
0.10858651250600815,
0.053033504635095596,
0.14755330979824066,
-0.4656312167644501,
-0.17931348085403442,
0.2337307333946228,
-0.34094759821891785,
0.029201770201325417,
0.4485588073730469,
0.06858424097299576,
-0.06341683119535446,
-0.24966342747211456,
-0.08246716856956482,
0.3689350485801697,
0.012542515993118286,
-0.06251813471317291,
0.05927044525742531,
-0.06833595037460327,
0.24112971127033234,
0.21967542171478271,
0.37554827332496643,
-0.03132479637861252,
0.012995908968150616,
-0.19541847705841064,
-0.0935637429356575,
-0.2540266811847687,
-0.34878697991371155,
0.07476746290922165,
0.2519179582595825,
0.7106896042823792,
-0.29586225748062134,
-0.32151079177856445,
-0.2683323621749878,
0.33699485659599304,
-0.05422089993953705,
0.2911204695701599,
0.025418540462851524,
-0.2944924235343933,
0.16272512078285217,
-0.5629907250404358,
0.0742400586605072,
-0.30417510867118835,
0.1429009586572647,
-0.09742772579193115,
-0.35963356494903564,
-0.14377136528491974,
0.18454167246818542,
-0.19759289920330048,
0.11638650298118591,
0.11415465176105499,
0.18843974173069,
-0.039613544940948486,
-0.0923849567770958,
-0.320624977350235,
-0.09855632483959198,
0.0559256337583065,
-0.08153830468654633,
0.0717138722538948,
0.31728658080101013,
0.2842961549758911,
0.06759432703256607,
-0.4174657166004181,
-0.13550490140914917,
0.03223119676113129,
0.1481693834066391,
0.18230850994586945,
-0.17784053087234497,
0.1011013612151146,
-0.07203088700771332,
-0.15337534248828888,
0.01399262621998787,
0.01898307166993618,
-0.07210042327642441,
-0.10625384747982025,
-0.015303093940019608,
0.3571924567222595,
-0.11757729947566986,
-0.5631764531135559,
0.1525678038597107,
-0.5025038123130798,
0.21358953416347504,
-0.052056074142456055,
0.19477376341819763,
-0.21541757881641388,
0.1350177377462387,
0.2971951961517334,
0.08706340193748474,
0.024878544732928276,
-0.3115251958370209,
-0.09980246424674988,
-0.19715753197669983,
0.18287961184978485,
0.09686350077390671,
0.24400949478149414,
-0.21037285029888153,
0.21230565011501312,
0.25713542103767395,
0.2615034282207489,
-0.15388499200344086,
-0.0926651880145073,
-0.032623205333948135,
0.25298041105270386,
0.26684463024139404,
-0.12481998652219772,
0.3939129412174225,
-0.05651196464896202,
0.11579392850399017,
0.10667075216770172,
0.25712355971336365,
-0.06512220203876495,
-0.006171481218189001,
0.56234210729599,
0.06058848649263382,
-0.18365347385406494,
-0.30065202713012695,
-0.10712072998285294,
0.333304762840271,
0.04427948221564293,
-0.0668327808380127,
0.25042015314102173,
-0.27517828345298767,
-0.22715210914611816,
0.01588263548910618,
0.13589243590831757,
0.15665338933467865,
-0.5853272080421448,
0.024328190833330154,
0.1945611834526062,
0.06847166270017624,
0.3222922086715698,
0.30327504873275757,
0.16519594192504883,
0.18117113411426544,
-0.08166655898094177,
0.11702223122119904,
-0.21993212401866913,
-0.38836637139320374,
-0.2060425579547882,
0.20928353071212769,
-0.27081283926963806,
0.2642597556114197,
-0.08326929807662964,
-0.21921762824058533,
0.08026697486639023,
0.09913284331560135,
0.36406925320625305,
-0.18916094303131104,
0.24668265879154205,
-0.10566982626914978,
-0.3831149637699127,
-0.14455747604370117,
0.18933825194835663,
0.17552600800991058,
-0.01771179400384426,
0.05326474830508232,
-0.29823559522628784,
-0.016457267105579376,
0.4027060866355896,
0.0394103117287159,
-0.02912948653101921,
-0.025731299072504044,
0.3644508123397827,
-0.17753033339977264,
0.26386165618896484,
-0.15542252361774445,
0.2872307300567627,
0.027291622012853622,
0.16047270596027374,
0.21987168490886688,
0.5499917268753052,
-0.1693301945924759,
-0.17794585227966309,
-0.07623349875211716,
-0.07281982898712158,
-0.06831668317317963,
0.05826018750667572,
0.1486583799123764,
-0.14891663193702698,
0.3247833251953125,
-0.028516877442598343,
0.47125443816185,
-0.488134503364563,
-0.015310385264456272,
-0.08798126876354218,
-0.10884120315313339,
0.3033909797668457,
-0.09879962354898453,
0.11652989685535431,
0.24114258587360382,
0.017299873754382133,
0.08729690313339233,
-0.11014286428689957,
0.3636821210384369,
0.22695063054561615,
0.12191769480705261,
-0.36820098757743835,
-0.4027220904827118,
0.23166893422603607,
-0.5078888535499573,
-0.4552852213382721,
0.567757785320282,
-0.02766471728682518,
0.20081718266010284,
-0.15344475209712982,
0.06044206768274307,
0.0807495266199112,
0.0480002835392952,
0.03484988957643509,
0.03607706353068352,
-0.019408708438277245,
-0.10792059451341629,
-0.47084999084472656,
-0.16076631844043732,
0.26079460978507996,
-0.20982731878757477,
0.15902237594127655,
-0.11612914502620697,
-0.32037875056266785,
0.13688905537128448,
0.31587323546409607,
-0.050239697098731995,
0.0395466573536396,
0.27443015575408936,
-0.1326722949743271,
0.2099824696779251,
0.03756990283727646,
0.17197613418102264,
0.23739281296730042,
0.20091962814331055,
0.08072681725025177,
-0.05354771763086319,
-0.07819294929504395,
-0.2605934739112854,
0.29239213466644287,
0.19453923404216766,
-0.3651401996612549,
0.38403865694999695,
0.22037038207054138,
0.0489811897277832,
-0.43722662329673767,
-0.004981373902410269,
-0.1904429942369461,
0.2824566066265106,
-0.44940364360809326,
-0.17492952942848206,
-0.3977605104446411,
0.10783595591783524,
-0.13616228103637695,
-0.021801410242915154,
0.07109589129686356,
0.043678682297468185,
0.3717917799949646,
-0.002707182429730892,
-0.08599740266799927,
0.27434518933296204,
0.1501094549894333,
0.1915658414363861,
-0.11042221635580063,
0.17134219408035278,
-0.009668605402112007,
0.19390670955181122,
-0.4710180163383484,
0.04524541273713112,
-0.16064676642417908,
-0.264465868473053,
0.15043796598911285,
-0.19257386028766632,
-0.10991508513689041,
-0.4143473207950592,
-0.07154678553342819,
0.14787307381629944,
-0.19166183471679688,
0.42321354150772095,
0.2326943576335907,
-0.04261329770088196,
-0.18604305386543274,
-0.1944318562746048,
-0.18875940144062042,
-0.031071631237864494,
-0.06713012605905533,
0.07144802063703537,
-0.1346399188041687,
0.04158444702625275,
-0.2561311423778534,
-0.8888221979141235,
0.10030180215835571,
-0.22046785056591034,
0.7185177206993103,
0.05993510037660599,
-0.04604898393154144,
0.5412356853485107,
0.28220465779304504,
0.2012912482023239,
0.07925325632095337,
0.18630707263946533,
-0.37138885259628296,
-0.12308019399642944,
0.0792587473988533,
0.029344765469431877,
-0.45730993151664734,
-0.2983143627643585,
0.19363878667354584,
0.15480294823646545,
0.2074100226163864,
-0.4953378438949585,
0.3497348129749298,
-0.10899475961923599,
-0.1306297928094864,
0.010287361219525337,
-0.1989099681377411,
0.29067954421043396,
-0.20380504429340363,
-0.11591526120901108,
-0.2554522156715393,
0.11759170144796371,
0.3896956443786621,
0.10179699212312698,
0.11271236091852188,
0.3398633897304535,
0.2160484492778778,
0.2003057450056076,
0.3506772518157959,
0.7158647775650024,
0.08281908184289932,
0.03901788219809532,
-0.12803448736667633,
0.4244532883167267,
-0.07285605370998383,
-0.052832331508398056,
0.16007718443870544,
0.059085242450237274,
-0.10871168226003647,
0.4583730399608612,
-0.08424351364374161,
-0.02551242522895336,
-0.029336873441934586,
-0.06426839530467987,
-0.09048974514007568,
-0.3277721107006073,
-0.022521227598190308,
-0.45803236961364746,
0.051297008991241455,
0.15355096757411957,
0.29638049006462097,
0.1280052661895752,
-0.11446704715490341,
-0.04528587684035301,
0.1441744863986969,
0.3194568455219269,
-0.12577563524246216,
-0.31509584188461304,
-0.3613080680370331,
-0.4153892993927002,
0.061277836561203,
0.18691794574260712,
0.5611057877540588,
-0.28809353709220886,
-0.20197267830371857,
0.22314439713954926,
0.10430210828781128,
0.4215117394924164,
-0.3380548655986786,
-0.04229290410876274,
0.12516406178474426,
0.2728697955608368,
-0.29762184619903564,
-0.07354503124952316,
-0.3262292444705963,
-0.2899867594242096,
0.27916112542152405,
0.09725252538919449,
-0.11770715564489365,
-0.13511934876441956,
0.06866124272346497,
0.05842122063040733,
0.016731219366192818,
-0.09900476038455963,
-0.03321949020028114,
0.030632635578513145,
-0.027279583737254143,
0.163777157664299,
0.17259745299816132,
-0.12480330467224121,
-0.49191197752952576,
-0.38490423560142517,
-0.05546538531780243,
0.18964281678199768,
0.5516812801361084,
0.022110460326075554,
0.28406113386154175,
-0.13086839020252228,
0.2439792901277542,
0.23573757708072662,
-0.2960311472415924,
0.2580794095993042,
0.19365936517715454,
0.11734925955533981,
-0.04140176251530647,
0.13703814148902893,
-0.12600739300251007,
0.3830222189426422,
0.3855096697807312,
-0.4349808692932129,
-0.018977593630552292,
-0.3385869562625885,
0.1840333193540573,
-0.2829491198062897,
0.3459421396255493,
0.4015248119831085,
-0.14415399730205536,
-0.12607918679714203,
-0.43605372309684753,
0.41818419098854065,
0.022923922166228294,
-0.1640130579471588,
0.45574915409088135,
0.16198112070560455,
-0.24609872698783875,
0.1927156299352646,
-0.15675197541713715,
0.8095895648002625,
0.18712909519672394,
0.2667507529258728,
0.33403801918029785,
0.11093416064977646,
0.16091923415660858,
-0.42877474427223206,
0.03568391129374504,
-0.005585090257227421,
0.06986446678638458,
-0.13060857355594635,
0.08970138430595398,
-0.16814225912094116,
0.3797646462917328,
-0.29194176197052,
-0.0783904567360878,
0.21016253530979156,
0.19728289544582367,
0.27749714255332947,
-0.07884641736745834,
-0.2581407129764557,
0.01863311417400837,
0.08974480628967285,
0.045830875635147095,
0.05874406173825264,
0.30579471588134766,
0.2888178527355194,
-0.12820416688919067,
0.009775987826287746,
-0.2652782201766968,
-0.6595226526260376,
0.020324548706412315,
-0.5996920466423035,
-0.09471011906862259,
0.14892038702964783,
-0.38634127378463745,
0.18383044004440308,
0.33974966406822205,
0.17645524442195892,
0.4337403476238251,
-0.4633074104785919,
-0.02679910883307457,
0.25110965967178345,
0.11319825053215027,
-0.024627981707453728,
-0.08301449567079544,
0.3481517434120178,
-0.08403269946575165,
-0.1434064358472824,
-0.07100506871938705,
0.02812054753303528,
0.16605646908283234,
-0.1545240581035614,
-0.04968537017703056,
-0.11856761574745178,
-0.3426312208175659,
0.04977000877261162,
0.09896128624677658,
0.1527886986732483,
-0.23698411881923676,
0.06800436228513718,
-0.10388155281543732,
-0.06512413173913956,
0.2742635905742645,
0.2779468595981598,
-0.5032384991645813,
-0.10895740240812302,
0.537933886051178,
-0.0835731029510498,
0.10776539891958237,
0.6408997774124146,
-0.18938583135604858,
-0.05129813030362129,
-0.27751949429512024,
0.016869839280843735,
0.2590852379798889,
-0.3368992805480957,
0.17191676795482635,
0.03212668001651764,
0.3006645739078522,
0.09660173207521439,
-0.04447344318032265,
0.04630471020936966,
-0.05899061635136604,
-0.25131234526634216,
-0.23893380165100098,
-0.08124800771474838,
0.12002337723970413,
0.025225717574357986,
0.2911803126335144,
0.027838818728923798,
0.3665982484817505,
0.07676040381193161,
-0.34703630208969116,
-0.2017674744129181,
-0.023725520819425583,
0.05575789138674736,
0.08048602938652039,
-0.04783482477068901,
0.027862709015607834,
0.11072716116905212,
0.054519083350896835,
0.01495871040970087,
0.10270854830741882,
-0.13355210423469543,
-0.08336614072322845,
-0.2990177571773529,
0.15111865103244781,
0.2011462301015854,
0.1130734384059906,
-0.015308148227632046,
0.06508343666791916,
-0.054260555654764175,
-0.06005212664604187,
0.07611546665430069,
0.380892276763916,
0.01741819456219673,
0.3620304763317108,
0.11884444952011108,
0.3976137042045593,
-0.09363581240177155,
-0.26238757371902466,
-0.035440634936094284,
-0.07757268846035004,
0.16449393332004547,
-0.062437158077955246,
-0.18508166074752808,
-0.0580996610224247,
-0.13248762488365173,
0.022096645087003708,
0.0893227607011795,
0.151860773563385,
-0.05466040223836899,
-0.289629191160202,
0.2135312706232071,
0.15491029620170593,
0.05066429451107979,
0.3179011940956116,
-0.15313830971717834,
-0.27086302638053894,
-0.11027614772319794,
0.07899048179388046,
-0.024608943611383438,
0.017690228298306465,
-0.33513519167900085,
-0.015275944955646992,
-0.025512956082820892,
0.0031258706003427505,
0.05548182502388954,
-0.3541378378868103,
0.36231714487075806,
-0.012500505894422531,
0.11213471740484238,
-0.5960306525230408,
0.11296429485082626,
0.3746998608112335,
0.06133996695280075,
-0.007918073795735836,
-0.25864267349243164,
-0.25296545028686523,
-0.0035198021214455366,
0.4860924482345581,
-0.24271820485591888,
0.27490460872650146,
-0.14758306741714478,
-0.026231074705719948,
0.25579455494880676,
-0.261529803276062,
-0.24777132272720337,
0.20552405714988708,
-0.4631270170211792,
0.16095562279224396,
0.10135552287101746,
0.40353327989578247,
-0.04632585123181343,
0.10066629946231842,
-0.21050317585468292,
-0.021032175049185753,
-0.14807413518428802,
-0.15863953530788422,
-0.35758039355278015,
-0.08875410258769989,
-0.13836480677127838,
-0.17162904143333435,
-0.08024276047945023,
-0.028585582971572876,
0.12382249534130096,
0.2392336130142212,
-0.2778199017047882,
-0.5319435000419617,
-0.24919746816158295,
-0.18340715765953064,
0.25141972303390503,
-0.11409881711006165,
0.35201412439346313,
0.10312899947166443,
-0.018660634756088257,
0.1629292368888855,
0.3187716603279114,
0.5043588876724243,
0.17908240854740143,
-0.10142122954130173,
0.12033823132514954,
-0.29984405636787415,
-0.0056222532875835896,
0.02088283561170101,
0.6239434480667114,
0.03267843648791313,
0.11734264343976974,
0.05098661407828331,
0.0518919862806797,
0.0013064364902675152,
0.04136094078421593,
-0.00849880836904049,
0.04003825783729553,
-0.6968817710876465,
0.4176643192768097,
0.0176084004342556,
0.23933860659599304,
-0.20144854485988617,
-0.04128597676753998,
-0.21955260634422302,
0.3418342173099518,
0.6031690239906311,
0.1864219307899475,
0.018609482795000076,
-0.09348351508378983,
0.05550796538591385,
-0.18102318048477173,
0.1212921291589737,
0.07660214602947235,
-0.004844893701374531,
-0.10684609413146973,
-0.019550763070583344,
-0.21396876871585846,
0.0899251401424408,
0.2652163505554199,
0.2187449187040329,
0.01500636711716652,
-0.16383621096611023,
0.06711503863334656,
0.061504289507865906,
-0.009866583161056042,
-0.11820504069328308,
-0.2539229393005371,
0.22443047165870667,
-0.1969873607158661,
0.01516187284141779,
-0.006939457263797522,
0.14061564207077026,
0.14958621561527252,
-0.07372315973043442,
-0.13266348838806152,
0.191030353307724,
-0.14544084668159485,
-0.057076580822467804,
-0.07594990730285645,
0.17733639478683472,
0.3487192988395691,
0.06860228627920151,
0.09640734642744064,
0.359950453042984,
-0.09155578166246414,
0.07731146365404129,
-0.4108832776546478,
-0.14205186069011688,
-0.2299596071243286,
0.29942330718040466,
0.04981208220124245,
0.3389115035533905,
0.006641853135079145,
-0.3442060649394989,
0.13541504740715027,
0.25973156094551086,
0.3330134153366089,
-0.16282786428928375,
-0.14009781181812286,
0.047731850296258926,
-0.32309162616729736,
0.21396774053573608,
0.00005599336509476416,
0.2621961534023285,
0.043066442012786865,
0.16071416437625885,
-0.512168824672699,
-0.9930139183998108,
0.625044047832489,
-0.7181702256202698,
-0.2236548215150833,
-0.14277762174606323,
0.2892628610134125,
0.3226872384548187,
-0.10158288478851318,
-0.5634549856185913,
-0.07286859303712845,
0.4693160057067871,
-0.0401696041226387,
-0.09203130006790161,
0.11232142150402069,
0.1479109823703766,
0.31001314520835876,
-0.16443325579166412,
0.9622837901115417,
0.3237745463848114,
-0.1628980040550232,
0.18723979592323303,
-0.4706275463104248
] |
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.03739603981375694,
-0.02138594537973404,
0.14961285889148712,
-0.0189274363219738,
-0.07773527503013611,
0.22454902529716492,
0.36217841506004333,
-0.4294893741607666,
0.1633363664150238,
0.15252938866615295,
0.2624570429325104,
-0.43249067664146423,
-0.020130518823862076,
-0.07111965864896774,
0.2396368682384491,
-0.12686210870742798,
0.25981467962265015,
-0.332984983921051,
-0.023115374147892,
0.08259598910808563,
0.24257633090019226,
-0.029656806960701942,
0.02836143970489502,
-0.0865972638130188,
-0.014304457232356071,
0.20087748765945435,
-0.09348531812429428,
-0.3122858703136444,
-0.6014058589935303,
0.2304871529340744,
0.27640727162361145,
0.07687503099441528,
0.16537611186504364,
-0.00012745545245707035,
0.1065068244934082,
0.165228933095932,
-0.02306024730205536,
-0.49072152376174927,
-0.1459859162569046,
-0.1808251440525055,
0.11329268664121628,
0.011158091016113758,
-0.0032407206017524004,
0.12947304546833038,
-0.2341342568397522,
0.20617122948169708,
-0.19666814804077148,
0.3206735849380493,
0.5292422771453857,
0.004974265117198229,
0.23936760425567627,
-0.12274832278490067,
0.11940993368625641,
0.35484352707862854,
-0.10677260905504227,
-0.056146737188100815,
0.07665655016899109,
0.03786657378077507,
0.2733805179595947,
0.21346040070056915,
0.3169708847999573,
0.08640562742948532,
-0.1138322502374649,
-0.29079514741897583,
-0.19388215243816376,
-0.1545201689004898,
-0.23830674588680267,
-0.21708492934703827,
0.32883474230766296,
0.7538297772407532,
-0.31502458453178406,
-0.6087887287139893,
-0.34010303020477295,
0.1912582665681839,
-0.1430550366640091,
0.39232146739959717,
-0.19024507701396942,
-0.257382333278656,
0.39083898067474365,
-0.6390117406845093,
-0.20491015911102295,
-0.3079327642917633,
0.12957227230072021,
0.015354265458881855,
-0.11475719511508942,
0.022579476237297058,
0.1235881820321083,
-0.17346075177192688,
0.06426665931940079,
0.1816408336162567,
0.11083509773015976,
0.03872982785105705,
-0.010974711738526821,
-0.1475500911474228,
-0.3412715494632721,
0.042394183576107025,
-0.18611258268356323,
0.042102668434381485,
0.4260539412498474,
0.5204823613166809,
0.06429048627614975,
-0.5445073843002319,
-0.07751479744911194,
0.17376483976840973,
0.24078676104545593,
-0.02525745891034603,
-0.2616625428199768,
0.15693028271198273,
0.0426027774810791,
0.19033178687095642,
0.17482829093933105,
0.023703651502728462,
-0.34054064750671387,
-0.12930135428905487,
0.11949269473552704,
0.3347742557525635,
-0.1888239085674286,
-0.5020067691802979,
0.07760586589574814,
-0.45458149909973145,
0.18543733656406403,
-0.07164088636636734,
0.12072447687387466,
-0.22419492900371552,
0.41960540413856506,
0.1554587036371231,
0.06409851461648941,
-0.13485242426395416,
-0.4040718078613281,
0.18832148611545563,
-0.15597157180309296,
0.19084389507770538,
-0.049908269196748734,
0.29601794481277466,
-0.37229791283607483,
0.08815990388393402,
0.1427764594554901,
0.18106350302696228,
-0.12146444618701935,
-0.1279870867729187,
0.10105711221694946,
0.17803405225276947,
0.21321645379066467,
-0.1896713525056839,
0.17230041325092316,
-0.08058828860521317,
0.08845645934343338,
-0.017210716381669044,
-0.019968047738075256,
-0.17412559688091278,
-0.1103576123714447,
0.34848204255104065,
-0.019380513578653336,
-0.22609633207321167,
-0.206711083650589,
-0.002878498751670122,
0.1341746747493744,
-0.03540082648396492,
-0.26855432987213135,
0.14787571132183075,
-0.11580480635166168,
-0.3188742995262146,
-0.015279595740139484,
0.015730276703834534,
0.21443966031074524,
-0.6616703271865845,
-0.13491173088550568,
0.18249209225177765,
-0.009823443368077278,
-0.08027255535125732,
0.25918808579444885,
-0.01824859157204628,
0.13359835743904114,
-0.021425137296319008,
0.06138481944799423,
-0.04310699552297592,
-0.4288678467273712,
-0.31873226165771484,
0.18909324705600739,
-0.27187058329582214,
0.2365470975637436,
0.17325927317142487,
-0.23176652193069458,
0.3257885277271271,
-0.17452062666416168,
0.17625872790813446,
-0.2554751932621002,
0.17862190306186676,
-0.17102836072444916,
-0.4389975666999817,
-0.45111528038978577,
0.031019385904073715,
-0.0533377006649971,
0.06812044233083725,
0.06481897830963135,
0.05645307898521423,
0.0423978753387928,
0.34881672263145447,
0.08292911946773529,
0.011816348880529404,
-0.03380246087908745,
0.20004625618457794,
-0.08436442166566849,
0.018615297973155975,
-0.22436709702014923,
0.08376692980527878,
0.208104208111763,
0.07658132165670395,
0.1705433875322342,
0.42478513717651367,
-0.17888028919696808,
-0.24761410057544708,
0.03832343965768814,
0.1872696578502655,
0.12628532946109772,
-0.03958769142627716,
0.22733022272586823,
-0.08251790702342987,
0.35044118762016296,
-0.2704235315322876,
0.4691349267959595,
-0.4019199013710022,
0.03728434070944786,
-0.05362807214260101,
-0.16358409821987152,
0.2474769800901413,
0.08259118348360062,
0.10191799700260162,
-0.03941222280263901,
-0.10327514261007309,
-0.0926559641957283,
-0.024524694308638573,
0.518794596195221,
0.15306439995765686,
0.2767794728279114,
-0.1384766697883606,
-0.2536574900150299,
0.21437056362628937,
-0.261827677488327,
-0.3397198021411896,
0.5486401915550232,
-0.09721934050321579,
0.4484134912490845,
-0.025512641295790672,
0.19515013694763184,
0.14047251641750336,
-0.04030884429812431,
0.07058780640363693,
-0.07319753617048264,
-0.021308403462171555,
-0.009351367130875587,
-0.5304046273231506,
-0.17360781133174896,
0.1465591937303543,
-0.21342769265174866,
0.14177805185317993,
-0.14603902399539948,
-0.2046634405851364,
-0.08465760201215744,
0.23014456033706665,
-0.021298276260495186,
0.05920865759253502,
0.15656673908233643,
0.08325207233428955,
0.211786687374115,
0.05535571277141571,
0.31839317083358765,
0.34749484062194824,
0.08310975134372711,
0.02466166950762272,
0.021408822387456894,
-0.2565382421016693,
-0.1302020102739334,
0.27682074904441833,
0.21888916194438934,
-0.3133852779865265,
0.3226567804813385,
0.20633280277252197,
0.03175397217273712,
-0.4395207464694977,
0.03197207674384117,
-0.04095397889614105,
0.036724358797073364,
-0.6262534856796265,
-0.009059724397957325,
-0.5513138771057129,
0.16901680827140808,
-0.3306777775287628,
-0.08182653039693832,
-0.16236354410648346,
0.004768380895256996,
0.5723299384117126,
0.1694377213716507,
-0.08129166811704636,
0.21946734189987183,
-0.0876331776380539,
0.36800384521484375,
-0.19863899052143097,
-0.06180188059806824,
0.03823793679475784,
0.2359500676393509,
-0.41492563486099243,
0.002801999682560563,
0.0273971538990736,
-0.34622979164123535,
0.24148890376091003,
-0.41488102078437805,
-0.3009610176086426,
-0.23227931559085846,
-0.06792039424180984,
0.1891995370388031,
0.06539423018693924,
0.24021123349666595,
0.345729798078537,
0.12701012194156647,
-0.014629656448960304,
-0.041871875524520874,
-0.2779378890991211,
0.048467379063367844,
-0.11599677056074142,
-0.10514958202838898,
0.13449729979038239,
0.09828387200832367,
-0.28272488713264465,
-0.8775432705879211,
0.08410213887691498,
-0.16890907287597656,
0.4604315757751465,
0.0795200765132904,
0.18564337491989136,
0.3558036684989929,
0.34620416164398193,
0.10591516643762589,
-0.04413318261504173,
0.15444380044937134,
-0.08820769190788269,
-0.2302584946155548,
0.09353730827569962,
0.0836201086640358,
-0.21862183511257172,
-0.005752074532210827,
0.28069886565208435,
0.05272300913929939,
0.3915773928165436,
-0.4168848693370819,
0.2677837014198303,
0.2194799780845642,
-0.1391705721616745,
0.0019316199468448758,
-0.36801856756210327,
0.5466492176055908,
-0.08344078063964844,
0.015695953741669655,
-0.23772892355918884,
0.2056250274181366,
0.13749225437641144,
0.12257737666368484,
0.2549116313457489,
0.32310938835144043,
0.28042280673980713,
0.2665032744407654,
0.5264001488685608,
0.3263052999973297,
-0.21030333638191223,
0.2247069776058197,
-0.12281692773103714,
0.4726439118385315,
0.041154101490974426,
0.09224210679531097,
-0.06510743498802185,
-0.09600192308425903,
-0.18241608142852783,
0.3834356963634491,
-0.03641126677393913,
-0.07709604501724243,
-0.18889813125133514,
0.2259596884250641,
-0.27499085664749146,
-0.2729184031486511,
0.04257373511791229,
-0.39524364471435547,
0.13605767488479614,
0.2876463234424591,
0.35825517773628235,
0.10156272351741791,
0.03223658725619316,
-0.03198918700218201,
0.2270752638578415,
0.33973217010498047,
-0.009860547259449959,
-0.20522180199623108,
-0.08765148371458054,
-0.20948763191699982,
0.2032211273908615,
0.4069233536720276,
0.6541625261306763,
-0.1864345371723175,
-0.08865860849618912,
0.12884853780269623,
-0.019111067056655884,
0.2862902283668518,
-0.4888170659542084,
-0.04568939656019211,
-0.07928337156772614,
0.3533954322338104,
-0.13272835314273834,
-0.12948408722877502,
-0.13578517735004425,
-0.39848649501800537,
0.11708329617977142,
0.07943373918533325,
-0.12472131848335266,
-0.03305794671177864,
-0.03154144436120987,
0.12648138403892517,
-0.10874973237514496,
0.1763422191143036,
-0.14731045067310333,
-0.01872403919696808,
-0.13511496782302856,
-0.00891260989010334,
0.08401565998792648,
-0.27807915210723877,
-0.41680508852005005,
-0.07251705229282379,
-0.08884309232234955,
0.26816633343696594,
0.38959643244743347,
0.16215085983276367,
0.2874223589897156,
-0.1167987659573555,
0.023920364677906036,
0.0930401012301445,
0.09800942242145538,
0.3213096261024475,
0.2371065318584442,
0.1738170087337494,
-0.18433837592601776,
0.0630604550242424,
0.08204886317253113,
0.10178321599960327,
0.541607141494751,
-0.3363022804260254,
-0.11839941889047623,
-0.14562195539474487,
0.09618893265724182,
-0.2815694510936737,
0.39414557814598083,
0.5397123098373413,
-0.2854296565055847,
-0.3250676095485687,
-0.4289255142211914,
0.42464861273765564,
-0.09044796228408813,
-0.2281329482793808,
0.3700992465019226,
0.10165255516767502,
-0.3230116665363312,
0.15113690495491028,
0.027633825317025185,
0.9220038652420044,
0.20887282490730286,
0.20676296949386597,
0.18591775000095367,
-0.12466596812009811,
0.4331417977809906,
-0.5090643763542175,
0.15221156179904938,
0.11980843544006348,
0.010109353810548782,
-0.36688733100891113,
0.10920104384422302,
0.0915946364402771,
0.43997079133987427,
-0.17496004700660706,
0.048519063740968704,
0.1938178539276123,
0.31994664669036865,
0.2437155544757843,
-0.022406917065382004,
-0.40074288845062256,
0.0955585315823555,
-0.14481236040592194,
-0.00006273244798649102,
0.10246653109788895,
0.2897038757801056,
0.02654196508228779,
-0.09099138528108597,
-0.04982895031571388,
-0.41636034846305847,
-0.7078108191490173,
-0.22666549682617188,
-0.41405776143074036,
-0.1478799730539322,
-0.044511012732982635,
-0.11906107515096664,
0.11901075392961502,
0.2762695848941803,
0.20149262249469757,
0.24185121059417725,
-0.37732964754104614,
0.020052190870046616,
0.014465320855379105,
0.07429472357034683,
0.10238751024007797,
-0.06534537672996521,
0.3629048764705658,
-0.07452072203159332,
0.041326168924570084,
0.053951263427734375,
-0.0798187330365181,
-0.06716115772724152,
-0.1024448573589325,
-0.04558625444769859,
-0.05519681051373482,
-0.3396153450012207,
0.1325659453868866,
-0.10264410078525543,
0.05456090718507767,
-0.19854936003684998,
-0.00925556942820549,
-0.2127404659986496,
0.11213517189025879,
0.18858198821544647,
0.08923923969268799,
-0.43637406826019287,
-0.09784921258687973,
0.6311434507369995,
-0.28869208693504333,
0.12894724309444427,
0.4841497242450714,
-0.3160092234611511,
-0.03331657499074936,
-0.19413648545742035,
-0.021366603672504425,
-0.19929686188697815,
-0.5194510817527771,
0.014784726314246655,
-0.04460342228412628,
0.08007579296827316,
-0.12702246010303497,
0.0733654722571373,
0.18021677434444427,
0.17705924808979034,
-0.1799430102109909,
-0.3772442638874054,
0.04200272634625435,
0.2579893171787262,
0.24474799633026123,
0.34691911935806274,
0.09963805973529816,
0.2187814861536026,
-0.004220882430672646,
-0.5193970799446106,
-0.10863865166902542,
-0.10017827898263931,
0.11440391838550568,
0.00744418753311038,
0.058074284344911575,
0.349564790725708,
0.07146863639354706,
-0.25467005372047424,
-0.14409933984279633,
0.15392445027828217,
-0.149736687541008,
0.022460319101810455,
-0.23737172782421112,
0.22851631045341492,
0.04685749486088753,
0.14544443786144257,
-0.0425269678235054,
-0.01644555851817131,
-0.030559692531824112,
0.04481454938650131,
-0.08867405354976654,
0.35844725370407104,
0.10184147208929062,
0.19138135015964508,
0.14217673242092133,
0.4053513705730438,
-0.24330347776412964,
-0.06507115811109543,
0.06824704259634018,
0.19817259907722473,
0.12253805994987488,
0.225486621260643,
-0.20100907981395721,
-0.07133158296346664,
-0.16644948720932007,
0.25832444429397583,
0.22472503781318665,
0.05033441632986069,
0.05949610844254494,
-0.13971540331840515,
0.24661479890346527,
0.0786280483007431,
0.3503727912902832,
0.6881960034370422,
-0.11853542923927307,
-0.4578859806060791,
0.18320098519325256,
-0.027099009603261948,
-0.13172397017478943,
-0.02542000822722912,
-0.3005431294441223,
0.046585626900196075,
-0.16275571286678314,
0.127300426363945,
0.014953991398215294,
-0.3517831563949585,
0.4608774781227112,
0.12135789543390274,
0.14003589749336243,
-0.42946362495422363,
0.18580813705921173,
0.6682866811752319,
0.0034414695110172033,
0.21896986663341522,
-0.4196909964084625,
-0.3038710653781891,
0.1169406995177269,
0.3170003294944763,
-0.3769646883010864,
0.26903244853019714,
-0.17610085010528564,
-0.0776471197605133,
0.00457635847851634,
-0.1181805357336998,
-0.33012595772743225,
0.2845059633255005,
-0.058605555444955826,
0.47382763028144836,
0.5105352401733398,
0.5142280459403992,
-0.017204130068421364,
-0.09095622599124908,
-0.45963355898857117,
0.09346742182970047,
0.08788774907588959,
-0.19864921271800995,
-0.5646132826805115,
-0.2639584243297577,
-0.14811019599437714,
-0.0202090535312891,
-0.16724804043769836,
0.11140567809343338,
0.21923908591270447,
0.2884191572666168,
-0.2779071629047394,
-0.5320424437522888,
-0.21588359773159027,
-0.23740217089653015,
0.317085325717926,
-0.2049434632062912,
0.270193487405777,
0.20360594987869263,
0.0774114802479744,
0.2706264853477478,
0.3161216974258423,
0.40583375096321106,
0.09155824035406113,
0.00799383595585823,
0.026318229734897614,
-0.24949753284454346,
0.22777743637561798,
0.02649804763495922,
0.4185412526130676,
-0.002292104298248887,
0.1665533483028412,
0.3360881209373474,
-0.029655521735548973,
0.05638505890965462,
0.1897275298833847,
-0.3109249472618103,
0.01603003777563572,
-0.8132583498954773,
0.367828905582428,
-0.019312163814902306,
0.2532852292060852,
-0.2053135335445404,
0.03597225248813629,
-0.037747908383607864,
0.36392512917518616,
0.3746536374092102,
0.20767633616924286,
0.07155492901802063,
-0.001427441486157477,
-0.001318877562880516,
0.04279588907957077,
0.18326403200626373,
0.31724610924720764,
-0.05974109098315239,
0.011521562933921814,
-0.017708808183670044,
-0.5737124681472778,
0.04231663793325424,
0.05103769153356552,
0.06254564225673676,
-0.010965469293296337,
-0.27958446741104126,
0.22456100583076477,
0.3119564950466156,
0.1439359486103058,
-0.03900434449315071,
-0.27612999081611633,
0.35550880432128906,
-0.14906246960163116,
0.06748306006193161,
-0.033601682633161545,
0.20493951439857483,
0.09367921203374863,
-0.4758705794811249,
0.12594562768936157,
0.0696859359741211,
-0.23212023079395294,
-0.0411871075630188,
-0.02392764389514923,
0.15239262580871582,
0.11860068887472153,
0.20390506088733673,
0.041762541979551315,
0.35597947239875793,
-0.06772907078266144,
-0.11481400579214096,
-0.5655720233917236,
-0.09749504923820496,
-0.24597378075122833,
0.3128036856651306,
-0.13745950162410736,
0.30274954438209534,
-0.14506258070468903,
0.04408395662903786,
-0.007792525924742222,
0.3880825638771057,
0.35656219720840454,
0.0990409180521965,
-0.1623942106962204,
-0.2619991898536682,
-0.3227410614490509,
0.13922463357448578,
0.2651120126247406,
0.24506531655788422,
-0.031061474233865738,
0.11291606724262238,
-0.4395875036716461,
-0.7549790740013123,
0.44633927941322327,
-0.5544978380203247,
-0.0952448919415474,
0.016279151663184166,
0.3003905117511749,
0.35469046235084534,
-0.08896277844905853,
-0.5038309097290039,
-0.10517752170562744,
0.3698123097419739,
0.06514578312635422,
-0.04761239141225815,
0.0583503358066082,
0.11366866528987885,
0.054623786360025406,
-0.02786085568368435,
1.0447938442230225,
0.21618230640888214,
-0.17629773914813995,
0.10371324419975281,
-0.43450480699539185
] |
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.3742081820964813,
0.1478581726551056,
0.08840718865394592,
0.0458865724503994,
0.28045302629470825,
0.12814880907535553,
0.15311108529567719,
0.37765195965766907,
-0.24275599420070648,
0.2011214941740036,
0.30520057678222656,
0.4177045226097107,
-0.1865009218454361,
0.11496050655841827,
-0.1479029655456543,
0.009955205954611301,
0.05309228599071503,
0.25207939743995667,
0.12918119132518768,
0.006046693306416273,
-0.10626416653394699,
0.17224447429180145,
-0.19424939155578613,
0.2815803587436676,
-0.2942170202732086,
0.11772787570953369,
-0.04198138043284416,
-0.04793957993388176,
-0.12908244132995605,
-0.5930625200271606,
0.33762168884277344,
-0.1589791625738144,
0.24371537566184998,
0.33999091386795044,
-0.0001267467305297032,
0.11141281574964523,
0.40630844235420227,
-0.008188106119632721,
-0.25496727228164673,
-0.5021973252296448,
-0.1217932254076004,
-0.05364786833524704,
0.36649471521377563,
-0.08176634460687637,
0.10271163284778595,
-0.7000571489334106,
0.013413429260253906,
0.04993536323308945,
-0.16594728827476501,
0.3297194242477417,
0.13600176572799683,
0.06373389810323715,
0.26169174909591675,
-0.09752002358436584,
0.22518660128116608,
0.06212686374783516,
-0.00796754751354456,
0.4649409055709839,
0.07230997085571289,
-0.11018813401460648,
0.23560021817684174,
-0.08482427150011063,
0.06871281564235687,
-0.05136901140213013,
0.09923429787158966,
0.18255457282066345,
0.2629997134208679,
-0.16271033883094788,
0.19890330731868744,
0.03185813128948212,
0.5882599353790283,
-0.6263429522514343,
-0.4298144578933716,
-0.01766037940979004,
0.22020746767520905,
-0.26078343391418457,
0.22628559172153473,
0.2429373562335968,
-0.10094092041254044,
0.1628728061914444,
-0.057002224028110504,
-0.12062066048383713,
-0.0635356456041336,
-0.01648246869444847,
-0.42225322127342224,
0.3365805447101593,
0.1881289929151535,
0.14030873775482178,
-0.11323943734169006,
-0.00933008175343275,
0.0025083606597036123,
-0.10973343998193741,
0.10199172049760818,
-0.07801545411348343,
-0.2746739387512207,
-0.014432007446885109,
-0.07753496617078781,
0.16330939531326294,
0.1757594347000122,
0.20840875804424286,
0.0030337844509631395,
-0.27921199798583984,
0.2704054117202759,
0.08606018871068954,
0.10359566658735275,
0.12690795958042145,
-0.020438436418771744,
0.15629269182682037,
0.10058417916297913,
-0.10707692801952362,
0.06900351494550705,
-0.003141616005450487,
-0.058131176978349686,
-0.056824941188097,
0.3815543055534363,
0.028341449797153473,
0.7426703572273254,
-0.23551161587238312,
-0.20667076110839844,
0.17393004894256592,
-0.3724196255207062,
-0.17932522296905518,
-0.2660045325756073,
0.21872402727603912,
0.030557233840227127,
0.36071649193763733,
-0.18492178618907928,
0.3320738971233368,
-0.09560557454824448,
-0.2356075644493103,
-0.11359501630067825,
0.14577265083789825,
0.0022749670315533876,
-0.1549616903066635,
0.02687131054699421,
-0.3101933002471924,
-0.08789611607789993,
0.39052408933639526,
0.0014730315888300538,
0.12603123486042023,
-0.14159895479679108,
-0.054173827171325684,
-0.153624027967453,
0.47547638416290283,
-0.2805730104446411,
0.2540760636329651,
0.13056612014770508,
-0.4681428074836731,
-0.3429702818393707,
0.21160997450351715,
-0.20337770879268646,
-0.40394851565361023,
-0.4072827696800232,
0.12810862064361572,
-0.1272275298833847,
-0.18097572028636932,
-0.14971862733364105,
-0.005262367427349091,
0.23063455522060394,
-0.15096932649612427,
-0.014637320302426815,
-0.6668523550033569,
0.10322301834821701,
-0.31990453600883484,
0.24670232832431793,
0.154376819729805,
-0.6335013508796692,
0.008750800043344498,
0.17047910392284393,
-0.19002199172973633,
0.1658162921667099,
-0.11979710310697556,
0.005514770280569792,
-0.1398751586675644,
0.02903868816792965,
0.04766327515244484,
0.34689417481422424,
-0.1955854445695877,
-0.3685944974422455,
0.07286828756332397,
0.05808328464627266,
-0.0002384266263106838,
0.2594132125377655,
-0.31390276551246643,
0.047422848641872406,
0.1808192878961563,
-0.1679069846868515,
0.08111046254634857,
0.0019100159406661987,
0.01607031561434269,
-0.17401188611984253,
-0.04215686768293381,
0.38285401463508606,
0.27839580178260803,
0.1499214768409729,
-0.1601753830909729,
0.029361627995967865,
-0.2005852907896042,
0.1286724954843521,
-0.08686085790395737,
0.0851055160164833,
0.026491647586226463,
0.4046373665332794,
-0.14303970336914062,
0.03394698351621628,
-0.21758520603179932,
-0.31970053911209106,
0.18671192228794098,
0.06987383216619492,
0.02653246372938156,
-0.3560790717601776,
-0.18485930562019348,
-0.17959092557430267,
0.10886520892381668,
-0.10849004238843918,
-0.02832825295627117,
0.005802195053547621,
0.3832252025604248,
0.07114611566066742,
0.11154824495315552,
-0.29748228192329407,
0.24753761291503906,
0.024240698665380478,
0.17813539505004883,
-0.021211715415120125,
0.4727589190006256,
-0.4082588851451874,
-0.31531232595443726,
0.09022575616836548,
0.04570639878511429,
0.10286205261945724,
0.039166804403066635,
-0.0002058112295344472,
0.2879416346549988,
-0.0028904753271490335,
0.058465536683797836,
-0.02767629735171795,
0.22501391172409058,
0.013864901848137379,
-0.1725018322467804,
-0.192661315202713,
0.2565888464450836,
0.0011453641345724463,
0.40098264813423157,
0.11842470616102219,
0.371597021818161,
0.5518636703491211,
0.30029842257499695,
-0.023460891097784042,
0.09365016967058182,
-0.15085236728191376,
-0.0168526042252779,
0.10855693370103836,
-0.08392013609409332,
0.039351966232061386,
-0.10692933201789856,
0.21006649732589722,
-0.007699920795857906,
-0.5035151243209839,
0.08401936292648315,
0.383317768573761,
-0.05956029146909714,
0.14520256221294403,
0.14363053441047668,
-0.26090529561042786,
0.048430267721414566,
0.03393293544650078,
0.13457763195037842,
0.2741987705230713,
0.1518544703722,
-0.12465644627809525,
0.1309269815683365,
-0.31881654262542725,
0.1648004949092865,
0.18283995985984802,
0.10894753783941269,
0.1759980171918869,
0.18312014639377594,
0.2829296886920929,
0.08661849051713943,
-0.056707415729761124,
-0.3240143954753876,
0.13876833021640778,
0.3523798882961273,
-0.4344465136528015,
0.25300806760787964,
-0.3444134294986725,
0.2502819001674652,
-0.16690954566001892,
-0.18621070683002472,
-0.41476038098335266,
-0.24293874204158783,
-0.030438313260674477,
0.09636929631233215,
0.10050369054079056,
0.23970112204551697,
-0.3122071623802185,
-0.1296316683292389,
0.04628254845738411,
-0.39881208539009094,
-0.21866846084594727,
-0.17585736513137817,
-0.44862914085388184,
-0.019090833142399788,
0.20133693516254425,
-0.39512497186660767,
0.03965185582637787,
-0.21996314823627472,
-0.21378637850284576,
-0.3060606122016907,
-0.18519717454910278,
0.08338803797960281,
-0.23932835459709167,
0.29921025037765503,
0.25972986221313477,
-0.038241736590862274,
-0.047348931431770325,
-0.09889212250709534,
0.3235456049442291,
-0.3321585953235626,
-0.28475865721702576,
0.10064614564180374,
-0.09428587555885315,
0.03566056862473488,
-0.060392655432224274,
-0.49700477719306946,
-0.357511043548584,
-0.14624807238578796,
0.01242407038807869,
0.04109968617558479,
0.15556932985782623,
-0.062472663819789886,
0.23095166683197021,
-0.12492505460977554,
-0.14891237020492554,
-0.010573525913059711,
-0.027686629444360733,
0.003966592252254486,
0.23732520639896393,
0.006279996130615473,
-0.2969488799571991,
-0.05115535855293274,
0.0064250389114022255,
0.0896269902586937,
0.03670281171798706,
-0.31444069743156433,
-0.14395059645175934,
0.0547298938035965,
0.538925290107727,
-0.32073700428009033,
0.019200343638658524,
0.2970770299434662,
0.2694782316684723,
-0.03679555654525757,
0.06308899819850922,
-0.17872421443462372,
-0.18927976489067078,
0.1446790248155594,
0.1415683776140213,
0.17441338300704956,
0.24109219014644623,
-0.08494823426008224,
0.5790001749992371,
-0.07034275680780411,
-0.2986297011375427,
0.25100085139274597,
-0.29209089279174805,
0.34119388461112976,
0.06305354088544846,
-0.17983019351959229,
-0.08869793266057968,
-0.048329297453165054,
0.015639975666999817,
0.2517926096916199,
-0.21847978234291077,
-0.14967502653598785,
-0.12394267320632935,
-0.25395336747169495,
-0.2212260514497757,
-0.04261007532477379,
-0.06121145561337471,
0.035998597741127014,
0.24408677220344543,
-0.05510824918746948,
0.029861101880669594,
-0.040375180542469025,
-0.05459703132510185,
0.14564479887485504,
0.3016494810581207,
-0.21570834517478943,
0.10174933820962906,
-0.18308570981025696,
-0.1527075171470642,
-0.18033301830291748,
0.3837950825691223,
0.0439700223505497,
0.4377392530441284,
0.15525440871715546,
-0.19997195899486542,
0.08330783993005753,
-0.1641709953546524,
0.5928213000297546,
-0.11870601773262024,
0.12393920123577118,
0.15853995084762573,
-0.13711512088775635,
-0.39554208517074585,
-0.4143475890159607,
-0.46182283759117126,
0.08394217491149902,
0.004962449427694082,
0.19732850790023804,
-0.29529011249542236,
-0.1378476321697235,
0.2305312156677246,
0.1844812035560608,
0.0506925992667675,
-0.026823928579688072,
-0.41646695137023926,
-0.06581658869981766,
-0.16919289529323578,
0.21112270653247833,
-0.12696261703968048,
0.3692868649959564,
-0.16570830345153809,
0.47812122106552124,
-0.14052465558052063,
-0.17769566178321838,
0.1654667854309082,
0.22072899341583252,
0.33840370178222656,
-0.3253706395626068,
-0.0032505725976079702,
-0.1957056224346161,
0.224289208650589,
0.6268395185470581,
0.5107084512710571,
0.32667917013168335,
-0.3425287902355194,
0.215790256857872,
0.2769278883934021,
0.5334734916687012,
-0.019867533817887306,
-0.4827551543712616,
-0.09585971385240555,
-0.24713554978370667,
0.06028900668025017,
-0.06590292602777481,
-0.032102420926094055,
0.559326171875,
-0.10960972309112549,
-0.5021070241928101,
-0.02020195685327053,
0.569821834564209,
0.189466655254364,
-0.07937053591012955,
0.09573403000831604,
0.37784215807914734,
-0.15573787689208984,
0.36029958724975586,
-0.13346920907497406,
0.7824109196662903,
0.01754576712846756,
0.2209126204252243,
0.11558255553245544,
-0.4412604868412018,
0.28626182675361633,
-0.06137840449810028,
0.09111903607845306,
-0.5176579356193542,
-0.33662304282188416,
-0.14645269513130188,
-0.239501491189003,
0.13034377992153168,
0.014563596807420254,
-0.20682848989963531,
0.2747062146663666,
0.04758942499756813,
0.4116242229938507,
0.3609580993652344,
0.31710514426231384,
-0.07195117324590683,
0.2720511555671692,
-0.2521827816963196,
-0.021756332367658615,
-0.05935226008296013,
0.09170541167259216,
0.1281193494796753,
0.05869549140334129,
-0.22393770515918732,
-0.42487624287605286,
-0.3383878469467163,
0.058469388633966446,
-0.2342778891324997,
-0.04213744401931763,
0.45089519023895264,
-0.5700245499610901,
0.11825951188802719,
0.04261620715260506,
-0.11736375838518143,
-0.03296329081058502,
-0.15812742710113525,
-0.01644032821059227,
-0.06273269653320312,
0.18405510485172272,
0.14150497317314148,
0.07661443203687668,
0.422201931476593,
-0.011286048218607903,
-0.3214787244796753,
0.29161930084228516,
-0.03923758864402771,
0.019097454845905304,
-0.051204875111579895,
-0.019828548654913902,
0.19738276302814484,
-0.27409037947654724,
0.19485491514205933,
-0.5745176076889038,
0.2753388583660126,
-0.22365958988666534,
0.018647629767656326,
-0.1024596244096756,
0.0007488330593332648,
-0.01631239987909794,
0.11780362576246262,
-0.2898905873298645,
-0.21257361769676208,
0.3666999936103821,
0.05284963920712471,
0.28231269121170044,
0.5269954800605774,
-0.0676543116569519,
-0.08177265524864197,
-0.04540630057454109,
0.052881453186273575,
0.25417402386665344,
-0.39576539397239685,
-0.04717065766453743,
-0.05437402054667473,
0.03274904564023018,
0.0790853202342987,
0.19848044216632843,
0.22373241186141968,
0.2555370330810547,
0.02011934109032154,
-0.5458890199661255,
-0.05526062846183777,
0.17430202662944794,
-0.1844223141670227,
0.04644240438938141,
0.20215819776058197,
0.2829449474811554,
0.16649222373962402,
-0.20048454403877258,
-0.18500714004039764,
-0.004421569872647524,
-0.04311169683933258,
0.1398642659187317,
-0.1864708513021469,
0.15304216742515564,
0.13420705497264862,
-0.03256227448582649,
0.11823005229234695,
-0.2170257419347763,
-0.07061699777841568,
-0.07409871369600296,
-0.2204395979642868,
0.19820286333560944,
0.06247006356716156,
0.2393823266029358,
0.1128433346748352,
0.08842627704143524,
-0.012073659338057041,
-0.02647574432194233,
0.10663644969463348,
0.17856095731258392,
-0.22723622620105743,
0.3060310482978821,
0.4929543435573578,
-0.2622911334037781,
-0.3427833318710327,
-0.038649410009384155,
-0.15297377109527588,
-0.1157718375325203,
0.15556827187538147,
0.44990038871765137,
-0.16310732066631317,
0.18110132217407227,
-0.298566997051239,
0.04007473960518837,
-0.23881761729717255,
-0.03957736864686012,
0.18048547208309174,
-0.4256383180618286,
-0.23968109488487244,
-0.04338342696428299,
0.44853055477142334,
0.22216001152992249,
-0.23037533462047577,
-0.09805906563997269,
0.11732743680477142,
0.009072222746908665,
-0.4490545094013214,
0.03561478108167648,
0.2640773057937622,
0.15501604974269867,
-0.0410303957760334,
0.4426921606063843,
0.44890961050987244,
-0.2873218357563019,
-0.09743575751781464,
0.17744030058383942,
0.49017980694770813,
0.25592705607414246,
0.1621129810810089,
0.5159205794334412,
-0.04389379918575287,
0.15822218358516693,
0.49910300970077515,
0.20054638385772705,
-0.09988992661237717,
0.4372416138648987,
-0.1124538853764534,
0.12613937258720398,
0.11646685749292374,
-0.20750366151332855,
0.04234186187386513,
-0.1860407143831253,
0.2623973786830902,
0.032444342970848083,
0.3752448856830597,
-0.26542770862579346,
0.18940480053424835,
0.3312992453575134,
0.20597784221172333,
-0.2006641924381256,
-0.10159008204936981,
0.06638424843549728,
-0.07940874248743057,
-0.04491342231631279,
0.11131592839956284,
-0.25348708033561707,
-0.2293628454208374,
-0.05136539787054062,
-0.14251355826854706,
-0.21004223823547363,
0.6946982741355896,
0.2750629186630249,
-0.19031789898872375,
-0.3078855872154236,
0.12213849276304245,
0.11742950230836868,
0.0489131435751915,
-0.27385035157203674,
0.37285396456718445,
0.08059803396463394,
-0.08127185702323914,
0.22311662137508392,
0.35396987199783325,
0.8215018510818481,
0.24676208198070526,
-0.07579939812421799,
-0.3166639804840088,
-0.17110727727413177,
0.04289091378450394,
0.25506365299224854,
-0.012917961925268173,
0.03286540508270264,
0.031276773661375046,
0.2523142993450165,
0.07573393732309341,
0.09421944618225098,
-0.025433193892240524,
0.10409523546695709,
-0.01861547864973545,
-0.40027183294296265,
0.3342917263507843,
0.1377333402633667,
-0.23292243480682373,
0.03347771614789963,
0.3048776686191559,
-0.24637532234191895,
-0.04605991020798683,
0.2661551535129547,
0.5599742531776428,
-0.12006796896457672,
-0.14167089760303497,
-0.009210341610014439,
0.25853192806243896,
0.31130900979042053,
0.5630502700805664,
0.15854206681251526,
-0.22429844737052917,
-0.18599319458007812,
-0.4756968021392822,
0.4308846890926361,
-0.2150820791721344,
-0.10645473748445511,
0.27602341771125793,
0.06394683569669724,
0.07041105628013611,
0.15698589384555817,
0.3471613824367523,
0.42097920179367065,
-0.3910060524940491,
0.13447114825248718,
-0.3857070803642273,
-0.25702008605003357,
0.019400596618652344,
-0.12370187789201736,
-0.07056637108325958,
-0.05101391673088074,
0.1715080291032791,
-0.5911445617675781,
0.023880239576101303,
-0.14542527496814728,
-0.2321883887052536,
0.17214512825012207,
-0.05502784252166748,
0.503150999546051,
0.007037667091935873,
0.6460565328598022,
0.04703037440776825,
-0.19473280012607574,
-0.22843904793262482,
-0.10458748042583466,
-0.4692246913909912,
0.6017159223556519,
-0.268347829580307,
0.2230917066335678,
-0.12355323880910873,
-0.33534955978393555,
-0.2232300192117691,
0.2529110014438629,
0.003141575725749135,
0.0884140133857727,
0.004312762059271336,
0.1209898367524147,
0.07138706743717194,
-0.0406133234500885,
-0.01738850586116314,
-0.058699239045381546,
0.015013490803539753,
0.30132773518562317,
-0.5924041867256165,
-0.6977591514587402,
0.49540793895721436,
-0.3196094334125519,
-0.30003517866134644,
-0.43100062012672424,
0.2480504959821701,
0.015925180166959763,
-0.03364235907793045,
-0.5722131729125977,
0.11700554937124252,
0.4677252173423767,
0.0741843655705452,
-0.22119800746440887,
-0.14956450462341309,
-0.07709486782550812,
0.37976160645484924,
-0.11589521169662476,
0.4920499622821808,
-0.2867051661014557,
-0.19166012108325958,
-0.23435886204242706,
-0.26707127690315247
] |
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.34133797883987427,
0.20062345266342163,
0.04937275871634483,
0.057189829647541046,
0.11079324781894684,
0.08544416725635529,
0.23534025251865387,
0.2816729247570038,
-0.176084965467453,
0.138621523976326,
0.43813806772232056,
0.33043229579925537,
-0.1294846385717392,
0.29773515462875366,
-0.19470365345478058,
0.07046328485012054,
0.013385891914367676,
0.14275340735912323,
0.34331414103507996,
0.05624384060502052,
-0.12545019388198853,
0.2392587959766388,
-0.1946721076965332,
0.1283954530954361,
-0.13299886882305145,
0.037212807685136795,
-0.17088934779167175,
0.04085756838321686,
-0.13878150284290314,
-0.46809324622154236,
0.43855682015419006,
0.09022576361894608,
0.18195554614067078,
0.6217027306556702,
-0.0001299516297876835,
0.13805106282234192,
0.4102705121040344,
-0.08854318410158157,
-0.2731274366378784,
-0.5470474362373352,
0.0774923712015152,
-0.012697196565568447,
0.3988082706928253,
-0.10407985001802444,
0.09655618667602539,
-0.38478177785873413,
-0.04488205164670944,
0.10923206061124802,
-0.06790310144424438,
0.3774309456348419,
0.08926326781511307,
0.2561309039592743,
0.0892847552895546,
0.013018311932682991,
0.26643693447113037,
0.3202231228351593,
-0.17905490100383759,
0.43466445803642273,
0.16347232460975647,
-0.13685151934623718,
0.18223126232624054,
-0.08189252763986588,
-0.0010013974970206618,
0.03811289742588997,
0.05876591056585312,
0.0650135949254036,
-0.005421740468591452,
-0.2756885886192322,
0.2095608115196228,
-0.004676740616559982,
0.47382670640945435,
-0.5655615329742432,
-0.4999663233757019,
0.03257141634821892,
0.1310693323612213,
-0.2759974002838135,
0.19895648956298828,
0.10928860306739807,
-0.24751441180706024,
0.11206750571727753,
-0.17689429223537445,
-0.12104959040880203,
-0.0797208845615387,
-0.059705864638090134,
-0.45207247138023376,
0.1955443173646927,
0.14159253239631653,
0.1933705061674118,
0.0005676645087078214,
-0.008045447990298271,
0.08257585763931274,
-0.10773394256830215,
0.18323534727096558,
-0.02020031400024891,
-0.23837949335575104,
-0.07612591981887817,
0.07234805822372437,
0.32777464389801025,
0.2713030278682709,
0.41958361864089966,
0.04035409167408943,
-0.13066798448562622,
0.17426697909832,
0.09461885690689087,
0.06765303015708923,
0.2015315443277359,
-0.032532110810279846,
0.11007530987262726,
0.26883620023727417,
0.00226456206291914,
0.025136684998869896,
-0.034052859991788864,
-0.08208821713924408,
-0.11834004521369934,
0.22016772627830505,
0.030794765800237656,
0.8329048752784729,
-0.3100610673427582,
-0.2644129991531372,
0.06471971422433853,
-0.4131413698196411,
-0.14563453197479248,
-0.19496206939220428,
0.2120334953069687,
0.10630153864622116,
0.399149090051651,
-0.05411263927817345,
0.39352691173553467,
-0.09280635416507721,
-0.03351530805230141,
-0.12549854815006256,
0.0960218533873558,
0.07410988211631775,
-0.07458309829235077,
0.22435013949871063,
-0.3418172597885132,
-0.021451177075505257,
0.2785852551460266,
0.2317492514848709,
0.16883525252342224,
0.08478695154190063,
0.17074422538280487,
-0.01582442596554756,
0.5882759094238281,
-0.11708420515060425,
0.303057461977005,
0.18088719248771667,
-0.4662671685218811,
-0.3240084946155548,
0.2942483425140381,
-0.3417201638221741,
-0.3119840919971466,
-0.15444797277450562,
0.039562344551086426,
-0.3309827148914337,
-0.22794057428836823,
-0.22301143407821655,
-0.19956500828266144,
0.23059579730033875,
-0.09554359316825867,
0.03778223320841789,
-0.6431543827056885,
0.11010007560253143,
-0.24519741535186768,
0.26608848571777344,
0.2522020637989044,
-0.4532633423805237,
0.05512884259223938,
-0.005815836600959301,
0.007761511951684952,
0.16865360736846924,
0.10818532109260559,
-0.06993630528450012,
-0.13681063055992126,
-0.025997890159487724,
0.08007174730300903,
0.45209404826164246,
-0.417176216840744,
-0.3087327778339386,
0.2504970133304596,
-0.050209853798151016,
0.052526794373989105,
0.2544582784175873,
-0.40992385149002075,
0.06706266850233078,
0.1091567724943161,
-0.10234177857637405,
-0.055972568690776825,
-0.013213193975389004,
0.10084772109985352,
-0.11708724498748779,
-0.051847636699676514,
0.42051124572753906,
0.25924554467201233,
0.0945967510342598,
-0.18172655999660492,
-0.06156715378165245,
-0.35203051567077637,
0.20803740620613098,
-0.05817312002182007,
-0.00003459238723735325,
-0.04722774028778076,
0.41541069746017456,
-0.30174076557159424,
0.03766315057873726,
-0.005455491133034229,
-0.28100094199180603,
0.23539775609970093,
0.13972310721874237,
0.18325084447860718,
-0.40078243613243103,
-0.24609647691249847,
-0.29574304819107056,
0.11209286004304886,
-0.18158607184886932,
-0.02508341334760189,
-0.07342302799224854,
0.36766037344932556,
0.0943579450249672,
0.09085187315940857,
-0.24598625302314758,
0.1231612041592598,
-0.05497054010629654,
0.12163867801427841,
-0.01570594497025013,
0.36100879311561584,
-0.3976755738258362,
-0.31142082810401917,
0.1486179083585739,
0.015297594480216503,
0.15521037578582764,
-0.09533535689115524,
0.04920709878206253,
0.19779258966445923,
0.01829272136092186,
-0.061507053673267365,
0.024914342910051346,
0.2371179312467575,
0.09744912385940552,
-0.14393967390060425,
-0.13205425441265106,
0.27384939789772034,
-0.05275135114789009,
0.2288922518491745,
0.008953612297773361,
0.4483509063720703,
0.43373921513557434,
0.4135371446609497,
-0.005292303394526243,
0.13313697278499603,
-0.07898000627756119,
0.046465326100587845,
-0.10265882313251495,
0.023542454466223717,
0.06231946498155594,
-0.15796831250190735,
0.23855774104595184,
-0.008311034180223942,
-0.40837371349334717,
0.17890682816505432,
0.4755975306034088,
0.00452834740281105,
0.051207926124334335,
0.12631835043430328,
-0.04640507325530052,
0.013515613973140717,
0.14270567893981934,
0.11965905874967575,
0.3690716326236725,
0.13157020509243011,
-0.12699903547763824,
0.1280190348625183,
-0.308966726064682,
-0.0002400591765763238,
0.08813691139221191,
0.08554033190011978,
-0.017723748460412025,
0.1066993921995163,
0.29347679018974304,
0.009474852122366428,
-0.17146246135234833,
-0.5069285035133362,
0.1386285275220871,
0.3523927330970764,
-0.5544528961181641,
0.29574260115623474,
-0.2599962651729584,
0.24121837317943573,
-0.05639563873410225,
-0.09951797872781754,
-0.3512239158153534,
-0.34003227949142456,
-0.04263416305184364,
0.13224856555461884,
0.18554244935512543,
0.19873328506946564,
-0.31568843126296997,
0.08581389486789703,
0.027886733412742615,
-0.547407329082489,
-0.39885106682777405,
-0.2250480353832245,
-0.3432812988758087,
-0.008241508156061172,
0.33503130078315735,
-0.34401917457580566,
0.10437465459108353,
-0.3536006808280945,
-0.06156025826931,
-0.31515809893608093,
-0.327682226896286,
0.09710287302732468,
-0.3790060877799988,
0.34002771973609924,
0.2641104757785797,
0.1390090137720108,
-0.09369209408760071,
-0.07758640497922897,
0.28256291151046753,
-0.34515073895454407,
-0.3498210310935974,
0.05580325424671173,
-0.03937092050909996,
-0.0816589817404747,
-0.22975115478038788,
-0.4395768940448761,
-0.17561140656471252,
-0.12561504542827606,
0.17975462973117828,
0.13457609713077545,
0.0894508808851242,
0.16021254658699036,
0.2617315948009491,
-0.11195998638868332,
0.001593804219737649,
-0.08004484325647354,
0.04162636399269104,
-0.18532049655914307,
0.31138524413108826,
-0.1229894682765007,
-0.2905149459838867,
0.07681453973054886,
0.09018787741661072,
0.25678378343582153,
0.09056328982114792,
-0.3195662498474121,
-0.20885641872882843,
0.007146782241761684,
0.5721038579940796,
-0.15281745791435242,
0.0589573048055172,
0.3950416147708893,
0.18017266690731049,
0.03358106687664986,
0.030318140983581543,
-0.20077773928642273,
-0.09942694008350372,
0.15768378973007202,
0.05619431659579277,
0.19561995565891266,
0.2270444929599762,
-0.06458131223917007,
0.7777855396270752,
-0.09126506000757217,
-0.24775195121765137,
0.30139896273612976,
-0.3482935130596161,
0.41254904866218567,
0.09245965629816055,
-0.3143632709980011,
-0.1148332878947258,
-0.004349092021584511,
-0.09836361557245255,
0.1719362586736679,
-0.16727136075496674,
-0.19684922695159912,
-0.13160869479179382,
-0.2043851763010025,
-0.11719844490289688,
-0.09018614143133163,
-0.04581427946686745,
-0.014826569706201553,
0.2799759805202484,
-0.039688315242528915,
0.1678747683763504,
-0.13242241740226746,
-0.04968715459108353,
0.17422711849212646,
0.4427701234817505,
-0.019697973504662514,
0.023720094934105873,
-0.26244881749153137,
-0.2940681278705597,
-0.29594656825065613,
0.3724190592765808,
0.06115719676017761,
0.4008815586566925,
-0.02668057009577751,
-0.16103112697601318,
0.1031055673956871,
-0.30256056785583496,
0.616339921951294,
-0.24014192819595337,
0.08069299906492233,
0.3421907424926758,
-0.22505182027816772,
-0.4068378508090973,
-0.32001256942749023,
-0.4515894055366516,
0.18398985266685486,
-0.027976343408226967,
0.25944992899894714,
-0.2801223695278168,
-0.3214558959007263,
0.26712751388549805,
0.10506055504083633,
0.06642982363700867,
0.028870655223727226,
-0.524619996547699,
-0.442992240190506,
-0.2986683249473572,
0.2140117883682251,
0.05449827387928963,
0.2545927166938782,
-0.35635906457901,
0.4444723427295685,
-0.0712299719452858,
-0.23173998296260834,
0.2484540343284607,
0.29517295956611633,
0.25082796812057495,
-0.13306072354316711,
-0.06405603885650635,
-0.18158671259880066,
0.009776478633284569,
0.47769370675086975,
0.5681914687156677,
0.3777182102203369,
-0.2568677067756653,
0.3769097626209259,
0.203181192278862,
0.5758686661720276,
0.2257891297340393,
-0.4059257507324219,
-0.052720632404088974,
-0.11496511846780777,
-0.03791375830769539,
-0.08098883926868439,
0.12207631766796112,
0.5143465995788574,
-0.21527886390686035,
-0.3515263795852661,
-0.06737906485795975,
0.3762578070163727,
0.29049164056777954,
-0.049168892204761505,
0.12100940197706223,
0.4069828391075134,
-0.13312730193138123,
0.31321021914482117,
-0.13127997517585754,
0.8649086952209473,
0.05738125368952751,
0.2569825053215027,
0.17126935720443726,
-0.3226710259914398,
0.08208958804607391,
-0.003960981033742428,
0.017548687756061554,
-0.4571158289909363,
-0.1686369925737381,
-0.1796826273202896,
-0.2954646944999695,
0.23048439621925354,
-0.022618116810917854,
-0.1865597367286682,
0.22972290217876434,
0.06012503802776337,
0.4995061457157135,
0.43008941411972046,
0.3966605067253113,
-0.23162247240543365,
0.3145560920238495,
-0.21944284439086914,
-0.017298486083745956,
0.029300687834620476,
0.2286313772201538,
0.1244775578379631,
-0.0027925693430006504,
-0.274658739566803,
-0.4961467683315277,
-0.37046271562576294,
-0.025694550946354866,
-0.2890318036079407,
-0.11042263358831406,
0.32959046959877014,
-0.7482529282569885,
0.24864770472049713,
0.03392290323972702,
0.10982607305049896,
0.0075349085964262486,
-0.30140572786331177,
0.03664803132414818,
-0.10047543793916702,
0.11640460044145584,
0.23055768013000488,
-0.012688364833593369,
0.37980517745018005,
0.002248197328299284,
-0.36957216262817383,
0.24874751269817352,
-0.07758878916501999,
-0.12840722501277924,
-0.10458026081323624,
0.06520947068929672,
-0.04165589064359665,
-0.33787843585014343,
0.17437337338924408,
-0.5917774438858032,
0.1822226643562317,
-0.0884273573756218,
-0.020644357427954674,
-0.11919302493333817,
0.09579985588788986,
0.025434421375393867,
0.20536746084690094,
-0.2256232351064682,
-0.12507124245166779,
0.2743135094642639,
-0.06986569613218307,
0.1688295155763626,
0.5413678884506226,
-0.013897797092795372,
0.04178491234779358,
-0.03793537616729736,
0.03379393741488457,
0.2881387770175934,
-0.42255669832229614,
0.01937282830476761,
-0.06643971800804138,
0.02078152261674404,
-0.00798364169895649,
0.5095463991165161,
0.07081721723079681,
0.20018184185028076,
-0.03918560594320297,
-0.47952520847320557,
-0.009307458065450191,
0.2478468269109726,
-0.03004796802997589,
0.1569509357213974,
0.1399686187505722,
0.28624850511550903,
0.20564232766628265,
-0.4054950475692749,
-0.17149105668067932,
-0.04002952575683594,
-0.0005387606797739863,
0.0970592051744461,
-0.12449874728918076,
0.002344437874853611,
0.17198064923286438,
-0.02114667370915413,
0.0245667714625597,
-0.1681079864501953,
-0.07666459679603577,
-0.04855986312031746,
-0.12290924787521362,
0.2095736712217331,
0.03663777932524681,
0.15803153812885284,
0.19972409307956696,
0.012682775035500526,
0.009816745296120644,
-0.013129908591508865,
0.1601453423500061,
0.08294402062892914,
-0.13927754759788513,
0.09324304759502411,
0.19146601855754852,
-0.14611440896987915,
-0.36845195293426514,
0.026094164699316025,
-0.16010858118534088,
0.08383242040872574,
0.17343291640281677,
0.3831001818180084,
-0.12432998418807983,
0.17004621028900146,
-0.16442817449569702,
0.13646399974822998,
-0.15961754322052002,
0.013914462178945541,
0.22388657927513123,
-0.35048002004623413,
-0.22463510930538177,
-0.07116306573152542,
0.5016783475875854,
0.2746828496456146,
-0.18806704878807068,
0.049472033977508545,
0.07359765470027924,
-0.06575626879930496,
-0.33242067694664,
0.08114797621965408,
0.31314876675605774,
0.1644696444272995,
-0.014220409095287323,
0.5696209073066711,
0.3624670207500458,
-0.28933244943618774,
0.15902408957481384,
0.1196838915348053,
0.7548348307609558,
0.26592642068862915,
0.06463384628295898,
0.17350509762763977,
-0.1727522611618042,
0.17013120651245117,
0.4858207702636719,
0.05952177196741104,
-0.05907751992344856,
0.11398426443338394,
-0.16607370972633362,
0.18067717552185059,
0.06338616460561752,
-0.13966268301010132,
0.0012396015226840973,
-0.16610290110111237,
0.33878055214881897,
-0.2645162045955658,
0.3434371054172516,
-0.20660477876663208,
0.18527257442474365,
0.43470561504364014,
0.07545612007379532,
-0.17391015589237213,
-0.23981525003910065,
0.10661665350198746,
-0.02290523052215576,
-0.08845098316669464,
-0.11495328694581985,
-0.24852241575717926,
-0.1854364573955536,
-0.05156300961971283,
-0.12602248787879944,
-0.12427964061498642,
0.6650733947753906,
0.18254244327545166,
-0.18023306131362915,
-0.25598040223121643,
-0.009241306222975254,
0.028558453544974327,
0.07771608978509903,
-0.2637617290019989,
0.41442230343818665,
0.07031844556331635,
-0.12955182790756226,
0.06194277107715607,
0.3388364017009735,
0.9245889782905579,
0.13848207890987396,
-0.11934097111225128,
-0.35759347677230835,
-0.23553095757961273,
0.009926103986799717,
0.13869521021842957,
0.007697449065744877,
-0.012598984874784946,
0.149511456489563,
0.13449648022651672,
0.08624690771102905,
0.0714663714170456,
-0.05862949416041374,
0.1186971664428711,
-0.11727676540613174,
-0.4760376513004303,
0.3648819327354431,
-0.016836371272802353,
-0.1769959181547165,
-0.04906256124377251,
0.19289639592170715,
-0.21985282003879547,
0.018676500767469406,
0.1510174572467804,
0.4744876027107239,
-0.14139771461486816,
-0.2653830349445343,
-0.016090713441371918,
0.14959566295146942,
0.3990332782268524,
0.4798588752746582,
0.29360684752464294,
-0.28840041160583496,
-0.16200321912765503,
-0.6309643387794495,
0.2499452531337738,
-0.10891818255186081,
-0.07338941842317581,
0.1761758178472519,
0.19231712818145752,
0.12613512575626373,
0.1565839648246765,
0.25283196568489075,
0.15728142857551575,
-0.25267061591148376,
0.07404745370149612,
-0.28174927830696106,
-0.18422965705394745,
-0.11259967088699341,
-0.16807393729686737,
-0.0837305560708046,
-0.0515797957777977,
0.12334040552377701,
-0.604647159576416,
-0.04503503814339638,
-0.22134868800640106,
-0.3686109483242035,
0.13001874089241028,
-0.2846071720123291,
0.4359482526779175,
-0.045337263494729996,
0.7685068845748901,
0.12560279667377472,
-0.1501152515411377,
-0.32888728380203247,
-0.13706614077091217,
-0.2852410078048706,
0.5235641002655029,
-0.3340814709663391,
0.2942081093788147,
-0.07190605252981186,
-0.3801873028278351,
-0.23676495254039764,
0.2125571370124817,
0.14735715091228485,
0.015083631500601768,
0.13905547559261322,
0.18910318613052368,
-0.09959564357995987,
-0.05541398376226425,
-0.04359755665063858,
-0.03080154024064541,
-0.02593713253736496,
0.22499020397663116,
-0.5183085203170776,
-0.6421113014221191,
0.5877331495285034,
-0.3876180350780487,
-0.28115740418434143,
-0.3539849817752838,
0.22090958058834076,
-0.18944582343101501,
-0.15479260683059692,
-0.4908483028411865,
0.021292762830853462,
0.30343976616859436,
0.13607990741729736,
-0.2562732398509979,
0.07688792794942856,
0.023782361298799515,
0.2902078628540039,
-0.08824662864208221,
0.4993481934070587,
-0.3625541627407074,
-0.07459190487861633,
-0.17572982609272003,
-0.190705344080925
] |
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.4502642750740051,
0.13628937304019928,
0.0727609395980835,
-0.007737620268017054,
0.21043919026851654,
0.14556846022605896,
0.13477954268455505,
0.3891867399215698,
-0.26127296686172485,
0.19664917886257172,
0.24235869944095612,
0.4409928023815155,
-0.17453418672084808,
0.19554732739925385,
-0.24655781686306,
0.02013690210878849,
-0.03596089780330658,
0.1991017758846283,
0.13498325645923615,
0.04183592647314072,
-0.14862440526485443,
0.1625906080007553,
-0.2162209451198578,
0.26479628682136536,
-0.15370438992977142,
-0.0562000535428524,
-0.08893916010856628,
-0.04437950998544693,
-0.13040940463542938,
-0.5437801480293274,
0.374104380607605,
-0.05960052087903023,
0.17467473447322845,
0.5324847102165222,
-0.000123493853607215,
0.1340291053056717,
0.35790300369262695,
-0.09974333643913269,
-0.3201574981212616,
-0.4985058307647705,
0.030355671420693398,
0.02507220022380352,
0.3309289813041687,
-0.14971722662448883,
0.04570253938436508,
-0.5905306935310364,
-0.056062109768390656,
0.011204336769878864,
-0.02645852044224739,
0.4921303689479828,
0.15572771430015564,
0.16486041247844696,
0.0755559578537941,
-0.13787966966629028,
0.21025486290454865,
0.08985590189695358,
-0.07608110457658768,
0.4706762731075287,
0.12163922935724258,
-0.07171227037906647,
0.16000664234161377,
-0.10232014954090118,
-0.021708598360419273,
-0.016618911176919937,
-0.01973673142492771,
0.08909537643194199,
0.27014026045799255,
-0.2540651559829712,
0.27582451701164246,
0.021355755627155304,
0.613984227180481,
-0.6099300980567932,
-0.40281251072883606,
0.058497704565525055,
0.15104831755161285,
-0.1977948695421219,
0.20437312126159668,
0.17402079701423645,
-0.2345983386039734,
0.13707534968852997,
-0.19406192004680634,
-0.038115110248327255,
-0.07902085036039352,
-0.1012427881360054,
-0.37965548038482666,
0.25100836157798767,
0.19847622513771057,
0.17120277881622314,
-0.015670951455831528,
-0.11607956141233444,
0.07631202042102814,
-0.1649233102798462,
0.1704012006521225,
0.0014241975732147694,
-0.21078741550445557,
-0.12968361377716064,
-0.0683172345161438,
0.3605416715145111,
0.24468205869197845,
0.24374273419380188,
0.039519596844911575,
-0.21937119960784912,
0.2899474501609802,
0.14934375882148743,
-0.00020728935487568378,
0.06083031743764877,
0.028259221464395523,
0.15257412195205688,
0.11568444222211838,
-0.07430452108383179,
0.011641125194728374,
0.012575984001159668,
-0.03567137196660042,
-0.13475586473941803,
0.28068944811820984,
-0.017558323219418526,
0.7477176785469055,
-0.38609233498573303,
-0.3294260501861572,
0.11270754039287567,
-0.3191037178039551,
-0.11211203038692474,
-0.14967282116413116,
0.3698424696922302,
0.08019517362117767,
0.30647194385528564,
-0.2025551199913025,
0.30273380875587463,
-0.1487703174352646,
-0.178384929895401,
-0.09530594199895859,
0.08789104968309402,
-0.021924125030636787,
-0.13318249583244324,
0.16874298453330994,
-0.2979694604873657,
-0.04650506749749184,
0.3469099998474121,
0.10252098739147186,
0.18799328804016113,
0.0652613490819931,
-0.002695741830393672,
-0.05441387742757797,
0.4611661434173584,
-0.22185006737709045,
0.25166356563568115,
0.17808355391025543,
-0.5087435245513916,
-0.36347195506095886,
0.2743995785713196,
-0.2164258062839508,
-0.353474885225296,
-0.24320346117019653,
0.1512814462184906,
-0.09201835840940475,
-0.2586001455783844,
-0.048928502947092056,
-0.06135130301117897,
0.18020851910114288,
-0.15756343305110931,
-0.0042945086024701595,
-0.6692387461662292,
0.12914951145648956,
-0.3172445595264435,
0.29797542095184326,
0.23556290566921234,
-0.5403276085853577,
0.05119895935058594,
0.11710026860237122,
-0.15387000143527985,
0.220856711268425,
-0.048054154962301254,
0.02851785533130169,
-0.16844691336154938,
0.008382394909858704,
0.00040416765841655433,
0.36193153262138367,
-0.3157843053340912,
-0.28083282709121704,
0.20378239452838898,
0.13735753297805786,
-0.005416479893028736,
0.25811004638671875,
-0.3559536635875702,
0.06767738610506058,
0.1332530826330185,
-0.24490176141262054,
0.07075203210115433,
-0.06347828358411789,
0.03950009495019913,
-0.17243468761444092,
0.011109622195363045,
0.4310906231403351,
0.2942521274089813,
0.07769446074962616,
-0.1869186908006668,
0.05416274443268776,
-0.25365957617759705,
0.17242369055747986,
-0.15349127352237701,
0.014555595815181732,
-0.09521052986383438,
0.42285075783729553,
-0.3071487545967102,
0.009102052077651024,
-0.08208517730236053,
-0.37202534079551697,
0.21420735120773315,
0.14268599450588226,
0.04278257489204407,
-0.33310171961784363,
-0.2545278072357178,
-0.34180593490600586,
0.09298102557659149,
-0.11785750836133957,
-0.03090299665927887,
0.02902311086654663,
0.38346031308174133,
0.0836460292339325,
0.06660854816436768,
-0.17853398621082306,
0.12594616413116455,
0.010981057770550251,
0.18438979983329773,
-0.021914510056376457,
0.4052860140800476,
-0.38489654660224915,
-0.32877886295318604,
0.11645226180553436,
0.01476847380399704,
0.2110704481601715,
-0.07470058649778366,
-0.024430615827441216,
0.35694509744644165,
0.06681423634290695,
0.0324973464012146,
0.03754562884569168,
0.2812749445438385,
0.009507701732218266,
-0.27448466420173645,
-0.22555814683437347,
0.284518301486969,
-0.05631447583436966,
0.33589115738868713,
-0.04778018593788147,
0.4245946705341339,
0.4690207242965698,
0.24409347772598267,
0.043488528579473495,
0.12071552127599716,
-0.08766249567270279,
0.030711200088262558,
0.01759539172053337,
-0.10276903957128525,
0.1239544004201889,
-0.09751402586698532,
0.24295519292354584,
0.00738183269277215,
-0.45348644256591797,
0.018111389130353928,
0.33262374997138977,
-0.10369667410850525,
0.07972214370965958,
0.10889115184545517,
-0.13481740653514862,
0.07133274525403976,
0.1310129463672638,
0.12860162556171417,
0.2671003043651581,
0.15452148020267487,
-0.0664287656545639,
0.14593523740768433,
-0.3957768380641937,
0.04936874285340309,
0.1474575400352478,
0.046950213611125946,
0.08438382297754288,
0.11785002052783966,
0.20307575166225433,
0.06922563910484314,
-0.19645310938358307,
-0.4386539161205292,
0.16900776326656342,
0.397512823343277,
-0.4556094706058502,
0.2525039315223694,
-0.2593025863170624,
0.28796255588531494,
-0.17629937827587128,
-0.10131322592496872,
-0.2812742590904236,
-0.2871728539466858,
0.029808426275849342,
0.16138705611228943,
0.1280529648065567,
0.28448206186294556,
-0.3949868977069855,
0.13085290789604187,
0.060437921434640884,
-0.53896164894104,
-0.35877344012260437,
-0.1788509339094162,
-0.4358466863632202,
0.05648481100797653,
0.29300636053085327,
-0.29367300868034363,
0.18700145184993744,
-0.33857226371765137,
-0.10415752232074738,
-0.2780035436153412,
-0.2546270191669464,
0.10002291202545166,
-0.27325332164764404,
0.4224725365638733,
0.23313404619693756,
0.06530188769102097,
-0.05094247683882713,
-0.13944759964942932,
0.29851213097572327,
-0.5006912350654602,
-0.2382105588912964,
0.10757837444543839,
-0.06091475859284401,
-0.028160573914647102,
-0.09925727546215057,
-0.6026320457458496,
-0.27009397745132446,
-0.17673157155513763,
-0.07382930815219879,
0.10129474848508835,
0.11718013137578964,
0.015319074504077435,
0.17950032651424408,
-0.04143872112035751,
-0.10640038549900055,
0.04073179140686989,
0.02278013713657856,
-0.0935678482055664,
0.2638750374317169,
-0.14122654497623444,
-0.24706196784973145,
0.0030330312438309193,
0.05939893424510956,
0.3075077533721924,
0.02631285786628723,
-0.3157667815685272,
-0.1785082221031189,
0.08708111941814423,
0.5713333487510681,
-0.21375463902950287,
-0.008834149688482285,
0.20170152187347412,
0.3253883719444275,
-0.04613083228468895,
0.043869469314813614,
-0.1561376452445984,
-0.225790873169899,
0.08310505747795105,
0.11741670966148376,
0.11736887693405151,
0.24780529737472534,
-0.00014701673353556544,
0.7000096440315247,
0.09017027169466019,
-0.26471179723739624,
0.2456340193748474,
-0.2904428541660309,
0.3646109104156494,
0.02159138210117817,
-0.21043042838573456,
-0.029302751645445824,
-0.003284863429144025,
-0.08996845036745071,
0.25670164823532104,
-0.18345165252685547,
-0.2540484368801117,
-0.0747881680727005,
-0.18840719759464264,
-0.22964917123317719,
-0.06973981112241745,
-0.03852512314915657,
-0.05075914412736893,
0.26926469802856445,
-0.07091483473777771,
0.14934499561786652,
-0.07006047666072845,
-0.10604319721460342,
0.20325356721878052,
0.37060511112213135,
-0.2543415427207947,
0.030876822769641876,
-0.2697114646434784,
-0.2007378339767456,
-0.23489844799041748,
0.4246779978275299,
-0.012990858405828476,
0.4772613048553467,
-0.016963033005595207,
-0.12940821051597595,
0.09740828722715378,
-0.20808345079421997,
0.4789673984050751,
-0.2268107682466507,
0.08115140348672867,
0.2893921136856079,
-0.17096887528896332,
-0.44634371995925903,
-0.3620922267436981,
-0.4987751841545105,
0.07814177125692368,
-0.03766974061727524,
0.22606568038463593,
-0.2343868762254715,
-0.23196473717689514,
0.22696200013160706,
0.11853797733783722,
0.07251087576150894,
0.00371188810095191,
-0.43107080459594727,
-0.2614605724811554,
-0.24307897686958313,
0.303437203168869,
-0.1024954617023468,
0.3525223135948181,
-0.3325917422771454,
0.4075811505317688,
-0.09610051661729813,
-0.17272083461284637,
0.2449404001235962,
0.3544297516345978,
0.22494180500507355,
-0.21191197633743286,
0.02607635036110878,
-0.12502329051494598,
0.23234282433986664,
0.5753098726272583,
0.5339664220809937,
0.2321101576089859,
-0.2221551239490509,
0.18901805579662323,
0.23789311945438385,
0.6089589595794678,
0.037967879325151443,
-0.4350990951061249,
-0.13117434084415436,
-0.21597327291965485,
0.04362256079912186,
-0.009059297852218151,
0.10546886920928955,
0.5369829535484314,
-0.12586839497089386,
-0.5352917909622192,
0.03395194187760353,
0.4779817461967468,
0.27924618124961853,
-0.13668760657310486,
0.07593429088592529,
0.3156249523162842,
-0.1674434095621109,
0.43760791420936584,
-0.10256548970937729,
0.8173342347145081,
-0.0009251984301954508,
0.1719646006822586,
0.13897167146205902,
-0.3020308017730713,
0.12917234003543854,
0.02002819813787937,
0.01078886166214943,
-0.4951132535934448,
-0.3523804247379303,
-0.12848098576068878,
-0.26069214940071106,
0.2495349645614624,
0.058063048869371414,
-0.34337520599365234,
0.30057621002197266,
0.019463950768113136,
0.45729759335517883,
0.420908123254776,
0.291684091091156,
-0.16789276897907257,
0.29896295070648193,
-0.25076204538345337,
0.03803158178925514,
0.024416321888566017,
0.07223393768072128,
0.11549511551856995,
0.07646697759628296,
-0.14137694239616394,
-0.4948066771030426,
-0.27903875708580017,
0.015146039426326752,
-0.2930014729499817,
-0.10045856237411499,
0.3964218497276306,
-0.5733569264411926,
0.21180720627307892,
0.07209344953298569,
0.048183854669332504,
0.0640392079949379,
-0.2333725392818451,
0.012959877029061317,
-0.1457781046628952,
0.12769414484500885,
0.18394805490970612,
0.04753345251083374,
0.45334938168525696,
-0.008722248487174511,
-0.3378647267818451,
0.3581652045249939,
-0.08139479160308838,
-0.011938638053834438,
0.014829408377408981,
-0.12561246752738953,
0.17730654776096344,
-0.3368030786514282,
0.24641478061676025,
-0.6286607384681702,
0.10997289419174194,
-0.1781969517469406,
0.04503730684518814,
-0.1984390765428543,
0.003612799569964409,
0.10916220396757126,
0.22726097702980042,
-0.3318325877189636,
-0.21183156967163086,
0.20839080214500427,
0.005966853350400925,
0.22857089340686798,
0.5235669016838074,
-0.0887124091386795,
-0.04807808995246887,
-0.10361738502979279,
0.05815405771136284,
0.32729896903038025,
-0.3375200927257538,
-0.04912026971578598,
-0.02971700020134449,
0.06561008095741272,
0.1523432433605194,
0.37685516476631165,
0.2776252031326294,
0.2131880223751068,
-0.07444605976343155,
-0.5255507826805115,
-0.07296570390462875,
0.23751027882099152,
-0.07121354341506958,
0.19758789241313934,
0.11746049672365189,
0.32370755076408386,
0.2238589972257614,
-0.11349321901798248,
-0.2397030144929886,
-0.032957062125205994,
-0.13233579695224762,
0.19193364679813385,
-0.08682844787836075,
0.09644531458616257,
0.05169977620244026,
0.06344863772392273,
0.08875680714845657,
-0.19282977283000946,
-0.14227893948554993,
-0.11094790697097778,
-0.14755505323410034,
0.18353672325611115,
0.10185125470161438,
0.1381855458021164,
0.1264924705028534,
0.05604755878448486,
0.049014635384082794,
-0.04671843349933624,
0.1385228931903839,
0.039386577904224396,
-0.17921723425388336,
0.21477432548999786,
0.3473412096500397,
-0.16727687418460846,
-0.3585497736930847,
-0.03709867596626282,
-0.20412833988666534,
-0.03964228555560112,
0.14702774584293365,
0.3860640823841095,
-0.2622251808643341,
0.0606437623500824,
-0.1839805394411087,
0.08918039500713348,
-0.038675110787153244,
-0.058118149638175964,
0.11452363431453705,
-0.3145364224910736,
-0.2465544044971466,
0.013893785886466503,
0.44908657670021057,
0.28608566522598267,
-0.20155556499958038,
-0.030050499364733696,
0.23514987528324127,
0.03341379761695862,
-0.41200247406959534,
0.00853543821722269,
0.29435572028160095,
0.16434863209724426,
0.09699545055627823,
0.4992046654224396,
0.36793839931488037,
-0.3373351991176605,
0.07632026821374893,
0.05410813167691231,
0.48907050490379333,
0.22714515030384064,
0.16241022944450378,
0.4281884431838989,
-0.12060504406690598,
0.14897343516349792,
0.5001077055931091,
0.07173771411180496,
-0.06867467612028122,
0.3365834355354309,
-0.22659659385681152,
0.2901754081249237,
0.05184964835643768,
-0.09472803771495819,
0.01207879651337862,
-0.14029133319854736,
0.3303787112236023,
-0.08364842087030411,
0.3031793236732483,
-0.18541929125785828,
0.21076861023902893,
0.34041669964790344,
0.09915269911289215,
-0.3103967607021332,
-0.26461145281791687,
0.007390593644231558,
-0.07696636766195297,
-0.1239810660481453,
-0.0777573212981224,
-0.24878479540348053,
-0.31133484840393066,
-0.04240025579929352,
-0.1833256632089615,
-0.21364496648311615,
0.6925195455551147,
0.20947647094726562,
-0.14585193991661072,
-0.2887670397758484,
0.09960572421550751,
0.12556180357933044,
0.06614130735397339,
-0.24123775959014893,
0.43640395998954773,
-0.006713717244565487,
-0.046182237565517426,
0.15534663200378418,
0.29818832874298096,
0.8132767677307129,
0.21816030144691467,
-0.17353977262973785,
-0.32582324743270874,
-0.2322152853012085,
0.06455738097429276,
0.2646583914756775,
0.06301842629909515,
-0.0373363122344017,
0.02126293256878853,
0.29204893112182617,
0.11681203544139862,
0.027758987620472908,
-0.07846143841743469,
0.0650029331445694,
-0.1590965837240219,
-0.4842322766780853,
0.2990451753139496,
0.18477986752986908,
-0.10185912251472473,
0.01642240583896637,
0.17674629390239716,
-0.25420573353767395,
0.02687223069369793,
0.21977132558822632,
0.4025391638278961,
-0.09970112144947052,
-0.1280665099620819,
0.013057755306363106,
0.264171302318573,
0.37537112832069397,
0.46604123711586,
0.3042023479938507,
-0.3263895809650421,
-0.23226387798786163,
-0.5930099487304688,
0.3081545829772949,
-0.11185581982135773,
-0.06417248398065567,
0.23115263879299164,
0.07034197449684143,
0.1258239895105362,
0.21518170833587646,
0.30558592081069946,
0.34289345145225525,
-0.26369574666023254,
0.10260070115327835,
-0.40018945932388306,
-0.17699523270130157,
-0.0904509574174881,
-0.1819169521331787,
-0.09434617310762405,
-0.1717553436756134,
0.1907271146774292,
-0.5734683871269226,
0.014778770506381989,
-0.12844185531139374,
-0.34596580266952515,
0.20035456120967865,
-0.19253960251808167,
0.45888039469718933,
-0.020361514762043953,
0.7599466443061829,
0.05706412345170975,
-0.13146358728408813,
-0.19957047700881958,
-0.15740805864334106,
-0.33825647830963135,
0.5084715485572815,
-0.2153961956501007,
0.2439030557870865,
-0.03558789938688278,
-0.2223462462425232,
-0.144809752702713,
0.23349931836128235,
0.14098122715950012,
0.015727728605270386,
0.08336314558982849,
0.09266442805528641,
0.06414294242858887,
-0.09420715272426605,
-0.023003358393907547,
-0.019734976813197136,
-0.030902409926056862,
0.2972713112831116,
-0.4680345952510834,
-0.672317385673523,
0.5400301814079285,
-0.33879324793815613,
-0.23528039455413818,
-0.42759257555007935,
0.2575128674507141,
-0.09694643318653107,
-0.08701138943433762,
-0.480756014585495,
0.10606774687767029,
0.3818351626396179,
0.03254949674010277,
-0.22709830105304718,
-0.03245465084910393,
0.032651375979185104,
0.32015126943588257,
-0.13763155043125153,
0.5239672064781189,
-0.28771665692329407,
-0.15140360593795776,
-0.16822203993797302,
-0.2710403501987457
] |
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.05949091166257858,
-0.11997032910585403,
0.014864055439829826,
0.24388323724269867,
0.47326287627220154,
-0.0013421671465039253,
0.4414611756801605,
0.1253981739282608,
-0.014295512810349464,
0.26756349205970764,
-0.1799776256084442,
0.46588942408561707,
-0.11915555596351624,
0.10542649030685425,
0.09335120022296906,
-0.16344673931598663,
-0.1493481993675232,
0.17890526354312897,
-0.0950513556599617,
0.004156059585511684,
-0.2951405942440033,
-0.12274522334337234,
-0.26470229029655457,
0.16010642051696777,
-0.4545840322971344,
-0.24733658134937286,
-0.12372734397649765,
-0.02890775166451931,
-0.2947981655597687,
-0.307205468416214,
0.390593022108078,
0.04553190618753433,
0.08020161837339401,
0.5733887553215027,
-0.00010463327635079622,
0.08574359118938446,
0.5220624208450317,
0.07952451705932617,
-0.10193820297718048,
-0.4897308945655823,
-0.13645444810390472,
-0.16683335602283478,
0.21391715109348297,
-0.39387962222099304,
-0.17488203942775726,
-0.043418627232313156,
0.015630070120096207,
0.10472062975168228,
0.3135630488395691,
0.48495158553123474,
0.3089381754398346,
0.4509340822696686,
0.046453285962343216,
-0.26731762290000916,
0.29664066433906555,
0.15159940719604492,
-0.05325186997652054,
0.3601022958755493,
-0.02976294420659542,
-0.1026371642947197,
0.1846829503774643,
0.15670666098594666,
-0.266948401927948,
-0.09675866365432739,
0.19038663804531097,
0.06878647953271866,
-0.04153859242796898,
-0.29089778661727905,
-0.07514960318803787,
0.41438716650009155,
0.3387811481952667,
-0.45931103825569153,
-0.27880990505218506,
0.11806529760360718,
0.21228355169296265,
-0.2495189905166626,
0.2602463960647583,
0.0856187492609024,
-0.012844810262322426,
0.19757306575775146,
-0.08679477870464325,
0.27960702776908875,
-0.27930405735969543,
0.3049074709415436,
-0.16479367017745972,
0.1444966048002243,
-0.06308613717556,
0.0345243476331234,
0.20605121552944183,
-0.1919635534286499,
0.05979166924953461,
-0.13102683424949646,
0.03567332774400711,
0.1007022112607956,
-0.2436073124408722,
-0.1369948536157608,
0.10915141552686691,
-0.0550241656601429,
0.13056102395057678,
-0.2993285357952118,
0.15652742981910706,
-0.0825740322470665,
-0.004699327051639557,
0.4082545042037964,
0.18361517786979675,
0.37427812814712524,
0.23539142310619354,
0.14673340320587158,
0.20310430228710175,
0.125055730342865,
-0.2914270758628845,
0.0851677656173706,
-0.19163067638874054,
-0.07955652475357056,
0.3350316882133484,
0.14177802205085754,
0.45437994599342346,
0.004213648848235607,
-0.453861266374588,
-0.048470012843608856,
-0.4231705963611603,
0.07957950234413147,
0.22692032158374786,
0.4578571021556854,
-0.1490909904241562,
0.11197039484977722,
0.044868577271699905,
0.15390168130397797,
-0.17074576020240784,
-0.2831348478794098,
-0.286907434463501,
0.41192764043807983,
-0.33274126052856445,
-0.2005893886089325,
0.1725696623325348,
0.06317576766014099,
-0.04409332945942879,
-0.014276545494794846,
-0.12453275918960571,
0.014792404137551785,
0.031217455863952637,
-0.48646700382232666,
-0.10691830515861511,
0.18023733794689178,
0.036691006273031235,
-0.1434197723865509,
0.217743381857872,
-0.43856289982795715,
0.0038597953971475363,
0.21044710278511047,
-0.13902676105499268,
-0.2205251157283783,
-0.0644020289182663,
0.2921476662158966,
-0.3297558128833771,
-0.16175007820129395,
-0.12208115309476852,
0.15815193951129913,
0.15889443457126617,
0.01528231892734766,
0.03860413655638695,
-0.08452598750591278,
-0.02186087891459465,
-0.3067055344581604,
0.026878520846366882,
0.3902672827243805,
-0.3743340075016022,
-0.2277737408876419,
-0.11634711176156998,
-0.05733560770750046,
0.33097609877586365,
-0.055294375866651535,
-0.013930381275713444,
0.28425270318984985,
-0.016235526651144028,
0.12702040374279022,
0.6166735291481018,
-0.38114646077156067,
-0.3189845085144043,
-0.08715249598026276,
-0.052556540817022324,
-0.032351303845644,
-0.00000830342287372332,
-0.1415090262889862,
0.09520977735519409,
0.18519321084022522,
0.4305957853794098,
0.1825712025165558,
0.010850027203559875,
-0.006876208819448948,
-0.2708132863044739,
-0.2111278921365738,
0.19119437038898468,
0.08953147381544113,
0.13897515833377838,
-0.0566445030272007,
-0.07800840586423874,
-0.24225318431854248,
0.01793130487203598,
-0.11919517815113068,
-0.13236163556575775,
-0.06167292594909668,
0.5806081891059875,
-0.08955502510070801,
-0.1220891922712326,
-0.5331311821937561,
-0.2384604662656784,
0.14512750506401062,
-0.038407038897275925,
0.440065860748291,
-0.1647631824016571,
-0.2132972776889801,
-0.40875452756881714,
0.04674917086958885,
-0.053432647138834,
-0.04224424809217453,
0.28871670365333557,
0.032719530165195465,
-0.16237139701843262,
0.14767234027385712,
-0.09393160045146942,
0.06908971071243286,
-0.18910682201385498,
0.14024943113327026,
0.11506956815719604,
0.3248276710510254,
-0.05265732854604721,
-0.4338497221469879,
0.016055265441536903,
0.24504825472831726,
0.42788854241371155,
0.0615982785820961,
-0.0518307089805603,
0.31032106280326843,
0.09668118506669998,
-0.2166444957256317,
-0.3329293727874756,
-0.03756412863731384,
0.10615912824869156,
-0.32848864793777466,
-0.1916380673646927,
-0.028610415756702423,
0.18140137195587158,
-0.003908067941665649,
0.015586827881634235,
0.506656289100647,
0.07304617017507553,
0.07515455037355423,
-0.0834585651755333,
0.19625355303287506,
-0.05213027074933052,
-0.12022459506988525,
-0.11892331391572952,
-0.09356629103422165,
0.085373155772686,
-0.0516481027007103,
0.16046176850795746,
0.08396703004837036,
-0.1486918181180954,
-0.09396196901798248,
0.627628743648529,
0.06613359600305557,
0.40661802887916565,
-0.12785759568214417,
-0.2530848979949951,
0.14693446457386017,
0.0753542110323906,
0.09351518005132675,
0.35600411891937256,
0.30918431282043457,
-0.17418397963047028,
-0.012002798728644848,
-0.16991372406482697,
0.02003360167145729,
0.09369762241840363,
-0.030057746917009354,
0.3375014364719391,
-0.019166374579072,
0.32656559348106384,
0.0025228443555533886,
-0.312995046377182,
0.11549834161996841,
0.03831638768315315,
0.18946455419063568,
-0.3931478261947632,
0.1806960105895996,
-0.31553956866264343,
-0.1539052128791809,
0.059273362159729004,
-0.13982367515563965,
-0.04219914227724075,
-0.27074873447418213,
-0.08552631735801697,
0.18152548372745514,
0.0589711032807827,
0.26436367630958557,
0.1597481220960617,
-0.03270803019404411,
0.08473815768957138,
-0.06557323783636093,
-0.10223530232906342,
-0.22010745108127594,
-0.17439104616641998,
0.14284951984882355,
0.1274089515209198,
0.2078605741262436,
0.2995348572731018,
-0.14255434274673462,
0.04809417203068733,
0.013804602436721325,
-0.360225111246109,
0.08573350310325623,
-0.12153421342372894,
0.44019368290901184,
0.34255990386009216,
0.07288345694541931,
-0.23686997592449188,
0.01739238016307354,
0.36196646094322205,
-0.347331166267395,
-0.10805152356624603,
0.39837732911109924,
-0.1979982703924179,
0.05025039240717888,
-0.21617121994495392,
-0.3248880207538605,
-0.5105348229408264,
-0.3189551830291748,
0.13110637664794922,
-0.029471363872289658,
0.08727961778640747,
0.3062434196472168,
0.22816342115402222,
0.45089465379714966,
-0.05257170647382736,
0.03958351910114288,
-0.17399455606937408,
-0.0077800932340323925,
0.3531797230243683,
-0.014841243624687195,
-0.3720351755619049,
0.007991043850779533,
-0.16509993374347687,
0.13139070570468903,
-0.011758415028452873,
-0.179090678691864,
-0.5396491885185242,
-0.14006084203720093,
0.2884002923965454,
0.022943705320358276,
-0.09574878960847855,
0.37425482273101807,
0.05397354066371918,
-0.15105058252811432,
-0.19747616350650787,
-0.08226355910301208,
0.031774114817380905,
0.31725654006004333,
0.02196475863456726,
-0.06948907673358917,
0.29087966680526733,
0.05522137135267258,
0.28113967180252075,
-0.1133231595158577,
-0.25137490034103394,
0.4198067784309387,
-0.2915055751800537,
0.24614250659942627,
-0.0716574564576149,
-0.47660255432128906,
-0.07762269675731659,
-0.05550077557563782,
-0.0022867487277835608,
-0.03606060892343521,
-0.29894962906837463,
-0.22007177770137787,
-0.29700809717178345,
-0.12197656184434891,
-0.35955503582954407,
-0.15417678654193878,
0.06091439723968506,
0.08911897242069244,
0.05580601468682289,
0.14045393466949463,
0.15506567060947418,
-0.3061161935329437,
0.00887693464756012,
0.000019207343939342536,
0.1075969785451889,
0.03720723092556,
-0.2144528180360794,
-0.2214946746826172,
-0.2509341239929199,
-0.29100754857063293,
0.3232392370700836,
0.04779535159468651,
-0.025101272389292717,
-0.10718443989753723,
-0.10485958307981491,
0.08477193117141724,
-0.05435014143586159,
0.6767697334289551,
-0.19645176827907562,
0.07104101032018661,
0.4911930561065674,
0.2105492353439331,
-0.43208950757980347,
0.024922305718064308,
-0.4132968485355377,
0.11259093880653381,
0.16018082201480865,
0.3240833580493927,
-0.3951096832752228,
-0.054245416074991226,
0.2625245153903961,
-0.03598526120185852,
-0.05942186340689659,
-0.2696702778339386,
-0.2357654571533203,
-0.25578853487968445,
-0.10776621103286743,
0.19629602134227753,
0.03532666712999344,
0.4339832663536072,
-0.26493269205093384,
-0.11057068407535553,
-0.239061638712883,
0.042895473539829254,
0.1868518739938736,
0.25458088517189026,
0.26250767707824707,
-0.16144350171089172,
-0.1597982794046402,
-0.17626380920410156,
0.05880191922187805,
0.2780003547668457,
0.28820979595184326,
0.04454117268323898,
-0.41376760601997375,
0.01571798510849476,
0.058139167726039886,
0.26119062304496765,
0.04642549902200699,
-0.13333332538604736,
-0.030798008665442467,
-0.04032912105321884,
0.09743097424507141,
0.1435645967721939,
0.21770493686199188,
0.3860846161842346,
0.05959640443325043,
-0.3346399962902069,
-0.24376395344734192,
0.34551751613616943,
0.14844240248203278,
0.05053650215268135,
0.01700824871659279,
0.2781257927417755,
-0.2117077112197876,
0.28811362385749817,
-0.020154522731900215,
1.0111833810806274,
0.06905270367860794,
-0.05979261174798012,
0.581610918045044,
-0.09528438746929169,
0.5560988187789917,
-0.06480225175619125,
0.18613256514072418,
-0.2962428629398346,
-0.3566815257072449,
-0.03657226264476776,
-0.16786505281925201,
0.2394377887248993,
0.06466701626777649,
-0.6077868938446045,
0.23067741096019745,
-0.2865697741508484,
0.14132583141326904,
0.03720052167773247,
-0.031340811401605606,
-0.006926978938281536,
-0.024181382730603218,
-0.385690301656723,
0.21182119846343994,
-0.12286966294050217,
0.10142728686332703,
-0.08456426858901978,
-0.10637851059436798,
-0.1233796700835228,
-0.1591435670852661,
-0.10481001436710358,
0.04311199113726616,
-0.5134389400482178,
-0.15310372412204742,
0.05204286798834801,
-0.17723143100738525,
-0.0729142501950264,
0.18729105591773987,
0.04021743685007095,
0.07752390950918198,
-0.18711628019809723,
0.1700202226638794,
0.19995130598545074,
0.09996587038040161,
-0.06926260143518448,
-0.03328834846615791,
0.4308822751045227,
-0.09169300645589828,
-0.39867275953292847,
0.12750239670276642,
-0.04706840217113495,
0.1355866640806198,
0.35485324263572693,
0.018290452659130096,
-0.02078438550233841,
-0.4515138566493988,
-0.0984327420592308,
-0.14358504116535187,
0.20594744384288788,
-0.3068612515926361,
0.2612112760543823,
-0.0072332420386374,
-0.13729219138622284,
0.01083998754620552,
-0.03577358275651932,
-0.018512018024921417,
-0.03987777233123779,
0.3423735499382019,
0.3180933892726898,
0.4484288692474365,
0.24653084576129913,
0.2419540137052536,
-0.12122222036123276,
-0.32009148597717285,
0.15322017669677734,
0.23080167174339294,
-0.42240551114082336,
0.2418847233057022,
0.22600588202476501,
-0.12146603316068649,
-0.05342014878988266,
0.4723210334777832,
0.08754117041826248,
0.1689215451478958,
-0.12573949992656708,
-0.1489039957523346,
-0.23443269729614258,
0.32416149973869324,
0.10228290408849716,
0.00407989090308547,
0.11474631726741791,
0.4286707043647766,
0.23789985477924347,
0.017731422558426857,
-0.44404926896095276,
-0.028685081750154495,
-0.46778109669685364,
0.0705270767211914,
-0.026069877669215202,
-0.2602924406528473,
0.2004084438085556,
-0.00384850543923676,
0.2606964707374573,
0.1246233731508255,
-0.07571522891521454,
-0.36216896772384644,
-0.16297012567520142,
0.09021418541669846,
-0.0021697941701859236,
0.17059794068336487,
0.18762962520122528,
0.033648308366537094,
-0.23033668100833893,
-0.12813949584960938,
0.09217662364244461,
-0.05532974749803543,
-0.14670132100582123,
0.21817941963672638,
0.2054452896118164,
0.3228445053100586,
0.017990967258810997,
-0.013671055436134338,
0.015237856656312943,
-0.09246278554201126,
-0.034831151366233826,
-0.005064174998551607,
0.12457144260406494,
-0.029217133298516273,
-0.09140521287918091,
-0.0829484760761261,
0.19211775064468384,
0.13565050065517426,
0.020348835736513138,
-0.2578238248825073,
-0.27413177490234375,
-0.11455648392438889,
0.2158730924129486,
0.12111612409353256,
-0.15752142667770386,
0.1765076220035553,
-0.010932008735835552,
0.351384699344635,
-0.3763161301612854,
-0.010254035703837872,
0.23012298345565796,
-0.03496021404862404,
0.2269829362630844,
0.04630104452371597,
-0.2856040894985199,
0.3148675560951233,
-0.20312558114528656,
0.09068062901496887,
0.2280462235212326,
-0.044347308576107025,
0.10810976475477219,
0.27683448791503906,
-0.16949836909770966,
-0.033468347042798996,
0.41233766078948975,
0.07038675993680954,
0.14827653765678406,
0.021170828491449356,
0.012819234281778336,
0.1463378667831421,
-0.022167040035128593,
0.08586721122264862,
0.3090980052947998,
-0.3254103362560272,
0.032302167266607285,
0.20969754457473755,
0.027855465188622475,
-0.07970114052295685,
-0.26090216636657715,
0.5160671472549438,
-0.26350143551826477,
-0.14457876980304718,
-0.3344385623931885,
0.13850870728492737,
-0.20031626522541046,
0.0369843989610672,
-0.20154504477977753,
-0.11117786169052124,
-0.18699242174625397,
-0.30661991238594055,
0.025955749675631523,
-0.0909678041934967,
0.24166032671928406,
-0.04935774579644203,
-0.02893645316362381,
-0.2844856083393097,
-0.05236676335334778,
0.35965293645858765,
0.22716030478477478,
-0.20385907590389252,
0.10305500030517578,
0.024704087525606155,
0.1235099732875824,
-0.1864326149225235,
0.5136397480964661,
0.42702051997184753,
0.28573402762413025,
-0.1543850302696228,
-0.0936768427491188,
0.03454872965812683,
-0.30909690260887146,
0.07066019624471664,
0.09696517884731293,
0.2919446527957916,
0.2387925088405609,
0.06440382450819016,
0.2788918614387512,
-0.2833413779735565,
0.17622797191143036,
-0.06019348278641701,
0.07524442672729492,
-0.37077796459198,
0.33053141832351685,
-0.1943279355764389,
-0.16332176327705383,
-0.16632124781608582,
-0.008691210299730301,
-0.4805714190006256,
0.17004193365573883,
0.33456671237945557,
0.15055353939533234,
0.1827457696199417,
-0.18984465301036835,
0.1426258683204651,
-0.20634067058563232,
0.22429651021957397,
-0.0433824397623539,
0.3339897692203522,
-0.27990061044692993,
0.11789435893297195,
-0.4362551271915436,
0.39369311928749084,
-0.04484806954860687,
-0.048964377492666245,
0.0756327211856842,
-0.08401600271463394,
-0.16167289018630981,
0.034948691725730896,
-0.07442465424537659,
0.24086737632751465,
0.12785257399082184,
0.0993812084197998,
-0.6071125864982605,
-0.19964741170406342,
-0.11191005259752274,
-0.23076939582824707,
0.13617029786109924,
-0.24145053327083588,
-0.0472431406378746,
-0.1864432394504547,
0.11470165103673935,
0.04279622808098793,
-0.30284082889556885,
0.1948680728673935,
0.29543164372444153,
0.6067333817481995,
0.1576172411441803,
0.40076205134391785,
-0.01385089848190546,
0.09977003186941147,
0.06332062184810638,
-0.2700609862804413,
-0.15275242924690247,
0.19264137744903564,
0.13509385287761688,
0.350553035736084,
0.07576809823513031,
0.2320173978805542,
-0.06884177774190903,
0.07770350575447083,
0.05885857716202736,
-0.1243833601474762,
-0.12214943021535873,
0.16369888186454773,
-0.11731532961130142,
-0.22617463767528534,
-0.25561851263046265,
0.028279049322009087,
0.07528204470872879,
0.04704518988728523,
-0.08772247284650803,
-0.2791987955570221,
0.6700650453567505,
-0.33414897322654724,
-0.26968681812286377,
-0.050919536501169205,
0.20019596815109253,
0.2284441441297531,
-0.2409944087266922,
-0.629392683506012,
-0.008995858021080494,
0.4204946458339691,
0.022011712193489075,
-0.2528340220451355,
0.21365317702293396,
-0.06413591653108597,
0.15530496835708618,
-0.063470758497715,
0.021186677739024162,
-0.11201652884483337,
-0.056375421583652496,
0.04750323295593262,
-0.2333325892686844
] |
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.01708633452653885,
-0.32405203580856323,
0.06212107092142105,
0.21036720275878906,
0.38401085138320923,
-0.015518794767558575,
0.4157937467098236,
0.17859210073947906,
0.18794035911560059,
0.3116176426410675,
-0.2562713921070099,
0.2617369592189789,
-0.09007831662893295,
0.15559794008731842,
0.13464656472206116,
-0.17832382023334503,
-0.17807051539421082,
0.23624306917190552,
-0.14293792843818665,
-0.061041757464408875,
-0.3072659969329834,
0.0160216037184,
-0.2765931189060211,
0.15632742643356323,
-0.3710363805294037,
-0.2232295274734497,
-0.07274948805570602,
-0.03378615900874138,
-0.3516705334186554,
-0.3736092746257782,
0.35026994347572327,
-0.014940247870981693,
0.10775116086006165,
0.39366966485977173,
-0.00010927302355412394,
0.03974910080432892,
0.553189754486084,
0.091672383248806,
-0.12151895463466644,
-0.4864455759525299,
0.0033007063902914524,
-0.15359260141849518,
0.264088898897171,
-0.29718834161758423,
-0.249143585562706,
-0.16786925494670868,
-0.0046057188883423805,
0.15467192232608795,
0.39776042103767395,
0.506828784942627,
0.2735916078090668,
0.5179872512817383,
0.1557459831237793,
-0.3057214915752411,
0.2476203292608261,
0.1295626163482666,
-0.08303327113389969,
0.36455053091049194,
0.08680263161659241,
0.0324830524623394,
0.24765893816947937,
0.22567132115364075,
-0.2615951597690582,
-0.10203283280134201,
0.24819988012313843,
0.07144887000322342,
0.056582070887088776,
-0.3359339237213135,
-0.08744124323129654,
0.34583649039268494,
0.21765018999576569,
-0.4307979643344879,
-0.27401041984558105,
-0.01567181944847107,
0.15893295407295227,
-0.2778739035129547,
0.21526409685611725,
0.1117764487862587,
-0.061429914087057114,
0.2610109746456146,
-0.04775971174240112,
0.2916438579559326,
-0.27248719334602356,
0.22647351026535034,
0.033229660242795944,
0.09982987493276596,
-0.09743495285511017,
0.08648307621479034,
0.3184734582901001,
-0.19785988330841064,
-0.07124781608581543,
-0.07448431849479675,
0.07654039561748505,
0.19978779554367065,
-0.2625725567340851,
-0.15699908137321472,
0.04121486097574234,
-0.05275550112128258,
0.2478983849287033,
-0.06231233850121498,
0.010697493329644203,
-0.07843716442584991,
0.0866345539689064,
0.39452311396598816,
0.14579448103904724,
0.3695581257343292,
0.2746928334236145,
0.05964306369423866,
0.14712592959403992,
0.26839011907577515,
-0.11799246072769165,
0.05507409945130348,
-0.18129034340381622,
-0.05057648569345474,
0.2737025320529938,
0.10107771307229996,
0.4157114326953888,
-0.01238526962697506,
-0.3835289776325226,
-0.03406138718128204,
-0.24938906729221344,
0.2141653150320053,
0.21702218055725098,
0.4983268678188324,
-0.10985292494297028,
-0.006582926493138075,
0.1920764148235321,
0.17827123403549194,
-0.12116017937660217,
-0.13048581779003143,
-0.23571842908859253,
0.3422308564186096,
-0.3215109705924988,
-0.061732180416584015,
0.2265957146883011,
0.030896790325641632,
0.003928022924810648,
-0.004729343578219414,
0.06826049089431763,
-0.04180394485592842,
-0.01869443617761135,
-0.34790322184562683,
-0.08214839547872543,
0.25354865193367004,
0.032342687249183655,
-0.06852497160434723,
0.2264004498720169,
-0.4100438058376312,
-0.09811767190694809,
0.13097862899303436,
-0.0746355950832367,
-0.17959851026535034,
-0.23042240738868713,
0.23439116775989532,
-0.25608766078948975,
-0.02130301482975483,
-0.09343475103378296,
0.021253807470202446,
0.14475087821483612,
0.10136625170707703,
0.12724201381206512,
-0.01907772570848465,
0.017888857051730156,
-0.21807105839252472,
0.13807262480258942,
0.3654908239841461,
-0.10019104927778244,
-0.3205658197402954,
0.032153304666280746,
-0.002530493540689349,
0.11718623340129852,
-0.017370425164699554,
0.0019337742123752832,
0.2421710193157196,
-0.03054741397500038,
0.16688664257526398,
0.4985632598400116,
-0.6241476535797119,
-0.3442804515361786,
-0.2747381925582886,
-0.08063721656799316,
-0.016146335750818253,
0.039329465478658676,
-0.228688046336174,
0.1914646178483963,
0.2106938511133194,
0.44530031085014343,
0.15278014540672302,
0.15220947563648224,
0.016763746738433838,
-0.2598269581794739,
-0.2841210663318634,
-0.14923007786273956,
0.12166418880224228,
0.05722282826900482,
-0.06118283048272133,
-0.12467833608388901,
-0.33158302307128906,
0.043995920568704605,
-0.14642444252967834,
-0.09477902948856354,
-0.0285353846848011,
0.4802519381046295,
-0.026793675497174263,
-0.033461347222328186,
-0.5103316307067871,
-0.31101173162460327,
0.14441058039665222,
-0.08274389058351517,
0.49631136655807495,
-0.2935878038406372,
-0.24010206758975983,
-0.37979838252067566,
0.0216782558709383,
-0.026031259447336197,
-0.10736499726772308,
0.2608529031276703,
-0.02930048666894436,
-0.0793890655040741,
0.20398560166358948,
-0.1481565535068512,
0.3061811327934265,
-0.0629672184586525,
0.3361930251121521,
-0.08991215378046036,
0.252078115940094,
-0.051909394562244415,
-0.45358994603157043,
0.017811981961131096,
0.3152446746826172,
0.4074850082397461,
0.01843002252280712,
0.04007432609796524,
0.20596477389335632,
0.12007342278957367,
-0.2516605257987976,
-0.38797032833099365,
-0.20597954094409943,
0.09089533984661102,
-0.20526915788650513,
-0.1253313571214676,
-0.11939752846956253,
0.18755760788917542,
0.04323781281709671,
0.08160291612148285,
0.4845341444015503,
0.0002881813852582127,
0.14473576843738556,
-0.0010888214455917478,
0.21922588348388672,
0.04642488807439804,
-0.22235126793384552,
-0.19437023997306824,
-0.11165419220924377,
0.10983750969171524,
0.030224284157156944,
0.2480699121952057,
0.017976069822907448,
-0.14541637897491455,
0.016800159588456154,
0.6618239879608154,
0.04202531650662422,
0.25825801491737366,
-0.11820684373378754,
-0.36609092354774475,
0.25134843587875366,
0.1739424169063568,
0.08760542422533035,
0.3652849495410919,
0.25241440534591675,
-0.2956426441669464,
0.0845421701669693,
-0.163593128323555,
0.05055677518248558,
0.09764914214611053,
-0.06796039640903473,
0.36849915981292725,
-0.09125301241874695,
0.30753856897354126,
0.0185328871011734,
-0.30900630354881287,
0.07445813715457916,
-0.07930716872215271,
0.10628725588321686,
-0.3757317066192627,
0.11505004018545151,
-0.2569517195224762,
-0.14785149693489075,
-0.008882143534719944,
-0.1333736777305603,
0.026657627895474434,
-0.19740422070026398,
-0.05986820161342621,
0.35848984122276306,
0.08938464522361755,
0.28264108300209045,
0.20691987872123718,
0.019235482439398766,
-0.05906124413013458,
-0.10304872691631317,
-0.15513131022453308,
-0.10861778259277344,
-0.11700130999088287,
0.08233887702226639,
0.0588655062019825,
0.19155104458332062,
0.3331587314605713,
-0.31432756781578064,
0.09096045792102814,
0.1370227038860321,
-0.30263611674308777,
0.08582178503274918,
-0.17404410243034363,
0.2888217866420746,
0.2684487998485565,
0.15894430875778198,
-0.17590507864952087,
-0.062461335211992264,
0.43404915928840637,
-0.3824958801269531,
-0.1924286037683487,
0.2827723026275635,
-0.14143627882003784,
-0.0550839900970459,
-0.2623378336429596,
-0.2640996277332306,
-0.5197219252586365,
-0.294631689786911,
0.25503286719322205,
0.02269965037703514,
0.07175672799348831,
0.3472682535648346,
0.23404893279075623,
0.45231831073760986,
-0.3834226429462433,
-0.022939017042517662,
-0.144119530916214,
0.041289087384939194,
0.27287790179252625,
-0.08202559500932693,
-0.4259679615497589,
-0.007768501061946154,
-0.08550979197025299,
0.2539594769477844,
-0.1286991387605667,
-0.0568946972489357,
-0.44794800877571106,
-0.12663057446479797,
0.3238251209259033,
0.008614474907517433,
-0.1531495451927185,
0.6029995083808899,
0.015640558674931526,
-0.10780996829271317,
-0.15833397209644318,
-0.1767384260892868,
0.10459316521883011,
0.13827532529830933,
0.0056553673930466175,
-0.07007050514221191,
0.24532826244831085,
-0.026514727622270584,
0.3515644073486328,
-0.00499273557215929,
-0.20518937706947327,
0.34712111949920654,
-0.30444276332855225,
0.31469595432281494,
-0.12184067070484161,
-0.5708717703819275,
-0.07277804613113403,
-0.026523666456341743,
0.05206770449876785,
-0.13308794796466827,
-0.2462664097547531,
-0.0897768959403038,
-0.32857459783554077,
-0.17385485768318176,
-0.4415079951286316,
-0.23245400190353394,
0.05816258490085602,
0.13060981035232544,
-0.0827689990401268,
0.09588617831468582,
0.07748588919639587,
-0.35680699348449707,
0.05631091445684433,
-0.013216507621109486,
0.21224090456962585,
0.03561397269368172,
-0.18780626356601715,
-0.4234541952610016,
-0.2692607045173645,
-0.35538944602012634,
0.38304081559181213,
0.04684114828705788,
0.011089099571108818,
-0.0506005734205246,
-0.10247872024774551,
0.14107689261436462,
0.007634968031197786,
0.6806129217147827,
-0.030129745602607727,
-0.005590246059000492,
0.41600024700164795,
0.14175328612327576,
-0.6230164766311646,
0.07060670107603073,
-0.30217117071151733,
0.053191617131233215,
0.1227661743760109,
0.39853230118751526,
-0.46623408794403076,
-0.15596938133239746,
0.33630648255348206,
-0.037249282002449036,
-0.03282306343317032,
-0.21794097125530243,
-0.2882831394672394,
-0.3978615999221802,
-0.21368709206581116,
0.12518532574176788,
0.14489033818244934,
0.3859938681125641,
-0.22502140700817108,
-0.1091160848736763,
-0.12406709790229797,
0.09480059146881104,
0.03402164950966835,
0.2724270820617676,
0.23626762628555298,
-0.22808459401130676,
-0.09541317075490952,
0.011318758130073547,
0.08381722122430801,
0.25146397948265076,
0.2685817778110504,
-0.04332025349140167,
-0.5514886975288391,
-0.1514350324869156,
0.10565221309661865,
0.21616385877132416,
0.0786001980304718,
-0.13576166331768036,
0.00797171052545309,
-0.0911870151758194,
0.1339934915304184,
0.21577565371990204,
0.11816341429948807,
0.4902132749557495,
0.16989223659038544,
-0.2991672456264496,
-0.1917191743850708,
0.45214956998825073,
0.1290634721517563,
0.04472021013498306,
0.14727358520030975,
0.4835737645626068,
-0.16907793283462524,
0.27797070145606995,
-0.11960729211568832,
1.0848116874694824,
-0.003083023941144347,
-0.005264658480882645,
0.5609252452850342,
-0.10633443295955658,
0.6737447381019592,
0.0900181382894516,
0.2337672859430313,
-0.3639942705631256,
-0.19401130080223083,
-0.01781684346497059,
-0.1334923952817917,
0.2924991846084595,
-0.0650968849658966,
-0.5087831616401672,
0.17536737024784088,
-0.23621559143066406,
0.16399765014648438,
0.04378163814544678,
0.04702508822083473,
-0.11160064488649368,
-0.16344188153743744,
-0.3191119432449341,
0.1553265005350113,
-0.018995966762304306,
0.23817013204097748,
-0.029342712834477425,
-0.10321700572967529,
-0.2884882986545563,
-0.25003737211227417,
-0.1799219846725464,
0.048640958964824677,
-0.48934969305992126,
-0.2644634246826172,
0.2028953582048416,
-0.17350131273269653,
-0.2620542347431183,
0.03505629301071167,
0.17360608279705048,
0.027179284021258354,
-0.22951704263687134,
0.08504229038953781,
-0.01163087971508503,
-0.005728306248784065,
-0.06122838705778122,
-0.12011650204658508,
0.45167723298072815,
-0.18062321841716766,
-0.555999219417572,
-0.0021980765741318464,
0.028342194855213165,
0.1189500018954277,
0.33977392315864563,
0.05339393392205238,
-0.07207740098237991,
-0.37655550241470337,
-0.1956300437450409,
-0.08635666221380234,
0.21713995933532715,
-0.28493931889533997,
0.215872123837471,
-0.07561858743429184,
-0.17487087845802307,
-0.002015794161707163,
-0.021698350086808205,
-0.054684143513441086,
0.018115999177098274,
0.39953553676605225,
0.25003698468208313,
0.3563719689846039,
0.25368764996528625,
0.14535173773765564,
-0.12770457565784454,
-0.2788093388080597,
0.04545137286186218,
0.2644440531730652,
-0.5634874105453491,
0.14802798628807068,
0.21778897941112518,
-0.12832321226596832,
-0.0758904218673706,
0.42554086446762085,
0.03409698233008385,
0.019988154992461205,
-0.10816045105457306,
-0.171110600233078,
-0.247455433011055,
0.45197972655296326,
-0.05328823998570442,
-0.05338926985859871,
0.2934171259403229,
0.5443691611289978,
0.22287161648273468,
0.0077445534989237785,
-0.4028412401676178,
0.02584773115813732,
-0.3943949341773987,
0.051604993641376495,
0.05062435567378998,
-0.2735674977302551,
0.27415400743484497,
-0.06078733503818512,
0.22359421849250793,
0.200898215174675,
-0.06483789533376694,
-0.32924187183380127,
-0.15746046602725983,
0.10207019001245499,
0.013246613554656506,
0.15583524107933044,
0.14049048721790314,
0.042923275381326675,
-0.1865483969449997,
-0.1436392366886139,
0.16466185450553894,
-0.04848726466298103,
-0.05196717008948326,
0.23716691136360168,
0.16914430260658264,
0.3118644654750824,
0.04954623058438301,
0.09092971682548523,
-0.0028739843983203173,
-0.12940432131290436,
-0.0817832499742508,
0.017881890758872032,
0.009517847560346127,
0.02641751617193222,
-0.05654901638627052,
-0.10739504545927048,
0.12409252673387527,
0.17480388283729553,
0.09074021130800247,
-0.24518351256847382,
-0.35292157530784607,
-0.2803749740123749,
0.1817103773355484,
0.15338079631328583,
-0.15438109636306763,
0.1704658716917038,
-0.06709495931863785,
0.2948549687862396,
-0.4210548996925354,
0.023962611332535744,
0.21941357851028442,
-0.006779755465686321,
0.1791743040084839,
0.1512834131717682,
-0.27324002981185913,
0.20631130039691925,
-0.04716319218277931,
0.02835845574736595,
0.4666557312011719,
0.018107056617736816,
0.08895023167133331,
0.26311182975769043,
-0.13171111047267914,
-0.03442607820034027,
0.4894236624240875,
0.15612629055976868,
0.2242719531059265,
-0.00697089359164238,
-0.08840230107307434,
0.22369655966758728,
-0.1240096390247345,
0.07492214441299438,
0.29260560870170593,
-0.2168327420949936,
-0.0012599193723872304,
0.1986996978521347,
0.09429353475570679,
-0.1275276243686676,
-0.33495187759399414,
0.5498442649841309,
-0.23958900570869446,
-0.21077068150043488,
-0.17772121727466583,
0.19504550099372864,
-0.2097446322441101,
-0.001230391557328403,
-0.1400182694196701,
-0.08104902505874634,
-0.12686070799827576,
-0.4116223156452179,
0.05615321546792984,
-0.15146204829216003,
0.48629581928253174,
-0.12111206352710724,
-0.08711981773376465,
-0.2842109203338623,
-0.21753685176372528,
0.40874889492988586,
0.30504634976387024,
-0.15429294109344482,
0.18808388710021973,
0.07063888758420944,
0.1759781539440155,
-0.2439066618680954,
0.5857952237129211,
0.4205299913883209,
0.20320521295070648,
-0.08770465105772018,
-0.03941244259476662,
-0.0987188071012497,
-0.3073499798774719,
0.07585035264492035,
0.16010348498821259,
0.3437223434448242,
0.22101062536239624,
0.002097126329317689,
0.2533307671546936,
-0.24432630836963654,
0.22705265879631042,
-0.10374125838279724,
0.04407113790512085,
-0.4042602479457855,
0.3363022804260254,
-0.3260604441165924,
-0.24991518259048462,
-0.32512563467025757,
0.007001881953328848,
-0.40861430764198303,
0.1709921807050705,
0.3403102159500122,
0.004055223893374205,
0.1531255692243576,
-0.3124786615371704,
0.10259968787431717,
-0.12374897301197052,
0.28728020191192627,
-0.04214292764663696,
0.2992597818374634,
-0.18125103414058685,
0.07317853718996048,
-0.42496079206466675,
0.3959839642047882,
-0.12529271841049194,
-0.11226202547550201,
0.08735142648220062,
-0.16188332438468933,
-0.14888843894004822,
0.03998517990112305,
0.05573441833257675,
0.4386809766292572,
0.05670362710952759,
-0.059052418917417526,
-0.5389714241027832,
-0.15329155325889587,
-0.13442954421043396,
-0.2273552268743515,
0.20098906755447388,
-0.25202056765556335,
0.08007784187793732,
-0.14424195885658264,
0.06376690417528152,
0.029505597427487373,
-0.09635920822620392,
0.1442125290632248,
0.06708255410194397,
0.6210787296295166,
0.18810401856899261,
0.33924180269241333,
-0.04305378347635269,
-0.06899578869342804,
0.02499285340309143,
-0.17406724393367767,
-0.24063606560230255,
0.2803036570549011,
0.21602857112884521,
0.2756668031215668,
0.0625704750418663,
0.08705434948205948,
-0.04754490405321121,
0.10858748108148575,
0.08250273019075394,
-0.22646911442279816,
-0.06166669726371765,
0.11979424953460693,
-0.02025822177529335,
-0.23730510473251343,
-0.19963447749614716,
0.06107083335518837,
0.005293633788824081,
0.07696878910064697,
-0.2243453860282898,
-0.24810092151165009,
0.7152534127235413,
-0.2563151717185974,
-0.26380008459091187,
0.05539305508136749,
0.2930927574634552,
0.11650419980287552,
-0.4328463673591614,
-0.7834484577178955,
0.016644950956106186,
0.29394206404685974,
0.08392646163702011,
-0.224029079079628,
0.2948252856731415,
0.010084747336804867,
0.048218194395303726,
-0.07461746037006378,
0.13523709774017334,
0.04077070951461792,
-0.016858670860528946,
0.07124673575162888,
-0.20073989033699036
] |
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.2277717888355255,
-0.31934982538223267,
0.0008596048573963344,
0.3918522000312805,
0.3677235245704651,
0.055745333433151245,
0.317633718252182,
0.15452899038791656,
0.1733444184064865,
0.296028196811676,
-0.14268605411052704,
0.4552958309650421,
-0.07765696942806244,
0.22984382510185242,
0.049333490431308746,
-0.1651725023984909,
-0.21050333976745605,
0.2611338496208191,
-0.11917068809270859,
0.026228168979287148,
-0.50922030210495,
-0.07414790242910385,
-0.16408497095108032,
0.13499264419078827,
-0.23775465786457062,
-0.2719808518886566,
-0.12409459054470062,
0.040825679898262024,
-0.19214265048503876,
-0.28385022282600403,
0.36457133293151855,
-0.08018814772367477,
0.21226215362548828,
0.59889155626297,
-0.00010084890527650714,
-0.15145406126976013,
0.43520599603652954,
0.04760037735104561,
-0.12549129128456116,
-0.35230422019958496,
-0.29466375708580017,
-0.3847203552722931,
0.18985725939273834,
-0.38270264863967896,
-0.07430335134267807,
-0.008201698772609234,
0.028609080240130424,
-0.242637500166893,
0.34812477231025696,
0.3484523892402649,
0.35069942474365234,
0.41590356826782227,
0.08335818350315094,
-0.28238123655319214,
0.1884775012731552,
0.07757232338190079,
-0.10485311597585678,
0.2966809868812561,
0.06237315759062767,
-0.016479311510920525,
0.31453365087509155,
0.16020415723323822,
-0.2830140292644501,
-0.05429888144135475,
0.25512129068374634,
0.06458748131990433,
-0.005323885940015316,
-0.3559246063232422,
0.03103676065802574,
0.30667027831077576,
0.41957128047943115,
-0.39462482929229736,
-0.18722057342529297,
0.06077725812792778,
0.12990844249725342,
-0.22349782288074493,
0.15397274494171143,
-0.011558984406292439,
-0.006477156654000282,
0.06588654965162277,
-0.00403642700985074,
0.155792236328125,
-0.23680473864078522,
0.21838344633579254,
-0.166423961520195,
0.09019751101732254,
-0.21209998428821564,
0.10706394910812378,
0.06709757447242737,
-0.1992393434047699,
0.045229408890008926,
-0.18398600816726685,
0.03513520583510399,
0.10960429161787033,
-0.22112667560577393,
-0.1452791541814804,
0.12990142405033112,
0.11116823554039001,
0.12701068818569183,
-0.24557748436927795,
0.1168714091181755,
-0.04831169545650482,
-0.02369585819542408,
0.40717145800590515,
0.23989392817020416,
0.21606512367725372,
0.19707214832305908,
0.14963380992412567,
0.21602937579154968,
0.04413441941142082,
-0.1853792518377304,
-0.051974162459373474,
-0.12557633221149445,
-0.10145648568868637,
0.28146225214004517,
0.19620639085769653,
0.569689154624939,
-0.0633770003914833,
-0.4451119899749756,
-0.0369892455637455,
-0.2070900797843933,
0.09236692637205124,
0.2541407644748688,
0.37839171290397644,
-0.18408653140068054,
0.15318118035793304,
0.21491797268390656,
0.06958386301994324,
-0.14264096319675446,
-0.23278231918811798,
-0.2402682900428772,
0.3336760401725769,
-0.2726964056491852,
-0.23244844377040863,
0.07322376221418381,
0.08000853657722473,
-0.10165183991193771,
0.05153471976518631,
-0.046605996787548065,
0.07362622022628784,
0.10525663197040558,
-0.382973849773407,
-0.17160022258758545,
0.16135072708129883,
0.13423681259155273,
-0.010921849869191647,
0.3575492203235626,
-0.41323113441467285,
-0.14554263651371002,
0.10808688402175903,
-0.3179212808609009,
-0.09275377541780472,
-0.09039182960987091,
0.32125577330589294,
-0.23628981411457062,
-0.07920943945646286,
-0.19519110023975372,
-0.004734909627586603,
0.077216736972332,
-0.20212046802043915,
0.02438708208501339,
-0.1612922102212906,
0.009970682673156261,
-0.4124753475189209,
0.039672642946243286,
0.5434513688087463,
-0.37022554874420166,
-0.13193170726299286,
-0.3559999465942383,
-0.05267136171460152,
0.3650830388069153,
-0.1617242842912674,
0.08691880851984024,
0.20492619276046753,
-0.16195574402809143,
-0.07837900519371033,
0.5953564643859863,
-0.36260107159614563,
-0.1942623257637024,
0.055629562586545944,
-0.07925167679786682,
-0.058040499687194824,
-0.06744794547557831,
-0.014070553705096245,
0.0950176864862442,
0.1139310970902443,
0.40954047441482544,
0.2211548238992691,
-0.06333056092262268,
-0.02786981873214245,
-0.19504022598266602,
-0.1733904778957367,
0.16490298509597778,
0.091837577521801,
0.14367234706878662,
0.16262559592723846,
0.06308355927467346,
-0.20378491282463074,
0.01849423721432686,
-0.03979209437966347,
-0.09291737526655197,
-0.06524170935153961,
0.6565251350402832,
-0.08722405135631561,
-0.07887369394302368,
-0.5945642590522766,
-0.3253449499607086,
0.16847887635231018,
-0.06773649901151657,
0.28072309494018555,
-0.14473308622837067,
-0.17076821625232697,
-0.3664011061191559,
0.0677761659026146,
-0.049829140305519104,
0.04808838292956352,
0.3426540791988373,
0.1271563619375229,
-0.19987215101718903,
0.04511837288737297,
-0.1443466693162918,
0.17791980504989624,
-0.14985951781272888,
0.10199569165706635,
-0.005735407583415508,
0.30328306555747986,
-0.010558279231190681,
-0.3550935685634613,
0.04372115805745125,
0.23754411935806274,
0.5392078161239624,
0.030110778287053108,
-0.07144980877637863,
0.29617151618003845,
0.08397292345762253,
-0.13781502842903137,
-0.14906591176986694,
-0.08285408467054367,
0.11919119954109192,
-0.2615099847316742,
0.0761331170797348,
0.11351048201322556,
0.34134769439697266,
-0.0806758776307106,
0.13791555166244507,
0.5502915978431702,
0.07054278254508972,
0.21825061738491058,
-0.042579617351293564,
0.2359917163848877,
-0.045875195413827896,
-0.04047543928027153,
-0.09132033586502075,
-0.13912305235862732,
0.13101375102996826,
0.09693329781293869,
0.1783953756093979,
-0.06409047544002533,
-0.11669480055570602,
0.06287836283445358,
0.567564070224762,
0.09858553856611252,
0.38464897871017456,
-0.07103820145130157,
-0.300226628780365,
0.15484510362148285,
0.08901749551296234,
0.28227970004081726,
0.4458233714103699,
0.3082369565963745,
-0.13481689989566803,
0.002844827249646187,
-0.10547352582216263,
0.09092573076486588,
0.06957720220088959,
-0.008273890241980553,
0.21120792627334595,
-0.018398068845272064,
0.17825211584568024,
0.07994454354047775,
-0.17789337038993835,
-0.04522005841135979,
-0.22354428470134735,
0.2644324004650116,
-0.35881778597831726,
0.1916423738002777,
-0.267538845539093,
-0.16936078667640686,
0.04168180003762245,
-0.06624147295951843,
-0.1583891063928604,
-0.34399667382240295,
-0.23224134743213654,
0.02564012072980404,
0.11330529302358627,
0.1315740942955017,
0.11442555487155914,
0.15597139298915863,
0.008065528236329556,
0.08559388667345047,
-0.16564863920211792,
-0.10267563164234161,
-0.12899354100227356,
0.16394028067588806,
0.12112601846456528,
0.21240754425525665,
0.485167920589447,
-0.22811324894428253,
0.24508211016654968,
-0.026444729417562485,
-0.22799471020698547,
0.0638849288225174,
-0.09600373357534409,
0.49242860078811646,
0.45338502526283264,
0.1707102209329605,
-0.0828905701637268,
-0.01671091467142105,
0.3197825849056244,
-0.36569944024086,
0.0297310259193182,
0.21107271313667297,
-0.22123156487941742,
0.10772017389535904,
-0.15860573947429657,
-0.1741417944431305,
-0.5684421062469482,
-0.41110557317733765,
0.10356123000383377,
0.16801150143146515,
0.16570709645748138,
0.16241984069347382,
0.12474197894334793,
0.5334131717681885,
0.13757435977458954,
0.19339755177497864,
-0.19584597647190094,
-0.04873540624976158,
0.2836107611656189,
-0.12286008149385452,
-0.2586844265460968,
0.1470843255519867,
-0.10504310578107834,
0.2065625935792923,
0.015534295700490475,
-0.1752420961856842,
-0.53934246301651,
-0.17314541339874268,
0.15460382401943207,
-0.08293263614177704,
0.0919007733464241,
0.2602022588253021,
0.1155405342578888,
-0.13905413448810577,
-0.23397709429264069,
-0.14286503195762634,
-0.16614916920661926,
0.25579750537872314,
0.06729342043399811,
0.04017559066414833,
0.3397759199142456,
-0.17836739122867584,
0.12944793701171875,
0.006567265372723341,
-0.234648659825325,
0.34603092074394226,
-0.2629455029964447,
0.34894275665283203,
-0.12483135610818863,
-0.5024334788322449,
-0.14444008469581604,
0.0058216494508087635,
-0.09000464528799057,
-0.04922991618514061,
-0.16131576895713806,
-0.16664005815982819,
-0.3757924735546112,
-0.12356793135404587,
-0.44734451174736023,
-0.17320892214775085,
-0.026835191994905472,
0.21328188478946686,
0.01965866982936859,
-0.01078101061284542,
0.12264080345630646,
-0.46823570132255554,
0.048934388905763626,
-0.051646169275045395,
0.2382136434316635,
0.019747883081436157,
-0.2432863414287567,
-0.24794071912765503,
-0.30901774764060974,
-0.18549393117427826,
0.44906145334243774,
-0.16298943758010864,
0.033765245229005814,
-0.17223937809467316,
-0.020914841443300247,
0.046381957828998566,
-0.01755589246749878,
0.5029237270355225,
-0.34191417694091797,
0.07977236062288284,
0.49850013852119446,
0.13876231014728546,
-0.3840283155441284,
0.17398439347743988,
-0.40702641010284424,
0.3183741569519043,
0.15173260867595673,
0.283777117729187,
-0.31609097123146057,
-0.02061113342642784,
0.2402317076921463,
0.1300393044948578,
-0.1309812068939209,
-0.20839419960975647,
-0.1448211669921875,
-0.23429585993289948,
-0.12783211469650269,
0.024501902982592583,
-0.00371735030785203,
0.30061250925064087,
-0.13161513209342957,
-0.14784950017929077,
-0.3589726686477661,
0.02260715328156948,
0.2575150728225708,
0.20952464640140533,
0.2955667972564697,
-0.09687668830156326,
-0.07358474284410477,
-0.0680023804306984,
0.08212657272815704,
0.19551226496696472,
0.2744944989681244,
0.018946008756756783,
-0.39154815673828125,
0.06302884966135025,
0.056503746658563614,
0.2511690855026245,
0.07812169194221497,
-0.14416714012622833,
-0.053579412400722504,
-0.08006293326616287,
0.19437867403030396,
-0.0523575022816658,
0.1001061424612999,
0.2666037082672119,
0.09289400279521942,
-0.4500442445278168,
-0.34441420435905457,
0.38864660263061523,
0.19110390543937683,
-0.046810928732156754,
0.25152474641799927,
0.25549957156181335,
-0.25870388746261597,
0.24113546311855316,
0.058512479066848755,
1.0566790103912354,
0.04513091593980789,
-0.17906388640403748,
0.4914723336696625,
-0.12531815469264984,
0.5688883066177368,
0.04279673472046852,
0.015406404621899128,
-0.337897926568985,
-0.26562243700027466,
-0.051065001636743546,
-0.15461601316928864,
0.32529327273368835,
-0.09901909530162811,
-0.6059666872024536,
0.2722361385822296,
-0.4187101125717163,
-0.01130365114659071,
-0.0516175851225853,
-0.14507253468036652,
-0.16157524287700653,
-0.1305699199438095,
-0.4006143808364868,
0.2759850025177002,
-0.17678901553153992,
0.17052288353443146,
-0.1539546698331833,
-0.048945553600788116,
0.01745421811938286,
-0.12432325631380081,
-0.10454323142766953,
-0.00681595504283905,
-0.4354238510131836,
-0.20154745876789093,
-0.11793272197246552,
-0.16178494691848755,
0.01737365499138832,
0.14574399590492249,
0.1715211421251297,
0.13368289172649384,
-0.23752771317958832,
0.09018596261739731,
0.06006653979420662,
0.06914373487234116,
-0.08439328521490097,
0.03532776981592178,
0.24274763464927673,
-0.019792022183537483,
-0.31552407145500183,
0.17253948748111725,
0.03479138761758804,
0.1483975052833557,
0.364558607339859,
0.09961339831352234,
-0.08317834883928299,
-0.38849520683288574,
-0.1447438895702362,
-0.06020010635256767,
0.20350569486618042,
-0.25693678855895996,
0.2733272910118103,
0.12671276926994324,
-0.07536587119102478,
0.10747841000556946,
-0.024491604417562485,
-0.09386896342039108,
-0.05633179470896721,
0.2750469148159027,
0.35041382908821106,
0.2657758891582489,
0.09271136671304703,
0.20155228674411774,
-0.21497254073619843,
-0.37389400601387024,
0.26543575525283813,
0.07702445238828659,
-0.2265850305557251,
0.2399500459432602,
0.14243990182876587,
-0.04775659367442131,
-0.07400849461555481,
0.32813748717308044,
0.10603386163711548,
0.04969412088394165,
-0.15294675529003143,
-0.2888399362564087,
-0.2707045376300812,
0.25821810960769653,
0.1262250393629074,
0.07763279229402542,
-0.028471868485212326,
0.2088867574930191,
0.19131721556186676,
-0.04921289533376694,
-0.48227137327194214,
0.06056452542543411,
-0.38360872864723206,
-0.08708029985427856,
0.05517614632844925,
-0.09081285446882248,
0.18941102921962738,
-0.0005159584688954055,
0.2610563039779663,
0.08882583677768707,
-0.08104278147220612,
-0.3424244821071625,
-0.1005697175860405,
0.09644263982772827,
0.0030657651368528605,
0.035218335688114166,
0.14856772124767303,
-0.1207064539194107,
-0.17071841657161713,
-0.1411677598953247,
0.026607805863022804,
0.05938773974776268,
-0.1587967872619629,
0.11504946649074554,
0.12432632595300674,
0.28314682841300964,
0.03530001640319824,
0.20566697418689728,
0.07696571201086044,
-0.022946391254663467,
-0.04354216903448105,
0.018797460943460464,
0.003622425487264991,
-0.06407918781042099,
-0.030197057873010635,
0.02797018177807331,
0.14513066411018372,
0.1402728259563446,
0.1255752444267273,
-0.1008506715297699,
-0.21022027730941772,
0.0878467857837677,
0.16580770909786224,
0.15596726536750793,
-0.14198395609855652,
0.2770465016365051,
-0.08683040738105774,
0.36644455790519714,
-0.2744104564189911,
0.06080508604645729,
0.19101999700069427,
-0.11251930147409439,
0.23193934559822083,
0.15145716071128845,
-0.3416765630245209,
0.2574729919433594,
-0.16059806942939758,
-0.024174554273486137,
0.37635308504104614,
-0.15950582921504974,
0.1542949080467224,
0.23224470019340515,
-0.1036699116230011,
-0.02693462185561657,
0.3910496234893799,
0.22500093281269073,
0.08933497965335846,
0.06976647675037384,
-0.10523289442062378,
0.16590967774391174,
-0.035488370805978775,
0.022982731461524963,
0.23917575180530548,
-0.4080978333950043,
0.24598410725593567,
0.25163570046424866,
-0.029161034151911736,
-0.06563083827495575,
-0.1686447262763977,
0.2762499153614044,
-0.5681776404380798,
-0.10208331048488617,
-0.30880531668663025,
0.011397226713597775,
-0.17325694859027863,
0.1290307343006134,
-0.1282634139060974,
-0.14371038973331451,
-0.26997146010398865,
-0.33196505904197693,
0.05567282810807228,
-0.17900875210762024,
0.1954612284898758,
-0.13716188073158264,
0.1048782616853714,
-0.19526395201683044,
-0.0611727237701416,
0.2457258403301239,
0.1937711238861084,
-0.2082413136959076,
-0.04024988412857056,
-0.012575292959809303,
0.23608370125293732,
-0.1725248247385025,
0.5394887924194336,
0.3954850435256958,
0.33220720291137695,
-0.16179779171943665,
-0.0274389386177063,
0.07311812043190002,
-0.28203731775283813,
-0.06031568720936775,
0.048548948019742966,
0.03404004126787186,
0.2409239411354065,
0.0659550204873085,
0.340512216091156,
-0.31979385018348694,
0.09676826000213623,
-0.06599994003772736,
0.016792163252830505,
-0.3043792247772217,
0.43044257164001465,
-0.30635660886764526,
-0.13282674551010132,
-0.11993408203125,
-0.1177728921175003,
-0.5592747926712036,
0.060260407626628876,
0.40060892701148987,
0.06404069066047668,
0.10860791057348251,
-0.1182628720998764,
0.15099644660949707,
-0.1716413050889969,
0.118016317486763,
-0.0006220340146683156,
0.33708178997039795,
-0.26152151823043823,
0.07738443464040756,
-0.4892742335796356,
0.364793598651886,
0.027636399492621422,
-0.19823767244815826,
0.03153759241104126,
-0.11909489333629608,
-0.14704211056232452,
0.009699833579361439,
0.04012318700551987,
0.2380816489458084,
0.23860399425029755,
0.006258962210267782,
-0.5759986042976379,
-0.34100285172462463,
-0.10113728046417236,
-0.21595990657806396,
0.10869063436985016,
-0.23002520203590393,
-0.044758014380931854,
-0.15006299316883087,
0.18267102539539337,
-0.042810872197151184,
-0.257914662361145,
0.0840296819806099,
0.11911369860172272,
0.6550233364105225,
0.1934749037027359,
0.3989149332046509,
-0.12089641392230988,
-0.022604113444685936,
0.15709485113620758,
-0.32023993134498596,
-0.08176839351654053,
0.2735508382320404,
0.12101344019174576,
0.2002994418144226,
0.041545748710632324,
0.16314782202243805,
-0.20303331315517426,
0.002424961421638727,
0.0274581927806139,
0.05853932723402977,
-0.146443173289299,
0.30776289105415344,
-0.16456054151058197,
-0.2361539900302887,
-0.2291443943977356,
0.109535813331604,
0.060457147657871246,
0.1458994597196579,
-0.019830623641610146,
-0.11069868505001068,
0.6249813437461853,
-0.1692861169576645,
-0.25988495349884033,
-0.057038869708776474,
0.37244683504104614,
0.004407704807817936,
-0.12032797932624817,
-0.4922206699848175,
0.0031387791968882084,
0.464641809463501,
-0.04881381615996361,
-0.16638563573360443,
0.2039656937122345,
-0.1955646127462387,
-0.019562702625989914,
-0.03939560055732727,
0.11102133244276047,
-0.018885931000113487,
0.0038259178400039673,
0.25791922211647034,
-0.11875545233488083
] |
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.23339347541332245,
-0.2121906280517578,
0.015184035524725914,
0.354036420583725,
0.43131205439567566,
0.056546226143836975,
0.4275258481502533,
0.16688404977321625,
0.16195866465568542,
0.25438788533210754,
-0.14912022650241852,
0.48388686776161194,
-0.0326276570558548,
0.20084495842456818,
0.13511495292186737,
-0.18757759034633636,
-0.17804871499538422,
0.18363413214683533,
-0.2075737565755844,
0.05549140274524689,
-0.5303390622138977,
-0.0694580227136612,
-0.13110026717185974,
0.1142209842801094,
-0.16530455648899078,
-0.24418222904205322,
-0.15802015364170074,
0.09879214316606522,
-0.1795857846736908,
-0.35017842054367065,
0.4064704179763794,
-0.11642841249704361,
0.21963775157928467,
0.5620646476745605,
-0.00010151931928703561,
-0.04592006281018257,
0.4622379243373871,
0.07418891042470932,
-0.1826762855052948,
-0.3177575469017029,
-0.2952965199947357,
-0.3818570375442505,
0.17007113993167877,
-0.3912409245967865,
-0.04817003756761551,
-0.0371994823217392,
-0.003975628409534693,
-0.2519204616546631,
0.2980596423149109,
0.37957972288131714,
0.3288024961948395,
0.4538751244544983,
0.09116264432668686,
-0.24887655675411224,
0.1904579997062683,
0.09100265800952911,
-0.0621265210211277,
0.30237865447998047,
0.05389517918229103,
-0.05676645785570145,
0.21138735115528107,
0.1328086256980896,
-0.3628794848918915,
-0.055636681616306305,
0.27193158864974976,
0.0631391853094101,
0.03363562375307083,
-0.3873291313648224,
0.07486756891012192,
0.3000452220439911,
0.4482409358024597,
-0.3896304666996002,
-0.24697451293468475,
0.02359425276517868,
0.122348852455616,
-0.19945156574249268,
0.2123638391494751,
0.050951529294252396,
0.0008063428686000407,
0.06162850186228752,
0.019643884152173996,
0.19357775151729584,
-0.19301839172840118,
0.24975326657295227,
-0.1554911881685257,
0.15984635055065155,
-0.16727383434772491,
0.11822829395532608,
0.07085463404655457,
-0.20339177548885345,
0.049795836210250854,
-0.2369978278875351,
0.007765362039208412,
0.11362124234437943,
-0.26226291060447693,
-0.05780373886227608,
0.1595870852470398,
0.13281436264514923,
0.09247203916311264,
-0.20312447845935822,
0.08403800427913666,
-0.03857806324958801,
0.0005328215775080025,
0.373462975025177,
0.26571011543273926,
0.2719014585018158,
0.26306548714637756,
0.10534968227148056,
0.3113083839416504,
0.09685062617063522,
-0.10354021936655045,
0.01716042309999466,
-0.17414069175720215,
-0.19628854095935822,
0.2919629216194153,
0.27147194743156433,
0.5614538192749023,
-0.007139156572520733,
-0.4003361463546753,
-0.11291177570819855,
-0.17627231776714325,
0.041477520018815994,
0.19149397313594818,
0.3488394320011139,
-0.165996715426445,
0.19303937256336212,
0.20036335289478302,
0.12483390420675278,
-0.21398060023784637,
-0.26026207208633423,
-0.23422953486442566,
0.2774367928504944,
-0.2562618553638458,
-0.1992112100124359,
0.11577451229095459,
-0.012631750665605068,
-0.07417211681604385,
0.011299165897071362,
-0.17714588344097137,
0.1546332985162735,
0.1403736174106598,
-0.3297450840473175,
-0.19453197717666626,
0.18054045736789703,
0.05135127156972885,
0.04685419052839279,
0.33966436982154846,
-0.37678262591362,
-0.14490918815135956,
0.08572862297296524,
-0.2972792685031891,
-0.14067351818084717,
-0.1555439829826355,
0.3137725293636322,
-0.20381096005439758,
-0.0596020333468914,
-0.221103236079216,
-0.027177227661013603,
0.12903505563735962,
-0.15920792520046234,
0.022494064643979073,
-0.15681110322475433,
-0.034394219517707825,
-0.406864732503891,
0.09199099987745285,
0.6147854924201965,
-0.40717875957489014,
-0.15554848313331604,
-0.36548542976379395,
-0.14992940425872803,
0.32068589329719543,
-0.21920467913150787,
0.042047251015901566,
0.20534266531467438,
-0.18843941390514374,
-0.06704098731279373,
0.5587276220321655,
-0.41095951199531555,
-0.2658073604106903,
0.07133001834154129,
-0.12879246473312378,
-0.08685969561338425,
0.04065141826868057,
-0.029997751116752625,
0.07223037630319595,
0.11370839178562164,
0.4100968539714813,
0.2751319110393524,
0.001114853541366756,
0.00790170207619667,
-0.1864452362060547,
-0.23571226000785828,
0.19917726516723633,
0.06497577577829361,
0.1384473741054535,
0.10235532373189926,
0.14062167704105377,
-0.1971796154975891,
0.024663537740707397,
-0.048764463514089584,
-0.03272475674748421,
-0.057789526879787445,
0.5558086037635803,
-0.04685458168387413,
-0.04484347254037857,
-0.5518354773521423,
-0.4227510988712311,
0.18975508213043213,
-0.07995381206274033,
0.3541659116744995,
-0.13350385427474976,
-0.18728064000606537,
-0.3264656364917755,
0.05830271169543266,
-0.13896358013153076,
-0.020066238939762115,
0.31765300035476685,
0.15457433462142944,
-0.16887301206588745,
0.02886861562728882,
-0.05646901577711105,
0.21193748712539673,
-0.07563058286905289,
0.07361214607954025,
-0.14293032884597778,
0.3080185651779175,
-0.05763790011405945,
-0.3339878022670746,
0.03776784986257553,
0.25380104780197144,
0.5117611885070801,
-0.00044890944263897836,
-0.06332007050514221,
0.32448020577430725,
0.08667448908090591,
-0.04965353012084961,
-0.1650346964597702,
-0.0999799519777298,
0.15094152092933655,
-0.22893747687339783,
0.09716618061065674,
0.08726461231708527,
0.3168584108352661,
-0.06620455533266068,
0.09549503028392792,
0.4775230884552002,
0.08892542868852615,
0.28696417808532715,
-0.0390482172369957,
0.2417561262845993,
-0.04115888848900795,
-0.028783012181520462,
-0.08499163389205933,
-0.17435292899608612,
0.07616788148880005,
0.18948405981063843,
0.2709216773509979,
-0.03209209814667702,
-0.037703737616539,
0.09219475090503693,
0.5580124855041504,
0.044321514666080475,
0.3538885712623596,
-0.08044260740280151,
-0.38185083866119385,
0.08841374516487122,
0.1868623048067093,
0.2703927457332611,
0.4774661660194397,
0.31630566716194153,
-0.1177278459072113,
-0.013574306853115559,
-0.0687379390001297,
0.06897198408842087,
0.08990547806024551,
0.00006893109093653038,
0.21827521920204163,
0.032635197043418884,
0.20715399086475372,
0.060828156769275665,
-0.2113720327615738,
-0.05290532857179642,
-0.17337608337402344,
0.22314688563346863,
-0.40777459740638733,
0.11844198405742645,
-0.3216187357902527,
-0.15450599789619446,
-0.020385917276144028,
0.0009126905933953822,
-0.1665663868188858,
-0.37006208300590515,
-0.29230421781539917,
0.009075726382434368,
0.05861397087574005,
0.13553136587142944,
0.0729437917470932,
0.08480777591466904,
0.03038073517382145,
0.0038107791915535927,
-0.14329157769680023,
-0.15066476166248322,
-0.19723708927631378,
0.13092702627182007,
0.1724000871181488,
0.20352241396903992,
0.45791012048721313,
-0.1723937690258026,
0.14968310296535492,
-0.06682398170232773,
-0.2592746913433075,
0.06910696625709534,
-0.03589170053601265,
0.5192124247550964,
0.47515732049942017,
0.1759488433599472,
0.037335604429244995,
-0.07237178832292557,
0.3917141258716583,
-0.33756518363952637,
-0.03636093810200691,
0.2813178598880768,
-0.22624917328357697,
0.19123783707618713,
-0.16277427971363068,
-0.270955353975296,
-0.5850609540939331,
-0.43146488070487976,
0.09004926681518555,
0.1581937074661255,
0.15741793811321259,
0.229073166847229,
0.13763077557086945,
0.4989827573299408,
0.05544595047831535,
0.17362728714942932,
-0.1574207842350006,
-0.051701489835977554,
0.2869260013103485,
-0.12826862931251526,
-0.31886208057403564,
0.06270301342010498,
-0.16105914115905762,
0.21237170696258545,
0.009506064467132092,
-0.20918047428131104,
-0.5421624779701233,
-0.19377408921718597,
0.24889902770519257,
-0.008854052051901817,
0.14066453278064728,
0.28208616375923157,
0.16523794829845428,
-0.17189590632915497,
-0.2008974254131317,
-0.14519576728343964,
-0.09587510675191879,
0.26473838090896606,
0.0032782210037112236,
0.12684892117977142,
0.3415830433368683,
-0.16137097775936127,
0.15917529165744781,
0.021252239122986794,
-0.19930827617645264,
0.4150005280971527,
-0.26402899622917175,
0.3553529679775238,
-0.15535324811935425,
-0.5011111497879028,
-0.1316000074148178,
-0.03415525704622269,
0.011962495744228363,
-0.025777297094464302,
-0.14988495409488678,
-0.16163420677185059,
-0.3645356297492981,
-0.19629205763339996,
-0.44020989537239075,
-0.19432587921619415,
-0.045190367847681046,
0.1996709257364273,
0.020420189946889877,
-0.029307125136256218,
0.12709254026412964,
-0.48087793588638306,
0.032610032707452774,
0.042680878192186356,
0.22182711958885193,
-0.04362748935818672,
-0.17677536606788635,
-0.24602414667606354,
-0.24011114239692688,
-0.2647051513195038,
0.4546615481376648,
-0.15862037241458893,
0.03671834617853165,
-0.14815819263458252,
-0.060427017509937286,
0.0030131263192743063,
-0.07133318483829498,
0.5519667863845825,
-0.3454786539077759,
0.16794700920581818,
0.51273113489151,
0.1982307732105255,
-0.39729973673820496,
0.14483055472373962,
-0.3467213213443756,
0.19787093997001648,
0.06584486365318298,
0.3129544258117676,
-0.35857540369033813,
-0.03750889375805855,
0.2515779435634613,
0.2019125372171402,
-0.12929847836494446,
-0.17405161261558533,
-0.14477881789207458,
-0.2503765821456909,
-0.13170042634010315,
-0.058485254645347595,
-0.12461420148611069,
0.3594874143600464,
-0.12653790414333344,
-0.1583641916513443,
-0.3093513250350952,
-0.03011958673596382,
0.1789488047361374,
0.1840762197971344,
0.2802935838699341,
-0.0759284719824791,
-0.036761775612831116,
-0.046406205743551254,
0.0716993510723114,
0.23198601603507996,
0.3442589342594147,
-0.023946592584252357,
-0.36059966683387756,
0.0667760893702507,
0.014034341089427471,
0.23565299808979034,
0.05852599814534187,
-0.18437200784683228,
-0.10359589010477066,
-0.05338529869914055,
0.20020590722560883,
-0.10604531317949295,
0.074985072016716,
0.30687201023101807,
0.06406176835298538,
-0.3982103168964386,
-0.3787672221660614,
0.4075772762298584,
0.14827750623226166,
-0.05587651580572128,
0.2646412253379822,
0.24937210977077484,
-0.3079308271408081,
0.2636657953262329,
0.07650411874055862,
0.9972295761108398,
0.06343638151884079,
-0.14272277057170868,
0.5291197896003723,
-0.0992497131228447,
0.570834755897522,
0.021664289757609367,
0.07378081232309341,
-0.32256487011909485,
-0.24031803011894226,
-0.06216682493686676,
-0.14588138461112976,
0.36378324031829834,
0.01775672659277916,
-0.5546256303787231,
0.2570113241672516,
-0.4040378928184509,
0.03388117998838425,
-0.09939473122358322,
-0.05407922342419624,
-0.16800810396671295,
-0.15559352934360504,
-0.42216575145721436,
0.26156434416770935,
-0.13916060328483582,
0.16466718912124634,
-0.09646626561880112,
-0.05598985403776169,
0.0007047899998724461,
-0.15051066875457764,
-0.05448818579316139,
0.026048550382256508,
-0.47052910923957825,
-0.09283125400543213,
-0.19598938524723053,
-0.1402025818824768,
-0.015017703175544739,
0.21177265048027039,
0.10819725692272186,
0.07988068461418152,
-0.2208482176065445,
0.07476349920034409,
0.10030053555965424,
0.11136102676391602,
-0.0745939388871193,
0.018623681738972664,
0.2860426902770996,
-0.03659310191869736,
-0.34211769700050354,
0.14515799283981323,
-0.03462522104382515,
0.17506341636180878,
0.37815845012664795,
0.07899615168571472,
-0.058395251631736755,
-0.36032530665397644,
-0.10064307600259781,
-0.058163125067949295,
0.23706093430519104,
-0.2568029463291168,
0.2513565421104431,
0.05455589294433594,
-0.03553395718336105,
0.07119809091091156,
-0.10545884817838669,
-0.08281008154153824,
-0.09730274975299835,
0.394163578748703,
0.2912926971912384,
0.2772475481033325,
0.21699316799640656,
0.2351003736257553,
-0.22449521720409393,
-0.36366644501686096,
0.2889498174190521,
0.09907650202512741,
-0.3086128234863281,
0.1984170377254486,
0.22029052674770355,
-0.048322685062885284,
-0.03577703982591629,
0.34723958373069763,
0.011434038169682026,
0.04983671009540558,
-0.13501298427581787,
-0.28077635169029236,
-0.2225385159254074,
0.26742175221443176,
0.09064307808876038,
0.08440601080656052,
0.028327789157629013,
0.1621989756822586,
0.17744505405426025,
-0.054723404347896576,
-0.4514692425727844,
-0.011736495420336723,
-0.3375888168811798,
-0.037974294275045395,
0.11412517726421356,
-0.06889095157384872,
0.21172307431697845,
0.04697391763329506,
0.266826331615448,
-0.02709577977657318,
-0.09540215879678726,
-0.32347196340560913,
-0.10079509019851685,
0.10074528306722641,
-0.031978704035282135,
-0.0041054110042750835,
0.22435879707336426,
-0.13092179596424103,
-0.16262532770633698,
-0.16517171263694763,
0.17553038895130157,
0.057732392102479935,
-0.19021789729595184,
0.10387858748435974,
0.15697455406188965,
0.28340667486190796,
0.043024688959121704,
0.21717657148838043,
-0.026658250018954277,
-0.05812303349375725,
-0.022664956748485565,
0.039119891822338104,
0.015667490661144257,
-0.04985632374882698,
-0.016040991991758347,
0.043843746185302734,
0.09413662552833557,
0.11545351147651672,
0.10233186185359955,
-0.1328706592321396,
-0.23977205157279968,
0.10105148702859879,
0.17079533636569977,
0.16726990044116974,
-0.1169896051287651,
0.24982739984989166,
-0.08523966372013092,
0.3432338237762451,
-0.3024190366268158,
0.04962295666337013,
0.1867104172706604,
-0.1545255184173584,
0.22602352499961853,
0.1156056672334671,
-0.3048245906829834,
0.22459423542022705,
-0.1469651609659195,
-0.012541800737380981,
0.41312023997306824,
-0.13444894552230835,
0.21409578621387482,
0.32119378447532654,
-0.08356060832738876,
-0.016689453274011612,
0.37768882513046265,
0.18358220160007477,
0.10865142941474915,
0.0316767580807209,
-0.05795628949999809,
0.14708667993545532,
-0.019642971456050873,
0.08554202318191528,
0.24140961468219757,
-0.5050230622291565,
0.2710326313972473,
0.24059906601905823,
-0.024310369044542313,
-0.11213788390159607,
-0.1639895886182785,
0.37124860286712646,
-0.5745430588722229,
-0.06367091834545135,
-0.30643174052238464,
0.059414565563201904,
-0.16855686902999878,
0.1159520149230957,
-0.11149586737155914,
-0.14003853499889374,
-0.2565511465072632,
-0.2784862816333771,
0.06332886964082718,
-0.2414882779121399,
0.2439759373664856,
-0.11187257617712021,
0.02112719975411892,
-0.27141231298446655,
-0.040151793509721756,
0.22178001701831818,
0.12762700021266937,
-0.1941966712474823,
0.009710037149488926,
0.05060219392180443,
0.20417983829975128,
-0.18068496882915497,
0.552272379398346,
0.39889371395111084,
0.3800226151943207,
-0.13546399772167206,
-0.06647861748933792,
0.11493588984012604,
-0.2638262212276459,
-0.09045280516147614,
0.010561241768300533,
-0.036263611167669296,
0.2590767741203308,
0.10439439117908478,
0.32031410932540894,
-0.30220097303390503,
-0.006890828721225262,
-0.019003374502062798,
0.005731257144361734,
-0.269480437040329,
0.3833434581756592,
-0.29412925243377686,
-0.13394629955291748,
-0.11302559077739716,
-0.07648536562919617,
-0.5723278522491455,
0.04530186206102371,
0.4337007999420166,
0.055349964648485184,
0.1160498782992363,
-0.17900654673576355,
0.14473628997802734,
-0.13810160756111145,
0.19207268953323364,
-0.013790363445878029,
0.28975096344947815,
-0.2669529616832733,
0.08058138191699982,
-0.5247189998626709,
0.3150632679462433,
0.03911386430263519,
-0.192429319024086,
-0.028471440076828003,
-0.12059087306261063,
-0.1418037861585617,
0.0033044975716620684,
0.025263316929340363,
0.27408456802368164,
0.2506793737411499,
0.01563875935971737,
-0.5449016094207764,
-0.2936486601829529,
-0.041616182774305344,
-0.184064120054245,
0.055772192776203156,
-0.34119412302970886,
-0.0023585858289152384,
-0.17404960095882416,
0.1497214436531067,
0.0006308640586212277,
-0.2499285340309143,
0.14406630396842957,
0.09776844829320908,
0.6802555918693542,
0.1865135282278061,
0.4030950367450714,
-0.08699800819158554,
-0.04366837441921234,
0.03638958930969238,
-0.2932215631008148,
-0.11003689467906952,
0.2340046614408493,
0.07532291859388351,
0.2027745246887207,
0.034616634249687195,
0.14568668603897095,
-0.2451830357313156,
0.08542824536561966,
0.017443770542740822,
0.13280338048934937,
-0.14758430421352386,
0.31090813875198364,
-0.15090879797935486,
-0.297829270362854,
-0.19126224517822266,
0.0007489354466088116,
0.10509788244962692,
0.1029956191778183,
-0.06943662464618683,
-0.23852591216564178,
0.5177169442176819,
-0.28555867075920105,
-0.17676104605197906,
-0.09032757580280304,
0.3520115911960602,
-0.04038144275546074,
-0.11723588407039642,
-0.5067304968833923,
0.05464565008878708,
0.4887303113937378,
-0.002228999510407448,
-0.15009339153766632,
0.1638830602169037,
-0.20673096179962158,
0.021502122282981873,
-0.07061644643545151,
0.011497290804982185,
-0.0409061424434185,
0.0008293107966892421,
0.1980798989534378,
-0.13200484216213226
] |
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.26089438796043396,
-0.2007056474685669,
0.06599956005811691,
0.40019553899765015,
0.4645991325378418,
0.011524584144353867,
0.3240969181060791,
0.09413252770900726,
0.18959929049015045,
0.3001819849014282,
-0.2849099636077881,
0.4667591452598572,
-0.036643754690885544,
0.16685788333415985,
0.07776477932929993,
-0.12537358701229095,
-0.2606465816497803,
0.2636682093143463,
-0.17774663865566254,
0.06136678159236908,
-0.5233629941940308,
0.023198364302515984,
-0.23736357688903809,
0.08589101582765579,
-0.27680039405822754,
-0.15339918434619904,
-0.028150107711553574,
0.07971351593732834,
-0.246217742562294,
-0.28055116534233093,
0.46116116642951965,
-0.015963025391101837,
0.16404764354228973,
0.510412335395813,
-0.00010234796354779974,
-0.018456798046827316,
0.583699643611908,
0.05300338938832283,
-0.07615101337432861,
-0.4211899936199188,
-0.22556224465370178,
-0.39779970049858093,
0.287003755569458,
-0.3548152446746826,
-0.12754212319850922,
0.0055776238441467285,
0.040512893348932266,
-0.1819048374891281,
0.2621391713619232,
0.320434033870697,
0.324214905500412,
0.529691219329834,
0.011442558839917183,
-0.3599708378314972,
0.19651325047016144,
0.08082964271306992,
-0.06368955224752426,
0.3710547983646393,
0.026584593579173088,
-0.04749291017651558,
0.2439633011817932,
0.08703050017356873,
-0.3353542387485504,
0.052761275321245193,
0.2847360074520111,
0.038255129009485245,
0.00953129306435585,
-0.27017027139663696,
0.09647586196660995,
0.3694060146808624,
0.38558265566825867,
-0.3826204538345337,
-0.15144237875938416,
0.17500995099544525,
0.22396498918533325,
-0.2032715529203415,
0.21164891123771667,
0.04687858000397682,
0.01630481332540512,
0.09074480831623077,
-0.013072092086076736,
0.17122043669223785,
-0.24455825984477997,
0.27493786811828613,
-0.20200583338737488,
0.10655104368925095,
-0.19354911148548126,
0.1447969377040863,
0.08499733358621597,
-0.11885984987020493,
0.07633445411920547,
-0.13459724187850952,
-0.06199778616428375,
0.08909048140048981,
-0.20838116109371185,
0.0349295474588871,
0.11520563811063766,
0.15358026325702667,
0.16361205279827118,
-0.28436776995658875,
0.10188397020101547,
-0.02383321337401867,
0.03979969024658203,
0.4501174986362457,
0.2414606809616089,
0.18975619971752167,
0.2724778652191162,
0.08869330585002899,
0.26601293683052063,
0.06678726524114609,
-0.2417137622833252,
-0.012088625691831112,
-0.1543584167957306,
-0.06107333302497864,
0.2427952140569687,
0.14118459820747375,
0.5124644041061401,
0.018915481865406036,
-0.4501633048057556,
-0.17423799633979797,
-0.1721334159374237,
0.0912996307015419,
0.2716410756111145,
0.42776334285736084,
-0.1526404619216919,
0.08207699656486511,
0.1332414746284485,
0.17432908713817596,
-0.18845166265964508,
-0.2918035686016083,
-0.31832537055015564,
0.3539681136608124,
-0.25284767150878906,
-0.234954833984375,
0.19113855063915253,
0.057965513318777084,
-0.044978704303503036,
0.013467170298099518,
-0.09584791958332062,
0.10270051658153534,
0.08866895735263824,
-0.2908604145050049,
-0.23106589913368225,
0.31327128410339355,
0.24430562555789948,
-0.06283299624919891,
0.28006109595298767,
-0.46682748198509216,
-0.09159713983535767,
0.22920377552509308,
-0.28989166021347046,
-0.16717436909675598,
-0.07324452698230743,
0.266702264547348,
-0.33905476331710815,
-0.06973504275083542,
-0.24416689574718475,
0.04667193070054054,
0.04895748570561409,
-0.15663473308086395,
-0.10240902751684189,
-0.0962609127163887,
-0.11265677958726883,
-0.4234253764152527,
0.044619157910346985,
0.5165771842002869,
-0.37518632411956787,
-0.1992410570383072,
-0.30780842900276184,
-0.10918372124433517,
0.3522844612598419,
-0.14730116724967957,
0.014566908590495586,
0.06290067732334137,
-0.17065659165382385,
-0.0006843914743512869,
0.6008660197257996,
-0.3847200572490692,
-0.2815145254135132,
0.05630036070942879,
-0.037187278270721436,
-0.11655441671609879,
-0.05172165110707283,
-0.04704391583800316,
0.07188763469457626,
0.13564351201057434,
0.4128211438655853,
0.24465343356132507,
0.04935923218727112,
-0.03246692195534706,
-0.21095894277095795,
-0.23810984194278717,
0.1280461698770523,
0.1516583412885666,
0.12727046012878418,
0.1630401760339737,
0.0712510421872139,
-0.2506304085254669,
-0.055716224014759064,
-0.006188984494656324,
-0.10224471986293793,
-0.030163945630192757,
0.536503255367279,
-0.1599625051021576,
-0.03996362164616585,
-0.5328828692436218,
-0.3950170576572418,
0.23308183252811432,
-0.07792946696281433,
0.25416895747184753,
-0.10548914968967438,
-0.170035719871521,
-0.35298165678977966,
0.10195044428110123,
-0.017024414613842964,
0.06076168641448021,
0.2853280305862427,
0.0909605547785759,
-0.2011486142873764,
0.14548809826374054,
-0.08090301603078842,
0.16377225518226624,
-0.08734914660453796,
0.05123167484998703,
0.03350520506501198,
0.29166826605796814,
0.0747772678732872,
-0.33561792969703674,
0.035295043140649796,
0.18978476524353027,
0.4574476182460785,
-0.010459711775183678,
-0.06727070361375809,
0.2640903890132904,
0.07089193165302277,
-0.07880496233701706,
-0.2070859968662262,
-0.05381758138537407,
0.08799286186695099,
-0.3130648732185364,
-0.030365685001015663,
0.03798443451523781,
0.31870919466018677,
-0.09437336027622223,
0.06253873556852341,
0.6038935780525208,
0.06684323400259018,
0.17446181178092957,
-0.07306027412414551,
0.27141764760017395,
0.06532428413629532,
-0.03855603560805321,
-0.14907680451869965,
-0.12862755358219147,
0.04598522558808327,
0.11761807650327682,
0.24863731861114502,
0.00610390305519104,
-0.0880214124917984,
-0.02318957820534706,
0.5769156813621521,
0.09138303995132446,
0.36079153418540955,
-0.13751737773418427,
-0.42041394114494324,
0.11379536986351013,
0.0370059460401535,
0.2525537610054016,
0.5032673478126526,
0.33231574296951294,
-0.10686428099870682,
0.023629939183592796,
-0.057172421365976334,
0.040472645312547684,
0.10329214483499527,
0.04944704473018646,
0.2328978180885315,
-0.000023518578018411063,
0.30572178959846497,
-0.02094193547964096,
-0.346226304769516,
0.16139189898967743,
-0.05384762957692146,
0.18420645594596863,
-0.37608686089515686,
0.18453934788703918,
-0.2747035026550293,
-0.07675716280937195,
0.14255110919475555,
-0.10272517800331116,
-0.12500496208667755,
-0.32862821221351624,
-0.266406387090683,
0.10813747346401215,
0.1210906058549881,
0.19382090866565704,
0.14224843680858612,
0.07631881535053253,
0.008745494298636913,
-0.025528674945235252,
-0.18266122043132782,
-0.13265582919120789,
-0.1483919769525528,
0.08807405829429626,
0.16533513367176056,
0.18194139003753662,
0.4119829833507538,
-0.1496375948190689,
0.22848814725875854,
-0.05112762004137039,
-0.24559882283210754,
0.10017767548561096,
-0.05732935667037964,
0.5299294590950012,
0.40860891342163086,
0.06029253453016281,
-0.1410646140575409,
0.10045043379068375,
0.4188917577266693,
-0.4658013880252838,
0.02647838555276394,
0.36358407139778137,
-0.3070647418498993,
0.08372604846954346,
-0.25187745690345764,
-0.10609966516494751,
-0.5478299856185913,
-0.4280380308628082,
0.06833100318908691,
0.09581956267356873,
0.044977836310863495,
0.17241673171520233,
0.11911793798208237,
0.4440964460372925,
0.11239203065633774,
0.015759890899062157,
-0.23304148018360138,
-0.08540764451026917,
0.33111265301704407,
-0.16932529211044312,
-0.36089077591896057,
0.20424893498420715,
-0.13234809041023254,
0.2548735737800598,
0.028586361557245255,
-0.16097909212112427,
-0.5243911743164062,
-0.15561765432357788,
0.20535387098789215,
-0.005188270937651396,
-0.01109142042696476,
0.29122576117515564,
0.040286093950271606,
-0.13678626716136932,
-0.2726748287677765,
-0.1413012444972992,
-0.04881563410162926,
0.23526941239833832,
-0.06838799268007278,
0.047184087336063385,
0.28253883123397827,
-0.1223011463880539,
0.14363862574100494,
-0.10943939536809921,
-0.18530073761940002,
0.4059680998325348,
-0.31387966871261597,
0.3742706775665283,
-0.15146489441394806,
-0.46654507517814636,
-0.21089020371437073,
0.02787117101252079,
0.042242709547281265,
0.048434674739837646,
-0.1829000860452652,
-0.24296621978282928,
-0.3873913288116455,
-0.18405859172344208,
-0.30912312865257263,
-0.11764746159315109,
-0.044823385775089264,
0.18691448867321014,
-0.034465499222278595,
0.12824079394340515,
0.15066850185394287,
-0.409955233335495,
-0.044021546840667725,
-0.01451586652547121,
0.19075921177864075,
0.0003326373698655516,
-0.1874929517507553,
-0.13432304561138153,
-0.23941399157047272,
-0.3349730372428894,
0.4665146470069885,
-0.13041752576828003,
-0.0214527677744627,
-0.10481071472167969,
-0.02281338721513748,
0.1187155619263649,
-0.04580254107713699,
0.5801784992218018,
-0.29447832703590393,
0.1719292849302292,
0.5542980432510376,
0.09048048406839371,
-0.5516595840454102,
0.10773090273141861,
-0.33184489607810974,
0.30056849122047424,
0.13312925398349762,
0.28102198243141174,
-0.34704312682151794,
-0.019387733191251755,
0.21586233377456665,
0.06858595460653305,
-0.11510865390300751,
-0.24079319834709167,
-0.23340855538845062,
-0.29338985681533813,
-0.04927109554409981,
-0.06657275557518005,
-0.05861227586865425,
0.422576904296875,
-0.13546691834926605,
-0.12730632722377777,
-0.4123399257659912,
-0.0367349348962307,
0.16560085117816925,
0.19397355616092682,
0.34225189685821533,
-0.1359112560749054,
-0.025981921702623367,
-0.05879252776503563,
0.08305028825998306,
0.1330539882183075,
0.3568016588687897,
0.08881064504384995,
-0.4469735324382782,
0.13907629251480103,
0.07360108941793442,
0.23926161229610443,
0.0024291116278618574,
-0.21277201175689697,
-0.15642201900482178,
-0.09731808304786682,
0.12567439675331116,
0.06949127465486526,
0.1411265730857849,
0.2321479171514511,
0.013767069205641747,
-0.36468276381492615,
-0.23113231360912323,
0.43259233236312866,
0.17458949983119965,
0.02502722106873989,
0.2718997299671173,
0.23464582860469818,
-0.22543415427207947,
0.223793163895607,
-0.06492982804775238,
0.9164006114006042,
-0.0016308254562318325,
-0.11023611575365067,
0.616546094417572,
-0.09799054265022278,
0.5674653649330139,
0.06507924199104309,
0.06793402880430222,
-0.3704266846179962,
-0.2879866063594818,
-0.005231591407209635,
-0.1453760862350464,
0.25484591722488403,
-0.049353670328855515,
-0.5216740965843201,
0.20980699360370636,
-0.3250354528427124,
0.05638730525970459,
-0.03387559950351715,
-0.08627250045537949,
-0.06887153536081314,
-0.1625671237707138,
-0.31690922379493713,
0.22038863599300385,
-0.11600305885076523,
0.16524849832057953,
-0.09055159240961075,
-0.07293739914894104,
0.020187469199299812,
-0.07935336977243423,
-0.0859893336892128,
0.05186750739812851,
-0.41057437658309937,
-0.10258083045482635,
0.008886816911399364,
-0.14894291758537292,
-0.04923601821064949,
0.10977721214294434,
0.043908990919589996,
0.023810913786292076,
-0.34834447503089905,
0.23607516288757324,
0.0525093674659729,
0.017473360523581505,
-0.07425536215305328,
0.07520432770252228,
0.20920905470848083,
-0.059372298419475555,
-0.2678539752960205,
0.10724054276943207,
-0.04713163524866104,
0.16754916310310364,
0.35120368003845215,
0.13514503836631775,
-0.10577785223722458,
-0.30187779664993286,
-0.21502365171909332,
-0.13873857259750366,
0.2945331931114197,
-0.2950994074344635,
0.25293561816215515,
0.0883852019906044,
-0.1128401979804039,
0.02371198870241642,
0.03705586493015289,
-0.18078632652759552,
-0.03919873386621475,
0.4054495692253113,
0.3315436542034149,
0.3266712725162506,
0.1742117553949356,
0.2139461189508438,
-0.13305027782917023,
-0.35620760917663574,
0.23564231395721436,
0.07449278980493546,
-0.3519977033138275,
0.3284544050693512,
0.27393099665641785,
-0.045653894543647766,
0.02712312527000904,
0.4190962612628937,
0.01776464655995369,
-0.040625039488077164,
-0.12783582508563995,
-0.29774558544158936,
-0.20528468489646912,
0.22017160058021545,
0.007637332193553448,
-0.013315314427018166,
0.10363218933343887,
0.23537468910217285,
0.1969146728515625,
-0.07531588524580002,
-0.4256237745285034,
0.11846060305833817,
-0.3420976996421814,
-0.10644923895597458,
0.035814255475997925,
-0.08394266664981842,
0.19919699430465698,
0.09430325031280518,
0.22002121806144714,
0.04124411195516586,
-0.11736735701560974,
-0.3198774755001068,
-0.17088590562343597,
0.11573003232479095,
-0.06035297363996506,
0.09846007078886032,
0.19122406840324402,
-0.09780179709196091,
-0.3399776220321655,
-0.11381665617227554,
0.08634757995605469,
0.01868286170065403,
-0.24856692552566528,
0.0389392115175724,
0.18414120376110077,
0.29607173800468445,
0.02431453764438629,
0.2214764952659607,
0.06482755392789841,
-0.05169879272580147,
-0.16678068041801453,
0.007017106749117374,
0.07386042922735214,
-0.03772592917084694,
0.04539865627884865,
-0.024269910529255867,
0.14642490446567535,
0.12582819163799286,
0.14722414314746857,
-0.18216294050216675,
-0.1376388669013977,
-0.010655037127435207,
0.1622677743434906,
0.10540151596069336,
-0.1678972691297531,
0.3169001042842865,
-0.1511392742395401,
0.3191594183444977,
-0.37131834030151367,
-0.01812661439180374,
0.25918135046958923,
-0.003793638665229082,
0.23372462391853333,
0.0487336702644825,
-0.21770252287387848,
0.27845099568367004,
-0.10017454624176025,
-0.0086973886936903,
0.45373958349227905,
-0.12444169819355011,
0.06487680971622467,
0.23850835859775543,
-0.1500532031059265,
0.06746762245893478,
0.4041028916835785,
0.2606092393398285,
0.09712576121091843,
0.13524994254112244,
-0.029977478086948395,
0.12965929508209229,
-0.07734121382236481,
0.051117029041051865,
0.16977740824222565,
-0.5580493211746216,
0.18610601127147675,
0.1685788780450821,
0.00236533978022635,
-0.0791594386100769,
-0.23237966001033783,
0.4102471172809601,
-0.4937503933906555,
-0.060565412044525146,
-0.3794309198856354,
0.06437037140130997,
-0.16302840411663055,
-0.0013760763686150312,
-0.14338821172714233,
-0.11491913348436356,
-0.17176072299480438,
-0.2528251111507416,
0.0416351743042469,
-0.09905873239040375,
0.24124287068843842,
-0.11379450559616089,
0.10468633472919464,
-0.1930140107870102,
-0.03994245454668999,
0.27868905663490295,
0.04779845103621483,
-0.15554465353488922,
0.03981352597475052,
-0.06016618758440018,
0.2526923716068268,
-0.11667332798242569,
0.49846726655960083,
0.42828336358070374,
0.26501932740211487,
-0.20173579454421997,
-0.11841404438018799,
0.04389585927128792,
-0.29492929577827454,
-0.14820395410060883,
0.14488688111305237,
0.16215281188488007,
0.18613570928573608,
0.07484343647956848,
0.28932562470436096,
-0.28499937057495117,
0.13082364201545715,
-0.003674762323498726,
-0.007818823680281639,
-0.28051966428756714,
0.35907992720603943,
-0.362549751996994,
-0.11782621592283249,
-0.15548577904701233,
-0.1072717234492302,
-0.4793092608451843,
0.09879501909017563,
0.36479389667510986,
0.12186090648174286,
0.1348397433757782,
-0.15502454340457916,
0.1431170403957367,
-0.26004353165626526,
0.24240222573280334,
-0.02323295921087265,
0.36535969376564026,
-0.23983950912952423,
0.025778349488973618,
-0.5430267453193665,
0.4481773376464844,
0.012925342656672001,
-0.07826413959264755,
0.08482478559017181,
-0.12170218676328659,
-0.11546085774898529,
-0.03444531559944153,
-0.004841554909944534,
0.36308884620666504,
0.2708314061164856,
-0.047774557024240494,
-0.5591891407966614,
-0.35680970549583435,
-0.0946178138256073,
-0.2772195041179657,
0.046137381345033646,
-0.29077985882759094,
-0.050182946026325226,
-0.16049839556217194,
0.13265077769756317,
-0.06835450232028961,
-0.27365705370903015,
0.1152135580778122,
0.2708911597728729,
0.6669094562530518,
0.20456863939762115,
0.4079802334308624,
-0.08747319877147675,
0.09326217323541641,
0.07337775081396103,
-0.2984470725059509,
-0.07542064785957336,
0.1905660629272461,
0.10106039047241211,
0.13626091182231903,
0.015028448775410652,
0.17342133820056915,
-0.14726828038692474,
-0.037688467651605606,
-0.04048150032758713,
0.05787605419754982,
-0.2393021136522293,
0.31381115317344666,
-0.28970372676849365,
-0.19459830224514008,
-0.2668880224227905,
0.09523376077413559,
0.08431077003479004,
0.10966146737337112,
0.021883588284254074,
-0.0939408615231514,
0.6466467380523682,
-0.25513705611228943,
-0.3148619830608368,
0.002965063089504838,
0.2552379071712494,
0.03409351408481598,
-0.1752842664718628,
-0.41450658440589905,
0.06282635033130646,
0.4432108402252197,
-0.05498630180954933,
-0.21835997700691223,
0.2427148073911667,
-0.17745548486709595,
0.05033707991242409,
-0.1022096797823906,
0.011153720319271088,
0.05164099857211113,
-0.06758347153663635,
0.12968160212039948,
-0.08301369845867157
] |
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.24667532742023468,
-0.21660606563091278,
-0.003883910132572055,
0.3586862087249756,
0.4009474813938141,
0.03553649038076401,
0.3025209903717041,
0.15218958258628845,
0.1650354415178299,
0.3566102087497711,
-0.1779203712940216,
0.4452134668827057,
-0.03825676441192627,
0.19904451072216034,
0.08161981403827667,
-0.08996213972568512,
-0.20337092876434326,
0.24470661580562592,
-0.1842227578163147,
0.010521702468395233,
-0.4728762209415436,
-0.01852053590118885,
-0.1821441352367401,
0.01993347704410553,
-0.24807444214820862,
-0.2002856284379959,
-0.11639866232872009,
0.06450091302394867,
-0.21489901840686798,
-0.25302964448928833,
0.363211065530777,
0.0450633205473423,
0.11236821860074997,
0.5467204451560974,
-0.00010198417294304818,
-0.08620986342430115,
0.4975404441356659,
0.07624037563800812,
-0.11333801597356796,
-0.2227150946855545,
-0.2704126536846161,
-0.34315207600593567,
0.18232502043247223,
-0.4260810613632202,
-0.09165468066930771,
0.028890332207083702,
0.012380853295326233,
-0.2481905221939087,
0.30531448125839233,
0.3072141706943512,
0.3397083580493927,
0.4426223635673523,
-0.019016152247786522,
-0.33228904008865356,
0.21623069047927856,
0.042103879153728485,
-0.032310713082551956,
0.36221644282341003,
0.06336026638746262,
-0.053731031715869904,
0.17674104869365692,
0.18241089582443237,
-0.2867758870124817,
-0.002954829717054963,
0.25048860907554626,
0.08760210126638412,
-0.02453523688018322,
-0.2595612108707428,
0.10220528393983841,
0.26688259840011597,
0.2856883108615875,
-0.4520849585533142,
-0.12455148249864578,
0.11148109287023544,
0.1043580025434494,
-0.2367105633020401,
0.14307615160942078,
-0.0036099269054830074,
-0.019701188430190086,
0.10603629052639008,
-0.0351591594517231,
0.13369128108024597,
-0.23166543245315552,
0.2396652102470398,
-0.209116593003273,
0.14929458498954773,
-0.18942716717720032,
0.0967111885547638,
0.07523024827241898,
-0.08528123795986176,
0.0532214492559433,
-0.17134101688861847,
0.021075477823615074,
0.010569135658442974,
-0.15079551935195923,
-0.047218695282936096,
0.18301770091056824,
0.14029456675052643,
0.15340560674667358,
-0.2545791566371918,
0.1078866496682167,
-0.005875268951058388,
0.11862577497959137,
0.4159373342990875,
0.15438267588615417,
0.24156388640403748,
0.21506308019161224,
0.08808043599128723,
0.21871443092823029,
0.13025131821632385,
-0.2568061947822571,
-0.011533363722264767,
-0.09233561903238297,
-0.036353688687086105,
0.30848824977874756,
0.1605718433856964,
0.49787282943725586,
0.014810094609856606,
-0.437294602394104,
-0.04824186861515045,
-0.23147918283939362,
0.10639919340610504,
0.285162091255188,
0.3828617036342621,
-0.21978922188282013,
0.02807464636862278,
0.195412740111351,
0.14634791016578674,
-0.1679084450006485,
-0.2896846830844879,
-0.3228364884853363,
0.3451821506023407,
-0.32532358169555664,
-0.19962947070598602,
0.1255359649658203,
0.09560214728116989,
-0.07858594506978989,
0.0480370856821537,
-0.03571173921227455,
0.0553009919822216,
0.07634878158569336,
-0.24736584722995758,
-0.17068079113960266,
0.18560576438903809,
0.20968042314052582,
-0.10421104729175568,
0.32344338297843933,
-0.4836684763431549,
-0.10272388905286789,
0.10582205653190613,
-0.20707783102989197,
-0.08960626274347305,
-0.03592042624950409,
0.31801745295524597,
-0.3513987064361572,
-0.10086769610643387,
-0.15153715014457703,
0.10080717504024506,
0.061245597898960114,
-0.15493613481521606,
0.026828482747077942,
-0.0838794857263565,
-0.04602022469043732,
-0.44387850165367126,
0.09875987470149994,
0.5773761868476868,
-0.3923662304878235,
-0.15835346281528473,
-0.3149735927581787,
-0.04101051762700081,
0.35695675015449524,
-0.23161658644676208,
0.13289642333984375,
0.1612996608018875,
-0.15059475600719452,
0.030738502740859985,
0.5494588613510132,
-0.359424352645874,
-0.2982904613018036,
-0.019450651481747627,
-0.11950714886188507,
-0.08456090837717056,
-0.008068563416600227,
-0.1045464351773262,
0.07586468011140823,
0.15029673278331757,
0.4117957651615143,
0.2450774610042572,
-0.024491265416145325,
-0.04034655913710594,
-0.2356400489807129,
-0.21621403098106384,
0.030153024941682816,
0.10724297910928726,
0.18550284206867218,
0.1609564870595932,
0.10866707563400269,
-0.2254888117313385,
0.01508282870054245,
-0.01656116545200348,
-0.06782715767621994,
-0.06646329909563065,
0.5562685132026672,
-0.11980147659778595,
-0.10301020741462708,
-0.5486020445823669,
-0.33649808168411255,
0.21377801895141602,
-0.06441088020801544,
0.25838178396224976,
-0.16227521002292633,
-0.17712454497814178,
-0.41699615120887756,
0.11737481504678726,
-0.05916956439614296,
0.041595544666051865,
0.34794268012046814,
0.15848875045776367,
-0.13163717091083527,
0.12016445398330688,
-0.03892354294657707,
0.1554764360189438,
-0.09755800664424896,
0.06154211238026619,
0.002867467235773802,
0.36242663860321045,
0.028815025463700294,
-0.3402508497238159,
0.012543320655822754,
0.2390858680009842,
0.49202853441238403,
0.025128662586212158,
-0.03666050359606743,
0.34257176518440247,
0.015397725626826286,
-0.058923956006765366,
-0.07136105000972748,
0.012981876730918884,
0.035537585616111755,
-0.3102557063102722,
0.09030816704034805,
0.07409399747848511,
0.2743328809738159,
-0.05014900863170624,
0.0455593541264534,
0.5526735186576843,
0.0639086365699768,
0.16311809420585632,
-0.07747825980186462,
0.2747512459754944,
-0.10433327406644821,
-0.06520608812570572,
-0.1591191291809082,
-0.14824458956718445,
0.11650285124778748,
0.05299822613596916,
0.1941262185573578,
-0.044572170823812485,
-0.10241156816482544,
0.07118569314479828,
0.6148306727409363,
0.07447849214076996,
0.4100618064403534,
-0.13506777584552765,
-0.3626490533351898,
0.13631489872932434,
0.06328243017196655,
0.2627348005771637,
0.437395304441452,
0.3606952428817749,
-0.055253054946660995,
0.07250642776489258,
-0.09560076892375946,
0.046358413994312286,
0.08184722810983658,
0.07800113409757614,
0.1710074096918106,
-0.023559127002954483,
0.26488226652145386,
0.00004837703090743162,
-0.30219772458076477,
0.03938837721943855,
-0.2115720510482788,
0.19996841251850128,
-0.3442276120185852,
0.27032357454299927,
-0.276157408952713,
-0.10837037116289139,
0.06657042354345322,
-0.13416524231433868,
-0.11199841648340225,
-0.39722514152526855,
-0.18969154357910156,
0.04957342892885208,
0.08469831198453903,
0.1596640646457672,
0.13314898312091827,
0.1780952513217926,
0.04358465597033501,
-0.050639595836400986,
-0.21693651378154755,
-0.09294485300779343,
-0.1491837054491043,
0.12451992928981781,
0.112788625061512,
0.2195502519607544,
0.45639699697494507,
-0.22645263373851776,
0.2653893530368805,
0.040525712072849274,
-0.2521412670612335,
0.1091039776802063,
-0.11130111664533615,
0.5382035374641418,
0.421701580286026,
0.08497120440006256,
-0.13754871487617493,
0.04792250692844391,
0.40256619453430176,
-0.3987688720226288,
0.03456053137779236,
0.27606743574142456,
-0.1733170598745346,
0.09936655312776566,
-0.22149786353111267,
-0.1091308519244194,
-0.493729829788208,
-0.4305160343647003,
0.053535670042037964,
0.09401625394821167,
0.0907856822013855,
0.16613495349884033,
0.16477003693580627,
0.5161480903625488,
0.09035930037498474,
0.08534197509288788,
-0.2309441864490509,
-0.09283285588026047,
0.2652718424797058,
-0.1356292963027954,
-0.31708842515945435,
0.11643727123737335,
-0.13272938132286072,
0.18824271857738495,
0.034662943333387375,
-0.21737514436244965,
-0.569640040397644,
-0.17610688507556915,
0.21790505945682526,
-0.034390825778245926,
0.09332101047039032,
0.26999932527542114,
0.09491237998008728,
-0.15692181885242462,
-0.2845882475376129,
-0.162517711520195,
-0.0914960503578186,
0.15414007008075714,
-0.031830303370952606,
-0.024970825761556625,
0.2786460816860199,
-0.11610855162143707,
0.13205604255199432,
-0.06656098365783691,
-0.20754365622997284,
0.3825695812702179,
-0.34809157252311707,
0.3984658718109131,
-0.09963999688625336,
-0.5200999975204468,
-0.17360647022724152,
0.03532816469669342,
-0.060932282358407974,
0.04896596446633339,
-0.1714959740638733,
-0.21662402153015137,
-0.37668779492378235,
-0.05624689161777496,
-0.3627011775970459,
-0.1873275488615036,
-0.039159491658210754,
0.15603852272033691,
-0.036883238703012466,
0.07491510361433029,
0.1888146698474884,
-0.4491065442562103,
0.057005200535058975,
-0.016950737684965134,
0.15379084646701813,
-0.08940648287534714,
-0.16485503315925598,
-0.11857427656650543,
-0.24680781364440918,
-0.2861297130584717,
0.4680054187774658,
-0.14993643760681152,
-0.05639384314417839,
-0.20461569726467133,
-0.06607946008443832,
0.09054265916347504,
-0.035880036652088165,
0.5689526200294495,
-0.3503730297088623,
0.18970851600170135,
0.4768276512622833,
0.1251973658800125,
-0.45688989758491516,
0.1350758969783783,
-0.4355601966381073,
0.2517583668231964,
0.21854430437088013,
0.2802274227142334,
-0.3060501217842102,
0.019134895876049995,
0.2399572730064392,
0.10264423489570618,
-0.11065830290317535,
-0.22213007509708405,
-0.22178904712200165,
-0.31839340925216675,
-0.08035517483949661,
0.04201464727520943,
-0.025293253362178802,
0.4193626940250397,
-0.09834559261798859,
-0.12828348577022552,
-0.3264179229736328,
-0.025679387152194977,
0.20259186625480652,
0.2596050202846527,
0.2894297242164612,
-0.12315003573894501,
-0.1225854903459549,
-0.08236514776945114,
0.07923275232315063,
0.13594971597194672,
0.32356807589530945,
0.07935793697834015,
-0.34462958574295044,
0.09072700887918472,
0.0888889729976654,
0.27818790078163147,
0.05736100301146507,
-0.17625947296619415,
-0.14405086636543274,
-0.08695465326309204,
0.2175629884004593,
0.006137627176940441,
0.17691856622695923,
0.25485870242118835,
0.0897868424654007,
-0.3811884820461273,
-0.2307579219341278,
0.433773398399353,
0.17661131918430328,
-0.038124121725559235,
0.29488468170166016,
0.20820657908916473,
-0.2366476058959961,
0.2260974943637848,
-0.022161226719617844,
1.0133306980133057,
0.05262431129813194,
-0.16351449489593506,
0.5793560743331909,
-0.14888888597488403,
0.5672774314880371,
-0.019949689507484436,
0.03939736634492874,
-0.3318086564540863,
-0.2921091616153717,
-0.0050113871693611145,
-0.14916656911373138,
0.25731250643730164,
-0.09394080191850662,
-0.6075481176376343,
0.19444851577281952,
-0.39855989813804626,
0.06098233908414841,
0.00785263441503048,
-0.12741200625896454,
-0.1191680058836937,
-0.1094275414943695,
-0.34585726261138916,
0.26443856954574585,
-0.13787119090557098,
0.19162428379058838,
-0.14864686131477356,
-0.06625363230705261,
-0.0817677229642868,
-0.10981840640306473,
-0.12742330133914948,
0.04370153695344925,
-0.3669552803039551,
-0.18494053184986115,
-0.05098404735326767,
-0.16150090098381042,
-0.10808268189430237,
0.09429003298282623,
0.08131672441959381,
0.14709623157978058,
-0.27799513936042786,
0.08808304369449615,
0.08451835811138153,
0.024237550795078278,
-0.006938711740076542,
0.008547208271920681,
0.19588269293308258,
-0.037082526832818985,
-0.29435938596725464,
0.1068723052740097,
0.04578743875026703,
0.11517646163702011,
0.3087923526763916,
0.10357600450515747,
-0.0675770491361618,
-0.3244163691997528,
-0.10348375886678696,
-0.09744712710380554,
0.24810922145843506,
-0.31311070919036865,
0.2714838981628418,
0.08919960260391235,
-0.12014713138341904,
0.09994570165872574,
-0.012930951081216335,
-0.14131957292556763,
-0.08458108454942703,
0.30652204155921936,
0.24755512177944183,
0.3110376000404358,
0.06511417031288147,
0.23375385999679565,
-0.1451796293258667,
-0.3778769373893738,
0.19461078941822052,
0.12664563953876495,
-0.3094286620616913,
0.24518409371376038,
0.11320432275533676,
-0.10021353513002396,
-0.018967239186167717,
0.35834309458732605,
0.08726717531681061,
0.012129725888371468,
-0.13199156522750854,
-0.31772008538246155,
-0.2275739312171936,
0.19746661186218262,
0.12628424167633057,
0.04679350554943085,
0.040948137640953064,
0.24098697304725647,
0.21606457233428955,
-0.014946725219488144,
-0.4777272343635559,
0.023357374593615532,
-0.3548016846179962,
-0.12109549343585968,
0.05531001463532448,
-0.1312018483877182,
0.2106180489063263,
0.030774105340242386,
0.2626606523990631,
0.061136987060308456,
-0.12301640212535858,
-0.36038738489151,
-0.11962318420410156,
0.08787944167852402,
-0.09605535864830017,
0.12124697118997574,
0.19285686314105988,
-0.06559501588344574,
-0.2737077474594116,
-0.18214677274227142,
0.06557899713516235,
-0.004897427279502153,
-0.1561487466096878,
0.07420962303876877,
0.19551688432693481,
0.305776983499527,
0.054221827536821365,
0.07680832594633102,
0.11816905438899994,
-0.047217536717653275,
-0.09409075975418091,
0.05041671171784401,
0.011491509154438972,
-0.09162089228630066,
0.061555083841085434,
0.04731615632772446,
0.1579480916261673,
0.1204226091504097,
0.1462683528661728,
-0.14264868199825287,
-0.17612560093402863,
0.0342845618724823,
0.2458392232656479,
0.16844813525676727,
-0.18265339732170105,
0.2451198548078537,
-0.20319920778274536,
0.36860162019729614,
-0.30184757709503174,
0.0448661632835865,
0.23344625532627106,
-0.0057721869088709354,
0.2976727783679962,
0.14921358227729797,
-0.2892268896102905,
0.22511164844036102,
-0.1543215662240982,
0.0022289708722382784,
0.4208875000476837,
-0.0848284438252449,
0.09413227438926697,
0.2553800642490387,
-0.16174755990505219,
0.07267708331346512,
0.42079585790634155,
0.21576613187789917,
0.0808965265750885,
0.11472588032484055,
-0.012039167806506157,
0.20920147001743317,
-0.05954791605472565,
-0.008851463906466961,
0.17259754240512848,
-0.42666852474212646,
0.18628361821174622,
0.19809934496879578,
0.022372253239154816,
-0.03816557303071022,
-0.2197997272014618,
0.41530075669288635,
-0.5084754824638367,
-0.05652250349521637,
-0.3237140476703644,
0.04877737909555435,
-0.1741154044866562,
0.0605977438390255,
-0.16821417212486267,
-0.1289478987455368,
-0.22656826674938202,
-0.28041699528694153,
0.13125672936439514,
-0.16091763973236084,
0.2799321115016937,
-0.16956032812595367,
0.10229426622390747,
-0.1938088834285736,
-0.06666184961795807,
0.2105490118265152,
0.16122467815876007,
-0.203176349401474,
0.0029697511345148087,
-0.019834227859973907,
0.22439350187778473,
-0.14448873698711395,
0.4721124768257141,
0.4282219707965851,
0.2557368874549866,
-0.1851385086774826,
-0.09297478944063187,
-0.00657260837033391,
-0.293438583612442,
-0.17106497287750244,
0.09330471605062485,
0.17520759999752045,
0.17537754774093628,
0.10745719820261002,
0.3313247859477997,
-0.33416154980659485,
0.09416203945875168,
-0.023793017491698265,
-0.013892450369894505,
-0.2267352193593979,
0.3832150995731354,
-0.29475411772727966,
-0.08552593737840652,
-0.17025713622570038,
-0.13651496171951294,
-0.5748510360717773,
0.040589526295661926,
0.3419457674026489,
0.09301755577325821,
0.1262921690940857,
-0.16055114567279816,
0.15247705578804016,
-0.17488157749176025,
0.1722026765346527,
0.014829118736088276,
0.40540727972984314,
-0.2588355243206024,
-0.0027994706761091948,
-0.541019082069397,
0.4275762736797333,
0.01556309126317501,
-0.15880830585956573,
0.031514402478933334,
-0.03314756229519844,
-0.1146663948893547,
-0.017911335453391075,
0.022063052281737328,
0.3360392451286316,
0.22620883584022522,
-0.025657668709754944,
-0.5814421772956848,
-0.29016971588134766,
-0.12484531104564667,
-0.27969568967819214,
0.13222552835941315,
-0.2572004795074463,
-0.035843752324581146,
-0.206126868724823,
0.21608442068099976,
-0.037931084632873535,
-0.2939603328704834,
0.08699867874383926,
0.14208349585533142,
0.6847298741340637,
0.17764252424240112,
0.40540799498558044,
-0.16419218480587006,
0.031693071126937866,
0.011777515523135662,
-0.24238817393779755,
-0.10330194234848022,
0.20908962190151215,
0.07556553184986115,
0.1736917942762375,
0.012759867124259472,
0.13358008861541748,
-0.1275080293416977,
0.032026827335357666,
0.1104801744222641,
0.07009918242692947,
-0.11591300368309021,
0.25843971967697144,
-0.23253723978996277,
-0.11883387714624405,
-0.18745838105678558,
0.0807318165898323,
0.0883738175034523,
0.20767205953598022,
-0.03387022390961647,
-0.1781325787305832,
0.6508176922798157,
-0.19926998019218445,
-0.37545329332351685,
-0.005676844157278538,
0.33302438259124756,
0.025154298171401024,
-0.18259960412979126,
-0.4330857992172241,
0.018670888617634773,
0.4222234785556793,
-0.048833705484867096,
-0.21325914561748505,
0.2750222086906433,
-0.25424516201019287,
0.03920339047908783,
-0.02334892749786377,
0.07668043673038483,
0.0071151670999825,
-0.04886660724878311,
0.16207702457904816,
-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.24798224866390228,
-0.3217708468437195,
0.0763499066233635,
0.47010359168052673,
0.49538132548332214,
0.018508072942495346,
0.3540433943271637,
0.06149507313966751,
0.24025776982307434,
0.31286147236824036,
-0.27640941739082336,
0.4540327489376068,
-0.06261871010065079,
0.10333309322595596,
0.15565796196460724,
-0.15578587353229523,
-0.22559495270252228,
0.16796807944774628,
-0.07798561453819275,
0.10205511748790741,
-0.4996086657047272,
-0.02934633381664753,
-0.26327717304229736,
0.1951637864112854,
-0.15596544742584229,
-0.1863706111907959,
-0.07376863062381744,
0.08071483671665192,
-0.1478741466999054,
-0.2537325918674469,
0.5681661367416382,
-0.10833825170993805,
0.21222873032093048,
0.5568336248397827,
-0.00010799765004776418,
0.022329991683363914,
0.5475672483444214,
0.02229159139096737,
-0.1812620460987091,
-0.5533768534660339,
-0.1755930632352829,
-0.4152665138244629,
0.32018452882766724,
-0.3743583559989929,
-0.11459733545780182,
0.07909353077411652,
0.14598852396011353,
-0.11177290230989456,
0.3590348958969116,
0.4540637135505676,
0.285580575466156,
0.701862633228302,
-0.019747864454984665,
-0.3421173393726349,
0.13334766030311584,
0.054145004600286484,
-0.12855128943920135,
0.2871594727039337,
0.1371670514345169,
-0.008233382366597652,
0.43345916271209717,
-0.03733154013752937,
-0.3705087900161743,
0.09044574946165085,
0.3338052034378052,
0.01731191948056221,
0.04568233713507652,
-0.4084409177303314,
0.09899617731571198,
0.3526202142238617,
0.42913269996643066,
-0.27898693084716797,
-0.14455221593379974,
0.10621747374534607,
0.23932889103889465,
-0.061995938420295715,
0.17657923698425293,
0.0757438912987709,
-0.029810437932610512,
0.041353367269039154,
0.04638729244470596,
0.17182990908622742,
-0.2779864966869354,
0.2125995010137558,
-0.1284295916557312,
-0.035365864634513855,
-0.19327175617218018,
0.21762233972549438,
0.03803662955760956,
-0.09714040905237198,
0.031084982678294182,
-0.17658281326293945,
0.0018489111680537462,
0.14519581198692322,
-0.30745619535446167,
-0.03703863546252251,
0.10036007314920425,
0.020641161128878593,
0.21880213916301727,
-0.23972658812999725,
0.2141459435224533,
-0.08140663057565689,
0.001490787137299776,
0.35414382815361023,
0.3462698459625244,
0.23868772387504578,
0.2158098965883255,
0.14084583520889282,
0.15175458788871765,
0.022729292511940002,
-0.17890408635139465,
0.06214015185832977,
-0.28353381156921387,
-0.04607177525758743,
0.24856723845005035,
0.2519287168979645,
0.6219196319580078,
0.022618161514401436,
-0.5257900953292847,
-0.19461563229560852,
-0.06970317661762238,
0.07446429133415222,
0.14892597496509552,
0.4044242203235626,
-0.2522183358669281,
0.07340948283672333,
0.025330889970064163,
0.28984367847442627,
-0.19493290781974792,
-0.38263773918151855,
-0.2504280209541321,
0.15268412232398987,
-0.2685990333557129,
-0.27057090401649475,
0.2402620017528534,
0.09254380315542221,
0.031247928738594055,
0.043060895055532455,
-0.22708305716514587,
0.085943304002285,
0.1672888547182083,
-0.3710011839866638,
-0.3183172345161438,
0.20312915742397308,
0.2981905937194824,
0.013275107368826866,
0.27971115708351135,
-0.32381653785705566,
-0.04562666639685631,
0.2975206673145294,
-0.38777217268943787,
-0.12059276551008224,
-0.12639375030994415,
0.19356000423431396,
-0.36293068528175354,
-0.1564999669790268,
-0.536428689956665,
0.08052078634500504,
0.040117789059877396,
-0.08928506076335907,
-0.057368986308574677,
-0.14254027605056763,
-0.06975614279508591,
-0.35836654901504517,
-0.055181149393320084,
0.4761914312839508,
-0.21475958824157715,
-0.22886665165424347,
-0.30118244886398315,
-0.24432000517845154,
0.35961106419563293,
-0.14555566012859344,
-0.04760385677218437,
0.2456553876399994,
-0.13856184482574463,
0.019540350884199142,
0.6420379281044006,
-0.5051136016845703,
-0.28108349442481995,
0.15326078236103058,
-0.11817390471696854,
-0.07644128054380417,
-0.09492279589176178,
-0.04461432993412018,
0.2863951325416565,
0.07587091624736786,
0.37161871790885925,
0.33497828245162964,
0.0008513941429555416,
-0.030564328655600548,
-0.1311076432466507,
-0.21056237816810608,
0.2909453511238098,
0.19490285217761993,
0.23611010611057281,
0.22115901112556458,
0.05453431233763695,
-0.19984789192676544,
-0.03580484911799431,
0.05276850610971451,
-0.08131752163171768,
-0.020119519904255867,
0.4355522096157074,
-0.043696753680706024,
-0.02576560340821743,
-0.529039204120636,
-0.5686801075935364,
0.18995040655136108,
-0.0841624066233635,
0.18261997401714325,
-0.11573026329278946,
-0.06739628314971924,
-0.30404260754585266,
0.04262422397732735,
-0.07802188396453857,
-0.021745260804891586,
0.1823788583278656,
0.07941249758005142,
-0.2668646275997162,
0.055881474167108536,
-0.07700300961732864,
0.19090145826339722,
-0.15261004865169525,
0.09578096121549606,
0.12126120924949646,
0.26119619607925415,
0.10169719904661179,
-0.3987409770488739,
-0.0017726217629387975,
0.13621272146701813,
0.47813594341278076,
0.018362602218985558,
-0.08265795558691025,
0.17296020686626434,
0.045810095965862274,
-0.10204485803842545,
-0.21710805594921112,
-0.17620471119880676,
0.057555533945560455,
-0.3366033434867859,
-0.04476151242852211,
0.13471537828445435,
0.3460840582847595,
-0.1604815125465393,
0.08364381641149521,
0.4571966826915741,
-0.016792841255664825,
0.34218546748161316,
-0.1437787562608719,
0.24062849581241608,
0.052516646683216095,
-0.060673002153635025,
-0.13310761749744415,
0.1804720014333725,
0.12906982004642487,
0.09137485176324844,
0.2827322483062744,
-0.035585273057222366,
-0.27068209648132324,
0.004667207598686218,
0.616209864616394,
0.029959723353385925,
0.31941506266593933,
-0.0831516683101654,
-0.3378826677799225,
0.1462026685476303,
0.00003264890983700752,
0.04182642325758934,
0.535393238067627,
0.2632282078266144,
-0.11036016792058945,
-0.016473006457090378,
0.0007064208621159196,
0.05156897008419037,
0.033378005027770996,
0.06909003853797913,
0.2856590747833252,
0.0461307130753994,
0.2759700119495392,
0.03866345062851906,
-0.2005329579114914,
0.14444802701473236,
-0.008435895666480064,
0.19513501226902008,
-0.3969614505767822,
0.18787910044193268,
-0.14235727488994598,
-0.11657245457172394,
-0.03046075999736786,
0.1370222568511963,
-0.10422465205192566,
-0.19904494285583496,
-0.3134955167770386,
0.15897813439369202,
0.21371352672576904,
0.12652601301670074,
0.1616363525390625,
0.008839363232254982,
-0.011312771588563919,
-0.040885843336582184,
-0.1634947955608368,
-0.14585912227630615,
-0.186183899641037,
0.046216320246458054,
0.1946972757577896,
0.07352671027183533,
0.3495377004146576,
-0.19005532562732697,
0.12456788867712021,
-0.1000494584441185,
-0.1240721344947815,
0.018916618078947067,
-0.07744250446557999,
0.5409660935401917,
0.2683839797973633,
0.25948959589004517,
-0.16248227655887604,
0.11941081285476685,
0.3791876435279846,
-0.47826915979385376,
-0.051207657903432846,
0.3330361545085907,
-0.33494383096694946,
0.09676319360733032,
-0.2121216505765915,
-0.3186379373073578,
-0.5942171812057495,
-0.39381998777389526,
0.20549197494983673,
-0.012952548451721668,
0.06968770921230316,
0.3293650448322296,
0.10264090448617935,
0.47164949774742126,
0.2177545428276062,
0.09161046892404556,
-0.18446287512779236,
-0.03420231491327286,
0.2794252038002014,
-0.13466772437095642,
-0.3884647488594055,
0.15754196047782898,
-0.09710279107093811,
0.2852422893047333,
0.07990838587284088,
-0.12456487864255905,
-0.2630615532398224,
-0.06691163033246994,
0.19757594168186188,
-0.1246708557009697,
-0.12070714682340622,
0.3231537938117981,
-0.08457585424184799,
-0.046994324773550034,
-0.21153469383716583,
-0.1213955506682396,
-0.048225369304418564,
0.3319036066532135,
-0.0071728164330124855,
0.09451661258935928,
0.3415934145450592,
-0.16240306198596954,
0.3309938311576843,
-0.086829274892807,
-0.0393967367708683,
0.4093088209629059,
-0.30323198437690735,
0.27769896388053894,
-0.09659314900636673,
-0.48113253712654114,
0.007316072937101126,
0.05634870380163193,
0.06938277930021286,
0.07898073643445969,
-0.2715212404727936,
-0.24795760214328766,
-0.3175481855869293,
-0.25298193097114563,
-0.4196508526802063,
-0.07618498802185059,
-0.0940631851553917,
0.17807111144065857,
0.009004541672766209,
0.17096152901649475,
0.18896834552288055,
-0.4353349208831787,
-0.1018504947423935,
0.0006981533369980752,
0.23761585354804993,
0.01469232514500618,
-0.11296123266220093,
-0.26121076941490173,
-0.23404812812805176,
-0.31398677825927734,
0.345592200756073,
-0.2557937502861023,
0.08330071717500687,
-0.14002881944179535,
0.08952252566814423,
0.18896225094795227,
0.0027522484306246042,
0.7596028447151184,
-0.18230688571929932,
0.2290213406085968,
0.3868348300457001,
0.20177341997623444,
-0.6543715000152588,
-0.02793959714472294,
-0.2924180030822754,
0.33610329031944275,
0.09061162918806076,
0.3959362506866455,
-0.42695143818855286,
-0.04438873752951622,
0.1525254100561142,
0.031495995819568634,
-0.09392315149307251,
-0.24251563847064972,
-0.268761545419693,
-0.30515700578689575,
-0.008728250861167908,
0.021820837631821632,
0.009019270539283752,
0.4349668323993683,
-0.17009960114955902,
-0.12759874761104584,
-0.40858709812164307,
0.16029292345046997,
0.11261364072561264,
-0.025370251387357712,
0.25263965129852295,
-0.05681589990854263,
-0.009302743710577488,
0.06357203423976898,
-0.007793528959155083,
0.11484544724225998,
0.3582157790660858,
0.027281947433948517,
-0.4528539776802063,
0.2615329921245575,
-0.021164339035749435,
0.24439962208271027,
0.07095659524202347,
-0.12790338695049286,
-0.08519916236400604,
0.008784648962318897,
0.07800475507974625,
-0.014175319112837315,
0.09054628014564514,
0.342509001493454,
0.038305286318063736,
-0.3234170079231262,
-0.40452247858047485,
0.2545506954193115,
0.303194522857666,
0.040141936391592026,
0.31352698802948,
0.008307399228215218,
-0.16731424629688263,
0.06105893850326538,
-0.13467395305633545,
0.8996841907501221,
-0.060539841651916504,
-0.10178526490926743,
0.6653999090194702,
-0.24445517361164093,
0.47850510478019714,
0.03029491752386093,
0.09032662957906723,
-0.29282599687576294,
-0.27005550265312195,
-0.015569153241813183,
-0.2568276822566986,
0.2637608051300049,
0.08154915273189545,
-0.4304999113082886,
0.3003610670566559,
-0.2911157011985779,
0.2078084647655487,
0.021377116441726685,
-0.0544000081717968,
-0.06086500734090805,
-0.11267402768135071,
-0.34367141127586365,
0.16298042237758636,
-0.26640790700912476,
0.2688088119029999,
-0.11475066095590591,
-0.14413291215896606,
-0.033118728548288345,
-0.07534370571374893,
-0.12978731095790863,
0.15657614171504974,
-0.3821195662021637,
-0.16315068304538727,
0.11582663655281067,
-0.20061372220516205,
0.07688457518815994,
0.1819683462381363,
0.07397842407226562,
-0.10281191766262054,
-0.32682353258132935,
0.17889884114265442,
-0.07588333636522293,
0.13643324375152588,
-0.08784200251102448,
0.00008248323865700513,
0.24698396027088165,
-0.10070442408323288,
-0.33282262086868286,
0.12364088743925095,
-0.06408049166202545,
0.21982289850711823,
0.28992903232574463,
0.18027840554714203,
-0.07299576699733734,
-0.26217135787010193,
-0.21223662793636322,
-0.1799515187740326,
0.3643167018890381,
-0.2759150564670563,
0.19591893255710602,
0.009252172894775867,
-0.10245154798030853,
0.08008135110139847,
-0.0507110059261322,
-0.12536105513572693,
0.00885431282222271,
0.48733627796173096,
0.4263884127140045,
0.28729385137557983,
0.2660652995109558,
0.2743079960346222,
-0.0806819498538971,
-0.3562264144420624,
0.28289830684661865,
0.11645594239234924,
-0.3351704776287079,
0.30599460005760193,
0.1482224017381668,
0.011610042303800583,
0.01613711193203926,
0.4952471852302551,
0.025640318170189857,
-0.022601891309022903,
-0.07561513036489487,
-0.2714720070362091,
-0.2940610349178314,
0.211046501994133,
0.007054441142827272,
-0.04866597428917885,
0.113752081990242,
0.18835870921611786,
0.28802818059921265,
-0.153833270072937,
-0.3571673631668091,
0.12020940333604813,
-0.3974457383155823,
-0.026375407353043556,
0.022024113684892654,
-0.08833697438240051,
0.2679440379142761,
0.07432863861322403,
0.13676562905311584,
-0.00633294926956296,
-0.11593730002641678,
-0.2485039234161377,
-0.22176527976989746,
0.13630880415439606,
-0.02784140221774578,
0.1512162685394287,
0.15154480934143066,
-0.21638044714927673,
-0.28096693754196167,
-0.012905669398605824,
0.04690038040280342,
0.02016550861299038,
-0.17441527545452118,
0.050583723932504654,
0.1910220831632614,
0.3978147506713867,
-0.021783415228128433,
0.2827035188674927,
-0.006748315878212452,
0.03453877195715904,
-0.14337879419326782,
0.02376856841146946,
0.2030908167362213,
0.025237560272216797,
-0.2087370604276657,
-0.06448981165885925,
0.25085100531578064,
0.1676194667816162,
0.09408631175756454,
-0.30533379316329956,
-0.12315566092729568,
-0.09764525294303894,
0.002210098085924983,
0.13085952401161194,
-0.1723632961511612,
0.29908645153045654,
-0.11031612753868103,
0.27010345458984375,
-0.2779809534549713,
0.05242461338639259,
0.3269571363925934,
-0.12120930850505829,
0.0678810104727745,
0.02834533527493477,
-0.32221952080726624,
0.20129820704460144,
-0.11265142261981964,
0.15114690363407135,
0.44061002135276794,
-0.12479022890329361,
0.09298881888389587,
0.21740320324897766,
-0.11620510369539261,
-0.015790460631251335,
0.46070218086242676,
0.20200133323669434,
0.039333660155534744,
0.14204618334770203,
0.02263275347650051,
0.03663685545325279,
-0.04828595742583275,
0.1063208058476448,
0.28279832005500793,
-0.4781707227230072,
0.003583303652703762,
0.10940301418304443,
-0.0017192005179822445,
-0.09504237025976181,
-0.31514808535575867,
0.5316864252090454,
-0.4729447066783905,
-0.1242418959736824,
-0.2933814823627472,
-0.007862478494644165,
-0.18876749277114868,
0.14117154479026794,
-0.19200332462787628,
-0.13009920716285706,
-0.09602432698011398,
-0.19645152986049652,
0.003972402308136225,
-0.14528192579746246,
0.2983594536781311,
-0.12987849116325378,
-0.0621962733566761,
-0.15632538497447968,
-0.07531428337097168,
0.4235473573207855,
-0.0483771450817585,
-0.16969388723373413,
0.07147523760795593,
-0.15132056176662445,
0.21569374203681946,
-0.0976131409406662,
0.5807603001594543,
0.33212125301361084,
0.32866913080215454,
-0.21318447589874268,
-0.16956727206707,
0.2545267343521118,
-0.3181827962398529,
-0.10708747804164886,
0.1548369973897934,
0.15858052670955658,
0.1606113165616989,
0.07852081954479218,
0.2066705822944641,
-0.224143385887146,
0.1420188695192337,
0.04366001859307289,
-0.1447918564081192,
-0.3188246786594391,
0.4858047068119049,
-0.38998472690582275,
-0.12553787231445312,
-0.127706378698349,
-0.07447421550750732,
-0.5568335652351379,
0.11908048391342163,
0.2711358368396759,
0.21955855190753937,
0.09889156371355057,
-0.19550229609012604,
0.0958702340722084,
-0.3225298821926117,
0.2215009480714798,
0.020387843251228333,
0.36482250690460205,
-0.31445473432540894,
0.11566328257322311,
-0.5239737033843994,
0.45923173427581787,
-0.010784603655338287,
0.010512592270970345,
0.15419484674930573,
-0.09312193095684052,
-0.26544108986854553,
-0.00391476321965456,
0.03069424256682396,
0.20476028323173523,
0.3998901844024658,
0.14539079368114471,
-0.5745072364807129,
-0.3909091055393219,
-0.047737520188093185,
-0.0727449283003807,
0.0916483923792839,
-0.26210007071495056,
0.012926655821502209,
-0.15178824961185455,
0.0232955701649189,
-0.11175224930047989,
-0.3203568458557129,
0.15119819343090057,
0.14068928360939026,
0.7023332715034485,
0.04464339837431908,
0.4411265254020691,
0.02858581393957138,
-0.011711999773979187,
0.12163645029067993,
-0.3079589605331421,
-0.10504581034183502,
0.17643164098262787,
-0.004793146159499884,
0.05286610126495361,
-0.02099359966814518,
0.2726181447505951,
-0.2175622433423996,
-0.18123187124729156,
-0.14396019279956818,
0.12817227840423584,
-0.30535221099853516,
0.31196796894073486,
-0.3086749315261841,
-0.139373317360878,
-0.34222176671028137,
-0.0057944487780332565,
0.1176716685295105,
0.04527249187231064,
-0.10811209678649902,
0.049360569566488266,
0.6277844905853271,
-0.1653219610452652,
-0.34403762221336365,
-0.10382509976625443,
0.3128974139690399,
-0.0359872430562973,
-0.11266208440065384,
-0.5198070406913757,
0.0568198636174202,
0.48524177074432373,
-0.06891500949859619,
-0.19220197200775146,
0.23418781161308289,
-0.14151854813098907,
0.13243885338306427,
-0.021421581506729126,
-0.09415663033723831,
-0.009551173076033592,
-0.03140854090452194,
0.21754521131515503,
-0.14357928931713104
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
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.4171537160873413,
-0.24179112911224365,
0.0004066948895342648,
0.1936674565076828,
0.18737877905368805,
0.057204294949769974,
0.5056349039077759,
0.10599514096975327,
0.1942843496799469,
0.1353352814912796,
0.06982970982789993,
0.12972091138362885,
-0.20970970392227173,
0.3238825798034668,
0.0893106535077095,
0.07877937704324722,
0.0210809838026762,
0.15888860821723938,
0.033576350659132004,
0.07740556448698044,
-0.2157028615474701,
0.20281533896923065,
-0.38659900426864624,
-0.33394506573677063,
-0.13239917159080505,
0.14632657170295715,
0.11002521216869354,
0.1485302746295929,
0.1753479689359665,
-0.630714476108551,
0.2604336440563202,
0.077573761343956,
0.22291673719882965,
0.7022688388824463,
-0.00011092249042121693,
0.180784672498703,
0.42094892263412476,
-0.13875676691532135,
-0.5919350981712341,
-0.29539793729782104,
-0.3683606684207916,
-0.3184560537338257,
0.17475248873233795,
-0.14602144062519073,
-0.1155986487865448,
0.0416298471391201,
-0.26451560854911804,
-0.4016982316970825,
0.219630628824234,
0.4454617500305176,
0.21177877485752106,
0.4712965488433838,
-0.1509922593832016,
-0.12801223993301392,
0.12741070985794067,
0.008658263832330704,
-0.1527627408504486,
0.29874593019485474,
0.07599498331546783,
0.24648036062717438,
-0.03018464706838131,
0.4006465971469879,
-0.0477481447160244,
0.19309420883655548,
0.21724079549312592,
-0.040310848504304886,
-0.06383990496397018,
-0.27303120493888855,
0.07796822488307953,
0.22671858966350555,
0.3892455995082855,
-0.34282079339027405,
-0.13722486793994904,
-0.4340839684009552,
-0.0550193227827549,
-0.40577951073646545,
0.24610401690006256,
-0.01205458678305149,
-0.24029283225536346,
0.08487581461668015,
-0.30274373292922974,
0.1529160588979721,
0.03936351090669632,
-0.10083968937397003,
-0.05831330642104149,
0.13155481219291687,
-0.025936229154467583,
0.17684732377529144,
-0.018286731094121933,
-0.03945464268326759,
0.11861810088157654,
-0.27501365542411804,
-0.07704520225524902,
0.19798347353935242,
-0.5796869993209839,
0.06174648925662041,
0.35635271668434143,
-0.48312047123908997,
0.22483615577220917,
0.07664096355438232,
0.3723800778388977,
0.0808454230427742,
0.12942150235176086,
-0.00541698606684804,
0.39903420209884644,
0.20174145698547363,
0.18393991887569427,
-0.2446383386850357,
0.16655296087265015,
0.35142287611961365,
-0.004633540287613869,
-0.30920132994651794,
0.045563310384750366,
-0.09289637207984924,
0.2623343765735626,
0.013559558428823948,
0.31324148178100586,
0.052279118448495865,
-0.37590348720550537,
0.19844095408916473,
-0.25989586114883423,
0.06216369569301605,
0.35266774892807007,
0.24700845777988434,
0.3124094605445862,
0.33168020844459534,
-0.16496975719928741,
0.256663978099823,
-0.17016305029392242,
-0.4501442313194275,
-0.23991690576076508,
-0.31156840920448303,
0.02989838272333145,
0.05853233113884926,
0.2430291622877121,
-0.41157329082489014,
0.21278758347034454,
0.11438383907079697,
0.23147056996822357,
-0.1508331596851349,
0.23506543040275574,
-0.35599544644355774,
0.2714749276638031,
0.41706106066703796,
0.21322526037693024,
0.30559632182121277,
0.2130860686302185,
-0.07812125980854034,
0.08656042814254761,
0.12929850816726685,
-0.013574385084211826,
-0.3794969916343689,
0.11882832646369934,
0.2418161928653717,
-0.18547028303146362,
0.009185299277305603,
-0.16261857748031616,
0.34210819005966187,
0.04925994575023651,
-0.49039769172668457,
0.10061502456665039,
-0.13931910693645477,
-0.1788216531276703,
-0.13887283205986023,
0.37678200006484985,
0.41917186975479126,
-0.31634801626205444,
-0.06317581236362457,
-0.22237706184387207,
-0.19334696233272552,
0.30681905150413513,
0.0627039447426796,
-0.18674816191196442,
0.054598864167928696,
-0.19890771806240082,
-0.03240249305963516,
0.16526253521442413,
-0.1338232159614563,
-0.4505629241466522,
0.38398006558418274,
-0.10031840950250626,
0.421682208776474,
0.003368150908499956,
0.03489601984620094,
0.046212997287511826,
-0.11796555668115616,
0.20823566615581512,
-0.048220425844192505,
-0.34298571944236755,
0.130170539021492,
-0.2063288539648056,
0.09627809375524521,
0.17453162372112274,
0.026337388902902603,
0.10805484652519226,
0.1456773579120636,
0.1164155825972557,
-0.030761126428842545,
0.19643600285053253,
-0.04401007294654846,
0.00533670699223876,
0.290941059589386,
0.04242460057139397,
-0.058818113058805466,
0.0003675927291624248,
-0.18107250332832336,
-0.47020089626312256,
0.355416476726532,
0.22764179110527039,
0.026553096249699593,
0.06789758056402206,
0.03773089125752449,
-0.30465391278266907,
0.14193543791770935,
-0.2711750864982605,
-0.47715994715690613,
0.19495268166065216,
0.3907281756401062,
-0.111848384141922,
0.0888262689113617,
-0.2773430049419403,
0.30205070972442627,
-0.16964851319789886,
-0.10022283345460892,
-0.15285222232341766,
0.12631380558013916,
0.13407166302204132,
-0.3565651774406433,
-0.033736567944288254,
0.08978773653507233,
0.25191283226013184,
-0.13449318706989288,
-0.23499968647956848,
0.4969184994697571,
0.10699072480201721,
0.069990374147892,
-0.07817324250936508,
-0.17321230471134186,
0.19722144305706024,
-0.13145741820335388,
-0.23216548562049866,
0.47242093086242676,
0.3397763669490814,
-0.24348507821559906,
-0.139333575963974,
0.18679344654083252,
-0.20517876744270325,
0.2564632296562195,
-0.06942098587751389,
0.09129361063241959,
0.3283311724662781,
0.3197959065437317,
-0.09283757209777832,
-0.02125983126461506,
0.2077188789844513,
-0.177739679813385,
0.1031239703297615,
-0.16109248995780945,
-0.2532595098018646,
-0.04286334663629532,
0.1946256011724472,
0.19555343687534332,
0.04065582528710365,
0.05297531560063362,
-0.32361021637916565,
-0.20869888365268707,
0.3706594407558441,
0.08801992237567902,
0.4839424192905426,
0.07912058383226395,
0.27212271094322205,
0.0922640934586525,
-0.010665533132851124,
-0.12633219361305237,
0.29710566997528076,
0.07523884624242783,
0.09849712997674942,
0.36037591099739075,
0.24974574148654938,
-0.12042826414108276,
-0.40167781710624695,
-0.22516560554504395,
0.1358991414308548,
0.13366377353668213,
-0.30523481965065,
0.02976931445300579,
-0.12822191417217255,
-0.27484381198883057,
0.11330673098564148,
-0.4021542966365814,
-0.22254377603530884,
-0.3337671160697937,
-0.2058945596218109,
0.34512388706207275,
-0.1469634771347046,
0.14990028738975525,
-0.18047510087490082,
-0.08826852589845657,
0.3082578480243683,
-0.0031163827516138554,
-0.23223528265953064,
-0.11356182396411896,
-0.2594830393791199,
0.032140519469976425,
0.04128023609519005,
-0.3234785795211792,
0.43474850058555603,
-0.1234990805387497,
-0.18018557131290436,
-0.15129487216472626,
-0.0745454728603363,
0.17409080266952515,
0.04358678311109543,
0.20014095306396484,
0.27433887124061584,
0.21975882351398468,
0.03922094777226448,
0.004569484852254391,
0.42418769001960754,
-0.2919018566608429,
0.014643661677837372,
0.37620818614959717,
0.20120008289813995,
0.26668214797973633,
-0.22972625494003296,
-0.2490319311618805,
-0.07797171920537949,
-0.4310798645019531,
-0.1742313951253891,
-0.022772416472434998,
0.027364259585738182,
0.4507269263267517,
0.2624836266040802,
0.3891986608505249,
0.312764436006546,
-0.05663180351257324,
-0.33487454056739807,
-0.34751856327056885,
0.13222356140613556,
-0.19747738540172577,
-0.40971899032592773,
0.1144939512014389,
0.0011446628486737609,
0.16648532450199127,
0.2781500518321991,
-0.3012990951538086,
0.08036443591117859,
-0.040836140513420105,
0.11887437105178833,
-0.05930212140083313,
-0.11201155185699463,
0.14327476918697357,
-0.0613778792321682,
-0.10192688554525375,
-0.3338417410850525,
-0.1850912868976593,
-0.12761545181274414,
-0.1529606431722641,
0.23241163790225983,
0.038184501230716705,
0.5950308442115784,
0.20778177678585052,
0.528063952922821,
0.48364725708961487,
0.058197271078825,
0.6157121658325195,
-0.2377380132675171,
0.21612851321697235,
-0.36735546588897705,
-0.3503071665763855,
0.22255253791809082,
-0.008587829768657684,
-0.13208281993865967,
0.20818853378295898,
-0.14705438911914825,
-0.26817235350608826,
-0.2567494213581085,
0.03510301560163498,
-0.06477092206478119,
-0.17551438510417938,
0.0512213408946991,
-0.26428326964378357,
0.3024124801158905,
0.035931944847106934,
0.20614312589168549,
-0.2464563399553299,
-0.057494182139635086,
-0.23733922839164734,
0.076082244515419,
-0.004537743516266346,
0.0064100055024027824,
-0.2967652678489685,
0.02146628312766552,
-0.5252026915550232,
0.3021186888217926,
0.2227877378463745,
0.6154462695121765,
-0.03917122259736061,
-0.20886874198913574,
0.04505007341504097,
0.011758078821003437,
0.5304381847381592,
-0.3789142072200775,
-0.02405853010714054,
0.2964757978916168,
-0.09507764130830765,
-0.4073818027973175,
-0.11024530231952667,
-0.23251807689666748,
0.3465288579463959,
0.23289386928081512,
0.14283564686775208,
-0.22242668271064758,
-0.08862237632274628,
0.13660837709903717,
0.1360025703907013,
-0.07512582838535309,
-0.1846514195203781,
-0.22789552807807922,
-0.2202228605747223,
-0.1945463865995407,
-0.1267380565404892,
0.08430062234401703,
0.24322640895843506,
-0.19497670233249664,
-0.08503564447164536,
-0.10335506498813629,
0.028898252174258232,
0.08444764465093613,
0.10441721975803375,
0.37885764241218567,
0.09033623337745667,
0.23108801245689392,
0.36957788467407227,
0.10157258808612823,
0.3100062608718872,
0.5074751973152161,
0.4065583646297455,
-0.31847891211509705,
0.20455989241600037,
0.07758700102567673,
0.08565303683280945,
0.288237988948822,
-0.11168365925550461,
-0.027631115168333054,
0.07771820574998856,
0.09345786273479462,
-0.2894919812679291,
0.19438017904758453,
0.24492305517196655,
-0.05395342409610748,
-0.1495421677827835,
-0.5760557055473328,
0.3336382210254669,
0.030438169836997986,
0.01837577484548092,
0.30646079778671265,
-0.2464936375617981,
-0.2605730891227722,
-0.035229697823524475,
-0.05465143918991089,
0.4981871545314789,
0.1343335509300232,
0.06615655869245529,
0.4267178177833557,
-0.2779958248138428,
0.2107364535331726,
-0.14381998777389526,
0.22079716622829437,
-0.18793541193008423,
-0.3919578790664673,
-0.0941024124622345,
-0.1085415855050087,
0.05410005897283554,
-0.0021507511846721172,
-0.22879192233085632,
0.2563300132751465,
0.024575011804699898,
0.2516511380672455,
0.03213771432638168,
0.05137602984905243,
-0.42118796706199646,
-0.10443779081106186,
-0.2310299426317215,
0.2266882210969925,
0.03917413577437401,
0.05956630781292915,
-0.1965503990650177,
-0.15114445984363556,
0.2058594524860382,
-0.3431110680103302,
-0.2650851905345917,
-0.000540132459718734,
-0.25712674856185913,
0.030491385608911514,
-0.07894936203956604,
-0.5586477518081665,
-0.009275299496948719,
0.1646387130022049,
-0.11657378822565079,
-0.2574966251850128,
-0.16036134958267212,
0.07319045811891556,
0.18230687081813812,
0.4032887816429138,
-0.03046068362891674,
0.16472715139389038,
0.3220479190349579,
-0.015690738335251808,
-0.12030455470085144,
0.17139485478401184,
-0.20562830567359924,
-0.13868318498134613,
0.0792049914598465,
0.052529625594615936,
0.14775389432907104,
-0.19502808153629303,
0.07209757715463638,
-0.12445389479398727,
0.0610792301595211,
-0.2714117765426636,
0.13799911737442017,
-0.052293334156274796,
-0.24431142210960388,
-0.07188546657562256,
-0.1764228641986847,
-0.10695672035217285,
-0.14048543572425842,
0.3965621888637543,
-0.12225671112537384,
0.26397958397865295,
0.5979732275009155,
0.26283514499664307,
-0.06992258876562119,
-0.22390399873256683,
0.20114709436893463,
0.06650205701589584,
-0.2591679096221924,
0.3576514422893524,
-0.06612727046012878,
-0.008414829149842262,
-0.06895516812801361,
0.3735865354537964,
-0.013727421872317791,
-0.06530039757490158,
-0.14254790544509888,
-0.2276575267314911,
-0.33909472823143005,
-0.07664856314659119,
-0.06480370461940765,
0.18094734847545624,
-0.06148681044578552,
0.020505640655755997,
0.34409400820732117,
-0.24832800030708313,
-0.3373637795448303,
-0.220648393034935,
-0.22573329508304596,
0.13675682246685028,
-0.11563606560230255,
0.09033570438623428,
0.2451535165309906,
-0.02453535422682762,
0.14017508924007416,
0.18334528803825378,
-0.06546875089406967,
-0.25145307183265686,
-0.07216551154851913,
0.09109705686569214,
-0.01268745306879282,
-0.21201424300670624,
-0.10044457018375397,
0.06918267160654068,
-0.3066590428352356,
-0.31496384739875793,
0.25425517559051514,
0.02618679590523243,
-0.0648496225476265,
0.3339472711086273,
0.12089470028877258,
0.22691194713115692,
-0.24580204486846924,
-0.0012790311593562365,
-0.04929150640964508,
-0.07142280042171478,
-0.26540079712867737,
0.1434948742389679,
0.07414449751377106,
0.0186533834785223,
-0.013711366802453995,
-0.030240457504987717,
-0.03590626269578934,
-0.0958985835313797,
0.34572580456733704,
-0.3809930682182312,
0.19852128624916077,
0.28538691997528076,
0.43267062306404114,
0.30729976296424866,
-0.27456748485565186,
-0.06012990325689316,
-0.028383178636431694,
0.2137221097946167,
-0.2702537477016449,
0.10478916019201279,
-0.1389298290014267,
0.34049713611602783,
0.1812906265258789,
0.12345413118600845,
0.04296203702688217,
-0.2800155282020569,
0.07717429101467133,
0.17459368705749512,
0.07684164494276047,
-0.17759555578231812,
0.21294325590133667,
0.4377634525299072,
-0.16202005743980408,
0.16365063190460205,
-0.09750153124332428,
0.05714433640241623,
0.012012810446321964,
0.44373151659965515,
-0.07662992179393768,
0.16321313381195068,
0.20374247431755066,
-0.1365543156862259,
-0.05105625092983246,
-0.31396621465682983,
-0.22319036722183228,
0.2932848632335663,
-0.14783887565135956,
0.221165269613266,
0.06075483560562134,
0.11484961211681366,
-0.24398210644721985,
0.12409768998622894,
-0.3192911148071289,
-0.08079967647790909,
-0.1555943489074707,
0.04697516933083534,
-0.17812974750995636,
-0.12487311661243439,
-0.2028404325246811,
-0.13352607190608978,
0.1504879593849182,
0.12903881072998047,
0.3712654411792755,
0.04325951263308525,
-0.007196927443146706,
-0.6050089597702026,
-0.06622239947319031,
0.3256901204586029,
0.036551229655742645,
-0.2266712635755539,
0.23770341277122498,
0.4254246950149536,
0.09024293720722198,
0.3842974901199341,
0.37267833948135376,
0.37976542115211487,
0.3374571204185486,
-0.0666712298989296,
0.11292340606451035,
0.15434911847114563,
-0.16488444805145264,
-0.27628764510154724,
0.17856508493423462,
-0.04581489413976669,
0.27330318093299866,
0.3034486174583435,
0.12707026302814484,
-0.14464201033115387,
0.11705531179904938,
0.04499301314353943,
0.057573698461055756,
-0.6023662090301514,
0.4265976846218109,
-0.47014182806015015,
0.018530266359448433,
-0.12080251425504684,
-0.1203804612159729,
-0.23760804533958435,
0.08212614059448242,
0.28655168414115906,
0.04001063480973244,
0.22747506201267242,
-0.09906146675348282,
0.10672985762357712,
-0.12554103136062622,
0.24466630816459656,
-0.002738171722739935,
-0.25581294298171997,
-0.2028062790632248,
-0.16729313135147095,
-0.8009281158447266,
0.014878334477543831,
0.0856730118393898,
-0.10914085805416107,
0.14447863399982452,
0.19897708296775818,
-0.11894913762807846,
0.24640202522277832,
0.3879638612270355,
-0.23398812115192413,
-0.1309386044740677,
0.32689446210861206,
-0.19536060094833374,
-0.4079425632953644,
-0.4459080696105957,
-0.025074422359466553,
-0.012066184543073177,
-0.242981418967247,
0.2650614380836487,
-0.22267679870128632,
0.14528943598270416,
0.12097442150115967,
-0.028392598032951355,
0.11598484963178635,
-0.0041812448762357235,
0.3461858928203583,
0.16728222370147705,
0.31419864296913147,
-0.1446942538022995,
0.17871621251106262,
-0.32993805408477783,
-0.1000358834862709,
-0.30502617359161377,
0.30607083439826965,
-0.11265774071216583,
0.4945885241031647,
-0.12337769567966461,
-0.01249933522194624,
-0.16372543573379517,
0.21081438660621643,
0.25843149423599243,
-0.2667393386363983,
-0.35772544145584106,
0.2748015224933624,
-0.2798823118209839,
0.2512660622596741,
0.03180095925927162,
0.365227073431015,
-0.036518510431051254,
0.13531602919101715,
-0.26973485946655273,
-0.5320453643798828,
0.44577184319496155,
-0.43087881803512573,
-0.3953130841255188,
-0.06510079652070999,
0.18633811175823212,
0.24522139132022858,
-0.25559201836586,
-0.3518372178077698,
0.12357226014137268,
0.3564775288105011,
-0.13010433316230774,
-0.20691679418087006,
-0.007076506968587637,
-0.11551524698734283,
0.05436766520142555,
-0.07792142778635025,
0.14564214646816254,
0.16641321778297424,
-0.157684326171875,
0.26043564081192017,
-0.06450673192739487
] |
https://github.com/huggingface/datasets/issues/2860
|
Cannot download TOTTO dataset
|
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it.
|
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
| 20
|
Cannot download TOTTO dataset
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it.
|
[
-0.2944106459617615,
0.3900931477546692,
-0.1317225992679596,
0.06419666856527328,
0.43536779284477234,
0.13932785391807556,
0.1679641157388687,
0.5879847407341003,
-0.026145564392209053,
0.2343415915966034,
-0.19477717578411102,
-0.047309041023254395,
0.05941740423440933,
0.3187090754508972,
0.0643596351146698,
-0.3084108829498291,
0.06527973711490631,
-0.013006509281694889,
-0.13955233991146088,
0.03085423819720745,
-0.0759800598025322,
0.2782619893550873,
0.010026314295828342,
0.06546438485383987,
0.01810915581882,
0.09367083013057709,
-0.02909252606332302,
-0.09794483333826065,
-0.26863789558410645,
-0.43473753333091736,
0.41533908247947693,
0.061375692486763,
0.16973769664764404,
0.3808848261833191,
-0.00010737669799709693,
0.1472335010766983,
0.32910093665122986,
0.008616818115115166,
-0.2500196695327759,
-0.3531950116157532,
-0.32888567447662354,
-0.11417613923549652,
-0.19650378823280334,
-0.14808115363121033,
-0.08305338770151138,
0.2127360701560974,
0.20388224720954895,
-0.26071301102638245,
0.04171622917056084,
0.5573633313179016,
0.2718280553817749,
0.0907750278711319,
0.3079370856285095,
-0.3647714853286743,
0.2657265365123749,
0.14753931760787964,
-0.03651611879467964,
0.07056374847888947,
0.07858909666538239,
0.010867662727832794,
0.3562815487384796,
0.04600029066205025,
-0.1339970976114273,
0.07433116436004639,
-0.1553676426410675,
-0.08402248471975327,
-0.09248163551092148,
-0.34242287278175354,
0.2141401171684265,
0.3073771893978119,
0.5096559524536133,
-0.20446492731571198,
-0.3611646592617035,
0.22677938640117645,
-0.0598626583814621,
-0.2795485258102417,
0.26980409026145935,
0.18022258579730988,
0.09009139239788055,
0.16981881856918335,
0.17325721681118011,
-0.4855838716030121,
-0.18901336193084717,
0.052865006029605865,
-0.41417908668518066,
0.10760539025068283,
-0.1177636906504631,
0.004858848638832569,
-0.10592131316661835,
-0.12039405107498169,
0.30164578557014465,
-0.0547916442155838,
-0.03756137192249298,
0.2590125799179077,
-0.27454569935798645,
-0.18414726853370667,
0.10355675220489502,
0.031148018315434456,
0.1920051872730255,
0.04906840622425079,
0.1362312287092209,
-0.10176484286785126,
-0.5062010288238525,
-0.06661338359117508,
0.24186868965625763,
-0.1095382496714592,
-0.00026669478393159807,
0.3804113268852234,
0.2949266731739044,
0.24163644015789032,
0.1484333574771881,
0.047314148396253586,
-0.15863309800624847,
-0.358692467212677,
0.026933124288916588,
-0.11310390383005142,
0.4928361177444458,
-0.2085416615009308,
-0.3899921774864197,
0.16169783473014832,
-0.09008194506168365,
-0.12147460132837296,
-0.017612405121326447,
0.15179459750652313,
-0.02442091330885887,
0.07535743713378906,
0.09186992049217224,
0.14045466482639313,
-0.008870775811374187,
-0.13770490884780884,
-0.2661002576351166,
0.2041446417570114,
-0.012519396841526031,
0.07130275666713715,
0.2309996485710144,
-0.34486714005470276,
0.09529969096183777,
-0.025891602039337158,
-0.4624832272529602,
0.08283349126577377,
-0.1361532211303711,
-0.07501613348722458,
-0.24587732553482056,
0.36322858929634094,
0.2265910506248474,
0.10456545650959015,
0.0013825095957145095,
0.11343953758478165,
-0.2949780523777008,
0.2792562246322632,
-0.3678761124610901,
-0.06789016723632812,
-0.12277770787477493,
0.29419541358947754,
-0.32272765040397644,
-0.2466391772031784,
-0.5071802139282227,
-0.03396549075841904,
-0.05250425636768341,
-0.3056931793689728,
-0.12345991283655167,
-0.1745036095380783,
-0.18053454160690308,
-0.251517653465271,
0.11249266564846039,
0.601351261138916,
-0.2063903659582138,
0.020885534584522247,
-0.4196625053882599,
-0.42012691497802734,
0.18996374309062958,
0.26932039856910706,
-0.03414052352309227,
0.4477236270904541,
-0.30258429050445557,
0.08851772546768188,
0.439207524061203,
-0.12548363208770752,
-0.7618817687034607,
-0.003320306073874235,
-0.2596686780452728,
-0.1898876577615738,
0.17900143563747406,
0.07903099060058594,
0.2497507929801941,
-0.1000053808093071,
0.24605703353881836,
0.13707484304904938,
0.012917897664010525,
-0.04594685882329941,
-0.23870016634464264,
-0.01056472584605217,
-0.0045893220230937,
0.18394120037555695,
0.10487750917673111,
0.20509816706180573,
0.15016800165176392,
-0.07256824523210526,
0.23575560748577118,
0.16073332726955414,
0.09941522777080536,
0.3408913016319275,
0.33139050006866455,
-0.026513729244470596,
-0.019944269210100174,
-0.18357433378696442,
-0.1992594599723816,
0.12322912365198135,
-0.21627870202064514,
0.10841506719589233,
-0.20868036150932312,
-0.13046494126319885,
-0.44674235582351685,
0.059462565928697586,
-0.06538476049900055,
-0.09304262697696686,
0.1499171257019043,
-0.00027611706173047423,
0.3107365667819977,
0.3321077823638916,
-0.020355425775051117,
0.32068201899528503,
0.26770326495170593,
0.10301177948713303,
-0.1375439167022705,
0.5665911436080933,
-0.13397882878780365,
0.05680464580655098,
0.4536592662334442,
-0.2412831038236618,
0.23640373349189758,
-0.08168148994445801,
-0.06230111047625542,
0.1545938104391098,
0.06046945974230766,
0.3422279953956604,
0.47713354229927063,
0.23964104056358337,
0.17216558754444122,
-0.43543538451194763,
0.2116641104221344,
0.3432684540748596,
0.07830239832401276,
0.1411447823047638,
-0.19090697169303894,
0.021361693739891052,
0.15398508310317993,
0.03501652926206589,
-0.017607320100069046,
0.2682007849216461,
0.5447123050689697,
0.07632357627153397,
0.0633014664053917,
-0.0642058327794075,
0.2679160535335541,
0.5545852780342102,
0.22247804701328278,
-0.0677623376250267,
-0.2419169396162033,
0.145709827542305,
0.5387060046195984,
-0.03721773251891136,
0.05278592184185982,
0.23559531569480896,
-0.14766816794872284,
-0.06319115310907364,
-0.19531004130840302,
0.20978707075119019,
0.17180973291397095,
0.059628862887620926,
0.1565222144126892,
0.010635051876306534,
-0.07776989042758942,
-0.26678821444511414,
0.05513353273272514,
0.07252122461795807,
0.1452949196100235,
0.14184248447418213,
0.12197582423686981,
0.20613358914852142,
-0.08200931549072266,
-0.30872872471809387,
0.030994299799203873,
0.305666446685791,
-0.13110165297985077,
-0.07953863590955734,
-0.259268194437027,
0.0049414560198783875,
-0.2732790410518646,
-0.31596314907073975,
-0.2113303542137146,
-0.3952905535697937,
0.060542043298482895,
0.26576128602027893,
0.06559973210096359,
-0.010298367589712143,
-0.05603621155023575,
0.033999837934970856,
0.2436152547597885,
-0.3098420798778534,
-0.13410891592502594,
-0.15004950761795044,
-0.10418955236673355,
0.1706148087978363,
0.23775982856750488,
-0.3077159523963928,
0.3982348144054413,
-0.6368308663368225,
0.11993805319070816,
-0.5480056405067444,
-0.23462189733982086,
-0.04311726614832878,
-0.18990617990493774,
0.09422899037599564,
0.17561447620391846,
0.4022015333175659,
0.3427291512489319,
0.2505163252353668,
0.19375422596931458,
-0.02479293942451477,
-0.05100634694099426,
0.08910990506410599,
-0.13872039318084717,
-0.04412391036748886,
0.18273381888866425,
-0.4613678455352783,
-0.3021491467952728,
-0.22804978489875793,
0.04443534463644028,
0.06290711462497711,
0.2366311103105545,
-0.2858434319496155,
0.17098884284496307,
0.06599444895982742,
0.1328108012676239,
-0.3080635070800781,
-0.12229657918214798,
-0.1796017289161682,
0.4985625445842743,
-0.23718105256557465,
-0.23330573737621307,
0.10590086132287979,
0.1302611529827118,
0.47575223445892334,
0.16746708750724792,
-0.4497700035572052,
0.17924371361732483,
-0.34597036242485046,
0.15347960591316223,
-0.04684622213244438,
0.07588731497526169,
0.3201242685317993,
0.14537303149700165,
-0.11371996998786926,
-0.05699304863810539,
-0.1610034555196762,
-0.05003901198506355,
-0.385509192943573,
0.23301133513450623,
-0.03675749525427818,
0.2503892481327057,
-0.12100701034069061,
0.39819881319999695,
0.25511038303375244,
0.07454711198806763,
0.3040677607059479,
-0.19432629644870758,
0.13060332834720612,
-0.1279258131980896,
-0.1889469027519226,
-0.09842509031295776,
0.15770356357097626,
-0.11632407456636429,
-0.1967867612838745,
-0.018464062362909317,
0.07412099093198776,
-0.16941317915916443,
-0.10427948087453842,
-0.20427916944026947,
-0.28362470865249634,
-0.1303625851869583,
0.017782142385840416,
0.4172819256782532,
0.18590953946113586,
0.015683190897107124,
-0.16743066906929016,
-0.09354198724031448,
0.2443631887435913,
0.13966333866119385,
-0.00149681291077286,
-0.01804511435329914,
-0.12513703107833862,
-0.1843106597661972,
-0.6704332828521729,
0.34411659836769104,
-0.1174287497997284,
0.23539999127388,
-0.09272421151399612,
0.18525056540966034,
0.11048118770122528,
-0.04633769765496254,
0.5471501350402832,
0.06253737956285477,
0.3733004033565521,
0.35639438033103943,
0.27668243646621704,
-0.1460459977388382,
-0.052510473877191544,
-0.13045160472393036,
0.2965845465660095,
-0.026361217722296715,
0.3771857023239136,
-0.2650289833545685,
-0.05549626424908638,
0.22224505245685577,
0.18887145817279816,
-0.10315660387277603,
0.18050456047058105,
-0.06394790858030319,
-0.4556210935115814,
-0.20931199193000793,
-0.17720147967338562,
-0.08709844946861267,
0.2738865315914154,
-0.15301118791103363,
-0.08726152032613754,
0.06726770102977753,
-0.14736925065517426,
-0.017555413767695427,
-0.16865698993206024,
0.38129308819770813,
-0.163720965385437,
0.1771625280380249,
-0.009664032608270645,
-0.2981497645378113,
0.592555820941925,
0.9116897583007812,
-0.009422083385288715,
-0.4505525827407837,
-0.06999699771404266,
0.10417819768190384,
-0.1924932301044464,
0.03705450892448425,
-0.10771489888429642,
-0.15561628341674805,
-0.13476622104644775,
0.12147470563650131,
-0.1697995513677597,
0.2179345190525055,
0.266815721988678,
0.07851208001375198,
-0.41894686222076416,
-0.3319603204727173,
0.4077741205692291,
0.16759096086025238,
-0.042266037315130234,
0.4756699204444885,
0.12317825108766556,
0.005215136334300041,
-0.15127462148666382,
-0.14658695459365845,
0.7076451182365417,
-0.17085178196430206,
0.1218787208199501,
0.39792296290397644,
-0.16708935797214508,
0.2951295077800751,
0.05398961529135704,
0.054950498044490814,
-0.3560289144515991,
0.22415439784526825,
-0.05079853534698486,
-0.0956093892455101,
0.04228903353214264,
0.033159542828798294,
-0.22615282237529755,
0.37607401609420776,
-0.19127066433429718,
0.00576173746958375,
0.23429933190345764,
0.22993697226047516,
-0.2325206995010376,
0.14330744743347168,
-0.24940547347068787,
0.2325793355703354,
-0.17009109258651733,
0.5963364243507385,
0.01260476466268301,
-0.15788666903972626,
-0.23525193333625793,
-0.08879250288009644,
-0.45868244767189026,
0.22263078391551971,
-0.353146493434906,
0.04721805080771446,
-0.12919536232948303,
-0.22001266479492188,
0.06455999612808228,
0.1586478054523468,
0.30449163913726807,
0.23625601828098297,
-0.5237360000610352,
0.2670381963253021,
-0.3025304973125458,
-0.35137149691581726,
0.1728501170873642,
0.21179847419261932,
0.21361547708511353,
-0.03559083491563797,
-0.2754931151866913,
0.19301311671733856,
0.01657918095588684,
-0.1336367130279541,
-0.1597440093755722,
-0.30233293771743774,
0.09608464688062668,
-0.28713399171829224,
0.03088449314236641,
-0.17845545709133148,
-0.06391683220863342,
-0.2592560946941376,
0.21087826788425446,
0.24442875385284424,
0.1790865659713745,
-0.07703175395727158,
-0.20085324347019196,
-0.2742713689804077,
-0.1253170222043991,
0.45766863226890564,
-0.08990694582462311,
0.036266494542360306,
0.30033496022224426,
0.14185525476932526,
-0.042109839618206024,
-0.23702643811702728,
-0.0758943185210228,
0.08708760887384415,
-0.07054268568754196,
0.2010706067085266,
-0.2461969554424286,
0.46026185154914856,
-0.19835346937179565,
0.031058430671691895,
0.00728113716468215,
-0.06026158854365349,
-0.017448699101805687,
-0.4184098243713379,
-0.003498832695186138,
0.13995036482810974,
0.06899862736463547,
0.008093638345599174,
0.08017579466104507,
0.3379449248313904,
0.07537207752466202,
-0.24152344465255737,
-0.3141225278377533,
0.15333539247512817,
0.010091779753565788,
-0.26027628779411316,
0.3766638934612274,
0.12650303542613983,
0.24597178399562836,
-0.10167625546455383,
0.18485558032989502,
-0.21972182393074036,
-0.22109702229499817,
-0.2645953595638275,
0.00002971019785036333,
0.05816499888896942,
-0.04339580237865448,
-0.08841483294963837,
0.12358833104372025,
-0.38157758116722107,
-0.2894199788570404,
0.24473652243614197,
0.08464226126670837,
0.42679736018180847,
-0.024262739345431328,
-0.06266190856695175,
0.17425678670406342,
0.02564404532313347,
-0.07157348841428757,
0.05229328200221062,
-0.05069277808070183,
0.0010749069042503834,
-0.024259459227323532,
0.3078615069389343,
0.00983642041683197,
-0.14883139729499817,
-0.30806764960289,
-0.012468177825212479,
0.06957730650901794,
-0.08357434719800949,
0.4794926643371582,
-0.23818999528884888,
0.058693546801805496,
0.3324649930000305,
0.13153643906116486,
0.3096736967563629,
-0.5152159929275513,
0.11309458315372467,
0.04085967689752579,
0.2866988480091095,
-0.3299863934516907,
-0.12997746467590332,
-0.23883557319641113,
0.013305697590112686,
-0.12264027446508408,
-0.023743098601698875,
-0.06547462195158005,
0.1589626967906952,
0.2537429928779602,
0.13775570690631866,
0.37715476751327515,
-0.19480185210704803,
0.22890546917915344,
0.3093295395374298,
0.10268685966730118,
0.186253160238266,
0.22176341712474823,
0.07996494323015213,
-0.09696841239929199,
0.4350671172142029,
-0.22939199209213257,
0.15007582306861877,
-0.06771144270896912,
0.07908238470554352,
0.18580381572246552,
-0.20166803896427155,
-0.3423798978328705,
0.20994658768177032,
-0.10701802372932434,
-0.04168528690934181,
0.0382252037525177,
0.26469317078590393,
-0.3808477520942688,
0.25993990898132324,
-0.2471592128276825,
0.21804295480251312,
0.03969178721308708,
-0.10703785717487335,
-0.07102187722921371,
-0.2772125005722046,
-0.1615738570690155,
0.111186683177948,
0.054403021931648254,
-0.057487182319164276,
-0.11724577099084854,
-0.00042441594996489584,
-0.41129931807518005,
-0.41728636622428894,
0.045343220233917236,
0.1922144889831543,
0.15196679532527924,
-0.12516123056411743,
0.41580191254615784,
-0.06668603420257568,
-0.28173989057540894,
0.15395179390907288,
0.4888013005256653,
0.49098342657089233,
0.16524145007133484,
0.2514760494232178,
-0.14476796984672546,
-0.25712719559669495,
-0.2132364958524704,
0.07024990767240524,
0.11483705043792725,
-0.03347029164433479,
0.0071204910054802895,
0.2830831706523895,
0.20912985503673553,
-0.1540866196155548,
0.12444878369569778,
0.0029566350858658552,
0.3419489562511444,
0.0563802644610405,
0.37019336223602295,
-0.3759680688381195,
-0.09316635131835938,
-0.2818804383277893,
-0.08912769705057144,
-0.3936677575111389,
-0.1934797316789627,
0.12496546655893326,
0.03782999888062477,
0.00913598295301199,
-0.26821988821029663,
0.12840190529823303,
0.03217466548085213,
0.18458877503871918,
0.2696234881877899,
0.20586808025836945,
-0.2469169646501541,
-0.3324059247970581,
-0.5042060017585754,
0.14899985492229462,
-0.1049712672829628,
-0.2146734893321991,
-0.14114271104335785,
0.021500801667571068,
-0.2108842134475708,
0.06252923607826233,
0.29793572425842285,
-0.01730484329164028,
-0.18923994898796082,
-0.16133420169353485,
-0.1859370768070221,
-0.013821195811033249,
-0.17595332860946655,
0.031495265662670135,
0.03161881864070892,
-0.33354702591896057,
0.279133141040802,
-0.34898120164871216,
0.07214511185884476,
-0.2029922753572464,
0.05827736482024193,
0.08456210047006607,
-0.02090574987232685,
0.2773115932941437,
0.17823219299316406,
0.16332142055034637,
-0.07166163623332977,
-0.12428334355354309,
-0.46047836542129517,
-0.0752217099070549,
-0.19515857100486755,
0.06040479615330696,
-0.1034029871225357,
0.09617386013269424,
-0.18126720190048218,
-0.4262297451496124,
-0.12998470664024353,
0.05917448550462723,
-0.15105648338794708,
0.06788549572229385,
-0.18107594549655914,
-0.02992084063589573,
-0.050120800733566284,
0.1820133477449417,
0.17484457790851593,
0.047105371952056885,
-0.001565555459819734,
0.09696514904499054,
-0.29985320568084717,
-0.28404316306114197,
0.16382665932178497,
0.018810585141181946,
-0.007454896345734596,
-0.09210700541734695,
0.04840265214443207,
0.23156264424324036,
0.06438902765512466,
-0.18918217718601227,
0.23621304333209991,
0.41562357544898987,
0.009564469568431377,
-0.16962957382202148,
0.19371789693832397,
-0.11111509054899216,
0.14572814106941223,
0.17899517714977264,
0.4593869745731354,
-0.040630221366882324,
-0.11746744811534882,
0.022175611928105354,
-0.048267900943756104
] |
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.11903844028711319,
0.16792812943458557,
-0.04717911779880524,
0.0831836387515068,
0.05813359469175339,
-0.18824361264705658,
0.269540011882782,
0.09011992067098618,
0.031670842319726944,
0.30045005679130554,
0.15717896819114685,
-0.04068831726908684,
-0.03392985463142395,
0.01377337146550417,
-0.2211279273033142,
0.03453521057963371,
-0.03757258877158165,
0.46077072620391846,
-0.16118204593658447,
-0.018834257498383522,
-0.21404267847537994,
0.05862010642886162,
0.026600781828165054,
0.14669401943683624,
0.09291689842939377,
0.05884312465786934,
0.31300973892211914,
0.2868218719959259,
-0.3467879891395569,
-0.4643649160861969,
0.301571249961853,
0.23560167849063873,
0.00291545526124537,
0.28527599573135376,
-0.00012826443708036095,
-0.03336679935455322,
0.20383137464523315,
-0.06265325099229813,
-0.4011746942996979,
-0.43671679496765137,
-0.533326268196106,
-0.2659042179584503,
0.30541694164276123,
-0.34576505422592163,
0.07803693413734436,
-0.2222447246313095,
0.07195140421390533,
-0.7639086246490479,
0.5935956239700317,
0.17307402193546295,
0.04220173880457878,
0.2400035709142685,
-0.0584280788898468,
0.06768638640642166,
0.09102492779493332,
0.1828545480966568,
-0.19834087789058685,
0.057610321789979935,
0.22725529968738556,
0.15339039266109467,
0.2952234745025635,
0.25443723797798157,
-0.14236781001091003,
0.18496863543987274,
0.413241446018219,
-0.23344184458255768,
0.14433443546295166,
-0.18182280659675598,
-0.06217856705188751,
0.4150872230529785,
1.1197654008865356,
0.11639479547739029,
-0.2934350073337555,
-0.12092531472444534,
-0.12897799909114838,
0.08569134026765823,
0.4294353425502777,
-0.028679976239800453,
-0.21897846460342407,
0.06807168573141098,
0.04946442320942879,
-0.23021240532398224,
-0.23421235382556915,
0.09087406098842621,
-0.20127519965171814,
0.40587377548217773,
-0.029754096642136574,
0.247170090675354,
0.007698720786720514,
-0.15470032393932343,
0.13358333706855774,
0.04338090494275093,
-0.04456399008631706,
0.03372848778963089,
-0.32125017046928406,
-0.16923414170742035,
0.09083515405654907,
-0.40483564138412476,
-0.04761780425906181,
0.5174327492713928,
0.40206047892570496,
0.03273031488060951,
-0.3441604673862457,
-0.013274128548800945,
0.1745266169309616,
0.19089744985103607,
0.687680184841156,
-0.07967561483383179,
0.44774338603019714,
-0.21324504911899567,
0.13904143869876862,
-0.14126455783843994,
-0.21525712311267853,
-0.29612693190574646,
0.1313997060060501,
0.09048500657081604,
0.6935954689979553,
-0.2948877215385437,
-0.15233534574508667,
0.03421418368816376,
-0.1434057205915451,
-0.25930532813072205,
0.04863528162240982,
0.07499293982982635,
-0.07358986139297485,
0.1086207926273346,
0.1906050145626068,
-0.04697613790631294,
0.22741082310676575,
0.031791720539331436,
0.03827378898859024,
-0.4006373882293701,
-0.13371220231056213,
-0.01845606230199337,
0.2508583068847656,
-0.37662452459335327,
0.4236001968383789,
-0.06989699602127075,
-0.04863506928086281,
-0.003027004888281226,
0.2811373174190521,
0.05056813731789589,
0.16935357451438904,
0.19123099744319916,
-0.03172880783677101,
0.17456206679344177,
0.023296939209103584,
-0.201525017619133,
-0.2798309624195099,
0.41016972064971924,
-0.39286530017852783,
-0.20879043638706207,
-0.4585915803909302,
-0.026832489296793938,
-0.23816752433776855,
0.01365997176617384,
-0.16893140971660614,
-0.34509357810020447,
-0.06184178218245506,
-0.05261395126581192,
0.20956970751285553,
0.240157350897789,
-0.06158841773867607,
-0.15261772274971008,
-0.07156248390674591,
0.3001873195171356,
-0.24234488606452942,
-0.10674130171537399,
-0.20431779325008392,
-0.01897362619638443,
-0.1588856428861618,
0.19151777029037476,
-0.4447416663169861,
0.04490054026246071,
-0.22322478890419006,
0.19483834505081177,
0.5952616930007935,
-0.49563995003700256,
-0.07608188688755035,
0.1809927374124527,
-0.1531471610069275,
0.002054118551313877,
0.5405678749084473,
-0.16674669086933136,
-0.17833814024925232,
-0.27372801303863525,
-0.5374614596366882,
0.2701222598552704,
0.23132997751235962,
-0.061075177043676376,
0.07703021913766861,
-0.16222819685935974,
0.018018115311861038,
-0.20013569295406342,
-0.2374698966741562,
0.09798259288072586,
0.15857358276844025,
-0.12498165667057037,
0.31109142303466797,
-0.22990719974040985,
-0.07634219527244568,
0.02606874704360962,
0.28048601746559143,
0.132860466837883,
-0.05614796653389931,
0.14082086086273193,
-0.38877299427986145,
0.20969298481941223,
0.022978531196713448,
-0.0062833987176418304,
-0.19002339243888855,
-0.32372185587882996,
-0.2919836938381195,
-0.0033376587089151144,
-0.13938291370868683,
0.4665450155735016,
-0.15327788889408112,
0.29358240962028503,
-0.22407807409763336,
-0.13944534957408905,
-0.10439257323741913,
0.39285141229629517,
-0.06128118187189102,
0.13518673181533813,
-0.25098368525505066,
-0.016980119049549103,
0.13693249225616455,
0.23116590082645416,
-0.04929151386022568,
-0.1680651307106018,
0.3726321756839752,
-0.022089196369051933,
-0.11331235617399216,
0.533051609992981,
-0.02823186293244362,
0.031985051929950714,
-0.10487882792949677,
0.1954682469367981,
0.11140992492437363,
-0.25140759348869324,
0.19433505833148956,
0.17354154586791992,
0.19796817004680634,
-0.11017981916666031,
0.026311416178941727,
0.18062157928943634,
-0.017822319641709328,
0.08318815380334854,
0.07544291019439697,
-0.1566098928451538,
-0.06183905154466629,
-0.22913773357868195,
-0.3702281415462494,
-0.11565731465816498,
0.07816791534423828,
0.028383629396557808,
0.10683595389127731,
-0.057824574410915375,
-0.23477229475975037,
-0.2743082046508789,
0.3148422837257385,
0.0879819244146347,
0.1735296994447708,
-0.041484568268060684,
0.09356924146413803,
-0.08178982883691788,
0.18749389052391052,
0.010550910606980324,
0.4148557186126709,
0.15264856815338135,
0.13867421448230743,
-0.20186972618103027,
0.32612183690071106,
-0.1958366185426712,
0.4617411494255066,
0.09941883385181427,
-0.19155892729759216,
0.03231029212474823,
-0.28892359137535095,
-0.00045608816435560584,
-0.20487740635871887,
-0.12076890468597412,
0.12948139011859894,
-0.1390756070613861,
-0.5578089952468872,
-0.17753489315509796,
-0.19479958713054657,
-0.17732255160808563,
-0.07115203887224197,
-0.3892519772052765,
-0.14081473648548126,
-0.02220504730939865,
-0.02958846278488636,
0.3878869116306305,
-0.06630370765924454,
0.304252028465271,
-0.25049009919166565,
0.23224861919879913,
-0.25130656361579895,
-0.4720892310142517,
-0.2935731112957001,
0.18796680867671967,
0.17815908789634705,
-0.020683081820607185,
0.19832512736320496,
-0.03751053661108017,
0.34039443731307983,
0.016880732029676437,
0.3036700487136841,
-0.4464115500450134,
-0.2624961733818054,
-0.11124005168676376,
-0.09413068741559982,
0.00985291600227356,
0.11296453326940536,
0.2278975546360016,
0.14295147359371185,
-0.34945422410964966,
-0.09639386832714081,
-0.13072046637535095,
-0.14070641994476318,
0.000991313369013369,
0.19418200850486755,
-0.07208194583654404,
0.042200230062007904,
-0.09231885522603989,
-0.06860528886318207,
-0.1738802045583725,
0.18468482792377472,
0.05891197547316551,
0.3326399624347687,
0.4182102084159851,
0.024567613378167152,
0.022959193214774132,
0.060355253517627716,
0.09392105042934418,
-0.12210831046104431,
-0.4152970016002655,
0.2814903259277344,
-0.22109602391719818,
-0.0365176722407341,
0.1737719476222992,
0.23251397907733917,
0.05259588360786438,
0.06650900095701218,
-0.2961345613002777,
-0.04205354303121567,
-0.21806582808494568,
0.4774218201637268,
-0.24875232577323914,
0.25325149297714233,
0.5675635933876038,
0.37039217352867126,
-0.12158431112766266,
-0.1645435243844986,
-0.09287306666374207,
0.11029904335737228,
0.05333106219768524,
0.178305983543396,
0.15503311157226562,
-0.07613924145698547,
-0.3044641315937042,
0.702835202217102,
-0.030735032632946968,
0.33466053009033203,
0.5488699674606323,
0.1978103071451187,
0.37328532338142395,
0.05153140053153038,
-0.33888566493988037,
-0.398971289396286,
0.15294405817985535,
0.25825124979019165,
0.15702328085899353,
0.06154946982860565,
0.17970232665538788,
-0.38030195236206055,
-0.18419307470321655,
-0.13088352978229523,
-0.2201768010854721,
-0.03604504093527794,
-0.34989485144615173,
0.05439857766032219,
0.04399833455681801,
-0.12367649376392365,
-0.13545763492584229,
-0.07758010923862457,
0.08398356288671494,
0.4269081652164459,
0.15651175379753113,
-0.0896432176232338,
-0.4259316921234131,
0.32280540466308594,
-0.12979373335838318,
0.3699963688850403,
-0.09884124249219894,
0.2729548513889313,
0.15799228847026825,
-0.005876129027456045,
0.115309938788414,
0.2723064720630646,
0.3054021894931793,
-0.2086632400751114,
0.3312804400920868,
-0.1204928383231163,
0.4135700464248657,
-0.17516428232192993,
0.03152628615498543,
0.2564971446990967,
-0.0998777225613594,
-0.26438167691230774,
0.30277514457702637,
-0.1913682073354721,
-0.4059068262577057,
0.10053367167711258,
-0.2781323492527008,
-0.004816207569092512,
-0.0812908336520195,
-0.285809189081192,
-0.2675294280052185,
-0.023779144510626793,
-0.19716066122055054,
0.10563479363918304,
0.07645203173160553,
0.26026326417922974,
0.13189300894737244,
-0.5443435907363892,
-0.10317660868167877,
0.3607993721961975,
-0.11665689945220947,
0.035150982439517975,
0.10449175536632538,
0.15882177650928497,
0.08227039873600006,
0.1861937940120697,
0.23271699249744415,
0.6167230010032654,
-0.29981258511543274,
-0.33268895745277405,
-0.24652233719825745,
-0.014261707663536072,
0.33589762449264526,
0.5567627549171448,
-0.3770555257797241,
0.0642210990190506,
0.052434056997299194,
0.08015414327383041,
-0.152466282248497,
0.28436407446861267,
0.005320908967405558,
0.05151812732219696,
-0.41080719232559204,
-0.32680803537368774,
0.5429556369781494,
0.10560653358697891,
-0.30054521560668945,
0.7662753462791443,
0.369291752576828,
-0.4027785062789917,
0.14133842289447784,
-0.0247137900441885,
1.2238188982009888,
0.2662176489830017,
0.04392445459961891,
0.06075112521648407,
-0.4458107352256775,
0.282181978225708,
0.05473332107067108,
-0.18746955692768097,
-0.14749330282211304,
-0.3034973442554474,
-0.31168559193611145,
-0.15097792446613312,
0.5685962438583374,
0.13498073816299438,
-0.15680338442325592,
0.057379674166440964,
-0.14682412147521973,
0.036137085407972336,
0.1009620726108551,
0.7443879246711731,
-0.18512675166130066,
0.04694107174873352,
0.1732177883386612,
-0.03647993132472038,
-0.04475514963269234,
0.24682341516017914,
-0.011691321618855,
-0.11139948666095734,
-0.14873389899730682,
-0.5499306321144104,
-0.07496671378612518,
-0.0680466890335083,
-0.7534857988357544,
-0.009333453141152859,
-0.379172682762146,
-0.3681636154651642,
0.5626474022865295,
0.1523166000843048,
0.05761197954416275,
0.2965058386325836,
-0.3175482153892517,
0.2552104592323303,
0.09018175303936005,
0.014981288462877274,
-0.1803240031003952,
0.11270911246538162,
0.2606050968170166,
-0.050223901867866516,
-0.061796724796295166,
-0.07836011052131653,
-0.2837238907814026,
-0.3321817219257355,
-0.02550172060728073,
0.05294807627797127,
0.3253265917301178,
-0.5745776891708374,
-0.005603825207799673,
0.012261470779776573,
0.043492864817380905,
-0.0465569831430912,
-0.03508384898304939,
0.04791245982050896,
0.0039640809409320354,
0.11444210261106491,
-0.21684138476848602,
-0.3006615936756134,
0.17907311022281647,
0.24556417763233185,
0.046370647847652435,
0.0019496144959703088,
0.526377260684967,
-0.5754944086074829,
0.028999950736761093,
-0.1034608706831932,
0.19013571739196777,
0.21816542744636536,
-0.4234998822212219,
0.1825534850358963,
0.3277738094329834,
-0.1825953722000122,
-0.10718633234500885,
0.37875229120254517,
0.2603485584259033,
0.39529433846473694,
0.16269460320472717,
-0.17149560153484344,
0.06904644519090652,
-0.08124910295009613,
-0.06928258389234543,
0.3977307379245758,
-0.20793046057224274,
-0.2025914341211319,
0.01630927249789238,
0.0052016242407262325,
-0.16160181164741516,
0.1388971358537674,
0.29774191975593567,
0.13508819043636322,
0.16765911877155304,
0.12250246107578278,
0.29407936334609985,
-0.29359400272369385,
-0.0925806388258934,
-0.14013272523880005,
-0.25130102038383484,
-0.06399810314178467,
-0.31486523151397705,
0.3228755295276642,
0.10893953591585159,
-0.3098430633544922,
0.16594363749027252,
-0.44224095344543457,
0.04852992668747902,
0.04417097941040993,
-0.03422371298074722,
0.18210089206695557,
-0.05355978012084961,
0.07244212925434113,
0.3745587468147278,
0.07420922815799713,
-0.3295554220676422,
0.3735235929489136,
-0.02874678559601307,
0.19487616419792175,
-0.17573697865009308,
0.2849721312522888,
-0.2727881073951721,
-0.08406379818916321,
-0.0693756565451622,
0.15639793872833252,
0.2392059564590454,
0.11163177341222763,
-0.16275975108146667,
0.043755579739809036,
-0.3610871732234955,
-0.13686835765838623,
0.27597710490226746,
0.45642247796058655,
-0.08459976315498352,
-0.34220418334007263,
0.3734620213508606,
0.035023707896471024,
-0.15784895420074463,
-0.13956883549690247,
-0.05066545307636261,
0.028796758502721786,
0.068007692694664,
0.224521204829216,
0.09493518620729446,
-0.1718689501285553,
0.003387277014553547,
-0.059420980513095856,
0.12577292323112488,
0.2444274127483368,
0.4302336275577545,
0.5527545213699341,
-0.18090574443340302,
-0.23690392076969147,
0.5231284499168396,
0.08974402397871017,
-0.07387173175811768,
0.024330338463187218,
-0.34174343943595886,
0.2599066495895386,
0.3151954412460327,
0.03533411771059036,
-0.21847115457057953,
-0.17085209488868713,
0.18696990609169006,
0.028661105781793594,
-0.2586023211479187,
0.21467383205890656,
0.27283555269241333,
0.2644335627555847,
-0.12385033816099167,
0.08313322812318802,
-0.06884116679430008,
0.10848025977611542,
0.10664024949073792,
-0.15967783331871033,
-0.273555725812912,
-0.16602808237075806,
-0.11072865128517151,
-0.23268064856529236,
-0.14435294270515442,
-0.23822633922100067,
0.014401674270629883,
0.12928332388401031,
-0.017813492566347122,
-0.1071004867553711,
-0.07570525258779526,
-0.05767877399921417,
0.15402550995349884,
-0.36624521017074585,
0.007056611590087414,
0.1383778303861618,
-0.037899892777204514,
0.31394118070602417,
0.5676711797714233,
0.28968191146850586,
0.12286970019340515,
0.2602410614490509,
-0.029008563607931137,
-0.016542185097932816,
-0.07196129113435745,
0.049938496202230453,
0.30276092886924744,
0.08295696973800659,
0.08570343255996704,
0.14719849824905396,
-0.0053592887707054615,
-0.0027514577377587557,
0.014540741220116615,
-0.08303426951169968,
-0.40290117263793945,
-0.3799486756324768,
0.3665388226509094,
-0.005355228204280138,
-0.36565282940864563,
0.010615452192723751,
0.08042062819004059,
0.10125693678855896,
0.16274824738502502,
0.5316869616508484,
0.18748310208320618,
-0.008082575164735317,
-0.15556924045085907,
-0.027311446145176888,
-0.01106745470315218,
0.3597071170806885,
0.26012879610061646,
0.008389784954488277,
-0.322081595659256,
-0.1413498818874359,
-0.6859130859375,
0.041616059839725494,
0.16356049478054047,
-0.16814063489437103,
0.20277944207191467,
-0.11391785740852356,
0.10699225962162018,
0.10087323188781738,
0.12307416647672653,
0.08775771409273148,
-0.07306560128927231,
0.22013871371746063,
-0.3137086033821106,
0.15250040590763092,
0.451246440410614,
0.11608342826366425,
0.05081932246685028,
-0.6453539133071899,
0.2798854410648346,
-0.024234209209680557,
-0.18625019490718842,
-0.1720726042985916,
-0.10871876031160355,
0.47859880328178406,
0.00009628212865209207,
0.7948833107948303,
0.02990657463669777,
0.3624141216278076,
0.1474061906337738,
0.1536785066127777,
0.04807605966925621,
0.09204038232564926,
-0.4106501042842865,
0.2657955586910248,
0.6018596887588501,
0.10372534394264221,
-0.3340429961681366,
0.19353362917900085,
-0.3498048782348633,
0.2718966007232666,
-0.1413116753101349,
0.2120954543352127,
-0.1843787431716919,
-0.21859873831272125,
-0.07325685769319534,
-0.07931073755025864,
-0.04537526145577431,
0.09253116697072983,
-0.1731419861316681,
0.18654322624206543,
-0.6228411197662354,
-0.5094378590583801,
0.6428913474082947,
-0.027355430647730827,
-0.18401752412319183,
-0.06268791854381561,
0.7091814279556274,
0.1909339725971222,
-0.04949895665049553,
-0.702951192855835,
0.11493368446826935,
0.4967617988586426,
0.032674726098775864,
0.03741506114602089,
0.3120485842227936,
-0.12070214748382568,
0.26006922125816345,
-0.026378072798252106,
0.4791586697101593,
0.09881632775068283,
-0.2374483048915863,
-0.12793515622615814,
-0.3826911151409149
] |
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.011216278187930584,
0.14474765956401825,
-0.03936128318309784,
0.09581967443227768,
0.0011392956366762519,
-0.21814028918743134,
0.42958196997642517,
0.111166812479496,
0.10690519958734512,
0.336961030960083,
0.11587174981832504,
-0.028122765943408012,
0.012059264816343784,
0.0387602373957634,
-0.16262391209602356,
0.1540507674217224,
-0.062163472175598145,
0.3452988564968109,
-0.13905803859233856,
0.008256799541413784,
-0.16637995839118958,
-0.005150513723492622,
0.05095653980970383,
0.05120790749788284,
0.15815919637680054,
0.09740327298641205,
0.3119136393070221,
0.1957421749830246,
-0.29750382900238037,
-0.4824240207672119,
0.300306111574173,
0.36158809065818787,
-0.06392628699541092,
0.41073307394981384,
-0.00011792379518738016,
-0.05906416475772858,
0.20769567787647247,
0.05888912454247475,
-0.5383235812187195,
-0.44554856419563293,
-0.49170559644699097,
-0.2482869029045105,
0.2102005034685135,
-0.30563104152679443,
0.023995416238904,
-0.07708925008773804,
0.018053846433758736,
-0.7141699194908142,
0.49359503388404846,
0.14259138703346252,
0.12354042381048203,
0.42477402091026306,
-0.05610010772943497,
-0.05468301847577095,
0.09778877347707748,
0.04455125331878662,
-0.14305533468723297,
0.06731768697500229,
0.2824341654777527,
0.1683519035577774,
0.35652440786361694,
0.20822536945343018,
-0.21565191447734833,
0.11108625680208206,
0.30786651372909546,
-0.2973109781742096,
0.1378888189792633,
-0.1850423663854599,
-0.01965656876564026,
0.4707060158252716,
1.0010162591934204,
0.1690530776977539,
-0.4670829474925995,
-0.17573437094688416,
-0.10484261065721512,
0.06987003237009048,
0.4081428647041321,
0.13505561649799347,
-0.11171568185091019,
0.1679631769657135,
-0.08350338041782379,
-0.03502260148525238,
-0.03274150192737579,
-0.01837165653705597,
-0.27013611793518066,
0.4630761444568634,
-0.03828052803874016,
0.23469296097755432,
-0.12698248028755188,
-0.13104498386383057,
0.17879296839237213,
-0.057079266756772995,
0.016365917399525642,
-0.008556017652153969,
-0.4005129635334015,
-0.16914847493171692,
0.15161576867103577,
-0.4226422905921936,
0.04287540912628174,
0.34948965907096863,
0.26517361402511597,
0.08397524058818817,
-0.32569631934165955,
-0.02939670905470848,
0.20814399421215057,
0.21856501698493958,
0.5727405548095703,
-0.15880952775478363,
0.47276580333709717,
-0.20717230439186096,
0.25134173035621643,
-0.09864834696054459,
-0.09850865602493286,
-0.1068103238940239,
0.042302392423152924,
0.0020769217517226934,
0.5621966123580933,
-0.23260845243930817,
-0.216497004032135,
0.05215973034501076,
-0.09580908715724945,
-0.22326704859733582,
0.05487735942006111,
0.021006211638450623,
-0.14884191751480103,
0.19686530530452728,
0.08455853909254074,
-0.05112149938941002,
0.181966632604599,
-0.10012034326791763,
-0.06201844662427902,
-0.38280850648880005,
-0.17904682457447052,
0.04723649099469185,
0.24181422591209412,
-0.4406697750091553,
0.35666534304618835,
0.098802350461483,
-0.11421629786491394,
0.04362998530268669,
0.16985009610652924,
0.09087584912776947,
-0.017240462824702263,
0.1904596984386444,
-0.05801723897457123,
0.16887885332107544,
-0.05068059265613556,
-0.22791337966918945,
-0.23908260464668274,
0.30858126282691956,
-0.39041224122047424,
-0.20456720888614655,
-0.433653861284256,
0.10971517115831375,
-0.29354268312454224,
0.06613302230834961,
-0.0812159851193428,
-0.2224244475364685,
-0.09179159998893738,
-0.08837579190731049,
0.1027790904045105,
0.17989882826805115,
-0.1870245486497879,
-0.15847104787826538,
-0.052394598722457886,
0.3964364230632782,
-0.1756318062543869,
-0.050220489501953125,
-0.1365353763103485,
0.02946351282298565,
-0.11631359905004501,
0.13945293426513672,
-0.46785303950309753,
0.12246566265821457,
-0.15089823305606842,
-0.04897027835249901,
0.30052217841148376,
-0.5388392806053162,
-0.099910207092762,
0.22336265444755554,
-0.19508174061775208,
0.23705491423606873,
0.5151137709617615,
-0.16389699280261993,
-0.16903504729270935,
-0.3403666913509369,
-0.3859294652938843,
0.2341126948595047,
0.15326029062271118,
0.010853265412151814,
-0.04284286871552467,
-0.20054656267166138,
0.1890726238489151,
-0.08271045237779617,
-0.10463931411504745,
0.14610286056995392,
0.14518795907497406,
0.028874194249510765,
0.24224862456321716,
-0.24450312554836273,
-0.13663382828235626,
-0.14471347630023956,
0.22170425951480865,
0.07626533508300781,
-0.11037517338991165,
0.03329528495669365,
-0.4837907552719116,
0.347239226102829,
0.10790809988975525,
0.24985337257385254,
-0.006244707386940718,
-0.3379673361778259,
-0.22301442921161652,
-0.03972046822309494,
-0.08059965819120407,
0.3676055669784546,
-0.05209525302052498,
0.25026196241378784,
-0.15008269250392914,
-0.15813495218753815,
-0.02978583052754402,
0.5793231725692749,
-0.1334761679172516,
0.1298862248659134,
-0.36250409483909607,
-0.116721972823143,
0.06306454539299011,
0.3549443185329437,
-0.047243744134902954,
-0.09263818711042404,
0.3039375841617584,
-0.07529734075069427,
-0.03241395205259323,
0.47379499673843384,
0.11763156950473785,
-0.16339175403118134,
-0.24931871891021729,
0.24968557059764862,
0.2226753681898117,
-0.024023130536079407,
0.11722537130117416,
0.09228824824094772,
0.33921632170677185,
-0.14249013364315033,
-0.0014664145419374108,
0.2404724657535553,
-0.026618624106049538,
0.052469927817583084,
0.08161380887031555,
-0.29378741979599,
0.020044879987835884,
-0.22238291800022125,
-0.3907832205295563,
-0.1125159040093422,
0.03812292218208313,
0.01963411457836628,
0.06806831806898117,
0.0361102931201458,
-0.18758904933929443,
-0.2777256369590759,
0.2804122567176819,
0.01812627911567688,
0.06825695931911469,
-0.0759630799293518,
0.2254897803068161,
-0.10540029406547546,
0.23983480036258698,
-0.13614845275878906,
0.3855217397212982,
0.20889928936958313,
0.05979657918214798,
-0.21616433560848236,
0.26500070095062256,
-0.28141117095947266,
0.3381405472755432,
0.07733944803476334,
-0.3269680142402649,
-0.07104210555553436,
-0.16656085848808289,
0.11196885257959366,
-0.18571241199970245,
-0.1120786964893341,
0.20625314116477966,
-0.14435166120529175,
-0.5838583111763,
-0.19484901428222656,
-0.15862971544265747,
-0.08237412571907043,
-0.036205828189849854,
-0.36826664209365845,
-0.22062386572360992,
-0.1217513233423233,
0.06480254232883453,
0.3796049952507019,
-0.13690002262592316,
0.19263118505477905,
-0.25955507159233093,
0.25059929490089417,
-0.3872121572494507,
-0.3063407838344574,
-0.20053821802139282,
0.10176866501569748,
0.025154320523142815,
0.050502434372901917,
0.27948325872421265,
-0.09044135361909866,
0.40551576018333435,
-0.14250433444976807,
0.07677924633026123,
-0.284624844789505,
-0.442441463470459,
-0.05632888525724411,
-0.1785658895969391,
0.12606488168239594,
0.043868549168109894,
-0.014208774082362652,
0.25311553478240967,
-0.3800759017467499,
-0.1869845688343048,
-0.1745900809764862,
-0.09087596833705902,
0.046482644975185394,
0.1490795910358429,
-0.24065610766410828,
-0.09024262428283691,
-0.17522934079170227,
-0.015253730118274689,
-0.21595096588134766,
0.04407591000199318,
-0.003468182636424899,
0.29132524132728577,
0.5777442455291748,
-0.10857150703668594,
-0.09264698624610901,
0.04406411945819855,
0.2822093665599823,
-0.24131478369235992,
-0.4220578074455261,
0.13616804778575897,
-0.12825751304626465,
-0.10119294375181198,
0.1170816570520401,
0.21955902874469757,
0.12987178564071655,
0.12452147901058197,
-0.3237338662147522,
-0.09016571193933487,
-0.2222663313150406,
0.49534907937049866,
-0.13171982765197754,
0.2276005893945694,
0.4823288917541504,
0.3495175242424011,
-0.13129110634326935,
-0.13522684574127197,
-0.11028288304805756,
0.006119203753769398,
-0.0955965518951416,
0.11600979417562485,
0.14974133670330048,
-0.17847421765327454,
-0.21788376569747925,
0.5322819352149963,
-0.008103393949568272,
0.17952287197113037,
0.4474467635154724,
0.2515380382537842,
0.4841233193874359,
-0.05539283901453018,
-0.3686909079551697,
-0.23759517073631287,
0.16696076095104218,
0.3007071316242218,
0.36145299673080444,
-0.0288802832365036,
0.17659300565719604,
-0.4512161910533905,
-0.04204099252820015,
-0.16215237975120544,
-0.22785507142543793,
-0.15091045200824738,
-0.28371620178222656,
0.033421069383621216,
0.1741851419210434,
0.02327430620789528,
-0.15742318332195282,
-0.11085543036460876,
-0.06612550467252731,
0.31866273283958435,
0.1897306740283966,
-0.13056106865406036,
-0.5399689674377441,
0.3867029547691345,
-0.11502274125814438,
0.3552759289741516,
-0.06913381814956665,
0.49529707431793213,
0.1704869419336319,
0.0651925578713417,
0.025694338604807854,
0.2471555769443512,
0.38817718625068665,
-0.21312716603279114,
0.25394493341445923,
-0.10538747906684875,
0.2757466733455658,
-0.2027961015701294,
-0.021842852234840393,
0.11680030077695847,
-0.16496708989143372,
-0.12917295098304749,
0.26505494117736816,
-0.40183499455451965,
-0.3482813835144043,
0.1696348339319229,
-0.2113068699836731,
0.032765403389930725,
-0.2741827368736267,
-0.29638925194740295,
-0.32595038414001465,
-0.010590868070721626,
-0.26701876521110535,
0.030236463993787766,
0.17806753516197205,
0.10673308372497559,
0.07052857428789139,
-0.45687809586524963,
0.015222914516925812,
0.49617132544517517,
0.011747941374778748,
-0.17528289556503296,
0.2310420423746109,
0.37311190366744995,
0.07720187306404114,
0.2146688550710678,
0.20252613723278046,
0.6153802871704102,
-0.31132274866104126,
-0.36514297127723694,
-0.24682572484016418,
0.10750586539506912,
0.20367702841758728,
0.625235915184021,
-0.12571869790554047,
0.055585827678442,
0.01826656423509121,
0.017413944005966187,
-0.14805731177330017,
0.23118902742862701,
0.06951919198036194,
0.007526278495788574,
-0.5689131617546082,
-0.5124381184577942,
0.4097725450992584,
0.19629187881946564,
-0.31640592217445374,
0.5638613700866699,
0.22107304632663727,
-0.37775734066963196,
0.23637457191944122,
-0.06857260316610336,
1.184112787246704,
0.15113139152526855,
-0.022288884967565536,
0.10869248956441879,
-0.2743471562862396,
0.4086304008960724,
-0.019022617489099503,
-0.15353268384933472,
-0.10129234939813614,
-0.3914804756641388,
-0.24325695633888245,
-0.09747056663036346,
0.492329865694046,
0.13952916860580444,
-0.08094319701194763,
0.19369126856327057,
-0.1467929184436798,
0.31079497933387756,
0.16490234434604645,
0.8204009532928467,
-0.19684095680713654,
-0.043244898319244385,
0.1305493265390396,
0.0713709220290184,
-0.06988266110420227,
0.09808910638093948,
-0.06042243167757988,
-0.0893915444612503,
0.00031697883969172835,
-0.5520803332328796,
-0.04321429505944252,
-0.05954279005527496,
-0.5215198397636414,
-0.004328522365540266,
-0.3476558327674866,
-0.13482831418514252,
0.6052547693252563,
-0.03148288279771805,
0.22301608324050903,
0.48707786202430725,
-0.3037202060222626,
0.17407231032848358,
0.026037342846393585,
0.10712959617376328,
-0.10105698555707932,
0.08856666088104248,
0.2871973216533661,
0.0180475115776062,
-0.10292433947324753,
-0.07175539433956146,
-0.2084175944328308,
-0.09269484877586365,
-0.1091298833489418,
0.051661256700754166,
0.29604610800743103,
-0.6112050414085388,
0.13217419385910034,
0.1655409336090088,
0.14648467302322388,
-0.13147948682308197,
0.06165119633078575,
-0.0469367653131485,
-0.11232151091098785,
0.20899249613285065,
-0.2543318569660187,
-0.3418780565261841,
-0.035312507301568985,
0.31567859649658203,
0.11831314116716385,
-0.04682892560958862,
0.32478567957878113,
-0.43403491377830505,
-0.014659510925412178,
-0.12396987527608871,
0.04438876360654831,
0.08202086389064789,
-0.3374634385108948,
0.130494624376297,
0.3694280683994293,
-0.1517459899187088,
-0.11114227026700974,
0.4006415903568268,
0.26463279128074646,
0.23437432944774628,
0.2556477189064026,
-0.07406450808048248,
0.19052298367023468,
-0.08578523248434067,
-0.027128297835588455,
0.3668232560157776,
-0.07000726461410522,
-0.08510961383581161,
-0.231647327542305,
0.1306426227092743,
-0.2717592120170593,
-0.06677541881799698,
0.24944761395454407,
0.1456218808889389,
0.1512949913740158,
0.0332748182117939,
0.2019607126712799,
-0.30448102951049805,
0.00858109351247549,
-0.13796865940093994,
-0.2515733242034912,
-0.16641347110271454,
-0.27677121758461,
0.26861488819122314,
0.1358596533536911,
-0.2527414858341217,
0.13299833238124847,
-0.3781421184539795,
-0.03503242880105972,
-0.05030156299471855,
0.23887506127357483,
0.35194167494773865,
-0.04651280492544174,
0.037693463265895844,
0.3187007009983063,
0.2507345378398895,
-0.24511942267417908,
0.47445791959762573,
-0.05692032352089882,
0.1913251280784607,
-0.10511872172355652,
0.32281020283699036,
-0.21037669479846954,
-0.024967757984995842,
-0.03264758735895157,
0.21231214702129364,
0.21477581560611725,
0.11017844825983047,
-0.11198385804891586,
-0.005164939910173416,
-0.2259211391210556,
0.04776054248213768,
0.23609353601932526,
0.44043463468551636,
-0.016610724851489067,
-0.3979748785495758,
0.39061811566352844,
0.1331167221069336,
-0.2027977705001831,
-0.14773550629615784,
-0.1319349855184555,
0.09334974735975266,
0.13929472863674164,
0.38620999455451965,
0.2862527072429657,
-0.17669415473937988,
-0.027504807338118553,
-0.13041247427463531,
0.33847901225090027,
0.28666603565216064,
0.45265454053878784,
0.5592707991600037,
-0.1542937010526657,
-0.18547390401363373,
0.5126248002052307,
0.006869514472782612,
-0.14193804562091827,
0.0054708863608539104,
-0.25695163011550903,
0.37934771180152893,
0.27485722303390503,
0.12082133442163467,
-0.1378641426563263,
-0.15116968750953674,
0.3385254442691803,
0.12946559488773346,
-0.23758520185947418,
0.18397966027259827,
0.15953314304351807,
0.0375090166926384,
-0.25839611887931824,
0.12178434431552887,
-0.19168438017368317,
0.05098287761211395,
0.05328415334224701,
-0.0539395809173584,
-0.35884031653404236,
-0.1637406200170517,
-0.1485702097415924,
-0.22008322179317474,
-0.13512930274009705,
-0.3176751136779785,
0.04082045704126358,
0.06589493155479431,
-0.1486794650554657,
-0.250556617975235,
-0.1769745647907257,
-0.005816511809825897,
0.1997227519750595,
-0.38736531138420105,
0.05021398514509201,
0.17092067003250122,
-0.09374818205833435,
0.26962095499038696,
0.6034391522407532,
0.34464773535728455,
0.24890901148319244,
0.2829260230064392,
-0.058962382376194,
-0.013646185398101807,
0.007322829216718674,
-0.06374727934598923,
0.4808591604232788,
-0.07539767771959305,
0.19816216826438904,
0.21643327176570892,
0.0723053365945816,
-0.06276694685220718,
-0.06303555518388748,
-0.07113957405090332,
-0.4052000641822815,
-0.5685387849807739,
0.535614550113678,
0.021831845864653587,
-0.2458173781633377,
0.021223686635494232,
0.17533133924007416,
0.045251451432704926,
0.23396795988082886,
0.5319799780845642,
0.24752682447433472,
0.0989462286233902,
-0.2202383577823639,
0.03029721975326538,
0.04217231646180153,
0.32063955068588257,
0.20866641402244568,
-0.039039984345436096,
-0.355353444814682,
0.03357039391994476,
-0.6624811291694641,
0.12595172226428986,
0.05348258838057518,
-0.05215461924672127,
0.179883673787117,
-0.22149455547332764,
0.1530078649520874,
0.15592966973781586,
-0.11511298269033432,
-0.0013091550208628178,
-0.08221708238124847,
0.14745071530342102,
-0.2808153033256531,
0.18856076896190643,
0.31350696086883545,
-0.03488084301352501,
0.07357289642095566,
-0.6237812042236328,
0.2831667959690094,
-0.09090625494718552,
-0.1089206412434578,
-0.19772180914878845,
0.06776424497365952,
0.5854007601737976,
-0.1355743706226349,
0.6277523040771484,
0.18130140006542206,
0.4258826673030853,
0.17721398174762726,
0.09656054526567459,
-0.1111026480793953,
-0.03801027312874794,
-0.41370081901550293,
0.2449435293674469,
0.4392445385456085,
-0.10913913697004318,
-0.1369023323059082,
0.060005802661180496,
-0.2991528809070587,
0.3612942099571228,
-0.05260594189167023,
0.26489341259002686,
-0.2576388120651245,
-0.25020095705986023,
-0.1833871454000473,
-0.09395819902420044,
-0.022564850747585297,
0.1579705774784088,
-0.1462632566690445,
0.13577350974082947,
-0.48039576411247253,
-0.5864163637161255,
0.5395385026931763,
-0.10784833133220673,
-0.1672336757183075,
-0.24725207686424255,
0.649089515209198,
0.03947950899600983,
-0.2027115523815155,
-0.5274103283882141,
0.14776454865932465,
0.5112929344177246,
-0.062411896884441376,
0.04295675456523895,
0.3808651566505432,
-0.12128493934869766,
0.1125437393784523,
-0.06276477128267288,
0.146963432431221,
0.01512418407946825,
-0.3714040219783783,
0.01763823628425598,
-0.33594366908073425
] |
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.23256562650203705,
-0.10259638726711273,
0.05944845825433731,
0.4710071384906769,
0.09914454072713852,
0.09832854568958282,
0.0017996396636590362,
0.5494820475578308,
-0.020167460665106773,
0.13166968524456024,
-0.11764643341302872,
0.0032898883800953627,
-0.1183149442076683,
0.09130851924419403,
-0.08515108376741409,
0.10361088812351227,
-0.18397872149944305,
0.14324438571929932,
-0.22360607981681824,
0.08370441198348999,
-0.16607089340686798,
0.2510775029659271,
-0.29405277967453003,
-0.13617579638957977,
-0.2839498817920685,
-0.02731580100953579,
-0.26512977480888367,
0.2377937287092209,
-0.25572624802589417,
-0.4160163402557373,
0.1758905053138733,
-0.39878755807876587,
-0.0372200608253479,
0.5550350546836853,
-0.00011980187991866842,
0.053338248282670975,
0.2946432828903198,
-0.22809751331806183,
-0.13074974715709686,
-0.1020403504371643,
-0.49443319439888,
-0.3940508961677551,
-0.1452360451221466,
-0.14626367390155792,
0.19269952178001404,
-0.12832440435886383,
0.05088835209608078,
-0.2793242633342743,
0.45934078097343445,
0.4411788880825043,
0.1552281379699707,
0.39781656861305237,
0.24116164445877075,
0.03716132789850235,
0.365075945854187,
-0.22199206054210663,
-0.13181056082248688,
-0.036206599324941635,
0.032693322747945786,
0.04052415117621422,
0.08063951879739761,
0.11726803332567215,
0.010847607627511024,
0.2087123543024063,
-0.0005468460731208324,
-0.04086637124419212,
0.22869116067886353,
-0.23625357449054718,
0.15349997580051422,
0.4934613108634949,
0.6223926544189453,
-0.13697995245456696,
-0.3544658422470093,
-0.35869836807250977,
-0.4166821837425232,
0.07304898649454117,
0.28208819031715393,
0.45642757415771484,
0.020783159881830215,
0.2088506817817688,
-0.39208540320396423,
0.06279739737510681,
0.08873909711837769,
0.10101873427629471,
-0.2197207510471344,
0.17379721999168396,
-0.061373114585876465,
0.0936700776219368,
0.03374602273106575,
0.12052243202924728,
0.2228565514087677,
-0.12987087666988373,
-0.05526808276772499,
0.1303766667842865,
-0.24707075953483582,
-0.039997685700654984,
0.04658357426524162,
-0.17194637656211853,
0.3725026845932007,
0.31575658917427063,
0.33070969581604004,
-0.22534091770648956,
-0.27929192781448364,
-0.02605433389544487,
0.10212957113981247,
0.486409991979599,
-0.0030220579355955124,
0.18113510310649872,
-0.09942591190338135,
0.15344184637069702,
0.08419039845466614,
-0.03832383081316948,
-0.0627073347568512,
-0.3573574721813202,
0.0782201811671257,
0.05192897841334343,
0.5506392121315002,
-0.3137626349925995,
-0.563885509967804,
0.1355632245540619,
-0.2717958986759186,
-0.2499684989452362,
-0.2926042675971985,
-0.059870269149541855,
-0.3987963795661926,
0.21012955904006958,
0.16259588301181793,
-0.15783736109733582,
-0.31497645378112793,
-0.3888359069824219,
-0.27445903420448303,
-0.022704225033521652,
-0.18766817450523376,
0.12192472815513611,
0.0013914230512455106,
-0.13141517341136932,
0.4226858615875244,
-0.07922995835542679,
-0.04053535684943199,
-0.2938431203365326,
0.16571533679962158,
0.011817884631454945,
0.05183672532439232,
0.16753055155277252,
-0.206948921084404,
0.12241414934396744,
0.06869708001613617,
0.09147676080465317,
-0.28620439767837524,
0.310595840215683,
-0.2906441390514374,
-0.40937185287475586,
-0.13818395137786865,
0.10505139827728271,
-0.3705904185771942,
-0.16087476909160614,
0.3073703944683075,
-0.059906985610723495,
0.33313360810279846,
-0.12109604477882385,
-0.08745165169239044,
-0.17150302231311798,
-0.14893391728401184,
-0.1385403424501419,
0.1361488252878189,
0.4009011685848236,
-0.2815040647983551,
-0.18706119060516357,
0.20096692442893982,
-0.10673785954713821,
0.26570600271224976,
0.44194215536117554,
0.03831133618950844,
0.10779611766338348,
-0.269706130027771,
0.19941562414169312,
0.10355369001626968,
-0.32225003838539124,
-0.6370266675949097,
0.3166927993297577,
-0.06143862009048462,
0.1890931874513626,
0.11317876726388931,
-0.29983019828796387,
0.0997241735458374,
-0.11335583031177521,
-0.10748539865016937,
0.1425454467535019,
-0.18553949892520905,
0.06538888067007065,
-0.6042559146881104,
-0.7404740452766418,
0.4050542414188385,
-0.015220548957586288,
0.21996302902698517,
-0.20098264515399933,
0.0258028581738472,
0.20237258076667786,
0.4867918789386749,
-0.006881032604724169,
0.008240148425102234,
0.18329526484012604,
0.1684485524892807,
0.02000989019870758,
-0.02628433145582676,
-0.3034960627555847,
-0.1270771324634552,
0.2578175961971283,
-0.11896448582410812,
-0.0252109095454216,
0.23952904343605042,
-0.12848983705043793,
-0.5201497077941895,
-0.2797640562057495,
-0.027437318116426468,
-0.2890126407146454,
-0.0011980043491348624,
0.05373359099030495,
0.33149832487106323,
0.0704440250992775,
0.10067189484834671,
0.3630117177963257,
0.058704178780317307,
0.16227936744689941,
-0.38864487409591675,
0.211638405919075,
-0.04193061962723732,
-0.1590767651796341,
0.14747154712677002,
-0.04118983820080757,
0.15783962607383728,
-0.1788160353899002,
-0.36455264687538147,
0.6570297479629517,
0.13834156095981598,
0.027809204533696175,
-0.02063388004899025,
0.17614880204200745,
0.23897938430309296,
-0.23260994255542755,
0.13618484139442444,
0.3155075013637543,
-0.03670274093747139,
-0.035833071917295456,
0.03574663773179054,
-0.09578348696231842,
0.11017904430627823,
-0.02702643908560276,
-0.06295837461948395,
0.0031614615581929684,
-0.06770198792219162,
-0.20160223543643951,
-0.09967223554849625,
-0.11949790269136429,
0.07884915173053741,
-0.052922025322914124,
-0.18256479501724243,
0.07386790961027145,
0.1595279425382614,
-0.14738699793815613,
0.7876150012016296,
-0.026508629322052002,
-0.08109106123447418,
0.26765456795692444,
-0.2830885648727417,
-0.12855705618858337,
-0.18377992510795593,
0.13330620527267456,
0.5281820297241211,
0.21161745488643646,
0.19798265397548676,
0.22718168795108795,
0.059582196176052094,
-0.09671645611524582,
0.1486262083053589,
0.27888205647468567,
0.2119770050048828,
0.3014920949935913,
0.025364968925714493,
0.078274667263031,
-0.18822985887527466,
0.10177526623010635,
0.11624278128147125,
0.3736379146575928,
-0.4455081820487976,
-0.1506471186876297,
-0.4993298053741455,
0.016702497377991676,
-0.2890401780605316,
0.15198244154453278,
-0.19536997377872467,
-0.2340979427099228,
-0.056942641735076904,
0.057825397700071335,
-0.019075382500886917,
0.22007887065410614,
-0.1844456046819687,
0.17441299557685852,
0.17794373631477356,
0.22219647467136383,
0.08345218002796173,
-0.0005310717970132828,
-0.5165874361991882,
0.01945441961288452,
0.3351319432258606,
-0.24981383979320526,
0.41447553038597107,
-0.5614911913871765,
-0.0921599492430687,
-0.20166146755218506,
-0.29702073335647583,
-0.08936358988285065,
0.008984509855508804,
0.1129097044467926,
0.2927730679512024,
0.2110995203256607,
0.024991126731038094,
-0.022640101611614227,
0.10414335876703262,
-0.32057374715805054,
-0.27135327458381653,
-0.0989820808172226,
0.09731227159500122,
0.26612892746925354,
-0.06413546949625015,
-0.5627803206443787,
-0.21637019515037537,
-0.27572059631347656,
0.32669955492019653,
0.1139722689986229,
0.20298124849796295,
0.09259284287691116,
0.0694471150636673,
0.10503939539194107,
-0.05235549062490463,
0.11608538031578064,
-0.2542547285556793,
-0.5217092037200928,
0.31885090470314026,
-0.0026786616072058678,
-0.3333183825016022,
-0.007014829199761152,
0.15113765001296997,
-0.03922833502292633,
0.025585422292351723,
-0.6288368105888367,
-0.24205589294433594,
-0.4020480513572693,
-0.041622456163167953,
-0.15226233005523682,
0.27672597765922546,
0.4846801161766052,
-0.030819319188594818,
-0.06325555592775345,
-0.15229885280132294,
-0.34404221177101135,
-0.023711644113063812,
0.1624840646982193,
0.621006965637207,
-0.10532506555318832,
0.1852700263261795,
0.40560948848724365,
0.4629569351673126,
0.5385029911994934,
0.04814816638827324,
-0.013694803230464458,
-0.03213636949658394,
0.10836397856473923,
-0.11047904938459396,
-0.04011627659201622,
0.2920776307582855,
-0.1999642252922058,
0.03563781827688217,
0.2973734438419342,
0.13559141755104065,
0.1561633050441742,
-0.0030651274137198925,
-0.0703076496720314,
-0.47797152400016785,
-0.20078624784946442,
-0.024593710899353027,
-0.11114107072353363,
0.18959257006645203,
0.18815046548843384,
0.0732359066605568,
-0.24348104000091553,
-0.19456294178962708,
0.159856379032135,
-0.004661748185753822,
-0.1435016542673111,
0.02076575718820095,
0.06711949408054352,
0.35674744844436646,
-0.26261040568351746,
0.3809080123901367,
0.13413317501544952,
0.2630772888660431,
0.14869292080402374,
-0.23844791948795319,
0.114248126745224,
0.00539353908970952,
0.5108362436294556,
-0.07777159661054611,
-0.07126238942146301,
0.09501020610332489,
0.07253921031951904,
-0.40391936898231506,
-0.3115311563014984,
-0.18367095291614532,
0.03344868868589401,
0.5596082806587219,
0.04538143798708916,
-0.4185118079185486,
0.05580749362707138,
0.30972498655319214,
0.4309922754764557,
-0.18977129459381104,
-0.028550995513796806,
-0.1574668288230896,
-0.40260353684425354,
-0.3548054099082947,
-0.12882153689861298,
0.06789693236351013,
0.2978074252605438,
-0.09183505177497864,
-0.06463145464658737,
-0.140372171998024,
-0.1978236585855484,
0.19653795659542084,
-0.12222173064947128,
0.28375622630119324,
-0.002483370481058955,
0.31478607654571533,
0.2665964365005493,
0.35225504636764526,
0.27157822251319885,
0.5941632390022278,
0.000002167839284084039,
-0.22874221205711365,
-0.050626639276742935,
-0.061359766870737076,
-0.23775753378868103,
0.33246558904647827,
0.07151354849338531,
-0.34140563011169434,
0.05680083483457565,
0.24742291867733002,
-0.1786889284849167,
0.31859099864959717,
0.4256514608860016,
-0.06355000287294388,
-0.44009122252464294,
-0.35242894291877747,
0.39588531851768494,
0.21192942559719086,
-0.05023835226893425,
0.504023015499115,
-0.049539532512426376,
-0.1787898689508438,
-0.055766619741916656,
-0.04235794395208359,
1.1023483276367188,
0.1564745306968689,
-0.10774984210729599,
0.25274136662483215,
-0.47043803334236145,
0.25937697291374207,
-0.22910884022712708,
0.13411182165145874,
-0.2876507639884949,
-0.5424713492393494,
0.021385783329606056,
-0.28120121359825134,
0.24678532779216766,
-0.04316803812980652,
-0.22380372881889343,
0.16705501079559326,
-0.010718939825892448,
0.059570733457803726,
0.15068940818309784,
0.3264891803264618,
-0.27931252121925354,
0.12475680559873581,
0.1668466329574585,
0.07916034758090973,
-0.12364095449447632,
0.4728938341140747,
-0.07793270796537399,
-0.1369106024503708,
-0.1266552060842514,
-0.1621519774198532,
-0.6035356521606445,
0.05485738441348076,
-0.37961524724960327,
0.24488914012908936,
0.0042181359604001045,
0.05063052847981453,
0.03254258632659912,
0.0662543997168541,
0.259113073348999,
0.0856592133641243,
-0.3663949966430664,
0.2365218549966812,
-0.07259980589151382,
0.13240738213062286,
0.24620945751667023,
0.011353892274200916,
0.19802291691303253,
-0.12489067018032074,
-0.2756642997264862,
0.047656457871198654,
-0.1618163287639618,
-0.10357110947370529,
0.004522865638136864,
-0.17501069605350494,
0.3070135712623596,
-0.623824417591095,
-0.0981970950961113,
-0.05586874485015869,
0.12886488437652588,
-0.21354487538337708,
0.0828685387969017,
0.19961336255073547,
-0.10792683809995651,
0.4750552177429199,
0.014079693704843521,
-0.4118833541870117,
-0.16993796825408936,
0.4765078127384186,
0.06739530712366104,
0.04159485548734665,
0.4440052807331085,
-0.09668463468551636,
-0.030206358060240746,
-0.06091080605983734,
0.4412078559398651,
-0.08310388028621674,
-0.47427013516426086,
0.22741219401359558,
-0.33019009232521057,
0.3447000980377197,
0.02100147120654583,
0.35654416680336,
0.5420543551445007,
0.43919065594673157,
-0.013571763411164284,
-0.20463646948337555,
0.015899719670414925,
0.022921733558177948,
0.05012907832860947,
0.4237337112426758,
-0.09234768152236938,
0.408505916595459,
0.004139306489378214,
-0.027692081406712532,
-0.23741428554058075,
0.3453593850135803,
-0.04798111319541931,
0.04063413664698601,
0.14095231890678406,
-0.03423347324132919,
0.14496541023254395,
-0.025378959253430367,
-0.057812318205833435,
0.25469696521759033,
-0.1896176040172577,
-0.12972263991832733,
-0.18773525953292847,
0.21850092709064484,
0.111317478120327,
-0.1485716700553894,
0.1090274453163147,
-0.04808845743536949,
0.09649881720542908,
-0.0651797503232956,
0.02039835788309574,
0.08262240886688232,
-0.061479080468416214,
0.299070805311203,
0.04645560309290886,
-0.15820202231407166,
-0.032258711755275726,
0.19642187654972076,
-0.2496594786643982,
0.33232805132865906,
0.1313193291425705,
0.3523200452327728,
0.1779557168483734,
0.003950847312808037,
-0.08669288456439972,
0.005066280718892813,
0.03303235024213791,
0.08431746065616608,
0.2701559364795685,
-0.2523285150527954,
0.09544508904218674,
0.32073694467544556,
0.12937815487384796,
0.36992281675338745,
-0.16707706451416016,
-0.1981523483991623,
0.25006401538848877,
0.18450291454792023,
-0.28060731291770935,
0.027438657358288765,
0.48265397548675537,
0.07920423895120621,
-0.061439499258995056,
0.12193844467401505,
0.051523420959711075,
-0.04039705917239189,
-0.18601806461811066,
0.12561273574829102,
0.3057820200920105,
0.17066791653633118,
0.3275686502456665,
0.7761432528495789,
-0.19074587523937225,
-0.044123247265815735,
0.03297049552202225,
-0.2791091203689575,
0.22208160161972046,
0.17889109253883362,
-0.16576933860778809,
0.3593079447746277,
-0.16198591887950897,
0.33047863841056824,
-0.29007402062416077,
-0.4505562484264374,
-0.0805424228310585,
0.14380891621112823,
-0.08444399386644363,
0.13133032619953156,
0.07868142426013947,
0.4334906339645386,
-0.20612208545207977,
-0.03494493290781975,
-0.44426995515823364,
0.2482869029045105,
0.06692146509885788,
0.006411395035684109,
0.06860267370939255,
-0.20481473207473755,
-0.1650114208459854,
0.09234397858381271,
-0.06433556228876114,
-0.016690311953425407,
0.32752272486686707,
-0.14246532320976257,
-0.36978161334991455,
-0.4538445770740509,
-0.2162761092185974,
-0.08225782215595245,
0.211642324924469,
-0.44176170229911804,
0.11986932903528214,
0.10424695909023285,
-0.29830145835876465,
0.014446502551436424,
0.669033944606781,
0.3910437822341919,
0.22214117646217346,
-0.008295145817101002,
-0.08402042090892792,
0.13981464505195618,
0.15869833528995514,
0.09231052547693253,
0.30127573013305664,
0.09067457914352417,
-0.1768057495355606,
0.3088204562664032,
0.02994982898235321,
-0.08843351900577545,
0.07007037103176117,
-0.36394432187080383,
-0.21193130314350128,
-0.4602621793746948,
0.23094521462917328,
-0.13861775398254395,
0.08855710178613663,
-0.07250256836414337,
0.04637182131409645,
-0.3338872790336609,
-0.07660580426454544,
0.12689287960529327,
-0.03443634882569313,
0.24613504111766815,
0.09628020972013474,
0.024332193657755852,
-0.30298665165901184,
0.215433269739151,
0.45725181698799133,
-0.23801976442337036,
-0.12723352015018463,
-0.2411002814769745,
-0.5297262668609619,
0.19886711239814758,
-0.14531129598617554,
-0.22237902879714966,
-0.012874229811131954,
0.2722306549549103,
-0.24685737490653992,
0.031096408143639565,
0.4103516638278961,
0.2545851469039917,
-0.13202424347400665,
0.16706044971942902,
-0.37411075830459595,
-0.10490316152572632,
-0.12440510094165802,
0.06319691985845566,
0.17045104503631592,
-0.2594740688800812,
0.23766683042049408,
-0.0988563820719719,
-0.040368761867284775,
-0.1549973040819168,
-0.03533882647752762,
0.05981616675853729,
-0.06584423780441284,
0.4095592498779297,
0.37406396865844727,
0.28543877601623535,
0.037070758640766144,
-0.14655174314975739,
-0.27086636424064636,
-0.17622146010398865,
-0.18874792754650116,
0.4648066461086273,
0.0033470955677330494,
0.2654680907726288,
-0.15924231708049774,
0.030547717586159706,
-0.1501215696334839,
0.5124751925468445,
0.12082476913928986,
-0.020225415006279945,
-0.24669349193572998,
-0.2782556116580963,
-0.05991735681891441,
-0.07594720274209976,
0.42664211988449097,
0.27667972445487976,
-0.1649906188249588,
0.106137715280056,
-0.02580450475215912,
-0.41283494234085083,
0.4644293487071991,
0.008162001147866249,
-0.06493621319532394,
-0.18165916204452515,
0.23981207609176636,
0.31711912155151367,
-0.22817108035087585,
-0.45769011974334717,
0.04208521172404289,
0.6015405654907227,
-0.032609887421131134,
-0.10801264643669128,
0.16676627099514008,
-0.07205191999673843,
-0.06101597100496292,
0.08577297627925873,
0.15625515580177307,
-0.013809571042656898,
-0.3180498778820038,
0.4304465055465698,
-0.06330911815166473
] |
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.3607833683490753,
-0.23985446989536285,
0.05169723555445671,
0.4607088267803192,
-0.045627422630786896,
0.13274216651916504,
0.06605304777622223,
0.6086550354957581,
0.14397095143795013,
0.1374795138835907,
-0.22836652398109436,
0.12169294059276581,
-0.05118685960769653,
0.2408803403377533,
0.017350859940052032,
0.05545225739479065,
-0.12886787950992584,
0.2090868353843689,
0.03275245800614357,
0.09640055149793625,
-0.24073156714439392,
0.16521459817886353,
-0.3307676315307617,
-0.08779358863830566,
-0.09194263815879822,
0.04680514335632324,
-0.07857252657413483,
0.25251883268356323,
-0.14239607751369476,
-0.3720369338989258,
0.3101978302001953,
-0.32098159193992615,
0.052662819623947144,
0.4554579257965088,
-0.00012362563575152308,
0.05841180309653282,
0.300246924161911,
-0.24924221634864807,
-0.1643611192703247,
-0.020218180492520332,
-0.4952321946620941,
-0.45829638838768005,
-0.1188492476940155,
-0.11415032297372818,
0.18496252596378326,
-0.05215829983353615,
0.09237948060035706,
-0.23818887770175934,
0.3523257076740265,
0.17602361738681793,
0.10760826617479324,
0.2688063085079193,
0.1909797042608261,
-0.014178727753460407,
0.3995004892349243,
-0.2885003387928009,
-0.20180107653141022,
-0.02603781782090664,
0.20259642601013184,
0.23452474176883698,
-0.000449975865194574,
0.20511963963508606,
0.015543033368885517,
0.31760668754577637,
0.12301812320947647,
-0.08524524420499802,
0.17345134913921356,
-0.2235962301492691,
0.17657484114170074,
0.46329912543296814,
0.711663007736206,
-0.2908664047718048,
-0.3333328366279602,
-0.4549489915370941,
-0.4818347692489624,
-0.07679899781942368,
0.3402116894721985,
0.3721660375595093,
0.011020373553037643,
0.28357067704200745,
-0.2383943796157837,
-0.014435536228120327,
0.08676791936159134,
0.024805650115013123,
-0.2652612328529358,
0.16603854298591614,
-0.06558674573898315,
0.052552480250597,
-0.005364250857383013,
0.13843537867069244,
0.2647067904472351,
-0.07358711212873459,
0.05483073741197586,
0.17592239379882812,
-0.2408611923456192,
-0.074037566781044,
0.016543416306376457,
-0.23525790870189667,
0.3727191686630249,
0.33543139696121216,
0.36359530687332153,
-0.19546395540237427,
-0.30612799525260925,
-0.012784764170646667,
0.2020253986120224,
0.46319499611854553,
-0.13913750648498535,
0.04027732461690903,
-0.17405779659748077,
0.05758385360240936,
0.11164991557598114,
-0.10035554319620132,
-0.016987288370728493,
-0.3424653708934784,
0.1643759310245514,
0.06348544359207153,
0.6322451233863831,
-0.3608761131763458,
-0.5638147592544556,
0.0620398074388504,
-0.22433370351791382,
-0.24493111670017242,
-0.28714028000831604,
-0.07887263596057892,
-0.30875879526138306,
0.3445998728275299,
0.10833386331796646,
-0.141049325466156,
-0.2508392333984375,
-0.4097025394439697,
-0.2513112425804138,
-0.12820161879062653,
-0.14434406161308289,
0.04154890030622482,
0.031938664615154266,
-0.13854767382144928,
0.29200246930122375,
0.004401942249387503,
-0.04839057847857475,
-0.18852727115154266,
0.17729562520980835,
-0.04952596500515938,
0.03959176689386368,
0.2417324036359787,
-0.06378443539142609,
0.21645818650722504,
0.031172579154372215,
0.12612168490886688,
-0.30011045932769775,
0.34341809153556824,
-0.3207670748233795,
-0.31995877623558044,
-0.09843742102384567,
0.07814667373895645,
-0.22465646266937256,
-0.16777051985263824,
0.10533323884010315,
-0.04712836071848869,
0.36712995171546936,
-0.22513240575790405,
-0.09916242212057114,
-0.12120165675878525,
-0.12453064322471619,
-0.10965151339769363,
0.04496920481324196,
0.534920334815979,
-0.4528936445713043,
-0.1801815629005432,
0.18557584285736084,
-0.14250387251377106,
0.37326204776763916,
0.3822270631790161,
0.0877133458852768,
0.02404455654323101,
-0.23599551618099213,
0.08255325257778168,
0.020386317744851112,
-0.4213363230228424,
-0.8024862408638,
0.4292293190956116,
-0.06396882981061935,
0.19615066051483154,
0.15683355927467346,
-0.14465397596359253,
0.11708671599626541,
-0.1508541703224182,
0.05760519206523895,
0.17177574336528778,
-0.20160964131355286,
0.044233232736587524,
-0.629065752029419,
-0.8196588158607483,
0.3851357698440552,
-0.025481270626187325,
0.2239650934934616,
-0.10562390089035034,
0.025000110268592834,
0.27329084277153015,
0.36887118220329285,
0.10132359713315964,
0.0660170391201973,
0.16582368314266205,
0.003907674457877874,
0.09549057483673096,
-0.04453577846288681,
-0.2933860719203949,
-0.3191501498222351,
0.2778996527194977,
-0.2501990795135498,
-0.1287553757429123,
0.30109959840774536,
-0.14114251732826233,
-0.5185486674308777,
-0.2888205647468567,
-0.08627957850694656,
-0.0926859974861145,
-0.031553640961647034,
0.03899041563272476,
0.22520814836025238,
0.035162877291440964,
0.029835326597094536,
0.3739857077598572,
0.11673480272293091,
0.1384655088186264,
-0.2917841374874115,
0.12454114109277725,
-0.03965017572045326,
-0.016622386872768402,
0.003760377876460552,
-0.1315946877002716,
0.18951202929019928,
-0.11182769387960434,
-0.3834509253501892,
0.6283046007156372,
-0.0011393610620871186,
0.11504195630550385,
-0.09077630937099457,
-0.013246116228401661,
0.2655426263809204,
-0.18315184116363525,
0.15169532597064972,
0.3305775225162506,
-0.03886750712990761,
-0.11388257890939713,
0.03777400404214859,
-0.1808827519416809,
0.12144783139228821,
0.015626579523086548,
-0.1123449057340622,
0.012070046737790108,
-0.0592518150806427,
-0.16833923757076263,
0.05203251168131828,
-0.14709903299808502,
0.04103168100118637,
-0.13232119381427765,
0.1531805694103241,
-0.05869392305612564,
0.08949818462133408,
-0.07751300930976868,
0.64277583360672,
-0.0461898110806942,
-0.002412971341982484,
0.27738580107688904,
-0.3135371804237366,
-0.11659835278987885,
-0.14924365282058716,
0.30935898423194885,
0.4315308630466461,
0.2351761907339096,
0.18164865672588348,
0.21485425531864166,
-0.04804090037941933,
-0.06632523983716965,
0.06239693984389305,
0.2788146734237671,
0.11034861952066422,
0.27870413661003113,
0.031465061008930206,
0.06040121987462044,
-0.23386049270629883,
0.11056076735258102,
0.19597646594047546,
0.3361189663410187,
-0.4241129755973816,
-0.17647746205329895,
-0.42224496603012085,
-0.09840894490480423,
-0.22539755702018738,
0.17798453569412231,
-0.16844026744365692,
-0.22848530113697052,
-0.08693068474531174,
0.06736784428358078,
-0.011214898899197578,
0.18163184821605682,
-0.2745661735534668,
0.1598084270954132,
0.1392820030450821,
0.04023989662528038,
0.012567090801894665,
0.023512475192546844,
-0.46801939606666565,
-0.023242225870490074,
0.332876980304718,
-0.3140126168727875,
0.3491358458995819,
-0.5354387760162354,
-0.010772730223834515,
-0.025656839832663536,
-0.15332892537117004,
0.0009082694887183607,
0.082536481320858,
-0.06960280239582062,
0.23422197997570038,
0.2336285263299942,
0.056382838636636734,
0.11016671359539032,
0.12086472660303116,
-0.270548939704895,
-0.23771695792675018,
-0.1075412705540657,
0.12148096412420273,
0.3437820374965668,
-0.02339327335357666,
-0.5561496019363403,
-0.28823772072792053,
-0.390597939491272,
0.245222806930542,
0.14880359172821045,
0.22246547043323517,
0.305690735578537,
0.08156326413154602,
0.12641671299934387,
0.1255260705947876,
0.08661206811666489,
-0.25524958968162537,
-0.3846786320209503,
0.27544963359832764,
0.09553104639053345,
-0.26596495509147644,
-0.02286420203745365,
0.22000277042388916,
-0.060005176812410355,
0.133595809340477,
-0.50934898853302,
-0.18300698697566986,
-0.4022885262966156,
-0.20845845341682434,
-0.1236933246254921,
0.2260228395462036,
0.4829978942871094,
0.014628383331000805,
-0.030063943937420845,
-0.1376810371875763,
-0.33008745312690735,
0.03682592511177063,
0.19500653445720673,
0.48657265305519104,
-0.10929865390062332,
0.2380160242319107,
0.3572041392326355,
0.46013468503952026,
0.4681927561759949,
0.11954634636640549,
0.08321840316057205,
0.041775334626436234,
0.20688660442829132,
-0.10637378692626953,
0.05970948562026024,
0.12456028163433075,
-0.2355278879404068,
-0.02826274186372757,
0.2690131962299347,
0.16047070920467377,
-0.08776460587978363,
-0.09378655254840851,
-0.17800921201705933,
-0.29764294624328613,
-0.10289929807186127,
-0.056094858795404434,
-0.0675400123000145,
0.17030222713947296,
0.26867154240608215,
0.10517464578151703,
-0.3179878294467926,
-0.2011031061410904,
0.12883558869361877,
0.037552159279584885,
-0.018577123060822487,
0.06624823063611984,
0.09506915509700775,
0.4359321594238281,
-0.3008749485015869,
0.4084649384021759,
0.11361530423164368,
0.23963646590709686,
0.15710392594337463,
-0.22721070051193237,
0.10360576212406158,
0.033056557178497314,
0.4885372817516327,
-0.25716039538383484,
0.09512254595756531,
0.08096251636743546,
0.15086084604263306,
-0.30155470967292786,
-0.2861631512641907,
-0.13402341306209564,
0.03125971555709839,
0.5175755620002747,
0.03745114430785179,
-0.44276323914527893,
0.03978976607322693,
0.20951354503631592,
0.4867497980594635,
-0.21451781690120697,
-0.0063497950322926044,
-0.18368391692638397,
-0.35081052780151367,
-0.4405176043510437,
0.010053922422230244,
0.14410622417926788,
0.1535170078277588,
0.08762110769748688,
-0.10922247916460037,
-0.16675931215286255,
-0.09141102433204651,
0.13701723515987396,
-0.10009630024433136,
0.3531222641468048,
0.027244316413998604,
0.28101491928100586,
0.2407761514186859,
0.35837313532829285,
0.25567689538002014,
0.5383520722389221,
-0.02116519771516323,
-0.04883596673607826,
0.012853068299591541,
-0.09266448020935059,
-0.25640708208084106,
0.406182199716568,
0.07605332136154175,
-0.307033509016037,
0.10120798647403717,
0.14283700287342072,
-0.24153204262256622,
0.24892297387123108,
0.23467972874641418,
-0.18335388600826263,
-0.5043684244155884,
-0.6911813020706177,
0.4553486406803131,
0.1715048998594284,
-0.0941057875752449,
0.46346452832221985,
-0.0732959434390068,
-0.1497594267129898,
0.06286302953958511,
-0.10803263634443283,
1.1349258422851562,
-0.0019093226874247193,
-0.07801893353462219,
0.08735480904579163,
-0.532998263835907,
0.17262090742588043,
-0.28166091442108154,
0.19412042200565338,
-0.20071294903755188,
-0.4522465765476227,
-0.06416653096675873,
-0.25952595472335815,
0.09830359369516373,
0.03905189409852028,
-0.17132413387298584,
0.27630099654197693,
0.07490526139736176,
0.14467966556549072,
0.18822067975997925,
0.23707814514636993,
-0.30198806524276733,
0.026220742613077164,
0.16557417809963226,
0.03742110729217529,
-0.2098887860774994,
0.5125647783279419,
-0.10525771975517273,
-0.2427009493112564,
-0.1034008041024208,
-0.12326133996248245,
-0.5089895129203796,
0.1167297214269638,
-0.37654006481170654,
0.2764262557029724,
-0.23749299347400665,
-0.08628037571907043,
0.03579306975007057,
-0.05254383385181427,
0.024879084900021553,
-0.0449727401137352,
-0.39382824301719666,
0.19567880034446716,
0.059453319758176804,
0.21471473574638367,
0.2943228781223297,
0.033574167639017105,
0.2583123743534088,
0.0008406691486015916,
-0.10664111375808716,
0.14041365683078766,
-0.08132856339216232,
-0.23165056109428406,
-0.027080627158284187,
-0.04368333891034126,
0.3094877600669861,
-0.5829212665557861,
-0.21635691821575165,
-0.10270769149065018,
0.12448157370090485,
-0.23333847522735596,
0.03437872976064682,
0.08797567337751389,
-0.07463782280683517,
0.34084048867225647,
-0.06353212893009186,
-0.4717177748680115,
-0.19944597780704498,
0.520671546459198,
0.1819906383752823,
0.029335549101233482,
0.35846713185310364,
-0.14132700860500336,
-0.06398434191942215,
0.04704155772924423,
0.30873948335647583,
-0.2237904965877533,
-0.7066397666931152,
0.3328602910041809,
-0.5006846189498901,
0.26210832595825195,
0.05292786657810211,
0.1818525642156601,
0.48507916927337646,
0.4176095128059387,
-0.07806001603603363,
-0.14454945921897888,
-0.04885076731443405,
-0.013843060471117496,
0.038197554647922516,
0.3852788805961609,
0.048551321029663086,
0.4218776524066925,
0.10681741684675217,
-0.16264568269252777,
-0.21201707422733307,
0.27454060316085815,
0.05312667414546013,
-0.03908000886440277,
0.06395088881254196,
0.060590825974941254,
0.13907919824123383,
-0.12533795833587646,
-0.13046586513519287,
0.27424848079681396,
-0.22843502461910248,
-0.08785220980644226,
-0.18363244831562042,
0.23176446557044983,
0.09937787055969238,
-0.11376384645700455,
-0.06071391701698303,
-0.16764704883098602,
0.10752607882022858,
-0.1030428484082222,
-0.020471688359975815,
0.07924383878707886,
0.00450655585154891,
0.1212017610669136,
0.07529251277446747,
-0.14367638528347015,
-0.1643715500831604,
0.2273155152797699,
-0.12745894491672516,
0.25892770290374756,
0.04854579642415047,
0.37217146158218384,
0.11872736364603043,
0.06776895374059677,
-0.2113090306520462,
-0.05178879573941231,
0.1161641776561737,
0.12641863524913788,
0.263583779335022,
-0.3530117869377136,
0.12229109555482864,
0.4328969717025757,
0.13213853538036346,
0.3337166905403137,
-0.1584496945142746,
-0.28569692373275757,
0.09009259939193726,
0.12637142837047577,
-0.31193047761917114,
0.07998213171958923,
0.5263723731040955,
0.030018126592040062,
-0.050225161015987396,
0.16433171927928925,
0.2634994387626648,
-0.02788090892136097,
-0.25501394271850586,
0.24302974343299866,
0.5129171013832092,
0.16042733192443848,
0.22516891360282898,
1.0427395105361938,
0.01069756131619215,
0.1018015444278717,
0.10389889776706696,
0.004084473010152578,
0.3406726121902466,
0.4126698076725006,
0.08492785692214966,
0.2741694748401642,
-0.024792199954390526,
0.3909769356250763,
-0.413440078496933,
-0.472424179315567,
-0.11341427266597748,
0.3169427514076233,
-0.013725979253649712,
0.2787594795227051,
0.16789808869361877,
0.21873676776885986,
-0.2551124095916748,
0.022354956716299057,
-0.35142868757247925,
0.18481820821762085,
0.016843434423208237,
-0.03287346288561821,
0.3247116208076477,
-0.22651000320911407,
-0.14029964804649353,
0.08627362549304962,
-0.16057971119880676,
0.13835439085960388,
0.23718197643756866,
-0.1859886348247528,
-0.19394244253635406,
-0.30102410912513733,
-0.187403604388237,
0.01057836040854454,
0.16249848902225494,
-0.4342550039291382,
0.17838779091835022,
0.13046637177467346,
-0.280753493309021,
0.03244774416089058,
0.6316357254981995,
0.4081064760684967,
0.30065780878067017,
-0.06899796426296234,
-0.10266868025064468,
0.30051305890083313,
0.13602229952812195,
-0.09127195924520493,
0.10527735948562622,
0.07037372887134552,
-0.06740760058164597,
0.3016679584980011,
0.0214814692735672,
-0.10851200670003891,
0.015388349071145058,
-0.2776353359222412,
-0.16976213455200195,
-0.3523251414299011,
0.33878612518310547,
-0.22935381531715393,
0.06965677440166473,
-0.032013360410928726,
0.04048231244087219,
-0.3742607533931732,
0.0021914192475378513,
0.1292652040719986,
-0.05586270987987518,
0.22969815135002136,
0.16964960098266602,
0.0025293314829468727,
-0.1484004706144333,
0.2151016891002655,
0.4300902485847473,
-0.327968031167984,
-0.180613175034523,
-0.055386900901794434,
-0.6753024458885193,
0.19293440878391266,
-0.2446192502975464,
-0.16387693583965302,
0.07041572779417038,
0.35782337188720703,
-0.1726105809211731,
-0.03412717208266258,
0.4378109276294708,
0.376951664686203,
-0.11194173991680145,
0.20100675523281097,
-0.17593833804130554,
-0.23223084211349487,
0.014995645731687546,
0.03643731400370598,
0.11348604410886765,
-0.42703449726104736,
0.2120778113603592,
0.1316034346818924,
-0.06731574982404709,
-0.20845885574817657,
-0.09718870371580124,
0.11513257026672363,
-0.14769139885902405,
0.5114879608154297,
0.24500061571598053,
0.353923499584198,
0.007062885910272598,
-0.29186469316482544,
-0.2748831808567047,
-0.1809360235929489,
-0.263532817363739,
0.30292579531669617,
0.007489543873816729,
0.19137927889823914,
-0.23447896540164948,
-0.053314417600631714,
-0.1607615053653717,
0.5604592561721802,
0.11867491900920868,
0.05773435905575752,
-0.26156046986579895,
-0.2985363304615021,
-0.20299109816551208,
-0.05431535840034485,
0.4280911982059479,
0.21247507631778717,
-0.19550977647304535,
0.11993499100208282,
-0.03389996662735939,
-0.5013503432273865,
0.3801285922527313,
0.04241815209388733,
-0.08643822371959686,
-0.09981200098991394,
0.23537874221801758,
0.45154398679733276,
-0.10790510475635529,
-0.34434542059898376,
0.11793708056211472,
0.48266661167144775,
0.008222843520343304,
-0.10749838501214981,
0.14268285036087036,
-0.12599019706249237,
-0.10823769867420197,
0.009763049893081188,
0.0963456779718399,
0.05743994936347008,
-0.41659456491470337,
0.35473188757896423,
-0.10806913673877716
] |
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.33537423610687256,
-0.18841253221035004,
0.04876260459423065,
0.4328116476535797,
0.05913427844643593,
0.11154083162546158,
-0.08526097238063812,
0.5720371603965759,
-0.016945255920290947,
0.12638463079929352,
-0.12406780570745468,
0.003022967604920268,
-0.07802020013332367,
0.08419770747423172,
-0.12841540575027466,
0.02853218838572502,
-0.1261271834373474,
0.1875728815793991,
-0.25675830245018005,
0.10378061980009079,
-0.28947460651397705,
0.2635650336742401,
-0.314712792634964,
0.004335048142820597,
-0.1761123090982437,
0.04031022638082504,
-0.19970427453517914,
0.15302836894989014,
-0.2597181499004364,
-0.3653438687324524,
0.27178072929382324,
-0.38231775164604187,
0.05903368443250656,
0.4936447739601135,
-0.00011823562817880884,
0.02958505041897297,
0.3093130886554718,
-0.208902046084404,
-0.08463270962238312,
-0.1598859429359436,
-0.49555033445358276,
-0.42911791801452637,
-0.06610328704118729,
-0.1210821121931076,
0.1902422457933426,
-0.11714176833629608,
0.12682843208312988,
-0.3275122344493866,
0.3349781036376953,
0.3231544494628906,
0.17830891907215118,
0.4126838147640228,
0.20729948580265045,
0.00130099942907691,
0.37591752409935,
-0.2919973134994507,
-0.22134728729724884,
-0.07040771842002869,
0.08605687320232391,
0.026813575997948647,
0.003103641327470541,
0.026894310489296913,
0.0232797060161829,
0.2867482304573059,
0.1630614548921585,
-0.0368339829146862,
0.3667394518852234,
-0.2062833607196808,
0.10118651390075684,
0.4210105240345001,
0.727480411529541,
-0.21539905667304993,
-0.25754737854003906,
-0.3073262870311737,
-0.37691351771354675,
0.029799021780490875,
0.2773853838443756,
0.48664799332618713,
0.0031601726077497005,
0.1984100192785263,
-0.3036150634288788,
0.05754033476114273,
0.038236845284700394,
0.16167454421520233,
-0.2182639092206955,
0.2967079281806946,
-0.000907144567463547,
0.15270379185676575,
-0.09291601926088333,
0.0851416364312172,
0.2732592225074768,
-0.1273200511932373,
0.008403327316045761,
0.16112634539604187,
-0.2615141272544861,
0.011776290833950043,
-0.028220048174262047,
-0.24755434691905975,
0.26538529992103577,
0.3092899024486542,
0.36903616786003113,
-0.31310397386550903,
-0.13796323537826538,
-0.0037722191773355007,
0.23903688788414001,
0.3799058794975281,
-0.04373428598046303,
0.18469899892807007,
-0.18880638480186462,
0.032658882439136505,
0.113291896879673,
-0.07556229084730148,
-0.02825666032731533,
-0.3621487617492676,
0.06590818613767624,
-0.011328660883009434,
0.6134743690490723,
-0.24870076775550842,
-0.6051995754241943,
0.06586763262748718,
-0.27939385175704956,
-0.25654447078704834,
-0.3295621871948242,
-0.16357478499412537,
-0.3112914562225342,
0.2582387328147888,
0.19503618776798248,
-0.08194160461425781,
-0.32766398787498474,
-0.3721601366996765,
-0.2869727313518524,
-0.11749808490276337,
-0.16204015910625458,
0.04616931825876236,
-0.10412994772195816,
-0.01319260522723198,
0.38322940468788147,
-0.05878086015582085,
-0.04238118976354599,
-0.26994040608406067,
0.14486083388328552,
0.03240026533603668,
-0.06995237618684769,
0.15040896832942963,
-0.1633680909872055,
0.1828361600637436,
0.04722058027982712,
0.0847083032131195,
-0.35643360018730164,
0.3897984027862549,
-0.2615620195865631,
-0.36364996433258057,
-0.22178304195404053,
0.1456974595785141,
-0.3320492208003998,
-0.21517224609851837,
0.3394039273262024,
-0.0417386032640934,
0.2415720671415329,
-0.2057953178882599,
-0.14081166684627533,
-0.22037307918071747,
-0.20545057952404022,
-0.1400129199028015,
0.07151840627193451,
0.3740119934082031,
-0.29693156480789185,
-0.21842806041240692,
0.21595460176467896,
-0.05830038711428642,
0.4005613327026367,
0.42659690976142883,
0.030636023730039597,
0.00688593927770853,
-0.19789795577526093,
0.2515306770801544,
0.10116651654243469,
-0.2532138526439667,
-0.6780228018760681,
0.40997079014778137,
-0.16342365741729736,
0.18147489428520203,
0.11882876604795456,
-0.09907186776399612,
0.07370567321777344,
-0.1317548006772995,
-0.08504702150821686,
0.2120763063430786,
-0.2106403261423111,
0.0707261860370636,
-0.5871099829673767,
-0.7869005799293518,
0.3780463635921478,
-0.05845120549201965,
0.1627456396818161,
-0.1797495037317276,
-0.027853835374116898,
0.259957879781723,
0.49608784914016724,
0.10674263536930084,
0.01472834125161171,
0.10688406974077225,
0.06149573251605034,
0.06813885271549225,
-0.08406710624694824,
-0.25013497471809387,
-0.15885630249977112,
0.21992433071136475,
-0.18153105676174164,
-0.05629919096827507,
0.30161935091018677,
-0.10837382823228836,
-0.5671517848968506,
-0.2056308388710022,
-0.05948714539408684,
-0.09703732281923294,
0.0005351536674425006,
0.0013906491221860051,
0.18221916258335114,
0.08781848102807999,
0.15493996441364288,
0.35095494985580444,
0.09256044030189514,
0.11530867218971252,
-0.3258305490016937,
0.21880096197128296,
-0.042068567126989365,
-0.11440926045179367,
0.18623262643814087,
-0.0807211846113205,
0.1894465833902359,
-0.05065827816724777,
-0.4008101522922516,
0.662125825881958,
-0.05086493492126465,
0.1304219663143158,
-0.04856213927268982,
0.0759100541472435,
0.20871694386005402,
-0.16475512087345123,
0.13969212770462036,
0.40400490164756775,
-0.007811862975358963,
-0.08936560899019241,
0.12857545912265778,
-0.14666475355625153,
0.16815657913684845,
0.03858130797743797,
-0.13998442888259888,
0.021916259080171585,
-0.10823408514261246,
-0.19068828225135803,
-0.021882394328713417,
-0.13638202846050262,
0.12147863209247589,
-0.014376778155565262,
-0.1486692577600479,
0.04905441030859947,
0.13071639835834503,
-0.1663726568222046,
0.7351148128509521,
-0.039538610726594925,
-0.04932441562414169,
0.30841511487960815,
-0.30094999074935913,
-0.06960823386907578,
-0.18691405653953552,
0.2009017914533615,
0.517098069190979,
0.2373417317867279,
0.17053870856761932,
0.2232394963502884,
0.005984089337289333,
-0.15737542510032654,
0.12091746926307678,
0.2986402213573456,
0.22527344524860382,
0.23326805233955383,
-0.004037514328956604,
0.04425637051463127,
-0.1431470811367035,
0.1358938217163086,
0.05489441007375717,
0.3265090584754944,
-0.42147141695022583,
-0.22210247814655304,
-0.47994521260261536,
-0.007051774300634861,
-0.33298659324645996,
0.1856294870376587,
-0.18144331872463226,
-0.30454835295677185,
-0.06916525214910507,
0.07297144085168839,
-0.08685555309057236,
0.1772739738225937,
-0.2617506980895996,
0.11661814153194427,
0.17268426716327667,
0.16842679679393768,
0.11314006894826889,
-0.02966991811990738,
-0.5200150012969971,
0.016342397779226303,
0.2846107482910156,
-0.26463550329208374,
0.37741711735725403,
-0.5531550645828247,
0.01950538530945778,
-0.0720706433057785,
-0.14435534179210663,
-0.12006660550832748,
0.05968673154711723,
0.040705207735300064,
0.1904507875442505,
0.16160033643245697,
0.07885153591632843,
-0.03248167037963867,
0.18231534957885742,
-0.2791774272918701,
-0.19314728677272797,
-0.06656404584646225,
0.141739159822464,
0.21539144217967987,
-0.015932537615299225,
-0.5946939587593079,
-0.2640368342399597,
-0.35664087533950806,
0.24695350229740143,
0.06862980127334595,
0.18706029653549194,
0.0002922274870797992,
0.08238623291254044,
0.01913054846227169,
0.04284093901515007,
0.08749940991401672,
-0.21507228910923004,
-0.44135990738868713,
0.3366398811340332,
0.06748820841312408,
-0.30408239364624023,
-0.013975172303617,
0.2830919027328491,
-0.07501815259456635,
0.08526476472616196,
-0.603739857673645,
-0.1121484637260437,
-0.38424259424209595,
-0.10204418748617172,
-0.10890020430088043,
0.19097819924354553,
0.42595192790031433,
0.032095395028591156,
-0.0522991418838501,
-0.14267398416996002,
-0.3267737627029419,
-0.009112098254263401,
0.28599998354911804,
0.5351219773292542,
-0.04867406561970711,
0.2700759172439575,
0.3071492612361908,
0.4374693036079407,
0.5364365577697754,
0.07918708026409149,
0.016178376972675323,
-0.038535621017217636,
0.08284126967191696,
-0.10283272713422775,
0.053590577095746994,
0.19108179211616516,
-0.21763770282268524,
0.04924289882183075,
0.3565112054347992,
0.16965067386627197,
0.012755013071000576,
-0.036849383264780045,
-0.08760218322277069,
-0.38987284898757935,
-0.1862398087978363,
-0.02276778221130371,
-0.03137512132525444,
0.1551942080259323,
0.23143643140792847,
0.08149971067905426,
-0.21519304811954498,
-0.26856353878974915,
0.10598138719797134,
-0.03002520650625229,
-0.14597977697849274,
0.042329661548137665,
0.1752464771270752,
0.37308764457702637,
-0.37413668632507324,
0.3963314890861511,
0.09693178534507751,
0.23707053065299988,
0.17601259052753448,
-0.2623285949230194,
0.13416975736618042,
0.06650860607624054,
0.39303797483444214,
-0.015950484201312065,
-0.08923997730016708,
0.07615841925144196,
0.13356153666973114,
-0.4909270703792572,
-0.31710270047187805,
-0.10529900342226028,
0.10854018479585648,
0.5230335593223572,
-0.07386566698551178,
-0.38012123107910156,
0.020902510732412338,
0.30689531564712524,
0.4333488643169403,
-0.23598116636276245,
-0.07290858775377274,
-0.12523213028907776,
-0.3763372302055359,
-0.2850308418273926,
-0.1912839710712433,
0.046463362872600555,
0.2928825318813324,
0.004355997312813997,
-0.09804131090641022,
-0.07330698519945145,
-0.2081434428691864,
0.17462162673473358,
-0.18364909291267395,
0.29250696301460266,
-0.0004950962029397488,
0.31887349486351013,
0.2693991959095001,
0.3867368996143341,
0.20522068440914154,
0.5904598832130432,
0.043604377657175064,
-0.18671748042106628,
-0.03873882070183754,
-0.1282728761434555,
-0.23443573713302612,
0.30332157015800476,
0.11875801533460617,
-0.3259139358997345,
-0.040138471871614456,
0.19569140672683716,
-0.3326933681964874,
0.2428993582725525,
0.4663275480270386,
-0.11626432836055756,
-0.42400020360946655,
-0.4418553113937378,
0.49758467078208923,
0.20400655269622803,
-0.04513902962207794,
0.47908633947372437,
-0.0798945352435112,
-0.16777987778186798,
0.03339194506406784,
-0.14595721662044525,
1.0368587970733643,
0.09991545975208282,
-0.09072057902812958,
0.20943155884742737,
-0.5453346371650696,
0.17100395262241364,
-0.19995631277561188,
0.22048164904117584,
-0.27782806754112244,
-0.4051022529602051,
0.00693559693172574,
-0.220194473862648,
0.16505490243434906,
-0.013068980537354946,
-0.21867452561855316,
0.23400947451591492,
-0.039074961096048355,
0.09207715839147568,
0.16228310763835907,
0.2636515200138092,
-0.23692920804023743,
0.18532954156398773,
0.26611343026161194,
0.08329982310533524,
-0.21285389363765717,
0.5148096680641174,
-0.07604224234819412,
-0.16090227663516998,
-0.14917723834514618,
-0.13737404346466064,
-0.5546500086784363,
0.059950198978185654,
-0.3144528567790985,
0.28853103518486023,
-0.2171671837568283,
0.043386463075876236,
0.08808118104934692,
0.09239368885755539,
0.014203299768269062,
-0.05949714034795761,
-0.3775967061519623,
0.255316823720932,
-0.0525226965546608,
0.1412574052810669,
0.2620878517627716,
0.08320534229278564,
0.11015769094228745,
-0.09120331704616547,
-0.23728099465370178,
0.040522921830415726,
-0.08374875038862228,
-0.12296479195356369,
-0.09707353264093399,
-0.1680068075656891,
0.38671377301216125,
-0.6676738262176514,
-0.15730594098567963,
-0.10340739786624908,
0.14368313550949097,
-0.19593653082847595,
0.0874958261847496,
0.10291936993598938,
-0.04744382202625275,
0.4278295040130615,
0.016351008787751198,
-0.458722859621048,
-0.19430199265480042,
0.4307103157043457,
0.12795639038085938,
0.0916898250579834,
0.44426003098487854,
-0.13705287873744965,
-0.037678007036447525,
0.011773979291319847,
0.462965726852417,
-0.11310619860887527,
-0.5498896241188049,
0.25959277153015137,
-0.40448758006095886,
0.3425942063331604,
0.09816836565732956,
0.2810598611831665,
0.5407373309135437,
0.3864491581916809,
-0.02641516737639904,
-0.11462881416082382,
0.06699160486459732,
0.0011300729820504785,
0.07464590668678284,
0.35882624983787537,
-0.08057180047035217,
0.4045138359069824,
0.06726311147212982,
-0.07049224525690079,
-0.24228113889694214,
0.2544279992580414,
0.01567661203444004,
0.04286967217922211,
0.14555370807647705,
0.02864133194088936,
0.13550788164138794,
-0.011796828359365463,
-0.03900972753763199,
0.18541783094406128,
-0.24322226643562317,
-0.09896110743284225,
-0.1615247279405594,
0.20798005163669586,
0.054691165685653687,
-0.15308283269405365,
0.045655567198991776,
-0.15101055800914764,
0.12554612755775452,
-0.11626073718070984,
-0.1137397363781929,
0.16457444429397583,
-0.051361847668886185,
0.2183629721403122,
0.12684553861618042,
-0.206608846783638,
-0.06653986126184464,
0.26023855805397034,
-0.2344355285167694,
0.42730459570884705,
0.024521315470337868,
0.3384082019329071,
0.20478996634483337,
-0.010874253697693348,
-0.08503147959709167,
-0.05981021746993065,
0.0003599319898057729,
0.15678729116916656,
0.301349014043808,
-0.2508285343647003,
0.12606920301914215,
0.3643394112586975,
0.13748101890087128,
0.4328530728816986,
-0.13132508099079132,
-0.29066669940948486,
0.104547418653965,
0.17843137681484222,
-0.29923611879348755,
0.016164656728506088,
0.4957772493362427,
0.12226869910955429,
-0.05677223578095436,
0.0761135071516037,
0.09448858350515366,
-0.031179362908005714,
-0.33278676867485046,
0.16457103192806244,
0.43244117498397827,
0.22569207847118378,
0.31865450739860535,
0.8666620850563049,
-0.02043134905397892,
-0.025654220953583717,
0.023776840418577194,
-0.18413744866847992,
0.319538414478302,
0.2806244492530823,
-0.1578599363565445,
0.34372860193252563,
-0.005677460227161646,
0.3505122661590576,
-0.3397984802722931,
-0.36720219254493713,
-0.10765741765499115,
0.24174390733242035,
-0.012182602658867836,
0.21982498466968536,
0.20632602274417877,
0.310875803232193,
-0.22415199875831604,
-0.006380883045494556,
-0.37265655398368835,
0.167612686753273,
0.0706147849559784,
-0.03135783225297928,
0.05241767317056656,
-0.22598467767238617,
-0.20600347220897675,
0.0640665739774704,
-0.16618098318576813,
0.020216720178723335,
0.2706855237483978,
-0.17954058945178986,
-0.2028784304857254,
-0.336729496717453,
-0.19083142280578613,
-0.11357581615447998,
0.18859019875526428,
-0.4949006140232086,
0.04654650017619133,
0.1343574970960617,
-0.29422134160995483,
0.1290145367383957,
0.6200792193412781,
0.44363391399383545,
0.2979874312877655,
-0.1408042162656784,
-0.10540592670440674,
0.25173884630203247,
0.10272584110498428,
0.046717751771211624,
0.18576204776763916,
0.04891694709658623,
-0.12779170274734497,
0.31988656520843506,
0.05691415071487427,
-0.09909927845001221,
0.09341419488191605,
-0.23641487956047058,
-0.15411020815372467,
-0.39874470233917236,
0.23478038609027863,
-0.20859882235527039,
0.054755762219429016,
0.0016946443356573582,
-0.028470566496253014,
-0.3427090346813202,
-0.035600364208221436,
0.16516758501529694,
-0.06479500234127045,
0.23333017528057098,
0.14542187750339508,
0.02161828801035881,
-0.21161887049674988,
0.22478801012039185,
0.4161568284034729,
-0.3166661262512207,
-0.1842963993549347,
-0.2350701242685318,
-0.5166271924972534,
0.2552206516265869,
-0.20808883011341095,
-0.17861181497573853,
0.06149858981370926,
0.31829047203063965,
-0.22532662749290466,
-0.04374122992157936,
0.413593053817749,
0.2970709502696991,
-0.24362926185131073,
0.14134716987609863,
-0.30794039368629456,
-0.21091890335083008,
-0.05626692622900009,
0.040340177714824677,
0.16739724576473236,
-0.26502493023872375,
0.22088052332401276,
-0.10541142523288727,
-0.02572805993258953,
-0.2519950270652771,
-0.03306347131729126,
0.13484567403793335,
-0.08432559669017792,
0.41373854875564575,
0.3345898687839508,
0.295154869556427,
-0.017768703401088715,
-0.15736185014247894,
-0.2531401813030243,
-0.2753588855266571,
-0.2024572491645813,
0.40000051259994507,
-0.034006811678409576,
0.23472413420677185,
-0.22568269073963165,
0.05785002559423447,
-0.15632940828800201,
0.44132211804389954,
0.01675530895590782,
0.05505047366023064,
-0.20077313482761383,
-0.2971847355365753,
-0.097772516310215,
-0.14190377295017242,
0.3616722524166107,
0.30119451880455017,
-0.15482987463474274,
0.1341490000486374,
0.016627492383122444,
-0.4505014717578888,
0.4645189046859741,
0.07439902424812317,
-0.07884837687015533,
-0.10063821077346802,
0.1509796530008316,
0.3283897936344147,
-0.05829888582229614,
-0.3652932047843933,
0.10826551169157028,
0.5874561071395874,
0.020144397392868996,
-0.025481585413217545,
0.13244172930717468,
-0.04400206357240677,
-0.14342932403087616,
0.1158754900097847,
0.16677208244800568,
-0.0006540836184285581,
-0.4427070915699005,
0.4158494770526886,
-0.1364075392484665
] |
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.032726872712373734,
-0.15312667191028595,
0.10408974438905716,
0.2286248356103897,
0.07259947061538696,
0.13660745322704315,
0.3329794704914093,
0.4905765652656555,
-0.02076875790953636,
0.2300734966993332,
0.23385022580623627,
0.4390178918838501,
0.027152210474014282,
-0.1494162380695343,
-0.11286693811416626,
-0.043492045253515244,
0.03623845800757408,
0.11753665655851364,
-0.00132776761893183,
-0.04473075643181801,
-0.3787415623664856,
0.08444064855575562,
-0.33890166878700256,
0.05751078203320503,
-0.30123478174209595,
-0.10772940516471863,
-0.009030142799019814,
0.003484357614070177,
0.12988954782485962,
-0.49105045199394226,
0.29231950640678406,
-0.5293870568275452,
-0.15050126612186432,
0.1626206487417221,
-0.00011587110202526674,
-0.03398658707737923,
0.2518492043018341,
0.05191230773925781,
-0.0784543827176094,
-0.2758265733718872,
-0.1568172127008438,
-0.21859340369701385,
-0.014174112118780613,
-0.16535800695419312,
0.1762019544839859,
-0.037516918033361435,
0.07602329552173615,
-0.19610832631587982,
-0.020137537270784378,
0.27090659737586975,
0.14604949951171875,
0.41266223788261414,
0.21786975860595703,
0.08923850208520889,
0.4545615613460541,
0.05079200491309166,
-0.2142459750175476,
0.38726913928985596,
0.15017719566822052,
-0.22614116966724396,
0.10557589679956436,
0.314545214176178,
-0.031207406893372536,
0.01608140394091606,
0.31010934710502625,
0.17673665285110474,
-0.06331320852041245,
-0.22936494648456573,
-0.09567784518003464,
0.14122682809829712,
0.12131235003471375,
-0.4014459252357483,
-0.43026167154312134,
-0.2851814031600952,
0.08362995088100433,
-0.33908721804618835,
0.3403966426849365,
0.16856925189495087,
-0.1564164012670517,
0.16236662864685059,
0.11551476269960403,
0.20142731070518494,
-0.19284911453723907,
0.14998742938041687,
-0.10428187996149063,
0.08338238298892975,
0.05034996196627617,
0.26093780994415283,
-0.05607396736741066,
-0.20230060815811157,
-0.2976314127445221,
-0.1810266226530075,
0.00630617793649435,
0.26301559805870056,
-0.36725881695747375,
-0.21983125805854797,
-0.15048551559448242,
-0.1560579538345337,
0.15927423536777496,
-0.22765448689460754,
0.29903122782707214,
-0.10675448924303055,
0.0777343362569809,
0.41287919878959656,
0.060803692787885666,
-0.15060997009277344,
0.1527080535888672,
0.1083260178565979,
0.17800265550613403,
-0.40611088275909424,
0.2636466324329376,
-0.034292299300432205,
0.13401593267917633,
-0.5859516859054565,
0.5141167044639587,
0.26060259342193604,
0.6728466153144836,
-0.1126299500465393,
-0.46890249848365784,
0.12761089205741882,
-0.7892319560050964,
0.3337594270706177,
-0.13578027486801147,
0.16271500289440155,
0.01307368278503418,
0.08639010787010193,
0.04841989651322365,
0.27741503715515137,
-0.16206829249858856,
-0.2743239998817444,
0.01472520548850298,
-0.07467816770076752,
-0.05406736582517624,
-0.04467153176665306,
0.34318408370018005,
-0.18989087641239166,
0.24581541121006012,
0.1759651005268097,
-0.11227872222661972,
-0.004599910229444504,
0.26263129711151123,
-0.30463841557502747,
0.1480015069246292,
0.17374932765960693,
-0.4271000325679779,
0.27943697571754456,
0.03872012346982956,
-0.14658969640731812,
-0.1892317533493042,
0.2775800824165344,
-0.12054738402366638,
-0.15885818004608154,
-0.21657556295394897,
0.14829549193382263,
0.0022295902017503977,
-0.2128336876630783,
-0.05400174483656883,
-0.002000627340748906,
0.242374986410141,
-0.1734902411699295,
0.18460935354232788,
-0.2199791818857193,
0.01874895952641964,
-0.3760909140110016,
-0.01136766280978918,
0.37363481521606445,
-0.6385909914970398,
0.07083692401647568,
0.12679505348205566,
-0.018574774265289307,
-0.033731427043676376,
0.363485187292099,
-0.18706819415092468,
-0.013671028427779675,
-0.059161942452192307,
0.5252671837806702,
-0.008646161295473576,
-0.13264647126197815,
-0.4373970627784729,
0.13138696551322937,
-0.07439573109149933,
-0.24445460736751556,
0.040103375911712646,
0.24357084929943085,
0.14176930487155914,
-0.14966265857219696,
-0.01733509637415409,
-0.12138491123914719,
-0.13008560240268707,
0.2243192046880722,
-0.32607075572013855,
-0.041179317981004715,
0.17207826673984528,
0.0506167896091938,
-0.14694371819496155,
-0.21093235909938812,
0.19453591108322144,
-0.6835875511169434,
0.03290872275829315,
-0.20681199431419373,
0.26666703820228577,
0.3962264955043793,
0.40443578362464905,
-0.046575646847486496,
0.15520241856575012,
-0.13335491716861725,
-0.8110239505767822,
0.19858689606189728,
0.10084618628025055,
-0.182160422205925,
-0.4811461269855499,
-0.4098096489906311,
-0.10612756013870239,
0.3230980336666107,
0.1690465658903122,
0.153975710272789,
0.07517676800489426,
-0.006751313339918852,
-0.12268418073654175,
-0.059892088174819946,
-0.28498575091362,
-0.2986537516117096,
-0.21726590394973755,
0.18654857575893402,
-0.22493644058704376,
0.257595419883728,
-0.013921959325671196,
-0.21678030490875244,
-0.09607475250959396,
0.034425534307956696,
0.17619936168193817,
-0.1273750364780426,
0.013591112568974495,
0.4820093810558319,
0.10676175355911255,
0.146391823887825,
-0.11827171593904495,
0.02723490446805954,
0.3414064943790436,
-0.4875243902206421,
-0.2777247726917267,
0.37179499864578247,
0.3092469871044159,
0.06549461930990219,
-0.18801163136959076,
0.3670312166213989,
-0.008577064611017704,
0.14266125857830048,
-0.2432318478822708,
-0.024011392146348953,
0.04764579236507416,
-0.005088405683636665,
-0.17066778242588043,
-0.07407674938440323,
-0.08376958221197128,
-0.013224800117313862,
0.23083467781543732,
0.17070046067237854,
-0.6484630107879639,
0.006448208820074797,
0.17776551842689514,
-0.12628254294395447,
0.14714008569717407,
0.046345826238393784,
-0.2821581959724426,
0.3659065365791321,
0.39183539152145386,
0.032289840281009674,
0.3437531590461731,
0.19766396284103394,
-0.0775282233953476,
0.005095962435007095,
-0.1521710604429245,
-0.08245882391929626,
0.34863054752349854,
-0.005071441177278757,
0.08308008313179016,
0.13029655814170837,
0.177151620388031,
0.27785995602607727,
-0.1754121631383896,
0.01878463290631771,
0.22719751298427582,
0.19064554572105408,
-0.5900595784187317,
-0.06686695665121078,
-0.10820367932319641,
0.0791587382555008,
-0.35325878858566284,
-0.16024383902549744,
-0.08377037197351456,
-0.26792559027671814,
-0.02383314073085785,
0.17871268093585968,
-0.4540545642375946,
0.2962759733200073,
-0.050302039831876755,
0.06450076401233673,
0.20975728332996368,
-0.28734686970710754,
-0.1986873745918274,
-0.1805444061756134,
-0.20697210729122162,
0.0005403657560236752,
0.16899147629737854,
-0.06929910182952881,
0.2951599359512329,
0.267179012298584,
-0.10564962029457092,
-0.5031930804252625,
-0.4341716766357422,
0.027209317311644554,
-0.22862301766872406,
0.12870387732982635,
0.19870197772979736,
0.2116258144378662,
-0.07717830687761307,
-0.34389299154281616,
0.19707980751991272,
0.0353325791656971,
-0.29197198152542114,
0.1465553343296051,
-0.017192726954817772,
-0.04457273334264755,
-0.1751168966293335,
-0.4850573241710663,
-0.038821227848529816,
-0.22815965116024017,
0.22342294454574585,
-0.31039872765541077,
0.05022658035159111,
0.16306306421756744,
0.32924365997314453,
0.13802675902843475,
-0.11707257479429245,
-0.1576797217130661,
0.14021733403205872,
0.2776928246021271,
0.5713929533958435,
-0.01977008953690529,
-0.3324664235115051,
0.23551081120967865,
-0.1852090209722519,
-0.08005724102258682,
0.45063382387161255,
-0.21264119446277618,
-0.023920146748423576,
-0.11317098140716553,
0.6397433876991272,
-0.07026524096727371,
-0.026588834822177887,
0.32262980937957764,
0.29419031739234924,
0.013333020731806755,
-0.14083833992481232,
-0.31690874695777893,
0.06248832121491432,
-0.023680252954363823,
0.2940811216831207,
0.05616782233119011,
0.3970879316329956,
0.014369893819093704,
0.7554783225059509,
0.11632034182548523,
-0.24538107216358185,
0.15627925097942352,
-0.21849800646305084,
-0.0008915675571188331,
0.1268462836742401,
-0.12043623626232147,
-0.11777334660291672,
-0.1749809980392456,
-0.06152036786079407,
-0.128386452794075,
-0.19149506092071533,
-0.5315887331962585,
0.0941072404384613,
-0.004060538485646248,
-0.45465102791786194,
-0.31764286756515503,
0.21340933442115784,
-0.06599597632884979,
0.30064454674720764,
0.08508222550153732,
0.023705799132585526,
-0.2731817364692688,
-0.0983998030424118,
0.262647420167923,
-0.061984192579984665,
0.2583998739719391,
-0.19277271628379822,
0.011645236983895302,
-0.29572027921676636,
-0.23090319335460663,
0.4249306917190552,
0.2806852459907532,
0.1446988582611084,
0.1786828339099884,
-0.21880163252353668,
-0.008268079720437527,
0.12481072545051575,
0.6407938003540039,
-0.18439829349517822,
-0.003530343296006322,
-0.07337786257266998,
0.07950374484062195,
-0.4673803448677063,
0.18878015875816345,
-0.26182350516319275,
0.12123751640319824,
0.26202118396759033,
0.3791099786758423,
-0.426229864358902,
0.0409371554851532,
0.27196332812309265,
0.03015284240245819,
0.0009179966291412711,
-0.17887715995311737,
-0.11758888512849808,
0.053896378725767136,
-0.11625286191701889,
-0.00025246571749448776,
0.2568051218986511,
-0.0368419773876667,
0.18096673488616943,
-0.10217064619064331,
-0.3370206654071808,
-0.014867042191326618,
0.00773194944486022,
-0.005157476756721735,
0.34210795164108276,
-0.22088012099266052,
0.26725101470947266,
0.029098672792315483,
0.3201954662799835,
0.5259208679199219,
0.3236468732357025,
0.2308434545993805,
-0.5913681387901306,
0.04790792986750603,
-0.04932163283228874,
0.3719320595264435,
0.23390254378318787,
-0.015382733196020126,
0.03919558972120285,
-0.01690850779414177,
0.07574910670518875,
-0.1975090354681015,
-0.041586983948946,
0.3200693428516388,
0.16171298921108246,
-0.0220554918050766,
0.07358228415250778,
0.5450215935707092,
-0.2178986817598343,
-0.0845387876033783,
0.5981540083885193,
0.4256734549999237,
-0.1784011423587799,
0.3142671287059784,
0.2651110887527466,
0.8266263604164124,
0.2423481047153473,
-0.04283260554075241,
0.5020025372505188,
-0.23615194857120514,
0.37530195713043213,
0.4359344244003296,
0.14084963500499725,
-0.4725419282913208,
0.031811632215976715,
-0.005697993095964193,
-0.0902225598692894,
0.05665559321641922,
0.15660260617733002,
-0.08796558529138565,
0.10554005950689316,
0.14790593087673187,
0.3768030107021332,
0.011712963692843914,
-0.2954427897930145,
-0.1822737455368042,
-0.23195737600326538,
-0.048128388822078705,
0.028775585815310478,
0.05888527259230614,
0.04643848165869713,
-0.025140967220067978,
-0.2543225586414337,
-0.3001083731651306,
-0.1459311991930008,
-0.027433447539806366,
-0.013778421096503735,
-0.6243049502372742,
0.12492948025465012,
0.30383726954460144,
-0.149827778339386,
0.10483516752719879,
0.028397342190146446,
-0.0029949373565614223,
0.04539915546774864,
-0.17497442662715912,
-0.03086182475090027,
0.16760779917240143,
0.035934269428253174,
0.10779741406440735,
-0.1268627643585205,
0.14362302422523499,
0.00886725727468729,
-0.3379887640476227,
0.1709945946931839,
-0.34892967343330383,
-0.08877705782651901,
0.2501187026500702,
-0.052568044513463974,
-0.2960268557071686,
-0.07576312869787216,
-0.11020199954509735,
-0.1591261327266693,
-0.15529972314834595,
-0.010497997514903545,
0.07020194083452225,
-0.10152820497751236,
0.08717600256204605,
-0.08221769332885742,
-0.14312255382537842,
-0.2805771231651306,
0.05634134262800217,
0.34912076592445374,
-0.15853963792324066,
0.2250402867794037,
0.7464406490325928,
-0.12598812580108643,
-0.09784263372421265,
-0.10687506943941116,
0.2753206193447113,
0.28470495343208313,
-0.7513651847839355,
-0.03391115367412567,
-0.25465497374534607,
0.14224965870380402,
0.043424420058727264,
0.3635244369506836,
0.4133288860321045,
-0.04140717536211014,
-0.1273883432149887,
-0.21204914152622223,
-0.3010559380054474,
0.25004738569259644,
0.17031294107437134,
0.19661325216293335,
-0.12250126153230667,
0.10326214134693146,
0.06227273866534233,
-0.2535397410392761,
-0.2832320034503937,
0.11401070654392242,
-0.08281993120908737,
0.2677059471607208,
0.1502041220664978,
0.2842869758605957,
-0.003205263754352927,
-0.24809974431991577,
0.08260846138000488,
0.21671709418296814,
-0.03328539431095123,
-0.12235185503959656,
-0.16735321283340454,
0.10684925317764282,
-0.016637194901704788,
0.013172179460525513,
0.019371774047613144,
-0.19551488757133484,
-0.015219378285109997,
-0.06626053154468536,
0.03938959911465645,
0.0908399373292923,
-0.19360022246837616,
0.33217233419418335,
0.07950735092163086,
0.13292060792446136,
-0.37433868646621704,
-0.00043853430543094873,
-0.029772887006402016,
0.0948922261595726,
-0.13210049271583557,
0.2827993333339691,
-0.21168158948421478,
0.10724161565303802,
0.07847075909376144,
0.09961559623479843,
-0.37909772992134094,
-0.12769684195518494,
0.3835838735103607,
-0.3355991840362549,
-0.2621271014213562,
0.23329778015613556,
0.14285659790039062,
0.03258121758699417,
-0.2208070307970047,
0.042841583490371704,
0.1039249524474144,
0.2010427862405777,
-0.3584831953048706,
0.2307633012533188,
0.02418368123471737,
0.15201427042484283,
0.31602779030799866,
0.1300286054611206,
0.12716777622699738,
-0.19184696674346924,
0.07123485952615738,
-0.05692119151353836,
0.1015782281756401,
-0.2153938114643097,
-0.2106611430644989,
0.509962260723114,
-0.042136527597904205,
0.14842908084392548,
0.329574853181839,
0.3196731507778168,
0.503620445728302,
0.019668327644467354,
0.24916954338550568,
0.2726075351238251,
0.15878969430923462,
0.04033786058425903,
-0.08166690915822983,
-0.24448543787002563,
0.11649906635284424,
0.1713622510433197,
-0.10007186979055405,
-0.02008964866399765,
0.48906728625297546,
0.4165976941585541,
-0.0280175618827343,
-0.33240577578544617,
0.16118885576725006,
-0.07317330688238144,
-0.22691133618354797,
0.02266376093029976,
-0.6775982975959778,
-0.002576532308012247,
-0.1935758739709854,
-0.13977795839309692,
-0.16914832592010498,
-0.12195968627929688,
0.8168900609016418,
0.22138839960098267,
-0.021000178530812263,
-0.38865548372268677,
0.10763721913099289,
0.3059977889060974,
0.48768848180770874,
-0.253909170627594,
0.1352231353521347,
0.12344231456518173,
-0.2828819155693054,
-0.1400603950023651,
0.49131980538368225,
0.4069628119468689,
0.22492928802967072,
-0.12126495689153671,
0.04035261273384094,
-0.03470931574702263,
-0.05435122177004814,
0.15170451998710632,
0.16441722214221954,
0.09870626777410507,
0.14095714688301086,
0.36448293924331665,
0.08705080300569534,
-0.09208355098962784,
0.07188403606414795,
0.013168011792004108,
0.25709712505340576,
-0.2345176339149475,
-0.10191753506660461,
-0.3865167796611786,
-0.4380471408367157,
-0.028046399354934692,
-0.20710515975952148,
-0.21998752653598785,
0.0009465275215916336,
0.41157200932502747,
0.08820009976625443,
0.0986725464463234,
0.1032273918390274,
0.08171722292900085,
0.04746507853269577,
0.24026954174041748,
0.5085469484329224,
-0.12689556181430817,
-0.28565719723701477,
0.05162189155817032,
-0.7157184481620789,
0.2013089954853058,
-0.05776754394173622,
0.20437103509902954,
0.26480135321617126,
0.30002301931381226,
0.17202752828598022,
0.2032221108675003,
0.16527266800403595,
-0.0015441497089341283,
0.02170613221824169,
0.27423614263534546,
-0.12245383113622665,
-0.1925007402896881,
-0.013876560144126415,
-0.2804165184497833,
0.07676955312490463,
-0.43503037095069885,
0.23258958756923676,
-0.09229523688554764,
-0.011919819749891758,
-0.09380978345870972,
-0.07008776813745499,
0.11525743454694748,
0.03178407624363899,
0.49409064650535583,
0.07950436323881149,
0.1511564701795578,
0.038688648492097855,
-0.1448904573917389,
-0.11159364879131317,
-0.22588755190372467,
-0.2643377184867859,
0.23396150767803192,
0.08377718925476074,
0.3281973898410797,
0.09524229913949966,
-0.25978830456733704,
-0.006151772104203701,
0.03157978504896164,
-0.03431786969304085,
-0.2390247881412506,
-0.26678919792175293,
0.3094371259212494,
-0.27386578917503357,
-0.004988185130059719,
-0.15166249871253967,
0.06331358850002289,
0.0026377954054623842,
0.13073594868183136,
-0.31949910521507263,
-0.4689129889011383,
0.325077086687088,
-0.37745922803878784,
-0.10805429518222809,
0.028018852695822716,
0.34861698746681213,
0.48539629578590393,
0.1548861265182495,
-0.5569854378700256,
-0.1189378947019577,
0.4156101644039154,
-0.1695123016834259,
-0.3143326938152313,
-0.1939258575439453,
0.012086248025298119,
0.038123052567243576,
0.051755279302597046,
0.5593425035476685,
0.10474798828363419,
0.07320326566696167,
0.13680724799633026,
-0.4698803126811981
] |
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.2438097447156906,
-0.08374573290348053,
-0.10764103382825851,
0.16815100610256195,
0.2711251378059387,
0.01544224563986063,
0.17673857510089874,
0.4127867817878723,
0.146568164229393,
0.08685949444770813,
-0.16489239037036896,
-0.07798939198255539,
-0.2590736746788025,
0.28017958998680115,
-0.23176346719264984,
-0.2915208339691162,
-0.08847106248140335,
0.1522611826658249,
-0.117738738656044,
-0.06439497321844101,
-0.08914262801408768,
0.32050082087516785,
-0.15972140431404114,
0.1476871371269226,
-0.28265661001205444,
-0.3294515013694763,
-0.11367206275463104,
0.09352205693721771,
-0.3491749167442322,
-0.4404601454734802,
0.26502200961112976,
-0.052807509899139404,
0.1387759894132614,
0.38579270243644714,
-0.000109574590169359,
-0.07007768750190735,
0.31012147665023804,
-0.17516440153121948,
-0.30347689986228943,
-0.29818761348724365,
-0.07896724343299866,
-0.04694882780313492,
-0.023371996358036995,
-0.3721521198749542,
-0.25342950224876404,
0.10506347566843033,
-0.06103261187672615,
-0.4590233564376831,
0.5346910953521729,
0.65028315782547,
0.22979140281677246,
0.09130370616912842,
0.38715216517448425,
-0.23227079212665558,
0.0315542034804821,
0.21780669689178467,
-0.20452803373336792,
0.3952792286872864,
0.26333358883857727,
-0.1257772147655487,
0.03241683542728424,
0.3559172451496124,
0.047259166836738586,
0.1438390612602234,
0.21959678828716278,
-0.015439221635460854,
0.11113644391298294,
-0.2860594689846039,
0.2297816127538681,
0.1622225046157837,
0.32048383355140686,
-0.4211917817592621,
-0.14351803064346313,
-0.16988132894039154,
0.05715082213282585,
-0.3703621029853821,
0.3384319543838501,
0.045201048254966736,
-0.32102787494659424,
0.21981249749660492,
0.2442413717508316,
-0.052066728472709656,
-0.1897226870059967,
0.1275731772184372,
0.20608839392662048,
0.3765234649181366,
-0.10286969691514969,
0.015783177688717842,
-0.0386529378592968,
-0.19667750597000122,
0.09990927577018738,
-0.20339378714561462,
0.046626798808574677,
0.2891250550746918,
-0.3035188615322113,
-0.06785379350185394,
0.03919128701090813,
-0.17982855439186096,
0.11543376743793488,
-0.2513125538825989,
-0.025180643424391747,
0.07109042257070541,
0.0023861550725996494,
0.00931454449892044,
0.09320832788944244,
0.1263340264558792,
0.2573838233947754,
0.29380351305007935,
0.3097378611564636,
0.22068290412425995,
-0.0685122013092041,
0.04447105526924133,
0.003832503454759717,
-0.09989506006240845,
0.04764827340841293,
0.17068763077259064,
0.2578560709953308,
-0.10943973809480667,
-0.3618168830871582,
0.003474196419119835,
-0.032497700303792953,
0.024419620633125305,
-0.0002830909506883472,
0.3031306862831116,
0.12521086633205414,
-0.12380384653806686,
0.16992616653442383,
0.2675573527812958,
-0.14355497062206268,
-0.32478708028793335,
-0.11812841147184372,
0.3308385908603668,
-0.18904022872447968,
-0.14755791425704956,
0.24923470616340637,
-0.1676844358444214,
-0.014540694653987885,
-0.07859400659799576,
0.14804184436798096,
-0.07639557868242264,
-0.13467229902744293,
-0.19828516244888306,
-0.10272940993309021,
0.13399361073970795,
-0.033029746264219284,
0.06550606340169907,
0.37301188707351685,
-0.5284388661384583,
-0.1443895399570465,
0.054699257016181946,
-0.027695218101143837,
-0.2500070631504059,
-0.04746416211128235,
0.225629061460495,
0.022118916735053062,
0.05731852725148201,
-0.34910210967063904,
0.4549735188484192,
0.27649086713790894,
-0.030474616214632988,
-0.014218602329492569,
-0.22283735871315002,
-0.04562907665967941,
-0.18617890775203705,
0.19861848652362823,
0.5018192529678345,
-0.3949000835418701,
-0.02552676573395729,
-0.2958814203739166,
-0.015885744243860245,
0.17094825208187103,
0.3286670446395874,
-0.12962111830711365,
0.3348810374736786,
-0.33770978450775146,
0.268074095249176,
0.38654908537864685,
-0.32867705821990967,
-0.26524534821510315,
0.0421011857688427,
-0.08437976241111755,
-0.01668555662035942,
0.1469523012638092,
-0.00857467483729124,
0.15432286262512207,
0.05682847648859024,
0.21263714134693146,
0.1990090161561966,
0.009834826923906803,
0.09030292183160782,
-0.21576347947120667,
0.08755218237638474,
0.23707439005374908,
0.1217467188835144,
0.2510003447532654,
-0.04290979355573654,
0.1854165643453598,
0.10804726183414459,
0.2132851779460907,
-0.31570491194725037,
0.3144254982471466,
0.02353348582983017,
0.23315560817718506,
-0.06487949937582016,
-0.09761512279510498,
-0.3182430863380432,
-0.03406490013003349,
0.1612090915441513,
-0.09049542993307114,
0.38258418440818787,
-0.509048342704773,
-0.13938969373703003,
-0.451004296541214,
0.009789642877876759,
-0.41439148783683777,
-0.2540184557437897,
0.20005518198013306,
0.05246114358305931,
0.14348441362380981,
0.14026318490505219,
-0.15126857161521912,
0.5673832297325134,
-0.3430074453353882,
0.016680443659424782,
-0.07048224657773972,
0.34891191124916077,
-0.3280915915966034,
-0.2981005907058716,
0.2780769467353821,
0.22819773852825165,
0.07827843725681305,
-0.10924561321735382,
-0.1381416916847229,
0.28619056940078735,
-0.25324276089668274,
0.002744079800322652,
0.13186295330524445,
-0.21893496811389923,
-0.023548804223537445,
-0.4651161730289459,
0.14608895778656006,
0.1815543919801712,
0.2387862652540207,
-0.19930727779865265,
0.012636671774089336,
0.449356347322464,
0.3232329189777374,
0.10395657271146774,
-0.004102730192244053,
0.00956246629357338,
0.40098556876182556,
0.05257425457239151,
-0.018391795456409454,
-0.19861839711666107,
0.256843626499176,
-0.07519953697919846,
0.2822480797767639,
-0.20669467747211456,
-0.28292158246040344,
0.013571209274232388,
0.3775036036968231,
0.049140457063913345,
0.44719159603118896,
0.15337876975536346,
-0.10329780727624893,
-0.01959899626672268,
-0.1601632982492447,
0.12077772617340088,
0.33031323552131653,
0.02813374623656273,
-0.04623347893357277,
0.21448065340518951,
-0.10150052607059479,
-0.1845666766166687,
0.21783094108104706,
-0.008870231918990612,
0.05280212685465813,
0.20286208391189575,
0.12822237610816956,
-0.09928522258996964,
-0.38075536489486694,
-0.21880407631397247,
-0.01025358960032463,
0.33876216411590576,
-0.2657977044582367,
0.0051070018671453,
-0.127150759100914,
-0.3741125464439392,
-0.19961197674274445,
0.21059110760688782,
-0.127485454082489,
-0.21774809062480927,
0.03890763968229294,
-0.040713582187891006,
0.02909976616501808,
0.13275229930877686,
0.0913400650024414,
0.0010948432609438896,
0.11207138001918793,
-0.19720999896526337,
-0.020698515698313713,
-0.2795611023902893,
-0.19448190927505493,
0.11583212018013,
0.3588792085647583,
0.1520620733499527,
0.4850718080997467,
-0.3050045073032379,
0.013791630044579506,
-0.15483085811138153,
-0.44965729117393494,
-0.005844219587743282,
-0.3447462022304535,
0.07219062000513077,
0.09235921502113342,
0.20365877449512482,
-0.04285409301519394,
-0.4595809280872345,
0.3144112527370453,
-0.07249946147203445,
-0.3400888442993164,
0.14718209207057953,
-0.03508317843079567,
-0.07722421735525131,
-0.006532211322337389,
-0.711524248123169,
-0.3026196360588074,
-0.3755902945995331,
-0.05454704910516739,
-0.11789286136627197,
0.10178488492965698,
0.0756664052605629,
0.22192545235157013,
0.23366470634937286,
0.05222330614924431,
0.11422770470380783,
-0.20152635872364044,
-0.20007440447807312,
0.33612415194511414,
-0.31088241934776306,
-0.37607282400131226,
0.09445029497146606,
-0.13409733772277832,
0.3507675528526306,
-0.2822914123535156,
-0.3692147433757782,
0.20770429074764252,
-0.26743680238723755,
0.4491764307022095,
0.09266229718923569,
-0.13995365798473358,
0.3198355734348297,
0.011075526475906372,
-0.0922594889998436,
0.02026594802737236,
-0.22114218771457672,
0.12996070086956024,
-0.04060833156108856,
0.3319699168205261,
0.009671413339674473,
0.4739275276660919,
0.011861505918204784,
0.6238945126533508,
0.2154701054096222,
0.022820603102445602,
0.4156721234321594,
0.1736142635345459,
0.2669256925582886,
-0.30623865127563477,
-0.42082923650741577,
0.22768445312976837,
-0.06283269077539444,
0.11962329596281052,
0.03230384737253189,
-0.1091863289475441,
-0.28959497809410095,
-0.3509962260723114,
-0.32933568954467773,
-0.24678662419319153,
-0.30405983328819275,
0.17805998027324677,
-0.13393697142601013,
0.3296230733394623,
-0.15103720128536224,
-0.19774991273880005,
-0.14770233631134033,
0.09203299134969711,
-0.013546064496040344,
0.3433568775653839,
-0.31830039620399475,
0.08887837082147598,
-0.3328644633293152,
-0.2641271650791168,
-0.4069664776325226,
0.22104512155056,
0.1843545138835907,
0.0799066498875618,
-0.30193421244621277,
0.19880764186382294,
-0.0035236726980656385,
-0.06130827218294144,
0.17382346093654633,
-0.18152685463428497,
0.2074805200099945,
0.21461418271064758,
0.07278579473495483,
-0.08198387920856476,
0.011570069938898087,
-0.3653070628643036,
0.15260881185531616,
0.2256946712732315,
0.17233049869537354,
-0.4129527807235718,
0.08294923603534698,
0.022944044321775436,
0.13357941806316376,
-0.10138513892889023,
-0.08036855608224869,
-0.10861129313707352,
-0.36184653639793396,
-0.5332016944885254,
0.22365625202655792,
0.38537222146987915,
0.42658916115760803,
-0.003414383390918374,
0.22686053812503815,
0.11888599395751953,
-0.087685726583004,
0.18698903918266296,
0.1162843331694603,
0.048270855098962784,
0.18311229348182678,
0.18439848721027374,
0.08210068196058273,
0.008714666590094566,
-0.06820337474346161,
0.6501702666282654,
0.24224461615085602,
-0.5056647062301636,
-0.13158848881721497,
-0.23699326813220978,
0.1060505285859108,
0.19450311362743378,
-0.06313296407461166,
0.02186686173081398,
-0.019510693848133087,
-0.04681244120001793,
0.07103317230939865,
0.25464168190956116,
0.25305283069610596,
0.3129631280899048,
-0.42402878403663635,
-0.3952418565750122,
0.09297453612089157,
-0.2013547420501709,
-0.01967451348900795,
-0.024884870275855064,
0.25200966000556946,
-0.4255008101463318,
0.25455760955810547,
-0.004593485966324806,
0.9560576677322388,
0.03477101027965546,
0.23393943905830383,
0.14941376447677612,
-0.18398414552211761,
0.1841406226158142,
0.028660142794251442,
-0.0593499131500721,
-0.15310107171535492,
0.1560569554567337,
-0.029891440644860268,
-0.02473255805671215,
0.2963774502277374,
-0.10798974335193634,
-0.30208340287208557,
0.09644605219364166,
-0.027894599363207817,
-0.11223292350769043,
-0.09037889540195465,
0.29755425453186035,
-0.1414356678724289,
-0.26575782895088196,
-0.5213627815246582,
0.19964519143104553,
-0.0886167511343956,
0.16616541147232056,
0.054711632430553436,
-0.13751912117004395,
-0.16893017292022705,
-0.38719454407691956,
-0.5968738198280334,
-0.008598686195909977,
-0.08722073584794998,
0.21623145043849945,
-0.16307665407657623,
-0.4250726103782654,
0.5653030276298523,
0.3926411271095276,
0.657198965549469,
0.1344228833913803,
-0.11756154894828796,
0.13070783019065857,
-0.1884855329990387,
-0.24168673157691956,
0.12481153011322021,
0.05816442891955376,
0.3777546286582947,
-0.23914314806461334,
-0.3237071931362152,
0.29995858669281006,
-0.00024835290969349444,
-0.1739889681339264,
-0.3040998876094818,
-0.16430595517158508,
-0.09438323229551315,
-0.2417105734348297,
-0.12733501195907593,
-0.09505991637706757,
-0.20038053393363953,
-0.34136754274368286,
0.187236949801445,
0.1308601051568985,
-0.2187301367521286,
0.13254530727863312,
-0.03594426438212395,
-0.20038551092147827,
-0.07233409583568573,
0.3325364887714386,
0.20053361356258392,
0.026550306007266045,
0.740399956703186,
0.27422112226486206,
-0.24604877829551697,
-0.26864585280418396,
0.04410072788596153,
0.2170720398426056,
-0.10888093709945679,
0.10440700501203537,
0.04071704298257828,
-0.1658080369234085,
-0.11852451413869858,
0.5871526002883911,
0.14345476031303406,
-0.08346927165985107,
0.08922596275806427,
-0.3736433982849121,
-0.5136308073997498,
0.14036798477172852,
0.034494198858737946,
0.07110785692930222,
0.16053318977355957,
0.517558217048645,
0.19397814571857452,
0.2597585916519165,
-0.35456717014312744,
-0.019979864358901978,
-0.12650929391384125,
0.2201583981513977,
0.25642892718315125,
-0.10306382179260254,
0.1695171445608139,
0.09869196265935898,
0.1692529171705246,
0.2568182647228241,
-0.0744999423623085,
-0.25628677010536194,
-0.029707595705986023,
0.06849198788404465,
0.0609770230948925,
-0.018295707181096077,
0.06270506232976913,
-0.4180738627910614,
0.04655681550502777,
-0.019811782985925674,
0.0902305394411087,
0.17903785407543182,
-0.10408194363117218,
0.25231343507766724,
-0.095429427921772,
0.10271047055721283,
0.21904249489307404,
-0.004935842007398605,
-0.22291791439056396,
-0.03160315006971359,
0.11609584093093872,
-0.011886785738170147,
-0.008047636598348618,
-0.13229919970035553,
-0.08370812237262726,
0.03942929953336716,
-0.1864330768585205,
0.14574265480041504,
0.4332694411277771,
-0.33868369460105896,
0.06520912796258926,
0.04855545982718468,
0.20000799000263214,
0.08994123339653015,
-0.33560711145401,
0.21550476551055908,
0.14965008199214935,
0.1620500087738037,
-0.5012567043304443,
-0.026077179238200188,
-0.10486490279436111,
-0.13123434782028198,
0.17527294158935547,
0.0897098183631897,
-0.05301046743988991,
0.17184317111968994,
-0.06691955029964447,
0.04152671620249748,
0.2185550481081009,
-0.16882923245429993,
-0.018157662823796272,
0.17048300802707672,
-0.0814405009150505,
-0.022954653948545456,
0.39685410261154175,
0.17063109576702118,
0.08171430230140686,
0.7542800903320312,
-0.4638422131538391,
0.27285122871398926,
0.02838118188083172,
0.07989891618490219,
0.07516930252313614,
-0.045379702001810074,
0.25224846601486206,
0.06658906489610672,
-0.15791155397891998,
0.16911011934280396,
0.00046678929356858134,
0.23413053154945374,
-0.17010827362537384,
0.10330600291490555,
0.06907321512699127,
0.03034149296581745,
-0.1861150711774826,
0.04514027014374733,
-0.2474013864994049,
-0.16477279365062714,
-0.08386693149805069,
-0.13830238580703735,
-0.16348806023597717,
-0.004615276586264372,
0.31667596101760864,
0.03174979239702225,
-0.16460947692394257,
-0.3379206657409668,
0.16917580366134644,
0.009447340853512287,
0.2030901312828064,
-0.22486262023448944,
0.28590935468673706,
0.4393931031227112,
0.006821028888225555,
0.20725423097610474,
0.2722850441932678,
0.5848602652549744,
0.25578904151916504,
-0.3220207095146179,
0.2581305503845215,
-0.19161508977413177,
-0.35101979970932007,
0.015338367782533169,
0.20820868015289307,
0.3283080756664276,
0.4378293752670288,
0.2944049835205078,
0.2015211582183838,
-0.16135038435459137,
-0.008940494619309902,
0.2797057032585144,
0.09700878709554672,
-0.07757779955863953,
0.17494909465312958,
-0.21065081655979156,
-0.14003466069698334,
-0.27635741233825684,
0.029191136360168457,
-0.40620315074920654,
-0.057447146624326706,
0.2399069368839264,
0.05814146623015404,
0.14197464287281036,
-0.2554060220718384,
0.10375498235225677,
-0.0013101500226184726,
0.44382911920547485,
0.23244185745716095,
0.021444840356707573,
-0.4274406433105469,
-0.20469217002391815,
-0.7065242528915405,
-0.042018961161375046,
-0.08059555292129517,
-0.2868052124977112,
-0.24106352031230927,
0.031006135046482086,
0.389321893453598,
0.1040714755654335,
0.18281720578670502,
-0.03379015251994133,
-0.20518870651721954,
-0.06010938063263893,
-0.23380950093269348,
-0.2392839789390564,
0.03889317810535431,
0.1976129561662674,
0.05172622203826904,
-0.07288452237844467,
0.1848483830690384,
0.42002424597740173,
0.09886425733566284,
-0.18606096506118774,
0.035888444632291794,
0.0744067132472992,
-0.20811986923217773,
0.05464771017432213,
0.155643492937088,
0.6450898051261902,
-0.185421422123909,
0.03294890373945236,
-0.04147996008396149,
-0.079691581428051,
-0.13849173486232758,
0.47967517375946045,
0.2791805863380432,
0.6704039573669434,
-0.2028394490480423,
-0.0311051607131958,
-0.07153917849063873,
0.43671557307243347,
-0.028989944607019424,
-0.3920426070690155,
-0.2773580849170685,
0.22601759433746338,
0.1188502311706543,
0.15526796877384186,
-0.12160918861627579,
0.33874455094337463,
-0.08390079438686371,
0.055587537586688995,
-0.3392181098461151,
-0.5602795481681824,
0.3288578689098358,
-0.130748450756073,
-0.4304898679256439,
0.15668486058712006,
0.06628716737031937,
0.3002913296222687,
0.13716500997543335,
-0.7134615182876587,
0.25557786226272583,
0.2097672075033188,
-0.03244485333561897,
-0.1433791071176529,
0.1805783212184906,
0.010632270015776157,
0.1486520767211914,
-0.04873703047633171,
0.434638112783432,
-0.03549725562334061,
-0.07641977816820145,
-0.008387361653149128,
-0.3005460202693939
] |
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.16120989620685577,
0.06667253375053406,
0.12359873950481415,
0.14211808145046234,
0.12110598385334015,
-0.09257282316684723,
0.4181313216686249,
0.1090155839920044,
0.17314808070659637,
-0.07805059850215912,
0.11544584482908249,
0.6156935095787048,
-0.02113940380513668,
-0.13319462537765503,
0.1611657291650772,
0.23215141892433167,
0.17596404254436493,
0.1501922309398651,
0.08690982311964035,
-0.18116028606891632,
-0.19346986711025238,
0.09174450486898422,
-0.4173080325126648,
-0.10696534067392349,
-0.4597245156764984,
0.024705715477466583,
-0.1255619376897812,
-0.025920292362570763,
0.23077018558979034,
-0.37398311495780945,
0.34169477224349976,
0.028604499995708466,
0.3293195962905884,
0.434064656496048,
-0.00012403483560774475,
-0.06293290108442307,
0.18991155922412872,
-0.11913034319877625,
-0.2047802209854126,
-0.24169889092445374,
-0.0412893183529377,
-0.06350231915712357,
0.17220251262187958,
-0.17772741615772247,
0.004968013148754835,
0.10666991770267487,
-0.06366808712482452,
-0.5965543389320374,
0.3043346405029297,
0.26775503158569336,
0.09437199681997299,
0.03729328140616417,
-0.2589367926120758,
0.22345289587974548,
-0.09727855026721954,
-0.1032879427075386,
-0.08476745337247849,
0.035640668123960495,
0.2718014121055603,
-0.40424278378486633,
-0.1610346883535385,
0.34303951263427734,
-0.2559066414833069,
0.19869136810302734,
0.38003578782081604,
0.06395609676837921,
-0.1315130740404129,
-0.36240121722221375,
0.35550883412361145,
-0.10612476617097855,
0.28273805975914,
-0.4287840723991394,
-0.11804347485303879,
-0.33754074573516846,
-0.10855507105588913,
-0.1223062127828598,
0.20840606093406677,
-0.12880730628967285,
0.16781528294086456,
0.12318801134824753,
-0.36312997341156006,
-0.07823965698480606,
0.19852620363235474,
0.20720593631267548,
-0.14947032928466797,
0.4666350483894348,
-0.18641884624958038,
0.2081398218870163,
-0.14785845577716827,
0.059791792184114456,
0.299893856048584,
-0.17238099873065948,
0.05789276584982872,
0.45530256628990173,
-0.1857805848121643,
0.004988218657672405,
0.1042594313621521,
0.016433844342827797,
-0.06919895857572556,
-0.0429939404129982,
0.09923966228961945,
0.07139056921005249,
-0.07835396379232407,
0.056307680904865265,
0.11883921176195145,
0.4971543848514557,
0.09555858373641968,
0.3987933099269867,
0.19239726662635803,
-0.07125767320394516,
-0.7449440956115723,
-0.17289559543132782,
-0.1321699470281601,
0.035137664526700974,
0.4841662049293518,
0.10779885202646255,
0.17354850471019745,
-0.01199492160230875,
0.016338689252734184,
0.051133766770362854,
-0.2896794080734253,
-0.21111130714416504,
0.1056538000702858,
0.4156185984611511,
-0.08019430190324783,
0.15352477133274078,
-0.09498569369316101,
0.14373432099819183,
-0.19452817738056183,
0.04101516306400299,
-0.12124200165271759,
-0.14581097662448883,
-0.2652318477630615,
0.3765377700328827,
0.2610451877117157,
0.12392666935920715,
0.4008922576904297,
0.10995002090930939,
-0.033394623547792435,
-0.24570026993751526,
0.3013138473033905,
-0.05830710008740425,
0.595838189125061,
0.1623578816652298,
-0.011866063810884953,
0.5882647037506104,
0.243046373128891,
0.0027761971578001976,
-0.13128505647182465,
0.23405194282531738,
-0.6722651720046997,
-0.0946240946650505,
0.48096662759780884,
-0.003846829291433096,
-0.1870747208595276,
-0.09045708179473877,
-0.2192808985710144,
0.058335982263088226,
0.5520723462104797,
-0.2391301542520523,
0.0510408990085125,
-0.3370286822319031,
-0.37071457505226135,
-0.40021687746047974,
0.16979190707206726,
0.5289983749389648,
-0.09080591052770615,
-0.14195546507835388,
-0.23033669590950012,
0.4682979881763458,
0.20799870789051056,
0.14232102036476135,
-0.31778571009635925,
0.2858123481273651,
-0.30387768149375916,
0.32478296756744385,
0.20618660748004913,
-0.40068554878234863,
-0.6898711919784546,
0.04441264644265175,
-0.018910938873887062,
0.2681930959224701,
-0.20626920461654663,
-0.06920146942138672,
0.24368782341480255,
-0.1089232861995697,
0.030617214739322662,
0.2620006501674652,
0.19785551726818085,
0.3179403245449066,
-0.2945936322212219,
-0.06972035020589828,
0.285495787858963,
-0.2398785799741745,
0.19030849635601044,
0.0873960554599762,
0.04877845197916031,
0.06849142909049988,
0.13007307052612305,
0.005078843329101801,
0.13779540359973907,
0.080283522605896,
0.18844139575958252,
-0.005797818303108215,
0.29428866505622864,
-0.004252152051776648,
-0.2619263231754303,
0.2479475885629654,
-0.20687057077884674,
-0.41931262612342834,
-0.126634418964386,
-0.0922156348824501,
-0.015847472473978996,
-0.18330475687980652,
-0.42200154066085815,
-0.3649424910545349,
0.053875621408224106,
0.26631876826286316,
0.1915198266506195,
0.15262764692306519,
-0.17012393474578857,
0.23968040943145752,
0.29253020882606506,
-0.12874849140644073,
-0.026447495445609093,
0.20794373750686646,
0.1729685664176941,
-0.14401064813137054,
-0.28899213671684265,
0.10646429657936096,
0.46213915944099426,
-0.1323598176240921,
-0.2746542692184448,
0.16955117881298065,
0.2887340486049652,
0.16128647327423096,
-0.2219233512878418,
0.02967788092792034,
0.10397648811340332,
0.07525482028722763,
0.20017293095588684,
0.20236404240131378,
0.12307757139205933,
-0.09771887212991714,
0.15751352906227112,
0.33274099230766296,
0.19185182452201843,
0.1902758777141571,
-0.013909180648624897,
-0.09602401405572891,
0.09414742887020111,
-0.18033573031425476,
0.11435660719871521,
-0.23813210427761078,
-0.15936675667762756,
-0.04641326889395714,
0.4003405272960663,
0.21477359533309937,
0.26899808645248413,
0.3867577314376831,
0.6588147878646851,
0.28247228264808655,
0.19875825941562653,
-0.09510909765958786,
-0.7050172686576843,
-0.24810658395290375,
0.050405316054821014,
0.22601065039634705,
0.36129748821258545,
-0.061594463884830475,
-0.022982927039265633,
0.04317343607544899,
0.19448502361774445,
-0.021319590508937836,
0.0175203625112772,
-0.043098315596580505,
0.22247692942619324,
0.2194308340549469,
0.21847468614578247,
0.2063402533531189,
-0.1053418219089508,
0.18634340167045593,
0.2211712896823883,
0.2342156320810318,
-0.16759507358074188,
0.1337200552225113,
-0.4766334295272827,
0.22244898974895477,
-0.10267452150583267,
-0.12992587685585022,
-0.08756788820028305,
-0.3107086420059204,
-0.1644134670495987,
0.4240454137325287,
0.19986996054649353,
0.21778231859207153,
0.2266712337732315,
0.054219841957092285,
-0.050388626754283905,
-0.2862822115421295,
-0.2200455665588379,
-0.32340481877326965,
-0.28923261165618896,
-0.13966447114944458,
0.21441711485385895,
-0.0832645446062088,
-0.0014518158277496696,
0.005745365750044584,
0.03934032469987869,
-0.3005695939064026,
-0.3118562698364258,
0.017897075042128563,
0.15312375128269196,
0.08914639800786972,
-0.30173009634017944,
-0.09301868826150894,
-0.3721906840801239,
-0.03757040575146675,
0.11136102676391602,
-0.43862658739089966,
-0.048365406692028046,
0.07445211708545685,
0.012251886539161205,
-0.09594861418008804,
0.10136300325393677,
-0.2232755720615387,
-0.2573916018009186,
0.03015356883406639,
0.07767193764448166,
-0.0911218449473381,
-0.02484026923775673,
-0.08522720634937286,
-0.09291311353445053,
-0.09443755447864532,
-0.17821666598320007,
-0.17135100066661835,
-0.348773717880249,
-0.24949689209461212,
0.3564099967479706,
-0.22924187779426575,
-0.1970823109149933,
-0.028621908277273178,
-0.021307220682501793,
0.22158615291118622,
0.23032578825950623,
-0.42299509048461914,
-0.13996343314647675,
-0.04645068570971489,
0.12764272093772888,
0.04078065603971481,
0.12311738729476929,
0.4344368577003479,
0.0824708417057991,
0.1826774626970291,
-0.21574780344963074,
-0.21617360413074493,
0.005898321978747845,
0.2345542162656784,
0.0929194763302803,
0.12586800754070282,
0.14681215584278107,
-0.03914579004049301,
0.8137379884719849,
0.33295488357543945,
-0.28913888335227966,
0.3945445418357849,
-0.07712215185165405,
0.19911549985408783,
-0.21797554194927216,
-0.3984622061252594,
-0.05657061189413071,
-0.1827707439661026,
-0.1908339560031891,
0.16933898627758026,
-0.037827957421541214,
-0.2157120555639267,
-0.05028492957353592,
-0.1973927617073059,
-0.3199206292629242,
-0.2977830767631531,
0.1104869395494461,
-0.17292389273643494,
0.321515291929245,
0.3823327124118805,
0.3232043981552124,
-0.5896293520927429,
-0.185132697224617,
0.14686577022075653,
0.07186693698167801,
0.3774522542953491,
0.06675636023283005,
-0.2743137776851654,
-0.2742214798927307,
-0.2854086458683014,
0.22522985935211182,
0.05437536910176277,
0.45619523525238037,
0.0394052155315876,
-0.14485692977905273,
0.002704976126551628,
0.09722695499658585,
0.2747097909450531,
-0.4058220088481903,
0.01444925181567669,
0.23187531530857086,
-0.16902951896190643,
-0.08411905169487,
-0.16445714235305786,
0.0765199288725853,
0.43330517411231995,
0.1963195949792862,
0.4632548689842224,
0.22218963503837585,
0.045810773968696594,
-0.319592148065567,
0.30169111490249634,
-0.24155430495738983,
-0.07760939002037048,
-0.3578522205352783,
0.03583779186010361,
-0.4233507513999939,
-0.0533771812915802,
-0.07221600413322449,
-0.12550987303256989,
0.03049696795642376,
-0.11906532943248749,
-0.2477414309978485,
-0.1286759078502655,
0.015926089137792587,
0.2879597246646881,
0.43738293647766113,
0.15202085673809052,
0.27773821353912354,
0.2438926249742508,
-0.09254523366689682,
0.22420433163642883,
0.23019587993621826,
-0.19362352788448334,
-0.16225449740886688,
-0.07048843801021576,
0.02644968032836914,
0.258574903011322,
0.09492892026901245,
-0.3744319975376129,
-0.07174012809991837,
-0.14705052971839905,
-0.13331277668476105,
-0.1991477906703949,
0.03900744020938873,
0.11983338743448257,
0.20400168001651764,
-0.2184666395187378,
-0.4964637756347656,
0.13157261908054352,
0.1148117333650589,
-0.22417734563350677,
0.47842806577682495,
-0.5268224477767944,
-0.2337673157453537,
0.4640762507915497,
-0.15890787541866302,
0.6939272284507751,
-0.2030058354139328,
-0.01317284069955349,
-0.15695784986019135,
0.2673534154891968,
0.3175947368144989,
-0.2601315975189209,
0.19338448345661163,
-0.40790194272994995,
-0.07053011655807495,
0.017670324072241783,
-0.2399066686630249,
-0.060328409075737,
0.06225041672587395,
-0.364601731300354,
0.2890157699584961,
0.045674681663513184,
0.3356080949306488,
-0.011541969142854214,
0.21045517921447754,
0.2857832610607147,
-0.13722024857997894,
-0.05687423795461655,
0.08195438235998154,
0.06852882355451584,
0.47166723012924194,
-0.003663067938759923,
0.004344085697084665,
0.07108873128890991,
-0.04495448246598244,
-0.09134357422590256,
0.11234388500452042,
-0.7211803197860718,
0.3068862855434418,
-0.17470568418502808,
0.03364153206348419,
-0.05164399370551109,
0.24319472908973694,
0.3510494828224182,
0.19376471638679504,
-0.12820717692375183,
0.18682867288589478,
0.1930038332939148,
0.24863611161708832,
-0.0477934405207634,
-0.3190561830997467,
0.1430824100971222,
0.14766249060630798,
-0.17885556817054749,
-0.023467035964131355,
-0.062438610941171646,
-0.39106485247612,
-0.25379401445388794,
0.27181345224380493,
0.470098078250885,
-0.19073376059532166,
-0.1381174474954605,
0.18592046201229095,
-0.02691659703850746,
-0.10349122434854507,
0.027351483702659607,
0.15451323986053467,
0.09788111597299576,
0.506622850894928,
-0.3040742874145508,
-0.35296836495399475,
0.0917913019657135,
0.5403842329978943,
0.139485165476799,
-0.07342741638422012,
0.37890711426734924,
-0.23895883560180664,
-0.07404426485300064,
-0.12995854020118713,
0.04303651303052902,
-0.046973153948783875,
-0.235539510846138,
0.23354195058345795,
-0.09140309691429138,
0.18684272468090057,
0.09002482891082764,
-0.03553095832467079,
-0.2137669026851654,
0.016254272311925888,
-0.30443671345710754,
-0.37374892830848694,
-0.3308829367160797,
-0.08634687215089798,
0.051114995032548904,
-0.08650076389312744,
0.4272456765174866,
0.2910870313644409,
0.060128990560770035,
0.21895594894886017,
-0.18951867520809174,
0.2773417532444,
0.3314100503921509,
0.16507481038570404,
-0.1432037204504013,
-0.06375163793563843,
0.017693454399704933,
-0.15439258515834808,
-0.04805498570203781,
0.17090122401714325,
-0.04991340637207031,
-0.12039705365896225,
-0.1994166374206543,
0.22195856273174286,
0.1711621880531311,
-0.021731451153755188,
-0.29196053743362427,
-0.3067834675312042,
0.16308744251728058,
-0.5828195214271545,
0.12742996215820312,
0.20632241666316986,
-0.09326247870922089,
0.009513436816632748,
0.37845996022224426,
-0.19838963449001312,
-0.0699831172823906,
0.07378794997930527,
-0.33431771397590637,
-0.15352287888526917,
0.006280818488448858,
0.2818325161933899,
0.1830982267856598,
0.1900153011083603,
-0.036717310547828674,
-0.22395767271518707,
0.10025651752948761,
0.06556350737810135,
0.3466317355632782,
-0.2847488820552826,
-0.10315210372209549,
0.03667692840099335,
-0.2593299448490143,
0.2991604804992676,
-0.1855582892894745,
-0.234184131026268,
0.28745827078819275,
0.07217197120189667,
-0.2727130055427551,
-0.1777092069387436,
0.46326249837875366,
0.16241297125816345,
-0.05381988734006882,
0.20886200666427612,
0.39715635776519775,
-0.17309871315956116,
0.22250546514987946,
0.07208466529846191,
0.640904426574707,
-0.21010641753673553,
0.3045119345188141,
0.04420372471213341,
0.08775384724140167,
0.299076110124588,
0.2292417734861374,
0.2153172791004181,
-0.13047660887241364,
0.2860996127128601,
0.05020466819405556,
0.289538711309433,
0.25989097356796265,
-0.09949865937232971,
-0.005413857754319906,
-0.47308045625686646,
0.015753084793686867,
0.13800211250782013,
-0.3188566565513611,
0.3985806703567505,
-0.07820382714271545,
0.08219869434833527,
-0.08053721487522125,
-0.13195444643497467,
-0.020269639790058136,
0.2977835237979889,
-0.36039862036705017,
-0.1637580394744873,
0.19184933602809906,
-0.09864751994609833,
0.05161930248141289,
0.05297025293111801,
0.021768374368548393,
0.0985930934548378,
0.4778096675872803,
0.08222208172082901,
-0.3910202085971832,
-0.06289784610271454,
-0.3392605483531952,
0.1961570382118225,
0.4229784309864044,
-0.18098826706409454,
0.26354432106018066,
-0.3162917196750641,
0.03904319182038307,
-0.1846117526292801,
0.10909555852413177,
0.38591623306274414,
0.45599594712257385,
-0.20925462245941162,
0.21419987082481384,
0.22361773252487183,
0.06624075770378113,
-0.1414038985967636,
0.30606207251548767,
-0.13431061804294586,
-0.08278325200080872,
-0.07854363322257996,
0.020349977537989616,
-0.005041147116571665,
-0.09616243839263916,
-0.0192345529794693,
0.30186185240745544,
-0.015399428084492683,
0.04972698912024498,
0.016482705250382423,
-0.03326652571558952,
-0.11399322003126144,
0.2352299988269806,
-0.24419566988945007,
0.202922984957695,
0.5567866563796997,
-0.008603732101619244,
0.14962129294872284,
-0.32172203063964844,
0.034883663058280945,
0.12194763123989105,
0.21719108521938324,
0.314990758895874,
-0.2996424734592438,
-0.40976521372795105,
-0.26769787073135376,
-0.7540671229362488,
0.33543655276298523,
-0.18381409347057343,
0.2210143804550171,
-0.05877136066555977,
0.08054037392139435,
-0.09036142379045486,
-0.1343173384666443,
0.1655183732509613,
-0.05265699699521065,
0.023183854296803474,
0.18467773497104645,
-0.23350879549980164,
-0.1410389393568039,
-0.3344895541667938,
0.08516690135002136,
0.14680081605911255,
-0.34030911326408386,
0.27422472834587097,
-0.14839093387126923,
0.0004369527450762689,
-0.23218028247356415,
-0.10873265564441681,
0.013137569651007652,
0.008271009661257267,
0.8180851340293884,
0.15539459884166718,
0.17735588550567627,
-0.03416617959737778,
0.17844977974891663,
-0.24992148578166962,
0.07681547850370407,
-0.036919184029102325,
0.0287612434476614,
-0.00016435531142633408,
0.0974196270108223,
-0.1688401997089386,
-0.17677535116672516,
-0.5049834847450256,
-0.16056205332279205,
0.26360389590263367,
-0.11144695430994034,
-0.0918084979057312,
0.032722532749176025,
-0.05833926424384117,
0.3533479571342468,
-0.09206614643335342,
0.46321260929107666,
-0.19383873045444489,
0.3721649646759033,
-0.28001654148101807,
-0.16769999265670776,
0.3528716564178467,
-0.653923749923706,
-0.4455690383911133,
-0.2375851422548294,
0.3042321503162384,
-0.29369276762008667,
-0.2092622071504593,
-0.506847620010376,
-0.020397184416651726,
0.4445630609989166,
-0.011422666721045971,
-0.2154310792684555,
0.053724344819784164,
-0.0901704952120781,
0.22561520338058472,
-0.2515745759010315,
0.22793057560920715,
0.2003178596496582,
-0.21472181379795074,
0.0753311812877655,
-0.14737430214881897
] |
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.07241499423980713,
0.09145847707986832,
0.009581024758517742,
0.15996329486370087,
-0.06600992381572723,
0.4047469198703766,
0.2460479587316513,
0.22598525881767273,
-0.08738026767969131,
0.11444027721881866,
0.516857385635376,
-0.05836925283074379,
-0.16865216195583344,
0.14542526006698608,
0.17430447041988373,
0.2147076278924942,
0.16131900250911713,
0.015195640735328197,
-0.1748613566160202,
-0.22608262300491333,
-0.0004946945700794458,
-0.3888827860355377,
-0.05302000790834427,
-0.4167592227458954,
0.11895252019166946,
-0.14968332648277283,
-0.06417854875326157,
0.21033601462841034,
-0.471139520406723,
0.3424898386001587,
0.12528839707374573,
0.29241207242012024,
0.37149977684020996,
-0.00011757417814806104,
-0.032582610845565796,
0.23810124397277832,
-0.08872122317552567,
-0.16876977682113647,
-0.19848547875881195,
-0.09116452187299728,
-0.07843007892370224,
0.11407527327537537,
-0.17402060329914093,
0.014861885458230972,
-0.06703462451696396,
-0.05801817402243614,
-0.5517772436141968,
0.344901442527771,
0.266075074672699,
0.15694759786128998,
0.09166492521762848,
-0.13243676722049713,
0.14091522991657257,
-0.09194749593734741,
-0.1474604308605194,
-0.04021001234650612,
-0.17671895027160645,
0.2883949279785156,
-0.407317578792572,
-0.18619251251220703,
0.24079759418964386,
-0.14709161221981049,
0.08808643370866776,
0.34595373272895813,
0.026489291340112686,
-0.19789358973503113,
-0.3031316101551056,
0.30969810485839844,
-0.060925379395484924,
0.36514440178871155,
-0.40835249423980713,
-0.2633095979690552,
-0.27160751819610596,
-0.12929075956344604,
-0.030637405812740326,
0.1167382150888443,
-0.21743911504745483,
0.21543791890144348,
0.1586678922176361,
-0.468925803899765,
-0.1160355731844902,
0.11138659715652466,
0.19119319319725037,
-0.1262921392917633,
0.42786905169487,
-0.08623107522726059,
0.18058468401432037,
-0.1728988140821457,
-0.05244164168834686,
0.16300679743289948,
-0.1279250532388687,
0.05927100032567978,
0.5038400292396545,
-0.1977025866508484,
-0.02713199332356453,
0.15390834212303162,
-0.048614468425512314,
0.057408250868320465,
0.11033706367015839,
-0.009578339755535126,
0.2165234386920929,
-0.19875606894493103,
-0.029594406485557556,
0.152569979429245,
0.500895082950592,
0.15954647958278656,
0.4105486273765564,
0.103707455098629,
-0.09126976877450943,
-0.6493966579437256,
-0.16862039268016815,
-0.12851503491401672,
-0.05767933651804924,
0.6006776094436646,
0.03523227944970131,
0.2038295716047287,
-0.0009119279566220939,
0.10980820655822754,
0.0979166179895401,
-0.07160276919603348,
-0.19001547992229462,
0.033754680305719376,
0.4491540491580963,
-0.03978446125984192,
0.3059875965118408,
-0.09419041872024536,
0.2121896892786026,
-0.1355019062757492,
0.05623091757297516,
-0.19566592574119568,
-0.2108471542596817,
-0.1978408396244049,
0.28942063450813293,
0.23243960738182068,
0.1111551821231842,
0.3557316064834595,
0.08973139524459839,
-0.03256140649318695,
-0.12094554305076599,
0.2773372530937195,
0.04402611777186394,
0.6040588021278381,
0.1215033084154129,
-0.023141922429203987,
0.5818356871604919,
0.2637903690338135,
0.0014681440079584718,
-0.15114909410476685,
0.1716982126235962,
-0.6476755738258362,
-0.16971834003925323,
0.38858550786972046,
0.08996053785085678,
-0.20568221807479858,
-0.15718194842338562,
-0.15736353397369385,
-0.010751528665423393,
0.5134233832359314,
-0.2149520367383957,
-0.012253289110958576,
-0.3363991379737854,
-0.341278076171875,
-0.3847540616989136,
0.1996465027332306,
0.44018739461898804,
-0.0512298047542572,
-0.1549958437681198,
-0.13650080561637878,
0.3355626165866852,
0.13257673382759094,
0.10709475725889206,
-0.35551562905311584,
0.33026137948036194,
-0.253938764333725,
0.37725600600242615,
0.28821003437042236,
-0.448125422000885,
-0.704511821269989,
0.028933599591255188,
0.014852848835289478,
0.2682563364505768,
-0.2539275586605072,
-0.14518417418003082,
0.2909586727619171,
-0.17241942882537842,
-0.07946252077817917,
0.26838165521621704,
0.21999655663967133,
0.33509260416030884,
-0.25603705644607544,
-0.13637085258960724,
0.325718492269516,
-0.16900953650474548,
0.21523833274841309,
0.023673461750149727,
-0.021999822929501534,
0.09551172703504562,
0.14558501541614532,
-0.00971202738583088,
0.24445132911205292,
0.16079674661159515,
0.17614394426345825,
0.08809129148721695,
0.32284975051879883,
-0.07430604845285416,
-0.24998855590820312,
0.28981727361679077,
-0.1547444462776184,
-0.44900932908058167,
-0.0971907526254654,
-0.1066674217581749,
-0.10246159136295319,
-0.16027040779590607,
-0.5025535225868225,
-0.27565011382102966,
0.13043057918548584,
0.2702076733112335,
0.24305586516857147,
0.1169801726937294,
-0.22882750630378723,
0.12041132152080536,
0.3192526698112488,
-0.12633799016475677,
-0.08702298253774643,
0.14952675998210907,
0.16313141584396362,
-0.09887760877609253,
-0.2654801607131958,
0.08365349471569061,
0.411359578371048,
-0.09109409898519516,
-0.2791554927825928,
0.22016876935958862,
0.21303735673427582,
0.22884905338287354,
-0.065884068608284,
0.0021965722553431988,
0.02300618402659893,
-0.04227467626333237,
0.14551092684268951,
0.23421937227249146,
0.08800029754638672,
-0.11729283630847931,
0.11153130978345871,
0.22273953258991241,
0.21698571741580963,
0.20374269783496857,
-0.005545878782868385,
-0.032044630497694016,
0.11145307868719101,
-0.16955365240573883,
0.09910430014133453,
-0.24828875064849854,
-0.22172731161117554,
-0.14473141729831696,
0.3873695731163025,
0.12673115730285645,
0.35425087809562683,
0.3342248201370239,
0.6654905676841736,
0.17409144341945648,
0.17550241947174072,
0.04770336672663689,
-0.6600906252861023,
-0.2747759521007538,
-0.09002432972192764,
0.16252723336219788,
0.2718922793865204,
-0.003267840715125203,
-0.052394770085811615,
-0.059241004288196564,
0.1783808022737503,
0.06885336339473724,
0.06342928856611252,
-0.023998642340302467,
0.10102882981300354,
0.1833837777376175,
0.19373862445354462,
0.15290118753910065,
-0.10323598980903625,
0.17403453588485718,
0.1970166563987732,
0.26344001293182373,
-0.163813978433609,
0.01781403459608555,
-0.40339195728302,
0.40588709712028503,
-0.011080619879066944,
-0.2489241361618042,
-0.047392282634973526,
-0.35112470388412476,
-0.056028369814157486,
0.2632540762424469,
0.06091761961579323,
0.2647624909877777,
0.05766618996858597,
-0.018237009644508362,
0.00625154422596097,
-0.35722649097442627,
-0.27162641286849976,
-0.41467776894569397,
-0.22496668994426727,
-0.06444735825061798,
0.1597520262002945,
-0.11843721568584442,
0.12420438975095749,
-0.022265853360295296,
0.08288990706205368,
-0.350931316614151,
-0.2879325747489929,
-0.06059331074357033,
0.0784299224615097,
-0.037227608263492584,
-0.24621886014938354,
0.010665202513337135,
-0.2674314081668854,
-0.11377989500761032,
0.16335102915763855,
-0.5391673445701599,
-0.04147237911820412,
0.18993723392486572,
0.01735631935298443,
-0.060904983431100845,
0.13965384662151337,
-0.3343355059623718,
-0.18553033471107483,
0.014655563980340958,
0.07902779430150986,
-0.002506566233932972,
-0.0581577830016613,
-0.0783228725194931,
-0.08067861199378967,
-0.12903110682964325,
-0.26791030168533325,
-0.14954645931720734,
-0.35556527972221375,
-0.3247361183166504,
0.3774479925632477,
-0.23813705146312714,
-0.26582732796669006,
-0.09182550758123398,
-0.023352673277258873,
0.21560178697109222,
0.218479722738266,
-0.3069501221179962,
-0.06845653057098389,
-0.18365493416786194,
0.19319884479045868,
0.012749445624649525,
0.15177029371261597,
0.4884284734725952,
0.13608315587043762,
0.0904138833284378,
-0.21518881618976593,
-0.04383617639541626,
0.059498898684978485,
0.1414826363325119,
0.031021298840641975,
0.07027611136436462,
0.06304538249969482,
-0.015829425305128098,
0.8712037205696106,
0.33943048119544983,
-0.24347516894340515,
0.3906837999820709,
-0.11663957685232162,
0.1712311953306198,
-0.2813175916671753,
-0.36868858337402344,
-0.09210848808288574,
-0.19652989506721497,
-0.03619001433253288,
0.13988180458545685,
0.0031312592327594757,
-0.19938227534294128,
0.0029486152343451977,
-0.1436549723148346,
-0.42103874683380127,
-0.29257550835609436,
0.07499753683805466,
-0.09563380479812622,
0.2742873728275299,
0.3240700364112854,
0.2811281979084015,
-0.658851146697998,
-0.24076098203659058,
0.20888879895210266,
-0.04150991141796112,
0.39595216512680054,
-0.016556350514292717,
-0.35972848534584045,
-0.09427879750728607,
-0.3311757743358612,
0.2504331171512604,
0.0488029308617115,
0.41426920890808105,
0.09387383610010147,
-0.2136966586112976,
-0.04535256698727608,
0.07693064957857132,
0.22193315625190735,
-0.38883769512176514,
0.047380827367305756,
0.2300526648759842,
-0.14695890247821808,
-0.18878644704818726,
-0.1479179710149765,
0.048371486365795135,
0.2653455436229706,
0.18812522292137146,
0.4231225848197937,
0.14207971096038818,
0.00043056177673861384,
-0.35938122868537903,
0.3494276702404022,
-0.24316895008087158,
-0.03855913504958153,
-0.30271098017692566,
0.0839008018374443,
-0.5145268440246582,
-0.09966612607240677,
-0.0840018019080162,
-0.043063513934612274,
-0.03388788923621178,
-0.110008604824543,
-0.2868143618106842,
-0.10158747434616089,
-0.02054586261510849,
0.23677055537700653,
0.4534938633441925,
0.03866047039628029,
0.32911592721939087,
0.2824525237083435,
-0.18345336616039276,
0.17817460000514984,
0.24568253755569458,
-0.13286437094211578,
-0.24847717583179474,
-0.16815203428268433,
0.09059096872806549,
0.2635985314846039,
0.03883248567581177,
-0.2994982898235321,
-0.07385332137346268,
-0.17918020486831665,
-0.02015855722129345,
-0.32517051696777344,
0.08451291173696518,
0.2234959453344345,
0.10663894563913345,
-0.26219087839126587,
-0.4880991280078888,
0.16623486578464508,
0.0820380300283432,
-0.1978459656238556,
0.5077853202819824,
-0.3288021981716156,
-0.17825672030448914,
0.5263881087303162,
-0.16723018884658813,
0.7030586004257202,
-0.2614824175834656,
0.02273491956293583,
-0.14842906594276428,
0.30797669291496277,
0.28235891461372375,
-0.2782195806503296,
0.03770504891872406,
-0.4485227167606354,
-0.07384844124317169,
0.03707509487867355,
-0.1756741851568222,
-0.05014490708708763,
0.08578433841466904,
-0.37080085277557373,
0.26306843757629395,
-0.03073500469326973,
0.42427054047584534,
0.0008196849375963211,
0.29509902000427246,
0.2175416499376297,
-0.16115443408489227,
0.07092621177434921,
0.14752119779586792,
0.09551787376403809,
0.412678599357605,
0.03859030082821846,
-0.024280063807964325,
0.052447643131017685,
-0.06920383125543594,
-0.13680799305438995,
0.13073185086250305,
-0.46978825330734253,
0.33413034677505493,
-0.15298625826835632,
0.11900074034929276,
-0.060301609337329865,
0.36219000816345215,
0.3968268036842346,
0.19835084676742554,
-0.25660568475723267,
0.2645445168018341,
0.09788293391466141,
0.2188670039176941,
0.013379443436861038,
-0.20774748921394348,
0.08404579758644104,
0.19268319010734558,
-0.29338017106056213,
0.06946437805891037,
-0.055558111518621445,
-0.37606993317604065,
-0.36594557762145996,
0.19937407970428467,
0.4698033332824707,
-0.3571544289588928,
-0.159615159034729,
0.19727911055088043,
-0.02598758228123188,
-0.12027227878570557,
0.11275867372751236,
0.17941729724407196,
0.07351379096508026,
0.4738398790359497,
-0.24694210290908813,
-0.3006402552127838,
0.09694404155015945,
0.5473603010177612,
0.0868571549654007,
-0.07035697996616364,
0.46873658895492554,
-0.2822933495044708,
-0.07599194347858429,
-0.16817770898342133,
0.06282644718885422,
0.12855958938598633,
-0.35344207286834717,
0.0983736664056778,
-0.009109568782150745,
0.21032479405403137,
0.11476195603609085,
-0.023599611595273018,
-0.29507917165756226,
-0.0067656938917934895,
-0.279457151889801,
-0.2637414038181305,
-0.36570483446121216,
-0.0859159380197525,
0.03355787321925163,
0.04339604452252388,
0.36839330196380615,
0.17312738299369812,
0.02727055922150612,
0.2843613922595978,
-0.27672404050827026,
0.2214021384716034,
0.35668161511421204,
0.15403859317302704,
-0.21069611608982086,
-0.12278308719396591,
0.05638758838176727,
-0.20202960073947906,
0.05188063904643059,
0.10561243444681168,
-0.07670963555574417,
-0.20320861041545868,
-0.14987273514270782,
0.17024537920951843,
0.18189983069896698,
-0.006731261499226093,
-0.26892536878585815,
-0.18231411278247833,
0.14384675025939941,
-0.5760849714279175,
0.15510497987270355,
0.2457032948732376,
-0.07188457995653152,
0.15194419026374817,
0.4375990331172943,
-0.2316625416278839,
-0.02710293047130108,
0.01706436090171337,
-0.31730175018310547,
-0.049520935863256454,
-0.11272838711738586,
0.20771020650863647,
0.12106804549694061,
0.11755773425102234,
-0.043798401951789856,
-0.12828156352043152,
0.2395612895488739,
0.09346481412649155,
0.3994581997394562,
-0.2951735854148865,
-0.07392775267362595,
0.11580125242471695,
-0.14812186360359192,
0.26106125116348267,
-0.29703614115715027,
-0.20155368745326996,
0.31405290961265564,
0.1927068680524826,
-0.24931801855564117,
-0.24179328978061676,
0.3572394847869873,
0.13740158081054688,
-0.06051572412252426,
0.011838510632514954,
0.26750144362449646,
-0.31333890557289124,
0.28771671652793884,
0.05236091464757919,
0.5716949105262756,
-0.3205864131450653,
0.2812638282775879,
0.20665812492370605,
0.1167718917131424,
0.12846210598945618,
0.12848792970180511,
0.17819298803806305,
-0.06839127093553543,
0.31752726435661316,
-0.011976957321166992,
0.3628060519695282,
0.18186652660369873,
-0.06230029836297035,
-0.009980689734220505,
-0.4547532796859741,
-0.02771749347448349,
0.11752250045537949,
-0.29245415329933167,
0.3628987967967987,
-0.02395249903202057,
0.1671731323003769,
0.07813113927841187,
-0.12143169343471527,
-0.11911993473768234,
0.31898558139801025,
-0.3081086277961731,
-0.18043582141399384,
0.14799010753631592,
-0.06876574456691742,
0.030222591012716293,
0.021146440878510475,
-0.019692352041602135,
0.05291978269815445,
0.35409748554229736,
0.09218347817659378,
-0.31800803542137146,
-0.09965039044618607,
-0.19930264353752136,
0.09192836284637451,
0.4701642692089081,
-0.1469152271747589,
0.19373740255832672,
-0.17746467888355255,
-0.013522201217710972,
-0.09180691838264465,
0.22310905158519745,
0.40187835693359375,
0.4546133875846863,
-0.14829033613204956,
0.3653244972229004,
0.11687508970499039,
0.00952307041734457,
-0.10058391094207764,
0.379151314496994,
-0.2120782881975174,
-0.15146616101264954,
-0.004218701738864183,
0.11189921945333481,
-0.07055003196001053,
-0.21215271949768066,
-0.057656120508909225,
0.3330327570438385,
-0.007766975089907646,
0.14699937403202057,
0.10227898508310318,
-0.057839710265398026,
-0.10239269584417343,
0.18045765161514282,
-0.2888161242008209,
0.1078641340136528,
0.5013056397438049,
0.09909643232822418,
0.19185610115528107,
-0.39194416999816895,
0.07266119122505188,
0.1490279585123062,
0.19680647552013397,
0.3455563485622406,
-0.3320751488208771,
-0.40232840180397034,
-0.3072874844074249,
-0.6909540295600891,
0.32823464274406433,
-0.13998860120773315,
0.23485501110553741,
0.01730644516646862,
0.04636037349700928,
-0.15544743835926056,
-0.12467541545629501,
0.21108455955982208,
-0.02708585187792778,
-0.06858912110328674,
0.22785548865795135,
-0.22491596639156342,
0.0068839131854474545,
-0.23128798604011536,
0.16727814078330994,
0.13725171983242035,
-0.38252320885658264,
0.2694317698478699,
-0.16534431278705597,
0.06545881927013397,
-0.1703137904405594,
-0.007052644621580839,
0.06707193702459335,
-0.056899383664131165,
0.7861576080322266,
0.13113166391849518,
0.136198028922081,
-0.08967513591051102,
0.25518590211868286,
-0.34583786129951477,
0.029621854424476624,
-0.039572034031152725,
0.007671730127185583,
-0.05789308622479439,
0.06258980929851532,
-0.15077818930149078,
-0.21931691467761993,
-0.439776748418808,
-0.26263102889060974,
0.2159585952758789,
-0.047389525920152664,
-0.147379070520401,
-0.018344659358263016,
0.013437950052320957,
0.31020841002464294,
-0.060985323041677475,
0.44183653593063354,
-0.18949441611766815,
0.37194401025772095,
-0.2240038365125656,
-0.26039692759513855,
0.3844134509563446,
-0.5583378076553345,
-0.4699152708053589,
-0.20353521406650543,
0.27411335706710815,
-0.24196721613407135,
-0.21972647309303284,
-0.49718648195266724,
0.11459273099899292,
0.45381754636764526,
0.15939819812774658,
-0.18268141150474548,
0.007518282625824213,
-0.06191623955965042,
0.23770199716091156,
-0.21908438205718994,
0.38048499822616577,
0.17657004296779633,
-0.07378142327070236,
0.09229912608861923,
-0.07816929370164871
] |
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.25575217604637146,
0.46814918518066406,
-0.008667688816785812,
0.09381334483623505,
-0.09325837343931198,
0.280945360660553,
0.3591800928115845,
0.01309686154127121,
0.549292802810669,
0.17232440412044525,
-0.1086309626698494,
-0.320706844329834,
0.02696361020207405,
-0.13629476726055145,
-0.08843965083360672,
0.16005565226078033,
-0.012463233433663845,
0.20513249933719635,
0.3308279812335968,
0.10526412725448608,
-0.3471742272377014,
0.19461162388324738,
-0.11635459214448929,
0.17326012253761292,
-0.22010421752929688,
-0.027302123606204987,
-0.22863447666168213,
0.345245361328125,
0.12022574990987778,
-0.07327373325824738,
0.29851284623146057,
0.1823599487543106,
0.4611562192440033,
0.4373255670070648,
-0.00011925065336981788,
-0.00922725722193718,
0.13675984740257263,
-0.18338574469089508,
-0.16290287673473358,
0.12001572549343109,
-0.2397756278514862,
0.2823113799095154,
-0.2644106149673462,
0.028602447360754013,
-0.0028130640275776386,
0.20127160847187042,
0.008685017935931683,
-0.6335746049880981,
-0.25590306520462036,
0.35187485814094543,
0.14445587992668152,
-0.2560597062110901,
-0.475466787815094,
-0.1310122013092041,
0.32332465052604675,
0.4254639148712158,
-0.18952785432338715,
0.17433354258537292,
0.0022009657695889473,
-0.25473639369010925,
-0.13019534945487976,
0.19848549365997314,
0.07415352761745453,
0.38532888889312744,
0.35947516560554504,
0.2023984044790268,
-0.08936231583356857,
0.1987679898738861,
0.2981182038784027,
-0.02890421450138092,
0.9117105007171631,
-0.39265066385269165,
-0.06758183985948563,
0.11374764144420624,
-0.18824642896652222,
-0.38104063272476196,
0.3569800555706024,
0.10961832106113434,
-0.2152440994977951,
0.09236238896846771,
0.03224747255444527,
-0.20940391719341278,
-0.258173406124115,
0.1735565960407257,
0.15363211929798126,
-0.05766871199011803,
0.016617100685834885,
-0.08532813936471939,
0.20999129116535187,
-0.13798055052757263,
0.3040865361690521,
-0.24226738512516022,
-0.49978798627853394,
0.15865744650363922,
-0.2232947051525116,
0.19285596907138824,
-0.2934037148952484,
0.5975056886672974,
-0.047869473695755005,
0.03497971221804619,
0.06554670631885529,
0.16338597238063812,
-0.12207107245922089,
-0.02528318390250206,
-0.07095327228307724,
0.4531858563423157,
0.08659888803958893,
0.06874008476734161,
0.059118177741765976,
-0.17017260193824768,
-0.1758127361536026,
-0.08814555406570435,
-0.2163313627243042,
-0.44966867566108704,
0.21822257339954376,
0.0601508803665638,
-0.1500677913427353,
-0.5533456802368164,
0.061766669154167175,
-0.23781514167785645,
0.1814156025648117,
-0.12274125963449478,
0.28282588720321655,
0.3287511467933655,
0.18195100128650665,
-0.15542571246623993,
-0.24535514414310455,
0.122256800532341,
-0.12485422939062119,
-0.009361867792904377,
-0.044213321059942245,
0.11509587615728378,
-0.35451942682266235,
0.450294554233551,
0.4435068964958191,
0.15046444535255432,
-0.08590451627969742,
-0.12230503559112549,
0.28689995408058167,
0.17319031059741974,
-0.015233093872666359,
-0.25691038370132446,
-0.01755206100642681,
0.16239403188228607,
-0.02308136597275734,
0.32868990302085876,
0.09826161712408066,
-0.18496373295783997,
-0.23613238334655762,
0.2819388806819916,
-0.27985942363739014,
-0.42007991671562195,
-0.13528035581111908,
-0.0043290830217301846,
-0.07335670292377472,
-0.3321877121925354,
-0.29202839732170105,
0.019031932577490807,
0.03677694499492645,
-0.01608811877667904,
0.05140206590294838,
0.07770667225122452,
-0.2925449013710022,
-0.18676207959651947,
-0.15984322130680084,
0.4258091449737549,
-0.6456716656684875,
0.05490066856145859,
-0.1299288123846054,
0.03499364107847214,
0.15908575057983398,
0.36179742217063904,
-0.1314043402671814,
0.1441560685634613,
-0.3559281826019287,
0.009469973854720592,
0.2918238639831543,
-0.5207452774047852,
-0.45747825503349304,
0.08555713295936584,
0.38696593046188354,
-0.29773256182670593,
0.2846938967704773,
0.08091767877340317,
0.16067318618297577,
-0.16200271248817444,
0.011699927970767021,
0.21610116958618164,
0.06862477213144302,
-0.2469921112060547,
-0.012032917700707912,
-0.182850643992424,
0.043893080204725266,
0.2415061891078949,
-0.003410305827856064,
0.40131330490112305,
0.19217054545879364,
0.0047576529905200005,
0.05246203392744064,
-0.09431377053260803,
0.1270528882741928,
0.30668196082115173,
0.3205014169216156,
0.4424472749233246,
0.17273080348968506,
0.17628630995750427,
-0.22600317001342773,
0.291207879781723,
-0.11700857430696487,
-0.2172812521457672,
0.28785067796707153,
0.011591398157179356,
0.01613682694733143,
-0.2953486442565918,
-0.22078588604927063,
-0.1811320036649704,
-0.007617722265422344,
0.2608891725540161,
0.23492053151130676,
-0.2933540642261505,
-0.026795394718647003,
0.658947229385376,
0.2265404462814331,
-0.19416414201259613,
0.2957305610179901,
-0.026913557201623917,
-0.1871461719274521,
-0.042464729398489,
-0.12012216448783875,
-0.03113340586423874,
0.21327470242977142,
0.17756988108158112,
-0.23258961737155914,
0.3005902171134949,
0.0022568020503968,
-0.07763593643903732,
0.31219956278800964,
0.3358961045742035,
-0.046278975903987885,
-0.012909973971545696,
0.5341500639915466,
0.08750110864639282,
-0.011285234242677689,
-0.06717519462108612,
-0.25362351536750793,
-0.0285799540579319,
-0.15556922554969788,
0.35716402530670166,
-0.21781976521015167,
-0.00850110687315464,
0.1321297287940979,
-0.08539089560508728,
0.3848135471343994,
-0.22514137625694275,
0.3857036828994751,
-0.2674024999141693,
0.1608092486858368,
-0.20451509952545166,
-0.022374657914042473,
0.050028860569000244,
0.2000294178724289,
0.046482402831315994,
0.09000398963689804,
0.3841380774974823,
-0.23045790195465088,
-0.0613001212477684,
0.11813829839229584,
0.1175849661231041,
0.6406490206718445,
0.14608058333396912,
-0.006233292631804943,
0.03811054676771164,
-0.13339202105998993,
-0.03826886788010597,
0.11260761320590973,
-0.18105554580688477,
-0.005322987213730812,
-0.04067397862672806,
-0.06350020319223404,
-0.1481619030237198,
0.12493880093097687,
-0.3539210557937622,
-0.008960223756730556,
0.06032662093639374,
-0.40253138542175293,
0.12548702955245972,
-0.2663138210773468,
-0.24509407579898834,
-0.04188880696892738,
-0.3795003592967987,
-0.19356894493103027,
-0.15710778534412384,
-0.043910957872867584,
0.07422207295894623,
0.34585607051849365,
-0.05544689670205116,
-0.6163668036460876,
0.2907785177230835,
-0.19381417334079742,
-0.52447909116745,
-0.2568770945072174,
-0.03081892989575863,
-0.37302929162979126,
-0.05454485863447189,
0.031549517065286636,
0.03341006115078926,
0.05658227577805519,
0.0013544921530410647,
0.40293648838996887,
-0.43318915367126465,
0.25536850094795227,
0.1720152646303177,
0.3753194510936737,
0.25969672203063965,
0.015137342736124992,
-0.0903705358505249,
0.04530806466937065,
-0.18880926072597504,
0.2970717251300812,
-0.08394747972488403,
0.12738282978534698,
-0.031231211498379707,
-0.19421157240867615,
-0.028002969920635223,
0.019398873671889305,
0.2274566888809204,
-0.371692031621933,
-0.2120225578546524,
-0.24240240454673767,
0.1433381289243698,
0.0797455683350563,
0.3831818401813507,
-0.20048865675926208,
0.09536504000425339,
0.2932649254798889,
-0.3508402705192566,
-0.332397997379303,
-0.3654147982597351,
0.5393202304840088,
-0.4161730706691742,
0.011838611215353012,
0.19367042183876038,
0.2055072784423828,
-0.20151850581169128,
0.21513281762599945,
-0.4242050349712372,
0.0964953824877739,
-0.17959630489349365,
0.0807429775595665,
0.03429386019706726,
-0.08835750073194504,
0.13629461824893951,
-0.24338887631893158,
-0.03921562060713768,
-0.24424709379673004,
-0.5972721576690674,
0.23653362691402435,
-0.07241275906562805,
0.4560069739818573,
0.3650609850883484,
0.10597913712263107,
-0.09161835163831711,
0.4457303583621979,
0.09642169624567032,
0.15959161520004272,
0.46057164669036865,
-0.07350176572799683,
0.31840988993644714,
-0.01362493447959423,
-0.0809272900223732,
0.13160128891468048,
-0.059499990195035934,
-0.252678781747818,
0.2065047025680542,
0.2332795411348343,
-0.16243675351142883,
0.025441214442253113,
-0.035230666399002075,
0.15128272771835327,
-0.10326576232910156,
0.10922807455062866,
-0.3504677712917328,
0.24346113204956055,
-0.030517863109707832,
-0.13860008120536804,
-0.3490743935108185,
-0.4369841516017914,
0.4707674980163574,
0.5245857834815979,
-0.24542835354804993,
0.4193028509616852,
-0.1807524412870407,
0.11130416393280029,
-0.23604586720466614,
0.4586572051048279,
-0.1192060261964798,
0.381872296333313,
-0.45012786984443665,
0.3092711865901947,
-0.11239765584468842,
-0.014701579697430134,
0.5110962390899658,
-0.4883115291595459,
0.1709706336259842,
0.44051694869995117,
0.22151252627372742,
0.1607980877161026,
-0.25064101815223694,
0.04548530653119087,
0.3383984863758087,
-0.4176425635814667,
0.09014252573251724,
0.2738479673862457,
-0.2527700662612915,
0.05322033166885376,
-0.02726038545370102,
-0.4673561155796051,
-0.3163571357727051,
-0.09189078211784363,
-0.05695715546607971,
0.06410045921802521,
-0.2776573896408081,
-0.11844100058078766,
0.04010342061519623,
0.3600784242153168,
0.31209906935691833,
-0.19307516515254974,
0.167764812707901,
0.3788406550884247,
-0.14306135475635529,
0.33328554034233093,
0.20720182359218597,
-0.08362594991922379,
0.08449000865221024,
0.18565456569194794,
0.19261489808559418,
0.26155930757522583,
-0.16163533926010132,
-0.11084802448749542,
0.17436125874519348,
-0.2599954903125763,
0.1231757402420044,
0.04838777706027031,
-0.19706274569034576,
-0.11205758899450302,
0.030653346329927444,
-0.025359177961945534,
-0.39312681555747986,
0.20961016416549683,
-0.040329862385988235,
-0.13963839411735535,
-0.28234750032424927,
-0.39194196462631226,
0.41644540429115295,
0.07440082728862762,
-0.1704440712928772,
0.40631765127182007,
0.35509493947029114,
-0.35512787103652954,
0.24673724174499512,
0.07815048098564148,
0.6511043310165405,
-0.2317090630531311,
0.041321709752082825,
-0.292433500289917,
-0.45960062742233276,
-0.18429537117481232,
-0.1948481649160385,
0.038567591458559036,
-0.12402834743261337,
-0.23180869221687317,
-0.15036913752555847,
-0.09033224731683731,
0.32037353515625,
0.41881728172302246,
-0.1880282759666443,
0.5310233235359192,
0.08548560738563538,
0.07329263538122177,
0.10651365667581558,
-0.11206291615962982,
0.07410883903503418,
-0.3800899386405945,
0.2787129878997803,
0.19391369819641113,
-0.07526502013206482,
0.20404037833213806,
-0.09959335625171661,
0.13896434009075165,
-0.025455670431256294,
0.11243899166584015,
-0.46908000111579895,
-0.08627678453922272,
-0.5284090638160706,
0.055069081485271454,
-0.15829473733901978,
-0.1572602093219757,
0.1016690731048584,
0.11782322078943253,
0.45693767070770264,
-0.04479716345667839,
-0.21226917207241058,
0.15788576006889343,
0.14681434631347656,
0.09200666099786758,
-0.21347135305404663,
-0.01687273383140564,
0.002050133189186454,
-0.14689692854881287,
-0.23369953036308289,
-0.11243616789579391,
0.0008231187821365893,
-0.5835394263267517,
-0.2684059143066406,
-0.23061299324035645,
0.23159660398960114,
-0.0021101695019751787,
-0.09225302934646606,
-0.18223097920417786,
0.23070065677165985,
0.22003929316997528,
0.06761330366134644,
-0.00964165199548006,
0.2099122852087021,
0.18662846088409424,
-0.4496475160121918,
-0.07633733004331589,
-0.11411193013191223,
-0.05350528657436371,
-0.429633766412735,
-0.20645740628242493,
0.2676546275615692,
0.0008907745941542089,
-0.09316389262676239,
-0.0913441851735115,
-0.08951038867235184,
0.0319170318543911,
-0.14000970125198364,
-0.2013547271490097,
-0.06535591185092926,
-0.17355845868587494,
0.1563197374343872,
-0.06802251189947128,
0.3295844495296478,
-0.1584560126066208,
-0.055969443172216415,
-0.41871118545532227,
-0.12151927500963211,
-0.1466018706560135,
-0.3597602844238281,
0.1639639437198639,
-0.2259473353624344,
-0.3933384120464325,
0.2311776727437973,
-0.13832415640354156,
-0.19113238155841827,
0.00010468318214407191,
0.15450875461101532,
-0.09205316007137299,
-0.1364147812128067,
0.19359931349754333,
0.2963392436504364,
0.18625269830226898,
-0.06710191816091537,
-0.24372056126594543,
-0.08764271438121796,
-0.07723463326692581,
-0.25283896923065186,
0.17781580984592438,
0.019922452047467232,
0.15678523480892181,
0.038465242832899094,
-0.23153719305992126,
0.023800350725650787,
-0.10653363913297653,
0.1360592097043991,
0.46631714701652527,
-0.1788536161184311,
0.30556347966194153,
0.039461273699998856,
-0.3041667342185974,
-0.32805973291397095,
0.07406067848205566,
0.3465184271335602,
0.38827741146087646,
0.018846478313207626,
0.18088719248771667,
-0.07200004905462265,
-0.0405949242413044,
-0.2922014892101288,
0.06118391454219818,
-0.03882201761007309,
-0.03499958664178848,
-0.22153745591640472,
-0.23120777308940887,
0.3110743761062622,
0.22087419033050537,
0.09484436362981796,
-0.0335954949259758,
-0.02262924611568451,
0.014414775185286999,
0.37492331862449646,
0.04131351411342621,
0.0023531338665634394,
-0.266915887594223,
-0.11574389785528183,
-0.20786893367767334,
-0.19731885194778442,
0.4525609612464905,
0.30785542726516724,
0.041331298649311066,
0.06996689736843109,
-0.11900486052036285,
0.5813829898834229,
-0.11593998968601227,
-0.34437140822410583,
0.27244019508361816,
-0.1668221801519394,
0.29115909337997437,
0.42280036211013794,
0.4892130494117737,
-0.029439732432365417,
0.849406898021698,
0.21102169156074524,
-0.02398652955889702,
0.37412771582603455,
-0.034019798040390015,
-0.22465446591377258,
-0.5847415328025818,
-0.17342664301395416,
0.12631365656852722,
0.2699769139289856,
0.2626485228538513,
-0.32285165786743164,
0.1719614416360855,
-0.1433330625295639,
-0.11617688089609146,
-0.17901378870010376,
-0.4177314341068268,
0.1715870052576065,
-0.3374361991882324,
0.3003830015659332,
0.09789540618658066,
-0.17457547783851624,
0.09242080897092819,
0.06792609393596649,
-0.02537175454199314,
0.12791389226913452,
-0.22288040816783905,
0.08520850539207458,
0.07666871696710587,
0.33897390961647034,
0.2513731122016907,
-0.10989271104335785,
-0.1288878172636032,
0.2159271240234375,
-0.2958226501941681,
0.116677425801754,
0.4527233839035034,
0.04085085168480873,
0.17948253452777863,
0.227303147315979,
-0.237731471657753,
-0.05390392988920212,
-0.2109176218509674,
0.00579356262460351,
-0.0493147112429142,
0.04239996150135994,
-0.03643694519996643,
-0.13786600530147552,
0.15130192041397095,
0.1018323004245758,
0.033103443682193756,
0.2538627088069916,
-0.24964256584644318,
0.3161812722682953,
0.022019773721694946,
0.29919514060020447,
0.20004306733608246,
0.19224676489830017,
0.20694118738174438,
0.2616451382637024,
-0.25047609210014343,
-0.19891630113124847,
0.31964847445487976,
-0.08384370803833008,
0.2157267928123474,
0.2454298734664917,
0.019226407632231712,
0.18328674137592316,
0.4234261214733124,
0.11198752373456955,
0.35329338908195496,
-0.22954361140727997,
-0.08991243690252304,
-0.47631946206092834,
-0.00034635147312656045,
-0.05558216571807861,
-0.26689213514328003,
-0.04721200093626976,
0.05260021984577179,
-0.08923549205064774,
-0.14523833990097046,
0.46880340576171875,
-0.08667853474617004,
0.04728683829307556,
0.22679995000362396,
-0.35493189096450806,
-0.010533598251640797,
0.26446402072906494,
0.4981246292591095,
0.15891075134277344,
-0.5530815720558167,
0.06720956414937973,
0.4556223452091217,
-0.0252317376434803,
-0.08705869317054749,
-0.09619058668613434,
0.41681185364723206,
0.08894584327936172,
0.46917933225631714,
-0.21867583692073822,
0.21270449459552765,
0.25763702392578125,
0.18482191860675812,
-0.4217242896556854,
0.04591384902596474,
0.042334381490945816,
-0.3932206332683563,
-0.025698939338326454,
0.12319162487983704,
-0.6304081082344055,
-0.02911573462188244,
-0.2919798493385315,
-0.03002728894352913,
0.14835473895072937,
0.235273078083992,
-0.07667578756809235,
0.30162960290908813,
-0.03489997610449791,
0.10339497774839401,
0.40505000948905945,
0.2613585293292999,
-0.118940070271492,
0.28105786442756653,
-0.2620745599269867,
0.12226322293281555,
0.384245902299881,
-0.25377827882766724,
-0.36039721965789795,
0.07440154254436493,
0.3058953285217285,
0.05285220593214035,
-0.1602574586868286,
-0.2085428535938263,
0.09740176796913147,
0.22965498268604279,
0.22200702130794525,
-0.22220322489738464,
0.06918541342020035,
-0.1327778548002243,
0.1328291893005371,
0.06884310394525528,
0.041508689522743225,
-0.018369680270552635,
-0.04794349893927574,
-0.32679876685142517,
0.03898495063185692
] |
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.10985817015171051,
-0.14316633343696594,
-0.003666989039629698,
0.5683761835098267,
0.22946195304393768,
-0.07168713212013245,
0.0764337033033371,
0.31270352005958557,
0.13735787570476532,
0.04877599701285362,
-0.32964152097702026,
0.03506359085440636,
-0.018028274178504944,
-0.18346932530403137,
0.16038525104522705,
-0.23522402346134186,
-0.10536149889230728,
-0.06222771108150482,
-0.41064873337745667,
0.10447060316801071,
-0.13088592886924744,
0.31012192368507385,
-0.038280196487903595,
-0.005235929507762194,
-0.059548698365688324,
-0.06359966844320297,
0.026993131265044212,
0.40389513969421387,
-0.08170344680547714,
-0.51429283618927,
0.36581239104270935,
-0.025758597999811172,
0.2221757471561432,
0.6335695385932922,
-0.00011295233707642183,
0.10023683309555054,
0.3394467532634735,
-0.0037233170587569475,
-0.41791239380836487,
-0.3696383535861969,
-0.14472946524620056,
-0.1747754067182541,
0.14797411859035492,
-0.17632487416267395,
-0.17695048451423645,
0.19257338345050812,
-0.0365833081305027,
-0.4481871426105499,
0.24868613481521606,
0.2116878479719162,
0.24189557135105133,
0.26720327138900757,
0.3284204602241516,
-0.17880669236183167,
0.05946625396609306,
-0.025449883192777634,
-0.10439004004001617,
0.7655640840530396,
0.11735376715660095,
0.20637984573841095,
0.05108138546347618,
0.37609341740608215,
0.09087416529655457,
0.16046053171157837,
0.4749828577041626,
0.039484575390815735,
0.23045367002487183,
-0.26886916160583496,
0.1130295842885971,
0.19522298872470856,
0.4000910222530365,
-0.16079285740852356,
-0.36654019355773926,
-0.1934880018234253,
0.09515667706727982,
-0.3805067837238312,
0.3234521448612213,
0.13000480830669403,
-0.21279869973659515,
0.11323554068803787,
-0.12349320203065872,
-0.1773456484079361,
-0.2792694568634033,
0.28812646865844727,
-0.044778406620025635,
-0.16909465193748474,
-0.15754084289073944,
0.14632757008075714,
0.18066591024398804,
-0.12482380121946335,
-0.05392712727189064,
0.009406429715454578,
-0.02626899629831314,
0.2579777240753174,
-0.24608536064624786,
0.17736490070819855,
-0.031099068000912666,
0.18172882497310638,
0.25585928559303284,
0.09048433601856232,
-0.14048515260219574,
0.012094658799469471,
-0.09539439529180527,
0.18862901628017426,
0.2989628314971924,
0.04964650794863701,
-0.08717755228281021,
0.00462796026840806,
0.20702271163463593,
0.503904402256012,
-0.2293086051940918,
-0.12745989859104156,
0.01192361582070589,
-0.27243223786354065,
0.177005797624588,
-0.12143556028604507,
0.4966043531894684,
-0.377009779214859,
-0.1082000657916069,
0.09173641353845596,
-0.04585931450128555,
0.048162247985601425,
0.15123161673545837,
0.45516258478164673,
-0.25800269842147827,
0.1544588953256607,
0.0954442098736763,
0.061450786888599396,
-0.12041403353214264,
-0.1457548886537552,
-0.2277964949607849,
0.18798749148845673,
-0.17743389308452606,
0.08854763954877853,
0.36456283926963806,
-0.5190115571022034,
0.16396592557430267,
-0.014977173879742622,
0.2522324025630951,
-0.11672797799110413,
-0.018682431429624557,
-0.21657249331474304,
-0.10778981447219849,
0.31135064363479614,
0.022878730669617653,
0.08620248734951019,
0.17670218646526337,
-0.15674392879009247,
-0.18328425288200378,
-0.06289606541395187,
-0.35821232199668884,
-0.21064074337482452,
-0.08305681496858597,
0.1629568338394165,
-0.2142588496208191,
0.06628458946943283,
-0.32447266578674316,
-0.046409521251916885,
-0.10903215408325195,
-0.19437141716480255,
-0.10861137509346008,
-0.1355379968881607,
-0.1367984414100647,
-0.2091422826051712,
0.3754214346408844,
0.637540876865387,
-0.08081774413585663,
0.05847485736012459,
-0.12340150773525238,
-0.04315865784883499,
0.13221879303455353,
0.3780944049358368,
-0.11989744752645493,
-0.020124178379774094,
-0.24468307197093964,
-0.10780158638954163,
0.28057199716567993,
-0.30609598755836487,
-0.34428611397743225,
0.11498170346021652,
-0.03376832976937294,
0.3318827748298645,
-0.05325593426823616,
-0.037412725389003754,
-0.031878624111413956,
0.1323217898607254,
0.1931561827659607,
0.28328844904899597,
-0.056349098682403564,
-0.1293172389268875,
-0.2122820019721985,
-0.2594582736492157,
0.16327427327632904,
0.2174006551504135,
0.1880994737148285,
0.15012550354003906,
0.07709262520074844,
0.04682879522442818,
0.13087931275367737,
-0.07782915234565735,
0.06693198531866074,
0.12278494983911514,
0.13519135117530823,
0.43106940388679504,
-0.07181861996650696,
-0.37162065505981445,
-0.4436390697956085,
0.3363804519176483,
-0.0314619317650795,
0.1913916915655136,
-0.1463519036769867,
0.0657711923122406,
-0.41010430455207825,
0.030800534412264824,
-0.07873044162988663,
-0.1457376927137375,
0.1097632646560669,
0.09984616190195084,
0.035346582531929016,
0.26344963908195496,
-0.22427056729793549,
0.4821527898311615,
0.05305933207273483,
0.17753159999847412,
-0.4551771581172943,
0.25772610306739807,
-0.03470603749155998,
-0.09158811718225479,
0.03112741932272911,
0.15764731168746948,
0.10899849981069565,
-0.09028024226427078,
-0.10344235599040985,
0.306395560503006,
0.02741178497672081,
-0.04058460891246796,
0.10882659256458282,
-0.1070617139339447,
0.09805479645729065,
-0.16915644705295563,
0.06707192957401276,
0.053418371826410294,
0.19219519197940826,
-0.006121214013546705,
-0.33538827300071716,
0.13132792711257935,
-0.15433573722839355,
0.2098006010055542,
0.010758993215858936,
0.03291895613074303,
0.3360380232334137,
-0.008118531666696072,
-0.04622592404484749,
-0.09634532779455185,
0.34445932507514954,
-0.10846341401338577,
0.49943193793296814,
-0.0924285352230072,
-0.36865755915641785,
-0.18247103691101074,
-0.11151210963726044,
0.02262471616268158,
0.08638714998960495,
0.2621726989746094,
-0.17163725197315216,
-0.040045008063316345,
0.006779821123927832,
0.10417754203081131,
0.33635038137435913,
0.08504661917686462,
0.09395430237054825,
0.09403971582651138,
0.07197260111570358,
-0.024529848247766495,
0.14913803339004517,
-0.0482979379594326,
0.22000937163829803,
0.07696658372879028,
0.13246487081050873,
0.06466654688119888,
-0.4159029722213745,
-0.3394743800163269,
-0.06520768254995346,
0.3232426047325134,
-0.34253352880477905,
0.16663099825382233,
-0.12447771430015564,
-0.30358532071113586,
-0.21502263844013214,
-0.2546462118625641,
-0.4462372064590454,
-0.23686280846595764,
-0.30298662185668945,
0.5309484004974365,
0.165485218167305,
0.03523847460746765,
-0.32152625918388367,
0.05836951360106468,
-0.04045238718390465,
-0.17344896495342255,
-0.18263640999794006,
-0.02479862980544567,
-0.18036122620105743,
0.04095497354865074,
0.28663936257362366,
0.16514061391353607,
0.44077110290527344,
-0.08427882194519043,
-0.04422437399625778,
-0.2323426455259323,
-0.37304118275642395,
-0.029439961537718773,
0.009150308556854725,
0.4914530813694,
0.1717604100704193,
0.4271705150604248,
-0.10756658017635345,
-0.24441729485988617,
0.47843196988105774,
-0.0908169075846672,
0.06854837387800217,
0.07682222872972488,
-0.20367322862148285,
0.07419474422931671,
0.0008807852282188833,
-0.5234018564224243,
-0.32017573714256287,
-0.29649674892425537,
0.35653987526893616,
0.08887586742639542,
0.024104872718453407,
0.49406352639198303,
-0.008690373040735722,
0.11409181356430054,
-0.09235499054193497,
0.16280561685562134,
-0.3461087644100189,
-0.6181045770645142,
0.30593612790107727,
-0.2781548798084259,
-0.41024157404899597,
0.060008905827999115,
0.12538884580135345,
0.3633444607257843,
-0.03275945037603378,
-0.6117782592773438,
-0.0045398748479783535,
-0.12237755209207535,
0.17430904507637024,
-0.08994292467832565,
-0.1310316026210785,
0.020780963823199272,
-0.12673690915107727,
-0.03879211097955704,
0.012993323616683483,
-0.197879821062088,
-0.17984090745449066,
-0.008873136714100838,
0.12351926416158676,
0.003965495619922876,
0.30060824751853943,
-0.005699979141354561,
0.5055927634239197,
0.1251598596572876,
0.08534075319766998,
0.36922842264175415,
0.0511205680668354,
0.48816797137260437,
-0.30191755294799805,
-0.5070812702178955,
-0.13357946276664734,
-0.18933145701885223,
0.025670193135738373,
0.005452530458569527,
0.21436448395252228,
-0.13024164736270905,
-0.30362728238105774,
-0.24586914479732513,
-0.25168830156326294,
-0.28524118661880493,
0.13651354610919952,
-0.09921583533287048,
0.13788658380508423,
0.02904606983065605,
-0.14679929614067078,
-0.19843792915344238,
-0.17982007563114166,
-0.1898522973060608,
0.5857319235801697,
0.28282544016838074,
0.2692280113697052,
-0.4927918612957001,
0.259165495634079,
-0.5437832474708557,
0.13168245553970337,
-0.0735202431678772,
0.4005360007286072,
-0.242669939994812,
0.18355073034763336,
0.11852256953716278,
0.02038615755736828,
0.3855636715888977,
0.147842139005661,
0.42978349328041077,
0.2452252060174942,
-0.3469163775444031,
-0.42844316363334656,
0.14791886508464813,
0.12726612389087677,
-0.003035561181604862,
0.4096195697784424,
0.37356916069984436,
-0.25758954882621765,
-0.030873186886310577,
0.1607467234134674,
0.24865594506263733,
-0.16794028878211975,
-0.29942068457603455,
-0.2562256455421448,
-0.22959020733833313,
-0.3067697584629059,
-0.07363954931497574,
-0.011630558408796787,
0.3966582417488098,
0.37053748965263367,
0.05598575621843338,
-0.10367319732904434,
0.048780906945466995,
0.24018345773220062,
0.22228243947029114,
0.14292238652706146,
0.04229416325688362,
0.41256871819496155,
0.48821040987968445,
0.11846311390399933,
0.02443048171699047,
0.6174946427345276,
-0.027621174231171608,
-0.6739385724067688,
-0.07558711618185043,
0.23116819560527802,
-0.01586087793111801,
0.19196075201034546,
-0.1942845582962036,
-0.12509851157665253,
0.15889972448349,
0.13960173726081848,
-0.08122014254331589,
0.2773297429084778,
0.05740736052393913,
0.12914854288101196,
-0.4189879298210144,
-0.4065653085708618,
0.46141529083251953,
0.07289914041757584,
-0.024879666045308113,
0.317359060049057,
0.18520157039165497,
-0.1900639533996582,
0.060867391526699066,
-0.1444215476512909,
0.9203277230262756,
-0.03778911754488945,
0.12903231382369995,
0.34622418880462646,
-0.08191630989313126,
0.5078816413879395,
0.07774026691913605,
0.011689810082316399,
-0.2593933045864105,
-0.21444275975227356,
-0.019857540726661682,
-0.11251628398895264,
0.1943313479423523,
-0.132790669798851,
-0.05076838284730911,
0.42702868580818176,
0.04416683316230774,
0.02332346886396408,
0.03254103660583496,
0.19106589257717133,
-0.005038207396864891,
-0.27301105856895447,
-0.550559401512146,
0.18950818479061127,
-0.19171138107776642,
0.4713815450668335,
-0.1486091911792755,
-0.14395229518413544,
-0.09071644395589828,
-0.13189715147018433,
-0.09422460943460464,
0.10177288204431534,
-0.15826718509197235,
0.30130431056022644,
-0.0296496395021677,
-0.3180106580257416,
-0.018055522814393044,
0.13000506162643433,
-0.05977707356214523,
0.16400356590747833,
-0.3081126809120178,
0.20883803069591522,
-0.17248065769672394,
-0.2006240338087082,
0.10040944069623947,
0.17566797137260437,
0.13975447416305542,
-0.18886207044124603,
-0.15578420460224152,
0.006107289344072342,
-0.07463753968477249,
-0.3447105288505554,
0.06711923331022263,
-0.012320094741880894,
-0.09499790519475937,
-0.11769900470972061,
-0.25970399379730225,
-0.16520097851753235,
0.19191893935203552,
-0.07061434537172318,
0.13994605839252472,
0.22635942697525024,
0.03998623415827751,
-0.10921136289834976,
0.2789075970649719,
-0.2633683979511261,
-0.09345798939466476,
0.6049339771270752,
-0.043595727533102036,
-0.29745030403137207,
0.3684128224849701,
0.2711159884929657,
-0.1591368317604065,
-0.07732589542865753,
0.029681649059057236,
-0.052926093339920044,
-0.5901024341583252,
0.11624165624380112,
0.022123068571090698,
0.323681503534317,
-0.137093186378479,
-0.10134563595056534,
0.25409236550331116,
-0.3785040080547333,
0.17297598719596863,
-0.6587607860565186,
-0.27815118432044983,
0.23843573033809662,
-0.2570835053920746,
0.1325257420539856,
0.13757754862308502,
0.07737309485673904,
-0.12787985801696777,
0.04615158215165138,
-0.2828448414802551,
0.21593020856380463,
-0.0680328905582428,
-0.01534510962665081,
0.467515230178833,
-0.0501251295208931,
0.15226879715919495,
-0.14698146283626556,
0.12674570083618164,
0.023775866255164146,
-0.1837635338306427,
-0.18751481175422668,
-0.1944706290960312,
0.11094116419553757,
-0.14490294456481934,
-0.2054658681154251,
-0.07152022421360016,
-0.20632274448871613,
-0.024848271161317825,
-0.14832206070423126,
0.09291677176952362,
0.4028230905532837,
-0.0033532327506691217,
-0.09446454793214798,
0.07917674630880356,
0.1351003348827362,
-0.2862483859062195,
0.35717299580574036,
0.012406759895384312,
-0.09372738748788834,
0.05916227027773857,
-0.016506964340806007,
-0.16536957025527954,
-0.10956893861293793,
-0.3179788589477539,
-0.02779509872198105,
-0.028706081211566925,
0.0027029868215322495,
0.5015749931335449,
-0.07481097429990768,
0.06465345621109009,
0.22903844714164734,
0.17946679890155792,
0.1800253540277481,
-0.08768386393785477,
0.1274280995130539,
0.05329209193587303,
0.16539855301380157,
-0.3052545189857483,
-0.020253852009773254,
0.16167306900024414,
0.009071012027561665,
-0.018988491967320442,
0.10192358493804932,
-0.012897120788693428,
0.04125688225030899,
-0.15178345143795013,
0.09294223040342331,
0.4723512828350067,
-0.042667143046855927,
0.13295845687389374,
0.18960750102996826,
-0.15694621205329895,
-0.1234830915927887,
0.2636795938014984,
0.17790162563323975,
0.084795281291008,
0.6215689182281494,
-0.11514899134635925,
0.147551491856575,
-0.1662755012512207,
0.02334822528064251,
-0.006759020034223795,
-0.25837695598602295,
-0.34913405776023865,
0.3788985013961792,
0.026568327099084854,
0.05209903046488762,
-0.09121044725179672,
0.2827594578266144,
-0.2950374186038971,
-0.2381255179643631,
-0.11051391810178757,
0.11575451493263245,
-0.10529018938541412,
0.029534153640270233,
0.008515981025993824,
-0.23642535507678986,
-0.1409321129322052,
0.016641680151224136,
-0.18321536481380463,
-0.20496636629104614,
0.36933496594429016,
0.2010635882616043,
-0.29499903321266174,
-0.4677317440509796,
-0.35169801115989685,
0.31625109910964966,
-0.024651864543557167,
-0.1387360543012619,
0.23554383218288422,
0.3972218334674835,
-0.13575592637062073,
0.18254488706588745,
0.3464146852493286,
0.5268884897232056,
0.14958202838897705,
0.19877398014068604,
0.12651245296001434,
-0.09132800251245499,
-0.07623568177223206,
-0.10711846500635147,
0.1564544439315796,
0.05652488023042679,
0.14006270468235016,
0.3333315849304199,
0.20529527962207794,
-0.15659493207931519,
0.219028040766716,
-0.10098821669816971,
0.3223040997982025,
-0.43917638063430786,
0.30717933177948,
-0.29746580123901367,
0.03319530189037323,
-0.1077919751405716,
0.09445501118898392,
-0.24464964866638184,
0.06573829799890518,
0.2872646152973175,
0.08769664168357849,
-0.02618064358830452,
-0.029323698952794075,
0.06307713687419891,
0.08149506151676178,
0.5135881900787354,
0.2220083773136139,
0.05711652711033821,
-0.448847234249115,
-0.23527604341506958,
-0.8884505033493042,
0.10764431953430176,
-0.2813786268234253,
-0.110535629093647,
0.20115983486175537,
-0.013007153756916523,
-0.031969547271728516,
0.27765294909477234,
-0.05502865090966225,
0.041595879942178726,
-0.07664632797241211,
-0.014576937071979046,
-0.22349627315998077,
-0.24281421303749084,
-0.04756256565451622,
-0.020423302426934242,
-0.08232497423887253,
-0.30947941541671753,
0.18454144895076752,
-0.21363277733325958,
0.04609911888837814,
-0.035747870802879333,
0.02855018526315689,
0.0127836549654603,
0.2756344676017761,
0.30798104405403137,
0.2152009755373001,
0.6308572292327881,
0.02930506132543087,
-0.28881528973579407,
-0.35020431876182556,
-0.5530300736427307,
0.10249442607164383,
0.4333707392215729,
0.20249825716018677,
0.5229725241661072,
-0.10573359578847885,
-0.3106372356414795,
-0.23982886970043182,
0.626682460308075,
-0.17351976037025452,
0.05344795435667038,
-0.17755627632141113,
0.04589727148413658,
0.010054824873805046,
0.32908526062965393,
-0.023276478052139282,
0.3484034240245819,
-0.17392821609973907,
0.10466011613607407,
-0.15604621171951294,
-0.3812665045261383,
0.6492167115211487,
-0.4117066264152527,
-0.2752852141857147,
-0.22860702872276306,
0.14405450224876404,
0.2265012562274933,
-0.10335184633731842,
-0.49174755811691284,
0.14992642402648926,
0.3424103856086731,
0.10573051869869232,
-0.3156126141548157,
0.21555779874324799,
-0.24738650023937225,
-0.0007557873614132404,
-0.060764167457818985,
0.5921412706375122,
0.015125378966331482,
-0.3535510301589966,
0.20041052997112274,
-0.0902961939573288
] |
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.07971898466348648,
0.12004657089710236,
0.16684143245220184,
0.18720586597919464,
0.0386049710214138,
0.243880495429039,
-0.05715740844607353,
-0.13316185772418976,
-0.06276533007621765,
0.14414049685001373,
0.34882843494415283,
-0.001974907238036394,
-0.09353404492139816,
0.2313060313463211,
0.049256160855293274,
-0.18132831156253815,
-0.06577348709106445,
0.05411873757839203,
-0.0644870400428772,
0.10039251297712326,
-0.14855210483074188,
-0.1538373827934265,
-0.19420108199119568,
-0.05920617654919624,
-0.10936325788497925,
-0.12021711468696594,
-0.21298733353614807,
-0.26418188214302063,
0.3176380693912506,
0.1678791493177414,
-0.08664540946483612,
0.5624817609786987,
-0.00010956420737784356,
-0.20614510774612427,
0.3377985954284668,
0.07884824275970459,
-0.44983863830566406,
-0.4648270905017853,
-0.26133376359939575,
-0.11857732385396957,
0.08887291699647903,
0.04937190189957619,
0.07927614450454712,
0.10678745061159134,
0.07051031291484833,
-0.42831823229789734,
0.3173292577266693,
0.43273231387138367,
0.201759934425354,
0.1783606857061386,
0.23362290859222412,
-0.13822521269321442,
0.12323714047670364,
0.08026281744241714,
0.013452256098389626,
0.42246007919311523,
0.195922389626503,
-0.12283741682767868,
0.26778802275657654,
0.026940030977129936,
-0.0859173908829689,
0.22060464322566986,
-0.13854363560676575,
-0.020324062556028366,
0.1799732893705368,
-0.4049909710884094,
-0.04558921605348587,
0.16446620225906372,
0.8760610818862915,
-0.049809034913778305,
-0.4123391807079315,
-0.26995357871055603,
0.10999886691570282,
-0.010712768882513046,
0.30561432242393494,
0.355400949716568,
-0.4313039481639862,
0.22497622668743134,
-0.2838400602340698,
0.07003071904182434,
0.030366193503141403,
0.3651781678199768,
0.12236475944519043,
-0.015971912071108818,
0.021431483328342438,
0.29206228256225586,
0.09481441229581833,
-0.04557010903954506,
0.2709401547908783,
-0.3481390178203583,
0.026292869821190834,
-0.0730997771024704,
-0.4070408046245575,
-0.10917604714632034,
0.03453058376908302,
0.15738935768604279,
0.17905275523662567,
0.11413577944040298,
-0.03291276469826698,
-0.18881410360336304,
-0.009300952777266502,
0.1332787275314331,
0.3627239465713501,
-0.05140244588255882,
0.022770971059799194,
0.17183305323123932,
0.20547810196876526,
-0.07473301887512207,
-0.06568042933940887,
-0.0005852741887792945,
0.08968918770551682,
-0.013408197090029716,
0.11781132221221924,
-0.12488304078578949,
0.3334633409976959,
-0.292774498462677,
-0.2640202045440674,
-0.06836873292922974,
0.12107869982719421,
-0.04083556681871414,
-0.1997186243534088,
0.17560024559497833,
-0.4186324179172516,
0.17371773719787598,
-0.023513074964284897,
0.12073546648025513,
-0.2860049903392792,
-0.38346758484840393,
-0.08887369930744171,
-0.0542660616338253,
-0.22702428698539734,
-0.06078234687447548,
-0.025594308972358704,
-0.01672976091504097,
0.09563679993152618,
0.1742195188999176,
0.08052283525466919,
-0.31223535537719727,
-0.00384886865504086,
-0.2295093983411789,
-0.15639816224575043,
0.19759979844093323,
-0.11751844733953476,
0.4563013017177582,
0.0885378047823906,
0.11180293560028076,
-0.09203304350376129,
-0.047164030373096466,
-0.1970355361700058,
-0.24524760246276855,
-0.16145263612270355,
0.23592333495616913,
-0.2093828022480011,
-0.2534171938896179,
-0.18735787272453308,
-0.10031314194202423,
0.268297016620636,
0.05497833341360092,
-0.06318027526140213,
-0.057491302490234375,
0.04851773381233215,
-0.10668335109949112,
-0.08583668619394302,
0.3686818480491638,
-0.426834374666214,
0.3215622007846832,
-0.2427392452955246,
0.12141421437263489,
0.2209986448287964,
0.20915207266807556,
-0.2188086062669754,
0.007021221797913313,
-0.15986429154872894,
-0.17485159635543823,
0.2636789381504059,
-0.2803453505039215,
-0.6896671652793884,
0.07763475179672241,
-0.306783527135849,
0.036018695682287216,
-0.161635622382164,
0.28240278363227844,
0.33217135071754456,
-0.12262573838233948,
0.0851026251912117,
0.4505007266998291,
-0.21759119629859924,
0.032492149621248245,
-0.40761598944664,
-0.15201197564601898,
-0.0775403305888176,
0.14632263779640198,
-0.038707271218299866,
0.016048945486545563,
-0.13820554316043854,
-0.029103688895702362,
0.29905256628990173,
0.44906672835350037,
0.14069123566150665,
0.2543390691280365,
0.0955422893166542,
0.24244676530361176,
0.009589659050107002,
-0.18588131666183472,
-0.3774215579032898,
0.17459876835346222,
0.5166447758674622,
0.0398234948515892,
-0.23470520973205566,
-0.03469401225447655,
-0.45416921377182007,
0.016655929386615753,
-0.04380962625145912,
0.01013652328401804,
0.02898683398962021,
0.1677502989768982,
0.28870153427124023,
0.19978013634681702,
0.01984420232474804,
0.6505977511405945,
-0.06818261742591858,
0.31212905049324036,
-0.08647195994853973,
0.20737501978874207,
-0.1682177186012268,
-0.135597825050354,
0.1590009331703186,
-0.3182861804962158,
0.19970813393592834,
-0.17437121272087097,
-0.17282269895076752,
0.3266715407371521,
0.05898730084300041,
0.10119101405143738,
-0.025603385642170906,
-0.24376359581947327,
0.2322075366973877,
-0.1403188854455948,
-0.1642284244298935,
0.35277122259140015,
0.10086347162723541,
0.023694902658462524,
-0.2600865066051483,
-0.012755297124385834,
0.22085706889629364,
0.18524807691574097,
-0.23862390220165253,
0.19701935350894928,
0.19343028962612152,
-0.005058870185166597,
0.15450839698314667,
-0.0676913931965828,
0.2783941328525543,
-0.2629430294036865,
0.13453461229801178,
-0.20537421107292175,
0.0025803970638662577,
0.37898483872413635,
0.32935234904289246,
0.10568853467702866,
-0.21984943747520447,
0.1804497390985489,
0.1296846717596054,
-0.1198635995388031,
-0.005632005166262388,
0.5065407752990723,
0.3067331910133362,
0.17041167616844177,
0.22661343216896057,
-0.07012040168046951,
-0.24366915225982666,
-0.14333230257034302,
0.18905332684516907,
0.07574976980686188,
0.05555685609579086,
-0.09695836156606674,
0.13491825759410858,
-0.02431904710829258,
-0.02905929647386074,
-0.3912777304649353,
0.17239567637443542,
0.30682218074798584,
-0.037828583270311356,
0.012093140743672848,
-0.2496582716703415,
-0.15205667912960052,
0.15689590573310852,
-0.11147799342870712,
-0.2432432919740677,
-0.5550529956817627,
-0.11703701317310333,
0.2648683488368988,
-0.04857451468706131,
0.036148492246866226,
-0.16835588216781616,
-0.145613431930542,
0.3770272433757782,
-0.22263778746128082,
-0.004113542847335339,
-0.158796489238739,
-0.062004927545785904,
0.08505875617265701,
0.21731477975845337,
-0.11893094331026077,
0.3502159118652344,
-0.24010491371154785,
-0.23112116754055023,
-0.3148249089717865,
-0.03135532885789871,
0.015478161163628101,
-0.1471473127603531,
0.3772642910480499,
-0.22869975864887238,
0.4140963852405548,
0.08519455045461655,
0.11938459426164627,
0.1587175726890564,
-0.1645902395248413,
-0.07069902122020721,
-0.10501017421483994,
0.09624634683132172,
0.10300728678703308,
-0.05750420317053795,
-0.2533058822154999,
-0.20383794605731964,
-0.3415127694606781,
0.13566191494464874,
-0.1374950259923935,
-0.05398968607187271,
0.15291187167167664,
0.22799424827098846,
0.030178647488355637,
-0.11516320705413818,
0.07647142559289932,
-0.19276563823223114,
-0.3900165855884552,
0.49262169003486633,
-0.08784764260053635,
-0.19768577814102173,
0.013377820141613483,
0.2124517261981964,
0.0070862555876374245,
0.31365010142326355,
-0.6629760265350342,
0.05683165788650513,
-0.318594753742218,
0.27165690064430237,
-0.05466598644852638,
-0.28249019384384155,
0.26860475540161133,
-0.4917539954185486,
-0.10534777492284775,
0.03987192362546921,
0.027759220451116562,
-0.029761001467704773,
0.10549581050872803,
0.4257921278476715,
-0.17380180954933167,
0.29014819860458374,
-0.005896931979805231,
0.1678651124238968,
0.23275400698184967,
-0.023030702024698257,
0.08527018874883652,
0.12118060141801834,
0.2642667591571808,
-0.006339541636407375,
-0.30341607332229614,
-0.01760866679251194,
-0.034133635461330414,
-0.13685664534568787,
-0.010716513730585575,
-0.00852550845593214,
-0.21890495717525482,
-0.18994878232479095,
0.0047966595739126205,
-0.26914381980895996,
-0.28522855043411255,
-0.11812353134155273,
-0.20872604846954346,
0.031999245285987854,
0.3415754735469818,
0.21627621352672577,
0.04801783338189125,
-0.1770513355731964,
-0.14029622077941895,
-0.003488550428301096,
-0.12227576971054077,
-0.2203555703163147,
-0.5491006374359131,
0.13394470512866974,
-0.3536436855792999,
0.2230885922908783,
-0.060128673911094666,
0.3213076889514923,
-0.08073940128087997,
0.11256582289934158,
0.1893666535615921,
0.03791890665888786,
0.6117429733276367,
-0.18092532455921173,
0.036236051470041275,
0.017980854958295822,
0.2915150821208954,
-0.47829335927963257,
-0.07695140689611435,
0.15238286554813385,
0.28456273674964905,
0.522652804851532,
0.03703651577234268,
-0.3182998299598694,
0.022298751398921013,
0.07867753505706787,
0.2848934531211853,
0.12791708111763,
-0.4066615104675293,
0.08613492548465729,
-0.18453676998615265,
-0.17153619229793549,
0.15568682551383972,
0.09902538359165192,
0.13993163406848907,
-0.006308737210929394,
-0.22527669370174408,
0.15774935483932495,
0.1879139244556427,
-0.011469085700809956,
-0.10066399723291397,
0.1955484300851822,
-0.28009533882141113,
0.5696741938591003,
0.05821935832500458,
-0.21681572496891022,
0.3292991816997528,
0.6071471571922302,
0.20370249450206757,
-0.4783620238304138,
-0.0077773225493729115,
-0.0352763906121254,
-0.1191033124923706,
0.2941092252731323,
0.06880132108926773,
-0.07377143204212189,
-0.2819930613040924,
0.35262852907180786,
0.08208449929952621,
0.15760718286037445,
0.2579840123653412,
0.04141225665807724,
-0.413015216588974,
-0.49101874232292175,
0.19874347746372223,
0.040705014020204544,
0.007740672677755356,
0.7631573677062988,
-0.08212597668170929,
0.11729341745376587,
0.21698179841041565,
0.0036686784587800503,
1.0106481313705444,
-0.18492934107780457,
0.055588249117136,
0.026952460408210754,
-0.19689376652240753,
0.44702011346817017,
-0.24445025622844696,
0.05335365608334541,
-0.07444127649068832,
0.09852281957864761,
0.07905097305774689,
-0.09009107202291489,
-0.10415300726890564,
0.24953654408454895,
-0.2677386403083801,
0.09341271221637726,
-0.1866246610879898,
0.11987877637147903,
-0.10687390714883804,
0.16023243963718414,
-0.3221094608306885,
-0.04931322857737541,
-0.07387791574001312,
0.2528643012046814,
-0.019003279507160187,
0.2423349916934967,
0.0503331683576107,
0.10214024782180786,
-0.21651728451251984,
-0.05116504058241844,
-0.6515235900878906,
0.06079215183854103,
-0.10599353164434433,
-0.024938615038990974,
-0.3161863088607788,
-0.26942697167396545,
-0.039735596626996994,
0.06479828804731369,
0.18098396062850952,
0.2945520281791687,
-0.10852912813425064,
0.27340418100357056,
-0.1617363840341568,
-0.08285421878099442,
0.007087049540132284,
-0.25620394945144653,
0.17007975280284882,
0.025747986510396004,
-0.4043717384338379,
0.17288878560066223,
-0.012019031681120396,
-0.19253969192504883,
0.24533934891223907,
0.2451251745223999,
0.1537732481956482,
-0.140560582280159,
0.07053917646408081,
0.004491991829127073,
0.18393142521381378,
-0.3315318524837494,
0.16464006900787354,
0.273398220539093,
0.11607888340950012,
0.29347699880599976,
-0.1306779980659485,
-0.34178775548934937,
-0.31240299344062805,
0.4209149479866028,
0.01472289115190506,
-0.01827189140021801,
0.277717262506485,
0.19465093314647675,
-0.3831721842288971,
-0.3084496855735779,
0.048394836485385895,
-0.5737428665161133,
-0.3759394586086273,
0.27087509632110596,
-0.48093387484550476,
0.3688185214996338,
-0.05256273224949837,
-0.1945745348930359,
0.1614539921283722,
0.04105251282453537,
0.17652976512908936,
-0.5769952535629272,
-0.07238219678401947,
-0.13422545790672302,
-0.3124864995479584,
0.0035801075864583254,
-0.12181700766086578,
-0.01743539236485958,
0.22096362709999084,
-0.028305400162935257,
-0.3059009313583374,
0.10724114626646042,
-0.29909664392471313,
0.16669872403144836,
0.36302289366722107,
-0.1178339421749115,
0.3600856363773346,
-0.14760033786296844,
0.07194933295249939,
0.2135469764471054,
-0.12591344118118286,
-0.1867569535970688,
0.00887694675475359,
0.12042059004306793,
-0.09831953793764114,
-0.19878414273262024,
0.10216724872589111,
-0.46534886956214905,
-0.11391574144363403,
0.08365672826766968,
-0.13278436660766602,
0.11490193009376526,
0.07513325661420822,
-0.21579362452030182,
0.1564476042985916,
0.06085342913866043,
0.03195443004369736,
0.17440442740917206,
-0.08145292103290558,
0.4345966875553131,
0.2335425466299057,
0.32125818729400635,
0.1280270665884018,
0.047678861767053604,
-0.5013424158096313,
-0.002189244842156768,
-0.15553545951843262,
0.008616473525762558,
0.50009685754776,
-0.28495919704437256,
0.057455968111753464,
0.3465833365917206,
0.3582385778427124,
0.5142085552215576,
0.021775390952825546,
-0.16601108014583588,
0.34934544563293457,
0.2776167690753937,
-0.007257105782628059,
-0.09315197169780731,
0.3161650598049164,
0.19545742869377136,
0.01273026317358017,
0.1659444272518158,
-0.02866058051586151,
-0.1532743126153946,
0.17523282766342163,
0.21328511834144592,
0.7456157207489014,
0.059435613453388214,
0.21208812296390533,
0.2359478771686554,
0.13257893919944763,
-0.02564988099038601,
0.49623072147369385,
0.28930461406707764,
0.06484605371952057,
0.18369710445404053,
-0.18960702419281006,
-0.06991676241159439,
-0.06968949735164642,
0.11877618730068207,
-0.09256019443273544,
-0.25629472732543945,
0.08004683256149292,
0.17296485602855682,
-0.27096959948539734,
-0.05364004895091057,
0.16827639937400818,
0.15170854330062866,
-0.24122172594070435,
-0.052695151418447495,
-0.1684114933013916,
0.2435327172279358,
0.07848604023456573,
0.21635906398296356,
0.15593843162059784,
-0.11664755642414093,
-0.12535998225212097,
0.05949915945529938,
0.006154749542474747,
-0.2609728276729584,
0.41848117113113403,
0.12325123697519302,
0.09631460905075073,
-0.5866309404373169,
-0.001491194823756814,
-0.08682307600975037,
0.18817463517189026,
-0.4743903875350952,
0.04745360463857651,
0.018093617632985115,
-0.2157316505908966,
-0.06122138723731041,
0.2576417028903961,
0.5287148356437683,
0.15787695348262787,
-0.07362107932567596,
0.18873317539691925,
-0.006599786225706339,
-0.08333366364240646,
-0.06307117640972137,
0.4645080864429474,
0.08902677148580551,
-0.07611765712499619,
0.41384416818618774,
0.14463326334953308,
-0.22848795354366302,
0.145346000790596,
0.10897430777549744,
0.28628161549568176,
-0.2727350890636444,
-0.008478766307234764,
-0.05942227318882942,
-0.1286308914422989,
-0.365526020526886,
-0.14536520838737488,
-0.13095691800117493,
-0.014877519570291042,
0.44299575686454773,
-0.36603209376335144,
-0.038418203592300415,
-0.2658149003982544,
0.11079025268554688,
-0.16122980415821075,
0.3122110962867737,
0.48440584540367126,
0.22829827666282654,
-0.17407476902008057,
-0.36726194620132446,
-0.3894624412059784,
0.07421067357063293,
-0.639665424823761,
-0.15022888779640198,
-0.14387550950050354,
0.5153069496154785,
0.1265908032655716,
0.34815502166748047,
0.3572772443294525,
0.0897674709558487,
-0.40114375948905945,
0.4775118827819824,
-0.2764580249786377,
-0.37659355998039246,
-0.05098109692335129,
0.007223640568554401,
0.08506067842245102,
-0.30326205492019653,
0.17786751687526703,
-0.22377699613571167,
0.023635419085621834,
-0.13773249089717865,
-0.20669566094875336,
0.22312361001968384,
-0.1374199390411377,
0.4727035164833069,
0.08098132163286209,
0.23509998619556427,
0.28565993905067444,
-0.5054972767829895,
-0.48173680901527405,
-0.20524433255195618,
0.0052703809924423695,
0.07313794642686844,
0.06347939372062683,
0.3176404535770416,
-0.3422471582889557,
0.014920727349817753,
-0.12036734074354172,
0.19726745784282684,
-0.11433892697095871,
-0.27992305159568787,
0.22402839362621307,
-0.23873089253902435,
-0.029513327404856682,
0.3290403485298157,
-0.04373011738061905,
0.15482765436172485,
-0.05231737717986107,
0.19669795036315918,
-0.2919946610927582,
-0.3440687656402588,
0.2796037197113037,
0.03348252922296524,
-0.4112813472747803,
0.038684774190187454,
0.1673295497894287,
0.10590037703514099,
-0.048376861959695816,
-0.21234163641929626,
0.09966646879911423,
0.417896032333374,
-0.06320977956056595,
-0.2242981642484665,
0.20848137140274048,
0.05455164238810539,
0.158358633518219,
-0.03663009777665138,
0.4831291139125824,
0.026859497651457787,
-0.24174505472183228,
0.31837597489356995,
-0.14631225168704987
] |
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.35145556926727295,
-0.17711463570594788,
-0.07967130094766617,
0.16828694939613342,
0.14759473502635956,
0.223283588886261,
0.022603686898946762,
0.2211400270462036,
0.01235351525247097,
-0.1897381991147995,
-0.0006057409336790442,
0.07988236099481583,
0.2927660048007965,
-0.023499034345149994,
0.004596177488565445,
0.26055607199668884,
0.17460791766643524,
-0.1837056428194046,
0.02955995872616768,
0.021248698234558105,
0.003919153939932585,
0.1042710691690445,
-0.2045954018831253,
-0.18912187218666077,
-0.28688332438468933,
-0.06323442608118057,
-0.10262403637170792,
-0.06519446521997452,
-0.16135026514530182,
-0.2562069594860077,
0.2678036689758301,
0.17475402355194092,
-0.1125701442360878,
0.5722387433052063,
-0.00011087441089330241,
-0.20025883615016937,
0.326736181974411,
0.06067780777812004,
-0.39026257395744324,
-0.4879058003425598,
-0.25147122144699097,
-0.13672809302806854,
0.06485738605260849,
0.0613178052008152,
0.11008114367723465,
0.06500136107206345,
0.07657791674137115,
-0.391547828912735,
0.27783024311065674,
0.4178675711154938,
0.19374097883701324,
0.3087409734725952,
0.1997346580028534,
-0.10753829032182693,
0.21466180682182312,
-0.005983508192002773,
0.04337141662836075,
0.3852347135543823,
0.18500347435474396,
-0.21504588425159454,
0.22566816210746765,
0.03871231898665428,
-0.08732496947050095,
0.21247738599777222,
-0.02706504799425602,
0.0023183536250144243,
0.06243014708161354,
-0.429582804441452,
-0.026627346873283386,
0.16273455321788788,
0.909849226474762,
0.015501405112445354,
-0.42100533843040466,
-0.27651873230934143,
0.06437353044748306,
0.01916053332388401,
0.4107706546783447,
0.3963231146335602,
-0.3528384864330292,
0.21955393254756927,
-0.2865404486656189,
0.016961567103862762,
0.05857599154114723,
0.34550726413726807,
0.1300354301929474,
-0.036584850400686264,
0.051485348492860794,
0.21210329234600067,
0.07769408822059631,
-0.012777778320014477,
0.31822535395622253,
-0.3606890141963959,
0.06388457864522934,
-0.04541196674108505,
-0.4223782420158386,
-0.059610430151224136,
0.041024502366781235,
0.2965489625930786,
0.21800774335861206,
0.03760189935564995,
0.009040599688887596,
-0.23317967355251312,
-0.15635357797145844,
0.18109121918678284,
0.41439932584762573,
0.03280453011393547,
-0.08634403347969055,
0.15662407875061035,
0.24900156259536743,
-0.15633589029312134,
-0.06372667104005814,
0.028115220367908478,
0.05355573445558548,
-0.0046377889811992645,
0.20609506964683533,
-0.16088129580020905,
0.26427820324897766,
-0.2941415309906006,
-0.2341362088918686,
-0.031705550849437714,
0.13191083073616028,
-0.10885915905237198,
-0.21196287870407104,
0.208404541015625,
-0.5190796256065369,
0.2473195642232895,
-0.1339629888534546,
0.11474787443876266,
-0.3465743660926819,
-0.3769265413284302,
-0.09950506687164307,
0.047919366508722305,
-0.2433875948190689,
-0.028486641123890877,
-0.04624800756573677,
-0.0000031458127978112316,
0.07658389955759048,
0.20440596342086792,
0.017684824764728546,
-0.36381345987319946,
-0.009905338287353516,
-0.23871760070323944,
-0.11294344067573547,
0.1991790235042572,
-0.1510946899652481,
0.4225292205810547,
0.037646375596523285,
0.10379374027252197,
-0.08059625327587128,
-0.01624981500208378,
-0.33194029331207275,
-0.23657386004924774,
-0.12035363167524338,
0.21285401284694672,
-0.31139251589775085,
-0.3375157415866852,
-0.17007948458194733,
-0.03492303565144539,
0.24027639627456665,
-0.0020038457587361336,
-0.0957975760102272,
-0.03596048429608345,
0.0914468765258789,
-0.10809580236673355,
-0.08032908290624619,
0.41751956939697266,
-0.46714919805526733,
0.2881302237510681,
-0.1859699785709381,
0.13635586202144623,
0.1721726506948471,
0.2570505440235138,
-0.14677593111991882,
0.04545363038778305,
-0.20807263255119324,
-0.17753812670707703,
0.27390462160110474,
-0.1860809624195099,
-0.7467338442802429,
0.05780258774757385,
-0.2843501567840576,
0.04241923987865448,
-0.11786483973264694,
0.36948496103286743,
0.24071742594242096,
-0.14267368614673615,
0.039103224873542786,
0.4280475378036499,
-0.2491462379693985,
0.004937744699418545,
-0.39306673407554626,
-0.20066557824611664,
0.023305751383304596,
0.1867520660161972,
0.017326710745692253,
0.07467790693044662,
-0.11237087100744247,
-0.04638681933283806,
0.24137751758098602,
0.4207427501678467,
0.10312335938215256,
0.25811684131622314,
0.027650516480207443,
0.31171169877052307,
0.0341697558760643,
-0.22088217735290527,
-0.46349239349365234,
0.19297131896018982,
0.49742698669433594,
-0.04022926092147827,
-0.22566288709640503,
-0.0038946918211877346,
-0.3863799571990967,
-0.005857511889189482,
-0.06645234674215317,
0.02014528214931488,
0.0067060417495667934,
0.14836010336875916,
0.27302706241607666,
0.2620783746242523,
-0.042832229286432266,
0.6063829660415649,
0.06349699199199677,
0.25568851828575134,
-0.10817015916109085,
0.20150262117385864,
-0.13582265377044678,
-0.15735429525375366,
0.16424603760242462,
-0.33190298080444336,
0.20646506547927856,
-0.14268751442432404,
-0.171240895986557,
0.306504487991333,
0.042715709656476974,
0.16181813180446625,
0.011498747393488884,
-0.10001449286937714,
0.28669318556785583,
-0.14389668405056,
-0.15829648077487946,
0.3258189558982849,
0.11365467309951782,
0.003176239086315036,
-0.2952043414115906,
0.017541533336043358,
0.16085487604141235,
0.14630791544914246,
-0.24220553040504456,
0.12829340994358063,
0.11889901012182236,
0.021880147978663445,
0.23465143144130707,
-0.017927754670381546,
0.3345370292663574,
-0.2813601791858673,
0.1407994031906128,
-0.18998979032039642,
-0.0198667012155056,
0.3656046390533447,
0.3421824872493744,
0.11513642221689224,
-0.15749375522136688,
0.17379820346832275,
0.12677998840808868,
-0.1751212328672409,
-0.000986846280284226,
0.4331413209438324,
0.27644577622413635,
0.16724787652492523,
0.23331999778747559,
-0.08592667430639267,
-0.1909574717283249,
-0.1633749008178711,
0.10531823337078094,
0.034864362329244614,
-0.03634105622768402,
-0.06392481178045273,
0.13481222093105316,
-0.004275443498045206,
-0.07548263669013977,
-0.3622913360595703,
0.16581235826015472,
0.2567991614341736,
-0.031225787475705147,
0.04737965762615204,
-0.2350289523601532,
-0.08951538056135178,
0.17976433038711548,
-0.06267017126083374,
-0.31326714158058167,
-0.53461754322052,
-0.05703506991267204,
0.25723662972450256,
-0.023965682834386826,
0.031437214463949203,
-0.21076495945453644,
-0.06623508781194687,
0.41849416494369507,
-0.2246602475643158,
-0.0019351323135197163,
-0.19666045904159546,
-0.003124491311609745,
0.06662537902593613,
0.22889800369739532,
-0.15723027288913727,
0.29784417152404785,
-0.257580041885376,
-0.23200750350952148,
-0.43824028968811035,
0.010009287856519222,
0.024063877761363983,
-0.1659134179353714,
0.3262801468372345,
-0.274530291557312,
0.40148648619651794,
0.04676099494099617,
0.18470001220703125,
0.12931741774082184,
-0.21595191955566406,
-0.05685240030288696,
-0.09018498659133911,
0.10981975495815277,
0.09168650954961777,
0.013014862313866615,
-0.283265084028244,
-0.2611871361732483,
-0.3255769908428192,
0.1303071528673172,
-0.1285695731639862,
-0.059582460671663284,
0.09944150596857071,
0.213188037276268,
-0.028617024421691895,
-0.14001795649528503,
0.1327977478504181,
-0.2126908302307129,
-0.46616366505622864,
0.5746906399726868,
-0.10253996402025223,
-0.2443290799856186,
0.07285818457603455,
0.22742080688476562,
-0.08491695672273636,
0.3090684711933136,
-0.7301836609840393,
0.06512816250324249,
-0.331662118434906,
0.25325772166252136,
-0.06613170355558395,
-0.18614299595355988,
0.22061342000961304,
-0.49087679386138916,
-0.09713813662528992,
0.001267248415388167,
0.03664974868297577,
-0.05883662775158882,
0.08652954548597336,
0.43065527081489563,
-0.08729641139507294,
0.2449737787246704,
-0.011774909682571888,
0.2368471920490265,
0.19697166979312897,
0.03935350850224495,
0.13593098521232605,
0.13158801198005676,
0.2887604236602783,
0.03816431388258934,
-0.197503000497818,
0.005636748392134905,
-0.07811027765274048,
-0.1713755577802658,
0.06413429230451584,
0.020720724016427994,
-0.24241577088832855,
-0.19661825895309448,
-0.003414487699046731,
-0.28026795387268066,
-0.2028692066669464,
-0.11540544033050537,
-0.23983217775821686,
-0.016245026141405106,
0.3200683295726776,
0.21803317964076996,
0.01893123798072338,
-0.26989665627479553,
-0.03656216710805893,
0.015188991092145443,
-0.047049809247255325,
-0.14823640882968903,
-0.5069872736930847,
0.1340518593788147,
-0.3120482861995697,
0.20342420041561127,
-0.09548579901456833,
0.35489481687545776,
-0.10771548748016357,
0.042965732514858246,
0.15530601143836975,
0.007652004715055227,
0.5914549231529236,
-0.10411606729030609,
0.09834379702806473,
-0.07158727198839188,
0.2899130880832672,
-0.32683902978897095,
-0.10911314189434052,
0.18694967031478882,
0.2797992527484894,
0.3968098759651184,
-0.08415926247835159,
-0.26653367280960083,
0.11395600438117981,
0.021089475601911545,
0.3152818977832794,
0.11120365560054779,
-0.46478375792503357,
0.03564250469207764,
-0.07124419510364532,
-0.10731732100248337,
0.1279919594526291,
0.08268428593873978,
0.01973455585539341,
-0.018254149705171585,
-0.17067423462867737,
0.1882762312889099,
0.169902965426445,
0.050093840807676315,
-0.11844662576913834,
0.2467600405216217,
-0.3339711129665375,
0.47953784465789795,
0.14935454726219177,
-0.22535862028598785,
0.21934138238430023,
0.7089196443557739,
0.18527387082576752,
-0.45538410544395447,
0.033659812062978745,
0.020823732018470764,
-0.09455844014883041,
0.2738795280456543,
0.04774198308587074,
-0.08045429736375809,
-0.10908789187669754,
0.30352720618247986,
-0.007922563701868057,
0.1479128897190094,
0.2430756390094757,
0.05185642093420029,
-0.4522883892059326,
-0.5552815794944763,
0.26070329546928406,
0.11195102334022522,
0.0035998858511447906,
0.7280552387237549,
-0.10572097450494766,
0.157854363322258,
0.23735997080802917,
-0.09947865456342697,
0.9929693341255188,
-0.16209982335567474,
0.14933528006076813,
-0.03338458389043808,
-0.047853585332632065,
0.48637330532073975,
-0.35973674058914185,
0.07736624777317047,
-0.05377785488963127,
-0.0039167278446257114,
0.028477448970079422,
-0.1073974221944809,
-0.23440812528133392,
0.26516106724739075,
-0.2373565286397934,
0.2292892187833786,
-0.20267730951309204,
0.2066040188074112,
-0.12984292209148407,
0.1543675810098648,
-0.32037895917892456,
-0.011039947159588337,
-0.08897364884614944,
0.2219662219285965,
0.02609180472791195,
0.25126200914382935,
0.01744653843343258,
0.11189669370651245,
-0.20524270832538605,
0.00567153375595808,
-0.6313537359237671,
0.0718434676527977,
-0.12432315945625305,
-0.010220863856375217,
-0.31965172290802,
-0.3208352029323578,
-0.03353220969438553,
0.12963099777698517,
0.16167616844177246,
0.22598573565483093,
-0.12882201373577118,
0.31987297534942627,
-0.09636437147855759,
-0.05374114587903023,
-0.008045358583331108,
-0.21880480647087097,
0.19299174845218658,
0.0218503437936306,
-0.3007867634296417,
0.17267659306526184,
-0.06929770857095718,
-0.16043440997600555,
0.10415090620517731,
0.2808118462562561,
0.17687657475471497,
-0.09427852183580399,
0.051310259848833084,
-0.04056183993816376,
0.19641749560832977,
-0.28930842876434326,
0.16394825279712677,
0.4116244614124298,
0.1906161606311798,
0.24541273713111877,
-0.13408952951431274,
-0.2700130045413971,
-0.40324667096138,
0.4275883436203003,
0.002211111830547452,
-0.11017095297574997,
0.21258899569511414,
0.24547091126441956,
-0.45117300748825073,
-0.26190558075904846,
0.04259965941309929,
-0.540283203125,
-0.39606860280036926,
0.24992682039737701,
-0.5254062414169312,
0.33604443073272705,
-0.08375121653079987,
-0.16350559890270233,
0.17544355988502502,
0.04153135046362877,
0.18816764652729034,
-0.593543291091919,
-0.08102443069219589,
-0.10038887709379196,
-0.28377053141593933,
0.01281876303255558,
-0.1215306967496872,
-0.17704185843467712,
0.2575618326663971,
-0.03400995582342148,
-0.29538804292678833,
0.03788597509264946,
-0.2645803987979889,
0.09872846305370331,
0.2678191363811493,
-0.07157085835933685,
0.3697842061519623,
-0.10258224606513977,
0.06079847738146782,
0.14114195108413696,
-0.11483928561210632,
-0.14953145384788513,
0.006299315486103296,
0.1379145383834839,
-0.06339135766029358,
-0.14796164631843567,
0.05888994783163071,
-0.44543448090553284,
-0.06650199741125107,
0.09151842445135117,
-0.01564089022576809,
0.137248694896698,
0.061457403004169464,
-0.2270420789718628,
0.17663638293743134,
-0.02053564414381981,
-0.030989501625299454,
0.2033296823501587,
-0.0655851811170578,
0.4361160099506378,
0.19105994701385498,
0.21707220375537872,
0.15376639366149902,
0.049885381013154984,
-0.4696023464202881,
-0.028968753293156624,
-0.10804153978824615,
-0.0012201160425320268,
0.5069381594657898,
-0.3495693802833557,
0.08562057465314865,
0.3764304518699646,
0.38942769169807434,
0.5139309763908386,
0.011211451143026352,
-0.1490621566772461,
0.44278770685195923,
0.27431920170783997,
-0.015441261231899261,
-0.1695476770401001,
0.3015780448913574,
0.19128823280334473,
0.02458292432129383,
0.11083591729402542,
-0.020065758377313614,
-0.14653445780277252,
0.11816776543855667,
0.2566964328289032,
0.7323004603385925,
-0.0011004239786416292,
0.19760233163833618,
0.0902479887008667,
0.17548540234565735,
0.0045166295021772385,
0.4779082238674164,
0.3105084300041199,
-0.03507329151034355,
0.20822541415691376,
-0.07628259062767029,
-0.1176377385854721,
0.036977965384721756,
0.1323198527097702,
-0.10637779533863068,
-0.2636115550994873,
0.03591838479042053,
0.19577842950820923,
-0.2781752943992615,
-0.014217854477465153,
0.1020684763789177,
0.1815606951713562,
-0.24021032452583313,
-0.06883399188518524,
-0.192079097032547,
0.20477178692817688,
0.07950034737586975,
0.2561768889427185,
0.3552332818508148,
-0.13778236508369446,
-0.08224612474441528,
0.08176009356975555,
0.0413428470492363,
-0.23120306432247162,
0.39263805747032166,
0.19536632299423218,
0.11659035831689835,
-0.5178906917572021,
0.005887954495847225,
-0.09000018239021301,
0.2304944545030594,
-0.4653826653957367,
0.08235758543014526,
-0.015110036358237267,
-0.2950538396835327,
-0.0217597596347332,
0.2152806967496872,
0.5295721888542175,
0.18058209121227264,
-0.07449552416801453,
0.12099750339984894,
-0.04465750232338905,
-0.06738409399986267,
-0.06385566294193268,
0.505407452583313,
0.04411672428250313,
-0.14882288873195648,
0.3898939788341522,
0.11459185183048248,
-0.20241427421569824,
0.22414621710777283,
0.05614547058939934,
0.25696423649787903,
-0.30920010805130005,
-0.055607933551073074,
-0.09218677133321762,
-0.1618703305721283,
-0.38078436255455017,
-0.16199950873851776,
-0.2222256064414978,
-0.03572288528084755,
0.4328234791755676,
-0.3476443290710449,
-0.03258909285068512,
-0.28780847787857056,
0.10025700181722641,
-0.1317635029554367,
0.3615841567516327,
0.5655298233032227,
0.33569204807281494,
-0.15268583595752716,
-0.2620875835418701,
-0.46107399463653564,
0.08432941883802414,
-0.5949674248695374,
-0.07586082816123962,
-0.1460903137922287,
0.4706690311431885,
0.07032336294651031,
0.3799137771129608,
0.3234637975692749,
0.058840375393629074,
-0.4108413755893707,
0.46787771582603455,
-0.32025155425071716,
-0.35221290588378906,
-0.08157522976398468,
0.039867814630270004,
0.05244055017828941,
-0.24966749548912048,
0.19716542959213257,
-0.33527442812919617,
0.0077863214537501335,
-0.14289337396621704,
-0.2132219821214676,
0.16587303578853607,
-0.05118981748819351,
0.4950643479824066,
0.07482101768255234,
0.302979439496994,
0.29445841908454895,
-0.48961013555526733,
-0.5438293814659119,
-0.28054797649383545,
0.007949694991111755,
-0.0352594293653965,
0.03658435866236687,
0.29369235038757324,
-0.39945465326309204,
0.03986512869596481,
-0.11193320900201797,
0.21742528676986694,
-0.14500191807746887,
-0.2861662209033966,
0.17583076655864716,
-0.2617858648300171,
-0.046730052679777145,
0.3729979693889618,
0.07405376434326172,
0.18090052902698517,
-0.09310382604598999,
0.1903897523880005,
-0.2506173253059387,
-0.31582170724868774,
0.23526795208454132,
-0.023083599284291267,
-0.35486531257629395,
0.003519398858770728,
0.1605766862630844,
0.17622484266757965,
-0.014007417485117912,
-0.19612248241901398,
0.08975723385810852,
0.39863115549087524,
0.004891898017376661,
-0.1920955926179886,
0.18237867951393127,
0.049425046890974045,
0.18333381414413452,
-0.011885342188179493,
0.47691136598587036,
0.025230439379811287,
-0.27491915225982666,
0.3731449246406555,
-0.1237800270318985
] |
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.34570592641830444,
-0.11349114030599594,
-0.08899127691984177,
0.12944401800632477,
0.14749182760715485,
0.21437321603298187,
0.048017799854278564,
0.19988766312599182,
0.033855196088552475,
-0.09553135931491852,
-0.030202828347682953,
0.11687563359737396,
0.24378125369548798,
-0.07714832574129105,
-0.049120016396045685,
0.23142264783382416,
0.05778595432639122,
-0.16223067045211792,
-0.05591966211795807,
0.07350236177444458,
0.01105935126543045,
0.12743648886680603,
-0.07140684127807617,
-0.18327727913856506,
-0.29786473512649536,
-0.06552418321371078,
-0.13290807604789734,
0.07138671725988388,
-0.2183753103017807,
-0.3113504946231842,
0.2569492757320404,
0.12307374179363251,
0.010395481251180172,
0.6663284301757812,
-0.00011161025759065524,
-0.15925580263137817,
0.24374939501285553,
0.04264017567038536,
-0.48774635791778564,
-0.5513871908187866,
-0.13421085476875305,
-0.1945224404335022,
0.06999815255403519,
-0.023828599601984024,
0.11949439346790314,
0.08723043650388718,
0.1862621009349823,
-0.4260835349559784,
0.29676520824432373,
0.4254147708415985,
0.1753058135509491,
0.23871852457523346,
0.17227931320667267,
-0.02511798031628132,
0.17376041412353516,
0.10747890919446945,
0.05598967522382736,
0.47376278042793274,
0.17528237402439117,
-0.1304798275232315,
0.219562366604805,
-0.020969096571207047,
-0.1029602661728859,
0.2084071785211563,
-0.09647208452224731,
0.10182128846645355,
0.0989016592502594,
-0.46623408794403076,
-0.06993938237428665,
0.14540673792362213,
0.9318503141403198,
-0.04775122553110123,
-0.4556194245815277,
-0.2536887228488922,
0.06746943295001984,
-0.008154328912496567,
0.3597683906555176,
0.39816978573799133,
-0.3702104985713959,
0.23843079805374146,
-0.2310332953929901,
-0.037916604429483414,
0.04562307894229889,
0.36639928817749023,
0.1222335696220398,
0.0011741331545636058,
0.0717662125825882,
0.19350115954875946,
0.091200090944767,
-0.010882162488996983,
0.18970657885074615,
-0.2875141501426697,
0.08278289437294006,
-0.023027658462524414,
-0.3163498342037201,
-0.004063285421580076,
0.06554865837097168,
0.15145814418792725,
0.19573871791362762,
0.07829830795526505,
0.055619608610868454,
-0.2048887014389038,
-0.19198615849018097,
0.1541336327791214,
0.38012003898620605,
0.01809082180261612,
-0.031185060739517212,
0.08554580807685852,
0.31536558270454407,
-0.06589929014444351,
-0.06710135191679001,
0.010709937661886215,
0.07205016911029816,
0.004937273915857077,
0.24727866053581238,
-0.15956196188926697,
0.3136942386627197,
-0.1568959504365921,
-0.26493391394615173,
-0.003285316750407219,
-0.00831331592053175,
-0.10223934799432755,
-0.1726377308368683,
0.1798476129770279,
-0.46101272106170654,
0.26576855778694153,
0.07955992966890335,
0.08740366250276566,
-0.37334156036376953,
-0.31425026059150696,
-0.07719776779413223,
0.06103826314210892,
-0.2870960533618927,
-0.018002893775701523,
0.014178778044879436,
-0.10226450860500336,
0.13527537882328033,
0.1678619384765625,
0.0020397163461893797,
-0.3097986578941345,
-0.017695147544145584,
-0.13594414293766022,
-0.1976197212934494,
0.2188757061958313,
-0.15063165128231049,
0.4216022193431854,
0.05837460607290268,
0.10222046822309494,
-0.040333881974220276,
-0.038325369358062744,
-0.26695114374160767,
-0.27882885932922363,
-0.13514551520347595,
0.21645277738571167,
-0.23732426762580872,
-0.21259574592113495,
-0.14561748504638672,
-0.11631597578525543,
0.20050878822803497,
-0.012749985791742802,
-0.08984209597110748,
-0.04236280173063278,
0.1261977255344391,
-0.11594519764184952,
-0.02546781487762928,
0.4587130844593048,
-0.5205493569374084,
0.22549903392791748,
-0.21021732687950134,
0.1050466001033783,
0.16742311418056488,
0.22208566963672638,
-0.16809812188148499,
0.1256013810634613,
-0.3032052218914032,
-0.12763242423534393,
0.3263629674911499,
-0.208816796541214,
-0.6565336585044861,
-0.006463909987360239,
-0.422506183385849,
0.04363664984703064,
-0.03988410159945488,
0.31998535990715027,
0.21163539588451385,
-0.06214684993028641,
0.023738237097859383,
0.334067165851593,
-0.19207370281219482,
0.014688638038933277,
-0.37585189938545227,
-0.14958640933036804,
-0.05329260975122452,
0.15651963651180267,
0.01318312343209982,
0.03865232691168785,
-0.094039186835289,
0.010664347559213638,
0.29135212302207947,
0.3134847581386566,
0.11981180310249329,
0.28046715259552,
0.06980855762958527,
0.30566999316215515,
0.08199887722730637,
-0.24702773988246918,
-0.442109614610672,
0.23788470029830933,
0.5058304667472839,
0.09759827703237534,
-0.2918384373188019,
-0.010444823652505875,
-0.44220414757728577,
0.03129194304347038,
-0.025696836411952972,
0.008342384360730648,
0.02356465719640255,
0.1981823593378067,
0.29849696159362793,
0.23057621717453003,
-0.06883382797241211,
0.5827646255493164,
-0.06300069391727448,
0.29260510206222534,
-0.2162383794784546,
0.30010583996772766,
-0.18524758517742157,
-0.15204957127571106,
0.07356474548578262,
-0.30784037709236145,
0.07816478610038757,
-0.2067967653274536,
-0.1422504186630249,
0.3422001898288727,
-0.00936856959015131,
0.1589464396238327,
0.04767453297972679,
-0.06521030515432358,
0.27944767475128174,
-0.12249168753623962,
-0.1327507048845291,
0.3763536214828491,
0.0903320387005806,
0.07238823920488358,
-0.24747617542743683,
-0.00029304303461685777,
0.16029755771160126,
0.17977875471115112,
-0.18110983073711395,
0.1444840133190155,
0.11539491266012192,
-0.008544271811842918,
0.1329468935728073,
-0.04473046213388443,
0.43115952610969543,
-0.3700486421585083,
0.1274297833442688,
-0.20815931260585785,
-0.015293699689209461,
0.37025490403175354,
0.2613646686077118,
0.05695638060569763,
-0.15856043994426727,
0.17013897001743317,
0.12499486654996872,
-0.14098809659481049,
-0.08529938012361526,
0.3960918188095093,
0.3165249824523926,
0.18751968443393707,
0.2048446238040924,
-0.09450771659612656,
-0.1836346834897995,
-0.12542888522148132,
0.12747067213058472,
0.023260658606886864,
-0.018718166276812553,
0.06604162603616714,
0.1705096811056137,
0.016954146325588226,
-0.15881244838237762,
-0.48646241426467896,
0.15232521295547485,
0.3400334417819977,
-0.12892383337020874,
0.04255717247724533,
-0.2582891583442688,
-0.08118603378534317,
0.15282224118709564,
-0.05561353266239166,
-0.3009977340698242,
-0.5474964380264282,
-0.048803478479385376,
0.3517230153083801,
-0.0317387618124485,
0.033320728689432144,
-0.16870102286338806,
-0.13268129527568817,
0.3515867590904236,
-0.19785764813423157,
-0.03805192932486534,
-0.12424010038375854,
-0.02509891614317894,
0.05194007605314255,
0.20812249183654785,
-0.15546570718288422,
0.3499414920806885,
-0.3303995132446289,
-0.21508345007896423,
-0.5077782273292542,
-0.0573965460062027,
0.04203781113028526,
-0.07114679366350174,
0.34543684124946594,
-0.1364249438047409,
0.4982600510120392,
0.051555898040533066,
0.023597585037350655,
0.13399732112884521,
-0.22584474086761475,
-0.10997055470943451,
-0.0887666642665863,
0.04899454116821289,
0.14464974403381348,
-0.02795177325606346,
-0.4025316834449768,
-0.1980058252811432,
-0.3813937306404114,
0.12148072570562363,
-0.10502845048904419,
-0.0400371216237545,
0.1701108068227768,
0.1836491823196411,
0.021311452612280846,
0.0021813237108290195,
0.13416160643100739,
-0.16136163473129272,
-0.4538012742996216,
0.4539405107498169,
-0.12105681747198105,
-0.1833677440881729,
0.08704999834299088,
0.13617418706417084,
-0.04878135398030281,
0.3200139105319977,
-0.725678563117981,
0.032923728227615356,
-0.2690052092075348,
0.2915378510951996,
-0.15932871401309967,
-0.14234715700149536,
0.289505273103714,
-0.40331366658210754,
-0.1086888313293457,
0.04580645635724068,
0.02844397909939289,
-0.04522523283958435,
0.17007695138454437,
0.4130654036998749,
-0.12012020498514175,
0.2722567915916443,
-0.023795858025550842,
0.3074054419994354,
0.09990254789590836,
-0.017408309504389763,
0.13619588315486908,
0.12412303686141968,
0.28624269366264343,
-0.013577191159129143,
-0.2499910444021225,
-0.03566405177116394,
-0.05341249331831932,
-0.21161222457885742,
0.08081288635730743,
0.06983703374862671,
-0.18214182555675507,
-0.18633665144443512,
0.00725905504077673,
-0.32952553033828735,
-0.23441658914089203,
-0.08488024026155472,
-0.21649624407291412,
-0.00282290275208652,
0.2924292981624603,
0.09913893789052963,
-0.050878673791885376,
-0.17936299741268158,
-0.10072239488363266,
0.09466033428907394,
0.037152793258428574,
-0.13770413398742676,
-0.58162522315979,
0.06623951345682144,
-0.3708145022392273,
0.14620977640151978,
-0.014009335078299046,
0.2827032804489136,
-0.059945330023765564,
0.10730795562267303,
0.1634775996208191,
-0.029418591409921646,
0.6919805407524109,
-0.21523894369602203,
0.03714004158973694,
-0.029926490038633347,
0.3537367582321167,
-0.4249567687511444,
-0.04598687216639519,
0.1862327754497528,
0.31144216656684875,
0.48150911927223206,
-0.023995397612452507,
-0.3255310356616974,
0.06897573173046112,
0.12531933188438416,
0.3304870128631592,
0.05099450424313545,
-0.45492038130760193,
0.09841689467430115,
-0.13839153945446014,
-0.23706527054309845,
0.0883583202958107,
0.040953367948532104,
0.06717658042907715,
0.051936421543359756,
-0.13995786011219025,
0.21376347541809082,
0.14975081384181976,
0.06701444834470749,
-0.1214291974902153,
0.21895566582679749,
-0.2838040292263031,
0.5442037582397461,
0.1434604674577713,
-0.17609643936157227,
0.31623053550720215,
0.7088832259178162,
0.14058737456798553,
-0.42471519112586975,
0.05900288745760918,
0.08158538490533829,
-0.12780113518238068,
0.2983297109603882,
0.12066303193569183,
-0.15699142217636108,
-0.1940544843673706,
0.3669220507144928,
-0.0035605032462626696,
0.15599791705608368,
0.2746640145778656,
0.042525194585323334,
-0.4269045293331146,
-0.49229395389556885,
0.200453981757164,
0.10679446905851364,
0.0310721043497324,
0.6868839859962463,
-0.0483274906873703,
0.1477249562740326,
0.3077613115310669,
-0.07419925928115845,
1.0407172441482544,
-0.21797968447208405,
0.11976097524166107,
0.0413825623691082,
-0.021408164873719215,
0.5579096674919128,
-0.4630921185016632,
0.0748172253370285,
-0.10907432436943054,
0.0262694600969553,
-0.010922513902187347,
-0.1529882401227951,
-0.1878223717212677,
0.38448935747146606,
-0.17790529131889343,
0.15378114581108093,
-0.214279443025589,
0.17387157678604126,
-0.12125512212514877,
0.22221733629703522,
-0.4063541889190674,
-0.06827486306428909,
-0.12785598635673523,
0.20528821647167206,
0.007012569811195135,
0.27332592010498047,
-0.03555995970964432,
0.24050652980804443,
-0.23099598288536072,
-0.0035613402724266052,
-0.6009573340415955,
0.04829441010951996,
-0.14488816261291504,
0.028514090925455093,
-0.4012330174446106,
-0.3080592453479767,
-0.13649038970470428,
0.26612740755081177,
0.17455406486988068,
0.20255525410175323,
-0.060072705149650574,
0.23797836899757385,
-0.13825249671936035,
-0.14952130615711212,
-0.021051978692412376,
-0.22870716452598572,
0.2524908483028412,
0.09274940937757492,
-0.3896215260028839,
0.10580695420503616,
-0.10776865482330322,
-0.18772168457508087,
0.1917242705821991,
0.2199915498495102,
0.12353170663118362,
-0.09895304590463638,
0.036776963621377945,
0.04335106164216995,
0.12857265770435333,
-0.2819083034992218,
0.10951253026723862,
0.34935125708580017,
0.14237567782402039,
0.2095109075307846,
-0.13493575155735016,
-0.26405826210975647,
-0.3781038820743561,
0.41342517733573914,
0.021876424551010132,
-0.08570073544979095,
0.30294522643089294,
0.29004597663879395,
-0.4362705647945404,
-0.2456234246492386,
0.03784399852156639,
-0.5051124095916748,
-0.4053313732147217,
0.26602089405059814,
-0.3573093116283417,
0.33128800988197327,
-0.039835862815380096,
-0.18019741773605347,
0.1913963109254837,
0.04923439398407936,
0.10255197435617447,
-0.6354934573173523,
-0.06887287646532059,
-0.028222786262631416,
-0.23949770629405975,
0.06338474154472351,
-0.07983811944723129,
-0.18087688088417053,
0.1309538036584854,
-0.16102181375026703,
-0.2876027524471283,
0.09518975019454956,
-0.2553083598613739,
0.09129608422517776,
0.3782762587070465,
-0.10464242845773697,
0.37563973665237427,
-0.16440144181251526,
0.08054879307746887,
0.1534281075000763,
-0.13191352784633636,
-0.14382973313331604,
-0.01693568006157875,
0.1424364447593689,
-0.05665529891848564,
-0.12163679301738739,
0.16163252294063568,
-0.45050644874572754,
-0.055756133049726486,
0.02616330422461033,
-0.04781635105609894,
0.23953457176685333,
0.07999758422374725,
-0.24511106312274933,
0.1829359382390976,
0.003919514361768961,
-0.03658141940832138,
0.17254328727722168,
-0.03385709971189499,
0.47632771730422974,
0.22038297355175018,
0.29327067732810974,
0.08375756442546844,
0.06732287257909775,
-0.5774543881416321,
0.028965801000595093,
-0.1202876940369606,
0.06374374777078629,
0.4671875238418579,
-0.3326795697212219,
0.04737589508295059,
0.32587242126464844,
0.46285054087638855,
0.5449539422988892,
-0.010152338072657585,
-0.09365115314722061,
0.3874698281288147,
0.25395646691322327,
0.021837759763002396,
-0.1331842988729477,
0.36420947313308716,
0.10274183005094528,
0.04475829377770424,
0.18044905364513397,
-0.028587091714143753,
-0.12505123019218445,
0.1498919129371643,
0.20518608391284943,
0.7734177112579346,
-0.046293940395116806,
0.16900436580181122,
0.12424245476722717,
0.12034205347299576,
0.00649359542876482,
0.44816142320632935,
0.25403010845184326,
0.10601994395256042,
0.09176985174417496,
-0.10665895789861679,
-0.09255656599998474,
0.012304181233048439,
0.17248724400997162,
-0.18298859894275665,
-0.33798450231552124,
0.03984325751662254,
0.18474693596363068,
-0.17093804478645325,
0.01869753561913967,
0.12397456169128418,
0.2378615140914917,
-0.27287757396698,
-0.060868699103593826,
-0.15332216024398804,
0.2601213753223419,
0.0617552176117897,
0.2621082067489624,
0.2569052577018738,
-0.19479405879974365,
-0.1001039445400238,
0.08920782804489136,
0.028052419424057007,
-0.2530415654182434,
0.2741192877292633,
0.16528546810150146,
0.0852820947766304,
-0.6464285850524902,
0.007452009711414576,
-0.11059268563985825,
0.17931632697582245,
-0.4398782551288605,
0.04596703499555588,
0.04508914798498154,
-0.2883317470550537,
-0.07891003042459488,
0.2779344618320465,
0.557977557182312,
0.16440735757350922,
-0.05854250490665436,
0.1780637949705124,
-0.12880617380142212,
-0.051823537796735764,
-0.1080697625875473,
0.36916905641555786,
0.041723642498254776,
-0.1889365315437317,
0.3852718472480774,
0.13551627099514008,
-0.21805720031261444,
0.1424550712108612,
0.14569346606731415,
0.30207470059394836,
-0.20551656186580658,
-0.07998238503932953,
-0.0809611827135086,
-0.10153846442699432,
-0.3095257580280304,
-0.1737588793039322,
-0.19468547403812408,
-0.043848298490047455,
0.3546397089958191,
-0.3365454077720642,
-0.03819962963461876,
-0.2726593613624573,
0.10172419995069504,
-0.16236887872219086,
0.2015332579612732,
0.5906612277030945,
0.26296207308769226,
-0.13394524157047272,
-0.24154037237167358,
-0.47911497950553894,
0.08672879636287689,
-0.580711305141449,
-0.14642931520938873,
-0.2388322651386261,
0.4592355787754059,
0.09352481365203857,
0.3251005709171295,
0.41862940788269043,
0.05288136750459671,
-0.35676565766334534,
0.5118838548660278,
-0.29420384764671326,
-0.4408629238605499,
-0.07024557888507843,
0.0721704363822937,
0.040672142058610916,
-0.23689185082912445,
0.08001410961151123,
-0.3003024160861969,
-0.0044021583162248135,
-0.14989085495471954,
-0.1932370513677597,
0.18804624676704407,
-0.10408906638622284,
0.5126100778579712,
0.06764892488718033,
0.30338573455810547,
0.18546174466609955,
-0.5745764970779419,
-0.5213244557380676,
-0.3028702735900879,
-0.04194948822259903,
0.07399234920740128,
0.07506749778985977,
0.5065428614616394,
-0.48041588068008423,
-0.038547154515981674,
-0.18810732662677765,
0.12701021134853363,
-0.07921221107244492,
-0.23479220271110535,
0.1491243541240692,
-0.20230965316295624,
-0.08655358850955963,
0.375718891620636,
0.03144276514649391,
0.2095026969909668,
-0.03207995742559433,
0.22955423593521118,
-0.2249724417924881,
-0.3684900104999542,
0.28859782218933105,
0.07878746837377548,
-0.2721017301082611,
0.08084120601415634,
0.19742079079151154,
0.10260752588510513,
-0.016103236004710197,
-0.20551146566867828,
0.09393167495727539,
0.4026016891002655,
-0.03895949572324753,
-0.2909106910228729,
0.09709732234477997,
-0.0008464542916044593,
0.10377418994903564,
-0.03824368119239807,
0.49887603521347046,
0.0005770909483544528,
-0.26823562383651733,
0.37309548258781433,
-0.10412194579839706
] |
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.4538247585296631,
-0.03595227003097534,
-0.10725755244493484,
0.2148067206144333,
0.22540068626403809,
0.09833797067403793,
0.15917156636714935,
0.22687964141368866,
-0.05263807624578476,
0.000023023305402603,
-0.16277822852134705,
0.15473784506320953,
0.19559210538864136,
-0.13340941071510315,
-0.09725344181060791,
0.061044059693813324,
-0.056570932269096375,
-0.06776021420955658,
-0.16155380010604858,
0.08194708079099655,
0.01882087253034115,
0.143686443567276,
-0.11213228851556778,
-0.0026504371780902147,
-0.07669416815042496,
-0.16448748111724854,
-0.1467982977628708,
0.050724420696496964,
-0.29565510153770447,
-0.33289265632629395,
0.1694854348897934,
0.24185621738433838,
-0.06909020990133286,
0.6850520372390747,
-0.00011010315211024135,
-0.13972032070159912,
0.22451014816761017,
0.04902317747473717,
-0.3112398684024811,
-0.5094982981681824,
-0.19576634466648102,
-0.1742008477449417,
-0.0006461656303144991,
-0.029179181903600693,
0.18548466265201569,
0.05549780651926994,
0.10899245738983154,
-0.27497345209121704,
0.3389202952384949,
0.5729048848152161,
0.19959190487861633,
0.3697790503501892,
0.36938634514808655,
-0.05355628952383995,
0.26640182733535767,
-0.012151742354035378,
0.031192699447274208,
0.4169187545776367,
0.13807813823223114,
-0.05963524058461189,
0.1828976720571518,
0.022743241861462593,
-0.07561419159173965,
0.1545683741569519,
-0.11939167976379395,
0.03336165472865105,
0.2555916905403137,
-0.3887174129486084,
-0.13837172091007233,
0.22193366289138794,
0.7953236103057861,
-0.002744583413004875,
-0.40682142972946167,
-0.2871246933937073,
0.16965381801128387,
-0.012916220352053642,
0.33495718240737915,
0.2615114152431488,
-0.4169996976852417,
0.21747568249702454,
-0.26138371229171753,
-0.08086612820625305,
-0.12663352489471436,
0.44061392545700073,
0.11701484024524689,
0.0012071530800312757,
-0.025697633624076843,
0.3007279336452484,
0.2633588910102844,
-0.10879457741975784,
0.22215044498443604,
-0.3168974220752716,
-0.029246946796774864,
0.01374960970133543,
-0.33833837509155273,
-0.18885254859924316,
0.0329178161919117,
0.16386906802654266,
0.30372628569602966,
0.03185589611530304,
0.04710678383708,
-0.1961560845375061,
-0.08399664610624313,
0.13981379568576813,
0.38325124979019165,
0.029797330498695374,
0.0367342010140419,
0.055898621678352356,
0.21393735706806183,
0.08050432056188583,
-0.09634516388177872,
0.03827274218201637,
-0.052035581320524216,
0.03752356767654419,
0.10670311003923416,
-0.1745738536119461,
0.4148417115211487,
-0.29834288358688354,
-0.1657690405845642,
0.025585617870092392,
0.07573770731687546,
-0.17028111219406128,
-0.16885486245155334,
0.21336150169372559,
-0.46823829412460327,
0.24465303122997284,
-0.0922742486000061,
0.06521117687225342,
-0.36387789249420166,
-0.32873716950416565,
-0.0513937808573246,
0.013742001727223396,
-0.14873939752578735,
-0.043121885508298874,
-0.09007548540830612,
-0.23357346653938293,
0.1790367215871811,
0.1448255330324173,
0.0673104003071785,
-0.25310003757476807,
0.0061691515147686005,
-0.2436126470565796,
-0.1551753580570221,
0.12795476615428925,
-0.06955032050609589,
0.2915439009666443,
0.12379765510559082,
0.13390693068504333,
-0.06375230848789215,
0.01864664815366268,
-0.2753818929195404,
-0.33365508913993835,
-0.20021472871303558,
0.2280958741903305,
-0.33593541383743286,
-0.27447745203971863,
0.02525320276618004,
-0.13385964930057526,
0.3139725923538208,
-0.1475001722574234,
-0.13398227095603943,
-0.15708446502685547,
0.060034360736608505,
-0.060475945472717285,
-0.041428595781326294,
0.3157823383808136,
-0.3593459725379944,
0.19147883355617523,
-0.2504235804080963,
-0.009984983131289482,
0.1681518405675888,
0.23097701370716095,
-0.25535881519317627,
0.12007611244916916,
-0.21363303065299988,
-0.2048167735338211,
0.3608439862728119,
-0.30112195014953613,
-0.6002123355865479,
0.0031672767363488674,
-0.3776434361934662,
0.14168581366539001,
-0.1392543464899063,
0.23765189945697784,
0.3605259656906128,
-0.006960767786949873,
-0.0734066590666771,
0.31938430666923523,
-0.20232045650482178,
-0.0070757558569312096,
-0.36263135075569153,
-0.16564342379570007,
-0.14147649705410004,
0.24229519069194794,
0.07888549566268921,
-0.004299728665500879,
-0.03770599141716957,
0.024018239229917526,
0.297507643699646,
0.31692925095558167,
0.06682587414979935,
0.278216153383255,
0.14880599081516266,
0.3036114573478699,
-0.05026679486036301,
-0.26828426122665405,
-0.22139374911785126,
0.16412656009197235,
0.5927703976631165,
0.15148553252220154,
-0.20555727183818817,
0.055662792176008224,
-0.3700691759586334,
0.0064082988537848,
-0.0968778133392334,
-0.0029631899669766426,
0.03815753385424614,
0.2506607472896576,
0.28698763251304626,
0.2637934684753418,
-0.041552118957042694,
0.46840816736221313,
-0.02794860303401947,
0.3550291657447815,
-0.1794384866952896,
0.27232304215431213,
-0.23262223601341248,
-0.19060064852237701,
0.03465445712208748,
-0.2605827748775482,
0.1190183088183403,
-0.16729243099689484,
-0.13463094830513,
0.3733445107936859,
0.016951218247413635,
0.05802495777606964,
0.12641756236553192,
-0.11985467374324799,
0.22072702646255493,
-0.10837091505527496,
-0.150327667593956,
0.24868004024028778,
0.11499380320310593,
0.10636430978775024,
-0.1766044646501541,
0.10530154407024384,
0.14303596317768097,
0.20570555329322815,
-0.19598336517810822,
0.10094161331653595,
0.15649861097335815,
0.04063202813267708,
0.08239423483610153,
0.02611151523888111,
0.4374154210090637,
-0.36415600776672363,
0.04069060832262039,
-0.18059851229190826,
-0.007134942337870598,
0.300877183675766,
0.4109629988670349,
0.031015722081065178,
-0.18276347219944,
0.17700481414794922,
0.19709637761116028,
-0.0896119549870491,
-0.03172701597213745,
0.41350799798965454,
0.4253746569156647,
0.21633903682231903,
0.03854260593652725,
0.002715137554332614,
-0.17714139819145203,
-0.089194156229496,
0.16673080623149872,
0.09892277419567108,
0.1816515028476715,
0.09494530409574509,
-0.018994471058249474,
-0.006782738957554102,
-0.084052674472332,
-0.5713555216789246,
0.07940950989723206,
0.4571003317832947,
-0.0892280861735344,
-0.13760405778884888,
-0.19081537425518036,
-0.09588000923395157,
0.16836966574192047,
0.016017161309719086,
-0.47508344054222107,
-0.5786945223808289,
-0.06760936230421066,
0.45299282670021057,
-0.052492737770080566,
0.05964764207601547,
-0.2232978343963623,
-0.10371838510036469,
0.3926714062690735,
-0.07365164905786514,
0.044531721621751785,
-0.25482699275016785,
0.012557147070765495,
0.08568857610225677,
0.22305792570114136,
-0.19104857742786407,
0.2809526026248932,
-0.33050301671028137,
-0.20998021960258484,
-0.43894633650779724,
-0.0439109206199646,
0.11567658931016922,
-0.216408833861351,
0.3292768895626068,
-0.123170405626297,
0.5877864956855774,
0.09311018139123917,
0.043649062514305115,
0.20465438067913055,
-0.3436299264431,
-0.07767839729785919,
-0.05620438605546951,
0.07132565230131149,
0.1450999230146408,
0.05986328795552254,
-0.2994946241378784,
-0.23018550872802734,
-0.42781710624694824,
0.17403708398342133,
-0.047938138246536255,
0.09083066135644913,
0.2794746160507202,
0.20593924820423126,
0.08344952762126923,
-0.2537417411804199,
0.16921466588974,
-0.12587788701057434,
-0.5617027878761292,
0.432782381772995,
-0.11775360256433487,
-0.2636643350124359,
0.0996503084897995,
0.3058508038520813,
-0.02062215469777584,
0.17728884518146515,
-0.6788044571876526,
-0.0035094197373837233,
-0.23689942061901093,
0.3396568298339844,
-0.20226368308067322,
-0.1831388920545578,
0.316476970911026,
-0.4094330668449402,
-0.1001703143119812,
0.022821884602308273,
0.10978866368532181,
-0.011162702925503254,
0.15578144788742065,
0.422884076833725,
-0.06754408031702042,
0.3687637448310852,
-0.011091038584709167,
0.36279088258743286,
0.06473130732774734,
0.025392338633537292,
0.036295246332883835,
0.025707321241497993,
0.3557802438735962,
0.04851078987121582,
-0.3596303164958954,
-0.028046246618032455,
-0.011042732745409012,
-0.13521066308021545,
0.13524597883224487,
0.025922639295458794,
-0.09346137940883636,
-0.2718140184879303,
-0.08471377193927765,
-0.22871211171150208,
-0.31633445620536804,
-0.050918806344270706,
-0.16039815545082092,
-0.07659026980400085,
0.23817665874958038,
0.1666223406791687,
-0.02530767396092415,
-0.21312882006168365,
-0.09033772349357605,
0.10653401166200638,
-0.04342305287718773,
-0.1533285528421402,
-0.630216658115387,
0.24682098627090454,
-0.4078635275363922,
0.1728392243385315,
-0.04849996790289879,
0.2384985238313675,
-0.17753832042217255,
0.0593121238052845,
0.16680903732776642,
-0.014791447669267654,
0.5320876836776733,
-0.11836394667625427,
-0.006542815361171961,
-0.04128823056817055,
0.243912011384964,
-0.46841201186180115,
-0.03199479356408119,
-0.01795968785881996,
0.268428236246109,
0.3909972608089447,
0.10171829164028168,
-0.3571453094482422,
-0.056001514196395874,
0.13744568824768066,
0.20310689508914948,
0.10297539830207825,
-0.3991025984287262,
0.07029541581869125,
-0.2252371907234192,
-0.308878093957901,
0.16597846150398254,
-0.09102091938257217,
0.16003602743148804,
-0.044116534292697906,
-0.0862022414803505,
0.3067357838153839,
0.20419102907180786,
0.0026226681657135487,
-0.132737398147583,
0.14016099274158478,
-0.2742888629436493,
0.5147089958190918,
0.1473814994096756,
-0.2570001780986786,
0.5399026870727539,
0.6204404234886169,
0.1855616420507431,
-0.5246992111206055,
-0.002777290530502796,
-0.14131717383861542,
-0.15756341814994812,
0.2658449113368988,
0.14141830801963806,
-0.056461796164512634,
-0.1830664724111557,
0.449201375246048,
0.14713142812252045,
0.2245183140039444,
0.3479783833026886,
0.11220614612102509,
-0.38463401794433594,
-0.3544843792915344,
-0.05181005597114563,
0.005030053202062845,
0.0098072849214077,
0.6732220649719238,
0.022505639120936394,
0.06050047650933266,
0.24745622277259827,
-0.04981587454676628,
1.100695013999939,
-0.1692027747631073,
0.16915728151798248,
0.11339062452316284,
-0.13073687255382538,
0.5093158483505249,
-0.22138959169387817,
0.08682150393724442,
-0.13670018315315247,
-0.14832641184329987,
0.05173014849424362,
-0.09472817927598953,
0.07300072908401489,
0.192066490650177,
-0.2430831491947174,
0.07075364142656326,
-0.15469594299793243,
0.18844512104988098,
-0.08833816647529602,
0.1380520462989807,
-0.38577520847320557,
-0.07796276360750198,
-0.13968779146671295,
0.22573143243789673,
-0.07525172829627991,
0.2690754532814026,
0.020674346014857292,
0.08688423782587051,
-0.2398616075515747,
-0.02029854990541935,
-0.5047802329063416,
0.09388141334056854,
-0.09315197914838791,
-0.02741910330951214,
-0.44384661316871643,
-0.1559702306985855,
-0.14670386910438538,
0.2542882561683655,
0.00005199964653002098,
0.19283749163150787,
-0.05499093234539032,
0.2169497311115265,
-0.12978516519069672,
-0.09639623761177063,
0.0818093791604042,
-0.23730884492397308,
0.14403104782104492,
-0.019344786182045937,
-0.49692395329475403,
0.23233287036418915,
-0.0716099739074707,
-0.31981632113456726,
0.13339409232139587,
0.10870325565338135,
0.09351110458374023,
-0.12855447828769684,
0.06633754819631577,
-0.11900622397661209,
0.040574051439762115,
-0.32096627354621887,
0.14663617312908173,
0.29859355092048645,
-0.004611603450030088,
0.22611689567565918,
-0.08617667853832245,
-0.30367931723594666,
-0.3014824688434601,
0.3936607539653778,
-0.008236873894929886,
-0.005000709556043148,
0.25960466265678406,
0.21015653014183044,
-0.39783862233161926,
-0.28301355242729187,
0.3068811297416687,
-0.4383847117424011,
-0.3919942378997803,
0.04347003251314163,
-0.5033014416694641,
0.36547383666038513,
-0.09443022310733795,
-0.19628757238388062,
0.22078417241573334,
0.05005689337849617,
0.10578490048646927,
-0.6435924768447876,
-0.11272472143173218,
-0.04417714849114418,
-0.08755502104759216,
0.015226724557578564,
-0.04378345236182213,
-0.20115883648395538,
0.06854910403490067,
-0.09291525185108185,
-0.3221847116947174,
0.03877535089850426,
-0.2956767976284027,
0.10022939741611481,
0.4034525752067566,
-0.1686834841966629,
0.4216535985469818,
-0.20364254713058472,
0.09216192364692688,
0.10771273821592331,
-0.1632176637649536,
-0.14575405418872833,
0.030068472027778625,
0.1397891491651535,
-0.027881359681487083,
-0.21904335916042328,
0.12645605206489563,
-0.40232932567596436,
-0.12406281381845474,
0.06712939590215683,
-0.05849369615316391,
0.18055984377861023,
0.008278783410787582,
-0.23471546173095703,
0.1887296736240387,
0.09361939132213593,
-0.05758250132203102,
0.1896211951971054,
-0.07697136700153351,
0.48255348205566406,
0.1868831217288971,
0.37203916907310486,
0.02322610467672348,
-0.036263830959796906,
-0.43188023567199707,
0.07049721479415894,
-0.07952848821878433,
0.047831494361162186,
0.5599260926246643,
-0.2862209975719452,
0.05928879976272583,
0.32813525199890137,
0.5346978902816772,
0.5222042202949524,
-0.006001747213304043,
-0.12287355214357376,
0.3413529098033905,
0.26431986689567566,
0.02886461652815342,
-0.13236881792545319,
0.4328159987926483,
0.05642573535442352,
0.05382407084107399,
0.17363569140434265,
-0.23051366209983826,
-0.07263790816068649,
0.16653580963611603,
0.17273876070976257,
0.8266090750694275,
0.1331852376461029,
0.17183156311511993,
0.25657668709754944,
-0.11357775330543518,
-0.06588306277990341,
0.43320560455322266,
0.26578110456466675,
-0.0021298809442669153,
0.12964200973510742,
-0.28969427943229675,
-0.024360502138733864,
-0.027488717809319496,
0.1395934373140335,
-0.027297237887978554,
-0.3127536475658417,
0.07777902483940125,
0.14004389941692352,
-0.13530001044273376,
-0.12187869101762772,
0.09240403026342392,
0.19227655231952667,
-0.20829853415489197,
-0.16518619656562805,
-0.10201805830001831,
0.3825676143169403,
0.0385681688785553,
0.35449638962745667,
0.0017303156200796366,
-0.17452432215213776,
-0.17433010041713715,
0.022015269845724106,
0.09646866470575333,
-0.29469871520996094,
0.30901390314102173,
0.25082698464393616,
0.047454919666051865,
-0.7139673829078674,
-0.14182206988334656,
-0.06749193370342255,
0.13103458285331726,
-0.4903654158115387,
0.1432160884141922,
0.05345863103866577,
-0.16234120726585388,
-0.022211460396647453,
0.30722787976264954,
0.5712036490440369,
0.12553444504737854,
0.10710182785987854,
0.24869638681411743,
-0.08511143177747726,
-0.036628607660532,
0.04359419271349907,
0.3503607511520386,
0.06011500582098961,
0.024383462965488434,
0.3931983709335327,
0.1480337530374527,
-0.2403562068939209,
0.16481152176856995,
0.15352565050125122,
0.23814451694488525,
-0.21554423868656158,
-0.18562869727611542,
0.025431007146835327,
-0.1125086322426796,
-0.2143721580505371,
-0.14877162873744965,
-0.1726245880126953,
-0.0003790301561821252,
0.34186211228370667,
-0.288359135389328,
0.009608802385628223,
-0.2853538691997528,
0.09525186568498611,
-0.16893236339092255,
0.212942972779274,
0.5421625971794128,
0.18654964864253998,
-0.09287050366401672,
-0.20224058628082275,
-0.42265114188194275,
0.18455009162425995,
-0.5492633581161499,
-0.32952189445495605,
-0.18507497012615204,
0.3340440094470978,
0.1740216314792633,
0.4482901096343994,
0.46806076169013977,
-0.09045957028865814,
-0.23687517642974854,
0.3994172513484955,
-0.36043646931648254,
-0.31179699301719666,
0.07566850632429123,
0.05952868238091469,
0.08115079998970032,
-0.20639440417289734,
0.24479550123214722,
-0.24209550023078918,
0.04375593364238739,
-0.06156128644943237,
-0.20383888483047485,
0.13012073934078217,
-0.271599143743515,
0.332350492477417,
0.03706348314881325,
0.3929249346256256,
0.19937478005886078,
-0.4113180935382843,
-0.39119216799736023,
-0.2847711741924286,
-0.08752555400133133,
0.11739274114370346,
0.16523468494415283,
0.40068724751472473,
-0.33028295636177063,
-0.19969947636127472,
-0.2120482325553894,
0.30723273754119873,
-0.14079736173152924,
-0.2316662073135376,
0.1535109281539917,
-0.2409275323152542,
0.13079588115215302,
0.2688868045806885,
-0.036486878991127014,
0.011967405676841736,
-0.008522693067789078,
0.16235043108463287,
-0.29131758213043213,
-0.2029949426651001,
0.39768609404563904,
0.038588348776102066,
-0.24755455553531647,
-0.0036510524805635214,
0.11979930847883224,
0.09906400740146637,
-0.17008623480796814,
-0.24216300249099731,
0.0882805585861206,
0.3698868751525879,
-0.07661918550729752,
-0.2562716603279114,
0.09859612584114075,
-0.01270032487809658,
0.1415994018316269,
0.029589958488941193,
0.3484925627708435,
-0.026365017518401146,
-0.3384762406349182,
0.36631014943122864,
-0.042528245598077774
] |
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.3095017671585083,
-0.15040145814418793,
-0.12485229969024658,
0.1671919822692871,
0.06269316375255585,
0.23221701383590698,
0.045246414840221405,
0.2481844574213028,
0.020849522203207016,
-0.06715616583824158,
-0.07025258243083954,
0.16330276429653168,
0.2610352039337158,
-0.11219320446252823,
-0.13314715027809143,
0.2049567699432373,
0.06651302427053452,
-0.22189152240753174,
-0.0956016331911087,
0.12066235393285751,
-0.0917951837182045,
0.15939123928546906,
-0.12834417819976807,
-0.11982638388872147,
-0.14118345081806183,
-0.12013640254735947,
-0.1345246434211731,
-0.030577177181839943,
-0.20299044251441956,
-0.3059113621711731,
0.22046972811222076,
0.11682809144258499,
-0.029211532324552536,
0.6436527371406555,
-0.00010986373672494665,
-0.1421739161014557,
0.26546284556388855,
0.05247442424297333,
-0.4409986138343811,
-0.510864794254303,
-0.2619158923625946,
-0.1298532783985138,
0.05907263606786728,
-0.031244982033967972,
0.2131989598274231,
0.08362282812595367,
0.12284700572490692,
-0.3912442922592163,
0.21179689466953278,
0.48872584104537964,
0.18866249918937683,
0.34962645173072815,
0.2179194837808609,
-0.017298342660069466,
0.17924869060516357,
0.07283402979373932,
0.07802018523216248,
0.3980516195297241,
0.18222402036190033,
-0.14137150347232819,
0.1812850832939148,
0.02181083709001541,
-0.11292927712202072,
0.2673594057559967,
-0.11714506149291992,
-0.00047681384603492916,
0.14536386728286743,
-0.468524307012558,
-0.021649131551384926,
0.12692587077617645,
0.9099084138870239,
-0.018525023013353348,
-0.4328916072845459,
-0.17541532218456268,
0.05276387557387352,
0.08158958703279495,
0.45599454641342163,
0.4742855429649353,
-0.36055171489715576,
0.20565049350261688,
-0.2597315013408661,
-0.019778430461883545,
-0.07293270528316498,
0.383402556180954,
0.09014413505792618,
0.04766106233000755,
0.07351239025592804,
0.23175859451293945,
0.09986449778079987,
-0.04926471412181854,
0.2535373270511627,
-0.3695163428783417,
0.008993783965706825,
-0.026194080710411072,
-0.3241221606731415,
-0.10761991888284683,
0.0020493853371590376,
0.15238390862941742,
0.12264152616262436,
0.01442472543567419,
-0.017226869240403175,
-0.29155123233795166,
-0.21474818885326385,
0.17971348762512207,
0.4288497567176819,
0.0015064930776134133,
-0.03489358723163605,
0.13497087359428406,
0.2598972022533417,
-0.026088789105415344,
-0.01936791092157364,
0.08101219683885574,
0.11838398873806,
0.00897145364433527,
0.08358234912157059,
-0.1330716460943222,
0.39932581782341003,
-0.20176725089550018,
-0.25723910331726074,
-0.028891971334815025,
0.04334689676761627,
-0.11790300160646439,
-0.22799989581108093,
0.15836220979690552,
-0.4906695485115051,
0.2088630646467209,
0.07936546951532364,
0.13702301681041718,
-0.3628246784210205,
-0.35983985662460327,
-0.04341031610965729,
0.11027315258979797,
-0.16389556229114532,
-0.17072173953056335,
-0.059338703751564026,
-0.11054729670286179,
0.051141150295734406,
0.12252862751483917,
-0.01553379837423563,
-0.3069615960121155,
-0.07150572538375854,
-0.17626981437206268,
-0.12453321367502213,
0.23968081176280975,
-0.11462737619876862,
0.4079989492893219,
0.10039644688367844,
0.11692710965871811,
-0.08203339576721191,
0.038970597088336945,
-0.3303121328353882,
-0.3403409421443939,
-0.12724240124225616,
0.23742073774337769,
-0.21339508891105652,
-0.3039636015892029,
-0.1250537782907486,
-0.11042431741952896,
0.2541172504425049,
0.0337236151099205,
-0.07938506454229355,
-0.09632216393947601,
0.016609905287623405,
-0.08467236906290054,
-0.1574699878692627,
0.3429020047187805,
-0.5084062218666077,
0.32132914662361145,
-0.19658271968364716,
0.10419883579015732,
0.18169495463371277,
0.31821465492248535,
-0.14965040981769562,
0.0935462936758995,
-0.27713268995285034,
-0.12049572914838791,
0.2729812562465668,
-0.2532721757888794,
-0.6182512640953064,
0.08208855241537094,
-0.3610650599002838,
0.007552575320005417,
-0.08650578558444977,
0.28500887751579285,
0.27978944778442383,
-0.13807767629623413,
-0.01320886705070734,
0.37522634863853455,
-0.21721388399600983,
0.0725090503692627,
-0.3490182161331177,
-0.18471312522888184,
-0.021370021626353264,
0.17562517523765564,
-0.018751125782728195,
-0.003390363184735179,
-0.14307768642902374,
-0.033581286668777466,
0.3587707281112671,
0.38706734776496887,
0.14833439886569977,
0.3216247856616974,
0.024383345618844032,
0.2783784568309784,
0.053457219153642654,
-0.20245447754859924,
-0.3310597240924835,
0.16127163171768188,
0.5941164493560791,
0.13957835733890533,
-0.27064692974090576,
0.00034195883199572563,
-0.42841991782188416,
0.08667559176683426,
-0.021328182891011238,
0.057129405438899994,
0.018308088183403015,
0.1815386563539505,
0.2960192859172821,
0.24787482619285583,
-0.011509676463901997,
0.4557388722896576,
-0.057903360575437546,
0.2721841037273407,
-0.21146276593208313,
0.25063273310661316,
-0.21679025888442993,
-0.12029340118169785,
0.15606944262981415,
-0.35092753171920776,
0.08366698026657104,
-0.226895272731781,
-0.21996331214904785,
0.3265953063964844,
0.04389196261763573,
0.11968468874692917,
0.02499004267156124,
-0.059619028121232986,
0.22249005734920502,
-0.20030313730239868,
-0.13457220792770386,
0.4064629375934601,
0.13302503526210785,
0.09982294589281082,
-0.2701018452644348,
-0.019689738750457764,
0.20642703771591187,
0.2266617715358734,
-0.18627293407917023,
0.11162521690130234,
0.09089577198028564,
0.03985349088907242,
0.2047291398048401,
-0.047039445489645004,
0.4167720377445221,
-0.3639961779117584,
0.053561680018901825,
-0.2369759976863861,
0.02568100579082966,
0.33216455578804016,
0.3510749042034149,
0.07033348828554153,
-0.18286433815956116,
0.25405633449554443,
0.15280596911907196,
-0.13090816140174866,
-0.07354087382555008,
0.34772050380706787,
0.26383137702941895,
0.17640948295593262,
0.16167493164539337,
-0.12413201481103897,
-0.11382758617401123,
-0.12204559892416,
0.1897411346435547,
0.12620511651039124,
-0.04369812458753586,
-0.0182875357568264,
0.15337352454662323,
-0.016834503039717674,
-0.11885622888803482,
-0.45933035016059875,
0.07277465611696243,
0.4072108864784241,
-0.08155813068151474,
0.07310420274734497,
-0.22462080419063568,
-0.14916104078292847,
0.19985058903694153,
-0.05778955668210983,
-0.3491252362728119,
-0.5447542071342468,
-0.0516444556415081,
0.36560893058776855,
-0.090327188372612,
0.040689617395401,
-0.08465659618377686,
-0.1173732653260231,
0.45727553963661194,
-0.15805333852767944,
-0.010764406993985176,
-0.13319239020347595,
-0.04783184453845024,
0.07347260415554047,
0.24265524744987488,
-0.1946607381105423,
0.33404281735420227,
-0.29362156987190247,
-0.22669176757335663,
-0.5305726528167725,
-0.018987001851201057,
0.016831381246447563,
-0.17067359387874603,
0.2737124264240265,
-0.12210150063037872,
0.5325042605400085,
0.05822009965777397,
0.08580328524112701,
0.08696433901786804,
-0.2566452622413635,
-0.1234247088432312,
-0.0716625452041626,
0.05918720364570618,
0.1748986840248108,
-0.010141035541892052,
-0.3868842124938965,
-0.19185146689414978,
-0.40455904603004456,
0.10636083036661148,
-0.14773757755756378,
0.021679574623703957,
0.10280530154705048,
0.18359123170375824,
0.02435130998492241,
0.03311638534069061,
0.14114169776439667,
-0.12651513516902924,
-0.45222586393356323,
0.43093347549438477,
-0.0664704367518425,
-0.21625934541225433,
0.10431782156229019,
0.2256390005350113,
-0.049826767295598984,
0.21527500450611115,
-0.751448392868042,
-0.014528038911521435,
-0.27832716703414917,
0.2697312831878662,
-0.17531724274158478,
-0.18971620500087738,
0.21623776853084564,
-0.42992451786994934,
-0.08695778995752335,
0.04756547510623932,
0.03490865230560303,
-0.05925509333610535,
0.19913974404335022,
0.3676378130912781,
-0.07874789834022522,
0.35573410987854004,
-0.012954230420291424,
0.199818417429924,
0.11844370514154434,
0.049649424850940704,
0.1700468808412552,
0.16907526552677155,
0.27958622574806213,
0.012159840203821659,
-0.233968123793602,
-0.058516599237918854,
-0.0014457999495789409,
-0.23477476835250854,
0.1252501755952835,
0.045606374740600586,
-0.18916766345500946,
-0.1527431607246399,
-0.06853490322828293,
-0.2882632613182068,
-0.24390825629234314,
-0.06031763553619385,
-0.10267610102891922,
0.017028238624334335,
0.253261536359787,
0.09908938407897949,
0.011423288844525814,
-0.27790117263793945,
-0.07806995511054993,
0.10833792388439178,
-0.03954694792628288,
-0.1868320107460022,
-0.4770648777484894,
0.08528457581996918,
-0.38773027062416077,
0.24473021924495697,
-0.000301922409562394,
0.2891823649406433,
-0.03961917757987976,
0.11813271790742874,
0.17264798283576965,
-0.034157149493694305,
0.6463545560836792,
-0.15884041786193848,
0.16286127269268036,
-0.037556055933237076,
0.28649765253067017,
-0.4513317048549652,
-0.05551791563630104,
0.054759614169597626,
0.31853553652763367,
0.5014479756355286,
-0.002869979478418827,
-0.26230308413505554,
0.018849389627575874,
0.10093536972999573,
0.29595690965652466,
0.05386478081345558,
-0.4968964755535126,
0.07955384254455566,
-0.20460128784179688,
-0.2623456120491028,
0.1263025999069214,
0.1091592013835907,
0.06863566488027573,
0.03508787229657173,
-0.10384850203990936,
0.24489030241966248,
0.08552473038434982,
0.05204243212938309,
-0.1704454869031906,
0.12983304262161255,
-0.24648205935955048,
0.4957832992076874,
0.04544668272137642,
-0.20597632229328156,
0.36957189440727234,
0.6841815114021301,
0.16129936277866364,
-0.46281835436820984,
0.09906043857336044,
-0.03221490979194641,
-0.1157461628317833,
0.26436176896095276,
0.11724705994129181,
-0.09795039147138596,
-0.1994204819202423,
0.36895516514778137,
0.020876143127679825,
0.15721599757671356,
0.27184170484542847,
0.08102360367774963,
-0.45278018712997437,
-0.43017706274986267,
0.11389466375112534,
0.03756481409072876,
0.028945885598659515,
0.6303073763847351,
-0.0606514997780323,
0.11596833914518356,
0.34180545806884766,
-0.06494569778442383,
1.006021499633789,
-0.22833406925201416,
0.10648095607757568,
0.04924634471535683,
-0.09040699899196625,
0.4886730909347534,
-0.4113645851612091,
0.07169008255004883,
-0.11770276725292206,
0.013557757250964642,
0.031149333342909813,
-0.10909359157085419,
-0.1918095201253891,
0.3354746997356415,
-0.24781717360019684,
0.0934097096323967,
-0.19122052192687988,
0.14505122601985931,
-0.12412789463996887,
0.22345615923404694,
-0.29890093207359314,
-0.020694540813565254,
-0.19917011260986328,
0.2247374802827835,
-0.019831780344247818,
0.2506231665611267,
-0.01007260661572218,
0.2096998691558838,
-0.14631187915802002,
-0.08042619377374649,
-0.6208147406578064,
0.04532651603221893,
-0.019543886184692383,
0.03167440742254257,
-0.36558082699775696,
-0.19742247462272644,
-0.043781667947769165,
0.23668736219406128,
0.14167164266109467,
0.2241818904876709,
-0.016339223831892014,
0.23414228856563568,
-0.10627084970474243,
-0.15974527597427368,
-0.0008500422700308263,
-0.14969870448112488,
0.1444961130619049,
0.013576852157711983,
-0.27355971932411194,
0.21436648070812225,
-0.10918188840150833,
-0.22397561371326447,
0.2120586335659027,
0.2389526218175888,
0.0794457420706749,
-0.13656629621982574,
0.04196828976273537,
-0.10806931555271149,
0.1240830048918724,
-0.23951931297779083,
0.1314409077167511,
0.31216758489608765,
0.1640818864107132,
0.24928036332130432,
-0.12059336155653,
-0.35495734214782715,
-0.34371450543403625,
0.41368788480758667,
0.053584229201078415,
-0.007389894686639309,
0.3306727409362793,
0.3128749430179596,
-0.4030725955963135,
-0.3092561364173889,
0.0924074575304985,
-0.5343807935714722,
-0.320561945438385,
0.33284810185432434,
-0.41576093435287476,
0.3471696674823761,
-0.06278830021619797,
-0.13781797885894775,
0.20301616191864014,
0.10542172938585281,
0.12336114794015884,
-0.6414017081260681,
-0.06478774547576904,
-0.08365333825349808,
-0.20539042353630066,
0.024056533351540565,
-0.14605717360973358,
-0.19977205991744995,
0.11275749653577805,
-0.1422034502029419,
-0.2951272428035736,
0.048470716923475266,
-0.2745985984802246,
0.09585697948932648,
0.3683100640773773,
-0.09025342017412186,
0.419719934463501,
-0.062387119978666306,
0.08878150582313538,
0.10033652186393738,
-0.13114142417907715,
-0.14709997177124023,
0.016452666372060776,
0.13901107013225555,
-0.07666844874620438,
-0.19155509769916534,
0.10974251478910446,
-0.5065026879310608,
-0.0802384689450264,
0.09775123000144958,
-0.0953499972820282,
0.13450215756893158,
0.017867866903543472,
-0.25707560777664185,
0.17757345736026764,
-0.02851046621799469,
0.04426787793636322,
0.22218185663223267,
-0.10416334122419357,
0.5471835732460022,
0.19643338024616241,
0.2797548174858093,
0.1488572210073471,
0.014890282414853573,
-0.5414074659347534,
-0.0015545821515843272,
-0.0919463261961937,
0.05436113104224205,
0.3810917139053345,
-0.31146350502967834,
0.07288336008787155,
0.34269529581069946,
0.41727590560913086,
0.5035351514816284,
-0.03431394696235657,
-0.16952557861804962,
0.29935699701309204,
0.27286267280578613,
0.06183995306491852,
-0.16161799430847168,
0.3489338755607605,
0.08642959594726562,
-0.009273427538573742,
0.1848187893629074,
-0.10443804413080215,
-0.058701369911432266,
0.18565218150615692,
0.23900003731250763,
0.7759050130844116,
0.05146243795752525,
0.17268450558185577,
0.09578428417444229,
0.0030999407172203064,
-0.019300427287817,
0.3979816138744354,
0.1976173371076584,
0.06593991070985794,
0.08084606379270554,
-0.13156533241271973,
-0.08376648277044296,
0.11718378961086273,
0.14860953390598297,
-0.06263905763626099,
-0.3323948085308075,
0.03463123366236687,
0.10821070522069931,
-0.16549867391586304,
-0.008060612715780735,
0.20526234805583954,
0.0791039690375328,
-0.28864017128944397,
-0.06635745614767075,
-0.20516465604305267,
0.2875986099243164,
0.04689347743988037,
0.2713528275489807,
0.19861838221549988,
-0.14608882367610931,
-0.02987988293170929,
0.1195141077041626,
-0.0047300951555371284,
-0.23542092740535736,
0.23226448893547058,
0.2363516241312027,
0.10513197630643845,
-0.5865026712417603,
-0.04479774460196495,
-0.14857858419418335,
0.19001977145671844,
-0.4724002778530121,
0.026675166562199593,
0.02915305271744728,
-0.24484485387802124,
0.009969478473067284,
0.25746747851371765,
0.5680677890777588,
0.21438391506671906,
-0.0539008304476738,
0.12236069142818451,
-0.14213721454143524,
-0.05924141779541969,
-0.0138147734105587,
0.4059746265411377,
0.000005045310444984352,
-0.07878333330154419,
0.45213207602500916,
0.12278629094362259,
-0.20824730396270752,
0.16543830931186676,
0.10538797080516815,
0.2668376564979553,
-0.18396037817001343,
-0.1674208641052246,
-0.030267106369137764,
-0.07025929540395737,
-0.30139780044555664,
-0.20188991725444794,
-0.18861687183380127,
-0.05045658349990845,
0.39659544825553894,
-0.33323046565055847,
-0.005068344995379448,
-0.1903361827135086,
0.09333423525094986,
-0.17059023678302765,
0.3120708763599396,
0.6364373564720154,
0.28708863258361816,
-0.14289472997188568,
-0.29703953862190247,
-0.3884435296058655,
0.15406882762908936,
-0.5896970629692078,
-0.19353044033050537,
-0.20761924982070923,
0.46320635080337524,
0.08989342302083969,
0.3273729085922241,
0.4216404855251312,
0.0515936054289341,
-0.4094788730144501,
0.47797584533691406,
-0.36113956570625305,
-0.3932267427444458,
0.041868679225444794,
0.07663215696811676,
0.04606296122074127,
-0.264856219291687,
0.1191573515534401,
-0.22472281754016876,
-0.0011501302942633629,
-0.1998835951089859,
-0.1851942241191864,
0.15244878828525543,
-0.045105092227458954,
0.47603633999824524,
0.08967265486717224,
0.30051329731941223,
0.19711190462112427,
-0.5851705074310303,
-0.4740626811981201,
-0.28019458055496216,
-0.07047273218631744,
0.09131284058094025,
0.08886896073818207,
0.4465159773826599,
-0.42782309651374817,
-0.0006209592102095485,
-0.14126670360565186,
0.19986532628536224,
-0.16423998773097992,
-0.20477378368377686,
0.15257269144058228,
-0.18962635099887848,
-0.04118731617927551,
0.4074380397796631,
-0.03855178505182266,
0.09420202672481537,
0.0715055763721466,
0.1940276324748993,
-0.2873767912387848,
-0.3336482346057892,
0.3049743175506592,
0.0193079374730587,
-0.3906155824661255,
0.05596083402633667,
0.1058749258518219,
0.06379080563783646,
-0.010458128526806831,
-0.23752234876155853,
0.10773497074842453,
0.4397532045841217,
-0.033389315009117126,
-0.2493496537208557,
0.10372508317232132,
-0.007916908711194992,
0.17052699625492096,
-0.01695476844906807,
0.5145736336708069,
0.0177309550344944,
-0.3262770175933838,
0.38464412093162537,
-0.113613560795784
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.