html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/4268
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
Hey @i-am-neo, Cool to hear that you're working on Robust ASR! Feel free to drop me a mail :-)
## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1
19
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered ## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 Hey @i-am-neo, Cool to hear that you're working on Robust ASR! Feel free to drop me a mail :-)
[ -0.2923785448074341, -0.041403546929359436, -0.1572301685810089, 0.2814290523529053, 0.0499909445643425, -0.028551850467920303, 0.16257955133914948, 0.545356035232544, 0.28651800751686096, 0.07778171449899673, -0.16878914833068848, 0.2441956251859665, -0.18494205176830292, -0.04901827126741409, -0.042837824672460556, 0.0211600661277771, -0.05280108004808426, -0.16825085878372192, -0.21537241339683533, -0.053267136216163635, -0.23708131909370422, 0.1817009449005127, -0.10967811942100525, -0.18582405149936676, 0.20694103837013245, -0.11403202265501022, 0.17602431774139404, 0.2468896210193634, -0.3102564811706543, -0.35323983430862427, -0.030722560361027718, -0.06134156510233879, 0.14081594347953796, 0.28845396637916565, -0.0001048582125804387, -0.03333163633942604, 0.42383724451065063, -0.21577408909797668, -0.3314879536628723, -0.2955610156059265, -0.3213742971420288, -0.2894916832447052, -0.026883885264396667, -0.3024510145187378, 0.2805395722389221, -0.0974685549736023, -0.18210814893245697, -0.205216184258461, 0.21409821510314941, 0.3210103213787079, 0.3282191753387451, 0.13499195873737335, 0.2758905291557312, -0.12219124287366867, 0.3785415589809418, -0.04135742038488388, 0.022433215752243996, 0.43319031596183777, 0.311367005109787, 0.1489267796278, -0.05188252776861191, 0.3362361192703247, -0.14884696900844574, 0.1204843521118164, 0.1093100756406784, 0.010718900710344315, 0.02706235647201538, -0.2118668556213379, 0.2079150378704071, 0.2775227427482605, 0.4446953237056732, -0.24168458580970764, -0.43177950382232666, -0.3021028935909271, -0.0022347294725477695, -0.3895505964756012, 0.21961495280265808, 0.41271650791168213, -0.19989953935146332, 0.10162792354822159, -0.0287260003387928, -0.02847300097346306, -0.039980195462703705, 0.24928995966911316, -0.05669407546520233, 0.18955886363983154, 0.05228989198803902, 0.04407105594873428, 0.10136358439922333, -0.2609741687774658, 0.1998424530029297, -0.20820191502571106, -0.19803644716739655, 0.06473476439714432, -0.2194782942533493, -0.19523358345031738, 0.10803820192813873, 0.19818933308124542, 0.3190004527568817, 0.15784676373004913, -0.15188899636268616, 0.01153232716023922, 0.13610143959522247, 0.025356518104672432, 0.2678481638431549, 0.08251023292541504, -0.4023614823818207, 0.3246602416038513, 0.26979291439056396, 0.4571753740310669, 0.16384901106357574, 0.21683844923973083, 0.1461557298898697, -0.28150469064712524, 0.06956362724304199, 0.11311081051826477, 0.17033231258392334, -0.2363537698984146, -0.4247172176837921, 0.13165880739688873, -0.2067680060863495, -0.04320215433835983, 0.10492877662181854, 0.35662877559661865, -0.15815967321395874, -0.00428970530629158, 0.12224783003330231, 0.039548154920339584, -0.14035196602344513, -0.163093701004982, -0.16128280758857727, 0.3140997886657715, 0.0655127465724945, -0.25267526507377625, 0.3126744031906128, -0.16972079873085022, 0.38886696100234985, -0.08082637935876846, -0.024546004831790924, -0.19689728319644928, 0.17513272166252136, -0.11825832724571228, 0.08169195055961609, 0.43360286951065063, 0.04492912068963051, 0.04132421314716339, 0.15522843599319458, -0.17079442739486694, -0.10182130336761475, 0.17245282232761383, -0.2603505849838257, -0.183922678232193, -0.14280535280704498, 0.33759960532188416, -0.13247323036193848, 0.0025364719331264496, -0.23546922206878662, -0.09458363056182861, 0.16204197704792023, -0.02501242607831955, 0.03444252163171768, -0.1668991595506668, 0.07620272040367126, -0.16735658049583435, 0.11246400326490402, 0.45947080850601196, -0.3991844952106476, 0.0404924675822258, -0.337788850069046, -0.17002370953559875, 0.11895563453435898, 0.16104423999786377, -0.36459508538246155, 0.3503321409225464, -0.24743202328681946, -0.02560994029045105, 0.51023930311203, -0.39399978518486023, -0.7960934042930603, 0.22914788126945496, -0.31735455989837646, 0.177420973777771, -0.05896652489900589, 0.15133501589298248, 0.26997995376586914, -0.003805367276072502, 0.1388985812664032, 0.07703619450330734, 0.03562905639410019, 0.02643066830933094, -0.3412954807281494, -0.07258253544569016, 0.2134069949388504, 0.15278509259223938, 0.1383558213710785, -0.06041046231985092, 0.20977632701396942, 0.2546502649784088, 0.4838971793651581, 0.08620291203260422, 0.022373907268047333, 0.18035566806793213, 0.2710554897785187, -0.06430906057357788, -0.028673451393842697, -0.07478823512792587, -0.330537885427475, 0.17436638474464417, -0.3938857614994049, -0.05322670936584473, -0.5412219166755676, -0.003851410001516342, -0.4744914770126343, 0.062113650143146515, -0.12188754975795746, -0.16654381155967712, 0.23349449038505554, 0.15619321167469025, 0.051501739770174026, -0.05454205721616745, 0.0063396356999874115, 0.4334278106689453, -0.09732278436422348, 0.05993190407752991, -0.2802319824695587, 0.19947278499603271, -0.1803949922323227, -0.043506260961294174, 0.09274198114871979, -0.19000324606895447, 0.22612333297729492, -0.12496589869260788, -0.2060064673423767, 0.3546816110610962, 0.2581912577152252, 0.026221729815006256, -0.12454269081354141, -0.039717212319374084, 0.21343863010406494, -0.18121318519115448, 0.1068691685795784, 0.23666490614414215, 0.32652416825294495, 0.1463148295879364, -0.37871620059013367, 0.29511988162994385, -0.09924072027206421, -0.07881256192922592, 0.060969166457653046, -0.08102843165397644, 0.28460174798965454, -0.06520354747772217, -0.031954891979694366, -0.23039087653160095, 0.33366504311561584, 0.3264438211917877, -0.08497583866119385, -0.13839200139045715, -0.05072303116321564, 0.09558334201574326, 0.5174320340156555, 0.017486564815044403, 0.20393016934394836, 0.13887931406497955, 0.0767974704504013, -0.09633993357419968, 0.06870037317276001, 0.408471018075943, 0.5065783262252808, 0.21156209707260132, -0.0887182354927063, 0.03731425851583481, 0.10058582574129105, -0.20708642899990082, 0.2609805762767792, 0.0298948734998703, 0.027534019201993942, 0.23425832390785217, 0.23642411828041077, -0.014486475847661495, -0.19838553667068481, -0.3359374403953552, 0.06401721388101578, 0.37884053587913513, -0.1485496163368225, -0.10370250791311264, -0.3071557283401489, -0.006581146270036697, -0.19265952706336975, 0.022493410855531693, -0.05463052913546562, -0.34868282079696655, -0.022169075906276703, 0.308495432138443, -0.1978917121887207, 0.06632905453443527, -0.27897191047668457, -0.06924755871295929, 0.2657969295978546, -0.1872234344482422, 0.08097918331623077, 0.02637573890388012, -0.14233219623565674, 0.14070576429367065, 0.3288150727748871, 0.05199259892106056, 0.3806818723678589, 0.049975261092185974, -0.18718740344047546, -0.4483879506587982, -0.35149791836738586, -0.042016901075839996, -0.06957758218050003, 0.27819180488586426, 0.3377686142921448, 0.280673623085022, 0.07782384753227234, -0.09017139673233032, -0.03135760873556137, 0.1613830178976059, -0.20405811071395874, -0.05404911935329437, 0.04954776540398598, -0.0426512286067009, -0.21270059049129486, -0.44190099835395813, -0.39720824360847473, -0.48707032203674316, -0.10893584787845612, 0.021360192447900772, 0.23132380843162537, 0.028614874929189682, 0.06578712910413742, 0.1142568439245224, 0.1020718365907669, 0.11039778590202332, -0.17501677572727203, -0.25331911444664, 0.3172066807746887, -0.35649070143699646, -0.477579265832901, 0.05099082365632057, -0.10093450546264648, 0.02533789724111557, 0.09239538013935089, -0.5353687405586243, 0.128605917096138, -0.02623106725513935, 0.10332980751991272, -0.04804486036300659, -0.12538154423236847, 0.14243020117282867, 0.02013785019516945, -0.09262211620807648, -0.26797962188720703, -0.02128756418824196, -0.139828622341156, -0.21928390860557556, 0.39466238021850586, -0.15724733471870422, 0.31647273898124695, 0.07660776376724243, 0.3585456609725952, 0.2280852347612381, 0.017938237637281418, 0.3332448899745941, 0.28915393352508545, 0.22085854411125183, -0.08624846488237381, -0.3794330656528473, -0.03274394944310188, 0.11292178928852081, 0.04067232459783554, 0.24874915182590485, -0.2000153660774231, -0.42751187086105347, -0.18043853342533112, 0.05770343169569969, -0.35848578810691833, -0.24403953552246094, -0.0020133312791585922, 0.16966739296913147, 0.013136163353919983, 0.1596021056175232, 0.11763522773981094, -0.1616302877664566, 0.02678469568490982, -0.047141920775175095, 0.15505242347717285, -0.06660757213830948, 0.12338847666978836, -0.08237329870462418, 0.04427611455321312, -0.17722517251968384, 0.13644854724407196, 0.10747998207807541, 0.40741103887557983, 0.07303734123706818, 0.03518466651439667, -0.07738615572452545, -0.3007650375366211, 0.5904008746147156, -0.01122569851577282, 0.311517596244812, -0.06563818454742432, -0.02289901301264763, -0.2910361886024475, -0.07352092862129211, -0.3277398943901062, -0.06197263300418854, 0.34221166372299194, 0.22505012154579163, -0.38328656554222107, 0.13267990946769714, -0.03955502063035965, 0.017154963687062263, -0.04862403869628906, -0.19538453221321106, -0.11428017914295197, -0.571102499961853, -0.4278566539287567, -0.02541608363389969, 0.09934075176715851, 0.3440416157245636, -0.18900293111801147, -0.10461871325969696, 0.10348653793334961, 0.01295236125588417, 0.07712624222040176, 0.018063709139823914, 0.29493507742881775, 0.09690995514392853, 0.3318150043487549, 0.011120729148387909, 0.41932010650634766, 0.30447328090667725, 0.6435573101043701, -0.015318576246500015, -0.1343490481376648, 0.1597364842891693, -0.020629040896892548, -0.34050050377845764, 0.2576614320278168, -0.1682245433330536, 0.0227816104888916, 0.1810477375984192, 0.11716251075267792, 0.158318892121315, 0.21471808850765228, 0.06385650485754013, 0.08437087386846542, -0.37095579504966736, -0.141998291015625, 0.4147662818431854, -0.012218019925057888, 0.012635938823223114, 0.31763628125190735, -0.10659559071063995, -0.2798045873641968, -0.03693548962473869, 0.10257906466722488, 0.7800723314285278, 0.1858661025762558, -0.034606676548719406, 0.282118558883667, -0.13296130299568176, 0.341800719499588, -0.0415530800819397, 0.24863924086093903, -0.28297027945518494, -0.1942824125289917, -0.09004247188568115, -0.23665045201778412, 0.13830658793449402, -0.09448248147964478, -0.2990509271621704, 0.1529107242822647, -0.12150530517101288, -0.071225106716156, -0.05936192721128464, 0.49987637996673584, -0.17537425458431244, -0.15680474042892456, -0.32712316513061523, 0.2737341821193695, -0.09683740139007568, 0.2338029444217682, -0.20792919397354126, -0.21790839731693268, -0.28948572278022766, -0.39074110984802246, -0.3588908314704895, 0.11203015595674515, -0.13200153410434723, 0.2717316150665283, -0.07103174924850464, -0.09115293622016907, 0.14664007723331451, 0.019914783537387848, -0.07888416945934296, 0.3375187814235687, -0.14085951447486877, 0.1794108748435974, -0.09324228018522263, -0.08565571159124374, 0.15788112580776215, 0.15664434432983398, 0.20432116091251373, -0.2265358865261078, -0.13992176949977875, 0.007269259542226791, -0.029890041798353195, -0.1234370768070221, 0.07833375036716461, 0.09073290228843689, -0.01676994562149048, -0.2758491635322571, -0.27245479822158813, -0.060994505882263184, -0.23195402324199677, -0.2816798985004425, 0.20175203680992126, 0.17624032497406006, -0.16823841631412506, 0.1158103495836258, 0.2009875476360321, -0.3794732093811035, -0.28833872079849243, 0.5457724928855896, -0.04043176770210266, -0.06736768037080765, 0.39091092348098755, 0.09005893766880035, -0.2963806986808777, -0.310783714056015, -0.037955090403556824, -0.26150938868522644, -0.21313384175300598, 0.25088241696357727, -0.21040813624858856, 0.12902067601680756, -0.0178530253469944, 0.12058345973491669, 0.12689906358718872, 0.1804380714893341, 0.10884721577167511, -0.6116679310798645, -0.17526528239250183, 0.20967890322208405, -0.17572954297065735, 0.2425876259803772, -0.26359355449676514, 0.008667033165693283, -0.13110819458961487, 0.013107525184750557, -0.4092979431152344, 0.11191446334123611, -0.22261929512023926, 0.05585688725113869, 0.013702046126127243, -0.02350599318742752, 0.08040930330753326, 0.22769072651863098, 0.2788037657737732, 0.3992195129394531, -0.18748965859413147, -0.31541261076927185, -0.11939901113510132, 0.11755499988794327, -0.031357306987047195, -0.25167784094810486, 0.07362260669469833, -0.3280540108680725, -0.11593496799468994, 0.14962846040725708, 0.1397647261619568, 0.05216009169816971, -0.019696690142154694, -0.17783306539058685, 0.41269251704216003, -0.158147394657135, -0.05522511526942253, 0.15885841846466064, -0.02192298322916031, -0.024020850658416748, -0.049936529248952866, 0.21508930623531342, 0.04442070424556732, -0.02629687264561653, -0.37478700280189514, -0.0220181941986084, 0.09990158677101135, 0.19122612476348877, 0.4644663333892822, -0.13491016626358032, 0.0058610402047634125, 0.2534859776496887, 0.18394775688648224, 0.3492342531681061, -0.18223580718040466, -0.0716564878821373, 0.13425728678703308, 0.3312247395515442, -0.4762812554836273, -0.020640719681978226, 0.05479545518755913, 0.14873181283473969, 0.08259662985801697, 0.2200610339641571, -0.08534006029367447, -0.05474691838026047, 0.01489478349685669, 0.10330773890018463, 0.5140697956085205, 0.039964888244867325, 0.1417970508337021, 0.3999735116958618, -0.2559893727302551, -0.06303846836090088, 0.20880301296710968, 0.04335177317261696, 0.19734157621860504, 0.3940804600715637, -0.17141997814178467, 0.33113735914230347, -0.16259977221488953, -0.025640662759542465, -0.043791405856609344, -0.4208478331565857, 0.031086120754480362, 0.3115212917327881, -0.016123168170452118, 0.2678171992301941, 0.04467850551009178, -0.14457938075065613, 0.10714339464902878, 0.03901024907827377, -0.17587733268737793, 0.3037647008895874, -0.18623855710029602, -0.03473331779241562, -0.12792013585567474, -0.3328615427017212, -0.12312369048595428, 0.12049813568592072, 0.07758492231369019, -0.2718222737312317, 0.1905571073293686, 0.3381194472312927, -0.20071585476398468, -0.5028097629547119, -0.10382426530122757, 0.004649195820093155, 0.04736971855163574, -0.38748297095298767, 0.10317211598157883, 0.43175894021987915, 0.05664655193686485, 0.0653752014040947, 0.08411981165409088, 0.37489092350006104, 0.5216264724731445, 0.06213126331567764, -0.16112537682056427, 0.039663054049015045, -0.04100240767002106, -0.09686847031116486, 0.3038143813610077, 0.10332528501749039, 0.08061197400093079, 0.3594599664211273, 0.24206310510635376, -0.23650501668453217, 0.17379362881183624, 0.13688251376152039, 0.03942655771970749, -0.08726736903190613, 0.2431357502937317, -0.08798598498106003, 0.23015770316123962, -0.3438950479030609, -0.06294486671686172, -0.38411077857017517, -0.2050081491470337, 0.19444197416305542, 0.05380528047680855, 0.28030306100845337, -0.14834436774253845, 0.10350725799798965, -0.19397252798080444, 0.3162059485912323, 0.26609864830970764, 0.3846205174922943, -0.213784322142601, -0.04690593108534813, -0.5024276971817017, 0.17247295379638672, -0.3469964861869812, -0.12957768142223358, -0.14558802545070648, 0.22403065860271454, -0.11839956790208817, 0.20479916036128998, 0.07481686770915985, 0.10877786576747894, -0.01993950828909874, 0.18254001438617706, -0.3406279981136322, -0.23789961636066437, 0.1222531646490097, -0.006202977150678635, 0.10469554364681244, -0.4333772361278534, 0.1686771959066391, -0.4030477702617645, 0.20821115374565125, -0.3700031638145447, -0.13819462060928345, -0.04054044932126999, 0.2870666980743408, 0.3991276025772095, 0.2666448652744293, 0.4219020903110504, -0.17218035459518433, -0.46238216757774353, -0.5068791508674622, -0.21783173084259033, -0.12177998572587967, 0.19865015149116516, 0.2184196412563324, 0.6369154453277588, 0.02968878112733364, -0.07460390031337738, -0.10336130112409592, 0.4448700547218323, -0.1308683156967163, -0.05804584547877312, -0.19728370010852814, -0.14362050592899323, -0.10961572080850601, 0.06565576791763306, -0.0511649027466774, 0.14834433794021606, -0.02193724364042282, 0.3588075339794159, -0.3942275047302246, -0.38564664125442505, 0.6613801121711731, -0.38818010687828064, -0.15961907804012299, -0.10090485215187073, 0.2502729892730713, -0.12183154374361038, -0.1491239070892334, -0.4552607536315918, 0.2276090681552887, 0.42876291275024414, -0.012890860438346863, -0.1326039433479309, 0.15058854222297668, -0.07818339765071869, 0.13073547184467316, -0.038689855486154556, 0.43133604526519775, 0.06741666793823242, -0.22081582248210907, 0.09336760640144348, -0.1452368199825287 ]
https://github.com/huggingface/datasets/issues/4268
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
@i-am-neo This particular subset of the dataset was taken from the [CirrusSearch dumps](https://dumps.wikimedia.org/other/cirrussearch/current/) You're specifically after the [enwiktionary-20220425-cirrussearch-content.json.gz](https://dumps.wikimedia.org/other/cirrussearch/current/enwiktionary-20220425-cirrussearch-content.json.gz) file
## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1
19
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered ## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 @i-am-neo This particular subset of the dataset was taken from the [CirrusSearch dumps](https://dumps.wikimedia.org/other/cirrussearch/current/) You're specifically after the [enwiktionary-20220425-cirrussearch-content.json.gz](https://dumps.wikimedia.org/other/cirrussearch/current/enwiktionary-20220425-cirrussearch-content.json.gz) file
[ -0.2923785448074341, -0.041403546929359436, -0.1572301685810089, 0.2814290523529053, 0.0499909445643425, -0.028551850467920303, 0.16257955133914948, 0.545356035232544, 0.28651800751686096, 0.07778171449899673, -0.16878914833068848, 0.2441956251859665, -0.18494205176830292, -0.04901827126741409, -0.042837824672460556, 0.0211600661277771, -0.05280108004808426, -0.16825085878372192, -0.21537241339683533, -0.053267136216163635, -0.23708131909370422, 0.1817009449005127, -0.10967811942100525, -0.18582405149936676, 0.20694103837013245, -0.11403202265501022, 0.17602431774139404, 0.2468896210193634, -0.3102564811706543, -0.35323983430862427, -0.030722560361027718, -0.06134156510233879, 0.14081594347953796, 0.28845396637916565, -0.0001048582125804387, -0.03333163633942604, 0.42383724451065063, -0.21577408909797668, -0.3314879536628723, -0.2955610156059265, -0.3213742971420288, -0.2894916832447052, -0.026883885264396667, -0.3024510145187378, 0.2805395722389221, -0.0974685549736023, -0.18210814893245697, -0.205216184258461, 0.21409821510314941, 0.3210103213787079, 0.3282191753387451, 0.13499195873737335, 0.2758905291557312, -0.12219124287366867, 0.3785415589809418, -0.04135742038488388, 0.022433215752243996, 0.43319031596183777, 0.311367005109787, 0.1489267796278, -0.05188252776861191, 0.3362361192703247, -0.14884696900844574, 0.1204843521118164, 0.1093100756406784, 0.010718900710344315, 0.02706235647201538, -0.2118668556213379, 0.2079150378704071, 0.2775227427482605, 0.4446953237056732, -0.24168458580970764, -0.43177950382232666, -0.3021028935909271, -0.0022347294725477695, -0.3895505964756012, 0.21961495280265808, 0.41271650791168213, -0.19989953935146332, 0.10162792354822159, -0.0287260003387928, -0.02847300097346306, -0.039980195462703705, 0.24928995966911316, -0.05669407546520233, 0.18955886363983154, 0.05228989198803902, 0.04407105594873428, 0.10136358439922333, -0.2609741687774658, 0.1998424530029297, -0.20820191502571106, -0.19803644716739655, 0.06473476439714432, -0.2194782942533493, -0.19523358345031738, 0.10803820192813873, 0.19818933308124542, 0.3190004527568817, 0.15784676373004913, -0.15188899636268616, 0.01153232716023922, 0.13610143959522247, 0.025356518104672432, 0.2678481638431549, 0.08251023292541504, -0.4023614823818207, 0.3246602416038513, 0.26979291439056396, 0.4571753740310669, 0.16384901106357574, 0.21683844923973083, 0.1461557298898697, -0.28150469064712524, 0.06956362724304199, 0.11311081051826477, 0.17033231258392334, -0.2363537698984146, -0.4247172176837921, 0.13165880739688873, -0.2067680060863495, -0.04320215433835983, 0.10492877662181854, 0.35662877559661865, -0.15815967321395874, -0.00428970530629158, 0.12224783003330231, 0.039548154920339584, -0.14035196602344513, -0.163093701004982, -0.16128280758857727, 0.3140997886657715, 0.0655127465724945, -0.25267526507377625, 0.3126744031906128, -0.16972079873085022, 0.38886696100234985, -0.08082637935876846, -0.024546004831790924, -0.19689728319644928, 0.17513272166252136, -0.11825832724571228, 0.08169195055961609, 0.43360286951065063, 0.04492912068963051, 0.04132421314716339, 0.15522843599319458, -0.17079442739486694, -0.10182130336761475, 0.17245282232761383, -0.2603505849838257, -0.183922678232193, -0.14280535280704498, 0.33759960532188416, -0.13247323036193848, 0.0025364719331264496, -0.23546922206878662, -0.09458363056182861, 0.16204197704792023, -0.02501242607831955, 0.03444252163171768, -0.1668991595506668, 0.07620272040367126, -0.16735658049583435, 0.11246400326490402, 0.45947080850601196, -0.3991844952106476, 0.0404924675822258, -0.337788850069046, -0.17002370953559875, 0.11895563453435898, 0.16104423999786377, -0.36459508538246155, 0.3503321409225464, -0.24743202328681946, -0.02560994029045105, 0.51023930311203, -0.39399978518486023, -0.7960934042930603, 0.22914788126945496, -0.31735455989837646, 0.177420973777771, -0.05896652489900589, 0.15133501589298248, 0.26997995376586914, -0.003805367276072502, 0.1388985812664032, 0.07703619450330734, 0.03562905639410019, 0.02643066830933094, -0.3412954807281494, -0.07258253544569016, 0.2134069949388504, 0.15278509259223938, 0.1383558213710785, -0.06041046231985092, 0.20977632701396942, 0.2546502649784088, 0.4838971793651581, 0.08620291203260422, 0.022373907268047333, 0.18035566806793213, 0.2710554897785187, -0.06430906057357788, -0.028673451393842697, -0.07478823512792587, -0.330537885427475, 0.17436638474464417, -0.3938857614994049, -0.05322670936584473, -0.5412219166755676, -0.003851410001516342, -0.4744914770126343, 0.062113650143146515, -0.12188754975795746, -0.16654381155967712, 0.23349449038505554, 0.15619321167469025, 0.051501739770174026, -0.05454205721616745, 0.0063396356999874115, 0.4334278106689453, -0.09732278436422348, 0.05993190407752991, -0.2802319824695587, 0.19947278499603271, -0.1803949922323227, -0.043506260961294174, 0.09274198114871979, -0.19000324606895447, 0.22612333297729492, -0.12496589869260788, -0.2060064673423767, 0.3546816110610962, 0.2581912577152252, 0.026221729815006256, -0.12454269081354141, -0.039717212319374084, 0.21343863010406494, -0.18121318519115448, 0.1068691685795784, 0.23666490614414215, 0.32652416825294495, 0.1463148295879364, -0.37871620059013367, 0.29511988162994385, -0.09924072027206421, -0.07881256192922592, 0.060969166457653046, -0.08102843165397644, 0.28460174798965454, -0.06520354747772217, -0.031954891979694366, -0.23039087653160095, 0.33366504311561584, 0.3264438211917877, -0.08497583866119385, -0.13839200139045715, -0.05072303116321564, 0.09558334201574326, 0.5174320340156555, 0.017486564815044403, 0.20393016934394836, 0.13887931406497955, 0.0767974704504013, -0.09633993357419968, 0.06870037317276001, 0.408471018075943, 0.5065783262252808, 0.21156209707260132, -0.0887182354927063, 0.03731425851583481, 0.10058582574129105, -0.20708642899990082, 0.2609805762767792, 0.0298948734998703, 0.027534019201993942, 0.23425832390785217, 0.23642411828041077, -0.014486475847661495, -0.19838553667068481, -0.3359374403953552, 0.06401721388101578, 0.37884053587913513, -0.1485496163368225, -0.10370250791311264, -0.3071557283401489, -0.006581146270036697, -0.19265952706336975, 0.022493410855531693, -0.05463052913546562, -0.34868282079696655, -0.022169075906276703, 0.308495432138443, -0.1978917121887207, 0.06632905453443527, -0.27897191047668457, -0.06924755871295929, 0.2657969295978546, -0.1872234344482422, 0.08097918331623077, 0.02637573890388012, -0.14233219623565674, 0.14070576429367065, 0.3288150727748871, 0.05199259892106056, 0.3806818723678589, 0.049975261092185974, -0.18718740344047546, -0.4483879506587982, -0.35149791836738586, -0.042016901075839996, -0.06957758218050003, 0.27819180488586426, 0.3377686142921448, 0.280673623085022, 0.07782384753227234, -0.09017139673233032, -0.03135760873556137, 0.1613830178976059, -0.20405811071395874, -0.05404911935329437, 0.04954776540398598, -0.0426512286067009, -0.21270059049129486, -0.44190099835395813, -0.39720824360847473, -0.48707032203674316, -0.10893584787845612, 0.021360192447900772, 0.23132380843162537, 0.028614874929189682, 0.06578712910413742, 0.1142568439245224, 0.1020718365907669, 0.11039778590202332, -0.17501677572727203, -0.25331911444664, 0.3172066807746887, -0.35649070143699646, -0.477579265832901, 0.05099082365632057, -0.10093450546264648, 0.02533789724111557, 0.09239538013935089, -0.5353687405586243, 0.128605917096138, -0.02623106725513935, 0.10332980751991272, -0.04804486036300659, -0.12538154423236847, 0.14243020117282867, 0.02013785019516945, -0.09262211620807648, -0.26797962188720703, -0.02128756418824196, -0.139828622341156, -0.21928390860557556, 0.39466238021850586, -0.15724733471870422, 0.31647273898124695, 0.07660776376724243, 0.3585456609725952, 0.2280852347612381, 0.017938237637281418, 0.3332448899745941, 0.28915393352508545, 0.22085854411125183, -0.08624846488237381, -0.3794330656528473, -0.03274394944310188, 0.11292178928852081, 0.04067232459783554, 0.24874915182590485, -0.2000153660774231, -0.42751187086105347, -0.18043853342533112, 0.05770343169569969, -0.35848578810691833, -0.24403953552246094, -0.0020133312791585922, 0.16966739296913147, 0.013136163353919983, 0.1596021056175232, 0.11763522773981094, -0.1616302877664566, 0.02678469568490982, -0.047141920775175095, 0.15505242347717285, -0.06660757213830948, 0.12338847666978836, -0.08237329870462418, 0.04427611455321312, -0.17722517251968384, 0.13644854724407196, 0.10747998207807541, 0.40741103887557983, 0.07303734123706818, 0.03518466651439667, -0.07738615572452545, -0.3007650375366211, 0.5904008746147156, -0.01122569851577282, 0.311517596244812, -0.06563818454742432, -0.02289901301264763, -0.2910361886024475, -0.07352092862129211, -0.3277398943901062, -0.06197263300418854, 0.34221166372299194, 0.22505012154579163, -0.38328656554222107, 0.13267990946769714, -0.03955502063035965, 0.017154963687062263, -0.04862403869628906, -0.19538453221321106, -0.11428017914295197, -0.571102499961853, -0.4278566539287567, -0.02541608363389969, 0.09934075176715851, 0.3440416157245636, -0.18900293111801147, -0.10461871325969696, 0.10348653793334961, 0.01295236125588417, 0.07712624222040176, 0.018063709139823914, 0.29493507742881775, 0.09690995514392853, 0.3318150043487549, 0.011120729148387909, 0.41932010650634766, 0.30447328090667725, 0.6435573101043701, -0.015318576246500015, -0.1343490481376648, 0.1597364842891693, -0.020629040896892548, -0.34050050377845764, 0.2576614320278168, -0.1682245433330536, 0.0227816104888916, 0.1810477375984192, 0.11716251075267792, 0.158318892121315, 0.21471808850765228, 0.06385650485754013, 0.08437087386846542, -0.37095579504966736, -0.141998291015625, 0.4147662818431854, -0.012218019925057888, 0.012635938823223114, 0.31763628125190735, -0.10659559071063995, -0.2798045873641968, -0.03693548962473869, 0.10257906466722488, 0.7800723314285278, 0.1858661025762558, -0.034606676548719406, 0.282118558883667, -0.13296130299568176, 0.341800719499588, -0.0415530800819397, 0.24863924086093903, -0.28297027945518494, -0.1942824125289917, -0.09004247188568115, -0.23665045201778412, 0.13830658793449402, -0.09448248147964478, -0.2990509271621704, 0.1529107242822647, -0.12150530517101288, -0.071225106716156, -0.05936192721128464, 0.49987637996673584, -0.17537425458431244, -0.15680474042892456, -0.32712316513061523, 0.2737341821193695, -0.09683740139007568, 0.2338029444217682, -0.20792919397354126, -0.21790839731693268, -0.28948572278022766, -0.39074110984802246, -0.3588908314704895, 0.11203015595674515, -0.13200153410434723, 0.2717316150665283, -0.07103174924850464, -0.09115293622016907, 0.14664007723331451, 0.019914783537387848, -0.07888416945934296, 0.3375187814235687, -0.14085951447486877, 0.1794108748435974, -0.09324228018522263, -0.08565571159124374, 0.15788112580776215, 0.15664434432983398, 0.20432116091251373, -0.2265358865261078, -0.13992176949977875, 0.007269259542226791, -0.029890041798353195, -0.1234370768070221, 0.07833375036716461, 0.09073290228843689, -0.01676994562149048, -0.2758491635322571, -0.27245479822158813, -0.060994505882263184, -0.23195402324199677, -0.2816798985004425, 0.20175203680992126, 0.17624032497406006, -0.16823841631412506, 0.1158103495836258, 0.2009875476360321, -0.3794732093811035, -0.28833872079849243, 0.5457724928855896, -0.04043176770210266, -0.06736768037080765, 0.39091092348098755, 0.09005893766880035, -0.2963806986808777, -0.310783714056015, -0.037955090403556824, -0.26150938868522644, -0.21313384175300598, 0.25088241696357727, -0.21040813624858856, 0.12902067601680756, -0.0178530253469944, 0.12058345973491669, 0.12689906358718872, 0.1804380714893341, 0.10884721577167511, -0.6116679310798645, -0.17526528239250183, 0.20967890322208405, -0.17572954297065735, 0.2425876259803772, -0.26359355449676514, 0.008667033165693283, -0.13110819458961487, 0.013107525184750557, -0.4092979431152344, 0.11191446334123611, -0.22261929512023926, 0.05585688725113869, 0.013702046126127243, -0.02350599318742752, 0.08040930330753326, 0.22769072651863098, 0.2788037657737732, 0.3992195129394531, -0.18748965859413147, -0.31541261076927185, -0.11939901113510132, 0.11755499988794327, -0.031357306987047195, -0.25167784094810486, 0.07362260669469833, -0.3280540108680725, -0.11593496799468994, 0.14962846040725708, 0.1397647261619568, 0.05216009169816971, -0.019696690142154694, -0.17783306539058685, 0.41269251704216003, -0.158147394657135, -0.05522511526942253, 0.15885841846466064, -0.02192298322916031, -0.024020850658416748, -0.049936529248952866, 0.21508930623531342, 0.04442070424556732, -0.02629687264561653, -0.37478700280189514, -0.0220181941986084, 0.09990158677101135, 0.19122612476348877, 0.4644663333892822, -0.13491016626358032, 0.0058610402047634125, 0.2534859776496887, 0.18394775688648224, 0.3492342531681061, -0.18223580718040466, -0.0716564878821373, 0.13425728678703308, 0.3312247395515442, -0.4762812554836273, -0.020640719681978226, 0.05479545518755913, 0.14873181283473969, 0.08259662985801697, 0.2200610339641571, -0.08534006029367447, -0.05474691838026047, 0.01489478349685669, 0.10330773890018463, 0.5140697956085205, 0.039964888244867325, 0.1417970508337021, 0.3999735116958618, -0.2559893727302551, -0.06303846836090088, 0.20880301296710968, 0.04335177317261696, 0.19734157621860504, 0.3940804600715637, -0.17141997814178467, 0.33113735914230347, -0.16259977221488953, -0.025640662759542465, -0.043791405856609344, -0.4208478331565857, 0.031086120754480362, 0.3115212917327881, -0.016123168170452118, 0.2678171992301941, 0.04467850551009178, -0.14457938075065613, 0.10714339464902878, 0.03901024907827377, -0.17587733268737793, 0.3037647008895874, -0.18623855710029602, -0.03473331779241562, -0.12792013585567474, -0.3328615427017212, -0.12312369048595428, 0.12049813568592072, 0.07758492231369019, -0.2718222737312317, 0.1905571073293686, 0.3381194472312927, -0.20071585476398468, -0.5028097629547119, -0.10382426530122757, 0.004649195820093155, 0.04736971855163574, -0.38748297095298767, 0.10317211598157883, 0.43175894021987915, 0.05664655193686485, 0.0653752014040947, 0.08411981165409088, 0.37489092350006104, 0.5216264724731445, 0.06213126331567764, -0.16112537682056427, 0.039663054049015045, -0.04100240767002106, -0.09686847031116486, 0.3038143813610077, 0.10332528501749039, 0.08061197400093079, 0.3594599664211273, 0.24206310510635376, -0.23650501668453217, 0.17379362881183624, 0.13688251376152039, 0.03942655771970749, -0.08726736903190613, 0.2431357502937317, -0.08798598498106003, 0.23015770316123962, -0.3438950479030609, -0.06294486671686172, -0.38411077857017517, -0.2050081491470337, 0.19444197416305542, 0.05380528047680855, 0.28030306100845337, -0.14834436774253845, 0.10350725799798965, -0.19397252798080444, 0.3162059485912323, 0.26609864830970764, 0.3846205174922943, -0.213784322142601, -0.04690593108534813, -0.5024276971817017, 0.17247295379638672, -0.3469964861869812, -0.12957768142223358, -0.14558802545070648, 0.22403065860271454, -0.11839956790208817, 0.20479916036128998, 0.07481686770915985, 0.10877786576747894, -0.01993950828909874, 0.18254001438617706, -0.3406279981136322, -0.23789961636066437, 0.1222531646490097, -0.006202977150678635, 0.10469554364681244, -0.4333772361278534, 0.1686771959066391, -0.4030477702617645, 0.20821115374565125, -0.3700031638145447, -0.13819462060928345, -0.04054044932126999, 0.2870666980743408, 0.3991276025772095, 0.2666448652744293, 0.4219020903110504, -0.17218035459518433, -0.46238216757774353, -0.5068791508674622, -0.21783173084259033, -0.12177998572587967, 0.19865015149116516, 0.2184196412563324, 0.6369154453277588, 0.02968878112733364, -0.07460390031337738, -0.10336130112409592, 0.4448700547218323, -0.1308683156967163, -0.05804584547877312, -0.19728370010852814, -0.14362050592899323, -0.10961572080850601, 0.06565576791763306, -0.0511649027466774, 0.14834433794021606, -0.02193724364042282, 0.3588075339794159, -0.3942275047302246, -0.38564664125442505, 0.6613801121711731, -0.38818010687828064, -0.15961907804012299, -0.10090485215187073, 0.2502729892730713, -0.12183154374361038, -0.1491239070892334, -0.4552607536315918, 0.2276090681552887, 0.42876291275024414, -0.012890860438346863, -0.1326039433479309, 0.15058854222297668, -0.07818339765071869, 0.13073547184467316, -0.038689855486154556, 0.43133604526519775, 0.06741666793823242, -0.22081582248210907, 0.09336760640144348, -0.1452368199825287 ]
https://github.com/huggingface/datasets/issues/4268
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
thanks @cakiki ! <del>I could access the gz file yesterday (but neglected to tuck it away somewhere safe), and today the link is throwing a 404. Can you help? </del> Never mind, got it!
## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1
34
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered ## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 thanks @cakiki ! <del>I could access the gz file yesterday (but neglected to tuck it away somewhere safe), and today the link is throwing a 404. Can you help? </del> Never mind, got it!
[ -0.2923785448074341, -0.041403546929359436, -0.1572301685810089, 0.2814290523529053, 0.0499909445643425, -0.028551850467920303, 0.16257955133914948, 0.545356035232544, 0.28651800751686096, 0.07778171449899673, -0.16878914833068848, 0.2441956251859665, -0.18494205176830292, -0.04901827126741409, -0.042837824672460556, 0.0211600661277771, -0.05280108004808426, -0.16825085878372192, -0.21537241339683533, -0.053267136216163635, -0.23708131909370422, 0.1817009449005127, -0.10967811942100525, -0.18582405149936676, 0.20694103837013245, -0.11403202265501022, 0.17602431774139404, 0.2468896210193634, -0.3102564811706543, -0.35323983430862427, -0.030722560361027718, -0.06134156510233879, 0.14081594347953796, 0.28845396637916565, -0.0001048582125804387, -0.03333163633942604, 0.42383724451065063, -0.21577408909797668, -0.3314879536628723, -0.2955610156059265, -0.3213742971420288, -0.2894916832447052, -0.026883885264396667, -0.3024510145187378, 0.2805395722389221, -0.0974685549736023, -0.18210814893245697, -0.205216184258461, 0.21409821510314941, 0.3210103213787079, 0.3282191753387451, 0.13499195873737335, 0.2758905291557312, -0.12219124287366867, 0.3785415589809418, -0.04135742038488388, 0.022433215752243996, 0.43319031596183777, 0.311367005109787, 0.1489267796278, -0.05188252776861191, 0.3362361192703247, -0.14884696900844574, 0.1204843521118164, 0.1093100756406784, 0.010718900710344315, 0.02706235647201538, -0.2118668556213379, 0.2079150378704071, 0.2775227427482605, 0.4446953237056732, -0.24168458580970764, -0.43177950382232666, -0.3021028935909271, -0.0022347294725477695, -0.3895505964756012, 0.21961495280265808, 0.41271650791168213, -0.19989953935146332, 0.10162792354822159, -0.0287260003387928, -0.02847300097346306, -0.039980195462703705, 0.24928995966911316, -0.05669407546520233, 0.18955886363983154, 0.05228989198803902, 0.04407105594873428, 0.10136358439922333, -0.2609741687774658, 0.1998424530029297, -0.20820191502571106, -0.19803644716739655, 0.06473476439714432, -0.2194782942533493, -0.19523358345031738, 0.10803820192813873, 0.19818933308124542, 0.3190004527568817, 0.15784676373004913, -0.15188899636268616, 0.01153232716023922, 0.13610143959522247, 0.025356518104672432, 0.2678481638431549, 0.08251023292541504, -0.4023614823818207, 0.3246602416038513, 0.26979291439056396, 0.4571753740310669, 0.16384901106357574, 0.21683844923973083, 0.1461557298898697, -0.28150469064712524, 0.06956362724304199, 0.11311081051826477, 0.17033231258392334, -0.2363537698984146, -0.4247172176837921, 0.13165880739688873, -0.2067680060863495, -0.04320215433835983, 0.10492877662181854, 0.35662877559661865, -0.15815967321395874, -0.00428970530629158, 0.12224783003330231, 0.039548154920339584, -0.14035196602344513, -0.163093701004982, -0.16128280758857727, 0.3140997886657715, 0.0655127465724945, -0.25267526507377625, 0.3126744031906128, -0.16972079873085022, 0.38886696100234985, -0.08082637935876846, -0.024546004831790924, -0.19689728319644928, 0.17513272166252136, -0.11825832724571228, 0.08169195055961609, 0.43360286951065063, 0.04492912068963051, 0.04132421314716339, 0.15522843599319458, -0.17079442739486694, -0.10182130336761475, 0.17245282232761383, -0.2603505849838257, -0.183922678232193, -0.14280535280704498, 0.33759960532188416, -0.13247323036193848, 0.0025364719331264496, -0.23546922206878662, -0.09458363056182861, 0.16204197704792023, -0.02501242607831955, 0.03444252163171768, -0.1668991595506668, 0.07620272040367126, -0.16735658049583435, 0.11246400326490402, 0.45947080850601196, -0.3991844952106476, 0.0404924675822258, -0.337788850069046, -0.17002370953559875, 0.11895563453435898, 0.16104423999786377, -0.36459508538246155, 0.3503321409225464, -0.24743202328681946, -0.02560994029045105, 0.51023930311203, -0.39399978518486023, -0.7960934042930603, 0.22914788126945496, -0.31735455989837646, 0.177420973777771, -0.05896652489900589, 0.15133501589298248, 0.26997995376586914, -0.003805367276072502, 0.1388985812664032, 0.07703619450330734, 0.03562905639410019, 0.02643066830933094, -0.3412954807281494, -0.07258253544569016, 0.2134069949388504, 0.15278509259223938, 0.1383558213710785, -0.06041046231985092, 0.20977632701396942, 0.2546502649784088, 0.4838971793651581, 0.08620291203260422, 0.022373907268047333, 0.18035566806793213, 0.2710554897785187, -0.06430906057357788, -0.028673451393842697, -0.07478823512792587, -0.330537885427475, 0.17436638474464417, -0.3938857614994049, -0.05322670936584473, -0.5412219166755676, -0.003851410001516342, -0.4744914770126343, 0.062113650143146515, -0.12188754975795746, -0.16654381155967712, 0.23349449038505554, 0.15619321167469025, 0.051501739770174026, -0.05454205721616745, 0.0063396356999874115, 0.4334278106689453, -0.09732278436422348, 0.05993190407752991, -0.2802319824695587, 0.19947278499603271, -0.1803949922323227, -0.043506260961294174, 0.09274198114871979, -0.19000324606895447, 0.22612333297729492, -0.12496589869260788, -0.2060064673423767, 0.3546816110610962, 0.2581912577152252, 0.026221729815006256, -0.12454269081354141, -0.039717212319374084, 0.21343863010406494, -0.18121318519115448, 0.1068691685795784, 0.23666490614414215, 0.32652416825294495, 0.1463148295879364, -0.37871620059013367, 0.29511988162994385, -0.09924072027206421, -0.07881256192922592, 0.060969166457653046, -0.08102843165397644, 0.28460174798965454, -0.06520354747772217, -0.031954891979694366, -0.23039087653160095, 0.33366504311561584, 0.3264438211917877, -0.08497583866119385, -0.13839200139045715, -0.05072303116321564, 0.09558334201574326, 0.5174320340156555, 0.017486564815044403, 0.20393016934394836, 0.13887931406497955, 0.0767974704504013, -0.09633993357419968, 0.06870037317276001, 0.408471018075943, 0.5065783262252808, 0.21156209707260132, -0.0887182354927063, 0.03731425851583481, 0.10058582574129105, -0.20708642899990082, 0.2609805762767792, 0.0298948734998703, 0.027534019201993942, 0.23425832390785217, 0.23642411828041077, -0.014486475847661495, -0.19838553667068481, -0.3359374403953552, 0.06401721388101578, 0.37884053587913513, -0.1485496163368225, -0.10370250791311264, -0.3071557283401489, -0.006581146270036697, -0.19265952706336975, 0.022493410855531693, -0.05463052913546562, -0.34868282079696655, -0.022169075906276703, 0.308495432138443, -0.1978917121887207, 0.06632905453443527, -0.27897191047668457, -0.06924755871295929, 0.2657969295978546, -0.1872234344482422, 0.08097918331623077, 0.02637573890388012, -0.14233219623565674, 0.14070576429367065, 0.3288150727748871, 0.05199259892106056, 0.3806818723678589, 0.049975261092185974, -0.18718740344047546, -0.4483879506587982, -0.35149791836738586, -0.042016901075839996, -0.06957758218050003, 0.27819180488586426, 0.3377686142921448, 0.280673623085022, 0.07782384753227234, -0.09017139673233032, -0.03135760873556137, 0.1613830178976059, -0.20405811071395874, -0.05404911935329437, 0.04954776540398598, -0.0426512286067009, -0.21270059049129486, -0.44190099835395813, -0.39720824360847473, -0.48707032203674316, -0.10893584787845612, 0.021360192447900772, 0.23132380843162537, 0.028614874929189682, 0.06578712910413742, 0.1142568439245224, 0.1020718365907669, 0.11039778590202332, -0.17501677572727203, -0.25331911444664, 0.3172066807746887, -0.35649070143699646, -0.477579265832901, 0.05099082365632057, -0.10093450546264648, 0.02533789724111557, 0.09239538013935089, -0.5353687405586243, 0.128605917096138, -0.02623106725513935, 0.10332980751991272, -0.04804486036300659, -0.12538154423236847, 0.14243020117282867, 0.02013785019516945, -0.09262211620807648, -0.26797962188720703, -0.02128756418824196, -0.139828622341156, -0.21928390860557556, 0.39466238021850586, -0.15724733471870422, 0.31647273898124695, 0.07660776376724243, 0.3585456609725952, 0.2280852347612381, 0.017938237637281418, 0.3332448899745941, 0.28915393352508545, 0.22085854411125183, -0.08624846488237381, -0.3794330656528473, -0.03274394944310188, 0.11292178928852081, 0.04067232459783554, 0.24874915182590485, -0.2000153660774231, -0.42751187086105347, -0.18043853342533112, 0.05770343169569969, -0.35848578810691833, -0.24403953552246094, -0.0020133312791585922, 0.16966739296913147, 0.013136163353919983, 0.1596021056175232, 0.11763522773981094, -0.1616302877664566, 0.02678469568490982, -0.047141920775175095, 0.15505242347717285, -0.06660757213830948, 0.12338847666978836, -0.08237329870462418, 0.04427611455321312, -0.17722517251968384, 0.13644854724407196, 0.10747998207807541, 0.40741103887557983, 0.07303734123706818, 0.03518466651439667, -0.07738615572452545, -0.3007650375366211, 0.5904008746147156, -0.01122569851577282, 0.311517596244812, -0.06563818454742432, -0.02289901301264763, -0.2910361886024475, -0.07352092862129211, -0.3277398943901062, -0.06197263300418854, 0.34221166372299194, 0.22505012154579163, -0.38328656554222107, 0.13267990946769714, -0.03955502063035965, 0.017154963687062263, -0.04862403869628906, -0.19538453221321106, -0.11428017914295197, -0.571102499961853, -0.4278566539287567, -0.02541608363389969, 0.09934075176715851, 0.3440416157245636, -0.18900293111801147, -0.10461871325969696, 0.10348653793334961, 0.01295236125588417, 0.07712624222040176, 0.018063709139823914, 0.29493507742881775, 0.09690995514392853, 0.3318150043487549, 0.011120729148387909, 0.41932010650634766, 0.30447328090667725, 0.6435573101043701, -0.015318576246500015, -0.1343490481376648, 0.1597364842891693, -0.020629040896892548, -0.34050050377845764, 0.2576614320278168, -0.1682245433330536, 0.0227816104888916, 0.1810477375984192, 0.11716251075267792, 0.158318892121315, 0.21471808850765228, 0.06385650485754013, 0.08437087386846542, -0.37095579504966736, -0.141998291015625, 0.4147662818431854, -0.012218019925057888, 0.012635938823223114, 0.31763628125190735, -0.10659559071063995, -0.2798045873641968, -0.03693548962473869, 0.10257906466722488, 0.7800723314285278, 0.1858661025762558, -0.034606676548719406, 0.282118558883667, -0.13296130299568176, 0.341800719499588, -0.0415530800819397, 0.24863924086093903, -0.28297027945518494, -0.1942824125289917, -0.09004247188568115, -0.23665045201778412, 0.13830658793449402, -0.09448248147964478, -0.2990509271621704, 0.1529107242822647, -0.12150530517101288, -0.071225106716156, -0.05936192721128464, 0.49987637996673584, -0.17537425458431244, -0.15680474042892456, -0.32712316513061523, 0.2737341821193695, -0.09683740139007568, 0.2338029444217682, -0.20792919397354126, -0.21790839731693268, -0.28948572278022766, -0.39074110984802246, -0.3588908314704895, 0.11203015595674515, -0.13200153410434723, 0.2717316150665283, -0.07103174924850464, -0.09115293622016907, 0.14664007723331451, 0.019914783537387848, -0.07888416945934296, 0.3375187814235687, -0.14085951447486877, 0.1794108748435974, -0.09324228018522263, -0.08565571159124374, 0.15788112580776215, 0.15664434432983398, 0.20432116091251373, -0.2265358865261078, -0.13992176949977875, 0.007269259542226791, -0.029890041798353195, -0.1234370768070221, 0.07833375036716461, 0.09073290228843689, -0.01676994562149048, -0.2758491635322571, -0.27245479822158813, -0.060994505882263184, -0.23195402324199677, -0.2816798985004425, 0.20175203680992126, 0.17624032497406006, -0.16823841631412506, 0.1158103495836258, 0.2009875476360321, -0.3794732093811035, -0.28833872079849243, 0.5457724928855896, -0.04043176770210266, -0.06736768037080765, 0.39091092348098755, 0.09005893766880035, -0.2963806986808777, -0.310783714056015, -0.037955090403556824, -0.26150938868522644, -0.21313384175300598, 0.25088241696357727, -0.21040813624858856, 0.12902067601680756, -0.0178530253469944, 0.12058345973491669, 0.12689906358718872, 0.1804380714893341, 0.10884721577167511, -0.6116679310798645, -0.17526528239250183, 0.20967890322208405, -0.17572954297065735, 0.2425876259803772, -0.26359355449676514, 0.008667033165693283, -0.13110819458961487, 0.013107525184750557, -0.4092979431152344, 0.11191446334123611, -0.22261929512023926, 0.05585688725113869, 0.013702046126127243, -0.02350599318742752, 0.08040930330753326, 0.22769072651863098, 0.2788037657737732, 0.3992195129394531, -0.18748965859413147, -0.31541261076927185, -0.11939901113510132, 0.11755499988794327, -0.031357306987047195, -0.25167784094810486, 0.07362260669469833, -0.3280540108680725, -0.11593496799468994, 0.14962846040725708, 0.1397647261619568, 0.05216009169816971, -0.019696690142154694, -0.17783306539058685, 0.41269251704216003, -0.158147394657135, -0.05522511526942253, 0.15885841846466064, -0.02192298322916031, -0.024020850658416748, -0.049936529248952866, 0.21508930623531342, 0.04442070424556732, -0.02629687264561653, -0.37478700280189514, -0.0220181941986084, 0.09990158677101135, 0.19122612476348877, 0.4644663333892822, -0.13491016626358032, 0.0058610402047634125, 0.2534859776496887, 0.18394775688648224, 0.3492342531681061, -0.18223580718040466, -0.0716564878821373, 0.13425728678703308, 0.3312247395515442, -0.4762812554836273, -0.020640719681978226, 0.05479545518755913, 0.14873181283473969, 0.08259662985801697, 0.2200610339641571, -0.08534006029367447, -0.05474691838026047, 0.01489478349685669, 0.10330773890018463, 0.5140697956085205, 0.039964888244867325, 0.1417970508337021, 0.3999735116958618, -0.2559893727302551, -0.06303846836090088, 0.20880301296710968, 0.04335177317261696, 0.19734157621860504, 0.3940804600715637, -0.17141997814178467, 0.33113735914230347, -0.16259977221488953, -0.025640662759542465, -0.043791405856609344, -0.4208478331565857, 0.031086120754480362, 0.3115212917327881, -0.016123168170452118, 0.2678171992301941, 0.04467850551009178, -0.14457938075065613, 0.10714339464902878, 0.03901024907827377, -0.17587733268737793, 0.3037647008895874, -0.18623855710029602, -0.03473331779241562, -0.12792013585567474, -0.3328615427017212, -0.12312369048595428, 0.12049813568592072, 0.07758492231369019, -0.2718222737312317, 0.1905571073293686, 0.3381194472312927, -0.20071585476398468, -0.5028097629547119, -0.10382426530122757, 0.004649195820093155, 0.04736971855163574, -0.38748297095298767, 0.10317211598157883, 0.43175894021987915, 0.05664655193686485, 0.0653752014040947, 0.08411981165409088, 0.37489092350006104, 0.5216264724731445, 0.06213126331567764, -0.16112537682056427, 0.039663054049015045, -0.04100240767002106, -0.09686847031116486, 0.3038143813610077, 0.10332528501749039, 0.08061197400093079, 0.3594599664211273, 0.24206310510635376, -0.23650501668453217, 0.17379362881183624, 0.13688251376152039, 0.03942655771970749, -0.08726736903190613, 0.2431357502937317, -0.08798598498106003, 0.23015770316123962, -0.3438950479030609, -0.06294486671686172, -0.38411077857017517, -0.2050081491470337, 0.19444197416305542, 0.05380528047680855, 0.28030306100845337, -0.14834436774253845, 0.10350725799798965, -0.19397252798080444, 0.3162059485912323, 0.26609864830970764, 0.3846205174922943, -0.213784322142601, -0.04690593108534813, -0.5024276971817017, 0.17247295379638672, -0.3469964861869812, -0.12957768142223358, -0.14558802545070648, 0.22403065860271454, -0.11839956790208817, 0.20479916036128998, 0.07481686770915985, 0.10877786576747894, -0.01993950828909874, 0.18254001438617706, -0.3406279981136322, -0.23789961636066437, 0.1222531646490097, -0.006202977150678635, 0.10469554364681244, -0.4333772361278534, 0.1686771959066391, -0.4030477702617645, 0.20821115374565125, -0.3700031638145447, -0.13819462060928345, -0.04054044932126999, 0.2870666980743408, 0.3991276025772095, 0.2666448652744293, 0.4219020903110504, -0.17218035459518433, -0.46238216757774353, -0.5068791508674622, -0.21783173084259033, -0.12177998572587967, 0.19865015149116516, 0.2184196412563324, 0.6369154453277588, 0.02968878112733364, -0.07460390031337738, -0.10336130112409592, 0.4448700547218323, -0.1308683156967163, -0.05804584547877312, -0.19728370010852814, -0.14362050592899323, -0.10961572080850601, 0.06565576791763306, -0.0511649027466774, 0.14834433794021606, -0.02193724364042282, 0.3588075339794159, -0.3942275047302246, -0.38564664125442505, 0.6613801121711731, -0.38818010687828064, -0.15961907804012299, -0.10090485215187073, 0.2502729892730713, -0.12183154374361038, -0.1491239070892334, -0.4552607536315918, 0.2276090681552887, 0.42876291275024414, -0.012890860438346863, -0.1326039433479309, 0.15058854222297668, -0.07818339765071869, 0.13073547184467316, -0.038689855486154556, 0.43133604526519775, 0.06741666793823242, -0.22081582248210907, 0.09336760640144348, -0.1452368199825287 ]
https://github.com/huggingface/datasets/issues/4261
data leakage in `webis/conclugen` dataset
Hi @xflashxx, thanks for reporting. Please note that this dataset was generated and shared by Webis Group: https://huggingface.co/webis We are contacting the dataset owners to inform them about the issue you found. We'll keep you updated of their reply.
## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0
39
data leakage in `webis/conclugen` dataset ## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0 Hi @xflashxx, thanks for reporting. Please note that this dataset was generated and shared by Webis Group: https://huggingface.co/webis We are contacting the dataset owners to inform them about the issue you found. We'll keep you updated of their reply.
[ -0.3633222281932831, -0.02422395348548889, -0.1429639458656311, 0.40213078260421753, -0.365067720413208, -0.041542571038007736, 0.21329890191555023, 0.3561701476573944, -0.10639676451683044, -0.1708763688802719, -0.11982743442058563, 0.37816518545150757, 0.14826585352420807, -0.13640527427196503, 0.0034132646396756172, -0.0325714573264122, 0.011784538626670837, 0.01389816403388977, -0.14971207082271576, -0.14162465929985046, -0.09176202863454819, -0.07794829457998276, -0.20602448284626007, 0.05270101875066757, -0.0171953272074461, -0.14313054084777832, -0.22888043522834778, 0.029700983315706253, -0.034829281270504, -0.2237255722284317, 0.21340057253837585, 0.1298481523990631, -0.03061402216553688, 0.2692909240722656, -0.00011906860891031101, -0.03900575265288353, 0.15221059322357178, -0.10529954731464386, -0.3868154287338257, 0.11388888210058212, -0.7554756999015808, -0.1205686554312706, 0.03553767502307892, -0.1355191171169281, 0.16143354773521423, -0.045609988272190094, -0.4770209789276123, -0.14253470301628113, 0.5739989280700684, 0.3902163505554199, 0.14637932181358337, 0.39378121495246887, 0.09746487438678741, 0.08598165214061737, -0.019913338124752045, 0.08111696690320969, 0.07314109057188034, 0.11022460460662842, 0.10961725562810898, -0.09674954414367676, 0.09157578647136688, 0.4329279363155365, -0.20431824028491974, -0.07283031940460205, -0.3327329456806183, 0.15360678732395172, 0.0729445368051529, -0.2895524501800537, -0.0744902640581131, 0.13839015364646912, 0.11335999518632889, -0.23178711533546448, -0.4519497752189636, -0.26056888699531555, -0.1836569905281067, 0.018166089430451393, 0.10660241544246674, 0.5403932929039001, -0.0901675820350647, 0.41526055335998535, -0.3220817744731903, -0.009922255761921406, -0.035445522516965866, 0.04843708127737045, -0.07434497773647308, 0.0791023001074791, 0.18593834340572357, 0.017817873507738113, 0.11902758479118347, 0.11175927519798279, -0.12033198028802872, -0.23854359984397888, -0.09782777726650238, 0.022648882120847702, -0.1091759204864502, -0.2662201225757599, -0.03057757019996643, -0.18868860602378845, 0.2594998776912689, 0.34631985425949097, 0.1387576162815094, -0.30408263206481934, 0.17557533085346222, 0.20310407876968384, 0.7018610239028931, 0.13155004382133484, -0.10314678400754929, 0.5667787790298462, 0.1297549456357956, -0.04632808268070221, -0.04823474958539009, 0.03499586135149002, 0.47920364141464233, 0.034681934863328934, 0.31598374247550964, -0.1831066608428955, 0.2739710211753845, -0.05561050400137901, -0.5984286069869995, 0.13312038779258728, -0.37445738911628723, -0.12005817145109177, 0.10855178534984589, 0.06986945122480392, -0.18068133294582367, 0.28148341178894043, 0.2933529019355774, 0.45179057121276855, -0.30370503664016724, -0.5134313702583313, -0.28390049934387207, -0.24119843542575836, -0.42311692237854004, 0.10083241760730743, -0.052846867591142654, 0.23150114715099335, 0.21909289062023163, 0.38102543354034424, -0.1728268265724182, -0.24880965054035187, 0.1840185970067978, -0.08727723360061646, 0.049943242222070694, 0.1009446233510971, -0.008241560310125351, 0.038667671382427216, 0.07014980167150497, 0.08505864441394806, -0.11436518281698227, 0.13202455639839172, -0.32373061776161194, -0.10526090860366821, -0.21101495623588562, 0.13017265498638153, -0.18742617964744568, 0.3149248957633972, 0.14584621787071228, 0.12863612174987793, 0.3839344382286072, 0.1558094322681427, -0.06582029908895493, -0.126145601272583, -0.05146975815296173, -0.19298338890075684, 0.17211481928825378, 0.6767813563346863, 0.014012116938829422, -0.19782064855098724, 0.18106766045093536, 0.02899482101202011, 0.28212207555770874, 0.29330843687057495, -0.24483628571033478, 0.3683168292045593, -0.012946827337145805, 0.052506133913993835, 0.26052072644233704, -0.2709011733531952, -0.5945894122123718, 0.1214226558804512, 0.13918611407279968, 0.2939578592777252, 0.147594153881073, -0.11940973997116089, 0.24006107449531555, -0.026360033079981804, 0.14468200504779816, 0.13406360149383545, -0.1515326052904129, -0.007042525336146355, -0.40706661343574524, -0.37972837686538696, 0.1351117640733719, -0.1476573944091797, 0.023132551461458206, 0.13400359451770782, 0.16118641197681427, -0.0126917390152812, 0.5123282074928284, 0.08183837682008743, 0.0182599239051342, 0.06120636314153671, 0.21651844680309296, 0.06644319742918015, 0.07435649633407593, -0.07020092010498047, -0.17119991779327393, -0.066257543861866, -0.08975963294506073, -0.015022605657577515, -0.16640694439411163, -0.04565839841961861, -0.1323791742324829, 0.14641888439655304, -0.18476304411888123, -0.33786964416503906, 0.1065920889377594, 0.14573530852794647, -0.07904865592718124, -0.019679687917232513, -0.025530481711030006, 0.12547188997268677, -0.06851509213447571, 0.06572265923023224, -0.1465095728635788, 0.4118940830230713, 0.020868467167019844, -0.14924801886081696, -0.16038808226585388, 0.15907058119773865, 0.07844288647174835, -0.014748863875865936, -0.1558876931667328, 0.44874006509780884, 0.4631212651729584, -0.00138913094997406, 0.01893559843301773, 0.04914546012878418, 0.3902375102043152, -0.5439515113830566, 0.01997656375169754, 0.3756180703639984, -0.07374364882707596, 0.06867758184671402, -0.018708817660808563, 0.34014350175857544, 0.02198921889066696, 0.07599865645170212, 0.08320185542106628, 0.26574742794036865, 0.08428137749433517, -0.2800939679145813, -0.0024758195504546165, -0.36388835310935974, -0.07389804720878601, -0.23890982568264008, 0.33396023511886597, 0.11863945424556732, -0.279211163520813, 0.13967131078243256, -0.10946869850158691, -0.1447119414806366, 0.07907366007566452, 0.013108562678098679, -0.17451074719429016, -0.0791601911187172, 0.03959794342517853, 0.15107038617134094, 0.6801636815071106, 0.07015924155712128, 0.18661010265350342, -0.16443099081516266, -0.004694167524576187, -0.05964796990156174, 0.3265649676322937, 0.09051984548568726, -0.24907279014587402, 0.13347789645195007, 0.09991007298231125, 0.07856674492359161, 0.05859578400850296, 0.22422805428504944, -0.0026934705674648285, -0.01697380654513836, -0.31333956122398376, 0.3918763995170593, -0.29917043447494507, 0.07887693494558334, -0.47131621837615967, -0.2844308912754059, 0.3026447594165802, -0.1128220483660698, 0.08391319960355759, -0.048520881682634354, -0.18464072048664093, -0.06529423594474792, 0.10646843910217285, 0.3964874744415283, 0.20421963930130005, 0.11301714926958084, 0.045286424458026886, -0.1309807151556015, -0.2711624801158905, 0.027819745242595673, 0.2823478877544403, -0.15472252666950226, 0.11007533222436905, -0.09310206025838852, -0.3419741988182068, -0.13628269731998444, -0.2974625527858734, 0.14260560274124146, 0.36186957359313965, 0.5280241370201111, 0.14772948622703552, -0.12188778817653656, 0.02173042669892311, -0.34104567766189575, 0.014444854110479355, -0.11937366425991058, -0.21899132430553436, 0.1269831359386444, -0.05170918256044388, -0.12223964184522629, 0.03519215062260628, -0.6232653260231018, -0.4613194167613983, -0.07944144308567047, 0.03801286220550537, -0.10844525694847107, -0.002865538001060486, 0.33850666880607605, -0.009716578759253025, -0.30890053510665894, 0.051918875426054, 0.18497532606124878, -0.17085610330104828, -0.10946094989776611, 0.16786915063858032, -0.22658097743988037, -0.19072788953781128, -0.3099997043609619, -0.10241690278053284, 0.3917345106601715, 0.3071906566619873, -0.34939044713974, 0.2461942881345749, -0.03128388524055481, 0.3806968927383423, -0.5309256911277771, -0.04107428342103958, -0.05210098624229431, 0.11732878535985947, 0.03693043440580368, -0.19881615042686462, 0.3363436758518219, 0.23895680904388428, -0.06716139614582062, 0.5478174686431885, -0.2363044023513794, 0.019366193562746048, 0.18595294654369354, 0.7166907787322998, 0.790854275226593, -0.2655789852142334, -0.021555788815021515, -0.03233959525823593, -0.10286907851696014, 0.1306615173816681, -0.4211113154888153, -0.07577670365571976, -0.017482131719589233, -0.3009047508239746, 0.23873724043369293, 0.01166758593171835, -0.36119335889816284, -0.162622332572937, 0.18484334647655487, -0.32702672481536865, -0.42030176520347595, 0.02917604148387909, 0.0902489423751831, 0.3902219533920288, 0.227500319480896, 0.07139820605516434, -0.032533910125494, -0.22534748911857605, -0.048148173838853836, 0.01625295728445053, -0.0012082308530807495, 0.0216660238802433, -0.002619188278913498, 0.09111214429140091, -0.03930782526731491, -0.0628143846988678, 0.0801134705543518, 0.18264208734035492, -0.010078895837068558, -0.08502654731273651, 0.0036341845989227295, 0.37246114015579224, 0.6208638548851013, -0.1514887660741806, 0.058210548013448715, -0.05486464872956276, 0.1859099268913269, -0.21301189064979553, -0.03320620208978653, -0.2678334414958954, -0.09997624903917313, 0.9386271834373474, -0.004575684666633606, -0.19382409751415253, -0.005265895742923021, 0.40233197808265686, 0.10276399552822113, -0.20787107944488525, -0.07894187420606613, -0.1680137664079666, -0.03902098536491394, -0.01645795628428459, 0.21128661930561066, 0.19495870172977448, 0.10936086624860764, -0.18974095582962036, -0.17230169475078583, -0.11779044568538666, -0.14648739993572235, 0.06660223752260208, 0.18135492503643036, 0.4978114664554596, -0.28746527433395386, 0.36925628781318665, -0.005474574863910675, -0.004550114274024963, 0.24633845686912537, 0.43407437205314636, -0.07100360095500946, -0.37026265263557434, -0.04702284187078476, -0.25517672300338745, 0.2581678032875061, 0.301422655582428, 0.03102206066250801, 0.004803426563739777, -0.29512616991996765, 0.2626422643661499, -0.3175852298736572, 0.04103067144751549, 0.10022903233766556, -0.08137009292840958, -0.15419833362102509, -0.32080724835395813, -0.015023760497570038, -0.01300838589668274, -0.33126354217529297, 0.3713923394680023, -0.33220571279525757, -0.331775426864624, 0.3117569088935852, 0.2861385941505432, 0.996394157409668, 0.3367156982421875, -0.08859167993068695, 0.24503272771835327, -0.11891767382621765, 0.12850743532180786, -0.1815546154975891, -0.15681412816047668, 0.03584391251206398, -0.16302205622196198, 0.11852367222309113, -0.16512277722358704, 0.1331789791584015, 0.023539980873465538, -0.2793503999710083, 0.051292017102241516, -0.4328809976577759, 0.24792174994945526, 0.2625732421875, 0.040980614721775055, 0.22689388692378998, 0.15332625806331635, 0.0856139063835144, 0.05173131823539734, -0.011489927768707275, -0.01963154599070549, -0.05663881450891495, -0.2196905016899109, -0.02350034937262535, -0.08492989093065262, -0.23967233300209045, 0.27130481600761414, -0.412350594997406, 0.5566847920417786, 0.0022871457040309906, -0.028297383338212967, -0.09633809328079224, 0.6636359095573425, 0.24761353433132172, -0.04344312474131584, 0.07578922808170319, 0.16806858777999878, 0.0650608018040657, 0.2629298269748688, 0.008288594894111156, -0.1488487422466278, 0.48455584049224854, 0.09730639308691025, -0.3466967046260834, 0.017115335911512375, 0.04486702382564545, -0.2108723372220993, -0.223695307970047, 0.2528185248374939, 0.26922208070755005, -0.36120253801345825, 0.23820608854293823, -0.12611107528209686, 0.04844861850142479, -0.24616678059101105, 0.08042903244495392, 0.23759472370147705, -0.3606627881526947, 0.46666067838668823, -0.3592322766780853, -0.30104807019233704, -0.08144940435886383, 0.39480650424957275, 0.390196293592453, -0.006414737552404404, 0.19591793417930603, -0.345722496509552, -0.11815812438726425, -0.23150724172592163, 0.16370689868927002, -0.2335011065006256, -0.338314414024353, 0.22273360192775726, -0.55563884973526, 0.12543316185474396, -0.20479713380336761, 0.025473054498434067, 0.04394619166851044, 0.22491240501403809, 0.006590172648429871, -0.6524280905723572, 0.05187184363603592, 0.12457797676324844, 0.09354640543460846, 0.06707285344600677, -0.09861280769109726, 0.3461926281452179, -0.3416067659854889, 0.39899760484695435, -0.26221203804016113, -0.02357415482401848, 0.018016187474131584, 0.13826054334640503, 0.1566556990146637, -0.017027750611305237, 0.0847194567322731, -0.21752788126468658, 0.05374186486005783, -0.033902280032634735, 0.05709945783019066, -0.14214640855789185, -0.27921175956726074, 0.11278605461120605, -0.13383013010025024, -0.09596025943756104, -0.16053947806358337, -0.09710555523633957, 0.2395402193069458, -0.06962499767541885, 0.15422417223453522, -0.072789266705513, 0.1852061152458191, -0.07098276168107986, -0.06251032650470734, -0.12739861011505127, -0.1876118928194046, 0.09555807709693909, -0.09833692014217377, 0.1360653042793274, 0.03144841268658638, 0.36626189947128296, -0.030475128442049026, -0.07670203596353531, -0.2871255576610565, 0.06341661512851715, 0.11976319551467896, 0.17981359362602234, 0.08180379867553711, -0.11225728690624237, -0.032491929829120636, 0.10308773815631866, 0.07110478729009628, 0.4355330765247345, -0.32930073142051697, 0.042034752666950226, -0.11279402673244476, 0.23087505996227264, -0.05370324105024338, -0.0795116126537323, 0.06271469593048096, 0.1696932017803192, -0.06664733588695526, 0.3745981454849243, 0.3034931421279907, -0.17236801981925964, 0.09816540032625198, -0.14019569754600525, 0.2701459527015686, -0.10314193367958069, 0.6103989481925964, 0.8242204785346985, 0.007024269551038742, 0.1084560975432396, -0.15368278324604034, -0.14773690700531006, 0.33872562646865845, 0.23604780435562134, -0.16095611453056335, 0.7677123546600342, -0.029637418687343597, -0.03451070562005043, 0.03676331788301468, 0.1609756052494049, -0.023548495024442673, 0.0773138776421547, -0.3030446469783783, 0.2025553286075592, -0.07256422936916351, 0.3526548743247986, -0.3180425465106964, -0.3592549264431, -0.281571626663208, 0.028054064139723778, -0.1326441764831543, -0.001957358792424202, -0.41106903553009033, -0.22601410746574402, -0.19467292726039886, 0.09147360920906067, 0.16836336255073547, -0.0731964111328125, 0.2967987358570099, 0.15870842337608337, -0.0866471379995346, -0.39702463150024414, -0.4306512176990509, 0.4005749523639679, 0.11464367806911469, -0.34223130345344543, 0.20561915636062622, 0.2762194573879242, -0.03811369836330414, 0.07380791008472443, 0.4109480381011963, 0.37063729763031006, 0.43639659881591797, 0.05636707693338394, -0.18387502431869507, 0.19906358420848846, -0.21116171777248383, -0.24114571511745453, 0.17087426781654358, 0.042791351675987244, -0.10895998775959015, 0.1623128354549408, 0.09929593652486801, -0.16903457045555115, 0.010436508804559708, 0.36490529775619507, 0.18580596148967743, -0.5423956513404846, 0.3081737160682678, -0.3156808912754059, 0.019970029592514038, 0.006312651559710503, -0.3321167528629303, -0.1336083859205246, 0.2190333902835846, 0.2393358051776886, -0.26091381907463074, 0.1510225534439087, 0.15684135258197784, 0.03685900568962097, 0.06680185347795486, 0.1266169250011444, -0.19221411645412445, -0.0758230909705162, -0.3533601760864258, -0.26381129026412964, -0.42374804615974426, 0.1086479127407074, 0.0393400676548481, -0.017475180327892303, -0.03651927411556244, 0.3689972460269928, -0.33581385016441345, 0.2624948024749756, -0.12764963507652283, -0.04841267690062523, 0.22486752271652222, 0.19623567163944244, -0.5598345994949341, -0.2096147984266281, -0.08032840490341187, 0.1377456784248352, 0.17239192128181458, -0.23205488920211792, 0.18091809749603271, 0.13701975345611572, -0.0709967315196991, 0.042029693722724915, -0.20688414573669434, 0.14451280236244202, 0.21371741592884064, 0.2946120500564575, 0.35012370347976685, 0.7239646911621094, 0.014283344149589539, -0.2817310392856598, -0.0615033395588398, -0.472616046667099, -0.1624019294977188, 0.10660958290100098, -0.0915309339761734, 0.19372877478599548, -0.28154170513153076, -0.1551228165626526, -0.1543230265378952, 0.08364824950695038, 0.37857556343078613, -0.3037131130695343, -0.4284701645374298, -0.1060514971613884, -0.054156381636857986, 0.30869460105895996, 0.32330986857414246, 0.36321282386779785, -0.40180709958076477, 0.2180059254169464, 0.11610710620880127, -0.28154075145721436, 0.16871066391468048, -0.3476577699184418, -0.07997944951057434, -0.18468058109283447, 0.31258445978164673, -0.2369876205921173, -0.017232848331332207, -0.6048093438148499, -0.28701791167259216, 0.35843947529792786, -0.16471579670906067, -0.21907922625541687, 0.247524231672287, 0.553133487701416, -0.0905907154083252, -0.0046847425401210785, 0.44442835450172424, 0.25526630878448486, -0.3594420254230499, 0.7340831756591797, -0.23060061037540436 ]
https://github.com/huggingface/datasets/issues/4261
data leakage in `webis/conclugen` dataset
Thanks for reporting this @xflashxx. I'll have a look and get back to you on this.
## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0
16
data leakage in `webis/conclugen` dataset ## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0 Thanks for reporting this @xflashxx. I'll have a look and get back to you on this.
[ -0.3633222281932831, -0.02422395348548889, -0.1429639458656311, 0.40213078260421753, -0.365067720413208, -0.041542571038007736, 0.21329890191555023, 0.3561701476573944, -0.10639676451683044, -0.1708763688802719, -0.11982743442058563, 0.37816518545150757, 0.14826585352420807, -0.13640527427196503, 0.0034132646396756172, -0.0325714573264122, 0.011784538626670837, 0.01389816403388977, -0.14971207082271576, -0.14162465929985046, -0.09176202863454819, -0.07794829457998276, -0.20602448284626007, 0.05270101875066757, -0.0171953272074461, -0.14313054084777832, -0.22888043522834778, 0.029700983315706253, -0.034829281270504, -0.2237255722284317, 0.21340057253837585, 0.1298481523990631, -0.03061402216553688, 0.2692909240722656, -0.00011906860891031101, -0.03900575265288353, 0.15221059322357178, -0.10529954731464386, -0.3868154287338257, 0.11388888210058212, -0.7554756999015808, -0.1205686554312706, 0.03553767502307892, -0.1355191171169281, 0.16143354773521423, -0.045609988272190094, -0.4770209789276123, -0.14253470301628113, 0.5739989280700684, 0.3902163505554199, 0.14637932181358337, 0.39378121495246887, 0.09746487438678741, 0.08598165214061737, -0.019913338124752045, 0.08111696690320969, 0.07314109057188034, 0.11022460460662842, 0.10961725562810898, -0.09674954414367676, 0.09157578647136688, 0.4329279363155365, -0.20431824028491974, -0.07283031940460205, -0.3327329456806183, 0.15360678732395172, 0.0729445368051529, -0.2895524501800537, -0.0744902640581131, 0.13839015364646912, 0.11335999518632889, -0.23178711533546448, -0.4519497752189636, -0.26056888699531555, -0.1836569905281067, 0.018166089430451393, 0.10660241544246674, 0.5403932929039001, -0.0901675820350647, 0.41526055335998535, -0.3220817744731903, -0.009922255761921406, -0.035445522516965866, 0.04843708127737045, -0.07434497773647308, 0.0791023001074791, 0.18593834340572357, 0.017817873507738113, 0.11902758479118347, 0.11175927519798279, -0.12033198028802872, -0.23854359984397888, -0.09782777726650238, 0.022648882120847702, -0.1091759204864502, -0.2662201225757599, -0.03057757019996643, -0.18868860602378845, 0.2594998776912689, 0.34631985425949097, 0.1387576162815094, -0.30408263206481934, 0.17557533085346222, 0.20310407876968384, 0.7018610239028931, 0.13155004382133484, -0.10314678400754929, 0.5667787790298462, 0.1297549456357956, -0.04632808268070221, -0.04823474958539009, 0.03499586135149002, 0.47920364141464233, 0.034681934863328934, 0.31598374247550964, -0.1831066608428955, 0.2739710211753845, -0.05561050400137901, -0.5984286069869995, 0.13312038779258728, -0.37445738911628723, -0.12005817145109177, 0.10855178534984589, 0.06986945122480392, -0.18068133294582367, 0.28148341178894043, 0.2933529019355774, 0.45179057121276855, -0.30370503664016724, -0.5134313702583313, -0.28390049934387207, -0.24119843542575836, -0.42311692237854004, 0.10083241760730743, -0.052846867591142654, 0.23150114715099335, 0.21909289062023163, 0.38102543354034424, -0.1728268265724182, -0.24880965054035187, 0.1840185970067978, -0.08727723360061646, 0.049943242222070694, 0.1009446233510971, -0.008241560310125351, 0.038667671382427216, 0.07014980167150497, 0.08505864441394806, -0.11436518281698227, 0.13202455639839172, -0.32373061776161194, -0.10526090860366821, -0.21101495623588562, 0.13017265498638153, -0.18742617964744568, 0.3149248957633972, 0.14584621787071228, 0.12863612174987793, 0.3839344382286072, 0.1558094322681427, -0.06582029908895493, -0.126145601272583, -0.05146975815296173, -0.19298338890075684, 0.17211481928825378, 0.6767813563346863, 0.014012116938829422, -0.19782064855098724, 0.18106766045093536, 0.02899482101202011, 0.28212207555770874, 0.29330843687057495, -0.24483628571033478, 0.3683168292045593, -0.012946827337145805, 0.052506133913993835, 0.26052072644233704, -0.2709011733531952, -0.5945894122123718, 0.1214226558804512, 0.13918611407279968, 0.2939578592777252, 0.147594153881073, -0.11940973997116089, 0.24006107449531555, -0.026360033079981804, 0.14468200504779816, 0.13406360149383545, -0.1515326052904129, -0.007042525336146355, -0.40706661343574524, -0.37972837686538696, 0.1351117640733719, -0.1476573944091797, 0.023132551461458206, 0.13400359451770782, 0.16118641197681427, -0.0126917390152812, 0.5123282074928284, 0.08183837682008743, 0.0182599239051342, 0.06120636314153671, 0.21651844680309296, 0.06644319742918015, 0.07435649633407593, -0.07020092010498047, -0.17119991779327393, -0.066257543861866, -0.08975963294506073, -0.015022605657577515, -0.16640694439411163, -0.04565839841961861, -0.1323791742324829, 0.14641888439655304, -0.18476304411888123, -0.33786964416503906, 0.1065920889377594, 0.14573530852794647, -0.07904865592718124, -0.019679687917232513, -0.025530481711030006, 0.12547188997268677, -0.06851509213447571, 0.06572265923023224, -0.1465095728635788, 0.4118940830230713, 0.020868467167019844, -0.14924801886081696, -0.16038808226585388, 0.15907058119773865, 0.07844288647174835, -0.014748863875865936, -0.1558876931667328, 0.44874006509780884, 0.4631212651729584, -0.00138913094997406, 0.01893559843301773, 0.04914546012878418, 0.3902375102043152, -0.5439515113830566, 0.01997656375169754, 0.3756180703639984, -0.07374364882707596, 0.06867758184671402, -0.018708817660808563, 0.34014350175857544, 0.02198921889066696, 0.07599865645170212, 0.08320185542106628, 0.26574742794036865, 0.08428137749433517, -0.2800939679145813, -0.0024758195504546165, -0.36388835310935974, -0.07389804720878601, -0.23890982568264008, 0.33396023511886597, 0.11863945424556732, -0.279211163520813, 0.13967131078243256, -0.10946869850158691, -0.1447119414806366, 0.07907366007566452, 0.013108562678098679, -0.17451074719429016, -0.0791601911187172, 0.03959794342517853, 0.15107038617134094, 0.6801636815071106, 0.07015924155712128, 0.18661010265350342, -0.16443099081516266, -0.004694167524576187, -0.05964796990156174, 0.3265649676322937, 0.09051984548568726, -0.24907279014587402, 0.13347789645195007, 0.09991007298231125, 0.07856674492359161, 0.05859578400850296, 0.22422805428504944, -0.0026934705674648285, -0.01697380654513836, -0.31333956122398376, 0.3918763995170593, -0.29917043447494507, 0.07887693494558334, -0.47131621837615967, -0.2844308912754059, 0.3026447594165802, -0.1128220483660698, 0.08391319960355759, -0.048520881682634354, -0.18464072048664093, -0.06529423594474792, 0.10646843910217285, 0.3964874744415283, 0.20421963930130005, 0.11301714926958084, 0.045286424458026886, -0.1309807151556015, -0.2711624801158905, 0.027819745242595673, 0.2823478877544403, -0.15472252666950226, 0.11007533222436905, -0.09310206025838852, -0.3419741988182068, -0.13628269731998444, -0.2974625527858734, 0.14260560274124146, 0.36186957359313965, 0.5280241370201111, 0.14772948622703552, -0.12188778817653656, 0.02173042669892311, -0.34104567766189575, 0.014444854110479355, -0.11937366425991058, -0.21899132430553436, 0.1269831359386444, -0.05170918256044388, -0.12223964184522629, 0.03519215062260628, -0.6232653260231018, -0.4613194167613983, -0.07944144308567047, 0.03801286220550537, -0.10844525694847107, -0.002865538001060486, 0.33850666880607605, -0.009716578759253025, -0.30890053510665894, 0.051918875426054, 0.18497532606124878, -0.17085610330104828, -0.10946094989776611, 0.16786915063858032, -0.22658097743988037, -0.19072788953781128, -0.3099997043609619, -0.10241690278053284, 0.3917345106601715, 0.3071906566619873, -0.34939044713974, 0.2461942881345749, -0.03128388524055481, 0.3806968927383423, -0.5309256911277771, -0.04107428342103958, -0.05210098624229431, 0.11732878535985947, 0.03693043440580368, -0.19881615042686462, 0.3363436758518219, 0.23895680904388428, -0.06716139614582062, 0.5478174686431885, -0.2363044023513794, 0.019366193562746048, 0.18595294654369354, 0.7166907787322998, 0.790854275226593, -0.2655789852142334, -0.021555788815021515, -0.03233959525823593, -0.10286907851696014, 0.1306615173816681, -0.4211113154888153, -0.07577670365571976, -0.017482131719589233, -0.3009047508239746, 0.23873724043369293, 0.01166758593171835, -0.36119335889816284, -0.162622332572937, 0.18484334647655487, -0.32702672481536865, -0.42030176520347595, 0.02917604148387909, 0.0902489423751831, 0.3902219533920288, 0.227500319480896, 0.07139820605516434, -0.032533910125494, -0.22534748911857605, -0.048148173838853836, 0.01625295728445053, -0.0012082308530807495, 0.0216660238802433, -0.002619188278913498, 0.09111214429140091, -0.03930782526731491, -0.0628143846988678, 0.0801134705543518, 0.18264208734035492, -0.010078895837068558, -0.08502654731273651, 0.0036341845989227295, 0.37246114015579224, 0.6208638548851013, -0.1514887660741806, 0.058210548013448715, -0.05486464872956276, 0.1859099268913269, -0.21301189064979553, -0.03320620208978653, -0.2678334414958954, -0.09997624903917313, 0.9386271834373474, -0.004575684666633606, -0.19382409751415253, -0.005265895742923021, 0.40233197808265686, 0.10276399552822113, -0.20787107944488525, -0.07894187420606613, -0.1680137664079666, -0.03902098536491394, -0.01645795628428459, 0.21128661930561066, 0.19495870172977448, 0.10936086624860764, -0.18974095582962036, -0.17230169475078583, -0.11779044568538666, -0.14648739993572235, 0.06660223752260208, 0.18135492503643036, 0.4978114664554596, -0.28746527433395386, 0.36925628781318665, -0.005474574863910675, -0.004550114274024963, 0.24633845686912537, 0.43407437205314636, -0.07100360095500946, -0.37026265263557434, -0.04702284187078476, -0.25517672300338745, 0.2581678032875061, 0.301422655582428, 0.03102206066250801, 0.004803426563739777, -0.29512616991996765, 0.2626422643661499, -0.3175852298736572, 0.04103067144751549, 0.10022903233766556, -0.08137009292840958, -0.15419833362102509, -0.32080724835395813, -0.015023760497570038, -0.01300838589668274, -0.33126354217529297, 0.3713923394680023, -0.33220571279525757, -0.331775426864624, 0.3117569088935852, 0.2861385941505432, 0.996394157409668, 0.3367156982421875, -0.08859167993068695, 0.24503272771835327, -0.11891767382621765, 0.12850743532180786, -0.1815546154975891, -0.15681412816047668, 0.03584391251206398, -0.16302205622196198, 0.11852367222309113, -0.16512277722358704, 0.1331789791584015, 0.023539980873465538, -0.2793503999710083, 0.051292017102241516, -0.4328809976577759, 0.24792174994945526, 0.2625732421875, 0.040980614721775055, 0.22689388692378998, 0.15332625806331635, 0.0856139063835144, 0.05173131823539734, -0.011489927768707275, -0.01963154599070549, -0.05663881450891495, -0.2196905016899109, -0.02350034937262535, -0.08492989093065262, -0.23967233300209045, 0.27130481600761414, -0.412350594997406, 0.5566847920417786, 0.0022871457040309906, -0.028297383338212967, -0.09633809328079224, 0.6636359095573425, 0.24761353433132172, -0.04344312474131584, 0.07578922808170319, 0.16806858777999878, 0.0650608018040657, 0.2629298269748688, 0.008288594894111156, -0.1488487422466278, 0.48455584049224854, 0.09730639308691025, -0.3466967046260834, 0.017115335911512375, 0.04486702382564545, -0.2108723372220993, -0.223695307970047, 0.2528185248374939, 0.26922208070755005, -0.36120253801345825, 0.23820608854293823, -0.12611107528209686, 0.04844861850142479, -0.24616678059101105, 0.08042903244495392, 0.23759472370147705, -0.3606627881526947, 0.46666067838668823, -0.3592322766780853, -0.30104807019233704, -0.08144940435886383, 0.39480650424957275, 0.390196293592453, -0.006414737552404404, 0.19591793417930603, -0.345722496509552, -0.11815812438726425, -0.23150724172592163, 0.16370689868927002, -0.2335011065006256, -0.338314414024353, 0.22273360192775726, -0.55563884973526, 0.12543316185474396, -0.20479713380336761, 0.025473054498434067, 0.04394619166851044, 0.22491240501403809, 0.006590172648429871, -0.6524280905723572, 0.05187184363603592, 0.12457797676324844, 0.09354640543460846, 0.06707285344600677, -0.09861280769109726, 0.3461926281452179, -0.3416067659854889, 0.39899760484695435, -0.26221203804016113, -0.02357415482401848, 0.018016187474131584, 0.13826054334640503, 0.1566556990146637, -0.017027750611305237, 0.0847194567322731, -0.21752788126468658, 0.05374186486005783, -0.033902280032634735, 0.05709945783019066, -0.14214640855789185, -0.27921175956726074, 0.11278605461120605, -0.13383013010025024, -0.09596025943756104, -0.16053947806358337, -0.09710555523633957, 0.2395402193069458, -0.06962499767541885, 0.15422417223453522, -0.072789266705513, 0.1852061152458191, -0.07098276168107986, -0.06251032650470734, -0.12739861011505127, -0.1876118928194046, 0.09555807709693909, -0.09833692014217377, 0.1360653042793274, 0.03144841268658638, 0.36626189947128296, -0.030475128442049026, -0.07670203596353531, -0.2871255576610565, 0.06341661512851715, 0.11976319551467896, 0.17981359362602234, 0.08180379867553711, -0.11225728690624237, -0.032491929829120636, 0.10308773815631866, 0.07110478729009628, 0.4355330765247345, -0.32930073142051697, 0.042034752666950226, -0.11279402673244476, 0.23087505996227264, -0.05370324105024338, -0.0795116126537323, 0.06271469593048096, 0.1696932017803192, -0.06664733588695526, 0.3745981454849243, 0.3034931421279907, -0.17236801981925964, 0.09816540032625198, -0.14019569754600525, 0.2701459527015686, -0.10314193367958069, 0.6103989481925964, 0.8242204785346985, 0.007024269551038742, 0.1084560975432396, -0.15368278324604034, -0.14773690700531006, 0.33872562646865845, 0.23604780435562134, -0.16095611453056335, 0.7677123546600342, -0.029637418687343597, -0.03451070562005043, 0.03676331788301468, 0.1609756052494049, -0.023548495024442673, 0.0773138776421547, -0.3030446469783783, 0.2025553286075592, -0.07256422936916351, 0.3526548743247986, -0.3180425465106964, -0.3592549264431, -0.281571626663208, 0.028054064139723778, -0.1326441764831543, -0.001957358792424202, -0.41106903553009033, -0.22601410746574402, -0.19467292726039886, 0.09147360920906067, 0.16836336255073547, -0.0731964111328125, 0.2967987358570099, 0.15870842337608337, -0.0866471379995346, -0.39702463150024414, -0.4306512176990509, 0.4005749523639679, 0.11464367806911469, -0.34223130345344543, 0.20561915636062622, 0.2762194573879242, -0.03811369836330414, 0.07380791008472443, 0.4109480381011963, 0.37063729763031006, 0.43639659881591797, 0.05636707693338394, -0.18387502431869507, 0.19906358420848846, -0.21116171777248383, -0.24114571511745453, 0.17087426781654358, 0.042791351675987244, -0.10895998775959015, 0.1623128354549408, 0.09929593652486801, -0.16903457045555115, 0.010436508804559708, 0.36490529775619507, 0.18580596148967743, -0.5423956513404846, 0.3081737160682678, -0.3156808912754059, 0.019970029592514038, 0.006312651559710503, -0.3321167528629303, -0.1336083859205246, 0.2190333902835846, 0.2393358051776886, -0.26091381907463074, 0.1510225534439087, 0.15684135258197784, 0.03685900568962097, 0.06680185347795486, 0.1266169250011444, -0.19221411645412445, -0.0758230909705162, -0.3533601760864258, -0.26381129026412964, -0.42374804615974426, 0.1086479127407074, 0.0393400676548481, -0.017475180327892303, -0.03651927411556244, 0.3689972460269928, -0.33581385016441345, 0.2624948024749756, -0.12764963507652283, -0.04841267690062523, 0.22486752271652222, 0.19623567163944244, -0.5598345994949341, -0.2096147984266281, -0.08032840490341187, 0.1377456784248352, 0.17239192128181458, -0.23205488920211792, 0.18091809749603271, 0.13701975345611572, -0.0709967315196991, 0.042029693722724915, -0.20688414573669434, 0.14451280236244202, 0.21371741592884064, 0.2946120500564575, 0.35012370347976685, 0.7239646911621094, 0.014283344149589539, -0.2817310392856598, -0.0615033395588398, -0.472616046667099, -0.1624019294977188, 0.10660958290100098, -0.0915309339761734, 0.19372877478599548, -0.28154170513153076, -0.1551228165626526, -0.1543230265378952, 0.08364824950695038, 0.37857556343078613, -0.3037131130695343, -0.4284701645374298, -0.1060514971613884, -0.054156381636857986, 0.30869460105895996, 0.32330986857414246, 0.36321282386779785, -0.40180709958076477, 0.2180059254169464, 0.11610710620880127, -0.28154075145721436, 0.16871066391468048, -0.3476577699184418, -0.07997944951057434, -0.18468058109283447, 0.31258445978164673, -0.2369876205921173, -0.017232848331332207, -0.6048093438148499, -0.28701791167259216, 0.35843947529792786, -0.16471579670906067, -0.21907922625541687, 0.247524231672287, 0.553133487701416, -0.0905907154083252, -0.0046847425401210785, 0.44442835450172424, 0.25526630878448486, -0.3594420254230499, 0.7340831756591797, -0.23060061037540436 ]
https://github.com/huggingface/datasets/issues/4261
data leakage in `webis/conclugen` dataset
Hi @xflashxx and @albertvillanova, I have updated the files with de-duplicated splits. Apparently the debate portals from which part of the examples were sourced had unique timestamps for some examples (up to 6%; updated counts in the README) without any actual content updated that lead to "new" items. The length of `ids_validation` and `ids_testing` is zero. Regarding impact on scores: 1. We employed automatic evaluation (on a separate set of 1000 examples) only to justify the exclusion of the smaller models for manual evaluation (due to budget constraints). I am confident the ranking still stands (unsurprisingly, the bigger models doing better than those trained on the smaller splits). We also highlight this in the paper. 2. The examples used for manual evaluation have no overlap with any splits (also because they do not have any ground truth as we applied the trained models on an unlabeled sample to test its practical usage). I've added these two files to the dataset repository. Hope this helps!
## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0
164
data leakage in `webis/conclugen` dataset ## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0 Hi @xflashxx and @albertvillanova, I have updated the files with de-duplicated splits. Apparently the debate portals from which part of the examples were sourced had unique timestamps for some examples (up to 6%; updated counts in the README) without any actual content updated that lead to "new" items. The length of `ids_validation` and `ids_testing` is zero. Regarding impact on scores: 1. We employed automatic evaluation (on a separate set of 1000 examples) only to justify the exclusion of the smaller models for manual evaluation (due to budget constraints). I am confident the ranking still stands (unsurprisingly, the bigger models doing better than those trained on the smaller splits). We also highlight this in the paper. 2. The examples used for manual evaluation have no overlap with any splits (also because they do not have any ground truth as we applied the trained models on an unlabeled sample to test its practical usage). I've added these two files to the dataset repository. Hope this helps!
[ -0.3633222281932831, -0.02422395348548889, -0.1429639458656311, 0.40213078260421753, -0.365067720413208, -0.041542571038007736, 0.21329890191555023, 0.3561701476573944, -0.10639676451683044, -0.1708763688802719, -0.11982743442058563, 0.37816518545150757, 0.14826585352420807, -0.13640527427196503, 0.0034132646396756172, -0.0325714573264122, 0.011784538626670837, 0.01389816403388977, -0.14971207082271576, -0.14162465929985046, -0.09176202863454819, -0.07794829457998276, -0.20602448284626007, 0.05270101875066757, -0.0171953272074461, -0.14313054084777832, -0.22888043522834778, 0.029700983315706253, -0.034829281270504, -0.2237255722284317, 0.21340057253837585, 0.1298481523990631, -0.03061402216553688, 0.2692909240722656, -0.00011906860891031101, -0.03900575265288353, 0.15221059322357178, -0.10529954731464386, -0.3868154287338257, 0.11388888210058212, -0.7554756999015808, -0.1205686554312706, 0.03553767502307892, -0.1355191171169281, 0.16143354773521423, -0.045609988272190094, -0.4770209789276123, -0.14253470301628113, 0.5739989280700684, 0.3902163505554199, 0.14637932181358337, 0.39378121495246887, 0.09746487438678741, 0.08598165214061737, -0.019913338124752045, 0.08111696690320969, 0.07314109057188034, 0.11022460460662842, 0.10961725562810898, -0.09674954414367676, 0.09157578647136688, 0.4329279363155365, -0.20431824028491974, -0.07283031940460205, -0.3327329456806183, 0.15360678732395172, 0.0729445368051529, -0.2895524501800537, -0.0744902640581131, 0.13839015364646912, 0.11335999518632889, -0.23178711533546448, -0.4519497752189636, -0.26056888699531555, -0.1836569905281067, 0.018166089430451393, 0.10660241544246674, 0.5403932929039001, -0.0901675820350647, 0.41526055335998535, -0.3220817744731903, -0.009922255761921406, -0.035445522516965866, 0.04843708127737045, -0.07434497773647308, 0.0791023001074791, 0.18593834340572357, 0.017817873507738113, 0.11902758479118347, 0.11175927519798279, -0.12033198028802872, -0.23854359984397888, -0.09782777726650238, 0.022648882120847702, -0.1091759204864502, -0.2662201225757599, -0.03057757019996643, -0.18868860602378845, 0.2594998776912689, 0.34631985425949097, 0.1387576162815094, -0.30408263206481934, 0.17557533085346222, 0.20310407876968384, 0.7018610239028931, 0.13155004382133484, -0.10314678400754929, 0.5667787790298462, 0.1297549456357956, -0.04632808268070221, -0.04823474958539009, 0.03499586135149002, 0.47920364141464233, 0.034681934863328934, 0.31598374247550964, -0.1831066608428955, 0.2739710211753845, -0.05561050400137901, -0.5984286069869995, 0.13312038779258728, -0.37445738911628723, -0.12005817145109177, 0.10855178534984589, 0.06986945122480392, -0.18068133294582367, 0.28148341178894043, 0.2933529019355774, 0.45179057121276855, -0.30370503664016724, -0.5134313702583313, -0.28390049934387207, -0.24119843542575836, -0.42311692237854004, 0.10083241760730743, -0.052846867591142654, 0.23150114715099335, 0.21909289062023163, 0.38102543354034424, -0.1728268265724182, -0.24880965054035187, 0.1840185970067978, -0.08727723360061646, 0.049943242222070694, 0.1009446233510971, -0.008241560310125351, 0.038667671382427216, 0.07014980167150497, 0.08505864441394806, -0.11436518281698227, 0.13202455639839172, -0.32373061776161194, -0.10526090860366821, -0.21101495623588562, 0.13017265498638153, -0.18742617964744568, 0.3149248957633972, 0.14584621787071228, 0.12863612174987793, 0.3839344382286072, 0.1558094322681427, -0.06582029908895493, -0.126145601272583, -0.05146975815296173, -0.19298338890075684, 0.17211481928825378, 0.6767813563346863, 0.014012116938829422, -0.19782064855098724, 0.18106766045093536, 0.02899482101202011, 0.28212207555770874, 0.29330843687057495, -0.24483628571033478, 0.3683168292045593, -0.012946827337145805, 0.052506133913993835, 0.26052072644233704, -0.2709011733531952, -0.5945894122123718, 0.1214226558804512, 0.13918611407279968, 0.2939578592777252, 0.147594153881073, -0.11940973997116089, 0.24006107449531555, -0.026360033079981804, 0.14468200504779816, 0.13406360149383545, -0.1515326052904129, -0.007042525336146355, -0.40706661343574524, -0.37972837686538696, 0.1351117640733719, -0.1476573944091797, 0.023132551461458206, 0.13400359451770782, 0.16118641197681427, -0.0126917390152812, 0.5123282074928284, 0.08183837682008743, 0.0182599239051342, 0.06120636314153671, 0.21651844680309296, 0.06644319742918015, 0.07435649633407593, -0.07020092010498047, -0.17119991779327393, -0.066257543861866, -0.08975963294506073, -0.015022605657577515, -0.16640694439411163, -0.04565839841961861, -0.1323791742324829, 0.14641888439655304, -0.18476304411888123, -0.33786964416503906, 0.1065920889377594, 0.14573530852794647, -0.07904865592718124, -0.019679687917232513, -0.025530481711030006, 0.12547188997268677, -0.06851509213447571, 0.06572265923023224, -0.1465095728635788, 0.4118940830230713, 0.020868467167019844, -0.14924801886081696, -0.16038808226585388, 0.15907058119773865, 0.07844288647174835, -0.014748863875865936, -0.1558876931667328, 0.44874006509780884, 0.4631212651729584, -0.00138913094997406, 0.01893559843301773, 0.04914546012878418, 0.3902375102043152, -0.5439515113830566, 0.01997656375169754, 0.3756180703639984, -0.07374364882707596, 0.06867758184671402, -0.018708817660808563, 0.34014350175857544, 0.02198921889066696, 0.07599865645170212, 0.08320185542106628, 0.26574742794036865, 0.08428137749433517, -0.2800939679145813, -0.0024758195504546165, -0.36388835310935974, -0.07389804720878601, -0.23890982568264008, 0.33396023511886597, 0.11863945424556732, -0.279211163520813, 0.13967131078243256, -0.10946869850158691, -0.1447119414806366, 0.07907366007566452, 0.013108562678098679, -0.17451074719429016, -0.0791601911187172, 0.03959794342517853, 0.15107038617134094, 0.6801636815071106, 0.07015924155712128, 0.18661010265350342, -0.16443099081516266, -0.004694167524576187, -0.05964796990156174, 0.3265649676322937, 0.09051984548568726, -0.24907279014587402, 0.13347789645195007, 0.09991007298231125, 0.07856674492359161, 0.05859578400850296, 0.22422805428504944, -0.0026934705674648285, -0.01697380654513836, -0.31333956122398376, 0.3918763995170593, -0.29917043447494507, 0.07887693494558334, -0.47131621837615967, -0.2844308912754059, 0.3026447594165802, -0.1128220483660698, 0.08391319960355759, -0.048520881682634354, -0.18464072048664093, -0.06529423594474792, 0.10646843910217285, 0.3964874744415283, 0.20421963930130005, 0.11301714926958084, 0.045286424458026886, -0.1309807151556015, -0.2711624801158905, 0.027819745242595673, 0.2823478877544403, -0.15472252666950226, 0.11007533222436905, -0.09310206025838852, -0.3419741988182068, -0.13628269731998444, -0.2974625527858734, 0.14260560274124146, 0.36186957359313965, 0.5280241370201111, 0.14772948622703552, -0.12188778817653656, 0.02173042669892311, -0.34104567766189575, 0.014444854110479355, -0.11937366425991058, -0.21899132430553436, 0.1269831359386444, -0.05170918256044388, -0.12223964184522629, 0.03519215062260628, -0.6232653260231018, -0.4613194167613983, -0.07944144308567047, 0.03801286220550537, -0.10844525694847107, -0.002865538001060486, 0.33850666880607605, -0.009716578759253025, -0.30890053510665894, 0.051918875426054, 0.18497532606124878, -0.17085610330104828, -0.10946094989776611, 0.16786915063858032, -0.22658097743988037, -0.19072788953781128, -0.3099997043609619, -0.10241690278053284, 0.3917345106601715, 0.3071906566619873, -0.34939044713974, 0.2461942881345749, -0.03128388524055481, 0.3806968927383423, -0.5309256911277771, -0.04107428342103958, -0.05210098624229431, 0.11732878535985947, 0.03693043440580368, -0.19881615042686462, 0.3363436758518219, 0.23895680904388428, -0.06716139614582062, 0.5478174686431885, -0.2363044023513794, 0.019366193562746048, 0.18595294654369354, 0.7166907787322998, 0.790854275226593, -0.2655789852142334, -0.021555788815021515, -0.03233959525823593, -0.10286907851696014, 0.1306615173816681, -0.4211113154888153, -0.07577670365571976, -0.017482131719589233, -0.3009047508239746, 0.23873724043369293, 0.01166758593171835, -0.36119335889816284, -0.162622332572937, 0.18484334647655487, -0.32702672481536865, -0.42030176520347595, 0.02917604148387909, 0.0902489423751831, 0.3902219533920288, 0.227500319480896, 0.07139820605516434, -0.032533910125494, -0.22534748911857605, -0.048148173838853836, 0.01625295728445053, -0.0012082308530807495, 0.0216660238802433, -0.002619188278913498, 0.09111214429140091, -0.03930782526731491, -0.0628143846988678, 0.0801134705543518, 0.18264208734035492, -0.010078895837068558, -0.08502654731273651, 0.0036341845989227295, 0.37246114015579224, 0.6208638548851013, -0.1514887660741806, 0.058210548013448715, -0.05486464872956276, 0.1859099268913269, -0.21301189064979553, -0.03320620208978653, -0.2678334414958954, -0.09997624903917313, 0.9386271834373474, -0.004575684666633606, -0.19382409751415253, -0.005265895742923021, 0.40233197808265686, 0.10276399552822113, -0.20787107944488525, -0.07894187420606613, -0.1680137664079666, -0.03902098536491394, -0.01645795628428459, 0.21128661930561066, 0.19495870172977448, 0.10936086624860764, -0.18974095582962036, -0.17230169475078583, -0.11779044568538666, -0.14648739993572235, 0.06660223752260208, 0.18135492503643036, 0.4978114664554596, -0.28746527433395386, 0.36925628781318665, -0.005474574863910675, -0.004550114274024963, 0.24633845686912537, 0.43407437205314636, -0.07100360095500946, -0.37026265263557434, -0.04702284187078476, -0.25517672300338745, 0.2581678032875061, 0.301422655582428, 0.03102206066250801, 0.004803426563739777, -0.29512616991996765, 0.2626422643661499, -0.3175852298736572, 0.04103067144751549, 0.10022903233766556, -0.08137009292840958, -0.15419833362102509, -0.32080724835395813, -0.015023760497570038, -0.01300838589668274, -0.33126354217529297, 0.3713923394680023, -0.33220571279525757, -0.331775426864624, 0.3117569088935852, 0.2861385941505432, 0.996394157409668, 0.3367156982421875, -0.08859167993068695, 0.24503272771835327, -0.11891767382621765, 0.12850743532180786, -0.1815546154975891, -0.15681412816047668, 0.03584391251206398, -0.16302205622196198, 0.11852367222309113, -0.16512277722358704, 0.1331789791584015, 0.023539980873465538, -0.2793503999710083, 0.051292017102241516, -0.4328809976577759, 0.24792174994945526, 0.2625732421875, 0.040980614721775055, 0.22689388692378998, 0.15332625806331635, 0.0856139063835144, 0.05173131823539734, -0.011489927768707275, -0.01963154599070549, -0.05663881450891495, -0.2196905016899109, -0.02350034937262535, -0.08492989093065262, -0.23967233300209045, 0.27130481600761414, -0.412350594997406, 0.5566847920417786, 0.0022871457040309906, -0.028297383338212967, -0.09633809328079224, 0.6636359095573425, 0.24761353433132172, -0.04344312474131584, 0.07578922808170319, 0.16806858777999878, 0.0650608018040657, 0.2629298269748688, 0.008288594894111156, -0.1488487422466278, 0.48455584049224854, 0.09730639308691025, -0.3466967046260834, 0.017115335911512375, 0.04486702382564545, -0.2108723372220993, -0.223695307970047, 0.2528185248374939, 0.26922208070755005, -0.36120253801345825, 0.23820608854293823, -0.12611107528209686, 0.04844861850142479, -0.24616678059101105, 0.08042903244495392, 0.23759472370147705, -0.3606627881526947, 0.46666067838668823, -0.3592322766780853, -0.30104807019233704, -0.08144940435886383, 0.39480650424957275, 0.390196293592453, -0.006414737552404404, 0.19591793417930603, -0.345722496509552, -0.11815812438726425, -0.23150724172592163, 0.16370689868927002, -0.2335011065006256, -0.338314414024353, 0.22273360192775726, -0.55563884973526, 0.12543316185474396, -0.20479713380336761, 0.025473054498434067, 0.04394619166851044, 0.22491240501403809, 0.006590172648429871, -0.6524280905723572, 0.05187184363603592, 0.12457797676324844, 0.09354640543460846, 0.06707285344600677, -0.09861280769109726, 0.3461926281452179, -0.3416067659854889, 0.39899760484695435, -0.26221203804016113, -0.02357415482401848, 0.018016187474131584, 0.13826054334640503, 0.1566556990146637, -0.017027750611305237, 0.0847194567322731, -0.21752788126468658, 0.05374186486005783, -0.033902280032634735, 0.05709945783019066, -0.14214640855789185, -0.27921175956726074, 0.11278605461120605, -0.13383013010025024, -0.09596025943756104, -0.16053947806358337, -0.09710555523633957, 0.2395402193069458, -0.06962499767541885, 0.15422417223453522, -0.072789266705513, 0.1852061152458191, -0.07098276168107986, -0.06251032650470734, -0.12739861011505127, -0.1876118928194046, 0.09555807709693909, -0.09833692014217377, 0.1360653042793274, 0.03144841268658638, 0.36626189947128296, -0.030475128442049026, -0.07670203596353531, -0.2871255576610565, 0.06341661512851715, 0.11976319551467896, 0.17981359362602234, 0.08180379867553711, -0.11225728690624237, -0.032491929829120636, 0.10308773815631866, 0.07110478729009628, 0.4355330765247345, -0.32930073142051697, 0.042034752666950226, -0.11279402673244476, 0.23087505996227264, -0.05370324105024338, -0.0795116126537323, 0.06271469593048096, 0.1696932017803192, -0.06664733588695526, 0.3745981454849243, 0.3034931421279907, -0.17236801981925964, 0.09816540032625198, -0.14019569754600525, 0.2701459527015686, -0.10314193367958069, 0.6103989481925964, 0.8242204785346985, 0.007024269551038742, 0.1084560975432396, -0.15368278324604034, -0.14773690700531006, 0.33872562646865845, 0.23604780435562134, -0.16095611453056335, 0.7677123546600342, -0.029637418687343597, -0.03451070562005043, 0.03676331788301468, 0.1609756052494049, -0.023548495024442673, 0.0773138776421547, -0.3030446469783783, 0.2025553286075592, -0.07256422936916351, 0.3526548743247986, -0.3180425465106964, -0.3592549264431, -0.281571626663208, 0.028054064139723778, -0.1326441764831543, -0.001957358792424202, -0.41106903553009033, -0.22601410746574402, -0.19467292726039886, 0.09147360920906067, 0.16836336255073547, -0.0731964111328125, 0.2967987358570099, 0.15870842337608337, -0.0866471379995346, -0.39702463150024414, -0.4306512176990509, 0.4005749523639679, 0.11464367806911469, -0.34223130345344543, 0.20561915636062622, 0.2762194573879242, -0.03811369836330414, 0.07380791008472443, 0.4109480381011963, 0.37063729763031006, 0.43639659881591797, 0.05636707693338394, -0.18387502431869507, 0.19906358420848846, -0.21116171777248383, -0.24114571511745453, 0.17087426781654358, 0.042791351675987244, -0.10895998775959015, 0.1623128354549408, 0.09929593652486801, -0.16903457045555115, 0.010436508804559708, 0.36490529775619507, 0.18580596148967743, -0.5423956513404846, 0.3081737160682678, -0.3156808912754059, 0.019970029592514038, 0.006312651559710503, -0.3321167528629303, -0.1336083859205246, 0.2190333902835846, 0.2393358051776886, -0.26091381907463074, 0.1510225534439087, 0.15684135258197784, 0.03685900568962097, 0.06680185347795486, 0.1266169250011444, -0.19221411645412445, -0.0758230909705162, -0.3533601760864258, -0.26381129026412964, -0.42374804615974426, 0.1086479127407074, 0.0393400676548481, -0.017475180327892303, -0.03651927411556244, 0.3689972460269928, -0.33581385016441345, 0.2624948024749756, -0.12764963507652283, -0.04841267690062523, 0.22486752271652222, 0.19623567163944244, -0.5598345994949341, -0.2096147984266281, -0.08032840490341187, 0.1377456784248352, 0.17239192128181458, -0.23205488920211792, 0.18091809749603271, 0.13701975345611572, -0.0709967315196991, 0.042029693722724915, -0.20688414573669434, 0.14451280236244202, 0.21371741592884064, 0.2946120500564575, 0.35012370347976685, 0.7239646911621094, 0.014283344149589539, -0.2817310392856598, -0.0615033395588398, -0.472616046667099, -0.1624019294977188, 0.10660958290100098, -0.0915309339761734, 0.19372877478599548, -0.28154170513153076, -0.1551228165626526, -0.1543230265378952, 0.08364824950695038, 0.37857556343078613, -0.3037131130695343, -0.4284701645374298, -0.1060514971613884, -0.054156381636857986, 0.30869460105895996, 0.32330986857414246, 0.36321282386779785, -0.40180709958076477, 0.2180059254169464, 0.11610710620880127, -0.28154075145721436, 0.16871066391468048, -0.3476577699184418, -0.07997944951057434, -0.18468058109283447, 0.31258445978164673, -0.2369876205921173, -0.017232848331332207, -0.6048093438148499, -0.28701791167259216, 0.35843947529792786, -0.16471579670906067, -0.21907922625541687, 0.247524231672287, 0.553133487701416, -0.0905907154083252, -0.0046847425401210785, 0.44442835450172424, 0.25526630878448486, -0.3594420254230499, 0.7340831756591797, -0.23060061037540436 ]
https://github.com/huggingface/datasets/issues/4261
data leakage in `webis/conclugen` dataset
Thanks @shahbazsyed for your fast fix. As a side note: - Your email appearing as Point of Contact in the dataset README has a typo: @uni.leipzig.de instead of @uni-leipzig.de - Your commits on the Hub are not linked to your profile on the Hub: this is because we use the email address to make this link; the email address used in your commit author and the email address set on your Hub account settings.
## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0
74
data leakage in `webis/conclugen` dataset ## Describe the bug Some samples (argument-conclusion pairs) in the *training* split of the `webis/conclugen` dataset are present in both the *validation* and *test* splits, creating data leakage and distorting model results. Furthermore, all splits contain duplicate samples. ## Steps to reproduce the bug ```python from datasets import load_dataset training = load_dataset("webis/conclugen", "base", split="train") validation = load_dataset("webis/conclugen", "base", split="validation") testing = load_dataset("webis/conclugen", "base", split="test") # collect which sample id's are present in the training split ids_validation = list() ids_testing = list() for train_sample in training: train_argument = train_sample["argument"] train_conclusion = train_sample["conclusion"] train_id = train_sample["id"] # test if current sample is in validation split if train_argument in validation["argument"]: for validation_sample in validation: validation_argument = validation_sample["argument"] validation_conclusion = validation_sample["conclusion"] validation_id = validation_sample["id"] if train_argument == validation_argument and train_conclusion == validation_conclusion: ids_validation.append(validation_id) # test if current sample is in test split if train_argument in testing["argument"]: for testing_sample in testing: testing_argument = testing_sample["argument"] testing_conclusion = testing_sample["conclusion"] testing_id = testing_sample["id"] if train_argument == testing_argument and train_conclusion == testing_conclusion: ids_testing.append(testing_id) ``` ## Expected results Length of both lists `ids_validation` and `ids_testing` should be zero. ## Actual results Length of `ids_validation` = `2556` Length of `ids_testing` = `287` Furthermore, there seems to be duplicate samples in (at least) the *training* split, since: `print(len(set(ids_validation)))` = `950` `print(len(set(ids_testing)))` = `101` All in all, around 7% of the samples of each the *validation* and *test* split seems to be present in the *training* split. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: macOS-12.3.1-arm64-arm-64bit - Python version: 3.9.10 - PyArrow version: 7.0.0 Thanks @shahbazsyed for your fast fix. As a side note: - Your email appearing as Point of Contact in the dataset README has a typo: @uni.leipzig.de instead of @uni-leipzig.de - Your commits on the Hub are not linked to your profile on the Hub: this is because we use the email address to make this link; the email address used in your commit author and the email address set on your Hub account settings.
[ -0.3633222281932831, -0.02422395348548889, -0.1429639458656311, 0.40213078260421753, -0.365067720413208, -0.041542571038007736, 0.21329890191555023, 0.3561701476573944, -0.10639676451683044, -0.1708763688802719, -0.11982743442058563, 0.37816518545150757, 0.14826585352420807, -0.13640527427196503, 0.0034132646396756172, -0.0325714573264122, 0.011784538626670837, 0.01389816403388977, -0.14971207082271576, -0.14162465929985046, -0.09176202863454819, -0.07794829457998276, -0.20602448284626007, 0.05270101875066757, -0.0171953272074461, -0.14313054084777832, -0.22888043522834778, 0.029700983315706253, -0.034829281270504, -0.2237255722284317, 0.21340057253837585, 0.1298481523990631, -0.03061402216553688, 0.2692909240722656, -0.00011906860891031101, -0.03900575265288353, 0.15221059322357178, -0.10529954731464386, -0.3868154287338257, 0.11388888210058212, -0.7554756999015808, -0.1205686554312706, 0.03553767502307892, -0.1355191171169281, 0.16143354773521423, -0.045609988272190094, -0.4770209789276123, -0.14253470301628113, 0.5739989280700684, 0.3902163505554199, 0.14637932181358337, 0.39378121495246887, 0.09746487438678741, 0.08598165214061737, -0.019913338124752045, 0.08111696690320969, 0.07314109057188034, 0.11022460460662842, 0.10961725562810898, -0.09674954414367676, 0.09157578647136688, 0.4329279363155365, -0.20431824028491974, -0.07283031940460205, -0.3327329456806183, 0.15360678732395172, 0.0729445368051529, -0.2895524501800537, -0.0744902640581131, 0.13839015364646912, 0.11335999518632889, -0.23178711533546448, -0.4519497752189636, -0.26056888699531555, -0.1836569905281067, 0.018166089430451393, 0.10660241544246674, 0.5403932929039001, -0.0901675820350647, 0.41526055335998535, -0.3220817744731903, -0.009922255761921406, -0.035445522516965866, 0.04843708127737045, -0.07434497773647308, 0.0791023001074791, 0.18593834340572357, 0.017817873507738113, 0.11902758479118347, 0.11175927519798279, -0.12033198028802872, -0.23854359984397888, -0.09782777726650238, 0.022648882120847702, -0.1091759204864502, -0.2662201225757599, -0.03057757019996643, -0.18868860602378845, 0.2594998776912689, 0.34631985425949097, 0.1387576162815094, -0.30408263206481934, 0.17557533085346222, 0.20310407876968384, 0.7018610239028931, 0.13155004382133484, -0.10314678400754929, 0.5667787790298462, 0.1297549456357956, -0.04632808268070221, -0.04823474958539009, 0.03499586135149002, 0.47920364141464233, 0.034681934863328934, 0.31598374247550964, -0.1831066608428955, 0.2739710211753845, -0.05561050400137901, -0.5984286069869995, 0.13312038779258728, -0.37445738911628723, -0.12005817145109177, 0.10855178534984589, 0.06986945122480392, -0.18068133294582367, 0.28148341178894043, 0.2933529019355774, 0.45179057121276855, -0.30370503664016724, -0.5134313702583313, -0.28390049934387207, -0.24119843542575836, -0.42311692237854004, 0.10083241760730743, -0.052846867591142654, 0.23150114715099335, 0.21909289062023163, 0.38102543354034424, -0.1728268265724182, -0.24880965054035187, 0.1840185970067978, -0.08727723360061646, 0.049943242222070694, 0.1009446233510971, -0.008241560310125351, 0.038667671382427216, 0.07014980167150497, 0.08505864441394806, -0.11436518281698227, 0.13202455639839172, -0.32373061776161194, -0.10526090860366821, -0.21101495623588562, 0.13017265498638153, -0.18742617964744568, 0.3149248957633972, 0.14584621787071228, 0.12863612174987793, 0.3839344382286072, 0.1558094322681427, -0.06582029908895493, -0.126145601272583, -0.05146975815296173, -0.19298338890075684, 0.17211481928825378, 0.6767813563346863, 0.014012116938829422, -0.19782064855098724, 0.18106766045093536, 0.02899482101202011, 0.28212207555770874, 0.29330843687057495, -0.24483628571033478, 0.3683168292045593, -0.012946827337145805, 0.052506133913993835, 0.26052072644233704, -0.2709011733531952, -0.5945894122123718, 0.1214226558804512, 0.13918611407279968, 0.2939578592777252, 0.147594153881073, -0.11940973997116089, 0.24006107449531555, -0.026360033079981804, 0.14468200504779816, 0.13406360149383545, -0.1515326052904129, -0.007042525336146355, -0.40706661343574524, -0.37972837686538696, 0.1351117640733719, -0.1476573944091797, 0.023132551461458206, 0.13400359451770782, 0.16118641197681427, -0.0126917390152812, 0.5123282074928284, 0.08183837682008743, 0.0182599239051342, 0.06120636314153671, 0.21651844680309296, 0.06644319742918015, 0.07435649633407593, -0.07020092010498047, -0.17119991779327393, -0.066257543861866, -0.08975963294506073, -0.015022605657577515, -0.16640694439411163, -0.04565839841961861, -0.1323791742324829, 0.14641888439655304, -0.18476304411888123, -0.33786964416503906, 0.1065920889377594, 0.14573530852794647, -0.07904865592718124, -0.019679687917232513, -0.025530481711030006, 0.12547188997268677, -0.06851509213447571, 0.06572265923023224, -0.1465095728635788, 0.4118940830230713, 0.020868467167019844, -0.14924801886081696, -0.16038808226585388, 0.15907058119773865, 0.07844288647174835, -0.014748863875865936, -0.1558876931667328, 0.44874006509780884, 0.4631212651729584, -0.00138913094997406, 0.01893559843301773, 0.04914546012878418, 0.3902375102043152, -0.5439515113830566, 0.01997656375169754, 0.3756180703639984, -0.07374364882707596, 0.06867758184671402, -0.018708817660808563, 0.34014350175857544, 0.02198921889066696, 0.07599865645170212, 0.08320185542106628, 0.26574742794036865, 0.08428137749433517, -0.2800939679145813, -0.0024758195504546165, -0.36388835310935974, -0.07389804720878601, -0.23890982568264008, 0.33396023511886597, 0.11863945424556732, -0.279211163520813, 0.13967131078243256, -0.10946869850158691, -0.1447119414806366, 0.07907366007566452, 0.013108562678098679, -0.17451074719429016, -0.0791601911187172, 0.03959794342517853, 0.15107038617134094, 0.6801636815071106, 0.07015924155712128, 0.18661010265350342, -0.16443099081516266, -0.004694167524576187, -0.05964796990156174, 0.3265649676322937, 0.09051984548568726, -0.24907279014587402, 0.13347789645195007, 0.09991007298231125, 0.07856674492359161, 0.05859578400850296, 0.22422805428504944, -0.0026934705674648285, -0.01697380654513836, -0.31333956122398376, 0.3918763995170593, -0.29917043447494507, 0.07887693494558334, -0.47131621837615967, -0.2844308912754059, 0.3026447594165802, -0.1128220483660698, 0.08391319960355759, -0.048520881682634354, -0.18464072048664093, -0.06529423594474792, 0.10646843910217285, 0.3964874744415283, 0.20421963930130005, 0.11301714926958084, 0.045286424458026886, -0.1309807151556015, -0.2711624801158905, 0.027819745242595673, 0.2823478877544403, -0.15472252666950226, 0.11007533222436905, -0.09310206025838852, -0.3419741988182068, -0.13628269731998444, -0.2974625527858734, 0.14260560274124146, 0.36186957359313965, 0.5280241370201111, 0.14772948622703552, -0.12188778817653656, 0.02173042669892311, -0.34104567766189575, 0.014444854110479355, -0.11937366425991058, -0.21899132430553436, 0.1269831359386444, -0.05170918256044388, -0.12223964184522629, 0.03519215062260628, -0.6232653260231018, -0.4613194167613983, -0.07944144308567047, 0.03801286220550537, -0.10844525694847107, -0.002865538001060486, 0.33850666880607605, -0.009716578759253025, -0.30890053510665894, 0.051918875426054, 0.18497532606124878, -0.17085610330104828, -0.10946094989776611, 0.16786915063858032, -0.22658097743988037, -0.19072788953781128, -0.3099997043609619, -0.10241690278053284, 0.3917345106601715, 0.3071906566619873, -0.34939044713974, 0.2461942881345749, -0.03128388524055481, 0.3806968927383423, -0.5309256911277771, -0.04107428342103958, -0.05210098624229431, 0.11732878535985947, 0.03693043440580368, -0.19881615042686462, 0.3363436758518219, 0.23895680904388428, -0.06716139614582062, 0.5478174686431885, -0.2363044023513794, 0.019366193562746048, 0.18595294654369354, 0.7166907787322998, 0.790854275226593, -0.2655789852142334, -0.021555788815021515, -0.03233959525823593, -0.10286907851696014, 0.1306615173816681, -0.4211113154888153, -0.07577670365571976, -0.017482131719589233, -0.3009047508239746, 0.23873724043369293, 0.01166758593171835, -0.36119335889816284, -0.162622332572937, 0.18484334647655487, -0.32702672481536865, -0.42030176520347595, 0.02917604148387909, 0.0902489423751831, 0.3902219533920288, 0.227500319480896, 0.07139820605516434, -0.032533910125494, -0.22534748911857605, -0.048148173838853836, 0.01625295728445053, -0.0012082308530807495, 0.0216660238802433, -0.002619188278913498, 0.09111214429140091, -0.03930782526731491, -0.0628143846988678, 0.0801134705543518, 0.18264208734035492, -0.010078895837068558, -0.08502654731273651, 0.0036341845989227295, 0.37246114015579224, 0.6208638548851013, -0.1514887660741806, 0.058210548013448715, -0.05486464872956276, 0.1859099268913269, -0.21301189064979553, -0.03320620208978653, -0.2678334414958954, -0.09997624903917313, 0.9386271834373474, -0.004575684666633606, -0.19382409751415253, -0.005265895742923021, 0.40233197808265686, 0.10276399552822113, -0.20787107944488525, -0.07894187420606613, -0.1680137664079666, -0.03902098536491394, -0.01645795628428459, 0.21128661930561066, 0.19495870172977448, 0.10936086624860764, -0.18974095582962036, -0.17230169475078583, -0.11779044568538666, -0.14648739993572235, 0.06660223752260208, 0.18135492503643036, 0.4978114664554596, -0.28746527433395386, 0.36925628781318665, -0.005474574863910675, -0.004550114274024963, 0.24633845686912537, 0.43407437205314636, -0.07100360095500946, -0.37026265263557434, -0.04702284187078476, -0.25517672300338745, 0.2581678032875061, 0.301422655582428, 0.03102206066250801, 0.004803426563739777, -0.29512616991996765, 0.2626422643661499, -0.3175852298736572, 0.04103067144751549, 0.10022903233766556, -0.08137009292840958, -0.15419833362102509, -0.32080724835395813, -0.015023760497570038, -0.01300838589668274, -0.33126354217529297, 0.3713923394680023, -0.33220571279525757, -0.331775426864624, 0.3117569088935852, 0.2861385941505432, 0.996394157409668, 0.3367156982421875, -0.08859167993068695, 0.24503272771835327, -0.11891767382621765, 0.12850743532180786, -0.1815546154975891, -0.15681412816047668, 0.03584391251206398, -0.16302205622196198, 0.11852367222309113, -0.16512277722358704, 0.1331789791584015, 0.023539980873465538, -0.2793503999710083, 0.051292017102241516, -0.4328809976577759, 0.24792174994945526, 0.2625732421875, 0.040980614721775055, 0.22689388692378998, 0.15332625806331635, 0.0856139063835144, 0.05173131823539734, -0.011489927768707275, -0.01963154599070549, -0.05663881450891495, -0.2196905016899109, -0.02350034937262535, -0.08492989093065262, -0.23967233300209045, 0.27130481600761414, -0.412350594997406, 0.5566847920417786, 0.0022871457040309906, -0.028297383338212967, -0.09633809328079224, 0.6636359095573425, 0.24761353433132172, -0.04344312474131584, 0.07578922808170319, 0.16806858777999878, 0.0650608018040657, 0.2629298269748688, 0.008288594894111156, -0.1488487422466278, 0.48455584049224854, 0.09730639308691025, -0.3466967046260834, 0.017115335911512375, 0.04486702382564545, -0.2108723372220993, -0.223695307970047, 0.2528185248374939, 0.26922208070755005, -0.36120253801345825, 0.23820608854293823, -0.12611107528209686, 0.04844861850142479, -0.24616678059101105, 0.08042903244495392, 0.23759472370147705, -0.3606627881526947, 0.46666067838668823, -0.3592322766780853, -0.30104807019233704, -0.08144940435886383, 0.39480650424957275, 0.390196293592453, -0.006414737552404404, 0.19591793417930603, -0.345722496509552, -0.11815812438726425, -0.23150724172592163, 0.16370689868927002, -0.2335011065006256, -0.338314414024353, 0.22273360192775726, -0.55563884973526, 0.12543316185474396, -0.20479713380336761, 0.025473054498434067, 0.04394619166851044, 0.22491240501403809, 0.006590172648429871, -0.6524280905723572, 0.05187184363603592, 0.12457797676324844, 0.09354640543460846, 0.06707285344600677, -0.09861280769109726, 0.3461926281452179, -0.3416067659854889, 0.39899760484695435, -0.26221203804016113, -0.02357415482401848, 0.018016187474131584, 0.13826054334640503, 0.1566556990146637, -0.017027750611305237, 0.0847194567322731, -0.21752788126468658, 0.05374186486005783, -0.033902280032634735, 0.05709945783019066, -0.14214640855789185, -0.27921175956726074, 0.11278605461120605, -0.13383013010025024, -0.09596025943756104, -0.16053947806358337, -0.09710555523633957, 0.2395402193069458, -0.06962499767541885, 0.15422417223453522, -0.072789266705513, 0.1852061152458191, -0.07098276168107986, -0.06251032650470734, -0.12739861011505127, -0.1876118928194046, 0.09555807709693909, -0.09833692014217377, 0.1360653042793274, 0.03144841268658638, 0.36626189947128296, -0.030475128442049026, -0.07670203596353531, -0.2871255576610565, 0.06341661512851715, 0.11976319551467896, 0.17981359362602234, 0.08180379867553711, -0.11225728690624237, -0.032491929829120636, 0.10308773815631866, 0.07110478729009628, 0.4355330765247345, -0.32930073142051697, 0.042034752666950226, -0.11279402673244476, 0.23087505996227264, -0.05370324105024338, -0.0795116126537323, 0.06271469593048096, 0.1696932017803192, -0.06664733588695526, 0.3745981454849243, 0.3034931421279907, -0.17236801981925964, 0.09816540032625198, -0.14019569754600525, 0.2701459527015686, -0.10314193367958069, 0.6103989481925964, 0.8242204785346985, 0.007024269551038742, 0.1084560975432396, -0.15368278324604034, -0.14773690700531006, 0.33872562646865845, 0.23604780435562134, -0.16095611453056335, 0.7677123546600342, -0.029637418687343597, -0.03451070562005043, 0.03676331788301468, 0.1609756052494049, -0.023548495024442673, 0.0773138776421547, -0.3030446469783783, 0.2025553286075592, -0.07256422936916351, 0.3526548743247986, -0.3180425465106964, -0.3592549264431, -0.281571626663208, 0.028054064139723778, -0.1326441764831543, -0.001957358792424202, -0.41106903553009033, -0.22601410746574402, -0.19467292726039886, 0.09147360920906067, 0.16836336255073547, -0.0731964111328125, 0.2967987358570099, 0.15870842337608337, -0.0866471379995346, -0.39702463150024414, -0.4306512176990509, 0.4005749523639679, 0.11464367806911469, -0.34223130345344543, 0.20561915636062622, 0.2762194573879242, -0.03811369836330414, 0.07380791008472443, 0.4109480381011963, 0.37063729763031006, 0.43639659881591797, 0.05636707693338394, -0.18387502431869507, 0.19906358420848846, -0.21116171777248383, -0.24114571511745453, 0.17087426781654358, 0.042791351675987244, -0.10895998775959015, 0.1623128354549408, 0.09929593652486801, -0.16903457045555115, 0.010436508804559708, 0.36490529775619507, 0.18580596148967743, -0.5423956513404846, 0.3081737160682678, -0.3156808912754059, 0.019970029592514038, 0.006312651559710503, -0.3321167528629303, -0.1336083859205246, 0.2190333902835846, 0.2393358051776886, -0.26091381907463074, 0.1510225534439087, 0.15684135258197784, 0.03685900568962097, 0.06680185347795486, 0.1266169250011444, -0.19221411645412445, -0.0758230909705162, -0.3533601760864258, -0.26381129026412964, -0.42374804615974426, 0.1086479127407074, 0.0393400676548481, -0.017475180327892303, -0.03651927411556244, 0.3689972460269928, -0.33581385016441345, 0.2624948024749756, -0.12764963507652283, -0.04841267690062523, 0.22486752271652222, 0.19623567163944244, -0.5598345994949341, -0.2096147984266281, -0.08032840490341187, 0.1377456784248352, 0.17239192128181458, -0.23205488920211792, 0.18091809749603271, 0.13701975345611572, -0.0709967315196991, 0.042029693722724915, -0.20688414573669434, 0.14451280236244202, 0.21371741592884064, 0.2946120500564575, 0.35012370347976685, 0.7239646911621094, 0.014283344149589539, -0.2817310392856598, -0.0615033395588398, -0.472616046667099, -0.1624019294977188, 0.10660958290100098, -0.0915309339761734, 0.19372877478599548, -0.28154170513153076, -0.1551228165626526, -0.1543230265378952, 0.08364824950695038, 0.37857556343078613, -0.3037131130695343, -0.4284701645374298, -0.1060514971613884, -0.054156381636857986, 0.30869460105895996, 0.32330986857414246, 0.36321282386779785, -0.40180709958076477, 0.2180059254169464, 0.11610710620880127, -0.28154075145721436, 0.16871066391468048, -0.3476577699184418, -0.07997944951057434, -0.18468058109283447, 0.31258445978164673, -0.2369876205921173, -0.017232848331332207, -0.6048093438148499, -0.28701791167259216, 0.35843947529792786, -0.16471579670906067, -0.21907922625541687, 0.247524231672287, 0.553133487701416, -0.0905907154083252, -0.0046847425401210785, 0.44442835450172424, 0.25526630878448486, -0.3594420254230499, 0.7340831756591797, -0.23060061037540436 ]
https://github.com/huggingface/datasets/issues/4248
conll2003 dataset loads original data.
Thanks for reporting @sue99. Unfortunately. I'm not able to reproduce your problem: ```python In [1]: import datasets ...: from datasets import load_dataset ...: dataset = load_dataset("conll2003") In [2]: dataset Out[2]: DatasetDict({ train: Dataset({ features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'], num_rows: 14042 }) validation: Dataset({ features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'], num_rows: 3251 }) test: Dataset({ features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'], num_rows: 3454 }) }) In [3]: dataset["train"][0] Out[3]: {'id': '0', 'tokens': ['EU', 'rejects', 'German', 'call', 'to', 'boycott', 'British', 'lamb', '.'], 'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7], 'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0], 'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0]} ``` Just guessing: might be the case that you are calling `load_dataset` from a working directory that contains a local folder named `conll2003` (containing the raw data files)? If that is the case, `datasets` library gives precedence to the local folder over the dataset on the Hub.
## Describe the bug I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text. Is this a bug or should I use another dataset_name like `lhoestq/conll2003` ? ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset dataset = load_dataset("conll2003") ``` ## Expected results { "chunk_tags": [11, 12, 12, 21, 13, 11, 11, 21, 13, 11, 12, 13, 11, 21, 22, 11, 12, 17, 11, 21, 17, 11, 12, 12, 21, 22, 22, 13, 11, 0], "id": "0", "ner_tags": [0, 3, 4, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "pos_tags": [12, 22, 22, 38, 15, 22, 28, 38, 15, 16, 21, 35, 24, 35, 37, 16, 21, 15, 24, 41, 15, 16, 21, 21, 20, 37, 40, 35, 21, 7], "tokens": ["The", "European", "Commission", "said", "on", "Thursday", "it", "disagreed", "with", "German", "advice", "to", "consumers", "to", "shun", "British", "lamb", "until", "scientists", "determine", "whether", "mad", "cow", "disease", "can", "be", "transmitted", "to", "sheep", "."] } ## Actual results ```python print(dataset) DatasetDict({ train: Dataset({ features: ['text'], num_rows: 219554 }) test: Dataset({ features: ['text'], num_rows: 50350 }) validation: Dataset({ features: ['text'], num_rows: 55044 }) }) ``` ```python for i in range(20): print(dataset['train'][i]) {'text': '-DOCSTART- -X- -X- O'} {'text': ''} {'text': 'EU NNP B-NP B-ORG'} {'text': 'rejects VBZ B-VP O'} {'text': 'German JJ B-NP B-MISC'} {'text': 'call NN I-NP O'} {'text': 'to TO B-VP O'} {'text': 'boycott VB I-VP O'} {'text': 'British JJ B-NP B-MISC'} {'text': 'lamb NN I-NP O'} {'text': '. . O O'} {'text': ''} {'text': 'Peter NNP B-NP B-PER'} {'text': 'Blackburn NNP I-NP I-PER'} {'text': ''} {'text': 'BRUSSELS NNP B-NP B-LOC'} {'text': '1996-08-22 CD I-NP O'} {'text': ''} {'text': 'The DT B-NP O'} {'text': 'European NNP I-NP B-ORG'} ```
158
conll2003 dataset loads original data. ## Describe the bug I load `conll2003` dataset to use refined data like [this](https://huggingface.co/datasets/conll2003/viewer/conll2003/train) preview, but it is original data that contains `'-DOCSTART- -X- -X- O'` text. Is this a bug or should I use another dataset_name like `lhoestq/conll2003` ? ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset dataset = load_dataset("conll2003") ``` ## Expected results { "chunk_tags": [11, 12, 12, 21, 13, 11, 11, 21, 13, 11, 12, 13, 11, 21, 22, 11, 12, 17, 11, 21, 17, 11, 12, 12, 21, 22, 22, 13, 11, 0], "id": "0", "ner_tags": [0, 3, 4, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "pos_tags": [12, 22, 22, 38, 15, 22, 28, 38, 15, 16, 21, 35, 24, 35, 37, 16, 21, 15, 24, 41, 15, 16, 21, 21, 20, 37, 40, 35, 21, 7], "tokens": ["The", "European", "Commission", "said", "on", "Thursday", "it", "disagreed", "with", "German", "advice", "to", "consumers", "to", "shun", "British", "lamb", "until", "scientists", "determine", "whether", "mad", "cow", "disease", "can", "be", "transmitted", "to", "sheep", "."] } ## Actual results ```python print(dataset) DatasetDict({ train: Dataset({ features: ['text'], num_rows: 219554 }) test: Dataset({ features: ['text'], num_rows: 50350 }) validation: Dataset({ features: ['text'], num_rows: 55044 }) }) ``` ```python for i in range(20): print(dataset['train'][i]) {'text': '-DOCSTART- -X- -X- O'} {'text': ''} {'text': 'EU NNP B-NP B-ORG'} {'text': 'rejects VBZ B-VP O'} {'text': 'German JJ B-NP B-MISC'} {'text': 'call NN I-NP O'} {'text': 'to TO B-VP O'} {'text': 'boycott VB I-VP O'} {'text': 'British JJ B-NP B-MISC'} {'text': 'lamb NN I-NP O'} {'text': '. . O O'} {'text': ''} {'text': 'Peter NNP B-NP B-PER'} {'text': 'Blackburn NNP I-NP I-PER'} {'text': ''} {'text': 'BRUSSELS NNP B-NP B-LOC'} {'text': '1996-08-22 CD I-NP O'} {'text': ''} {'text': 'The DT B-NP O'} {'text': 'European NNP I-NP B-ORG'} ``` Thanks for reporting @sue99. Unfortunately. I'm not able to reproduce your problem: ```python In [1]: import datasets ...: from datasets import load_dataset ...: dataset = load_dataset("conll2003") In [2]: dataset Out[2]: DatasetDict({ train: Dataset({ features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'], num_rows: 14042 }) validation: Dataset({ features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'], num_rows: 3251 }) test: Dataset({ features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'], num_rows: 3454 }) }) In [3]: dataset["train"][0] Out[3]: {'id': '0', 'tokens': ['EU', 'rejects', 'German', 'call', 'to', 'boycott', 'British', 'lamb', '.'], 'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7], 'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0], 'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0]} ``` Just guessing: might be the case that you are calling `load_dataset` from a working directory that contains a local folder named `conll2003` (containing the raw data files)? If that is the case, `datasets` library gives precedence to the local folder over the dataset on the Hub.
[ 0.04482681676745415, 0.23182392120361328, 0.00680001825094223, 0.4537392258644104, 0.029356438666582108, 0.03929183632135391, 0.325444757938385, 0.34715530276298523, -0.4062153398990631, -0.031783223152160645, -0.15510490536689758, 0.39673352241516113, 0.06101720407605171, 0.22338543832302094, 0.008579280227422714, 0.15829670429229736, 0.2671118378639221, 0.3820192515850067, -0.02716178447008133, -0.16068731248378754, -0.46563640236854553, 0.044082194566726685, -0.2697821855545044, 0.06062231585383415, -0.3774573504924774, 0.2913786470890045, 0.12277422845363617, 0.33597531914711, -0.1259002536535263, -0.3003685176372528, 0.381949782371521, 0.1937047839164734, 0.22194336354732513, 0.2603473961353302, -0.0001243889273609966, -0.019241414964199066, 0.2649608254432678, -0.2659652829170227, -0.21949802339076996, -0.08264508843421936, 0.08386256545782089, -0.076331727206707, 0.24522599577903748, -0.294171005487442, -0.2550191581249237, -0.012200011871755123, -0.30031269788742065, -0.38580140471458435, 0.29215067625045776, 0.27034708857536316, 0.09887497127056122, 0.036820538341999054, -0.3032777011394501, 0.07947304099798203, 0.4664381444454193, -0.026167891919612885, -0.1455053836107254, 0.3974701166152954, 0.12956391274929047, 0.12308025360107422, 0.21204201877117157, 0.3488534688949585, -0.16680899262428284, 0.14467287063598633, 0.05979035794734955, 0.15892422199249268, -0.04651971161365509, 0.0158079881221056, 0.02452179603278637, 0.20069828629493713, 0.4102188050746918, -0.09783511608839035, -0.2401057630777359, -0.1350582391023636, 0.055117540061473846, -0.5829334855079651, 0.07882621139287949, -0.08653873205184937, -0.19461731612682343, 0.2578682601451874, -0.2410970777273178, -0.34593141078948975, -0.10648860037326813, 0.17763352394104004, -0.45029211044311523, 0.4956226348876953, -0.02307960018515587, 0.20119419693946838, -0.145647332072258, 0.10249520093202591, 0.6498842835426331, -0.02356165274977684, -0.18145111203193665, -0.07307174056768417, -0.1942996233701706, -0.007977697998285294, -0.30653616786003113, -0.1740092635154724, 0.08248139917850494, 0.1755889356136322, -0.09583522379398346, 0.08367686718702316, 0.034966837614774704, -0.20901790261268616, 0.14327672123908997, -0.04876911640167236, 0.2355436384677887, 0.3679766058921814, 0.10028359293937683, -0.1127096638083458, -0.10592928528785706, -0.03944087028503418, -0.31385186314582825, 0.1820123791694641, -0.0448712520301342, -0.26699116826057434, 0.31422674655914307, -0.25090426206588745, -0.38207903504371643, 0.35322386026382446, -0.2207644283771515, -0.07948890328407288, -0.14897680282592773, 0.4608437716960907, -0.1466071903705597, 0.15748411417007446, 0.29006898403167725, 0.234758198261261, 0.06910853832960129, -0.3828023076057434, -0.11333989351987839, -0.42858952283859253, -0.12984207272529602, 0.004258425906300545, 0.002065114676952362, -0.26377010345458984, 0.20549678802490234, 0.020882803946733475, -0.06699322164058685, -0.23692741990089417, -0.046802543103694916, 0.007556818425655365, 0.30680543184280396, -0.05816524103283882, -0.09043838083744049, 0.209164097905159, 0.050096917897462845, -0.14687272906303406, 0.02312520146369934, 0.4557196795940399, -0.45269978046417236, -0.24052727222442627, -0.5648736357688904, 0.08623211085796356, -0.24985748529434204, -0.05232387036085129, 0.4259240925312042, -0.09843188524246216, 0.12875314056873322, -0.07356806099414825, -0.011968664824962616, -0.038585364818573, -0.45887839794158936, -0.1618788242340088, 0.2753044068813324, 0.37772077322006226, -0.4563998281955719, -0.08937575668096542, -0.16683922708034515, -0.043665025383234024, 0.15169353783130646, 0.13730578124523163, -0.06808650493621826, 0.18441611528396606, -0.24949322640895844, -0.234923854470253, 0.42457157373428345, -0.3693079948425293, -0.5368656516075134, 0.18854360282421112, 0.07894028723239899, 0.35719582438468933, 0.009638383984565735, -0.18673601746559143, 0.35577091574668884, -0.014955736696720123, 0.24156337976455688, 0.05842860788106918, 0.29913783073425293, -0.20327255129814148, -0.2133903205394745, -0.1440138816833496, 0.32777124643325806, 0.06431859731674194, -0.15882951021194458, 0.17916430532932281, -0.14587143063545227, 0.028195150196552277, 0.37590664625167847, 0.1061837375164032, -0.020120058208703995, 0.21490736305713654, 0.20304207503795624, 0.2246909886598587, 0.09999015927314758, 0.10390765219926834, -0.549119770526886, -0.017411986365914345, -0.011147404089570045, -0.00023138895630836487, 0.30113595724105835, -0.22098053991794586, -0.612437903881073, 0.03680499643087387, -0.24360372126102448, -0.22619321942329407, 0.020577047020196915, 0.29480376839637756, 0.032597143203020096, 0.15760648250579834, -0.023815078660845757, 0.2894473969936371, -0.1627151519060135, 0.09822147339582443, -0.039399102330207825, 0.25515833497047424, 0.082079216837883, -0.15667152404785156, -0.15046513080596924, 0.1728755384683609, 0.1502111852169037, -0.021898971870541573, -0.07506264001131058, 0.4087536633014679, 0.23892205953598022, 0.10450989007949829, -0.28923675417900085, -0.055869489908218384, 0.1279190182685852, -0.03620072454214096, 0.011398650705814362, 0.19724741578102112, 0.06691836565732956, -0.011381048709154129, -0.02897096425294876, 0.2905334234237671, 0.40444421768188477, -0.09514074772596359, -0.1479785144329071, -0.07885368913412094, 0.2025977075099945, -0.3363834023475647, -0.061673857271671295, -0.5342956781387329, 0.06714574247598648, 0.2042284905910492, 0.3849785029888153, 0.149552121758461, -0.41102251410484314, -0.11940985172986984, 0.42593124508857727, -0.10680507123470306, -0.018812403082847595, 0.15226459503173828, -0.39520028233528137, -0.0963495597243309, -0.006703391671180725, 0.041748713701963425, 0.3475378751754761, 0.10385578870773315, -0.05412501469254494, 0.3582327663898468, 0.13839152455329895, -0.049897972494363785, 0.27745649218559265, -0.12492866814136505, 0.19056732952594757, 0.37714752554893494, -0.043305717408657074, 0.004043584689497948, -0.19611519575119019, 0.19314953684806824, 0.13159342110157013, 0.06975173205137253, -0.4316929876804352, -0.01076341699808836, -0.4004223942756653, -0.19937387108802795, -0.2595612108707428, -0.3125592768192291, -0.015978794544935226, -0.06656769663095474, -0.0501011461019516, 0.1901097297668457, -0.0187663696706295, 0.23296697437763214, -0.4545716941356659, 0.19266407191753387, 0.0963275134563446, -0.1528950035572052, -0.20026518404483795, -0.058292459696531296, -0.3965317904949188, -0.0043563321232795715, -0.03531838208436966, -0.24262700974941254, 0.15949325263500214, -0.5326334238052368, 0.10883817076683044, -0.07128399610519409, -0.27393588423728943, 0.42505258321762085, 0.024270426481962204, 0.46449148654937744, -0.012925401329994202, -0.10394780337810516, 0.09076617658138275, -0.12272428721189499, -0.061562374234199524, -0.026290949434041977, -0.11144239455461502, -0.16097931563854218, 0.16380544006824493, 0.15575169026851654, -0.11903801560401917, -0.4507129490375519, -0.04965309798717499, -0.15027651190757751, -0.2716253995895386, -0.04037634655833244, 0.15713022649288177, 0.09398072957992554, -0.15520866215229034, -0.03626490756869316, -0.0016259378753602505, 0.16935589909553528, -0.5893480181694031, -0.12935839593410492, 0.34308454394340515, -0.11698754876852036, -0.26452502608299255, -0.1576339155435562, -0.22512739896774292, -0.17063350975513458, 0.01853867992758751, -0.4960561990737915, 0.23755382001399994, 0.23709867894649506, 0.006440110504627228, -0.11534187197685242, -0.20454224944114685, 0.20919641852378845, -0.012495320290327072, 0.2053454965353012, -0.32344305515289307, -0.21913574635982513, 0.010256975889205933, -0.1244443729519844, 0.3511471152305603, 0.08161711692810059, 0.2880915105342865, -0.15901316702365875, 0.41175681352615356, 0.13717886805534363, -0.06389451026916504, 0.35879191756248474, -0.2820606529712677, 0.37913602590560913, -0.13361284136772156, -0.1000806987285614, -0.28001976013183594, -0.13896247744560242, -0.04477015510201454, 0.5035548210144043, -0.09966885298490524, -0.18941010534763336, -0.21239659190177917, 0.18413466215133667, -0.39976319670677185, -0.07526929676532745, -0.20550142228603363, -0.3744487762451172, 0.20143777132034302, 0.19989880919456482, 0.37147730588912964, 0.23332354426383972, -0.3209347128868103, -0.006364039611071348, 0.13359840214252472, 0.18370190262794495, -0.2681550681591034, -0.3475031554698944, 0.3508734405040741, -0.3033737242221832, 0.38548362255096436, 0.24866661429405212, 0.3580048382282257, 0.1939319223165512, -0.28624576330184937, 0.1997603476047516, 0.06563100963830948, 0.8118957281112671, -0.05601245164871216, -0.01872878521680832, 0.25882068276405334, 0.11500723659992218, -0.33775854110717773, -0.12347422540187836, -0.2301149070262909, -0.1990332305431366, 0.5778022408485413, 0.5648505687713623, -0.09116052836179733, -0.21396352350711823, 0.27248966693878174, -0.019835852086544037, -0.3167949616909027, -0.06465034931898117, -0.23205415904521942, -0.09465557336807251, -0.08385687321424484, -0.3629358410835266, -0.2585020363330841, 0.13770140707492828, -0.19556903839111328, 0.024716433137655258, -0.10761775076389313, 0.10106440633535385, 0.2200920581817627, 0.2147054523229599, 0.5110974907875061, 0.11844838410615921, 0.42947009205818176, 0.12767142057418823, 0.33747217059135437, 0.2366151660680771, 0.7253125905990601, 0.12749126553535461, -0.4262502193450928, -0.01060192659497261, -0.14496469497680664, 0.3050515353679657, 0.22067368030548096, 0.090106301009655, -0.09112825244665146, -0.2644495964050293, -0.2653592824935913, -0.3320487141609192, 0.17875351011753082, 0.4158865213394165, -0.19922301173210144, -0.7025412321090698, -0.3890782594680786, 0.36064276099205017, 0.07416141033172607, -0.27691006660461426, 0.04328441992402077, -0.2629135251045227, -0.351756751537323, 0.29058343172073364, 0.11500116437673569, 0.8994578719139099, 0.1430157721042633, 0.42745256423950195, 0.3634417951107025, -0.3952362537384033, 0.11108142137527466, -0.02057367004454136, -0.20907869935035706, -0.43131524324417114, -0.1580788493156433, -0.08060986548662186, 0.03725617751479149, 0.04917142540216446, 0.08062969148159027, -0.10513560473918915, -0.049827300012111664, -0.2751237154006958, -0.09417806565761566, 0.31961628794670105, 0.1775958240032196, 0.26126858592033386, 0.09931275248527527, 0.26852142810821533, -0.029938718304038048, 0.05133994668722153, 0.19283968210220337, -0.1283203661441803, 0.026783067733049393, -0.18553206324577332, -0.300106942653656, -0.15451964735984802, 0.2412199079990387, 0.028378348797559738, -0.030586205422878265, 0.1856679916381836, -0.6402316689491272, -0.12251652777194977, 0.17035795748233795, -0.003586903214454651, 0.2636037766933441, -0.18464237451553345, 0.18198318779468536, 0.4903278648853302, 0.041569698601961136, 0.29280078411102295, 0.10377217829227448, 0.08953040093183517, 0.024671368300914764, -0.20077194273471832, 0.11534132063388824, 0.08068851381540298, -0.41435110569000244, -0.05953417718410492, 0.08612150698900223, 0.12103135138750076, -0.6722039580345154, -0.3613201975822449, 0.05718570947647095, 0.42024654150009155, -0.34159645438194275, 0.0749875158071518, -0.21672804653644562, -0.15887324512004852, 0.011378347873687744, 0.04439768195152283, -0.47611138224601746, -0.24276061356067657, 0.3422321677207947, 0.2764306366443634, -0.03832947462797165, 0.4763401448726654, -0.0641796886920929, 0.015051532536745071, -0.05085184425115585, 0.38320547342300415, 0.06216069310903549, -0.24652034044265747, 0.07308284193277359, 0.1785498708486557, 0.026679188013076782, -0.10428325086832047, 0.3788185119628906, 0.04120023176074028, -0.029111303389072418, -0.0670221820473671, -0.32406488060951233, -0.08767269551753998, 0.036356810480356216, 0.04865826666355133, 0.22188307344913483, 0.19221964478492737, 0.12209667265415192, -0.3005674183368683, -0.18934974074363708, -0.20562411844730377, 0.16054639220237732, 0.23338443040847778, 0.15665198862552643, 0.16703484952449799, 0.1870236098766327, -0.06785492599010468, -0.055746499449014664, 0.09271936118602753, 0.007517777383327484, 0.0955779105424881, -0.13159705698490143, -0.3383886516094208, 0.208145871758461, -0.020308468490839005, -0.4359899163246155, -0.08752046525478363, -0.008857231587171555, -0.07985427975654602, -0.016464319080114365, 0.0702301412820816, 0.39489373564720154, 0.17359304428100586, 0.43460243940353394, -0.26202890276908875, 0.10625488311052322, -0.21328303217887878, 0.1215982735157013, -0.09555259346961975, 0.5005698204040527, -0.01201748475432396, 0.31113749742507935, -0.2233283966779709, 0.12928839027881622, -0.11046271026134491, -0.044610582292079926, -0.06003120541572571, 0.06306995451450348, 0.4374799430370331, -0.36710041761398315, 0.23848378658294678, 0.22556373476982117, 0.27376654744148254, 0.5754973292350769, -0.6401849985122681, -0.2723141312599182, 0.23034894466400146, 0.11327414214611053, -0.2634972929954529, -0.22630350291728973, 0.04833390936255455, -0.05943376570940018, -0.15398471057415009, 0.293955534696579, 0.16937091946601868, 0.03425442427396774, 0.02661605179309845, -0.047807544469833374, 0.27987608313560486, 0.48231542110443115, 0.4603535830974579, 0.4028944671154022, 0.03313571587204933, 0.154613196849823, 0.24732249975204468, 0.12130427360534668, -0.017628774046897888, 0.3462449908256531, 0.5345229506492615, -0.07075875997543335, 0.08726981282234192, 0.3172738254070282, 0.04603913053870201, -0.2671715021133423, 0.2488616555929184, 0.15009355545043945, -0.5585657358169556, 0.4539012908935547, -0.10255196690559387, 0.0002931132912635803, 0.25502532720565796, -0.06470523029565811, -0.4226827025413513, 0.09677724540233612, -0.10730031877756119, -0.333779513835907, -0.18039950728416443, -0.1400972306728363, -0.013258852064609528, 0.28327590227127075, -0.1806480884552002, -0.1493067741394043, -0.11258262395858765, 0.10932029783725739, -0.2914685010910034, -0.04638545215129852, 0.25362569093704224, -0.015251096338033676, 0.020733483135700226, -0.36511945724487305, 0.45347630977630615, -0.0987003892660141, 0.16731934249401093, 0.44612669944763184, 0.20156699419021606, 0.32154688239097595, 0.24384284019470215, 0.04536287486553192, -0.22491514682769775, -0.06035585328936577, -0.01889713481068611, -0.050157610327005386, 0.47961974143981934, 0.3211410641670227, 0.08696746826171875, 0.35201090574264526, 0.07489550113677979, -0.11586830019950867, 0.1930803805589676, 0.3312722146511078, 0.13509708642959595, -0.5197606682777405, -0.0029888227581977844, -0.06654813140630722, -0.006804604083299637, 0.05874001234769821, -0.08620045334100723, -0.09881185740232468, 0.25348392128944397, 0.4602810740470886, 0.17953166365623474, 0.21841788291931152, -0.025550682097673416, 0.02579529583454132, -0.16407474875450134, 0.29480868577957153, 0.29358363151550293, 0.259327232837677, -0.11892115324735641, -0.5376129746437073, -0.365034282207489, 0.4552607834339142, 0.026052705943584442, -0.21758921444416046, 0.28808125853538513, -0.20656782388687134, 0.03987600654363632, 0.275007426738739, -0.12268833816051483, -0.04297330603003502, -0.44557273387908936, 0.051044248044490814, -0.18314416706562042, -0.28484469652175903, -0.16959349811077118, 0.3079342842102051, -0.14264357089996338, -0.5672041773796082, -0.011206228286027908, -0.1254388839006424, -0.08982419967651367, -0.14546819031238556, -0.11415433883666992, 0.23074555397033691, -0.036369770765304565, 0.6767867803573608, 0.12046562135219574, 0.5599495768547058, -0.1479392647743225, 0.08489960432052612, 0.0010020062327384949, -0.2422681450843811, -0.2128593772649765, 0.20538544654846191, -0.006077732890844345, -0.12102764844894409, -0.08956950157880783, -0.07515034079551697, 0.0402020700275898, 0.35316187143325806, 0.32533687353134155, -0.05809367820620537, -0.3416033685207367, -0.07330610603094101, -0.0769859030842781, -0.21926069259643555, 0.008708533830940723, 0.4589928090572357, -0.148932546377182, 0.22754447162151337, -0.06109452620148659, -0.18057389557361603, 0.43014830350875854, -0.21600428223609924, -0.11247614026069641, -0.12485720217227936, 0.1237562969326973, -0.17768341302871704, -0.19185973703861237, -0.5386754870414734, 0.006613984704017639, 0.6520330905914307, -0.04334190487861633, -0.2172873467206955, 0.20999236404895782, -0.03385945037007332, -0.10740101337432861, 0.01910846307873726, 0.8981152772903442, 0.27263981103897095, -0.30107733607292175, -0.032916221767663956, -0.26964491605758667 ]
https://github.com/huggingface/datasets/issues/4247
The data preview of XGLUE
Thanks for reporting @czq1999. Note that the dataset viewer uses the dataset in streaming mode and that not all datasets support streaming yet. That is the case for XGLUE dataset (as the error message points out): this must be refactored to support streaming.
It seems that something wrong with the data previvew of XGLUE
43
The data preview of XGLUE It seems that something wrong with the data previvew of XGLUE Thanks for reporting @czq1999. Note that the dataset viewer uses the dataset in streaming mode and that not all datasets support streaming yet. That is the case for XGLUE dataset (as the error message points out): this must be refactored to support streaming.
[ -0.5521459579467773, -0.2582041621208191, -0.07974901795387268, 0.03600362688302994, 0.12222260236740112, -0.06576669961214066, 0.1930057257413864, 0.3570639491081238, -0.14305727183818817, 0.21194544434547424, 0.05504034459590912, 0.15029464662075043, -0.0410025455057621, 0.21175114810466766, -0.12119430303573608, -0.103528693318367, -0.03538263589143753, 0.15612678229808807, -0.014193803071975708, -0.033040180802345276, -0.16382449865341187, -0.01950976438820362, -0.16465097665786743, 0.31719401478767395, -0.06065541133284569, -0.1546964794397354, 0.11918886005878448, 0.17713499069213867, -0.36872610449790955, -0.25174736976623535, 0.048193372786045074, -0.03556406870484352, 0.047469377517700195, 0.13513684272766113, -0.0000888002832653001, 0.09754577279090881, 0.4998871088027954, 0.023674452677369118, -0.004027353599667549, 0.043062157928943634, -0.5484804511070251, -0.19785769283771515, 0.012065015733242035, 0.03572974354028702, -0.17400804162025452, -0.255950003862381, 0.031793829053640366, -0.2581889033317566, 0.3807077407836914, 0.22808419167995453, 0.41842687129974365, 0.2596811354160309, 0.10056208074092865, -0.3380865752696991, 0.16272124648094177, -0.19840125739574432, -0.2186642587184906, 0.20138047635555267, 0.25238409638404846, 0.06128888577222824, -0.11508985608816147, 0.40634649991989136, -0.0525493323802948, 0.08020481467247009, -0.0007660463452339172, -0.1896662414073944, 0.14416857063770294, -0.22025063633918762, -0.0034506581723690033, 0.11160890758037567, 0.44089946150779724, -0.21354636549949646, -0.231253981590271, -0.053295206278562546, 0.12217847257852554, -0.15375062823295593, 0.14115607738494873, 0.11345066875219345, -0.07910780608654022, 0.02252904139459133, -0.13112515211105347, -0.12335764616727829, -0.08347080647945404, 0.019036266952753067, -0.11581481993198395, 0.15153510868549347, -0.22040751576423645, 0.09352486580610275, 0.040030188858509064, 0.00988023728132248, 0.34674715995788574, 0.002141932025551796, -0.3371056914329529, -0.09219086915254593, -0.2756006717681885, -0.009216412901878357, 0.15303373336791992, 0.08661901205778122, 0.11424016207456589, 0.01243683509528637, 0.29631704092025757, 0.1788160800933838, 0.11455385386943817, 0.1492968499660492, 0.14437751471996307, 0.0063179973512887955, 0.1353473961353302, -0.12497808039188385, 0.25677019357681274, -0.10902772843837738, 0.07140274345874786, -0.1256186068058014, -0.04532306268811226, -0.3390524089336395, -0.3305177390575409, 0.07904189825057983, 0.32324355840682983, -0.22819967567920685, -0.5085453987121582, 0.05861930176615715, -0.08622286468744278, 0.23710593581199646, 0.01334022544324398, 0.25238457322120667, 0.01184021309018135, -0.06095026433467865, 0.19212478399276733, 0.2921145558357239, -0.13938097655773163, -0.44425052404403687, -0.25715553760528564, -0.026788663119077682, -0.23182334005832672, 0.018531035631895065, 0.03973435238003731, -0.08550867438316345, 0.14303241670131683, 0.30984118580818176, 0.05454453080892563, -0.0494302362203598, 0.1769217550754547, -0.005349635612219572, -0.16443195939064026, 0.10221829265356064, 0.1171388328075409, 0.14119596779346466, 0.3257894217967987, 0.19345910847187042, 0.15942293405532837, 0.05551436170935631, -0.09254121035337448, -0.3519901633262634, -0.21703346073627472, 0.3913528025150299, 0.11392755806446075, 0.01932043954730034, 0.046314921230077744, 0.2266852855682373, -0.07584088295698166, -0.26025184988975525, -0.13248515129089355, -0.0882875993847847, -0.005810905247926712, -0.12945808470249176, 0.18817627429962158, 0.1792834997177124, -0.4906889498233795, 0.008622437715530396, -0.16231945157051086, -0.29648593068122864, 0.18881654739379883, 0.11015164852142334, -0.2921290099620819, -0.1897450089454651, -0.3092605471611023, 0.20679201185703278, 0.16947981715202332, -0.04436468705534935, -0.21023787558078766, 0.3532876670360565, -0.21464507281780243, -0.09939125180244446, -0.13464230298995972, 0.019171303138136864, 0.11498603224754333, -0.05347461625933647, -0.07721804082393646, 0.1124432161450386, -0.10304196178913116, 0.012029072269797325, -0.2893350422382355, 0.0005555432289838791, -0.07123442739248276, 0.15244019031524658, -0.09786371886730194, -0.010770231485366821, 0.1681022047996521, -0.09468592703342438, 0.279193252325058, -0.028680365532636642, -0.01966523379087448, 0.24718211591243744, 0.20104828476905823, -0.053516194224357605, -0.20387938618659973, 0.12945380806922913, -0.13016840815544128, 0.021990396082401276, -0.22454006969928741, 0.03449283912777901, 0.17991314828395844, -0.1156206950545311, -0.15885475277900696, 0.011849215254187584, -0.2184138149023056, -0.1471189260482788, 0.3905779719352722, 0.15437012910842896, -0.22485503554344177, 0.06244812533259392, 0.031668249517679214, 0.20592866837978363, -0.1893921047449112, -0.12267554551362991, -0.10135915875434875, 0.12886713445186615, -0.22359497845172882, -0.25379106402397156, 0.17826969921588898, -0.07965146750211716, 0.14839893579483032, 0.04680846631526947, -0.09799347072839737, 0.45768481492996216, -0.11067657917737961, 0.3131672739982605, 0.057898201048374176, -0.03166501224040985, 0.08885683864355087, -0.36732175946235657, 0.1442394107580185, 0.1342942714691162, 0.0536239854991436, 0.02340007573366165, -0.01376565545797348, 0.26805582642555237, 0.38481056690216064, -0.18623539805412292, -0.049435652792453766, 0.14019927382469177, 0.26280900835990906, 0.019765358418226242, 0.016997212544083595, -0.1004287600517273, 0.2598281502723694, -0.05371801182627678, 0.1447048932313919, -0.14705145359039307, -0.589155912399292, 0.1186019703745842, 0.2547583281993866, 0.08461804687976837, 0.16567504405975342, 0.03859151154756546, -0.34622031450271606, -0.16416847705841064, 0.19083565473556519, 0.047372665256261826, 0.17911939322948456, 0.1736554056406021, 0.12085898220539093, 0.20705099403858185, -0.15336854755878448, -0.2157837599515915, 0.14890331029891968, -0.15657566487789154, 0.010454597882926464, 0.24345597624778748, -0.07070104777812958, -0.17294126749038696, -0.3832854926586151, -0.007873324677348137, 0.11056260019540787, 0.13029004633426666, -0.22339698672294617, -0.18893703818321228, -0.19451750814914703, -0.37832778692245483, 0.10527264326810837, -0.04351547732949257, -0.11477015912532806, -0.3888987898826599, 0.2681457996368408, 0.1734015792608261, -0.20776553452014923, 0.36424490809440613, 0.048230674117803574, 0.11354248970746994, 0.2554589509963989, 0.29449260234832764, -0.29454532265663147, 0.047711048275232315, -0.1489836871623993, 0.27679434418678284, 0.0773840993642807, 0.10575972497463226, 0.23635084927082062, 0.0023715030401945114, 0.2875939607620239, -0.5034888386726379, -0.1081455871462822, 0.13681980967521667, -0.10513849556446075, 0.31655848026275635, 0.1269257664680481, 0.11541038006544113, -0.06356599181890488, -0.12524764239788055, 0.25866129994392395, -0.37546709179878235, -0.16594436764717102, 0.17187842726707458, 0.05995141714811325, -0.16485853493213654, -0.06854325532913208, -0.0946599617600441, -0.16878247261047363, -0.5968083143234253, -0.14509928226470947, -0.2440507411956787, -0.0441097691655159, 0.04452570155262947, 0.11994542181491852, 0.1396401822566986, 0.06833969801664352, -0.12833437323570251, -0.3231896162033081, -0.3418363332748413, 0.17367112636566162, -0.40007930994033813, -0.46100685000419617, 0.05636468157172203, 0.3040463924407959, 0.07830490171909332, 0.09886424988508224, -0.3661194443702698, -0.01974821463227272, -0.0886613056063652, -0.0998033881187439, 0.16551893949508667, -0.2427549511194229, 0.2755677103996277, 0.020851651206612587, -0.32275211811065674, -0.2797148525714874, -0.039353735744953156, -0.010856837034225464, -0.0028734467923641205, 0.1209484413266182, -0.16153734922409058, 0.4241335391998291, 0.033066462725400925, 0.36109989881515503, 0.20057140290737152, -0.02017563208937645, 0.47821044921875, -0.03985554724931717, 0.34833648800849915, -0.21372690796852112, -0.21961860358715057, 0.1571888029575348, -0.015549689531326294, 0.13070730865001678, 0.11718472838401794, -0.12803661823272705, -0.32995450496673584, -0.12914052605628967, 0.1918252557516098, -0.03391771391034126, -0.2152148187160492, -0.14360788464546204, 0.05361413210630417, 0.17526715993881226, 0.08607576787471771, 0.08996162563562393, 0.017116770148277283, -0.005895701237022877, 0.13688278198242188, 0.10689575225114822, 0.24945798516273499, 0.05033259838819504, -0.06817390024662018, 0.19891893863677979, -0.4176979064941406, 0.3623742461204529, -0.11999597400426865, 0.2870175838470459, -0.3253903388977051, -0.09298866987228394, 0.12950441241264343, -0.050442781299352646, 0.3899904489517212, -0.4723752737045288, -0.03577391058206558, 0.18875770270824432, -0.09690306335687637, -0.2844594419002533, 0.02000575140118599, -0.2781220078468323, 0.20291905105113983, 0.23910711705684662, 0.11341580748558044, -0.11275728046894073, -0.08221591264009476, 0.09851032495498657, -0.04536771401762962, -0.02737734653055668, -0.06576304882764816, -0.16145700216293335, -0.13789063692092896, -0.20157454907894135, 0.0716688260436058, -0.04844512790441513, 0.08076665550470352, -0.09336520731449127, -0.16749072074890137, -0.24013186991214752, -0.1003737822175026, -0.024849966168403625, -0.014521896839141846, 0.3208482563495636, -0.10707730799913406, 0.17729470133781433, 0.12866352498531342, 0.24348102509975433, 0.09784559160470963, 0.26612794399261475, 0.4694975018501282, -0.08330179750919342, 0.22635522484779358, -0.14347751438617706, -0.08010769635438919, 0.2601221203804016, -0.06871337443590164, 0.00736912339925766, -0.12862248718738556, 0.3109264373779297, -0.18544180691242218, 0.2073257714509964, 0.3285138010978699, -0.04499435797333717, -0.4785013794898987, -0.17852860689163208, 0.26927053928375244, -0.014737069606781006, -0.027139633893966675, 0.5025726556777954, -0.06478676199913025, -0.12769019603729248, -0.18507131934165955, 0.10773531347513199, 0.8800461292266846, 0.11428329348564148, -0.08991065621376038, 0.317776083946228, 0.021184414625167847, 0.028366731479763985, -0.2200545370578766, 0.20122893154621124, -0.37656471133232117, -0.6541301012039185, -0.03276119381189346, -0.0707627385854721, 0.2709606885910034, 0.022693833336234093, -0.2272663116455078, -0.13868264853954315, 0.1341639906167984, -0.15266431868076324, -0.03452056646347046, 0.19522717595100403, -0.24959608912467957, 0.05583469569683075, 0.06737320125102997, 0.41231900453567505, -0.007196344435214996, 0.008751379325985909, -0.14053967595100403, -0.24052514135837555, 0.23260828852653503, -0.16001175343990326, -0.3383333086967468, 0.263912558555603, -0.031999580562114716, 0.20768778026103973, -0.3543664216995239, -0.3552229404449463, 0.10696502029895782, 0.08230993896722794, -0.08085931837558746, 0.08067236840724945, -0.22091391682624817, 0.2187526524066925, 0.02412467822432518, -0.2068982720375061, -0.04457826539874077, 0.0813479870557785, 0.10941487550735474, -0.13704055547714233, -0.10772722959518433, 0.28599104285240173, -0.033782634884119034, -0.3879057765007019, -0.32864779233932495, -0.0725393295288086, -0.1307974010705948, -0.17069658637046814, -0.18252313137054443, -0.04126724600791931, 0.017768293619155884, -0.32958054542541504, 0.31350794434547424, 0.10856850445270538, -0.13561668992042542, -0.045840680599212646, -0.05531090125441551, -0.22722980380058289, -0.14363493025302887, 0.1944599747657776, -0.14269372820854187, 0.08632002770900726, 0.23013629019260406, 0.23612289130687714, -0.23777158558368683, -0.3332372009754181, 0.10596748441457748, 0.5130283832550049, -0.3311472535133362, 0.0334056094288826, -0.09192200750112534, -0.027539178729057312, 0.1932058483362198, 0.1819596141576767, 0.05090731009840965, 0.03936946392059326, 0.08905400335788727, -0.39772292971611023, -0.1354023665189743, 0.1011824905872345, -0.14330871403217316, 0.24613478779792786, -0.12024901807308197, -0.011387044563889503, 0.28105881810188293, -0.04834440350532532, -0.5324066281318665, -0.034617677330970764, -0.22543086111545563, 0.05651186779141426, -0.12400244176387787, -0.012502260506153107, 0.17397050559520721, 0.08254349231719971, 0.3056163787841797, 0.08684942126274109, -0.2916185259819031, -0.33378881216049194, 0.07928463816642761, 0.03788444399833679, 0.19091230630874634, -0.11547794938087463, 0.13602858781814575, -0.041545845568180084, -0.2581198513507843, 0.013173231855034828, 0.18939714133739471, -0.057164452970027924, -0.13038866221904755, -0.22244156897068024, 0.008868753910064697, 0.06611286848783493, 0.09543441236019135, -0.00003619492053985596, 0.15449409186840057, 0.24732336401939392, -0.22519010305404663, -0.08547613024711609, 0.0820189118385315, -0.12131944298744202, 0.11865756660699844, 0.12909677624702454, 0.14515401422977448, 0.20004069805145264, 0.26207461953163147, -0.22963197529315948, 0.23034080862998962, 0.05097908526659012, 0.5795536041259766, 0.195347860455513, -0.22001755237579346, 0.06946820765733719, 0.23828956484794617, 0.43713465332984924, -0.29013320803642273, -0.08102316409349442, -0.10572674870491028, 0.023762112483382225, 0.13353151082992554, -0.12968888878822327, 0.03652499243617058, 0.1743272840976715, 0.24424335360527039, 0.09044591337442398, 0.22346697747707367, -0.2483455091714859, 0.1572929173707962, 0.21929244697093964, -0.21226927638053894, 0.04202383756637573, 0.18387101590633392, 0.26440009474754333, 0.06452438235282898, 0.447471022605896, -0.035769298672676086, 0.2503799796104431, 0.41189897060394287, 0.15341965854167938, -0.051710717380046844, -0.4567917585372925, -0.16541045904159546, 0.28546446561813354, -0.11068685352802277, 0.2408401370048523, -0.03682029992341995, -0.20667824149131775, -0.3084465265274048, -0.16525675356388092, -0.2829466760158539, 0.2251293808221817, -0.1565857231616974, 0.10570231080055237, -0.1501256823539734, -0.029010169208049774, -0.08392888307571411, 0.09659655392169952, 0.08539704978466034, 0.13045009970664978, 0.0881677120923996, -0.010327905416488647, 0.0014167875051498413, -0.3124619722366333, 0.18665149807929993, 0.12439848482608795, -0.04968341439962387, -0.19238391518592834, 0.27922964096069336, 0.06795978546142578, 0.2431175410747528, 0.22291329503059387, 0.2615630328655243, 0.3149986267089844, 0.359289288520813, -0.10655489563941956, 0.16119350492954254, -0.02242020145058632, -0.10655112564563751, -0.05148027464747429, 0.2132667750120163, 0.3184196650981903, 0.1891273707151413, 0.4521964192390442, 0.3416355550289154, -0.28476136922836304, 0.028584446758031845, 0.08244341611862183, 0.287783145904541, -0.03946852311491966, 0.06032167747616768, -0.18040621280670166, 0.012931860983371735, -0.21400049328804016, -0.25247207283973694, -0.3626013696193695, 0.1341649293899536, 0.2779536545276642, -0.057372719049453735, 0.06083963066339493, -0.22079475224018097, 0.2240384817123413, 0.01851065456867218, 0.31158384680747986, 0.22001491487026215, 0.3199821412563324, -0.1696663498878479, -0.44819867610931396, -0.5387303233146667, 0.2690965533256531, 0.16276681423187256, -0.12897542119026184, -0.021137163043022156, 0.08853474259376526, 0.07346838712692261, 0.03233027085661888, 0.09233197569847107, 0.14815367758274078, 0.06821522116661072, 0.12051164358854294, -0.2371271699666977, 0.10748212039470673, 0.12884697318077087, 0.08332790434360504, 0.09734216332435608, -0.20238617062568665, 0.22698943316936493, 0.06144013628363609, 0.32211628556251526, -0.07140003889799118, 0.013915657997131348, -0.18506300449371338, -0.15121474862098694, 0.4982869625091553, 0.07261128723621368, 0.31547117233276367, -0.21620821952819824, -0.015656255185604095, -0.29333433508872986, -0.39145058393478394, -0.2921658754348755, 0.17744436860084534, 0.10558240115642548, 0.2452092468738556, 0.12890923023223877, -0.15567535161972046, -0.31528595089912415, 0.17076162993907928, -0.0022411681711673737, 0.17972370982170105, -0.27888262271881104, 0.27973473072052, -0.04987948760390282, 0.033785831183195114, 0.06120186671614647, 0.05148373916745186, 0.06920742243528366, 0.14432963728904724, -0.20866794884204865, -0.3880787789821625, 0.3675262928009033, 0.007576850242912769, -0.16963070631027222, 0.1411444991827011, 0.07421833276748657, 0.12814688682556152, -0.04717464745044708, -0.45169755816459656, 0.11122413724660873, 0.20016708970069885, -0.06186347454786301, -0.019302353262901306, 0.05353295058012009, 0.05567020922899246, -0.06602797657251358, -0.03615347295999527, 0.3800409734249115, 0.25158825516700745, -0.21225813031196594, 0.37196841835975647, -0.1326690912246704 ]
https://github.com/huggingface/datasets/issues/4241
NonMatchingChecksumError when attempting to download GLUE
Hi :) I think your issue may be related to the older `nlp` library. I was able to download `glue` with the latest version of `datasets`. Can you try updating with: ```py pip install -U datasets ``` Then you can download: ```py from datasets import load_dataset ds = load_dataset("glue", "rte") ```
## Describe the bug I am trying to download the GLUE dataset from the NLP module but get an error (see below). ## Steps to reproduce the bug ```python import nlp nlp.__version__ # '0.2.0' nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ``` ## Expected results I expect the dataset to download without an error. ## Actual results ``` INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports. INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0) INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805 Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0... Downloading: 100%|██████████| 73.0/73.0 [00:00<00:00, 73.9kB/s] INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-7-669a8343dcc1> in <module> ----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 418 verify_infos = not save_infos and not ignore_verifications 419 self._download_and_prepare( --> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 421 ) 422 # Sync info ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 458 # Checksums verification 459 if verify_infos: --> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums()) 461 for split_generator in split_generators: 462 if str(split_generator.split_info.name).lower() == "all": ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums) 34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] 35 if len(bad_urls) > 0: ---> 36 raise NonMatchingChecksumError(str(bad_urls)) 37 logger.info("All the checksums matched successfully.") 38 NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa - Python version: 3.6.13 - PyArrow version: 6.0.1 - Pandas version: 1.1.5
51
NonMatchingChecksumError when attempting to download GLUE ## Describe the bug I am trying to download the GLUE dataset from the NLP module but get an error (see below). ## Steps to reproduce the bug ```python import nlp nlp.__version__ # '0.2.0' nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ``` ## Expected results I expect the dataset to download without an error. ## Actual results ``` INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports. INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0) INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805 Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0... Downloading: 100%|██████████| 73.0/73.0 [00:00<00:00, 73.9kB/s] INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-7-669a8343dcc1> in <module> ----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 418 verify_infos = not save_infos and not ignore_verifications 419 self._download_and_prepare( --> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 421 ) 422 # Sync info ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 458 # Checksums verification 459 if verify_infos: --> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums()) 461 for split_generator in split_generators: 462 if str(split_generator.split_info.name).lower() == "all": ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums) 34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] 35 if len(bad_urls) > 0: ---> 36 raise NonMatchingChecksumError(str(bad_urls)) 37 logger.info("All the checksums matched successfully.") 38 NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa - Python version: 3.6.13 - PyArrow version: 6.0.1 - Pandas version: 1.1.5 Hi :) I think your issue may be related to the older `nlp` library. I was able to download `glue` with the latest version of `datasets`. Can you try updating with: ```py pip install -U datasets ``` Then you can download: ```py from datasets import load_dataset ds = load_dataset("glue", "rte") ```
[ 0.10109929740428925, -0.09036897122859955, 0.04133753105998039, 0.3583335876464844, 0.1278837025165558, 0.09994635730981827, -0.18665249645709991, 0.33458212018013, 0.49528300762176514, -0.10534536838531494, -0.13941587507724762, 0.1311294436454773, -0.06583065539598465, -0.14572355151176453, 0.031415995210409164, 0.19709573686122894, -0.08479420095682144, 0.15717372298240662, -0.178575336933136, 0.04896526038646698, -0.19968780875205994, 0.43306195735931396, -0.11952199786901474, 0.040045659989118576, 0.014287898316979408, 0.1346404254436493, 0.02995120920240879, 0.13659998774528503, -0.05342962592840195, -0.2835942506790161, 0.3455580174922943, -0.00929456576704979, 0.021373968571424484, -0.03618226200342178, -0.00012161818449385464, -0.08552871644496918, 0.525783360004425, -0.08840195089578629, -0.13488854467868805, -0.29597043991088867, -0.38023462891578674, -0.5503150224685669, 0.006685919128358364, -0.09618587791919708, 0.09667054563760757, 0.3906281292438507, 0.1722320169210434, -0.030502736568450928, 0.06562696397304535, 0.1305411159992218, 0.18088041245937347, 0.4154946208000183, 0.30721938610076904, 0.07067574560642242, 0.45523324608802795, -0.20163534581661224, -0.054392628371715546, 0.3369397521018982, 0.23459187150001526, -0.26033949851989746, -0.12470623105764389, 0.2610802948474884, -0.18409468233585358, 0.2867007255554199, 0.09613880515098572, -0.08303705602884293, 0.15311571955680847, -0.3792448937892914, 0.09305714815855026, 0.35195234417915344, 0.1773495078086853, -0.3612276613712311, -0.13889364898204803, -0.31006482243537903, 0.011405621655285358, 0.007769918069243431, 0.4205726087093353, 0.3016948699951172, -0.17558130621910095, -0.03859629109501839, -0.17048218846321106, 0.09011167287826538, 0.11619403958320618, 0.21517205238342285, 0.386319637298584, 0.17614136636257172, -0.08789162337779999, 0.08249348402023315, 0.14764359593391418, -0.10051195323467255, -0.008235187269747257, -0.1965816169977188, -0.12906914949417114, 0.24699680507183075, -0.3864898383617401, -0.04440174624323845, -0.01583673804998398, 0.6644977927207947, 0.18614321947097778, 0.29254084825515747, -0.009191633202135563, -0.030058488249778748, -0.14467695355415344, 0.1644214242696762, 0.17934811115264893, 0.3003143072128296, 0.18856340646743774, -0.0740521177649498, 0.07943745702505112, 0.16537053883075714, 0.04968476668000221, 0.22572609782218933, 0.05685313418507576, -0.2562081217765808, 0.2907198369503021, 0.09413650631904602, 0.19161328673362732, -0.30922627449035645, -0.3434300422668457, 0.1204260066151619, -0.14957347512245178, 0.002338212449103594, 0.02551925554871559, 0.12293591350317001, -0.3592919111251831, 0.14008671045303345, -0.023443862795829773, 0.12421007454395294, -0.2180601805448532, -0.28922298550605774, -0.1690937578678131, 0.13208812475204468, -0.24426257610321045, -0.11276958137750626, 0.3060970604419708, -0.23346111178398132, 0.213191419839859, 0.0010493900626897812, -0.23089148104190826, -0.17103108763694763, 0.03703417629003525, 0.04232655465602875, -0.17602550983428955, 0.2953123450279236, 0.10156849026679993, 0.27077507972717285, 0.10435435175895691, -0.0709824487566948, -0.18616217374801636, -0.10211511701345444, -0.15916669368743896, -0.3060447871685028, -0.047227807343006134, 0.12426131218671799, -0.6101953983306885, -0.21291184425354004, 0.2077891081571579, -0.26212629675865173, 0.2258606255054474, -0.2571164071559906, 0.13071195781230927, -0.17913419008255005, -0.20849350094795227, -0.3809020519256592, -0.17310084402561188, 0.4396270513534546, 0.12640464305877686, -0.07258334755897522, -0.2183264195919037, -0.2440311312675476, 0.34701767563819885, 0.12568479776382446, -0.018699370324611664, -0.23574033379554749, -0.3712148368358612, 0.2576879858970642, 0.43746623396873474, -0.31154564023017883, -0.6150577664375305, 0.3652879297733307, -0.16994811594486237, 0.30365413427352905, 0.09240352362394333, 0.22905293107032776, -0.19152861833572388, -0.08732771128416061, 0.12951108813285828, 0.18142560124397278, 0.1030651181936264, -0.00524529442191124, -0.317266047000885, -0.27885308861732483, 0.4282630681991577, -0.005389397963881493, -0.13096699118614197, 0.08552443981170654, 0.10658622533082962, -0.16520197689533234, 0.2864401340484619, 0.28595659136772156, 0.06897982209920883, 0.18309706449508667, 0.18533068895339966, 0.04942092299461365, 0.026598788797855377, -0.3794982433319092, -0.7864266633987427, 0.32659459114074707, -0.4060387909412384, 0.024919042363762856, -0.10630175471305847, -0.04720411077141762, -0.24022671580314636, -0.1339792013168335, -0.11073288321495056, -0.01119428500533104, 0.05656517297029495, 0.2184280902147293, 0.531542956829071, -0.07858788967132568, -0.010380856692790985, 0.5592601299285889, 0.16989392042160034, 0.14052779972553253, -0.5649153590202332, 0.25979912281036377, -0.010907595977187157, -0.11346225440502167, 0.04674868285655975, 0.2994387745857239, 0.3033802807331085, -0.12082026153802872, -0.0709303617477417, 0.4346716105937958, 0.04283861070871353, 0.14471273124217987, -0.1746300756931305, 0.14816531538963318, -0.10645971447229385, -0.055820513516664505, 0.04343891143798828, 0.5169602036476135, 0.05886095017194748, -0.004267744719982147, 0.08241578191518784, 0.29523012042045593, -0.013067778199911118, 0.3511831760406494, 0.04645019769668579, 0.3188764750957489, 0.15528231859207153, -0.24732263386249542, -0.1867334097623825, -0.1834179311990738, 0.4812347888946533, -0.16271324455738068, 0.04703192040324211, 0.1648605763912201, -0.15686577558517456, 0.021985307335853577, 0.26268699765205383, 0.0421094112098217, 0.15085618197917938, -0.04833592474460602, -0.07104793936014175, -0.023757580667734146, 0.08806124329566956, 0.7036218047142029, 0.5566291809082031, 0.13603711128234863, -0.014487091451883316, 0.1789044886827469, -0.33050617575645447, -0.07904182374477386, 0.058251090347766876, 0.15881767868995667, 0.03568835183978081, 0.4164252281188965, 0.3046114444732666, -0.0988498330116272, -0.3169165253639221, 0.07696790993213654, -0.014908462762832642, 0.1760685294866562, -0.43343523144721985, -0.10394057631492615, -0.3194671869277954, -0.5301973223686218, -0.4441394805908203, -0.20814409852027893, -0.49189871549606323, -0.3554679751396179, -0.07142279297113419, 0.21841949224472046, 0.020668596029281616, 0.12692908942699432, -0.39431461691856384, -0.1560411900281906, -0.27955061197280884, -0.18160925805568695, -0.12696200609207153, 0.21982154250144958, -0.3106191158294678, -0.09355548024177551, 0.24918322265148163, 0.1067034974694252, 0.44361618161201477, -0.16334140300750732, 0.03503714129328728, -0.43485963344573975, -0.20060554146766663, 0.06413650512695312, -0.020598385483026505, 0.006118397228419781, 0.570024311542511, -0.059078648686409, 0.041995398700237274, -0.2881832420825958, 0.37463000416755676, -0.2893909215927124, -0.2600165009498596, 0.29312801361083984, 0.030006730929017067, 0.09750719368457794, -0.11835013329982758, -0.08365906029939651, -0.30314701795578003, -0.44396916031837463, 0.2543148398399353, 0.13396777212619781, 0.22065286338329315, 0.3498122990131378, -0.29949772357940674, 0.18990135192871094, -0.13442163169384003, 0.1561608612537384, -0.1234244629740715, -0.18007417023181915, 0.3823334276676178, 0.10785998404026031, -0.23580490052700043, 0.04759310558438301, -0.2174377143383026, 0.027033235877752304, 0.16042573750019073, -0.45681101083755493, -0.3046095371246338, -0.41392630338668823, -0.19373847544193268, 0.1440286785364151, 0.1968611180782318, 0.33220040798187256, -0.05304507538676262, 0.023506077006459236, -0.14484360814094543, -0.2895027697086334, 0.1296968162059784, 0.2003522515296936, 0.39212924242019653, -0.030800923705101013, 0.2616482377052307, 0.1037624180316925, 0.21090620756149292, 0.42872706055641174, 0.11372853815555573, 0.22750775516033173, 0.03054511360824108, 0.4236614406108856, 0.13872188329696655, -0.2945229411125183, -0.28555309772491455, -0.13589602708816528, 0.24124164879322052, 0.01198790967464447, 0.09284359216690063, -0.11044330894947052, -0.2139081209897995, -0.04500587284564972, -0.193815678358078, -0.15340478718280792, -0.08971678465604782, -0.04783686250448227, 0.14507344365119934, 0.35822752118110657, -0.05504825711250305, -0.08206820487976074, -0.4420188069343567, 0.019081691280007362, 0.1489132046699524, -0.16811972856521606, 0.10721457004547119, -0.32444119453430176, -0.15697649121284485, -0.23326504230499268, 0.4224810004234314, 0.20477710664272308, 0.530205249786377, 0.17844708263874054, -0.10688690096139908, 0.13696172833442688, 0.013492260128259659, 0.5240299701690674, -0.45484691858291626, 0.29986393451690674, 0.10826849937438965, 0.08534246683120728, -0.527126669883728, -0.22267375886440277, -0.1550503969192505, 0.12804299592971802, 0.5835402607917786, 0.111040860414505, -0.3861956298351288, -0.0021308802533894777, 0.3476581275463104, 0.1632358878850937, -0.04774094745516777, -0.5096206665039062, -0.34276819229125977, -0.06418988108634949, -0.21629829704761505, -0.2348625361919403, -0.009957159869372845, 0.2137233465909958, 0.2468937486410141, 0.15565544366836548, 0.1609463095664978, -0.19257107377052307, 0.23922765254974365, -0.22560620307922363, 0.1833851933479309, 0.20239508152008057, 0.31267204880714417, 0.028342455625534058, 0.30388423800468445, -0.5334832072257996, 0.5812401175498962, -0.2502611577510834, -0.09658843278884888, -0.05337835103273392, 0.07050887495279312, 0.05919057875871658, 0.18379062414169312, 0.025740191340446472, -0.09274327009916306, 0.13116835057735443, -0.06101837754249573, 0.09626759588718414, -0.095465749502182, 0.15781927108764648, -0.006160987541079521, -0.12567846477031708, -0.09592065215110779, 0.4340279698371887, 0.007495468482375145, -0.13532423973083496, 0.15093904733657837, 0.07182546705007553, -0.08094783127307892, 0.112661212682724, -0.27946949005126953, 0.9074921011924744, 0.11259493231773376, 0.07416999340057373, 0.0045775920152664185, -0.4574741721153259, 0.656071662902832, 0.03600391000509262, 0.1841704100370407, -0.46817687153816223, -0.08516641706228256, 0.04961497336626053, -0.26151785254478455, -0.16423210501670837, 0.02748478762805462, -0.006474532186985016, 0.5504637360572815, 0.07682684063911438, 0.14552365243434906, 0.03189519792795181, 0.2013775110244751, -0.4061574637889862, -0.14401833713054657, -0.1673385202884674, 0.04051530361175537, -0.22378121316432953, 0.7441257238388062, -0.07091522216796875, -0.1167256236076355, 0.1838986873626709, -0.2870452404022217, -0.40197640657424927, 0.23979544639587402, -0.30365103483200073, 0.13495907187461853, 0.607768714427948, 0.20345370471477509, -0.1703050583600998, -0.050094012171030045, -0.016769811511039734, 0.00809023529291153, -0.3036355674266815, -0.1195635199546814, 0.542780339717865, -0.06736098974943161, 0.45467111468315125, 0.19283494353294373, 0.35880473256111145, -0.06663855910301208, 0.0899357870221138, -0.17053470015525818, 0.007104787044227123, -0.20700684189796448, -0.030374400317668915, 0.009554289281368256, 0.05915207415819168, -0.1838959902524948, -0.38971295952796936, 0.030842363834381104, 0.12030363082885742, -0.10133805871009827, 0.07264170050621033, 0.22105583548545837, -0.1793542355298996, 0.08494041860103607, -0.08892850577831268, -0.2805381119251251, -0.08685523271560669, 0.6393256783485413, 0.01489080861210823, -0.3292558193206787, 0.23483484983444214, -0.027820507064461708, -0.2667515277862549, -0.08021911978721619, -0.22151467204093933, -0.1944373995065689, -0.544978678226471, 0.06433670222759247, -0.19784018397331238, 0.09865023195743561, -0.04963215813040733, 0.18277524411678314, 0.368588924407959, 0.15635406970977783, 0.09938888251781464, -0.5790286660194397, -0.015559207648038864, 0.1929791271686554, 0.1808631420135498, 0.14476701617240906, -0.35607853531837463, -0.04223797470331192, 0.3165523409843445, -0.14228121936321259, -0.21351811289787292, -0.0034620575606822968, -0.126059427857399, -0.09687536954879761, 0.3603154718875885, 0.04521477222442627, -0.013770066201686859, 0.10619795322418213, 0.07205691933631897, 0.11686437577009201, -0.3167320489883423, -0.08848657459020615, -0.15274541079998016, 0.1726250797510147, 0.05764066427946091, -0.07887371629476547, 0.16884353756904602, -0.2341231256723404, -0.02155463397502899, -0.024127937853336334, -0.29718202352523804, 0.11610617488622665, -0.18568365275859833, 0.05592040345072746, 0.0884917601943016, -0.1751752495765686, 0.03374480456113815, 0.2654247581958771, -0.30470263957977295, 0.0013712123036384583, 0.04889883100986481, 0.05692968890070915, -0.01793820969760418, 0.11433912813663483, -0.038344550877809525, -0.20611512660980225, -0.19812561571598053, 0.006702300161123276, 0.1854364275932312, -0.33706140518188477, -0.1511666476726532, 0.17484483122825623, 0.38530614972114563, 0.3413943946361542, -0.10198967903852463, -0.007428639568388462, 0.21279069781303406, 0.15388505160808563, -0.33578816056251526, 0.11157749593257904, 0.43950384855270386, 0.174428328871727, -0.016178235411643982, 0.27795201539993286, 0.11780959367752075, -0.37872520089149475, 0.6482069492340088, 0.1150420680642128, 0.3300824463367462, -0.4150668978691101, -0.09018580615520477, 0.30158233642578125, 0.04009590670466423, -0.15848253667354584, 0.2599179744720459, -0.11418472230434418, -0.028526492416858673, 0.011471133679151535, 0.23644930124282837, 0.0076604560017585754, -0.1684253215789795, 0.12506689131259918, -0.05400656908750534, -0.2802582383155823, 0.0911533385515213, 0.477028489112854, 0.1346815824508667, 0.2644307017326355, 0.05584222823381424, 0.4429790675640106, -0.19820614159107208, 0.19507433474063873, -0.25579118728637695, 0.11156050860881805, -0.04451705515384674, -0.08405335247516632, 0.29567593336105347, -0.10299474000930786, -0.2377019226551056, 0.15436288714408875, -0.026793289929628372, -0.01490987092256546, 0.33932769298553467, 0.004353165626525879, -0.02548820525407791, -0.4787934124469757, -0.12146758288145065, 0.119218610227108, 0.11266777664422989, -0.44818007946014404, 0.29386231303215027, -0.11795170605182648, -0.034772612154483795, -0.11899527907371521, 0.3610725998878479, 0.36559000611305237, 0.34784603118896484, -0.15627795457839966, -0.0862891674041748, -0.0487666092813015, 0.13466857373714447, -0.20934443175792694, 0.6926758885383606, 0.17500242590904236, 0.028619319200515747, 0.3427124619483948, -0.012541111558675766, -0.10846204310655594, -0.07264618575572968, -0.13558745384216309, -0.2506990432739258, -0.060250960290431976, 0.7412418723106384, -0.1498289704322815, 0.006200812757015228, -0.3056183159351349, 0.22233399748802185, -0.522416889667511, -0.13308008015155792, -0.005643283948302269, 0.039457470178604126, 0.1830088496208191, -0.19273202121257782, 0.05845201015472412, -0.2214440107345581, 0.24042434990406036, 0.26171666383743286, 0.11757500469684601, -0.12710227072238922, -0.2558742165565491, -0.7973658442497253, 0.26134923100471497, -0.21417757868766785, -0.023909296840429306, 0.07809891551733017, 0.2264161854982376, -0.26737502217292786, 0.12648454308509827, 0.06944677233695984, 0.4015747308731079, -0.2880695164203644, -0.11847299337387085, -0.024275239557027817, -0.14975644648075104, 0.17722246050834656, -0.23531988263130188, 0.17296509444713593, -0.4081309139728546, 0.12386412918567657, -0.06675688922405243, -0.007959123700857162, -0.07475218176841736, -0.05729535222053528, -0.11512930691242218, 0.2697470784187317, -0.0042093172669410706, 0.20561915636062622, 0.421077698469162, 0.1774134635925293, -0.15609942376613617, -0.4793812036514282, -0.1635800004005432, -0.2104368954896927, 0.20932263135910034, -0.0642315149307251, 0.2189340591430664, -0.1647108495235443, 0.1495557278394699, -0.2719321548938751, 0.060758866369724274, 0.18780900537967682, 0.209570050239563, -0.0007250187918543816, 0.15354987978935242, -0.287511944770813, 0.27618271112442017, -0.1154032051563263, 0.13517293334007263, 0.12312600016593933, 0.2047523707151413, -0.24252760410308838, -0.4174502491950989, 0.45117679238319397, -0.3280894458293915, -0.34069767594337463, -0.004702985752373934, 0.5532323122024536, -0.06426984816789627, -0.34661054611206055, -0.5323323011398315, -0.09793144464492798, 0.3741297423839569, 0.02771884761750698, 0.015123412013053894, 0.21873541176319122, -0.44491568207740784, 0.049224358052015305, 0.16460958123207092, -0.01571384072303772, 0.23407363891601562, -0.33255133032798767, 0.2653934955596924, -0.20550696551799774 ]
https://github.com/huggingface/datasets/issues/4241
NonMatchingChecksumError when attempting to download GLUE
This appears to work. Thank you! On Wed, Apr 27, 2022, 1:18 PM Steven Liu ***@***.***> wrote: > Hi :) > > I think your issue may be related to the older nlp library. I was able to > download glue with the latest version of datasets. Can you try updating > with: > > pip install -U datasets > > Then you can download: > > from datasets import load_datasetds = load_dataset("glue", "rte") > > — > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/4241#issuecomment-1111267650>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACJUEKLUP2EL7ES3RRWJRPTVHFZHBANCNFSM5UPJBYXA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
## Describe the bug I am trying to download the GLUE dataset from the NLP module but get an error (see below). ## Steps to reproduce the bug ```python import nlp nlp.__version__ # '0.2.0' nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ``` ## Expected results I expect the dataset to download without an error. ## Actual results ``` INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports. INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0) INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805 Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0... Downloading: 100%|██████████| 73.0/73.0 [00:00<00:00, 73.9kB/s] INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-7-669a8343dcc1> in <module> ----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 418 verify_infos = not save_infos and not ignore_verifications 419 self._download_and_prepare( --> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 421 ) 422 # Sync info ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 458 # Checksums verification 459 if verify_infos: --> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums()) 461 for split_generator in split_generators: 462 if str(split_generator.split_info.name).lower() == "all": ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums) 34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] 35 if len(bad_urls) > 0: ---> 36 raise NonMatchingChecksumError(str(bad_urls)) 37 logger.info("All the checksums matched successfully.") 38 NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa - Python version: 3.6.13 - PyArrow version: 6.0.1 - Pandas version: 1.1.5
110
NonMatchingChecksumError when attempting to download GLUE ## Describe the bug I am trying to download the GLUE dataset from the NLP module but get an error (see below). ## Steps to reproduce the bug ```python import nlp nlp.__version__ # '0.2.0' nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ``` ## Expected results I expect the dataset to download without an error. ## Actual results ``` INFO:nlp.load:Checking /home/richier/.cache/huggingface/datasets/5fe6ab0df8a32a3371b2e6a969d31d855a19563724fb0d0f163748c270c0ac60.2ea96febf19981fae5f13f0a43d4e2aa58bc619bc23acf06de66675f425a5538.py for additional imports. INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.py INFO:nlp.load:Found dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/dataset_infos.json to /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/dataset_infos.json INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/glue/glue.py at /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4/glue.json INFO:nlp.info:Loading Dataset Infos from /home/richier/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/datasets/glue/637080968c182118f006d3ea39dd9937940e81cfffc8d79836eaae8bba307fc4 INFO:nlp.builder:Generating dataset glue (/home/richier/.cache/huggingface/datasets/glue/rte/1.0.0) INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source INFO:nlp.utils.file_utils:Couldn't get ETag version for url https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb INFO:nlp.utils.file_utils:https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb not found in cache or force_download set to True, downloading to /home/richier/.cache/huggingface/datasets/downloads/tmpldt3n805 Downloading and preparing dataset glue/rte (download: 680.81 KiB, generated: 1.83 MiB, total: 2.49 MiB) to /home/richier/.cache/huggingface/datasets/glue/rte/1.0.0... Downloading: 100%|██████████| 73.0/73.0 [00:00<00:00, 73.9kB/s] INFO:nlp.utils.file_utils:storing https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb in cache at /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 INFO:nlp.utils.file_utils:creating metadata file for /home/richier/.cache/huggingface/datasets/downloads/e8b62ee44e6f8b6aea761935928579ffe1aa55d161808c482e0725abbdcf9c64 --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-7-669a8343dcc1> in <module> ----> 1 nlp.load_dataset('glue', name="rte", download_mode="force_redownload") ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 418 verify_infos = not save_infos and not ignore_verifications 419 self._download_and_prepare( --> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 421 ) 422 # Sync info ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 458 # Checksums verification 459 if verify_infos: --> 460 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums()) 461 for split_generator in split_generators: 462 if str(split_generator.split_info.name).lower() == "all": ~/anaconda3/envs/py36_bert_ee_torch1_11/lib/python3.6/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums) 34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] 35 if len(bad_urls) > 0: ---> 36 raise NonMatchingChecksumError(str(bad_urls)) 37 logger.info("All the checksums matched successfully.") 38 NonMatchingChecksumError: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FRTE.zip?alt=media&token=5efa7e85-a0bb-4f19-8ea2-9e1840f077fb'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-4.18.0-348.20.1.el8_5.x86_64-x86_64-with-redhat-8.5-Ootpa - Python version: 3.6.13 - PyArrow version: 6.0.1 - Pandas version: 1.1.5 This appears to work. Thank you! On Wed, Apr 27, 2022, 1:18 PM Steven Liu ***@***.***> wrote: > Hi :) > > I think your issue may be related to the older nlp library. I was able to > download glue with the latest version of datasets. Can you try updating > with: > > pip install -U datasets > > Then you can download: > > from datasets import load_datasetds = load_dataset("glue", "rte") > > — > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/4241#issuecomment-1111267650>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACJUEKLUP2EL7ES3RRWJRPTVHFZHBANCNFSM5UPJBYXA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
[ 0.10109929740428925, -0.09036897122859955, 0.04133753105998039, 0.3583335876464844, 0.1278837025165558, 0.09994635730981827, -0.18665249645709991, 0.33458212018013, 0.49528300762176514, -0.10534536838531494, -0.13941587507724762, 0.1311294436454773, -0.06583065539598465, -0.14572355151176453, 0.031415995210409164, 0.19709573686122894, -0.08479420095682144, 0.15717372298240662, -0.178575336933136, 0.04896526038646698, -0.19968780875205994, 0.43306195735931396, -0.11952199786901474, 0.040045659989118576, 0.014287898316979408, 0.1346404254436493, 0.02995120920240879, 0.13659998774528503, -0.05342962592840195, -0.2835942506790161, 0.3455580174922943, -0.00929456576704979, 0.021373968571424484, -0.03618226200342178, -0.00012161818449385464, -0.08552871644496918, 0.525783360004425, -0.08840195089578629, -0.13488854467868805, -0.29597043991088867, -0.38023462891578674, -0.5503150224685669, 0.006685919128358364, -0.09618587791919708, 0.09667054563760757, 0.3906281292438507, 0.1722320169210434, -0.030502736568450928, 0.06562696397304535, 0.1305411159992218, 0.18088041245937347, 0.4154946208000183, 0.30721938610076904, 0.07067574560642242, 0.45523324608802795, -0.20163534581661224, -0.054392628371715546, 0.3369397521018982, 0.23459187150001526, -0.26033949851989746, -0.12470623105764389, 0.2610802948474884, -0.18409468233585358, 0.2867007255554199, 0.09613880515098572, -0.08303705602884293, 0.15311571955680847, -0.3792448937892914, 0.09305714815855026, 0.35195234417915344, 0.1773495078086853, -0.3612276613712311, -0.13889364898204803, -0.31006482243537903, 0.011405621655285358, 0.007769918069243431, 0.4205726087093353, 0.3016948699951172, -0.17558130621910095, -0.03859629109501839, -0.17048218846321106, 0.09011167287826538, 0.11619403958320618, 0.21517205238342285, 0.386319637298584, 0.17614136636257172, -0.08789162337779999, 0.08249348402023315, 0.14764359593391418, -0.10051195323467255, -0.008235187269747257, -0.1965816169977188, -0.12906914949417114, 0.24699680507183075, -0.3864898383617401, -0.04440174624323845, -0.01583673804998398, 0.6644977927207947, 0.18614321947097778, 0.29254084825515747, -0.009191633202135563, -0.030058488249778748, -0.14467695355415344, 0.1644214242696762, 0.17934811115264893, 0.3003143072128296, 0.18856340646743774, -0.0740521177649498, 0.07943745702505112, 0.16537053883075714, 0.04968476668000221, 0.22572609782218933, 0.05685313418507576, -0.2562081217765808, 0.2907198369503021, 0.09413650631904602, 0.19161328673362732, -0.30922627449035645, -0.3434300422668457, 0.1204260066151619, -0.14957347512245178, 0.002338212449103594, 0.02551925554871559, 0.12293591350317001, -0.3592919111251831, 0.14008671045303345, -0.023443862795829773, 0.12421007454395294, -0.2180601805448532, -0.28922298550605774, -0.1690937578678131, 0.13208812475204468, -0.24426257610321045, -0.11276958137750626, 0.3060970604419708, -0.23346111178398132, 0.213191419839859, 0.0010493900626897812, -0.23089148104190826, -0.17103108763694763, 0.03703417629003525, 0.04232655465602875, -0.17602550983428955, 0.2953123450279236, 0.10156849026679993, 0.27077507972717285, 0.10435435175895691, -0.0709824487566948, -0.18616217374801636, -0.10211511701345444, -0.15916669368743896, -0.3060447871685028, -0.047227807343006134, 0.12426131218671799, -0.6101953983306885, -0.21291184425354004, 0.2077891081571579, -0.26212629675865173, 0.2258606255054474, -0.2571164071559906, 0.13071195781230927, -0.17913419008255005, -0.20849350094795227, -0.3809020519256592, -0.17310084402561188, 0.4396270513534546, 0.12640464305877686, -0.07258334755897522, -0.2183264195919037, -0.2440311312675476, 0.34701767563819885, 0.12568479776382446, -0.018699370324611664, -0.23574033379554749, -0.3712148368358612, 0.2576879858970642, 0.43746623396873474, -0.31154564023017883, -0.6150577664375305, 0.3652879297733307, -0.16994811594486237, 0.30365413427352905, 0.09240352362394333, 0.22905293107032776, -0.19152861833572388, -0.08732771128416061, 0.12951108813285828, 0.18142560124397278, 0.1030651181936264, -0.00524529442191124, -0.317266047000885, -0.27885308861732483, 0.4282630681991577, -0.005389397963881493, -0.13096699118614197, 0.08552443981170654, 0.10658622533082962, -0.16520197689533234, 0.2864401340484619, 0.28595659136772156, 0.06897982209920883, 0.18309706449508667, 0.18533068895339966, 0.04942092299461365, 0.026598788797855377, -0.3794982433319092, -0.7864266633987427, 0.32659459114074707, -0.4060387909412384, 0.024919042363762856, -0.10630175471305847, -0.04720411077141762, -0.24022671580314636, -0.1339792013168335, -0.11073288321495056, -0.01119428500533104, 0.05656517297029495, 0.2184280902147293, 0.531542956829071, -0.07858788967132568, -0.010380856692790985, 0.5592601299285889, 0.16989392042160034, 0.14052779972553253, -0.5649153590202332, 0.25979912281036377, -0.010907595977187157, -0.11346225440502167, 0.04674868285655975, 0.2994387745857239, 0.3033802807331085, -0.12082026153802872, -0.0709303617477417, 0.4346716105937958, 0.04283861070871353, 0.14471273124217987, -0.1746300756931305, 0.14816531538963318, -0.10645971447229385, -0.055820513516664505, 0.04343891143798828, 0.5169602036476135, 0.05886095017194748, -0.004267744719982147, 0.08241578191518784, 0.29523012042045593, -0.013067778199911118, 0.3511831760406494, 0.04645019769668579, 0.3188764750957489, 0.15528231859207153, -0.24732263386249542, -0.1867334097623825, -0.1834179311990738, 0.4812347888946533, -0.16271324455738068, 0.04703192040324211, 0.1648605763912201, -0.15686577558517456, 0.021985307335853577, 0.26268699765205383, 0.0421094112098217, 0.15085618197917938, -0.04833592474460602, -0.07104793936014175, -0.023757580667734146, 0.08806124329566956, 0.7036218047142029, 0.5566291809082031, 0.13603711128234863, -0.014487091451883316, 0.1789044886827469, -0.33050617575645447, -0.07904182374477386, 0.058251090347766876, 0.15881767868995667, 0.03568835183978081, 0.4164252281188965, 0.3046114444732666, -0.0988498330116272, -0.3169165253639221, 0.07696790993213654, -0.014908462762832642, 0.1760685294866562, -0.43343523144721985, -0.10394057631492615, -0.3194671869277954, -0.5301973223686218, -0.4441394805908203, -0.20814409852027893, -0.49189871549606323, -0.3554679751396179, -0.07142279297113419, 0.21841949224472046, 0.020668596029281616, 0.12692908942699432, -0.39431461691856384, -0.1560411900281906, -0.27955061197280884, -0.18160925805568695, -0.12696200609207153, 0.21982154250144958, -0.3106191158294678, -0.09355548024177551, 0.24918322265148163, 0.1067034974694252, 0.44361618161201477, -0.16334140300750732, 0.03503714129328728, -0.43485963344573975, -0.20060554146766663, 0.06413650512695312, -0.020598385483026505, 0.006118397228419781, 0.570024311542511, -0.059078648686409, 0.041995398700237274, -0.2881832420825958, 0.37463000416755676, -0.2893909215927124, -0.2600165009498596, 0.29312801361083984, 0.030006730929017067, 0.09750719368457794, -0.11835013329982758, -0.08365906029939651, -0.30314701795578003, -0.44396916031837463, 0.2543148398399353, 0.13396777212619781, 0.22065286338329315, 0.3498122990131378, -0.29949772357940674, 0.18990135192871094, -0.13442163169384003, 0.1561608612537384, -0.1234244629740715, -0.18007417023181915, 0.3823334276676178, 0.10785998404026031, -0.23580490052700043, 0.04759310558438301, -0.2174377143383026, 0.027033235877752304, 0.16042573750019073, -0.45681101083755493, -0.3046095371246338, -0.41392630338668823, -0.19373847544193268, 0.1440286785364151, 0.1968611180782318, 0.33220040798187256, -0.05304507538676262, 0.023506077006459236, -0.14484360814094543, -0.2895027697086334, 0.1296968162059784, 0.2003522515296936, 0.39212924242019653, -0.030800923705101013, 0.2616482377052307, 0.1037624180316925, 0.21090620756149292, 0.42872706055641174, 0.11372853815555573, 0.22750775516033173, 0.03054511360824108, 0.4236614406108856, 0.13872188329696655, -0.2945229411125183, -0.28555309772491455, -0.13589602708816528, 0.24124164879322052, 0.01198790967464447, 0.09284359216690063, -0.11044330894947052, -0.2139081209897995, -0.04500587284564972, -0.193815678358078, -0.15340478718280792, -0.08971678465604782, -0.04783686250448227, 0.14507344365119934, 0.35822752118110657, -0.05504825711250305, -0.08206820487976074, -0.4420188069343567, 0.019081691280007362, 0.1489132046699524, -0.16811972856521606, 0.10721457004547119, -0.32444119453430176, -0.15697649121284485, -0.23326504230499268, 0.4224810004234314, 0.20477710664272308, 0.530205249786377, 0.17844708263874054, -0.10688690096139908, 0.13696172833442688, 0.013492260128259659, 0.5240299701690674, -0.45484691858291626, 0.29986393451690674, 0.10826849937438965, 0.08534246683120728, -0.527126669883728, -0.22267375886440277, -0.1550503969192505, 0.12804299592971802, 0.5835402607917786, 0.111040860414505, -0.3861956298351288, -0.0021308802533894777, 0.3476581275463104, 0.1632358878850937, -0.04774094745516777, -0.5096206665039062, -0.34276819229125977, -0.06418988108634949, -0.21629829704761505, -0.2348625361919403, -0.009957159869372845, 0.2137233465909958, 0.2468937486410141, 0.15565544366836548, 0.1609463095664978, -0.19257107377052307, 0.23922765254974365, -0.22560620307922363, 0.1833851933479309, 0.20239508152008057, 0.31267204880714417, 0.028342455625534058, 0.30388423800468445, -0.5334832072257996, 0.5812401175498962, -0.2502611577510834, -0.09658843278884888, -0.05337835103273392, 0.07050887495279312, 0.05919057875871658, 0.18379062414169312, 0.025740191340446472, -0.09274327009916306, 0.13116835057735443, -0.06101837754249573, 0.09626759588718414, -0.095465749502182, 0.15781927108764648, -0.006160987541079521, -0.12567846477031708, -0.09592065215110779, 0.4340279698371887, 0.007495468482375145, -0.13532423973083496, 0.15093904733657837, 0.07182546705007553, -0.08094783127307892, 0.112661212682724, -0.27946949005126953, 0.9074921011924744, 0.11259493231773376, 0.07416999340057373, 0.0045775920152664185, -0.4574741721153259, 0.656071662902832, 0.03600391000509262, 0.1841704100370407, -0.46817687153816223, -0.08516641706228256, 0.04961497336626053, -0.26151785254478455, -0.16423210501670837, 0.02748478762805462, -0.006474532186985016, 0.5504637360572815, 0.07682684063911438, 0.14552365243434906, 0.03189519792795181, 0.2013775110244751, -0.4061574637889862, -0.14401833713054657, -0.1673385202884674, 0.04051530361175537, -0.22378121316432953, 0.7441257238388062, -0.07091522216796875, -0.1167256236076355, 0.1838986873626709, -0.2870452404022217, -0.40197640657424927, 0.23979544639587402, -0.30365103483200073, 0.13495907187461853, 0.607768714427948, 0.20345370471477509, -0.1703050583600998, -0.050094012171030045, -0.016769811511039734, 0.00809023529291153, -0.3036355674266815, -0.1195635199546814, 0.542780339717865, -0.06736098974943161, 0.45467111468315125, 0.19283494353294373, 0.35880473256111145, -0.06663855910301208, 0.0899357870221138, -0.17053470015525818, 0.007104787044227123, -0.20700684189796448, -0.030374400317668915, 0.009554289281368256, 0.05915207415819168, -0.1838959902524948, -0.38971295952796936, 0.030842363834381104, 0.12030363082885742, -0.10133805871009827, 0.07264170050621033, 0.22105583548545837, -0.1793542355298996, 0.08494041860103607, -0.08892850577831268, -0.2805381119251251, -0.08685523271560669, 0.6393256783485413, 0.01489080861210823, -0.3292558193206787, 0.23483484983444214, -0.027820507064461708, -0.2667515277862549, -0.08021911978721619, -0.22151467204093933, -0.1944373995065689, -0.544978678226471, 0.06433670222759247, -0.19784018397331238, 0.09865023195743561, -0.04963215813040733, 0.18277524411678314, 0.368588924407959, 0.15635406970977783, 0.09938888251781464, -0.5790286660194397, -0.015559207648038864, 0.1929791271686554, 0.1808631420135498, 0.14476701617240906, -0.35607853531837463, -0.04223797470331192, 0.3165523409843445, -0.14228121936321259, -0.21351811289787292, -0.0034620575606822968, -0.126059427857399, -0.09687536954879761, 0.3603154718875885, 0.04521477222442627, -0.013770066201686859, 0.10619795322418213, 0.07205691933631897, 0.11686437577009201, -0.3167320489883423, -0.08848657459020615, -0.15274541079998016, 0.1726250797510147, 0.05764066427946091, -0.07887371629476547, 0.16884353756904602, -0.2341231256723404, -0.02155463397502899, -0.024127937853336334, -0.29718202352523804, 0.11610617488622665, -0.18568365275859833, 0.05592040345072746, 0.0884917601943016, -0.1751752495765686, 0.03374480456113815, 0.2654247581958771, -0.30470263957977295, 0.0013712123036384583, 0.04889883100986481, 0.05692968890070915, -0.01793820969760418, 0.11433912813663483, -0.038344550877809525, -0.20611512660980225, -0.19812561571598053, 0.006702300161123276, 0.1854364275932312, -0.33706140518188477, -0.1511666476726532, 0.17484483122825623, 0.38530614972114563, 0.3413943946361542, -0.10198967903852463, -0.007428639568388462, 0.21279069781303406, 0.15388505160808563, -0.33578816056251526, 0.11157749593257904, 0.43950384855270386, 0.174428328871727, -0.016178235411643982, 0.27795201539993286, 0.11780959367752075, -0.37872520089149475, 0.6482069492340088, 0.1150420680642128, 0.3300824463367462, -0.4150668978691101, -0.09018580615520477, 0.30158233642578125, 0.04009590670466423, -0.15848253667354584, 0.2599179744720459, -0.11418472230434418, -0.028526492416858673, 0.011471133679151535, 0.23644930124282837, 0.0076604560017585754, -0.1684253215789795, 0.12506689131259918, -0.05400656908750534, -0.2802582383155823, 0.0911533385515213, 0.477028489112854, 0.1346815824508667, 0.2644307017326355, 0.05584222823381424, 0.4429790675640106, -0.19820614159107208, 0.19507433474063873, -0.25579118728637695, 0.11156050860881805, -0.04451705515384674, -0.08405335247516632, 0.29567593336105347, -0.10299474000930786, -0.2377019226551056, 0.15436288714408875, -0.026793289929628372, -0.01490987092256546, 0.33932769298553467, 0.004353165626525879, -0.02548820525407791, -0.4787934124469757, -0.12146758288145065, 0.119218610227108, 0.11266777664422989, -0.44818007946014404, 0.29386231303215027, -0.11795170605182648, -0.034772612154483795, -0.11899527907371521, 0.3610725998878479, 0.36559000611305237, 0.34784603118896484, -0.15627795457839966, -0.0862891674041748, -0.0487666092813015, 0.13466857373714447, -0.20934443175792694, 0.6926758885383606, 0.17500242590904236, 0.028619319200515747, 0.3427124619483948, -0.012541111558675766, -0.10846204310655594, -0.07264618575572968, -0.13558745384216309, -0.2506990432739258, -0.060250960290431976, 0.7412418723106384, -0.1498289704322815, 0.006200812757015228, -0.3056183159351349, 0.22233399748802185, -0.522416889667511, -0.13308008015155792, -0.005643283948302269, 0.039457470178604126, 0.1830088496208191, -0.19273202121257782, 0.05845201015472412, -0.2214440107345581, 0.24042434990406036, 0.26171666383743286, 0.11757500469684601, -0.12710227072238922, -0.2558742165565491, -0.7973658442497253, 0.26134923100471497, -0.21417757868766785, -0.023909296840429306, 0.07809891551733017, 0.2264161854982376, -0.26737502217292786, 0.12648454308509827, 0.06944677233695984, 0.4015747308731079, -0.2880695164203644, -0.11847299337387085, -0.024275239557027817, -0.14975644648075104, 0.17722246050834656, -0.23531988263130188, 0.17296509444713593, -0.4081309139728546, 0.12386412918567657, -0.06675688922405243, -0.007959123700857162, -0.07475218176841736, -0.05729535222053528, -0.11512930691242218, 0.2697470784187317, -0.0042093172669410706, 0.20561915636062622, 0.421077698469162, 0.1774134635925293, -0.15609942376613617, -0.4793812036514282, -0.1635800004005432, -0.2104368954896927, 0.20932263135910034, -0.0642315149307251, 0.2189340591430664, -0.1647108495235443, 0.1495557278394699, -0.2719321548938751, 0.060758866369724274, 0.18780900537967682, 0.209570050239563, -0.0007250187918543816, 0.15354987978935242, -0.287511944770813, 0.27618271112442017, -0.1154032051563263, 0.13517293334007263, 0.12312600016593933, 0.2047523707151413, -0.24252760410308838, -0.4174502491950989, 0.45117679238319397, -0.3280894458293915, -0.34069767594337463, -0.004702985752373934, 0.5532323122024536, -0.06426984816789627, -0.34661054611206055, -0.5323323011398315, -0.09793144464492798, 0.3741297423839569, 0.02771884761750698, 0.015123412013053894, 0.21873541176319122, -0.44491568207740784, 0.049224358052015305, 0.16460958123207092, -0.01571384072303772, 0.23407363891601562, -0.33255133032798767, 0.2653934955596924, -0.20550696551799774 ]
https://github.com/huggingface/datasets/issues/4238
Dataset caching policy
Hi @loretoparisi, thanks for reporting. There is an option to force the redownload of the data files (and thus not using previously download and cached data files): `load_dataset(..., download_mode="force_redownload")`. Please, let me know if this fixes your problem. I can confirm you that your dataset loads without any problem for me: ```python In [2]: ds = load_dataset("loretoparisi/tatoeba-sentences", data_files={"train": "train.csv", "test": "test.csv"}, delimiter="\t", column_names=['label', 'text']) In [3]: ds Out[3]: DatasetDict({ train: Dataset({ features: ['label', 'text'], num_rows: 8256449 }) test: Dataset({ features: ['label', 'text'], num_rows: 2061204 }) }) ```
## Describe the bug I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error ``` [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences") print(dataset_builder.cache_dir) print(dataset_builder.info.features) print(dataset_builder.info.splits) ``` ``` Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 None None ``` and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`. Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it? Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last. Thank you. ## Steps to reproduce the bug ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) sentences = sentences.shuffle() ``` ## Expected results Properly tokenize dataset file `test.csv` without issues. ## Actual results Specify the actual results or traceback. ``` Downloading data files: 100% 2/2 [00:16<00:00, 7.34s/it] Downloading data: 100% 391M/391M [00:12<00:00, 36.6MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 40.0MB/s] Extracting data files: 100% 2/2 [00:00<00:00, 47.66it/s] Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data. 100% 2/2 [00:00<00:00, 25.94it/s] 11% 942339/8256449 [01:55<13:11, 9245.85ex/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>() 12 ) 13 # You can make this part faster with num_proc=<some int> ---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) 15 sentences = sentences.shuffle() 10 frames [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` ## Environment info ``` - `datasets` version: 2.1.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 - ``` ``` - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.11.0+cu113 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> - ```
87
Dataset caching policy ## Describe the bug I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error ``` [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences") print(dataset_builder.cache_dir) print(dataset_builder.info.features) print(dataset_builder.info.splits) ``` ``` Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 None None ``` and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`. Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it? Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last. Thank you. ## Steps to reproduce the bug ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) sentences = sentences.shuffle() ``` ## Expected results Properly tokenize dataset file `test.csv` without issues. ## Actual results Specify the actual results or traceback. ``` Downloading data files: 100% 2/2 [00:16<00:00, 7.34s/it] Downloading data: 100% 391M/391M [00:12<00:00, 36.6MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 40.0MB/s] Extracting data files: 100% 2/2 [00:00<00:00, 47.66it/s] Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data. 100% 2/2 [00:00<00:00, 25.94it/s] 11% 942339/8256449 [01:55<13:11, 9245.85ex/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>() 12 ) 13 # You can make this part faster with num_proc=<some int> ---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) 15 sentences = sentences.shuffle() 10 frames [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` ## Environment info ``` - `datasets` version: 2.1.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 - ``` ``` - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.11.0+cu113 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> - ``` Hi @loretoparisi, thanks for reporting. There is an option to force the redownload of the data files (and thus not using previously download and cached data files): `load_dataset(..., download_mode="force_redownload")`. Please, let me know if this fixes your problem. I can confirm you that your dataset loads without any problem for me: ```python In [2]: ds = load_dataset("loretoparisi/tatoeba-sentences", data_files={"train": "train.csv", "test": "test.csv"}, delimiter="\t", column_names=['label', 'text']) In [3]: ds Out[3]: DatasetDict({ train: Dataset({ features: ['label', 'text'], num_rows: 8256449 }) test: Dataset({ features: ['label', 'text'], num_rows: 2061204 }) }) ```
[ 0.012393582612276077, 0.2971673309803009, -0.0013777483254671097, 0.24174854159355164, 0.2187061905860901, 0.22311559319496155, 0.20116841793060303, 0.3845505714416504, 0.04758783057332039, -0.11489890515804291, -0.09904838353395462, -0.20246393978595734, -0.04320531338453293, -0.18928773701190948, -0.13858363032341003, 0.051345959305763245, 0.11173121631145477, -0.00988403707742691, 0.2588103115558624, 0.09541533887386322, -0.07377076894044876, 0.11786381155252457, -0.16709201037883759, -0.07879661023616791, -0.3673931658267975, 0.01662108674645424, -0.08999583125114441, -0.06932669132947922, 0.1066930964589119, -0.6206915974617004, 0.2522147297859192, 0.07245060801506042, 0.2016528993844986, 0.23687061667442322, -0.00012636480096261948, -0.10246655344963074, 0.1549503207206726, -0.08202298730611801, -0.2950686514377594, 0.16411173343658447, -0.08562231808900833, -0.29829609394073486, -0.0182765182107687, -0.14259660243988037, 0.18078795075416565, -0.07934406399726868, -0.019251083955168724, -0.5169649124145508, 0.48460304737091064, 0.477077841758728, 0.1433762162923813, 0.03471817448735237, -0.09205898642539978, 0.29089727997779846, 0.21273422241210938, 0.32872533798217773, -0.21830618381500244, 0.16110484302043915, 0.09549088776111603, -0.0793987512588501, -0.0012771040201187134, 0.22347792983055115, -0.32599714398384094, 0.0802004411816597, 0.12586906552314758, 0.062094368040561676, -0.2099144160747528, -0.05864953249692917, 0.5644941329956055, 0.11770126223564148, 0.5416300892829895, -0.2061922550201416, -0.5126445293426514, -0.43215686082839966, -0.11850153654813766, -0.22467680275440216, 0.5172954797744751, 0.18255358934402466, -0.1643291562795639, 0.23536688089370728, -0.37081974744796753, -0.37346526980400085, 0.056354910135269165, -0.24828745424747467, 0.012557074427604675, -0.033255137503147125, -0.0691288486123085, -0.08592206984758377, -0.3153804540634155, -0.33436113595962524, -0.025036048144102097, -0.18664339184761047, -0.17544439435005188, 0.32071810960769653, -0.42848917841911316, 0.2038651406764984, 0.05043599754571915, 0.3530402183532715, 0.009537719190120697, -0.056825511157512665, 0.02770976722240448, -0.11322348564863205, -0.012364592403173447, -0.10349240154027939, -0.016136839985847473, 0.5280764698982239, 0.3833259046077728, 0.22477279603481293, 0.41807472705841064, 0.10716019570827484, -0.12219257652759552, -0.05967463552951813, 0.10856606066226959, -0.2088310718536377, 0.46929895877838135, 0.29808706045150757, 0.08740120381116867, -0.2639746367931366, -0.4008612036705017, 0.3987271785736084, 0.07925236970186234, -0.04350052773952484, 0.08097658306360245, 0.11828745901584625, -0.26543182134628296, 0.24691322445869446, -0.3109484314918518, -0.034464746713638306, -0.26820164918899536, -0.14731106162071228, -0.14267311990261078, -0.004487061873078346, -0.09368500113487244, 0.13298968970775604, 0.3898322880268097, -0.2782133221626282, 0.09409330040216446, 0.09149301797151566, 0.13832639157772064, 0.038082197308540344, -0.10301488637924194, -0.35508882999420166, 0.1618322879076004, 0.2283443808555603, -0.362639456987381, 0.07375884801149368, 0.21239392459392548, -0.44727909564971924, -0.09075120091438293, 0.09068708121776581, -0.4696442484855652, -0.25002485513687134, -0.039682015776634216, 0.029920581728219986, -0.2703045606613159, -0.022017166018486023, -0.20118993520736694, -0.12216119468212128, 0.767985463142395, -0.1301230937242508, 0.13869500160217285, -0.06071735918521881, -0.20748619735240936, -0.24864019453525543, 0.02413606084883213, 0.7459713816642761, -0.3978329598903656, -0.0034807994961738586, 0.022398293018341064, 0.33457666635513306, 0.11889766901731491, 0.38937804102897644, 0.025051139295101166, 0.013842031359672546, -0.47603073716163635, 0.13597233593463898, -0.010797552764415741, -0.32612407207489014, -0.5294507145881653, 0.23547184467315674, -0.0219724141061306, 0.04389607161283493, 0.48054102063179016, -0.13118931651115417, 0.3278714120388031, -0.1496674120426178, 0.23127034306526184, 0.0843566283583641, 0.020896049216389656, -0.05184707045555115, -0.2929527163505554, -0.2801831066608429, 0.17343999445438385, -0.15149126946926117, 0.13810954988002777, 0.1100747361779213, 0.14900800585746765, -0.10443026572465897, 0.13039395213127136, -0.10285860300064087, 0.3173863887786865, 0.3218125104904175, 0.19969594478607178, 0.3361395001411438, 0.19406872987747192, -0.013326847925782204, -0.5634206533432007, 0.3336995840072632, -0.15107086300849915, -0.048796601593494415, -0.5828679203987122, -0.33749669790267944, -0.004659480415284634, -0.045259423553943634, -0.34983623027801514, -0.23404887318611145, 0.010960213840007782, 0.2944904565811157, 0.20930466055870056, 0.07748539745807648, -0.3025777339935303, 0.5547485947608948, -0.15145565569400787, 0.035655807703733444, -0.31498393416404724, 0.03440609574317932, 0.03546404838562012, -0.11763370037078857, -0.29777097702026367, 0.16212892532348633, 0.1365375816822052, -0.06426619738340378, -0.34848877787590027, 0.3423914611339569, 0.10216046869754791, 0.11832386255264282, 0.1725015640258789, 0.35129109025001526, 0.14733685553073883, 0.04552843049168587, 0.12056617438793182, 0.19254285097122192, 0.05202977731823921, 0.18808811902999878, -0.2764335572719574, 0.45648306608200073, -0.3377998173236847, 0.3060479462146759, -0.1606564074754715, -0.0844259113073349, 0.35754162073135376, 0.06337322294712067, -0.04943305253982544, -0.4019524157047272, 0.3338899314403534, -0.07751084864139557, 0.25830984115600586, 0.1751251220703125, -0.15886172652244568, -0.13456237316131592, 0.4126012921333313, 0.2732483148574829, 0.04177915304899216, 0.19239825010299683, 0.17996922135353088, -0.2073262333869934, 0.10342629998922348, 0.3869754374027252, 0.2926305830478668, -0.04776477813720703, -0.05850287154316902, -0.07561837881803513, 0.3888523578643799, -0.22364309430122375, 0.18441176414489746, -0.24221627414226532, -0.5531631708145142, 0.3378499746322632, 0.30721423029899597, 0.3249042332172394, -0.25006619095802307, -0.09040352702140808, 0.1127331331372261, 0.26638558506965637, -0.3754599988460541, -0.05021560192108154, -0.4189835786819458, -0.4062882661819458, -0.22130537033081055, 0.23249103128910065, -0.37585851550102234, -0.1735001504421234, -0.1743536740541458, -0.18575188517570496, -0.07246716320514679, -0.013771332800388336, -0.1813279688358307, 0.21749721467494965, -0.023300228640437126, -0.38347670435905457, -0.19253678619861603, -0.10378234833478928, -0.17743942141532898, -0.15400487184524536, 0.23942461609840393, -0.25701630115509033, 0.17346695065498352, -0.4991285800933838, -0.14618995785713196, -0.4262445867061615, -0.11575188487768173, -0.08201912045478821, 0.1450813114643097, 0.03965374827384949, 0.09556145966053009, 0.21995553374290466, -0.2006959617137909, -0.040311142802238464, 0.32196158170700073, -0.1443939059972763, -0.006413026712834835, 0.10555975139141083, 0.33806851506233215, 0.0959964245557785, -0.09811146557331085, -0.05323546379804611, -0.1494612842798233, -0.20814529061317444, 0.11319386214017868, -0.24044132232666016, 0.005843747407197952, 0.26410990953445435, -0.29237988591194153, -0.10000345855951309, -0.1252763420343399, 0.17269155383110046, -0.08224744349718094, -0.48951148986816406, 0.43401825428009033, 0.06773338466882706, -0.14810006320476532, 0.006235692650079727, 0.30591845512390137, -0.015239682048559189, 0.22022399306297302, -0.5601283311843872, 0.0038391733542084694, -0.39107248187065125, 0.6649290919303894, 0.07086589932441711, 0.15025849640369415, 0.25558197498321533, -0.008298886939883232, 0.04103223979473114, 0.07155868411064148, -0.22987549006938934, 0.018508784472942352, 0.11504513770341873, 0.10875784605741501, 0.24417757987976074, 0.33026576042175293, 0.14210066199302673, 0.5426908731460571, 0.042968448251485825, 0.1509299874305725, 0.502310574054718, 0.17748260498046875, 0.4783696234226227, -0.16970384120941162, -0.4058671295642853, 0.10035787522792816, -0.16922977566719055, -0.36351412534713745, 0.1804773211479187, 0.16899612545967102, 0.2567850947380066, -0.2230030745267868, -0.025275567546486855, -0.1526254415512085, -0.16459150612354279, 0.13319826126098633, -0.4737534523010254, 0.4249725043773651, 0.18996678292751312, -0.10460151731967926, -0.2555205523967743, -0.40371260046958923, -0.038198746740818024, 0.16021470725536346, 0.2247755527496338, 0.11942913383245468, -0.04593731090426445, -0.12984849512577057, -0.28100183606147766, 0.29042577743530273, 0.22958098351955414, 0.7262060642242432, -0.18001841008663177, 0.10630003362894058, 0.07340691238641739, 0.023686937987804413, 0.4988808035850525, 0.07582177966833115, 0.11584439128637314, -0.06973852217197418, 0.022362731397151947, -0.001474263146519661, -0.2985978126525879, 0.3196665048599243, 0.4175270199775696, -0.042024362832307816, 0.3266114890575409, 0.015472158789634705, -0.21119262278079987, -0.36018431186676025, 0.34417179226875305, -0.23279866576194763, -0.05879591405391693, -0.17957386374473572, -0.016038095578551292, -0.13050450384616852, 0.049970511347055435, 0.08121609687805176, 0.027919625863432884, 0.18140791356563568, 0.4388042688369751, -0.017361892387270927, -0.09996145963668823, 0.03356187045574188, -0.2906663417816162, 0.3134855031967163, -0.013152473606169224, 0.09897138178348541, -0.003180410712957382, 0.11234357953071594, 0.050987135618925095, 0.41831594705581665, -0.08823424577713013, -0.37902694940567017, -0.17776364088058472, -0.30974289774894714, 0.04337388277053833, 0.17042496800422668, -0.30941808223724365, 0.06677588075399399, 0.09167776256799698, 0.27143993973731995, -0.0596449188888073, -0.08085273206233978, 0.1092197373509407, -0.021028945222496986, 0.05162593722343445, -0.48146378993988037, 0.30477553606033325, 0.22196118533611298, -0.0486808717250824, -0.0928841233253479, 0.20034632086753845, -0.3756882846355438, 0.20233970880508423, 0.1964786946773529, 0.6847465634346008, 0.08860787749290466, 0.2667193114757538, -0.19931575655937195, 0.07688641548156738, 0.7398192286491394, -0.3023539185523987, 0.16798456013202667, -0.13975350558757782, 0.1570092737674713, -0.06106370687484741, 0.140855610370636, 0.21164599061012268, -0.052128925919532776, 0.02749040350317955, 0.4517362117767334, -0.3623848557472229, 0.38148725032806396, 0.12367663532495499, -0.07039538025856018, -0.3189990222454071, -0.1327587515115738, -0.08139318227767944, -0.06861985474824905, -0.25537383556365967, 0.013300685212016106, -0.04592141881585121, 0.17730334401130676, 0.058587659150362015, -0.07296130061149597, -0.49744337797164917, -0.16443783044815063, -0.009210498072206974, 0.1995886117219925, 0.05927126854658127, -0.25294020771980286, 0.02943277359008789, 0.36904022097587585, 0.5244760513305664, 0.2263176590204239, -0.05733117461204529, 0.036063943058252335, 0.18896625936031342, 0.10061333328485489, 0.008475727401673794, 0.06536830216646194, 0.12560230493545532, 0.03971604257822037, -0.020721621811389923, -0.20025625824928284, -0.18161499500274658, -0.3541405200958252, -0.1060071587562561, 0.12962627410888672, 0.0684417337179184, -0.18705716729164124, -0.010638040490448475, -0.38412946462631226, 0.24497932195663452, -0.06778204441070557, 0.03773566335439682, 0.24427363276481628, -0.09048420190811157, 0.017053019255399704, -0.22788284718990326, -0.22194987535476685, -0.03972984477877617, 0.3476562798023224, 0.2146349549293518, -0.37450969219207764, 0.6968059539794922, -0.037217430770397186, -0.09728234261274338, -0.115887351334095, -0.016758598387241364, -0.17952728271484375, -0.5390042662620544, 0.11574992537498474, -0.1199076771736145, 0.03742364048957825, -0.02428022213280201, -0.09589351713657379, 0.1143275573849678, 0.08243708312511444, -0.13542692363262177, -0.5628751516342163, -0.29809266328811646, -0.21381114423274994, 0.05956568568944931, 0.02489151805639267, 0.1486712396144867, -0.25958362221717834, -0.07831893116235733, -0.1857481598854065, -0.13100257515907288, -0.029832730069756508, -0.2002624273300171, 0.07591058313846588, 0.19046884775161743, 0.21713700890541077, -0.1816452294588089, -0.20527148246765137, -0.05644824355840683, 0.09741020202636719, 0.19398730993270874, -0.07590676844120026, -0.013025817461311817, 0.21394559741020203, -0.0488215908408165, -0.06610038131475449, -0.22471949458122253, -0.04924101382493973, -0.07940556108951569, -0.2644957900047302, 0.030202146619558334, 0.3578818440437317, -0.03455860912799835, 0.4326806664466858, -0.10317489504814148, 0.15728208422660828, 0.03630400449037552, 0.3256644606590271, 0.022618945688009262, 0.19949638843536377, 0.03683018684387207, 0.38761380314826965, -0.12425731867551804, 0.14559485018253326, -0.2493017613887787, 0.03405904024839401, -0.2740899324417114, -0.04984351992607117, -0.011905238032341003, -0.7176520228385925, -0.047891780734062195, 0.31849807500839233, 0.2566049098968506, 0.5303410291671753, -0.09779875725507736, -0.26688286662101746, 0.38881218433380127, 0.026744570583105087, -0.13884422183036804, -0.10282496362924576, 0.26367977261543274, 0.19049502909183502, -0.11714379489421844, 0.10744550824165344, 0.34439510107040405, -0.227254256606102, 0.045265957713127136, 0.06241440773010254, 0.622978687286377, -0.1713075339794159, 0.1222955584526062, 0.341071218252182, 0.2598596513271332, 0.08633622527122498, 0.19559244811534882, 0.10537809133529663, -0.031106717884540558, 0.5883733630180359, 0.03270552679896355, 0.054391033947467804, 0.3945005238056183, 0.3909541666507721, -0.31966450810432434, -0.632339596748352, 0.4486403167247772, 0.14229077100753784, -0.2467743158340454, 0.1446680873632431, -0.019016243517398834, 0.3927974998950958, -0.07674670964479446, -0.21624957025051117, -0.14952421188354492, 0.1239941418170929, -0.30767178535461426, -0.22758525609970093, 0.04628312587738037, -0.2569924294948578, -0.04265647009015083, 0.16998103260993958, -0.05879300460219383, 0.33856385946273804, 0.2130107283592224, -0.0027181655168533325, -0.2035451978445053, -0.3313356935977936, 0.10589732229709625, 0.030193999409675598, 0.3501744270324707, -0.3610575795173645, 0.07344762235879898, 0.354178786277771, -0.14936646819114685, 0.004890933632850647, 0.19059261679649353, 0.5870630741119385, 0.3003973364830017, 0.06802413612604141, 0.07315243035554886, -0.2649986147880554, 0.06589333713054657, -0.14089226722717285, 0.5814991593360901, -0.27812471985816956, -0.051024872809648514, 0.13920418918132782, -0.043195903301239014, -0.015033015049993992, 0.4320273995399475, -0.14415915310382843, 0.33553799986839294, -0.0652601420879364, 0.04728704318404198, -0.025015149265527725, -0.1433454155921936, 0.055262092500925064, 0.10718246549367905, -0.1661214381456375, -0.18950577080249786, 0.5579116344451904, 0.009224130772054195, 0.10016213357448578, -0.22335374355316162, 0.009260082617402077, -0.04165490344166756, 0.5770376324653625, 0.8015143275260925, 0.15742704272270203, -0.04630931839346886, 0.06083737313747406, -0.7923561930656433, -0.03914973884820938, -0.015249848365783691, 0.07852637767791748, 0.09530457854270935, 0.02471453882753849, -0.11236358433961868, 0.039900489151477814, -0.15077416598796844, 0.15802520513534546, -0.03425435349345207, 0.007049672305583954, -0.18516522645950317, -0.09960399568080902, 0.0014865174889564514, 0.1831905096769333, 0.054286837577819824, -0.4839750826358795, 0.28239336609840393, -0.11083294451236725, -0.07314255833625793, -0.0918777734041214, -0.10482563823461533, 0.17556016147136688, -0.10695987939834595, 0.06693293154239655, 0.4307733178138733, 0.19146451354026794, 0.34298476576805115, -0.07218275219202042, -0.3610795736312866, 0.10161224007606506, -0.07661084830760956, 0.16870275139808655, -0.012596577405929565, 0.40706756711006165, -0.5156899690628052, 0.026403769850730896, -0.18907955288887024, 0.4230322241783142, -0.21974848210811615, 0.06022317707538605, -0.03568098694086075, -0.08486977964639664, -0.06967103481292725, 0.03513649106025696, 0.06530612707138062, 0.2273830771446228, 0.0020751357078552246, 0.18941132724285126, -0.40791231393814087, -0.22336062788963318, 0.321988582611084, -0.6194618344306946, -0.3507412374019623, -0.08837076276540756, 0.4081410765647888, 0.16110117733478546, -0.3031415045261383, -0.36187905073165894, 0.1399896740913391, 0.32507243752479553, 0.026662319898605347, -0.36879846453666687, -0.06006402149796486, -0.1723570078611374, 0.1622220277786255, 0.026549194008111954, 0.44256046414375305, 0.08086087554693222, 0.07672867178916931, 0.17237810790538788, -0.1925548017024994 ]
https://github.com/huggingface/datasets/issues/4238
Dataset caching policy
@albertvillanova thank you, it seems it still does not work using: ```python sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], download_mode="force_redownload" ) ``` [This](https://colab.research.google.com/drive/1EA6FWo5pHxU8rPHHRn24NlHqRPiOlPTr?usp=sharing) is my notebook! The problem is that the download file's revision for `test.csv` is not correctly parsed ![Schermata 2022-04-27 alle 18 09 41](https://user-images.githubusercontent.com/163333/165563507-0be53eb6-8f61-49b0-b959-306e59281de3.png) If you download that file `test.csv` from the repo, the line `\\N` is not there anymore (it was there at the first file upload). My impression is that the Apache Arrow file is still cached - so server side, despite of enabling a forced download. For what I can see I get those two arrow files, but I cannot grep the bad line (`\\N`) since are binary files: ``` !ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 !ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/csv-test.arrow !head /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/dataset_info.json ```
## Describe the bug I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error ``` [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences") print(dataset_builder.cache_dir) print(dataset_builder.info.features) print(dataset_builder.info.splits) ``` ``` Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 None None ``` and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`. Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it? Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last. Thank you. ## Steps to reproduce the bug ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) sentences = sentences.shuffle() ``` ## Expected results Properly tokenize dataset file `test.csv` without issues. ## Actual results Specify the actual results or traceback. ``` Downloading data files: 100% 2/2 [00:16<00:00, 7.34s/it] Downloading data: 100% 391M/391M [00:12<00:00, 36.6MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 40.0MB/s] Extracting data files: 100% 2/2 [00:00<00:00, 47.66it/s] Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data. 100% 2/2 [00:00<00:00, 25.94it/s] 11% 942339/8256449 [01:55<13:11, 9245.85ex/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>() 12 ) 13 # You can make this part faster with num_proc=<some int> ---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) 15 sentences = sentences.shuffle() 10 frames [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` ## Environment info ``` - `datasets` version: 2.1.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 - ``` ``` - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.11.0+cu113 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> - ```
125
Dataset caching policy ## Describe the bug I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error ``` [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences") print(dataset_builder.cache_dir) print(dataset_builder.info.features) print(dataset_builder.info.splits) ``` ``` Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 None None ``` and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`. Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it? Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last. Thank you. ## Steps to reproduce the bug ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) sentences = sentences.shuffle() ``` ## Expected results Properly tokenize dataset file `test.csv` without issues. ## Actual results Specify the actual results or traceback. ``` Downloading data files: 100% 2/2 [00:16<00:00, 7.34s/it] Downloading data: 100% 391M/391M [00:12<00:00, 36.6MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 40.0MB/s] Extracting data files: 100% 2/2 [00:00<00:00, 47.66it/s] Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data. 100% 2/2 [00:00<00:00, 25.94it/s] 11% 942339/8256449 [01:55<13:11, 9245.85ex/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>() 12 ) 13 # You can make this part faster with num_proc=<some int> ---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) 15 sentences = sentences.shuffle() 10 frames [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` ## Environment info ``` - `datasets` version: 2.1.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 - ``` ``` - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.11.0+cu113 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> - ``` @albertvillanova thank you, it seems it still does not work using: ```python sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], download_mode="force_redownload" ) ``` [This](https://colab.research.google.com/drive/1EA6FWo5pHxU8rPHHRn24NlHqRPiOlPTr?usp=sharing) is my notebook! The problem is that the download file's revision for `test.csv` is not correctly parsed ![Schermata 2022-04-27 alle 18 09 41](https://user-images.githubusercontent.com/163333/165563507-0be53eb6-8f61-49b0-b959-306e59281de3.png) If you download that file `test.csv` from the repo, the line `\\N` is not there anymore (it was there at the first file upload). My impression is that the Apache Arrow file is still cached - so server side, despite of enabling a forced download. For what I can see I get those two arrow files, but I cannot grep the bad line (`\\N`) since are binary files: ``` !ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 !ls -l /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/csv-test.arrow !head /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519/dataset_info.json ```
[ 0.012393582612276077, 0.2971673309803009, -0.0013777483254671097, 0.24174854159355164, 0.2187061905860901, 0.22311559319496155, 0.20116841793060303, 0.3845505714416504, 0.04758783057332039, -0.11489890515804291, -0.09904838353395462, -0.20246393978595734, -0.04320531338453293, -0.18928773701190948, -0.13858363032341003, 0.051345959305763245, 0.11173121631145477, -0.00988403707742691, 0.2588103115558624, 0.09541533887386322, -0.07377076894044876, 0.11786381155252457, -0.16709201037883759, -0.07879661023616791, -0.3673931658267975, 0.01662108674645424, -0.08999583125114441, -0.06932669132947922, 0.1066930964589119, -0.6206915974617004, 0.2522147297859192, 0.07245060801506042, 0.2016528993844986, 0.23687061667442322, -0.00012636480096261948, -0.10246655344963074, 0.1549503207206726, -0.08202298730611801, -0.2950686514377594, 0.16411173343658447, -0.08562231808900833, -0.29829609394073486, -0.0182765182107687, -0.14259660243988037, 0.18078795075416565, -0.07934406399726868, -0.019251083955168724, -0.5169649124145508, 0.48460304737091064, 0.477077841758728, 0.1433762162923813, 0.03471817448735237, -0.09205898642539978, 0.29089727997779846, 0.21273422241210938, 0.32872533798217773, -0.21830618381500244, 0.16110484302043915, 0.09549088776111603, -0.0793987512588501, -0.0012771040201187134, 0.22347792983055115, -0.32599714398384094, 0.0802004411816597, 0.12586906552314758, 0.062094368040561676, -0.2099144160747528, -0.05864953249692917, 0.5644941329956055, 0.11770126223564148, 0.5416300892829895, -0.2061922550201416, -0.5126445293426514, -0.43215686082839966, -0.11850153654813766, -0.22467680275440216, 0.5172954797744751, 0.18255358934402466, -0.1643291562795639, 0.23536688089370728, -0.37081974744796753, -0.37346526980400085, 0.056354910135269165, -0.24828745424747467, 0.012557074427604675, -0.033255137503147125, -0.0691288486123085, -0.08592206984758377, -0.3153804540634155, -0.33436113595962524, -0.025036048144102097, -0.18664339184761047, -0.17544439435005188, 0.32071810960769653, -0.42848917841911316, 0.2038651406764984, 0.05043599754571915, 0.3530402183532715, 0.009537719190120697, -0.056825511157512665, 0.02770976722240448, -0.11322348564863205, -0.012364592403173447, -0.10349240154027939, -0.016136839985847473, 0.5280764698982239, 0.3833259046077728, 0.22477279603481293, 0.41807472705841064, 0.10716019570827484, -0.12219257652759552, -0.05967463552951813, 0.10856606066226959, -0.2088310718536377, 0.46929895877838135, 0.29808706045150757, 0.08740120381116867, -0.2639746367931366, -0.4008612036705017, 0.3987271785736084, 0.07925236970186234, -0.04350052773952484, 0.08097658306360245, 0.11828745901584625, -0.26543182134628296, 0.24691322445869446, -0.3109484314918518, -0.034464746713638306, -0.26820164918899536, -0.14731106162071228, -0.14267311990261078, -0.004487061873078346, -0.09368500113487244, 0.13298968970775604, 0.3898322880268097, -0.2782133221626282, 0.09409330040216446, 0.09149301797151566, 0.13832639157772064, 0.038082197308540344, -0.10301488637924194, -0.35508882999420166, 0.1618322879076004, 0.2283443808555603, -0.362639456987381, 0.07375884801149368, 0.21239392459392548, -0.44727909564971924, -0.09075120091438293, 0.09068708121776581, -0.4696442484855652, -0.25002485513687134, -0.039682015776634216, 0.029920581728219986, -0.2703045606613159, -0.022017166018486023, -0.20118993520736694, -0.12216119468212128, 0.767985463142395, -0.1301230937242508, 0.13869500160217285, -0.06071735918521881, -0.20748619735240936, -0.24864019453525543, 0.02413606084883213, 0.7459713816642761, -0.3978329598903656, -0.0034807994961738586, 0.022398293018341064, 0.33457666635513306, 0.11889766901731491, 0.38937804102897644, 0.025051139295101166, 0.013842031359672546, -0.47603073716163635, 0.13597233593463898, -0.010797552764415741, -0.32612407207489014, -0.5294507145881653, 0.23547184467315674, -0.0219724141061306, 0.04389607161283493, 0.48054102063179016, -0.13118931651115417, 0.3278714120388031, -0.1496674120426178, 0.23127034306526184, 0.0843566283583641, 0.020896049216389656, -0.05184707045555115, -0.2929527163505554, -0.2801831066608429, 0.17343999445438385, -0.15149126946926117, 0.13810954988002777, 0.1100747361779213, 0.14900800585746765, -0.10443026572465897, 0.13039395213127136, -0.10285860300064087, 0.3173863887786865, 0.3218125104904175, 0.19969594478607178, 0.3361395001411438, 0.19406872987747192, -0.013326847925782204, -0.5634206533432007, 0.3336995840072632, -0.15107086300849915, -0.048796601593494415, -0.5828679203987122, -0.33749669790267944, -0.004659480415284634, -0.045259423553943634, -0.34983623027801514, -0.23404887318611145, 0.010960213840007782, 0.2944904565811157, 0.20930466055870056, 0.07748539745807648, -0.3025777339935303, 0.5547485947608948, -0.15145565569400787, 0.035655807703733444, -0.31498393416404724, 0.03440609574317932, 0.03546404838562012, -0.11763370037078857, -0.29777097702026367, 0.16212892532348633, 0.1365375816822052, -0.06426619738340378, -0.34848877787590027, 0.3423914611339569, 0.10216046869754791, 0.11832386255264282, 0.1725015640258789, 0.35129109025001526, 0.14733685553073883, 0.04552843049168587, 0.12056617438793182, 0.19254285097122192, 0.05202977731823921, 0.18808811902999878, -0.2764335572719574, 0.45648306608200073, -0.3377998173236847, 0.3060479462146759, -0.1606564074754715, -0.0844259113073349, 0.35754162073135376, 0.06337322294712067, -0.04943305253982544, -0.4019524157047272, 0.3338899314403534, -0.07751084864139557, 0.25830984115600586, 0.1751251220703125, -0.15886172652244568, -0.13456237316131592, 0.4126012921333313, 0.2732483148574829, 0.04177915304899216, 0.19239825010299683, 0.17996922135353088, -0.2073262333869934, 0.10342629998922348, 0.3869754374027252, 0.2926305830478668, -0.04776477813720703, -0.05850287154316902, -0.07561837881803513, 0.3888523578643799, -0.22364309430122375, 0.18441176414489746, -0.24221627414226532, -0.5531631708145142, 0.3378499746322632, 0.30721423029899597, 0.3249042332172394, -0.25006619095802307, -0.09040352702140808, 0.1127331331372261, 0.26638558506965637, -0.3754599988460541, -0.05021560192108154, -0.4189835786819458, -0.4062882661819458, -0.22130537033081055, 0.23249103128910065, -0.37585851550102234, -0.1735001504421234, -0.1743536740541458, -0.18575188517570496, -0.07246716320514679, -0.013771332800388336, -0.1813279688358307, 0.21749721467494965, -0.023300228640437126, -0.38347670435905457, -0.19253678619861603, -0.10378234833478928, -0.17743942141532898, -0.15400487184524536, 0.23942461609840393, -0.25701630115509033, 0.17346695065498352, -0.4991285800933838, -0.14618995785713196, -0.4262445867061615, -0.11575188487768173, -0.08201912045478821, 0.1450813114643097, 0.03965374827384949, 0.09556145966053009, 0.21995553374290466, -0.2006959617137909, -0.040311142802238464, 0.32196158170700073, -0.1443939059972763, -0.006413026712834835, 0.10555975139141083, 0.33806851506233215, 0.0959964245557785, -0.09811146557331085, -0.05323546379804611, -0.1494612842798233, -0.20814529061317444, 0.11319386214017868, -0.24044132232666016, 0.005843747407197952, 0.26410990953445435, -0.29237988591194153, -0.10000345855951309, -0.1252763420343399, 0.17269155383110046, -0.08224744349718094, -0.48951148986816406, 0.43401825428009033, 0.06773338466882706, -0.14810006320476532, 0.006235692650079727, 0.30591845512390137, -0.015239682048559189, 0.22022399306297302, -0.5601283311843872, 0.0038391733542084694, -0.39107248187065125, 0.6649290919303894, 0.07086589932441711, 0.15025849640369415, 0.25558197498321533, -0.008298886939883232, 0.04103223979473114, 0.07155868411064148, -0.22987549006938934, 0.018508784472942352, 0.11504513770341873, 0.10875784605741501, 0.24417757987976074, 0.33026576042175293, 0.14210066199302673, 0.5426908731460571, 0.042968448251485825, 0.1509299874305725, 0.502310574054718, 0.17748260498046875, 0.4783696234226227, -0.16970384120941162, -0.4058671295642853, 0.10035787522792816, -0.16922977566719055, -0.36351412534713745, 0.1804773211479187, 0.16899612545967102, 0.2567850947380066, -0.2230030745267868, -0.025275567546486855, -0.1526254415512085, -0.16459150612354279, 0.13319826126098633, -0.4737534523010254, 0.4249725043773651, 0.18996678292751312, -0.10460151731967926, -0.2555205523967743, -0.40371260046958923, -0.038198746740818024, 0.16021470725536346, 0.2247755527496338, 0.11942913383245468, -0.04593731090426445, -0.12984849512577057, -0.28100183606147766, 0.29042577743530273, 0.22958098351955414, 0.7262060642242432, -0.18001841008663177, 0.10630003362894058, 0.07340691238641739, 0.023686937987804413, 0.4988808035850525, 0.07582177966833115, 0.11584439128637314, -0.06973852217197418, 0.022362731397151947, -0.001474263146519661, -0.2985978126525879, 0.3196665048599243, 0.4175270199775696, -0.042024362832307816, 0.3266114890575409, 0.015472158789634705, -0.21119262278079987, -0.36018431186676025, 0.34417179226875305, -0.23279866576194763, -0.05879591405391693, -0.17957386374473572, -0.016038095578551292, -0.13050450384616852, 0.049970511347055435, 0.08121609687805176, 0.027919625863432884, 0.18140791356563568, 0.4388042688369751, -0.017361892387270927, -0.09996145963668823, 0.03356187045574188, -0.2906663417816162, 0.3134855031967163, -0.013152473606169224, 0.09897138178348541, -0.003180410712957382, 0.11234357953071594, 0.050987135618925095, 0.41831594705581665, -0.08823424577713013, -0.37902694940567017, -0.17776364088058472, -0.30974289774894714, 0.04337388277053833, 0.17042496800422668, -0.30941808223724365, 0.06677588075399399, 0.09167776256799698, 0.27143993973731995, -0.0596449188888073, -0.08085273206233978, 0.1092197373509407, -0.021028945222496986, 0.05162593722343445, -0.48146378993988037, 0.30477553606033325, 0.22196118533611298, -0.0486808717250824, -0.0928841233253479, 0.20034632086753845, -0.3756882846355438, 0.20233970880508423, 0.1964786946773529, 0.6847465634346008, 0.08860787749290466, 0.2667193114757538, -0.19931575655937195, 0.07688641548156738, 0.7398192286491394, -0.3023539185523987, 0.16798456013202667, -0.13975350558757782, 0.1570092737674713, -0.06106370687484741, 0.140855610370636, 0.21164599061012268, -0.052128925919532776, 0.02749040350317955, 0.4517362117767334, -0.3623848557472229, 0.38148725032806396, 0.12367663532495499, -0.07039538025856018, -0.3189990222454071, -0.1327587515115738, -0.08139318227767944, -0.06861985474824905, -0.25537383556365967, 0.013300685212016106, -0.04592141881585121, 0.17730334401130676, 0.058587659150362015, -0.07296130061149597, -0.49744337797164917, -0.16443783044815063, -0.009210498072206974, 0.1995886117219925, 0.05927126854658127, -0.25294020771980286, 0.02943277359008789, 0.36904022097587585, 0.5244760513305664, 0.2263176590204239, -0.05733117461204529, 0.036063943058252335, 0.18896625936031342, 0.10061333328485489, 0.008475727401673794, 0.06536830216646194, 0.12560230493545532, 0.03971604257822037, -0.020721621811389923, -0.20025625824928284, -0.18161499500274658, -0.3541405200958252, -0.1060071587562561, 0.12962627410888672, 0.0684417337179184, -0.18705716729164124, -0.010638040490448475, -0.38412946462631226, 0.24497932195663452, -0.06778204441070557, 0.03773566335439682, 0.24427363276481628, -0.09048420190811157, 0.017053019255399704, -0.22788284718990326, -0.22194987535476685, -0.03972984477877617, 0.3476562798023224, 0.2146349549293518, -0.37450969219207764, 0.6968059539794922, -0.037217430770397186, -0.09728234261274338, -0.115887351334095, -0.016758598387241364, -0.17952728271484375, -0.5390042662620544, 0.11574992537498474, -0.1199076771736145, 0.03742364048957825, -0.02428022213280201, -0.09589351713657379, 0.1143275573849678, 0.08243708312511444, -0.13542692363262177, -0.5628751516342163, -0.29809266328811646, -0.21381114423274994, 0.05956568568944931, 0.02489151805639267, 0.1486712396144867, -0.25958362221717834, -0.07831893116235733, -0.1857481598854065, -0.13100257515907288, -0.029832730069756508, -0.2002624273300171, 0.07591058313846588, 0.19046884775161743, 0.21713700890541077, -0.1816452294588089, -0.20527148246765137, -0.05644824355840683, 0.09741020202636719, 0.19398730993270874, -0.07590676844120026, -0.013025817461311817, 0.21394559741020203, -0.0488215908408165, -0.06610038131475449, -0.22471949458122253, -0.04924101382493973, -0.07940556108951569, -0.2644957900047302, 0.030202146619558334, 0.3578818440437317, -0.03455860912799835, 0.4326806664466858, -0.10317489504814148, 0.15728208422660828, 0.03630400449037552, 0.3256644606590271, 0.022618945688009262, 0.19949638843536377, 0.03683018684387207, 0.38761380314826965, -0.12425731867551804, 0.14559485018253326, -0.2493017613887787, 0.03405904024839401, -0.2740899324417114, -0.04984351992607117, -0.011905238032341003, -0.7176520228385925, -0.047891780734062195, 0.31849807500839233, 0.2566049098968506, 0.5303410291671753, -0.09779875725507736, -0.26688286662101746, 0.38881218433380127, 0.026744570583105087, -0.13884422183036804, -0.10282496362924576, 0.26367977261543274, 0.19049502909183502, -0.11714379489421844, 0.10744550824165344, 0.34439510107040405, -0.227254256606102, 0.045265957713127136, 0.06241440773010254, 0.622978687286377, -0.1713075339794159, 0.1222955584526062, 0.341071218252182, 0.2598596513271332, 0.08633622527122498, 0.19559244811534882, 0.10537809133529663, -0.031106717884540558, 0.5883733630180359, 0.03270552679896355, 0.054391033947467804, 0.3945005238056183, 0.3909541666507721, -0.31966450810432434, -0.632339596748352, 0.4486403167247772, 0.14229077100753784, -0.2467743158340454, 0.1446680873632431, -0.019016243517398834, 0.3927974998950958, -0.07674670964479446, -0.21624957025051117, -0.14952421188354492, 0.1239941418170929, -0.30767178535461426, -0.22758525609970093, 0.04628312587738037, -0.2569924294948578, -0.04265647009015083, 0.16998103260993958, -0.05879300460219383, 0.33856385946273804, 0.2130107283592224, -0.0027181655168533325, -0.2035451978445053, -0.3313356935977936, 0.10589732229709625, 0.030193999409675598, 0.3501744270324707, -0.3610575795173645, 0.07344762235879898, 0.354178786277771, -0.14936646819114685, 0.004890933632850647, 0.19059261679649353, 0.5870630741119385, 0.3003973364830017, 0.06802413612604141, 0.07315243035554886, -0.2649986147880554, 0.06589333713054657, -0.14089226722717285, 0.5814991593360901, -0.27812471985816956, -0.051024872809648514, 0.13920418918132782, -0.043195903301239014, -0.015033015049993992, 0.4320273995399475, -0.14415915310382843, 0.33553799986839294, -0.0652601420879364, 0.04728704318404198, -0.025015149265527725, -0.1433454155921936, 0.055262092500925064, 0.10718246549367905, -0.1661214381456375, -0.18950577080249786, 0.5579116344451904, 0.009224130772054195, 0.10016213357448578, -0.22335374355316162, 0.009260082617402077, -0.04165490344166756, 0.5770376324653625, 0.8015143275260925, 0.15742704272270203, -0.04630931839346886, 0.06083737313747406, -0.7923561930656433, -0.03914973884820938, -0.015249848365783691, 0.07852637767791748, 0.09530457854270935, 0.02471453882753849, -0.11236358433961868, 0.039900489151477814, -0.15077416598796844, 0.15802520513534546, -0.03425435349345207, 0.007049672305583954, -0.18516522645950317, -0.09960399568080902, 0.0014865174889564514, 0.1831905096769333, 0.054286837577819824, -0.4839750826358795, 0.28239336609840393, -0.11083294451236725, -0.07314255833625793, -0.0918777734041214, -0.10482563823461533, 0.17556016147136688, -0.10695987939834595, 0.06693293154239655, 0.4307733178138733, 0.19146451354026794, 0.34298476576805115, -0.07218275219202042, -0.3610795736312866, 0.10161224007606506, -0.07661084830760956, 0.16870275139808655, -0.012596577405929565, 0.40706756711006165, -0.5156899690628052, 0.026403769850730896, -0.18907955288887024, 0.4230322241783142, -0.21974848210811615, 0.06022317707538605, -0.03568098694086075, -0.08486977964639664, -0.06967103481292725, 0.03513649106025696, 0.06530612707138062, 0.2273830771446228, 0.0020751357078552246, 0.18941132724285126, -0.40791231393814087, -0.22336062788963318, 0.321988582611084, -0.6194618344306946, -0.3507412374019623, -0.08837076276540756, 0.4081410765647888, 0.16110117733478546, -0.3031415045261383, -0.36187905073165894, 0.1399896740913391, 0.32507243752479553, 0.026662319898605347, -0.36879846453666687, -0.06006402149796486, -0.1723570078611374, 0.1622220277786255, 0.026549194008111954, 0.44256046414375305, 0.08086087554693222, 0.07672867178916931, 0.17237810790538788, -0.1925548017024994 ]
https://github.com/huggingface/datasets/issues/4238
Dataset caching policy
SOLVED! The problem was the with the file itself, using caching parameter helped indeed. Thanks for helping!
## Describe the bug I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error ``` [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences") print(dataset_builder.cache_dir) print(dataset_builder.info.features) print(dataset_builder.info.splits) ``` ``` Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 None None ``` and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`. Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it? Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last. Thank you. ## Steps to reproduce the bug ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) sentences = sentences.shuffle() ``` ## Expected results Properly tokenize dataset file `test.csv` without issues. ## Actual results Specify the actual results or traceback. ``` Downloading data files: 100% 2/2 [00:16<00:00, 7.34s/it] Downloading data: 100% 391M/391M [00:12<00:00, 36.6MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 40.0MB/s] Extracting data files: 100% 2/2 [00:00<00:00, 47.66it/s] Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data. 100% 2/2 [00:00<00:00, 25.94it/s] 11% 942339/8256449 [01:55<13:11, 9245.85ex/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>() 12 ) 13 # You can make this part faster with num_proc=<some int> ---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) 15 sentences = sentences.shuffle() 10 frames [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` ## Environment info ``` - `datasets` version: 2.1.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 - ``` ``` - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.11.0+cu113 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> - ```
17
Dataset caching policy ## Describe the bug I cannot clean cache of my datasets files, despite I have updated the `csv` files on the repository [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences). The original file had a line with bad characters, causing the following error ``` [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` The file now is cleanup up, but I still get the error. This happens even if I inspect the local cached contents, and cleanup the files locally: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("loretoparisi/tatoeba-sentences") print(dataset_builder.cache_dir) print(dataset_builder.info.features) print(dataset_builder.info.splits) ``` ``` Using custom data configuration loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-e59b8ad92f1bb8dd/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519 None None ``` and removing files located at `/root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-*`. Is there any remote file caching policy in place? If so, is it possibile to programmatically disable it? Currently it seems that the file `test.csv` on the repo [here](https://huggingface.co/datasets/loretoparisi/tatoeba-sentences/blob/main/test.csv) is cached remotely. In fact I download locally the file from raw link, the file is up-to-date; but If I use it within `datasets` as shown above, it gives to me always the first revision of the file, not the last. Thank you. ## Steps to reproduce the bug ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) sentences = sentences.shuffle() ``` ## Expected results Properly tokenize dataset file `test.csv` without issues. ## Actual results Specify the actual results or traceback. ``` Downloading data files: 100% 2/2 [00:16<00:00, 7.34s/it] Downloading data: 100% 391M/391M [00:12<00:00, 36.6MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 40.0MB/s] Extracting data files: 100% 2/2 [00:00<00:00, 47.66it/s] Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-efeff8965c730a2c/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519. Subsequent calls will reuse this data. 100% 2/2 [00:00<00:00, 25.94it/s] 11% 942339/8256449 [01:55<13:11, 9245.85ex/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-3-6a9867fad8d6>](https://localhost:8080/#) in <module>() 12 ) 13 # You can make this part faster with num_proc=<some int> ---> 14 sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) 15 sentences = sentences.shuffle() 10 frames [/usr/local/lib/python3.7/dist-packages/datasets/features/features.py](https://localhost:8080/#) in str2int(self, values) 852 if value not in self._str2int: 853 value = str(value).strip() --> 854 output.append(self._str2int[str(value)]) 855 else: 856 # No names provided, try to integerize KeyError: '\\N' ``` ## Environment info ``` - `datasets` version: 2.1.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 - ``` ``` - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.11.0+cu113 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> - ``` SOLVED! The problem was the with the file itself, using caching parameter helped indeed. Thanks for helping!
[ 0.012393582612276077, 0.2971673309803009, -0.0013777483254671097, 0.24174854159355164, 0.2187061905860901, 0.22311559319496155, 0.20116841793060303, 0.3845505714416504, 0.04758783057332039, -0.11489890515804291, -0.09904838353395462, -0.20246393978595734, -0.04320531338453293, -0.18928773701190948, -0.13858363032341003, 0.051345959305763245, 0.11173121631145477, -0.00988403707742691, 0.2588103115558624, 0.09541533887386322, -0.07377076894044876, 0.11786381155252457, -0.16709201037883759, -0.07879661023616791, -0.3673931658267975, 0.01662108674645424, -0.08999583125114441, -0.06932669132947922, 0.1066930964589119, -0.6206915974617004, 0.2522147297859192, 0.07245060801506042, 0.2016528993844986, 0.23687061667442322, -0.00012636480096261948, -0.10246655344963074, 0.1549503207206726, -0.08202298730611801, -0.2950686514377594, 0.16411173343658447, -0.08562231808900833, -0.29829609394073486, -0.0182765182107687, -0.14259660243988037, 0.18078795075416565, -0.07934406399726868, -0.019251083955168724, -0.5169649124145508, 0.48460304737091064, 0.477077841758728, 0.1433762162923813, 0.03471817448735237, -0.09205898642539978, 0.29089727997779846, 0.21273422241210938, 0.32872533798217773, -0.21830618381500244, 0.16110484302043915, 0.09549088776111603, -0.0793987512588501, -0.0012771040201187134, 0.22347792983055115, -0.32599714398384094, 0.0802004411816597, 0.12586906552314758, 0.062094368040561676, -0.2099144160747528, -0.05864953249692917, 0.5644941329956055, 0.11770126223564148, 0.5416300892829895, -0.2061922550201416, -0.5126445293426514, -0.43215686082839966, -0.11850153654813766, -0.22467680275440216, 0.5172954797744751, 0.18255358934402466, -0.1643291562795639, 0.23536688089370728, -0.37081974744796753, -0.37346526980400085, 0.056354910135269165, -0.24828745424747467, 0.012557074427604675, -0.033255137503147125, -0.0691288486123085, -0.08592206984758377, -0.3153804540634155, -0.33436113595962524, -0.025036048144102097, -0.18664339184761047, -0.17544439435005188, 0.32071810960769653, -0.42848917841911316, 0.2038651406764984, 0.05043599754571915, 0.3530402183532715, 0.009537719190120697, -0.056825511157512665, 0.02770976722240448, -0.11322348564863205, -0.012364592403173447, -0.10349240154027939, -0.016136839985847473, 0.5280764698982239, 0.3833259046077728, 0.22477279603481293, 0.41807472705841064, 0.10716019570827484, -0.12219257652759552, -0.05967463552951813, 0.10856606066226959, -0.2088310718536377, 0.46929895877838135, 0.29808706045150757, 0.08740120381116867, -0.2639746367931366, -0.4008612036705017, 0.3987271785736084, 0.07925236970186234, -0.04350052773952484, 0.08097658306360245, 0.11828745901584625, -0.26543182134628296, 0.24691322445869446, -0.3109484314918518, -0.034464746713638306, -0.26820164918899536, -0.14731106162071228, -0.14267311990261078, -0.004487061873078346, -0.09368500113487244, 0.13298968970775604, 0.3898322880268097, -0.2782133221626282, 0.09409330040216446, 0.09149301797151566, 0.13832639157772064, 0.038082197308540344, -0.10301488637924194, -0.35508882999420166, 0.1618322879076004, 0.2283443808555603, -0.362639456987381, 0.07375884801149368, 0.21239392459392548, -0.44727909564971924, -0.09075120091438293, 0.09068708121776581, -0.4696442484855652, -0.25002485513687134, -0.039682015776634216, 0.029920581728219986, -0.2703045606613159, -0.022017166018486023, -0.20118993520736694, -0.12216119468212128, 0.767985463142395, -0.1301230937242508, 0.13869500160217285, -0.06071735918521881, -0.20748619735240936, -0.24864019453525543, 0.02413606084883213, 0.7459713816642761, -0.3978329598903656, -0.0034807994961738586, 0.022398293018341064, 0.33457666635513306, 0.11889766901731491, 0.38937804102897644, 0.025051139295101166, 0.013842031359672546, -0.47603073716163635, 0.13597233593463898, -0.010797552764415741, -0.32612407207489014, -0.5294507145881653, 0.23547184467315674, -0.0219724141061306, 0.04389607161283493, 0.48054102063179016, -0.13118931651115417, 0.3278714120388031, -0.1496674120426178, 0.23127034306526184, 0.0843566283583641, 0.020896049216389656, -0.05184707045555115, -0.2929527163505554, -0.2801831066608429, 0.17343999445438385, -0.15149126946926117, 0.13810954988002777, 0.1100747361779213, 0.14900800585746765, -0.10443026572465897, 0.13039395213127136, -0.10285860300064087, 0.3173863887786865, 0.3218125104904175, 0.19969594478607178, 0.3361395001411438, 0.19406872987747192, -0.013326847925782204, -0.5634206533432007, 0.3336995840072632, -0.15107086300849915, -0.048796601593494415, -0.5828679203987122, -0.33749669790267944, -0.004659480415284634, -0.045259423553943634, -0.34983623027801514, -0.23404887318611145, 0.010960213840007782, 0.2944904565811157, 0.20930466055870056, 0.07748539745807648, -0.3025777339935303, 0.5547485947608948, -0.15145565569400787, 0.035655807703733444, -0.31498393416404724, 0.03440609574317932, 0.03546404838562012, -0.11763370037078857, -0.29777097702026367, 0.16212892532348633, 0.1365375816822052, -0.06426619738340378, -0.34848877787590027, 0.3423914611339569, 0.10216046869754791, 0.11832386255264282, 0.1725015640258789, 0.35129109025001526, 0.14733685553073883, 0.04552843049168587, 0.12056617438793182, 0.19254285097122192, 0.05202977731823921, 0.18808811902999878, -0.2764335572719574, 0.45648306608200073, -0.3377998173236847, 0.3060479462146759, -0.1606564074754715, -0.0844259113073349, 0.35754162073135376, 0.06337322294712067, -0.04943305253982544, -0.4019524157047272, 0.3338899314403534, -0.07751084864139557, 0.25830984115600586, 0.1751251220703125, -0.15886172652244568, -0.13456237316131592, 0.4126012921333313, 0.2732483148574829, 0.04177915304899216, 0.19239825010299683, 0.17996922135353088, -0.2073262333869934, 0.10342629998922348, 0.3869754374027252, 0.2926305830478668, -0.04776477813720703, -0.05850287154316902, -0.07561837881803513, 0.3888523578643799, -0.22364309430122375, 0.18441176414489746, -0.24221627414226532, -0.5531631708145142, 0.3378499746322632, 0.30721423029899597, 0.3249042332172394, -0.25006619095802307, -0.09040352702140808, 0.1127331331372261, 0.26638558506965637, -0.3754599988460541, -0.05021560192108154, -0.4189835786819458, -0.4062882661819458, -0.22130537033081055, 0.23249103128910065, -0.37585851550102234, -0.1735001504421234, -0.1743536740541458, -0.18575188517570496, -0.07246716320514679, -0.013771332800388336, -0.1813279688358307, 0.21749721467494965, -0.023300228640437126, -0.38347670435905457, -0.19253678619861603, -0.10378234833478928, -0.17743942141532898, -0.15400487184524536, 0.23942461609840393, -0.25701630115509033, 0.17346695065498352, -0.4991285800933838, -0.14618995785713196, -0.4262445867061615, -0.11575188487768173, -0.08201912045478821, 0.1450813114643097, 0.03965374827384949, 0.09556145966053009, 0.21995553374290466, -0.2006959617137909, -0.040311142802238464, 0.32196158170700073, -0.1443939059972763, -0.006413026712834835, 0.10555975139141083, 0.33806851506233215, 0.0959964245557785, -0.09811146557331085, -0.05323546379804611, -0.1494612842798233, -0.20814529061317444, 0.11319386214017868, -0.24044132232666016, 0.005843747407197952, 0.26410990953445435, -0.29237988591194153, -0.10000345855951309, -0.1252763420343399, 0.17269155383110046, -0.08224744349718094, -0.48951148986816406, 0.43401825428009033, 0.06773338466882706, -0.14810006320476532, 0.006235692650079727, 0.30591845512390137, -0.015239682048559189, 0.22022399306297302, -0.5601283311843872, 0.0038391733542084694, -0.39107248187065125, 0.6649290919303894, 0.07086589932441711, 0.15025849640369415, 0.25558197498321533, -0.008298886939883232, 0.04103223979473114, 0.07155868411064148, -0.22987549006938934, 0.018508784472942352, 0.11504513770341873, 0.10875784605741501, 0.24417757987976074, 0.33026576042175293, 0.14210066199302673, 0.5426908731460571, 0.042968448251485825, 0.1509299874305725, 0.502310574054718, 0.17748260498046875, 0.4783696234226227, -0.16970384120941162, -0.4058671295642853, 0.10035787522792816, -0.16922977566719055, -0.36351412534713745, 0.1804773211479187, 0.16899612545967102, 0.2567850947380066, -0.2230030745267868, -0.025275567546486855, -0.1526254415512085, -0.16459150612354279, 0.13319826126098633, -0.4737534523010254, 0.4249725043773651, 0.18996678292751312, -0.10460151731967926, -0.2555205523967743, -0.40371260046958923, -0.038198746740818024, 0.16021470725536346, 0.2247755527496338, 0.11942913383245468, -0.04593731090426445, -0.12984849512577057, -0.28100183606147766, 0.29042577743530273, 0.22958098351955414, 0.7262060642242432, -0.18001841008663177, 0.10630003362894058, 0.07340691238641739, 0.023686937987804413, 0.4988808035850525, 0.07582177966833115, 0.11584439128637314, -0.06973852217197418, 0.022362731397151947, -0.001474263146519661, -0.2985978126525879, 0.3196665048599243, 0.4175270199775696, -0.042024362832307816, 0.3266114890575409, 0.015472158789634705, -0.21119262278079987, -0.36018431186676025, 0.34417179226875305, -0.23279866576194763, -0.05879591405391693, -0.17957386374473572, -0.016038095578551292, -0.13050450384616852, 0.049970511347055435, 0.08121609687805176, 0.027919625863432884, 0.18140791356563568, 0.4388042688369751, -0.017361892387270927, -0.09996145963668823, 0.03356187045574188, -0.2906663417816162, 0.3134855031967163, -0.013152473606169224, 0.09897138178348541, -0.003180410712957382, 0.11234357953071594, 0.050987135618925095, 0.41831594705581665, -0.08823424577713013, -0.37902694940567017, -0.17776364088058472, -0.30974289774894714, 0.04337388277053833, 0.17042496800422668, -0.30941808223724365, 0.06677588075399399, 0.09167776256799698, 0.27143993973731995, -0.0596449188888073, -0.08085273206233978, 0.1092197373509407, -0.021028945222496986, 0.05162593722343445, -0.48146378993988037, 0.30477553606033325, 0.22196118533611298, -0.0486808717250824, -0.0928841233253479, 0.20034632086753845, -0.3756882846355438, 0.20233970880508423, 0.1964786946773529, 0.6847465634346008, 0.08860787749290466, 0.2667193114757538, -0.19931575655937195, 0.07688641548156738, 0.7398192286491394, -0.3023539185523987, 0.16798456013202667, -0.13975350558757782, 0.1570092737674713, -0.06106370687484741, 0.140855610370636, 0.21164599061012268, -0.052128925919532776, 0.02749040350317955, 0.4517362117767334, -0.3623848557472229, 0.38148725032806396, 0.12367663532495499, -0.07039538025856018, -0.3189990222454071, -0.1327587515115738, -0.08139318227767944, -0.06861985474824905, -0.25537383556365967, 0.013300685212016106, -0.04592141881585121, 0.17730334401130676, 0.058587659150362015, -0.07296130061149597, -0.49744337797164917, -0.16443783044815063, -0.009210498072206974, 0.1995886117219925, 0.05927126854658127, -0.25294020771980286, 0.02943277359008789, 0.36904022097587585, 0.5244760513305664, 0.2263176590204239, -0.05733117461204529, 0.036063943058252335, 0.18896625936031342, 0.10061333328485489, 0.008475727401673794, 0.06536830216646194, 0.12560230493545532, 0.03971604257822037, -0.020721621811389923, -0.20025625824928284, -0.18161499500274658, -0.3541405200958252, -0.1060071587562561, 0.12962627410888672, 0.0684417337179184, -0.18705716729164124, -0.010638040490448475, -0.38412946462631226, 0.24497932195663452, -0.06778204441070557, 0.03773566335439682, 0.24427363276481628, -0.09048420190811157, 0.017053019255399704, -0.22788284718990326, -0.22194987535476685, -0.03972984477877617, 0.3476562798023224, 0.2146349549293518, -0.37450969219207764, 0.6968059539794922, -0.037217430770397186, -0.09728234261274338, -0.115887351334095, -0.016758598387241364, -0.17952728271484375, -0.5390042662620544, 0.11574992537498474, -0.1199076771736145, 0.03742364048957825, -0.02428022213280201, -0.09589351713657379, 0.1143275573849678, 0.08243708312511444, -0.13542692363262177, -0.5628751516342163, -0.29809266328811646, -0.21381114423274994, 0.05956568568944931, 0.02489151805639267, 0.1486712396144867, -0.25958362221717834, -0.07831893116235733, -0.1857481598854065, -0.13100257515907288, -0.029832730069756508, -0.2002624273300171, 0.07591058313846588, 0.19046884775161743, 0.21713700890541077, -0.1816452294588089, -0.20527148246765137, -0.05644824355840683, 0.09741020202636719, 0.19398730993270874, -0.07590676844120026, -0.013025817461311817, 0.21394559741020203, -0.0488215908408165, -0.06610038131475449, -0.22471949458122253, -0.04924101382493973, -0.07940556108951569, -0.2644957900047302, 0.030202146619558334, 0.3578818440437317, -0.03455860912799835, 0.4326806664466858, -0.10317489504814148, 0.15728208422660828, 0.03630400449037552, 0.3256644606590271, 0.022618945688009262, 0.19949638843536377, 0.03683018684387207, 0.38761380314826965, -0.12425731867551804, 0.14559485018253326, -0.2493017613887787, 0.03405904024839401, -0.2740899324417114, -0.04984351992607117, -0.011905238032341003, -0.7176520228385925, -0.047891780734062195, 0.31849807500839233, 0.2566049098968506, 0.5303410291671753, -0.09779875725507736, -0.26688286662101746, 0.38881218433380127, 0.026744570583105087, -0.13884422183036804, -0.10282496362924576, 0.26367977261543274, 0.19049502909183502, -0.11714379489421844, 0.10744550824165344, 0.34439510107040405, -0.227254256606102, 0.045265957713127136, 0.06241440773010254, 0.622978687286377, -0.1713075339794159, 0.1222955584526062, 0.341071218252182, 0.2598596513271332, 0.08633622527122498, 0.19559244811534882, 0.10537809133529663, -0.031106717884540558, 0.5883733630180359, 0.03270552679896355, 0.054391033947467804, 0.3945005238056183, 0.3909541666507721, -0.31966450810432434, -0.632339596748352, 0.4486403167247772, 0.14229077100753784, -0.2467743158340454, 0.1446680873632431, -0.019016243517398834, 0.3927974998950958, -0.07674670964479446, -0.21624957025051117, -0.14952421188354492, 0.1239941418170929, -0.30767178535461426, -0.22758525609970093, 0.04628312587738037, -0.2569924294948578, -0.04265647009015083, 0.16998103260993958, -0.05879300460219383, 0.33856385946273804, 0.2130107283592224, -0.0027181655168533325, -0.2035451978445053, -0.3313356935977936, 0.10589732229709625, 0.030193999409675598, 0.3501744270324707, -0.3610575795173645, 0.07344762235879898, 0.354178786277771, -0.14936646819114685, 0.004890933632850647, 0.19059261679649353, 0.5870630741119385, 0.3003973364830017, 0.06802413612604141, 0.07315243035554886, -0.2649986147880554, 0.06589333713054657, -0.14089226722717285, 0.5814991593360901, -0.27812471985816956, -0.051024872809648514, 0.13920418918132782, -0.043195903301239014, -0.015033015049993992, 0.4320273995399475, -0.14415915310382843, 0.33553799986839294, -0.0652601420879364, 0.04728704318404198, -0.025015149265527725, -0.1433454155921936, 0.055262092500925064, 0.10718246549367905, -0.1661214381456375, -0.18950577080249786, 0.5579116344451904, 0.009224130772054195, 0.10016213357448578, -0.22335374355316162, 0.009260082617402077, -0.04165490344166756, 0.5770376324653625, 0.8015143275260925, 0.15742704272270203, -0.04630931839346886, 0.06083737313747406, -0.7923561930656433, -0.03914973884820938, -0.015249848365783691, 0.07852637767791748, 0.09530457854270935, 0.02471453882753849, -0.11236358433961868, 0.039900489151477814, -0.15077416598796844, 0.15802520513534546, -0.03425435349345207, 0.007049672305583954, -0.18516522645950317, -0.09960399568080902, 0.0014865174889564514, 0.1831905096769333, 0.054286837577819824, -0.4839750826358795, 0.28239336609840393, -0.11083294451236725, -0.07314255833625793, -0.0918777734041214, -0.10482563823461533, 0.17556016147136688, -0.10695987939834595, 0.06693293154239655, 0.4307733178138733, 0.19146451354026794, 0.34298476576805115, -0.07218275219202042, -0.3610795736312866, 0.10161224007606506, -0.07661084830760956, 0.16870275139808655, -0.012596577405929565, 0.40706756711006165, -0.5156899690628052, 0.026403769850730896, -0.18907955288887024, 0.4230322241783142, -0.21974848210811615, 0.06022317707538605, -0.03568098694086075, -0.08486977964639664, -0.06967103481292725, 0.03513649106025696, 0.06530612707138062, 0.2273830771446228, 0.0020751357078552246, 0.18941132724285126, -0.40791231393814087, -0.22336062788963318, 0.321988582611084, -0.6194618344306946, -0.3507412374019623, -0.08837076276540756, 0.4081410765647888, 0.16110117733478546, -0.3031415045261383, -0.36187905073165894, 0.1399896740913391, 0.32507243752479553, 0.026662319898605347, -0.36879846453666687, -0.06006402149796486, -0.1723570078611374, 0.1622220277786255, 0.026549194008111954, 0.44256046414375305, 0.08086087554693222, 0.07672867178916931, 0.17237810790538788, -0.1925548017024994 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
Thanks for reporting. I understand it's an error in the dataset script. To reproduce: ```python >>> import datasets as ds >>> split_names = ds.get_dataset_split_names("mozilla-foundation/common_voice_8_0", use_auth_token="**********") Downloading builder script: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10.9k/10.9k [00:00<00:00, 10.9MB/s] Downloading extra modules: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.98k/2.98k [00:00<00:00, 3.36MB/s] Downloading extra modules: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 53.1k/53.1k [00:00<00:00, 650kB/s] No config specified, defaulting to: common_voice/en Traceback (most recent call last): File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info for split_generator in builder._split_generators( File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 153, in _split_generators self._log_download(self.config.name, bundle_version, hf_auth_token) File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 139, in _log_download email = HfApi().whoami(auth_token)["email"] KeyError: 'email' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names info = get_dataset_config_info( File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config. ```
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
151
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 Thanks for reporting. I understand it's an error in the dataset script. To reproduce: ```python >>> import datasets as ds >>> split_names = ds.get_dataset_split_names("mozilla-foundation/common_voice_8_0", use_auth_token="**********") Downloading builder script: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10.9k/10.9k [00:00<00:00, 10.9MB/s] Downloading extra modules: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.98k/2.98k [00:00<00:00, 3.36MB/s] Downloading extra modules: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 53.1k/53.1k [00:00<00:00, 650kB/s] No config specified, defaulting to: common_voice/en Traceback (most recent call last): File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 280, in get_dataset_config_info for split_generator in builder._split_generators( File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 153, in _split_generators self._log_download(self.config.name, bundle_version, hf_auth_token) File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_8_0/720589e6e5ad674019008b719053303a71716db1b27e63c9846df02fdf93f2f3/common_voice_8_0.py", line 139, in _log_download email = HfApi().whoami(auth_token)["email"] KeyError: 'email' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 323, in get_dataset_split_names info = get_dataset_config_info( File "/home/slesage/hf/datasets-preview-backend/libs/libmodels/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 285, in get_dataset_config_info raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config. ```
[ -0.6561423540115356, -0.004004091024398804, 0.005423203110694885, 0.13106995820999146, 0.28544431924819946, 0.26823875308036804, 0.41653478145599365, 0.376859575510025, 0.15680861473083496, 0.10948380082845688, -0.2961750328540802, -0.04195293039083481, -0.20162828266620636, -0.13404631614685059, 0.05747264251112938, 0.1446569859981537, -0.13792684674263, 0.23004655539989471, 0.4713994562625885, -0.10875995457172394, -0.09530650824308395, 0.18995057046413422, -0.4361647367477417, -0.05963201820850372, -0.3213806450366974, -0.02335583232343197, -0.07383759319782257, 0.2103639543056488, -0.17618851363658905, -0.5815721750259399, 0.08808939158916473, 0.2043594866991043, 0.14406706392765045, 0.3822391629219055, -0.00012059292930644006, 0.13611136376857758, 0.3740224838256836, 0.02707170508801937, -0.14170542359352112, -0.07705247402191162, -0.17167967557907104, 0.1251586377620697, 0.1751471757888794, 0.041943542659282684, -0.06581533700227737, -0.059508066624403, -0.041130319237709045, -0.586616039276123, 0.27980154752731323, 0.26278889179229736, 0.18358959257602692, 0.012694146484136581, 0.18939565122127533, 0.16313284635543823, -0.07756290584802628, 0.1900332272052765, -0.09786322712898254, 0.208856001496315, -0.013606064021587372, 0.22101497650146484, 0.09312597662210464, 0.18458615243434906, -0.11328082531690598, -0.14057765901088715, -0.07210948318243027, -0.059508174657821655, -0.1664901077747345, -0.46468469500541687, 0.3115742802619934, 0.23559623956680298, 0.7882735133171082, -0.3587974011898041, -0.17275704443454742, -0.09118551015853882, 0.1639149785041809, -0.22752751410007477, 0.17844904959201813, 0.25599032640457153, -0.1266659051179886, 0.32265716791152954, -0.16156166791915894, -0.2547992765903473, 0.11613082885742188, 0.18859854340553284, -0.16107994318008423, 0.22893308103084564, -0.20861288905143738, 0.048460446298122406, 0.09045226871967316, 0.06488929688930511, 0.009727722965180874, 0.0323009118437767, -0.007937248796224594, 0.3394324481487274, -0.19826070964336395, -0.04805281013250351, 0.016466643661260605, -0.14268404245376587, 0.23133286833763123, 0.050080254673957825, -0.006940239109098911, 0.08071272820234299, -0.0450061596930027, -0.0059332214295864105, 0.15021875500679016, 0.13140372931957245, 0.3113313913345337, 0.3643588721752167, 0.17378735542297363, 0.24349677562713623, 0.1399262547492981, -0.15258851647377014, -0.25386732816696167, -0.28874149918556213, 0.15280060470104218, -0.15507882833480835, 0.53383469581604, -0.23062242567539215, -0.32789719104766846, 0.1678277850151062, -0.08134841918945312, -0.22619163990020752, 0.23863576352596283, 0.4896346628665924, 0.07630173861980438, 0.2658557593822479, 0.20826558768749237, 0.17380806803703308, -0.13360898196697235, -0.16916874051094055, -0.11367493867874146, -0.0549992136657238, -0.24734188616275787, 0.16368098556995392, 0.26959228515625, -0.4645119607448578, 0.24954289197921753, 0.04772072285413742, 0.36102795600891113, -0.21809692680835724, -0.24710166454315186, 0.2480441778898239, -0.12388811260461807, 0.13254109025001526, 0.21122485399246216, 0.36110785603523254, 0.1346389502286911, -0.23681890964508057, -0.1367330104112625, 0.14517495036125183, -0.13321983814239502, -0.28375938534736633, -0.33066216111183167, 0.12724848091602325, -0.11526837199926376, 0.06098978966474533, 0.3822709918022156, 0.05829177796840668, 0.11102733761072159, -0.2866751551628113, -0.0817493125796318, 0.013645529747009277, -0.11049997061491013, -0.08564597368240356, 0.4975487291812897, 0.6625702977180481, -0.32181715965270996, -0.11624849587678909, -0.5413196682929993, -0.09833680093288422, -0.08010778576135635, 0.03739219531416893, -0.09848257154226303, -0.2696496546268463, -0.39086952805519104, 0.155504047870636, 0.8233067393302917, -0.3098909258842468, -0.4651504158973694, 0.42887964844703674, 0.11718162894248962, -0.06974456459283829, 0.12012718617916107, -0.33969253301620483, -0.015019906684756279, 0.051429394632577896, -0.03553623706102371, 0.033759985119104385, 0.0748930424451828, -0.08529242128133774, -0.15125446021556854, -0.14913518726825714, -0.029944613575935364, 0.17085395753383636, 0.07794293016195297, 0.16076911985874176, 0.14854875206947327, 0.016763851046562195, 0.6047714352607727, 0.2706795334815979, 0.13948491215705872, 0.07498429715633392, 0.20567691326141357, 0.0003371909260749817, 0.050462041050195694, -0.11635153740644455, -0.24474766850471497, 0.2339596152305603, 0.09998948872089386, -0.1635265201330185, -0.05422130227088928, -0.21416038274765015, -0.3621360659599304, 0.005100801587104797, -0.4061989486217499, -0.08840806782245636, 0.055541396141052246, 0.2585830092430115, -0.024328893050551414, -0.01043233834207058, -0.25140562653541565, -0.2850620150566101, 0.3428550064563751, 0.2538772225379944, 0.04890286922454834, 0.4533400237560272, -0.20447757840156555, -0.06346260756254196, 0.1484978348016739, 0.24963268637657166, 0.05411329120397568, 0.09293249249458313, -0.0692354142665863, 0.3675212264060974, -0.028859151527285576, 0.16266030073165894, 0.028536057099699974, -0.006823703646659851, 0.0953674241900444, -0.5219926834106445, 0.6353208422660828, 0.09089142084121704, -0.07603377103805542, 0.03791382163763046, 0.135719895362854, 0.090835802257061, 0.2400171011686325, 0.04478267952799797, 0.01691698282957077, 0.3338451683521271, -0.0015066247433423996, 0.0675569474697113, 0.06549449265003204, -0.41451796889305115, 0.1372194141149521, -0.06833881139755249, 0.6825825572013855, -0.09383545815944672, -0.5671578645706177, 0.08201462030410767, 0.6491981744766235, -0.012037402018904686, 0.022463656961917877, -0.059400416910648346, -0.40818944573402405, 0.08490604162216187, 0.10068995505571365, -0.29487189650535583, 0.2523971199989319, 0.165307879447937, -0.15769386291503906, 0.4188086688518524, 0.0409068688750267, -0.06081299111247063, 0.1969887912273407, 0.09581983089447021, 0.07499945163726807, 0.2490260899066925, -0.282640278339386, -0.007742154411971569, -0.3539455831050873, -0.4639948904514313, -0.10738225281238556, 0.07951849699020386, -0.4945598840713501, -0.14972077310085297, -0.13085287809371948, 0.0066900476813316345, -0.246516615152359, -0.03794093802571297, -0.3801369369029999, -0.32981353998184204, -0.05365169793367386, 0.07522901147603989, 0.20427195727825165, 0.2202465981245041, -0.5546544194221497, -0.13564957678318024, 0.1713714748620987, 0.0196708831936121, -0.15757226943969727, 0.19467678666114807, -0.23114600777626038, 0.001782706007361412, 0.28846922516822815, -0.16068319976329803, -0.1258435994386673, -0.37896114587783813, 0.08975494652986526, -0.17698846757411957, -0.1934792399406433, 0.1357642114162445, 0.12313813716173172, 0.007399258203804493, 0.1334005743265152, -0.016492731869220734, 0.15871793031692505, -0.11182606220245361, 0.3283582627773285, -0.033938854932785034, 0.05240149796009064, 0.10265136510133743, 0.053820010274648666, -0.20693133771419525, -0.015859253704547882, -0.38360682129859924, -0.10737215727567673, -0.5368223190307617, 0.057313598692417145, 0.03327048942446709, 0.11256828904151917, 0.2148689329624176, 0.09106072783470154, 0.004469164647161961, -0.3055875599384308, 0.24037741124629974, -0.16540281474590302, -0.3441016674041748, 0.3704252243041992, -0.2694292664527893, -0.2331724315881729, 0.2585316300392151, -0.17561998963356018, 0.4928232729434967, -0.21371430158615112, -0.42068690061569214, 0.4923173785209656, -0.13034506142139435, 0.2304924726486206, -0.11872677505016327, 0.012104978784918785, 0.16647756099700928, 0.302973210811615, 0.09513169527053833, -0.1044759601354599, -0.17517495155334473, -0.36234980821609497, -0.06892427802085876, 0.20801278948783875, -0.0721438080072403, 0.35061028599739075, -0.11105695366859436, 0.7606475949287415, 0.356497198343277, 0.13599447906017303, 0.18271107971668243, -0.25107109546661377, 0.48026424646377563, -0.001288101077079773, -0.3529040217399597, 0.3592374622821808, 0.26511090993881226, 0.0710277184844017, 0.450078547000885, 0.0320962518453598, -0.1012115553021431, -0.27014073729515076, -0.016419563442468643, -0.3475951850414276, -0.3229843080043793, -0.09901656955480576, -0.5305118560791016, 0.09021570533514023, 0.019449904561042786, 0.2557263672351837, 0.053953949362039566, -0.05891072377562523, -0.09455293416976929, 0.4101985692977905, 0.018781498074531555, 0.043085526674985886, 0.08362692594528198, 0.016418641433119774, -0.4600334167480469, 0.24016129970550537, -0.2130235731601715, 0.2793564200401306, -0.2060447782278061, -0.07373920828104019, 0.04506099596619606, 0.2268897444009781, 0.22557295858860016, 0.013098021037876606, -0.04102548211812973, 0.30804887413978577, 0.10322356224060059, -0.3781837821006775, -0.1668435037136078, -0.005379326641559601, 0.22620737552642822, -0.1337752491235733, -0.1777307093143463, -0.1493624448776245, -0.07044047862291336, 0.3333550691604614, 0.11089503765106201, -0.04972534254193306, -0.319153755903244, -0.17161114513874054, 0.14445140957832336, -0.4604651927947998, -0.21063613891601562, -0.1290838122367859, 0.029886217787861824, -0.305331289768219, -0.05032769590616226, 0.30195924639701843, -0.4067068099975586, 0.3067944645881653, 0.1494021862745285, 0.08669126778841019, 0.04024437069892883, 0.39735499024391174, 0.5313230156898499, 0.2428804337978363, 0.05828128010034561, 0.6532739400863647, 0.3175141215324402, -0.4883931875228882, 0.018242711201310158, 0.05985694006085396, 0.33967292308807373, 0.07308755815029144, -0.23933707177639008, -0.2291766107082367, 0.318362832069397, 0.2216479629278183, -0.07102123647928238, -0.17271873354911804, 0.5620818734169006, 0.1331111639738083, -0.40031328797340393, -0.4171767234802246, 0.21701502799987793, -0.08374029397964478, -0.0035566389560699463, 0.20925389230251312, 0.006895273923873901, -0.07907287776470184, -0.11774355918169022, -0.480133056640625, 0.7148767709732056, 0.21873730421066284, -0.11408595740795135, 0.24223440885543823, -0.07312124967575073, -0.09744486957788467, -0.00455416738986969, -0.08157575875520706, -0.18100790679454803, -0.1730378419160843, 0.022960400208830833, -0.15847676992416382, 0.3931730389595032, 0.3188043236732483, -0.5133059024810791, 0.1688121259212494, -0.280171662569046, -0.26330631971359253, 0.12198006361722946, 0.3110851049423218, -0.40438157320022583, 0.04956062510609627, -0.01654534414410591, 0.04625239223241806, -0.06629522144794464, 0.5286536812782288, -0.014726415276527405, 0.08489729464054108, -0.05487320199608803, -0.36181408166885376, -0.3388921320438385, 0.329849511384964, -0.2254796177148819, -0.1610487699508667, 0.15841731429100037, -0.014254175126552582, 0.7971376180648804, 0.14155416190624237, 0.0611177533864975, 0.26767590641975403, -0.25528037548065186, 0.24109314382076263, 0.031036097556352615, -0.14979003369808197, 0.09367496520280838, 0.22870248556137085, 0.353103905916214, -0.04560202360153198, -0.48983752727508545, 0.2887153625488281, -0.04970916733145714, 0.08942772448062897, -0.23863935470581055, -0.22393588721752167, 0.39665788412094116, -0.41086989641189575, 0.1821853518486023, -0.010413773357868195, 0.029641252011060715, -0.042039655148983, 0.08470019698143005, 0.30811601877212524, -0.06045100837945938, 0.02113020420074463, 0.14223307371139526, 0.12215378880500793, -0.05059980973601341, 0.177732914686203, 0.019863592460751534, -0.041594598442316055, 0.4010295271873474, 0.048777852207422256, -0.18364834785461426, -0.21169397234916687, -0.22024303674697876, 0.15267279744148254, -0.2864476144313812, -0.1424746811389923, -0.03006640635430813, 0.09381090104579926, 0.0647895559668541, -0.15713030099868774, -0.1341737061738968, 0.11811063438653946, -0.16903840005397797, -0.45089322328567505, -0.2159716933965683, 0.11490824818611145, -0.11692045629024506, 0.16238832473754883, -0.16175870597362518, 0.48111993074417114, 0.24132555723190308, -0.006625287234783173, -0.25368234515190125, -0.02630085125565529, 0.0697699785232544, -0.060428328812122345, 0.08379300683736801, -0.05565822124481201, 0.07296763360500336, -0.01770840771496296, 0.2307475209236145, -0.1914234608411789, -0.21602901816368103, -0.04516345262527466, 0.021477147936820984, 0.17253853380680084, 0.1311565339565277, -0.16981752216815948, 0.34473517537117004, 0.197950541973114, -0.3591592311859131, -0.15905681252479553, 0.06498803198337555, 0.06353215873241425, -0.0475405752658844, 0.027269966900348663, 0.008457299321889877, -0.3571351170539856, -0.17638513445854187, 0.029704183340072632, -0.15988393127918243, 0.29971641302108765, 0.014952274039387703, 0.3926474452018738, -0.19249771535396576, -0.15350377559661865, -0.12707924842834473, 0.08574976027011871, -0.03298003971576691, 0.05305621773004532, 0.4680738151073456, -0.31387317180633545, 0.12593424320220947, 0.16608069837093353, 0.39772823452949524, 0.17691075801849365, -0.11245029419660568, 0.1933349221944809, 0.20248806476593018, 0.1191239133477211, -0.5042489171028137, 0.14662964642047882, 0.11067250370979309, -0.019194629043340683, 0.17725689709186554, 0.033730342984199524, -0.05850733816623688, -0.09213097393512726, 0.0470455177128315, 0.005617832764983177, 0.24700824916362762, 0.14295396208763123, 0.4164421260356903, 0.3270048201084137, -0.14970789849758148, 0.17745062708854675, 0.404724657535553, 0.09844845533370972, 0.09924924373626709, 0.34590595960617065, -0.6221607327461243, 0.10977445542812347, -0.1515408754348755, -0.03053252026438713, 0.3384506106376648, -0.3952786922454834, 0.09713287651538849, 0.1261928826570511, -0.22137725353240967, -0.07773791998624802, -0.28804269433021545, 0.34995806217193604, -0.2696031630039215, 0.21683968603610992, -0.14658166468143463, 0.25750598311424255, -0.15942156314849854, 0.2819508910179138, 0.059250615537166595, -0.11234506964683533, -0.35964614152908325, -0.18279346823692322, 0.2387729436159134, -0.34298229217529297, 0.15339365601539612, 0.016807589679956436, -0.34957826137542725, -0.192438542842865, 0.08508124202489853, 0.1653476357460022, 0.07722087949514389, -0.24992027878761292, 0.16911627352237701, -0.04498319327831268, -0.09443329274654388, 0.32651856541633606, 0.6442950963973999, 0.5560622215270996, 0.05038854479789734, 0.3271729648113251, -0.1418154239654541, 0.3324846029281616, -0.13140320777893066, 0.0753597542643547, -0.13701093196868896, 0.11503881961107254, 0.24893401563167572, 0.10940635204315186, 0.08002457022666931, -0.13673847913742065, -0.4368441104888916, -0.013022471219301224, 0.28523898124694824, -0.39217641949653625, -0.007139816880226135, -0.5302832126617432, -0.19906705617904663, -0.19901242852210999, -0.044722430408000946, -0.5312963724136353, -0.1359633058309555, 0.35490527749061584, 0.03818698227405548, -0.09226243942975998, -0.46469491720199585, 0.010564111173152924, 0.23080666363239288, -0.04108952358365059, 0.2955457866191864, 0.05994243547320366, 0.19245770573616028, -0.34122684597969055, -0.5168865919113159, 0.29411038756370544, 0.3160490393638611, -0.20793479681015015, -0.09274744987487793, 0.03396981954574585, -0.06586938351392746, 0.0760066881775856, 0.5357164144515991, 0.03893366456031799, -0.11588748544454575, -0.02344353497028351, 0.02443763241171837, -0.33559900522232056, 0.054991889744997025, 0.2501285672187805, -0.08684444427490234, -0.15950895845890045, 0.2525753676891327, -0.32609856128692627, -0.02825620397925377, -0.1608094573020935, 0.30369582772254944, -0.0981314480304718, -0.42007410526275635, 0.3788343667984009, 0.05049003288149834, 0.49348801374435425, -0.11101692914962769, -0.052904289215803146, -0.21548333764076233, -0.18533296883106232, -0.08539309352636337, 0.2482280135154724, 0.0028824545443058014, 0.3881596326828003, -0.18372555077075958, -0.2465016096830368, -0.19499793648719788, 0.05260485038161278, 0.06048325449228287, -0.1027672067284584, -0.15061190724372864, 0.1220754012465477, -0.2088954746723175, 0.319509893655777, 0.28467732667922974, 0.056626465171575546, -0.1264582723379135, -0.1319916546344757, -0.12683811783790588, -0.45140892267227173, 0.4368920624256134, 0.025180131196975708, -0.2089778035879135, -0.37647196650505066, 0.22471624612808228, -0.2646784484386444, -0.19124194979667664, -0.27102822065353394, 0.239650160074234, 0.3196542263031006, -0.051886074244976044, 0.07046866416931152, 0.03168047219514847, -0.20818667113780975, -0.12247525155544281, -0.04025329649448395, 0.4102572500705719, 0.002510417252779007, -0.06450089067220688, 0.1102682501077652, -0.05533837899565697 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
Thanks for reporting @patrickvonplaten and thanks for the investigation @severo. Unfortunately I'm not able to reproduce the error. I think the error has to do with authentication with `huggingface_hub`, because the exception is thrown from these code lines: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/blob/main/common_voice_8_0.py#L137-L139 ```python from huggingface_hub import HfApi, HfFolder if isinstance(auth_token, bool): email = HfApi().whoami(auth_token) email = HfApi().whoami(auth_token)["email"] ``` Could you please verify the previous code with the `auth_token` you pass to `load_dataset(..., use_auth_token=auth_token,...`?
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
70
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 Thanks for reporting @patrickvonplaten and thanks for the investigation @severo. Unfortunately I'm not able to reproduce the error. I think the error has to do with authentication with `huggingface_hub`, because the exception is thrown from these code lines: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/blob/main/common_voice_8_0.py#L137-L139 ```python from huggingface_hub import HfApi, HfFolder if isinstance(auth_token, bool): email = HfApi().whoami(auth_token) email = HfApi().whoami(auth_token)["email"] ``` Could you please verify the previous code with the `auth_token` you pass to `load_dataset(..., use_auth_token=auth_token,...`?
[ -0.38185927271842957, -0.20817908644676208, 0.057624172419309616, 0.25952818989753723, 0.295993447303772, 0.33191949129104614, 0.3500489294528961, 0.18169081211090088, 0.21920616924762726, 0.08946842700242996, -0.5308888554573059, -0.18959714472293854, -0.1368177831172943, -0.23633569478988647, 0.11685923486948013, 0.048967983573675156, -0.04624804109334946, 0.10604815185070038, 0.5292467474937439, -0.13499781489372253, 0.012934636324644089, 0.17525503039360046, -0.418213427066803, 0.20862682163715363, -0.36557888984680176, -0.22379142045974731, -0.08345848321914673, 0.3409714698791504, -0.14806917309761047, -0.5022249817848206, 0.0657803937792778, 0.0664910227060318, 0.10107332468032837, 0.33514490723609924, -0.00011596920376177877, 0.19347195327281952, 0.29535162448883057, 0.09143215417861938, -0.06510762870311737, -0.11357398331165314, -0.039727095514535904, 0.310677707195282, 0.06374132633209229, 0.2539423704147339, -0.09483152627944946, 0.01163552701473236, 0.0008638445287942886, -0.4398348927497864, 0.4318794012069702, 0.3939182758331299, 0.153226837515831, 0.21731391549110413, 0.3227088451385498, 0.15279923379421234, -0.053540922701358795, 0.14938706159591675, -0.052934154868125916, 0.2966727018356323, 0.07809437811374664, 0.28114229440689087, 0.082914799451828, 0.17400620877742767, -0.03314889594912529, -0.16606803238391876, -0.09109503775835037, -0.01829177513718605, -0.22771942615509033, -0.1749003678560257, 0.12400147318840027, 0.18727025389671326, 0.6590703725814819, -0.2755386531352997, -0.2194066196680069, 0.03383893519639969, 0.18540410697460175, -0.12458520382642746, 0.24256408214569092, 0.23317772150039673, -0.1590660959482193, 0.3362693786621094, -0.16106468439102173, -0.3634686768054962, -0.13094215095043182, 0.18161313235759735, -0.025401432067155838, 0.09530069679021835, -0.134446382522583, 0.06159128248691559, 0.1105385571718216, -0.0531226322054863, 0.012067914940416813, 0.11142406612634659, -0.10368505120277405, 0.4123505651950836, -0.2113717943429947, -0.08764966577291489, 0.032021645456552505, 0.08202138543128967, 0.31113946437835693, -0.04752542823553085, 0.003406580537557602, 0.08907666802406311, -0.23091857135295868, 0.12252773344516754, 0.14827081561088562, 0.08464175462722778, 0.25669485330581665, 0.19642986357212067, 0.2694445848464966, 0.24746449291706085, 0.1531979888677597, -0.10624802857637405, -0.33726608753204346, -0.19834265112876892, -0.026797223836183548, -0.15428993105888367, 0.47330063581466675, -0.34729328751564026, -0.3260634243488312, 0.21764451265335083, -0.21331870555877686, -0.06194620206952095, 0.2855882942676544, 0.5224424004554749, 0.04100290313363075, 0.15996724367141724, 0.20442241430282593, 0.2654498815536499, -0.20874731242656708, -0.04400612786412239, -0.09230436384677887, 0.03919542580842972, -0.12175269424915314, 0.019809462130069733, 0.28946566581726074, -0.6270247101783752, 0.09615705162286758, 0.04801107943058014, 0.4596896767616272, -0.2872558832168579, -0.21486052870750427, 0.07991884648799896, -0.22566333413124084, 0.03520108014345169, 0.18647998571395874, 0.18020041286945343, 0.18398894369602203, -0.10930182784795761, -0.043020930141210556, 0.011453557759523392, -0.17406690120697021, -0.31950685381889343, -0.273324579000473, 0.1205216646194458, -0.004207698628306389, 0.025375455617904663, 0.27522727847099304, -0.024484794586896896, -0.16616642475128174, -0.3698233366012573, -0.06980196386575699, 0.19321855902671814, 0.08969895541667938, 0.0494522750377655, 0.283119261264801, 0.5264351963996887, 0.015494182705879211, -0.04611796885728836, -0.2742593586444855, -0.28308603167533875, -0.2764573395252228, 0.26185181736946106, -0.19590821862220764, -0.25053462386131287, -0.42862969636917114, 0.41304707527160645, 0.45868968963623047, -0.5707867741584778, -0.5317321419715881, 0.22782732546329498, 0.06403231620788574, -0.02620762772858143, -0.08423822373151779, -0.2726294696331024, -0.05658593773841858, 0.027820201590657234, 0.11349117755889893, 0.005090503022074699, 0.12152865529060364, 0.045657068490982056, -0.055725131183862686, -0.07300983369350433, -0.08554795384407043, 0.15478716790676117, -0.10530883073806763, 0.2189818024635315, 0.2649230659008026, 0.05646909773349762, 0.5601180195808411, 0.12312102317810059, 0.06989430636167526, 0.09949065744876862, 0.25199830532073975, 0.0017875880002975464, -0.0946991890668869, -0.05658872425556183, 0.033454522490501404, 0.18669286370277405, 0.1870713233947754, -0.05424954742193222, 0.01928091049194336, -0.22937756776809692, -0.34301120042800903, 0.09405447542667389, -0.3044178783893585, 0.02641887590289116, 0.1055682897567749, 0.200868621468544, -0.03388797864317894, 0.06433989107608795, -0.07429329305887222, 0.09500819444656372, 0.22469498217105865, 0.2507317364215851, 0.09411901235580444, 0.43400993943214417, -0.19360670447349548, 0.031826719641685486, 0.0817032977938652, 0.19551150500774384, 0.08317648619413376, 0.05154113098978996, -0.07726607471704483, 0.3155003488063812, -0.048733972012996674, 0.23612943291664124, 0.022906897589564323, -0.04457615315914154, 0.19961591064929962, -0.5553609728813171, 0.43435904383659363, 0.023142848163843155, 0.07306032627820969, 0.012712180614471436, 0.17723947763442993, 0.1645192950963974, 0.23480156064033508, -0.031019248068332672, -0.000584866851568222, 0.36268720030784607, 0.06320276111364365, 0.23679763078689575, 0.033230870962142944, -0.12707336246967316, 0.17688806354999542, -0.10133731365203857, 0.6630597710609436, -0.3435399532318115, -0.722359836101532, -0.08990838378667831, 0.42843058705329895, 0.003366626799106598, 0.16804954409599304, -0.05320478975772858, -0.3983492851257324, 0.1111992672085762, 0.30329883098602295, -0.5512856245040894, 0.25722211599349976, 0.11616579443216324, -0.11790786683559418, 0.4783038794994354, 0.014597025699913502, 0.006151977926492691, 0.1705443412065506, 0.06332483887672424, 0.06904344260692596, 0.10517486184835434, -0.21012337505817413, 0.0596923902630806, -0.4947451651096344, -0.36425361037254333, -0.22053246200084686, 0.007688432931900024, -0.5782781839370728, -0.16410279273986816, 0.08055015653371811, 0.06116323918104172, -0.06187625974416733, -0.19715237617492676, -0.5366531610488892, -0.22076918184757233, -0.011829931288957596, 0.25015851855278015, 0.2320491075515747, 0.0904785618185997, -0.338045597076416, 0.1478220373392105, 0.10566167533397675, 0.16991515457630157, -0.11710666120052338, 0.12630420923233032, -0.1901746690273285, 0.04472417011857033, 0.2067139893770218, -0.10556237399578094, -0.06812334060668945, -0.37247464060783386, 0.3475186228752136, -0.22995731234550476, -0.14223867654800415, 0.13992753624916077, 0.029249049723148346, 0.039034124463796616, 0.006858237087726593, 0.06820623576641083, -0.12243045121431351, -0.07162877172231674, 0.27611708641052246, -0.13693727552890778, -0.1863931119441986, 0.16766773164272308, 0.1336464285850525, -0.09310118854045868, 0.04366790130734444, -0.19527995586395264, -0.21340277791023254, -0.45960941910743713, 0.23071227967739105, -0.10072888433933258, 0.11897343397140503, 0.23647978901863098, -0.03633943945169449, 0.2681334912776947, -0.29456040263175964, 0.18428762257099152, -0.29676416516304016, -0.4692937135696411, 0.09113185852766037, -0.2457764893770218, -0.3136010766029358, 0.29437968134880066, -0.06307335197925568, 0.43831533193588257, -0.23120738565921783, -0.45668309926986694, 0.19055329263210297, 0.005266031250357628, 0.0859752893447876, -0.1452580988407135, -0.0008402727544307709, 0.3305298089981079, 0.10163024067878723, 0.15245231986045837, -0.017923200502991676, -0.21240483224391937, -0.34268224239349365, 0.07217428088188171, 0.020350642502307892, -0.18581190705299377, 0.19317957758903503, -0.0925707072019577, 0.8038673400878906, 0.34195539355278015, 0.31831181049346924, 0.36146819591522217, -0.20021000504493713, 0.37337154150009155, 0.094416543841362, -0.40324074029922485, 0.42030662298202515, 0.19687512516975403, 0.02753552794456482, 0.46484726667404175, 0.1575000286102295, -0.05221272259950638, -0.2878299951553345, -0.3227232098579407, -0.41516390442848206, -0.4055905342102051, -0.12062503397464752, -0.5274922251701355, 0.034947771579027176, 0.09895582497119904, 0.2237289547920227, -0.030985331162810326, -0.13556796312332153, 0.03572019189596176, 0.45956432819366455, 0.04487418010830879, 0.013374106027185917, 0.02784540131688118, -0.0614568255841732, -0.5249907374382019, 0.34853750467300415, -0.1275983601808548, 0.5301104187965393, -0.27434077858924866, -0.02498619444668293, 0.1037985235452652, 0.13556919991970062, 0.18803077936172485, 0.02553645707666874, -0.09463278949260712, 0.17079804837703705, 0.03271971642971039, -0.5143499970436096, 0.02242887392640114, -0.12085831165313721, 0.164531871676445, -0.17184937000274658, 0.06040049344301224, -0.14108744263648987, -0.03836135193705559, 0.04065938666462898, -0.08208078145980835, 0.017610851675271988, -0.19406069815158844, -0.13287664949893951, 0.04299190640449524, -0.5238640308380127, 0.11184771358966827, 0.005765024572610855, 0.11598854511976242, -0.25001823902130127, 0.16215837001800537, 0.10945939272642136, -0.23397791385650635, 0.4151484966278076, 0.09739638864994049, 0.024884356185793877, 0.002957106102257967, 0.26874059438705444, 0.6173626184463501, 0.41463881731033325, -0.023769350722432137, 0.6428937911987305, 0.334678053855896, -0.42043066024780273, -0.03075578436255455, 0.12615197896957397, 0.3155841827392578, 0.25368040800094604, -0.0529693104326725, -0.05015169829130173, 0.23531632125377655, 0.017554081976413727, -0.24689683318138123, -0.07922285795211792, 0.3489643335342407, 0.31539446115493774, -0.44950059056282043, -0.042528361082077026, 0.16075530648231506, -0.1427164375782013, -0.09743481129407883, 0.23925773799419403, 0.3751957416534424, -0.12559856474399567, -0.026633959263563156, -0.5253363251686096, 0.8577909469604492, 0.2396005541086197, 0.08622528612613678, 0.26837387681007385, -0.06775762140750885, -0.09511984884738922, -0.10324477404356003, 0.08087161928415298, -0.14635251462459564, -0.21583524346351624, -0.04904351010918617, -0.22969982028007507, 0.3832468092441559, 0.2273009568452835, -0.3447735607624054, 0.030335059389472008, -0.1579379141330719, -0.16768778860569, 0.004404313862323761, 0.2900506854057312, -0.5957639813423157, -0.0011622142046689987, -0.19254128634929657, 0.12008620798587799, -0.06213866174221039, 0.5775269865989685, -0.14812350273132324, 0.03422237187623978, -0.15291060507297516, -0.42198681831359863, -0.30778589844703674, 0.3329372704029083, -0.16826635599136353, -0.07993555068969727, 0.25851961970329285, 0.04797689616680145, 0.7305329442024231, 0.07384979724884033, 0.27832478284835815, 0.18162944912910461, -0.4462369978427887, 0.2053346186876297, -0.1208416149020195, -0.20208647847175598, -0.028581218793988228, 0.08187008649110794, 0.2550288140773773, -0.09414814412593842, -0.5202370882034302, 0.3352643549442291, -0.1577768623828888, -0.10668457299470901, -0.254467248916626, -0.06722933053970337, 0.25322049856185913, -0.28573641180992126, 0.17279444634914398, -0.0034944117069244385, -0.019924329593777657, 0.01068834587931633, 0.0717817023396492, 0.3582237958908081, -0.13921035826206207, -0.11276162415742874, 0.27315741777420044, 0.22536852955818176, 0.04923468828201294, 0.2895275354385376, -0.1537567675113678, -0.051066163927316666, 0.4141520857810974, 0.07693617045879364, -0.12210772186517715, -0.21843144297599792, -0.2311858832836151, 0.2496822625398636, -0.2664601504802704, -0.26221024990081787, -0.09786876291036606, 0.003988474607467651, -0.023824866861104965, -0.10448721051216125, 0.0644117072224617, 0.05884585902094841, -0.01096813753247261, -0.49925538897514343, -0.4703776240348816, 0.22687116265296936, -0.12986160814762115, 0.09816310554742813, -0.03318456560373306, 0.4027511477470398, 0.1447342485189438, -0.006659029051661491, -0.2661324739456177, 0.11153757572174072, -0.057603057473897934, -0.08288168907165527, -0.09266514331102371, -0.1120903417468071, 0.18965578079223633, -0.15591898560523987, 0.15995238721370697, 0.05095471441745758, -0.26900631189346313, -0.06717273592948914, 0.11898164451122284, 0.15012119710445404, 0.22280767560005188, -0.35022860765457153, 0.31015124917030334, 0.22524522244930267, -0.23924487829208374, -0.03543880209326744, 0.09445491433143616, 0.15706312656402588, -0.062416061758995056, -0.10060124844312668, 0.09041619300842285, -0.10365530103445053, -0.1981482356786728, 0.0037916749715805054, -0.08449091017246246, 0.402340829372406, -0.010594002902507782, 0.13563008606433868, -0.22138886153697968, -0.14937978982925415, -0.007612686604261398, 0.21204209327697754, 0.2455296516418457, 0.0012506842613220215, 0.3482770025730133, -0.19855470955371857, 0.07118876278400421, -0.006494886241853237, 0.361573725938797, -0.08727528154850006, -0.2616744041442871, 0.19664445519447327, 0.31424975395202637, 0.16510532796382904, -0.39496544003486633, 0.04149584472179413, 0.05165175348520279, -0.10469983518123627, 0.05855461582541466, -0.06017529219388962, 0.021789323538541794, 0.0007356628775596619, -0.07446037232875824, 0.03229278326034546, 0.14946751296520233, 0.29630517959594727, 0.12259714305400848, 0.11261941492557526, -0.3947514295578003, 0.06342636793851852, 0.3584437966346741, 0.012627165764570236, 0.1496485471725464, 0.1934363692998886, -0.7532005906105042, 0.05559505894780159, -0.2386961281299591, 0.08688066899776459, 0.3742176592350006, -0.3788796663284302, 0.043449074029922485, 0.011055424809455872, -0.14282216131687164, -0.10448745638132095, -0.3160597085952759, 0.48637455701828003, -0.3539593517780304, 0.03695446625351906, -0.2893907129764557, 0.25264355540275574, -0.31187427043914795, 0.19769179821014404, 0.25389471650123596, -0.1347995549440384, -0.17161546647548676, -0.19363652169704437, 0.1311063915491104, -0.3900981545448303, 0.03141544759273529, 0.000852338969707489, -0.25680267810821533, -0.32442352175712585, -0.10578995198011398, 0.38753119111061096, 0.06258019804954529, -0.04568813368678093, 0.2069612294435501, -0.0740213692188263, -0.1667809784412384, 0.42222583293914795, 0.7251502275466919, 0.4507436454296112, -0.17245018482208252, 0.2726413309574127, 0.030090928077697754, 0.21553532779216766, -0.0015350282192230225, 0.17997290194034576, -0.019127726554870605, 0.3493615388870239, 0.32901111245155334, 0.14453855156898499, 0.08157079666852951, -0.08845006674528122, -0.29890844225883484, -0.20993585884571075, 0.2699374258518219, -0.43441689014434814, 0.0018384680151939392, -0.6620000600814819, -0.17734739184379578, -0.36680614948272705, -0.030336469411849976, -0.4786825478076935, -0.0030254581943154335, 0.31583642959594727, -0.04183210805058479, 0.008891498669981956, -0.44140177965164185, 0.005508061498403549, 0.20154720544815063, -0.06797109544277191, 0.5265379548072815, 0.13322371244430542, 0.11501456797122955, -0.35975706577301025, -0.5383050441741943, 0.3571959137916565, 0.29957735538482666, 0.002663562074303627, -0.1016111671924591, -0.20547831058502197, 0.018015563488006592, -0.0030752532184123993, 0.3653417229652405, 0.0913170576095581, -0.24687209725379944, -0.20545721054077148, -0.10368338227272034, -0.16617979109287262, 0.20379690825939178, 0.05486462265253067, -0.10511305928230286, -0.10201261937618256, 0.3815469741821289, -0.15848445892333984, -0.02025631070137024, -0.14322276413440704, 0.4644097089767456, -0.33514243364334106, -0.4952488839626312, 0.3725387156009674, 0.13572630286216736, 0.3341904282569885, -0.10867106914520264, -0.010500776581466198, -0.1050594300031662, -0.23201586306095123, -0.06324990093708038, 0.085086889564991, -0.050766121596097946, 0.4826259911060333, -0.11661691963672638, -0.31270793080329895, -0.03735196590423584, -0.033427055925130844, 0.0929398387670517, -0.09081210196018219, -0.3040826618671417, 0.2868676781654358, -0.4514610767364502, 0.25253060460090637, 0.25193673372268677, 0.1301739513874054, -0.03755488991737366, -0.20065909624099731, -0.12014465034008026, -0.31732499599456787, 0.5215561389923096, -0.18724723160266876, -0.10518723726272583, -0.28039485216140747, 0.411377489566803, -0.15240341424942017, -0.4450320303440094, -0.39453989267349243, 0.22602784633636475, 0.15979421138763428, -0.04381440579891205, -0.010776927694678307, -0.10108886659145355, -0.13992848992347717, -0.04154061898589134, -0.04291273653507233, 0.3550977408885956, 0.04414534568786621, 0.05383242666721344, 0.3761518597602844, -0.008062224835157394 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
OK, thanks for digging a bit into it. Indeed, the error occurs with the dataset-viewer, but not with a normal user token, because we use an app token, and it does not have a related email! ```python >>> from huggingface_hub import HfApi, HfFolder >>> auth_token = "hf_app_******" >>> t = HfApi().whoami(auth_token) >>> t {'type': 'app', 'name': 'dataset-preview-backend'} >>> t["email"] Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: 'email' ``` Note also that the doc (https://huggingface.co/docs/huggingface_hub/package_reference/hf_api#huggingface_hub.HfApi.whoami) does not state that `whoami` should return an `email` key. @SBrandeis @julien-c: do you think the app token should have an email associated, like the users?
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
105
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 OK, thanks for digging a bit into it. Indeed, the error occurs with the dataset-viewer, but not with a normal user token, because we use an app token, and it does not have a related email! ```python >>> from huggingface_hub import HfApi, HfFolder >>> auth_token = "hf_app_******" >>> t = HfApi().whoami(auth_token) >>> t {'type': 'app', 'name': 'dataset-preview-backend'} >>> t["email"] Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: 'email' ``` Note also that the doc (https://huggingface.co/docs/huggingface_hub/package_reference/hf_api#huggingface_hub.HfApi.whoami) does not state that `whoami` should return an `email` key. @SBrandeis @julien-c: do you think the app token should have an email associated, like the users?
[ -0.2868962585926056, -0.11142686754465103, 0.05407698079943657, 0.052180416882038116, 0.2599709630012512, 0.1541750431060791, 0.5229558944702148, 0.21727335453033447, 0.2576427459716797, 0.18005666136741638, -0.5013434886932373, -0.28390341997146606, -0.08359717577695847, -0.018772384151816368, 0.026273485273122787, 0.08923264592885971, -0.014799147844314575, 0.06239182874560356, 0.44396674633026123, -0.20272573828697205, -0.10738452523946762, 0.13973477482795715, -0.1947932243347168, 0.4170069098472595, -0.3792050778865814, -0.100184865295887, -0.1480320692062378, 0.3187803030014038, -0.05772564560174942, -0.389337956905365, 0.056699566543102264, 0.06137770786881447, 0.08405809104442596, 0.18435880541801453, -0.00012042512389598414, 0.21734358370304108, 0.4333304166793823, 0.12075117230415344, -0.17269977927207947, -0.17513780295848846, 0.3533344566822052, 0.4137232303619385, 0.10925131291151047, 0.12269846349954605, -0.12560364603996277, 0.0860600620508194, -0.07012756168842316, -0.4099160432815552, 0.4026728868484497, 0.2996588349342346, 0.10280945897102356, 0.2651830315589905, 0.19759716093540192, 0.22620709240436554, 0.10895694047212601, 0.2851124405860901, -0.03325631842017174, 0.08978122472763062, 0.0675535798072815, -0.0010913582518696785, 0.13414978981018066, 0.20822907984256744, -0.056359998881816864, -0.09215579926967621, -0.05236039310693741, 0.08283954858779907, -0.1873897910118103, -0.29187482595443726, 0.13977573812007904, 0.1277613490819931, 0.516170084476471, -0.2496650218963623, -0.1755952537059784, -0.038493551313877106, 0.06635795533657074, -0.17698068916797638, 0.21613803505897522, 0.0038746530190110207, -0.1050320714712143, 0.2729218006134033, -0.14480231702327728, -0.16921094059944153, 0.04867878556251526, 0.2883455753326416, -0.11441554874181747, 0.28334546089172363, -0.14196032285690308, 0.14535470306873322, 0.036362241953611374, -0.17412425577640533, -0.13423964381217957, 0.05017228424549103, 0.07279147952795029, 0.5265957117080688, -0.07855057716369629, -0.14685747027397156, 0.12315785884857178, -0.17365416884422302, 0.2622257471084595, -0.11527316272258759, -0.13808852434158325, 0.07367059588432312, -0.2890012860298157, 0.056845277547836304, 0.3494336009025574, 0.09160873293876648, 0.340044766664505, 0.3662419319152832, 0.34072452783584595, 0.07165192812681198, 0.21148276329040527, -0.18047398328781128, -0.3227256238460541, -0.008430100977420807, 0.09001524746417999, -0.1961079239845276, 0.38719022274017334, -0.21478146314620972, -0.35101619362831116, 0.2814210057258606, -0.3045763671398163, -0.11056219041347504, 0.17888058722019196, 0.49602410197257996, 0.037311263382434845, 0.1084199920296669, 0.17567166686058044, 0.12932181358337402, -0.17187905311584473, 0.03166818991303444, -0.06630643457174301, -0.0915650874376297, -0.04451007395982742, 0.17553916573524475, 0.21831335127353668, -0.6169872879981995, 0.12933610379695892, 0.01159141305834055, 0.6600555777549744, -0.13416168093681335, -0.26168549060821533, 0.1355152726173401, -0.21642810106277466, 0.13112083077430725, 0.02190278470516205, 0.3927403688430786, 0.3343041241168976, -0.33363014459609985, -0.09783396869897842, 0.0194711871445179, -0.26038268208503723, -0.3590403199195862, -0.2580872178077698, 0.09845475852489471, -0.16007313132286072, 0.05619547888636589, 0.15707027912139893, -0.07456861436367035, -0.08600214868783951, -0.16981638967990875, 0.12045455724000931, 0.13403920829296112, 0.060202766209840775, 0.15537267923355103, 0.3301679491996765, 0.34437623620033264, -0.010534081608057022, -0.3719487488269806, -0.2399175763130188, -0.18686185777187347, -0.15433236956596375, 0.30209025740623474, -0.0540897510945797, -0.07723336666822433, -0.3757862448692322, 0.3692864179611206, 0.3034481108188629, -0.5338540077209473, -0.5048021078109741, 0.1710425615310669, -0.03768181800842285, 0.026826655492186546, -0.198830246925354, -0.26613330841064453, 0.12237203866243362, -0.021548043936491013, 0.30489400029182434, -0.07344655692577362, 0.11793360859155655, 0.07366392016410828, -0.10948484390974045, -0.24123892188072205, -0.30521243810653687, 0.2054889053106308, 0.0923132598400116, 0.14802983403205872, 0.21945828199386597, 0.10681083798408508, 0.5145202279090881, 0.09674865007400513, 0.14239919185638428, 0.013399370014667511, 0.3492046594619751, 0.10121354460716248, 0.03940851613879204, -0.04578199237585068, 0.17787766456604004, 0.14916828274726868, 0.10535477101802826, 0.05273701995611191, -0.15846972167491913, -0.2663200795650482, -0.32142749428749084, 0.06441500782966614, -0.2964695990085602, -0.14182999730110168, 0.028331805020570755, 0.05198158323764801, -0.12088756263256073, 0.2555203437805176, -0.15757952630519867, 0.06150636076927185, 0.33367669582366943, 0.1765347421169281, 0.18015173077583313, 0.5518131852149963, -0.24578534066677094, -0.0032375389710068703, 0.06533486396074295, 0.2668161392211914, 0.201411634683609, 0.017297619953751564, 0.026753893122076988, 0.2541032135486603, -0.11038883030414581, 0.08223025500774384, -0.09128937870264053, 0.2707069218158722, 0.33536651730537415, -0.24628253281116486, 0.36133143305778503, -0.0777314305305481, -0.016130607575178146, -0.07756394892930984, 0.20614668726921082, 0.3085314631462097, 0.38381078839302063, 0.13458092510700226, -0.07675835490226746, 0.3682287037372589, -0.13888904452323914, 0.17151466012001038, -0.056191809475421906, -0.2766786217689514, 0.12310118973255157, -0.3229565918445587, 0.442759245634079, -0.38902613520622253, -0.5869249105453491, -0.02616780251264572, 0.6088615655899048, -0.07994258403778076, 0.047167085111141205, 0.0010689347982406616, -0.6515493988990784, 0.15108400583267212, 0.2368851602077484, -0.603861391544342, 0.1657547652721405, 0.08333515375852585, -0.24327918887138367, 0.5286106467247009, 0.05654943361878395, 0.15142454206943512, 0.16100093722343445, 0.00626719743013382, -0.020556984469294548, 0.03365514054894447, -0.20534822344779968, 0.058405522257089615, -0.38815876841545105, -0.22326983511447906, -0.27667075395584106, 0.1142418161034584, -0.6176940202713013, -0.11577926576137543, -0.004078924655914307, -0.006076369434595108, 0.19052062928676605, -0.4303974211215973, -0.4715016484260559, -0.44212937355041504, 0.08338789641857147, 0.14229856431484222, 0.1381830871105194, 0.04364529252052307, -0.3031483292579651, 0.053052932024002075, 0.14351196587085724, 0.1261163055896759, -0.23000310361385345, 0.13376803696155548, -0.09904315322637558, 0.04073076322674751, 0.12029953300952911, -0.07344081997871399, -0.039608657360076904, -0.27803587913513184, 0.3346630930900574, -0.3411405384540558, -0.31967711448669434, 0.30098462104797363, 0.006318576633930206, 0.1508493274450302, 0.1158246248960495, -0.0007810145616531372, -0.1596660017967224, -0.2972940504550934, 0.3137166202068329, -0.23111532628536224, -0.29439234733581543, 0.19724850356578827, 0.08703871071338654, -0.13060928881168365, 0.03535471484065056, -0.03239937126636505, -0.14021076261997223, -0.30775606632232666, 0.22438615560531616, -0.029767781496047974, 0.17771202325820923, 0.130960151553154, -0.0659744143486023, 0.22868795692920685, -0.44958657026290894, -0.09303298592567444, -0.37936919927597046, -0.406461626291275, 0.2686634063720703, -0.35743266344070435, -0.3385028839111328, 0.20359739661216736, -0.048330023884773254, 0.29799190163612366, -0.4815989136695862, -0.3884241580963135, 0.05587806925177574, -0.16384357213974, 0.13667349517345428, 0.035212442278862, 0.06825660914182663, 0.23511621356010437, 0.0020120926201343536, 0.060258038341999054, 0.006222419440746307, -0.21076790988445282, -0.16575121879577637, 0.13144350051879883, 0.010070927441120148, -0.1628054678440094, 0.2522830069065094, -0.06426034867763519, 1.0560593605041504, 0.17209994792938232, 0.3151410222053528, 0.19031384587287903, -0.13021042943000793, 0.41509008407592773, 0.020434021949768066, -0.46449753642082214, 0.3782864511013031, 0.13658665120601654, 0.07122720777988434, 0.5356252789497375, 0.08490878343582153, -0.024197781458497047, -0.14298419654369354, -0.2731941044330597, -0.30663979053497314, -0.4612724781036377, -0.1710251122713089, -0.49362605810165405, -0.15290668606758118, 0.10180693864822388, 0.19725319743156433, -0.10764645040035248, -0.07573291659355164, 0.10288769006729126, 0.4774162769317627, -0.03597400337457657, 0.07187696546316147, -0.03196181356906891, -0.05847397446632385, -0.5831486582756042, 0.290879487991333, -0.14979055523872375, 0.3832581043243408, -0.18086063861846924, -0.1551826000213623, 0.05103376507759094, 0.1128159910440445, 0.1967514455318451, 0.15079762041568756, -0.18099798262119293, 0.051261287182569504, -0.032328858971595764, -0.30400848388671875, -0.00775691494345665, -0.10843244194984436, 0.12267003208398819, -0.10719040036201477, 0.3432633876800537, -0.10994306206703186, -0.2395549714565277, 0.04596436768770218, -0.34097275137901306, -0.048832476139068604, -0.273878276348114, -0.1810579001903534, 0.0013553351163864136, -0.5135453939437866, 0.055182863026857376, 0.05735153704881668, 0.02046939916908741, -0.25530511140823364, 0.16174767911434174, 0.08115565776824951, -0.12983781099319458, 0.331373393535614, -0.0642574280500412, -0.11351185292005539, -0.04948451370000839, 0.2542703449726105, 0.7222579717636108, 0.5145219564437866, 0.02599223516881466, 0.5672490000724792, 0.4292837381362915, -0.2849288284778595, -0.07454905658960342, 0.08575049787759781, 0.20113605260849, 0.2865612804889679, -0.03045184165239334, 0.10094470530748367, 0.2559729814529419, 0.27241140604019165, -0.17599736154079437, -0.021921446546912193, 0.37848928570747375, 0.32721465826034546, -0.458328515291214, -0.10688096284866333, 0.18412825465202332, -0.1687474101781845, -0.12873701751232147, 0.15378475189208984, 0.7512832880020142, -0.003300121985375881, 0.05362171679735184, -0.3418422341346741, 0.8587338924407959, 0.1655922532081604, 0.03863733634352684, 0.16195645928382874, -0.10482284426689148, 0.06457308679819107, -0.21129292249679565, -0.1605527549982071, -0.12993544340133667, -0.28010883927345276, -0.057805608958005905, -0.04105788841843605, 0.32526838779449463, 0.1311001181602478, -0.20093496143817902, 0.02441338635981083, -0.06855067610740662, -0.22182518243789673, -0.02232070080935955, 0.2070249617099762, -0.4926682114601135, 0.04563974589109421, -0.00287492573261261, 0.10631386935710907, 0.0530521459877491, 0.7083498239517212, 0.03936588391661644, -0.10931192338466644, -0.29223915934562683, -0.5481682419776917, -0.33463549613952637, 0.0948108360171318, -0.3203178942203522, -0.209646537899971, 0.30619946122169495, 0.1848190277814865, 0.5979792475700378, -0.08458319306373596, 0.40491604804992676, 0.13253766298294067, -0.3294118046760559, 0.061112768948078156, -0.03126686066389084, -0.1471180021762848, -0.08016690611839294, 0.05190889909863472, 0.3487505316734314, -0.1137111634016037, -0.5420907735824585, 0.28759151697158813, -0.05748726427555084, -0.13857215642929077, -0.17186576128005981, -0.030219413340091705, 0.19915536046028137, -0.2850138247013092, 0.16061526536941528, 0.055778078734874725, -0.08951687812805176, -0.021838253363966942, 0.03600853681564331, 0.26675766706466675, -0.00619351165369153, -0.057969383895397186, 0.17129696905612946, 0.20877352356910706, -0.022504325956106186, 0.37852418422698975, -0.3057326376438141, -0.24687033891677856, 0.49028852581977844, 0.00021817907691001892, -0.2500408887863159, -0.09244300425052643, -0.07010108977556229, 0.5726218819618225, -0.20338881015777588, -0.2800236940383911, -0.12013819068670273, 0.011250540614128113, 0.02481336146593094, 0.10299816727638245, 0.02652440406382084, -0.06083797663450241, -0.19660884141921997, -0.3183636963367462, -0.43472757935523987, 0.29349830746650696, -0.22070951759815216, 0.03857819736003876, -0.05806143581867218, 0.3429795503616333, 0.10450246930122375, -0.07667255401611328, -0.2385699450969696, -0.009802994318306446, -0.14267323911190033, -0.06832929700613022, 0.13889025151729584, -0.0890994742512703, 0.34138235449790955, -0.2075662761926651, 0.13327008485794067, -0.0421806201338768, -0.21052321791648865, -0.11796820908784866, -0.07822743058204651, 0.17636071145534515, 0.3158339858055115, -0.3287399411201477, 0.3149559497833252, 0.30226004123687744, -0.08588482439517975, -0.16254281997680664, 0.21071478724479675, 0.3952264189720154, 0.01975710690021515, 0.04822945594787598, 0.1355820894241333, -0.09420192986726761, -0.1440533995628357, -0.12223085761070251, 0.06418962776660919, 0.48212170600891113, -0.12822739779949188, 0.0853111669421196, -0.26820480823516846, -0.005190834403038025, 0.1756947785615921, 0.33240383863449097, 0.13714727759361267, -0.04559699445962906, 0.41581445932388306, -0.21017540991306305, 0.06944358348846436, 0.14806139469146729, 0.27281853556632996, -0.09009169042110443, -0.33069124817848206, 0.04616894572973251, 0.4251647889614105, 0.11139867454767227, -0.3196532130241394, -0.04886883124709129, -0.1614990383386612, -0.09685823321342468, 0.11432810127735138, 0.07618104666471481, -0.025904061272740364, 0.005326814949512482, -0.013299606740474701, 0.006568567827343941, 0.228011354804039, 0.09508025646209717, 0.12666386365890503, 0.3640495240688324, -0.3177202641963959, 0.12918415665626526, 0.4785381853580475, 0.08512197434902191, 0.040656186640262604, 0.3366428017616272, -0.6280328035354614, -0.05893835425376892, -0.08156027644872665, 0.14802850782871246, 0.4779287278652191, -0.2769850790500641, 0.14867673814296722, 0.06183146685361862, -0.06898830831050873, -0.02072490006685257, -0.19189435243606567, 0.3566147983074188, -0.1320740282535553, 0.21099282801151276, -0.0814940482378006, 0.2226700335741043, -0.14467716217041016, 0.14459644258022308, 0.25125452876091003, -0.12760163843631744, -0.3587650954723358, -0.2885820269584656, 0.020600328221917152, -0.35644638538360596, -0.01463261991739273, -0.1489037722349167, -0.3197976350784302, -0.2557532787322998, -0.20020627975463867, 0.3529808521270752, 0.18153437972068787, -0.04496074840426445, 0.04482640326023102, -0.05121414363384247, -0.09136460721492767, 0.47472354769706726, 0.6740886569023132, 0.43995967507362366, -0.0409463495016098, 0.28865429759025574, 0.185249462723732, 0.116360604763031, -0.147939994931221, 0.25959113240242004, 0.03344600647687912, 0.2890911102294922, 0.07509149610996246, 0.04046761244535446, 0.027556559070944786, -0.1459372490644455, -0.299034982919693, -0.22830165922641754, 0.34995684027671814, -0.2449314296245575, 0.21908125281333923, -0.711540937423706, -0.18923896551132202, -0.2809399366378784, -0.003373943269252777, -0.4887073338031769, -0.02258160710334778, 0.1807848960161209, 0.02151256985962391, 0.13119721412658691, -0.5689113140106201, -0.0002823341637849808, 0.10596270859241486, -0.1268509477376938, 0.5811814665794373, 0.0522519126534462, 0.24968162178993225, -0.12583331763744354, -0.4824090301990509, 0.22885799407958984, 0.17993620038032532, 0.03292538970708847, 0.006751588545739651, -0.1956421136856079, 0.2004837989807129, 0.1216338723897934, 0.454278826713562, 0.15336288511753082, -0.4441288709640503, -0.16048306226730347, -0.046005453914403915, -0.03263649716973305, 0.09961956739425659, 0.1713150590658188, -0.05221516266465187, -0.11463258415460587, 0.2863946557044983, -0.11201690137386322, -0.0277057234197855, -0.2286149114370346, 0.4110286235809326, -0.309492826461792, -0.5146013498306274, 0.26634156703948975, 0.2847549617290497, 0.3428765535354614, -0.14688503742218018, 0.04793265461921692, -0.07555317878723145, -0.1291234940290451, -0.257948100566864, -0.08844534307718277, -0.071144238114357, 0.45746347308158875, 0.03143344819545746, -0.6105042695999146, -0.03267164155840874, -0.057830121368169785, 0.04649335891008377, -0.24959276616573334, -0.21355566382408142, 0.2689815163612366, -0.3352736830711365, 0.1292811781167984, 0.1995379477739334, 0.1754189431667328, -0.00570833683013916, -0.17517174780368805, -0.14273197948932648, -0.3716397285461426, 0.46078240871429443, -0.32954609394073486, 0.033334847539663315, -0.2675994634628296, 0.2547493278980255, -0.10267143696546555, -0.32860860228538513, -0.35091230273246765, 0.14608240127563477, 0.19173762202262878, -0.07748907804489136, -0.053052470088005066, -0.07060489058494568, -0.07077737152576447, -0.021218817681074142, -0.15991945564746857, 0.5427934527397156, 0.18419092893600464, 0.12110503017902374, 0.2404242753982544, -0.11667414754629135 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
We can workaround this with ```python email = HfApi().whoami(auth_token).get("email", "system@huggingface.co") ``` in the common voice scripts
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
16
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 We can workaround this with ```python email = HfApi().whoami(auth_token).get("email", "system@huggingface.co") ``` in the common voice scripts
[ -0.4095233082771301, 0.0020360276103019714, 0.024313148111104965, 0.1462474763393402, 0.26529639959335327, 0.2654660940170288, 0.49832433462142944, 0.32206395268440247, 0.3277721107006073, 0.23755408823490143, -0.5881974697113037, -0.2214312106370926, 0.02450055256485939, 0.0251555647701025, 0.24711047112941742, 0.037992388010025024, -0.19727295637130737, 0.14324697852134705, 0.3389151692390442, -0.2024688571691513, -0.03270407393574715, 0.07839132100343704, -0.20679202675819397, 0.2223886251449585, -0.1827598512172699, -0.15970131754875183, -0.24227192997932434, 0.4021185338497162, -0.002825384959578514, -0.37763315439224243, -0.03160703182220459, 0.21882115304470062, 0.18681468069553375, 0.1827968955039978, -0.0001094196195481345, 0.19271375238895416, 0.4278784990310669, 0.04757121205329895, -0.08945862948894501, -0.09756827354431152, 0.12083382159471512, 0.26260653138160706, 0.12173742055892944, 0.09465759247541428, -0.2206154465675354, -0.06346743553876877, 0.14190804958343506, -0.5289820432662964, 0.3323991298675537, 0.3564038574695587, 0.18838341534137726, 0.20781253278255463, 0.08328570425510406, 0.1949605792760849, 0.11476334929466248, 0.12611302733421326, -0.02303191088140011, 0.007265771739184856, 0.13129569590091705, 0.227834552526474, 0.07983064651489258, 0.2049570381641388, -0.00354602187871933, -0.23002056777477264, -0.26335784792900085, 0.24816963076591492, -0.14122438430786133, -0.26397836208343506, 0.21348634362220764, 0.19883063435554504, 0.5939072370529175, -0.22675782442092896, -0.1599358469247818, 0.1486586332321167, 0.042247474193573, -0.2770853638648987, 0.14012685418128967, 0.23895138502120972, -0.2022552788257599, 0.2989356219768524, -0.13050851225852966, -0.15856368839740753, -0.13543418049812317, 0.2562534213066101, -0.10532994568347931, 0.3406780958175659, -0.11083671450614929, -0.025912180542945862, 0.057913582772016525, -0.05286678671836853, 0.0032470831647515297, 0.06769321858882904, 0.12615574896335602, 0.35295629501342773, -0.011362802237272263, -0.11902032047510147, 0.16912326216697693, -0.22311225533485413, 0.3862529397010803, 0.006217245012521744, 0.05089075118303299, 0.292411208152771, -0.17493052780628204, -0.03692910820245743, 0.2731946110725403, -0.10200348496437073, 0.27798160910606384, 0.2817978858947754, 0.49078041315078735, 0.2748308777809143, 0.17020855844020844, -0.2577560245990753, -0.33771681785583496, 0.07265293598175049, 0.19947005808353424, -0.060953736305236816, 0.3739832639694214, -0.30589669942855835, -0.30229929089546204, 0.18308326601982117, -0.19461634755134583, -0.19054079055786133, 0.0767158567905426, 0.5923422574996948, -0.03742086514830589, 0.10787037760019302, 0.11501546204090118, 0.11388298869132996, -0.19731704890727997, -0.02975926175713539, -0.1968676894903183, -0.04711807891726494, -0.04058016464114189, 0.07016603648662567, 0.2611653506755829, -0.4457632303237915, 0.19419454038143158, -0.1503421664237976, 0.604606568813324, -0.031247256323695183, -0.09884300082921982, 0.18451735377311707, -0.06516248732805252, 0.18559867143630981, 0.25848811864852905, 0.07751284539699554, 0.13373896479606628, -0.17054536938667297, -0.15912161767482758, 0.0898623839020729, -0.0860230103135109, -0.2711704969406128, -0.2099294811487198, 0.20962710678577423, 0.13008861243724823, -0.082249216735363, 0.3909384608268738, -0.012668374925851822, -0.1759449541568756, -0.27678030729293823, -0.027302615344524384, 0.20311570167541504, 0.11865593492984772, 0.05720522627234459, 0.40380313992500305, 0.344799280166626, -0.07162617146968842, -0.15847331285476685, -0.272326797246933, -0.24395257234573364, -0.18314898014068604, 0.29882654547691345, -0.05296078696846962, -0.31386345624923706, -0.329715758562088, 0.29621297121047974, 0.5339972376823425, -0.5630579590797424, -0.439289391040802, 0.1526244729757309, 0.09295396506786346, 0.0622517392039299, 0.03323373943567276, -0.19902513921260834, 0.14493028819561005, 0.10413912683725357, 0.17361046373844147, 0.23077741265296936, 0.056708626449108124, 0.12609462440013885, -0.02793172001838684, -0.19630292057991028, -0.25453221797943115, 0.15652726590633392, 0.19102215766906738, 0.09950310736894608, 0.27501022815704346, -0.15254810452461243, 0.6661465764045715, -0.02321629598736763, 0.053750671446323395, 0.14792238175868988, 0.19905728101730347, -0.002735443413257599, 0.031425271183252335, -0.13673612475395203, 0.12308190762996674, 0.05621609836816788, 0.06511465460062027, 0.05111218988895416, -0.059676602482795715, -0.3675549626350403, -0.3306656777858734, 0.0016873590648174286, -0.2723343074321747, -0.08110257983207703, 0.18965250253677368, 0.3229326009750366, -0.00753440149128437, 0.1917412132024765, -0.06805448979139328, 0.08471361547708511, 0.3914943337440491, 0.17105573415756226, 0.15880638360977173, 0.49652624130249023, -0.24344734847545624, 0.07069368660449982, 0.20324929058551788, 0.19751164317131042, 0.08112139999866486, 0.04816095530986786, 0.016595778986811638, 0.07012798637151718, -0.12789754569530487, 0.21785268187522888, 0.07136382162570953, 0.12557172775268555, 0.230321004986763, -0.448030561208725, 0.4249599874019623, 0.3493261933326721, -0.006263538729399443, 0.04247773438692093, -0.06912695616483688, 0.32261431217193604, 0.29811397194862366, -0.060361407697200775, 0.267486572265625, 0.20762497186660767, 0.12909382581710815, -0.00038132444024086, -0.033202894032001495, -0.22534969449043274, -0.13730427622795105, -0.16389448940753937, 0.6512543559074402, -0.2698916792869568, -0.8290807008743286, 0.028465546667575836, 0.8027483224868774, -0.04547230154275894, 0.09135856479406357, -0.09362120181322098, -0.6131049394607544, -0.002246325835585594, 0.24809964001178741, -0.5318963527679443, 0.04136791080236435, 0.30513617396354675, 0.023253995925188065, 0.45635348558425903, 0.08145027607679367, 0.03402526676654816, 0.12907469272613525, -0.025865256786346436, 0.033306702971458435, 0.10718327760696411, -0.021648278459906578, 0.02875485271215439, -0.5776327252388, -0.2812434136867523, -0.34005385637283325, -0.09718181192874908, -0.45785757899284363, -0.08086663484573364, -0.05434592068195343, -0.05528824031352997, 0.0037297746166586876, -0.04901255667209625, -0.28863534331321716, -0.2905259430408478, 0.11569228768348694, 0.15377885103225708, 0.10399603843688965, 0.06926959753036499, -0.4137776792049408, 0.05176277458667755, 0.2522601783275604, 0.14835494756698608, -0.272320032119751, 0.1613544523715973, -0.30870264768600464, 0.12819097936153412, 0.08017771691083908, -0.11170726269483566, 0.03767802566289902, -0.2960509955883026, 0.26513993740081787, -0.3209291696548462, -0.20390653610229492, 0.2876218557357788, 0.11578043550252914, 0.05430939048528671, -0.08313700556755066, -0.07359805703163147, -0.14820939302444458, 0.026928190141916275, 0.23448225855827332, -0.2159663289785385, -0.27132532000541687, 0.09834854304790497, 0.01422322727739811, -0.06696586310863495, -0.024721786379814148, -0.3468998670578003, -0.3275790214538574, -0.3786555826663971, 0.0833374410867691, 0.005500670522451401, 0.14760500192642212, 0.07501654326915741, -0.18876896798610687, 0.17164281010627747, -0.342374324798584, 0.062019430100917816, -0.205153226852417, -0.4287615120410919, 0.37893328070640564, -0.4110795855522156, -0.40375199913978577, 0.1403777152299881, -0.1255553662776947, 0.26639288663864136, -0.26704680919647217, -0.3346450924873352, 0.1360750049352646, -0.06980506330728531, 0.060035113245248795, 0.00707632303237915, 0.1472148448228836, 0.3617822229862213, 0.10042032599449158, -0.10603374242782593, -0.1234554797410965, -0.19056758284568787, -0.19898685812950134, -0.02118661254644394, -0.009888827800750732, -0.15860441327095032, 0.21805885434150696, -0.016136091202497482, 0.9828830361366272, 0.12251231074333191, 0.25777798891067505, 0.2104891687631607, -0.33563485741615295, 0.35964953899383545, 0.14999516308307648, -0.31151989102363586, 0.31584930419921875, 0.21071738004684448, 0.04490108788013458, 0.6205458641052246, 0.08245081454515457, -0.10742062330245972, -0.209697887301445, -0.21240708231925964, -0.32348936796188354, -0.2991754710674286, -0.19217169284820557, -0.42943161725997925, -0.021349824965000153, 0.0592317171394825, 0.2579842209815979, -0.06676182895898819, -0.12123756110668182, 0.25449809432029724, 0.3117066025733948, -0.17927715182304382, 0.1508803814649582, 0.11697770655155182, -0.014855312183499336, -0.35436952114105225, 0.39838123321533203, -0.06864819675683975, 0.19494101405143738, -0.07436367869377136, -0.12048912048339844, 0.10057083517313004, -0.005063303280621767, 0.10014715790748596, 0.026626475155353546, -0.2018437385559082, 0.17328006029129028, -0.06395018100738525, -0.12211453914642334, 0.060131628066301346, -0.29507213830947876, 0.010082760825753212, -0.20305265486240387, 0.01457609236240387, -0.12954410910606384, -0.14945825934410095, 0.1607459932565689, -0.20428389310836792, -0.11393746733665466, -0.16652970016002655, -0.16039776802062988, -0.04112978279590607, -0.47684943675994873, 0.02230062335729599, -0.13868631422519684, -0.021215228363871574, -0.3814382553100586, -0.0833032876253128, 0.1776445358991623, -0.08877157419919968, 0.3026205897331238, 0.12756268680095673, -0.027042623609304428, -0.14523598551750183, 0.2098957747220993, 0.5472933053970337, 0.574593186378479, 0.0464191660284996, 0.5761632919311523, 0.42311891913414, -0.4154666066169739, -0.15808731317520142, -0.05550653114914894, 0.4026760756969452, 0.12095216661691666, -0.11779483407735825, -0.1559920608997345, 0.3231828808784485, 0.14075765013694763, 0.05412523075938225, -0.10375215113162994, 0.385294109582901, 0.23869118094444275, -0.35578441619873047, -0.23482772707939148, 0.11560492217540741, -0.09235286712646484, -0.07366777956485748, 0.10044927895069122, 0.2107425034046173, -0.13088548183441162, -0.10606338828802109, -0.3822980523109436, 0.7001510262489319, 0.08621007204055786, 0.1584720015525818, 0.21789556741714478, -0.20007073879241943, -0.2269333451986313, -0.117896668612957, -0.010103598237037659, -0.24654880166053772, -0.10688865184783936, -0.0703866109251976, -0.0654720887541771, 0.27327874302864075, 0.22855843603610992, -0.3387245833873749, 0.12177520245313644, -0.14025717973709106, -0.2695196568965912, 0.07585199922323227, 0.32682013511657715, -0.4496539533138275, -0.009234808385372162, -0.1994418054819107, 0.14996010065078735, -0.07407417893409729, 0.5042276978492737, 0.035627581179142, -0.21275848150253296, -0.12532009184360504, -0.393119752407074, -0.11025742441415787, 0.3564915955066681, -0.22890116274356842, -0.12205810844898224, 0.19397611916065216, 0.08531928062438965, 0.31726208329200745, -0.09577010571956635, 0.24348773062229156, 0.2904345691204071, -0.27487221360206604, 0.046541858464479446, 0.029078517109155655, -0.017488304525613785, -0.03978011757135391, 0.1293325573205948, 0.4555412530899048, -0.1834358274936676, -0.5169002413749695, 0.3398156464099884, 0.04282029718160629, -0.14197364449501038, -0.29424768686294556, -0.1196092963218689, 0.32552284002304077, -0.12980791926383972, 0.23644956946372986, 0.037407126277685165, -0.04859032481908798, -0.06478334963321686, 0.1356031894683838, 0.2848551273345947, -0.10516788065433502, -0.1378648281097412, 0.35730603337287903, 0.24791666865348816, -0.08433027565479279, 0.25751441717147827, -0.040542177855968475, -0.17147396504878998, 0.46596455574035645, 0.08440965414047241, -0.17874525487422943, -0.24425193667411804, -0.16618047654628754, 0.34874236583709717, 0.027935810387134552, -0.1970374435186386, -0.11628248542547226, 0.004874765872955322, -0.0725533664226532, 0.07783244550228119, -0.18537989258766174, -0.05862239748239517, -0.15512217581272125, -0.3919520974159241, -0.395979642868042, 0.25569701194763184, -0.14729160070419312, 0.1633787900209427, 0.12865078449249268, 0.2799339294433594, 0.10224378108978271, -0.16105744242668152, -0.3604987561702728, -0.09684277325868607, 0.01784581132233143, -0.17234036326408386, 0.07569651305675507, -0.04757077246904373, 0.20184990763664246, -0.002268134616315365, 0.24535760283470154, -0.1753806471824646, -0.149382546544075, -0.20263418555259705, 0.00320381298661232, 0.10762710124254227, 0.09797310829162598, -0.2153237909078598, 0.24641376733779907, 0.22365601360797882, -0.24696043133735657, -0.15770968794822693, 0.28884193301200867, 0.2200472056865692, 0.032738976180553436, 0.09495136141777039, 0.0453517772257328, -0.28055500984191895, -0.06928297877311707, -0.1285695880651474, -0.08476802706718445, 0.2699795961380005, -0.16346469521522522, 0.2070038765668869, -0.23040995001792908, -0.15032464265823364, 0.269771933555603, 0.16511273384094238, 0.3612920045852661, 0.1892414689064026, 0.44735580682754517, -0.2512056827545166, -0.0308807585388422, 0.18641723692417145, 0.34606045484542847, -0.16890586912631989, -0.23737700283527374, 0.2088301181793213, 0.22915473580360413, 0.22889001667499542, -0.49519240856170654, 0.028193863108754158, -0.1240893304347992, -0.3327297568321228, 0.08616533875465393, 0.060861989855766296, -0.043388549238443375, 0.006756819784641266, 0.13263478875160217, -0.010674270801246166, 0.08333330601453781, 0.020384730771183968, 0.047060322016477585, 0.1400584727525711, -0.4044209122657776, 0.13970732688903809, 0.4288193881511688, 0.04942059516906738, 0.10069511830806732, 0.32086181640625, -0.4111725986003876, -0.022365817800164223, -0.007072407752275467, 0.0929010808467865, 0.29763972759246826, -0.30862024426460266, 0.15046192705631256, -0.16138479113578796, -0.1852203905582428, -0.008858554065227509, -0.14569559693336487, 0.30960893630981445, 0.057706546038389206, 0.23704953491687775, -0.205708846449852, 0.24590197205543518, -0.16365128755569458, 0.16579020023345947, 0.29193681478500366, -0.1530844271183014, -0.17825789749622345, -0.09143964946269989, 0.22316688299179077, -0.21932588517665863, 0.13229204714298248, -0.09065300226211548, -0.18705196678638458, -0.21334949135780334, 0.040902577340602875, 0.27388089895248413, 0.10834071785211563, -0.13481125235557556, 0.06605911254882812, -0.15109969675540924, -0.10767680406570435, 0.24891729652881622, 0.6565269231796265, 0.24561554193496704, -0.08318067342042923, 0.2005595564842224, 0.030336610972881317, 0.16175341606140137, -0.28117647767066956, 0.023478340357542038, -0.13122649490833282, 0.4641132056713104, 0.1465960592031479, 0.021239235997200012, 0.13218556344509125, -0.1863655149936676, -0.17506328225135803, -0.18920034170150757, 0.15311425924301147, -0.32558533549308777, 0.10114707052707672, -0.4603442847728729, -0.2296048402786255, -0.2635376751422882, -0.2508557140827179, -0.6011717319488525, -0.23147012293338776, 0.3859603703022003, 0.011456571519374847, 0.1736728847026825, -0.5614155530929565, 0.07265692949295044, 0.14012883603572845, -0.037379611283540726, 0.47953957319259644, 0.11465717852115631, 0.30143386125564575, -0.05742383003234863, -0.5149943828582764, 0.28376075625419617, 0.3073303997516632, -0.13718342781066895, -0.18192820250988007, -0.19305406510829926, 0.27391165494918823, -0.02118438109755516, 0.5096985697746277, -0.05444592610001564, -0.21273547410964966, -0.24377012252807617, -0.14840956032276154, -0.1409820169210434, 0.0682763084769249, 0.23240461945533752, -0.09257879108190536, -0.24853718280792236, 0.11168521642684937, -0.24108919501304626, 0.08915527909994125, -0.16205082833766937, 0.38231855630874634, -0.24649792909622192, -0.4590023458003998, 0.21529240906238556, 0.11257939040660858, 0.513397216796875, -0.27764883637428284, 0.1462622731924057, 0.017970304936170578, -0.13686354458332062, -0.1404019147157669, 0.10359743237495422, -0.09636592864990234, 0.38776785135269165, 0.025972304865717888, -0.5535508394241333, -0.0886993333697319, -0.09987181425094604, 0.0003993883728981018, -0.3125969171524048, -0.012884724885225296, 0.20989811420440674, -0.3190428614616394, 0.0617215521633625, 0.23781366646289825, 0.0994139015674591, -0.11961200833320618, -0.3719261586666107, -0.05653694272041321, -0.35939058661460876, 0.32829180359840393, -0.29631340503692627, -0.25287312269210815, -0.4488338828086853, 0.2908834218978882, -0.33080539107322693, -0.1946900337934494, -0.2062401920557022, 0.28135761618614197, 0.22508767247200012, -0.13732030987739563, 0.01982033997774124, 0.054995112121105194, 0.06624400615692139, 0.0838082879781723, -0.14713869988918304, 0.4502891004085541, 0.21412351727485657, 0.04956532269716263, -0.09759192168712616, -0.11639182269573212 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
Hmmm, does this mean that any person who downloads the common voice dataset will be logged as "system@huggingface.co"? If so, it would defeat the purpose of sending the user's email to the commonvoice API, right?
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
35
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 Hmmm, does this mean that any person who downloads the common voice dataset will be logged as "system@huggingface.co"? If so, it would defeat the purpose of sending the user's email to the commonvoice API, right?
[ -0.16967090964317322, 0.14447396993637085, 0.04571732506155968, 0.2471177726984024, -0.02002299576997757, 0.31687164306640625, 0.5003864169120789, 0.05814940854907036, 0.3065968155860901, -0.06583508849143982, -0.3562380075454712, -0.1942669004201889, -0.07957649976015091, -0.10981374979019165, 0.25778520107269287, 0.23522254824638367, -0.012772448360919952, 0.12072061002254486, 0.389425665140152, -0.3368724584579468, -0.06503282487392426, 0.1487875133752823, -0.25675249099731445, 0.16852709650993347, -0.2674523591995239, -0.16804683208465576, -0.14761696755886078, 0.21819767355918884, -0.11043217033147812, -0.1833328902721405, -0.0009878668934106827, 0.21163667738437653, 0.030520256608724594, 0.19648891687393188, -0.00012364177382551134, -0.016221467405557632, 0.3389793038368225, 0.1268911063671112, -0.23049978911876678, -0.012323543429374695, -0.3353548049926758, 0.30938416719436646, 0.17446871101856232, 0.0599447563290596, 0.03196287900209427, -0.04015462100505829, 0.20581625401973724, -0.6824607253074646, 0.362607479095459, 0.13007351756095886, 0.0545772910118103, -0.06843452155590057, 0.016981016844511032, 0.21009451150894165, -0.20840394496917725, 0.2326568067073822, -0.0354369655251503, 0.055612996220588684, -0.06431517004966736, 0.30264002084732056, 0.10365762561559677, 0.07215730845928192, 0.1103363186120987, -0.190223827958107, -0.06769639998674393, 0.20218783617019653, -0.26969823241233826, -0.3381328880786896, 0.1577855944633484, 0.15261954069137573, 0.8610351085662842, -0.16472011804580688, -0.19001592695713043, 0.10477729886770248, 0.16168585419654846, -0.3221178650856018, 0.2960387170314789, 0.25802651047706604, -0.2492799311876297, 0.24995024502277374, -0.13930055499076843, -0.33640432357788086, -0.05944841355085373, 0.24997252225875854, -0.3393324613571167, 0.07579025626182556, -0.32144415378570557, -0.034225672483444214, 0.0460311621427536, 0.1009974256157875, -0.2816984951496124, -0.04517733305692673, 0.21099384129047394, 0.455910861492157, -0.05434492602944374, -0.2718263566493988, 0.07760296761989594, 0.09517591446638107, 0.11928655952215195, 0.09950975328683853, 0.24680578708648682, 0.1325252205133438, -0.3170121908187866, -0.10530475527048111, 0.4842468798160553, -0.12056063115596771, 0.21966198086738586, 0.23851872980594635, 0.3433711528778076, -0.01382671669125557, 0.3857792019844055, -0.19575360417366028, -0.431810200214386, 0.22826771438121796, 0.04589920863509178, -0.22525131702423096, 0.3169441819190979, -0.43717047572135925, -0.34474360942840576, 0.34990641474723816, -0.3051384687423706, -0.030830111354589462, 0.1068892776966095, 0.2988150417804718, -0.0765872374176979, -0.022947128862142563, 0.13038399815559387, -0.030715301632881165, -0.12310577929019928, 0.06792932748794556, -0.09255322813987732, -0.2819475829601288, -0.2818252444267273, 0.15992014110088348, 0.26469969749450684, -0.4973938465118408, 0.18988031148910522, -0.14160336554050446, 0.4540894031524658, 0.0005071908235549927, -0.09017307311296463, 0.22172389924526215, -0.12200818210840225, 0.019743923097848892, -0.02241475135087967, 0.40507611632347107, -0.0885162204504013, -0.061804138123989105, -0.2272738516330719, 0.1600983738899231, -0.2758059799671173, -0.2538975179195404, -0.14838434755802155, 0.09407765418291092, -0.08254823088645935, -0.11366954445838928, 0.3562028706073761, -0.07114897668361664, -0.0581926628947258, -0.30405116081237793, 0.09587620198726654, 0.1957276612520218, 0.19606676697731018, 0.08757264167070389, 0.07988081127405167, 0.3878015875816345, -0.18842439353466034, -0.24450622498989105, -0.4541069567203522, -0.2985990345478058, -0.2266092300415039, 0.24391527473926544, -0.05291055515408516, -0.4559849202632904, -0.4551984369754791, 0.40760165452957153, 0.6409578323364258, -0.41325873136520386, -0.3384059965610504, 0.16372597217559814, -0.17380592226982117, -0.038718122988939285, 0.12104953825473785, -0.21758291125297546, 0.10710879415273666, -0.15999777615070343, 0.06974330544471741, 0.017616713419556618, 0.15101979672908783, 0.038664765655994415, 0.013995137065649033, -0.1881086230278015, -0.28848206996917725, 0.03579595685005188, -0.11087417602539062, 0.15059110522270203, 0.2777794599533081, -0.07149013876914978, 0.674179196357727, 0.33436018228530884, 0.15017805993556976, 0.04123666137456894, 0.2069394737482071, -0.05302578955888748, 0.049617331475019455, 0.0669233649969101, 0.08500564843416214, -0.17583587765693665, 0.10820651054382324, -0.04097272455692291, 0.26790857315063477, -0.48347973823547363, -0.19921091198921204, -0.08035843819379807, -0.4225882887840271, 0.02297820895910263, -0.01686568558216095, 0.26078832149505615, 0.007889945060014725, 0.04128047451376915, -0.08803454041481018, -0.11432860046625137, 0.37433886528015137, 0.1253146082162857, 0.012172200717031956, 0.0927698090672493, -0.03358086198568344, 0.3420107066631317, -0.038498926907777786, 0.2520916759967804, 0.028642814606428146, 0.043568555265665054, 0.23208099603652954, -0.002490047365427017, -0.2096823751926422, 0.3660026788711548, 0.02314019948244095, 0.4541226625442505, 0.16579307615756989, -0.2564868927001953, 0.45096051692962646, 0.25741046667099, 0.0028810324147343636, 0.05546438694000244, -0.1575801968574524, 0.26283708214759827, 0.45438501238822937, -0.04203330725431442, -0.06992220878601074, 0.24099129438400269, -0.06257359683513641, 0.08774459362030029, -0.12082532793283463, -0.1548856794834137, -0.07095368206501007, -0.0993073433637619, 0.6734237670898438, -0.22120301425457, -0.8112585544586182, 0.08036365360021591, 0.4881040155887604, -0.03032037988305092, -0.05663120001554489, -0.20495209097862244, -0.5639744400978088, 0.019962921738624573, 0.2867703139781952, -0.4129711389541626, 0.3034546673297882, 0.27474328875541687, 0.24586862325668335, 0.35799887776374817, 0.23735836148262024, -0.03466491401195526, 0.1554120033979416, 0.04211483150720596, -0.014384537003934383, 0.12447648495435715, -0.3729013204574585, 0.10814397037029266, -0.4272913634777069, -0.2201065868139267, -0.10305946320295334, -0.30795931816101074, -0.4074806571006775, -0.16756398975849152, -0.029035547748208046, -0.08256005495786667, -0.34848955273628235, 0.02933080866932869, -0.34115999937057495, -0.24380016326904297, 0.1314685046672821, 0.13289670646190643, -0.037803854793310165, 0.002637476660311222, -0.5623480081558228, 0.46112293004989624, -0.014244519174098969, 0.32596805691719055, -0.4227153956890106, 0.30887892842292786, -0.06125033646821976, 0.10206104815006256, 0.05933850258588791, -0.1633826643228531, 0.02965432219207287, -0.2253047227859497, 0.35011178255081177, -0.24259907007217407, -0.21338286995887756, 0.3674955368041992, 0.17643426358699799, -0.18351563811302185, 0.0064224377274513245, -0.17605994641780853, -0.08092892915010452, 0.2578859031200409, -0.15293358266353607, -0.2120836228132248, -0.19337688386440277, -0.1656862199306488, 0.13570165634155273, 0.09949706494808197, 0.006064668297767639, -0.17558163404464722, -0.25431716442108154, -0.19462957978248596, 0.1715603768825531, 0.045226726680994034, 0.15028885006904602, 0.3515639007091522, -0.2582075893878937, 0.14445164799690247, -0.3581274449825287, 0.10997653752565384, -0.37674659490585327, -0.36742809414863586, 0.22257474064826965, -0.34513312578201294, -0.16315022110939026, 0.20917195081710815, -0.04408658295869827, 0.23666568100452423, -0.1309734433889389, -0.3712940216064453, 0.15363922715187073, 0.04183817282319069, 0.0010016188025474548, 0.3139325678348541, 0.10257889330387115, 0.3630252480506897, 0.024527577683329582, -0.026932373642921448, -0.01927778869867325, -0.13821260631084442, -0.33764663338661194, 0.24369415640830994, 0.28310707211494446, -0.13321655988693237, -0.057957619428634644, -0.21364393830299377, 1.0313488245010376, 0.17071759700775146, 0.16369150578975677, 0.07907627522945404, -0.23252490162849426, 0.5246003866195679, 0.28988683223724365, -0.21401964128017426, 0.14948223531246185, 0.1925264596939087, 0.02617575228214264, 0.4168420433998108, 0.24240601062774658, -0.1208534762263298, -0.22616010904312134, -0.025579897686839104, -0.2780745029449463, -0.18785330653190613, -0.24356327950954437, -0.23397740721702576, 0.07780008763074875, 0.2714915871620178, 0.27708837389945984, 0.007511375471949577, -0.150228351354599, 0.014143362641334534, 0.4010443091392517, 0.0788140520453453, 0.046787459403276443, 0.18538105487823486, 0.09398038685321808, -0.4050254225730896, 0.2889372706413269, -0.22565560042858124, 0.06435157358646393, -0.15466468036174774, -0.1612035632133484, 0.26229292154312134, 0.22361312806606293, 0.2050597369670868, 0.1564372032880783, -0.251895010471344, -0.13986103236675262, 0.24958619475364685, 0.10312407463788986, 0.061893682926893234, -0.29744741320610046, 0.21601037681102753, -0.2947586476802826, -0.1148805171251297, -0.00868513435125351, -0.19003711640834808, 0.15658490359783173, -0.14954343438148499, -0.1798560917377472, -0.08194604516029358, -0.18486344814300537, -0.017216740176081657, -0.19093801081180573, 0.09423033893108368, -0.10610220581293106, 0.0689660906791687, -0.40184032917022705, -0.047235291451215744, 0.26799631118774414, -0.09416618198156357, 0.3747856616973877, -0.18039101362228394, -0.05493861436843872, 0.10001835972070694, -0.0020647868514060974, 0.681850790977478, 0.7534115314483643, -0.04482473433017731, 0.6597628593444824, 0.46811145544052124, -0.16246777772903442, 0.09352521598339081, -0.12336684763431549, 0.3823849856853485, 0.5502831339836121, -0.02849556878209114, -0.30926644802093506, 0.37631502747535706, 0.07147546857595444, -0.004605601541697979, -0.01654612272977829, 0.32261547446250916, 0.34509965777397156, -0.47225603461265564, -0.181576669216156, 0.18322844803333282, 0.09110964834690094, -0.164354145526886, 0.1839880794286728, 0.3591417670249939, -0.13333632051944733, -0.3831193447113037, -0.29483500123023987, 1.0612609386444092, 0.44340580701828003, 0.3256050944328308, 0.21228110790252686, -0.11710526049137115, 0.05591108649969101, -0.08178433030843735, 0.12718357145786285, -0.21294648945331573, -0.01691611483693123, -0.34633758664131165, -0.276498019695282, 0.3067035377025604, 0.23573049902915955, -0.06715130805969238, 0.0218272116035223, 0.02714412659406662, -0.14206810295581818, 0.10046247392892838, 0.3504038453102112, -0.46461552381515503, 0.05288553237915039, 0.1814015507698059, 0.011553607881069183, 0.0855601504445076, 0.7272951602935791, -0.019734039902687073, -0.3054170608520508, -0.13945986330509186, -0.46617525815963745, -0.12180658429861069, 0.16918230056762695, -0.12090115994215012, -0.14152580499649048, 0.13378432393074036, 0.06559783220291138, 0.47101423144340515, -0.10926824808120728, 0.0903945192694664, -0.006429102271795273, -0.38906756043434143, 0.08253569155931473, -0.024885982275009155, -0.08992978185415268, 0.13528217375278473, -0.04482541233301163, 0.23208501935005188, -0.11555737257003784, -0.26009029150009155, 0.2621024549007416, -0.07554759085178375, -0.04686044901609421, -0.6584345698356628, 0.01651311293244362, 0.36239027976989746, -0.3600277602672577, 0.3468289375305176, 0.1836949735879898, -0.22260884940624237, 0.09576848149299622, 0.024284465238451958, 0.3936713933944702, 0.020480770617723465, 0.029517710208892822, 0.24473510682582855, 0.26229047775268555, -0.1936996430158615, 0.4656287431716919, 0.1144174337387085, -0.3043748140335083, 0.431612104177475, -0.33301323652267456, -0.21562600135803223, -0.17277279496192932, -0.06279809027910233, 0.39931899309158325, -0.3298274874687195, -0.2977169454097748, 0.003628768026828766, -0.03345676511526108, -0.20472924411296844, 0.0930192694067955, -0.13825587928295135, 0.18156400322914124, -0.24655091762542725, -0.3164142668247223, -0.0845939889550209, 0.14210644364356995, -0.27762696146965027, 0.21405401825904846, -0.07544633001089096, 0.0689406543970108, 0.3096049129962921, -0.3823121190071106, -0.22092309594154358, -0.05301322788000107, 0.25551071763038635, -0.08531735092401505, 0.25958287715911865, 0.14974194765090942, 0.21448266506195068, -0.03080584667623043, 0.11983382701873779, -0.16195757687091827, -0.15528717637062073, -0.03540663421154022, 0.21539172530174255, 0.2107299268245697, 0.21817895770072937, -0.25151726603507996, 0.25347742438316345, 0.33808791637420654, -0.3271527588367462, 0.224469855427742, 0.049728285521268845, 0.09292828291654587, 0.11056125909090042, -0.18651427328586578, 0.043478935956954956, -0.0881124958395958, -0.1584995985031128, 0.035367898643016815, 0.14670035243034363, 0.2991473972797394, -0.26796209812164307, 0.16256344318389893, -0.24867357313632965, -0.1680644154548645, 0.14945711195468903, 0.20010849833488464, 0.2659800052642822, 0.04370758682489395, 0.3886320888996124, -0.2544761300086975, 0.16612575948238373, 0.29190826416015625, 0.3593805134296417, 0.16333353519439697, -0.21748408675193787, 0.01293332688510418, 0.3041706681251526, 0.11911030858755112, -0.21857592463493347, 0.22781939804553986, -0.06302323937416077, -0.12532566487789154, -0.25750550627708435, -0.015976272523403168, -0.07947764545679092, -0.055073969066143036, 0.28176188468933105, -0.05242414027452469, 0.0630592480301857, 0.1607620269060135, 0.35592493414878845, 0.09799221903085709, -0.5946173071861267, 0.23556268215179443, 0.49266326427459717, 0.1556916981935501, -0.12481678277254105, 0.1892462521791458, -0.5210447907447815, -0.10315306484699249, 0.11209679394960403, -0.014684084802865982, 0.17641623318195343, -0.32525020837783813, 0.22488494217395782, 0.09557035565376282, -0.16344556212425232, 0.10584571957588196, 0.06100107356905937, 0.22317680716514587, -0.2994135022163391, 0.3595793843269348, -0.36324310302734375, 0.08300767838954926, -0.258950799703598, 0.3180636763572693, 0.1505311280488968, -0.2628369629383087, -0.05939454957842827, -0.007337979972362518, 0.07293018698692322, -0.3243001103401184, 0.007200717926025391, -0.3212517499923706, -0.29390621185302734, -0.37958016991615295, -0.15969020128250122, 0.17365771532058716, 0.20371171832084656, -0.06271828711032867, 0.06773451715707779, -0.3853461742401123, -0.07067516446113586, 0.44129645824432373, 0.6821461915969849, 0.19808071851730347, -0.09270761907100677, 0.5865595936775208, -0.028824839740991592, 0.25784510374069214, -0.20347829163074493, 0.11420133709907532, -0.007508713752031326, 0.5035372972488403, 0.0897691547870636, -0.03533569723367691, 0.02095058001577854, -0.006330183241516352, -0.1661975234746933, -0.0656685084104538, 0.18623968958854675, -0.3750014901161194, 0.12260791659355164, -0.5748043060302734, -0.14455494284629822, -0.24611198902130127, -0.16073080897331238, -0.5120923519134521, -0.1927834302186966, 0.22646412253379822, 0.0759177953004837, -0.034888654947280884, -0.7131962776184082, -0.005274360068142414, 0.12447847425937653, -0.04683951660990715, 0.363856703042984, 0.05172586441040039, 0.19598479568958282, -0.055793337523937225, -0.3849833011627197, 0.5141720175743103, 0.4168035387992859, -0.12818990647792816, -0.2952347993850708, -0.24687491357326508, 0.20420503616333008, 0.20092666149139404, 0.2521944046020508, 0.050011567771434784, -0.06777680665254593, -0.16558010876178741, 0.07589685916900635, -0.07664573192596436, 0.153103768825531, 0.38750749826431274, -0.08903434872627258, -0.24363785982131958, 0.45679691433906555, -0.2174966037273407, -0.0219904575496912, -0.1759423017501831, 0.38594138622283936, -0.5130812525749207, -0.08372481167316437, 0.14085298776626587, 0.049936242401599884, 0.36817529797554016, -0.1302509903907776, 0.07242875546216965, -0.027165111154317856, 0.11136780679225922, -0.24420639872550964, 0.19878801703453064, 0.0007773339748382568, -0.024711018428206444, 0.06644821166992188, -0.25579482316970825, -0.04289277270436287, -0.30946800112724304, -0.06588207185268402, -0.022032039240002632, 0.06637049466371536, -0.0007427027449011803, -0.4832884967327118, 0.10688590258359909, 0.34105414152145386, 0.11930899322032928, -0.03711559623479843, -0.5185202956199646, -0.10623224079608917, -0.21231375634670258, 0.36647409200668335, -0.3294660449028015, 0.1021239310503006, -0.3057560920715332, 0.39168038964271545, -0.08546676486730576, -0.19274026155471802, -0.215110182762146, 0.1601140797138214, 0.27616778016090393, -0.24363166093826294, 0.12859153747558594, -0.01415674015879631, -0.15563789010047913, 0.025359105318784714, -0.15171019732952118, 0.48656830191612244, 0.25435537099838257, -0.11878810822963715, 0.17760448157787323, -0.15577910840511322 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
I agree with @severo: we cannot set our system email as default, allowing anybody not authenticated to by-pass the Common Voice usage policy. Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead. CC: @patrickvonplaten @lhoestq @SBrandeis @julien-c
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
61
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 I agree with @severo: we cannot set our system email as default, allowing anybody not authenticated to by-pass the Common Voice usage policy. Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead. CC: @patrickvonplaten @lhoestq @SBrandeis @julien-c
[ -0.42333826422691345, 0.2953560948371887, 0.0905713140964508, -0.062156662344932556, 0.09976385533809662, 0.18124940991401672, 0.7674461007118225, 0.23272287845611572, 0.29359322786331177, 0.17033198475837708, -0.09795495122671127, 0.002181146526709199, -0.006449350155889988, -0.12007999420166016, -0.011192440055310726, 0.2903728187084198, -0.24543362855911255, 0.18936331570148468, 0.154788076877594, -0.18792898952960968, -0.07895217835903168, -0.01152772642672062, -0.25790637731552124, -0.06523348391056061, -0.06719347834587097, -0.1484670788049698, 0.006612075492739677, 0.3384518027305603, -0.12353130429983139, -0.4067035913467407, 0.06234043091535568, 0.2879839241504669, 0.0023802537471055984, -0.07923661917448044, -0.00010724399180617183, -0.05051141977310181, 0.4962915778160095, 0.13923205435276031, -0.05880499631166458, 0.12768101692199707, -0.1150730550289154, 0.3824065625667572, 0.02181965298950672, -0.10409409552812576, -0.12489567697048187, 0.08928606659173965, 0.09365691989660263, -0.6929332613945007, 0.47713702917099, 0.4681117534637451, 0.215365931391716, -0.09730777144432068, -0.04902514070272446, 0.13084560632705688, -0.2248118817806244, 0.10947945713996887, -0.07004342973232269, -0.01177162304520607, 0.02689550817012787, 0.13755953311920166, 0.02406599372625351, -0.0304674431681633, -0.030869202688336372, -0.2740544378757477, -0.1377142369747162, 0.07441587001085281, -0.04945793002843857, -0.37513864040374756, 0.16023463010787964, 0.29222458600997925, 0.8587343692779541, -0.10335712879896164, 0.19476251304149628, 0.19288328289985657, 0.07561086863279343, -0.26571768522262573, 0.3846791684627533, 0.0557270273566246, -0.15437358617782593, 0.3975124955177307, -0.16738364100456238, -0.10426145792007446, -0.07608511298894882, 0.08891330659389496, -0.2036590427160263, 0.13700808584690094, -0.15584857761859894, 0.03021799400448799, 0.01393207535147667, 0.02670229971408844, 0.29510265588760376, -0.040558695793151855, 0.015201324597001076, 0.22339226305484772, 0.06098025664687157, -0.24540956318378448, 0.08656805753707886, -0.18950340151786804, 0.23443162441253662, 0.16266849637031555, 0.24604953825473785, 0.21632376313209534, -0.14198537170886993, -0.028805553913116455, 0.23491866886615753, -0.09535865485668182, 0.29389500617980957, 0.18040798604488373, 0.37474435567855835, 0.14955808222293854, 0.3755880892276764, -0.05360230803489685, -0.2493775635957718, 0.04635484144091606, 0.17195065319538116, 0.052955303341150284, 0.3513127565383911, -0.34404581785202026, -0.23414595425128937, 0.33926329016685486, -0.04873631149530411, -0.13407376408576965, 0.1440398395061493, 0.32352641224861145, 0.03485440835356712, 0.19801422953605652, 0.10025514662265778, 0.004797901958227158, 0.0032522864639759064, -0.06112934276461601, -0.057028599083423615, -0.16129982471466064, -0.22626180946826935, 0.09173550456762314, 0.3863499164581299, -0.4406779110431671, 0.0632355809211731, 0.10139255225658417, 0.4308887720108032, 0.00995519757270813, -0.03483026474714279, 0.1312265694141388, -0.13300085067749023, -0.07384561002254486, 0.008133452385663986, 0.3835439682006836, 0.05472211539745331, 0.01989976316690445, -0.04614439979195595, 0.18979153037071228, -0.11436399072408676, -0.3485928475856781, -0.050265103578567505, 0.2026529461145401, 0.052884310483932495, -0.10779358446598053, 0.5049946308135986, 0.022437984123826027, -0.09113272279500961, -0.2298962026834488, -0.006082698702812195, 0.1839575320482254, 0.04895596578717232, 0.14473116397857666, 0.03208263963460922, 0.5131027698516846, -0.2844923436641693, 0.029754161834716797, -0.5368576645851135, -0.24616917967796326, 0.026863671839237213, -0.00019018352031707764, -0.21158039569854736, -0.33711379766464233, -0.26434406638145447, 0.1638464629650116, 0.35340481996536255, -0.18790431320667267, -0.48336145281791687, 0.046854838728904724, -0.08741653710603714, -0.15141305327415466, 0.17122912406921387, -0.12429919838905334, 0.20276480913162231, 0.0006915072444826365, -0.00483328104019165, 0.2312173843383789, 0.12595650553703308, 0.1607140302658081, -0.12731269001960754, -0.25445374846458435, -0.10402947664260864, 0.0030420534312725067, 0.14478513598442078, 0.23366516828536987, 0.31677019596099854, -0.025162793695926666, 0.44352781772613525, 0.20568214356899261, 0.07357462495565414, -0.04547295719385147, 0.243896022439003, -0.23794130980968475, -0.0638543963432312, 0.0894961878657341, 0.12144669890403748, 0.0053357332944869995, 0.24522095918655396, 0.1334608942270279, 0.26309657096862793, -0.24779410660266876, -0.40984418988227844, -0.11048002541065216, -0.18138091266155243, 0.07149860262870789, 0.16321517527103424, 0.41539159417152405, -0.15734250843524933, -0.13412922620773315, -0.11067771911621094, -0.11911807209253311, 0.20092082023620605, -0.007715865969657898, 0.19984355568885803, 0.1554049700498581, -0.17333467304706573, 0.17871291935443878, 0.04388020932674408, 0.011290017515420914, 0.1032240092754364, 0.12370060384273529, -0.037559766322374344, 0.14774979650974274, -0.043316666036844254, 0.15458589792251587, -0.0999792143702507, 0.17853495478630066, -0.08759251236915588, -0.45268890261650085, 0.41381508111953735, 0.38273870944976807, -0.026621464639902115, 0.1058209016919136, -0.23396548628807068, 0.3104698061943054, 0.25508764386177063, -0.29476165771484375, -0.1782943159341812, 0.358468621969223, -0.0415208525955677, -0.09885799884796143, -0.11046216636896133, -0.19026868045330048, -0.35263437032699585, 0.041552551090717316, 0.5808975100517273, 0.018152374774217606, -0.6463232040405273, -0.050458602607250214, 0.6911428570747375, 0.07164545357227325, -0.07909969240427017, -0.2304680049419403, -0.23760217428207397, -0.18820160627365112, 0.22195252776145935, -0.3901035189628601, 0.10259992629289627, 0.18399678170681, 0.015903610736131668, 0.43623650074005127, 0.06645773351192474, -0.04520668461918831, 0.06474985182285309, -0.21092863380908966, 0.1651025116443634, -0.017806023359298706, -0.08006531745195389, 0.14044833183288574, -0.48815304040908813, -0.2838954031467438, -0.01549746748059988, -0.14315776526927948, -0.4723084568977356, -0.24702022969722748, -0.02995169349014759, 0.2013857662677765, -0.05688442289829254, 0.19492734968662262, -0.06913398206233978, -0.1815333515405655, 0.18057437241077423, 0.06275615096092224, -0.12257647514343262, 0.13635344803333282, -0.5826312303543091, 0.5189613699913025, 0.15072627365589142, 0.2030968815088272, -0.3624376952648163, 0.47174975275993347, -0.1901070773601532, 0.22154514491558075, 0.08142060041427612, -0.25325626134872437, -0.10941901803016663, -0.06910505145788193, 0.04499262198805809, -0.2173282653093338, -0.1432056427001953, 0.33073270320892334, 0.2695293426513672, 0.15184251964092255, -0.18353360891342163, -0.0836501270532608, -0.11904491484165192, 0.11906853318214417, -0.11962276697158813, -0.31966906785964966, -0.12450867891311646, 0.1658354550600052, 0.04476561397314072, 0.042392656207084656, -0.1343926191329956, -0.47714802622795105, -0.22969654202461243, -0.3083019554615021, -0.13675636053085327, 0.08941181004047394, 0.17415368556976318, 0.16531768441200256, -0.09280220419168472, -0.09337401390075684, -0.33398550748825073, 0.14785900712013245, -0.2596540153026581, -0.48088034987449646, 0.3693079948425293, -0.3001875877380371, -0.314993292093277, 0.07900853455066681, -0.06609652936458588, 0.20264974236488342, -0.06406277418136597, -0.29522496461868286, 0.1513981968164444, -0.16472314298152924, 0.16027583181858063, 0.08517375588417053, -0.026406632736325264, 0.480081170797348, 0.18355511128902435, -0.132659912109375, -0.03634059056639671, -0.10297633707523346, -0.13458740711212158, 0.11259148269891739, 0.01719849556684494, 0.031223349273204803, 0.23798638582229614, -0.01091989316046238, 0.986792266368866, 0.09204469621181488, 0.2423953413963318, 0.0589018240571022, -0.18783745169639587, 0.35631272196769714, 0.10518398880958557, -0.12972751259803772, 0.41654887795448303, 0.4354686439037323, -0.03149036318063736, 0.4762469530105591, -0.07956437766551971, -0.2962886691093445, -0.15919971466064453, 0.07474589347839355, -0.2771713435649872, -0.22618290781974792, -0.06879986822605133, -0.4573904871940613, 0.148392915725708, 0.16663694381713867, 0.31521058082580566, 0.049209702759981155, -0.23218435049057007, -0.013303052634000778, 0.2708743214607239, -0.12498865276575089, 0.10206642001867294, 0.0016622282564640045, 0.2747075855731964, -0.30118998885154724, 0.24502882361412048, -0.29876407980918884, 0.2863311469554901, -0.09312205016613007, -0.0015327595174312592, 0.1386020928621292, 0.006838429719209671, 0.0023852065205574036, -0.01601201854646206, -0.09968754649162292, 0.06719455122947693, 0.39246895909309387, 0.08695540577173233, -0.04615496098995209, -0.33064085245132446, -0.10687970370054245, -0.21723003685474396, -0.44555193185806274, -0.027638480067253113, -0.07054250687360764, 0.1129111498594284, -0.3112817108631134, -0.20973043143749237, -0.21278390288352966, 0.04352455213665962, -0.021486811339855194, -0.2725382149219513, 0.13401445746421814, -0.012413708493113518, -0.048488494008779526, -0.564023494720459, 0.014239463955163956, 0.0727013573050499, -0.054858267307281494, 0.3194175362586975, 0.05373446270823479, -0.17445078492164612, 0.011352955363690853, -0.010591518133878708, 0.40183132886886597, 0.353545218706131, 0.023476511240005493, 0.5588411688804626, 0.5205460786819458, -0.05331312119960785, 0.02558967098593712, -0.13376162946224213, 0.2866278290748596, 0.3752827048301697, -0.22626321017742157, -0.3488541841506958, 0.2709590196609497, 0.039113808423280716, 0.15326984226703644, -0.1237327978014946, 0.16840116679668427, 0.0339181162416935, -0.14396482706069946, -0.3286774158477783, -0.1606738269329071, 0.06279636919498444, -0.21031346917152405, -0.05542231351137161, -0.006881259381771088, -0.04085453599691391, -0.08520827442407608, -0.210857093334198, 0.798717737197876, 0.19396252930164337, -0.034541498869657516, 0.1161918044090271, 0.16567111015319824, -0.14198988676071167, -0.006100047379732132, 0.03900003433227539, -0.18620304763317108, -0.13158883154392242, -0.15601195394992828, -0.18355955183506012, 0.2687511146068573, 0.4645141363143921, -0.24091075360774994, 0.12273570150136948, -0.19529739022254944, -0.28678208589553833, 0.1488945335149765, 0.5003969669342041, -0.581832230091095, -0.02099364623427391, 0.1362270712852478, 0.1842082291841507, -0.020078256726264954, 0.2755759358406067, 0.11208543181419373, -0.139001727104187, 0.07534138858318329, -0.5390204787254333, -0.14044946432113647, 0.3940677046775818, -0.16509605944156647, -0.24635575711727142, 0.09078986942768097, 0.31482040882110596, 0.6176194548606873, 0.03886977955698967, 0.0970604196190834, 0.4697793126106262, -0.3391228914260864, 0.04785637930035591, 0.10175156593322754, 0.036193061619997025, 0.13852736353874207, 0.04688756540417671, 0.4620194137096405, -0.055048681795597076, -0.34969910979270935, 0.20500892400741577, -0.0674629732966423, -0.11880366504192352, -0.3580511808395386, -0.08737857639789581, 0.46350598335266113, -0.2163926362991333, 0.3616449236869812, 0.11610345542430878, -0.13506096601486206, -0.023885445669293404, 0.21374014019966125, 0.17020481824874878, 0.12498351186513901, 0.14998799562454224, 0.0832848846912384, 0.19071123003959656, -0.19200503826141357, 0.20492789149284363, 0.04680049791932106, -0.048545029014348984, 0.2565450966358185, -0.21167467534542084, -0.0358351469039917, -0.30417320132255554, -0.11529958248138428, 0.26314592361450195, 0.008745960891246796, -0.23174872994422913, -0.06731263548135757, -0.09518694877624512, -0.018334947526454926, -0.0769411027431488, -0.20484118163585663, 0.20645233988761902, -0.25394919514656067, -0.28935423493385315, -0.30838674306869507, -0.035156168043613434, -0.04404773935675621, 0.13963744044303894, 0.006319373846054077, 0.08429411053657532, 0.057066336274147034, -0.21308109164237976, -0.4096170961856842, -0.1444963961839676, 0.12442687898874283, -0.041147708892822266, 0.1841210573911667, 0.02366972155869007, -0.016329247504472733, -0.06929285824298859, 0.20196504890918732, -0.21544665098190308, -0.09606973826885223, -0.2230934500694275, 0.10887686908245087, 0.14537110924720764, 0.2695961594581604, -0.3573485016822815, 0.14712810516357422, -0.02393421158194542, -0.4704837501049042, -0.018927598372101784, 0.10182632505893707, 0.12872108817100525, 0.0648408830165863, -0.030527900904417038, -0.0261383019387722, -0.02897442877292633, -0.09950938820838928, -0.14663395285606384, -0.32888415455818176, 0.11789810657501221, -0.37620341777801514, 0.2833464443683624, -0.12120835483074188, -0.18644601106643677, 0.08200951665639877, 0.12434716522693634, 0.3888799548149109, 0.3514217734336853, 0.1641039252281189, -0.17975489795207977, 0.07255496084690094, 0.11159645020961761, 0.19772100448608398, 0.060526542365550995, -0.31522366404533386, 0.02852931059896946, 0.2787550389766693, 0.3131702244281769, -0.2977467477321625, 0.15765291452407837, -0.3959251940250397, -0.01409528311342001, 0.04573085531592369, 0.036652401089668274, 0.09879149496555328, -0.24851900339126587, 0.17621968686580658, -0.11077927052974701, 0.04230818897485733, -0.06939507275819778, 0.20975176990032196, 0.21587245166301727, -0.6476297974586487, 0.1390957236289978, 0.6094942688941956, -0.020082056522369385, 0.010238438844680786, 0.3133258819580078, -0.13168498873710632, -0.06239522248506546, 0.16594892740249634, 0.1258404403924942, 0.10198205709457397, -0.3031925559043884, 0.5214723944664001, -0.05634070932865143, -0.15399667620658875, 0.033534638583660126, 0.12297654896974564, -0.030061133205890656, -0.09859452396631241, 0.40938180685043335, -0.35083869099617004, -0.006474923342466354, -0.15602970123291016, 0.15775638818740845, -0.02891531214118004, -0.1074119359254837, -0.09061249345541, 0.00039191171526908875, 0.039044711738824844, -0.11698907613754272, -0.02003481239080429, -0.20618103444576263, -0.43236660957336426, -0.11918765306472778, 0.12422221899032593, 0.19795119762420654, 0.0950891301035881, -0.18954028189182281, 0.15414604544639587, -0.44009238481521606, -0.08666354417800903, 0.42079654335975647, 0.626776933670044, 0.10006733238697052, 0.07849647849798203, 0.4536394774913788, -0.08221979439258575, 0.3367319107055664, -0.3272370398044586, -0.07846508920192719, -0.012787897139787674, 0.48183128237724304, 0.21078543365001678, 0.0172635018825531, 0.17488816380500793, -0.19512781500816345, -0.2963448762893677, -0.1789950579404831, 0.22651143372058868, -0.18775835633277893, -0.09838154166936874, -0.0274667851626873, -0.16568627953529358, -0.2109512984752655, -0.03252702206373215, -0.41908881068229675, -0.2398746758699417, 0.3022327125072479, 0.08611638844013214, 0.23232924938201904, -0.7237006425857544, 0.08419603109359741, 0.2840959131717682, -0.18977414071559906, 0.14975786209106445, -0.07480283826589584, 0.26876819133758545, 0.035765498876571655, -0.5046497583389282, 0.4647848308086395, 0.3067142963409424, -0.04722924530506134, -0.17622025310993195, -0.2841440737247467, 0.22651219367980957, 0.06812860071659088, 0.27262061834335327, 0.1171235591173172, -0.2338103950023651, -0.07068796455860138, -0.01591075398027897, 0.020852893590927124, 0.3161941170692444, 0.37067297101020813, -0.11201246827840805, -0.37899699807167053, 0.320515900850296, -0.11093689501285553, 0.12248141318559647, -0.145600825548172, 0.18148642778396606, -0.33805832266807556, -0.014182142913341522, 0.17199918627738953, 0.24635520577430725, 0.35735517740249634, -0.31843268871307373, 0.23827379941940308, -0.249467670917511, 0.13504798710346222, -0.34863975644111633, -0.12199463695287704, 0.013366220518946648, 0.14153912663459778, 0.2505422532558441, -0.4073716700077057, -0.06437192112207413, -0.2701701819896698, -0.21582776308059692, 0.04154890403151512, -0.18260085582733154, 0.13981202244758606, -0.5174736976623535, 0.23489390313625336, 0.03127561882138252, -0.08638212829828262, 0.02567022666335106, -0.44308608770370483, -0.07457155734300613, -0.3091336488723755, 0.34591203927993774, -0.060708798468112946, -0.09293949604034424, -0.5184540152549744, 0.31539177894592285, -0.2680923044681549, -0.08759482204914093, 0.13536792993545532, 0.1911243498325348, 0.14147917926311493, -0.26991769671440125, 0.09061236679553986, -0.10209652781486511, -0.18206405639648438, 0.055009957402944565, -0.1626642942428589, 0.4691649377346039, 0.22296887636184692, 0.06815198808908463, -0.2872025668621063, -0.10660962760448456 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
Hmm I don't agree here. Anybody can always just bypass the system by setting whatever email. As soon as someone has access to the downloading script it's trivial to tweak the code to not send the "correct" email but to just whatever and it would work. Note that someone only has visibility on the code after having "signed" the access-mechanism so I think we can expect the users to have agreed to not do anything malicious. I'm fine with both @lhoestq's solution or we find a way that forces the user to be logged in + being able to load the data for the datasets viewer. Wdyt @lhoestq @severo @albertvillanova ?
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
111
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 Hmm I don't agree here. Anybody can always just bypass the system by setting whatever email. As soon as someone has access to the downloading script it's trivial to tweak the code to not send the "correct" email but to just whatever and it would work. Note that someone only has visibility on the code after having "signed" the access-mechanism so I think we can expect the users to have agreed to not do anything malicious. I'm fine with both @lhoestq's solution or we find a way that forces the user to be logged in + being able to load the data for the datasets viewer. Wdyt @lhoestq @severo @albertvillanova ?
[ -0.32766997814178467, 0.28264120221138, 0.028696209192276, 0.10169319808483124, -0.035375356674194336, 0.022214695811271667, 0.6439486145973206, 0.07655801624059677, 0.3533983826637268, 0.20495793223381042, -0.25077196955680847, -0.10544851422309875, -0.0896843895316124, -0.04575003683567047, 0.1518867462873459, 0.36865657567977905, -0.20567163825035095, 0.15143682062625885, 0.14593085646629333, -0.10477301478385925, -0.16524550318717957, -0.14999301731586456, -0.2767070531845093, 0.048940420150756836, 0.031126664951443672, -0.1686149388551712, -0.07865757495164871, 0.1734263002872467, -0.3048939108848572, -0.3732471168041229, 0.01693219505250454, 0.4430588483810425, 0.08461015671491623, 0.27860698103904724, -0.0001101862799259834, 0.0020832791924476624, 0.3867456912994385, 0.11542263627052307, -0.22462822496891022, 0.2738186717033386, -0.27801448106765747, 0.2729552388191223, -0.04524359852075577, -0.06488818675279617, 0.015563488006591797, 0.19273985922336578, 0.07666181772947311, -0.614482581615448, 0.6153851747512817, 0.2515275478363037, 0.15749047696590424, 0.06046311557292938, 0.03254423663020134, 0.24704903364181519, 0.016566075384616852, 0.10560701042413712, 0.010148124769330025, 0.10150957107543945, 0.26796138286590576, 0.1695251166820526, 0.06515783071517944, 0.15093792974948883, -0.19830293953418732, -0.3722337782382965, 0.028696278110146523, -0.04912868142127991, -0.15264451503753662, -0.3067624568939209, -0.030230261385440826, 0.23374059796333313, 0.7952951788902283, 0.040394484996795654, -0.174323171377182, -0.12099750339984894, 0.09973274171352386, -0.17426490783691406, 0.4788471460342407, 0.13032962381839752, -0.18935514986515045, 0.4509950876235962, -0.3562013804912567, -0.11344696581363678, 0.014687210321426392, 0.1987810730934143, -0.10778245329856873, -0.02082158625125885, -0.08250132203102112, 0.02817869558930397, -0.2325533777475357, 0.021228477358818054, 0.3214942216873169, -0.13794948160648346, 0.07551051676273346, 0.4411667287349701, 0.11203476786613464, -0.23283647000789642, 0.023373499512672424, -0.00756024569272995, 0.30462077260017395, 0.18714246153831482, 0.18508140742778778, 0.2120870053768158, -0.2100498080253601, -0.08603435009717941, 0.34800994396209717, -0.13726606965065002, 0.1855035424232483, 0.17329339683055878, 0.4434838891029358, 0.36201733350753784, 0.3060187101364136, -0.03115028887987137, -0.3310578763484955, -0.022548899054527283, 0.10291142761707306, 0.10338426381349564, 0.2201027125120163, -0.40609702467918396, -0.2318405658006668, 0.3197880685329437, -0.14233188331127167, -0.08377670496702194, 0.10713652521371841, 0.3517378568649292, -0.10302283614873886, 0.11754027009010315, 0.24333085119724274, 0.0560435950756073, -0.12709364295005798, -0.11244617402553558, -0.011638681404292583, -0.18536491692066193, -0.30623364448547363, 0.1754397302865982, 0.42119383811950684, -0.32708755135536194, -0.02560373954474926, 0.008497736416757107, 0.3088086247444153, -0.1298588216304779, -0.2582891881465912, 0.06546323001384735, -0.23513686656951904, -0.04354899004101753, -0.13233983516693115, 0.25102245807647705, -0.14819413423538208, -0.06756991893053055, 0.03829803317785263, 0.18865066766738892, -0.04827643185853958, -0.2733907997608185, 0.15742279589176178, 0.17247946560382843, -0.2329685389995575, -0.1402558535337448, 0.2675940990447998, 0.05833306163549423, -0.13063737750053406, -0.2882423996925354, 0.015926048159599304, 0.301821231842041, 0.011136215180158615, 0.08584994077682495, 0.06461130827665329, 0.7405059337615967, -0.13408778607845306, -0.11659951508045197, -0.4273560643196106, -0.44096729159355164, -0.16574138402938843, -0.07070837914943695, -0.27572640776634216, -0.08659205585718155, -0.379294216632843, 0.20024560391902924, 0.43111053109169006, -0.3874662518501282, -0.5614825487136841, 0.057643190026283264, -0.1322823464870453, 0.15182234346866608, 0.23518526554107666, -0.03692503273487091, 0.19588740170001984, -0.2636844217777252, 0.013370722532272339, 0.06475064158439636, 0.34272482991218567, 0.05275726318359375, -0.22218014299869537, -0.30216553807258606, 0.0042275600135326385, 0.06212947890162468, 0.1635090410709381, 0.3537619709968567, 0.3498994708061218, -0.21450699865818024, 0.6156648397445679, 0.2389986366033554, 0.06965155899524689, -0.16395485401153564, 0.04997706785798073, -0.11924350261688232, -0.2758895754814148, -0.002362467348575592, -0.04771143198013306, 0.06867989152669907, 0.11437840759754181, -0.0326656773686409, -0.12822552025318146, -0.40967321395874023, -0.21742787957191467, -0.026792846620082855, -0.15765143930912018, -0.09654082357883453, 0.08876961469650269, 0.15918585658073425, -0.2778060734272003, -0.2728051245212555, -0.1990339308977127, -0.012697754427790642, 0.2399723380804062, 0.199032261967659, 0.2141064703464508, 0.07467081397771835, -0.05161835998296738, 0.3567941188812256, 0.03690507262945175, 0.05591767281293869, 0.15576058626174927, 0.1052333191037178, 0.05486574396491051, 0.11213833093643188, -0.13676436245441437, 0.1686002016067505, -0.045300595462322235, 0.2480812966823578, -0.01831783913075924, -0.24418234825134277, 0.39815664291381836, 0.2577301859855652, 0.19657109677791595, 0.0505693182349205, -0.09255664795637131, 0.34605222940444946, 0.32150131464004517, -0.21973219513893127, -0.17000867426395416, 0.1773960143327713, -0.10012657940387726, -0.05449564382433891, -0.12770488858222961, -0.08933217078447342, -0.20471249520778656, 0.18819764256477356, 0.5323777198791504, -0.01095527596771717, -0.5594019889831543, 0.03702015429735184, 0.6364457607269287, 0.06023722514510155, -0.10269821435213089, -0.25598713755607605, -0.32406967878341675, 0.009607940912246704, 0.10491716861724854, -0.20236662030220032, 0.10618540644645691, 0.2006996124982834, 0.1164325475692749, 0.45636725425720215, 0.28664159774780273, -0.08825293183326721, 0.1503194123506546, -0.026190660893917084, -0.09151148796081543, 0.009948454797267914, -0.39495187997817993, 0.1293363869190216, -0.3887823522090912, -0.3810591697692871, -0.05158834159374237, -0.3282396197319031, -0.4805987775325775, -0.14949364960193634, 0.10873745381832123, -0.09329323470592499, -0.1724148541688919, 0.22040611505508423, -0.1758575439453125, -0.1669754981994629, 0.2362261414527893, 0.16215500235557556, -0.2174995243549347, -0.02544996328651905, -0.5943489074707031, 0.49487805366516113, -0.14811325073242188, 0.023974737152457237, -0.16996003687381744, 0.4189014136791229, -0.15623530745506287, 0.1827748417854309, 0.22899089753627777, -0.34507110714912415, -0.029281998053193092, -0.08934247493743896, 0.22915783524513245, -0.16285422444343567, -0.03652919828891754, 0.17939798533916473, 0.21729116141796112, -0.09815067052841187, -0.22832727432250977, -0.09372404217720032, 0.06217838078737259, 0.10233689099550247, -0.1582455188035965, -0.2216598093509674, -0.08275559544563293, -0.13869662582874298, 0.42231521010398865, -0.004051215946674347, -0.07315851747989655, -0.3582818806171417, -0.26053929328918457, -0.22512187063694, -0.061452120542526245, 0.137837752699852, 0.23325645923614502, 0.11453191190958023, -0.11016916483640671, 0.028416767716407776, -0.3850939869880676, 0.3127947151660919, -0.16287264227867126, -0.3492160439491272, 0.306410014629364, -0.18057629466056824, -0.1599087417125702, 0.1679740995168686, -0.021856190636754036, 0.13742423057556152, 0.1824195683002472, -0.3488961458206177, 0.07622819393873215, -0.17412668466567993, 0.08960312604904175, 0.04800630733370781, -0.11699841916561127, 0.39497265219688416, 0.14918725192546844, -0.1252642273902893, -0.008829418569803238, -0.0566827692091465, -0.2623579800128937, -0.19799771904945374, 0.06253360211849213, -0.02837582305073738, 0.08394001424312592, 0.03438761457800865, 0.76497483253479, 0.25826945900917053, 0.363948792219162, 0.06024631857872009, 0.0765727087855339, 0.4536771774291992, 0.23136338591575623, 0.04960809648036957, 0.22788171470165253, 0.3595602810382843, -0.11249736696481705, 0.3295018672943115, 0.03862239792943001, -0.24348919093608856, -0.4084303379058838, -0.1671212613582611, -0.3000358045101166, -0.37414297461509705, -0.09832247346639633, -0.3628504276275635, -0.03194552659988403, 0.38282352685928345, 0.547595202922821, 0.1453041136264801, -0.21779724955558777, -0.02924402989447117, 0.4357059597969055, 0.24055665731430054, 0.13404454290866852, 0.07577823102474213, 0.263280987739563, -0.2997913658618927, 0.28870800137519836, -0.21761518716812134, 0.3639969527721405, 0.06219902262091637, -0.08375148475170135, 0.2632395029067993, 0.04811374098062515, 0.036948032677173615, -0.06590918451547623, 0.0058036260306835175, -0.06015118956565857, 0.420536071062088, 0.06983110308647156, -0.14300264418125153, -0.2119998186826706, -0.04582349583506584, -0.27391675114631653, -0.3011757433414459, -0.1525956690311432, -0.026504769921302795, 0.08074299246072769, -0.2062736302614212, -0.15050144493579865, -0.35577285289764404, 0.06063612923026085, 0.10896650701761246, -0.40515393018722534, 0.09998886287212372, 0.24546559154987335, -0.0627741888165474, -0.41391152143478394, -0.16209103167057037, -0.04808187484741211, 0.15200844407081604, 0.3572084903717041, -0.030651334673166275, -0.2141929268836975, 0.009229814633727074, -0.036323074251413345, 0.42599132657051086, 0.39165639877319336, -0.08019601553678513, 0.7334526777267456, 0.3771040737628937, -0.20495566725730896, -0.10433343797922134, -0.2800855338573456, 0.2213747799396515, 0.6570669412612915, -0.10282563418149948, -0.19594377279281616, 0.25881195068359375, 0.0013679936528205872, 0.11076026409864426, -0.22540852427482605, 0.0982331708073616, 0.15078942477703094, -0.25451937317848206, -0.5483999848365784, -0.10714884847402573, 0.004755303263664246, -0.2643621265888214, -0.02665536105632782, 0.19404444098472595, -0.05504971742630005, -0.19542273879051208, -0.35500651597976685, 1.108633041381836, 0.2428848147392273, 0.23753240704536438, 0.05134151503443718, 0.04004451632499695, -0.050268832594156265, 0.028783507645130157, -0.012043364346027374, -0.006970249116420746, -0.20072105526924133, -0.3155312240123749, -0.30525580048561096, 0.08180328458547592, 0.44359511137008667, 0.02432519569993019, 0.30450722575187683, -0.3398272395133972, 0.03359610587358475, 0.23500046133995056, 0.3208366930484772, -0.507556676864624, 0.00303634162992239, 0.040964603424072266, 0.13481783866882324, 0.006091214716434479, 0.46984320878982544, -0.15110129117965698, -0.204630509018898, -0.01682635396718979, -0.4383658766746521, -0.07565675675868988, 0.3357025682926178, -0.2338876724243164, -0.2259615659713745, -0.05919488146901131, 0.29650378227233887, 0.6343996524810791, 0.11241604387760162, 0.027164388447999954, 0.39743730425834656, -0.31785303354263306, 0.10326896607875824, -0.043726079165935516, 0.16329479217529297, 0.20158201456069946, 0.07894209027290344, 0.4177621304988861, -0.04949645698070526, -0.30987778306007385, 0.1979455053806305, -0.057818785309791565, -0.280975878238678, -0.19215665757656097, 0.0059937238693237305, 0.3601537346839905, -0.2898498773574829, 0.4361819624900818, 0.2148681879043579, -0.04253274202346802, -0.06593732535839081, 0.13623006641864777, 0.19950610399246216, 0.130380779504776, 0.1439659595489502, -0.0005722939968109131, 0.057453811168670654, -0.1501162201166153, 0.4502740502357483, -0.030749358236789703, -0.21897293627262115, 0.38313448429107666, -0.3785705268383026, -0.32766902446746826, -0.3190600574016571, -0.2106260061264038, 0.16250081360340118, -0.18752124905586243, -0.2510296702384949, -0.1983596682548523, 0.053658127784729004, -0.2519685924053192, -0.16286535561084747, -0.13610324263572693, 0.06110585480928421, 0.07167303562164307, -0.39639052748680115, -0.17020273208618164, 0.11026807129383087, 0.027063492685556412, 0.028696011751890182, -0.06032250076532364, 0.24161839485168457, 0.07766896486282349, -0.3077343702316284, -0.352187842130661, -0.1650329828262329, 0.15799807012081146, -0.25909313559532166, 0.29343682527542114, 0.26015928387641907, 0.18393227458000183, -0.021487247198820114, 0.11249801516532898, -0.14612050354480743, -0.13686852157115936, -0.15349668264389038, 0.11515367031097412, 0.18758024275302887, 0.2674625515937805, -0.30462515354156494, 0.15226450562477112, -0.0027938056737184525, -0.2991344928741455, 0.057048410177230835, 0.14145195484161377, 0.2766941487789154, 0.23307031393051147, -0.1178332194685936, 0.02680390700697899, 0.17907705903053284, -0.3592762351036072, 0.05991757661104202, -0.21384486556053162, 0.21623198688030243, -0.3685114085674286, 0.12236989289522171, -0.16842734813690186, -0.14223100244998932, 0.1695931851863861, 0.05158904939889908, 0.3202330470085144, 0.4488323926925659, 0.2769758403301239, -0.05875319987535477, 0.13840776681900024, 0.18709993362426758, 0.13403353095054626, 0.4028949439525604, -0.31567633152008057, -0.131988525390625, 0.28747811913490295, 0.2732682526111603, -0.14184574782848358, 0.2686747610569, -0.374675452709198, -0.0536135733127594, -0.1319928765296936, 0.02698703110218048, -0.05193452537059784, -0.14907193183898926, 0.03492959216237068, -0.08227746188640594, 0.0463956780731678, 0.09278079122304916, 0.32052457332611084, 0.20147177577018738, -0.45967257022857666, 0.04300885275006294, 0.5024504661560059, 0.10950841009616852, -0.07776378840208054, 0.3541829586029053, -0.5122403502464294, -0.22305485606193542, 0.19078099727630615, 0.09422941505908966, 0.03581829369068146, -0.21715283393859863, 0.2744324207305908, 0.18916037678718567, -0.055517807602882385, -0.01785537600517273, 0.22268418967723846, 0.01166708767414093, -0.05751100555062294, 0.38181260228157043, -0.21188268065452576, -0.05091911926865578, -0.13924390077590942, 0.26520079374313354, -0.16804829239845276, -0.3114285469055176, -0.22376437485218048, -0.050185032188892365, -0.028805013746023178, -0.35460275411605835, -0.04857957363128662, -0.037948183715343475, -0.3389204144477844, -0.32067203521728516, 0.09367263317108154, 0.19550403952598572, 0.28761985898017883, -0.3061204254627228, 0.03570082411170006, -0.132961705327034, 0.1185397207736969, 0.675633430480957, 0.5947239398956299, 0.003214556723833084, -0.0646125078201294, 0.46020784974098206, -0.06657274067401886, 0.25043413043022156, -0.11653272062540054, -0.0796225368976593, 0.07352603226900101, 0.3204587697982788, 0.2550058662891388, 0.19051465392112732, 0.09705088287591934, -0.1393771469593048, -0.11521771550178528, -0.16813717782497406, 0.19760222733020782, -0.3370180130004883, 0.16492898762226105, -0.1106840968132019, -0.13748469948768616, -0.24039342999458313, -0.08079793304204941, -0.3016121983528137, -0.21001537144184113, 0.3125525414943695, 0.005902683362364769, 0.30848315358161926, -0.7058733701705933, 0.05387222021818161, 0.4428209960460663, -0.18542709946632385, 0.3733700215816498, 0.021799840033054352, 0.14567071199417114, 0.22196708619594574, -0.6306032538414001, 0.4190963804721832, 0.31842362880706787, -0.10886954516172409, -0.34688469767570496, -0.45137131214141846, 0.1797078549861908, 0.1764485090970993, 0.2289695143699646, 0.1766713410615921, -0.07334692031145096, -0.08912210166454315, -0.03377845138311386, -0.07155588269233704, 0.3725888729095459, 0.37993720173835754, -0.015486744232475758, -0.4951489269733429, 0.41043969988822937, -0.37497472763061523, 0.04794196039438248, 0.06062213331460953, 0.2728120684623718, -0.43374103307724, -0.1638643741607666, 0.30097898840904236, 0.18922112882137299, 0.45628923177719116, -0.22072243690490723, 0.1628950983285904, -0.3791196644306183, 0.12697161734104156, -0.452551931142807, -0.0018864050507545471, -0.0808832198381424, -0.023255890235304832, 0.22303242981433868, 0.026623256504535675, 0.020031100139021873, -0.2519931197166443, -0.2644972503185272, 0.1630922555923462, -0.18838804960250854, -0.030198555439710617, -0.32244861125946045, 0.23530972003936768, 0.08117438852787018, 0.08632564544677734, -0.1935863196849823, -0.36669158935546875, -0.1599433422088623, -0.32131490111351013, 0.4038059115409851, -0.09315261244773865, -0.04715169966220856, -0.3243623673915863, 0.45956501364707947, -0.002737961709499359, -0.01646311767399311, -0.0916440486907959, 0.2739155888557434, 0.10832849889993668, -0.3476334512233734, 0.09250390529632568, 0.028148509562015533, -0.33040785789489746, -0.04700557887554169, -0.17970485985279083, 0.4291801154613495, 0.045300740748643875, -0.010423539206385612, -0.23014983534812927, -0.19828729331493378 ]
https://github.com/huggingface/datasets/issues/4237
Common Voice 8 doesn't show datasets viewer
> Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead. Yes, I agree we can forget about this @patrickvonplaten. After having had a look at Common Voice website, I've seen they only require sending an email (no auth is inplace on their side, contrary to what I had previously thought). Therefore, currently we impose stronger requirements than them: we require the user having logged in and accepted the access mechanism. Currently the script as it is already requires the user being logged in: ```python HfApi().whoami(auth_token) ``` throws an exception if None/invalid auth_token is passed. On the other hand, we should agree on the way to allow the viewer to stream the data.
https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0
136
Common Voice 8 doesn't show datasets viewer https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 > Additionally, looking at the code, I think we should implement a more robust way to send user email to Common Voice: currently anybody can tweak the script and send somebody else email instead. Yes, I agree we can forget about this @patrickvonplaten. After having had a look at Common Voice website, I've seen they only require sending an email (no auth is inplace on their side, contrary to what I had previously thought). Therefore, currently we impose stronger requirements than them: we require the user having logged in and accepted the access mechanism. Currently the script as it is already requires the user being logged in: ```python HfApi().whoami(auth_token) ``` throws an exception if None/invalid auth_token is passed. On the other hand, we should agree on the way to allow the viewer to stream the data.
[ -0.4378190338611603, 0.2820078432559967, -0.01713946834206581, -0.0312948003411293, 0.00726642832159996, 0.0896093025803566, 0.5135821104049683, 0.3128055930137634, 0.18304358422756195, 0.14101451635360718, -0.3661118149757385, -0.1130836233496666, -0.07284223288297653, -0.06588825583457947, 0.11290575563907623, 0.08299164474010468, -0.11388003081083298, 0.25305360555648804, 0.3841429054737091, -0.25832900404930115, -0.07911764085292816, -0.16746288537979126, -0.4483186602592468, 0.023632805794477463, -0.07631072402000427, -0.21187683939933777, -0.1876412183046341, 0.34033527970314026, -0.15858909487724304, -0.38451656699180603, -0.11215801537036896, 0.40939444303512573, 0.01018916442990303, 0.3094688653945923, -0.0001077691704267636, -0.014944855123758316, 0.33733534812927246, 0.08835848420858383, -0.0416840985417366, 0.11045613884925842, 0.009012497961521149, 0.2699039876461029, 0.1225728690624237, -0.048800673335790634, -0.08918033540248871, -0.02239830419421196, 0.007478771731257439, -0.5823139548301697, 0.4901542663574219, 0.3339172899723053, 0.22147785127162933, 0.032672218978405, 0.031867992132902145, 0.42279863357543945, -0.0045543089509010315, 0.18202173709869385, -0.0754803717136383, -0.026012640446424484, 0.24634024500846863, 0.17264461517333984, 0.022791117429733276, 0.18110544979572296, -0.18137866258621216, -0.3121994733810425, -0.21226772665977478, -0.044444579631090164, -0.2794734239578247, -0.5161713361740112, 0.05404331535100937, 0.3330698013305664, 0.8484163880348206, -0.2515864074230194, -0.15805071592330933, 0.13458406925201416, -0.0014432014431804419, -0.2565355896949768, 0.14386454224586487, 0.1707630604505539, -0.19094806909561157, 0.2970326542854309, -0.18361902236938477, -0.1208740770816803, -0.24032099545001984, 0.06997019797563553, -0.003045700490474701, 0.18602725863456726, -0.027088377624750137, 0.0225614495575428, -0.09655390679836273, 0.059418968856334686, 0.16948218643665314, 0.07114161550998688, 0.1464897096157074, 0.4783702492713928, -0.03567012771964073, -0.3128485679626465, 0.05479595810174942, -0.19099834561347961, 0.21795877814292908, 0.023352567106485367, 0.3745630383491516, 0.2575896978378296, -0.2488403022289276, 0.09772581607103348, 0.35381901264190674, -0.1773356795310974, 0.23617589473724365, 0.18809984624385834, 0.4013477563858032, 0.02161983586847782, 0.28001803159713745, -0.1277002990245819, -0.2750683128833771, -0.09223887324333191, 0.2952772378921509, -0.06668532639741898, 0.40099644660949707, -0.369546115398407, -0.2854979932308197, 0.3671603202819824, -0.20043021440505981, -0.1747930347919464, 0.1230395957827568, 0.3566015660762787, -0.04360359534621239, 0.27413997054100037, 0.14903338253498077, 0.04778249189257622, -0.12194787710905075, -0.11665505915880203, -0.03332258760929108, -0.028018496930599213, -0.051775973290205, 0.03852833807468414, 0.3771165609359741, -0.38709959387779236, 0.020996134728193283, -0.03294632211327553, 0.3992769122123718, -0.039910271763801575, 0.03242316097021103, 0.12387301027774811, -0.05625062435865402, 0.03166046738624573, 0.05947035923600197, 0.1112091913819313, 0.03241659328341484, -0.13400664925575256, -0.13224318623542786, 0.0777992233633995, -0.09022092074155807, -0.30138087272644043, -0.018453339114785194, 0.24696029722690582, 0.030368227511644363, -0.09388808906078339, 0.4326627254486084, 0.014485875144600868, -0.08820325881242752, -0.46696582436561584, 0.06757291406393051, 0.11977501213550568, 0.043050367385149, -0.0529470220208168, 0.29905831813812256, 0.5209904313087463, -0.23877465724945068, 0.11240483820438385, -0.4149886965751648, -0.1364421248435974, -0.0869063213467598, 0.1301269829273224, -0.13720835745334625, -0.3126541078090668, -0.17896440625190735, 0.20813073217868805, 0.6094934344291687, -0.5083194375038147, -0.32201263308525085, 0.28900066018104553, -0.004562020301818848, -0.006899302825331688, 0.08761278539896011, -0.20116089284420013, 0.2201860547065735, -0.1728169322013855, 0.06736385077238083, 0.1654645949602127, 0.0841132253408432, 0.04091832786798477, -0.1739964336156845, -0.1423354297876358, -0.09609602391719818, 0.1687212735414505, -0.013775799423456192, 0.05547274276614189, 0.34151723980903625, -0.1178494468331337, 0.7056350111961365, 0.23581697046756744, 0.08556980639696121, -0.1290058195590973, 0.4168648421764374, -0.29074954986572266, -0.06119580939412117, -0.03966299444437027, 0.16008371114730835, 0.01370144635438919, 0.16557298600673676, -0.061223313212394714, 0.17938557267189026, -0.3366987705230713, -0.2180536985397339, -0.003562590107321739, -0.29337355494499207, -0.00478733703494072, 0.20744287967681885, 0.0980050340294838, -0.06023494154214859, -0.06749767065048218, -0.23497863113880157, -0.03672734647989273, 0.27924641966819763, 0.01343695167452097, 0.33342206478118896, 0.3582625091075897, -0.2611910402774811, 0.18703900277614594, 0.19419601559638977, 0.1303377002477646, 0.1483279913663864, 0.10829856991767883, 0.02398143894970417, 0.16981953382492065, -0.08487312495708466, 0.2542249262332916, -0.0730854868888855, 0.22634971141815186, 0.08107517659664154, -0.4664197266101837, 0.6547855734825134, 0.2611543834209442, 0.1863565593957901, -0.033268969506025314, 0.024234864860773087, 0.2530590295791626, 0.23755395412445068, -0.0784081444144249, 0.13655953109264374, 0.21656528115272522, -0.04789423197507858, 0.015958119183778763, -0.11741802841424942, -0.04805285483598709, -0.14450405538082123, -0.008855817839503288, 0.5395217537879944, -0.16835039854049683, -0.7596912980079651, 0.20679143071174622, 0.6599922776222229, -0.08889935910701752, -0.012148484587669373, -0.1223641112446785, -0.3406324088573456, -0.17060670256614685, 0.28707629442214966, -0.33516812324523926, 0.16255179047584534, 0.21171429753303528, 0.05941927805542946, 0.43094730377197266, 0.11423493176698685, -0.04442136734724045, 0.16069163382053375, 0.0746476948261261, 0.012297212146222591, 0.037645190954208374, -0.18060562014579773, 0.18867269158363342, -0.4485466778278351, -0.40691903233528137, -0.06567215174436569, -0.1303536295890808, -0.39736780524253845, -0.03519125655293465, 0.050775013864040375, 0.15110209584236145, 0.008628377690911293, -0.03144433721899986, -0.12137454748153687, -0.3216540515422821, 0.22907677292823792, 0.24624042212963104, -0.10587279498577118, 0.05011484771966934, -0.4813445508480072, 0.22583778202533722, 0.15828417241573334, 0.13497479259967804, -0.3481025695800781, 0.34417444467544556, -0.12291847914457321, 0.21954667568206787, 0.10473158210515976, -0.1308387666940689, 0.026721343398094177, -0.08742856979370117, 0.23743145167827606, -0.18292325735092163, -0.2527354657649994, 0.21102818846702576, 0.059672772884368896, -0.07759753614664078, -0.13164874911308289, -0.024850882589817047, -0.04495960846543312, -0.12257939577102661, -0.08195509016513824, -0.27814409136772156, -0.1165945753455162, 0.10516299307346344, 0.08990217745304108, -0.1584601253271103, -0.05859699845314026, -0.3697598874568939, -0.3849274814128876, -0.4459853768348694, 0.0305500328540802, 0.15767961740493774, 0.2975451350212097, 0.08161381632089615, -0.09805072098970413, 0.029400955885648727, -0.20797312259674072, 0.22348670661449432, -0.1998809427022934, -0.35346513986587524, 0.41132989525794983, -0.3731788694858551, -0.41607943177223206, 0.26140427589416504, 0.022091738879680634, 0.37373125553131104, -0.10125134140253067, -0.3167951703071594, 0.23904408514499664, 0.014784025959670544, 0.07113586366176605, 0.04810681939125061, 0.02437479980289936, 0.36568042635917664, 0.29919150471687317, -0.08357681334018707, -0.0022198185324668884, -0.06051507964730263, -0.3272254765033722, 0.1648552417755127, -0.025671474635601044, -0.12294024974107742, 0.19862186908721924, -0.06295031309127808, 0.9406851530075073, 0.14129026234149933, 0.24130752682685852, 0.1661655306816101, -0.11294504255056381, 0.44088393449783325, 0.025280091911554337, -0.19877757132053375, 0.4699341058731079, 0.18654713034629822, -0.12882450222969055, 0.4405256509780884, 0.02470022439956665, -0.2633964717388153, -0.34096190333366394, -0.13620157539844513, -0.296616792678833, -0.265968918800354, -0.06191533803939819, -0.43466717004776, 0.029546290636062622, 0.0995635837316513, 0.35914164781570435, 0.011984214186668396, -0.20202568173408508, -0.12834379076957703, 0.3541398048400879, 0.16091160476207733, 0.08100391924381256, 0.11115643382072449, 0.02774924971163273, -0.3556647002696991, 0.20817244052886963, -0.22973057627677917, 0.3030141592025757, -0.10969800502061844, -0.05946287512779236, 0.12036952376365662, 0.06019512191414833, -0.12858839333057404, -0.11768908053636551, -0.16576668620109558, 0.18025422096252441, 0.28660354018211365, -0.13994094729423523, 0.05797367915511131, -0.26530420780181885, 0.07122242450714111, -0.23974667489528656, -0.38574883341789246, -0.12884551286697388, -0.05077223479747772, 0.14386188983917236, -0.11388256400823593, -0.14884546399116516, -0.18958498537540436, -0.008615724742412567, 0.04268157482147217, -0.4773963391780853, 0.01983456313610077, 0.0522461012005806, -0.19222542643547058, -0.5973082184791565, -0.0919969230890274, 0.2543792426586151, -0.04558996111154556, 0.4504948854446411, 0.15684111416339874, -0.110506072640419, -0.08487938344478607, 0.11989752948284149, 0.38770294189453125, 0.23724031448364258, 0.0012187603861093521, 0.56031733751297, 0.525238573551178, -0.055503904819488525, 0.00819401815533638, -0.06961625814437866, 0.4374222159385681, 0.3630533814430237, -0.08638111501932144, -0.18987423181533813, 0.35631635785102844, 0.11483992636203766, 0.03545389324426651, -0.05718519166111946, 0.20538291335105896, 0.13327711820602417, -0.5102411508560181, -0.47196313738822937, 0.13005629181861877, -0.14683091640472412, -0.14052511751651764, 0.09504711627960205, 0.05321216210722923, -0.006868022494018078, 0.10869105905294418, -0.2462565302848816, 0.9131189584732056, 0.26516783237457275, 0.06723988056182861, 0.21600642800331116, -0.08241870254278183, -0.2942000925540924, -0.18587271869182587, -0.072355255484581, -0.12521424889564514, -0.08634234219789505, -0.16637063026428223, -0.07751291990280151, 0.25811195373535156, 0.3468587398529053, -0.4222998023033142, 0.21741695702075958, -0.167036235332489, -0.3780084252357483, 0.08188529312610626, 0.5075445175170898, -0.3774171471595764, -0.053271885961294174, 0.03765426203608513, 0.17736509442329407, -0.010240614414215088, 0.3465305268764496, 0.060443609952926636, -0.2979426383972168, 0.04315263405442238, -0.498895525932312, -0.1124478280544281, 0.3461305499076843, -0.22615839540958405, -0.23495329916477203, -0.07160483300685883, 0.008976258337497711, 0.7227210998535156, -0.12102438509464264, -0.03470958024263382, 0.4353790283203125, -0.27516552805900574, 0.13879041373729706, 0.20093286037445068, -0.006544260773807764, 0.11389108747243881, 0.0689811259508133, 0.4310761094093323, -0.15826758742332458, -0.491852730512619, 0.4087384343147278, -0.11483760178089142, -0.2145387828350067, -0.19909238815307617, -0.05992555618286133, 0.4934108257293701, -0.2784358263015747, 0.28897687792778015, 0.12072370946407318, -0.31789565086364746, -0.05649862810969353, 0.19997304677963257, 0.34051746129989624, -0.047588422894477844, 0.07472895085811615, 0.17489363253116608, 0.34643885493278503, -0.1109565943479538, 0.15391582250595093, 0.04427460953593254, -0.135470911860466, 0.32642215490341187, 0.0028593428432941437, -0.15487127006053925, -0.37558236718177795, -0.24631652235984802, 0.26214277744293213, -0.08106059581041336, -0.39318662881851196, -0.05230379104614258, 0.037722036242485046, -0.04061736539006233, -0.03965764120221138, -0.23261062800884247, 0.06881552189588547, -0.22406253218650818, -0.3288521468639374, -0.5000999569892883, 0.10146258026361465, 0.028823137283325195, 0.04504381865262985, -0.1280132234096527, 0.18942791223526, 0.15847808122634888, -0.01292046345770359, -0.42164042592048645, -0.19714400172233582, 0.1710054576396942, -0.1223280280828476, 0.06818071007728577, -0.06904715299606323, 0.041602540761232376, -0.11313220858573914, 0.27379363775253296, -0.20371757447719574, -0.2238387167453766, -0.18870466947555542, 0.12299908697605133, 0.17289428412914276, 0.31371745467185974, -0.34574416279792786, 0.12298626452684402, 0.0745067149400711, -0.493786484003067, -0.03014056757092476, 0.00855250097811222, 0.04174329340457916, 0.0282939150929451, 0.016085326671600342, -0.008820291608572006, -0.17687806487083435, -0.14353227615356445, -0.03896030783653259, -0.14424709975719452, 0.31163501739501953, -0.17143458127975464, 0.23803116381168365, -0.1194719597697258, -0.25403034687042236, 0.18344765901565552, 0.20530369877815247, 0.19312232732772827, 0.19069772958755493, 0.473263144493103, -0.17932869493961334, 0.1348806619644165, -0.04726673662662506, 0.3454931974411011, 0.1774001121520996, -0.1461559534072876, 0.06566494703292847, 0.25757133960723877, 0.25447046756744385, -0.35541293025016785, 0.12404295802116394, -0.3695871829986572, -0.03132378309965134, 0.13636861741542816, 0.014082767069339752, -0.00017011165618896484, -0.2253754436969757, 0.04722900688648224, 0.04835515469312668, 0.12297969311475754, -0.02777576819062233, 0.17862600088119507, 0.09587600082159042, -0.4754774570465088, 0.12791335582733154, 0.3168296217918396, 0.11087511479854584, -0.04195929318666458, 0.2275877147912979, -0.4889584183692932, -0.06474913656711578, 0.29106956720352173, -0.006310280412435532, 0.15382298827171326, -0.0786970853805542, 0.20110563933849335, 0.05205322802066803, -0.21485552191734314, 0.1460283249616623, 0.06497830152511597, 0.008532427251338959, -0.07127837836742401, 0.23243112862110138, -0.25854331254959106, 0.1003742665052414, -0.08996386080980301, 0.2958648204803467, 0.11860138177871704, -0.16086339950561523, -0.0787302628159523, -0.17199663817882538, 0.17139869928359985, -0.2217852920293808, 0.0742170438170433, -0.07945694029331207, -0.2607748508453369, -0.09532705694437027, 0.11574126780033112, 0.21030732989311218, 0.2560734152793884, -0.18260350823402405, 0.10211490839719772, -0.0719265341758728, -0.09589844942092896, 0.39264535903930664, 0.46777448058128357, 0.25333327054977417, 0.012971313670277596, 0.1613483428955078, 0.1980666220188141, 0.23571689426898956, -0.3232455253601074, 0.1533447951078415, -0.001272100955247879, 0.3853885531425476, 0.14411324262619019, 0.05373697355389595, 0.15774987637996674, -0.156594380736351, -0.2507535517215729, -0.03104565665125847, 0.17554178833961487, -0.2418476939201355, 0.11741723120212555, -0.21042031049728394, -0.38667821884155273, -0.2679508328437805, -0.19256067276000977, -0.42203012108802795, -0.1732826828956604, 0.34536683559417725, 0.03778597712516785, 0.0997595265507698, -0.6880344748497009, 0.08240270614624023, 0.23429538309574127, -0.09873656928539276, 0.3338075280189514, 0.13360710442066193, 0.11490581184625626, 0.0025495514273643494, -0.5739601850509644, 0.23661118745803833, 0.29474911093711853, -0.1403718888759613, -0.12610788643360138, -0.13314154744148254, 0.23909816145896912, 0.12290254980325699, 0.34568852186203003, 0.05618319660425186, -0.21791905164718628, -0.10259029269218445, -0.1292087733745575, -0.09432949125766754, 0.19061636924743652, 0.35948339104652405, -0.108958400785923, -0.3539530634880066, 0.37794673442840576, -0.3124948740005493, 0.14043959975242615, -0.13040663301944733, 0.28822821378707886, -0.26083868741989136, -0.176980122923851, 0.3078222870826721, 0.1332693248987198, 0.274427592754364, -0.2819115221500397, 0.035083211958408356, -0.12816056609153748, 0.08381572365760803, -0.25823816657066345, -0.09469788521528244, -0.09093531966209412, 0.27668309211730957, 0.25718027353286743, -0.30409666895866394, -0.044009704142808914, -0.17751872539520264, -0.17522898316383362, -0.13503986597061157, -0.15361548960208893, 0.2034774273633957, -0.25348830223083496, 0.33983346819877625, 0.0868167132139206, -0.01859264075756073, -0.06857834756374359, -0.4231356084346771, -0.2025672346353531, -0.3627283275127411, 0.44845813512802124, -0.158455953001976, -0.09923131763935089, -0.29167670011520386, 0.41691312193870544, -0.20737552642822266, -0.052829109132289886, -0.14767086505889893, 0.1765178143978119, 0.17770810425281525, -0.26367172598838806, 0.028391636908054352, 0.010650294832885265, -0.25217750668525696, -0.12530924379825592, -0.09869019687175751, 0.46925315260887146, 0.07788679003715515, -0.026019658893346786, -0.09834897518157959, -0.17885693907737732 ]
https://github.com/huggingface/datasets/issues/4230
Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data?
Thanks for reporting @beyondguo. Indeed, we generate this dataset from this raw data file URL: https://data.deepai.org/conll2003.zip And that URL only contains the English version.
![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png) But on huggingface datasets: ![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png) Where is the German data?
24
Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data? ![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png) But on huggingface datasets: ![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png) Where is the German data? Thanks for reporting @beyondguo. Indeed, we generate this dataset from this raw data file URL: https://data.deepai.org/conll2003.zip And that URL only contains the English version.
[ 0.24144987761974335, -0.21468499302864075, -0.07593567669391632, 0.4355059266090393, -0.14480313658714294, 0.10056417435407639, 0.2667836844921112, -0.042692918330430984, -0.43059369921684265, 0.2462078183889389, -0.27562370896339417, -0.19682879745960236, 0.35004135966300964, 0.39123818278312683, 0.17142055928707123, 0.0027182549238204956, 0.23243793845176697, 0.10600099712610245, -0.32687556743621826, -0.5004323124885559, -0.2944856584072113, 0.4673646092414856, -0.19817623496055603, -0.20016302168369293, -0.36800986528396606, 0.41874122619628906, -0.12163161486387253, 0.2347957193851471, -0.2254830151796341, -0.17048199474811554, 0.6192386150360107, -0.2008141279220581, 0.1827615201473236, 0.13203847408294678, -0.00012442983279470354, -0.04319189488887787, 0.18874837458133698, -0.40273213386535645, -0.10042725503444672, -0.09657071530818939, -0.28571179509162903, -0.038666270673274994, -0.012443309649825096, -0.1294165998697281, -0.17345592379570007, 0.14179103076457977, -0.08489438891410828, -0.009416244924068451, 0.1509372889995575, 0.11546260863542557, 0.09122751653194427, 0.24892738461494446, -0.17983829975128174, -0.11566709727048874, 0.16297516226768494, 0.1455686092376709, -0.22775468230247498, 0.0652017667889595, 0.13863104581832886, 0.17281438410282135, -0.040552787482738495, 0.33918672800064087, 0.3055769205093384, -0.11061665415763855, -0.03238913416862488, 0.18890716135501862, -0.22193044424057007, -0.39899709820747375, 0.35875263810157776, 0.4485551118850708, 0.32630568742752075, 0.08091709017753601, -0.27816087007522583, -0.047169383615255356, -0.2675575613975525, -0.2628045380115509, 0.16304805874824524, 0.3029276430606842, -0.2529270648956299, 0.3830704092979431, -0.2287587672472, -0.40613558888435364, -0.21734601259231567, 0.29173433780670166, -0.40481680631637573, 0.6394381523132324, -0.22027824819087982, 0.0552227720618248, 0.14750073850154877, 0.2830437421798706, -0.005074482411146164, -0.037838347256183624, -0.019237827509641647, 0.049320343881845474, -0.0131022147834301, -0.1948649138212204, -0.10804922133684158, 0.18186846375465393, 0.37639281153678894, 0.02529241144657135, -0.3777886927127838, -0.029959000647068024, -0.210672065615654, -0.016774095594882965, 0.30395379662513733, 0.13694186508655548, 0.48081541061401367, -0.13133671879768372, 0.30817705392837524, -0.33376339077949524, 0.21036297082901, 0.01118035614490509, -0.05984854698181152, 0.1449842005968094, -0.4466399550437927, -0.16077372431755066, -0.20040753483772278, -0.448377400636673, -0.20664596557617188, -0.013175553642213345, -0.08855889737606049, -0.3481426239013672, 0.028246421366930008, 0.3956649899482727, 0.05763907730579376, 0.13882160186767578, -0.20541705191135406, 0.34128814935684204, -0.09472282975912094, -0.4829426407814026, -0.1524227112531662, -0.053916092962026596, -0.2620357573032379, -0.15586957335472107, 0.10168395936489105, -0.492445170879364, 0.5358726382255554, 0.016169000416994095, -0.013992160558700562, 0.1501947045326233, -0.055773019790649414, -0.03780646249651909, 0.3949028253555298, 0.0976620763540268, 0.043831031769514084, 0.14958986639976501, 0.19988401234149933, -0.16448691487312317, -0.3313598930835724, -0.08977528661489487, -0.27161654829978943, 0.08920751512050629, -0.3054085373878479, -0.044489361345767975, -0.39215660095214844, -0.22072377800941467, 0.2979901134967804, 0.31367987394332886, -0.11906983703374863, 0.02865024283528328, 0.17690396308898926, 0.2189454734325409, -0.5851139426231384, -0.05632408708333969, 0.3412001132965088, 0.3562869429588318, -0.333041250705719, -0.32049140334129333, 0.14528775215148926, -0.2688239812850952, 0.18523754179477692, 0.33009257912635803, -0.18101318180561066, -0.334739625453949, -0.39374953508377075, -0.01428251713514328, 0.03641337901353836, -0.1700618416070938, -0.3615095913410187, 0.08822028338909149, 0.13854268193244934, 0.009234806522727013, 0.17269307374954224, -0.07643508166074753, 0.0038475939072668552, 0.026500048115849495, 0.034941744059324265, 0.1008361354470253, 0.26960110664367676, -0.32949063181877136, 0.1592724770307541, -0.07288466393947601, 0.3741583824157715, 0.007048390805721283, -0.053971145302057266, 0.20611290633678436, 0.22692063450813293, -0.15187464654445648, 0.32419881224632263, -0.044757600873708725, 0.2142711579799652, 0.6843752264976501, 0.06374447047710419, 0.1345207244157791, 0.1597547084093094, 0.1975458860397339, -0.3915107250213623, 0.1062672808766365, 0.017987005412578583, 0.35557353496551514, 0.17966532707214355, 0.05971112102270126, -0.19159802794456482, -0.03019671142101288, -0.08573968708515167, -0.476882666349411, -0.02160998061299324, 0.3559822738170624, 0.2571645975112915, 0.23659338057041168, -0.08266470581293106, 0.4155927896499634, 0.1874205768108368, -0.07399331033229828, -0.31102606654167175, 0.34600546956062317, 0.07127164304256439, -0.02371438592672348, -0.005292590707540512, 0.3740166425704956, -0.07919777184724808, -0.20861931145191193, 0.0319698303937912, -0.022006146609783173, 0.27258870005607605, 0.05907150357961655, 0.4058440625667572, 0.16630783677101135, 0.21622143685817719, -0.23509103059768677, 0.02774137258529663, -0.07813610136508942, -0.03977442905306816, 0.10572231560945511, -0.17125335335731506, 0.3825591206550598, 0.4478969871997833, 0.1401924341917038, 0.0028890371322631836, 0.18967367708683014, 0.1301364302635193, -0.21688930690288544, -0.22511906921863556, -0.5397644639015198, 0.2774814963340759, 0.036333318799734116, 0.5227507948875427, 0.43018072843551636, -0.5926786661148071, 0.02967929095029831, 0.5521551966667175, -0.043583944439888, 0.07544876635074615, 0.24704840779304504, -0.34652912616729736, -0.05661626160144806, 0.34289950132369995, 0.4278428554534912, 0.21364791691303253, 0.24164125323295593, 0.38743841648101807, -0.00138959102332592, 0.18164759874343872, -0.10515948385000229, 0.22333884239196777, -0.05916573107242584, 0.21791166067123413, -0.27142372727394104, -0.028415309265255928, -0.1556793600320816, -0.45854151248931885, 0.2880944311618805, -0.13532665371894836, -0.1421409547328949, 0.0179758258163929, 0.04593672603368759, -0.5468418002128601, -0.3406945765018463, -0.1912168562412262, -0.1707807332277298, -0.5103981494903564, -0.1060405969619751, -0.09603956341743469, -0.36033669114112854, 0.07811197638511658, -0.1528124362230301, -0.21912014484405518, 0.13641411066055298, -0.24273617565631866, 0.07583430409431458, -0.3484950661659241, -0.2389979213476181, -0.3735847473144531, 0.004747118800878525, -0.14441242814064026, -0.1797240972518921, 0.0867680087685585, -0.5850489735603333, 0.09871596097946167, 0.02217221073806286, -0.5976375937461853, 0.4357545077800751, -0.21531535685062408, -0.021097535267472267, 0.051574576646089554, 0.19856050610542297, -0.4772595167160034, 0.12718510627746582, 0.25250160694122314, 0.11982588469982147, -0.2962411940097809, 0.17824535071849823, -0.09167098253965378, 0.0500916987657547, -0.09383411705493927, -0.31131651997566223, -0.31677892804145813, 0.03574127331376076, 0.21752265095710754, -0.19536718726158142, 0.030495019629597664, 0.28612422943115234, -0.1172478124499321, -0.08074841648340225, -0.5388545989990234, 0.21681828796863556, -0.39149853587150574, -0.5263748168945312, 0.39227432012557983, -0.16930489242076874, -0.4166645407676697, 0.0495050884783268, 0.008124899119138718, 0.18955659866333008, -0.2073764055967331, -0.5317873954772949, -0.13065193593502045, -0.2865447402000427, 0.27825722098350525, 0.01931917481124401, 0.1769452542066574, 0.3017413020133972, -0.21883738040924072, 0.12268558144569397, -0.35192587971687317, -0.3075494170188904, 0.16832688450813293, 0.029689971357584, 0.28887853026390076, -0.1713963747024536, -0.0649806559085846, 0.21208834648132324, 0.1687799096107483, 0.31223157048225403, 0.16556912660598755, 0.5164263248443604, 0.08613739162683487, 0.5721986889839172, -0.0561019703745842, -0.16756349802017212, 0.23285774886608124, 0.04544821381568909, 0.275984525680542, 0.3605479598045349, 0.3260761499404907, -0.17989832162857056, -0.3666696846485138, -0.09480252861976624, -0.12116260081529617, -0.05029250681400299, -0.1290368139743805, 0.32117095589637756, 0.30421578884124756, 0.04891073331236839, 0.12568560242652893, 0.041846100240945816, -0.029841307550668716, -0.0918906182050705, 0.10837651789188385, 0.14255177974700928, 0.22323791682720184, -0.37786298990249634, -0.1585344523191452, -0.5128074884414673, 0.06508174538612366, -0.0712118148803711, 0.4186737537384033, -0.3154890239238739, 0.04048945754766464, 0.15992707014083862, 0.20819415152072906, 0.7154910564422607, -0.028606625273823738, -0.0840279757976532, -0.3526952564716339, -0.39448511600494385, -0.5329491496086121, 0.27266860008239746, -0.09340956807136536, -0.3343231976032257, 0.6760180592536926, 0.391998291015625, -0.1717742681503296, -0.39238670468330383, 0.07520593702793121, 0.32908788323402405, -0.11758531630039215, 0.0052277641370892525, -0.18304476141929626, -0.18078622221946716, -0.0784938633441925, -0.17902368307113647, 0.07344528287649155, -0.11452925205230713, 0.1895408183336258, 0.07906535267829895, 0.30956268310546875, 0.12643688917160034, -0.029251545667648315, 0.2259480059146881, 0.1681940257549286, 0.15911775827407837, -0.18382930755615234, 0.3532273769378662, 0.4081450402736664, -0.004628734663128853, 0.6427862644195557, -0.06574638187885284, -0.564692497253418, 0.2813384532928467, 0.048801738768815994, 0.5235328674316406, 0.2629850506782532, 0.178685262799263, -0.07553520053625107, 0.16924025118350983, -0.15278573334217072, -0.3237447738647461, 0.01660720817744732, 0.2501063346862793, 0.22899028658866882, -0.21240967512130737, -0.27959170937538147, 0.34371355175971985, -0.11016589403152466, 0.04114241898059845, -0.231163889169693, 0.2702556550502777, -0.10892874002456665, 0.17040959000587463, 0.0717850849032402, 0.9822688102722168, 0.3592430353164673, 0.4137246310710907, 0.167621910572052, -0.3200663924217224, 0.2768554389476776, 0.2287268489599228, -0.23991839587688446, -0.040567733347415924, -0.1467861831188202, -0.1945357471704483, -0.13265396654605865, -0.1493048071861267, 0.02942868135869503, -0.060396499931812286, 0.1703498661518097, 0.1004955917596817, -0.27084285020828247, 0.22318556904792786, 0.13618309795856476, -0.17846174538135529, -0.1027759313583374, 0.06511487066745758, -0.004620395600795746, 0.2262522280216217, 0.6015140414237976, 0.09352963417768478, -0.14901183545589447, -0.44031888246536255, -0.24002580344676971, -0.31393682956695557, 0.12323658913373947, -0.3020654022693634, 0.05481090769171715, 0.30301427841186523, -0.5119556784629822, 0.036422308534383774, 0.5810346007347107, 0.5008725523948669, 0.03799629211425781, -0.24482658505439758, 0.1614508479833603, 0.162271186709404, 0.10033942759037018, 0.289227694272995, -0.04998002573847771, -0.08319802582263947, -0.11678528040647507, -0.3589690923690796, -0.084054134786129, -0.05090014263987541, -0.05270921438932419, -0.1938779503107071, 0.25683850049972534, -0.48363685607910156, 0.04094505310058594, -0.14734993875026703, 0.22391419112682343, 0.13392646610736847, -0.2281848043203354, 0.005035003647208214, 0.3077241778373718, 0.020156972110271454, -0.195879727602005, 0.025100847706198692, -0.4604482650756836, -0.25157594680786133, 0.28941044211387634, 0.06029200553894043, 0.1359948068857193, 0.299551397562027, 0.19141076505184174, -0.1438351273536682, -0.1092883050441742, 0.21571239829063416, 0.10827435553073883, -0.3828814923763275, -0.21814045310020447, 0.08650551736354828, 0.009259805083274841, -0.4121280014514923, 0.1652795821428299, -0.020504280924797058, -0.2953587770462036, -0.18803377449512482, -0.2906225621700287, -0.03505844622850418, 0.2623249888420105, -0.19639477133750916, 0.14159078896045685, 0.14205294847488403, 0.0746646523475647, -0.048077136278152466, -0.07378184795379639, -0.188713937997818, -0.04194841533899307, -0.020390350371599197, -0.0977032482624054, 0.1611533910036087, -0.04709716886281967, 0.18316979706287384, -0.11514748632907867, -0.015492932870984077, -0.19834719598293304, -0.12618781626224518, -0.08864924311637878, -0.18231213092803955, 0.10367051512002945, 0.09176450967788696, -0.15074552595615387, 0.007710275240242481, 0.11610186100006104, -0.05121128633618355, -0.1277991086244583, 0.1301218569278717, 0.2982526123523712, 0.1745990514755249, 0.47420841455459595, -0.3560165464878082, -0.08294735103845596, 0.18170370161533356, 0.1708880364894867, 0.18552207946777344, 0.2539544701576233, 0.09836439043283463, 0.34346869587898254, -0.03528391569852829, 0.06683458387851715, 0.19947734475135803, 0.08630143105983734, -0.29798370599746704, -0.12646859884262085, -0.029095955193042755, -0.018272802233695984, 0.2794283926486969, 0.16380976140499115, 0.01916453242301941, -0.014203429222106934, -0.12345681339502335, 0.11483313143253326, 0.35374191403388977, 0.09882978349924088, -0.2069835662841797, -0.15395228564739227, 0.09887053072452545, 0.2208566665649414, 0.07649262249469757, 0.1785639226436615, 0.27052995562553406, 0.1345769315958023, 0.4922560453414917, -0.3178778290748596, 0.14598697423934937, 0.34453481435775757, 0.29766538739204407, 0.20853008329868317, 0.09039430320262909, 0.29398205876350403, 0.09494692087173462, 0.24434125423431396, 0.06011006236076355, -0.003315608948469162, 0.5129234194755554, 0.012465150095522404, -0.07370424270629883, 0.2005208432674408, 0.20558230578899384, -0.18908436596393585, 0.09554256498813629, 0.11068654805421829, -0.05080704391002655, 0.09495490044355392, -0.04925394058227539, 0.5712524056434631, -0.11774662882089615, -0.01558498665690422, -0.33363381028175354, 0.299469530582428, -0.08543656021356583, -0.18079087138175964, -0.019713757559657097, -0.1353517323732376, 0.039610110223293304, 0.28019019961357117, -0.051477495580911636, -0.3864883780479431, -0.0389176607131958, 0.16177044808864594, -0.12728191912174225, -0.17797403037548065, -0.18125781416893005, 0.12092554569244385, -0.31052660942077637, 0.016153041273355484, 0.4337158799171448, 0.1446591317653656, -0.13020819425582886, 0.029559455811977386, 0.3841899633407593, 0.16900290548801422, -0.17249642312526703, 0.4721442759037018, -0.1771738976240158, 0.13013990223407745, -0.14037491381168365, -0.2451564073562622, 0.13281871378421783, 0.31898313760757446, -0.006012704223394394, 0.3414824306964874, 0.061637669801712036, 0.03896816819906235, -0.16225658357143402, 0.1594574898481369, 0.07922720909118652, -0.10132110118865967, -0.1802801787853241, -0.41505882143974304, 0.15802234411239624, -0.08802767843008041, -0.04553499072790146, -0.5016362071037292, 0.24702125787734985, 0.14960730075836182, -0.14963363111019135, 0.01891481876373291, -0.13847364485263824, -0.00933458935469389, -0.17433442175388336, 0.1371355950832367, 0.345975399017334, 0.26390329003334045, -0.0024853600189089775, -0.6588703989982605, -0.21463969349861145, 0.21069857478141785, -0.02777085080742836, -0.07512009888887405, -0.07228496670722961, -0.025276273488998413, 0.3127170205116272, 0.1298641860485077, 0.05091508477926254, 0.2103089988231659, -0.15308310091495514, 0.16400647163391113, -0.17946270108222961, 0.06187722831964493, 0.2513291537761688, 0.4620857238769531, -0.17445507645606995, 0.08761809021234512, 0.33237218856811523, 0.16016212105751038, -0.06617690622806549, -0.1825338751077652, 0.2284645438194275, -0.20743221044540405, -0.1659841239452362, 0.2688732147216797, 0.32058948278427124, 0.39986151456832886, -0.36111876368522644, -0.1300552934408188, 0.09890379011631012, -0.2429351657629013, -0.07377712428569794, 0.06743691116571426, -0.22900834679603577, -0.012330680154263973, -0.33086684346199036, -0.35848215222358704, 0.11606450378894806, 0.5048750042915344, 0.11795946955680847, -0.05160104110836983, 0.13663692772388458, 0.10497482120990753, -0.11020441353321075, -0.2749272286891937, 0.35393229126930237, 0.360377699136734, 0.014096397906541824, -0.3449822664260864, 0.079215869307518, 0.09145666658878326, 0.19561876356601715, -0.21564961969852448, -0.07200589030981064, -0.11838735640048981, -0.13224832713603973, 0.19347459077835083, -0.12835820019245148, -0.20408284664154053, 0.10308351367712021, 0.11476724594831467, 0.24300715327262878, -0.1839430332183838, 0.23094624280929565, 0.058891620486974716, -0.26239246129989624, -0.06192439794540405, 0.7732938528060913, 0.393350750207901, -0.5757272243499756, 0.13685715198516846, -0.16970495879650116 ]
https://github.com/huggingface/datasets/issues/4230
Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data?
The German data requires payment The [original task page](https://www.clips.uantwerpen.be/conll2003/ner/) states "The German data is a collection of articles from the Frankfurter Rundschau. The named entities have been annotated by people of the University of Antwerp. Only the annotations are available here. In order to build these data sets you need access to the ECI Multilingual Text Corpus. It can be ordered from the Linguistic Data Consortium (2003 non-member price: US$ 35.00)." Inflation since 2003 has also affected LDC's prices, and today the dataset [LDC94T5](https://catalog.ldc.upenn.edu/LDC94T5) is available under license for $75 a copy. The [license](https://catalog.ldc.upenn.edu/license/eci-slash-mci-user-agreement.pdf) includes a non-distribution condition, which is probably why the data has not turned up openly. The ACL hold copyright of this data; I'll mail them and anyone I can find at ECI to see if they'll open this up now. After all, it worked with Microsoft 3DMM, why not here too, after 28 years? :)
![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png) But on huggingface datasets: ![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png) Where is the German data?
149
Why the `conll2003` dataset on huggingface only contains the `en` subset? Where is the German data? ![image](https://user-images.githubusercontent.com/37113676/165416606-96b5db18-b16c-4b6b-928c-de8620fd943e.png) But on huggingface datasets: ![image](https://user-images.githubusercontent.com/37113676/165416649-8fd77980-ca0d-43f0-935e-f398ba8323a4.png) Where is the German data? The German data requires payment The [original task page](https://www.clips.uantwerpen.be/conll2003/ner/) states "The German data is a collection of articles from the Frankfurter Rundschau. The named entities have been annotated by people of the University of Antwerp. Only the annotations are available here. In order to build these data sets you need access to the ECI Multilingual Text Corpus. It can be ordered from the Linguistic Data Consortium (2003 non-member price: US$ 35.00)." Inflation since 2003 has also affected LDC's prices, and today the dataset [LDC94T5](https://catalog.ldc.upenn.edu/LDC94T5) is available under license for $75 a copy. The [license](https://catalog.ldc.upenn.edu/license/eci-slash-mci-user-agreement.pdf) includes a non-distribution condition, which is probably why the data has not turned up openly. The ACL hold copyright of this data; I'll mail them and anyone I can find at ECI to see if they'll open this up now. After all, it worked with Microsoft 3DMM, why not here too, after 28 years? :)
[ 0.0485430471599102, -0.0925845056772232, -0.07864513248205185, 0.6424387097358704, -0.21835415065288544, -0.10422723740339279, 0.34152135252952576, -0.14001178741455078, -0.3688971698284149, 0.42214977741241455, -0.14252333343029022, -0.06155743822455406, 0.20482242107391357, 0.38016584515571594, -0.12534578144550323, 0.03745192289352417, 0.06443776190280914, 0.1357160210609436, -0.08203096687793732, -0.4467706084251404, -0.038037076592445374, 0.3060457408428192, -0.300930380821228, -0.15224911272525787, -0.4643297493457794, 0.1257234513759613, -0.34452590346336365, 0.09920687973499298, -0.3346819281578064, -0.06060187146067619, 0.49181216955184937, -0.0907144695520401, 0.20081749558448792, 0.11381840705871582, -0.00011657276627374813, -0.26905301213264465, 0.05716234818100929, -0.39163535833358765, -0.3271988332271576, 0.0133737251162529, -0.04449264705181122, -0.03089091368019581, -0.125137597322464, -0.2245061695575714, -0.25051209330558777, 0.3772413432598114, -0.16681692004203796, -0.0020911693572998047, 0.346823513507843, 0.20106036961078644, 0.09721345454454422, 0.2825446128845215, 0.0581037811934948, -0.07835181057453156, 0.1573754847049713, 0.18287254869937897, -0.19511252641677856, 0.18765147030353546, 0.25989779829978943, 0.11799733340740204, -0.05616941303014755, 0.35124337673187256, 0.19652818143367767, -0.08725407719612122, -0.0813889130949974, 0.015488917008042336, -0.13951125741004944, -0.3966403305530548, 0.29712557792663574, 0.35838326811790466, 0.4179031550884247, 0.03251122683286667, -0.2421380579471588, -0.16464900970458984, 0.00737224705517292, -0.12113214284181595, 0.15764665603637695, 0.09048287570476532, -0.26693442463874817, 0.2338889241218567, -0.12311498075723648, -0.286519855260849, -0.31021684408187866, 0.1959877908229828, -0.5527682304382324, 0.6092078685760498, -0.2818981409072876, -0.07660625129938126, 0.23746691644191742, 0.14232265949249268, 0.1138049066066742, 0.1898355931043625, 0.0287356898188591, -0.042674653232097626, 0.05261192098259926, -0.1756708025932312, -0.09892944246530533, 0.1999264657497406, -0.006115701049566269, 0.19632858037948608, -0.22227007150650024, -0.13190722465515137, -0.1359366923570633, 0.11551545560359955, 0.08441716432571411, 0.234656423330307, 0.21087807416915894, -0.13656722009181976, 0.16413360834121704, -0.1666909009218216, 0.22041058540344238, 0.005995798856019974, -0.2623942196369171, 0.3389369249343872, -0.6748100519180298, -0.027407411485910416, -0.16868093609809875, -0.4099075496196747, -0.4707545340061188, 0.1134575605392456, -0.12322388589382172, -0.1596873551607132, 0.06889592856168747, 0.4161234200000763, -0.06608130782842636, 0.08837553858757019, -0.11081425845623016, 0.1458410918712616, -0.1399315893650055, -0.30519139766693115, -0.02319183759391308, -0.1134854406118393, -0.27661028504371643, -0.08400287479162216, 0.33632951974868774, -0.13568904995918274, 0.3525732755661011, -0.09965106844902039, 0.12963417172431946, 0.22902929782867432, 0.049339987337589264, -0.07390925288200378, 0.39037373661994934, 0.15575990080833435, -0.1468614637851715, 0.10082966834306717, 0.06794454157352448, -0.28416907787323, -0.24109333753585815, -0.26872900128364563, -0.25118008255958557, 0.02865586057305336, -0.4021961987018585, 0.008750591427087784, -0.25116392970085144, -0.25265753269195557, 0.38802286982536316, 0.21265149116516113, -0.046258412301540375, -0.15126639604568481, 0.24995699524879456, 0.13066941499710083, -0.39705586433410645, -0.05727795511484146, 0.33333566784858704, 0.4836133122444153, -0.22953744232654572, -0.16579988598823547, -0.06697943061590195, -0.07523186504840851, 0.15294305980205536, 0.14552347362041473, -0.1650218963623047, -0.2936195433139801, -0.2465164214372635, -0.16359585523605347, -0.30095699429512024, -0.5855752825737, -0.6158128976821899, 0.0025723096914589405, 0.034238338470458984, -0.06942985951900482, 0.2617216110229492, -0.16972815990447998, 0.15210066735744476, -0.10777901113033295, -0.07026973366737366, -0.07103094458580017, 0.14663109183311462, -0.346170037984848, -0.014250930398702621, -0.15333709120750427, 0.3036693334579468, 0.01774805411696434, -0.10083022713661194, 0.029720712453126907, 0.19372406601905823, -0.0005175871774554253, 0.2553964853286743, -0.051797691732645035, 0.3018157184123993, 0.5378581285476685, 0.09887485951185226, 0.03393545001745224, 0.0680486261844635, 0.12376850098371506, -0.539896547794342, 0.01982654631137848, -0.07443859428167343, 0.6797518730163574, 0.12861070036888123, 0.029805481433868408, -0.17436093091964722, -0.0525045171380043, -0.06623499095439911, -0.5945837497711182, 0.03609080612659454, 0.41530755162239075, 0.2400936782360077, 0.22458802163600922, -0.09617447853088379, 0.33288437128067017, 0.20280194282531738, -0.21368823945522308, -0.366820365190506, 0.11421138048171997, -0.11279364675283432, 0.08238015323877335, 0.005220763385295868, 0.40455684065818787, -0.09398921579122543, 0.009044638834893703, -0.0006136056035757065, -0.10201793164014816, 0.09226338565349579, 0.02714158594608307, 0.2505106031894684, 0.23173806071281433, 0.17155231535434723, -0.3070947527885437, 0.16206315159797668, -0.14520002901554108, -0.0378543995320797, 0.04794187843799591, -0.17968592047691345, 0.38675254583358765, 0.3947075605392456, 0.0695125088095665, 0.048313647508621216, 0.20509342849254608, 0.049734801054000854, -0.1483665555715561, -0.19123713672161102, -0.4762893319129944, 0.1774059236049652, 0.07155802845954895, 0.656467080116272, 0.38885366916656494, -0.5223188996315002, 0.21934069693088531, 0.5109899640083313, 0.21658600866794586, 0.094634048640728, 0.09854471683502197, -0.3172222077846527, 0.08886566758155823, 0.5716661214828491, 0.5426118969917297, 0.08687293529510498, 0.22838178277015686, 0.36704960465431213, 0.0008467137813568115, 0.0468340702354908, -0.12782812118530273, 0.1622243970632553, -0.1582341492176056, 0.4037662446498871, -0.11122087389230728, 0.060558877885341644, 0.16912531852722168, -0.3433341979980469, 0.04166744276881218, -0.19084087014198303, -0.054278962314128876, -0.06397441774606705, 0.11267223209142685, -0.2787615954875946, -0.2852400541305542, -0.19203397631645203, -0.13196535408496857, -0.6122947335243225, 0.005650101229548454, 0.0071678850799798965, -0.23628497123718262, 0.07119734585285187, -0.08736235648393631, -0.12339088320732117, 0.40569397807121277, -0.44186604022979736, 0.28820741176605225, -0.5178714990615845, -0.30107101798057556, -0.532227635383606, 0.06760802865028381, -0.02241075038909912, 0.1190657690167427, 0.20496352016925812, -0.3209780156612396, 0.462416410446167, 0.027435585856437683, -0.5912191867828369, 0.35386979579925537, -0.21067076921463013, 0.0029205400496721268, -0.01777482032775879, -0.052879467606544495, -0.5970430970191956, -0.10100554674863815, -0.030266854912042618, 0.20032809674739838, -0.3188375234603882, 0.16884297132492065, -0.0620407797396183, -0.06928375363349915, -0.1354740858078003, -0.36841610074043274, -0.4477350413799286, -0.3087117671966553, 0.4222661256790161, -0.12956193089485168, 0.048465099185705185, 0.5153730511665344, -0.21097956597805023, 0.10257116705179214, -0.2155817151069641, 0.46633675694465637, -0.2832837700843811, -0.16242186725139618, 0.2639375627040863, -0.25862523913383484, -0.3768059313297272, -0.08227293193340302, 0.042504601180553436, 0.26006290316581726, -0.17825505137443542, -0.4785134196281433, -0.07741919904947281, -0.1375296711921692, 0.024579573422670364, 0.023255150765180588, 0.21475321054458618, 0.4132508337497711, 0.0479976087808609, 0.04555973410606384, -0.20417135953903198, -0.13098196685314178, 0.1346331685781479, -0.055310629308223724, 0.18554067611694336, -0.20761078596115112, -0.24990087747573853, 0.24211063981056213, 0.17108500003814697, 0.36485522985458374, 0.08911293745040894, 0.44004160165786743, 0.1710900366306305, 0.6227267384529114, -0.03409451246261597, -0.32028692960739136, 0.06726852804422379, 0.08494914323091507, 0.15810157358646393, 0.2993840277194977, 0.1299055814743042, -0.08732457458972931, -0.439279705286026, 0.03637256100773811, -0.05275041610002518, -0.0962718203663826, -0.213919997215271, -0.024393878877162933, 0.4194912016391754, 0.06352904438972473, 0.19271060824394226, 0.047466885298490524, -0.1705825924873352, 0.06173026189208031, -0.034174174070358276, 0.07429011166095734, 0.01279100775718689, -0.4331415295600891, 0.06542178988456726, -0.44960451126098633, 0.2162097543478012, -0.013088424690067768, 0.4109715521335602, -0.4865563213825226, 0.03137786686420441, 0.1973314881324768, 0.1633290797472, 0.5542346239089966, -0.19687381386756897, -0.27918970584869385, 0.018613822758197784, -0.015346817672252655, -0.3664367198944092, 0.41226926445961, -0.23518899083137512, -0.29068678617477417, 0.6158305406570435, 0.1807338446378708, -0.20410874485969543, -0.22432740032672882, 0.14629045128822327, 0.17633606493473053, -0.15933309495449066, 0.09707192331552505, -0.05384785309433937, -0.10985146462917328, -0.24985043704509735, -0.15349695086479187, -0.05473599582910538, -0.17075754702091217, 0.2249561995267868, 0.2782585918903351, 0.11072856932878494, 0.17079079151153564, 0.1823522448539734, 0.22475862503051758, 0.1259099245071411, 0.20979410409927368, -0.18287281692028046, 0.22727563977241516, 0.38359057903289795, 0.2406713217496872, 0.653322696685791, -0.2990764081478119, -0.3160768151283264, 0.4299785792827606, -0.15158379077911377, 0.48238056898117065, 0.49205636978149414, 0.23324906826019287, -0.17824479937553406, 0.37505000829696655, -0.1440514773130417, -0.3434394299983978, -0.039773907512426376, 0.0151763204485178, 0.10007758438587189, -0.19903312623500824, -0.052967920899391174, 0.08813740313053131, -0.15008369088172913, -0.11861996352672577, -0.3676706552505493, 0.3788069486618042, -0.07133962959051132, 0.15786175429821014, 0.13720519840717316, 1.1954761743545532, 0.30941563844680786, 0.24244089424610138, 0.19814768433570862, -0.2455468326807022, 0.3860384225845337, 0.18798574805259705, -0.23161160945892334, 0.06502896547317505, -0.017523515969514847, -0.171970397233963, -0.039146460592746735, -0.24025344848632812, 0.1184050589799881, -0.1259886473417282, 0.10673794150352478, 0.17888285219669342, -0.3463441729545593, 0.20957863330841064, 0.342395156621933, -0.273171991109848, -0.17987605929374695, 0.057630058377981186, 0.061657749116420746, 0.2898405194282532, 0.587202250957489, 0.05711333453655243, -0.2800081968307495, -0.5223423838615417, -0.13381972908973694, -0.4662575125694275, 0.0993485376238823, -0.312828928232193, 0.1221877858042717, 0.3143555521965027, -0.3159855008125305, 0.20854203402996063, 0.3418578505516052, 0.5399225354194641, 0.10893236100673676, -0.3882249593734741, 0.07606376707553864, 0.2329864799976349, -0.07110076397657394, 0.5342766046524048, -0.14235804975032806, 0.4579245448112488, -0.15533339977264404, -0.14418959617614746, 0.11679398268461227, 0.0037651704624295235, 0.019833751022815704, -0.12378089129924774, 0.31583327054977417, -0.3006698489189148, 0.13973654806613922, 0.11573727428913116, 0.22211262583732605, -0.01711922138929367, -0.18476784229278564, 0.07275715470314026, -0.03250071406364441, 0.06492466479539871, -0.1658940315246582, -0.05835681036114693, -0.3688039481639862, -0.17070691287517548, 0.3047013580799103, 0.1767968237400055, -0.09995449334383011, 0.26172780990600586, 0.34142979979515076, -0.12651261687278748, -0.22595521807670593, -0.013992637395858765, 0.008173434063792229, -0.7575925588607788, -0.20039135217666626, 0.08237572014331818, -0.2331736832857132, -0.18738144636154175, 0.33395740389823914, 0.1676136553287506, -0.34207823872566223, -0.2591919004917145, -0.1126491129398346, -0.22017061710357666, 0.24457301199436188, 0.03466649726033211, 0.19056691229343414, 0.1963455080986023, -0.04712436720728874, 0.0130282212048769, -0.03129856288433075, -0.2769298553466797, 0.091878741979599, -0.1852438747882843, -0.016423635184764862, 0.2696472406387329, -0.1331644058227539, 0.1927230805158615, -0.06266851723194122, -0.009646381251513958, -0.0601113960146904, -0.2764715254306793, -0.10728488117456436, -0.14363853633403778, 0.12308637797832489, 0.06831581145524979, -0.11752131581306458, -0.1773786097764969, 0.07243772596120834, -0.08390331268310547, -0.10628733038902283, -0.020548474043607712, 0.13845592737197876, 0.09826314449310303, 0.4256606698036194, -0.41384342312812805, 0.303203284740448, 0.3274412751197815, 0.25795507431030273, 0.2265464812517166, 0.3373810946941376, 0.13536062836647034, 0.35147494077682495, 0.009855025447905064, -0.01756497472524643, 0.054462090134620667, 0.20239302515983582, -0.26677995920181274, -0.30074888467788696, 0.006647113710641861, 0.12431462109088898, 0.18008951842784882, 0.12092114984989166, 0.03402618691325188, -0.0795677900314331, 0.004422956611961126, -0.0066045187413692474, 0.4935576915740967, 0.17332357168197632, -0.20243138074874878, 0.026886548846960068, -0.000621601939201355, -0.007009117864072323, 0.10087217390537262, 0.22907745838165283, 0.4249905049800873, -0.066487155854702, 0.38125455379486084, -0.13224908709526062, 0.09867656975984573, 0.20429840683937073, 0.13350717723369598, -0.09857650101184845, -0.051576025784015656, 0.2958790957927704, 0.11418789625167847, 0.21601395308971405, 0.285687118768692, -0.23291991651058197, 0.4947042465209961, -0.030971994623541832, -0.04579930007457733, 0.30463531613349915, 0.1531066596508026, -0.21156027913093567, 0.3471328616142273, -0.10842883586883545, 0.07455283403396606, 0.17635270953178406, -0.055328965187072754, 0.5154078602790833, -0.07441815733909607, -0.0775577649474144, -0.3972730040550232, 0.32225820422172546, -0.17396995425224304, -0.05435360223054886, 0.12460644543170929, -0.26684489846229553, 0.011566288769245148, 0.2725958824157715, -0.01175021007657051, -0.2077873796224594, 0.05056867003440857, 0.11317022889852524, -0.18867237865924835, -0.29463785886764526, -0.21332019567489624, 0.18086841702461243, 0.005762867629528046, -0.11760835349559784, 0.4644024074077606, -0.025020793080329895, -0.04980955272912979, -0.20682650804519653, 0.47239118814468384, 0.4358704686164856, 0.04667429253458977, 0.17062167823314667, -0.037670236080884933, 0.11530078947544098, -0.04359907656908035, -0.2645642161369324, 0.3616286814212799, 0.3126126527786255, 0.25533393025398254, 0.30640000104904175, 0.043355852365493774, -0.016579046845436096, -0.5123394131660461, 0.07032366842031479, 0.0008019702509045601, -0.10928703844547272, -0.23341983556747437, -0.378940224647522, 0.17825999855995178, -0.058186620473861694, 0.03722591698169708, -0.6506953239440918, 0.2464960366487503, 0.004731789231300354, -0.38267573714256287, 0.09806891530752182, -0.18637508153915405, 0.0325421541929245, -0.0887145847082138, 0.22404704988002777, 0.5954563617706299, 0.53659987449646, 0.026287738233804703, -0.47570884227752686, -0.4152213931083679, 0.2563159167766571, 0.10077794641256332, 0.021822070702910423, -0.2456018626689911, 0.026500841602683067, 0.3912781774997711, 0.01340881735086441, -0.10663044452667236, 0.28633907437324524, -0.09015551209449768, 0.060229577124118805, -0.32290711998939514, 0.22137324512004852, 0.3137049078941345, 0.1864873170852661, -0.12175994366407394, -0.07154475152492523, 0.10025227814912796, 0.19658876955509186, -0.06367840617895126, -0.21464183926582336, 0.1399836540222168, -0.24241182208061218, 0.10328948497772217, 0.3025978207588196, 0.3094521760940552, 0.45007258653640747, -0.17480731010437012, -0.27962225675582886, -0.050441693514585495, -0.08289007097482681, 0.10211361199617386, 0.015800505876541138, -0.04890162870287895, -0.12982594966888428, -0.3483474552631378, -0.28925856947898865, 0.018186936154961586, 0.46013355255126953, 0.25869226455688477, 0.2340303212404251, -0.13330791890621185, 0.10337121039628983, -0.19119048118591309, -0.1788598895072937, 0.24481450021266937, 0.2504642605781555, 0.13883283734321594, -0.28427183628082275, -0.06977173686027527, 0.057023800909519196, 0.18567313253879547, -0.04933949187397957, 0.030213143676519394, -0.07065563648939133, 0.10335197299718857, 0.268446683883667, 0.005434791557490826, -0.44598492980003357, -0.12434455007314682, 0.13188089430332184, 0.12566214799880981, -0.27908119559288025, 0.1752152144908905, 0.0075403847731649876, -0.33920377492904663, -0.11194010078907013, 0.5363774299621582, 0.1868807077407837, -0.44219791889190674, 0.14140580594539642, -0.11180394887924194 ]
https://github.com/huggingface/datasets/issues/4221
Dictionary Feature
Hi @jordiae, Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`: ```python "list_of_dict_feature": [ { "key1_in_dict": datasets.Value("string"), "key2_in_dict": datasets.Value("int32"), ... } ], ``` Feel free to re-open this issue if that does not work for your use case.
Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something? Thank you in advance.
48
Dictionary Feature Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something? Thank you in advance. Hi @jordiae, Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`: ```python "list_of_dict_feature": [ { "key1_in_dict": datasets.Value("string"), "key2_in_dict": datasets.Value("int32"), ... } ], ``` Feel free to re-open this issue if that does not work for your use case.
[ -0.04624965414404869, -0.4512823820114136, -0.17071013152599335, 0.16586065292358398, 0.09326337277889252, -0.016183774918317795, 0.1318405121564865, 0.15200208127498627, 0.40499958395957947, 0.12990227341651917, 0.143244206905365, 0.22338305413722992, -0.07074690610170364, 0.7212551236152649, -0.18065181374549866, -0.2812745273113251, -0.04814638942480087, 0.10597773641347885, 0.07373043894767761, 0.0739520788192749, -0.12539759278297424, 0.15025919675827026, -0.2813606560230255, -0.104805126786232, -0.03974572941660881, 0.08842077851295471, -0.20272627472877502, -0.07146932929754257, 0.3473455011844635, -0.6424131989479065, 0.12316858768463135, 0.4423498809337616, 0.03962617740035057, -0.06161569803953171, -0.00011899284436367452, -0.27610260248184204, 0.4679414629936218, -0.2269839197397232, -0.35697194933891296, -0.22966818511486053, -0.19981428980827332, -0.3822997808456421, 0.5282427668571472, -0.27466148138046265, -0.325459361076355, 0.020543307065963745, -0.03725767135620117, -0.45561274886131287, 0.3678811192512512, 0.20614275336265564, 0.1467750370502472, -0.2795568108558655, 0.09731096029281616, -0.06698930263519287, 0.381740927696228, 0.1910150945186615, -0.0934453159570694, 0.14379635453224182, 0.6928077936172485, -0.055141597986221313, 0.1309109628200531, -0.2285543829202652, -0.1546841412782669, -0.3476566672325134, 0.5730141997337341, 0.09014416486024857, 0.2675703465938568, -0.3771878778934479, -0.3596547245979309, 0.2192952036857605, 0.8294892311096191, -0.10678914934396744, -0.28611665964126587, -0.3250897526741028, -0.18829657137393951, -0.4314509332180023, 0.15978987514972687, -0.30379295349121094, -0.0459429994225502, 0.13783086836338043, 0.15680411458015442, -0.07134095579385757, -0.08897662162780762, 0.281230628490448, -0.04042080044746399, 0.1910971999168396, 0.026695512235164642, -0.023536771535873413, -0.15868714451789856, -0.22786776721477509, -0.046996623277664185, -0.07025658339262009, 0.2840813100337982, 0.12171218544244766, -0.22315387427806854, -0.10995118319988251, -0.020583733916282654, -0.06052536517381668, 0.18120941519737244, 0.24858663976192474, 0.08000355213880539, 0.07059535384178162, -0.38030117750167847, -0.017996855080127716, 0.35930827260017395, 0.23726628720760345, 0.403501033782959, -0.360196053981781, -0.07243025302886963, 0.27692553400993347, 0.04698127135634422, 0.08864858746528625, -0.010655039921402931, -0.06370203197002411, 0.05564519390463829, 0.07734522223472595, 0.12965993583202362, -0.1306479275226593, -0.2417450249195099, 0.20223478972911835, 0.20864975452423096, 0.012206515297293663, 0.15161632001399994, 0.418100506067276, -0.29220908880233765, 0.23681291937828064, 0.02139492705464363, 0.22135521471500397, 0.11747007817029953, 0.05903812125325203, -0.03820675611495972, 0.009780898690223694, -0.04120782017707825, 0.04628363251686096, 0.2541353404521942, -0.08288095891475677, 0.26968061923980713, 0.04179399460554123, 0.2771691679954529, -0.26520347595214844, -0.07590346038341522, -0.19876225292682648, -0.12530088424682617, 0.16317744553089142, -0.19621674716472626, 0.009763563051819801, -0.013548344373703003, -0.11147022247314453, -0.26886892318725586, 0.22589066624641418, -0.13959458470344543, -0.04166319593787193, -0.06012257933616638, 0.1419018656015396, -0.19732864201068878, -0.02308391034603119, -0.038277409970760345, 0.22808681428432465, 0.12235353142023087, -0.05437145009636879, -0.22200170159339905, 0.00711887888610363, -0.7168325781822205, -0.38074955344200134, -0.05366012454032898, 0.30406054854393005, -0.5698955655097961, -0.1325674057006836, -0.08752627670764923, 0.017725668847560883, -0.008281782269477844, -0.05251483991742134, 0.017216699197888374, 0.2265288233757019, -0.2068646103143692, -0.0014503225684165955, 0.23237185180187225, -0.4347219169139862, -0.16055968403816223, 0.3504545986652374, 0.05864271521568298, 0.16881811618804932, 0.25359049439430237, 0.387167751789093, 0.5119773149490356, -0.341238796710968, 0.24343471229076385, 0.4065399765968323, 0.0434693843126297, -0.1471087485551834, 0.12052665650844574, -0.13377423584461212, 0.44534575939178467, 0.15021605789661407, -0.301704466342926, 0.02906462922692299, -0.22113212943077087, -0.26719850301742554, 0.17640991508960724, 0.03977629542350769, 0.01673499122262001, 0.2715829610824585, 0.0940258651971817, 0.5666500329971313, 0.16510789096355438, -0.26767605543136597, -0.6147456169128418, 0.3075074851512909, 0.006352376192808151, -0.26779699325561523, 0.035096101462841034, -0.20731626451015472, -0.408270001411438, 0.2199755311012268, -0.20120452344417572, 0.25154152512550354, 0.036401718854904175, -0.10015447437763214, -0.1090354323387146, -0.09406370669603348, -0.09637818485498428, 0.2330833375453949, 0.18941980600357056, -0.1068897619843483, -0.2856437563896179, 0.3583071231842041, 0.017924640327692032, -0.07249549776315689, 0.2625325918197632, 0.3109193444252014, 0.24974310398101807, -0.052936628460884094, 0.03862442076206207, 0.1483461558818817, 0.8869813084602356, -0.3456224203109741, -0.38665634393692017, 0.21085461974143982, 0.28546303510665894, -0.06462986022233963, 0.22166229784488678, 0.26678669452667236, 0.19110076129436493, -0.341501384973526, -0.2751641273498535, 0.5970079302787781, -0.24027536809444427, 0.28911253809928894, -0.06745602935552597, 0.21419058740139008, 0.4508865475654602, -0.005032718181610107, -0.129197359085083, -0.38695481419563293, 0.16437751054763794, -0.04652693495154381, 0.08365511894226074, 0.04111027717590332, -0.27109336853027344, 0.1041811928153038, 0.06651270389556885, -0.07945998013019562, 0.19765713810920715, 0.27735450863838196, 0.22927168011665344, -0.1658056676387787, -0.10208511352539062, -0.3614659011363983, 0.14371193945407867, 0.10091041028499603, -0.3632022440433502, 0.04661038517951965, -0.04436151310801506, -0.07484536617994308, 0.21806906163692474, -0.20627696812152863, 0.18670451641082764, 0.24076595902442932, 0.15959928929805756, -0.0981997549533844, 0.12152985483407974, -0.37874382734298706, -0.0019336100667715073, -0.12257727980613708, -0.2961786985397339, -0.21197667717933655, -0.26872459053993225, -0.10188095271587372, 0.3103342056274414, -0.21894992887973785, 0.07807448506355286, -0.4335142970085144, 0.06862467527389526, 0.10529760271310806, -0.022664284333586693, 0.0829315334558487, 0.22856184840202332, 0.06587418913841248, 0.162101611495018, -0.1830594390630722, -0.05840389057993889, -0.3823069632053375, 0.06413549929857254, 0.002370046451687813, -0.07064339518547058, 0.36926382780075073, 0.28414586186408997, 0.07675778865814209, -0.24354831874370575, -0.23774537444114685, -0.2604740858078003, 0.12352146953344345, 0.03425735980272293, 0.18294113874435425, 0.3446879982948303, 0.1972818672657013, 0.29925793409347534, -0.07863962650299072, 0.03213052451610565, 0.3941098749637604, -0.30954763293266296, 0.17417998611927032, 0.14181241393089294, -0.013493158854544163, 0.07658682763576508, -0.23557424545288086, -0.24431206285953522, -0.3086295425891876, 0.13223052024841309, 0.41345924139022827, 0.33259356021881104, 0.1554553508758545, -0.008886268362402916, -0.058080390095710754, 0.14918392896652222, 0.3193131685256958, -0.1959659457206726, 0.5716274380683899, 0.18057548999786377, -0.19467201828956604, -0.34751614928245544, 0.05445538088679314, -0.182503804564476, -0.07577426731586456, 0.026315391063690186, -0.24331256747245789, -0.04145170375704765, -0.37651365995407104, 0.302311509847641, 0.02884276770055294, 0.022537456825375557, 0.2367357462644577, 0.2202737182378769, 0.14536318182945251, -0.06429561972618103, -0.19822177290916443, 0.14087843894958496, 0.027987264096736908, -0.13015595078468323, 0.27755260467529297, 0.6170362830162048, -0.5521557927131653, 0.2099924385547638, 0.23182067275047302, -0.05636278912425041, 0.3486999273300171, -0.12545152008533478, -0.09998318552970886, -0.47857925295829773, 0.06017472594976425, -0.3370317816734314, 0.0017570704221725464, -0.24798347055912018, 0.23600368201732635, -0.1649487018585205, -0.1049448773264885, -0.09734795987606049, 0.10366357862949371, 0.015903636813163757, -0.02198570780456066, 0.056440263986587524, -0.37012335658073425, 0.08283329010009766, -0.18140560388565063, 0.04176458716392517, -0.1170882135629654, -0.11890435963869095, 0.0065743811428546906, 0.02333933860063553, 0.23296722769737244, -0.36126214265823364, -0.28071630001068115, -0.009291328489780426, -0.21290022134780884, -0.02699488401412964, 0.21664926409721375, 0.09911160916090012, -0.19885629415512085, -0.010152656584978104, -0.12924271821975708, 0.13600367307662964, 0.5552919507026672, -0.1898207813501358, 0.1380554437637329, 0.13722661137580872, -0.38009488582611084, 0.09063556790351868, -0.09340333938598633, -0.05805778503417969, 0.0888219028711319, -0.163386732339859, 0.3065550923347473, -0.29042327404022217, -0.2331281304359436, -0.0854644626379013, 0.4232657849788666, -0.2745882272720337, -0.4344220459461212, -0.06080598384141922, -0.008813008666038513, -0.5277041792869568, -0.5270121693611145, 0.2141360193490982, 0.07077981531620026, -0.07516059279441833, -0.4207070767879486, -0.31795820593833923, -0.2028738260269165, 0.09019020199775696, -0.1041797548532486, 0.3009873032569885, -0.10519729554653168, 0.4469849169254303, -0.11234049499034882, 0.10819058120250702, -0.2539653778076172, 0.24006497859954834, 0.2642768621444702, -0.3275781571865082, -0.006866820156574249, -0.18039488792419434, 0.11384508013725281, 0.11832362413406372, -0.02638491988182068, 0.07919181138277054, -0.41108548641204834, -0.04701243340969086, -0.34802210330963135, -0.28424251079559326, 0.11971146613359451, -0.03267042338848114, -0.29630789160728455, -0.6106842756271362, 0.3224203884601593, 0.07830162346363068, -0.3097090721130371, -0.020418338477611542, -0.1818656474351883, -0.2126481533050537, 0.698081374168396, 0.16972443461418152, 0.8080031275749207, -0.23671551048755646, 0.07760567218065262, 0.4769247770309448, 0.2930558919906616, 0.2038344442844391, 0.2007446140050888, -0.1710086315870285, -0.4697272479534149, -0.34828436374664307, -0.0869789868593216, -0.03277628496289253, -0.18524035811424255, 0.253684937953949, -0.6104795336723328, 0.48430806398391724, -0.5161293745040894, -0.08400760591030121, -0.07670614868402481, 0.11066505312919617, 0.31884658336639404, -0.13167177140712738, -0.12078976631164551, 0.03962913900613785, 0.2779880166053772, -0.06301060318946838, -0.2735728919506073, -0.01993195340037346, 0.04357201233506203, 0.14987997710704803, -0.3977630138397217, 0.025409337133169174, -0.06868520379066467, 0.2291388064622879, -0.001426946371793747, 0.2433779090642929, 0.31565308570861816, 0.6047171354293823, 0.15338243544101715, 0.12928642332553864, -0.07369992136955261, -0.07224828004837036, -0.07690759748220444, -0.09887250512838364, -0.11946508288383484, -0.07791110873222351, 0.30197057127952576, -0.005247659981250763, -0.12367996573448181, 0.07454205304384232, -0.05233405902981758, -0.03085988387465477, -0.11085778474807739, 0.07983747124671936, -0.1757640391588211, -0.35816964507102966, -0.6699892282485962, -0.1816568374633789, -0.1016959697008133, 0.011375010013580322, 0.08724647760391235, 0.3589836359024048, 0.06814533472061157, 0.08491875231266022, 0.06529171019792557, -0.02602117881178856, -0.05540095642209053, 0.003609485924243927, 0.4552604854106903, -0.1340446174144745, 0.4324483871459961, 0.5098881125450134, -0.1528184413909912, -0.19364359974861145, -0.13542546331882477, -0.05591557174921036, -0.13350197672843933, 0.279668927192688, 0.03281736746430397, -0.35239970684051514, -0.18184927105903625, 0.6086481809616089, 0.03627951815724373, 0.2895684838294983, -0.00968821719288826, -0.3957569897174835, -0.19687393307685852, 0.20346762239933014, 0.09401270747184753, 0.19493508338928223, -0.32336804270744324, -0.44213730096817017, -0.18717797100543976, 0.0454193539917469, -0.20790612697601318, -0.2800552546977997, -0.03227254003286362, 0.059114620089530945, 0.14353643357753754, 0.12056306004524231, -0.13744355738162994, 0.15533582866191864, 0.1495116800069809, -0.20175476372241974, -0.0029915906488895416, -0.1529199779033661, -0.07227902114391327, 0.16220559179782867, 0.017655890434980392, 0.16547124087810516, -0.2568821609020233, -0.22890712320804596, -0.23021477460861206, -0.33970335125923157, -0.04861371964216232, 0.20487621426582336, 0.06162659451365471, 0.2663820683956146, 0.327175110578537, 0.1365034580230713, -0.00628112256526947, 0.26834070682525635, -0.07260122895240784, 0.2836204171180725, -0.08204122632741928, -0.058523401618003845, -0.18026001751422882, -0.1736922264099121, -0.3478025197982788, 0.3070158064365387, -0.1352083384990692, -0.1376635730266571, 0.33759382367134094, 0.22104088962078094, 0.02132542058825493, 0.39147621393203735, 0.17963126301765442, 0.42963308095932007, -0.20722104609012604, 0.07821453362703323, -0.003339095041155815, 0.1626950204372406, -0.38038161396980286, -0.34703296422958374, 0.11193986237049103, 0.11259724199771881, 0.0008328445255756378, 0.3110021948814392, 0.11455246806144714, 0.0013219863176345825, -0.11955949664115906, -0.07019226253032684, -0.2128000259399414, -0.1996898204088211, 0.027499886229634285, 0.246598020195961, 0.40947994589805603, -0.09274134039878845, 0.049649327993392944, 0.2706281542778015, 0.2925357520580292, 0.33389562368392944, 0.2348726987838745, 0.0749739333987236, 0.3227991759777069, 0.2361794114112854, 0.24476474523544312, -0.25044724345207214, 0.16839933395385742, 0.5184013843536377, -0.13677610456943512, -0.13525792956352234, 0.28978705406188965, -0.3292039930820465, 0.3011072278022766, 0.1267334669828415, -0.24075394868850708, 0.10309962928295135, 0.012111600488424301, -0.3021203279495239, 0.2414487600326538, -0.062207795679569244, -0.4520418047904968, -0.24577867984771729, -0.13481515645980835, -0.08125673234462738, 0.18060971796512604, 0.003387175500392914, 0.2856385111808777, -0.275363951921463, 0.7117035388946533, 0.0874575600028038, 0.25938037037849426, -0.05860685184597969, 0.09040174633264542, -0.06641773879528046, 0.13192182779312134, 0.19706183671951294, -0.1178637221455574, 0.30381566286087036, 0.6028252840042114, -0.31474223732948303, 0.13935650885105133, -0.12325374782085419, -0.34118765592575073, -0.24198918044567108, 0.17348331212997437, -0.16718518733978271, 0.34657010436058044, 0.3755079507827759, 0.07179755717515945, -0.035047419369220734, 0.21355068683624268, 0.37408247590065, -0.18188796937465668, -0.16261433064937592, 0.4997572600841522, 0.16227135062217712, -0.07324817776679993, 0.011380715295672417, 0.1967003345489502, -0.39754360914230347, -0.3917456865310669, 0.25531497597694397, 0.30522119998931885, 0.2863807678222656, 0.2976037561893463, 0.07092241942882538, -0.23348361253738403, 0.2176709771156311, 0.20707277953624725, 0.4468245506286621, -0.14696535468101501, 0.03969760239124298, -0.20283368229866028, -0.12291916459798813, 0.03375544771552086, -0.4310971796512604, 0.655303955078125, 0.15174248814582825, -0.029239580035209656, 0.22621259093284607, -0.16703151166439056, -0.018796540796756744, 0.12146105617284775, 0.044756896793842316, -0.2793576419353485, -0.30971601605415344, 0.11999903619289398, 0.32099825143814087, -0.16275593638420105, -0.1228848248720169, 0.07588612288236618, -0.052928805351257324, 0.05175865441560745, -0.24130065739154816, 0.09746469557285309, -0.17341068387031555, 0.14026865363121033, 0.03262821212410927, -0.08428552746772766, 0.3476969599723816, -0.13312679529190063, 0.18645219504833221, 0.05301675572991371, -0.14693152904510498, 0.06058957055211067, 0.24045562744140625, 0.07000219821929932, -0.015217327512800694, -0.08557263761758804, 0.4542366564273834, 0.07597766816616058, 0.08828025311231613, 0.06382644921541214, -0.08003479242324829, -0.5597093105316162, 0.22616733610630035, -0.18114137649536133, 0.21901342272758484, -0.04734903573989868, 0.2678975760936737, -0.18628931045532227, 0.2738001048564911, 0.2603803277015686, -0.2737371325492859, 0.4179796278476715, 0.2398236095905304, -0.17667356133460999, 0.08348622918128967, -0.013533174991607666, 0.0595291405916214, 0.08682814240455627, -0.03842264413833618, 0.0033096373081207275, 0.3459969460964203, 0.0006058178842067719, -0.20819707214832306, 0.10888642072677612, 0.12270331382751465, -0.058631494641304016, -0.17088177800178528, 0.29106950759887695, 0.09946073591709137, 0.17023082077503204, -0.34009233117103577, -0.26486265659332275 ]
https://github.com/huggingface/datasets/issues/4221
Dictionary Feature
> Hi @jordiae, > > Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`: > > ```python > "list_of_dict_feature": [ > { > "key1_in_dict": datasets.Value("string"), > "key2_in_dict": datasets.Value("int32"), > ... > } > ], > ``` > > Feel free to re-open this issue if that does not work for your use case. Thank you
Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something? Thank you in advance.
65
Dictionary Feature Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something? Thank you in advance. > Hi @jordiae, > > Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`: > > ```python > "list_of_dict_feature": [ > { > "key1_in_dict": datasets.Value("string"), > "key2_in_dict": datasets.Value("int32"), > ... > } > ], > ``` > > Feel free to re-open this issue if that does not work for your use case. Thank you
[ -0.04296927526593208, -0.47043800354003906, -0.16780568659305573, 0.19114451110363007, 0.06616009771823883, -0.0045955851674079895, 0.1355631947517395, 0.1641889214515686, 0.42123761773109436, 0.13471706211566925, 0.1320910006761551, 0.20426754653453827, -0.08512777090072632, 0.7377757430076599, -0.17151880264282227, -0.28386104106903076, -0.04006177932024002, 0.09854120761156082, 0.07208042591810226, 0.06513366103172302, -0.10987333953380585, 0.14833974838256836, -0.282238632440567, -0.12304861843585968, -0.014830153435468674, 0.09909998625516891, -0.20503266155719757, -0.08635654300451279, 0.34660714864730835, -0.6270548701286316, 0.11450512707233429, 0.44995954632759094, 0.031955793499946594, -0.06428953260183334, -0.00012051970406901091, -0.2599371671676636, 0.4574344754219055, -0.21593374013900757, -0.36117973923683167, -0.20527543127536774, -0.2063644826412201, -0.394802451133728, 0.5203182101249695, -0.2871205806732178, -0.30880260467529297, 0.028949759900569916, -0.04677601903676987, -0.4709151089191437, 0.3677736520767212, 0.193766787648201, 0.13324673473834991, -0.2727408707141876, 0.08088834583759308, -0.05435727536678314, 0.39468634128570557, 0.20140571892261505, -0.10483450442552567, 0.1637302190065384, 0.6974080801010132, -0.04770273715257645, 0.11893594264984131, -0.2285163402557373, -0.1444535106420517, -0.35746920108795166, 0.5789629220962524, 0.06927613914012909, 0.2422298789024353, -0.3922005891799927, -0.33920612931251526, 0.22422778606414795, 0.8672302961349487, -0.09695083647966385, -0.26970478892326355, -0.3286173343658447, -0.19666312634944916, -0.4196622669696808, 0.15939119458198547, -0.3182515799999237, -0.053089890629053116, 0.1402117758989334, 0.14504113793373108, -0.07730384171009064, -0.09091474115848541, 0.26045137643814087, -0.015346888452768326, 0.13992050290107727, 0.027248933911323547, -0.04014332592487335, -0.16845250129699707, -0.2289493829011917, -0.04224178194999695, -0.09061641991138458, 0.27997902035713196, 0.11115480959415436, -0.2226955145597458, -0.11445130407810211, -0.027164064347743988, -0.057742245495319366, 0.18972626328468323, 0.24947580695152283, 0.08548892289400101, 0.0723985880613327, -0.37724852561950684, -0.0194646418094635, 0.3499036431312561, 0.22691144049167633, 0.4114246964454651, -0.35955363512039185, -0.07703325152397156, 0.277499258518219, 0.04855265095829964, 0.09134338796138763, -0.017600901424884796, -0.053725894540548325, 0.07213039696216583, 0.05296872556209564, 0.11912024021148682, -0.14500224590301514, -0.23317860066890717, 0.19521130621433258, 0.18636542558670044, 0.012662356719374657, 0.1621609479188919, 0.4231906831264496, -0.31128886342048645, 0.2096298336982727, 0.008399911224842072, 0.21962131559848785, 0.10547128319740295, 0.05571280047297478, -0.027822699397802353, -0.00872628390789032, -0.0539107546210289, 0.044368382543325424, 0.25936147570610046, -0.07727262377738953, 0.2498551607131958, 0.03741862624883652, 0.2666698098182678, -0.2786959409713745, -0.08694977313280106, -0.19845859706401825, -0.12865689396858215, 0.13986556231975555, -0.17967133224010468, 0.008969170972704887, -0.023950066417455673, -0.09527549892663956, -0.25702619552612305, 0.22639229893684387, -0.14087358117103577, -0.05579262226819992, -0.05208137631416321, 0.12827828526496887, -0.20176751911640167, -0.019690919667482376, -0.0326276496052742, 0.23711638152599335, 0.12420283257961273, -0.06297570466995239, -0.2309453785419464, 0.01848258264362812, -0.7297495603561401, -0.3843669593334198, -0.055327363312244415, 0.33508408069610596, -0.570423424243927, -0.13105417788028717, -0.10698922723531723, 0.016068506985902786, 0.0025795623660087585, -0.04886867478489876, 0.02519400231540203, 0.23743024468421936, -0.22009806334972382, -0.012099385261535645, 0.24341997504234314, -0.41943588852882385, -0.18883128464221954, 0.3534661829471588, 0.06721748411655426, 0.16690503060817719, 0.2616819143295288, 0.3913346230983734, 0.5214035511016846, -0.3344428539276123, 0.21223825216293335, 0.39225834608078003, 0.043846357613801956, -0.13966843485832214, 0.11376631259918213, -0.12307435274124146, 0.4458230137825012, 0.15855629742145538, -0.28537216782569885, 0.043847016990184784, -0.19205886125564575, -0.2551845908164978, 0.1779625117778778, 0.045267991721630096, 0.03134142607450485, 0.25925394892692566, 0.07918734848499298, 0.5799188017845154, 0.1676921248435974, -0.2711462378501892, -0.6223828196525574, 0.30544719099998474, -0.007256681099534035, -0.27009403705596924, 0.06702518463134766, -0.20057938992977142, -0.4199749827384949, 0.20830783247947693, -0.1984320431947708, 0.25402966141700745, 0.024626214057207108, -0.0941762775182724, -0.11095422506332397, -0.11227698624134064, -0.0881686881184578, 0.24386122822761536, 0.1757524460554123, -0.10109663754701614, -0.2963372468948364, 0.3637981116771698, 0.02599227987229824, -0.06820660829544067, 0.2738375961780548, 0.32469093799591064, 0.2452080249786377, -0.048298150300979614, 0.036187928169965744, 0.12104496359825134, 0.8892267346382141, -0.3547435402870178, -0.37845879793167114, 0.22097183763980865, 0.2830379009246826, -0.08123558759689331, 0.24890032410621643, 0.2555846571922302, 0.1916796714067459, -0.343019962310791, -0.28159427642822266, 0.5699646472930908, -0.2481469064950943, 0.28007930517196655, -0.06128781661391258, 0.21978019177913666, 0.43211743235588074, 0.004335228353738785, -0.11769314110279083, -0.39360782504081726, 0.16665075719356537, -0.04002095386385918, 0.1149890124797821, 0.023870814591646194, -0.28011372685432434, 0.100349061191082, 0.05879463255405426, -0.06663857400417328, 0.2112707793712616, 0.289741575717926, 0.24277308583259583, -0.17520251870155334, -0.09140240401029587, -0.36795833706855774, 0.12329341471195221, 0.09290219098329544, -0.3488699793815613, 0.05996355414390564, -0.009665255434811115, -0.06659858673810959, 0.22318103909492493, -0.20918528735637665, 0.1879824995994568, 0.23514080047607422, 0.14757689833641052, -0.09225667268037796, 0.12080562859773636, -0.37542977929115295, -0.0018184371292591095, -0.13131719827651978, -0.31629517674446106, -0.20775768160820007, -0.2735092341899872, -0.10228678584098816, 0.3218834102153778, -0.2074785977602005, 0.0832347422838211, -0.41956523060798645, 0.06382356584072113, 0.11599431931972504, 0.0016970820724964142, 0.08272203058004379, 0.25440919399261475, 0.07914239168167114, 0.15584777295589447, -0.19014844298362732, -0.05514659360051155, -0.364371657371521, 0.06853320449590683, -0.0034509990364313126, -0.04985647276043892, 0.38219931721687317, 0.29645228385925293, 0.04779769480228424, -0.24276064336299896, -0.2546727657318115, -0.24202263355255127, 0.12468362599611282, 0.0408012792468071, 0.16248051822185516, 0.3353115916252136, 0.195530503988266, 0.26546716690063477, -0.0406075045466423, 0.01909879967570305, 0.39722996950149536, -0.3206769526004791, 0.17345793545246124, 0.1411876082420349, -0.011076070368289948, 0.08455534279346466, -0.23652860522270203, -0.26020538806915283, -0.29824820160865784, 0.13408346474170685, 0.41278764605522156, 0.3460389971733093, 0.15477479994297028, 0.0017387792468070984, -0.0531754344701767, 0.1577521562576294, 0.32110828161239624, -0.19355033338069916, 0.5660731792449951, 0.18109558522701263, -0.19461169838905334, -0.3550035059452057, 0.054776374250650406, -0.18528859317302704, -0.06715065240859985, 0.02941899746656418, -0.24631907045841217, -0.016973504796624184, -0.37619540095329285, 0.32626110315322876, 0.046320024877786636, 0.04255420342087746, 0.2474852204322815, 0.2113267183303833, 0.16629233956336975, -0.05061541125178337, -0.21530650556087494, 0.138505756855011, 0.004147414118051529, -0.12107432633638382, 0.2911953628063202, 0.6103338599205017, -0.5833672285079956, 0.22675083577632904, 0.23891252279281616, -0.04263085499405861, 0.3606213927268982, -0.1387866735458374, -0.08641229569911957, -0.47431012988090515, 0.03410067409276962, -0.31993481516838074, -0.020312607288360596, -0.24537640810012817, 0.22851528227329254, -0.16662007570266724, -0.11251857131719589, -0.10207685083150864, 0.08038048446178436, -0.0007057785987854004, -0.020134080201387405, 0.05147087574005127, -0.38984131813049316, 0.08510284870862961, -0.17898252606391907, 0.04670879244804382, -0.12430700659751892, -0.1323927640914917, 0.019193219020962715, 0.0394529327750206, 0.2429213523864746, -0.3751882314682007, -0.291841983795166, -0.018246229737997055, -0.21415656805038452, -0.04181596636772156, 0.21222259104251862, 0.09731210768222809, -0.2043110430240631, 0.0029872283339500427, -0.12455502152442932, 0.15485993027687073, 0.5807390213012695, -0.1817251741886139, 0.15339604020118713, 0.12930352985858917, -0.3806324601173401, 0.10147280246019363, -0.08020167052745819, -0.06024152413010597, 0.0958787053823471, -0.18274053931236267, 0.27158159017562866, -0.2892584502696991, -0.22694993019104004, -0.08073777705430984, 0.4406334161758423, -0.28109899163246155, -0.4758983850479126, -0.04303251951932907, 0.006466273218393326, -0.539134681224823, -0.5501675605773926, 0.20903484523296356, 0.06283079832792282, -0.0736263170838356, -0.4290340542793274, -0.314332515001297, -0.19591644406318665, 0.09446268528699875, -0.0859578400850296, 0.30359894037246704, -0.11593659967184067, 0.44982239603996277, -0.1186470240354538, 0.10473065078258514, -0.2449406385421753, 0.2528451383113861, 0.2503003776073456, -0.34923961758613586, 0.01423078216612339, -0.16406290233135223, 0.10361209511756897, 0.10426808893680573, -0.022235862910747528, 0.060512151569128036, -0.41159993410110474, -0.04936961829662323, -0.3372843265533447, -0.3075937330722809, 0.11611799895763397, -0.02038899064064026, -0.30116885900497437, -0.611510694026947, 0.33059170842170715, 0.08357153832912445, -0.3141229748725891, -0.018663272261619568, -0.17706768214702606, -0.2061607539653778, 0.6861752271652222, 0.16323179006576538, 0.8188751935958862, -0.22928248345851898, 0.07070654630661011, 0.49769505858421326, 0.27810871601104736, 0.19912384450435638, 0.19739492237567902, -0.18295890092849731, -0.4760642647743225, -0.35267025232315063, -0.08928679674863815, -0.029843652620911598, -0.1913866102695465, 0.2760174572467804, -0.5978081226348877, 0.48280301690101624, -0.5174863338470459, -0.07397276163101196, -0.09332484751939774, 0.12084667384624481, 0.3119502365589142, -0.1419980674982071, -0.12980005145072937, 0.03182921186089516, 0.29479336738586426, -0.039828892797231674, -0.2840907573699951, -0.014259452000260353, 0.03563028201460838, 0.15826480090618134, -0.40082889795303345, 0.022937502712011337, -0.045061253011226654, 0.21259771287441254, 0.016766877844929695, 0.2452765852212906, 0.3642136752605438, 0.6223156452178955, 0.1572018563747406, 0.14987921714782715, -0.06996499001979828, -0.09912075102329254, -0.07797538489103317, -0.09470384567975998, -0.11637254804372787, -0.0818018987774849, 0.30887359380722046, -0.015086827799677849, -0.14060188829898834, 0.0657024160027504, -0.042600978165864944, -0.008246805518865585, -0.10951695591211319, 0.07884182035923004, -0.14962691068649292, -0.37468886375427246, -0.6653280258178711, -0.18306097388267517, -0.12108886241912842, 0.017009764909744263, 0.07116208225488663, 0.36249488592147827, 0.07525644451379776, 0.09147188812494278, 0.06389918178319931, -0.019276440143585205, -0.04896318539977074, -0.0036644041538238525, 0.46024104952812195, -0.13716307282447815, 0.44015681743621826, 0.5107125639915466, -0.16591300070285797, -0.1863003373146057, -0.13497357070446014, -0.041060104966163635, -0.13670727610588074, 0.2683486342430115, 0.02517709694802761, -0.3519147038459778, -0.1999737024307251, 0.5697351694107056, 0.04649743810296059, 0.3061346709728241, -0.00014060363173484802, -0.40362003445625305, -0.20551283657550812, 0.1974143385887146, 0.0831390768289566, 0.1834571659564972, -0.3143274784088135, -0.45102056860923767, -0.1626749336719513, 0.05155404284596443, -0.18877269327640533, -0.28274014592170715, 0.0023422371596097946, 0.046283427625894547, 0.15310072898864746, 0.12268506735563278, -0.15615737438201904, 0.14087434113025665, 0.12880584597587585, -0.19514790177345276, -0.0035245846956968307, -0.13659986853599548, -0.055245377123355865, 0.16972973942756653, 0.016152899712324142, 0.15778449177742004, -0.25107166171073914, -0.2348281443119049, -0.2367631196975708, -0.33640339970588684, -0.04901771992444992, 0.20110011100769043, 0.07315520942211151, 0.255191445350647, 0.3351805806159973, 0.1288360357284546, -0.04122341424226761, 0.2880115211009979, -0.0712859034538269, 0.28454235196113586, -0.0931539461016655, -0.06720598042011261, -0.15266360342502594, -0.18363244831562042, -0.3548775911331177, 0.3009612560272217, -0.12600967288017273, -0.14792391657829285, 0.36342790722846985, 0.21860143542289734, 0.03641654923558235, 0.4026181399822235, 0.14863693714141846, 0.4213102459907532, -0.19702433049678802, 0.07189203798770905, 0.01131842378526926, 0.1442396491765976, -0.3829609751701355, -0.3480302691459656, 0.12277892231941223, 0.08770433068275452, 0.0048150792717933655, 0.3098231554031372, 0.10859012603759766, 0.008087068796157837, -0.15219944715499878, -0.07178082317113876, -0.22653153538703918, -0.17911948263645172, 0.013465005904436111, 0.2614210247993469, 0.3985024392604828, -0.08350607752799988, 0.0699046328663826, 0.2843663990497589, 0.2599128186702728, 0.33451902866363525, 0.24694889783859253, 0.08981221914291382, 0.31540390849113464, 0.25911664962768555, 0.2474362850189209, -0.25576314330101013, 0.17245537042617798, 0.5423035621643066, -0.14523285627365112, -0.14301452040672302, 0.28171223402023315, -0.3441198170185089, 0.3144916594028473, 0.12953327596187592, -0.24241001904010773, 0.09918360412120819, 0.0048476532101631165, -0.2736862599849701, 0.23287108540534973, -0.06719744205474854, -0.466871440410614, -0.2387630194425583, -0.1584494411945343, -0.09984844923019409, 0.17449554800987244, -0.008662320673465729, 0.27872875332832336, -0.2625390589237213, 0.708865225315094, 0.09552304446697235, 0.2622170150279999, -0.05975640192627907, 0.0878465324640274, -0.09293894469738007, 0.14535796642303467, 0.1862291544675827, -0.09607499837875366, 0.3025282323360443, 0.5908003449440002, -0.2902059257030487, 0.13191956281661987, -0.10015879571437836, -0.3410930335521698, -0.24120016396045685, 0.18941029906272888, -0.1599883735179901, 0.3365948796272278, 0.35366177558898926, 0.04538692533969879, -0.02585500478744507, 0.21488243341445923, 0.38653069734573364, -0.19338859617710114, -0.17118893563747406, 0.4797007441520691, 0.1650582104921341, -0.07577452808618546, 0.005436349660158157, 0.1947038620710373, -0.3924930989742279, -0.3973150849342346, 0.2840460538864136, 0.2968383729457855, 0.27852874994277954, 0.29011890292167664, 0.06132560223340988, -0.2259618192911148, 0.2346455305814743, 0.22229918837547302, 0.4461555778980255, -0.14728859066963196, 0.04040481150150299, -0.21709932386875153, -0.12238722294569016, 0.04516087472438812, -0.42464855313301086, 0.6396223306655884, 0.14088715612888336, -0.02892414480447769, 0.24178898334503174, -0.15649084746837616, -0.019676361232995987, 0.1426757425069809, 0.03909456729888916, -0.2670776844024658, -0.3043851852416992, 0.10255484282970428, 0.3364962637424469, -0.17249104380607605, -0.1253264844417572, 0.09732840955257416, -0.04507572576403618, 0.03381127119064331, -0.24007289111614227, 0.10115702450275421, -0.18714261054992676, 0.13652756810188293, 0.02521234005689621, -0.07698649913072586, 0.34988778829574585, -0.12551504373550415, 0.16816779971122742, 0.06803684681653976, -0.1301601380109787, 0.05827629938721657, 0.2709529399871826, 0.08660855889320374, -0.03890710324048996, -0.0793600082397461, 0.47020283341407776, 0.08060543984174728, 0.09656327217817307, 0.0784907341003418, -0.06913615763187408, -0.5627833604812622, 0.23189198970794678, -0.17546743154525757, 0.235745370388031, -0.021242700517177582, 0.26852715015411377, -0.18627482652664185, 0.2735125720500946, 0.2534201145172119, -0.2558310031890869, 0.40674856305122375, 0.24282705783843994, -0.16362085938453674, 0.06460393220186234, -0.001113995909690857, 0.049029335379600525, 0.07593460381031036, -0.03232859447598457, 0.005921252071857452, 0.3539572060108185, -0.023191750049591064, -0.15757553279399872, 0.11524499952793121, 0.11981244385242462, -0.04067900776863098, -0.1745767891407013, 0.29609397053718567, 0.09559266269207001, 0.18297477066516876, -0.32909002900123596, -0.26600807905197144 ]
https://github.com/huggingface/datasets/issues/4217
Big_Patent dataset broken
Thanks for reporting. The issue seems not to be directly related to the dataset viewer or the `datasets` library, but instead to it being hosted on Google Drive. See related issues: https://github.com/huggingface/datasets/issues?q=is%3Aissue+is%3Aopen+drive.google.com To quote [@lhoestq](https://github.com/huggingface/datasets/issues/4075#issuecomment-1087362551): > PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No
62
Big_Patent dataset broken ## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No Thanks for reporting. The issue seems not to be directly related to the dataset viewer or the `datasets` library, but instead to it being hosted on Google Drive. See related issues: https://github.com/huggingface/datasets/issues?q=is%3Aissue+is%3Aopen+drive.google.com To quote [@lhoestq](https://github.com/huggingface/datasets/issues/4075#issuecomment-1087362551): > PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
[ -0.48346662521362305, 0.10464155673980713, -0.01314170565456152, 0.34202831983566284, 0.1577983945608139, 0.03834269940853119, 0.16885335743427277, 0.23544584214687347, 0.21801695227622986, -0.13234664499759674, -0.03150581568479538, -0.10415561497211456, -0.2722387909889221, 0.4202747344970703, 0.29819536209106445, 0.14693157374858856, 0.12778201699256897, 0.017385415732860565, -0.09245309233665466, 0.14070312678813934, -0.21199946105480194, 0.11713379621505737, -0.232245534658432, -0.04366131126880646, -0.13082842528820038, 0.019689293578267097, 0.011958731338381767, 0.027862921357154846, -0.3111702799797058, -0.6212764382362366, -0.023201823234558105, 0.11201846599578857, 0.013258365914225578, 0.6372541189193726, -0.00011701369658112526, 0.012122683227062225, 0.28358352184295654, 0.0643785297870636, -0.19548316299915314, 0.0015055090188980103, -0.04669716954231262, -0.07281578332185745, -0.09953633695840836, 0.11787811666727066, 0.12430133670568466, -0.4080306589603424, 0.15446560084819794, -0.1061597615480423, 0.060276929289102554, 0.4338547885417938, 0.16774475574493408, 0.0627535954117775, 0.4727405309677124, -0.11791612952947617, 0.0676363855600357, 0.03736833110451698, -0.130707249045372, 0.4472513198852539, 0.09696996212005615, -0.1949574202299118, -0.1155867651104927, 0.10676009953022003, -0.23591692745685577, -0.11368323862552643, 0.4440068304538727, -0.18062762916088104, -0.3739479184150696, -0.33913812041282654, 0.28714877367019653, 0.4707917273044586, 0.5489804744720459, -0.06971823424100876, -0.3047061264514923, -0.2458084225654602, 0.142785906791687, -0.32859888672828674, 0.320021390914917, 0.34496352076530457, 0.2516527473926544, 0.2392541617155075, -0.19412952661514282, -0.4256742596626282, -0.2812265455722809, 0.2228536754846573, -0.3112698793411255, -0.04481479525566101, -0.1355428844690323, 0.12080910801887512, 0.12465208768844604, -0.10998666286468506, -0.020894300192594528, -0.017994806170463562, -0.14277882874011993, -0.008716178126633167, -0.02840210124850273, 0.05414018779993057, 0.15148846805095673, 0.42996299266815186, 0.32738733291625977, 0.2345268726348877, -0.041734714061021805, 0.048342157155275345, -0.2623113989830017, 0.0019875280559062958, 0.14220847189426422, -0.04641607031226158, -0.31712812185287476, 0.06744583696126938, 0.5703383088111877, 0.2360270619392395, 0.06338256597518921, 0.020222174003720284, -0.10781770199537277, -0.21266208589076996, -0.32885104417800903, -0.38501501083374023, 0.4459061622619629, -0.09684550762176514, -0.35677921772003174, 0.30779704451560974, -0.21087947487831116, 0.09212376922369003, 0.10619475692510605, 0.4070592224597931, -0.11509165912866592, -0.09192825108766556, -0.09989307075738907, 0.09237053990364075, -0.07398860901594162, -0.23871725797653198, -0.06751134991645813, 0.06837853789329529, 0.13808394968509674, 0.21794401109218597, 0.294217586517334, -0.33509260416030884, 0.19007134437561035, -0.07749573141336441, 0.061999447643756866, -0.15879127383232117, -0.03650239482522011, -0.17863409221172333, -0.025179840624332428, 0.26341670751571655, 0.05221816524863243, 0.04417991638183594, 0.05079006403684616, -0.36976784467697144, -0.017132624983787537, 0.12930384278297424, -0.12225104123353958, -0.17642751336097717, -0.3367674648761749, 0.09810090810060501, -0.6621643900871277, -0.062778040766716, -0.27746304869651794, 0.16313450038433075, -0.31459033489227295, -0.25348731875419617, -0.07209663838148117, -0.18871621787548065, -0.04199890047311783, -0.16650554537773132, 0.2707696557044983, 0.6222118139266968, -0.37410837411880493, 0.20270559191703796, -0.18227358162403107, -0.030815046280622482, -0.38037756085395813, 0.08249884098768234, -0.10812055319547653, 0.24802517890930176, -0.4550224840641022, -0.055991239845752716, 0.21730786561965942, -0.15215082466602325, -0.7441468238830566, 0.10730599611997604, -0.19675813615322113, -0.013688089326024055, -0.05956036597490311, 0.03133722022175789, -0.09631326794624329, -0.03974681720137596, -0.1357087641954422, -0.02796240895986557, 0.13962215185165405, -0.07388871908187866, -0.03340863063931465, -0.22020116448402405, 0.10269699990749359, 0.1573105752468109, 0.27116158604621887, 0.05084218829870224, 0.3370510935783386, -0.013220543973147869, 0.24161583185195923, 0.09166988730430603, -0.16310881078243256, 0.3274056911468506, 0.436111181974411, 0.06515996903181076, 0.08657033741474152, -0.25447559356689453, -0.3845503330230713, 0.048701971769332886, 0.2722358703613281, -0.11727099120616913, -0.21227233111858368, -0.09781511127948761, -0.24087807536125183, -0.011960357427597046, -0.16835664212703705, -0.2509041130542755, 0.053706660866737366, 0.0604940801858902, -0.17101554572582245, 0.327670693397522, -0.16240915656089783, -0.03126230090856552, 0.22565849125385284, 0.1548057645559311, -0.26491570472717285, 0.19950956106185913, 0.012675322592258453, 0.06448714435100555, 0.13795174658298492, 0.156875342130661, 0.1922036111354828, -0.1875433474779129, 0.01852736622095108, 0.3546527028083801, -0.08014605939388275, 0.25127121806144714, 0.26265501976013184, 0.37226706743240356, 0.2566010057926178, -0.4789579510688782, 0.1062573790550232, 0.10781732201576233, 0.04554888233542442, -0.0009182840585708618, -0.29108622670173645, 0.1551474630832672, -0.17326195538043976, -0.1389257311820984, -0.003325946629047394, 0.2878316342830658, 0.06379372626543045, -0.1004117801785469, -0.08179719746112823, -0.018648050725460052, 0.39917367696762085, 0.09399230778217316, 0.34272587299346924, -0.005589539185166359, -0.45076876878738403, 0.15255147218704224, 0.4077532887458801, -0.17452199757099152, 0.04065436124801636, -0.03755363076925278, -0.5376436114311218, 0.09701289981603622, 0.09939024597406387, 0.2559475004673004, 0.3754187822341919, 0.14703336358070374, -0.08113949000835419, 0.17029933631420135, 0.2087477147579193, -0.22947148978710175, 0.1932687908411026, 0.17071393132209778, -0.18337886035442352, 0.15454845130443573, 0.11937162280082703, -0.048576224595308304, -0.3455550968647003, -0.2430790364742279, 0.0013698246330022812, 0.2484547346830368, -0.3865130543708801, 0.1570993810892105, -0.17252281308174133, -0.17727330327033997, -0.387264221906662, 0.18096211552619934, -0.34803155064582825, -0.2757408320903778, -0.14572660624980927, 0.5099319815635681, 0.048095088452100754, -0.06845913827419281, -0.5030997395515442, 0.24348098039627075, 0.04074104130268097, -0.011180439963936806, -0.10295911133289337, 0.05447370558977127, -0.15834596753120422, 0.05285230651497841, 0.5908911228179932, -0.13053447008132935, 0.32393571734428406, 0.02505515329539776, -0.06411895155906677, -0.6373458504676819, -0.3246231973171234, 0.0032318979501724243, -0.31192493438720703, 0.24459554255008698, 0.04260844364762306, 0.10607772320508957, 0.08481376618146896, 0.17022594809532166, 0.030451331287622452, -0.026078147813677788, 0.22423236072063446, 0.04074293002486229, 0.06857888400554657, -0.15665261447429657, 0.0013224482536315918, -0.2466505765914917, 0.04210621863603592, -0.23412646353244781, 0.5732229948043823, 0.0585586242377758, -0.0594615712761879, 0.003469133283942938, -0.056228961795568466, 0.15477976202964783, -0.007933367043733597, -0.18538443744182587, -0.11208023875951767, -0.07416263967752457, 0.47870856523513794, -0.33672937750816345, -0.5930370092391968, 0.24082684516906738, 0.19100935757160187, -0.04206983372569084, -0.05119260028004646, -0.7720368504524231, 0.08853238075971603, -0.12745201587677002, -0.021933412179350853, -0.08738094568252563, -0.29295969009399414, -0.13951803743839264, 0.011820863001048565, 0.08293765038251877, -0.11714143306016922, -0.0578298419713974, -0.11961274594068527, -0.21566691994667053, 0.26996350288391113, -0.027354128658771515, 0.22537684440612793, -0.07624902576208115, 0.4235895276069641, 0.21920768916606903, 0.11885519325733185, 0.16397586464881897, -0.3868443965911865, 0.6360635757446289, 0.09672027081251144, -0.40606454014778137, 0.29698464274406433, 0.03328106552362442, 0.04204343259334564, 0.17179550230503082, -0.02036811038851738, 0.2612023949623108, -0.09669403731822968, 0.1884566694498062, -0.16558071970939636, -0.09249129891395569, -0.08497241139411926, -0.2817384600639343, -0.09179935604333878, -0.06007663160562515, 0.1169147714972496, 0.014304205775260925, -0.427690327167511, 0.10401511192321777, 0.16623389720916748, 0.2004123479127884, 0.06953895092010498, -0.1612098067998886, -0.1465855836868286, -0.5163622498512268, 0.3064156174659729, -0.3047391474246979, 0.08376514166593552, -0.1079491600394249, 0.026892974972724915, 0.07046162337064743, 0.04271874576807022, 0.7142879962921143, 0.12027475982904434, -0.05410005897283554, -0.017037851735949516, 0.055058032274246216, -0.21295873820781708, -0.1079062968492508, -0.19452422857284546, 0.2367740422487259, 0.08351778984069824, 0.24268537759780884, -0.1276816576719284, 0.12537190318107605, 0.4090549349784851, 0.30922970175743103, -0.04324840009212494, -0.034655552357435226, -0.12190784513950348, -0.3169328272342682, 0.09976159781217575, -0.22157278656959534, 0.08885084092617035, 0.040265146642923355, -0.2550775110721588, 0.0386437363922596, -0.05065581947565079, -0.17506879568099976, 0.2592526078224182, -0.03286940976977348, 0.2525988519191742, -0.0021981520112603903, 0.20106932520866394, 0.3622976839542389, 0.1706271767616272, 0.4856017827987671, 0.6616959571838379, 0.23229652643203735, -0.28181177377700806, 0.23051348328590393, -0.08988803625106812, -0.03674853593111038, 0.35893136262893677, -0.18422602117061615, 0.04147307947278023, 0.22468027472496033, 0.3097269535064697, -0.34075015783309937, 0.278911828994751, 0.5714210867881775, -0.016171056777238846, -0.6062681674957275, -0.2759951949119568, 0.5942265391349792, 0.027413737028837204, -0.014276750385761261, 0.378688246011734, 0.3547912836074829, -0.19506147503852844, -0.06783641129732132, -0.29677367210388184, 0.7859033346176147, -0.031026571989059448, 0.07480663806200027, 0.22687548398971558, 0.10705353319644928, 0.5253901481628418, -0.07744038105010986, 0.106851726770401, -0.31040433049201965, -0.313070148229599, -0.2286907285451889, -0.28154096007347107, 0.10214091092348099, -0.2597769498825073, -0.05855734273791313, 0.35641586780548096, 0.2896518111228943, 0.32805708050727844, -0.11624380946159363, 0.5361657738685608, -0.22158825397491455, 0.2861788272857666, 0.14201673865318298, 0.07454835623502731, -0.04069964587688446, 0.4102206528186798, -0.07362130284309387, -0.18723970651626587, -0.17990678548812866, -0.1252828985452652, -0.7686297297477722, 0.022014301270246506, -0.24000334739685059, 0.1698111742734909, 0.011620599776506424, -0.4734475016593933, 0.3663181960582733, 0.3047524392604828, 0.04708072915673256, 0.2690873146057129, -0.5442119836807251, 0.33333054184913635, -0.30251213908195496, -0.270516574382782, 0.216400146484375, -0.019779706373810768, 0.2110147327184677, -0.01615244895219803, -0.11104840040206909, 0.167035311460495, 0.18807163834571838, 0.029575541615486145, -0.3609846234321594, 0.011809580028057098, 0.042052313685417175, -0.24541202187538147, -0.09448286890983582, -0.23820525407791138, 0.08560387790203094, -0.23249156773090363, 0.08629998564720154, 0.1679839789867401, 0.28487953543663025, -0.09913990646600723, 0.14593461155891418, -0.12387333810329437, -0.15986663103103638, 0.3275274336338043, -0.2471943199634552, -0.34083834290504456, 0.5827610492706299, 0.18045960366725922, -0.12053227424621582, -0.13407526910305023, 0.24526208639144897, 0.19866710901260376, -0.2455821931362152, 0.0007134862244129181, -0.16338972747325897, 0.3555780053138733, 0.06848150491714478, -0.1240977942943573, 0.003590840846300125, -0.19221192598342896, -0.039019107818603516, -0.2285551130771637, -0.12987016141414642, 0.22931800782680511, -0.09773567318916321, 0.12564392387866974, -0.013969939202070236, 0.021551912650465965, -0.01960986666381359, -0.19507549703121185, -0.2318454086780548, 0.30714133381843567, -0.019472699612379074, -0.3883129358291626, 0.16964660584926605, 0.22867390513420105, 0.10521945357322693, -0.19427110254764557, 0.051392585039138794, 0.025615999475121498, -0.12033912539482117, -0.08996231853961945, -0.11030687391757965, 0.13394634425640106, 0.07919187843799591, -0.2982007563114166, -0.15835122764110565, -0.24146775901317596, -0.04097360000014305, 0.031364377588033676, 0.17073211073875427, 0.11449795216321945, 0.13579340279102325, -0.31431788206100464, -0.05040917173027992, -0.05267523229122162, 0.04285236448049545, 0.10132677108049393, -0.025149963796138763, 0.2195001244544983, 0.29392150044441223, 0.26238900423049927, 0.12840355932712555, 0.032759375870227814, -0.29863065481185913, 0.04524647444486618, -0.14886905252933502, 0.06850745528936386, 0.6593413352966309, -0.3328302502632141, 0.008155468851327896, 0.11555104702711105, 0.44998177886009216, 0.42767512798309326, -0.39666152000427246, 0.08587199449539185, 0.44117337465286255, 0.10542167723178864, -0.28760117292404175, 0.04167476296424866, 0.3493266999721527, 0.1687147319316864, 0.03242075815796852, 0.03129372000694275, 0.015601757913827896, 0.06234566867351532, -0.3410564064979553, 0.17322558164596558, 0.6106494665145874, 0.14810270071029663, 0.3028058409690857, 0.21169829368591309, -0.17480964958667755, 0.060927677899599075, 0.19732631742954254, 0.3480237126350403, 0.28743937611579895, 0.8067834973335266, -0.11532162874937057, 0.06351688504219055, -0.12206480652093887, -0.03273583576083183, 0.20738369226455688, -0.2828802466392517, -0.14465771615505219, 0.005090594291687012, -0.3425268530845642, 0.014658108353614807, 0.03863685950636864, 0.3712446689605713, -0.4374454915523529, -0.01914319582283497, -0.31640470027923584, 0.2571118175983429, 0.06313707679510117, 0.21923595666885376, 0.11178982257843018, -0.17448830604553223, 0.12603303790092468, 0.2345227599143982, 0.04966338351368904, -0.3084155321121216, 0.03868153691291809, 0.24648521840572357, -0.30527186393737793, -0.17982754111289978, -0.12174851447343826, -0.05406241863965988, 0.29892030358314514, -0.10084053874015808, -0.16456738114356995, 0.05975077673792839, 0.07987387478351593, 0.08095778524875641, 0.4073706567287445, 0.3968693017959595, -0.01991334557533264, 0.113441601395607, -0.15789757668972015, -0.02591554820537567, -0.09657614678144455, 0.01627029851078987, 0.19051480293273926, 0.18873682618141174, 0.12375365197658539, 0.15905135869979858, 0.07807459682226181, -0.013524293899536133, 0.26436153054237366, -0.08336645364761353, 0.24419045448303223, -0.37507164478302, -0.08931981772184372, -0.44476214051246643, -0.26665255427360535, -0.4011320173740387, -0.3624512553215027, -0.20459675788879395, -0.03504491224884987, 0.37377995252609253, 0.09741559624671936, 0.06898767501115799, -0.19883474707603455, 0.025002148002386093, 0.21860679984092712, 0.3465711772441864, 0.5203744769096375, 0.3331853747367859, -0.1234361007809639, -0.18450826406478882, -0.621947705745697, 0.3399965167045593, -0.10205936431884766, 0.13851067423820496, -0.03980737179517746, -0.23739874362945557, -0.1253928542137146, -0.04911564290523529, 0.07032788544893265, 0.2666773200035095, 0.022080883383750916, 0.025151733309030533, -0.14860951900482178, -0.10574367642402649, -0.032357946038246155, 0.17805133759975433, -0.249723419547081, 0.11594704538583755, 0.42861056327819824, -0.19348476827144623, -0.038155920803546906, -0.10561421513557434, 0.2288675606250763, -0.4455745220184326, -0.15178263187408447, 0.34394344687461853, 0.07082745432853699, 0.4219902753829956, 0.031592704355716705, -0.16861075162887573, -0.6223101615905762, -0.31390535831451416, -0.21483014523983002, 0.3909347951412201, -0.009297408163547516, 0.16230586171150208, -0.017128851264715195, -0.34949275851249695, -0.15749505162239075, 0.41872283816337585, -0.19969260692596436, 0.20297499001026154, -0.1779976338148117, -0.06730823218822479, -0.1988096833229065, 0.1647152155637741, 0.3000580966472626, -0.050148770213127136, -0.16542017459869385, 0.04256202280521393, -0.12891046702861786, -0.16967979073524475, 0.4922361671924591, -0.4801473021507263, -0.008618736639618874, 0.10533773899078369, 0.28935253620147705, 0.28302913904190063, -0.12802927196025848, -0.42600876092910767, 0.036983929574489594, 0.26126617193222046, 0.05341954529285431, -0.2077559232711792, 0.18339043855667114, -0.2805332839488983, 0.12022237479686737, 0.1108856201171875, 0.7238492965698242, -0.001401122659444809, -0.4778091013431549, 0.2813478410243988, 0.036413632333278656 ]
https://github.com/huggingface/datasets/issues/4217
Big_Patent dataset broken
We should find out if the dataset license allows redistribution and contact the data owners to propose them to host their data on our Hub.
## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No
25
Big_Patent dataset broken ## Dataset viewer issue for '*big_patent*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/big_patent/viewer/all/train)* *Unable to view because it says FileNotFound, also cannot download it through the python API* Am I the one who added this dataset ? No We should find out if the dataset license allows redistribution and contact the data owners to propose them to host their data on our Hub.
[ -0.24777905642986298, 0.056216418743133545, -0.019161999225616455, 0.4259553551673889, 0.0408799946308136, -0.015736203640699387, 0.15935471653938293, 0.28465473651885986, 0.2502850294113159, -0.03454683721065521, -0.18267907202243805, 0.05056503415107727, -0.3296602964401245, 0.3069315254688263, 0.27073195576667786, 0.2027588188648224, 0.17531439661979675, -0.06093105673789978, -0.058392688632011414, -0.033285826444625854, 0.1193859875202179, -0.03754745423793793, -0.1214299201965332, 0.034306012094020844, -0.32166361808776855, 0.11081289499998093, 0.004001369699835777, -0.019555576145648956, -0.42777931690216064, -0.5958425998687744, 0.043115004897117615, 0.1574823409318924, 0.06375177204608917, 0.6245167255401611, -0.000113527690700721, 0.032473303377628326, 0.09180320054292679, 0.007680213078856468, 0.1037893146276474, 0.22315257787704468, -0.07521413266658783, -0.0984354019165039, -0.32117563486099243, 0.10187920182943344, -0.06693056970834732, -0.26542115211486816, 0.034034378826618195, 0.0952831357717514, 0.16031143069267273, 0.47609689831733704, 0.17284351587295532, 0.10971838235855103, 0.43317630887031555, -0.2518753707408905, 0.10983218252658844, 0.023116588592529297, -0.16375280916690826, 0.4410640299320221, 0.25497937202453613, -0.10713841766119003, -0.21426746249198914, 0.21916238963603973, -0.22292815148830414, -0.07347190380096436, 0.32855460047721863, -0.21557848155498505, -0.07137652486562729, -0.3233068585395813, 0.0722045749425888, 0.4039889872074127, 0.5055608153343201, 0.02116897515952587, -0.2014102339744568, -0.06406204402446747, 0.2700836956501007, -0.32992053031921387, 0.07734987884759903, 0.2904394567012787, 0.1693696826696396, 0.3677116930484772, -0.1075659766793251, -0.5588874816894531, -0.3503517508506775, 0.1444004625082016, -0.4597334563732147, 0.17707419395446777, -0.11088383197784424, 0.10694894194602966, -0.16193416714668274, -0.0779799222946167, 0.35689103603363037, 0.023740002885460854, -0.10198275744915009, -0.0921626165509224, 0.010210361331701279, -0.032741717994213104, -0.008398681879043579, 0.4019443690776825, 0.22689130902290344, 0.16573630273342133, 0.0032815178856253624, -0.03299010545015335, -0.3733275830745697, -0.05401323735713959, 0.002952825278043747, -0.09525984525680542, -0.47598105669021606, 0.2293429970741272, 0.43133795261383057, -0.00841163657605648, 0.024815503507852554, 0.07722754776477814, -0.3248443305492401, 0.05896231532096863, -0.4488992989063263, -0.3561587631702423, 0.34430932998657227, -0.1766785830259323, -0.3023039400577545, 0.1645924299955368, -0.07443960756063461, 0.2488562911748886, 0.2920152246952057, 0.26178380846977234, -0.1667208969593048, -0.003114905208349228, -0.2969338893890381, 0.002828674390912056, -0.054982662200927734, -0.29572412371635437, -0.20066986978054047, 0.15624049305915833, 0.22034987807273865, 0.09874237328767776, 0.2524965703487396, -0.2840023636817932, 0.19382429122924805, -0.12680873274803162, 0.2541545033454895, -0.09360505640506744, -0.028107741847634315, -0.013949192129075527, -0.004852868616580963, 0.25127318501472473, -0.14700466394424438, 0.027605613693594933, -0.07249635457992554, -0.26494234800338745, -0.09634841978549957, 0.1644980013370514, -0.2940458357334137, -0.45309534668922424, -0.37509334087371826, 0.13153350353240967, -0.5852458477020264, -0.26092854142189026, -0.23114913702011108, 0.03423864021897316, -0.26746290922164917, -0.26772505044937134, -0.019654452800750732, 0.0002829357981681824, 0.11174429953098297, -0.17831088602542877, 0.1738472878932953, 0.39838242530822754, -0.2524576485157013, 0.21748104691505432, -0.1196761503815651, 0.17364700138568878, -0.2653917372226715, 0.17495186626911163, -0.2341584414243698, 0.35335463285446167, -0.3386549651622772, -0.010632380843162537, 0.3233022093772888, -0.43961289525032043, -0.8709554672241211, -0.2259238362312317, -0.2741072475910187, -0.28101834654808044, 0.1499263346195221, 0.08825229853391647, 0.07607238739728928, -0.14945082366466522, -0.06920759379863739, 0.09335886687040329, 0.200581356883049, -0.050761930644512177, -0.08980390429496765, -0.15896391868591309, 0.12291645258665085, 0.2841264605522156, 0.407184898853302, 0.065766841173172, 0.16227759420871735, 0.283061146736145, 0.2915273904800415, 0.13702140748500824, -0.06077645719051361, 0.10637830942869186, 0.5180161595344543, -0.044238366186618805, 0.030851464718580246, -0.21500086784362793, 0.041193097829818726, 0.05082940310239792, 0.1926494687795639, -0.014982394874095917, 0.013246618211269379, -0.18408669531345367, -0.49352315068244934, -0.0885171890258789, -0.2331610471010208, -0.18386487662792206, 0.13506652414798737, -0.11569564044475555, -0.0804944783449173, 0.17619645595550537, -0.19975794851779938, 0.14912402629852295, 0.0848652794957161, 0.08597738295793533, -0.2589832842350006, 0.28537413477897644, -0.021350840106606483, 0.17326150834560394, -0.01787213422358036, 0.2827552556991577, 0.10618022084236145, -0.12573282420635223, 0.1347448229789734, 0.14821761846542358, -0.20084862411022186, 0.2596472501754761, 0.30468595027923584, 0.2495490312576294, 0.41499221324920654, -0.5091155767440796, 0.18898223340511322, 0.02910778671503067, 0.03919876739382744, 0.07530588656663895, -0.11060438305139542, 0.06420931220054626, -0.17510272562503815, -0.2741692066192627, -0.19584204256534576, 0.3262772858142853, 0.14788219332695007, 0.013950731605291367, -0.0847119688987732, 0.03901667892932892, 0.19251838326454163, 0.22253495454788208, 0.06569385528564453, 0.006403811275959015, -0.19110216200351715, 0.22695571184158325, 0.4016900360584259, -0.15666259825229645, 0.07444887608289719, -0.09516973048448563, -0.44897520542144775, 0.15907815098762512, 0.27876442670822144, 0.04083846136927605, 0.37880420684814453, 0.1357000172138214, 0.07664021104574203, 0.12391038239002228, 0.28583282232284546, -0.2273780107498169, 0.1964513063430786, 0.028315015137195587, -0.18969865143299103, 0.14341726899147034, 0.14674702286720276, -0.13305161893367767, -0.4281602203845978, -0.3014092743396759, 0.2235087901353836, 0.29836225509643555, -0.2560969889163971, -0.11823482811450958, -0.13803088665008545, 0.013980872929096222, -0.341708779335022, -0.17769265174865723, -0.3156517744064331, -0.2239895462989807, 0.12279975414276123, 0.5403934121131897, 0.13409702479839325, -0.16179512441158295, -0.5449893474578857, 0.3747401237487793, -0.052425190806388855, 0.2101702243089676, -0.10627961158752441, -0.0033261976204812527, -0.10109186917543411, 0.1224830150604248, 0.42580634355545044, -0.09929407387971878, 0.26385971903800964, 0.05611744523048401, 0.08683755993843079, -0.5259374976158142, -0.3375799059867859, 0.0412319153547287, -0.24007849395275116, 0.14040863513946533, -0.03431493043899536, 0.10576930642127991, 0.02979251742362976, 0.20190535485744476, -0.07032682001590729, -0.08593059331178665, 0.11894732713699341, 0.05570968985557556, -0.031112173572182655, -0.11081822961568832, 0.09116020798683167, -0.20294246077537537, -0.36794313788414, -0.3289233148097992, 0.5081058740615845, 0.06255263090133667, -0.06628745794296265, -0.13943058252334595, -0.11771034449338913, 0.1370382010936737, -0.027645176276564598, -0.2235765904188156, -0.2555423080921173, -0.3438193202018738, 0.4419543445110321, -0.4067172110080719, -0.40652701258659363, 0.20915189385414124, 0.23949556052684784, 0.040874969214200974, -0.18359990417957306, -0.707344651222229, -0.01934092305600643, 0.0277060829102993, 0.17184937000274658, 0.006295688450336456, -0.1744503229856491, -0.006077952682971954, -0.12110821157693863, 0.04540803283452988, 0.00000546872615814209, 0.18566365540027618, -0.19157716631889343, 0.09518472850322723, 0.23146256804466248, -0.06911496073007584, -0.13068002462387085, -0.050187334418296814, 0.44508862495422363, 0.29189378023147583, 0.23042427003383636, 0.29158568382263184, -0.18067705631256104, 0.4566563367843628, 0.07714711129665375, -0.413332462310791, 0.3081807792186737, 0.152415931224823, 0.014430146664381027, 0.11009582132101059, 0.07111336290836334, 0.42771849036216736, -0.03103785589337349, -0.02812441997230053, -0.13948310911655426, -0.18360835313796997, -0.1542036235332489, -0.20576661825180054, -0.1504758596420288, -0.10408134758472443, 0.007484883069992065, -0.1839078664779663, -0.5227751731872559, 0.1787066012620926, 0.10818158090114594, 0.14459013938903809, 0.08350206911563873, -0.26100683212280273, -0.13799770176410675, -0.5245220065116882, 0.19158224761486053, -0.3934316337108612, 0.06508886069059372, -0.033876001834869385, 0.11800204962491989, 0.1965136080980301, 0.03721115365624428, 0.6946864724159241, 0.09264693409204483, -0.08339755237102509, -0.13894058763980865, 0.215981125831604, -0.20339828729629517, -0.18858551979064941, -0.10992541909217834, 0.3034234046936035, -0.15935881435871124, 0.2352578341960907, -0.1405467391014099, 0.10766155272722244, 0.3717747628688812, 0.11167100816965103, -0.15534070134162903, 0.06980609893798828, -0.03626871854066849, -0.4179825484752655, 0.03807435184717178, -0.15525302290916443, 0.23116768896579742, 0.1752949208021164, -0.2855871021747589, -0.008220374584197998, -0.14098136126995087, 0.04086485505104065, 0.40089190006256104, 0.07592909038066864, 0.1886674463748932, 0.11374443769454956, 0.12373055517673492, 0.22033537924289703, 0.020955029875040054, 0.30876582860946655, 0.6771794557571411, 0.27055689692497253, -0.2837829887866974, 0.07641659677028656, -0.11210395395755768, 0.05435255542397499, 0.4434894025325775, -0.08467042446136475, 0.08175159990787506, 0.16414710879325867, 0.16160839796066284, -0.3852699398994446, 0.36940985918045044, 0.3742760717868805, -0.1107655018568039, -0.5664905905723572, -0.1586858332157135, 0.5217393040657043, 0.10740388929843903, -0.1175423413515091, 0.30238619446754456, 0.274730384349823, -0.1892455667257309, 0.025765933096408844, -0.32036229968070984, 0.9440209865570068, 0.0757860392332077, 0.22751381993293762, 0.14484605193138123, 0.2845269441604614, 0.5382254123687744, -0.32039743661880493, 0.20252278447151184, -0.3197067975997925, -0.383274108171463, -0.3004179298877716, -0.11359497159719467, 0.02574842795729637, -0.1769772171974182, -0.014267072081565857, 0.24671097099781036, 0.3059348464012146, 0.5079949498176575, -0.20640836656093597, 0.48385316133499146, -0.26549312472343445, 0.12066090106964111, -0.09316664189100266, 0.11108683049678802, -0.14085820317268372, 0.47321897745132446, -0.10811714828014374, -0.24352209270000458, -0.30403995513916016, -0.047738563269376755, -0.6280495524406433, -0.14418092370033264, -0.09038084745407104, 0.27016985416412354, -0.10589247941970825, -0.281377375125885, 0.13430587947368622, 0.13736027479171753, 0.1168905645608902, 0.2293868511915207, -0.5614850521087646, 0.1912492960691452, -0.1051763966679573, -0.3858596980571747, 0.16044881939888, -0.06063491851091385, 0.06767161190509796, -0.09824424982070923, -0.2300371378660202, 0.3150571286678314, 0.27963337302207947, -0.020131170749664307, -0.5052194595336914, 0.11691601574420929, 0.374963641166687, -0.18324172496795654, 0.002237139269709587, -0.012796275317668915, -0.014428630471229553, -0.18491117656230927, 0.12354248762130737, 0.2762910723686218, -0.13127803802490234, -0.002337135374546051, 0.19751392304897308, -0.06851436197757721, -0.08225588500499725, 0.30167338252067566, 0.08644166588783264, -0.21219566464424133, 0.5682055950164795, -0.11877427995204926, 0.08138258010149002, -0.11480426788330078, 0.33931538462638855, 0.27249377965927124, -0.47325044870376587, -0.06922383606433868, -0.11652994900941849, 0.03161630034446716, 0.18446223437786102, -0.05851760134100914, 0.2658235430717468, -0.23434093594551086, -0.22529087960720062, -0.15042831003665924, -0.28867781162261963, 0.1347649097442627, 0.029264438897371292, 0.24727942049503326, -0.06165597587823868, 0.04535045847296715, -0.24177852272987366, -0.18987247347831726, -0.26559799909591675, 0.3695757985115051, -0.07408781349658966, -0.2528587877750397, -0.15314292907714844, 0.09500758349895477, -0.15314456820487976, -0.1488318294286728, 0.03926724195480347, 0.11476217955350876, -0.1449795812368393, -0.15829253196716309, -0.08183839917182922, 0.15512169897556305, 0.13113752007484436, -0.16220612823963165, -0.2285994291305542, -0.1969517469406128, -0.02207479625940323, 0.20208954811096191, 0.278475821018219, 0.19910094141960144, 0.24104593694210052, -0.23945148289203644, 0.21287016570568085, -0.1141580268740654, 0.10764701664447784, 0.29472216963768005, 0.19307908415794373, 0.16768965125083923, 0.24298863112926483, 0.2899016737937927, 0.1943369358778, -0.0021600276231765747, -0.1992354840040207, 0.07140830904245377, -0.09197773039340973, 0.11074143648147583, 0.7033237218856812, -0.13412941992282867, 0.18456429243087769, 0.21434779465198517, 0.2560864984989166, 0.550729513168335, -0.32259076833724976, 0.12127688527107239, 0.39572063088417053, 0.15799930691719055, -0.42481717467308044, -0.21779586374759674, 0.3747658133506775, 0.09570588171482086, -0.0063089244067668915, 0.06134134531021118, 0.1391432285308838, 0.20989245176315308, -0.4991375207901001, 0.25712311267852783, 0.4406008720397949, 0.12446843832731247, 0.29984498023986816, 0.19041384756565094, -0.27223801612854004, -0.05036907270550728, 0.21112500131130219, 0.15034975111484528, 0.11430030316114426, 0.7677791118621826, -0.05523041635751724, 0.4288971424102783, -0.0023528747260570526, -0.19422873854637146, 0.4901497960090637, -0.17787757515907288, -0.10214291512966156, -0.12874364852905273, -0.15761086344718933, 0.12605048716068268, 0.025498390197753906, 0.2680871784687042, -0.44608253240585327, -0.10440675169229507, -0.5055450797080994, 0.20330336689949036, -0.09007877856492996, 0.16461871564388275, 0.12290623784065247, -0.2078918218612671, 0.17295780777931213, 0.029989127069711685, -0.017569396644830704, -0.2800755500793457, 0.11285610496997833, 0.198790043592453, -0.414237916469574, -0.11729919910430908, -0.2407943308353424, 0.06622916460037231, 0.4120372533798218, -0.0727255716919899, -0.13403327763080597, 0.004477202892303467, -0.05237922817468643, 0.09871096909046173, 0.40832066535949707, 0.3864871859550476, -0.07231530547142029, 0.04813097417354584, -0.0031779156997799873, 0.11325211822986603, -0.09777675569057465, -0.09483356028795242, 0.24129289388656616, 0.18096303939819336, 0.06638172268867493, 0.0870542824268341, 0.12508012354373932, -0.02070254646241665, 0.1187056452035904, -0.04463019594550133, 0.11071527004241943, -0.2734474837779999, 0.0065738484263420105, -0.3220728933811188, -0.35637909173965454, -0.25069504976272583, -0.3050196170806885, -0.3007871210575104, -0.049609359353780746, 0.43620309233665466, 0.012426821514964104, 0.19045129418373108, -0.28911659121513367, 0.047147370874881744, -0.06093825027346611, 0.43558332324028015, 0.3634759187698364, 0.19255930185317993, -0.14770637452602386, -0.028913967311382294, -0.5777499675750732, 0.45101428031921387, -0.11750847101211548, 0.1545933336019516, -0.013780808076262474, -0.2638590335845947, 0.012314975261688232, -0.009248733520507812, -0.17243771255016327, 0.00012145680375397205, -0.014838267117738724, 0.197715625166893, -0.20237861573696136, -0.036404799669981, 0.27070754766464233, 0.21820573508739471, -0.1027020514011383, -0.027482835575938225, 0.5621615052223206, 0.03877203166484833, 0.0010913945734500885, -0.06058233976364136, 0.14145126938819885, -0.1759781390428543, -0.036260977387428284, 0.2705143392086029, 0.00847106147557497, 0.24493609368801117, 0.11127599328756332, -0.05223438888788223, -0.6938101053237915, -0.36248764395713806, -0.26000112295150757, 0.29613226652145386, 0.029263367876410484, 0.13773198425769806, 0.019365305081009865, -0.3553062975406647, -0.06695899367332458, 0.2212541699409485, -0.13909071683883667, 0.16166600584983826, -0.16219308972358704, -0.13803373277187347, -0.3129086494445801, 0.09385790675878525, 0.2605367600917816, -0.08161120861768723, -0.1365683674812317, -0.10151386260986328, -0.008842557668685913, -0.28072187304496765, 0.6210668087005615, -0.4469190537929535, -0.0003243144601583481, -0.09465604275465012, 0.2639457583427429, 0.34380072355270386, -0.10663513094186783, -0.5415679216384888, 0.09203822165727615, 0.29891401529312134, -0.1535082757472992, 0.03897226229310036, 0.33218812942504883, -0.11195765435695648, 0.12253120541572571, 0.05858154967427254, 0.7863188982009888, -0.15934446454048157, -0.4898276925086975, 0.21897351741790771, 0.05229175090789795 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi @pietrolesci, thanks for reporting. Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**. To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**. However, for the moment `push_to_hub` does not support specifying different configurations. IMHO, we should implement this.
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
69
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` Hi @pietrolesci, thanks for reporting. Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**. To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**. However, for the moment `push_to_hub` does not support specifying different configurations. IMHO, we should implement this.
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi @albertvillanova, Thanks a lot for your reply! I got it now. The strange thing for me was to have it correctly working (i.e., DatasetDict with different features in some datasets) locally and not on the Hub. It would be great to have configuration supported by `push_to_hub`. Personally, this latter functionality allowed me to iterate rather quickly on dataset curation. Again, thanks for your time @albertvillanova! Best, Pietro
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
68
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` Hi @albertvillanova, Thanks a lot for your reply! I got it now. The strange thing for me was to have it correctly working (i.e., DatasetDict with different features in some datasets) locally and not on the Hub. It would be great to have configuration supported by `push_to_hub`. Personally, this latter functionality allowed me to iterate rather quickly on dataset curation. Again, thanks for your time @albertvillanova! Best, Pietro
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi! Yes, we should override `DatasetDict.__setitem__` and throw an error if features dictionaries are different. `DatasetDict` is a subclass of `dict`, so `DatasetDict.{update/setdefault}` need to be overridden as well. We could avoid this by subclassing `UserDict`, but then we would get the name collision - `DatasetDict.data` vs. `UserDict.data`. This makes me think we should rename the `data` attribute of `DatasetDict`/`Dataset` for easier dict subclassing (would also simplify https://github.com/huggingface/datasets/pull/3997) and to follow good Python practices. Another option is to have a custom `UserDict` class in `py_utils`, but it can be hard to keep this class consistent with the built-in `UserDict`. @albertvillanova @lhoestq wdyt?
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
102
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` Hi! Yes, we should override `DatasetDict.__setitem__` and throw an error if features dictionaries are different. `DatasetDict` is a subclass of `dict`, so `DatasetDict.{update/setdefault}` need to be overridden as well. We could avoid this by subclassing `UserDict`, but then we would get the name collision - `DatasetDict.data` vs. `UserDict.data`. This makes me think we should rename the `data` attribute of `DatasetDict`/`Dataset` for easier dict subclassing (would also simplify https://github.com/huggingface/datasets/pull/3997) and to follow good Python practices. Another option is to have a custom `UserDict` class in `py_utils`, but it can be hard to keep this class consistent with the built-in `UserDict`. @albertvillanova @lhoestq wdyt?
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
I would keep things simple and keep subclassing dict. Regarding the features check, I guess this can be done only for `push_to_hub` right ? It is the only function right now that requires the underlying datasets to be splits (e.g. train/test) and have the same features. Note that later you will be able to push datasets with different features as different dataset **configurations** (similarly to the [GLUE subsets](https://huggingface.co/datasets/glue) for example). We will work on this soon
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
76
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` I would keep things simple and keep subclassing dict. Regarding the features check, I guess this can be done only for `push_to_hub` right ? It is the only function right now that requires the underlying datasets to be splits (e.g. train/test) and have the same features. Note that later you will be able to push datasets with different features as different dataset **configurations** (similarly to the [GLUE subsets](https://huggingface.co/datasets/glue) for example). We will work on this soon
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi @lhoestq, Returning to this thread to ask whether the possibility to create `DatasetDict` with different configurations will be supported in the future. Best, Pietro
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
25
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` Hi @lhoestq, Returning to this thread to ask whether the possibility to create `DatasetDict` with different configurations will be supported in the future. Best, Pietro
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
DatasetDict is likely to always require the datasets to have the same columns and types, while different configurations may have different columns and types. Why would you like to see that ? If it's related to push_to_hub, we plan to allow pushing several configs, but not using DatasetDict
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
48
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` DatasetDict is likely to always require the datasets to have the same columns and types, while different configurations may have different columns and types. Why would you like to see that ? If it's related to push_to_hub, we plan to allow pushing several configs, but not using DatasetDict
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi @lhoestq and @pietrolesci, I have been curious about this question as well. I don't have experience working with different configurations, but I can give a bit more detail on the work flow that I have been using with `Dataset_dict`. As @pietrolesci mentions, I have been using `push_to_hub` to quickly iterate on dataset curation for different ML experiments - locally I create a set of dataset splits e.g. `train/val/test/inference`, then convert them to `HF_Datasets` and finally a to `Dataset_Dict` to `push_to_hub`. Where I have run into issues is when I want to include different metadata for different splits. For example, I have situations where I only have meta-data for one of the splits (e.g. test) or situations where I am working with `inference` data that does not have labels. Currently I use a rather hacky work around by adding "dummy" columns for missing columns to avoid the error: ``` ValueError: All datasets in `DatasetDict` should have the same features ``` I am curious why `DatasetDict` will likely not support this functionality? I don't know much about working with different configurations, but allowing for different columns between datasets / splits would be a very helpful use-case for me. Are there any docs for using different configuration OR a more info about incorporating it with `push_to_hub`. Best wishes, Jonathan
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
217
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` Hi @lhoestq and @pietrolesci, I have been curious about this question as well. I don't have experience working with different configurations, but I can give a bit more detail on the work flow that I have been using with `Dataset_dict`. As @pietrolesci mentions, I have been using `push_to_hub` to quickly iterate on dataset curation for different ML experiments - locally I create a set of dataset splits e.g. `train/val/test/inference`, then convert them to `HF_Datasets` and finally a to `Dataset_Dict` to `push_to_hub`. Where I have run into issues is when I want to include different metadata for different splits. For example, I have situations where I only have meta-data for one of the splits (e.g. test) or situations where I am working with `inference` data that does not have labels. Currently I use a rather hacky work around by adding "dummy" columns for missing columns to avoid the error: ``` ValueError: All datasets in `DatasetDict` should have the same features ``` I am curious why `DatasetDict` will likely not support this functionality? I don't know much about working with different configurations, but allowing for different columns between datasets / splits would be a very helpful use-case for me. Are there any docs for using different configuration OR a more info about incorporating it with `push_to_hub`. Best wishes, Jonathan
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
> I am curious why DatasetDict will likely not support this functionality? There's a possibility we may merge the Dataset and DatasetDict classes. The DatasetDict purpose was to define a way to get the train/test splits of a dataset. see the discussions at https://github.com/huggingface/datasets/issues/5189 > Are there any docs for using different configuration OR a more info about incorporating it with push_to_hub. There's a PR open to allow to upload a dataset with a certain configuration name. Then later you can reload this specific configuration using `load_dataset(ds_name, config_name)` see the PR at https://github.com/huggingface/datasets/pull/5213
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
93
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` > I am curious why DatasetDict will likely not support this functionality? There's a possibility we may merge the Dataset and DatasetDict classes. The DatasetDict purpose was to define a way to get the train/test splits of a dataset. see the discussions at https://github.com/huggingface/datasets/issues/5189 > Are there any docs for using different configuration OR a more info about incorporating it with push_to_hub. There's a PR open to allow to upload a dataset with a certain configuration name. Then later you can reload this specific configuration using `load_dataset(ds_name, config_name)` see the PR at https://github.com/huggingface/datasets/pull/5213
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4211
DatasetDict containing Datasets with different features when pushed to hub gets remapped features
Hi, regarding the following information: > Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**. > > To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**. Altough this is often implied (such as how else would `DatasetDict` be able to process multiple splits in the same way?), I would expect it to be written somewhere in the docs plainly and maybe even in bold. Also I would expect to see it in multiple places such as: - in docstring of `DatasetDict` - in nlp/image/audio guides on how to create a dataset - [in conceptual guide on how to create a loading script](https://huggingface.co/docs/datasets/main/en/about_dataset_load) I think this addition would benefit the docs, especially when you guide a newbie (such as me) through the process of creating a dataset. As I said, you somehow suspect that this is in fact the case, but without reading it in the docs you cannot be sure.
Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ```
180
DatasetDict containing Datasets with different features when pushed to hub gets remapped features Hi there, I am trying to load a dataset to the Hub. This dataset is a `DatasetDict` composed of various splits. Some splits have a different `Feature` mapping. Locally, the DatasetDict preserves the individual features but if I `push_to_hub` and then `load_dataset`, the features are all the same. Dataset and code to reproduce available [here](https://huggingface.co/datasets/pietrolesci/robust_nli). In short: I have 3 feature mapping ```python Tri_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]), } ) Ent_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-entailment", "entailment"]), } ) Con_features = Features( { "idx": Value(dtype="int64"), "premise": Value(dtype="string"), "hypothesis": Value(dtype="string"), "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]), } ) ``` Then I create different datasets ```python dataset_splits = {} for split in df["split"].unique(): print(split) df_split = df.loc[df["split"] == split].copy() if split in Tri_dataset: df_split["label"] = df_split["label"].map({"entailment": 0, "neutral": 1, "contradiction": 2}) ds = Dataset.from_pandas(df_split, features=Tri_features) elif split in Ent_bin_dataset: df_split["label"] = df_split["label"].map({"non-entailment": 0, "entailment": 1}) ds = Dataset.from_pandas(df_split, features=Ent_features) elif split in Con_bin_dataset: df_split["label"] = df_split["label"].map({"non-contradiction": 0, "contradiction": 1}) ds = Dataset.from_pandas(df_split, features=Con_features) else: print("ERROR:", split) dataset_splits[split] = ds datasets = DatasetDict(dataset_splits) ``` I then push to hub ```python datasets.push_to_hub("pietrolesci/robust_nli", token="<token>") ``` Finally, I load it from the hub ```python datasets_loaded_from_hub = load_dataset("pietrolesci/robust_nli") ``` And I get that ```python datasets["LI_TS"].features != datasets_loaded_from_hub["LI_TS"].features ``` since ```python "label": ClassLabel(num_classes=2, names=["non-contradiction", "contradiction"]) ``` gets remapped to ```python "label": ClassLabel(num_classes=3, names=["entailment", "neutral", "contradiction"]) ``` Hi, regarding the following information: > Please note that this is a design purpose: a `DatasetDict` has the same features for all its datasets. Normally, a `DatasetDict` is composed of several sub-datasets each corresponding to a different **split**. > > To handle sub-datasets with different features, we use another approach: use different **configurations** instead of **splits**. Altough this is often implied (such as how else would `DatasetDict` be able to process multiple splits in the same way?), I would expect it to be written somewhere in the docs plainly and maybe even in bold. Also I would expect to see it in multiple places such as: - in docstring of `DatasetDict` - in nlp/image/audio guides on how to create a dataset - [in conceptual guide on how to create a loading script](https://huggingface.co/docs/datasets/main/en/about_dataset_load) I think this addition would benefit the docs, especially when you guide a newbie (such as me) through the process of creating a dataset. As I said, you somehow suspect that this is in fact the case, but without reading it in the docs you cannot be sure.
[ 0.09506799280643463, -0.5818794965744019, -0.014974513091146946, 0.34648460149765015, -0.00623534619808197, -0.08601406216621399, 0.30619338154792786, 0.1616925299167633, 0.37349310517311096, -0.017494305968284607, -0.2923353612422943, 0.6108015775680542, 0.1393585205078125, 0.36252322793006897, 0.008039930835366249, 0.11031655967235565, 0.26802152395248413, 0.11517190933227539, -0.046816326677799225, -0.32213789224624634, -0.04801112040877342, 0.17609433829784393, -0.04205045849084854, 0.00043817609548568726, -0.45953166484832764, 0.1891002506017685, -0.10535197705030441, 0.22116467356681824, 0.17094466090202332, -0.29803118109703064, 0.3451835513114929, 0.45997926592826843, -0.06770984828472137, 0.1324416846036911, -0.00011771191202569753, 0.06370872259140015, -0.14187827706336975, -0.17928268015384674, -0.03508995473384857, -0.0987013727426529, -0.12205693870782852, -0.2516454756259918, 0.17710940539836884, -0.4556097686290741, -0.1078762412071228, 0.17864777147769928, -0.3233383893966675, -0.22462746500968933, 0.19412830471992493, -0.2187996357679367, 0.16489149630069733, 0.21120719611644745, -0.34085962176322937, 0.029900256544351578, 0.015891507267951965, 0.31732335686683655, -0.21824707090854645, 0.0699782744050026, 0.18461742997169495, 0.08055298030376434, -0.15924996137619019, 0.32775235176086426, -0.1843244880437851, 0.17427851259708405, 0.21001854538917542, -0.10529647022485733, 0.07281966507434845, -0.11695453524589539, 0.00006579235196113586, 0.05694717913866043, -0.015052430331707, -0.23648205399513245, -0.18937340378761292, -0.4711379110813141, -0.27461478114128113, -0.007210204377770424, 0.02495131641626358, 0.0018961671739816666, 0.03370549902319908, 0.04928135871887207, -0.14599627256393433, -0.3572990596294403, 0.06081750988960266, -0.06161683797836304, -0.3145318329334259, 0.30431386828422546, -0.06821785867214203, 0.2844632565975189, -0.09685157239437103, 0.019335966557264328, 0.22138237953186035, -0.31279030442237854, 0.058290354907512665, -0.03192189335823059, -0.18471920490264893, -0.03077307902276516, 0.10597679018974304, -0.014393351972103119, 0.06828092783689499, 0.023197364062070847, 0.0228287223726511, 0.2286941409111023, -0.614776074886322, -0.011049993336200714, 0.27370408177375793, 0.09959974884986877, 0.29224637150764465, 0.3191692531108856, 0.01806219294667244, 0.12095216661691666, -0.5683783888816833, 0.12735900282859802, 0.16585350036621094, -0.04057272896170616, 0.2833563983440399, 0.05037311464548111, 0.49864625930786133, -0.16464568674564362, -0.27983081340789795, 0.0045305052772164345, -0.10611359775066376, 0.05437194183468819, 0.060505133122205734, 0.04205021262168884, 0.07910934835672379, 0.3132861256599426, -0.29847627878189087, 0.1700921356678009, -0.3618089556694031, 0.10413513332605362, -0.32418760657310486, -0.11151479184627533, -0.18470555543899536, 0.040084246546030045, 0.3358698785305023, -0.24382361769676208, 0.09091466665267944, 0.16889849305152893, -0.418784499168396, -0.3341595232486725, -0.35542845726013184, -0.000421903096139431, 0.27977192401885986, -0.10174418985843658, -0.04491952434182167, 0.2712634205818176, 0.244295135140419, -0.05425083264708519, -0.27680107951164246, 0.016418274492025375, -0.3279087245464325, -0.052831023931503296, 0.3681180775165558, 0.1403914988040924, -0.2818252444267273, 0.07343724370002747, -0.14261996746063232, 0.2256437987089157, -0.10089794546365738, 0.08671385049819946, 0.06252607703208923, -0.070114865899086, -0.3941499590873718, -0.2160440981388092, -0.018246138468384743, 0.5277423858642578, -0.24564342200756073, -0.13739895820617676, 0.3270348310470581, -0.028432060033082962, -0.06485246866941452, 0.2615799009799957, -0.21763761341571808, 0.08994609862565994, -0.13115142285823822, 0.003638245165348053, 0.29441338777542114, -0.2413078099489212, -0.6630862951278687, 0.060077618807554245, -0.16539281606674194, 0.34941497445106506, -0.21062114834785461, 0.3240298926830292, 0.24563607573509216, 0.052913058549165726, 0.17457807064056396, 0.33355146646499634, 0.1567416787147522, 0.15389496088027954, -0.214538112282753, -0.19342274963855743, 0.2332877516746521, -0.1404779702425003, -0.006398387253284454, 0.0842079371213913, 0.26543107628822327, 0.1956252008676529, 0.34057003259658813, 0.07060736417770386, 0.14525243639945984, 0.03859191760420799, 0.11224031448364258, 0.17093974351882935, 0.19545422494411469, 0.00010465458035469055, -0.541753888130188, 0.36720654368400574, -0.07433584332466125, -0.2584414482116699, -0.1426013857126236, -0.14591410756111145, -0.40994980931282043, -0.14258973300457, -0.4940235912799835, -0.01951967179775238, 0.09764514863491058, 0.02895870804786682, -0.10181498527526855, 0.10751716792583466, -0.04015151411294937, 0.4363601505756378, 0.04434330016374588, 0.02439701184630394, -0.3871603310108185, 0.7273918390274048, 0.14851850271224976, -0.05616036057472229, -0.003206305205821991, 0.3952326476573944, 0.28424492478370667, -0.2556374967098236, -0.18693643808364868, -0.0746174231171608, 0.25945326685905457, 0.43641161918640137, 0.038703978061676025, -0.006655886769294739, 0.3411523699760437, -0.07775285840034485, 0.2727324366569519, 0.08955992758274078, 0.10128467530012131, -0.2605465352535248, -0.31183406710624695, 0.4242393374443054, -0.1822204887866974, 0.10668164491653442, -0.1213158443570137, 0.02946489118039608, 0.17130890488624573, -0.17448706924915314, 0.0045010000467300415, -0.4727225601673126, -0.27541977167129517, 0.0009053051471710205, 0.12031856179237366, 0.2523767054080963, -0.01759197935461998, 0.17961108684539795, 0.5032572746276855, 0.20480304956436157, -0.029067710041999817, -0.17077365517616272, -0.35025399923324585, 0.0041150376200675964, 0.06091737747192383, 0.09238989651203156, 0.20672625303268433, -0.0037565911188721657, -0.07728549838066101, 0.10997199267148972, -0.12671181559562683, -0.07177024334669113, -0.043365977704524994, -0.14328385889530182, 0.09661814570426941, 0.2602480351924896, 0.2619546055793762, -0.05438803508877754, -0.6132259964942932, 0.05569126829504967, 0.34556013345718384, -0.013363981619477272, -0.13954803347587585, -0.06539613753557205, -0.33975982666015625, -0.07688689231872559, -0.32880571484565735, -0.4561459720134735, -0.313758909702301, -0.2691439092159271, -0.002461429685354233, 0.7002809643745422, 0.010675650089979172, 0.15892183780670166, -0.0272343959659338, 0.12131624668836594, -0.008898982778191566, -0.24273191392421722, 0.13275423645973206, -0.23068533837795258, -0.0557277649641037, -0.042332250624895096, 0.08376513421535492, 0.33368462324142456, 0.2694583535194397, -0.027425212785601616, 0.12064513564109802, -0.5092961192131042, -0.12678740918636322, -0.01199323683977127, -0.11897839605808258, -0.042529232800006866, -0.1129024475812912, -0.02851606160402298, -0.06128854304552078, -0.0756630077958107, 0.2696450352668762, -0.2165142148733139, -0.14206844568252563, -0.04729226231575012, 0.06661034375429153, -0.17140908539295197, 0.19557851552963257, -0.4494319260120392, -0.13572311401367188, -0.22479642927646637, 0.15764081478118896, -0.0643363744020462, 0.1829788088798523, 0.2231733202934265, -0.0807807520031929, -0.23934032022953033, 0.22586911916732788, -0.23465822637081146, -0.38212379813194275, 0.12909136712551117, -0.00278564915060997, -0.03945423662662506, -0.1888732761144638, -0.15936818718910217, -0.174464613199234, 0.1327531486749649, 0.11039768159389496, -0.4787457585334778, -0.07427360862493515, -0.26981106400489807, 0.40280935168266296, 0.2504802346229553, -0.03355703502893448, 0.3964942693710327, 0.12814660370349884, 0.13260819017887115, -0.08273370563983917, -0.33232343196868896, 0.24790653586387634, 0.632041335105896, -0.17351895570755005, -0.22748982906341553, -0.019088882952928543, -0.08675746619701385, 0.18674811720848083, 0.1488424688577652, -0.04887159541249275, 0.6051712036132812, 0.15363357961177826, 0.16259706020355225, -0.23535966873168945, -0.43063080310821533, -0.07225216925144196, -0.0748172253370285, -0.057700421661138535, 0.2817772328853607, -0.02588697150349617, -0.2112589031457901, 0.0631103590130806, -0.4360707700252533, 0.150654137134552, -0.45695027709007263, -0.24100984632968903, -0.3659275770187378, -0.10508894175291061, 0.18235647678375244, -0.030935373157262802, -0.42909157276153564, -0.14073845744132996, 0.09131450951099396, -0.03564539551734924, 0.15400557219982147, -0.020300187170505524, -0.6295239329338074, -0.1279314160346985, -0.23216167092323303, -0.07564166188240051, 0.13018618524074554, 0.2260335236787796, 0.07494543492794037, 0.05569901317358017, 0.13889482617378235, 0.13974322378635406, 0.5114753246307373, 0.009516777470707893, 0.2708129584789276, 0.23648616671562195, -0.18379835784435272, -0.48081332445144653, -0.35402610898017883, 0.04654695466160774, 0.42678022384643555, -0.20611365139484406, 0.8991655707359314, 0.07543394714593887, -0.21085622906684875, -0.13172857463359833, 0.24152404069900513, -0.2803536653518677, -0.19205716252326965, -0.004873059689998627, 0.008424457162618637, -0.36993977427482605, 0.003906510770320892, -0.1487850695848465, 0.00021720770746469498, -0.13275809586048126, -0.4204081594944, -0.11788715422153473, -0.17607349157333374, 0.2212654948234558, 0.3561236262321472, 0.19650647044181824, 0.29871320724487305, 0.14769503474235535, 0.19197000563144684, 0.3841754198074341, -0.26298651099205017, 0.7729686498641968, 0.03051077388226986, -0.16257023811340332, -0.19596326351165771, -0.043481938540935516, -0.03938744217157364, 0.29619312286376953, 0.23047061264514923, 0.1890600174665451, -0.40413111448287964, -0.1302330195903778, -0.4656657874584198, 0.12083970010280609, 0.13427282869815826, -0.04875434935092926, -0.3957083821296692, -0.21226809918880463, 0.47803956270217896, -0.10387235879898071, -0.3312239348888397, 0.38185247778892517, -0.1824616938829422, -0.28374743461608887, 0.5927190780639648, -0.07843043655157089, 0.694195032119751, 0.001030702143907547, 0.10201378911733627, 0.16372907161712646, 0.10722053050994873, 0.44573652744293213, 0.100898876786232, -0.0567963570356369, -0.47026339173316956, -0.24010838568210602, 0.04882313311100006, 0.06264473497867584, -0.16958960890769958, 0.07540041208267212, -0.09225685894489288, 0.2251337617635727, 0.0196794793009758, 0.20165041089057922, -0.20183537900447845, 0.21564233303070068, 0.2561691403388977, -0.19325605034828186, -0.18414463102817535, 0.09974315762519836, -0.04334762692451477, 0.3396383821964264, -0.031023774296045303, 0.049500297755002975, -0.10779295861721039, -0.004309229552745819, 0.08751876652240753, 0.13467320799827576, 0.13019147515296936, 0.5092908143997192, -0.02324194461107254, 0.09716372191905975, -0.08168493211269379, -0.12847492098808289, 0.43383896350860596, -0.09151522815227509, -0.05302293598651886, -0.049563903361558914, 0.3258253037929535, -0.01780310645699501, -0.10865408182144165, -0.17868512868881226, 0.18219192326068878, 0.21815690398216248, -0.4741460382938385, -0.1673746109008789, 0.17643427848815918, -0.3593783378601074, -0.471195787191391, 0.05336166173219681, 0.22249001264572144, -0.40979304909706116, -0.21459075808525085, 0.09147782623767853, -0.0026510991156101227, -0.15120206773281097, 0.07858732342720032, -0.2645251750946045, -0.016249971464276314, 0.3844268321990967, 0.12867471575737, -0.4448889493942261, 0.0007176473736763, 0.35551780462265015, 0.30430129170417786, 0.04122451692819595, 0.321872353553772, -0.18507541716098785, -0.0009804591536521912, -0.21414941549301147, -0.03873838484287262, 0.0941980853676796, -0.35455265641212463, 0.041460126638412476, -0.2801585793495178, -0.1494092494249344, 0.21993190050125122, 0.4438208341598511, 0.06832940131425858, 0.2996065616607666, 0.0009847097098827362, -0.2165677547454834, -0.1593235433101654, -0.0043838247656822205, -0.09925012290477753, 0.34580549597740173, 0.09164149314165115, 0.24040399491786957, -0.11730434000492096, 0.5203122496604919, -0.2787628769874573, 0.25040706992149353, 0.09850911051034927, 0.31981179118156433, -0.3182888627052307, -0.15982535481452942, -0.3909676969051361, -0.18496666848659515, 0.0718371793627739, -0.02884295955300331, -0.16787007451057434, -0.19040319323539734, -0.20836374163627625, 0.1694650650024414, 0.16745108366012573, 0.07780686765909195, -0.45151013135910034, -0.2735159993171692, 0.24528686702251434, -0.33169206976890564, 0.3248004913330078, 0.6514939069747925, 0.023257017135620117, 0.05622251704335213, 0.5371012091636658, 0.06325074285268784, -0.021966438740491867, 0.26126471161842346, 0.05368351936340332, -0.03489650785923004, 0.0988740473985672, 0.008122049272060394, -0.12940412759780884, 0.11762262880802155, -0.33939340710639954, 0.0807083398103714, 0.10705863684415817, 0.18872198462486267, 0.1703013777732849, -0.059923067688941956, 0.024559881538152695, 0.2687559127807617, 0.11290465295314789, 0.16467100381851196, -0.11537030339241028, -0.3085023760795593, 0.03022613190114498, 0.2325202226638794, -0.16870693862438202, -0.41040822863578796, 0.7566381096839905, 0.042559124529361725, 0.19006487727165222, 0.28489014506340027, 0.577242374420166, -0.1406686156988144, 0.14788663387298584, 0.038232143968343735, 0.5323244333267212, -0.10788774490356445, 0.4047442674636841, 0.26971200108528137, 0.09730669856071472, -0.21899740397930145, 0.24783331155776978, 0.1455094814300537, 0.18161100149154663, 0.4400264024734497, 0.19397130608558655, 0.02444848231971264, 0.2845584750175476, 0.07208950817584991, 0.4172620475292206, -0.02526179701089859, -0.06289000809192657, 0.10486575216054916, -0.27503636479377747, 0.2027588188648224, 0.011987514793872833, 0.00799822062253952, -0.3424537479877472, -0.26053136587142944, -0.15442074835300446, 0.3084392845630646, -0.2916770577430725, -0.32516443729400635, -0.13064271211624146, -0.16863062977790833, -0.2631809711456299, 0.09619900584220886, -0.3659480810165405, -0.06010815501213074, 0.4323917031288147, -0.0038085654377937317, -0.21825899183750153, 0.006499752402305603, 0.043886806815862656, 0.2540249526500702, 0.4062710404396057, -0.023222938179969788, 0.11798278987407684, 0.09026385843753815, -0.12745828926563263, 0.015444038435816765, 0.09139814227819443, -0.04248620942234993, 0.303878515958786, -0.140005424618721, 0.17406605184078217, 0.2707855999469757, -0.04353093355894089, -0.03277916461229324, -0.03309311717748642, -0.3947608172893524, 0.1191236674785614, 0.3757123053073883, 0.1388426572084427, -0.03236282244324684, -0.029357414692640305, 0.1743885725736618, 0.045853227376937866, -0.16480152308940887, 0.46617716550827026, 0.017419779673218727, -0.027507487684488297, 0.042778030037879944, -0.0030654072761535645, -0.21168014407157898, -0.2779240310192108, 0.3712884187698364, -0.23739448189735413, 0.44601720571517944, -0.09568680822849274, 0.07961191236972809, -0.23665830492973328, 0.371234655380249, 0.18054339289665222, -0.2608047127723694, -0.1586357057094574, -0.06203298270702362, -0.6452696323394775, 0.4140647351741791, -0.15038618445396423, -0.09169607609510422, 0.1873379349708557, 0.2454543262720108, -0.05643276125192642, -0.016670215874910355, -0.37888550758361816, 0.12422379851341248, -0.05916065722703934, 0.009809430688619614, -0.2401357889175415, -0.12149687111377716, -0.03270728141069412, -0.033313922584056854, -0.06502196937799454, -0.3487635552883148, 0.3800918757915497, 0.02613181248307228, 0.005002986639738083, 0.07674998044967651, 0.08585570752620697, 0.13089913129806519, 0.06854318082332611, 0.07848446816205978, 0.10079670697450638, 0.24314571917057037, -0.025982793420553207, 0.1433885544538498, -0.3068068325519562, -0.15986187756061554, -0.24677495658397675, -0.16824248433113098, -0.05466369166970253, 0.4657406806945801, 0.053442396223545074, 0.13907454907894135, -0.016743743792176247, 0.1486174315214157, 0.26263755559921265, 0.03221606835722923, 0.04687155783176422, 0.10923872888088226, -0.08956218510866165, 0.09673614799976349, 0.009057012386620045, 0.7228108644485474, 0.03883066028356552, 0.349681556224823, 0.1571124643087387, -0.4307050406932831, 0.3277839720249176, -0.03899732977151871, -0.5135699510574341, 0.021282196044921875, 0.3173384964466095, 0.18616101145744324, -0.07725682854652405, -0.19459649920463562, -0.05761284753680229, 0.42954495549201965, -0.24428805708885193, -0.04746396839618683, 0.29969245195388794, 0.147069051861763, -0.10052251815795898, -0.12136977910995483, 0.07497479766607285, 0.22294920682907104, -0.1739024668931961, 0.3349338471889496, -0.16897530853748322 ]
https://github.com/huggingface/datasets/issues/4210
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
Hi! Casting class labels from strings is currently not supported in the CSV loader, but you can get the same result with an additional map as follows: ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features) ``` @lhoestq IIRC, I suggested adding `cast_to_storage` to `ClassLabel` + `table_cast` to the packaged loaders if the `ClassLabel`/`Image`/`Audio` type is present in `features` to avoid this kind of error, but your concern was speed. IMO shouldn't be a problem if we do `table_cast` only when these features are present.
### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ```
134
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' ### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ``` Hi! Casting class labels from strings is currently not supported in the CSV loader, but you can get the same result with an additional map as follows: ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset( "loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], ) # You can make this part faster with num_proc=<some int> sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features) ``` @lhoestq IIRC, I suggested adding `cast_to_storage` to `ClassLabel` + `table_cast` to the packaged loaders if the `ClassLabel`/`Image`/`Audio` type is present in `features` to avoid this kind of error, but your concern was speed. IMO shouldn't be a problem if we do `table_cast` only when these features are present.
[ -0.2058742493391037, -0.5463366508483887, -0.1671125888824463, 0.17104998230934143, 0.5628306865692139, -0.04382573813199997, 0.3648131489753723, 0.463327556848526, 0.3307614326477051, 0.11036089062690735, -0.03796403855085373, 0.1857532411813736, -0.17332099378108978, 0.03521456569433212, -0.09116816520690918, -0.27921798825263977, -0.031187646090984344, 0.06634767353534698, -0.4036823809146881, -0.1264377236366272, -0.14110668003559113, 0.09018296003341675, -0.12531642615795135, -0.08391758799552917, 0.033353291451931, -0.037217408418655396, 0.3594248592853546, -0.09045902639627457, -0.20282015204429626, -0.003561565652489662, 0.18379655480384827, -0.16039711236953735, 0.07740499079227448, 0.5127807259559631, -0.00010603238479234278, 0.23246712982654572, 0.0686570554971695, -0.17969490587711334, 0.010191341862082481, -0.008552312850952148, 0.19506576657295227, -0.03769952058792114, -0.09062372148036957, -0.4102001190185547, -0.26194635033607483, -0.28105464577674866, -0.07347723096609116, -0.37560582160949707, 0.5350929498672485, 0.4882689118385315, 0.2923409342765808, 0.5072135925292969, 0.3127989172935486, -0.1825513392686844, -0.0697043165564537, 0.23770184814929962, -0.21209567785263062, 0.05885758250951767, 0.11731570959091187, 0.41003522276878357, 0.0944555476307869, 0.19000858068466187, -0.2708677351474762, -0.019662950187921524, 0.12619048357009888, -0.16077086329460144, 0.34502729773521423, -0.24352401494979858, 0.0032067708671092987, 0.09247735142707825, 0.16690033674240112, -0.15161767601966858, -0.22591662406921387, 0.09618312865495682, -0.17494526505470276, -0.002838563174009323, -0.1610797643661499, 0.07106134295463562, -0.028299914672970772, 0.11065924167633057, -0.3147529065608978, 0.18352673947811127, -0.26314711570739746, 0.13484296202659607, 0.08885842561721802, 0.3703708052635193, -0.11383096873760223, 0.10150156170129776, 0.09888454526662827, -0.2782003879547119, 0.3523992598056793, 0.012211505323648453, 0.13911056518554688, 0.0014940174296498299, -0.0686831921339035, -0.21544186770915985, -0.028497964143753052, -0.7406473755836487, -0.04104600474238396, -0.32433605194091797, 0.009799123741686344, 0.0982266291975975, 0.0923340916633606, 0.034629277884960175, 0.02921094000339508, 0.2549782395362854, -0.3426688611507416, 0.24878020584583282, -0.029738888144493103, 0.07668622583150864, -0.040328964591026306, 0.011499075219035149, 0.06992501020431519, -0.029610324651002884, -0.083298459649086, 0.3470887541770935, 0.3344525694847107, -0.0023756586015224457, -0.3205922842025757, 0.10790103673934937, -0.07473250478506088, 0.17373690009117126, 0.35315775871276855, 0.36867421865463257, -0.034918446093797684, 0.161257803440094, 0.21126283705234528, 0.1711636781692505, -0.173318013548851, -0.09219076484441757, -0.2852334678173065, 0.30225616693496704, -0.1260494738817215, -0.37019026279449463, 0.0801842212677002, 0.5224431753158569, 0.1388196498155594, -0.011857377365231514, 0.23761554062366486, -0.22642049193382263, 0.005461148917675018, -0.19194549322128296, 0.37537604570388794, 0.3932105302810669, -0.0750773698091507, -0.06082887202501297, 0.3566328287124634, -0.17788752913475037, -0.11483731120824814, 0.2737700939178467, -0.07719746977090836, -0.056644536554813385, -0.20026686787605286, 0.3057540953159332, -0.11654341965913773, -0.16464444994926453, -0.014097698032855988, -0.08407039940357208, 0.30255886912345886, -0.18189752101898193, 0.11463189125061035, -0.21763654053211212, 0.08894339203834534, -0.20667970180511475, 0.1817539930343628, -0.05286030471324921, -0.16066306829452515, 0.013115420937538147, -0.033482953906059265, 0.0558956041932106, 0.20243921875953674, 0.36907145380973816, -0.1266659051179886, 0.2325119972229004, -0.08882405608892441, -0.022450707852840424, 0.20294608175754547, -0.28846827149391174, -0.12978947162628174, 0.007413701619952917, 0.059089675545692444, -0.20273585617542267, 0.21803626418113708, 0.1754235178232193, 0.28983384370803833, -0.051297031342983246, -0.13393202424049377, 0.46323835849761963, -0.05511179566383362, 0.34481358528137207, -0.21715882420539856, -0.294199675321579, 0.11066038906574249, 0.2664010524749756, 0.3227998614311218, 0.1017184853553772, -0.129203200340271, 0.2581644058227539, 0.19225388765335083, -0.25551509857177734, 0.0323600247502327, 0.12854409217834473, 0.4403907060623169, -0.14415007829666138, -0.016719143837690353, -0.0789969265460968, -0.41798847913742065, -0.08099079877138138, -0.06565951555967331, 0.03898007795214653, -0.15279211103916168, -0.0032547079026699066, -0.26639726758003235, -0.03618588671088219, -0.11988486349582672, 0.08205398917198181, 0.2481202781200409, -0.046197906136512756, 0.14099682867527008, -0.22418348491191864, -0.07746358215808868, -0.14138661324977875, 0.01893262006342411, -0.011838710866868496, -0.2402738779783249, 0.3349597454071045, -0.3069896697998047, -0.3138902187347412, -0.08899584412574768, 0.12938463687896729, 0.31087395548820496, -0.3249599039554596, -0.16690611839294434, 0.10446608066558838, 0.02887803316116333, -0.00959828495979309, -0.24585255980491638, 0.3111937642097473, 0.15767589211463928, -0.2568745017051697, 0.08486360311508179, 0.5069620013237, 0.07681427150964737, 0.057877376675605774, -0.09414453059434891, 0.38923925161361694, -0.06535910069942474, -0.06060727685689926, -0.0440327450633049, 0.042368084192276, 0.3492108881473541, -0.20854248106479645, 0.14345687627792358, -0.18958383798599243, 0.00920015573501587, 0.08367455005645752, 0.03723138943314552, -0.18467693030834198, -0.16975277662277222, 0.02078525722026825, 0.399573415517807, 0.08888815343379974, 0.1618843376636505, -0.10219226032495499, 0.1605551838874817, 0.04377491772174835, -0.12532322108745575, 0.009797465056180954, 0.2098454236984253, 0.11491668224334717, -0.110515296459198, 0.031128784641623497, 0.10412408411502838, -0.08040786534547806, 0.18498878180980682, 0.08481770753860474, 0.33416348695755005, 0.2294551134109497, -0.164593905210495, 0.013280948624014854, -0.2779315710067749, -0.21196988224983215, 0.23386713862419128, 0.3161315619945526, -0.12941431999206543, 0.18743151426315308, -0.1395232081413269, -0.2374023199081421, -0.29724323749542236, -0.07475116848945618, 0.08316834270954132, -0.2865041196346283, -0.12168368697166443, 0.27664914727211, -0.5804017186164856, 0.28819382190704346, 0.30999621748924255, -0.014427125453948975, 0.3036273419857025, -0.1909685730934143, -0.282285213470459, 0.06149709224700928, 0.2488301396369934, 0.12705641984939575, 0.20320837199687958, -0.08017237484455109, 0.2827918231487274, -0.011674072593450546, 0.13761872053146362, -0.08080646395683289, -0.5144478678703308, 0.036938171833753586, -0.10066787898540497, -0.055044159293174744, -0.03982803225517273, 0.3262796401977539, -0.02239006571471691, -0.5168433785438538, 0.1564422994852066, -0.6201522350311279, -0.08612803369760513, 0.2405909299850464, 0.0014106795424595475, -0.2774055004119873, -0.2709532082080841, -0.3688298463821411, -0.27941763401031494, -0.4907095730304718, -0.04528792202472687, 0.02432785928249359, 0.07825187593698502, 0.2918906807899475, 0.38064461946487427, 0.23237334191799164, 0.3078480064868927, 0.14992226660251617, -0.19404369592666626, 0.1753278523683548, 0.22824408113956451, -0.19010381400585175, -0.32892173528671265, -0.24920333921909332, -0.1566481739282608, 0.20272213220596313, -0.09557796269655228, -0.18779441714286804, -0.19084861874580383, -0.34877368807792664, -0.09738777577877045, -0.11175012588500977, -0.07235169410705566, 0.32199063897132874, -0.017168471589684486, -0.15706108510494232, -0.06632594019174576, 0.006710100919008255, 0.007893785834312439, 0.18084412813186646, -0.0333702489733696, -0.15274161100387573, 0.34136664867401123, 0.10947571694850922, 0.24729986488819122, 0.11228685081005096, -0.3196176290512085, 0.2660658657550812, -0.020910730585455894, 0.2227964699268341, -0.19981884956359863, -0.27218374609947205, 0.02859233133494854, 0.0224590003490448, -0.2521357238292694, -0.07049006223678589, -0.44472089409828186, -0.19189360737800598, -0.040966372936964035, 0.1734575629234314, -0.32770654559135437, -0.24491539597511292, 0.1469760239124298, 0.2143322378396988, -0.08072692900896072, -0.05367898941040039, 0.11775314062833786, -0.09761063754558563, 0.033866915851831436, 0.12286379933357239, 0.19035452604293823, -0.12183471769094467, -0.036359772086143494, -0.13237625360488892, -0.2206006944179535, -0.012181051075458527, 0.2676019072532654, -0.06701856106519699, 0.4828372597694397, -0.13785263895988464, -0.19135603308677673, -0.04011714458465576, -0.019153639674186707, 0.49253028631210327, 0.08670306205749512, 0.24329841136932373, 0.0375705324113369, 0.01399853453040123, -0.2272452712059021, -0.1840333193540573, -0.3596014380455017, -0.023010598495602608, 0.37791740894317627, 0.4538721442222595, -0.3448340892791748, -0.16008605062961578, 0.34211814403533936, 0.08762482553720474, -0.09076602756977081, 0.004255341365933418, -0.19412116706371307, -0.4743172228336334, -0.4139518737792969, 0.10274498909711838, 0.5303568840026855, 0.4118689298629761, -0.08094196021556854, 0.052024561911821365, -0.1923603117465973, -0.11987242847681046, 0.11779814958572388, -0.09099574387073517, 0.22512662410736084, 0.050456415861845016, 0.1399693638086319, -0.1704459935426712, -0.27649733424186707, 0.02473972737789154, 0.3095147907733917, 0.1366017758846283, -0.23457565903663635, 0.06172514706850052, 0.12927241623401642, 0.02097034454345703, 0.146989107131958, -0.010229701176285744, -0.06591743975877762, 0.06272304058074951, 0.3820604085922241, -0.04468299075961113, 0.053443752229213715, 0.049230411648750305, 0.07087384164333344, -0.16773875057697296, -0.1651286631822586, 0.17165514826774597, -0.11381229758262634, 0.08403651416301727, -0.0983552634716034, 0.03716360032558441, -0.28429996967315674, 0.6224849820137024, 0.38813701272010803, 0.809303343296051, -0.14345067739486694, 0.18105070292949677, 0.35474255681037903, 0.05280023068189621, 0.17559003829956055, 0.014770392328500748, 0.10161537677049637, -0.5601924061775208, -0.23917613923549652, 0.03667254000902176, -0.16435347497463226, 0.07186259329319, -0.019339948892593384, -0.5239449739456177, -0.06409986317157745, -0.05531904101371765, 0.37882986664772034, -0.10804972797632217, 0.21630477905273438, 0.216790109872818, -0.22191394865512848, -0.1918763518333435, 0.17882928252220154, -0.12095896899700165, 0.07079112529754639, 0.03716391697525978, -0.3602229952812195, -0.11896076798439026, -0.11807460337877274, -0.15706658363342285, 0.2145121693611145, -0.011053756810724735, 0.46488672494888306, 0.14644686877727509, -0.16125249862670898, -0.04208173602819443, 0.15116076171398163, 0.22906967997550964, 0.278949111700058, -0.10772523283958435, 0.10224634408950806, -0.06657423824071884, -0.032959625124931335, -0.07605636119842529, 0.06647343933582306, 0.3403444290161133, -0.020475516095757484, 0.023291446268558502, -0.03858571499586105, 0.05510511249303818, -0.1936301290988922, 0.05208641290664673, -0.20537720620632172, -0.24735362827777863, -0.5217529535293579, -0.20354163646697998, 0.06298474967479706, -0.49816781282424927, -0.18048818409442902, 0.21385729312896729, -0.0032501965761184692, -0.37507420778274536, 0.2486920952796936, 0.23443667590618134, -0.23730483651161194, -0.007118601351976395, 0.24030014872550964, 0.29682233929634094, -0.01872740127146244, 0.26804614067077637, 0.17543265223503113, -0.2211257666349411, -0.32208916544914246, 0.09510143846273422, 0.042827751487493515, -0.5210029482841492, 0.28709304332733154, -0.3250695466995239, -0.34712934494018555, 0.09142448753118515, -0.002502989023923874, 0.11253607273101807, 0.2926099896430969, -0.1842609941959381, -0.2441551685333252, -0.4892580807209015, 0.24239136278629303, 0.011683270335197449, 0.23589064180850983, 0.02058001235127449, 0.281734824180603, -0.0710659921169281, 0.0332428477704525, -0.4601927101612091, 0.04609094560146332, -0.3358781635761261, 0.08817870169878006, -0.1689116656780243, -0.5571726560592651, 0.1070462092757225, -0.008141268976032734, 0.20897141098976135, 0.04269514977931976, -0.328952431678772, -0.27115288376808167, -0.12951147556304932, 0.02853676676750183, 0.14597684144973755, -0.14919550716876984, -0.10129716247320175, -0.278900682926178, -0.26225754618644714, -0.08336206525564194, 0.04475431516766548, 0.2318490743637085, 0.09041794389486313, 0.22568470239639282, 0.1388600766658783, 0.11143480241298676, -0.0181011613458395, -0.07703639566898346, -0.020817197859287262, 0.1388023942708969, 0.07139693945646286, 0.15273448824882507, 0.005224623717367649, -0.048801299184560776, -0.2612771689891815, 0.0678187906742096, 0.39375561475753784, -0.08434594422578812, 0.31256380677223206, -0.21655212342739105, -0.031046941876411438, 0.06576249748468399, 0.3974630534648895, 0.04064202308654785, -0.42460164427757263, 0.026430612429976463, -0.07537230849266052, 0.2946706712245941, -0.22960719466209412, -0.08827671408653259, 0.062096189707517624, 0.046347763389348984, 0.20155087113380432, 0.2553771734237671, -0.10462883114814758, 0.16521055996418, 0.4309176802635193, 0.2992333173751831, 0.4173393249511719, -0.08189210295677185, 0.13471755385398865, 0.1861944943666458, -0.2718971371650696, -0.14181090891361237, 0.24427834153175354, 0.10143515467643738, 0.21863996982574463, 0.39441484212875366, -0.20513767004013062, 0.09479288756847382, -0.21112212538719177, -0.13572977483272552, 0.21425482630729675, 0.07960109412670135, -0.09179669618606567, 0.1080014705657959, -0.22768038511276245, 0.16416673362255096, -0.04712770879268646, -0.05585459619760513, -0.22965995967388153, -0.00006830599159002304, -0.28438296914100647, 0.12082749605178833, -0.42590370774269104, 0.22734521329402924, 0.1863933801651001, 0.10548486560583115, -0.34054750204086304, -0.20141978561878204, 0.059244416654109955, 0.0019958913326263428, -0.043080076575279236, 0.16423393785953522, -0.08634503185749054, 0.4284534752368927, 0.02242380753159523, 0.14409950375556946, -0.01855500042438507, -0.33079543709754944, 0.16513954102993011, 0.4618387818336487, -0.060810431838035583, -0.2200913429260254, 0.286371111869812, 0.41505494713783264, 0.22648411989212036, -0.23634237051010132, 0.2629530429840088, 0.06836101412773132, -0.3372963070869446, -0.07448426634073257, 0.2843068838119507, 0.30620333552360535, 0.3336189091205597, 0.28682637214660645, 0.26408228278160095, -0.29913705587387085, -0.16665558516979218, 0.1528555303812027, 0.008310847915709019, 0.24820563197135925, 0.505246639251709, -0.04187020659446716, -0.40770453214645386, -0.06860294938087463, -0.19740137457847595, -0.5350338220596313, -0.20647849142551422, 0.1075424998998642, -0.23140767216682434, 0.26383376121520996, 0.16560928523540497, 0.13252468407154083, -0.025734055787324905, 0.5575470328330994, -0.023456308990716934, 0.17855562269687653, -0.40498086810112, 0.10259157419204712, -0.22239211201667786, 0.2665465474128723, 0.3310824930667877, 0.06871078163385391, 0.19856978952884674, 0.21895405650138855, 0.12389057874679565, 0.18351714313030243, -0.02767057716846466, -0.24382682144641876, 0.15693332254886627, 0.22942224144935608, -0.05795522779226303, 0.003518424928188324, 0.016482923179864883, 0.009270144626498222, 0.26667726039886475, -0.43398791551589966, 0.27164140343666077, 0.008817263878881931, 0.2757120728492737, -0.3280782103538513, 0.07763148844242096, -0.0038255825638771057, -0.14213985204696655, 0.08820138871669769, -0.07966485619544983, 0.5117199420928955, -0.18195602297782898, -0.11231466382741928, 0.22420784831047058, -0.20206879079341888, -0.149558886885643, 0.179502934217453, 0.24300464987754822, 0.37889987230300903, 0.10963493585586548, 0.034184779971838, -0.2756945788860321, 0.1485712230205536, -0.08603821694850922, -0.17948390543460846, -0.15540811419487, 0.3504401743412018, -0.2647799551486969, 0.10493423044681549, -0.020100565627217293, 0.13185377418994904, 0.16087090969085693, 0.24912090599536896, -0.3544083833694458, -0.4123484492301941, 0.6665610074996948, 0.058869414031505585, -0.3451693058013916, -0.08573300391435623, 0.031889185309410095, -0.13234996795654297, 0.040852248668670654, -0.7296361923217773, 0.254942387342453, -0.0165213905274868, -0.25397101044654846, -0.16647778451442719, 0.20076824724674225, -0.010890532284975052, -0.007559612393379211, -0.023994768038392067, 0.47691866755485535, 0.23885628581047058, -0.18050169944763184, -0.18337488174438477, -0.1403684765100479 ]
https://github.com/huggingface/datasets/issues/4210
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
@albertvillanova @mariosasko thank you, with that change now I get ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) [<ipython-input-9-eeb68eeb9bec>](https://localhost:8080/#) in <module>() 11 ) 12 # You can make this part faster with num_proc=<some int> ---> 13 sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features) 14 sentences = sentences.shuffle() 8 frames [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices) 2193 if processed_inputs is not None and not isinstance(processed_inputs, (Mapping, pa.Table)): 2194 raise TypeError( -> 2195 f"Provided `function` which is applied to all elements of table returns a variable of type {type(processed_inputs)}. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects." 2196 ) 2197 elif isinstance(indices, list) and isinstance(processed_inputs, Mapping): TypeError: Provided `function` which is applied to all elements of table returns a variable of type <class 'int'>. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects. ``` the error is raised by [this](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L2221) ``` [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices) ```
### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ```
187
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' ### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ``` @albertvillanova @mariosasko thank you, with that change now I get ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) [<ipython-input-9-eeb68eeb9bec>](https://localhost:8080/#) in <module>() 11 ) 12 # You can make this part faster with num_proc=<some int> ---> 13 sentences = sentences.map(lambda ex: features["label"].str2int(ex["label"]) if ex["label"] is not None else None, features=features) 14 sentences = sentences.shuffle() 8 frames [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices) 2193 if processed_inputs is not None and not isinstance(processed_inputs, (Mapping, pa.Table)): 2194 raise TypeError( -> 2195 f"Provided `function` which is applied to all elements of table returns a variable of type {type(processed_inputs)}. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects." 2196 ) 2197 elif isinstance(indices, list) and isinstance(processed_inputs, Mapping): TypeError: Provided `function` which is applied to all elements of table returns a variable of type <class 'int'>. Make sure provided `function` returns a variable of type `dict` (or a pyarrow table) to update the dataset or `None` if you are only interested in side effects. ``` the error is raised by [this](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L2221) ``` [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in validate_function_output(processed_inputs, indices) ```
[ -0.2058742493391037, -0.5463366508483887, -0.1671125888824463, 0.17104998230934143, 0.5628306865692139, -0.04382573813199997, 0.3648131489753723, 0.463327556848526, 0.3307614326477051, 0.11036089062690735, -0.03796403855085373, 0.1857532411813736, -0.17332099378108978, 0.03521456569433212, -0.09116816520690918, -0.27921798825263977, -0.031187646090984344, 0.06634767353534698, -0.4036823809146881, -0.1264377236366272, -0.14110668003559113, 0.09018296003341675, -0.12531642615795135, -0.08391758799552917, 0.033353291451931, -0.037217408418655396, 0.3594248592853546, -0.09045902639627457, -0.20282015204429626, -0.003561565652489662, 0.18379655480384827, -0.16039711236953735, 0.07740499079227448, 0.5127807259559631, -0.00010603238479234278, 0.23246712982654572, 0.0686570554971695, -0.17969490587711334, 0.010191341862082481, -0.008552312850952148, 0.19506576657295227, -0.03769952058792114, -0.09062372148036957, -0.4102001190185547, -0.26194635033607483, -0.28105464577674866, -0.07347723096609116, -0.37560582160949707, 0.5350929498672485, 0.4882689118385315, 0.2923409342765808, 0.5072135925292969, 0.3127989172935486, -0.1825513392686844, -0.0697043165564537, 0.23770184814929962, -0.21209567785263062, 0.05885758250951767, 0.11731570959091187, 0.41003522276878357, 0.0944555476307869, 0.19000858068466187, -0.2708677351474762, -0.019662950187921524, 0.12619048357009888, -0.16077086329460144, 0.34502729773521423, -0.24352401494979858, 0.0032067708671092987, 0.09247735142707825, 0.16690033674240112, -0.15161767601966858, -0.22591662406921387, 0.09618312865495682, -0.17494526505470276, -0.002838563174009323, -0.1610797643661499, 0.07106134295463562, -0.028299914672970772, 0.11065924167633057, -0.3147529065608978, 0.18352673947811127, -0.26314711570739746, 0.13484296202659607, 0.08885842561721802, 0.3703708052635193, -0.11383096873760223, 0.10150156170129776, 0.09888454526662827, -0.2782003879547119, 0.3523992598056793, 0.012211505323648453, 0.13911056518554688, 0.0014940174296498299, -0.0686831921339035, -0.21544186770915985, -0.028497964143753052, -0.7406473755836487, -0.04104600474238396, -0.32433605194091797, 0.009799123741686344, 0.0982266291975975, 0.0923340916633606, 0.034629277884960175, 0.02921094000339508, 0.2549782395362854, -0.3426688611507416, 0.24878020584583282, -0.029738888144493103, 0.07668622583150864, -0.040328964591026306, 0.011499075219035149, 0.06992501020431519, -0.029610324651002884, -0.083298459649086, 0.3470887541770935, 0.3344525694847107, -0.0023756586015224457, -0.3205922842025757, 0.10790103673934937, -0.07473250478506088, 0.17373690009117126, 0.35315775871276855, 0.36867421865463257, -0.034918446093797684, 0.161257803440094, 0.21126283705234528, 0.1711636781692505, -0.173318013548851, -0.09219076484441757, -0.2852334678173065, 0.30225616693496704, -0.1260494738817215, -0.37019026279449463, 0.0801842212677002, 0.5224431753158569, 0.1388196498155594, -0.011857377365231514, 0.23761554062366486, -0.22642049193382263, 0.005461148917675018, -0.19194549322128296, 0.37537604570388794, 0.3932105302810669, -0.0750773698091507, -0.06082887202501297, 0.3566328287124634, -0.17788752913475037, -0.11483731120824814, 0.2737700939178467, -0.07719746977090836, -0.056644536554813385, -0.20026686787605286, 0.3057540953159332, -0.11654341965913773, -0.16464444994926453, -0.014097698032855988, -0.08407039940357208, 0.30255886912345886, -0.18189752101898193, 0.11463189125061035, -0.21763654053211212, 0.08894339203834534, -0.20667970180511475, 0.1817539930343628, -0.05286030471324921, -0.16066306829452515, 0.013115420937538147, -0.033482953906059265, 0.0558956041932106, 0.20243921875953674, 0.36907145380973816, -0.1266659051179886, 0.2325119972229004, -0.08882405608892441, -0.022450707852840424, 0.20294608175754547, -0.28846827149391174, -0.12978947162628174, 0.007413701619952917, 0.059089675545692444, -0.20273585617542267, 0.21803626418113708, 0.1754235178232193, 0.28983384370803833, -0.051297031342983246, -0.13393202424049377, 0.46323835849761963, -0.05511179566383362, 0.34481358528137207, -0.21715882420539856, -0.294199675321579, 0.11066038906574249, 0.2664010524749756, 0.3227998614311218, 0.1017184853553772, -0.129203200340271, 0.2581644058227539, 0.19225388765335083, -0.25551509857177734, 0.0323600247502327, 0.12854409217834473, 0.4403907060623169, -0.14415007829666138, -0.016719143837690353, -0.0789969265460968, -0.41798847913742065, -0.08099079877138138, -0.06565951555967331, 0.03898007795214653, -0.15279211103916168, -0.0032547079026699066, -0.26639726758003235, -0.03618588671088219, -0.11988486349582672, 0.08205398917198181, 0.2481202781200409, -0.046197906136512756, 0.14099682867527008, -0.22418348491191864, -0.07746358215808868, -0.14138661324977875, 0.01893262006342411, -0.011838710866868496, -0.2402738779783249, 0.3349597454071045, -0.3069896697998047, -0.3138902187347412, -0.08899584412574768, 0.12938463687896729, 0.31087395548820496, -0.3249599039554596, -0.16690611839294434, 0.10446608066558838, 0.02887803316116333, -0.00959828495979309, -0.24585255980491638, 0.3111937642097473, 0.15767589211463928, -0.2568745017051697, 0.08486360311508179, 0.5069620013237, 0.07681427150964737, 0.057877376675605774, -0.09414453059434891, 0.38923925161361694, -0.06535910069942474, -0.06060727685689926, -0.0440327450633049, 0.042368084192276, 0.3492108881473541, -0.20854248106479645, 0.14345687627792358, -0.18958383798599243, 0.00920015573501587, 0.08367455005645752, 0.03723138943314552, -0.18467693030834198, -0.16975277662277222, 0.02078525722026825, 0.399573415517807, 0.08888815343379974, 0.1618843376636505, -0.10219226032495499, 0.1605551838874817, 0.04377491772174835, -0.12532322108745575, 0.009797465056180954, 0.2098454236984253, 0.11491668224334717, -0.110515296459198, 0.031128784641623497, 0.10412408411502838, -0.08040786534547806, 0.18498878180980682, 0.08481770753860474, 0.33416348695755005, 0.2294551134109497, -0.164593905210495, 0.013280948624014854, -0.2779315710067749, -0.21196988224983215, 0.23386713862419128, 0.3161315619945526, -0.12941431999206543, 0.18743151426315308, -0.1395232081413269, -0.2374023199081421, -0.29724323749542236, -0.07475116848945618, 0.08316834270954132, -0.2865041196346283, -0.12168368697166443, 0.27664914727211, -0.5804017186164856, 0.28819382190704346, 0.30999621748924255, -0.014427125453948975, 0.3036273419857025, -0.1909685730934143, -0.282285213470459, 0.06149709224700928, 0.2488301396369934, 0.12705641984939575, 0.20320837199687958, -0.08017237484455109, 0.2827918231487274, -0.011674072593450546, 0.13761872053146362, -0.08080646395683289, -0.5144478678703308, 0.036938171833753586, -0.10066787898540497, -0.055044159293174744, -0.03982803225517273, 0.3262796401977539, -0.02239006571471691, -0.5168433785438538, 0.1564422994852066, -0.6201522350311279, -0.08612803369760513, 0.2405909299850464, 0.0014106795424595475, -0.2774055004119873, -0.2709532082080841, -0.3688298463821411, -0.27941763401031494, -0.4907095730304718, -0.04528792202472687, 0.02432785928249359, 0.07825187593698502, 0.2918906807899475, 0.38064461946487427, 0.23237334191799164, 0.3078480064868927, 0.14992226660251617, -0.19404369592666626, 0.1753278523683548, 0.22824408113956451, -0.19010381400585175, -0.32892173528671265, -0.24920333921909332, -0.1566481739282608, 0.20272213220596313, -0.09557796269655228, -0.18779441714286804, -0.19084861874580383, -0.34877368807792664, -0.09738777577877045, -0.11175012588500977, -0.07235169410705566, 0.32199063897132874, -0.017168471589684486, -0.15706108510494232, -0.06632594019174576, 0.006710100919008255, 0.007893785834312439, 0.18084412813186646, -0.0333702489733696, -0.15274161100387573, 0.34136664867401123, 0.10947571694850922, 0.24729986488819122, 0.11228685081005096, -0.3196176290512085, 0.2660658657550812, -0.020910730585455894, 0.2227964699268341, -0.19981884956359863, -0.27218374609947205, 0.02859233133494854, 0.0224590003490448, -0.2521357238292694, -0.07049006223678589, -0.44472089409828186, -0.19189360737800598, -0.040966372936964035, 0.1734575629234314, -0.32770654559135437, -0.24491539597511292, 0.1469760239124298, 0.2143322378396988, -0.08072692900896072, -0.05367898941040039, 0.11775314062833786, -0.09761063754558563, 0.033866915851831436, 0.12286379933357239, 0.19035452604293823, -0.12183471769094467, -0.036359772086143494, -0.13237625360488892, -0.2206006944179535, -0.012181051075458527, 0.2676019072532654, -0.06701856106519699, 0.4828372597694397, -0.13785263895988464, -0.19135603308677673, -0.04011714458465576, -0.019153639674186707, 0.49253028631210327, 0.08670306205749512, 0.24329841136932373, 0.0375705324113369, 0.01399853453040123, -0.2272452712059021, -0.1840333193540573, -0.3596014380455017, -0.023010598495602608, 0.37791740894317627, 0.4538721442222595, -0.3448340892791748, -0.16008605062961578, 0.34211814403533936, 0.08762482553720474, -0.09076602756977081, 0.004255341365933418, -0.19412116706371307, -0.4743172228336334, -0.4139518737792969, 0.10274498909711838, 0.5303568840026855, 0.4118689298629761, -0.08094196021556854, 0.052024561911821365, -0.1923603117465973, -0.11987242847681046, 0.11779814958572388, -0.09099574387073517, 0.22512662410736084, 0.050456415861845016, 0.1399693638086319, -0.1704459935426712, -0.27649733424186707, 0.02473972737789154, 0.3095147907733917, 0.1366017758846283, -0.23457565903663635, 0.06172514706850052, 0.12927241623401642, 0.02097034454345703, 0.146989107131958, -0.010229701176285744, -0.06591743975877762, 0.06272304058074951, 0.3820604085922241, -0.04468299075961113, 0.053443752229213715, 0.049230411648750305, 0.07087384164333344, -0.16773875057697296, -0.1651286631822586, 0.17165514826774597, -0.11381229758262634, 0.08403651416301727, -0.0983552634716034, 0.03716360032558441, -0.28429996967315674, 0.6224849820137024, 0.38813701272010803, 0.809303343296051, -0.14345067739486694, 0.18105070292949677, 0.35474255681037903, 0.05280023068189621, 0.17559003829956055, 0.014770392328500748, 0.10161537677049637, -0.5601924061775208, -0.23917613923549652, 0.03667254000902176, -0.16435347497463226, 0.07186259329319, -0.019339948892593384, -0.5239449739456177, -0.06409986317157745, -0.05531904101371765, 0.37882986664772034, -0.10804972797632217, 0.21630477905273438, 0.216790109872818, -0.22191394865512848, -0.1918763518333435, 0.17882928252220154, -0.12095896899700165, 0.07079112529754639, 0.03716391697525978, -0.3602229952812195, -0.11896076798439026, -0.11807460337877274, -0.15706658363342285, 0.2145121693611145, -0.011053756810724735, 0.46488672494888306, 0.14644686877727509, -0.16125249862670898, -0.04208173602819443, 0.15116076171398163, 0.22906967997550964, 0.278949111700058, -0.10772523283958435, 0.10224634408950806, -0.06657423824071884, -0.032959625124931335, -0.07605636119842529, 0.06647343933582306, 0.3403444290161133, -0.020475516095757484, 0.023291446268558502, -0.03858571499586105, 0.05510511249303818, -0.1936301290988922, 0.05208641290664673, -0.20537720620632172, -0.24735362827777863, -0.5217529535293579, -0.20354163646697998, 0.06298474967479706, -0.49816781282424927, -0.18048818409442902, 0.21385729312896729, -0.0032501965761184692, -0.37507420778274536, 0.2486920952796936, 0.23443667590618134, -0.23730483651161194, -0.007118601351976395, 0.24030014872550964, 0.29682233929634094, -0.01872740127146244, 0.26804614067077637, 0.17543265223503113, -0.2211257666349411, -0.32208916544914246, 0.09510143846273422, 0.042827751487493515, -0.5210029482841492, 0.28709304332733154, -0.3250695466995239, -0.34712934494018555, 0.09142448753118515, -0.002502989023923874, 0.11253607273101807, 0.2926099896430969, -0.1842609941959381, -0.2441551685333252, -0.4892580807209015, 0.24239136278629303, 0.011683270335197449, 0.23589064180850983, 0.02058001235127449, 0.281734824180603, -0.0710659921169281, 0.0332428477704525, -0.4601927101612091, 0.04609094560146332, -0.3358781635761261, 0.08817870169878006, -0.1689116656780243, -0.5571726560592651, 0.1070462092757225, -0.008141268976032734, 0.20897141098976135, 0.04269514977931976, -0.328952431678772, -0.27115288376808167, -0.12951147556304932, 0.02853676676750183, 0.14597684144973755, -0.14919550716876984, -0.10129716247320175, -0.278900682926178, -0.26225754618644714, -0.08336206525564194, 0.04475431516766548, 0.2318490743637085, 0.09041794389486313, 0.22568470239639282, 0.1388600766658783, 0.11143480241298676, -0.0181011613458395, -0.07703639566898346, -0.020817197859287262, 0.1388023942708969, 0.07139693945646286, 0.15273448824882507, 0.005224623717367649, -0.048801299184560776, -0.2612771689891815, 0.0678187906742096, 0.39375561475753784, -0.08434594422578812, 0.31256380677223206, -0.21655212342739105, -0.031046941876411438, 0.06576249748468399, 0.3974630534648895, 0.04064202308654785, -0.42460164427757263, 0.026430612429976463, -0.07537230849266052, 0.2946706712245941, -0.22960719466209412, -0.08827671408653259, 0.062096189707517624, 0.046347763389348984, 0.20155087113380432, 0.2553771734237671, -0.10462883114814758, 0.16521055996418, 0.4309176802635193, 0.2992333173751831, 0.4173393249511719, -0.08189210295677185, 0.13471755385398865, 0.1861944943666458, -0.2718971371650696, -0.14181090891361237, 0.24427834153175354, 0.10143515467643738, 0.21863996982574463, 0.39441484212875366, -0.20513767004013062, 0.09479288756847382, -0.21112212538719177, -0.13572977483272552, 0.21425482630729675, 0.07960109412670135, -0.09179669618606567, 0.1080014705657959, -0.22768038511276245, 0.16416673362255096, -0.04712770879268646, -0.05585459619760513, -0.22965995967388153, -0.00006830599159002304, -0.28438296914100647, 0.12082749605178833, -0.42590370774269104, 0.22734521329402924, 0.1863933801651001, 0.10548486560583115, -0.34054750204086304, -0.20141978561878204, 0.059244416654109955, 0.0019958913326263428, -0.043080076575279236, 0.16423393785953522, -0.08634503185749054, 0.4284534752368927, 0.02242380753159523, 0.14409950375556946, -0.01855500042438507, -0.33079543709754944, 0.16513954102993011, 0.4618387818336487, -0.060810431838035583, -0.2200913429260254, 0.286371111869812, 0.41505494713783264, 0.22648411989212036, -0.23634237051010132, 0.2629530429840088, 0.06836101412773132, -0.3372963070869446, -0.07448426634073257, 0.2843068838119507, 0.30620333552360535, 0.3336189091205597, 0.28682637214660645, 0.26408228278160095, -0.29913705587387085, -0.16665558516979218, 0.1528555303812027, 0.008310847915709019, 0.24820563197135925, 0.505246639251709, -0.04187020659446716, -0.40770453214645386, -0.06860294938087463, -0.19740137457847595, -0.5350338220596313, -0.20647849142551422, 0.1075424998998642, -0.23140767216682434, 0.26383376121520996, 0.16560928523540497, 0.13252468407154083, -0.025734055787324905, 0.5575470328330994, -0.023456308990716934, 0.17855562269687653, -0.40498086810112, 0.10259157419204712, -0.22239211201667786, 0.2665465474128723, 0.3310824930667877, 0.06871078163385391, 0.19856978952884674, 0.21895405650138855, 0.12389057874679565, 0.18351714313030243, -0.02767057716846466, -0.24382682144641876, 0.15693332254886627, 0.22942224144935608, -0.05795522779226303, 0.003518424928188324, 0.016482923179864883, 0.009270144626498222, 0.26667726039886475, -0.43398791551589966, 0.27164140343666077, 0.008817263878881931, 0.2757120728492737, -0.3280782103538513, 0.07763148844242096, -0.0038255825638771057, -0.14213985204696655, 0.08820138871669769, -0.07966485619544983, 0.5117199420928955, -0.18195602297782898, -0.11231466382741928, 0.22420784831047058, -0.20206879079341888, -0.149558886885643, 0.179502934217453, 0.24300464987754822, 0.37889987230300903, 0.10963493585586548, 0.034184779971838, -0.2756945788860321, 0.1485712230205536, -0.08603821694850922, -0.17948390543460846, -0.15540811419487, 0.3504401743412018, -0.2647799551486969, 0.10493423044681549, -0.020100565627217293, 0.13185377418994904, 0.16087090969085693, 0.24912090599536896, -0.3544083833694458, -0.4123484492301941, 0.6665610074996948, 0.058869414031505585, -0.3451693058013916, -0.08573300391435623, 0.031889185309410095, -0.13234996795654297, 0.040852248668670654, -0.7296361923217773, 0.254942387342453, -0.0165213905274868, -0.25397101044654846, -0.16647778451442719, 0.20076824724674225, -0.010890532284975052, -0.007559612393379211, -0.023994768038392067, 0.47691866755485535, 0.23885628581047058, -0.18050169944763184, -0.18337488174438477, -0.1403684765100479 ]
https://github.com/huggingface/datasets/issues/4210
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
@mariosasko changed it like ```python sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) ``` to avoid the above errorr.
### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ```
26
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' ### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ``` @mariosasko changed it like ```python sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) ``` to avoid the above errorr.
[ -0.2058742493391037, -0.5463366508483887, -0.1671125888824463, 0.17104998230934143, 0.5628306865692139, -0.04382573813199997, 0.3648131489753723, 0.463327556848526, 0.3307614326477051, 0.11036089062690735, -0.03796403855085373, 0.1857532411813736, -0.17332099378108978, 0.03521456569433212, -0.09116816520690918, -0.27921798825263977, -0.031187646090984344, 0.06634767353534698, -0.4036823809146881, -0.1264377236366272, -0.14110668003559113, 0.09018296003341675, -0.12531642615795135, -0.08391758799552917, 0.033353291451931, -0.037217408418655396, 0.3594248592853546, -0.09045902639627457, -0.20282015204429626, -0.003561565652489662, 0.18379655480384827, -0.16039711236953735, 0.07740499079227448, 0.5127807259559631, -0.00010603238479234278, 0.23246712982654572, 0.0686570554971695, -0.17969490587711334, 0.010191341862082481, -0.008552312850952148, 0.19506576657295227, -0.03769952058792114, -0.09062372148036957, -0.4102001190185547, -0.26194635033607483, -0.28105464577674866, -0.07347723096609116, -0.37560582160949707, 0.5350929498672485, 0.4882689118385315, 0.2923409342765808, 0.5072135925292969, 0.3127989172935486, -0.1825513392686844, -0.0697043165564537, 0.23770184814929962, -0.21209567785263062, 0.05885758250951767, 0.11731570959091187, 0.41003522276878357, 0.0944555476307869, 0.19000858068466187, -0.2708677351474762, -0.019662950187921524, 0.12619048357009888, -0.16077086329460144, 0.34502729773521423, -0.24352401494979858, 0.0032067708671092987, 0.09247735142707825, 0.16690033674240112, -0.15161767601966858, -0.22591662406921387, 0.09618312865495682, -0.17494526505470276, -0.002838563174009323, -0.1610797643661499, 0.07106134295463562, -0.028299914672970772, 0.11065924167633057, -0.3147529065608978, 0.18352673947811127, -0.26314711570739746, 0.13484296202659607, 0.08885842561721802, 0.3703708052635193, -0.11383096873760223, 0.10150156170129776, 0.09888454526662827, -0.2782003879547119, 0.3523992598056793, 0.012211505323648453, 0.13911056518554688, 0.0014940174296498299, -0.0686831921339035, -0.21544186770915985, -0.028497964143753052, -0.7406473755836487, -0.04104600474238396, -0.32433605194091797, 0.009799123741686344, 0.0982266291975975, 0.0923340916633606, 0.034629277884960175, 0.02921094000339508, 0.2549782395362854, -0.3426688611507416, 0.24878020584583282, -0.029738888144493103, 0.07668622583150864, -0.040328964591026306, 0.011499075219035149, 0.06992501020431519, -0.029610324651002884, -0.083298459649086, 0.3470887541770935, 0.3344525694847107, -0.0023756586015224457, -0.3205922842025757, 0.10790103673934937, -0.07473250478506088, 0.17373690009117126, 0.35315775871276855, 0.36867421865463257, -0.034918446093797684, 0.161257803440094, 0.21126283705234528, 0.1711636781692505, -0.173318013548851, -0.09219076484441757, -0.2852334678173065, 0.30225616693496704, -0.1260494738817215, -0.37019026279449463, 0.0801842212677002, 0.5224431753158569, 0.1388196498155594, -0.011857377365231514, 0.23761554062366486, -0.22642049193382263, 0.005461148917675018, -0.19194549322128296, 0.37537604570388794, 0.3932105302810669, -0.0750773698091507, -0.06082887202501297, 0.3566328287124634, -0.17788752913475037, -0.11483731120824814, 0.2737700939178467, -0.07719746977090836, -0.056644536554813385, -0.20026686787605286, 0.3057540953159332, -0.11654341965913773, -0.16464444994926453, -0.014097698032855988, -0.08407039940357208, 0.30255886912345886, -0.18189752101898193, 0.11463189125061035, -0.21763654053211212, 0.08894339203834534, -0.20667970180511475, 0.1817539930343628, -0.05286030471324921, -0.16066306829452515, 0.013115420937538147, -0.033482953906059265, 0.0558956041932106, 0.20243921875953674, 0.36907145380973816, -0.1266659051179886, 0.2325119972229004, -0.08882405608892441, -0.022450707852840424, 0.20294608175754547, -0.28846827149391174, -0.12978947162628174, 0.007413701619952917, 0.059089675545692444, -0.20273585617542267, 0.21803626418113708, 0.1754235178232193, 0.28983384370803833, -0.051297031342983246, -0.13393202424049377, 0.46323835849761963, -0.05511179566383362, 0.34481358528137207, -0.21715882420539856, -0.294199675321579, 0.11066038906574249, 0.2664010524749756, 0.3227998614311218, 0.1017184853553772, -0.129203200340271, 0.2581644058227539, 0.19225388765335083, -0.25551509857177734, 0.0323600247502327, 0.12854409217834473, 0.4403907060623169, -0.14415007829666138, -0.016719143837690353, -0.0789969265460968, -0.41798847913742065, -0.08099079877138138, -0.06565951555967331, 0.03898007795214653, -0.15279211103916168, -0.0032547079026699066, -0.26639726758003235, -0.03618588671088219, -0.11988486349582672, 0.08205398917198181, 0.2481202781200409, -0.046197906136512756, 0.14099682867527008, -0.22418348491191864, -0.07746358215808868, -0.14138661324977875, 0.01893262006342411, -0.011838710866868496, -0.2402738779783249, 0.3349597454071045, -0.3069896697998047, -0.3138902187347412, -0.08899584412574768, 0.12938463687896729, 0.31087395548820496, -0.3249599039554596, -0.16690611839294434, 0.10446608066558838, 0.02887803316116333, -0.00959828495979309, -0.24585255980491638, 0.3111937642097473, 0.15767589211463928, -0.2568745017051697, 0.08486360311508179, 0.5069620013237, 0.07681427150964737, 0.057877376675605774, -0.09414453059434891, 0.38923925161361694, -0.06535910069942474, -0.06060727685689926, -0.0440327450633049, 0.042368084192276, 0.3492108881473541, -0.20854248106479645, 0.14345687627792358, -0.18958383798599243, 0.00920015573501587, 0.08367455005645752, 0.03723138943314552, -0.18467693030834198, -0.16975277662277222, 0.02078525722026825, 0.399573415517807, 0.08888815343379974, 0.1618843376636505, -0.10219226032495499, 0.1605551838874817, 0.04377491772174835, -0.12532322108745575, 0.009797465056180954, 0.2098454236984253, 0.11491668224334717, -0.110515296459198, 0.031128784641623497, 0.10412408411502838, -0.08040786534547806, 0.18498878180980682, 0.08481770753860474, 0.33416348695755005, 0.2294551134109497, -0.164593905210495, 0.013280948624014854, -0.2779315710067749, -0.21196988224983215, 0.23386713862419128, 0.3161315619945526, -0.12941431999206543, 0.18743151426315308, -0.1395232081413269, -0.2374023199081421, -0.29724323749542236, -0.07475116848945618, 0.08316834270954132, -0.2865041196346283, -0.12168368697166443, 0.27664914727211, -0.5804017186164856, 0.28819382190704346, 0.30999621748924255, -0.014427125453948975, 0.3036273419857025, -0.1909685730934143, -0.282285213470459, 0.06149709224700928, 0.2488301396369934, 0.12705641984939575, 0.20320837199687958, -0.08017237484455109, 0.2827918231487274, -0.011674072593450546, 0.13761872053146362, -0.08080646395683289, -0.5144478678703308, 0.036938171833753586, -0.10066787898540497, -0.055044159293174744, -0.03982803225517273, 0.3262796401977539, -0.02239006571471691, -0.5168433785438538, 0.1564422994852066, -0.6201522350311279, -0.08612803369760513, 0.2405909299850464, 0.0014106795424595475, -0.2774055004119873, -0.2709532082080841, -0.3688298463821411, -0.27941763401031494, -0.4907095730304718, -0.04528792202472687, 0.02432785928249359, 0.07825187593698502, 0.2918906807899475, 0.38064461946487427, 0.23237334191799164, 0.3078480064868927, 0.14992226660251617, -0.19404369592666626, 0.1753278523683548, 0.22824408113956451, -0.19010381400585175, -0.32892173528671265, -0.24920333921909332, -0.1566481739282608, 0.20272213220596313, -0.09557796269655228, -0.18779441714286804, -0.19084861874580383, -0.34877368807792664, -0.09738777577877045, -0.11175012588500977, -0.07235169410705566, 0.32199063897132874, -0.017168471589684486, -0.15706108510494232, -0.06632594019174576, 0.006710100919008255, 0.007893785834312439, 0.18084412813186646, -0.0333702489733696, -0.15274161100387573, 0.34136664867401123, 0.10947571694850922, 0.24729986488819122, 0.11228685081005096, -0.3196176290512085, 0.2660658657550812, -0.020910730585455894, 0.2227964699268341, -0.19981884956359863, -0.27218374609947205, 0.02859233133494854, 0.0224590003490448, -0.2521357238292694, -0.07049006223678589, -0.44472089409828186, -0.19189360737800598, -0.040966372936964035, 0.1734575629234314, -0.32770654559135437, -0.24491539597511292, 0.1469760239124298, 0.2143322378396988, -0.08072692900896072, -0.05367898941040039, 0.11775314062833786, -0.09761063754558563, 0.033866915851831436, 0.12286379933357239, 0.19035452604293823, -0.12183471769094467, -0.036359772086143494, -0.13237625360488892, -0.2206006944179535, -0.012181051075458527, 0.2676019072532654, -0.06701856106519699, 0.4828372597694397, -0.13785263895988464, -0.19135603308677673, -0.04011714458465576, -0.019153639674186707, 0.49253028631210327, 0.08670306205749512, 0.24329841136932373, 0.0375705324113369, 0.01399853453040123, -0.2272452712059021, -0.1840333193540573, -0.3596014380455017, -0.023010598495602608, 0.37791740894317627, 0.4538721442222595, -0.3448340892791748, -0.16008605062961578, 0.34211814403533936, 0.08762482553720474, -0.09076602756977081, 0.004255341365933418, -0.19412116706371307, -0.4743172228336334, -0.4139518737792969, 0.10274498909711838, 0.5303568840026855, 0.4118689298629761, -0.08094196021556854, 0.052024561911821365, -0.1923603117465973, -0.11987242847681046, 0.11779814958572388, -0.09099574387073517, 0.22512662410736084, 0.050456415861845016, 0.1399693638086319, -0.1704459935426712, -0.27649733424186707, 0.02473972737789154, 0.3095147907733917, 0.1366017758846283, -0.23457565903663635, 0.06172514706850052, 0.12927241623401642, 0.02097034454345703, 0.146989107131958, -0.010229701176285744, -0.06591743975877762, 0.06272304058074951, 0.3820604085922241, -0.04468299075961113, 0.053443752229213715, 0.049230411648750305, 0.07087384164333344, -0.16773875057697296, -0.1651286631822586, 0.17165514826774597, -0.11381229758262634, 0.08403651416301727, -0.0983552634716034, 0.03716360032558441, -0.28429996967315674, 0.6224849820137024, 0.38813701272010803, 0.809303343296051, -0.14345067739486694, 0.18105070292949677, 0.35474255681037903, 0.05280023068189621, 0.17559003829956055, 0.014770392328500748, 0.10161537677049637, -0.5601924061775208, -0.23917613923549652, 0.03667254000902176, -0.16435347497463226, 0.07186259329319, -0.019339948892593384, -0.5239449739456177, -0.06409986317157745, -0.05531904101371765, 0.37882986664772034, -0.10804972797632217, 0.21630477905273438, 0.216790109872818, -0.22191394865512848, -0.1918763518333435, 0.17882928252220154, -0.12095896899700165, 0.07079112529754639, 0.03716391697525978, -0.3602229952812195, -0.11896076798439026, -0.11807460337877274, -0.15706658363342285, 0.2145121693611145, -0.011053756810724735, 0.46488672494888306, 0.14644686877727509, -0.16125249862670898, -0.04208173602819443, 0.15116076171398163, 0.22906967997550964, 0.278949111700058, -0.10772523283958435, 0.10224634408950806, -0.06657423824071884, -0.032959625124931335, -0.07605636119842529, 0.06647343933582306, 0.3403444290161133, -0.020475516095757484, 0.023291446268558502, -0.03858571499586105, 0.05510511249303818, -0.1936301290988922, 0.05208641290664673, -0.20537720620632172, -0.24735362827777863, -0.5217529535293579, -0.20354163646697998, 0.06298474967479706, -0.49816781282424927, -0.18048818409442902, 0.21385729312896729, -0.0032501965761184692, -0.37507420778274536, 0.2486920952796936, 0.23443667590618134, -0.23730483651161194, -0.007118601351976395, 0.24030014872550964, 0.29682233929634094, -0.01872740127146244, 0.26804614067077637, 0.17543265223503113, -0.2211257666349411, -0.32208916544914246, 0.09510143846273422, 0.042827751487493515, -0.5210029482841492, 0.28709304332733154, -0.3250695466995239, -0.34712934494018555, 0.09142448753118515, -0.002502989023923874, 0.11253607273101807, 0.2926099896430969, -0.1842609941959381, -0.2441551685333252, -0.4892580807209015, 0.24239136278629303, 0.011683270335197449, 0.23589064180850983, 0.02058001235127449, 0.281734824180603, -0.0710659921169281, 0.0332428477704525, -0.4601927101612091, 0.04609094560146332, -0.3358781635761261, 0.08817870169878006, -0.1689116656780243, -0.5571726560592651, 0.1070462092757225, -0.008141268976032734, 0.20897141098976135, 0.04269514977931976, -0.328952431678772, -0.27115288376808167, -0.12951147556304932, 0.02853676676750183, 0.14597684144973755, -0.14919550716876984, -0.10129716247320175, -0.278900682926178, -0.26225754618644714, -0.08336206525564194, 0.04475431516766548, 0.2318490743637085, 0.09041794389486313, 0.22568470239639282, 0.1388600766658783, 0.11143480241298676, -0.0181011613458395, -0.07703639566898346, -0.020817197859287262, 0.1388023942708969, 0.07139693945646286, 0.15273448824882507, 0.005224623717367649, -0.048801299184560776, -0.2612771689891815, 0.0678187906742096, 0.39375561475753784, -0.08434594422578812, 0.31256380677223206, -0.21655212342739105, -0.031046941876411438, 0.06576249748468399, 0.3974630534648895, 0.04064202308654785, -0.42460164427757263, 0.026430612429976463, -0.07537230849266052, 0.2946706712245941, -0.22960719466209412, -0.08827671408653259, 0.062096189707517624, 0.046347763389348984, 0.20155087113380432, 0.2553771734237671, -0.10462883114814758, 0.16521055996418, 0.4309176802635193, 0.2992333173751831, 0.4173393249511719, -0.08189210295677185, 0.13471755385398865, 0.1861944943666458, -0.2718971371650696, -0.14181090891361237, 0.24427834153175354, 0.10143515467643738, 0.21863996982574463, 0.39441484212875366, -0.20513767004013062, 0.09479288756847382, -0.21112212538719177, -0.13572977483272552, 0.21425482630729675, 0.07960109412670135, -0.09179669618606567, 0.1080014705657959, -0.22768038511276245, 0.16416673362255096, -0.04712770879268646, -0.05585459619760513, -0.22965995967388153, -0.00006830599159002304, -0.28438296914100647, 0.12082749605178833, -0.42590370774269104, 0.22734521329402924, 0.1863933801651001, 0.10548486560583115, -0.34054750204086304, -0.20141978561878204, 0.059244416654109955, 0.0019958913326263428, -0.043080076575279236, 0.16423393785953522, -0.08634503185749054, 0.4284534752368927, 0.02242380753159523, 0.14409950375556946, -0.01855500042438507, -0.33079543709754944, 0.16513954102993011, 0.4618387818336487, -0.060810431838035583, -0.2200913429260254, 0.286371111869812, 0.41505494713783264, 0.22648411989212036, -0.23634237051010132, 0.2629530429840088, 0.06836101412773132, -0.3372963070869446, -0.07448426634073257, 0.2843068838119507, 0.30620333552360535, 0.3336189091205597, 0.28682637214660645, 0.26408228278160095, -0.29913705587387085, -0.16665558516979218, 0.1528555303812027, 0.008310847915709019, 0.24820563197135925, 0.505246639251709, -0.04187020659446716, -0.40770453214645386, -0.06860294938087463, -0.19740137457847595, -0.5350338220596313, -0.20647849142551422, 0.1075424998998642, -0.23140767216682434, 0.26383376121520996, 0.16560928523540497, 0.13252468407154083, -0.025734055787324905, 0.5575470328330994, -0.023456308990716934, 0.17855562269687653, -0.40498086810112, 0.10259157419204712, -0.22239211201667786, 0.2665465474128723, 0.3310824930667877, 0.06871078163385391, 0.19856978952884674, 0.21895405650138855, 0.12389057874679565, 0.18351714313030243, -0.02767057716846466, -0.24382682144641876, 0.15693332254886627, 0.22942224144935608, -0.05795522779226303, 0.003518424928188324, 0.016482923179864883, 0.009270144626498222, 0.26667726039886475, -0.43398791551589966, 0.27164140343666077, 0.008817263878881931, 0.2757120728492737, -0.3280782103538513, 0.07763148844242096, -0.0038255825638771057, -0.14213985204696655, 0.08820138871669769, -0.07966485619544983, 0.5117199420928955, -0.18195602297782898, -0.11231466382741928, 0.22420784831047058, -0.20206879079341888, -0.149558886885643, 0.179502934217453, 0.24300464987754822, 0.37889987230300903, 0.10963493585586548, 0.034184779971838, -0.2756945788860321, 0.1485712230205536, -0.08603821694850922, -0.17948390543460846, -0.15540811419487, 0.3504401743412018, -0.2647799551486969, 0.10493423044681549, -0.020100565627217293, 0.13185377418994904, 0.16087090969085693, 0.24912090599536896, -0.3544083833694458, -0.4123484492301941, 0.6665610074996948, 0.058869414031505585, -0.3451693058013916, -0.08573300391435623, 0.031889185309410095, -0.13234996795654297, 0.040852248668670654, -0.7296361923217773, 0.254942387342453, -0.0165213905274868, -0.25397101044654846, -0.16647778451442719, 0.20076824724674225, -0.010890532284975052, -0.007559612393379211, -0.023994768038392067, 0.47691866755485535, 0.23885628581047058, -0.18050169944763184, -0.18337488174438477, -0.1403684765100479 ]
https://github.com/huggingface/datasets/issues/4210
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe'
Any update on this? Is this correct ? > @mariosasko changed it like > > ```python > sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) > ``` > > to avoid the above errorr.
### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ```
41
TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' ### System Info ```shell - `transformers` version: 4.18.0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - Huggingface_hub version: 0.5.1 - PyTorch version (GPU?): 1.10.0+cu111 (True) - Tensorflow version (GPU?): 2.8.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in> ``` ### Who can help? @LysandreJik ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction ```python from datasets import load_dataset,Features,Value,ClassLabel class_names = ["cmn","deu","rus","fra","eng","jpn","spa","ita","kor","vie","nld","epo","por","tur","heb","hun","ell","ind","ara","arz","fin","bul","yue","swe","ukr","bel","que","ces","swh","nno","wuu","nob","zsm","est","kat","pol","lat","urd","sqi","isl","fry","afr","ron","fao","san","bre","tat","yid","uig","uzb","srp","qya","dan","pes","slk","eus","cycl","acm","tgl","lvs","kaz","hye","hin","lit","ben","cat","bos","hrv","tha","orv","cha","mon","lzh","scn","gle","mkd","slv","frm","glg","vol","ain","jbo","tok","ina","nds","mal","tlh","roh","ltz","oss","ido","gla","mlt","sco","ast","jav","oci","ile","ota","xal","tel","sjn","nov","khm","tpi","ang","aze","tgk","tuk","chv","hsb","dsb","bod","sme","cym","mri","ksh","kmr","ewe","kab","ber","tpw","udm","lld","pms","lad","grn","mlg","xho","pnb","grc","hat","lao","npi","cor","nah","avk","mar","guj","pan","kir","myv","prg","sux","crs","ckt","bak","zlm","hil","cbk","chr","nav","lkt","enm","arq","lin","abk","pcd","rom","gsw","tam","zul","awa","wln","amh","bar","hbo","mhr","bho","mrj","ckb","osx","pfl","mgm","sna","mah","hau","kan","nog","sin","glv","dng","kal","liv","vro","apc","jdt","fur","che","haw","yor","crh","pdc","ppl","kin","shs","mnw","tet","sah","kum","ngt","nya","pus","hif","mya","moh","wol","tir","ton","lzz","oar","lug","brx","non","mww","hak","nlv","ngu","bua","aym","vec","ibo","tkl","bam","kha","ceb","lou","fuc","smo","gag","lfn","arg","umb","tyv","kjh","oji","cyo","urh","kzj","pam","srd","lmo","swg","mdf","gil","snd","tso","sot","zza","tsn","pau","som","egl","ady","asm","ori","dtp","cho","max","kam","niu","sag","ilo","kaa","fuv","nch","hoc","iba","gbm","sun","war","mvv","pap","ary","kxi","csb","pag","cos","rif","kek","krc","aii","ban","ssw","tvl","mfe","tah","bvy","bcl","hnj","nau","nst","afb","quc","min","tmw","mad","bjn","mai","cjy","got","hsn","gan","tzl","dws","ldn","afh","sgs","krl","vep","rue","tly","mic","ext","izh","sma","jam","cmo","mwl","kpv","koi","bis","ike","run","evn","ryu","mnc","aoz","otk","kas","aln","akl","yua","shy","fkv","gos","fij","thv","zgh","gcf","cay","xmf","tig","div","lij","rap","hrx","cpi","tts","gaa","tmr","iii","ltg","bzt","syc","emx","gom","chg","osp","stq","frr","fro","nys","toi","new","phn","jpa","rel","drt","chn","pli","laa","bal","hdn","hax","mik","ajp","xqa","pal","crk","mni","lut","ayl","ood","sdh","ofs","nus","kiu","diq","qxq","alt","bfz","klj","mus","srn","guc","lim","zea","shi","mnr","bom","sat","szl"] features = Features({ 'label': ClassLabel(names=class_names), 'text': Value('string')}) num_labels = features['label'].num_classes data_files = { "train": "train.csv", "test": "test.csv" } sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'], features = features ``` ERROR: ``` ClassLabel(num_classes=403, names=['cmn', 'deu', 'rus', 'fra', 'eng', 'jpn', 'spa', 'ita', 'kor', 'vie', 'nld', 'epo', 'por', 'tur', 'heb', 'hun', 'ell', 'ind', 'ara', 'arz', 'fin', 'bul', 'yue', 'swe', 'ukr', 'bel', 'que', 'ces', 'swh', 'nno', 'wuu', 'nob', 'zsm', 'est', 'kat', 'pol', 'lat', 'urd', 'sqi', 'isl', 'fry', 'afr', 'ron', 'fao', 'san', 'bre', 'tat', 'yid', 'uig', 'uzb', 'srp', 'qya', 'dan', 'pes', 'slk', 'eus', 'cycl', 'acm', 'tgl', 'lvs', 'kaz', 'hye', 'hin', 'lit', 'ben', 'cat', 'bos', 'hrv', 'tha', 'orv', 'cha', 'mon', 'lzh', 'scn', 'gle', 'mkd', 'slv', 'frm', 'glg', 'vol', 'ain', 'jbo', 'tok', 'ina', 'nds', 'mal', 'tlh', 'roh', 'ltz', 'oss', 'ido', 'gla', 'mlt', 'sco', 'ast', 'jav', 'oci', 'ile', 'ota', 'xal', 'tel', 'sjn', 'nov', 'khm', 'tpi', 'ang', 'aze', 'tgk', 'tuk', 'chv', 'hsb', 'dsb', 'bod', 'sme', 'cym', 'mri', 'ksh', 'kmr', 'ewe', 'kab', 'ber', 'tpw', 'udm', 'lld', 'pms', 'lad', 'grn', 'mlg', 'xho', 'pnb', 'grc', 'hat', 'lao', 'npi', 'cor', 'nah', 'avk', 'mar', 'guj', 'pan', 'kir', 'myv', 'prg', 'sux', 'crs', 'ckt', 'bak', 'zlm', 'hil', 'cbk', 'chr', 'nav', 'lkt', 'enm', 'arq', 'lin', 'abk', 'pcd', 'rom', 'gsw', 'tam', 'zul', 'awa', 'wln', 'amh', 'bar', 'hbo', 'mhr', 'bho', 'mrj', 'ckb', 'osx', 'pfl', 'mgm', 'sna', 'mah', 'hau', 'kan', 'nog', 'sin', 'glv', 'dng', 'kal', 'liv', 'vro', 'apc', 'jdt', 'fur', 'che', 'haw', 'yor', 'crh', 'pdc', 'ppl', 'kin', 'shs', 'mnw', 'tet', 'sah', 'kum', 'ngt', 'nya', 'pus', 'hif', 'mya', 'moh', 'wol', 'tir', 'ton', 'lzz', 'oar', 'lug', 'brx', 'non', 'mww', 'hak', 'nlv', 'ngu', 'bua', 'aym', 'vec', 'ibo', 'tkl', 'bam', 'kha', 'ceb', 'lou', 'fuc', 'smo', 'gag', 'lfn', 'arg', 'umb', 'tyv', 'kjh', 'oji', 'cyo', 'urh', 'kzj', 'pam', 'srd', 'lmo', 'swg', 'mdf', 'gil', 'snd', 'tso', 'sot', 'zza', 'tsn', 'pau', 'som', 'egl', 'ady', 'asm', 'ori', 'dtp', 'cho', 'max', 'kam', 'niu', 'sag', 'ilo', 'kaa', 'fuv', 'nch', 'hoc', 'iba', 'gbm', 'sun', 'war', 'mvv', 'pap', 'ary', 'kxi', 'csb', 'pag', 'cos', 'rif', 'kek', 'krc', 'aii', 'ban', 'ssw', 'tvl', 'mfe', 'tah', 'bvy', 'bcl', 'hnj', 'nau', 'nst', 'afb', 'quc', 'min', 'tmw', 'mad', 'bjn', 'mai', 'cjy', 'got', 'hsn', 'gan', 'tzl', 'dws', 'ldn', 'afh', 'sgs', 'krl', 'vep', 'rue', 'tly', 'mic', 'ext', 'izh', 'sma', 'jam', 'cmo', 'mwl', 'kpv', 'koi', 'bis', 'ike', 'run', 'evn', 'ryu', 'mnc', 'aoz', 'otk', 'kas', 'aln', 'akl', 'yua', 'shy', 'fkv', 'gos', 'fij', 'thv', 'zgh', 'gcf', 'cay', 'xmf', 'tig', 'div', 'lij', 'rap', 'hrx', 'cpi', 'tts', 'gaa', 'tmr', 'iii', 'ltg', 'bzt', 'syc', 'emx', 'gom', 'chg', 'osp', 'stq', 'frr', 'fro', 'nys', 'toi', 'new', 'phn', 'jpa', 'rel', 'drt', 'chn', 'pli', 'laa', 'bal', 'hdn', 'hax', 'mik', 'ajp', 'xqa', 'pal', 'crk', 'mni', 'lut', 'ayl', 'ood', 'sdh', 'ofs', 'nus', 'kiu', 'diq', 'qxq', 'alt', 'bfz', 'klj', 'mus', 'srn', 'guc', 'lim', 'zea', 'shi', 'mnr', 'bom', 'sat', 'szl'], id=None) Value(dtype='string', id=None) Using custom data configuration loretoparisi--tatoeba-sentences-7b2c5e991f398f39 Downloading and preparing dataset csv/loretoparisi--tatoeba-sentences to /root/.cache/huggingface/datasets/csv/loretoparisi--tatoeba-sentences-7b2c5e991f398f39/0.0.0/433e0ccc46f9880962cc2b12065189766fbb2bee57a221866138fb9203c83519... Downloading data files: 100% 2/2 [00:18<00:00, 8.06s/it] Downloading data: 100% 391M/391M [00:13<00:00, 35.3MB/s] Downloading data: 100% 92.4M/92.4M [00:02<00:00, 36.5MB/s] Failed to read file '/root/.cache/huggingface/datasets/downloads/933132df9905194ea9faeb30cabca8c49318795612f6495fcb941a290191dd5d' with error <class 'ValueError'>: invalid literal for int() with base 10: 'cmn' --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() TypeError: Cannot cast array data from dtype('O') to dtype('int64') according to the rule 'safe' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) 15 frames /usr/local/lib/python3.7/dist-packages/pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens() ValueError: invalid literal for int() with base 10: 'cmn' ``` while loading without `features` it loads without errors ``` sentences = load_dataset("loretoparisi/tatoeba-sentences", data_files=data_files, delimiter='\t', column_names=['label', 'text'] ) ``` but the `label` col seems to be wrong (without the `ClassLabel` object): ``` sentences['train'].features {'label': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None)} ``` The dataset was https://huggingface.co/datasets/loretoparisi/tatoeba-sentences Dataset format is: ``` ces Nechci vědět, co je tam uvnitř. ces Kdo o tom chce slyšet? deu Tom sagte, er fühle sich nicht wohl. ber Mel-iyi-d anida-t tura ? hun Gondom lesz rá rögtön. ber Mel-iyi-d anida-tt tura ? deu Ich will dich nicht reden hören. ``` ### Expected behavior ```shell correctly load train and test files. ``` Any update on this? Is this correct ? > @mariosasko changed it like > > ```python > sentences = sentences.map(lambda ex: {"label" : features["label"].str2int(ex["label"]) if ex["label"] is not None else None}, features=features) > ``` > > to avoid the above errorr.
[ -0.2058742493391037, -0.5463366508483887, -0.1671125888824463, 0.17104998230934143, 0.5628306865692139, -0.04382573813199997, 0.3648131489753723, 0.463327556848526, 0.3307614326477051, 0.11036089062690735, -0.03796403855085373, 0.1857532411813736, -0.17332099378108978, 0.03521456569433212, -0.09116816520690918, -0.27921798825263977, -0.031187646090984344, 0.06634767353534698, -0.4036823809146881, -0.1264377236366272, -0.14110668003559113, 0.09018296003341675, -0.12531642615795135, -0.08391758799552917, 0.033353291451931, -0.037217408418655396, 0.3594248592853546, -0.09045902639627457, -0.20282015204429626, -0.003561565652489662, 0.18379655480384827, -0.16039711236953735, 0.07740499079227448, 0.5127807259559631, -0.00010603238479234278, 0.23246712982654572, 0.0686570554971695, -0.17969490587711334, 0.010191341862082481, -0.008552312850952148, 0.19506576657295227, -0.03769952058792114, -0.09062372148036957, -0.4102001190185547, -0.26194635033607483, -0.28105464577674866, -0.07347723096609116, -0.37560582160949707, 0.5350929498672485, 0.4882689118385315, 0.2923409342765808, 0.5072135925292969, 0.3127989172935486, -0.1825513392686844, -0.0697043165564537, 0.23770184814929962, -0.21209567785263062, 0.05885758250951767, 0.11731570959091187, 0.41003522276878357, 0.0944555476307869, 0.19000858068466187, -0.2708677351474762, -0.019662950187921524, 0.12619048357009888, -0.16077086329460144, 0.34502729773521423, -0.24352401494979858, 0.0032067708671092987, 0.09247735142707825, 0.16690033674240112, -0.15161767601966858, -0.22591662406921387, 0.09618312865495682, -0.17494526505470276, -0.002838563174009323, -0.1610797643661499, 0.07106134295463562, -0.028299914672970772, 0.11065924167633057, -0.3147529065608978, 0.18352673947811127, -0.26314711570739746, 0.13484296202659607, 0.08885842561721802, 0.3703708052635193, -0.11383096873760223, 0.10150156170129776, 0.09888454526662827, -0.2782003879547119, 0.3523992598056793, 0.012211505323648453, 0.13911056518554688, 0.0014940174296498299, -0.0686831921339035, -0.21544186770915985, -0.028497964143753052, -0.7406473755836487, -0.04104600474238396, -0.32433605194091797, 0.009799123741686344, 0.0982266291975975, 0.0923340916633606, 0.034629277884960175, 0.02921094000339508, 0.2549782395362854, -0.3426688611507416, 0.24878020584583282, -0.029738888144493103, 0.07668622583150864, -0.040328964591026306, 0.011499075219035149, 0.06992501020431519, -0.029610324651002884, -0.083298459649086, 0.3470887541770935, 0.3344525694847107, -0.0023756586015224457, -0.3205922842025757, 0.10790103673934937, -0.07473250478506088, 0.17373690009117126, 0.35315775871276855, 0.36867421865463257, -0.034918446093797684, 0.161257803440094, 0.21126283705234528, 0.1711636781692505, -0.173318013548851, -0.09219076484441757, -0.2852334678173065, 0.30225616693496704, -0.1260494738817215, -0.37019026279449463, 0.0801842212677002, 0.5224431753158569, 0.1388196498155594, -0.011857377365231514, 0.23761554062366486, -0.22642049193382263, 0.005461148917675018, -0.19194549322128296, 0.37537604570388794, 0.3932105302810669, -0.0750773698091507, -0.06082887202501297, 0.3566328287124634, -0.17788752913475037, -0.11483731120824814, 0.2737700939178467, -0.07719746977090836, -0.056644536554813385, -0.20026686787605286, 0.3057540953159332, -0.11654341965913773, -0.16464444994926453, -0.014097698032855988, -0.08407039940357208, 0.30255886912345886, -0.18189752101898193, 0.11463189125061035, -0.21763654053211212, 0.08894339203834534, -0.20667970180511475, 0.1817539930343628, -0.05286030471324921, -0.16066306829452515, 0.013115420937538147, -0.033482953906059265, 0.0558956041932106, 0.20243921875953674, 0.36907145380973816, -0.1266659051179886, 0.2325119972229004, -0.08882405608892441, -0.022450707852840424, 0.20294608175754547, -0.28846827149391174, -0.12978947162628174, 0.007413701619952917, 0.059089675545692444, -0.20273585617542267, 0.21803626418113708, 0.1754235178232193, 0.28983384370803833, -0.051297031342983246, -0.13393202424049377, 0.46323835849761963, -0.05511179566383362, 0.34481358528137207, -0.21715882420539856, -0.294199675321579, 0.11066038906574249, 0.2664010524749756, 0.3227998614311218, 0.1017184853553772, -0.129203200340271, 0.2581644058227539, 0.19225388765335083, -0.25551509857177734, 0.0323600247502327, 0.12854409217834473, 0.4403907060623169, -0.14415007829666138, -0.016719143837690353, -0.0789969265460968, -0.41798847913742065, -0.08099079877138138, -0.06565951555967331, 0.03898007795214653, -0.15279211103916168, -0.0032547079026699066, -0.26639726758003235, -0.03618588671088219, -0.11988486349582672, 0.08205398917198181, 0.2481202781200409, -0.046197906136512756, 0.14099682867527008, -0.22418348491191864, -0.07746358215808868, -0.14138661324977875, 0.01893262006342411, -0.011838710866868496, -0.2402738779783249, 0.3349597454071045, -0.3069896697998047, -0.3138902187347412, -0.08899584412574768, 0.12938463687896729, 0.31087395548820496, -0.3249599039554596, -0.16690611839294434, 0.10446608066558838, 0.02887803316116333, -0.00959828495979309, -0.24585255980491638, 0.3111937642097473, 0.15767589211463928, -0.2568745017051697, 0.08486360311508179, 0.5069620013237, 0.07681427150964737, 0.057877376675605774, -0.09414453059434891, 0.38923925161361694, -0.06535910069942474, -0.06060727685689926, -0.0440327450633049, 0.042368084192276, 0.3492108881473541, -0.20854248106479645, 0.14345687627792358, -0.18958383798599243, 0.00920015573501587, 0.08367455005645752, 0.03723138943314552, -0.18467693030834198, -0.16975277662277222, 0.02078525722026825, 0.399573415517807, 0.08888815343379974, 0.1618843376636505, -0.10219226032495499, 0.1605551838874817, 0.04377491772174835, -0.12532322108745575, 0.009797465056180954, 0.2098454236984253, 0.11491668224334717, -0.110515296459198, 0.031128784641623497, 0.10412408411502838, -0.08040786534547806, 0.18498878180980682, 0.08481770753860474, 0.33416348695755005, 0.2294551134109497, -0.164593905210495, 0.013280948624014854, -0.2779315710067749, -0.21196988224983215, 0.23386713862419128, 0.3161315619945526, -0.12941431999206543, 0.18743151426315308, -0.1395232081413269, -0.2374023199081421, -0.29724323749542236, -0.07475116848945618, 0.08316834270954132, -0.2865041196346283, -0.12168368697166443, 0.27664914727211, -0.5804017186164856, 0.28819382190704346, 0.30999621748924255, -0.014427125453948975, 0.3036273419857025, -0.1909685730934143, -0.282285213470459, 0.06149709224700928, 0.2488301396369934, 0.12705641984939575, 0.20320837199687958, -0.08017237484455109, 0.2827918231487274, -0.011674072593450546, 0.13761872053146362, -0.08080646395683289, -0.5144478678703308, 0.036938171833753586, -0.10066787898540497, -0.055044159293174744, -0.03982803225517273, 0.3262796401977539, -0.02239006571471691, -0.5168433785438538, 0.1564422994852066, -0.6201522350311279, -0.08612803369760513, 0.2405909299850464, 0.0014106795424595475, -0.2774055004119873, -0.2709532082080841, -0.3688298463821411, -0.27941763401031494, -0.4907095730304718, -0.04528792202472687, 0.02432785928249359, 0.07825187593698502, 0.2918906807899475, 0.38064461946487427, 0.23237334191799164, 0.3078480064868927, 0.14992226660251617, -0.19404369592666626, 0.1753278523683548, 0.22824408113956451, -0.19010381400585175, -0.32892173528671265, -0.24920333921909332, -0.1566481739282608, 0.20272213220596313, -0.09557796269655228, -0.18779441714286804, -0.19084861874580383, -0.34877368807792664, -0.09738777577877045, -0.11175012588500977, -0.07235169410705566, 0.32199063897132874, -0.017168471589684486, -0.15706108510494232, -0.06632594019174576, 0.006710100919008255, 0.007893785834312439, 0.18084412813186646, -0.0333702489733696, -0.15274161100387573, 0.34136664867401123, 0.10947571694850922, 0.24729986488819122, 0.11228685081005096, -0.3196176290512085, 0.2660658657550812, -0.020910730585455894, 0.2227964699268341, -0.19981884956359863, -0.27218374609947205, 0.02859233133494854, 0.0224590003490448, -0.2521357238292694, -0.07049006223678589, -0.44472089409828186, -0.19189360737800598, -0.040966372936964035, 0.1734575629234314, -0.32770654559135437, -0.24491539597511292, 0.1469760239124298, 0.2143322378396988, -0.08072692900896072, -0.05367898941040039, 0.11775314062833786, -0.09761063754558563, 0.033866915851831436, 0.12286379933357239, 0.19035452604293823, -0.12183471769094467, -0.036359772086143494, -0.13237625360488892, -0.2206006944179535, -0.012181051075458527, 0.2676019072532654, -0.06701856106519699, 0.4828372597694397, -0.13785263895988464, -0.19135603308677673, -0.04011714458465576, -0.019153639674186707, 0.49253028631210327, 0.08670306205749512, 0.24329841136932373, 0.0375705324113369, 0.01399853453040123, -0.2272452712059021, -0.1840333193540573, -0.3596014380455017, -0.023010598495602608, 0.37791740894317627, 0.4538721442222595, -0.3448340892791748, -0.16008605062961578, 0.34211814403533936, 0.08762482553720474, -0.09076602756977081, 0.004255341365933418, -0.19412116706371307, -0.4743172228336334, -0.4139518737792969, 0.10274498909711838, 0.5303568840026855, 0.4118689298629761, -0.08094196021556854, 0.052024561911821365, -0.1923603117465973, -0.11987242847681046, 0.11779814958572388, -0.09099574387073517, 0.22512662410736084, 0.050456415861845016, 0.1399693638086319, -0.1704459935426712, -0.27649733424186707, 0.02473972737789154, 0.3095147907733917, 0.1366017758846283, -0.23457565903663635, 0.06172514706850052, 0.12927241623401642, 0.02097034454345703, 0.146989107131958, -0.010229701176285744, -0.06591743975877762, 0.06272304058074951, 0.3820604085922241, -0.04468299075961113, 0.053443752229213715, 0.049230411648750305, 0.07087384164333344, -0.16773875057697296, -0.1651286631822586, 0.17165514826774597, -0.11381229758262634, 0.08403651416301727, -0.0983552634716034, 0.03716360032558441, -0.28429996967315674, 0.6224849820137024, 0.38813701272010803, 0.809303343296051, -0.14345067739486694, 0.18105070292949677, 0.35474255681037903, 0.05280023068189621, 0.17559003829956055, 0.014770392328500748, 0.10161537677049637, -0.5601924061775208, -0.23917613923549652, 0.03667254000902176, -0.16435347497463226, 0.07186259329319, -0.019339948892593384, -0.5239449739456177, -0.06409986317157745, -0.05531904101371765, 0.37882986664772034, -0.10804972797632217, 0.21630477905273438, 0.216790109872818, -0.22191394865512848, -0.1918763518333435, 0.17882928252220154, -0.12095896899700165, 0.07079112529754639, 0.03716391697525978, -0.3602229952812195, -0.11896076798439026, -0.11807460337877274, -0.15706658363342285, 0.2145121693611145, -0.011053756810724735, 0.46488672494888306, 0.14644686877727509, -0.16125249862670898, -0.04208173602819443, 0.15116076171398163, 0.22906967997550964, 0.278949111700058, -0.10772523283958435, 0.10224634408950806, -0.06657423824071884, -0.032959625124931335, -0.07605636119842529, 0.06647343933582306, 0.3403444290161133, -0.020475516095757484, 0.023291446268558502, -0.03858571499586105, 0.05510511249303818, -0.1936301290988922, 0.05208641290664673, -0.20537720620632172, -0.24735362827777863, -0.5217529535293579, -0.20354163646697998, 0.06298474967479706, -0.49816781282424927, -0.18048818409442902, 0.21385729312896729, -0.0032501965761184692, -0.37507420778274536, 0.2486920952796936, 0.23443667590618134, -0.23730483651161194, -0.007118601351976395, 0.24030014872550964, 0.29682233929634094, -0.01872740127146244, 0.26804614067077637, 0.17543265223503113, -0.2211257666349411, -0.32208916544914246, 0.09510143846273422, 0.042827751487493515, -0.5210029482841492, 0.28709304332733154, -0.3250695466995239, -0.34712934494018555, 0.09142448753118515, -0.002502989023923874, 0.11253607273101807, 0.2926099896430969, -0.1842609941959381, -0.2441551685333252, -0.4892580807209015, 0.24239136278629303, 0.011683270335197449, 0.23589064180850983, 0.02058001235127449, 0.281734824180603, -0.0710659921169281, 0.0332428477704525, -0.4601927101612091, 0.04609094560146332, -0.3358781635761261, 0.08817870169878006, -0.1689116656780243, -0.5571726560592651, 0.1070462092757225, -0.008141268976032734, 0.20897141098976135, 0.04269514977931976, -0.328952431678772, -0.27115288376808167, -0.12951147556304932, 0.02853676676750183, 0.14597684144973755, -0.14919550716876984, -0.10129716247320175, -0.278900682926178, -0.26225754618644714, -0.08336206525564194, 0.04475431516766548, 0.2318490743637085, 0.09041794389486313, 0.22568470239639282, 0.1388600766658783, 0.11143480241298676, -0.0181011613458395, -0.07703639566898346, -0.020817197859287262, 0.1388023942708969, 0.07139693945646286, 0.15273448824882507, 0.005224623717367649, -0.048801299184560776, -0.2612771689891815, 0.0678187906742096, 0.39375561475753784, -0.08434594422578812, 0.31256380677223206, -0.21655212342739105, -0.031046941876411438, 0.06576249748468399, 0.3974630534648895, 0.04064202308654785, -0.42460164427757263, 0.026430612429976463, -0.07537230849266052, 0.2946706712245941, -0.22960719466209412, -0.08827671408653259, 0.062096189707517624, 0.046347763389348984, 0.20155087113380432, 0.2553771734237671, -0.10462883114814758, 0.16521055996418, 0.4309176802635193, 0.2992333173751831, 0.4173393249511719, -0.08189210295677185, 0.13471755385398865, 0.1861944943666458, -0.2718971371650696, -0.14181090891361237, 0.24427834153175354, 0.10143515467643738, 0.21863996982574463, 0.39441484212875366, -0.20513767004013062, 0.09479288756847382, -0.21112212538719177, -0.13572977483272552, 0.21425482630729675, 0.07960109412670135, -0.09179669618606567, 0.1080014705657959, -0.22768038511276245, 0.16416673362255096, -0.04712770879268646, -0.05585459619760513, -0.22965995967388153, -0.00006830599159002304, -0.28438296914100647, 0.12082749605178833, -0.42590370774269104, 0.22734521329402924, 0.1863933801651001, 0.10548486560583115, -0.34054750204086304, -0.20141978561878204, 0.059244416654109955, 0.0019958913326263428, -0.043080076575279236, 0.16423393785953522, -0.08634503185749054, 0.4284534752368927, 0.02242380753159523, 0.14409950375556946, -0.01855500042438507, -0.33079543709754944, 0.16513954102993011, 0.4618387818336487, -0.060810431838035583, -0.2200913429260254, 0.286371111869812, 0.41505494713783264, 0.22648411989212036, -0.23634237051010132, 0.2629530429840088, 0.06836101412773132, -0.3372963070869446, -0.07448426634073257, 0.2843068838119507, 0.30620333552360535, 0.3336189091205597, 0.28682637214660645, 0.26408228278160095, -0.29913705587387085, -0.16665558516979218, 0.1528555303812027, 0.008310847915709019, 0.24820563197135925, 0.505246639251709, -0.04187020659446716, -0.40770453214645386, -0.06860294938087463, -0.19740137457847595, -0.5350338220596313, -0.20647849142551422, 0.1075424998998642, -0.23140767216682434, 0.26383376121520996, 0.16560928523540497, 0.13252468407154083, -0.025734055787324905, 0.5575470328330994, -0.023456308990716934, 0.17855562269687653, -0.40498086810112, 0.10259157419204712, -0.22239211201667786, 0.2665465474128723, 0.3310824930667877, 0.06871078163385391, 0.19856978952884674, 0.21895405650138855, 0.12389057874679565, 0.18351714313030243, -0.02767057716846466, -0.24382682144641876, 0.15693332254886627, 0.22942224144935608, -0.05795522779226303, 0.003518424928188324, 0.016482923179864883, 0.009270144626498222, 0.26667726039886475, -0.43398791551589966, 0.27164140343666077, 0.008817263878881931, 0.2757120728492737, -0.3280782103538513, 0.07763148844242096, -0.0038255825638771057, -0.14213985204696655, 0.08820138871669769, -0.07966485619544983, 0.5117199420928955, -0.18195602297782898, -0.11231466382741928, 0.22420784831047058, -0.20206879079341888, -0.149558886885643, 0.179502934217453, 0.24300464987754822, 0.37889987230300903, 0.10963493585586548, 0.034184779971838, -0.2756945788860321, 0.1485712230205536, -0.08603821694850922, -0.17948390543460846, -0.15540811419487, 0.3504401743412018, -0.2647799551486969, 0.10493423044681549, -0.020100565627217293, 0.13185377418994904, 0.16087090969085693, 0.24912090599536896, -0.3544083833694458, -0.4123484492301941, 0.6665610074996948, 0.058869414031505585, -0.3451693058013916, -0.08573300391435623, 0.031889185309410095, -0.13234996795654297, 0.040852248668670654, -0.7296361923217773, 0.254942387342453, -0.0165213905274868, -0.25397101044654846, -0.16647778451442719, 0.20076824724674225, -0.010890532284975052, -0.007559612393379211, -0.023994768038392067, 0.47691866755485535, 0.23885628581047058, -0.18050169944763184, -0.18337488174438477, -0.1403684765100479 ]
https://github.com/huggingface/datasets/issues/4199
Cache miss during reload for datasets using image fetch utilities through map
Hi ! Maybe one of the objects in the function is not deterministic across sessions ? You can read more about it and how to investigate here: https://huggingface.co/docs/datasets/about_cache
## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
28
Cache miss during reload for datasets using image fetch utilities through map ## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi ! Maybe one of the objects in the function is not deterministic across sessions ? You can read more about it and how to investigate here: https://huggingface.co/docs/datasets/about_cache
[ -0.538809061050415, -0.14229273796081543, -0.06251148879528046, 0.257691353559494, 0.06601901352405548, 0.04962260276079178, 0.12464995682239532, -0.01028386503458023, 0.48512405157089233, 0.11974229663610458, -0.04982226341962814, 0.4438687562942505, 0.3680505156517029, -0.1765507459640503, -0.10300419479608536, 0.12020586431026459, -0.026852644979953766, 0.1637633591890335, -0.1828443706035614, -0.16081559658050537, -0.30923599004745483, 0.20842665433883667, -0.36235713958740234, -0.2980818748474121, -0.19960284233093262, -0.0029701683670282364, -0.1684427261352539, 0.12123363465070724, 0.027894198894500732, -0.40241143107414246, 0.3238578140735626, 0.2566539943218231, 0.10431360453367233, 0.40487900376319885, -0.00011536135571077466, -0.1344270408153534, 0.2720872163772583, -0.12509654462337494, -0.010472998023033142, -0.11119845509529114, -0.3086096942424774, -0.25328370928764343, 0.09393718093633652, -0.4154947102069855, 0.18355220556259155, 0.29164260625839233, 0.23454494774341583, -0.3937247395515442, 0.3496822118759155, -0.04605647549033165, 0.20112812519073486, 0.23517370223999023, -0.2515092194080353, 0.057968705892562866, 0.0873996838927269, -0.03219754993915558, 0.09101720154285431, 0.1644156128168106, 0.2773282825946808, -0.13657182455062866, -0.31029489636421204, 0.5134248733520508, -0.28533679246902466, 0.1822086125612259, -0.10198486596345901, 0.026538800448179245, 0.12526214122772217, -0.28468650579452515, 0.1300562024116516, -0.1656835973262787, 0.48541170358657837, -0.009390633553266525, -0.3884161114692688, -0.1936209797859192, -0.42492109537124634, -0.06650622934103012, 0.23546519875526428, 0.10452799499034882, 0.07967345416545868, 0.05263502895832062, -0.5150630474090576, -0.08489064127206802, 0.2990431785583496, 0.12449513375759125, 0.0300329327583313, 0.07451561838388443, -0.06744751334190369, 0.2134023904800415, -0.16214671730995178, 0.34828972816467285, 0.2535979449748993, -0.25729888677597046, -0.10361777245998383, 0.2846554219722748, -0.3261966407299042, 0.14617998898029327, 0.10500872135162354, 0.04410158842802048, -0.0688120424747467, -0.026006747037172318, 0.22771596908569336, 0.20277026295661926, -0.04834757745265961, 0.35750362277030945, 0.13549426198005676, 0.013044890016317368, 0.0005366578698158264, 0.3917052745819092, 0.17558833956718445, 0.19357872009277344, -0.3123549222946167, -0.10417304188013077, 0.18653714656829834, -0.08841662108898163, 0.4370833933353424, 0.17646712064743042, 0.10046431422233582, -0.04234533756971359, 0.08548861742019653, -0.06900820881128311, -0.2282303273677826, -0.1856984794139862, -0.11537354439496994, 0.13472343981266022, -0.2081969529390335, 0.35483330488204956, 0.23883859813213348, -0.10302172601222992, -0.30110687017440796, -0.0902160108089447, -0.2704842686653137, -0.2335181087255478, -0.18364828824996948, 0.22673796117305756, 0.04958406463265419, -0.10772620141506195, 0.40848368406295776, 0.059979185461997986, -0.18037159740924835, -0.33640217781066895, 0.3869016170501709, -0.21375948190689087, 0.16544266045093536, 0.1494172215461731, 0.06613411009311676, 0.1256653517484665, 0.14588844776153564, 0.06779292970895767, 0.006707586348056793, 0.25762540102005005, -0.4860209822654724, -0.04175547510385513, 0.2522518038749695, 0.1979469358921051, -0.13094967603683472, 0.09476263076066971, -0.4320317804813385, -0.01272345706820488, 0.4820626378059387, 0.04939436540007591, 0.18124356865882874, -0.09634211659431458, -0.4463653862476349, -0.34061819314956665, 0.013842424377799034, 0.6789827942848206, -0.14568091928958893, -0.2210323065519333, -0.15148429572582245, 0.005324961617588997, 0.20938223600387573, 0.024516135454177856, -0.1725439876317978, 0.2053847759962082, -0.5312619805335999, 0.08888284862041473, 0.14875292778015137, -0.4117076098918915, -0.6002054214477539, 0.25655749440193176, -0.03779829293489456, 0.17597678303718567, -0.014795355498790741, 0.32484397292137146, 0.5295740365982056, -0.11848023533821106, -0.10294431447982788, 0.3025982975959778, -0.15642495453357697, 0.3233766257762909, -0.27645182609558105, -0.06186358630657196, -0.015289347618818283, 0.03155180811882019, 0.22794000804424286, 0.2726486623287201, 0.27191779017448425, -0.345058798789978, 0.26188910007476807, 0.0761193037033081, 0.24650561809539795, 0.1612817794084549, -0.197560653090477, 0.07882663607597351, 0.1901315301656723, 0.11255019158124924, -0.46554630994796753, 0.32482340931892395, -0.15160571038722992, -0.23609969019889832, 0.004219487309455872, -0.05566830933094025, -0.16701778769493103, -0.1653723418712616, -0.29640212655067444, -0.26726433634757996, 0.08177277445793152, 0.25013571977615356, 0.009763628244400024, 0.1664821356534958, 0.09459030628204346, 0.5646678805351257, 0.04272306710481644, 0.10423773527145386, -0.06570656597614288, 0.2966795265674591, 0.05256717652082443, 0.08233443647623062, -0.22404314577579498, -0.3079807758331299, 0.32173746824264526, -0.13763175904750824, -0.23313415050506592, 0.45645982027053833, 0.26076769828796387, 0.4342782497406006, -0.015682034194469452, -0.17125673592090607, 0.10577557981014252, -0.10618863999843597, 0.10700872540473938, -0.01880497857928276, 0.22164471447467804, -0.16934402287006378, 0.2526164650917053, 0.09206937998533249, 0.13931043446063995, -0.05639924854040146, -0.16675297915935516, 0.09121213108301163, 0.12807054817676544, -0.2222958356142044, 0.15714120864868164, -0.21907635033130646, 0.07289040088653564, -0.022825106978416443, 0.2142825424671173, 0.041286952793598175, 0.1429043412208557, 0.05273324251174927, 0.4853818714618683, 0.16004334390163422, 0.08429179340600967, 0.05936961621046066, -0.08278443664312363, -0.06752476096153259, 0.1141425296664238, 0.29855048656463623, 0.36634254455566406, 0.05387622490525246, 0.04194452986121178, 0.009440386667847633, 0.20073576271533966, -0.03215155377984047, 0.09621763229370117, 0.15853722393512726, 0.2225068360567093, -0.01104728877544403, 0.18562616407871246, 0.07844080775976181, -0.3671363890171051, -0.10385873913764954, 0.3462378680706024, 0.016088752076029778, 0.039454761892557144, -0.018571671098470688, -0.09501376748085022, -0.050984546542167664, 0.1159839779138565, 0.30568647384643555, 0.02103036269545555, -0.4192984402179718, -0.16227568686008453, 0.4059547781944275, 0.08345405757427216, 0.31506526470184326, -0.14692182838916779, -0.10694350302219391, 0.11843137443065643, -0.1953202188014984, -0.35160091519355774, -0.314609169960022, -0.1680048406124115, -0.04945198446512222, 0.046055831015110016, -0.3830374777317047, 0.4569522440433502, -0.27219492197036743, -0.06309069693088531, -0.3262610137462616, -0.25135642290115356, 0.11316530406475067, 0.11398947238922119, -0.10596597194671631, -0.030375637114048004, 0.12280444800853729, -0.34474921226501465, 0.31041982769966125, 0.10061735659837723, -0.24561956524848938, -0.3938539922237396, -0.12832693755626678, 0.029665900394320488, 0.006487634964287281, -0.1237214058637619, -0.41421791911125183, -0.13217441737651825, -0.296836793422699, -0.1388782262802124, -0.16007459163665771, 0.0825718492269516, -0.00987663771957159, 0.05242760106921196, -0.21495084464550018, -0.0770479217171669, -0.22465038299560547, -0.4897657632827759, -0.26401230692863464, 0.1400338113307953, -0.16519200801849365, -0.20471815764904022, 0.05748699977993965, -0.26181089878082275, 0.3163839280605316, 0.5731633305549622, -0.6966412663459778, -0.28674277663230896, -0.2065725028514862, 0.012483473867177963, -0.11260877549648285, 0.09626930207014084, 0.2511672377586365, 0.14435699582099915, -0.06734933704137802, -0.2551211416721344, -0.2258046269416809, 0.010414369404315948, 0.08375593274831772, -0.06742209941148758, -0.02257392555475235, 0.2772563397884369, 0.1668529063463211, 0.31510335206985474, 0.09682658314704895, -0.03649255260825157, 0.4151696264743805, 0.18921634554862976, 0.23738272488117218, -0.1164039745926857, -0.12882383167743683, -0.011745782569050789, -0.2716662287712097, -0.0015885531902313232, -0.18962053954601288, -0.0007311850786209106, -0.45752808451652527, -0.20120114088058472, -0.03632812574505806, -0.4277951717376709, -0.2997666895389557, -0.024707095697522163, -0.220966637134552, 0.41312170028686523, 0.2821500301361084, 0.10587675124406815, -0.39120230078697205, -0.17966124415397644, 0.04322125017642975, -0.04629102349281311, 0.6341553330421448, 0.04662099480628967, -0.2643527686595917, 0.26477938890457153, -0.13626012206077576, 0.31500932574272156, 0.23740985989570618, 0.28576409816741943, 0.2279464155435562, 0.11497163027524948, 0.11071188747882843, 0.10532451421022415, 0.6578532457351685, -0.34848278760910034, 0.1891748458147049, 0.00744493305683136, -0.3276083469390869, -0.16672000288963318, -0.01953369565308094, 0.14324913918972015, 0.47672805190086365, -0.009260982275009155, 0.21495677530765533, -0.09174162894487381, 0.06619086861610413, -0.14243276417255402, 0.027739420533180237, -0.14205631613731384, -0.26318737864494324, -0.07990060746669769, -0.22064152359962463, -0.33876729011535645, 0.019360631704330444, -0.13068348169326782, -0.2819463610649109, 0.09498167037963867, -0.15466172993183136, -0.06950678676366806, 0.21584969758987427, -0.4394509792327881, 0.007793644443154335, 0.2838365435600281, -0.16177554428577423, 0.2971735894680023, 0.25592175126075745, -0.28895971179008484, 0.05306330323219299, 0.5479391813278198, -0.10145676136016846, -0.11616627871990204, 0.08362821489572525, -0.050733257085084915, -0.11131566017866135, 0.12364772707223892, -0.08696598559617996, 0.002395518124103546, 0.1612759828567505, 0.07098758965730667, -0.3147367238998413, 0.07427314668893814, 0.12619496881961823, 0.17903359234333038, -0.19642454385757446, -0.6380597949028015, 0.13078853487968445, 0.089986652135849, -0.10031865537166595, 0.48592185974121094, -0.4771525263786316, -0.15324169397354126, 0.46653181314468384, 0.08458763360977173, 0.679702639579773, -0.35024261474609375, 0.06720985472202301, 0.014841422438621521, -0.13617822527885437, 0.3598574101924896, 0.03055509924888611, 0.2707556486129761, -0.38700100779533386, 0.056925512850284576, -0.07757797837257385, -0.22840291261672974, -0.05032918602228165, 0.2015579789876938, -0.1420082449913025, 0.3741329312324524, 0.24800021946430206, 0.23168902099132538, 0.13241656124591827, -0.049432408064603806, -0.2070031464099884, -0.2468099296092987, 0.1877886950969696, 0.10675907135009766, -0.08896517753601074, 0.2767060399055481, -0.15055003762245178, 0.04394038766622543, 0.005918528884649277, -0.22855791449546814, -0.09036065638065338, 0.0716734454035759, -0.5004437565803528, 0.4374220371246338, -0.25995689630508423, -0.020862191915512085, -0.16223572194576263, 0.35124820470809937, -0.1853674203157425, -0.02125830575823784, 0.07269895076751709, 0.28446322679519653, 0.18056464195251465, 0.22919823229312897, 0.23948392271995544, -0.0786806046962738, 0.2588624656200409, 0.16850513219833374, -0.1607978641986847, -0.1767393946647644, -0.11921682208776474, -0.24019755423069, -0.05711793154478073, 0.41740936040878296, 0.35030966997146606, -0.04884408414363861, -0.09486834704875946, -0.12463857233524323, -0.23496893048286438, -0.17223204672336578, 0.06632433831691742, 0.27030104398727417, 0.10544037818908691, 0.37706640362739563, -0.1186317652463913, -0.24623233079910278, -0.06882154941558838, 0.5489092469215393, 0.21046656370162964, -0.34825199842453003, 0.3372831344604492, -0.050950247794389725, -0.23503082990646362, -0.14386820793151855, -0.3529120683670044, -0.3611232340335846, -0.6210971474647522, 0.1753808557987213, -0.23095877468585968, 0.1110183447599411, 0.023560108616948128, -0.21936842799186707, -0.1090778112411499, -0.04614381492137909, -0.07158534228801727, -0.5186214447021484, -0.2823275625705719, -0.11006012558937073, -0.30051296949386597, -0.01833168789744377, 0.18573251366615295, -0.07694831490516663, 0.026481101289391518, 0.1901177018880844, -0.26486319303512573, 0.27689334750175476, -0.1553766131401062, 0.26619642972946167, 0.1599172204732895, 0.10289400815963745, 0.20647332072257996, -0.16730628907680511, 0.02891027368605137, 0.32454395294189453, -0.3369903862476349, -0.1465473771095276, -0.027621496468782425, 0.14362619817256927, -0.005182430148124695, -0.1927831470966339, 0.023966286331415176, -0.10636205971240997, 0.1478492170572281, -0.3252396285533905, 0.0790267288684845, 0.21364697813987732, -0.14140202105045319, 0.08041102439165115, 0.02436298504471779, 0.036376357078552246, -0.057833924889564514, 0.15803468227386475, -0.4155876040458679, 0.1187526136636734, -0.062000710517168045, 0.27419325709342957, 0.06280487030744553, -0.000278569757938385, 0.05102498456835747, -0.16327664256095886, 0.09277097880840302, 0.07133717089891434, 0.6600547432899475, -0.34798675775527954, 0.0027486011385917664, 0.01123468391597271, 0.2784525156021118, -0.10778072476387024, -0.12312836945056915, -0.24701988697052002, 0.1261347383260727, 0.23238469660282135, -0.1874026209115982, -0.019192544743418694, 0.7703564167022705, 0.20574703812599182, 0.06936098635196686, 0.19956758618354797, 0.2047460675239563, -0.12484876811504364, -0.057297974824905396, 0.24502944946289062, 0.6014499664306641, -0.2946960926055908, 0.17952126264572144, -0.007588889449834824, 0.14421045780181885, 0.25741046667099, 0.08343273401260376, 0.28521379828453064, 0.024495653808116913, 0.19779817759990692, 0.3353345990180969, 0.3759309947490692, 0.1017618477344513, 0.24177157878875732, -0.2541457712650299, -0.848352313041687, 0.2164357602596283, 0.31063324213027954, -0.17784789204597473, 0.440385103225708, -0.06769809126853943, 0.07498375326395035, 0.24991272389888763, 0.04495697468519211, -0.1353444904088974, 0.24272918701171875, -0.2596842646598816, 0.04281596094369888, 0.2712404131889343, 0.035653941333293915, -0.07838623970746994, 0.14097455143928528, 0.23653773963451385, 0.08217573910951614, 0.6426130533218384, 0.09480670839548111, -0.166730597615242, -0.15455396473407745, -0.4155271351337433, 0.10700760036706924, 0.2578568756580353, -0.29346519708633423, 0.10623124241828918, 0.11612603813409805, -0.005452349781990051, -0.1437709629535675, 0.3571888506412506, 0.2887171804904938, 0.2717773914337158, -0.0625133067369461, 0.19722692668437958, 0.29480376839637756, 0.031145771965384483, -0.31451770663261414, 0.27075815200805664, -0.15952055156230927, -0.14266051352024078, 0.02107638120651245, 0.10608884692192078, -0.14944754540920258, 0.0748380646109581, 0.08643988519906998, 0.004986417479813099, 0.12426349520683289, -0.14144378900527954, 0.0684138834476471, -0.06737986952066422, -0.0910428985953331, 0.0917215421795845, -0.19264602661132812, -0.2587028741836548, 0.3583815097808838, -0.21224050223827362, 0.20897799730300903, -0.17311632633209229, 0.057208769023418427, -0.06827311217784882, 0.10125552117824554, 0.7098272442817688, 0.20890608429908752, -0.4419154226779938, -0.14380916953086853, -0.5076889991760254, 0.17325669527053833, -0.1433379203081131, -0.07749646157026291, -0.019490109756588936, 0.24614907801151276, 0.05851416289806366, 0.011594075709581375, 0.3134949803352356, -0.1543738842010498, 0.3851776719093323, 0.34180760383605957, -0.1670241504907608, -0.5232176184654236, 0.027409467846155167, -0.14976489543914795, 0.033603910356760025, -0.5820885300636292, 0.19857433438301086, -0.18613876402378082, 0.1994984745979309, -0.20603224635124207, -0.11800697445869446, 0.28050270676612854, -0.03560032695531845, 0.6197189688682556, 0.3314339518547058, 0.09757388383150101, -0.15194183588027954, -0.12096258997917175, -0.13171958923339844, -0.17173826694488525, 0.006722747348248959, -0.17132899165153503, 0.13145536184310913, 0.4526281952857971, -0.4137361943721771, -0.12755322456359863, -0.368681401014328, 0.1819140762090683, 0.03901905566453934, -0.056394223123788834, -0.21893998980522156, 0.0700625330209732, -0.10640738904476166, 0.09269985556602478, -0.08274451643228531, 0.47269636392593384, -0.04566377401351929, 0.3628140389919281, -0.3272985517978668, -0.35991668701171875, 0.36385348439216614, -0.4733112156391144, -0.14746874570846558, 0.03766568377614021, 0.26432886719703674, -0.0564979687333107, -0.04177257418632507, -0.31757843494415283, 0.08086851984262466, 0.3987445533275604, -0.02120855078101158, -0.20772339403629303, 0.12161794304847717, 0.1442989557981491, 0.23046238720417023, 0.062267038971185684, 0.21983283758163452, 0.0009788423776626587, -0.2669614255428314, 0.27906298637390137, -0.10795728862285614 ]
https://github.com/huggingface/datasets/issues/4199
Cache miss during reload for datasets using image fetch utilities through map
Hi @apsdehal! Can you verify that replacing ```python def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image ``` with ```python USER_AGENT = get_datasets_user_agent() def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": USER_AGENT}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image ``` fixes the issue?
## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
88
Cache miss during reload for datasets using image fetch utilities through map ## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi @apsdehal! Can you verify that replacing ```python def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image ``` with ```python USER_AGENT = get_datasets_user_agent() def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": USER_AGENT}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image ``` fixes the issue?
[ -0.538809061050415, -0.14229273796081543, -0.06251148879528046, 0.257691353559494, 0.06601901352405548, 0.04962260276079178, 0.12464995682239532, -0.01028386503458023, 0.48512405157089233, 0.11974229663610458, -0.04982226341962814, 0.4438687562942505, 0.3680505156517029, -0.1765507459640503, -0.10300419479608536, 0.12020586431026459, -0.026852644979953766, 0.1637633591890335, -0.1828443706035614, -0.16081559658050537, -0.30923599004745483, 0.20842665433883667, -0.36235713958740234, -0.2980818748474121, -0.19960284233093262, -0.0029701683670282364, -0.1684427261352539, 0.12123363465070724, 0.027894198894500732, -0.40241143107414246, 0.3238578140735626, 0.2566539943218231, 0.10431360453367233, 0.40487900376319885, -0.00011536135571077466, -0.1344270408153534, 0.2720872163772583, -0.12509654462337494, -0.010472998023033142, -0.11119845509529114, -0.3086096942424774, -0.25328370928764343, 0.09393718093633652, -0.4154947102069855, 0.18355220556259155, 0.29164260625839233, 0.23454494774341583, -0.3937247395515442, 0.3496822118759155, -0.04605647549033165, 0.20112812519073486, 0.23517370223999023, -0.2515092194080353, 0.057968705892562866, 0.0873996838927269, -0.03219754993915558, 0.09101720154285431, 0.1644156128168106, 0.2773282825946808, -0.13657182455062866, -0.31029489636421204, 0.5134248733520508, -0.28533679246902466, 0.1822086125612259, -0.10198486596345901, 0.026538800448179245, 0.12526214122772217, -0.28468650579452515, 0.1300562024116516, -0.1656835973262787, 0.48541170358657837, -0.009390633553266525, -0.3884161114692688, -0.1936209797859192, -0.42492109537124634, -0.06650622934103012, 0.23546519875526428, 0.10452799499034882, 0.07967345416545868, 0.05263502895832062, -0.5150630474090576, -0.08489064127206802, 0.2990431785583496, 0.12449513375759125, 0.0300329327583313, 0.07451561838388443, -0.06744751334190369, 0.2134023904800415, -0.16214671730995178, 0.34828972816467285, 0.2535979449748993, -0.25729888677597046, -0.10361777245998383, 0.2846554219722748, -0.3261966407299042, 0.14617998898029327, 0.10500872135162354, 0.04410158842802048, -0.0688120424747467, -0.026006747037172318, 0.22771596908569336, 0.20277026295661926, -0.04834757745265961, 0.35750362277030945, 0.13549426198005676, 0.013044890016317368, 0.0005366578698158264, 0.3917052745819092, 0.17558833956718445, 0.19357872009277344, -0.3123549222946167, -0.10417304188013077, 0.18653714656829834, -0.08841662108898163, 0.4370833933353424, 0.17646712064743042, 0.10046431422233582, -0.04234533756971359, 0.08548861742019653, -0.06900820881128311, -0.2282303273677826, -0.1856984794139862, -0.11537354439496994, 0.13472343981266022, -0.2081969529390335, 0.35483330488204956, 0.23883859813213348, -0.10302172601222992, -0.30110687017440796, -0.0902160108089447, -0.2704842686653137, -0.2335181087255478, -0.18364828824996948, 0.22673796117305756, 0.04958406463265419, -0.10772620141506195, 0.40848368406295776, 0.059979185461997986, -0.18037159740924835, -0.33640217781066895, 0.3869016170501709, -0.21375948190689087, 0.16544266045093536, 0.1494172215461731, 0.06613411009311676, 0.1256653517484665, 0.14588844776153564, 0.06779292970895767, 0.006707586348056793, 0.25762540102005005, -0.4860209822654724, -0.04175547510385513, 0.2522518038749695, 0.1979469358921051, -0.13094967603683472, 0.09476263076066971, -0.4320317804813385, -0.01272345706820488, 0.4820626378059387, 0.04939436540007591, 0.18124356865882874, -0.09634211659431458, -0.4463653862476349, -0.34061819314956665, 0.013842424377799034, 0.6789827942848206, -0.14568091928958893, -0.2210323065519333, -0.15148429572582245, 0.005324961617588997, 0.20938223600387573, 0.024516135454177856, -0.1725439876317978, 0.2053847759962082, -0.5312619805335999, 0.08888284862041473, 0.14875292778015137, -0.4117076098918915, -0.6002054214477539, 0.25655749440193176, -0.03779829293489456, 0.17597678303718567, -0.014795355498790741, 0.32484397292137146, 0.5295740365982056, -0.11848023533821106, -0.10294431447982788, 0.3025982975959778, -0.15642495453357697, 0.3233766257762909, -0.27645182609558105, -0.06186358630657196, -0.015289347618818283, 0.03155180811882019, 0.22794000804424286, 0.2726486623287201, 0.27191779017448425, -0.345058798789978, 0.26188910007476807, 0.0761193037033081, 0.24650561809539795, 0.1612817794084549, -0.197560653090477, 0.07882663607597351, 0.1901315301656723, 0.11255019158124924, -0.46554630994796753, 0.32482340931892395, -0.15160571038722992, -0.23609969019889832, 0.004219487309455872, -0.05566830933094025, -0.16701778769493103, -0.1653723418712616, -0.29640212655067444, -0.26726433634757996, 0.08177277445793152, 0.25013571977615356, 0.009763628244400024, 0.1664821356534958, 0.09459030628204346, 0.5646678805351257, 0.04272306710481644, 0.10423773527145386, -0.06570656597614288, 0.2966795265674591, 0.05256717652082443, 0.08233443647623062, -0.22404314577579498, -0.3079807758331299, 0.32173746824264526, -0.13763175904750824, -0.23313415050506592, 0.45645982027053833, 0.26076769828796387, 0.4342782497406006, -0.015682034194469452, -0.17125673592090607, 0.10577557981014252, -0.10618863999843597, 0.10700872540473938, -0.01880497857928276, 0.22164471447467804, -0.16934402287006378, 0.2526164650917053, 0.09206937998533249, 0.13931043446063995, -0.05639924854040146, -0.16675297915935516, 0.09121213108301163, 0.12807054817676544, -0.2222958356142044, 0.15714120864868164, -0.21907635033130646, 0.07289040088653564, -0.022825106978416443, 0.2142825424671173, 0.041286952793598175, 0.1429043412208557, 0.05273324251174927, 0.4853818714618683, 0.16004334390163422, 0.08429179340600967, 0.05936961621046066, -0.08278443664312363, -0.06752476096153259, 0.1141425296664238, 0.29855048656463623, 0.36634254455566406, 0.05387622490525246, 0.04194452986121178, 0.009440386667847633, 0.20073576271533966, -0.03215155377984047, 0.09621763229370117, 0.15853722393512726, 0.2225068360567093, -0.01104728877544403, 0.18562616407871246, 0.07844080775976181, -0.3671363890171051, -0.10385873913764954, 0.3462378680706024, 0.016088752076029778, 0.039454761892557144, -0.018571671098470688, -0.09501376748085022, -0.050984546542167664, 0.1159839779138565, 0.30568647384643555, 0.02103036269545555, -0.4192984402179718, -0.16227568686008453, 0.4059547781944275, 0.08345405757427216, 0.31506526470184326, -0.14692182838916779, -0.10694350302219391, 0.11843137443065643, -0.1953202188014984, -0.35160091519355774, -0.314609169960022, -0.1680048406124115, -0.04945198446512222, 0.046055831015110016, -0.3830374777317047, 0.4569522440433502, -0.27219492197036743, -0.06309069693088531, -0.3262610137462616, -0.25135642290115356, 0.11316530406475067, 0.11398947238922119, -0.10596597194671631, -0.030375637114048004, 0.12280444800853729, -0.34474921226501465, 0.31041982769966125, 0.10061735659837723, -0.24561956524848938, -0.3938539922237396, -0.12832693755626678, 0.029665900394320488, 0.006487634964287281, -0.1237214058637619, -0.41421791911125183, -0.13217441737651825, -0.296836793422699, -0.1388782262802124, -0.16007459163665771, 0.0825718492269516, -0.00987663771957159, 0.05242760106921196, -0.21495084464550018, -0.0770479217171669, -0.22465038299560547, -0.4897657632827759, -0.26401230692863464, 0.1400338113307953, -0.16519200801849365, -0.20471815764904022, 0.05748699977993965, -0.26181089878082275, 0.3163839280605316, 0.5731633305549622, -0.6966412663459778, -0.28674277663230896, -0.2065725028514862, 0.012483473867177963, -0.11260877549648285, 0.09626930207014084, 0.2511672377586365, 0.14435699582099915, -0.06734933704137802, -0.2551211416721344, -0.2258046269416809, 0.010414369404315948, 0.08375593274831772, -0.06742209941148758, -0.02257392555475235, 0.2772563397884369, 0.1668529063463211, 0.31510335206985474, 0.09682658314704895, -0.03649255260825157, 0.4151696264743805, 0.18921634554862976, 0.23738272488117218, -0.1164039745926857, -0.12882383167743683, -0.011745782569050789, -0.2716662287712097, -0.0015885531902313232, -0.18962053954601288, -0.0007311850786209106, -0.45752808451652527, -0.20120114088058472, -0.03632812574505806, -0.4277951717376709, -0.2997666895389557, -0.024707095697522163, -0.220966637134552, 0.41312170028686523, 0.2821500301361084, 0.10587675124406815, -0.39120230078697205, -0.17966124415397644, 0.04322125017642975, -0.04629102349281311, 0.6341553330421448, 0.04662099480628967, -0.2643527686595917, 0.26477938890457153, -0.13626012206077576, 0.31500932574272156, 0.23740985989570618, 0.28576409816741943, 0.2279464155435562, 0.11497163027524948, 0.11071188747882843, 0.10532451421022415, 0.6578532457351685, -0.34848278760910034, 0.1891748458147049, 0.00744493305683136, -0.3276083469390869, -0.16672000288963318, -0.01953369565308094, 0.14324913918972015, 0.47672805190086365, -0.009260982275009155, 0.21495677530765533, -0.09174162894487381, 0.06619086861610413, -0.14243276417255402, 0.027739420533180237, -0.14205631613731384, -0.26318737864494324, -0.07990060746669769, -0.22064152359962463, -0.33876729011535645, 0.019360631704330444, -0.13068348169326782, -0.2819463610649109, 0.09498167037963867, -0.15466172993183136, -0.06950678676366806, 0.21584969758987427, -0.4394509792327881, 0.007793644443154335, 0.2838365435600281, -0.16177554428577423, 0.2971735894680023, 0.25592175126075745, -0.28895971179008484, 0.05306330323219299, 0.5479391813278198, -0.10145676136016846, -0.11616627871990204, 0.08362821489572525, -0.050733257085084915, -0.11131566017866135, 0.12364772707223892, -0.08696598559617996, 0.002395518124103546, 0.1612759828567505, 0.07098758965730667, -0.3147367238998413, 0.07427314668893814, 0.12619496881961823, 0.17903359234333038, -0.19642454385757446, -0.6380597949028015, 0.13078853487968445, 0.089986652135849, -0.10031865537166595, 0.48592185974121094, -0.4771525263786316, -0.15324169397354126, 0.46653181314468384, 0.08458763360977173, 0.679702639579773, -0.35024261474609375, 0.06720985472202301, 0.014841422438621521, -0.13617822527885437, 0.3598574101924896, 0.03055509924888611, 0.2707556486129761, -0.38700100779533386, 0.056925512850284576, -0.07757797837257385, -0.22840291261672974, -0.05032918602228165, 0.2015579789876938, -0.1420082449913025, 0.3741329312324524, 0.24800021946430206, 0.23168902099132538, 0.13241656124591827, -0.049432408064603806, -0.2070031464099884, -0.2468099296092987, 0.1877886950969696, 0.10675907135009766, -0.08896517753601074, 0.2767060399055481, -0.15055003762245178, 0.04394038766622543, 0.005918528884649277, -0.22855791449546814, -0.09036065638065338, 0.0716734454035759, -0.5004437565803528, 0.4374220371246338, -0.25995689630508423, -0.020862191915512085, -0.16223572194576263, 0.35124820470809937, -0.1853674203157425, -0.02125830575823784, 0.07269895076751709, 0.28446322679519653, 0.18056464195251465, 0.22919823229312897, 0.23948392271995544, -0.0786806046962738, 0.2588624656200409, 0.16850513219833374, -0.1607978641986847, -0.1767393946647644, -0.11921682208776474, -0.24019755423069, -0.05711793154478073, 0.41740936040878296, 0.35030966997146606, -0.04884408414363861, -0.09486834704875946, -0.12463857233524323, -0.23496893048286438, -0.17223204672336578, 0.06632433831691742, 0.27030104398727417, 0.10544037818908691, 0.37706640362739563, -0.1186317652463913, -0.24623233079910278, -0.06882154941558838, 0.5489092469215393, 0.21046656370162964, -0.34825199842453003, 0.3372831344604492, -0.050950247794389725, -0.23503082990646362, -0.14386820793151855, -0.3529120683670044, -0.3611232340335846, -0.6210971474647522, 0.1753808557987213, -0.23095877468585968, 0.1110183447599411, 0.023560108616948128, -0.21936842799186707, -0.1090778112411499, -0.04614381492137909, -0.07158534228801727, -0.5186214447021484, -0.2823275625705719, -0.11006012558937073, -0.30051296949386597, -0.01833168789744377, 0.18573251366615295, -0.07694831490516663, 0.026481101289391518, 0.1901177018880844, -0.26486319303512573, 0.27689334750175476, -0.1553766131401062, 0.26619642972946167, 0.1599172204732895, 0.10289400815963745, 0.20647332072257996, -0.16730628907680511, 0.02891027368605137, 0.32454395294189453, -0.3369903862476349, -0.1465473771095276, -0.027621496468782425, 0.14362619817256927, -0.005182430148124695, -0.1927831470966339, 0.023966286331415176, -0.10636205971240997, 0.1478492170572281, -0.3252396285533905, 0.0790267288684845, 0.21364697813987732, -0.14140202105045319, 0.08041102439165115, 0.02436298504471779, 0.036376357078552246, -0.057833924889564514, 0.15803468227386475, -0.4155876040458679, 0.1187526136636734, -0.062000710517168045, 0.27419325709342957, 0.06280487030744553, -0.000278569757938385, 0.05102498456835747, -0.16327664256095886, 0.09277097880840302, 0.07133717089891434, 0.6600547432899475, -0.34798675775527954, 0.0027486011385917664, 0.01123468391597271, 0.2784525156021118, -0.10778072476387024, -0.12312836945056915, -0.24701988697052002, 0.1261347383260727, 0.23238469660282135, -0.1874026209115982, -0.019192544743418694, 0.7703564167022705, 0.20574703812599182, 0.06936098635196686, 0.19956758618354797, 0.2047460675239563, -0.12484876811504364, -0.057297974824905396, 0.24502944946289062, 0.6014499664306641, -0.2946960926055908, 0.17952126264572144, -0.007588889449834824, 0.14421045780181885, 0.25741046667099, 0.08343273401260376, 0.28521379828453064, 0.024495653808116913, 0.19779817759990692, 0.3353345990180969, 0.3759309947490692, 0.1017618477344513, 0.24177157878875732, -0.2541457712650299, -0.848352313041687, 0.2164357602596283, 0.31063324213027954, -0.17784789204597473, 0.440385103225708, -0.06769809126853943, 0.07498375326395035, 0.24991272389888763, 0.04495697468519211, -0.1353444904088974, 0.24272918701171875, -0.2596842646598816, 0.04281596094369888, 0.2712404131889343, 0.035653941333293915, -0.07838623970746994, 0.14097455143928528, 0.23653773963451385, 0.08217573910951614, 0.6426130533218384, 0.09480670839548111, -0.166730597615242, -0.15455396473407745, -0.4155271351337433, 0.10700760036706924, 0.2578568756580353, -0.29346519708633423, 0.10623124241828918, 0.11612603813409805, -0.005452349781990051, -0.1437709629535675, 0.3571888506412506, 0.2887171804904938, 0.2717773914337158, -0.0625133067369461, 0.19722692668437958, 0.29480376839637756, 0.031145771965384483, -0.31451770663261414, 0.27075815200805664, -0.15952055156230927, -0.14266051352024078, 0.02107638120651245, 0.10608884692192078, -0.14944754540920258, 0.0748380646109581, 0.08643988519906998, 0.004986417479813099, 0.12426349520683289, -0.14144378900527954, 0.0684138834476471, -0.06737986952066422, -0.0910428985953331, 0.0917215421795845, -0.19264602661132812, -0.2587028741836548, 0.3583815097808838, -0.21224050223827362, 0.20897799730300903, -0.17311632633209229, 0.057208769023418427, -0.06827311217784882, 0.10125552117824554, 0.7098272442817688, 0.20890608429908752, -0.4419154226779938, -0.14380916953086853, -0.5076889991760254, 0.17325669527053833, -0.1433379203081131, -0.07749646157026291, -0.019490109756588936, 0.24614907801151276, 0.05851416289806366, 0.011594075709581375, 0.3134949803352356, -0.1543738842010498, 0.3851776719093323, 0.34180760383605957, -0.1670241504907608, -0.5232176184654236, 0.027409467846155167, -0.14976489543914795, 0.033603910356760025, -0.5820885300636292, 0.19857433438301086, -0.18613876402378082, 0.1994984745979309, -0.20603224635124207, -0.11800697445869446, 0.28050270676612854, -0.03560032695531845, 0.6197189688682556, 0.3314339518547058, 0.09757388383150101, -0.15194183588027954, -0.12096258997917175, -0.13171958923339844, -0.17173826694488525, 0.006722747348248959, -0.17132899165153503, 0.13145536184310913, 0.4526281952857971, -0.4137361943721771, -0.12755322456359863, -0.368681401014328, 0.1819140762090683, 0.03901905566453934, -0.056394223123788834, -0.21893998980522156, 0.0700625330209732, -0.10640738904476166, 0.09269985556602478, -0.08274451643228531, 0.47269636392593384, -0.04566377401351929, 0.3628140389919281, -0.3272985517978668, -0.35991668701171875, 0.36385348439216614, -0.4733112156391144, -0.14746874570846558, 0.03766568377614021, 0.26432886719703674, -0.0564979687333107, -0.04177257418632507, -0.31757843494415283, 0.08086851984262466, 0.3987445533275604, -0.02120855078101158, -0.20772339403629303, 0.12161794304847717, 0.1442989557981491, 0.23046238720417023, 0.062267038971185684, 0.21983283758163452, 0.0009788423776626587, -0.2669614255428314, 0.27906298637390137, -0.10795728862285614 ]
https://github.com/huggingface/datasets/issues/4199
Cache miss during reload for datasets using image fetch utilities through map
Thanks @mariosasko. That does fix the issue. In general, I think these image downloading utilities since they are being used by a lot of image dataset should be provided as a part of `datasets` library right to keep the logic consistent and READMEs smaller? If they already exists, that is also great, please point me to those. I saw that `http_get` does exist.
## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
63
Cache miss during reload for datasets using image fetch utilities through map ## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Thanks @mariosasko. That does fix the issue. In general, I think these image downloading utilities since they are being used by a lot of image dataset should be provided as a part of `datasets` library right to keep the logic consistent and READMEs smaller? If they already exists, that is also great, please point me to those. I saw that `http_get` does exist.
[ -0.538809061050415, -0.14229273796081543, -0.06251148879528046, 0.257691353559494, 0.06601901352405548, 0.04962260276079178, 0.12464995682239532, -0.01028386503458023, 0.48512405157089233, 0.11974229663610458, -0.04982226341962814, 0.4438687562942505, 0.3680505156517029, -0.1765507459640503, -0.10300419479608536, 0.12020586431026459, -0.026852644979953766, 0.1637633591890335, -0.1828443706035614, -0.16081559658050537, -0.30923599004745483, 0.20842665433883667, -0.36235713958740234, -0.2980818748474121, -0.19960284233093262, -0.0029701683670282364, -0.1684427261352539, 0.12123363465070724, 0.027894198894500732, -0.40241143107414246, 0.3238578140735626, 0.2566539943218231, 0.10431360453367233, 0.40487900376319885, -0.00011536135571077466, -0.1344270408153534, 0.2720872163772583, -0.12509654462337494, -0.010472998023033142, -0.11119845509529114, -0.3086096942424774, -0.25328370928764343, 0.09393718093633652, -0.4154947102069855, 0.18355220556259155, 0.29164260625839233, 0.23454494774341583, -0.3937247395515442, 0.3496822118759155, -0.04605647549033165, 0.20112812519073486, 0.23517370223999023, -0.2515092194080353, 0.057968705892562866, 0.0873996838927269, -0.03219754993915558, 0.09101720154285431, 0.1644156128168106, 0.2773282825946808, -0.13657182455062866, -0.31029489636421204, 0.5134248733520508, -0.28533679246902466, 0.1822086125612259, -0.10198486596345901, 0.026538800448179245, 0.12526214122772217, -0.28468650579452515, 0.1300562024116516, -0.1656835973262787, 0.48541170358657837, -0.009390633553266525, -0.3884161114692688, -0.1936209797859192, -0.42492109537124634, -0.06650622934103012, 0.23546519875526428, 0.10452799499034882, 0.07967345416545868, 0.05263502895832062, -0.5150630474090576, -0.08489064127206802, 0.2990431785583496, 0.12449513375759125, 0.0300329327583313, 0.07451561838388443, -0.06744751334190369, 0.2134023904800415, -0.16214671730995178, 0.34828972816467285, 0.2535979449748993, -0.25729888677597046, -0.10361777245998383, 0.2846554219722748, -0.3261966407299042, 0.14617998898029327, 0.10500872135162354, 0.04410158842802048, -0.0688120424747467, -0.026006747037172318, 0.22771596908569336, 0.20277026295661926, -0.04834757745265961, 0.35750362277030945, 0.13549426198005676, 0.013044890016317368, 0.0005366578698158264, 0.3917052745819092, 0.17558833956718445, 0.19357872009277344, -0.3123549222946167, -0.10417304188013077, 0.18653714656829834, -0.08841662108898163, 0.4370833933353424, 0.17646712064743042, 0.10046431422233582, -0.04234533756971359, 0.08548861742019653, -0.06900820881128311, -0.2282303273677826, -0.1856984794139862, -0.11537354439496994, 0.13472343981266022, -0.2081969529390335, 0.35483330488204956, 0.23883859813213348, -0.10302172601222992, -0.30110687017440796, -0.0902160108089447, -0.2704842686653137, -0.2335181087255478, -0.18364828824996948, 0.22673796117305756, 0.04958406463265419, -0.10772620141506195, 0.40848368406295776, 0.059979185461997986, -0.18037159740924835, -0.33640217781066895, 0.3869016170501709, -0.21375948190689087, 0.16544266045093536, 0.1494172215461731, 0.06613411009311676, 0.1256653517484665, 0.14588844776153564, 0.06779292970895767, 0.006707586348056793, 0.25762540102005005, -0.4860209822654724, -0.04175547510385513, 0.2522518038749695, 0.1979469358921051, -0.13094967603683472, 0.09476263076066971, -0.4320317804813385, -0.01272345706820488, 0.4820626378059387, 0.04939436540007591, 0.18124356865882874, -0.09634211659431458, -0.4463653862476349, -0.34061819314956665, 0.013842424377799034, 0.6789827942848206, -0.14568091928958893, -0.2210323065519333, -0.15148429572582245, 0.005324961617588997, 0.20938223600387573, 0.024516135454177856, -0.1725439876317978, 0.2053847759962082, -0.5312619805335999, 0.08888284862041473, 0.14875292778015137, -0.4117076098918915, -0.6002054214477539, 0.25655749440193176, -0.03779829293489456, 0.17597678303718567, -0.014795355498790741, 0.32484397292137146, 0.5295740365982056, -0.11848023533821106, -0.10294431447982788, 0.3025982975959778, -0.15642495453357697, 0.3233766257762909, -0.27645182609558105, -0.06186358630657196, -0.015289347618818283, 0.03155180811882019, 0.22794000804424286, 0.2726486623287201, 0.27191779017448425, -0.345058798789978, 0.26188910007476807, 0.0761193037033081, 0.24650561809539795, 0.1612817794084549, -0.197560653090477, 0.07882663607597351, 0.1901315301656723, 0.11255019158124924, -0.46554630994796753, 0.32482340931892395, -0.15160571038722992, -0.23609969019889832, 0.004219487309455872, -0.05566830933094025, -0.16701778769493103, -0.1653723418712616, -0.29640212655067444, -0.26726433634757996, 0.08177277445793152, 0.25013571977615356, 0.009763628244400024, 0.1664821356534958, 0.09459030628204346, 0.5646678805351257, 0.04272306710481644, 0.10423773527145386, -0.06570656597614288, 0.2966795265674591, 0.05256717652082443, 0.08233443647623062, -0.22404314577579498, -0.3079807758331299, 0.32173746824264526, -0.13763175904750824, -0.23313415050506592, 0.45645982027053833, 0.26076769828796387, 0.4342782497406006, -0.015682034194469452, -0.17125673592090607, 0.10577557981014252, -0.10618863999843597, 0.10700872540473938, -0.01880497857928276, 0.22164471447467804, -0.16934402287006378, 0.2526164650917053, 0.09206937998533249, 0.13931043446063995, -0.05639924854040146, -0.16675297915935516, 0.09121213108301163, 0.12807054817676544, -0.2222958356142044, 0.15714120864868164, -0.21907635033130646, 0.07289040088653564, -0.022825106978416443, 0.2142825424671173, 0.041286952793598175, 0.1429043412208557, 0.05273324251174927, 0.4853818714618683, 0.16004334390163422, 0.08429179340600967, 0.05936961621046066, -0.08278443664312363, -0.06752476096153259, 0.1141425296664238, 0.29855048656463623, 0.36634254455566406, 0.05387622490525246, 0.04194452986121178, 0.009440386667847633, 0.20073576271533966, -0.03215155377984047, 0.09621763229370117, 0.15853722393512726, 0.2225068360567093, -0.01104728877544403, 0.18562616407871246, 0.07844080775976181, -0.3671363890171051, -0.10385873913764954, 0.3462378680706024, 0.016088752076029778, 0.039454761892557144, -0.018571671098470688, -0.09501376748085022, -0.050984546542167664, 0.1159839779138565, 0.30568647384643555, 0.02103036269545555, -0.4192984402179718, -0.16227568686008453, 0.4059547781944275, 0.08345405757427216, 0.31506526470184326, -0.14692182838916779, -0.10694350302219391, 0.11843137443065643, -0.1953202188014984, -0.35160091519355774, -0.314609169960022, -0.1680048406124115, -0.04945198446512222, 0.046055831015110016, -0.3830374777317047, 0.4569522440433502, -0.27219492197036743, -0.06309069693088531, -0.3262610137462616, -0.25135642290115356, 0.11316530406475067, 0.11398947238922119, -0.10596597194671631, -0.030375637114048004, 0.12280444800853729, -0.34474921226501465, 0.31041982769966125, 0.10061735659837723, -0.24561956524848938, -0.3938539922237396, -0.12832693755626678, 0.029665900394320488, 0.006487634964287281, -0.1237214058637619, -0.41421791911125183, -0.13217441737651825, -0.296836793422699, -0.1388782262802124, -0.16007459163665771, 0.0825718492269516, -0.00987663771957159, 0.05242760106921196, -0.21495084464550018, -0.0770479217171669, -0.22465038299560547, -0.4897657632827759, -0.26401230692863464, 0.1400338113307953, -0.16519200801849365, -0.20471815764904022, 0.05748699977993965, -0.26181089878082275, 0.3163839280605316, 0.5731633305549622, -0.6966412663459778, -0.28674277663230896, -0.2065725028514862, 0.012483473867177963, -0.11260877549648285, 0.09626930207014084, 0.2511672377586365, 0.14435699582099915, -0.06734933704137802, -0.2551211416721344, -0.2258046269416809, 0.010414369404315948, 0.08375593274831772, -0.06742209941148758, -0.02257392555475235, 0.2772563397884369, 0.1668529063463211, 0.31510335206985474, 0.09682658314704895, -0.03649255260825157, 0.4151696264743805, 0.18921634554862976, 0.23738272488117218, -0.1164039745926857, -0.12882383167743683, -0.011745782569050789, -0.2716662287712097, -0.0015885531902313232, -0.18962053954601288, -0.0007311850786209106, -0.45752808451652527, -0.20120114088058472, -0.03632812574505806, -0.4277951717376709, -0.2997666895389557, -0.024707095697522163, -0.220966637134552, 0.41312170028686523, 0.2821500301361084, 0.10587675124406815, -0.39120230078697205, -0.17966124415397644, 0.04322125017642975, -0.04629102349281311, 0.6341553330421448, 0.04662099480628967, -0.2643527686595917, 0.26477938890457153, -0.13626012206077576, 0.31500932574272156, 0.23740985989570618, 0.28576409816741943, 0.2279464155435562, 0.11497163027524948, 0.11071188747882843, 0.10532451421022415, 0.6578532457351685, -0.34848278760910034, 0.1891748458147049, 0.00744493305683136, -0.3276083469390869, -0.16672000288963318, -0.01953369565308094, 0.14324913918972015, 0.47672805190086365, -0.009260982275009155, 0.21495677530765533, -0.09174162894487381, 0.06619086861610413, -0.14243276417255402, 0.027739420533180237, -0.14205631613731384, -0.26318737864494324, -0.07990060746669769, -0.22064152359962463, -0.33876729011535645, 0.019360631704330444, -0.13068348169326782, -0.2819463610649109, 0.09498167037963867, -0.15466172993183136, -0.06950678676366806, 0.21584969758987427, -0.4394509792327881, 0.007793644443154335, 0.2838365435600281, -0.16177554428577423, 0.2971735894680023, 0.25592175126075745, -0.28895971179008484, 0.05306330323219299, 0.5479391813278198, -0.10145676136016846, -0.11616627871990204, 0.08362821489572525, -0.050733257085084915, -0.11131566017866135, 0.12364772707223892, -0.08696598559617996, 0.002395518124103546, 0.1612759828567505, 0.07098758965730667, -0.3147367238998413, 0.07427314668893814, 0.12619496881961823, 0.17903359234333038, -0.19642454385757446, -0.6380597949028015, 0.13078853487968445, 0.089986652135849, -0.10031865537166595, 0.48592185974121094, -0.4771525263786316, -0.15324169397354126, 0.46653181314468384, 0.08458763360977173, 0.679702639579773, -0.35024261474609375, 0.06720985472202301, 0.014841422438621521, -0.13617822527885437, 0.3598574101924896, 0.03055509924888611, 0.2707556486129761, -0.38700100779533386, 0.056925512850284576, -0.07757797837257385, -0.22840291261672974, -0.05032918602228165, 0.2015579789876938, -0.1420082449913025, 0.3741329312324524, 0.24800021946430206, 0.23168902099132538, 0.13241656124591827, -0.049432408064603806, -0.2070031464099884, -0.2468099296092987, 0.1877886950969696, 0.10675907135009766, -0.08896517753601074, 0.2767060399055481, -0.15055003762245178, 0.04394038766622543, 0.005918528884649277, -0.22855791449546814, -0.09036065638065338, 0.0716734454035759, -0.5004437565803528, 0.4374220371246338, -0.25995689630508423, -0.020862191915512085, -0.16223572194576263, 0.35124820470809937, -0.1853674203157425, -0.02125830575823784, 0.07269895076751709, 0.28446322679519653, 0.18056464195251465, 0.22919823229312897, 0.23948392271995544, -0.0786806046962738, 0.2588624656200409, 0.16850513219833374, -0.1607978641986847, -0.1767393946647644, -0.11921682208776474, -0.24019755423069, -0.05711793154478073, 0.41740936040878296, 0.35030966997146606, -0.04884408414363861, -0.09486834704875946, -0.12463857233524323, -0.23496893048286438, -0.17223204672336578, 0.06632433831691742, 0.27030104398727417, 0.10544037818908691, 0.37706640362739563, -0.1186317652463913, -0.24623233079910278, -0.06882154941558838, 0.5489092469215393, 0.21046656370162964, -0.34825199842453003, 0.3372831344604492, -0.050950247794389725, -0.23503082990646362, -0.14386820793151855, -0.3529120683670044, -0.3611232340335846, -0.6210971474647522, 0.1753808557987213, -0.23095877468585968, 0.1110183447599411, 0.023560108616948128, -0.21936842799186707, -0.1090778112411499, -0.04614381492137909, -0.07158534228801727, -0.5186214447021484, -0.2823275625705719, -0.11006012558937073, -0.30051296949386597, -0.01833168789744377, 0.18573251366615295, -0.07694831490516663, 0.026481101289391518, 0.1901177018880844, -0.26486319303512573, 0.27689334750175476, -0.1553766131401062, 0.26619642972946167, 0.1599172204732895, 0.10289400815963745, 0.20647332072257996, -0.16730628907680511, 0.02891027368605137, 0.32454395294189453, -0.3369903862476349, -0.1465473771095276, -0.027621496468782425, 0.14362619817256927, -0.005182430148124695, -0.1927831470966339, 0.023966286331415176, -0.10636205971240997, 0.1478492170572281, -0.3252396285533905, 0.0790267288684845, 0.21364697813987732, -0.14140202105045319, 0.08041102439165115, 0.02436298504471779, 0.036376357078552246, -0.057833924889564514, 0.15803468227386475, -0.4155876040458679, 0.1187526136636734, -0.062000710517168045, 0.27419325709342957, 0.06280487030744553, -0.000278569757938385, 0.05102498456835747, -0.16327664256095886, 0.09277097880840302, 0.07133717089891434, 0.6600547432899475, -0.34798675775527954, 0.0027486011385917664, 0.01123468391597271, 0.2784525156021118, -0.10778072476387024, -0.12312836945056915, -0.24701988697052002, 0.1261347383260727, 0.23238469660282135, -0.1874026209115982, -0.019192544743418694, 0.7703564167022705, 0.20574703812599182, 0.06936098635196686, 0.19956758618354797, 0.2047460675239563, -0.12484876811504364, -0.057297974824905396, 0.24502944946289062, 0.6014499664306641, -0.2946960926055908, 0.17952126264572144, -0.007588889449834824, 0.14421045780181885, 0.25741046667099, 0.08343273401260376, 0.28521379828453064, 0.024495653808116913, 0.19779817759990692, 0.3353345990180969, 0.3759309947490692, 0.1017618477344513, 0.24177157878875732, -0.2541457712650299, -0.848352313041687, 0.2164357602596283, 0.31063324213027954, -0.17784789204597473, 0.440385103225708, -0.06769809126853943, 0.07498375326395035, 0.24991272389888763, 0.04495697468519211, -0.1353444904088974, 0.24272918701171875, -0.2596842646598816, 0.04281596094369888, 0.2712404131889343, 0.035653941333293915, -0.07838623970746994, 0.14097455143928528, 0.23653773963451385, 0.08217573910951614, 0.6426130533218384, 0.09480670839548111, -0.166730597615242, -0.15455396473407745, -0.4155271351337433, 0.10700760036706924, 0.2578568756580353, -0.29346519708633423, 0.10623124241828918, 0.11612603813409805, -0.005452349781990051, -0.1437709629535675, 0.3571888506412506, 0.2887171804904938, 0.2717773914337158, -0.0625133067369461, 0.19722692668437958, 0.29480376839637756, 0.031145771965384483, -0.31451770663261414, 0.27075815200805664, -0.15952055156230927, -0.14266051352024078, 0.02107638120651245, 0.10608884692192078, -0.14944754540920258, 0.0748380646109581, 0.08643988519906998, 0.004986417479813099, 0.12426349520683289, -0.14144378900527954, 0.0684138834476471, -0.06737986952066422, -0.0910428985953331, 0.0917215421795845, -0.19264602661132812, -0.2587028741836548, 0.3583815097808838, -0.21224050223827362, 0.20897799730300903, -0.17311632633209229, 0.057208769023418427, -0.06827311217784882, 0.10125552117824554, 0.7098272442817688, 0.20890608429908752, -0.4419154226779938, -0.14380916953086853, -0.5076889991760254, 0.17325669527053833, -0.1433379203081131, -0.07749646157026291, -0.019490109756588936, 0.24614907801151276, 0.05851416289806366, 0.011594075709581375, 0.3134949803352356, -0.1543738842010498, 0.3851776719093323, 0.34180760383605957, -0.1670241504907608, -0.5232176184654236, 0.027409467846155167, -0.14976489543914795, 0.033603910356760025, -0.5820885300636292, 0.19857433438301086, -0.18613876402378082, 0.1994984745979309, -0.20603224635124207, -0.11800697445869446, 0.28050270676612854, -0.03560032695531845, 0.6197189688682556, 0.3314339518547058, 0.09757388383150101, -0.15194183588027954, -0.12096258997917175, -0.13171958923339844, -0.17173826694488525, 0.006722747348248959, -0.17132899165153503, 0.13145536184310913, 0.4526281952857971, -0.4137361943721771, -0.12755322456359863, -0.368681401014328, 0.1819140762090683, 0.03901905566453934, -0.056394223123788834, -0.21893998980522156, 0.0700625330209732, -0.10640738904476166, 0.09269985556602478, -0.08274451643228531, 0.47269636392593384, -0.04566377401351929, 0.3628140389919281, -0.3272985517978668, -0.35991668701171875, 0.36385348439216614, -0.4733112156391144, -0.14746874570846558, 0.03766568377614021, 0.26432886719703674, -0.0564979687333107, -0.04177257418632507, -0.31757843494415283, 0.08086851984262466, 0.3987445533275604, -0.02120855078101158, -0.20772339403629303, 0.12161794304847717, 0.1442989557981491, 0.23046238720417023, 0.062267038971185684, 0.21983283758163452, 0.0009788423776626587, -0.2669614255428314, 0.27906298637390137, -0.10795728862285614 ]
https://github.com/huggingface/datasets/issues/4199
Cache miss during reload for datasets using image fetch utilities through map
You can find my rationale (and a proposed solution) for why these utilities are not a part of `datasets` here: https://github.com/huggingface/datasets/pull/4100#issuecomment-1097994003.
## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
21
Cache miss during reload for datasets using image fetch utilities through map ## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 You can find my rationale (and a proposed solution) for why these utilities are not a part of `datasets` here: https://github.com/huggingface/datasets/pull/4100#issuecomment-1097994003.
[ -0.538809061050415, -0.14229273796081543, -0.06251148879528046, 0.257691353559494, 0.06601901352405548, 0.04962260276079178, 0.12464995682239532, -0.01028386503458023, 0.48512405157089233, 0.11974229663610458, -0.04982226341962814, 0.4438687562942505, 0.3680505156517029, -0.1765507459640503, -0.10300419479608536, 0.12020586431026459, -0.026852644979953766, 0.1637633591890335, -0.1828443706035614, -0.16081559658050537, -0.30923599004745483, 0.20842665433883667, -0.36235713958740234, -0.2980818748474121, -0.19960284233093262, -0.0029701683670282364, -0.1684427261352539, 0.12123363465070724, 0.027894198894500732, -0.40241143107414246, 0.3238578140735626, 0.2566539943218231, 0.10431360453367233, 0.40487900376319885, -0.00011536135571077466, -0.1344270408153534, 0.2720872163772583, -0.12509654462337494, -0.010472998023033142, -0.11119845509529114, -0.3086096942424774, -0.25328370928764343, 0.09393718093633652, -0.4154947102069855, 0.18355220556259155, 0.29164260625839233, 0.23454494774341583, -0.3937247395515442, 0.3496822118759155, -0.04605647549033165, 0.20112812519073486, 0.23517370223999023, -0.2515092194080353, 0.057968705892562866, 0.0873996838927269, -0.03219754993915558, 0.09101720154285431, 0.1644156128168106, 0.2773282825946808, -0.13657182455062866, -0.31029489636421204, 0.5134248733520508, -0.28533679246902466, 0.1822086125612259, -0.10198486596345901, 0.026538800448179245, 0.12526214122772217, -0.28468650579452515, 0.1300562024116516, -0.1656835973262787, 0.48541170358657837, -0.009390633553266525, -0.3884161114692688, -0.1936209797859192, -0.42492109537124634, -0.06650622934103012, 0.23546519875526428, 0.10452799499034882, 0.07967345416545868, 0.05263502895832062, -0.5150630474090576, -0.08489064127206802, 0.2990431785583496, 0.12449513375759125, 0.0300329327583313, 0.07451561838388443, -0.06744751334190369, 0.2134023904800415, -0.16214671730995178, 0.34828972816467285, 0.2535979449748993, -0.25729888677597046, -0.10361777245998383, 0.2846554219722748, -0.3261966407299042, 0.14617998898029327, 0.10500872135162354, 0.04410158842802048, -0.0688120424747467, -0.026006747037172318, 0.22771596908569336, 0.20277026295661926, -0.04834757745265961, 0.35750362277030945, 0.13549426198005676, 0.013044890016317368, 0.0005366578698158264, 0.3917052745819092, 0.17558833956718445, 0.19357872009277344, -0.3123549222946167, -0.10417304188013077, 0.18653714656829834, -0.08841662108898163, 0.4370833933353424, 0.17646712064743042, 0.10046431422233582, -0.04234533756971359, 0.08548861742019653, -0.06900820881128311, -0.2282303273677826, -0.1856984794139862, -0.11537354439496994, 0.13472343981266022, -0.2081969529390335, 0.35483330488204956, 0.23883859813213348, -0.10302172601222992, -0.30110687017440796, -0.0902160108089447, -0.2704842686653137, -0.2335181087255478, -0.18364828824996948, 0.22673796117305756, 0.04958406463265419, -0.10772620141506195, 0.40848368406295776, 0.059979185461997986, -0.18037159740924835, -0.33640217781066895, 0.3869016170501709, -0.21375948190689087, 0.16544266045093536, 0.1494172215461731, 0.06613411009311676, 0.1256653517484665, 0.14588844776153564, 0.06779292970895767, 0.006707586348056793, 0.25762540102005005, -0.4860209822654724, -0.04175547510385513, 0.2522518038749695, 0.1979469358921051, -0.13094967603683472, 0.09476263076066971, -0.4320317804813385, -0.01272345706820488, 0.4820626378059387, 0.04939436540007591, 0.18124356865882874, -0.09634211659431458, -0.4463653862476349, -0.34061819314956665, 0.013842424377799034, 0.6789827942848206, -0.14568091928958893, -0.2210323065519333, -0.15148429572582245, 0.005324961617588997, 0.20938223600387573, 0.024516135454177856, -0.1725439876317978, 0.2053847759962082, -0.5312619805335999, 0.08888284862041473, 0.14875292778015137, -0.4117076098918915, -0.6002054214477539, 0.25655749440193176, -0.03779829293489456, 0.17597678303718567, -0.014795355498790741, 0.32484397292137146, 0.5295740365982056, -0.11848023533821106, -0.10294431447982788, 0.3025982975959778, -0.15642495453357697, 0.3233766257762909, -0.27645182609558105, -0.06186358630657196, -0.015289347618818283, 0.03155180811882019, 0.22794000804424286, 0.2726486623287201, 0.27191779017448425, -0.345058798789978, 0.26188910007476807, 0.0761193037033081, 0.24650561809539795, 0.1612817794084549, -0.197560653090477, 0.07882663607597351, 0.1901315301656723, 0.11255019158124924, -0.46554630994796753, 0.32482340931892395, -0.15160571038722992, -0.23609969019889832, 0.004219487309455872, -0.05566830933094025, -0.16701778769493103, -0.1653723418712616, -0.29640212655067444, -0.26726433634757996, 0.08177277445793152, 0.25013571977615356, 0.009763628244400024, 0.1664821356534958, 0.09459030628204346, 0.5646678805351257, 0.04272306710481644, 0.10423773527145386, -0.06570656597614288, 0.2966795265674591, 0.05256717652082443, 0.08233443647623062, -0.22404314577579498, -0.3079807758331299, 0.32173746824264526, -0.13763175904750824, -0.23313415050506592, 0.45645982027053833, 0.26076769828796387, 0.4342782497406006, -0.015682034194469452, -0.17125673592090607, 0.10577557981014252, -0.10618863999843597, 0.10700872540473938, -0.01880497857928276, 0.22164471447467804, -0.16934402287006378, 0.2526164650917053, 0.09206937998533249, 0.13931043446063995, -0.05639924854040146, -0.16675297915935516, 0.09121213108301163, 0.12807054817676544, -0.2222958356142044, 0.15714120864868164, -0.21907635033130646, 0.07289040088653564, -0.022825106978416443, 0.2142825424671173, 0.041286952793598175, 0.1429043412208557, 0.05273324251174927, 0.4853818714618683, 0.16004334390163422, 0.08429179340600967, 0.05936961621046066, -0.08278443664312363, -0.06752476096153259, 0.1141425296664238, 0.29855048656463623, 0.36634254455566406, 0.05387622490525246, 0.04194452986121178, 0.009440386667847633, 0.20073576271533966, -0.03215155377984047, 0.09621763229370117, 0.15853722393512726, 0.2225068360567093, -0.01104728877544403, 0.18562616407871246, 0.07844080775976181, -0.3671363890171051, -0.10385873913764954, 0.3462378680706024, 0.016088752076029778, 0.039454761892557144, -0.018571671098470688, -0.09501376748085022, -0.050984546542167664, 0.1159839779138565, 0.30568647384643555, 0.02103036269545555, -0.4192984402179718, -0.16227568686008453, 0.4059547781944275, 0.08345405757427216, 0.31506526470184326, -0.14692182838916779, -0.10694350302219391, 0.11843137443065643, -0.1953202188014984, -0.35160091519355774, -0.314609169960022, -0.1680048406124115, -0.04945198446512222, 0.046055831015110016, -0.3830374777317047, 0.4569522440433502, -0.27219492197036743, -0.06309069693088531, -0.3262610137462616, -0.25135642290115356, 0.11316530406475067, 0.11398947238922119, -0.10596597194671631, -0.030375637114048004, 0.12280444800853729, -0.34474921226501465, 0.31041982769966125, 0.10061735659837723, -0.24561956524848938, -0.3938539922237396, -0.12832693755626678, 0.029665900394320488, 0.006487634964287281, -0.1237214058637619, -0.41421791911125183, -0.13217441737651825, -0.296836793422699, -0.1388782262802124, -0.16007459163665771, 0.0825718492269516, -0.00987663771957159, 0.05242760106921196, -0.21495084464550018, -0.0770479217171669, -0.22465038299560547, -0.4897657632827759, -0.26401230692863464, 0.1400338113307953, -0.16519200801849365, -0.20471815764904022, 0.05748699977993965, -0.26181089878082275, 0.3163839280605316, 0.5731633305549622, -0.6966412663459778, -0.28674277663230896, -0.2065725028514862, 0.012483473867177963, -0.11260877549648285, 0.09626930207014084, 0.2511672377586365, 0.14435699582099915, -0.06734933704137802, -0.2551211416721344, -0.2258046269416809, 0.010414369404315948, 0.08375593274831772, -0.06742209941148758, -0.02257392555475235, 0.2772563397884369, 0.1668529063463211, 0.31510335206985474, 0.09682658314704895, -0.03649255260825157, 0.4151696264743805, 0.18921634554862976, 0.23738272488117218, -0.1164039745926857, -0.12882383167743683, -0.011745782569050789, -0.2716662287712097, -0.0015885531902313232, -0.18962053954601288, -0.0007311850786209106, -0.45752808451652527, -0.20120114088058472, -0.03632812574505806, -0.4277951717376709, -0.2997666895389557, -0.024707095697522163, -0.220966637134552, 0.41312170028686523, 0.2821500301361084, 0.10587675124406815, -0.39120230078697205, -0.17966124415397644, 0.04322125017642975, -0.04629102349281311, 0.6341553330421448, 0.04662099480628967, -0.2643527686595917, 0.26477938890457153, -0.13626012206077576, 0.31500932574272156, 0.23740985989570618, 0.28576409816741943, 0.2279464155435562, 0.11497163027524948, 0.11071188747882843, 0.10532451421022415, 0.6578532457351685, -0.34848278760910034, 0.1891748458147049, 0.00744493305683136, -0.3276083469390869, -0.16672000288963318, -0.01953369565308094, 0.14324913918972015, 0.47672805190086365, -0.009260982275009155, 0.21495677530765533, -0.09174162894487381, 0.06619086861610413, -0.14243276417255402, 0.027739420533180237, -0.14205631613731384, -0.26318737864494324, -0.07990060746669769, -0.22064152359962463, -0.33876729011535645, 0.019360631704330444, -0.13068348169326782, -0.2819463610649109, 0.09498167037963867, -0.15466172993183136, -0.06950678676366806, 0.21584969758987427, -0.4394509792327881, 0.007793644443154335, 0.2838365435600281, -0.16177554428577423, 0.2971735894680023, 0.25592175126075745, -0.28895971179008484, 0.05306330323219299, 0.5479391813278198, -0.10145676136016846, -0.11616627871990204, 0.08362821489572525, -0.050733257085084915, -0.11131566017866135, 0.12364772707223892, -0.08696598559617996, 0.002395518124103546, 0.1612759828567505, 0.07098758965730667, -0.3147367238998413, 0.07427314668893814, 0.12619496881961823, 0.17903359234333038, -0.19642454385757446, -0.6380597949028015, 0.13078853487968445, 0.089986652135849, -0.10031865537166595, 0.48592185974121094, -0.4771525263786316, -0.15324169397354126, 0.46653181314468384, 0.08458763360977173, 0.679702639579773, -0.35024261474609375, 0.06720985472202301, 0.014841422438621521, -0.13617822527885437, 0.3598574101924896, 0.03055509924888611, 0.2707556486129761, -0.38700100779533386, 0.056925512850284576, -0.07757797837257385, -0.22840291261672974, -0.05032918602228165, 0.2015579789876938, -0.1420082449913025, 0.3741329312324524, 0.24800021946430206, 0.23168902099132538, 0.13241656124591827, -0.049432408064603806, -0.2070031464099884, -0.2468099296092987, 0.1877886950969696, 0.10675907135009766, -0.08896517753601074, 0.2767060399055481, -0.15055003762245178, 0.04394038766622543, 0.005918528884649277, -0.22855791449546814, -0.09036065638065338, 0.0716734454035759, -0.5004437565803528, 0.4374220371246338, -0.25995689630508423, -0.020862191915512085, -0.16223572194576263, 0.35124820470809937, -0.1853674203157425, -0.02125830575823784, 0.07269895076751709, 0.28446322679519653, 0.18056464195251465, 0.22919823229312897, 0.23948392271995544, -0.0786806046962738, 0.2588624656200409, 0.16850513219833374, -0.1607978641986847, -0.1767393946647644, -0.11921682208776474, -0.24019755423069, -0.05711793154478073, 0.41740936040878296, 0.35030966997146606, -0.04884408414363861, -0.09486834704875946, -0.12463857233524323, -0.23496893048286438, -0.17223204672336578, 0.06632433831691742, 0.27030104398727417, 0.10544037818908691, 0.37706640362739563, -0.1186317652463913, -0.24623233079910278, -0.06882154941558838, 0.5489092469215393, 0.21046656370162964, -0.34825199842453003, 0.3372831344604492, -0.050950247794389725, -0.23503082990646362, -0.14386820793151855, -0.3529120683670044, -0.3611232340335846, -0.6210971474647522, 0.1753808557987213, -0.23095877468585968, 0.1110183447599411, 0.023560108616948128, -0.21936842799186707, -0.1090778112411499, -0.04614381492137909, -0.07158534228801727, -0.5186214447021484, -0.2823275625705719, -0.11006012558937073, -0.30051296949386597, -0.01833168789744377, 0.18573251366615295, -0.07694831490516663, 0.026481101289391518, 0.1901177018880844, -0.26486319303512573, 0.27689334750175476, -0.1553766131401062, 0.26619642972946167, 0.1599172204732895, 0.10289400815963745, 0.20647332072257996, -0.16730628907680511, 0.02891027368605137, 0.32454395294189453, -0.3369903862476349, -0.1465473771095276, -0.027621496468782425, 0.14362619817256927, -0.005182430148124695, -0.1927831470966339, 0.023966286331415176, -0.10636205971240997, 0.1478492170572281, -0.3252396285533905, 0.0790267288684845, 0.21364697813987732, -0.14140202105045319, 0.08041102439165115, 0.02436298504471779, 0.036376357078552246, -0.057833924889564514, 0.15803468227386475, -0.4155876040458679, 0.1187526136636734, -0.062000710517168045, 0.27419325709342957, 0.06280487030744553, -0.000278569757938385, 0.05102498456835747, -0.16327664256095886, 0.09277097880840302, 0.07133717089891434, 0.6600547432899475, -0.34798675775527954, 0.0027486011385917664, 0.01123468391597271, 0.2784525156021118, -0.10778072476387024, -0.12312836945056915, -0.24701988697052002, 0.1261347383260727, 0.23238469660282135, -0.1874026209115982, -0.019192544743418694, 0.7703564167022705, 0.20574703812599182, 0.06936098635196686, 0.19956758618354797, 0.2047460675239563, -0.12484876811504364, -0.057297974824905396, 0.24502944946289062, 0.6014499664306641, -0.2946960926055908, 0.17952126264572144, -0.007588889449834824, 0.14421045780181885, 0.25741046667099, 0.08343273401260376, 0.28521379828453064, 0.024495653808116913, 0.19779817759990692, 0.3353345990180969, 0.3759309947490692, 0.1017618477344513, 0.24177157878875732, -0.2541457712650299, -0.848352313041687, 0.2164357602596283, 0.31063324213027954, -0.17784789204597473, 0.440385103225708, -0.06769809126853943, 0.07498375326395035, 0.24991272389888763, 0.04495697468519211, -0.1353444904088974, 0.24272918701171875, -0.2596842646598816, 0.04281596094369888, 0.2712404131889343, 0.035653941333293915, -0.07838623970746994, 0.14097455143928528, 0.23653773963451385, 0.08217573910951614, 0.6426130533218384, 0.09480670839548111, -0.166730597615242, -0.15455396473407745, -0.4155271351337433, 0.10700760036706924, 0.2578568756580353, -0.29346519708633423, 0.10623124241828918, 0.11612603813409805, -0.005452349781990051, -0.1437709629535675, 0.3571888506412506, 0.2887171804904938, 0.2717773914337158, -0.0625133067369461, 0.19722692668437958, 0.29480376839637756, 0.031145771965384483, -0.31451770663261414, 0.27075815200805664, -0.15952055156230927, -0.14266051352024078, 0.02107638120651245, 0.10608884692192078, -0.14944754540920258, 0.0748380646109581, 0.08643988519906998, 0.004986417479813099, 0.12426349520683289, -0.14144378900527954, 0.0684138834476471, -0.06737986952066422, -0.0910428985953331, 0.0917215421795845, -0.19264602661132812, -0.2587028741836548, 0.3583815097808838, -0.21224050223827362, 0.20897799730300903, -0.17311632633209229, 0.057208769023418427, -0.06827311217784882, 0.10125552117824554, 0.7098272442817688, 0.20890608429908752, -0.4419154226779938, -0.14380916953086853, -0.5076889991760254, 0.17325669527053833, -0.1433379203081131, -0.07749646157026291, -0.019490109756588936, 0.24614907801151276, 0.05851416289806366, 0.011594075709581375, 0.3134949803352356, -0.1543738842010498, 0.3851776719093323, 0.34180760383605957, -0.1670241504907608, -0.5232176184654236, 0.027409467846155167, -0.14976489543914795, 0.033603910356760025, -0.5820885300636292, 0.19857433438301086, -0.18613876402378082, 0.1994984745979309, -0.20603224635124207, -0.11800697445869446, 0.28050270676612854, -0.03560032695531845, 0.6197189688682556, 0.3314339518547058, 0.09757388383150101, -0.15194183588027954, -0.12096258997917175, -0.13171958923339844, -0.17173826694488525, 0.006722747348248959, -0.17132899165153503, 0.13145536184310913, 0.4526281952857971, -0.4137361943721771, -0.12755322456359863, -0.368681401014328, 0.1819140762090683, 0.03901905566453934, -0.056394223123788834, -0.21893998980522156, 0.0700625330209732, -0.10640738904476166, 0.09269985556602478, -0.08274451643228531, 0.47269636392593384, -0.04566377401351929, 0.3628140389919281, -0.3272985517978668, -0.35991668701171875, 0.36385348439216614, -0.4733112156391144, -0.14746874570846558, 0.03766568377614021, 0.26432886719703674, -0.0564979687333107, -0.04177257418632507, -0.31757843494415283, 0.08086851984262466, 0.3987445533275604, -0.02120855078101158, -0.20772339403629303, 0.12161794304847717, 0.1442989557981491, 0.23046238720417023, 0.062267038971185684, 0.21983283758163452, 0.0009788423776626587, -0.2669614255428314, 0.27906298637390137, -0.10795728862285614 ]
https://github.com/huggingface/datasets/issues/4199
Cache miss during reload for datasets using image fetch utilities through map
Makes sense. But, I think as the number of image datasets as grow, more people are copying pasting original code from docs to work as it is while we make fixes to them later. I think we do need a central place for these to avoid that confusion as well as more easier access to image datasets. Should we restart that discussion, possible on slack?
## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
65
Cache miss during reload for datasets using image fetch utilities through map ## Describe the bug It looks like that result of `.map` operation dataset are missing the cache when you reload the script and always run from scratch. In same interpretor session, they are able to find the cache and reload it. But, when you exit the interpretor and reload it, the downloading starts from scratch. ## Steps to reproduce the bug Using the example provided in `red_caps` dataset. ```python from concurrent.futures import ThreadPoolExecutor from functools import partial import io import urllib import PIL.Image import datasets from datasets import load_dataset from datasets.utils.file_utils import get_datasets_user_agent def fetch_single_image(image_url, timeout=None, retries=0): for _ in range(retries + 1): try: request = urllib.request.Request( image_url, data=None, headers={"user-agent": get_datasets_user_agent()}, ) with urllib.request.urlopen(request, timeout=timeout) as req: image = PIL.Image.open(io.BytesIO(req.read())) break except Exception: image = None return image def fetch_images(batch, num_threads, timeout=None, retries=0): fetch_single_image_with_args = partial(fetch_single_image, timeout=timeout, retries=retries) with ThreadPoolExecutor(max_workers=num_threads) as executor: batch["image"] = list(executor.map(lambda image_urls: [fetch_single_image_with_args(image_url) for image_url in image_urls], batch["image_url"])) return batch def process_image_urls(batch): processed_batch_image_urls = [] for image_url in batch["image_url"]: processed_example_image_urls = [] image_url_splits = re.findall(r"http\S+", image_url) for image_url_split in image_url_splits: if "imgur" in image_url_split and "," in image_url_split: for image_url_part in image_url_split.split(","): if not image_url_part: continue image_url_part = image_url_part.strip() root, ext = os.path.splitext(image_url_part) if not root.startswith("http"): root = "http://i.imgur.com/" + root root = root.split("#")[0] if not ext: ext = ".jpg" ext = re.split(r"[?%]", ext)[0] image_url_part = root + ext processed_example_image_urls.append(image_url_part) else: processed_example_image_urls.append(image_url_split) processed_batch_image_urls.append(processed_example_image_urls) batch["image_url"] = processed_batch_image_urls return batch dset = load_dataset("red_caps", "jellyfish") dset = dset.map(process_image_urls, batched=True, num_proc=4) features = dset["train"].features.copy() features["image"] = datasets.Sequence(datasets.Image()) num_threads = 5 dset = dset.map(fetch_images, batched=True, batch_size=50, features=features, fn_kwargs={"num_threads": num_threads}) ``` Run this in an interpretor or as a script twice and see that the cache is missed the second time. ## Expected results At reload there should not be any cache miss ## Actual results Every time script is run, cache is missed and dataset is built from scratch. ## Environment info - `datasets` version: 2.1.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-glibc2.10 - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Makes sense. But, I think as the number of image datasets as grow, more people are copying pasting original code from docs to work as it is while we make fixes to them later. I think we do need a central place for these to avoid that confusion as well as more easier access to image datasets. Should we restart that discussion, possible on slack?
[ -0.538809061050415, -0.14229273796081543, -0.06251148879528046, 0.257691353559494, 0.06601901352405548, 0.04962260276079178, 0.12464995682239532, -0.01028386503458023, 0.48512405157089233, 0.11974229663610458, -0.04982226341962814, 0.4438687562942505, 0.3680505156517029, -0.1765507459640503, -0.10300419479608536, 0.12020586431026459, -0.026852644979953766, 0.1637633591890335, -0.1828443706035614, -0.16081559658050537, -0.30923599004745483, 0.20842665433883667, -0.36235713958740234, -0.2980818748474121, -0.19960284233093262, -0.0029701683670282364, -0.1684427261352539, 0.12123363465070724, 0.027894198894500732, -0.40241143107414246, 0.3238578140735626, 0.2566539943218231, 0.10431360453367233, 0.40487900376319885, -0.00011536135571077466, -0.1344270408153534, 0.2720872163772583, -0.12509654462337494, -0.010472998023033142, -0.11119845509529114, -0.3086096942424774, -0.25328370928764343, 0.09393718093633652, -0.4154947102069855, 0.18355220556259155, 0.29164260625839233, 0.23454494774341583, -0.3937247395515442, 0.3496822118759155, -0.04605647549033165, 0.20112812519073486, 0.23517370223999023, -0.2515092194080353, 0.057968705892562866, 0.0873996838927269, -0.03219754993915558, 0.09101720154285431, 0.1644156128168106, 0.2773282825946808, -0.13657182455062866, -0.31029489636421204, 0.5134248733520508, -0.28533679246902466, 0.1822086125612259, -0.10198486596345901, 0.026538800448179245, 0.12526214122772217, -0.28468650579452515, 0.1300562024116516, -0.1656835973262787, 0.48541170358657837, -0.009390633553266525, -0.3884161114692688, -0.1936209797859192, -0.42492109537124634, -0.06650622934103012, 0.23546519875526428, 0.10452799499034882, 0.07967345416545868, 0.05263502895832062, -0.5150630474090576, -0.08489064127206802, 0.2990431785583496, 0.12449513375759125, 0.0300329327583313, 0.07451561838388443, -0.06744751334190369, 0.2134023904800415, -0.16214671730995178, 0.34828972816467285, 0.2535979449748993, -0.25729888677597046, -0.10361777245998383, 0.2846554219722748, -0.3261966407299042, 0.14617998898029327, 0.10500872135162354, 0.04410158842802048, -0.0688120424747467, -0.026006747037172318, 0.22771596908569336, 0.20277026295661926, -0.04834757745265961, 0.35750362277030945, 0.13549426198005676, 0.013044890016317368, 0.0005366578698158264, 0.3917052745819092, 0.17558833956718445, 0.19357872009277344, -0.3123549222946167, -0.10417304188013077, 0.18653714656829834, -0.08841662108898163, 0.4370833933353424, 0.17646712064743042, 0.10046431422233582, -0.04234533756971359, 0.08548861742019653, -0.06900820881128311, -0.2282303273677826, -0.1856984794139862, -0.11537354439496994, 0.13472343981266022, -0.2081969529390335, 0.35483330488204956, 0.23883859813213348, -0.10302172601222992, -0.30110687017440796, -0.0902160108089447, -0.2704842686653137, -0.2335181087255478, -0.18364828824996948, 0.22673796117305756, 0.04958406463265419, -0.10772620141506195, 0.40848368406295776, 0.059979185461997986, -0.18037159740924835, -0.33640217781066895, 0.3869016170501709, -0.21375948190689087, 0.16544266045093536, 0.1494172215461731, 0.06613411009311676, 0.1256653517484665, 0.14588844776153564, 0.06779292970895767, 0.006707586348056793, 0.25762540102005005, -0.4860209822654724, -0.04175547510385513, 0.2522518038749695, 0.1979469358921051, -0.13094967603683472, 0.09476263076066971, -0.4320317804813385, -0.01272345706820488, 0.4820626378059387, 0.04939436540007591, 0.18124356865882874, -0.09634211659431458, -0.4463653862476349, -0.34061819314956665, 0.013842424377799034, 0.6789827942848206, -0.14568091928958893, -0.2210323065519333, -0.15148429572582245, 0.005324961617588997, 0.20938223600387573, 0.024516135454177856, -0.1725439876317978, 0.2053847759962082, -0.5312619805335999, 0.08888284862041473, 0.14875292778015137, -0.4117076098918915, -0.6002054214477539, 0.25655749440193176, -0.03779829293489456, 0.17597678303718567, -0.014795355498790741, 0.32484397292137146, 0.5295740365982056, -0.11848023533821106, -0.10294431447982788, 0.3025982975959778, -0.15642495453357697, 0.3233766257762909, -0.27645182609558105, -0.06186358630657196, -0.015289347618818283, 0.03155180811882019, 0.22794000804424286, 0.2726486623287201, 0.27191779017448425, -0.345058798789978, 0.26188910007476807, 0.0761193037033081, 0.24650561809539795, 0.1612817794084549, -0.197560653090477, 0.07882663607597351, 0.1901315301656723, 0.11255019158124924, -0.46554630994796753, 0.32482340931892395, -0.15160571038722992, -0.23609969019889832, 0.004219487309455872, -0.05566830933094025, -0.16701778769493103, -0.1653723418712616, -0.29640212655067444, -0.26726433634757996, 0.08177277445793152, 0.25013571977615356, 0.009763628244400024, 0.1664821356534958, 0.09459030628204346, 0.5646678805351257, 0.04272306710481644, 0.10423773527145386, -0.06570656597614288, 0.2966795265674591, 0.05256717652082443, 0.08233443647623062, -0.22404314577579498, -0.3079807758331299, 0.32173746824264526, -0.13763175904750824, -0.23313415050506592, 0.45645982027053833, 0.26076769828796387, 0.4342782497406006, -0.015682034194469452, -0.17125673592090607, 0.10577557981014252, -0.10618863999843597, 0.10700872540473938, -0.01880497857928276, 0.22164471447467804, -0.16934402287006378, 0.2526164650917053, 0.09206937998533249, 0.13931043446063995, -0.05639924854040146, -0.16675297915935516, 0.09121213108301163, 0.12807054817676544, -0.2222958356142044, 0.15714120864868164, -0.21907635033130646, 0.07289040088653564, -0.022825106978416443, 0.2142825424671173, 0.041286952793598175, 0.1429043412208557, 0.05273324251174927, 0.4853818714618683, 0.16004334390163422, 0.08429179340600967, 0.05936961621046066, -0.08278443664312363, -0.06752476096153259, 0.1141425296664238, 0.29855048656463623, 0.36634254455566406, 0.05387622490525246, 0.04194452986121178, 0.009440386667847633, 0.20073576271533966, -0.03215155377984047, 0.09621763229370117, 0.15853722393512726, 0.2225068360567093, -0.01104728877544403, 0.18562616407871246, 0.07844080775976181, -0.3671363890171051, -0.10385873913764954, 0.3462378680706024, 0.016088752076029778, 0.039454761892557144, -0.018571671098470688, -0.09501376748085022, -0.050984546542167664, 0.1159839779138565, 0.30568647384643555, 0.02103036269545555, -0.4192984402179718, -0.16227568686008453, 0.4059547781944275, 0.08345405757427216, 0.31506526470184326, -0.14692182838916779, -0.10694350302219391, 0.11843137443065643, -0.1953202188014984, -0.35160091519355774, -0.314609169960022, -0.1680048406124115, -0.04945198446512222, 0.046055831015110016, -0.3830374777317047, 0.4569522440433502, -0.27219492197036743, -0.06309069693088531, -0.3262610137462616, -0.25135642290115356, 0.11316530406475067, 0.11398947238922119, -0.10596597194671631, -0.030375637114048004, 0.12280444800853729, -0.34474921226501465, 0.31041982769966125, 0.10061735659837723, -0.24561956524848938, -0.3938539922237396, -0.12832693755626678, 0.029665900394320488, 0.006487634964287281, -0.1237214058637619, -0.41421791911125183, -0.13217441737651825, -0.296836793422699, -0.1388782262802124, -0.16007459163665771, 0.0825718492269516, -0.00987663771957159, 0.05242760106921196, -0.21495084464550018, -0.0770479217171669, -0.22465038299560547, -0.4897657632827759, -0.26401230692863464, 0.1400338113307953, -0.16519200801849365, -0.20471815764904022, 0.05748699977993965, -0.26181089878082275, 0.3163839280605316, 0.5731633305549622, -0.6966412663459778, -0.28674277663230896, -0.2065725028514862, 0.012483473867177963, -0.11260877549648285, 0.09626930207014084, 0.2511672377586365, 0.14435699582099915, -0.06734933704137802, -0.2551211416721344, -0.2258046269416809, 0.010414369404315948, 0.08375593274831772, -0.06742209941148758, -0.02257392555475235, 0.2772563397884369, 0.1668529063463211, 0.31510335206985474, 0.09682658314704895, -0.03649255260825157, 0.4151696264743805, 0.18921634554862976, 0.23738272488117218, -0.1164039745926857, -0.12882383167743683, -0.011745782569050789, -0.2716662287712097, -0.0015885531902313232, -0.18962053954601288, -0.0007311850786209106, -0.45752808451652527, -0.20120114088058472, -0.03632812574505806, -0.4277951717376709, -0.2997666895389557, -0.024707095697522163, -0.220966637134552, 0.41312170028686523, 0.2821500301361084, 0.10587675124406815, -0.39120230078697205, -0.17966124415397644, 0.04322125017642975, -0.04629102349281311, 0.6341553330421448, 0.04662099480628967, -0.2643527686595917, 0.26477938890457153, -0.13626012206077576, 0.31500932574272156, 0.23740985989570618, 0.28576409816741943, 0.2279464155435562, 0.11497163027524948, 0.11071188747882843, 0.10532451421022415, 0.6578532457351685, -0.34848278760910034, 0.1891748458147049, 0.00744493305683136, -0.3276083469390869, -0.16672000288963318, -0.01953369565308094, 0.14324913918972015, 0.47672805190086365, -0.009260982275009155, 0.21495677530765533, -0.09174162894487381, 0.06619086861610413, -0.14243276417255402, 0.027739420533180237, -0.14205631613731384, -0.26318737864494324, -0.07990060746669769, -0.22064152359962463, -0.33876729011535645, 0.019360631704330444, -0.13068348169326782, -0.2819463610649109, 0.09498167037963867, -0.15466172993183136, -0.06950678676366806, 0.21584969758987427, -0.4394509792327881, 0.007793644443154335, 0.2838365435600281, -0.16177554428577423, 0.2971735894680023, 0.25592175126075745, -0.28895971179008484, 0.05306330323219299, 0.5479391813278198, -0.10145676136016846, -0.11616627871990204, 0.08362821489572525, -0.050733257085084915, -0.11131566017866135, 0.12364772707223892, -0.08696598559617996, 0.002395518124103546, 0.1612759828567505, 0.07098758965730667, -0.3147367238998413, 0.07427314668893814, 0.12619496881961823, 0.17903359234333038, -0.19642454385757446, -0.6380597949028015, 0.13078853487968445, 0.089986652135849, -0.10031865537166595, 0.48592185974121094, -0.4771525263786316, -0.15324169397354126, 0.46653181314468384, 0.08458763360977173, 0.679702639579773, -0.35024261474609375, 0.06720985472202301, 0.014841422438621521, -0.13617822527885437, 0.3598574101924896, 0.03055509924888611, 0.2707556486129761, -0.38700100779533386, 0.056925512850284576, -0.07757797837257385, -0.22840291261672974, -0.05032918602228165, 0.2015579789876938, -0.1420082449913025, 0.3741329312324524, 0.24800021946430206, 0.23168902099132538, 0.13241656124591827, -0.049432408064603806, -0.2070031464099884, -0.2468099296092987, 0.1877886950969696, 0.10675907135009766, -0.08896517753601074, 0.2767060399055481, -0.15055003762245178, 0.04394038766622543, 0.005918528884649277, -0.22855791449546814, -0.09036065638065338, 0.0716734454035759, -0.5004437565803528, 0.4374220371246338, -0.25995689630508423, -0.020862191915512085, -0.16223572194576263, 0.35124820470809937, -0.1853674203157425, -0.02125830575823784, 0.07269895076751709, 0.28446322679519653, 0.18056464195251465, 0.22919823229312897, 0.23948392271995544, -0.0786806046962738, 0.2588624656200409, 0.16850513219833374, -0.1607978641986847, -0.1767393946647644, -0.11921682208776474, -0.24019755423069, -0.05711793154478073, 0.41740936040878296, 0.35030966997146606, -0.04884408414363861, -0.09486834704875946, -0.12463857233524323, -0.23496893048286438, -0.17223204672336578, 0.06632433831691742, 0.27030104398727417, 0.10544037818908691, 0.37706640362739563, -0.1186317652463913, -0.24623233079910278, -0.06882154941558838, 0.5489092469215393, 0.21046656370162964, -0.34825199842453003, 0.3372831344604492, -0.050950247794389725, -0.23503082990646362, -0.14386820793151855, -0.3529120683670044, -0.3611232340335846, -0.6210971474647522, 0.1753808557987213, -0.23095877468585968, 0.1110183447599411, 0.023560108616948128, -0.21936842799186707, -0.1090778112411499, -0.04614381492137909, -0.07158534228801727, -0.5186214447021484, -0.2823275625705719, -0.11006012558937073, -0.30051296949386597, -0.01833168789744377, 0.18573251366615295, -0.07694831490516663, 0.026481101289391518, 0.1901177018880844, -0.26486319303512573, 0.27689334750175476, -0.1553766131401062, 0.26619642972946167, 0.1599172204732895, 0.10289400815963745, 0.20647332072257996, -0.16730628907680511, 0.02891027368605137, 0.32454395294189453, -0.3369903862476349, -0.1465473771095276, -0.027621496468782425, 0.14362619817256927, -0.005182430148124695, -0.1927831470966339, 0.023966286331415176, -0.10636205971240997, 0.1478492170572281, -0.3252396285533905, 0.0790267288684845, 0.21364697813987732, -0.14140202105045319, 0.08041102439165115, 0.02436298504471779, 0.036376357078552246, -0.057833924889564514, 0.15803468227386475, -0.4155876040458679, 0.1187526136636734, -0.062000710517168045, 0.27419325709342957, 0.06280487030744553, -0.000278569757938385, 0.05102498456835747, -0.16327664256095886, 0.09277097880840302, 0.07133717089891434, 0.6600547432899475, -0.34798675775527954, 0.0027486011385917664, 0.01123468391597271, 0.2784525156021118, -0.10778072476387024, -0.12312836945056915, -0.24701988697052002, 0.1261347383260727, 0.23238469660282135, -0.1874026209115982, -0.019192544743418694, 0.7703564167022705, 0.20574703812599182, 0.06936098635196686, 0.19956758618354797, 0.2047460675239563, -0.12484876811504364, -0.057297974824905396, 0.24502944946289062, 0.6014499664306641, -0.2946960926055908, 0.17952126264572144, -0.007588889449834824, 0.14421045780181885, 0.25741046667099, 0.08343273401260376, 0.28521379828453064, 0.024495653808116913, 0.19779817759990692, 0.3353345990180969, 0.3759309947490692, 0.1017618477344513, 0.24177157878875732, -0.2541457712650299, -0.848352313041687, 0.2164357602596283, 0.31063324213027954, -0.17784789204597473, 0.440385103225708, -0.06769809126853943, 0.07498375326395035, 0.24991272389888763, 0.04495697468519211, -0.1353444904088974, 0.24272918701171875, -0.2596842646598816, 0.04281596094369888, 0.2712404131889343, 0.035653941333293915, -0.07838623970746994, 0.14097455143928528, 0.23653773963451385, 0.08217573910951614, 0.6426130533218384, 0.09480670839548111, -0.166730597615242, -0.15455396473407745, -0.4155271351337433, 0.10700760036706924, 0.2578568756580353, -0.29346519708633423, 0.10623124241828918, 0.11612603813409805, -0.005452349781990051, -0.1437709629535675, 0.3571888506412506, 0.2887171804904938, 0.2717773914337158, -0.0625133067369461, 0.19722692668437958, 0.29480376839637756, 0.031145771965384483, -0.31451770663261414, 0.27075815200805664, -0.15952055156230927, -0.14266051352024078, 0.02107638120651245, 0.10608884692192078, -0.14944754540920258, 0.0748380646109581, 0.08643988519906998, 0.004986417479813099, 0.12426349520683289, -0.14144378900527954, 0.0684138834476471, -0.06737986952066422, -0.0910428985953331, 0.0917215421795845, -0.19264602661132812, -0.2587028741836548, 0.3583815097808838, -0.21224050223827362, 0.20897799730300903, -0.17311632633209229, 0.057208769023418427, -0.06827311217784882, 0.10125552117824554, 0.7098272442817688, 0.20890608429908752, -0.4419154226779938, -0.14380916953086853, -0.5076889991760254, 0.17325669527053833, -0.1433379203081131, -0.07749646157026291, -0.019490109756588936, 0.24614907801151276, 0.05851416289806366, 0.011594075709581375, 0.3134949803352356, -0.1543738842010498, 0.3851776719093323, 0.34180760383605957, -0.1670241504907608, -0.5232176184654236, 0.027409467846155167, -0.14976489543914795, 0.033603910356760025, -0.5820885300636292, 0.19857433438301086, -0.18613876402378082, 0.1994984745979309, -0.20603224635124207, -0.11800697445869446, 0.28050270676612854, -0.03560032695531845, 0.6197189688682556, 0.3314339518547058, 0.09757388383150101, -0.15194183588027954, -0.12096258997917175, -0.13171958923339844, -0.17173826694488525, 0.006722747348248959, -0.17132899165153503, 0.13145536184310913, 0.4526281952857971, -0.4137361943721771, -0.12755322456359863, -0.368681401014328, 0.1819140762090683, 0.03901905566453934, -0.056394223123788834, -0.21893998980522156, 0.0700625330209732, -0.10640738904476166, 0.09269985556602478, -0.08274451643228531, 0.47269636392593384, -0.04566377401351929, 0.3628140389919281, -0.3272985517978668, -0.35991668701171875, 0.36385348439216614, -0.4733112156391144, -0.14746874570846558, 0.03766568377614021, 0.26432886719703674, -0.0564979687333107, -0.04177257418632507, -0.31757843494415283, 0.08086851984262466, 0.3987445533275604, -0.02120855078101158, -0.20772339403629303, 0.12161794304847717, 0.1442989557981491, 0.23046238720417023, 0.062267038971185684, 0.21983283758163452, 0.0009788423776626587, -0.2669614255428314, 0.27906298637390137, -0.10795728862285614 ]
https://github.com/huggingface/datasets/issues/4192
load_dataset can't load local dataset,Unable to find ...
Hi! :) I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please?
Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
46
load_dataset can't load local dataset,Unable to find ... Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset? Hi! :) I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please?
[ -0.17541171610355377, 0.08925727009773254, -0.12386755645275116, 0.1317977011203766, 0.3044525384902954, 0.05961718410253525, 0.4345730245113373, 0.4015065133571625, 0.22191691398620605, 0.14248879253864288, 0.03618365526199341, 0.20073182880878448, -0.06878088414669037, 0.25887179374694824, 0.00924651324748993, 0.01854824647307396, -0.1723019778728485, 0.25230222940444946, 0.07397165894508362, -0.17420129477977753, -0.21127893030643463, 0.24183174967765808, 0.027848243713378906, 0.11739430576562881, -0.10057497024536133, 0.16555620729923248, 0.18002179265022278, 0.344905287027359, -0.4049100875854492, -0.6614170074462891, 0.31384384632110596, 0.031158529222011566, 0.15683244168758392, 0.32053104043006897, -0.00010254902008455247, 0.3772655725479126, 0.411234974861145, -0.027608081698417664, -0.38895097374916077, -0.2801317572593689, -0.2690983712673187, 0.028283612802624702, 0.3179880976676941, 0.02047824114561081, -0.3608303964138031, -0.20059341192245483, -0.22204120457172394, -0.44905203580856323, 0.2750031352043152, 0.4882834553718567, 0.30811282992362976, 0.23109771311283112, -0.07215873897075653, -0.3881167769432068, 0.01981869339942932, 0.1770251989364624, -0.029275858774781227, 0.5288636088371277, 0.037727247923612595, -0.2341787964105606, 0.1035136803984642, 0.15816271305084229, 0.07939577847719193, 0.028467800468206406, 0.08821280300617218, -0.2072858363389969, 0.2171769142150879, -0.21917566657066345, 0.37982821464538574, 0.05472271889448166, 0.6315196752548218, -0.1158461943268776, -0.31418612599372864, -0.012312013655900955, 0.1138484850525856, -0.1028742864727974, 0.20467868447303772, 0.045829690992832184, -0.16889792680740356, 0.20919187366962433, -0.1342589557170868, -0.0759270191192627, 0.012444078922271729, 0.08084911108016968, -0.32170045375823975, 0.17732805013656616, -0.03291557729244232, -0.014615058898925781, -0.07692281901836395, -0.011735290288925171, 0.17648564279079437, 0.0757225751876831, -0.11257553100585938, 0.20104750990867615, -0.21264402568340302, 0.10468468070030212, 0.3609262704849243, -0.09731840342283249, -0.03183470666408539, 0.17258873581886292, 0.016264546662569046, 0.11048666387796402, 0.16870999336242676, 0.08383894711732864, 0.09148086607456207, -0.03138206526637077, 0.18837013840675354, 0.03568599000573158, 0.05802289396524429, 0.06612326949834824, -0.1720779985189438, -0.020551417022943497, -0.3940502405166626, -0.344581663608551, -0.05854688584804535, -0.045496776700019836, 0.29095208644866943, -0.2911604940891266, -0.2396683394908905, 0.014400027692317963, -0.1853243112564087, -0.09914769232273102, 0.19935785233974457, 0.49757692217826843, 0.2355813831090927, 0.22279423475265503, 0.015198294073343277, 0.27225303649902344, -0.1118469163775444, 0.0649854838848114, -0.33157142996788025, -0.03735900670289993, -0.2781311273574829, 0.020354075357317924, 0.14115463197231293, -0.27475205063819885, 0.48223569989204407, -0.05639290064573288, -0.3924447298049927, 0.0767451822757721, 0.15443910658359528, -0.0835208147764206, -0.14119696617126465, 0.40176841616630554, -0.12202280759811401, 0.05720214545726776, 0.2312975972890854, 0.07058656215667725, -0.10916641354560852, -0.18738985061645508, -0.009833775460720062, -0.4743787944316864, -0.1384027749300003, 0.3405170142650604, 0.025543812662363052, -0.11042474210262299, 0.018135271966457367, 0.017769763246178627, 0.01700538396835327, -0.09794184565544128, -0.2767784595489502, -0.14959672093391418, -0.24468418955802917, -0.13690945506095886, 0.39727047085762024, 0.5598181486129761, -0.3857533633708954, -0.05208948999643326, -0.18456631898880005, -0.336459219455719, 0.08103995770215988, 0.031680166721343994, -0.44098004698753357, 0.49583661556243896, -0.24943947792053223, 0.028768695890903473, 0.27028706669807434, -0.32810208201408386, -0.30545294284820557, 0.3795756697654724, -0.133742555975914, -0.19478105008602142, 0.06634476780891418, -0.30998578667640686, -0.23119688034057617, 0.18476827442646027, 0.21188262104988098, 0.3373563885688782, 0.037558622658252716, 0.02523127757012844, -0.21753554046154022, -0.13504469394683838, -0.04740782082080841, 0.4344930946826935, 0.2072369009256363, 0.14157246053218842, 0.32839739322662354, -0.18085022270679474, 0.17726516723632812, -0.040548767894506454, -0.1632167100906372, 0.2781001031398773, 0.1951756477355957, 0.026435595005750656, -0.04098803177475929, 0.09932463616132736, -0.2837721109390259, 0.21913579106330872, -0.3463272154331207, 0.12686964869499207, -0.3159257769584656, 0.13717564940452576, -0.4949304461479187, 0.06849180907011032, -0.37878721952438354, -0.056780602782964706, 0.2569243907928467, 0.3768235445022583, 0.1142340898513794, 0.17225341498851776, -0.27825307846069336, 0.2679760158061981, 0.10091345012187958, -0.05146295577287674, -0.17525848746299744, 0.34777483344078064, -0.07276362925767899, -0.16977611184120178, 0.1653924435377121, 0.09543079137802124, 0.16461476683616638, -0.20722010731697083, -0.14516231417655945, 0.3047008216381073, 0.17208439111709595, 0.17492380738258362, 0.22789716720581055, -0.2666507959365845, 0.04427478462457657, -0.018157560378313065, 0.1284884512424469, -0.018641598522663116, 0.19251619279384613, 0.052900053560733795, -0.12202086299657822, 0.22219491004943848, 0.289124071598053, 0.20565536618232727, 0.16339123249053955, 0.03839863836765289, 0.39425230026245117, -0.11344895511865616, 0.01905767060816288, -0.16612030565738678, 0.07487773150205612, 0.3530035614967346, 0.38033679127693176, 0.230072021484375, -0.2208119034767151, 0.1057659164071083, 0.4657374918460846, -0.05164068937301636, -0.14584439992904663, -0.02500803768634796, -0.23072364926338196, -0.12910817563533783, -0.06377451866865158, 0.33376187086105347, 0.4226688742637634, 0.1845541000366211, -0.038901928812265396, 0.0031108763068914413, 0.07528961449861526, -0.10898157209157944, 0.14072829484939575, -0.13659629225730896, 0.34171271324157715, 0.3945149779319763, 0.05516774579882622, -0.17670844495296478, -0.37008750438690186, -0.3006952702999115, 0.16641488671302795, 0.27729782462120056, -0.1808464378118515, 0.005281589925289154, -0.4011819660663605, 0.21394461393356323, -0.00982904713600874, -0.10101012140512466, -0.07950671017169952, -0.34041914343833923, -0.01573522388935089, -0.08300596475601196, -0.06706768274307251, 0.10658729821443558, -0.36378636956214905, 0.08187122642993927, 0.11893568933010101, -0.2313338965177536, -0.06246470659971237, -0.3092598617076874, -0.13971883058547974, 0.08106759190559387, 0.28865885734558105, 0.02587706781923771, 0.2121610790491104, -0.216690331697464, -0.1624976247549057, -0.04628492146730423, -0.0685265064239502, 0.17279934883117676, 0.1040332168340683, 0.07967612147331238, 0.16153424978256226, 0.1705053150653839, 0.04437454789876938, -0.12174676358699799, 0.3942083418369293, -0.14750789105892181, -0.21945308148860931, 0.14789052307605743, -0.04161040857434273, -0.06287422776222229, -0.029296649619936943, -0.50315260887146, -0.5888147950172424, -0.39467522501945496, 0.10678336024284363, 0.175497367978096, 0.0746617242693901, 0.18827523291110992, 0.28605908155441284, 0.2770676016807556, -0.2036556750535965, -0.07604122906923294, -0.1809357851743698, -0.5880246162414551, 0.22678911685943604, -0.3660035729408264, -0.2582665979862213, -0.018781621009111404, -0.02825869992375374, 0.4030711352825165, -0.04487864300608635, -0.2482689619064331, -0.026492001488804817, -0.1904008984565735, 0.14721541106700897, -0.13716478645801544, -0.12330171465873718, 0.28267109394073486, 0.10413505882024765, -0.25405555963516235, -0.0856490358710289, -0.047937724739313126, 0.15344317257404327, 0.05650610476732254, -0.0014599189162254333, -0.049830660223960876, 0.40239426493644714, -0.3189496397972107, 0.5021758675575256, -0.1321514993906021, -0.15375301241874695, 0.4545553922653198, -0.017877278849482536, 0.21608580648899078, -0.2835460305213928, -0.3218404948711395, -0.0065042562782764435, 0.1784430295228958, -0.027299758046865463, 0.12062463164329529, -0.09411513060331345, -0.3274233639240265, -0.26683616638183594, -0.19139550626277924, -0.2621433734893799, -0.0815107449889183, 0.007371397688984871, -0.07154332101345062, 0.28821298480033875, -0.05969907343387604, 0.1273895502090454, -0.10624493658542633, 0.23163604736328125, 0.1236681193113327, 0.09706129133701324, 0.10143216699361801, 0.05609878897666931, -0.46105730533599854, 0.02401673048734665, -0.1644705832004547, 0.049190349876880646, -0.10869432240724564, 0.31040364503860474, -0.20804338157176971, -0.16267886757850647, 0.04832897707819939, -0.0831754058599472, 0.2915996313095093, -0.2622022032737732, 0.18529005348682404, 0.26506587862968445, -0.16065943241119385, -0.35804545879364014, -0.15815189480781555, 0.15818451344966888, 0.1291675865650177, -0.15702736377716064, 0.34875714778900146, 0.003035426139831543, -0.32503774762153625, 0.20515242218971252, 0.01606317237019539, -0.21494868397712708, -0.1627969890832901, -0.2047470062971115, -0.34066829085350037, -0.2715454697608948, -0.21999973058700562, -0.20751629769802094, 0.22242699563503265, 0.1718105673789978, -0.07700952142477036, -0.1204376071691513, 0.006406452506780624, 0.0069853514432907104, 0.2544151842594147, 0.2376251518726349, 0.0223214291036129, 0.07587432861328125, 0.30954527854919434, 0.2924076020717621, 0.4549855589866638, 0.7814916968345642, 0.14868895709514618, -0.28215739130973816, 0.18339654803276062, -0.0462164543569088, 0.31190985441207886, 0.21560372412204742, -0.1176731064915657, -0.14174798130989075, 0.023970184847712517, 0.17389091849327087, -0.1707325279712677, 0.27064189314842224, 0.2103012353181839, -0.338639497756958, -0.17654237151145935, -0.5080038905143738, 0.325766384601593, -0.25445547699928284, 0.052713289856910706, -0.017889700829982758, -0.08651620149612427, -0.1654796302318573, 0.4113066792488098, -0.07360353320837021, 0.6224445104598999, -0.18023863434791565, -0.08455926179885864, 0.2444291114807129, -0.11238324642181396, 0.03747877478599548, -0.3633495569229126, 0.1496446579694748, -0.2811684012413025, 0.017042089253664017, -0.004717240110039711, -0.17546790838241577, 0.17584876716136932, 0.19466783106327057, 0.07547226548194885, 0.18096375465393066, -0.15033850073814392, 0.03992820531129837, -0.029347198083996773, 0.32100483775138855, -0.04962064325809479, -0.07160954177379608, -0.24317368865013123, 0.28373488783836365, 0.025612488389015198, 0.4201328754425049, -0.0506691038608551, -0.2989141345024109, -0.08483544737100601, -0.19001033902168274, -0.02891310304403305, 0.24737226963043213, -0.37014007568359375, 0.2053999900817871, -0.05138123407959938, -0.12409952282905579, -0.005989690311253071, 0.0868678092956543, 0.039465758949518204, 0.07525140047073364, -0.189552903175354, 0.22134235501289368, -0.11132515221834183, -0.20881570875644684, -0.29695549607276917, 0.15998367965221405, 0.204489603638649, -0.09503813832998276, -0.4180895686149597, 0.05736091360449791, -0.14472302794456482, -0.27388620376586914, -0.02200917899608612, -0.08242203295230865, -0.02303934097290039, -0.1155049130320549, -0.22760814428329468, -0.0359661802649498, 0.02994728460907936, -0.09619339555501938, 0.22177715599536896, 0.04049336910247803, -0.15589016675949097, -0.13812404870986938, -0.09940683841705322, -0.4210210144519806, -0.17528538405895233, 0.5736230611801147, -0.06258036941289902, 0.07990840077400208, 0.6132895946502686, 0.14994452893733978, -0.037491124123334885, -0.4075957238674164, -0.1245209127664566, 0.6449130773544312, -0.2190646231174469, -0.0026801759377121925, 0.0879213958978653, -0.06457879394292831, 0.17336547374725342, -0.026928413659334183, 0.11720161885023117, -0.31260350346565247, 0.05724029615521431, -0.4941405653953552, -0.3921109139919281, -0.00449775904417038, -0.14380936324596405, 0.1750951111316681, -0.07380807399749756, 0.24137042462825775, 0.18245245516300201, -0.12508627772331238, -0.4251794219017029, 0.05853869020938873, -0.2841375768184662, 0.05133068561553955, 0.1976826936006546, -0.15570461750030518, 0.20136843621730804, -0.08791737258434296, 0.3622087836265564, -0.19797205924987793, -0.210876002907753, -0.3679225742816925, 0.06409880518913269, 0.06925508379936218, 0.003553546965122223, -0.059116967022418976, 0.08493588864803314, -0.13916298747062683, -0.06799668073654175, 0.09381354600191116, 0.08976063132286072, 0.14306572079658508, 0.024710610508918762, 0.10601907968521118, -0.019510816782712936, -0.17325174808502197, 0.06113405525684357, -0.003171578049659729, 0.0006259381771087646, -0.0034728720784187317, -0.023987172171473503, 0.06308051943778992, -0.037407513707876205, -0.05107593536376953, 0.06859686970710754, 0.02059203013777733, -0.10120181739330292, 0.19828695058822632, 0.27438318729400635, -0.3543447256088257, 0.04184843227267265, 0.1751633882522583, 0.17061221599578857, 0.3076137900352478, -0.25849661231040955, 0.1272261142730713, 0.23160815238952637, 0.36786124110221863, -0.3404371440410614, -0.1512429565191269, -0.03285880759358406, 0.019785765558481216, 0.16071635484695435, 0.04918806254863739, 0.27414536476135254, -0.08686116337776184, 0.025093019008636475, 0.09609684348106384, 0.37669652700424194, 0.09091220051050186, 0.013406150974333286, 0.45640039443969727, 0.03208551183342934, -0.07569046318531036, 0.09478908032178879, 0.3297464847564697, 0.22163814306259155, 0.6467007398605347, -0.1078256294131279, 0.18456770479679108, -0.2802918255329132, 0.17827945947647095, -0.07496774941682816, -0.5045817494392395, 0.11000190675258636, 0.2848812937736511, -0.11227728426456451, -0.12722164392471313, -0.05325968563556671, 0.1731540560722351, 0.01288558542728424, -0.29533207416534424, -0.18396484851837158, 0.18098339438438416, -0.13771754503250122, -0.1285751312971115, -0.2776619791984558, -0.3045416474342346, -0.2806885838508606, 0.17133180797100067, 0.049760475754737854, 0.05268501490354538, 0.15324507653713226, 0.12416788935661316, -0.1252148449420929, -0.14832346141338348, 0.06130453199148178, 0.133792906999588, -0.11221999675035477, -0.2258983701467514, 0.3206229507923126, 0.10444194823503494, -0.026164107024669647, -0.0014423951506614685, 0.16649794578552246, 0.27782443165779114, 0.35235580801963806, -0.15201853215694427, 0.10302437096834183, -0.009789107367396355, -0.14413245022296906, -0.18918320536613464, 0.0786159336566925, -0.07117220759391785, 0.20661725103855133, 0.23633386194705963, 0.3146885335445404, -0.22353845834732056, 0.1097254753112793, -0.0013920478522777557, 0.16722887754440308, -0.02295347861945629, 0.3412013351917267, 0.10838975012302399, -0.008566845208406448, -0.12988166511058807, 0.0651228055357933, -0.47862809896469116, 0.041579924523830414, 0.330278217792511, 0.29578927159309387, 0.23015937209129333, -0.18296676874160767, 0.1435518115758896, -0.00015540793538093567, 0.4455425441265106, 0.1900869458913803, 0.10142262279987335, -0.3366394639015198, -0.21049129962921143, -0.4156794846057892, -0.049699150025844574, -0.10883231461048126, 0.08797363936901093, 0.11371442675590515, 0.09044824540615082, 0.2712882161140442, 0.05326847732067108, 0.17327342927455902, 0.20186468958854675, -0.03569217771291733, -0.0401175394654274, -0.16421882808208466, 0.019323160871863365, -0.14049114286899567, 0.10339892655611038, 0.03580435365438461, -0.4230644702911377, 0.11862990260124207, -0.5297967791557312, 0.25209707021713257, -0.1825563907623291, -0.20412391424179077, 0.05548973008990288, -0.18732687830924988, 0.44701680541038513, -0.08052021265029907, 0.2546401023864746, -0.05306943506002426, -0.13158142566680908, -0.2592819929122925, -0.2901480495929718, -0.08567357808351517, 0.23574334383010864, 0.010002221912145615, 0.34786170721054077, -0.1417648196220398, 0.014740558341145515, -0.40552452206611633, 0.11200180649757385, 0.01815604418516159, 0.18209975957870483, -0.1311502307653427, 0.025584833696484566, 0.02837858349084854, 0.0018720489460974932, 0.3008187711238861, 0.02600211277604103, -0.022550277411937714, 0.03661935776472092, -0.2774409055709839, -0.13568559288978577, 0.4256500005722046, -0.12257983535528183, -0.23282842338085175, 0.16801755130290985, 0.11415910720825195, 0.01961982250213623, 0.1186424046754837, -0.33866438269615173, 0.468166321516037, 0.309430330991745, -0.09214481711387634, -0.12193527817726135, 0.28857293725013733, 0.2110389620065689, -0.006293438374996185, -0.0348697304725647, -0.09481918811798096, 0.015570743940770626, -0.06850814819335938, -0.3372613191604614, -0.07985624670982361 ]
https://github.com/huggingface/datasets/issues/4192
load_dataset can't load local dataset,Unable to find ...
Hi @ahf876828330, As @stevhliu pointed out, the proper way to load a dataset is not trying to load its metadata file. In your case, as the dataset script is local, you should better point to your local loading script: ```python dataset = load_dataset("dataset/opus_books.py") ``` Please, feel free to re-open this issue if the previous code snippet does not work for you.
Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
61
load_dataset can't load local dataset,Unable to find ... Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset? Hi @ahf876828330, As @stevhliu pointed out, the proper way to load a dataset is not trying to load its metadata file. In your case, as the dataset script is local, you should better point to your local loading script: ```python dataset = load_dataset("dataset/opus_books.py") ``` Please, feel free to re-open this issue if the previous code snippet does not work for you.
[ -0.17541171610355377, 0.08925727009773254, -0.12386755645275116, 0.1317977011203766, 0.3044525384902954, 0.05961718410253525, 0.4345730245113373, 0.4015065133571625, 0.22191691398620605, 0.14248879253864288, 0.03618365526199341, 0.20073182880878448, -0.06878088414669037, 0.25887179374694824, 0.00924651324748993, 0.01854824647307396, -0.1723019778728485, 0.25230222940444946, 0.07397165894508362, -0.17420129477977753, -0.21127893030643463, 0.24183174967765808, 0.027848243713378906, 0.11739430576562881, -0.10057497024536133, 0.16555620729923248, 0.18002179265022278, 0.344905287027359, -0.4049100875854492, -0.6614170074462891, 0.31384384632110596, 0.031158529222011566, 0.15683244168758392, 0.32053104043006897, -0.00010254902008455247, 0.3772655725479126, 0.411234974861145, -0.027608081698417664, -0.38895097374916077, -0.2801317572593689, -0.2690983712673187, 0.028283612802624702, 0.3179880976676941, 0.02047824114561081, -0.3608303964138031, -0.20059341192245483, -0.22204120457172394, -0.44905203580856323, 0.2750031352043152, 0.4882834553718567, 0.30811282992362976, 0.23109771311283112, -0.07215873897075653, -0.3881167769432068, 0.01981869339942932, 0.1770251989364624, -0.029275858774781227, 0.5288636088371277, 0.037727247923612595, -0.2341787964105606, 0.1035136803984642, 0.15816271305084229, 0.07939577847719193, 0.028467800468206406, 0.08821280300617218, -0.2072858363389969, 0.2171769142150879, -0.21917566657066345, 0.37982821464538574, 0.05472271889448166, 0.6315196752548218, -0.1158461943268776, -0.31418612599372864, -0.012312013655900955, 0.1138484850525856, -0.1028742864727974, 0.20467868447303772, 0.045829690992832184, -0.16889792680740356, 0.20919187366962433, -0.1342589557170868, -0.0759270191192627, 0.012444078922271729, 0.08084911108016968, -0.32170045375823975, 0.17732805013656616, -0.03291557729244232, -0.014615058898925781, -0.07692281901836395, -0.011735290288925171, 0.17648564279079437, 0.0757225751876831, -0.11257553100585938, 0.20104750990867615, -0.21264402568340302, 0.10468468070030212, 0.3609262704849243, -0.09731840342283249, -0.03183470666408539, 0.17258873581886292, 0.016264546662569046, 0.11048666387796402, 0.16870999336242676, 0.08383894711732864, 0.09148086607456207, -0.03138206526637077, 0.18837013840675354, 0.03568599000573158, 0.05802289396524429, 0.06612326949834824, -0.1720779985189438, -0.020551417022943497, -0.3940502405166626, -0.344581663608551, -0.05854688584804535, -0.045496776700019836, 0.29095208644866943, -0.2911604940891266, -0.2396683394908905, 0.014400027692317963, -0.1853243112564087, -0.09914769232273102, 0.19935785233974457, 0.49757692217826843, 0.2355813831090927, 0.22279423475265503, 0.015198294073343277, 0.27225303649902344, -0.1118469163775444, 0.0649854838848114, -0.33157142996788025, -0.03735900670289993, -0.2781311273574829, 0.020354075357317924, 0.14115463197231293, -0.27475205063819885, 0.48223569989204407, -0.05639290064573288, -0.3924447298049927, 0.0767451822757721, 0.15443910658359528, -0.0835208147764206, -0.14119696617126465, 0.40176841616630554, -0.12202280759811401, 0.05720214545726776, 0.2312975972890854, 0.07058656215667725, -0.10916641354560852, -0.18738985061645508, -0.009833775460720062, -0.4743787944316864, -0.1384027749300003, 0.3405170142650604, 0.025543812662363052, -0.11042474210262299, 0.018135271966457367, 0.017769763246178627, 0.01700538396835327, -0.09794184565544128, -0.2767784595489502, -0.14959672093391418, -0.24468418955802917, -0.13690945506095886, 0.39727047085762024, 0.5598181486129761, -0.3857533633708954, -0.05208948999643326, -0.18456631898880005, -0.336459219455719, 0.08103995770215988, 0.031680166721343994, -0.44098004698753357, 0.49583661556243896, -0.24943947792053223, 0.028768695890903473, 0.27028706669807434, -0.32810208201408386, -0.30545294284820557, 0.3795756697654724, -0.133742555975914, -0.19478105008602142, 0.06634476780891418, -0.30998578667640686, -0.23119688034057617, 0.18476827442646027, 0.21188262104988098, 0.3373563885688782, 0.037558622658252716, 0.02523127757012844, -0.21753554046154022, -0.13504469394683838, -0.04740782082080841, 0.4344930946826935, 0.2072369009256363, 0.14157246053218842, 0.32839739322662354, -0.18085022270679474, 0.17726516723632812, -0.040548767894506454, -0.1632167100906372, 0.2781001031398773, 0.1951756477355957, 0.026435595005750656, -0.04098803177475929, 0.09932463616132736, -0.2837721109390259, 0.21913579106330872, -0.3463272154331207, 0.12686964869499207, -0.3159257769584656, 0.13717564940452576, -0.4949304461479187, 0.06849180907011032, -0.37878721952438354, -0.056780602782964706, 0.2569243907928467, 0.3768235445022583, 0.1142340898513794, 0.17225341498851776, -0.27825307846069336, 0.2679760158061981, 0.10091345012187958, -0.05146295577287674, -0.17525848746299744, 0.34777483344078064, -0.07276362925767899, -0.16977611184120178, 0.1653924435377121, 0.09543079137802124, 0.16461476683616638, -0.20722010731697083, -0.14516231417655945, 0.3047008216381073, 0.17208439111709595, 0.17492380738258362, 0.22789716720581055, -0.2666507959365845, 0.04427478462457657, -0.018157560378313065, 0.1284884512424469, -0.018641598522663116, 0.19251619279384613, 0.052900053560733795, -0.12202086299657822, 0.22219491004943848, 0.289124071598053, 0.20565536618232727, 0.16339123249053955, 0.03839863836765289, 0.39425230026245117, -0.11344895511865616, 0.01905767060816288, -0.16612030565738678, 0.07487773150205612, 0.3530035614967346, 0.38033679127693176, 0.230072021484375, -0.2208119034767151, 0.1057659164071083, 0.4657374918460846, -0.05164068937301636, -0.14584439992904663, -0.02500803768634796, -0.23072364926338196, -0.12910817563533783, -0.06377451866865158, 0.33376187086105347, 0.4226688742637634, 0.1845541000366211, -0.038901928812265396, 0.0031108763068914413, 0.07528961449861526, -0.10898157209157944, 0.14072829484939575, -0.13659629225730896, 0.34171271324157715, 0.3945149779319763, 0.05516774579882622, -0.17670844495296478, -0.37008750438690186, -0.3006952702999115, 0.16641488671302795, 0.27729782462120056, -0.1808464378118515, 0.005281589925289154, -0.4011819660663605, 0.21394461393356323, -0.00982904713600874, -0.10101012140512466, -0.07950671017169952, -0.34041914343833923, -0.01573522388935089, -0.08300596475601196, -0.06706768274307251, 0.10658729821443558, -0.36378636956214905, 0.08187122642993927, 0.11893568933010101, -0.2313338965177536, -0.06246470659971237, -0.3092598617076874, -0.13971883058547974, 0.08106759190559387, 0.28865885734558105, 0.02587706781923771, 0.2121610790491104, -0.216690331697464, -0.1624976247549057, -0.04628492146730423, -0.0685265064239502, 0.17279934883117676, 0.1040332168340683, 0.07967612147331238, 0.16153424978256226, 0.1705053150653839, 0.04437454789876938, -0.12174676358699799, 0.3942083418369293, -0.14750789105892181, -0.21945308148860931, 0.14789052307605743, -0.04161040857434273, -0.06287422776222229, -0.029296649619936943, -0.50315260887146, -0.5888147950172424, -0.39467522501945496, 0.10678336024284363, 0.175497367978096, 0.0746617242693901, 0.18827523291110992, 0.28605908155441284, 0.2770676016807556, -0.2036556750535965, -0.07604122906923294, -0.1809357851743698, -0.5880246162414551, 0.22678911685943604, -0.3660035729408264, -0.2582665979862213, -0.018781621009111404, -0.02825869992375374, 0.4030711352825165, -0.04487864300608635, -0.2482689619064331, -0.026492001488804817, -0.1904008984565735, 0.14721541106700897, -0.13716478645801544, -0.12330171465873718, 0.28267109394073486, 0.10413505882024765, -0.25405555963516235, -0.0856490358710289, -0.047937724739313126, 0.15344317257404327, 0.05650610476732254, -0.0014599189162254333, -0.049830660223960876, 0.40239426493644714, -0.3189496397972107, 0.5021758675575256, -0.1321514993906021, -0.15375301241874695, 0.4545553922653198, -0.017877278849482536, 0.21608580648899078, -0.2835460305213928, -0.3218404948711395, -0.0065042562782764435, 0.1784430295228958, -0.027299758046865463, 0.12062463164329529, -0.09411513060331345, -0.3274233639240265, -0.26683616638183594, -0.19139550626277924, -0.2621433734893799, -0.0815107449889183, 0.007371397688984871, -0.07154332101345062, 0.28821298480033875, -0.05969907343387604, 0.1273895502090454, -0.10624493658542633, 0.23163604736328125, 0.1236681193113327, 0.09706129133701324, 0.10143216699361801, 0.05609878897666931, -0.46105730533599854, 0.02401673048734665, -0.1644705832004547, 0.049190349876880646, -0.10869432240724564, 0.31040364503860474, -0.20804338157176971, -0.16267886757850647, 0.04832897707819939, -0.0831754058599472, 0.2915996313095093, -0.2622022032737732, 0.18529005348682404, 0.26506587862968445, -0.16065943241119385, -0.35804545879364014, -0.15815189480781555, 0.15818451344966888, 0.1291675865650177, -0.15702736377716064, 0.34875714778900146, 0.003035426139831543, -0.32503774762153625, 0.20515242218971252, 0.01606317237019539, -0.21494868397712708, -0.1627969890832901, -0.2047470062971115, -0.34066829085350037, -0.2715454697608948, -0.21999973058700562, -0.20751629769802094, 0.22242699563503265, 0.1718105673789978, -0.07700952142477036, -0.1204376071691513, 0.006406452506780624, 0.0069853514432907104, 0.2544151842594147, 0.2376251518726349, 0.0223214291036129, 0.07587432861328125, 0.30954527854919434, 0.2924076020717621, 0.4549855589866638, 0.7814916968345642, 0.14868895709514618, -0.28215739130973816, 0.18339654803276062, -0.0462164543569088, 0.31190985441207886, 0.21560372412204742, -0.1176731064915657, -0.14174798130989075, 0.023970184847712517, 0.17389091849327087, -0.1707325279712677, 0.27064189314842224, 0.2103012353181839, -0.338639497756958, -0.17654237151145935, -0.5080038905143738, 0.325766384601593, -0.25445547699928284, 0.052713289856910706, -0.017889700829982758, -0.08651620149612427, -0.1654796302318573, 0.4113066792488098, -0.07360353320837021, 0.6224445104598999, -0.18023863434791565, -0.08455926179885864, 0.2444291114807129, -0.11238324642181396, 0.03747877478599548, -0.3633495569229126, 0.1496446579694748, -0.2811684012413025, 0.017042089253664017, -0.004717240110039711, -0.17546790838241577, 0.17584876716136932, 0.19466783106327057, 0.07547226548194885, 0.18096375465393066, -0.15033850073814392, 0.03992820531129837, -0.029347198083996773, 0.32100483775138855, -0.04962064325809479, -0.07160954177379608, -0.24317368865013123, 0.28373488783836365, 0.025612488389015198, 0.4201328754425049, -0.0506691038608551, -0.2989141345024109, -0.08483544737100601, -0.19001033902168274, -0.02891310304403305, 0.24737226963043213, -0.37014007568359375, 0.2053999900817871, -0.05138123407959938, -0.12409952282905579, -0.005989690311253071, 0.0868678092956543, 0.039465758949518204, 0.07525140047073364, -0.189552903175354, 0.22134235501289368, -0.11132515221834183, -0.20881570875644684, -0.29695549607276917, 0.15998367965221405, 0.204489603638649, -0.09503813832998276, -0.4180895686149597, 0.05736091360449791, -0.14472302794456482, -0.27388620376586914, -0.02200917899608612, -0.08242203295230865, -0.02303934097290039, -0.1155049130320549, -0.22760814428329468, -0.0359661802649498, 0.02994728460907936, -0.09619339555501938, 0.22177715599536896, 0.04049336910247803, -0.15589016675949097, -0.13812404870986938, -0.09940683841705322, -0.4210210144519806, -0.17528538405895233, 0.5736230611801147, -0.06258036941289902, 0.07990840077400208, 0.6132895946502686, 0.14994452893733978, -0.037491124123334885, -0.4075957238674164, -0.1245209127664566, 0.6449130773544312, -0.2190646231174469, -0.0026801759377121925, 0.0879213958978653, -0.06457879394292831, 0.17336547374725342, -0.026928413659334183, 0.11720161885023117, -0.31260350346565247, 0.05724029615521431, -0.4941405653953552, -0.3921109139919281, -0.00449775904417038, -0.14380936324596405, 0.1750951111316681, -0.07380807399749756, 0.24137042462825775, 0.18245245516300201, -0.12508627772331238, -0.4251794219017029, 0.05853869020938873, -0.2841375768184662, 0.05133068561553955, 0.1976826936006546, -0.15570461750030518, 0.20136843621730804, -0.08791737258434296, 0.3622087836265564, -0.19797205924987793, -0.210876002907753, -0.3679225742816925, 0.06409880518913269, 0.06925508379936218, 0.003553546965122223, -0.059116967022418976, 0.08493588864803314, -0.13916298747062683, -0.06799668073654175, 0.09381354600191116, 0.08976063132286072, 0.14306572079658508, 0.024710610508918762, 0.10601907968521118, -0.019510816782712936, -0.17325174808502197, 0.06113405525684357, -0.003171578049659729, 0.0006259381771087646, -0.0034728720784187317, -0.023987172171473503, 0.06308051943778992, -0.037407513707876205, -0.05107593536376953, 0.06859686970710754, 0.02059203013777733, -0.10120181739330292, 0.19828695058822632, 0.27438318729400635, -0.3543447256088257, 0.04184843227267265, 0.1751633882522583, 0.17061221599578857, 0.3076137900352478, -0.25849661231040955, 0.1272261142730713, 0.23160815238952637, 0.36786124110221863, -0.3404371440410614, -0.1512429565191269, -0.03285880759358406, 0.019785765558481216, 0.16071635484695435, 0.04918806254863739, 0.27414536476135254, -0.08686116337776184, 0.025093019008636475, 0.09609684348106384, 0.37669652700424194, 0.09091220051050186, 0.013406150974333286, 0.45640039443969727, 0.03208551183342934, -0.07569046318531036, 0.09478908032178879, 0.3297464847564697, 0.22163814306259155, 0.6467007398605347, -0.1078256294131279, 0.18456770479679108, -0.2802918255329132, 0.17827945947647095, -0.07496774941682816, -0.5045817494392395, 0.11000190675258636, 0.2848812937736511, -0.11227728426456451, -0.12722164392471313, -0.05325968563556671, 0.1731540560722351, 0.01288558542728424, -0.29533207416534424, -0.18396484851837158, 0.18098339438438416, -0.13771754503250122, -0.1285751312971115, -0.2776619791984558, -0.3045416474342346, -0.2806885838508606, 0.17133180797100067, 0.049760475754737854, 0.05268501490354538, 0.15324507653713226, 0.12416788935661316, -0.1252148449420929, -0.14832346141338348, 0.06130453199148178, 0.133792906999588, -0.11221999675035477, -0.2258983701467514, 0.3206229507923126, 0.10444194823503494, -0.026164107024669647, -0.0014423951506614685, 0.16649794578552246, 0.27782443165779114, 0.35235580801963806, -0.15201853215694427, 0.10302437096834183, -0.009789107367396355, -0.14413245022296906, -0.18918320536613464, 0.0786159336566925, -0.07117220759391785, 0.20661725103855133, 0.23633386194705963, 0.3146885335445404, -0.22353845834732056, 0.1097254753112793, -0.0013920478522777557, 0.16722887754440308, -0.02295347861945629, 0.3412013351917267, 0.10838975012302399, -0.008566845208406448, -0.12988166511058807, 0.0651228055357933, -0.47862809896469116, 0.041579924523830414, 0.330278217792511, 0.29578927159309387, 0.23015937209129333, -0.18296676874160767, 0.1435518115758896, -0.00015540793538093567, 0.4455425441265106, 0.1900869458913803, 0.10142262279987335, -0.3366394639015198, -0.21049129962921143, -0.4156794846057892, -0.049699150025844574, -0.10883231461048126, 0.08797363936901093, 0.11371442675590515, 0.09044824540615082, 0.2712882161140442, 0.05326847732067108, 0.17327342927455902, 0.20186468958854675, -0.03569217771291733, -0.0401175394654274, -0.16421882808208466, 0.019323160871863365, -0.14049114286899567, 0.10339892655611038, 0.03580435365438461, -0.4230644702911377, 0.11862990260124207, -0.5297967791557312, 0.25209707021713257, -0.1825563907623291, -0.20412391424179077, 0.05548973008990288, -0.18732687830924988, 0.44701680541038513, -0.08052021265029907, 0.2546401023864746, -0.05306943506002426, -0.13158142566680908, -0.2592819929122925, -0.2901480495929718, -0.08567357808351517, 0.23574334383010864, 0.010002221912145615, 0.34786170721054077, -0.1417648196220398, 0.014740558341145515, -0.40552452206611633, 0.11200180649757385, 0.01815604418516159, 0.18209975957870483, -0.1311502307653427, 0.025584833696484566, 0.02837858349084854, 0.0018720489460974932, 0.3008187711238861, 0.02600211277604103, -0.022550277411937714, 0.03661935776472092, -0.2774409055709839, -0.13568559288978577, 0.4256500005722046, -0.12257983535528183, -0.23282842338085175, 0.16801755130290985, 0.11415910720825195, 0.01961982250213623, 0.1186424046754837, -0.33866438269615173, 0.468166321516037, 0.309430330991745, -0.09214481711387634, -0.12193527817726135, 0.28857293725013733, 0.2110389620065689, -0.006293438374996185, -0.0348697304725647, -0.09481918811798096, 0.015570743940770626, -0.06850814819335938, -0.3372613191604614, -0.07985624670982361 ]
https://github.com/huggingface/datasets/issues/4192
load_dataset can't load local dataset,Unable to find ...
> Hi! :) > > I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please? Yes,you are right!So if I have a metadata dataset local,How can I turn it to a dataset that can be used by the load_dataset() function?Are there some examples?
Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
77
load_dataset can't load local dataset,Unable to find ... Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset? > Hi! :) > > I believe that should work unless `dataset_infos.json` isn't actually a dataset. For Hugging Face datasets, there is usually a file named `dataset_infos.json` which contains metadata about the dataset (eg. the dataset citation, license, description, etc). Can you double-check that `dataset_infos.json` isn't just metadata please? Yes,you are right!So if I have a metadata dataset local,How can I turn it to a dataset that can be used by the load_dataset() function?Are there some examples?
[ -0.17541171610355377, 0.08925727009773254, -0.12386755645275116, 0.1317977011203766, 0.3044525384902954, 0.05961718410253525, 0.4345730245113373, 0.4015065133571625, 0.22191691398620605, 0.14248879253864288, 0.03618365526199341, 0.20073182880878448, -0.06878088414669037, 0.25887179374694824, 0.00924651324748993, 0.01854824647307396, -0.1723019778728485, 0.25230222940444946, 0.07397165894508362, -0.17420129477977753, -0.21127893030643463, 0.24183174967765808, 0.027848243713378906, 0.11739430576562881, -0.10057497024536133, 0.16555620729923248, 0.18002179265022278, 0.344905287027359, -0.4049100875854492, -0.6614170074462891, 0.31384384632110596, 0.031158529222011566, 0.15683244168758392, 0.32053104043006897, -0.00010254902008455247, 0.3772655725479126, 0.411234974861145, -0.027608081698417664, -0.38895097374916077, -0.2801317572593689, -0.2690983712673187, 0.028283612802624702, 0.3179880976676941, 0.02047824114561081, -0.3608303964138031, -0.20059341192245483, -0.22204120457172394, -0.44905203580856323, 0.2750031352043152, 0.4882834553718567, 0.30811282992362976, 0.23109771311283112, -0.07215873897075653, -0.3881167769432068, 0.01981869339942932, 0.1770251989364624, -0.029275858774781227, 0.5288636088371277, 0.037727247923612595, -0.2341787964105606, 0.1035136803984642, 0.15816271305084229, 0.07939577847719193, 0.028467800468206406, 0.08821280300617218, -0.2072858363389969, 0.2171769142150879, -0.21917566657066345, 0.37982821464538574, 0.05472271889448166, 0.6315196752548218, -0.1158461943268776, -0.31418612599372864, -0.012312013655900955, 0.1138484850525856, -0.1028742864727974, 0.20467868447303772, 0.045829690992832184, -0.16889792680740356, 0.20919187366962433, -0.1342589557170868, -0.0759270191192627, 0.012444078922271729, 0.08084911108016968, -0.32170045375823975, 0.17732805013656616, -0.03291557729244232, -0.014615058898925781, -0.07692281901836395, -0.011735290288925171, 0.17648564279079437, 0.0757225751876831, -0.11257553100585938, 0.20104750990867615, -0.21264402568340302, 0.10468468070030212, 0.3609262704849243, -0.09731840342283249, -0.03183470666408539, 0.17258873581886292, 0.016264546662569046, 0.11048666387796402, 0.16870999336242676, 0.08383894711732864, 0.09148086607456207, -0.03138206526637077, 0.18837013840675354, 0.03568599000573158, 0.05802289396524429, 0.06612326949834824, -0.1720779985189438, -0.020551417022943497, -0.3940502405166626, -0.344581663608551, -0.05854688584804535, -0.045496776700019836, 0.29095208644866943, -0.2911604940891266, -0.2396683394908905, 0.014400027692317963, -0.1853243112564087, -0.09914769232273102, 0.19935785233974457, 0.49757692217826843, 0.2355813831090927, 0.22279423475265503, 0.015198294073343277, 0.27225303649902344, -0.1118469163775444, 0.0649854838848114, -0.33157142996788025, -0.03735900670289993, -0.2781311273574829, 0.020354075357317924, 0.14115463197231293, -0.27475205063819885, 0.48223569989204407, -0.05639290064573288, -0.3924447298049927, 0.0767451822757721, 0.15443910658359528, -0.0835208147764206, -0.14119696617126465, 0.40176841616630554, -0.12202280759811401, 0.05720214545726776, 0.2312975972890854, 0.07058656215667725, -0.10916641354560852, -0.18738985061645508, -0.009833775460720062, -0.4743787944316864, -0.1384027749300003, 0.3405170142650604, 0.025543812662363052, -0.11042474210262299, 0.018135271966457367, 0.017769763246178627, 0.01700538396835327, -0.09794184565544128, -0.2767784595489502, -0.14959672093391418, -0.24468418955802917, -0.13690945506095886, 0.39727047085762024, 0.5598181486129761, -0.3857533633708954, -0.05208948999643326, -0.18456631898880005, -0.336459219455719, 0.08103995770215988, 0.031680166721343994, -0.44098004698753357, 0.49583661556243896, -0.24943947792053223, 0.028768695890903473, 0.27028706669807434, -0.32810208201408386, -0.30545294284820557, 0.3795756697654724, -0.133742555975914, -0.19478105008602142, 0.06634476780891418, -0.30998578667640686, -0.23119688034057617, 0.18476827442646027, 0.21188262104988098, 0.3373563885688782, 0.037558622658252716, 0.02523127757012844, -0.21753554046154022, -0.13504469394683838, -0.04740782082080841, 0.4344930946826935, 0.2072369009256363, 0.14157246053218842, 0.32839739322662354, -0.18085022270679474, 0.17726516723632812, -0.040548767894506454, -0.1632167100906372, 0.2781001031398773, 0.1951756477355957, 0.026435595005750656, -0.04098803177475929, 0.09932463616132736, -0.2837721109390259, 0.21913579106330872, -0.3463272154331207, 0.12686964869499207, -0.3159257769584656, 0.13717564940452576, -0.4949304461479187, 0.06849180907011032, -0.37878721952438354, -0.056780602782964706, 0.2569243907928467, 0.3768235445022583, 0.1142340898513794, 0.17225341498851776, -0.27825307846069336, 0.2679760158061981, 0.10091345012187958, -0.05146295577287674, -0.17525848746299744, 0.34777483344078064, -0.07276362925767899, -0.16977611184120178, 0.1653924435377121, 0.09543079137802124, 0.16461476683616638, -0.20722010731697083, -0.14516231417655945, 0.3047008216381073, 0.17208439111709595, 0.17492380738258362, 0.22789716720581055, -0.2666507959365845, 0.04427478462457657, -0.018157560378313065, 0.1284884512424469, -0.018641598522663116, 0.19251619279384613, 0.052900053560733795, -0.12202086299657822, 0.22219491004943848, 0.289124071598053, 0.20565536618232727, 0.16339123249053955, 0.03839863836765289, 0.39425230026245117, -0.11344895511865616, 0.01905767060816288, -0.16612030565738678, 0.07487773150205612, 0.3530035614967346, 0.38033679127693176, 0.230072021484375, -0.2208119034767151, 0.1057659164071083, 0.4657374918460846, -0.05164068937301636, -0.14584439992904663, -0.02500803768634796, -0.23072364926338196, -0.12910817563533783, -0.06377451866865158, 0.33376187086105347, 0.4226688742637634, 0.1845541000366211, -0.038901928812265396, 0.0031108763068914413, 0.07528961449861526, -0.10898157209157944, 0.14072829484939575, -0.13659629225730896, 0.34171271324157715, 0.3945149779319763, 0.05516774579882622, -0.17670844495296478, -0.37008750438690186, -0.3006952702999115, 0.16641488671302795, 0.27729782462120056, -0.1808464378118515, 0.005281589925289154, -0.4011819660663605, 0.21394461393356323, -0.00982904713600874, -0.10101012140512466, -0.07950671017169952, -0.34041914343833923, -0.01573522388935089, -0.08300596475601196, -0.06706768274307251, 0.10658729821443558, -0.36378636956214905, 0.08187122642993927, 0.11893568933010101, -0.2313338965177536, -0.06246470659971237, -0.3092598617076874, -0.13971883058547974, 0.08106759190559387, 0.28865885734558105, 0.02587706781923771, 0.2121610790491104, -0.216690331697464, -0.1624976247549057, -0.04628492146730423, -0.0685265064239502, 0.17279934883117676, 0.1040332168340683, 0.07967612147331238, 0.16153424978256226, 0.1705053150653839, 0.04437454789876938, -0.12174676358699799, 0.3942083418369293, -0.14750789105892181, -0.21945308148860931, 0.14789052307605743, -0.04161040857434273, -0.06287422776222229, -0.029296649619936943, -0.50315260887146, -0.5888147950172424, -0.39467522501945496, 0.10678336024284363, 0.175497367978096, 0.0746617242693901, 0.18827523291110992, 0.28605908155441284, 0.2770676016807556, -0.2036556750535965, -0.07604122906923294, -0.1809357851743698, -0.5880246162414551, 0.22678911685943604, -0.3660035729408264, -0.2582665979862213, -0.018781621009111404, -0.02825869992375374, 0.4030711352825165, -0.04487864300608635, -0.2482689619064331, -0.026492001488804817, -0.1904008984565735, 0.14721541106700897, -0.13716478645801544, -0.12330171465873718, 0.28267109394073486, 0.10413505882024765, -0.25405555963516235, -0.0856490358710289, -0.047937724739313126, 0.15344317257404327, 0.05650610476732254, -0.0014599189162254333, -0.049830660223960876, 0.40239426493644714, -0.3189496397972107, 0.5021758675575256, -0.1321514993906021, -0.15375301241874695, 0.4545553922653198, -0.017877278849482536, 0.21608580648899078, -0.2835460305213928, -0.3218404948711395, -0.0065042562782764435, 0.1784430295228958, -0.027299758046865463, 0.12062463164329529, -0.09411513060331345, -0.3274233639240265, -0.26683616638183594, -0.19139550626277924, -0.2621433734893799, -0.0815107449889183, 0.007371397688984871, -0.07154332101345062, 0.28821298480033875, -0.05969907343387604, 0.1273895502090454, -0.10624493658542633, 0.23163604736328125, 0.1236681193113327, 0.09706129133701324, 0.10143216699361801, 0.05609878897666931, -0.46105730533599854, 0.02401673048734665, -0.1644705832004547, 0.049190349876880646, -0.10869432240724564, 0.31040364503860474, -0.20804338157176971, -0.16267886757850647, 0.04832897707819939, -0.0831754058599472, 0.2915996313095093, -0.2622022032737732, 0.18529005348682404, 0.26506587862968445, -0.16065943241119385, -0.35804545879364014, -0.15815189480781555, 0.15818451344966888, 0.1291675865650177, -0.15702736377716064, 0.34875714778900146, 0.003035426139831543, -0.32503774762153625, 0.20515242218971252, 0.01606317237019539, -0.21494868397712708, -0.1627969890832901, -0.2047470062971115, -0.34066829085350037, -0.2715454697608948, -0.21999973058700562, -0.20751629769802094, 0.22242699563503265, 0.1718105673789978, -0.07700952142477036, -0.1204376071691513, 0.006406452506780624, 0.0069853514432907104, 0.2544151842594147, 0.2376251518726349, 0.0223214291036129, 0.07587432861328125, 0.30954527854919434, 0.2924076020717621, 0.4549855589866638, 0.7814916968345642, 0.14868895709514618, -0.28215739130973816, 0.18339654803276062, -0.0462164543569088, 0.31190985441207886, 0.21560372412204742, -0.1176731064915657, -0.14174798130989075, 0.023970184847712517, 0.17389091849327087, -0.1707325279712677, 0.27064189314842224, 0.2103012353181839, -0.338639497756958, -0.17654237151145935, -0.5080038905143738, 0.325766384601593, -0.25445547699928284, 0.052713289856910706, -0.017889700829982758, -0.08651620149612427, -0.1654796302318573, 0.4113066792488098, -0.07360353320837021, 0.6224445104598999, -0.18023863434791565, -0.08455926179885864, 0.2444291114807129, -0.11238324642181396, 0.03747877478599548, -0.3633495569229126, 0.1496446579694748, -0.2811684012413025, 0.017042089253664017, -0.004717240110039711, -0.17546790838241577, 0.17584876716136932, 0.19466783106327057, 0.07547226548194885, 0.18096375465393066, -0.15033850073814392, 0.03992820531129837, -0.029347198083996773, 0.32100483775138855, -0.04962064325809479, -0.07160954177379608, -0.24317368865013123, 0.28373488783836365, 0.025612488389015198, 0.4201328754425049, -0.0506691038608551, -0.2989141345024109, -0.08483544737100601, -0.19001033902168274, -0.02891310304403305, 0.24737226963043213, -0.37014007568359375, 0.2053999900817871, -0.05138123407959938, -0.12409952282905579, -0.005989690311253071, 0.0868678092956543, 0.039465758949518204, 0.07525140047073364, -0.189552903175354, 0.22134235501289368, -0.11132515221834183, -0.20881570875644684, -0.29695549607276917, 0.15998367965221405, 0.204489603638649, -0.09503813832998276, -0.4180895686149597, 0.05736091360449791, -0.14472302794456482, -0.27388620376586914, -0.02200917899608612, -0.08242203295230865, -0.02303934097290039, -0.1155049130320549, -0.22760814428329468, -0.0359661802649498, 0.02994728460907936, -0.09619339555501938, 0.22177715599536896, 0.04049336910247803, -0.15589016675949097, -0.13812404870986938, -0.09940683841705322, -0.4210210144519806, -0.17528538405895233, 0.5736230611801147, -0.06258036941289902, 0.07990840077400208, 0.6132895946502686, 0.14994452893733978, -0.037491124123334885, -0.4075957238674164, -0.1245209127664566, 0.6449130773544312, -0.2190646231174469, -0.0026801759377121925, 0.0879213958978653, -0.06457879394292831, 0.17336547374725342, -0.026928413659334183, 0.11720161885023117, -0.31260350346565247, 0.05724029615521431, -0.4941405653953552, -0.3921109139919281, -0.00449775904417038, -0.14380936324596405, 0.1750951111316681, -0.07380807399749756, 0.24137042462825775, 0.18245245516300201, -0.12508627772331238, -0.4251794219017029, 0.05853869020938873, -0.2841375768184662, 0.05133068561553955, 0.1976826936006546, -0.15570461750030518, 0.20136843621730804, -0.08791737258434296, 0.3622087836265564, -0.19797205924987793, -0.210876002907753, -0.3679225742816925, 0.06409880518913269, 0.06925508379936218, 0.003553546965122223, -0.059116967022418976, 0.08493588864803314, -0.13916298747062683, -0.06799668073654175, 0.09381354600191116, 0.08976063132286072, 0.14306572079658508, 0.024710610508918762, 0.10601907968521118, -0.019510816782712936, -0.17325174808502197, 0.06113405525684357, -0.003171578049659729, 0.0006259381771087646, -0.0034728720784187317, -0.023987172171473503, 0.06308051943778992, -0.037407513707876205, -0.05107593536376953, 0.06859686970710754, 0.02059203013777733, -0.10120181739330292, 0.19828695058822632, 0.27438318729400635, -0.3543447256088257, 0.04184843227267265, 0.1751633882522583, 0.17061221599578857, 0.3076137900352478, -0.25849661231040955, 0.1272261142730713, 0.23160815238952637, 0.36786124110221863, -0.3404371440410614, -0.1512429565191269, -0.03285880759358406, 0.019785765558481216, 0.16071635484695435, 0.04918806254863739, 0.27414536476135254, -0.08686116337776184, 0.025093019008636475, 0.09609684348106384, 0.37669652700424194, 0.09091220051050186, 0.013406150974333286, 0.45640039443969727, 0.03208551183342934, -0.07569046318531036, 0.09478908032178879, 0.3297464847564697, 0.22163814306259155, 0.6467007398605347, -0.1078256294131279, 0.18456770479679108, -0.2802918255329132, 0.17827945947647095, -0.07496774941682816, -0.5045817494392395, 0.11000190675258636, 0.2848812937736511, -0.11227728426456451, -0.12722164392471313, -0.05325968563556671, 0.1731540560722351, 0.01288558542728424, -0.29533207416534424, -0.18396484851837158, 0.18098339438438416, -0.13771754503250122, -0.1285751312971115, -0.2776619791984558, -0.3045416474342346, -0.2806885838508606, 0.17133180797100067, 0.049760475754737854, 0.05268501490354538, 0.15324507653713226, 0.12416788935661316, -0.1252148449420929, -0.14832346141338348, 0.06130453199148178, 0.133792906999588, -0.11221999675035477, -0.2258983701467514, 0.3206229507923126, 0.10444194823503494, -0.026164107024669647, -0.0014423951506614685, 0.16649794578552246, 0.27782443165779114, 0.35235580801963806, -0.15201853215694427, 0.10302437096834183, -0.009789107367396355, -0.14413245022296906, -0.18918320536613464, 0.0786159336566925, -0.07117220759391785, 0.20661725103855133, 0.23633386194705963, 0.3146885335445404, -0.22353845834732056, 0.1097254753112793, -0.0013920478522777557, 0.16722887754440308, -0.02295347861945629, 0.3412013351917267, 0.10838975012302399, -0.008566845208406448, -0.12988166511058807, 0.0651228055357933, -0.47862809896469116, 0.041579924523830414, 0.330278217792511, 0.29578927159309387, 0.23015937209129333, -0.18296676874160767, 0.1435518115758896, -0.00015540793538093567, 0.4455425441265106, 0.1900869458913803, 0.10142262279987335, -0.3366394639015198, -0.21049129962921143, -0.4156794846057892, -0.049699150025844574, -0.10883231461048126, 0.08797363936901093, 0.11371442675590515, 0.09044824540615082, 0.2712882161140442, 0.05326847732067108, 0.17327342927455902, 0.20186468958854675, -0.03569217771291733, -0.0401175394654274, -0.16421882808208466, 0.019323160871863365, -0.14049114286899567, 0.10339892655611038, 0.03580435365438461, -0.4230644702911377, 0.11862990260124207, -0.5297967791557312, 0.25209707021713257, -0.1825563907623291, -0.20412391424179077, 0.05548973008990288, -0.18732687830924988, 0.44701680541038513, -0.08052021265029907, 0.2546401023864746, -0.05306943506002426, -0.13158142566680908, -0.2592819929122925, -0.2901480495929718, -0.08567357808351517, 0.23574334383010864, 0.010002221912145615, 0.34786170721054077, -0.1417648196220398, 0.014740558341145515, -0.40552452206611633, 0.11200180649757385, 0.01815604418516159, 0.18209975957870483, -0.1311502307653427, 0.025584833696484566, 0.02837858349084854, 0.0018720489460974932, 0.3008187711238861, 0.02600211277604103, -0.022550277411937714, 0.03661935776472092, -0.2774409055709839, -0.13568559288978577, 0.4256500005722046, -0.12257983535528183, -0.23282842338085175, 0.16801755130290985, 0.11415910720825195, 0.01961982250213623, 0.1186424046754837, -0.33866438269615173, 0.468166321516037, 0.309430330991745, -0.09214481711387634, -0.12193527817726135, 0.28857293725013733, 0.2110389620065689, -0.006293438374996185, -0.0348697304725647, -0.09481918811798096, 0.015570743940770626, -0.06850814819335938, -0.3372613191604614, -0.07985624670982361 ]
https://github.com/huggingface/datasets/issues/4192
load_dataset can't load local dataset,Unable to find ...
The metadata file isn't a dataset so you can't turn it into one. You should try @albertvillanova's code snippet above (now merged in the docs [here](https://huggingface.co/docs/datasets/master/en/loading#local-loading-script)), which uses your local loading script `opus_books.py` to: 1. Download the actual dataset. 2. Once the dataset is downloaded, `load_dataset` will load it for you.
Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset?
51
load_dataset can't load local dataset,Unable to find ... Traceback (most recent call last): File "/home/gs603/ahf/pretrained/model.py", line 48, in <module> dataset = load_dataset("json",data_files="dataset/dataset_infos.json") File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1675, in load_dataset **config_kwargs, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1496, in load_dataset_builder data_files=data_files, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 1155, in dataset_module_factory download_mode=download_mode, File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/load.py", line 800, in get_module data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 582, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 544, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 194, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/home/gs603/miniconda3/envs/coderepair/lib/python3.7/site-packages/datasets/data_files.py", line 144, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/home/gs603/ahf/pretrained/dataset/dataset_infos.json' at /home/gs603/ahf/pretrained ![image](https://user-images.githubusercontent.com/33253979/164413285-84ea65ac-9126-408f-9cd2-ce4751a5dd73.png) ![image](https://user-images.githubusercontent.com/33253979/164413338-4735142f-408b-41d9-ab87-8484de2be54f.png) the code is in the model.py,why I can't use the load_dataset function to load my local dataset? The metadata file isn't a dataset so you can't turn it into one. You should try @albertvillanova's code snippet above (now merged in the docs [here](https://huggingface.co/docs/datasets/master/en/loading#local-loading-script)), which uses your local loading script `opus_books.py` to: 1. Download the actual dataset. 2. Once the dataset is downloaded, `load_dataset` will load it for you.
[ -0.17541171610355377, 0.08925727009773254, -0.12386755645275116, 0.1317977011203766, 0.3044525384902954, 0.05961718410253525, 0.4345730245113373, 0.4015065133571625, 0.22191691398620605, 0.14248879253864288, 0.03618365526199341, 0.20073182880878448, -0.06878088414669037, 0.25887179374694824, 0.00924651324748993, 0.01854824647307396, -0.1723019778728485, 0.25230222940444946, 0.07397165894508362, -0.17420129477977753, -0.21127893030643463, 0.24183174967765808, 0.027848243713378906, 0.11739430576562881, -0.10057497024536133, 0.16555620729923248, 0.18002179265022278, 0.344905287027359, -0.4049100875854492, -0.6614170074462891, 0.31384384632110596, 0.031158529222011566, 0.15683244168758392, 0.32053104043006897, -0.00010254902008455247, 0.3772655725479126, 0.411234974861145, -0.027608081698417664, -0.38895097374916077, -0.2801317572593689, -0.2690983712673187, 0.028283612802624702, 0.3179880976676941, 0.02047824114561081, -0.3608303964138031, -0.20059341192245483, -0.22204120457172394, -0.44905203580856323, 0.2750031352043152, 0.4882834553718567, 0.30811282992362976, 0.23109771311283112, -0.07215873897075653, -0.3881167769432068, 0.01981869339942932, 0.1770251989364624, -0.029275858774781227, 0.5288636088371277, 0.037727247923612595, -0.2341787964105606, 0.1035136803984642, 0.15816271305084229, 0.07939577847719193, 0.028467800468206406, 0.08821280300617218, -0.2072858363389969, 0.2171769142150879, -0.21917566657066345, 0.37982821464538574, 0.05472271889448166, 0.6315196752548218, -0.1158461943268776, -0.31418612599372864, -0.012312013655900955, 0.1138484850525856, -0.1028742864727974, 0.20467868447303772, 0.045829690992832184, -0.16889792680740356, 0.20919187366962433, -0.1342589557170868, -0.0759270191192627, 0.012444078922271729, 0.08084911108016968, -0.32170045375823975, 0.17732805013656616, -0.03291557729244232, -0.014615058898925781, -0.07692281901836395, -0.011735290288925171, 0.17648564279079437, 0.0757225751876831, -0.11257553100585938, 0.20104750990867615, -0.21264402568340302, 0.10468468070030212, 0.3609262704849243, -0.09731840342283249, -0.03183470666408539, 0.17258873581886292, 0.016264546662569046, 0.11048666387796402, 0.16870999336242676, 0.08383894711732864, 0.09148086607456207, -0.03138206526637077, 0.18837013840675354, 0.03568599000573158, 0.05802289396524429, 0.06612326949834824, -0.1720779985189438, -0.020551417022943497, -0.3940502405166626, -0.344581663608551, -0.05854688584804535, -0.045496776700019836, 0.29095208644866943, -0.2911604940891266, -0.2396683394908905, 0.014400027692317963, -0.1853243112564087, -0.09914769232273102, 0.19935785233974457, 0.49757692217826843, 0.2355813831090927, 0.22279423475265503, 0.015198294073343277, 0.27225303649902344, -0.1118469163775444, 0.0649854838848114, -0.33157142996788025, -0.03735900670289993, -0.2781311273574829, 0.020354075357317924, 0.14115463197231293, -0.27475205063819885, 0.48223569989204407, -0.05639290064573288, -0.3924447298049927, 0.0767451822757721, 0.15443910658359528, -0.0835208147764206, -0.14119696617126465, 0.40176841616630554, -0.12202280759811401, 0.05720214545726776, 0.2312975972890854, 0.07058656215667725, -0.10916641354560852, -0.18738985061645508, -0.009833775460720062, -0.4743787944316864, -0.1384027749300003, 0.3405170142650604, 0.025543812662363052, -0.11042474210262299, 0.018135271966457367, 0.017769763246178627, 0.01700538396835327, -0.09794184565544128, -0.2767784595489502, -0.14959672093391418, -0.24468418955802917, -0.13690945506095886, 0.39727047085762024, 0.5598181486129761, -0.3857533633708954, -0.05208948999643326, -0.18456631898880005, -0.336459219455719, 0.08103995770215988, 0.031680166721343994, -0.44098004698753357, 0.49583661556243896, -0.24943947792053223, 0.028768695890903473, 0.27028706669807434, -0.32810208201408386, -0.30545294284820557, 0.3795756697654724, -0.133742555975914, -0.19478105008602142, 0.06634476780891418, -0.30998578667640686, -0.23119688034057617, 0.18476827442646027, 0.21188262104988098, 0.3373563885688782, 0.037558622658252716, 0.02523127757012844, -0.21753554046154022, -0.13504469394683838, -0.04740782082080841, 0.4344930946826935, 0.2072369009256363, 0.14157246053218842, 0.32839739322662354, -0.18085022270679474, 0.17726516723632812, -0.040548767894506454, -0.1632167100906372, 0.2781001031398773, 0.1951756477355957, 0.026435595005750656, -0.04098803177475929, 0.09932463616132736, -0.2837721109390259, 0.21913579106330872, -0.3463272154331207, 0.12686964869499207, -0.3159257769584656, 0.13717564940452576, -0.4949304461479187, 0.06849180907011032, -0.37878721952438354, -0.056780602782964706, 0.2569243907928467, 0.3768235445022583, 0.1142340898513794, 0.17225341498851776, -0.27825307846069336, 0.2679760158061981, 0.10091345012187958, -0.05146295577287674, -0.17525848746299744, 0.34777483344078064, -0.07276362925767899, -0.16977611184120178, 0.1653924435377121, 0.09543079137802124, 0.16461476683616638, -0.20722010731697083, -0.14516231417655945, 0.3047008216381073, 0.17208439111709595, 0.17492380738258362, 0.22789716720581055, -0.2666507959365845, 0.04427478462457657, -0.018157560378313065, 0.1284884512424469, -0.018641598522663116, 0.19251619279384613, 0.052900053560733795, -0.12202086299657822, 0.22219491004943848, 0.289124071598053, 0.20565536618232727, 0.16339123249053955, 0.03839863836765289, 0.39425230026245117, -0.11344895511865616, 0.01905767060816288, -0.16612030565738678, 0.07487773150205612, 0.3530035614967346, 0.38033679127693176, 0.230072021484375, -0.2208119034767151, 0.1057659164071083, 0.4657374918460846, -0.05164068937301636, -0.14584439992904663, -0.02500803768634796, -0.23072364926338196, -0.12910817563533783, -0.06377451866865158, 0.33376187086105347, 0.4226688742637634, 0.1845541000366211, -0.038901928812265396, 0.0031108763068914413, 0.07528961449861526, -0.10898157209157944, 0.14072829484939575, -0.13659629225730896, 0.34171271324157715, 0.3945149779319763, 0.05516774579882622, -0.17670844495296478, -0.37008750438690186, -0.3006952702999115, 0.16641488671302795, 0.27729782462120056, -0.1808464378118515, 0.005281589925289154, -0.4011819660663605, 0.21394461393356323, -0.00982904713600874, -0.10101012140512466, -0.07950671017169952, -0.34041914343833923, -0.01573522388935089, -0.08300596475601196, -0.06706768274307251, 0.10658729821443558, -0.36378636956214905, 0.08187122642993927, 0.11893568933010101, -0.2313338965177536, -0.06246470659971237, -0.3092598617076874, -0.13971883058547974, 0.08106759190559387, 0.28865885734558105, 0.02587706781923771, 0.2121610790491104, -0.216690331697464, -0.1624976247549057, -0.04628492146730423, -0.0685265064239502, 0.17279934883117676, 0.1040332168340683, 0.07967612147331238, 0.16153424978256226, 0.1705053150653839, 0.04437454789876938, -0.12174676358699799, 0.3942083418369293, -0.14750789105892181, -0.21945308148860931, 0.14789052307605743, -0.04161040857434273, -0.06287422776222229, -0.029296649619936943, -0.50315260887146, -0.5888147950172424, -0.39467522501945496, 0.10678336024284363, 0.175497367978096, 0.0746617242693901, 0.18827523291110992, 0.28605908155441284, 0.2770676016807556, -0.2036556750535965, -0.07604122906923294, -0.1809357851743698, -0.5880246162414551, 0.22678911685943604, -0.3660035729408264, -0.2582665979862213, -0.018781621009111404, -0.02825869992375374, 0.4030711352825165, -0.04487864300608635, -0.2482689619064331, -0.026492001488804817, -0.1904008984565735, 0.14721541106700897, -0.13716478645801544, -0.12330171465873718, 0.28267109394073486, 0.10413505882024765, -0.25405555963516235, -0.0856490358710289, -0.047937724739313126, 0.15344317257404327, 0.05650610476732254, -0.0014599189162254333, -0.049830660223960876, 0.40239426493644714, -0.3189496397972107, 0.5021758675575256, -0.1321514993906021, -0.15375301241874695, 0.4545553922653198, -0.017877278849482536, 0.21608580648899078, -0.2835460305213928, -0.3218404948711395, -0.0065042562782764435, 0.1784430295228958, -0.027299758046865463, 0.12062463164329529, -0.09411513060331345, -0.3274233639240265, -0.26683616638183594, -0.19139550626277924, -0.2621433734893799, -0.0815107449889183, 0.007371397688984871, -0.07154332101345062, 0.28821298480033875, -0.05969907343387604, 0.1273895502090454, -0.10624493658542633, 0.23163604736328125, 0.1236681193113327, 0.09706129133701324, 0.10143216699361801, 0.05609878897666931, -0.46105730533599854, 0.02401673048734665, -0.1644705832004547, 0.049190349876880646, -0.10869432240724564, 0.31040364503860474, -0.20804338157176971, -0.16267886757850647, 0.04832897707819939, -0.0831754058599472, 0.2915996313095093, -0.2622022032737732, 0.18529005348682404, 0.26506587862968445, -0.16065943241119385, -0.35804545879364014, -0.15815189480781555, 0.15818451344966888, 0.1291675865650177, -0.15702736377716064, 0.34875714778900146, 0.003035426139831543, -0.32503774762153625, 0.20515242218971252, 0.01606317237019539, -0.21494868397712708, -0.1627969890832901, -0.2047470062971115, -0.34066829085350037, -0.2715454697608948, -0.21999973058700562, -0.20751629769802094, 0.22242699563503265, 0.1718105673789978, -0.07700952142477036, -0.1204376071691513, 0.006406452506780624, 0.0069853514432907104, 0.2544151842594147, 0.2376251518726349, 0.0223214291036129, 0.07587432861328125, 0.30954527854919434, 0.2924076020717621, 0.4549855589866638, 0.7814916968345642, 0.14868895709514618, -0.28215739130973816, 0.18339654803276062, -0.0462164543569088, 0.31190985441207886, 0.21560372412204742, -0.1176731064915657, -0.14174798130989075, 0.023970184847712517, 0.17389091849327087, -0.1707325279712677, 0.27064189314842224, 0.2103012353181839, -0.338639497756958, -0.17654237151145935, -0.5080038905143738, 0.325766384601593, -0.25445547699928284, 0.052713289856910706, -0.017889700829982758, -0.08651620149612427, -0.1654796302318573, 0.4113066792488098, -0.07360353320837021, 0.6224445104598999, -0.18023863434791565, -0.08455926179885864, 0.2444291114807129, -0.11238324642181396, 0.03747877478599548, -0.3633495569229126, 0.1496446579694748, -0.2811684012413025, 0.017042089253664017, -0.004717240110039711, -0.17546790838241577, 0.17584876716136932, 0.19466783106327057, 0.07547226548194885, 0.18096375465393066, -0.15033850073814392, 0.03992820531129837, -0.029347198083996773, 0.32100483775138855, -0.04962064325809479, -0.07160954177379608, -0.24317368865013123, 0.28373488783836365, 0.025612488389015198, 0.4201328754425049, -0.0506691038608551, -0.2989141345024109, -0.08483544737100601, -0.19001033902168274, -0.02891310304403305, 0.24737226963043213, -0.37014007568359375, 0.2053999900817871, -0.05138123407959938, -0.12409952282905579, -0.005989690311253071, 0.0868678092956543, 0.039465758949518204, 0.07525140047073364, -0.189552903175354, 0.22134235501289368, -0.11132515221834183, -0.20881570875644684, -0.29695549607276917, 0.15998367965221405, 0.204489603638649, -0.09503813832998276, -0.4180895686149597, 0.05736091360449791, -0.14472302794456482, -0.27388620376586914, -0.02200917899608612, -0.08242203295230865, -0.02303934097290039, -0.1155049130320549, -0.22760814428329468, -0.0359661802649498, 0.02994728460907936, -0.09619339555501938, 0.22177715599536896, 0.04049336910247803, -0.15589016675949097, -0.13812404870986938, -0.09940683841705322, -0.4210210144519806, -0.17528538405895233, 0.5736230611801147, -0.06258036941289902, 0.07990840077400208, 0.6132895946502686, 0.14994452893733978, -0.037491124123334885, -0.4075957238674164, -0.1245209127664566, 0.6449130773544312, -0.2190646231174469, -0.0026801759377121925, 0.0879213958978653, -0.06457879394292831, 0.17336547374725342, -0.026928413659334183, 0.11720161885023117, -0.31260350346565247, 0.05724029615521431, -0.4941405653953552, -0.3921109139919281, -0.00449775904417038, -0.14380936324596405, 0.1750951111316681, -0.07380807399749756, 0.24137042462825775, 0.18245245516300201, -0.12508627772331238, -0.4251794219017029, 0.05853869020938873, -0.2841375768184662, 0.05133068561553955, 0.1976826936006546, -0.15570461750030518, 0.20136843621730804, -0.08791737258434296, 0.3622087836265564, -0.19797205924987793, -0.210876002907753, -0.3679225742816925, 0.06409880518913269, 0.06925508379936218, 0.003553546965122223, -0.059116967022418976, 0.08493588864803314, -0.13916298747062683, -0.06799668073654175, 0.09381354600191116, 0.08976063132286072, 0.14306572079658508, 0.024710610508918762, 0.10601907968521118, -0.019510816782712936, -0.17325174808502197, 0.06113405525684357, -0.003171578049659729, 0.0006259381771087646, -0.0034728720784187317, -0.023987172171473503, 0.06308051943778992, -0.037407513707876205, -0.05107593536376953, 0.06859686970710754, 0.02059203013777733, -0.10120181739330292, 0.19828695058822632, 0.27438318729400635, -0.3543447256088257, 0.04184843227267265, 0.1751633882522583, 0.17061221599578857, 0.3076137900352478, -0.25849661231040955, 0.1272261142730713, 0.23160815238952637, 0.36786124110221863, -0.3404371440410614, -0.1512429565191269, -0.03285880759358406, 0.019785765558481216, 0.16071635484695435, 0.04918806254863739, 0.27414536476135254, -0.08686116337776184, 0.025093019008636475, 0.09609684348106384, 0.37669652700424194, 0.09091220051050186, 0.013406150974333286, 0.45640039443969727, 0.03208551183342934, -0.07569046318531036, 0.09478908032178879, 0.3297464847564697, 0.22163814306259155, 0.6467007398605347, -0.1078256294131279, 0.18456770479679108, -0.2802918255329132, 0.17827945947647095, -0.07496774941682816, -0.5045817494392395, 0.11000190675258636, 0.2848812937736511, -0.11227728426456451, -0.12722164392471313, -0.05325968563556671, 0.1731540560722351, 0.01288558542728424, -0.29533207416534424, -0.18396484851837158, 0.18098339438438416, -0.13771754503250122, -0.1285751312971115, -0.2776619791984558, -0.3045416474342346, -0.2806885838508606, 0.17133180797100067, 0.049760475754737854, 0.05268501490354538, 0.15324507653713226, 0.12416788935661316, -0.1252148449420929, -0.14832346141338348, 0.06130453199148178, 0.133792906999588, -0.11221999675035477, -0.2258983701467514, 0.3206229507923126, 0.10444194823503494, -0.026164107024669647, -0.0014423951506614685, 0.16649794578552246, 0.27782443165779114, 0.35235580801963806, -0.15201853215694427, 0.10302437096834183, -0.009789107367396355, -0.14413245022296906, -0.18918320536613464, 0.0786159336566925, -0.07117220759391785, 0.20661725103855133, 0.23633386194705963, 0.3146885335445404, -0.22353845834732056, 0.1097254753112793, -0.0013920478522777557, 0.16722887754440308, -0.02295347861945629, 0.3412013351917267, 0.10838975012302399, -0.008566845208406448, -0.12988166511058807, 0.0651228055357933, -0.47862809896469116, 0.041579924523830414, 0.330278217792511, 0.29578927159309387, 0.23015937209129333, -0.18296676874160767, 0.1435518115758896, -0.00015540793538093567, 0.4455425441265106, 0.1900869458913803, 0.10142262279987335, -0.3366394639015198, -0.21049129962921143, -0.4156794846057892, -0.049699150025844574, -0.10883231461048126, 0.08797363936901093, 0.11371442675590515, 0.09044824540615082, 0.2712882161140442, 0.05326847732067108, 0.17327342927455902, 0.20186468958854675, -0.03569217771291733, -0.0401175394654274, -0.16421882808208466, 0.019323160871863365, -0.14049114286899567, 0.10339892655611038, 0.03580435365438461, -0.4230644702911377, 0.11862990260124207, -0.5297967791557312, 0.25209707021713257, -0.1825563907623291, -0.20412391424179077, 0.05548973008990288, -0.18732687830924988, 0.44701680541038513, -0.08052021265029907, 0.2546401023864746, -0.05306943506002426, -0.13158142566680908, -0.2592819929122925, -0.2901480495929718, -0.08567357808351517, 0.23574334383010864, 0.010002221912145615, 0.34786170721054077, -0.1417648196220398, 0.014740558341145515, -0.40552452206611633, 0.11200180649757385, 0.01815604418516159, 0.18209975957870483, -0.1311502307653427, 0.025584833696484566, 0.02837858349084854, 0.0018720489460974932, 0.3008187711238861, 0.02600211277604103, -0.022550277411937714, 0.03661935776472092, -0.2774409055709839, -0.13568559288978577, 0.4256500005722046, -0.12257983535528183, -0.23282842338085175, 0.16801755130290985, 0.11415910720825195, 0.01961982250213623, 0.1186424046754837, -0.33866438269615173, 0.468166321516037, 0.309430330991745, -0.09214481711387634, -0.12193527817726135, 0.28857293725013733, 0.2110389620065689, -0.006293438374996185, -0.0348697304725647, -0.09481918811798096, 0.015570743940770626, -0.06850814819335938, -0.3372613191604614, -0.07985624670982361 ]
https://github.com/huggingface/datasets/issues/4191
feat: create an `Array3D` column from a list of arrays of dimension 2
Hi @SaulLu, thanks for your proposal. Just I got a bit confused about the dimensions... - For the 2D case, you mention it is possible to create an `Array2D` from a list of arrays of dimension 1 - However, you give an example of creating an `Array2D` from arrays of dimension 2: - the values of `data_map` are arrays of dimension 2 - the outer list in `prepare_dataset_2D` should not be taken into account in the dimension counting, as it is used because in `map` you pass `batched=True` Note that for the 3D alternatives you mention: - In `prepare_dataset_3D_ter`, you create an `Array3D` from arrays of dimension 3: - the array `data_map[index][np.newaxis, :, :]` has dimension 3 - the outer list in `prepare_dataset_3D_ter` is the one used by `batched=True` - In `prepare_dataset_3D_bis`, you create an `Array3D` from a list of list of lists: - the value of `data_map[index].tolist()` is a list of lists - it is enclosed by another list `[data_map[index].tolist()]`, thus giving a list of list of lists - the outer list is the one used by `batched=True` Therefore, if I understand correctly, your request would be to be able to create an `Array3D` from a list of an array of dimension 2: - In `prepare_dataset_3D`, `data_map[index]` is an array of dimension 2 - it is enclosed by a list `[data_map[index]]`, thus giving a list of an array of dimension 2 - the outer list is the one used by `batched=True` Please, feel free to tell me if I did not understand you correctly.
**Is your feature request related to a problem? Please describe.** It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1. To illustrate my proposal, let's take the following toy dataset t: ```python import numpy as np from datasets import Dataset, features data_map = { 1: np.array([[0.2, 0,4],[0.19, 0,3]]), 2: np.array([[0.1, 0,4],[0.19, 0,3]]), } def create_toy_ds(): my_dict = {"id":[1, 2]} return Dataset.from_dict(my_dict) ds = create_toy_ds() ``` The following 2D processing works without any errors raised: ```python def prepare_dataset_2D(batch): batch["pixel_values"] = [data_map[index] for index in batch["id"]] return batch ds_2D = ds.map( prepare_dataset_2D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")}) ) ``` The following 3D processing doesn't work: ```python def prepare_dataset_3D(batch): batch["pixel_values"] = [[data_map[index]] for index in batch["id"]] return batch ds_3D = ds.map( prepare_dataset_3D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")}) ) ``` The error raised is: ``` --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) [<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>() 3 batched=True, 4 remove_columns=ds.column_names, ----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) 6 ) 12 frames [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1971 new_fingerprint=new_fingerprint, 1972 disable_tqdm=disable_tqdm, -> 1973 desc=desc, 1974 ) 1975 else: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 518 self: "Dataset" = kwargs.pop("self") 519 # apply actual function --> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 522 for dataset in datasets: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 485 } 486 # apply actual function --> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 489 # re-apply format to the output [/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 456 # Call actual function 457 --> 458 out = func(self, *args, **kwargs) 459 460 # Update fingerprint of in-place transforms + update in-place history of transforms [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2354 writer.write_table(batch) 2355 else: -> 2356 writer.write_batch(batch) 2357 if update_data and writer is not None: 2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size) 505 col_try_type = try_features[col] if try_features is not None and col in try_features else None 506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col) --> 507 arrays.append(pa.array(typed_sequence)) 508 inferred_features[col] = typed_sequence.get_inferred_type() 509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type) 175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type) 176 else: --> 177 storage = pa.array(data, pa_type.storage_dtype) 178 return pa.ExtensionArray.from_storage(pa_type, storage) 179 /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Can only convert 1-dimensional array values ``` **Describe the solution you'd like** No error in the second scenario and an identical result to the following snippets. **Describe alternatives you've considered** There are other alternatives that work such as: ```python def prepare_dataset_3D_bis(batch): batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]] return batch ds_3D_bis = ds.map( prepare_dataset_3D_bis, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` or ```python def prepare_dataset_3D_ter(batch): batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]] return batch ds_3D_ter = ds.map( prepare_dataset_3D_ter, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` But both solutions require the user to be aware that `data_map[index]` is an `np.array` type. cc @lhoestq as we discuss this offline :smile:
255
feat: create an `Array3D` column from a list of arrays of dimension 2 **Is your feature request related to a problem? Please describe.** It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1. To illustrate my proposal, let's take the following toy dataset t: ```python import numpy as np from datasets import Dataset, features data_map = { 1: np.array([[0.2, 0,4],[0.19, 0,3]]), 2: np.array([[0.1, 0,4],[0.19, 0,3]]), } def create_toy_ds(): my_dict = {"id":[1, 2]} return Dataset.from_dict(my_dict) ds = create_toy_ds() ``` The following 2D processing works without any errors raised: ```python def prepare_dataset_2D(batch): batch["pixel_values"] = [data_map[index] for index in batch["id"]] return batch ds_2D = ds.map( prepare_dataset_2D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")}) ) ``` The following 3D processing doesn't work: ```python def prepare_dataset_3D(batch): batch["pixel_values"] = [[data_map[index]] for index in batch["id"]] return batch ds_3D = ds.map( prepare_dataset_3D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")}) ) ``` The error raised is: ``` --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) [<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>() 3 batched=True, 4 remove_columns=ds.column_names, ----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) 6 ) 12 frames [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1971 new_fingerprint=new_fingerprint, 1972 disable_tqdm=disable_tqdm, -> 1973 desc=desc, 1974 ) 1975 else: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 518 self: "Dataset" = kwargs.pop("self") 519 # apply actual function --> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 522 for dataset in datasets: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 485 } 486 # apply actual function --> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 489 # re-apply format to the output [/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 456 # Call actual function 457 --> 458 out = func(self, *args, **kwargs) 459 460 # Update fingerprint of in-place transforms + update in-place history of transforms [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2354 writer.write_table(batch) 2355 else: -> 2356 writer.write_batch(batch) 2357 if update_data and writer is not None: 2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size) 505 col_try_type = try_features[col] if try_features is not None and col in try_features else None 506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col) --> 507 arrays.append(pa.array(typed_sequence)) 508 inferred_features[col] = typed_sequence.get_inferred_type() 509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type) 175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type) 176 else: --> 177 storage = pa.array(data, pa_type.storage_dtype) 178 return pa.ExtensionArray.from_storage(pa_type, storage) 179 /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Can only convert 1-dimensional array values ``` **Describe the solution you'd like** No error in the second scenario and an identical result to the following snippets. **Describe alternatives you've considered** There are other alternatives that work such as: ```python def prepare_dataset_3D_bis(batch): batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]] return batch ds_3D_bis = ds.map( prepare_dataset_3D_bis, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` or ```python def prepare_dataset_3D_ter(batch): batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]] return batch ds_3D_ter = ds.map( prepare_dataset_3D_ter, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` But both solutions require the user to be aware that `data_map[index]` is an `np.array` type. cc @lhoestq as we discuss this offline :smile: Hi @SaulLu, thanks for your proposal. Just I got a bit confused about the dimensions... - For the 2D case, you mention it is possible to create an `Array2D` from a list of arrays of dimension 1 - However, you give an example of creating an `Array2D` from arrays of dimension 2: - the values of `data_map` are arrays of dimension 2 - the outer list in `prepare_dataset_2D` should not be taken into account in the dimension counting, as it is used because in `map` you pass `batched=True` Note that for the 3D alternatives you mention: - In `prepare_dataset_3D_ter`, you create an `Array3D` from arrays of dimension 3: - the array `data_map[index][np.newaxis, :, :]` has dimension 3 - the outer list in `prepare_dataset_3D_ter` is the one used by `batched=True` - In `prepare_dataset_3D_bis`, you create an `Array3D` from a list of list of lists: - the value of `data_map[index].tolist()` is a list of lists - it is enclosed by another list `[data_map[index].tolist()]`, thus giving a list of list of lists - the outer list is the one used by `batched=True` Therefore, if I understand correctly, your request would be to be able to create an `Array3D` from a list of an array of dimension 2: - In `prepare_dataset_3D`, `data_map[index]` is an array of dimension 2 - it is enclosed by a list `[data_map[index]]`, thus giving a list of an array of dimension 2 - the outer list is the one used by `batched=True` Please, feel free to tell me if I did not understand you correctly.
[ 0.31241798400878906, -0.2744893431663513, -0.19434180855751038, 0.17922085523605347, 0.1064048781991005, 0.21910187602043152, 0.752160370349884, 0.3646603226661682, 0.34263017773628235, 0.07632166147232056, 0.20140965282917023, 0.05226641893386841, -0.2193998098373413, 0.5241885185241699, 0.13228094577789307, -0.5646160840988159, 0.2458343803882599, 0.2844042181968689, -0.12316013872623444, 0.14966851472854614, -0.22333697974681854, -0.12806840240955353, -0.0006180405616760254, -0.09295159578323364, 0.051931560039520264, 0.031099198386073112, -0.0843711867928505, -0.18528202176094055, 0.01739984191954136, -0.17653502523899078, 0.43817225098609924, -0.17322057485580444, 0.28982824087142944, 0.056163888424634933, -0.00011158135021105409, -0.12541523575782776, -0.024270817637443542, -0.06819987297058105, 0.30445146560668945, 0.05786564201116562, 0.21352684497833252, -0.7209262251853943, -0.0195668525993824, -0.4159524440765381, -0.05576729029417038, -0.2264050841331482, -0.38964924216270447, -0.34350278973579407, 0.10842303931713104, -0.038924943655729294, 0.15284684300422668, 0.21447902917861938, 0.3267787992954254, 0.022609973326325417, 0.15810370445251465, 0.4540351629257202, -0.47387218475341797, -0.3463344871997833, 0.16782739758491516, -0.1274491399526596, 0.8238984942436218, 0.16232232749462128, -0.45251384377479553, 0.17332042753696442, 0.38730087876319885, 0.08906951546669006, 0.3958965539932251, -0.42340439558029175, -0.22018685936927795, 0.47091543674468994, 0.3154153823852539, -0.30028843879699707, -0.2820757031440735, -0.14466816186904907, 0.025996249169111252, -0.15927068889141083, -0.227495938539505, 0.24495148658752441, -0.1849408894777298, -0.05369587615132332, -0.18572242558002472, 0.033429138362407684, -0.2233562469482422, 0.029785189777612686, 0.012824341654777527, -0.12021057307720184, 0.06513221561908722, 0.09164261817932129, -0.007788628339767456, -0.21076178550720215, 0.3491172194480896, -0.03453182801604271, 0.30678728222846985, 0.1271311342716217, -0.25412800908088684, -0.31995412707328796, 0.126625657081604, -0.5901063680648804, -0.20564362406730652, -0.3136787414550781, 0.1856268048286438, -0.1893850564956665, 0.10561638325452805, 0.06812793016433716, -0.06653328239917755, 0.34195366501808167, -0.09756531566381454, -0.16100680828094482, -0.2705240845680237, 0.1035633534193039, 0.27207785844802856, 0.09871652722358704, 0.0035994001664221287, 0.2550298571586609, 0.1200275868177414, 0.08993145078420639, 0.323387086391449, 0.2999127507209778, -0.10153281688690186, 0.0636482760310173, -0.4410652816295624, -0.009807543829083443, -0.13940739631652832, -0.013015054166316986, 0.15718497335910797, 0.39015981554985046, -0.05740642547607422, 0.26130685210227966, 0.10897354036569595, -0.11153016239404678, -0.012301730923354626, 0.10544978082180023, -0.0018100365996360779, -0.08418645709753036, 0.14179079234600067, 0.8486244082450867, -0.07724002748727798, -0.007790079340338707, 0.34730106592178345, 0.11543959379196167, 0.10347192734479904, -0.07554289698600769, 0.2509486973285675, 0.22467099130153656, 0.01721125841140747, -0.1028924360871315, 0.30729687213897705, 0.13338762521743774, -0.18982192873954773, 0.1736735850572586, 0.140951007604599, -0.08903498202562332, -0.37749147415161133, 0.09158843755722046, 0.0269952230155468, 0.1973099410533905, -0.18787899613380432, 0.21377654373645782, 0.2295258343219757, -0.07852812111377716, 0.08520388603210449, -0.22289304435253143, -0.009186901152133942, -0.5023840665817261, -0.0975414514541626, -0.08434486389160156, -0.44703996181488037, 0.21025624871253967, -0.11392682045698166, 0.09055972099304199, -0.024942629039287567, 0.17017582058906555, -0.0735693946480751, -0.17700105905532837, -0.07210177183151245, 0.19241739809513092, -0.02134586125612259, 0.08286604285240173, 0.0760689303278923, 0.20049700140953064, 0.0474744513630867, 0.31270527839660645, 0.3834455907344818, 0.2685551047325134, 0.119975246489048, -0.2980223298072815, -0.07300220429897308, 0.3768972158432007, -0.09826722741127014, 0.055093660950660706, 0.06913885474205017, -0.30634230375289917, 0.5648629069328308, -0.2242388278245926, 0.09219591319561005, 0.0760299414396286, -0.07091548293828964, -0.21353185176849365, 0.17463377118110657, -0.43578988313674927, 0.14011819660663605, -0.05969564616680145, 0.3034641444683075, -0.08347417414188385, -0.09477005898952484, -0.18199163675308228, -0.5741258263587952, 0.22463154792785645, -0.12170568853616714, -0.20913657546043396, 0.24871765077114105, -0.24575935304164886, -0.03155326843261719, -0.05588899552822113, 0.034978337585926056, 0.022592466324567795, 0.12673108279705048, -0.09941352903842926, 0.1903841346502304, -0.33667272329330444, -0.16258937120437622, -0.33660033345222473, 0.25999996066093445, -0.2182476967573166, -0.31936752796173096, 0.3769770562648773, 0.15034686028957367, -0.059387169778347015, -0.2687221169471741, 0.2968426048755646, 0.17530150711536407, -0.06582982838153839, 0.14184558391571045, -0.02908618003129959, 0.2907419800758362, -0.1493251770734787, -0.21632763743400574, 0.5118682980537415, 0.005106614902615547, 0.06692889332771301, 0.269976407289505, 0.07831862568855286, 0.18486279249191284, -0.1079728752374649, 0.114753857254982, 0.5115678310394287, -0.23156221210956573, 0.3922669589519501, -0.2081470489501953, 0.21916763484477997, -0.0449208989739418, 0.048504967242479324, -0.004132159054279327, -0.24400007724761963, -0.2206345647573471, -0.03248893842101097, -0.400483638048172, -0.1765010952949524, -0.22393611073493958, 0.5375982522964478, -0.00943375751376152, 0.0037023313343524933, 0.15429694950580597, -0.00229610875248909, 0.34661126136779785, 0.07066598534584045, -0.18283849954605103, 0.08494895696640015, 0.18201343715190887, 0.07712653279304504, -0.10336810350418091, 0.05805949121713638, -0.04999528452754021, 0.11150601506233215, 0.27514389157295227, 0.08934865146875381, 0.30476173758506775, -0.08217669278383255, 0.2061750888824463, -0.08130141347646713, 0.2577293813228607, -0.11697091162204742, 0.20587381720542908, 0.0026895087212324142, -0.10192886739969254, 0.03183933347463608, 0.040698230266571045, -0.21990594267845154, -0.07123678922653198, -0.5358257293701172, -0.2424120008945465, 0.14540693163871765, -0.28546905517578125, 0.10824507474899292, -0.10733018815517426, -0.2181987464427948, -0.053711049258708954, 0.0037850141525268555, 0.11725105345249176, 0.035572201013565063, 0.18982340395450592, 0.10496967285871506, 0.2224019169807434, 0.10427440702915192, -0.0991683378815651, 0.09468165785074234, 0.19944876432418823, 0.26488158106803894, -0.026082295924425125, -0.2296665757894516, -0.06018444895744324, -0.012665525078773499, -0.2320840209722519, 0.2373226284980774, 0.4512217044830322, 0.09151487797498703, -0.21039745211601257, -0.22797353565692902, 0.20540118217468262, 0.2228318303823471, -0.0765552893280983, -0.07204034924507141, 0.37434375286102295, -0.10098525136709213, -0.029946353286504745, -0.071129210293293, -0.05247412621974945, -0.23324206471443176, 0.16401730477809906, -0.252526193857193, 0.43927836418151855, -0.3091941475868225, 0.14647434651851654, 0.18888849020004272, 0.5131560564041138, -0.06767009943723679, -0.18503913283348083, 0.26678356528282166, -0.035252589732408524, -0.1525302678346634, 0.0143393874168396, -0.2574078142642975, -0.24348922073841095, -0.03622324392199516, 0.24834854900836945, -0.08499603718519211, -0.4739374816417694, -0.2590336501598358, -0.0007411278784275055, -0.12585826218128204, -0.07227662205696106, 0.47971078753471375, -0.025907522067427635, -0.05410678684711456, -0.05167846009135246, -0.3136700391769409, 0.12881481647491455, 0.44826260209083557, 0.16585136950016022, 0.15782806277275085, 0.5677198171615601, -0.033130306750535965, 0.3702329397201538, 0.118379145860672, 0.04230482503771782, 0.46479934453964233, 0.23755116760730743, 0.15127450227737427, -0.06681592017412186, -0.3670329749584198, 0.021574005484580994, -0.14736804366111755, -0.5025122761726379, -0.23354895412921906, -0.20040395855903625, -0.4074825346469879, -0.0325053408741951, 0.37398651242256165, -0.24439507722854614, 0.017981424927711487, -0.014622768387198448, -0.03087182343006134, 0.5235709547996521, -0.04575879126787186, 0.19080787897109985, -0.3085763156414032, 0.23549360036849976, -0.13144925236701965, -0.04015897214412689, 0.5050792098045349, -0.0536329485476017, -0.3370075225830078, -0.6042526960372925, -0.35161781311035156, 0.2652111351490021, 0.46750113368034363, 0.579695999622345, 0.013475771993398666, -0.26569613814353943, -0.09016568958759308, 0.06724695861339569, 1.0600336790084839, -0.21870513260364532, -0.15723367035388947, 0.5560860633850098, -0.33938971161842346, -0.1827951818704605, -0.3365848958492279, -0.031153082847595215, -0.28493532538414, 0.006164832040667534, 0.27957600355148315, -0.26321643590927124, 0.047671739012002945, 0.05088888108730316, 0.26903578639030457, -0.10878904908895493, -0.09715788066387177, -0.16961351037025452, -0.09295833110809326, 0.035368405282497406, -0.43204402923583984, 0.034232497215270996, 0.3350318372249603, 0.27828776836395264, 0.028206396847963333, -0.34003961086273193, -0.2894940674304962, 0.07574813067913055, -0.1041056364774704, 0.2674204111099243, 0.2972295880317688, 0.20273146033287048, -0.24704092741012573, 0.06296972185373306, -0.09516838937997818, -0.11592017114162445, 0.10849961638450623, 0.0975867211818695, -0.07187215238809586, -0.028874464333057404, 0.38548150658607483, 0.3710026443004608, 0.1266801804304123, 0.12281769514083862, -0.45760780572891235, 0.1194957047700882, -0.21246375143527985, -0.3716832399368286, 0.4616398811340332, -0.39287638664245605, -0.008624425157904625, -0.3551379144191742, 0.2630036473274231, 0.0015915054827928543, -0.0011137723922729492, 0.05579688027501106, 0.14040261507034302, -0.13042506575584412, 0.4157845973968506, 0.4143257737159729, 0.7595930695533752, -0.21283791959285736, 0.11238951981067657, 0.36833655834198, -0.09440979361534119, 0.26439470052719116, 0.28753823041915894, 0.22814686596393585, -0.2870109975337982, -0.33332395553588867, -0.2878739535808563, -0.053535524755716324, 0.26157093048095703, 0.012582659721374512, 0.02028697356581688, 0.032372355461120605, -0.10841889679431915, -0.050512444227933884, -0.053884103894233704, -0.44044774770736694, 0.31334322690963745, -0.19636793434619904, -0.32740098237991333, 0.023475337773561478, -0.08681553602218628, -0.3508993089199066, -0.041910700500011444, -0.2867661118507385, -0.050355568528175354, 0.005852814763784409, -0.3428899645805359, -0.029334962368011475, -0.0023933472111821175, 0.297288179397583, 0.1917489916086197, -0.3733295798301697, 0.020980708301067352, 0.05787792056798935, 0.16488784551620483, -0.12400345504283905, -0.07449716329574585, -0.2936059236526489, 0.4263134300708771, -0.12424759566783905, -0.2075144201517105, -0.514161229133606, 0.1546478569507599, -0.006661802530288696, -0.01547880470752716, 0.0790027529001236, 0.1081688180565834, -0.029956042766571045, -0.5156164169311523, 0.007488824427127838, 0.32376813888549805, -0.25540265440940857, -0.3743024170398712, 0.03399059548974037, -0.0246657095849514, -0.137162446975708, 0.09788340330123901, -0.060792192816734314, -0.32198667526245117, 0.27947741746902466, 0.08881215751171112, -0.025310251861810684, -0.02642679587006569, 0.10116864740848541, 0.3083020746707916, 0.025073841214179993, 0.035223428159952164, 0.2524091899394989, -0.03255794569849968, -0.21449249982833862, 0.25030192732810974, -0.03525528311729431, 0.19746103882789612, 0.34086719155311584, -0.018009843304753304, -0.26381224393844604, -0.04667002335190773, 0.07440757006406784, 0.061039429157972336, 0.3384777903556824, -0.16938316822052002, -0.24260543286800385, 0.1574263721704483, 0.10413596034049988, 0.18379230797290802, 0.10055771470069885, -0.2981010377407074, 0.023819832131266594, -0.31761595606803894, -0.01226341538131237, -0.2571694552898407, -0.0822417140007019, 0.06740915030241013, 0.11489049345254898, -0.22061467170715332, -0.05682268738746643, -0.19999955594539642, 0.008036728948354721, 0.13230019807815552, -0.05275391787290573, -0.1728145033121109, -0.17815172672271729, -0.15616628527641296, 0.1397588849067688, -0.15707457065582275, -0.1569671779870987, 0.16460540890693665, -0.14816920459270477, -0.499934583902359, -0.24631860852241516, 0.01847938820719719, 0.16350972652435303, -0.09562855958938599, -0.06974624842405319, -0.15406382083892822, 0.01548602432012558, -0.033669840544462204, -0.08751925826072693, -0.18215137720108032, 0.036749061197042465, 0.17915725708007812, 0.04285196214914322, -0.0303107351064682, 0.05079592764377594, -0.19820067286491394, -0.07462934404611588, -0.35741448402404785, -0.28482723236083984, 0.4346754550933838, -0.13798917829990387, -0.2774614691734314, 0.044032022356987, 0.6472415924072266, -0.12479756772518158, -0.20153234899044037, 0.01877996139228344, 0.04478105157613754, 0.2386491447687149, -0.2666419744491577, 0.007799643557518721, 0.1368418037891388, 0.16637930274009705, 0.017142001539468765, 0.6715102195739746, 0.24539494514465332, 0.309745192527771, -0.19540394842624664, -0.08696793764829636, 0.10403133183717728, 0.16630515456199646, 0.16475960612297058, 0.5389293432235718, 0.11740149557590485, -0.04062500223517418, -0.01928381435573101, -0.026646140962839127, 0.4101109504699707, 0.47319865226745605, 0.15641912817955017, 0.23910483717918396, 0.26606884598731995, 0.25457659363746643, 0.09572311490774155, 0.0017289146780967712, 0.17395558953285217, -0.04910247027873993, 0.1391342282295227, 0.1366778016090393, 0.01883683353662491, -0.19746863842010498, -0.3538186252117157, -0.1515221744775772, -0.5707226395606995, 0.19410325586795807, -0.08500494062900543, 0.06495212018489838, 0.3362503945827484, -0.18968480825424194, -0.09092532098293304, -0.18354088068008423, 0.12329398095607758, -0.1363344043493271, 0.11529126018285751, -0.06734956800937653, 0.14000381529331207, -0.013770479708909988, 0.23635035753250122, 0.1262311041355133, 0.2812206745147705, -0.14412225782871246, -0.16515830159187317, 0.38308513164520264, -0.17597869038581848, -0.19752399623394012, 0.20555457472801208, 0.19297875463962555, 0.4179660379886627, -0.33779850602149963, -0.027965422719717026, -0.30264636874198914, -0.12346383929252625, -0.029308490455150604, 0.029067788273096085, -0.04846300184726715, 0.42646679282188416, 0.1823224574327469, 0.04330024868249893, -0.05165984854102135, 0.007917091250419617, -0.16429145634174347, 0.13556520640850067, -0.41331401467323303, 0.6912878155708313, -0.4423786997795105, 0.16080638766288757, -0.21833711862564087, 0.004003800451755524, -0.44915705919265747, -0.29266995191574097, 0.2012208104133606, 0.0026568633038550615, 0.014453256502747536, 0.20907062292099, 0.03795183077454567, -0.4627780616283417, 0.419327050447464, -0.21280770003795624, -0.010324537754058838, -0.25867170095443726, 0.1333789974451065, -0.12905704975128174, -0.10894409567117691, -0.1061662882566452, -0.20594409108161926, 0.45209792256355286, 0.22370699048042297, 0.15311110019683838, 0.18573251366615295, -0.04019598662853241, 0.24297188222408295, 0.06635230779647827, 0.5038547515869141, -0.22753702104091644, 0.03247252479195595, 0.07642333209514618, -0.03962763398885727, 0.08256804198026657, -0.35675251483917236, 0.24075576663017273, 0.07785741984844208, 0.03501810133457184, -0.1963866651058197, 0.10107451677322388, -0.131000354886055, 0.3892250955104828, 0.30373895168304443, 0.24704140424728394, 0.21968725323677063, 0.03149010241031647, -0.12440256029367447, -0.07036928832530975, 0.12160997092723846, -0.018586333841085434, 0.35905009508132935, -0.04290453717112541, 0.4617583751678467, -0.30726325511932373, 0.09900432825088501, -0.12200747430324554, 0.5585774779319763, 0.1097504049539566, 0.11816833913326263, -0.07052706927061081, 0.16812951862812042, -0.5176771879196167, 0.00047305942280218005, 0.028971441090106964, -0.02792680263519287, -0.036101728677749634, 0.41131752729415894, 0.059621214866638184, -0.30461058020591736, 0.6858304142951965, 0.014628772623836994, -0.502532422542572, -0.06647509336471558, 0.0834355503320694, -0.060189731419086456, -0.08710744231939316, -0.28835436701774597, -0.22993174195289612, 0.11683795601129532, 0.016677508130669594, 0.12555824220180511, 0.1766582578420639, -0.48921650648117065, -0.059948332607746124, 0.06200734153389931, 0.19349756836891174, -0.31260591745376587, -0.2701071500778198, -0.22001957893371582, -0.022396698594093323 ]
https://github.com/huggingface/datasets/issues/4191
feat: create an `Array3D` column from a list of arrays of dimension 2
Hi @albertvillanova , Indeed my message was confusing and you guessed right :smile: : I think would be interesting to be able to create an Array3D from a list of an array of dimension 2. For the 2D case I should have given as a "similar" example: ```python data_map_1D = { 1: np.array([0.2, 0.4]), 2: np.array([0.1, 0.4]), } def prepare_dataset_2D(batch): batch["pixel_values"] = [[data_map_1D[index]] for index in batch["id"]] return batch ds_2D = ds.map( prepare_dataset_2D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array2D(shape=(1, 2), dtype="float32")}) ) ```
**Is your feature request related to a problem? Please describe.** It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1. To illustrate my proposal, let's take the following toy dataset t: ```python import numpy as np from datasets import Dataset, features data_map = { 1: np.array([[0.2, 0,4],[0.19, 0,3]]), 2: np.array([[0.1, 0,4],[0.19, 0,3]]), } def create_toy_ds(): my_dict = {"id":[1, 2]} return Dataset.from_dict(my_dict) ds = create_toy_ds() ``` The following 2D processing works without any errors raised: ```python def prepare_dataset_2D(batch): batch["pixel_values"] = [data_map[index] for index in batch["id"]] return batch ds_2D = ds.map( prepare_dataset_2D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")}) ) ``` The following 3D processing doesn't work: ```python def prepare_dataset_3D(batch): batch["pixel_values"] = [[data_map[index]] for index in batch["id"]] return batch ds_3D = ds.map( prepare_dataset_3D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")}) ) ``` The error raised is: ``` --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) [<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>() 3 batched=True, 4 remove_columns=ds.column_names, ----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) 6 ) 12 frames [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1971 new_fingerprint=new_fingerprint, 1972 disable_tqdm=disable_tqdm, -> 1973 desc=desc, 1974 ) 1975 else: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 518 self: "Dataset" = kwargs.pop("self") 519 # apply actual function --> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 522 for dataset in datasets: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 485 } 486 # apply actual function --> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 489 # re-apply format to the output [/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 456 # Call actual function 457 --> 458 out = func(self, *args, **kwargs) 459 460 # Update fingerprint of in-place transforms + update in-place history of transforms [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2354 writer.write_table(batch) 2355 else: -> 2356 writer.write_batch(batch) 2357 if update_data and writer is not None: 2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size) 505 col_try_type = try_features[col] if try_features is not None and col in try_features else None 506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col) --> 507 arrays.append(pa.array(typed_sequence)) 508 inferred_features[col] = typed_sequence.get_inferred_type() 509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type) 175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type) 176 else: --> 177 storage = pa.array(data, pa_type.storage_dtype) 178 return pa.ExtensionArray.from_storage(pa_type, storage) 179 /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Can only convert 1-dimensional array values ``` **Describe the solution you'd like** No error in the second scenario and an identical result to the following snippets. **Describe alternatives you've considered** There are other alternatives that work such as: ```python def prepare_dataset_3D_bis(batch): batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]] return batch ds_3D_bis = ds.map( prepare_dataset_3D_bis, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` or ```python def prepare_dataset_3D_ter(batch): batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]] return batch ds_3D_ter = ds.map( prepare_dataset_3D_ter, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` But both solutions require the user to be aware that `data_map[index]` is an `np.array` type. cc @lhoestq as we discuss this offline :smile:
81
feat: create an `Array3D` column from a list of arrays of dimension 2 **Is your feature request related to a problem? Please describe.** It is possible to create an `Array2D` column from a list of arrays of dimension 1. Similarly, I think it might be nice to be able to create a `Array3D` column from a list of lists of arrays of dimension 1. To illustrate my proposal, let's take the following toy dataset t: ```python import numpy as np from datasets import Dataset, features data_map = { 1: np.array([[0.2, 0,4],[0.19, 0,3]]), 2: np.array([[0.1, 0,4],[0.19, 0,3]]), } def create_toy_ds(): my_dict = {"id":[1, 2]} return Dataset.from_dict(my_dict) ds = create_toy_ds() ``` The following 2D processing works without any errors raised: ```python def prepare_dataset_2D(batch): batch["pixel_values"] = [data_map[index] for index in batch["id"]] return batch ds_2D = ds.map( prepare_dataset_2D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array2D(shape=(2, 3), dtype="float32")}) ) ``` The following 3D processing doesn't work: ```python def prepare_dataset_3D(batch): batch["pixel_values"] = [[data_map[index]] for index in batch["id"]] return batch ds_3D = ds.map( prepare_dataset_3D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3, dtype="float32")}) ) ``` The error raised is: ``` --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) [<ipython-input-6-676547e4cd41>](https://localhost:8080/#) in <module>() 3 batched=True, 4 remove_columns=ds.column_names, ----> 5 features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) 6 ) 12 frames [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1971 new_fingerprint=new_fingerprint, 1972 disable_tqdm=disable_tqdm, -> 1973 desc=desc, 1974 ) 1975 else: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 518 self: "Dataset" = kwargs.pop("self") 519 # apply actual function --> 520 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 521 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 522 for dataset in datasets: [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 485 } 486 # apply actual function --> 487 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 488 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 489 # re-apply format to the output [/usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py](https://localhost:8080/#) in wrapper(*args, **kwargs) 456 # Call actual function 457 --> 458 out = func(self, *args, **kwargs) 459 460 # Update fingerprint of in-place transforms + update in-place history of transforms [/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2354 writer.write_table(batch) 2355 else: -> 2356 writer.write_batch(batch) 2357 if update_data and writer is not None: 2358 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in write_batch(self, batch_examples, writer_batch_size) 505 col_try_type = try_features[col] if try_features is not None and col in try_features else None 506 typed_sequence = OptimizedTypedSequence(batch_examples[col], type=col_type, try_type=col_try_type, col=col) --> 507 arrays.append(pa.array(typed_sequence)) 508 inferred_features[col] = typed_sequence.get_inferred_type() 509 schema = inferred_features.arrow_schema if self.pa_writer is None else self.schema /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() [/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py](https://localhost:8080/#) in __arrow_array__(self, type) 175 storage = list_of_np_array_to_pyarrow_listarray(data, type=pa_type.value_type) 176 else: --> 177 storage = pa.array(data, pa_type.storage_dtype) 178 return pa.ExtensionArray.from_storage(pa_type, storage) 179 /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Can only convert 1-dimensional array values ``` **Describe the solution you'd like** No error in the second scenario and an identical result to the following snippets. **Describe alternatives you've considered** There are other alternatives that work such as: ```python def prepare_dataset_3D_bis(batch): batch["pixel_values"] = [[data_map[index].tolist()] for index in batch["id"]] return batch ds_3D_bis = ds.map( prepare_dataset_3D_bis, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` or ```python def prepare_dataset_3D_ter(batch): batch["pixel_values"] = [data_map[index][np.newaxis, :, :] for index in batch["id"]] return batch ds_3D_ter = ds.map( prepare_dataset_3D_ter, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array3D(shape=(1, 2, 3), dtype="float32")}) ) ``` But both solutions require the user to be aware that `data_map[index]` is an `np.array` type. cc @lhoestq as we discuss this offline :smile: Hi @albertvillanova , Indeed my message was confusing and you guessed right :smile: : I think would be interesting to be able to create an Array3D from a list of an array of dimension 2. For the 2D case I should have given as a "similar" example: ```python data_map_1D = { 1: np.array([0.2, 0.4]), 2: np.array([0.1, 0.4]), } def prepare_dataset_2D(batch): batch["pixel_values"] = [[data_map_1D[index]] for index in batch["id"]] return batch ds_2D = ds.map( prepare_dataset_2D, batched=True, remove_columns=ds.column_names, features=features.Features({"pixel_values": features.Array2D(shape=(1, 2), dtype="float32")}) ) ```
[ 0.31241798400878906, -0.2744893431663513, -0.19434180855751038, 0.17922085523605347, 0.1064048781991005, 0.21910187602043152, 0.752160370349884, 0.3646603226661682, 0.34263017773628235, 0.07632166147232056, 0.20140965282917023, 0.05226641893386841, -0.2193998098373413, 0.5241885185241699, 0.13228094577789307, -0.5646160840988159, 0.2458343803882599, 0.2844042181968689, -0.12316013872623444, 0.14966851472854614, -0.22333697974681854, -0.12806840240955353, -0.0006180405616760254, -0.09295159578323364, 0.051931560039520264, 0.031099198386073112, -0.0843711867928505, -0.18528202176094055, 0.01739984191954136, -0.17653502523899078, 0.43817225098609924, -0.17322057485580444, 0.28982824087142944, 0.056163888424634933, -0.00011158135021105409, -0.12541523575782776, -0.024270817637443542, -0.06819987297058105, 0.30445146560668945, 0.05786564201116562, 0.21352684497833252, -0.7209262251853943, -0.0195668525993824, -0.4159524440765381, -0.05576729029417038, -0.2264050841331482, -0.38964924216270447, -0.34350278973579407, 0.10842303931713104, -0.038924943655729294, 0.15284684300422668, 0.21447902917861938, 0.3267787992954254, 0.022609973326325417, 0.15810370445251465, 0.4540351629257202, -0.47387218475341797, -0.3463344871997833, 0.16782739758491516, -0.1274491399526596, 0.8238984942436218, 0.16232232749462128, -0.45251384377479553, 0.17332042753696442, 0.38730087876319885, 0.08906951546669006, 0.3958965539932251, -0.42340439558029175, -0.22018685936927795, 0.47091543674468994, 0.3154153823852539, -0.30028843879699707, -0.2820757031440735, -0.14466816186904907, 0.025996249169111252, -0.15927068889141083, -0.227495938539505, 0.24495148658752441, -0.1849408894777298, -0.05369587615132332, -0.18572242558002472, 0.033429138362407684, -0.2233562469482422, 0.029785189777612686, 0.012824341654777527, -0.12021057307720184, 0.06513221561908722, 0.09164261817932129, -0.007788628339767456, -0.21076178550720215, 0.3491172194480896, -0.03453182801604271, 0.30678728222846985, 0.1271311342716217, -0.25412800908088684, -0.31995412707328796, 0.126625657081604, -0.5901063680648804, -0.20564362406730652, -0.3136787414550781, 0.1856268048286438, -0.1893850564956665, 0.10561638325452805, 0.06812793016433716, -0.06653328239917755, 0.34195366501808167, -0.09756531566381454, -0.16100680828094482, -0.2705240845680237, 0.1035633534193039, 0.27207785844802856, 0.09871652722358704, 0.0035994001664221287, 0.2550298571586609, 0.1200275868177414, 0.08993145078420639, 0.323387086391449, 0.2999127507209778, -0.10153281688690186, 0.0636482760310173, -0.4410652816295624, -0.009807543829083443, -0.13940739631652832, -0.013015054166316986, 0.15718497335910797, 0.39015981554985046, -0.05740642547607422, 0.26130685210227966, 0.10897354036569595, -0.11153016239404678, -0.012301730923354626, 0.10544978082180023, -0.0018100365996360779, -0.08418645709753036, 0.14179079234600067, 0.8486244082450867, -0.07724002748727798, -0.007790079340338707, 0.34730106592178345, 0.11543959379196167, 0.10347192734479904, -0.07554289698600769, 0.2509486973285675, 0.22467099130153656, 0.01721125841140747, -0.1028924360871315, 0.30729687213897705, 0.13338762521743774, -0.18982192873954773, 0.1736735850572586, 0.140951007604599, -0.08903498202562332, -0.37749147415161133, 0.09158843755722046, 0.0269952230155468, 0.1973099410533905, -0.18787899613380432, 0.21377654373645782, 0.2295258343219757, -0.07852812111377716, 0.08520388603210449, -0.22289304435253143, -0.009186901152133942, -0.5023840665817261, -0.0975414514541626, -0.08434486389160156, -0.44703996181488037, 0.21025624871253967, -0.11392682045698166, 0.09055972099304199, -0.024942629039287567, 0.17017582058906555, -0.0735693946480751, -0.17700105905532837, -0.07210177183151245, 0.19241739809513092, -0.02134586125612259, 0.08286604285240173, 0.0760689303278923, 0.20049700140953064, 0.0474744513630867, 0.31270527839660645, 0.3834455907344818, 0.2685551047325134, 0.119975246489048, -0.2980223298072815, -0.07300220429897308, 0.3768972158432007, -0.09826722741127014, 0.055093660950660706, 0.06913885474205017, -0.30634230375289917, 0.5648629069328308, -0.2242388278245926, 0.09219591319561005, 0.0760299414396286, -0.07091548293828964, -0.21353185176849365, 0.17463377118110657, -0.43578988313674927, 0.14011819660663605, -0.05969564616680145, 0.3034641444683075, -0.08347417414188385, -0.09477005898952484, -0.18199163675308228, -0.5741258263587952, 0.22463154792785645, -0.12170568853616714, -0.20913657546043396, 0.24871765077114105, -0.24575935304164886, -0.03155326843261719, -0.05588899552822113, 0.034978337585926056, 0.022592466324567795, 0.12673108279705048, -0.09941352903842926, 0.1903841346502304, -0.33667272329330444, -0.16258937120437622, -0.33660033345222473, 0.25999996066093445, -0.2182476967573166, -0.31936752796173096, 0.3769770562648773, 0.15034686028957367, -0.059387169778347015, -0.2687221169471741, 0.2968426048755646, 0.17530150711536407, -0.06582982838153839, 0.14184558391571045, -0.02908618003129959, 0.2907419800758362, -0.1493251770734787, -0.21632763743400574, 0.5118682980537415, 0.005106614902615547, 0.06692889332771301, 0.269976407289505, 0.07831862568855286, 0.18486279249191284, -0.1079728752374649, 0.114753857254982, 0.5115678310394287, -0.23156221210956573, 0.3922669589519501, -0.2081470489501953, 0.21916763484477997, -0.0449208989739418, 0.048504967242479324, -0.004132159054279327, -0.24400007724761963, -0.2206345647573471, -0.03248893842101097, -0.400483638048172, -0.1765010952949524, -0.22393611073493958, 0.5375982522964478, -0.00943375751376152, 0.0037023313343524933, 0.15429694950580597, -0.00229610875248909, 0.34661126136779785, 0.07066598534584045, -0.18283849954605103, 0.08494895696640015, 0.18201343715190887, 0.07712653279304504, -0.10336810350418091, 0.05805949121713638, -0.04999528452754021, 0.11150601506233215, 0.27514389157295227, 0.08934865146875381, 0.30476173758506775, -0.08217669278383255, 0.2061750888824463, -0.08130141347646713, 0.2577293813228607, -0.11697091162204742, 0.20587381720542908, 0.0026895087212324142, -0.10192886739969254, 0.03183933347463608, 0.040698230266571045, -0.21990594267845154, -0.07123678922653198, -0.5358257293701172, -0.2424120008945465, 0.14540693163871765, -0.28546905517578125, 0.10824507474899292, -0.10733018815517426, -0.2181987464427948, -0.053711049258708954, 0.0037850141525268555, 0.11725105345249176, 0.035572201013565063, 0.18982340395450592, 0.10496967285871506, 0.2224019169807434, 0.10427440702915192, -0.0991683378815651, 0.09468165785074234, 0.19944876432418823, 0.26488158106803894, -0.026082295924425125, -0.2296665757894516, -0.06018444895744324, -0.012665525078773499, -0.2320840209722519, 0.2373226284980774, 0.4512217044830322, 0.09151487797498703, -0.21039745211601257, -0.22797353565692902, 0.20540118217468262, 0.2228318303823471, -0.0765552893280983, -0.07204034924507141, 0.37434375286102295, -0.10098525136709213, -0.029946353286504745, -0.071129210293293, -0.05247412621974945, -0.23324206471443176, 0.16401730477809906, -0.252526193857193, 0.43927836418151855, -0.3091941475868225, 0.14647434651851654, 0.18888849020004272, 0.5131560564041138, -0.06767009943723679, -0.18503913283348083, 0.26678356528282166, -0.035252589732408524, -0.1525302678346634, 0.0143393874168396, -0.2574078142642975, -0.24348922073841095, -0.03622324392199516, 0.24834854900836945, -0.08499603718519211, -0.4739374816417694, -0.2590336501598358, -0.0007411278784275055, -0.12585826218128204, -0.07227662205696106, 0.47971078753471375, -0.025907522067427635, -0.05410678684711456, -0.05167846009135246, -0.3136700391769409, 0.12881481647491455, 0.44826260209083557, 0.16585136950016022, 0.15782806277275085, 0.5677198171615601, -0.033130306750535965, 0.3702329397201538, 0.118379145860672, 0.04230482503771782, 0.46479934453964233, 0.23755116760730743, 0.15127450227737427, -0.06681592017412186, -0.3670329749584198, 0.021574005484580994, -0.14736804366111755, -0.5025122761726379, -0.23354895412921906, -0.20040395855903625, -0.4074825346469879, -0.0325053408741951, 0.37398651242256165, -0.24439507722854614, 0.017981424927711487, -0.014622768387198448, -0.03087182343006134, 0.5235709547996521, -0.04575879126787186, 0.19080787897109985, -0.3085763156414032, 0.23549360036849976, -0.13144925236701965, -0.04015897214412689, 0.5050792098045349, -0.0536329485476017, -0.3370075225830078, -0.6042526960372925, -0.35161781311035156, 0.2652111351490021, 0.46750113368034363, 0.579695999622345, 0.013475771993398666, -0.26569613814353943, -0.09016568958759308, 0.06724695861339569, 1.0600336790084839, -0.21870513260364532, -0.15723367035388947, 0.5560860633850098, -0.33938971161842346, -0.1827951818704605, -0.3365848958492279, -0.031153082847595215, -0.28493532538414, 0.006164832040667534, 0.27957600355148315, -0.26321643590927124, 0.047671739012002945, 0.05088888108730316, 0.26903578639030457, -0.10878904908895493, -0.09715788066387177, -0.16961351037025452, -0.09295833110809326, 0.035368405282497406, -0.43204402923583984, 0.034232497215270996, 0.3350318372249603, 0.27828776836395264, 0.028206396847963333, -0.34003961086273193, -0.2894940674304962, 0.07574813067913055, -0.1041056364774704, 0.2674204111099243, 0.2972295880317688, 0.20273146033287048, -0.24704092741012573, 0.06296972185373306, -0.09516838937997818, -0.11592017114162445, 0.10849961638450623, 0.0975867211818695, -0.07187215238809586, -0.028874464333057404, 0.38548150658607483, 0.3710026443004608, 0.1266801804304123, 0.12281769514083862, -0.45760780572891235, 0.1194957047700882, -0.21246375143527985, -0.3716832399368286, 0.4616398811340332, -0.39287638664245605, -0.008624425157904625, -0.3551379144191742, 0.2630036473274231, 0.0015915054827928543, -0.0011137723922729492, 0.05579688027501106, 0.14040261507034302, -0.13042506575584412, 0.4157845973968506, 0.4143257737159729, 0.7595930695533752, -0.21283791959285736, 0.11238951981067657, 0.36833655834198, -0.09440979361534119, 0.26439470052719116, 0.28753823041915894, 0.22814686596393585, -0.2870109975337982, -0.33332395553588867, -0.2878739535808563, -0.053535524755716324, 0.26157093048095703, 0.012582659721374512, 0.02028697356581688, 0.032372355461120605, -0.10841889679431915, -0.050512444227933884, -0.053884103894233704, -0.44044774770736694, 0.31334322690963745, -0.19636793434619904, -0.32740098237991333, 0.023475337773561478, -0.08681553602218628, -0.3508993089199066, -0.041910700500011444, -0.2867661118507385, -0.050355568528175354, 0.005852814763784409, -0.3428899645805359, -0.029334962368011475, -0.0023933472111821175, 0.297288179397583, 0.1917489916086197, -0.3733295798301697, 0.020980708301067352, 0.05787792056798935, 0.16488784551620483, -0.12400345504283905, -0.07449716329574585, -0.2936059236526489, 0.4263134300708771, -0.12424759566783905, -0.2075144201517105, -0.514161229133606, 0.1546478569507599, -0.006661802530288696, -0.01547880470752716, 0.0790027529001236, 0.1081688180565834, -0.029956042766571045, -0.5156164169311523, 0.007488824427127838, 0.32376813888549805, -0.25540265440940857, -0.3743024170398712, 0.03399059548974037, -0.0246657095849514, -0.137162446975708, 0.09788340330123901, -0.060792192816734314, -0.32198667526245117, 0.27947741746902466, 0.08881215751171112, -0.025310251861810684, -0.02642679587006569, 0.10116864740848541, 0.3083020746707916, 0.025073841214179993, 0.035223428159952164, 0.2524091899394989, -0.03255794569849968, -0.21449249982833862, 0.25030192732810974, -0.03525528311729431, 0.19746103882789612, 0.34086719155311584, -0.018009843304753304, -0.26381224393844604, -0.04667002335190773, 0.07440757006406784, 0.061039429157972336, 0.3384777903556824, -0.16938316822052002, -0.24260543286800385, 0.1574263721704483, 0.10413596034049988, 0.18379230797290802, 0.10055771470069885, -0.2981010377407074, 0.023819832131266594, -0.31761595606803894, -0.01226341538131237, -0.2571694552898407, -0.0822417140007019, 0.06740915030241013, 0.11489049345254898, -0.22061467170715332, -0.05682268738746643, -0.19999955594539642, 0.008036728948354721, 0.13230019807815552, -0.05275391787290573, -0.1728145033121109, -0.17815172672271729, -0.15616628527641296, 0.1397588849067688, -0.15707457065582275, -0.1569671779870987, 0.16460540890693665, -0.14816920459270477, -0.499934583902359, -0.24631860852241516, 0.01847938820719719, 0.16350972652435303, -0.09562855958938599, -0.06974624842405319, -0.15406382083892822, 0.01548602432012558, -0.033669840544462204, -0.08751925826072693, -0.18215137720108032, 0.036749061197042465, 0.17915725708007812, 0.04285196214914322, -0.0303107351064682, 0.05079592764377594, -0.19820067286491394, -0.07462934404611588, -0.35741448402404785, -0.28482723236083984, 0.4346754550933838, -0.13798917829990387, -0.2774614691734314, 0.044032022356987, 0.6472415924072266, -0.12479756772518158, -0.20153234899044037, 0.01877996139228344, 0.04478105157613754, 0.2386491447687149, -0.2666419744491577, 0.007799643557518721, 0.1368418037891388, 0.16637930274009705, 0.017142001539468765, 0.6715102195739746, 0.24539494514465332, 0.309745192527771, -0.19540394842624664, -0.08696793764829636, 0.10403133183717728, 0.16630515456199646, 0.16475960612297058, 0.5389293432235718, 0.11740149557590485, -0.04062500223517418, -0.01928381435573101, -0.026646140962839127, 0.4101109504699707, 0.47319865226745605, 0.15641912817955017, 0.23910483717918396, 0.26606884598731995, 0.25457659363746643, 0.09572311490774155, 0.0017289146780967712, 0.17395558953285217, -0.04910247027873993, 0.1391342282295227, 0.1366778016090393, 0.01883683353662491, -0.19746863842010498, -0.3538186252117157, -0.1515221744775772, -0.5707226395606995, 0.19410325586795807, -0.08500494062900543, 0.06495212018489838, 0.3362503945827484, -0.18968480825424194, -0.09092532098293304, -0.18354088068008423, 0.12329398095607758, -0.1363344043493271, 0.11529126018285751, -0.06734956800937653, 0.14000381529331207, -0.013770479708909988, 0.23635035753250122, 0.1262311041355133, 0.2812206745147705, -0.14412225782871246, -0.16515830159187317, 0.38308513164520264, -0.17597869038581848, -0.19752399623394012, 0.20555457472801208, 0.19297875463962555, 0.4179660379886627, -0.33779850602149963, -0.027965422719717026, -0.30264636874198914, -0.12346383929252625, -0.029308490455150604, 0.029067788273096085, -0.04846300184726715, 0.42646679282188416, 0.1823224574327469, 0.04330024868249893, -0.05165984854102135, 0.007917091250419617, -0.16429145634174347, 0.13556520640850067, -0.41331401467323303, 0.6912878155708313, -0.4423786997795105, 0.16080638766288757, -0.21833711862564087, 0.004003800451755524, -0.44915705919265747, -0.29266995191574097, 0.2012208104133606, 0.0026568633038550615, 0.014453256502747536, 0.20907062292099, 0.03795183077454567, -0.4627780616283417, 0.419327050447464, -0.21280770003795624, -0.010324537754058838, -0.25867170095443726, 0.1333789974451065, -0.12905704975128174, -0.10894409567117691, -0.1061662882566452, -0.20594409108161926, 0.45209792256355286, 0.22370699048042297, 0.15311110019683838, 0.18573251366615295, -0.04019598662853241, 0.24297188222408295, 0.06635230779647827, 0.5038547515869141, -0.22753702104091644, 0.03247252479195595, 0.07642333209514618, -0.03962763398885727, 0.08256804198026657, -0.35675251483917236, 0.24075576663017273, 0.07785741984844208, 0.03501810133457184, -0.1963866651058197, 0.10107451677322388, -0.131000354886055, 0.3892250955104828, 0.30373895168304443, 0.24704140424728394, 0.21968725323677063, 0.03149010241031647, -0.12440256029367447, -0.07036928832530975, 0.12160997092723846, -0.018586333841085434, 0.35905009508132935, -0.04290453717112541, 0.4617583751678467, -0.30726325511932373, 0.09900432825088501, -0.12200747430324554, 0.5585774779319763, 0.1097504049539566, 0.11816833913326263, -0.07052706927061081, 0.16812951862812042, -0.5176771879196167, 0.00047305942280218005, 0.028971441090106964, -0.02792680263519287, -0.036101728677749634, 0.41131752729415894, 0.059621214866638184, -0.30461058020591736, 0.6858304142951965, 0.014628772623836994, -0.502532422542572, -0.06647509336471558, 0.0834355503320694, -0.060189731419086456, -0.08710744231939316, -0.28835436701774597, -0.22993174195289612, 0.11683795601129532, 0.016677508130669594, 0.12555824220180511, 0.1766582578420639, -0.48921650648117065, -0.059948332607746124, 0.06200734153389931, 0.19349756836891174, -0.31260591745376587, -0.2701071500778198, -0.22001957893371582, -0.022396698594093323 ]
https://github.com/huggingface/datasets/issues/4185
Librispeech documentation, clarification on format
The documentation in the code is definitely outdated - thanks for letting me know, I'll remove it in https://github.com/huggingface/datasets/pull/4184 . You're exactly right `audio` `array` already decodes the audio file to the correct waveform. This is done on the fly, which is also why one should **not** do `ds["audio"]["array"][0]` as this will decode all dataset samples, but instead `ds[0]["audio"]["array"]` see: https://huggingface.co/docs/datasets/audio_process#audio-datasets
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
61
Librispeech documentation, clarification on format https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? The documentation in the code is definitely outdated - thanks for letting me know, I'll remove it in https://github.com/huggingface/datasets/pull/4184 . You're exactly right `audio` `array` already decodes the audio file to the correct waveform. This is done on the fly, which is also why one should **not** do `ds["audio"]["array"][0]` as this will decode all dataset samples, but instead `ds[0]["audio"]["array"]` see: https://huggingface.co/docs/datasets/audio_process#audio-datasets
[ -0.15423402190208435, -0.3340960741043091, -0.17598019540309906, 0.27390116453170776, 0.216354638338089, -0.23989278078079224, 0.43557384610176086, 0.15729418396949768, 0.2130369395017624, 0.030080363154411316, -0.5569843649864197, 0.2139863520860672, -0.2302837073802948, 0.08595596253871918, 0.09614800661802292, 0.09318415820598602, 0.08188328891992569, 0.2941010594367981, -0.4400457441806793, -0.17477095127105713, -0.2997762858867645, 0.2271275371313095, -0.4004110097885132, 0.0567239448428154, 0.09517405182123184, 0.06360621750354767, -0.03979315236210823, 0.04877091944217682, -0.2569728195667267, -0.1601584255695343, 0.1267194300889969, -0.05288003012537956, 0.10145775228738785, 0.2192431539297104, -0.00011621086741797626, -0.2093726247549057, 0.023554787039756775, -0.306189626455307, -0.16999760270118713, 0.15756753087043762, -0.21975377202033997, 0.04943546652793884, -0.1951780617237091, -0.19337859749794006, -0.12719498574733734, -0.20382559299468994, -0.23402027785778046, -0.3971257507801056, 0.13547903299331665, 0.4306398034095764, 0.1723315715789795, -0.0784720778465271, 0.17887185513973236, 0.2868998944759369, 0.34842821955680847, 0.10903549194335938, -0.11583863198757172, 0.008898664265871048, 0.12011464685201645, -0.06075198948383331, -0.14165529608726501, 0.3081614375114441, -0.09410318732261658, 0.08860346674919128, 0.18806621432304382, 0.11955851316452026, 0.002360410988330841, -0.38542479276657104, 0.10120006650686264, 0.3287839889526367, 0.4399702847003937, -0.06328573822975159, -0.4344284236431122, 0.09785061329603195, -0.20798668265342712, -0.09637725353240967, -0.1600910723209381, 0.34048396348953247, -0.1445980966091156, 0.12907016277313232, -0.20534493029117584, -0.15064899623394012, 0.03415237367153168, 0.0832136869430542, -0.0816689059138298, 0.44104471802711487, -0.4077048897743225, 0.1251978874206543, 0.26395276188850403, -0.2442328780889511, -0.1180930957198143, -0.2946670949459076, 0.048262178897857666, 0.41363000869750977, -0.0440325029194355, -0.24477386474609375, -0.11609000712633133, -0.2239229381084442, 0.15515649318695068, -0.414398193359375, 0.35559290647506714, -0.027097728103399277, -0.3395845592021942, 0.1265244334936142, 0.25902506709098816, 0.317657470703125, 0.03989855945110321, -0.0687340721487999, -0.09125787019729614, 0.20941394567489624, 0.0860806256532669, 0.001509159803390503, 0.002561376430094242, 0.04426833987236023, -0.22460202872753143, 0.033589281141757965, 0.05267517268657684, -0.34813380241394043, -0.2648082971572876, 0.27238908410072327, -0.6330310106277466, -0.15256141126155853, 0.04338312894105911, 0.19580459594726562, -0.03342622518539429, 0.3636600077152252, 0.10864029824733734, 0.17356564104557037, -0.07098343968391418, 0.43390998244285583, -0.11397232860326767, 0.1506478190422058, -0.1507551074028015, -0.3666742742061615, -0.014649970456957817, -0.047706592828035355, 0.26348692178726196, 0.16097459197044373, -0.059836238622665405, -0.11641272902488708, -0.1345730423927307, -0.05484309792518616, 0.8213593363761902, 0.2543647885322571, -0.15980365872383118, 0.1559334248304367, -0.07336099445819855, -0.16762611269950867, -0.27788081765174866, 0.4688282012939453, -0.052548788487911224, -0.047239016741514206, -0.036932796239852905, 0.16368462145328522, -0.025380391627550125, 0.1466594934463501, -0.04070652276277542, 0.1523047536611557, 0.2607586681842804, -0.3075159788131714, 0.3103863298892975, -0.4980788826942444, -0.3085978031158447, -0.003116746200248599, 0.31740790605545044, -0.10671034455299377, -0.54547119140625, 0.12090940773487091, 0.21841174364089966, -0.12967847287654877, 0.31798845529556274, 0.06240592151880264, -0.1621999442577362, -0.08115973323583603, -0.40316540002822876, 0.44900453090667725, 0.2591964304447174, -0.06942535936832428, -0.34211477637290955, 0.1260676085948944, 0.12056642770767212, 0.10663237422704697, 0.03079131245613098, -0.0028176666237413883, 0.40490245819091797, -0.12223414331674576, 0.25393563508987427, 0.14555221796035767, 0.31423842906951904, 0.1199975237250328, -0.21669259667396545, -0.273460328578949, -0.025925010442733765, -0.23938466608524323, -0.4691472351551056, -0.08020520955324173, 0.1083945631980896, 0.32359883189201355, 0.642852783203125, -0.22582265734672546, 0.18428947031497955, -0.020405132323503494, 0.2308959811925888, -0.00516384094953537, -0.08414475619792938, 0.032547108829021454, 0.029961995780467987, -0.15658916532993317, 0.26814985275268555, -0.010463528335094452, 0.2493058145046234, -0.17132581770420074, 0.03451940789818764, -0.12560521066188812, -0.15961049497127533, -0.1805337518453598, 0.14187033474445343, 0.17325760424137115, -0.00292942114174366, -0.3430258631706238, -0.14833827316761017, -0.06483354419469833, 0.05671001225709915, -0.14276020228862762, -0.16995665431022644, -0.09630745649337769, -0.024795731529593468, -0.0001658732071518898, 0.1799587607383728, 0.47956642508506775, 0.00978909432888031, -0.07011573761701584, -0.08664460480213165, 0.33293330669403076, 0.32836034893989563, -0.1670716255903244, -0.32158082723617554, 0.2661705017089844, 0.10241344571113586, 0.0559852235019207, 0.3347049951553345, 0.08036614954471588, 0.1446886956691742, 0.008991822600364685, -0.10231857746839523, 0.28095442056655884, 0.26020893454551697, 0.41501396894454956, 0.30727559328079224, 0.03140842914581299, 0.14047470688819885, 0.27219492197036743, -0.366629958152771, -0.17491799592971802, -0.34395599365234375, -0.4124442934989929, 0.33290353417396545, 0.2261430323123932, -0.4646034240722656, 0.09177958220243454, 0.5448023676872253, -0.050761133432388306, -0.04506542533636093, 0.05910344421863556, -0.3216879069805145, -0.2651134729385376, 0.2766362726688385, -0.0029755160212516785, 0.2848723530769348, 0.11209582537412643, 0.2859368324279785, -0.3420165181159973, -0.011902579106390476, -0.014162354171276093, 0.1763191819190979, 0.06984619796276093, 0.0053146835416555405, 0.17441943287849426, 0.039344221353530884, -0.17210829257965088, -0.3514680862426758, -0.122256338596344, -0.20517492294311523, -0.021615127101540565, -0.19145305454730988, -0.3006506860256195, -0.030216723680496216, -0.20871055126190186, -0.3192378580570221, -0.14505936205387115, 0.041810549795627594, -0.11044776439666748, -0.10660366714000702, 0.12566986680030823, -0.2035188525915146, 0.22696475684642792, 0.07467664778232574, -0.09390436112880707, -0.020377056673169136, -0.020045174285769463, 0.12768851220607758, 0.27254220843315125, -0.2145109474658966, 0.10641521215438843, 0.026641864329576492, 0.13724011182785034, -0.026156796142458916, 0.2865576446056366, -0.11782005429267883, -0.4260062575340271, -0.13339877128601074, 0.26938024163246155, -0.17154358327388763, 0.08109944313764572, 0.2522566318511963, 0.28801071643829346, -0.20642656087875366, -0.34887930750846863, 0.125153586268425, -0.24001364409923553, -0.25628846883773804, -0.019097477197647095, 0.19520415365695953, 0.09607740491628647, -0.3290713429450989, -0.3493409752845764, -0.05713316798210144, -0.23513397574424744, 0.2053949236869812, -0.04732123389840126, 0.33216333389282227, 0.09872729331254959, 0.13971194624900818, 0.1539786159992218, 0.06177050992846489, -0.00876898318529129, -0.38648608326911926, 0.09092137217521667, 0.24727417528629303, -0.051362283527851105, -0.10971508920192719, -0.02545752003788948, -0.04186118021607399, 0.1501147747039795, 0.026117555797100067, -0.06704822182655334, -0.2500666677951813, -0.1688150316476822, -0.20106415450572968, -0.10225057601928711, 0.2995704710483551, 0.32388836145401, 0.063380166888237, -0.027595210820436478, -0.23454779386520386, -0.15504363179206848, 0.06949147582054138, 0.3716652989387512, 0.27205565571784973, 0.10905242711305618, 0.13031265139579773, -0.029738830402493477, 0.5409639477729797, 0.14397244155406952, -0.07837966084480286, -0.11476323008537292, -0.13287849724292755, 0.22752925753593445, -0.19555699825286865, 0.0009195394814014435, 0.26548948884010315, -0.047173455357551575, -0.24226979911327362, 0.28036221861839294, 0.1963619887828827, -0.3379116952419281, 0.12113681435585022, 0.5350009799003601, -0.3518291115760803, -0.13116542994976044, 0.20390065014362335, -0.10923688113689423, 0.056524135172367096, 0.012097842991352081, 0.13855281472206116, 0.3264894187450409, -0.1831558644771576, -0.14296558499336243, -0.06081885099411011, 0.3778916001319885, -0.12293599545955658, -0.30530545115470886, -0.20593960583209991, -0.8430304527282715, 0.3108459711074829, 0.12964782118797302, 0.5271250009536743, 0.09216387569904327, -0.33373546600341797, 0.03670016676187515, 0.019212186336517334, 0.21367979049682617, -0.18546895682811737, -0.05980346351861954, 0.12210129201412201, 0.5030914545059204, -0.23520900309085846, -0.10376109182834625, -0.501445472240448, 0.23131702840328217, 0.19407357275485992, 0.15404483675956726, -0.28513094782829285, -0.1498832404613495, 0.27907538414001465, 0.37389758229255676, 0.1395091414451599, 0.429482638835907, -0.22139422595500946, -0.49145346879959106, 0.009542705491185188, 0.042052362114191055, 0.18239907920360565, 0.1690860390663147, -0.09886309504508972, -0.10696688294410706, 0.3594481348991394, -0.1121460348367691, 0.29490530490875244, -0.1945742666721344, 0.5291569828987122, 0.41284850239753723, -0.0546378530561924, 0.09293907880783081, 0.028062306344509125, -0.06460870057344437, 0.20798757672309875, -0.3096732795238495, 0.5029841661453247, 0.41315513849258423, -0.23940090835094452, 0.5206177234649658, 0.3403359055519104, -0.1514889895915985, -0.20230352878570557, -0.048210181295871735, 0.10342657566070557, -0.14534546434879303, 0.1274656504392624, 0.4268476665019989, 0.07370032370090485, -0.17475642263889313, -0.8883275985717773, 0.20989692211151123, 0.0379478856921196, -0.14133623242378235, 0.19017912447452545, -0.06690812110900879, -0.3320239782333374, 0.4743841886520386, 0.014486931264400482, 1.0012598037719727, -0.1401289403438568, 0.4054601192474365, 0.08015041053295135, -0.0582280308008194, -0.0018806378357112408, -0.11656071990728378, 0.2925007939338684, -0.28549718856811523, 0.11049765348434448, -0.07296540588140488, -0.12191177904605865, 0.05727274343371391, 0.27223849296569824, -0.22168035805225372, 0.14263677597045898, 0.004735223948955536, 0.38019782304763794, -0.11137138307094574, 0.20316986739635468, -0.18880537152290344, -0.21074680984020233, -0.050162263214588165, 0.0712728500366211, 0.09593120217323303, -0.00331999734044075, 0.19088053703308105, -0.066282719373703, -0.2829696834087372, -0.27820754051208496, -0.21157097816467285, 0.0215349979698658, -0.42609748244285583, 0.012034435756504536, -0.27980130910873413, -0.4624323844909668, -0.24547675251960754, 0.5334237813949585, -0.4848814606666565, 0.3236006498336792, 0.21383728086948395, -0.13547272980213165, 0.5590692162513733, 0.5515835285186768, 0.31163737177848816, -0.01882125250995159, -0.11170870065689087, 0.1837446093559265, 0.03800850361585617, 0.16614320874214172, -0.08066418021917343, -0.19025786221027374, -0.06766914576292038, 0.1861061453819275, 0.2634868025779724, -0.6092756986618042, -0.4351523816585541, 0.26634612679481506, -0.3400941789150238, 0.08115600049495697, 0.08757619559764862, -0.039118267595767975, -0.45930635929107666, 0.3327951431274414, 0.07422610372304916, -0.2625935673713684, 0.022277291864156723, 0.3910152018070221, 0.1485087275505066, 0.06971278786659241, 0.402296245098114, -0.22549870610237122, -0.07252904027700424, -0.21759802103042603, 0.08317164331674576, -0.048674438148736954, -0.18681195378303528, -0.06802421063184738, -0.19082385301589966, -0.14738039672374725, -0.05970830097794533, 0.37094730138778687, -0.1025208979845047, 0.44806793332099915, -0.4269314408302307, -0.2532949447631836, -0.25500717759132385, 0.30108290910720825, 0.13779506087303162, 0.562933623790741, -0.28914013504981995, -0.08361022174358368, -0.07651180773973465, -0.39913880825042725, -0.2999732494354248, 0.0514090433716774, 0.06826603412628174, 0.30734455585479736, 0.13587316870689392, 0.22643864154815674, 0.01492321491241455, -0.1930386871099472, 0.1997731775045395, 0.16089868545532227, -0.1596696674823761, -0.16018226742744446, 0.04923762008547783, 0.12569262087345123, 0.09744137525558472, -0.43787598609924316, -0.21015489101409912, -0.09736832231283188, -0.3540395498275757, -0.33801987767219543, -0.020458297803997993, 0.2995050251483917, -0.00490068644285202, -0.0517643578350544, -0.03973550722002983, -0.0697474256157875, 0.24594222009181976, 0.005468778312206268, -0.01984715461730957, 0.21797612309455872, 0.19649866223335266, 0.21837931871414185, 0.12183965742588043, -0.027543146163225174, 0.5331257581710815, 0.263575941324234, -0.326718807220459, 0.20478835701942444, 0.18162254989147186, 0.059319037944078445, 0.038977671414613724, 0.2862647473812103, 0.8134655952453613, 0.37831225991249084, -0.16854876279830933, -0.27335500717163086, -0.01933731697499752, 0.24321700632572174, -0.08906358480453491, -0.05645887181162834, 0.2598472237586975, -0.06120089441537857, 0.11702089011669159, 0.34301403164863586, 0.12264274060726166, 0.11331488192081451, 0.2428925335407257, -0.08603519201278687, -0.02164836972951889, 0.05470018833875656, 0.19513706862926483, 0.6959061622619629, -0.1750025600194931, 0.15927445888519287, 0.15463149547576904, -0.3309009075164795, 0.13732390105724335, 0.447079598903656, 0.04747919738292694, 0.04843318462371826, 0.5154216289520264, 0.22850246727466583, 0.15985000133514404, -0.23488293588161469, 0.13294973969459534, 0.204476997256279, -0.022449836134910583, 0.41483214497566223, 0.12107889354228973, 0.4587303102016449, -0.6043596267700195, -0.10946831852197647, 0.07906250655651093, 0.0009079650044441223, -0.396751344203949, -0.1118185967206955, 0.2753412127494812, -0.26732808351516724, 0.05161896347999573, 0.017463766038417816, -0.21364542841911316, 0.017002489417791367, 0.2557520866394043, -0.24419774115085602, 0.08965057134628296, 0.18769674003124237, -0.2054343819618225, 0.0021420903503894806, 0.0930924341082573, -0.08997122198343277, 0.2701725959777832, 0.16525156795978546, 0.25258344411849976, 0.1785665601491928, 0.32924818992614746, 0.13059933483600616, 0.2140732705593109, -0.010633828118443489, 0.05815138667821884, -0.05241008475422859, -0.1389569491147995, -0.1043991893529892, 0.13865776360034943, 0.44896310567855835, -0.13330896198749542, 0.24931858479976654, 0.1345663219690323, -0.061720047146081924, 0.2072567194700241, 0.17117390036582947, 0.27955156564712524, -0.05482369661331177, -0.01932748407125473, -0.0677701085805893, -0.29084494709968567, -0.04706156998872757, -0.26521655917167664, -0.33714351058006287, -0.1657002866268158, 0.20480245351791382, -0.10282059013843536, 0.3487429916858673, 0.06532210856676102, 0.052501074969768524, -0.06849288940429688, 0.14189675450325012, 0.18939878046512604, -0.13493958115577698, -0.12328914552927017, -0.23107653856277466, -0.6346388459205627, -0.3504959046840668, 0.0057029277086257935, -0.07240481674671173, -0.33185872435569763, 0.3261372745037079, 0.21200338006019592, 0.2738454043865204, 0.20575189590454102, -0.31428995728492737, -0.07834624499082565, 0.09525895118713379, 0.08809554576873779, -0.1488064080476761, 0.060900215059518814, 0.3614415228366852, -0.131264328956604, -0.6409599781036377, 0.07471141219139099, 0.06369763612747192, 0.05874636024236679, -0.12933829426765442, -0.01270965114235878, -0.1543392837047577, -0.046384647488594055, 0.13690006732940674, 0.15844537317752838, 0.30144983530044556, -0.35222744941711426, -0.10468437522649765, 0.03054121509194374, -0.03423938900232315, -0.0911092758178711, 0.022161096334457397, -0.3623102903366089, 0.7060493230819702, 0.029005659744143486, 0.07208199799060822, -0.2977442145347595, 0.06030428782105446, 0.13117992877960205, -0.027517465874552727, -0.35079464316368103, 0.056763842701911926, -0.2715272605419159, -0.3359445333480835, 0.08602577447891235, 0.38041946291923523, -0.016881637275218964, -0.13317154347896576, -0.28234124183654785, -0.2604233920574188, 0.3593377470970154, -0.10256034135818481, -0.20231643319129944, -0.0687238872051239, 0.19359320402145386, -0.030533358454704285, 0.09379471093416214, -0.6026322841644287, -0.11227091401815414, 0.34061744809150696, -0.0750618427991867, -0.09554803371429443, 0.04843650758266449, -0.27594995498657227, 0.004674296826124191, -0.23899012804031372, 0.3581075668334961, 0.2401626706123352, -0.36395275592803955, -0.14802710711956024, -0.5026927590370178 ]
https://github.com/huggingface/datasets/issues/4185
Librispeech documentation, clarification on format
So, again to clarify: On disk, only the raw flac file content is stored? Is this also the case after `save_to_disk`? And is it simple to also store it re-encoded as ogg or mp3 instead?
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
35
Librispeech documentation, clarification on format https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? So, again to clarify: On disk, only the raw flac file content is stored? Is this also the case after `save_to_disk`? And is it simple to also store it re-encoded as ogg or mp3 instead?
[ -0.15423402190208435, -0.3340960741043091, -0.17598019540309906, 0.27390116453170776, 0.216354638338089, -0.23989278078079224, 0.43557384610176086, 0.15729418396949768, 0.2130369395017624, 0.030080363154411316, -0.5569843649864197, 0.2139863520860672, -0.2302837073802948, 0.08595596253871918, 0.09614800661802292, 0.09318415820598602, 0.08188328891992569, 0.2941010594367981, -0.4400457441806793, -0.17477095127105713, -0.2997762858867645, 0.2271275371313095, -0.4004110097885132, 0.0567239448428154, 0.09517405182123184, 0.06360621750354767, -0.03979315236210823, 0.04877091944217682, -0.2569728195667267, -0.1601584255695343, 0.1267194300889969, -0.05288003012537956, 0.10145775228738785, 0.2192431539297104, -0.00011621086741797626, -0.2093726247549057, 0.023554787039756775, -0.306189626455307, -0.16999760270118713, 0.15756753087043762, -0.21975377202033997, 0.04943546652793884, -0.1951780617237091, -0.19337859749794006, -0.12719498574733734, -0.20382559299468994, -0.23402027785778046, -0.3971257507801056, 0.13547903299331665, 0.4306398034095764, 0.1723315715789795, -0.0784720778465271, 0.17887185513973236, 0.2868998944759369, 0.34842821955680847, 0.10903549194335938, -0.11583863198757172, 0.008898664265871048, 0.12011464685201645, -0.06075198948383331, -0.14165529608726501, 0.3081614375114441, -0.09410318732261658, 0.08860346674919128, 0.18806621432304382, 0.11955851316452026, 0.002360410988330841, -0.38542479276657104, 0.10120006650686264, 0.3287839889526367, 0.4399702847003937, -0.06328573822975159, -0.4344284236431122, 0.09785061329603195, -0.20798668265342712, -0.09637725353240967, -0.1600910723209381, 0.34048396348953247, -0.1445980966091156, 0.12907016277313232, -0.20534493029117584, -0.15064899623394012, 0.03415237367153168, 0.0832136869430542, -0.0816689059138298, 0.44104471802711487, -0.4077048897743225, 0.1251978874206543, 0.26395276188850403, -0.2442328780889511, -0.1180930957198143, -0.2946670949459076, 0.048262178897857666, 0.41363000869750977, -0.0440325029194355, -0.24477386474609375, -0.11609000712633133, -0.2239229381084442, 0.15515649318695068, -0.414398193359375, 0.35559290647506714, -0.027097728103399277, -0.3395845592021942, 0.1265244334936142, 0.25902506709098816, 0.317657470703125, 0.03989855945110321, -0.0687340721487999, -0.09125787019729614, 0.20941394567489624, 0.0860806256532669, 0.001509159803390503, 0.002561376430094242, 0.04426833987236023, -0.22460202872753143, 0.033589281141757965, 0.05267517268657684, -0.34813380241394043, -0.2648082971572876, 0.27238908410072327, -0.6330310106277466, -0.15256141126155853, 0.04338312894105911, 0.19580459594726562, -0.03342622518539429, 0.3636600077152252, 0.10864029824733734, 0.17356564104557037, -0.07098343968391418, 0.43390998244285583, -0.11397232860326767, 0.1506478190422058, -0.1507551074028015, -0.3666742742061615, -0.014649970456957817, -0.047706592828035355, 0.26348692178726196, 0.16097459197044373, -0.059836238622665405, -0.11641272902488708, -0.1345730423927307, -0.05484309792518616, 0.8213593363761902, 0.2543647885322571, -0.15980365872383118, 0.1559334248304367, -0.07336099445819855, -0.16762611269950867, -0.27788081765174866, 0.4688282012939453, -0.052548788487911224, -0.047239016741514206, -0.036932796239852905, 0.16368462145328522, -0.025380391627550125, 0.1466594934463501, -0.04070652276277542, 0.1523047536611557, 0.2607586681842804, -0.3075159788131714, 0.3103863298892975, -0.4980788826942444, -0.3085978031158447, -0.003116746200248599, 0.31740790605545044, -0.10671034455299377, -0.54547119140625, 0.12090940773487091, 0.21841174364089966, -0.12967847287654877, 0.31798845529556274, 0.06240592151880264, -0.1621999442577362, -0.08115973323583603, -0.40316540002822876, 0.44900453090667725, 0.2591964304447174, -0.06942535936832428, -0.34211477637290955, 0.1260676085948944, 0.12056642770767212, 0.10663237422704697, 0.03079131245613098, -0.0028176666237413883, 0.40490245819091797, -0.12223414331674576, 0.25393563508987427, 0.14555221796035767, 0.31423842906951904, 0.1199975237250328, -0.21669259667396545, -0.273460328578949, -0.025925010442733765, -0.23938466608524323, -0.4691472351551056, -0.08020520955324173, 0.1083945631980896, 0.32359883189201355, 0.642852783203125, -0.22582265734672546, 0.18428947031497955, -0.020405132323503494, 0.2308959811925888, -0.00516384094953537, -0.08414475619792938, 0.032547108829021454, 0.029961995780467987, -0.15658916532993317, 0.26814985275268555, -0.010463528335094452, 0.2493058145046234, -0.17132581770420074, 0.03451940789818764, -0.12560521066188812, -0.15961049497127533, -0.1805337518453598, 0.14187033474445343, 0.17325760424137115, -0.00292942114174366, -0.3430258631706238, -0.14833827316761017, -0.06483354419469833, 0.05671001225709915, -0.14276020228862762, -0.16995665431022644, -0.09630745649337769, -0.024795731529593468, -0.0001658732071518898, 0.1799587607383728, 0.47956642508506775, 0.00978909432888031, -0.07011573761701584, -0.08664460480213165, 0.33293330669403076, 0.32836034893989563, -0.1670716255903244, -0.32158082723617554, 0.2661705017089844, 0.10241344571113586, 0.0559852235019207, 0.3347049951553345, 0.08036614954471588, 0.1446886956691742, 0.008991822600364685, -0.10231857746839523, 0.28095442056655884, 0.26020893454551697, 0.41501396894454956, 0.30727559328079224, 0.03140842914581299, 0.14047470688819885, 0.27219492197036743, -0.366629958152771, -0.17491799592971802, -0.34395599365234375, -0.4124442934989929, 0.33290353417396545, 0.2261430323123932, -0.4646034240722656, 0.09177958220243454, 0.5448023676872253, -0.050761133432388306, -0.04506542533636093, 0.05910344421863556, -0.3216879069805145, -0.2651134729385376, 0.2766362726688385, -0.0029755160212516785, 0.2848723530769348, 0.11209582537412643, 0.2859368324279785, -0.3420165181159973, -0.011902579106390476, -0.014162354171276093, 0.1763191819190979, 0.06984619796276093, 0.0053146835416555405, 0.17441943287849426, 0.039344221353530884, -0.17210829257965088, -0.3514680862426758, -0.122256338596344, -0.20517492294311523, -0.021615127101540565, -0.19145305454730988, -0.3006506860256195, -0.030216723680496216, -0.20871055126190186, -0.3192378580570221, -0.14505936205387115, 0.041810549795627594, -0.11044776439666748, -0.10660366714000702, 0.12566986680030823, -0.2035188525915146, 0.22696475684642792, 0.07467664778232574, -0.09390436112880707, -0.020377056673169136, -0.020045174285769463, 0.12768851220607758, 0.27254220843315125, -0.2145109474658966, 0.10641521215438843, 0.026641864329576492, 0.13724011182785034, -0.026156796142458916, 0.2865576446056366, -0.11782005429267883, -0.4260062575340271, -0.13339877128601074, 0.26938024163246155, -0.17154358327388763, 0.08109944313764572, 0.2522566318511963, 0.28801071643829346, -0.20642656087875366, -0.34887930750846863, 0.125153586268425, -0.24001364409923553, -0.25628846883773804, -0.019097477197647095, 0.19520415365695953, 0.09607740491628647, -0.3290713429450989, -0.3493409752845764, -0.05713316798210144, -0.23513397574424744, 0.2053949236869812, -0.04732123389840126, 0.33216333389282227, 0.09872729331254959, 0.13971194624900818, 0.1539786159992218, 0.06177050992846489, -0.00876898318529129, -0.38648608326911926, 0.09092137217521667, 0.24727417528629303, -0.051362283527851105, -0.10971508920192719, -0.02545752003788948, -0.04186118021607399, 0.1501147747039795, 0.026117555797100067, -0.06704822182655334, -0.2500666677951813, -0.1688150316476822, -0.20106415450572968, -0.10225057601928711, 0.2995704710483551, 0.32388836145401, 0.063380166888237, -0.027595210820436478, -0.23454779386520386, -0.15504363179206848, 0.06949147582054138, 0.3716652989387512, 0.27205565571784973, 0.10905242711305618, 0.13031265139579773, -0.029738830402493477, 0.5409639477729797, 0.14397244155406952, -0.07837966084480286, -0.11476323008537292, -0.13287849724292755, 0.22752925753593445, -0.19555699825286865, 0.0009195394814014435, 0.26548948884010315, -0.047173455357551575, -0.24226979911327362, 0.28036221861839294, 0.1963619887828827, -0.3379116952419281, 0.12113681435585022, 0.5350009799003601, -0.3518291115760803, -0.13116542994976044, 0.20390065014362335, -0.10923688113689423, 0.056524135172367096, 0.012097842991352081, 0.13855281472206116, 0.3264894187450409, -0.1831558644771576, -0.14296558499336243, -0.06081885099411011, 0.3778916001319885, -0.12293599545955658, -0.30530545115470886, -0.20593960583209991, -0.8430304527282715, 0.3108459711074829, 0.12964782118797302, 0.5271250009536743, 0.09216387569904327, -0.33373546600341797, 0.03670016676187515, 0.019212186336517334, 0.21367979049682617, -0.18546895682811737, -0.05980346351861954, 0.12210129201412201, 0.5030914545059204, -0.23520900309085846, -0.10376109182834625, -0.501445472240448, 0.23131702840328217, 0.19407357275485992, 0.15404483675956726, -0.28513094782829285, -0.1498832404613495, 0.27907538414001465, 0.37389758229255676, 0.1395091414451599, 0.429482638835907, -0.22139422595500946, -0.49145346879959106, 0.009542705491185188, 0.042052362114191055, 0.18239907920360565, 0.1690860390663147, -0.09886309504508972, -0.10696688294410706, 0.3594481348991394, -0.1121460348367691, 0.29490530490875244, -0.1945742666721344, 0.5291569828987122, 0.41284850239753723, -0.0546378530561924, 0.09293907880783081, 0.028062306344509125, -0.06460870057344437, 0.20798757672309875, -0.3096732795238495, 0.5029841661453247, 0.41315513849258423, -0.23940090835094452, 0.5206177234649658, 0.3403359055519104, -0.1514889895915985, -0.20230352878570557, -0.048210181295871735, 0.10342657566070557, -0.14534546434879303, 0.1274656504392624, 0.4268476665019989, 0.07370032370090485, -0.17475642263889313, -0.8883275985717773, 0.20989692211151123, 0.0379478856921196, -0.14133623242378235, 0.19017912447452545, -0.06690812110900879, -0.3320239782333374, 0.4743841886520386, 0.014486931264400482, 1.0012598037719727, -0.1401289403438568, 0.4054601192474365, 0.08015041053295135, -0.0582280308008194, -0.0018806378357112408, -0.11656071990728378, 0.2925007939338684, -0.28549718856811523, 0.11049765348434448, -0.07296540588140488, -0.12191177904605865, 0.05727274343371391, 0.27223849296569824, -0.22168035805225372, 0.14263677597045898, 0.004735223948955536, 0.38019782304763794, -0.11137138307094574, 0.20316986739635468, -0.18880537152290344, -0.21074680984020233, -0.050162263214588165, 0.0712728500366211, 0.09593120217323303, -0.00331999734044075, 0.19088053703308105, -0.066282719373703, -0.2829696834087372, -0.27820754051208496, -0.21157097816467285, 0.0215349979698658, -0.42609748244285583, 0.012034435756504536, -0.27980130910873413, -0.4624323844909668, -0.24547675251960754, 0.5334237813949585, -0.4848814606666565, 0.3236006498336792, 0.21383728086948395, -0.13547272980213165, 0.5590692162513733, 0.5515835285186768, 0.31163737177848816, -0.01882125250995159, -0.11170870065689087, 0.1837446093559265, 0.03800850361585617, 0.16614320874214172, -0.08066418021917343, -0.19025786221027374, -0.06766914576292038, 0.1861061453819275, 0.2634868025779724, -0.6092756986618042, -0.4351523816585541, 0.26634612679481506, -0.3400941789150238, 0.08115600049495697, 0.08757619559764862, -0.039118267595767975, -0.45930635929107666, 0.3327951431274414, 0.07422610372304916, -0.2625935673713684, 0.022277291864156723, 0.3910152018070221, 0.1485087275505066, 0.06971278786659241, 0.402296245098114, -0.22549870610237122, -0.07252904027700424, -0.21759802103042603, 0.08317164331674576, -0.048674438148736954, -0.18681195378303528, -0.06802421063184738, -0.19082385301589966, -0.14738039672374725, -0.05970830097794533, 0.37094730138778687, -0.1025208979845047, 0.44806793332099915, -0.4269314408302307, -0.2532949447631836, -0.25500717759132385, 0.30108290910720825, 0.13779506087303162, 0.562933623790741, -0.28914013504981995, -0.08361022174358368, -0.07651180773973465, -0.39913880825042725, -0.2999732494354248, 0.0514090433716774, 0.06826603412628174, 0.30734455585479736, 0.13587316870689392, 0.22643864154815674, 0.01492321491241455, -0.1930386871099472, 0.1997731775045395, 0.16089868545532227, -0.1596696674823761, -0.16018226742744446, 0.04923762008547783, 0.12569262087345123, 0.09744137525558472, -0.43787598609924316, -0.21015489101409912, -0.09736832231283188, -0.3540395498275757, -0.33801987767219543, -0.020458297803997993, 0.2995050251483917, -0.00490068644285202, -0.0517643578350544, -0.03973550722002983, -0.0697474256157875, 0.24594222009181976, 0.005468778312206268, -0.01984715461730957, 0.21797612309455872, 0.19649866223335266, 0.21837931871414185, 0.12183965742588043, -0.027543146163225174, 0.5331257581710815, 0.263575941324234, -0.326718807220459, 0.20478835701942444, 0.18162254989147186, 0.059319037944078445, 0.038977671414613724, 0.2862647473812103, 0.8134655952453613, 0.37831225991249084, -0.16854876279830933, -0.27335500717163086, -0.01933731697499752, 0.24321700632572174, -0.08906358480453491, -0.05645887181162834, 0.2598472237586975, -0.06120089441537857, 0.11702089011669159, 0.34301403164863586, 0.12264274060726166, 0.11331488192081451, 0.2428925335407257, -0.08603519201278687, -0.02164836972951889, 0.05470018833875656, 0.19513706862926483, 0.6959061622619629, -0.1750025600194931, 0.15927445888519287, 0.15463149547576904, -0.3309009075164795, 0.13732390105724335, 0.447079598903656, 0.04747919738292694, 0.04843318462371826, 0.5154216289520264, 0.22850246727466583, 0.15985000133514404, -0.23488293588161469, 0.13294973969459534, 0.204476997256279, -0.022449836134910583, 0.41483214497566223, 0.12107889354228973, 0.4587303102016449, -0.6043596267700195, -0.10946831852197647, 0.07906250655651093, 0.0009079650044441223, -0.396751344203949, -0.1118185967206955, 0.2753412127494812, -0.26732808351516724, 0.05161896347999573, 0.017463766038417816, -0.21364542841911316, 0.017002489417791367, 0.2557520866394043, -0.24419774115085602, 0.08965057134628296, 0.18769674003124237, -0.2054343819618225, 0.0021420903503894806, 0.0930924341082573, -0.08997122198343277, 0.2701725959777832, 0.16525156795978546, 0.25258344411849976, 0.1785665601491928, 0.32924818992614746, 0.13059933483600616, 0.2140732705593109, -0.010633828118443489, 0.05815138667821884, -0.05241008475422859, -0.1389569491147995, -0.1043991893529892, 0.13865776360034943, 0.44896310567855835, -0.13330896198749542, 0.24931858479976654, 0.1345663219690323, -0.061720047146081924, 0.2072567194700241, 0.17117390036582947, 0.27955156564712524, -0.05482369661331177, -0.01932748407125473, -0.0677701085805893, -0.29084494709968567, -0.04706156998872757, -0.26521655917167664, -0.33714351058006287, -0.1657002866268158, 0.20480245351791382, -0.10282059013843536, 0.3487429916858673, 0.06532210856676102, 0.052501074969768524, -0.06849288940429688, 0.14189675450325012, 0.18939878046512604, -0.13493958115577698, -0.12328914552927017, -0.23107653856277466, -0.6346388459205627, -0.3504959046840668, 0.0057029277086257935, -0.07240481674671173, -0.33185872435569763, 0.3261372745037079, 0.21200338006019592, 0.2738454043865204, 0.20575189590454102, -0.31428995728492737, -0.07834624499082565, 0.09525895118713379, 0.08809554576873779, -0.1488064080476761, 0.060900215059518814, 0.3614415228366852, -0.131264328956604, -0.6409599781036377, 0.07471141219139099, 0.06369763612747192, 0.05874636024236679, -0.12933829426765442, -0.01270965114235878, -0.1543392837047577, -0.046384647488594055, 0.13690006732940674, 0.15844537317752838, 0.30144983530044556, -0.35222744941711426, -0.10468437522649765, 0.03054121509194374, -0.03423938900232315, -0.0911092758178711, 0.022161096334457397, -0.3623102903366089, 0.7060493230819702, 0.029005659744143486, 0.07208199799060822, -0.2977442145347595, 0.06030428782105446, 0.13117992877960205, -0.027517465874552727, -0.35079464316368103, 0.056763842701911926, -0.2715272605419159, -0.3359445333480835, 0.08602577447891235, 0.38041946291923523, -0.016881637275218964, -0.13317154347896576, -0.28234124183654785, -0.2604233920574188, 0.3593377470970154, -0.10256034135818481, -0.20231643319129944, -0.0687238872051239, 0.19359320402145386, -0.030533358454704285, 0.09379471093416214, -0.6026322841644287, -0.11227091401815414, 0.34061744809150696, -0.0750618427991867, -0.09554803371429443, 0.04843650758266449, -0.27594995498657227, 0.004674296826124191, -0.23899012804031372, 0.3581075668334961, 0.2401626706123352, -0.36395275592803955, -0.14802710711956024, -0.5026927590370178 ]
https://github.com/huggingface/datasets/issues/4185
Librispeech documentation, clarification on format
Hey, Sorry yeah I was just about to look into this! We actually had an outdated version of Librispeech ASR that didn't save any files, but instead converted the audio files to a byte string, then was then decoded on-the-fly. This however is not very user-friendly so we recently decided to instead show the full path of the audio files with the `path` parameter. I'm currently changing this for Librispeech here: https://github.com/huggingface/datasets/pull/4184 . You should be able to see the audio file in the original `flac` format under `path` then. I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ?
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
119
Librispeech documentation, clarification on format https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? Hey, Sorry yeah I was just about to look into this! We actually had an outdated version of Librispeech ASR that didn't save any files, but instead converted the audio files to a byte string, then was then decoded on-the-fly. This however is not very user-friendly so we recently decided to instead show the full path of the audio files with the `path` parameter. I'm currently changing this for Librispeech here: https://github.com/huggingface/datasets/pull/4184 . You should be able to see the audio file in the original `flac` format under `path` then. I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ?
[ -0.15423402190208435, -0.3340960741043091, -0.17598019540309906, 0.27390116453170776, 0.216354638338089, -0.23989278078079224, 0.43557384610176086, 0.15729418396949768, 0.2130369395017624, 0.030080363154411316, -0.5569843649864197, 0.2139863520860672, -0.2302837073802948, 0.08595596253871918, 0.09614800661802292, 0.09318415820598602, 0.08188328891992569, 0.2941010594367981, -0.4400457441806793, -0.17477095127105713, -0.2997762858867645, 0.2271275371313095, -0.4004110097885132, 0.0567239448428154, 0.09517405182123184, 0.06360621750354767, -0.03979315236210823, 0.04877091944217682, -0.2569728195667267, -0.1601584255695343, 0.1267194300889969, -0.05288003012537956, 0.10145775228738785, 0.2192431539297104, -0.00011621086741797626, -0.2093726247549057, 0.023554787039756775, -0.306189626455307, -0.16999760270118713, 0.15756753087043762, -0.21975377202033997, 0.04943546652793884, -0.1951780617237091, -0.19337859749794006, -0.12719498574733734, -0.20382559299468994, -0.23402027785778046, -0.3971257507801056, 0.13547903299331665, 0.4306398034095764, 0.1723315715789795, -0.0784720778465271, 0.17887185513973236, 0.2868998944759369, 0.34842821955680847, 0.10903549194335938, -0.11583863198757172, 0.008898664265871048, 0.12011464685201645, -0.06075198948383331, -0.14165529608726501, 0.3081614375114441, -0.09410318732261658, 0.08860346674919128, 0.18806621432304382, 0.11955851316452026, 0.002360410988330841, -0.38542479276657104, 0.10120006650686264, 0.3287839889526367, 0.4399702847003937, -0.06328573822975159, -0.4344284236431122, 0.09785061329603195, -0.20798668265342712, -0.09637725353240967, -0.1600910723209381, 0.34048396348953247, -0.1445980966091156, 0.12907016277313232, -0.20534493029117584, -0.15064899623394012, 0.03415237367153168, 0.0832136869430542, -0.0816689059138298, 0.44104471802711487, -0.4077048897743225, 0.1251978874206543, 0.26395276188850403, -0.2442328780889511, -0.1180930957198143, -0.2946670949459076, 0.048262178897857666, 0.41363000869750977, -0.0440325029194355, -0.24477386474609375, -0.11609000712633133, -0.2239229381084442, 0.15515649318695068, -0.414398193359375, 0.35559290647506714, -0.027097728103399277, -0.3395845592021942, 0.1265244334936142, 0.25902506709098816, 0.317657470703125, 0.03989855945110321, -0.0687340721487999, -0.09125787019729614, 0.20941394567489624, 0.0860806256532669, 0.001509159803390503, 0.002561376430094242, 0.04426833987236023, -0.22460202872753143, 0.033589281141757965, 0.05267517268657684, -0.34813380241394043, -0.2648082971572876, 0.27238908410072327, -0.6330310106277466, -0.15256141126155853, 0.04338312894105911, 0.19580459594726562, -0.03342622518539429, 0.3636600077152252, 0.10864029824733734, 0.17356564104557037, -0.07098343968391418, 0.43390998244285583, -0.11397232860326767, 0.1506478190422058, -0.1507551074028015, -0.3666742742061615, -0.014649970456957817, -0.047706592828035355, 0.26348692178726196, 0.16097459197044373, -0.059836238622665405, -0.11641272902488708, -0.1345730423927307, -0.05484309792518616, 0.8213593363761902, 0.2543647885322571, -0.15980365872383118, 0.1559334248304367, -0.07336099445819855, -0.16762611269950867, -0.27788081765174866, 0.4688282012939453, -0.052548788487911224, -0.047239016741514206, -0.036932796239852905, 0.16368462145328522, -0.025380391627550125, 0.1466594934463501, -0.04070652276277542, 0.1523047536611557, 0.2607586681842804, -0.3075159788131714, 0.3103863298892975, -0.4980788826942444, -0.3085978031158447, -0.003116746200248599, 0.31740790605545044, -0.10671034455299377, -0.54547119140625, 0.12090940773487091, 0.21841174364089966, -0.12967847287654877, 0.31798845529556274, 0.06240592151880264, -0.1621999442577362, -0.08115973323583603, -0.40316540002822876, 0.44900453090667725, 0.2591964304447174, -0.06942535936832428, -0.34211477637290955, 0.1260676085948944, 0.12056642770767212, 0.10663237422704697, 0.03079131245613098, -0.0028176666237413883, 0.40490245819091797, -0.12223414331674576, 0.25393563508987427, 0.14555221796035767, 0.31423842906951904, 0.1199975237250328, -0.21669259667396545, -0.273460328578949, -0.025925010442733765, -0.23938466608524323, -0.4691472351551056, -0.08020520955324173, 0.1083945631980896, 0.32359883189201355, 0.642852783203125, -0.22582265734672546, 0.18428947031497955, -0.020405132323503494, 0.2308959811925888, -0.00516384094953537, -0.08414475619792938, 0.032547108829021454, 0.029961995780467987, -0.15658916532993317, 0.26814985275268555, -0.010463528335094452, 0.2493058145046234, -0.17132581770420074, 0.03451940789818764, -0.12560521066188812, -0.15961049497127533, -0.1805337518453598, 0.14187033474445343, 0.17325760424137115, -0.00292942114174366, -0.3430258631706238, -0.14833827316761017, -0.06483354419469833, 0.05671001225709915, -0.14276020228862762, -0.16995665431022644, -0.09630745649337769, -0.024795731529593468, -0.0001658732071518898, 0.1799587607383728, 0.47956642508506775, 0.00978909432888031, -0.07011573761701584, -0.08664460480213165, 0.33293330669403076, 0.32836034893989563, -0.1670716255903244, -0.32158082723617554, 0.2661705017089844, 0.10241344571113586, 0.0559852235019207, 0.3347049951553345, 0.08036614954471588, 0.1446886956691742, 0.008991822600364685, -0.10231857746839523, 0.28095442056655884, 0.26020893454551697, 0.41501396894454956, 0.30727559328079224, 0.03140842914581299, 0.14047470688819885, 0.27219492197036743, -0.366629958152771, -0.17491799592971802, -0.34395599365234375, -0.4124442934989929, 0.33290353417396545, 0.2261430323123932, -0.4646034240722656, 0.09177958220243454, 0.5448023676872253, -0.050761133432388306, -0.04506542533636093, 0.05910344421863556, -0.3216879069805145, -0.2651134729385376, 0.2766362726688385, -0.0029755160212516785, 0.2848723530769348, 0.11209582537412643, 0.2859368324279785, -0.3420165181159973, -0.011902579106390476, -0.014162354171276093, 0.1763191819190979, 0.06984619796276093, 0.0053146835416555405, 0.17441943287849426, 0.039344221353530884, -0.17210829257965088, -0.3514680862426758, -0.122256338596344, -0.20517492294311523, -0.021615127101540565, -0.19145305454730988, -0.3006506860256195, -0.030216723680496216, -0.20871055126190186, -0.3192378580570221, -0.14505936205387115, 0.041810549795627594, -0.11044776439666748, -0.10660366714000702, 0.12566986680030823, -0.2035188525915146, 0.22696475684642792, 0.07467664778232574, -0.09390436112880707, -0.020377056673169136, -0.020045174285769463, 0.12768851220607758, 0.27254220843315125, -0.2145109474658966, 0.10641521215438843, 0.026641864329576492, 0.13724011182785034, -0.026156796142458916, 0.2865576446056366, -0.11782005429267883, -0.4260062575340271, -0.13339877128601074, 0.26938024163246155, -0.17154358327388763, 0.08109944313764572, 0.2522566318511963, 0.28801071643829346, -0.20642656087875366, -0.34887930750846863, 0.125153586268425, -0.24001364409923553, -0.25628846883773804, -0.019097477197647095, 0.19520415365695953, 0.09607740491628647, -0.3290713429450989, -0.3493409752845764, -0.05713316798210144, -0.23513397574424744, 0.2053949236869812, -0.04732123389840126, 0.33216333389282227, 0.09872729331254959, 0.13971194624900818, 0.1539786159992218, 0.06177050992846489, -0.00876898318529129, -0.38648608326911926, 0.09092137217521667, 0.24727417528629303, -0.051362283527851105, -0.10971508920192719, -0.02545752003788948, -0.04186118021607399, 0.1501147747039795, 0.026117555797100067, -0.06704822182655334, -0.2500666677951813, -0.1688150316476822, -0.20106415450572968, -0.10225057601928711, 0.2995704710483551, 0.32388836145401, 0.063380166888237, -0.027595210820436478, -0.23454779386520386, -0.15504363179206848, 0.06949147582054138, 0.3716652989387512, 0.27205565571784973, 0.10905242711305618, 0.13031265139579773, -0.029738830402493477, 0.5409639477729797, 0.14397244155406952, -0.07837966084480286, -0.11476323008537292, -0.13287849724292755, 0.22752925753593445, -0.19555699825286865, 0.0009195394814014435, 0.26548948884010315, -0.047173455357551575, -0.24226979911327362, 0.28036221861839294, 0.1963619887828827, -0.3379116952419281, 0.12113681435585022, 0.5350009799003601, -0.3518291115760803, -0.13116542994976044, 0.20390065014362335, -0.10923688113689423, 0.056524135172367096, 0.012097842991352081, 0.13855281472206116, 0.3264894187450409, -0.1831558644771576, -0.14296558499336243, -0.06081885099411011, 0.3778916001319885, -0.12293599545955658, -0.30530545115470886, -0.20593960583209991, -0.8430304527282715, 0.3108459711074829, 0.12964782118797302, 0.5271250009536743, 0.09216387569904327, -0.33373546600341797, 0.03670016676187515, 0.019212186336517334, 0.21367979049682617, -0.18546895682811737, -0.05980346351861954, 0.12210129201412201, 0.5030914545059204, -0.23520900309085846, -0.10376109182834625, -0.501445472240448, 0.23131702840328217, 0.19407357275485992, 0.15404483675956726, -0.28513094782829285, -0.1498832404613495, 0.27907538414001465, 0.37389758229255676, 0.1395091414451599, 0.429482638835907, -0.22139422595500946, -0.49145346879959106, 0.009542705491185188, 0.042052362114191055, 0.18239907920360565, 0.1690860390663147, -0.09886309504508972, -0.10696688294410706, 0.3594481348991394, -0.1121460348367691, 0.29490530490875244, -0.1945742666721344, 0.5291569828987122, 0.41284850239753723, -0.0546378530561924, 0.09293907880783081, 0.028062306344509125, -0.06460870057344437, 0.20798757672309875, -0.3096732795238495, 0.5029841661453247, 0.41315513849258423, -0.23940090835094452, 0.5206177234649658, 0.3403359055519104, -0.1514889895915985, -0.20230352878570557, -0.048210181295871735, 0.10342657566070557, -0.14534546434879303, 0.1274656504392624, 0.4268476665019989, 0.07370032370090485, -0.17475642263889313, -0.8883275985717773, 0.20989692211151123, 0.0379478856921196, -0.14133623242378235, 0.19017912447452545, -0.06690812110900879, -0.3320239782333374, 0.4743841886520386, 0.014486931264400482, 1.0012598037719727, -0.1401289403438568, 0.4054601192474365, 0.08015041053295135, -0.0582280308008194, -0.0018806378357112408, -0.11656071990728378, 0.2925007939338684, -0.28549718856811523, 0.11049765348434448, -0.07296540588140488, -0.12191177904605865, 0.05727274343371391, 0.27223849296569824, -0.22168035805225372, 0.14263677597045898, 0.004735223948955536, 0.38019782304763794, -0.11137138307094574, 0.20316986739635468, -0.18880537152290344, -0.21074680984020233, -0.050162263214588165, 0.0712728500366211, 0.09593120217323303, -0.00331999734044075, 0.19088053703308105, -0.066282719373703, -0.2829696834087372, -0.27820754051208496, -0.21157097816467285, 0.0215349979698658, -0.42609748244285583, 0.012034435756504536, -0.27980130910873413, -0.4624323844909668, -0.24547675251960754, 0.5334237813949585, -0.4848814606666565, 0.3236006498336792, 0.21383728086948395, -0.13547272980213165, 0.5590692162513733, 0.5515835285186768, 0.31163737177848816, -0.01882125250995159, -0.11170870065689087, 0.1837446093559265, 0.03800850361585617, 0.16614320874214172, -0.08066418021917343, -0.19025786221027374, -0.06766914576292038, 0.1861061453819275, 0.2634868025779724, -0.6092756986618042, -0.4351523816585541, 0.26634612679481506, -0.3400941789150238, 0.08115600049495697, 0.08757619559764862, -0.039118267595767975, -0.45930635929107666, 0.3327951431274414, 0.07422610372304916, -0.2625935673713684, 0.022277291864156723, 0.3910152018070221, 0.1485087275505066, 0.06971278786659241, 0.402296245098114, -0.22549870610237122, -0.07252904027700424, -0.21759802103042603, 0.08317164331674576, -0.048674438148736954, -0.18681195378303528, -0.06802421063184738, -0.19082385301589966, -0.14738039672374725, -0.05970830097794533, 0.37094730138778687, -0.1025208979845047, 0.44806793332099915, -0.4269314408302307, -0.2532949447631836, -0.25500717759132385, 0.30108290910720825, 0.13779506087303162, 0.562933623790741, -0.28914013504981995, -0.08361022174358368, -0.07651180773973465, -0.39913880825042725, -0.2999732494354248, 0.0514090433716774, 0.06826603412628174, 0.30734455585479736, 0.13587316870689392, 0.22643864154815674, 0.01492321491241455, -0.1930386871099472, 0.1997731775045395, 0.16089868545532227, -0.1596696674823761, -0.16018226742744446, 0.04923762008547783, 0.12569262087345123, 0.09744137525558472, -0.43787598609924316, -0.21015489101409912, -0.09736832231283188, -0.3540395498275757, -0.33801987767219543, -0.020458297803997993, 0.2995050251483917, -0.00490068644285202, -0.0517643578350544, -0.03973550722002983, -0.0697474256157875, 0.24594222009181976, 0.005468778312206268, -0.01984715461730957, 0.21797612309455872, 0.19649866223335266, 0.21837931871414185, 0.12183965742588043, -0.027543146163225174, 0.5331257581710815, 0.263575941324234, -0.326718807220459, 0.20478835701942444, 0.18162254989147186, 0.059319037944078445, 0.038977671414613724, 0.2862647473812103, 0.8134655952453613, 0.37831225991249084, -0.16854876279830933, -0.27335500717163086, -0.01933731697499752, 0.24321700632572174, -0.08906358480453491, -0.05645887181162834, 0.2598472237586975, -0.06120089441537857, 0.11702089011669159, 0.34301403164863586, 0.12264274060726166, 0.11331488192081451, 0.2428925335407257, -0.08603519201278687, -0.02164836972951889, 0.05470018833875656, 0.19513706862926483, 0.6959061622619629, -0.1750025600194931, 0.15927445888519287, 0.15463149547576904, -0.3309009075164795, 0.13732390105724335, 0.447079598903656, 0.04747919738292694, 0.04843318462371826, 0.5154216289520264, 0.22850246727466583, 0.15985000133514404, -0.23488293588161469, 0.13294973969459534, 0.204476997256279, -0.022449836134910583, 0.41483214497566223, 0.12107889354228973, 0.4587303102016449, -0.6043596267700195, -0.10946831852197647, 0.07906250655651093, 0.0009079650044441223, -0.396751344203949, -0.1118185967206955, 0.2753412127494812, -0.26732808351516724, 0.05161896347999573, 0.017463766038417816, -0.21364542841911316, 0.017002489417791367, 0.2557520866394043, -0.24419774115085602, 0.08965057134628296, 0.18769674003124237, -0.2054343819618225, 0.0021420903503894806, 0.0930924341082573, -0.08997122198343277, 0.2701725959777832, 0.16525156795978546, 0.25258344411849976, 0.1785665601491928, 0.32924818992614746, 0.13059933483600616, 0.2140732705593109, -0.010633828118443489, 0.05815138667821884, -0.05241008475422859, -0.1389569491147995, -0.1043991893529892, 0.13865776360034943, 0.44896310567855835, -0.13330896198749542, 0.24931858479976654, 0.1345663219690323, -0.061720047146081924, 0.2072567194700241, 0.17117390036582947, 0.27955156564712524, -0.05482369661331177, -0.01932748407125473, -0.0677701085805893, -0.29084494709968567, -0.04706156998872757, -0.26521655917167664, -0.33714351058006287, -0.1657002866268158, 0.20480245351791382, -0.10282059013843536, 0.3487429916858673, 0.06532210856676102, 0.052501074969768524, -0.06849288940429688, 0.14189675450325012, 0.18939878046512604, -0.13493958115577698, -0.12328914552927017, -0.23107653856277466, -0.6346388459205627, -0.3504959046840668, 0.0057029277086257935, -0.07240481674671173, -0.33185872435569763, 0.3261372745037079, 0.21200338006019592, 0.2738454043865204, 0.20575189590454102, -0.31428995728492737, -0.07834624499082565, 0.09525895118713379, 0.08809554576873779, -0.1488064080476761, 0.060900215059518814, 0.3614415228366852, -0.131264328956604, -0.6409599781036377, 0.07471141219139099, 0.06369763612747192, 0.05874636024236679, -0.12933829426765442, -0.01270965114235878, -0.1543392837047577, -0.046384647488594055, 0.13690006732940674, 0.15844537317752838, 0.30144983530044556, -0.35222744941711426, -0.10468437522649765, 0.03054121509194374, -0.03423938900232315, -0.0911092758178711, 0.022161096334457397, -0.3623102903366089, 0.7060493230819702, 0.029005659744143486, 0.07208199799060822, -0.2977442145347595, 0.06030428782105446, 0.13117992877960205, -0.027517465874552727, -0.35079464316368103, 0.056763842701911926, -0.2715272605419159, -0.3359445333480835, 0.08602577447891235, 0.38041946291923523, -0.016881637275218964, -0.13317154347896576, -0.28234124183654785, -0.2604233920574188, 0.3593377470970154, -0.10256034135818481, -0.20231643319129944, -0.0687238872051239, 0.19359320402145386, -0.030533358454704285, 0.09379471093416214, -0.6026322841644287, -0.11227091401815414, 0.34061744809150696, -0.0750618427991867, -0.09554803371429443, 0.04843650758266449, -0.27594995498657227, 0.004674296826124191, -0.23899012804031372, 0.3581075668334961, 0.2401626706123352, -0.36395275592803955, -0.14802710711956024, -0.5026927590370178 ]
https://github.com/huggingface/datasets/issues/4185
Librispeech documentation, clarification on format
> I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ? Sure, I would expect that `load_dataset("librispeech_asr")` would give you the original (not re-encoded) data (flac or already decoded). So such re-encoding logic would be some separate generic function. So I could do sth like `dataset.reencode_as_ogg(**ogg_encode_opts).save_to_disk(...)` or so.
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
67
Librispeech documentation, clarification on format https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? > I don't think it's a good idea to convert to MP3 out-of-the-box, but we could maybe think about some kind of convert function for audio datasets cc @lhoestq ? Sure, I would expect that `load_dataset("librispeech_asr")` would give you the original (not re-encoded) data (flac or already decoded). So such re-encoding logic would be some separate generic function. So I could do sth like `dataset.reencode_as_ogg(**ogg_encode_opts).save_to_disk(...)` or so.
[ -0.15423402190208435, -0.3340960741043091, -0.17598019540309906, 0.27390116453170776, 0.216354638338089, -0.23989278078079224, 0.43557384610176086, 0.15729418396949768, 0.2130369395017624, 0.030080363154411316, -0.5569843649864197, 0.2139863520860672, -0.2302837073802948, 0.08595596253871918, 0.09614800661802292, 0.09318415820598602, 0.08188328891992569, 0.2941010594367981, -0.4400457441806793, -0.17477095127105713, -0.2997762858867645, 0.2271275371313095, -0.4004110097885132, 0.0567239448428154, 0.09517405182123184, 0.06360621750354767, -0.03979315236210823, 0.04877091944217682, -0.2569728195667267, -0.1601584255695343, 0.1267194300889969, -0.05288003012537956, 0.10145775228738785, 0.2192431539297104, -0.00011621086741797626, -0.2093726247549057, 0.023554787039756775, -0.306189626455307, -0.16999760270118713, 0.15756753087043762, -0.21975377202033997, 0.04943546652793884, -0.1951780617237091, -0.19337859749794006, -0.12719498574733734, -0.20382559299468994, -0.23402027785778046, -0.3971257507801056, 0.13547903299331665, 0.4306398034095764, 0.1723315715789795, -0.0784720778465271, 0.17887185513973236, 0.2868998944759369, 0.34842821955680847, 0.10903549194335938, -0.11583863198757172, 0.008898664265871048, 0.12011464685201645, -0.06075198948383331, -0.14165529608726501, 0.3081614375114441, -0.09410318732261658, 0.08860346674919128, 0.18806621432304382, 0.11955851316452026, 0.002360410988330841, -0.38542479276657104, 0.10120006650686264, 0.3287839889526367, 0.4399702847003937, -0.06328573822975159, -0.4344284236431122, 0.09785061329603195, -0.20798668265342712, -0.09637725353240967, -0.1600910723209381, 0.34048396348953247, -0.1445980966091156, 0.12907016277313232, -0.20534493029117584, -0.15064899623394012, 0.03415237367153168, 0.0832136869430542, -0.0816689059138298, 0.44104471802711487, -0.4077048897743225, 0.1251978874206543, 0.26395276188850403, -0.2442328780889511, -0.1180930957198143, -0.2946670949459076, 0.048262178897857666, 0.41363000869750977, -0.0440325029194355, -0.24477386474609375, -0.11609000712633133, -0.2239229381084442, 0.15515649318695068, -0.414398193359375, 0.35559290647506714, -0.027097728103399277, -0.3395845592021942, 0.1265244334936142, 0.25902506709098816, 0.317657470703125, 0.03989855945110321, -0.0687340721487999, -0.09125787019729614, 0.20941394567489624, 0.0860806256532669, 0.001509159803390503, 0.002561376430094242, 0.04426833987236023, -0.22460202872753143, 0.033589281141757965, 0.05267517268657684, -0.34813380241394043, -0.2648082971572876, 0.27238908410072327, -0.6330310106277466, -0.15256141126155853, 0.04338312894105911, 0.19580459594726562, -0.03342622518539429, 0.3636600077152252, 0.10864029824733734, 0.17356564104557037, -0.07098343968391418, 0.43390998244285583, -0.11397232860326767, 0.1506478190422058, -0.1507551074028015, -0.3666742742061615, -0.014649970456957817, -0.047706592828035355, 0.26348692178726196, 0.16097459197044373, -0.059836238622665405, -0.11641272902488708, -0.1345730423927307, -0.05484309792518616, 0.8213593363761902, 0.2543647885322571, -0.15980365872383118, 0.1559334248304367, -0.07336099445819855, -0.16762611269950867, -0.27788081765174866, 0.4688282012939453, -0.052548788487911224, -0.047239016741514206, -0.036932796239852905, 0.16368462145328522, -0.025380391627550125, 0.1466594934463501, -0.04070652276277542, 0.1523047536611557, 0.2607586681842804, -0.3075159788131714, 0.3103863298892975, -0.4980788826942444, -0.3085978031158447, -0.003116746200248599, 0.31740790605545044, -0.10671034455299377, -0.54547119140625, 0.12090940773487091, 0.21841174364089966, -0.12967847287654877, 0.31798845529556274, 0.06240592151880264, -0.1621999442577362, -0.08115973323583603, -0.40316540002822876, 0.44900453090667725, 0.2591964304447174, -0.06942535936832428, -0.34211477637290955, 0.1260676085948944, 0.12056642770767212, 0.10663237422704697, 0.03079131245613098, -0.0028176666237413883, 0.40490245819091797, -0.12223414331674576, 0.25393563508987427, 0.14555221796035767, 0.31423842906951904, 0.1199975237250328, -0.21669259667396545, -0.273460328578949, -0.025925010442733765, -0.23938466608524323, -0.4691472351551056, -0.08020520955324173, 0.1083945631980896, 0.32359883189201355, 0.642852783203125, -0.22582265734672546, 0.18428947031497955, -0.020405132323503494, 0.2308959811925888, -0.00516384094953537, -0.08414475619792938, 0.032547108829021454, 0.029961995780467987, -0.15658916532993317, 0.26814985275268555, -0.010463528335094452, 0.2493058145046234, -0.17132581770420074, 0.03451940789818764, -0.12560521066188812, -0.15961049497127533, -0.1805337518453598, 0.14187033474445343, 0.17325760424137115, -0.00292942114174366, -0.3430258631706238, -0.14833827316761017, -0.06483354419469833, 0.05671001225709915, -0.14276020228862762, -0.16995665431022644, -0.09630745649337769, -0.024795731529593468, -0.0001658732071518898, 0.1799587607383728, 0.47956642508506775, 0.00978909432888031, -0.07011573761701584, -0.08664460480213165, 0.33293330669403076, 0.32836034893989563, -0.1670716255903244, -0.32158082723617554, 0.2661705017089844, 0.10241344571113586, 0.0559852235019207, 0.3347049951553345, 0.08036614954471588, 0.1446886956691742, 0.008991822600364685, -0.10231857746839523, 0.28095442056655884, 0.26020893454551697, 0.41501396894454956, 0.30727559328079224, 0.03140842914581299, 0.14047470688819885, 0.27219492197036743, -0.366629958152771, -0.17491799592971802, -0.34395599365234375, -0.4124442934989929, 0.33290353417396545, 0.2261430323123932, -0.4646034240722656, 0.09177958220243454, 0.5448023676872253, -0.050761133432388306, -0.04506542533636093, 0.05910344421863556, -0.3216879069805145, -0.2651134729385376, 0.2766362726688385, -0.0029755160212516785, 0.2848723530769348, 0.11209582537412643, 0.2859368324279785, -0.3420165181159973, -0.011902579106390476, -0.014162354171276093, 0.1763191819190979, 0.06984619796276093, 0.0053146835416555405, 0.17441943287849426, 0.039344221353530884, -0.17210829257965088, -0.3514680862426758, -0.122256338596344, -0.20517492294311523, -0.021615127101540565, -0.19145305454730988, -0.3006506860256195, -0.030216723680496216, -0.20871055126190186, -0.3192378580570221, -0.14505936205387115, 0.041810549795627594, -0.11044776439666748, -0.10660366714000702, 0.12566986680030823, -0.2035188525915146, 0.22696475684642792, 0.07467664778232574, -0.09390436112880707, -0.020377056673169136, -0.020045174285769463, 0.12768851220607758, 0.27254220843315125, -0.2145109474658966, 0.10641521215438843, 0.026641864329576492, 0.13724011182785034, -0.026156796142458916, 0.2865576446056366, -0.11782005429267883, -0.4260062575340271, -0.13339877128601074, 0.26938024163246155, -0.17154358327388763, 0.08109944313764572, 0.2522566318511963, 0.28801071643829346, -0.20642656087875366, -0.34887930750846863, 0.125153586268425, -0.24001364409923553, -0.25628846883773804, -0.019097477197647095, 0.19520415365695953, 0.09607740491628647, -0.3290713429450989, -0.3493409752845764, -0.05713316798210144, -0.23513397574424744, 0.2053949236869812, -0.04732123389840126, 0.33216333389282227, 0.09872729331254959, 0.13971194624900818, 0.1539786159992218, 0.06177050992846489, -0.00876898318529129, -0.38648608326911926, 0.09092137217521667, 0.24727417528629303, -0.051362283527851105, -0.10971508920192719, -0.02545752003788948, -0.04186118021607399, 0.1501147747039795, 0.026117555797100067, -0.06704822182655334, -0.2500666677951813, -0.1688150316476822, -0.20106415450572968, -0.10225057601928711, 0.2995704710483551, 0.32388836145401, 0.063380166888237, -0.027595210820436478, -0.23454779386520386, -0.15504363179206848, 0.06949147582054138, 0.3716652989387512, 0.27205565571784973, 0.10905242711305618, 0.13031265139579773, -0.029738830402493477, 0.5409639477729797, 0.14397244155406952, -0.07837966084480286, -0.11476323008537292, -0.13287849724292755, 0.22752925753593445, -0.19555699825286865, 0.0009195394814014435, 0.26548948884010315, -0.047173455357551575, -0.24226979911327362, 0.28036221861839294, 0.1963619887828827, -0.3379116952419281, 0.12113681435585022, 0.5350009799003601, -0.3518291115760803, -0.13116542994976044, 0.20390065014362335, -0.10923688113689423, 0.056524135172367096, 0.012097842991352081, 0.13855281472206116, 0.3264894187450409, -0.1831558644771576, -0.14296558499336243, -0.06081885099411011, 0.3778916001319885, -0.12293599545955658, -0.30530545115470886, -0.20593960583209991, -0.8430304527282715, 0.3108459711074829, 0.12964782118797302, 0.5271250009536743, 0.09216387569904327, -0.33373546600341797, 0.03670016676187515, 0.019212186336517334, 0.21367979049682617, -0.18546895682811737, -0.05980346351861954, 0.12210129201412201, 0.5030914545059204, -0.23520900309085846, -0.10376109182834625, -0.501445472240448, 0.23131702840328217, 0.19407357275485992, 0.15404483675956726, -0.28513094782829285, -0.1498832404613495, 0.27907538414001465, 0.37389758229255676, 0.1395091414451599, 0.429482638835907, -0.22139422595500946, -0.49145346879959106, 0.009542705491185188, 0.042052362114191055, 0.18239907920360565, 0.1690860390663147, -0.09886309504508972, -0.10696688294410706, 0.3594481348991394, -0.1121460348367691, 0.29490530490875244, -0.1945742666721344, 0.5291569828987122, 0.41284850239753723, -0.0546378530561924, 0.09293907880783081, 0.028062306344509125, -0.06460870057344437, 0.20798757672309875, -0.3096732795238495, 0.5029841661453247, 0.41315513849258423, -0.23940090835094452, 0.5206177234649658, 0.3403359055519104, -0.1514889895915985, -0.20230352878570557, -0.048210181295871735, 0.10342657566070557, -0.14534546434879303, 0.1274656504392624, 0.4268476665019989, 0.07370032370090485, -0.17475642263889313, -0.8883275985717773, 0.20989692211151123, 0.0379478856921196, -0.14133623242378235, 0.19017912447452545, -0.06690812110900879, -0.3320239782333374, 0.4743841886520386, 0.014486931264400482, 1.0012598037719727, -0.1401289403438568, 0.4054601192474365, 0.08015041053295135, -0.0582280308008194, -0.0018806378357112408, -0.11656071990728378, 0.2925007939338684, -0.28549718856811523, 0.11049765348434448, -0.07296540588140488, -0.12191177904605865, 0.05727274343371391, 0.27223849296569824, -0.22168035805225372, 0.14263677597045898, 0.004735223948955536, 0.38019782304763794, -0.11137138307094574, 0.20316986739635468, -0.18880537152290344, -0.21074680984020233, -0.050162263214588165, 0.0712728500366211, 0.09593120217323303, -0.00331999734044075, 0.19088053703308105, -0.066282719373703, -0.2829696834087372, -0.27820754051208496, -0.21157097816467285, 0.0215349979698658, -0.42609748244285583, 0.012034435756504536, -0.27980130910873413, -0.4624323844909668, -0.24547675251960754, 0.5334237813949585, -0.4848814606666565, 0.3236006498336792, 0.21383728086948395, -0.13547272980213165, 0.5590692162513733, 0.5515835285186768, 0.31163737177848816, -0.01882125250995159, -0.11170870065689087, 0.1837446093559265, 0.03800850361585617, 0.16614320874214172, -0.08066418021917343, -0.19025786221027374, -0.06766914576292038, 0.1861061453819275, 0.2634868025779724, -0.6092756986618042, -0.4351523816585541, 0.26634612679481506, -0.3400941789150238, 0.08115600049495697, 0.08757619559764862, -0.039118267595767975, -0.45930635929107666, 0.3327951431274414, 0.07422610372304916, -0.2625935673713684, 0.022277291864156723, 0.3910152018070221, 0.1485087275505066, 0.06971278786659241, 0.402296245098114, -0.22549870610237122, -0.07252904027700424, -0.21759802103042603, 0.08317164331674576, -0.048674438148736954, -0.18681195378303528, -0.06802421063184738, -0.19082385301589966, -0.14738039672374725, -0.05970830097794533, 0.37094730138778687, -0.1025208979845047, 0.44806793332099915, -0.4269314408302307, -0.2532949447631836, -0.25500717759132385, 0.30108290910720825, 0.13779506087303162, 0.562933623790741, -0.28914013504981995, -0.08361022174358368, -0.07651180773973465, -0.39913880825042725, -0.2999732494354248, 0.0514090433716774, 0.06826603412628174, 0.30734455585479736, 0.13587316870689392, 0.22643864154815674, 0.01492321491241455, -0.1930386871099472, 0.1997731775045395, 0.16089868545532227, -0.1596696674823761, -0.16018226742744446, 0.04923762008547783, 0.12569262087345123, 0.09744137525558472, -0.43787598609924316, -0.21015489101409912, -0.09736832231283188, -0.3540395498275757, -0.33801987767219543, -0.020458297803997993, 0.2995050251483917, -0.00490068644285202, -0.0517643578350544, -0.03973550722002983, -0.0697474256157875, 0.24594222009181976, 0.005468778312206268, -0.01984715461730957, 0.21797612309455872, 0.19649866223335266, 0.21837931871414185, 0.12183965742588043, -0.027543146163225174, 0.5331257581710815, 0.263575941324234, -0.326718807220459, 0.20478835701942444, 0.18162254989147186, 0.059319037944078445, 0.038977671414613724, 0.2862647473812103, 0.8134655952453613, 0.37831225991249084, -0.16854876279830933, -0.27335500717163086, -0.01933731697499752, 0.24321700632572174, -0.08906358480453491, -0.05645887181162834, 0.2598472237586975, -0.06120089441537857, 0.11702089011669159, 0.34301403164863586, 0.12264274060726166, 0.11331488192081451, 0.2428925335407257, -0.08603519201278687, -0.02164836972951889, 0.05470018833875656, 0.19513706862926483, 0.6959061622619629, -0.1750025600194931, 0.15927445888519287, 0.15463149547576904, -0.3309009075164795, 0.13732390105724335, 0.447079598903656, 0.04747919738292694, 0.04843318462371826, 0.5154216289520264, 0.22850246727466583, 0.15985000133514404, -0.23488293588161469, 0.13294973969459534, 0.204476997256279, -0.022449836134910583, 0.41483214497566223, 0.12107889354228973, 0.4587303102016449, -0.6043596267700195, -0.10946831852197647, 0.07906250655651093, 0.0009079650044441223, -0.396751344203949, -0.1118185967206955, 0.2753412127494812, -0.26732808351516724, 0.05161896347999573, 0.017463766038417816, -0.21364542841911316, 0.017002489417791367, 0.2557520866394043, -0.24419774115085602, 0.08965057134628296, 0.18769674003124237, -0.2054343819618225, 0.0021420903503894806, 0.0930924341082573, -0.08997122198343277, 0.2701725959777832, 0.16525156795978546, 0.25258344411849976, 0.1785665601491928, 0.32924818992614746, 0.13059933483600616, 0.2140732705593109, -0.010633828118443489, 0.05815138667821884, -0.05241008475422859, -0.1389569491147995, -0.1043991893529892, 0.13865776360034943, 0.44896310567855835, -0.13330896198749542, 0.24931858479976654, 0.1345663219690323, -0.061720047146081924, 0.2072567194700241, 0.17117390036582947, 0.27955156564712524, -0.05482369661331177, -0.01932748407125473, -0.0677701085805893, -0.29084494709968567, -0.04706156998872757, -0.26521655917167664, -0.33714351058006287, -0.1657002866268158, 0.20480245351791382, -0.10282059013843536, 0.3487429916858673, 0.06532210856676102, 0.052501074969768524, -0.06849288940429688, 0.14189675450325012, 0.18939878046512604, -0.13493958115577698, -0.12328914552927017, -0.23107653856277466, -0.6346388459205627, -0.3504959046840668, 0.0057029277086257935, -0.07240481674671173, -0.33185872435569763, 0.3261372745037079, 0.21200338006019592, 0.2738454043865204, 0.20575189590454102, -0.31428995728492737, -0.07834624499082565, 0.09525895118713379, 0.08809554576873779, -0.1488064080476761, 0.060900215059518814, 0.3614415228366852, -0.131264328956604, -0.6409599781036377, 0.07471141219139099, 0.06369763612747192, 0.05874636024236679, -0.12933829426765442, -0.01270965114235878, -0.1543392837047577, -0.046384647488594055, 0.13690006732940674, 0.15844537317752838, 0.30144983530044556, -0.35222744941711426, -0.10468437522649765, 0.03054121509194374, -0.03423938900232315, -0.0911092758178711, 0.022161096334457397, -0.3623102903366089, 0.7060493230819702, 0.029005659744143486, 0.07208199799060822, -0.2977442145347595, 0.06030428782105446, 0.13117992877960205, -0.027517465874552727, -0.35079464316368103, 0.056763842701911926, -0.2715272605419159, -0.3359445333480835, 0.08602577447891235, 0.38041946291923523, -0.016881637275218964, -0.13317154347896576, -0.28234124183654785, -0.2604233920574188, 0.3593377470970154, -0.10256034135818481, -0.20231643319129944, -0.0687238872051239, 0.19359320402145386, -0.030533358454704285, 0.09379471093416214, -0.6026322841644287, -0.11227091401815414, 0.34061744809150696, -0.0750618427991867, -0.09554803371429443, 0.04843650758266449, -0.27594995498657227, 0.004674296826124191, -0.23899012804031372, 0.3581075668334961, 0.2401626706123352, -0.36395275592803955, -0.14802710711956024, -0.5026927590370178 ]
https://github.com/huggingface/datasets/issues/4185
Librispeech documentation, clarification on format
A follow-up question: I wonder whether a Parquet dataset is maybe more what we actually want to have? (Following also my comment here: https://github.com/huggingface/datasets/pull/4184#issuecomment-1105045491.) Because I think we actually would prefer to embed the data content in the dataset. So, instead of `save_to_disk`/`load_from_disk`, we would use `to_parquet`,`from_parquet`? Is there any downside? Are arrow files more efficient? Related is also the doc update in #4193.
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
64
Librispeech documentation, clarification on format https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? A follow-up question: I wonder whether a Parquet dataset is maybe more what we actually want to have? (Following also my comment here: https://github.com/huggingface/datasets/pull/4184#issuecomment-1105045491.) Because I think we actually would prefer to embed the data content in the dataset. So, instead of `save_to_disk`/`load_from_disk`, we would use `to_parquet`,`from_parquet`? Is there any downside? Are arrow files more efficient? Related is also the doc update in #4193.
[ -0.15423402190208435, -0.3340960741043091, -0.17598019540309906, 0.27390116453170776, 0.216354638338089, -0.23989278078079224, 0.43557384610176086, 0.15729418396949768, 0.2130369395017624, 0.030080363154411316, -0.5569843649864197, 0.2139863520860672, -0.2302837073802948, 0.08595596253871918, 0.09614800661802292, 0.09318415820598602, 0.08188328891992569, 0.2941010594367981, -0.4400457441806793, -0.17477095127105713, -0.2997762858867645, 0.2271275371313095, -0.4004110097885132, 0.0567239448428154, 0.09517405182123184, 0.06360621750354767, -0.03979315236210823, 0.04877091944217682, -0.2569728195667267, -0.1601584255695343, 0.1267194300889969, -0.05288003012537956, 0.10145775228738785, 0.2192431539297104, -0.00011621086741797626, -0.2093726247549057, 0.023554787039756775, -0.306189626455307, -0.16999760270118713, 0.15756753087043762, -0.21975377202033997, 0.04943546652793884, -0.1951780617237091, -0.19337859749794006, -0.12719498574733734, -0.20382559299468994, -0.23402027785778046, -0.3971257507801056, 0.13547903299331665, 0.4306398034095764, 0.1723315715789795, -0.0784720778465271, 0.17887185513973236, 0.2868998944759369, 0.34842821955680847, 0.10903549194335938, -0.11583863198757172, 0.008898664265871048, 0.12011464685201645, -0.06075198948383331, -0.14165529608726501, 0.3081614375114441, -0.09410318732261658, 0.08860346674919128, 0.18806621432304382, 0.11955851316452026, 0.002360410988330841, -0.38542479276657104, 0.10120006650686264, 0.3287839889526367, 0.4399702847003937, -0.06328573822975159, -0.4344284236431122, 0.09785061329603195, -0.20798668265342712, -0.09637725353240967, -0.1600910723209381, 0.34048396348953247, -0.1445980966091156, 0.12907016277313232, -0.20534493029117584, -0.15064899623394012, 0.03415237367153168, 0.0832136869430542, -0.0816689059138298, 0.44104471802711487, -0.4077048897743225, 0.1251978874206543, 0.26395276188850403, -0.2442328780889511, -0.1180930957198143, -0.2946670949459076, 0.048262178897857666, 0.41363000869750977, -0.0440325029194355, -0.24477386474609375, -0.11609000712633133, -0.2239229381084442, 0.15515649318695068, -0.414398193359375, 0.35559290647506714, -0.027097728103399277, -0.3395845592021942, 0.1265244334936142, 0.25902506709098816, 0.317657470703125, 0.03989855945110321, -0.0687340721487999, -0.09125787019729614, 0.20941394567489624, 0.0860806256532669, 0.001509159803390503, 0.002561376430094242, 0.04426833987236023, -0.22460202872753143, 0.033589281141757965, 0.05267517268657684, -0.34813380241394043, -0.2648082971572876, 0.27238908410072327, -0.6330310106277466, -0.15256141126155853, 0.04338312894105911, 0.19580459594726562, -0.03342622518539429, 0.3636600077152252, 0.10864029824733734, 0.17356564104557037, -0.07098343968391418, 0.43390998244285583, -0.11397232860326767, 0.1506478190422058, -0.1507551074028015, -0.3666742742061615, -0.014649970456957817, -0.047706592828035355, 0.26348692178726196, 0.16097459197044373, -0.059836238622665405, -0.11641272902488708, -0.1345730423927307, -0.05484309792518616, 0.8213593363761902, 0.2543647885322571, -0.15980365872383118, 0.1559334248304367, -0.07336099445819855, -0.16762611269950867, -0.27788081765174866, 0.4688282012939453, -0.052548788487911224, -0.047239016741514206, -0.036932796239852905, 0.16368462145328522, -0.025380391627550125, 0.1466594934463501, -0.04070652276277542, 0.1523047536611557, 0.2607586681842804, -0.3075159788131714, 0.3103863298892975, -0.4980788826942444, -0.3085978031158447, -0.003116746200248599, 0.31740790605545044, -0.10671034455299377, -0.54547119140625, 0.12090940773487091, 0.21841174364089966, -0.12967847287654877, 0.31798845529556274, 0.06240592151880264, -0.1621999442577362, -0.08115973323583603, -0.40316540002822876, 0.44900453090667725, 0.2591964304447174, -0.06942535936832428, -0.34211477637290955, 0.1260676085948944, 0.12056642770767212, 0.10663237422704697, 0.03079131245613098, -0.0028176666237413883, 0.40490245819091797, -0.12223414331674576, 0.25393563508987427, 0.14555221796035767, 0.31423842906951904, 0.1199975237250328, -0.21669259667396545, -0.273460328578949, -0.025925010442733765, -0.23938466608524323, -0.4691472351551056, -0.08020520955324173, 0.1083945631980896, 0.32359883189201355, 0.642852783203125, -0.22582265734672546, 0.18428947031497955, -0.020405132323503494, 0.2308959811925888, -0.00516384094953537, -0.08414475619792938, 0.032547108829021454, 0.029961995780467987, -0.15658916532993317, 0.26814985275268555, -0.010463528335094452, 0.2493058145046234, -0.17132581770420074, 0.03451940789818764, -0.12560521066188812, -0.15961049497127533, -0.1805337518453598, 0.14187033474445343, 0.17325760424137115, -0.00292942114174366, -0.3430258631706238, -0.14833827316761017, -0.06483354419469833, 0.05671001225709915, -0.14276020228862762, -0.16995665431022644, -0.09630745649337769, -0.024795731529593468, -0.0001658732071518898, 0.1799587607383728, 0.47956642508506775, 0.00978909432888031, -0.07011573761701584, -0.08664460480213165, 0.33293330669403076, 0.32836034893989563, -0.1670716255903244, -0.32158082723617554, 0.2661705017089844, 0.10241344571113586, 0.0559852235019207, 0.3347049951553345, 0.08036614954471588, 0.1446886956691742, 0.008991822600364685, -0.10231857746839523, 0.28095442056655884, 0.26020893454551697, 0.41501396894454956, 0.30727559328079224, 0.03140842914581299, 0.14047470688819885, 0.27219492197036743, -0.366629958152771, -0.17491799592971802, -0.34395599365234375, -0.4124442934989929, 0.33290353417396545, 0.2261430323123932, -0.4646034240722656, 0.09177958220243454, 0.5448023676872253, -0.050761133432388306, -0.04506542533636093, 0.05910344421863556, -0.3216879069805145, -0.2651134729385376, 0.2766362726688385, -0.0029755160212516785, 0.2848723530769348, 0.11209582537412643, 0.2859368324279785, -0.3420165181159973, -0.011902579106390476, -0.014162354171276093, 0.1763191819190979, 0.06984619796276093, 0.0053146835416555405, 0.17441943287849426, 0.039344221353530884, -0.17210829257965088, -0.3514680862426758, -0.122256338596344, -0.20517492294311523, -0.021615127101540565, -0.19145305454730988, -0.3006506860256195, -0.030216723680496216, -0.20871055126190186, -0.3192378580570221, -0.14505936205387115, 0.041810549795627594, -0.11044776439666748, -0.10660366714000702, 0.12566986680030823, -0.2035188525915146, 0.22696475684642792, 0.07467664778232574, -0.09390436112880707, -0.020377056673169136, -0.020045174285769463, 0.12768851220607758, 0.27254220843315125, -0.2145109474658966, 0.10641521215438843, 0.026641864329576492, 0.13724011182785034, -0.026156796142458916, 0.2865576446056366, -0.11782005429267883, -0.4260062575340271, -0.13339877128601074, 0.26938024163246155, -0.17154358327388763, 0.08109944313764572, 0.2522566318511963, 0.28801071643829346, -0.20642656087875366, -0.34887930750846863, 0.125153586268425, -0.24001364409923553, -0.25628846883773804, -0.019097477197647095, 0.19520415365695953, 0.09607740491628647, -0.3290713429450989, -0.3493409752845764, -0.05713316798210144, -0.23513397574424744, 0.2053949236869812, -0.04732123389840126, 0.33216333389282227, 0.09872729331254959, 0.13971194624900818, 0.1539786159992218, 0.06177050992846489, -0.00876898318529129, -0.38648608326911926, 0.09092137217521667, 0.24727417528629303, -0.051362283527851105, -0.10971508920192719, -0.02545752003788948, -0.04186118021607399, 0.1501147747039795, 0.026117555797100067, -0.06704822182655334, -0.2500666677951813, -0.1688150316476822, -0.20106415450572968, -0.10225057601928711, 0.2995704710483551, 0.32388836145401, 0.063380166888237, -0.027595210820436478, -0.23454779386520386, -0.15504363179206848, 0.06949147582054138, 0.3716652989387512, 0.27205565571784973, 0.10905242711305618, 0.13031265139579773, -0.029738830402493477, 0.5409639477729797, 0.14397244155406952, -0.07837966084480286, -0.11476323008537292, -0.13287849724292755, 0.22752925753593445, -0.19555699825286865, 0.0009195394814014435, 0.26548948884010315, -0.047173455357551575, -0.24226979911327362, 0.28036221861839294, 0.1963619887828827, -0.3379116952419281, 0.12113681435585022, 0.5350009799003601, -0.3518291115760803, -0.13116542994976044, 0.20390065014362335, -0.10923688113689423, 0.056524135172367096, 0.012097842991352081, 0.13855281472206116, 0.3264894187450409, -0.1831558644771576, -0.14296558499336243, -0.06081885099411011, 0.3778916001319885, -0.12293599545955658, -0.30530545115470886, -0.20593960583209991, -0.8430304527282715, 0.3108459711074829, 0.12964782118797302, 0.5271250009536743, 0.09216387569904327, -0.33373546600341797, 0.03670016676187515, 0.019212186336517334, 0.21367979049682617, -0.18546895682811737, -0.05980346351861954, 0.12210129201412201, 0.5030914545059204, -0.23520900309085846, -0.10376109182834625, -0.501445472240448, 0.23131702840328217, 0.19407357275485992, 0.15404483675956726, -0.28513094782829285, -0.1498832404613495, 0.27907538414001465, 0.37389758229255676, 0.1395091414451599, 0.429482638835907, -0.22139422595500946, -0.49145346879959106, 0.009542705491185188, 0.042052362114191055, 0.18239907920360565, 0.1690860390663147, -0.09886309504508972, -0.10696688294410706, 0.3594481348991394, -0.1121460348367691, 0.29490530490875244, -0.1945742666721344, 0.5291569828987122, 0.41284850239753723, -0.0546378530561924, 0.09293907880783081, 0.028062306344509125, -0.06460870057344437, 0.20798757672309875, -0.3096732795238495, 0.5029841661453247, 0.41315513849258423, -0.23940090835094452, 0.5206177234649658, 0.3403359055519104, -0.1514889895915985, -0.20230352878570557, -0.048210181295871735, 0.10342657566070557, -0.14534546434879303, 0.1274656504392624, 0.4268476665019989, 0.07370032370090485, -0.17475642263889313, -0.8883275985717773, 0.20989692211151123, 0.0379478856921196, -0.14133623242378235, 0.19017912447452545, -0.06690812110900879, -0.3320239782333374, 0.4743841886520386, 0.014486931264400482, 1.0012598037719727, -0.1401289403438568, 0.4054601192474365, 0.08015041053295135, -0.0582280308008194, -0.0018806378357112408, -0.11656071990728378, 0.2925007939338684, -0.28549718856811523, 0.11049765348434448, -0.07296540588140488, -0.12191177904605865, 0.05727274343371391, 0.27223849296569824, -0.22168035805225372, 0.14263677597045898, 0.004735223948955536, 0.38019782304763794, -0.11137138307094574, 0.20316986739635468, -0.18880537152290344, -0.21074680984020233, -0.050162263214588165, 0.0712728500366211, 0.09593120217323303, -0.00331999734044075, 0.19088053703308105, -0.066282719373703, -0.2829696834087372, -0.27820754051208496, -0.21157097816467285, 0.0215349979698658, -0.42609748244285583, 0.012034435756504536, -0.27980130910873413, -0.4624323844909668, -0.24547675251960754, 0.5334237813949585, -0.4848814606666565, 0.3236006498336792, 0.21383728086948395, -0.13547272980213165, 0.5590692162513733, 0.5515835285186768, 0.31163737177848816, -0.01882125250995159, -0.11170870065689087, 0.1837446093559265, 0.03800850361585617, 0.16614320874214172, -0.08066418021917343, -0.19025786221027374, -0.06766914576292038, 0.1861061453819275, 0.2634868025779724, -0.6092756986618042, -0.4351523816585541, 0.26634612679481506, -0.3400941789150238, 0.08115600049495697, 0.08757619559764862, -0.039118267595767975, -0.45930635929107666, 0.3327951431274414, 0.07422610372304916, -0.2625935673713684, 0.022277291864156723, 0.3910152018070221, 0.1485087275505066, 0.06971278786659241, 0.402296245098114, -0.22549870610237122, -0.07252904027700424, -0.21759802103042603, 0.08317164331674576, -0.048674438148736954, -0.18681195378303528, -0.06802421063184738, -0.19082385301589966, -0.14738039672374725, -0.05970830097794533, 0.37094730138778687, -0.1025208979845047, 0.44806793332099915, -0.4269314408302307, -0.2532949447631836, -0.25500717759132385, 0.30108290910720825, 0.13779506087303162, 0.562933623790741, -0.28914013504981995, -0.08361022174358368, -0.07651180773973465, -0.39913880825042725, -0.2999732494354248, 0.0514090433716774, 0.06826603412628174, 0.30734455585479736, 0.13587316870689392, 0.22643864154815674, 0.01492321491241455, -0.1930386871099472, 0.1997731775045395, 0.16089868545532227, -0.1596696674823761, -0.16018226742744446, 0.04923762008547783, 0.12569262087345123, 0.09744137525558472, -0.43787598609924316, -0.21015489101409912, -0.09736832231283188, -0.3540395498275757, -0.33801987767219543, -0.020458297803997993, 0.2995050251483917, -0.00490068644285202, -0.0517643578350544, -0.03973550722002983, -0.0697474256157875, 0.24594222009181976, 0.005468778312206268, -0.01984715461730957, 0.21797612309455872, 0.19649866223335266, 0.21837931871414185, 0.12183965742588043, -0.027543146163225174, 0.5331257581710815, 0.263575941324234, -0.326718807220459, 0.20478835701942444, 0.18162254989147186, 0.059319037944078445, 0.038977671414613724, 0.2862647473812103, 0.8134655952453613, 0.37831225991249084, -0.16854876279830933, -0.27335500717163086, -0.01933731697499752, 0.24321700632572174, -0.08906358480453491, -0.05645887181162834, 0.2598472237586975, -0.06120089441537857, 0.11702089011669159, 0.34301403164863586, 0.12264274060726166, 0.11331488192081451, 0.2428925335407257, -0.08603519201278687, -0.02164836972951889, 0.05470018833875656, 0.19513706862926483, 0.6959061622619629, -0.1750025600194931, 0.15927445888519287, 0.15463149547576904, -0.3309009075164795, 0.13732390105724335, 0.447079598903656, 0.04747919738292694, 0.04843318462371826, 0.5154216289520264, 0.22850246727466583, 0.15985000133514404, -0.23488293588161469, 0.13294973969459534, 0.204476997256279, -0.022449836134910583, 0.41483214497566223, 0.12107889354228973, 0.4587303102016449, -0.6043596267700195, -0.10946831852197647, 0.07906250655651093, 0.0009079650044441223, -0.396751344203949, -0.1118185967206955, 0.2753412127494812, -0.26732808351516724, 0.05161896347999573, 0.017463766038417816, -0.21364542841911316, 0.017002489417791367, 0.2557520866394043, -0.24419774115085602, 0.08965057134628296, 0.18769674003124237, -0.2054343819618225, 0.0021420903503894806, 0.0930924341082573, -0.08997122198343277, 0.2701725959777832, 0.16525156795978546, 0.25258344411849976, 0.1785665601491928, 0.32924818992614746, 0.13059933483600616, 0.2140732705593109, -0.010633828118443489, 0.05815138667821884, -0.05241008475422859, -0.1389569491147995, -0.1043991893529892, 0.13865776360034943, 0.44896310567855835, -0.13330896198749542, 0.24931858479976654, 0.1345663219690323, -0.061720047146081924, 0.2072567194700241, 0.17117390036582947, 0.27955156564712524, -0.05482369661331177, -0.01932748407125473, -0.0677701085805893, -0.29084494709968567, -0.04706156998872757, -0.26521655917167664, -0.33714351058006287, -0.1657002866268158, 0.20480245351791382, -0.10282059013843536, 0.3487429916858673, 0.06532210856676102, 0.052501074969768524, -0.06849288940429688, 0.14189675450325012, 0.18939878046512604, -0.13493958115577698, -0.12328914552927017, -0.23107653856277466, -0.6346388459205627, -0.3504959046840668, 0.0057029277086257935, -0.07240481674671173, -0.33185872435569763, 0.3261372745037079, 0.21200338006019592, 0.2738454043865204, 0.20575189590454102, -0.31428995728492737, -0.07834624499082565, 0.09525895118713379, 0.08809554576873779, -0.1488064080476761, 0.060900215059518814, 0.3614415228366852, -0.131264328956604, -0.6409599781036377, 0.07471141219139099, 0.06369763612747192, 0.05874636024236679, -0.12933829426765442, -0.01270965114235878, -0.1543392837047577, -0.046384647488594055, 0.13690006732940674, 0.15844537317752838, 0.30144983530044556, -0.35222744941711426, -0.10468437522649765, 0.03054121509194374, -0.03423938900232315, -0.0911092758178711, 0.022161096334457397, -0.3623102903366089, 0.7060493230819702, 0.029005659744143486, 0.07208199799060822, -0.2977442145347595, 0.06030428782105446, 0.13117992877960205, -0.027517465874552727, -0.35079464316368103, 0.056763842701911926, -0.2715272605419159, -0.3359445333480835, 0.08602577447891235, 0.38041946291923523, -0.016881637275218964, -0.13317154347896576, -0.28234124183654785, -0.2604233920574188, 0.3593377470970154, -0.10256034135818481, -0.20231643319129944, -0.0687238872051239, 0.19359320402145386, -0.030533358454704285, 0.09379471093416214, -0.6026322841644287, -0.11227091401815414, 0.34061744809150696, -0.0750618427991867, -0.09554803371429443, 0.04843650758266449, -0.27594995498657227, 0.004674296826124191, -0.23899012804031372, 0.3581075668334961, 0.2401626706123352, -0.36395275592803955, -0.14802710711956024, -0.5026927590370178 ]
https://github.com/huggingface/datasets/issues/4185
Librispeech documentation, clarification on format
`save_to_disk` saves the dataset as an Arrow file, which is the format we use to load a dataset using memory mapping. This way the dataset does not fill your RAM, but is read from your disk instead. Therefore you can directly reload a dataset saved with `save_to_disk` using `load_from_disk`. Parquet files are used for cold storage: to use memory mapping on a Parquet dataset, you first have to convert it to Arrow. We use Parquet to reduce the I/O when pushing/downloading data from the Hugging face Hub. When you load a Parquet file from the Hub, it is converted to Arrow on the fly during the download.
https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert?
107
Librispeech documentation, clarification on format https://github.com/huggingface/datasets/blob/cd3ce34ab1604118351e1978d26402de57188901/datasets/librispeech_asr/librispeech_asr.py#L53 > Note that in order to limit the required storage for preparing this dataset, the audio > is stored in the .flac format and is not converted to a float32 array. To convert, the audio > file to a float32 array, please make use of the `.map()` function as follows: > > ```python > import soundfile as sf > def map_to_array(batch): > speech_array, _ = sf.read(batch["file"]) > batch["speech"] = speech_array > return batch > dataset = dataset.map(map_to_array, remove_columns=["file"]) > ``` Is this still true? In my case, `ds["train.100"]` returns: ``` Dataset({ features: ['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'], num_rows: 28539 }) ``` and taking the first instance yields: ``` {'file': '374-180298-0000.flac', 'audio': {'path': '374-180298-0000.flac', 'array': array([ 7.01904297e-04, 7.32421875e-04, 7.32421875e-04, ..., -2.74658203e-04, -1.83105469e-04, -3.05175781e-05]), 'sampling_rate': 16000}, 'text': 'CHAPTER SIXTEEN I MIGHT HAVE TOLD YOU OF THE BEGINNING OF THIS LIAISON IN A FEW LINES BUT I WANTED YOU TO SEE EVERY STEP BY WHICH WE CAME I TO AGREE TO WHATEVER MARGUERITE WISHED', 'speaker_id': 374, 'chapter_id': 180298, 'id': '374-180298-0000'} ``` The `audio` `array` seems to be already decoded. So such convert/decode code as mentioned in the doc is wrong? But I wonder, is it actually stored as flac on disk, and the decoding is done on-the-fly? Or was it decoded already during the preparation and is stored as raw samples on disk? Note that I also used `datasets.load_dataset("librispeech_asr", "clean").save_to_disk(...)` and then `datasets.load_from_disk(...)` in this example. Does this change anything on how it is stored on disk? A small related question: Actually I would prefer to even store it as mp3 or ogg on disk. Is this easy to convert? `save_to_disk` saves the dataset as an Arrow file, which is the format we use to load a dataset using memory mapping. This way the dataset does not fill your RAM, but is read from your disk instead. Therefore you can directly reload a dataset saved with `save_to_disk` using `load_from_disk`. Parquet files are used for cold storage: to use memory mapping on a Parquet dataset, you first have to convert it to Arrow. We use Parquet to reduce the I/O when pushing/downloading data from the Hugging face Hub. When you load a Parquet file from the Hub, it is converted to Arrow on the fly during the download.
[ -0.15423402190208435, -0.3340960741043091, -0.17598019540309906, 0.27390116453170776, 0.216354638338089, -0.23989278078079224, 0.43557384610176086, 0.15729418396949768, 0.2130369395017624, 0.030080363154411316, -0.5569843649864197, 0.2139863520860672, -0.2302837073802948, 0.08595596253871918, 0.09614800661802292, 0.09318415820598602, 0.08188328891992569, 0.2941010594367981, -0.4400457441806793, -0.17477095127105713, -0.2997762858867645, 0.2271275371313095, -0.4004110097885132, 0.0567239448428154, 0.09517405182123184, 0.06360621750354767, -0.03979315236210823, 0.04877091944217682, -0.2569728195667267, -0.1601584255695343, 0.1267194300889969, -0.05288003012537956, 0.10145775228738785, 0.2192431539297104, -0.00011621086741797626, -0.2093726247549057, 0.023554787039756775, -0.306189626455307, -0.16999760270118713, 0.15756753087043762, -0.21975377202033997, 0.04943546652793884, -0.1951780617237091, -0.19337859749794006, -0.12719498574733734, -0.20382559299468994, -0.23402027785778046, -0.3971257507801056, 0.13547903299331665, 0.4306398034095764, 0.1723315715789795, -0.0784720778465271, 0.17887185513973236, 0.2868998944759369, 0.34842821955680847, 0.10903549194335938, -0.11583863198757172, 0.008898664265871048, 0.12011464685201645, -0.06075198948383331, -0.14165529608726501, 0.3081614375114441, -0.09410318732261658, 0.08860346674919128, 0.18806621432304382, 0.11955851316452026, 0.002360410988330841, -0.38542479276657104, 0.10120006650686264, 0.3287839889526367, 0.4399702847003937, -0.06328573822975159, -0.4344284236431122, 0.09785061329603195, -0.20798668265342712, -0.09637725353240967, -0.1600910723209381, 0.34048396348953247, -0.1445980966091156, 0.12907016277313232, -0.20534493029117584, -0.15064899623394012, 0.03415237367153168, 0.0832136869430542, -0.0816689059138298, 0.44104471802711487, -0.4077048897743225, 0.1251978874206543, 0.26395276188850403, -0.2442328780889511, -0.1180930957198143, -0.2946670949459076, 0.048262178897857666, 0.41363000869750977, -0.0440325029194355, -0.24477386474609375, -0.11609000712633133, -0.2239229381084442, 0.15515649318695068, -0.414398193359375, 0.35559290647506714, -0.027097728103399277, -0.3395845592021942, 0.1265244334936142, 0.25902506709098816, 0.317657470703125, 0.03989855945110321, -0.0687340721487999, -0.09125787019729614, 0.20941394567489624, 0.0860806256532669, 0.001509159803390503, 0.002561376430094242, 0.04426833987236023, -0.22460202872753143, 0.033589281141757965, 0.05267517268657684, -0.34813380241394043, -0.2648082971572876, 0.27238908410072327, -0.6330310106277466, -0.15256141126155853, 0.04338312894105911, 0.19580459594726562, -0.03342622518539429, 0.3636600077152252, 0.10864029824733734, 0.17356564104557037, -0.07098343968391418, 0.43390998244285583, -0.11397232860326767, 0.1506478190422058, -0.1507551074028015, -0.3666742742061615, -0.014649970456957817, -0.047706592828035355, 0.26348692178726196, 0.16097459197044373, -0.059836238622665405, -0.11641272902488708, -0.1345730423927307, -0.05484309792518616, 0.8213593363761902, 0.2543647885322571, -0.15980365872383118, 0.1559334248304367, -0.07336099445819855, -0.16762611269950867, -0.27788081765174866, 0.4688282012939453, -0.052548788487911224, -0.047239016741514206, -0.036932796239852905, 0.16368462145328522, -0.025380391627550125, 0.1466594934463501, -0.04070652276277542, 0.1523047536611557, 0.2607586681842804, -0.3075159788131714, 0.3103863298892975, -0.4980788826942444, -0.3085978031158447, -0.003116746200248599, 0.31740790605545044, -0.10671034455299377, -0.54547119140625, 0.12090940773487091, 0.21841174364089966, -0.12967847287654877, 0.31798845529556274, 0.06240592151880264, -0.1621999442577362, -0.08115973323583603, -0.40316540002822876, 0.44900453090667725, 0.2591964304447174, -0.06942535936832428, -0.34211477637290955, 0.1260676085948944, 0.12056642770767212, 0.10663237422704697, 0.03079131245613098, -0.0028176666237413883, 0.40490245819091797, -0.12223414331674576, 0.25393563508987427, 0.14555221796035767, 0.31423842906951904, 0.1199975237250328, -0.21669259667396545, -0.273460328578949, -0.025925010442733765, -0.23938466608524323, -0.4691472351551056, -0.08020520955324173, 0.1083945631980896, 0.32359883189201355, 0.642852783203125, -0.22582265734672546, 0.18428947031497955, -0.020405132323503494, 0.2308959811925888, -0.00516384094953537, -0.08414475619792938, 0.032547108829021454, 0.029961995780467987, -0.15658916532993317, 0.26814985275268555, -0.010463528335094452, 0.2493058145046234, -0.17132581770420074, 0.03451940789818764, -0.12560521066188812, -0.15961049497127533, -0.1805337518453598, 0.14187033474445343, 0.17325760424137115, -0.00292942114174366, -0.3430258631706238, -0.14833827316761017, -0.06483354419469833, 0.05671001225709915, -0.14276020228862762, -0.16995665431022644, -0.09630745649337769, -0.024795731529593468, -0.0001658732071518898, 0.1799587607383728, 0.47956642508506775, 0.00978909432888031, -0.07011573761701584, -0.08664460480213165, 0.33293330669403076, 0.32836034893989563, -0.1670716255903244, -0.32158082723617554, 0.2661705017089844, 0.10241344571113586, 0.0559852235019207, 0.3347049951553345, 0.08036614954471588, 0.1446886956691742, 0.008991822600364685, -0.10231857746839523, 0.28095442056655884, 0.26020893454551697, 0.41501396894454956, 0.30727559328079224, 0.03140842914581299, 0.14047470688819885, 0.27219492197036743, -0.366629958152771, -0.17491799592971802, -0.34395599365234375, -0.4124442934989929, 0.33290353417396545, 0.2261430323123932, -0.4646034240722656, 0.09177958220243454, 0.5448023676872253, -0.050761133432388306, -0.04506542533636093, 0.05910344421863556, -0.3216879069805145, -0.2651134729385376, 0.2766362726688385, -0.0029755160212516785, 0.2848723530769348, 0.11209582537412643, 0.2859368324279785, -0.3420165181159973, -0.011902579106390476, -0.014162354171276093, 0.1763191819190979, 0.06984619796276093, 0.0053146835416555405, 0.17441943287849426, 0.039344221353530884, -0.17210829257965088, -0.3514680862426758, -0.122256338596344, -0.20517492294311523, -0.021615127101540565, -0.19145305454730988, -0.3006506860256195, -0.030216723680496216, -0.20871055126190186, -0.3192378580570221, -0.14505936205387115, 0.041810549795627594, -0.11044776439666748, -0.10660366714000702, 0.12566986680030823, -0.2035188525915146, 0.22696475684642792, 0.07467664778232574, -0.09390436112880707, -0.020377056673169136, -0.020045174285769463, 0.12768851220607758, 0.27254220843315125, -0.2145109474658966, 0.10641521215438843, 0.026641864329576492, 0.13724011182785034, -0.026156796142458916, 0.2865576446056366, -0.11782005429267883, -0.4260062575340271, -0.13339877128601074, 0.26938024163246155, -0.17154358327388763, 0.08109944313764572, 0.2522566318511963, 0.28801071643829346, -0.20642656087875366, -0.34887930750846863, 0.125153586268425, -0.24001364409923553, -0.25628846883773804, -0.019097477197647095, 0.19520415365695953, 0.09607740491628647, -0.3290713429450989, -0.3493409752845764, -0.05713316798210144, -0.23513397574424744, 0.2053949236869812, -0.04732123389840126, 0.33216333389282227, 0.09872729331254959, 0.13971194624900818, 0.1539786159992218, 0.06177050992846489, -0.00876898318529129, -0.38648608326911926, 0.09092137217521667, 0.24727417528629303, -0.051362283527851105, -0.10971508920192719, -0.02545752003788948, -0.04186118021607399, 0.1501147747039795, 0.026117555797100067, -0.06704822182655334, -0.2500666677951813, -0.1688150316476822, -0.20106415450572968, -0.10225057601928711, 0.2995704710483551, 0.32388836145401, 0.063380166888237, -0.027595210820436478, -0.23454779386520386, -0.15504363179206848, 0.06949147582054138, 0.3716652989387512, 0.27205565571784973, 0.10905242711305618, 0.13031265139579773, -0.029738830402493477, 0.5409639477729797, 0.14397244155406952, -0.07837966084480286, -0.11476323008537292, -0.13287849724292755, 0.22752925753593445, -0.19555699825286865, 0.0009195394814014435, 0.26548948884010315, -0.047173455357551575, -0.24226979911327362, 0.28036221861839294, 0.1963619887828827, -0.3379116952419281, 0.12113681435585022, 0.5350009799003601, -0.3518291115760803, -0.13116542994976044, 0.20390065014362335, -0.10923688113689423, 0.056524135172367096, 0.012097842991352081, 0.13855281472206116, 0.3264894187450409, -0.1831558644771576, -0.14296558499336243, -0.06081885099411011, 0.3778916001319885, -0.12293599545955658, -0.30530545115470886, -0.20593960583209991, -0.8430304527282715, 0.3108459711074829, 0.12964782118797302, 0.5271250009536743, 0.09216387569904327, -0.33373546600341797, 0.03670016676187515, 0.019212186336517334, 0.21367979049682617, -0.18546895682811737, -0.05980346351861954, 0.12210129201412201, 0.5030914545059204, -0.23520900309085846, -0.10376109182834625, -0.501445472240448, 0.23131702840328217, 0.19407357275485992, 0.15404483675956726, -0.28513094782829285, -0.1498832404613495, 0.27907538414001465, 0.37389758229255676, 0.1395091414451599, 0.429482638835907, -0.22139422595500946, -0.49145346879959106, 0.009542705491185188, 0.042052362114191055, 0.18239907920360565, 0.1690860390663147, -0.09886309504508972, -0.10696688294410706, 0.3594481348991394, -0.1121460348367691, 0.29490530490875244, -0.1945742666721344, 0.5291569828987122, 0.41284850239753723, -0.0546378530561924, 0.09293907880783081, 0.028062306344509125, -0.06460870057344437, 0.20798757672309875, -0.3096732795238495, 0.5029841661453247, 0.41315513849258423, -0.23940090835094452, 0.5206177234649658, 0.3403359055519104, -0.1514889895915985, -0.20230352878570557, -0.048210181295871735, 0.10342657566070557, -0.14534546434879303, 0.1274656504392624, 0.4268476665019989, 0.07370032370090485, -0.17475642263889313, -0.8883275985717773, 0.20989692211151123, 0.0379478856921196, -0.14133623242378235, 0.19017912447452545, -0.06690812110900879, -0.3320239782333374, 0.4743841886520386, 0.014486931264400482, 1.0012598037719727, -0.1401289403438568, 0.4054601192474365, 0.08015041053295135, -0.0582280308008194, -0.0018806378357112408, -0.11656071990728378, 0.2925007939338684, -0.28549718856811523, 0.11049765348434448, -0.07296540588140488, -0.12191177904605865, 0.05727274343371391, 0.27223849296569824, -0.22168035805225372, 0.14263677597045898, 0.004735223948955536, 0.38019782304763794, -0.11137138307094574, 0.20316986739635468, -0.18880537152290344, -0.21074680984020233, -0.050162263214588165, 0.0712728500366211, 0.09593120217323303, -0.00331999734044075, 0.19088053703308105, -0.066282719373703, -0.2829696834087372, -0.27820754051208496, -0.21157097816467285, 0.0215349979698658, -0.42609748244285583, 0.012034435756504536, -0.27980130910873413, -0.4624323844909668, -0.24547675251960754, 0.5334237813949585, -0.4848814606666565, 0.3236006498336792, 0.21383728086948395, -0.13547272980213165, 0.5590692162513733, 0.5515835285186768, 0.31163737177848816, -0.01882125250995159, -0.11170870065689087, 0.1837446093559265, 0.03800850361585617, 0.16614320874214172, -0.08066418021917343, -0.19025786221027374, -0.06766914576292038, 0.1861061453819275, 0.2634868025779724, -0.6092756986618042, -0.4351523816585541, 0.26634612679481506, -0.3400941789150238, 0.08115600049495697, 0.08757619559764862, -0.039118267595767975, -0.45930635929107666, 0.3327951431274414, 0.07422610372304916, -0.2625935673713684, 0.022277291864156723, 0.3910152018070221, 0.1485087275505066, 0.06971278786659241, 0.402296245098114, -0.22549870610237122, -0.07252904027700424, -0.21759802103042603, 0.08317164331674576, -0.048674438148736954, -0.18681195378303528, -0.06802421063184738, -0.19082385301589966, -0.14738039672374725, -0.05970830097794533, 0.37094730138778687, -0.1025208979845047, 0.44806793332099915, -0.4269314408302307, -0.2532949447631836, -0.25500717759132385, 0.30108290910720825, 0.13779506087303162, 0.562933623790741, -0.28914013504981995, -0.08361022174358368, -0.07651180773973465, -0.39913880825042725, -0.2999732494354248, 0.0514090433716774, 0.06826603412628174, 0.30734455585479736, 0.13587316870689392, 0.22643864154815674, 0.01492321491241455, -0.1930386871099472, 0.1997731775045395, 0.16089868545532227, -0.1596696674823761, -0.16018226742744446, 0.04923762008547783, 0.12569262087345123, 0.09744137525558472, -0.43787598609924316, -0.21015489101409912, -0.09736832231283188, -0.3540395498275757, -0.33801987767219543, -0.020458297803997993, 0.2995050251483917, -0.00490068644285202, -0.0517643578350544, -0.03973550722002983, -0.0697474256157875, 0.24594222009181976, 0.005468778312206268, -0.01984715461730957, 0.21797612309455872, 0.19649866223335266, 0.21837931871414185, 0.12183965742588043, -0.027543146163225174, 0.5331257581710815, 0.263575941324234, -0.326718807220459, 0.20478835701942444, 0.18162254989147186, 0.059319037944078445, 0.038977671414613724, 0.2862647473812103, 0.8134655952453613, 0.37831225991249084, -0.16854876279830933, -0.27335500717163086, -0.01933731697499752, 0.24321700632572174, -0.08906358480453491, -0.05645887181162834, 0.2598472237586975, -0.06120089441537857, 0.11702089011669159, 0.34301403164863586, 0.12264274060726166, 0.11331488192081451, 0.2428925335407257, -0.08603519201278687, -0.02164836972951889, 0.05470018833875656, 0.19513706862926483, 0.6959061622619629, -0.1750025600194931, 0.15927445888519287, 0.15463149547576904, -0.3309009075164795, 0.13732390105724335, 0.447079598903656, 0.04747919738292694, 0.04843318462371826, 0.5154216289520264, 0.22850246727466583, 0.15985000133514404, -0.23488293588161469, 0.13294973969459534, 0.204476997256279, -0.022449836134910583, 0.41483214497566223, 0.12107889354228973, 0.4587303102016449, -0.6043596267700195, -0.10946831852197647, 0.07906250655651093, 0.0009079650044441223, -0.396751344203949, -0.1118185967206955, 0.2753412127494812, -0.26732808351516724, 0.05161896347999573, 0.017463766038417816, -0.21364542841911316, 0.017002489417791367, 0.2557520866394043, -0.24419774115085602, 0.08965057134628296, 0.18769674003124237, -0.2054343819618225, 0.0021420903503894806, 0.0930924341082573, -0.08997122198343277, 0.2701725959777832, 0.16525156795978546, 0.25258344411849976, 0.1785665601491928, 0.32924818992614746, 0.13059933483600616, 0.2140732705593109, -0.010633828118443489, 0.05815138667821884, -0.05241008475422859, -0.1389569491147995, -0.1043991893529892, 0.13865776360034943, 0.44896310567855835, -0.13330896198749542, 0.24931858479976654, 0.1345663219690323, -0.061720047146081924, 0.2072567194700241, 0.17117390036582947, 0.27955156564712524, -0.05482369661331177, -0.01932748407125473, -0.0677701085805893, -0.29084494709968567, -0.04706156998872757, -0.26521655917167664, -0.33714351058006287, -0.1657002866268158, 0.20480245351791382, -0.10282059013843536, 0.3487429916858673, 0.06532210856676102, 0.052501074969768524, -0.06849288940429688, 0.14189675450325012, 0.18939878046512604, -0.13493958115577698, -0.12328914552927017, -0.23107653856277466, -0.6346388459205627, -0.3504959046840668, 0.0057029277086257935, -0.07240481674671173, -0.33185872435569763, 0.3261372745037079, 0.21200338006019592, 0.2738454043865204, 0.20575189590454102, -0.31428995728492737, -0.07834624499082565, 0.09525895118713379, 0.08809554576873779, -0.1488064080476761, 0.060900215059518814, 0.3614415228366852, -0.131264328956604, -0.6409599781036377, 0.07471141219139099, 0.06369763612747192, 0.05874636024236679, -0.12933829426765442, -0.01270965114235878, -0.1543392837047577, -0.046384647488594055, 0.13690006732940674, 0.15844537317752838, 0.30144983530044556, -0.35222744941711426, -0.10468437522649765, 0.03054121509194374, -0.03423938900232315, -0.0911092758178711, 0.022161096334457397, -0.3623102903366089, 0.7060493230819702, 0.029005659744143486, 0.07208199799060822, -0.2977442145347595, 0.06030428782105446, 0.13117992877960205, -0.027517465874552727, -0.35079464316368103, 0.056763842701911926, -0.2715272605419159, -0.3359445333480835, 0.08602577447891235, 0.38041946291923523, -0.016881637275218964, -0.13317154347896576, -0.28234124183654785, -0.2604233920574188, 0.3593377470970154, -0.10256034135818481, -0.20231643319129944, -0.0687238872051239, 0.19359320402145386, -0.030533358454704285, 0.09379471093416214, -0.6026322841644287, -0.11227091401815414, 0.34061744809150696, -0.0750618427991867, -0.09554803371429443, 0.04843650758266449, -0.27594995498657227, 0.004674296826124191, -0.23899012804031372, 0.3581075668334961, 0.2401626706123352, -0.36395275592803955, -0.14802710711956024, -0.5026927590370178 ]
https://github.com/huggingface/datasets/issues/4182
Zenodo.org download is not responding
Hi @dkajtoch, please note that at HuggingFace we are not hosting this dataset: we are just using a script to download their data file and create a dataset from it. It was the dataset owners decision to host their data at Zenodo. You can see this on their website: https://marcobaroni.org/composes/sick.html And yes, you are right: Zenodo is currently having some incidents and people are reporting problems from it. On the other hand, we could contact the data owners and propose them to host their data at our Hugging Face Hub. @julien-c I guess so.
## Describe the bug Source download_url from zenodo.org does not respond. `_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"` Other datasets also use zenodo.org to store data and they cannot be downloaded as well. It would be better to actually use more reliable way to store original data like s3 bucket. ## Steps to reproduce the bug ```python load_dataset("sick") ``` ## Expected results Dataset should be downloaded. ## Actual results ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)"))) ## Environment info - `datasets` version: 2.1.0 - Platform: Darwin-21.4.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 7.0.0 - Pandas version: 1.3.5
94
Zenodo.org download is not responding ## Describe the bug Source download_url from zenodo.org does not respond. `_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"` Other datasets also use zenodo.org to store data and they cannot be downloaded as well. It would be better to actually use more reliable way to store original data like s3 bucket. ## Steps to reproduce the bug ```python load_dataset("sick") ``` ## Expected results Dataset should be downloaded. ## Actual results ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)"))) ## Environment info - `datasets` version: 2.1.0 - Platform: Darwin-21.4.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 7.0.0 - Pandas version: 1.3.5 Hi @dkajtoch, please note that at HuggingFace we are not hosting this dataset: we are just using a script to download their data file and create a dataset from it. It was the dataset owners decision to host their data at Zenodo. You can see this on their website: https://marcobaroni.org/composes/sick.html And yes, you are right: Zenodo is currently having some incidents and people are reporting problems from it. On the other hand, we could contact the data owners and propose them to host their data at our Hugging Face Hub. @julien-c I guess so.
[ -0.010786246508359909, -0.15618182718753815, -0.12496981024742126, 0.38870877027511597, 0.41914844512939453, -0.12065117061138153, 0.2301645427942276, 0.20202240347862244, -0.08204000443220139, 0.09544726461172104, -0.6322539448738098, -0.14407263696193695, 0.24856065213680267, 0.09001778066158295, 0.03016597405076027, -0.04849115014076233, -0.045397184789180756, 0.05108451098203659, -0.2552127242088318, -0.1411941647529602, -0.11879593133926392, 0.17247653007507324, -0.176500603556633, 0.16718725860118866, 0.22606605291366577, 0.14415830373764038, -0.27933040261268616, 0.1474706530570984, -0.2528526782989502, -0.3376700282096863, 0.48021310567855835, 0.10012759268283844, 0.10043995082378387, 0.4036627411842346, -0.00011003716645063832, -0.0820993110537529, 0.27042439579963684, -0.02730788290500641, -0.14130783081054688, -0.23902620375156403, -0.4468907415866852, -0.4307168126106262, -0.23895421624183655, -0.057203471660614014, 0.03523755073547363, -0.11238717287778854, 0.15368707478046417, 0.06834777444601059, 0.3335329294204712, 0.32704633474349976, 0.20247413218021393, 0.5704357624053955, 0.4255387485027313, -0.12986105680465698, 0.2936767041683197, -0.07393921911716461, -0.3079017400741577, 0.6192811131477356, 0.22046388685703278, 0.1338263303041458, 0.04709382355213165, 0.19537387788295746, -0.2217792272567749, 0.025932179763913155, 0.009717632085084915, 0.007871625944972038, 0.03108987957239151, -0.24686282873153687, -0.09144129604101181, 0.34579458832740784, 0.5377175807952881, 0.051380258053541183, -0.4824998378753662, -0.19472673535346985, 0.12323456257581711, -0.17488497495651245, 0.10223609209060669, 0.063054658472538, -0.05194959044456482, 0.24610954523086548, -0.12990577518939972, -0.05040329322218895, -0.22917969524860382, 0.38789278268814087, 0.017417490482330322, 0.16659122705459595, -0.3728858232498169, 0.09516231715679169, -0.06928549706935883, -0.14912346005439758, 0.25090351700782776, -0.3326352834701538, -0.04041050747036934, 0.05478229746222496, -0.2756779193878174, -0.1610850989818573, -0.1419898271560669, 0.23505207896232605, 0.5485135912895203, 0.10095247626304626, 0.21933023631572723, -0.08371793478727341, 0.04897402226924896, -0.1817367672920227, 0.35217586159706116, -0.07388290017843246, -0.1327977180480957, -0.1767013669013977, 0.25512683391571045, 0.40961983799934387, 0.10922886431217194, -0.08549191057682037, -0.1248004138469696, -0.04169289395213127, 0.15037474036216736, -0.23323538899421692, 0.637111485004425, -0.2630580961704254, -0.15867969393730164, 0.16992369294166565, -0.11227668821811676, 0.004482550080865622, -0.02231684699654579, 0.3514017164707184, -0.4906252920627594, 0.24865341186523438, -0.14839476346969604, 0.034609682857990265, -0.1912297010421753, -0.15817506611347198, -0.08931852132081985, -0.07574781775474548, -0.0026565901935100555, 0.18098948895931244, 0.09013831615447998, -0.49632519483566284, 0.23447997868061066, 0.07366573065519333, 0.12638618052005768, -0.22473464906215668, -0.09179981052875519, -0.1309058964252472, 0.08456775546073914, 0.1711283028125763, 0.27959972620010376, 0.21480421721935272, -0.06000591441988945, 0.32545918226242065, 0.001401372253894806, -0.0817122533917427, -0.29598110914230347, -0.3982299566268921, -0.3946211040019989, 0.1718314290046692, -0.4180064797401428, -0.18623831868171692, 0.04324458912014961, -0.34315845370292664, 0.06383021175861359, -0.24529071152210236, 0.09197904169559479, 0.03149799630045891, -0.07454590499401093, -0.11318209767341614, 0.3619406223297119, 0.4086368680000305, 0.3861088454723358, 0.16139137744903564, -0.3655729293823242, 0.01922842487692833, 0.07540969550609589, 0.10503992438316345, -0.09334145486354828, 0.08458234369754791, -0.2252478450536728, -0.18397343158721924, 0.1097903922200203, -0.5665758848190308, -0.7386366724967957, 0.12825462222099304, -0.13982564210891724, 0.1787799894809723, -0.11293873935937881, 0.10382010042667389, 0.34495726227760315, 0.16062793135643005, -0.006754279136657715, 0.2540186047554016, 0.0024167224764823914, 0.055488117039203644, -0.27176371216773987, -0.19036059081554413, -0.453863263130188, 0.14858275651931763, 0.0614648312330246, -0.05277181416749954, 0.060379911214113235, 0.15680208802223206, 0.22480911016464233, 0.17200066149234772, 0.13534528017044067, 0.19600339233875275, 0.42037737369537354, 0.18628574907779694, -0.14729638397693634, -0.15405048429965973, -0.37499311566352844, 0.17509156465530396, 0.23909151554107666, 0.04847615212202072, 0.08642856031656265, 0.01362723857164383, -0.31433045864105225, 0.018114106729626656, -0.18945199251174927, -0.08874954283237457, 0.11301980912685394, 0.07849162817001343, 0.44512003660202026, 0.300871342420578, -0.07048477977514267, 0.1973530352115631, 0.2174176275730133, 0.37870797514915466, -0.2304653525352478, 0.41274136304855347, 0.0037624649703502655, -0.10342960059642792, -0.032044366002082825, -0.07985108345746994, 0.1344318836927414, -0.015759119763970375, -0.06524474918842316, 0.20391467213630676, -0.24918334186077118, 0.32121169567108154, 0.08407050371170044, -0.005370214581489563, 0.18436583876609802, -0.2147165685892105, 0.03426247462630272, 0.1755910962820053, 0.24400056898593903, 0.29399374127388, 0.11245456337928772, 0.48720312118530273, -0.176405131816864, 0.021524854004383087, -0.10229762643575668, 0.13780298829078674, 0.41200971603393555, -0.06518566608428955, -0.1533471792936325, 0.15249617397785187, 0.14536328613758087, -0.029278278350830078, 0.34450429677963257, 0.016943667083978653, -0.1875225454568863, -0.03955135494470596, 0.2424784153699875, -0.17799729108810425, 0.05287948623299599, 0.0320647731423378, -0.06878643482923508, -0.12807893753051758, 0.2506062090396881, 0.2190927118062973, 0.5523884892463684, 0.08872438967227936, -0.024997491389513016, 0.05894874781370163, 0.03205978125333786, -0.16980695724487305, 0.16494028270244598, 0.24812863767147064, 0.30707788467407227, 0.3869225084781647, 0.10159628093242645, 0.0806950107216835, -0.33014875650405884, -0.24364562332630157, -0.07964090257883072, 0.09401256591081619, -0.2958884537220001, -0.18693993985652924, -0.08159865438938141, -0.2520657181739807, 0.08617453277111053, -0.11431486904621124, -0.38225144147872925, -0.4282657206058502, -0.123225137591362, 0.6596513986587524, 0.0033361390233039856, -0.07865729928016663, -0.4382532835006714, 0.1253224015235901, -0.0491737499833107, 0.052640147507190704, -0.3399323523044586, 0.10823503881692886, -0.08995547145605087, 0.08505117893218994, 0.11020339280366898, -0.23372986912727356, 0.22481727600097656, -0.3637155592441559, 0.030370336025953293, -0.59465491771698, 0.018576905131340027, 0.11403490602970123, -0.04165711998939514, 0.22293215990066528, 0.0258578360080719, 0.4227108955383301, 0.054945528507232666, 0.135144904255867, 0.25180718302726746, -0.30022990703582764, -0.010096055455505848, 0.0671394094824791, -0.0832282304763794, 0.08456838876008987, 0.20897451043128967, -0.04941924661397934, -0.32990700006484985, -0.3280714452266693, 0.19195786118507385, -0.16863813996315002, 0.16674697399139404, 0.20056307315826416, -0.04906454682350159, 0.26598846912384033, -0.27507269382476807, -0.021778607740998268, -0.21333064138889313, -0.8671713471412659, 0.5242546200752258, -0.19956591725349426, -0.3119104206562042, 0.10454840958118439, 0.13939493894577026, 0.2136479616165161, -0.1300906538963318, -0.31176528334617615, -0.19501814246177673, -0.2480192929506302, 0.3419272005558014, 0.04757166653871536, -0.04526226222515106, 0.3137533664703369, -0.3296894133090973, -0.045547910034656525, -0.03682391718029976, 0.06922291219234467, -0.274013489484787, 0.26308542490005493, 0.3838397264480591, -0.051062799990177155, 0.2727837860584259, 0.08773426711559296, 0.5051257014274597, 0.137318417429924, 0.07582312822341919, 0.5451288223266602, -0.18813304603099823, 0.3799859583377838, -0.00013652443885803223, -0.3940145671367645, -0.20461183786392212, -0.17028018832206726, -0.06156069412827492, 0.07445412129163742, 0.2500590682029724, 0.4561143219470978, -0.37131640315055847, -0.4056674838066101, -0.39740994572639465, -0.32831043004989624, -0.18392248451709747, 0.08089233934879303, -0.06378234177827835, 0.19159725308418274, 0.05510934442281723, 0.04896171763539314, -0.28120243549346924, 0.016236621886491776, 0.392642080783844, 0.25409889221191406, -0.05134928971529007, -0.066868856549263, 0.2714040279388428, -0.584494411945343, 0.23894087970256805, -0.0831315666437149, 0.12390023469924927, -0.08759801089763641, 0.13026398420333862, 0.21677899360656738, -0.17709249258041382, 0.576416552066803, -0.11151158064603806, 0.26661914587020874, -0.250523179769516, -0.030712809413671494, -0.21295011043548584, -0.029672769829630852, -0.035954248160123825, -0.1065555065870285, 0.05692809075117111, 0.5176217555999756, -0.25681832432746887, -0.13477732241153717, 0.21135789155960083, -0.06612478941679001, -0.059409189969301224, -0.16855187714099884, -0.021556274965405464, -0.5825167298316956, -0.22132913768291473, 0.0162101611495018, 0.08254419267177582, 0.06523174792528152, 0.014137431979179382, -0.24942097067832947, 0.17169423401355743, 0.24654236435890198, -0.01868315041065216, 0.05979021266102791, -0.061106666922569275, 0.11817909777164459, 0.5757108330726624, 0.1114291250705719, -0.2437598705291748, 0.4122515022754669, 0.7268359661102295, 0.20053112506866455, -0.6620010137557983, -0.04913722723722458, 0.031145364046096802, -0.09368700534105301, 0.2610204219818115, 0.11515398323535919, -0.14912977814674377, -0.039072271436452866, 0.12502963840961456, -0.18053428828716278, -0.04826343059539795, 0.4818183183670044, 0.17547431588172913, -0.11400162428617477, -0.09425891935825348, 0.27726760506629944, -0.06901422142982483, 0.0012564882636070251, 0.30809685587882996, 0.2871535122394562, -0.0751931443810463, -0.03405744954943657, 0.12975136935710907, 1.0124074220657349, -0.367370069026947, 0.4317395091056824, 0.40740787982940674, -0.27325373888015747, 0.5415456295013428, 0.10606765747070312, -0.011954160407185555, -0.2073805034160614, -0.3728499412536621, -0.11401070654392242, -0.03727664425969124, 0.2915017008781433, -0.16081836819648743, 0.029001791030168533, 0.19254209101200104, -0.045532748103141785, 0.38933706283569336, 0.09942314773797989, 0.17025308310985565, -0.49333471059799194, -0.20888200402259827, -0.5196616649627686, 0.17121091485023499, -0.05586226284503937, 0.5318417549133301, -0.042873188853263855, -0.2208939790725708, -0.31337836384773254, 0.03659974783658981, -0.1867685616016388, 0.3620375096797943, 0.17023611068725586, -0.1264503449201584, -0.2125336229801178, 0.01604769378900528, -0.29545173048973083, 0.2670171856880188, -0.1641245186328888, 0.0351836234331131, -0.30659738183021545, 0.24889181554317474, -0.019218318164348602, 0.1202496588230133, 0.19234058260917664, -0.20187656581401825, -0.08411479741334915, -0.15447267889976501, -0.2457367479801178, 0.06296743452548981, 0.1448899805545807, -0.19140678644180298, -0.28416046500205994, -0.14769819378852844, -0.18888337910175323, -0.4072929620742798, -0.08445216715335846, -0.24170932173728943, -0.05973528325557709, -0.16339708864688873, 0.14371740818023682, 0.20010584592819214, 0.011689429171383381, -0.06079120188951492, -0.01532147079706192, -0.22613021731376648, -0.12104889750480652, 0.554710328578949, -0.20675137639045715, 0.22087326645851135, 0.11211510747671127, -0.060349538922309875, -0.08395141363143921, -0.05828645080327988, 0.4117491543292999, -0.1736169010400772, -0.325459748506546, -0.04596599191427231, -0.3126005232334137, 0.284980833530426, -0.3454762101173401, -0.060138363391160965, 0.3317245841026306, -0.35751208662986755, 0.10265780985355377, -0.44120046496391296, -0.0363975465297699, 0.17096951603889465, 0.24580664932727814, -0.05489649251103401, 0.15403535962104797, -0.05149940773844719, 0.2308887541294098, -0.2946317791938782, -0.28953441977500916, -0.06472378969192505, -0.1509283483028412, -0.20697292685508728, 0.01458919420838356, -0.1687690019607544, 0.2669663727283478, -0.21767351031303406, 0.11730144917964935, 0.12731879949569702, -0.17784830927848816, -0.15274327993392944, -0.19839555025100708, 0.18238858878612518, 0.2611323297023773, -0.21761322021484375, 0.10573503375053406, -0.31179362535476685, -0.12987935543060303, -0.046016231179237366, -0.12022876739501953, 0.48670315742492676, 0.043310895562171936, -0.10582613199949265, 0.07153578847646713, 0.18055900931358337, -0.3095875382423401, 0.28556814789772034, -0.1289287507534027, 0.11118603497743607, -0.07634877413511276, 0.2991607189178467, 0.13052912056446075, -0.09148480743169785, -0.40992027521133423, -0.11369285732507706, 0.004649147391319275, -0.16497808694839478, 0.7942661046981812, 0.026566244661808014, -0.005490798503160477, 0.219604954123497, 0.4318692982196808, 0.43991291522979736, -0.09545060247182846, 0.09526652842760086, -0.015009969472885132, 0.2000894844532013, -0.1513340026140213, -0.08762621134519577, -0.24291586875915527, -0.057644426822662354, -0.09682931751012802, 0.007904991507530212, -0.309338241815567, -0.03112601861357689, -0.053615644574165344, 0.0038878899067640305, 0.5618658661842346, 0.2501212954521179, 0.0696854442358017, 0.42101073265075684, -0.0988687127828598, 0.13782663643360138, 0.3727898895740509, -0.04461154714226723, 0.025147773325443268, 0.0198892280459404, -0.10942887514829636, 0.12433594465255737, -0.18121746182441711, 0.4934326410293579, 0.047610558569431305, -0.2802632749080658, 0.09065768122673035, 0.02742934226989746, -0.21821331977844238, 0.022897593677043915, 0.08692347258329391, 0.17094489932060242, -0.1624213308095932, -0.04554399102926254, -0.4198607802391052, 0.3585760295391083, 0.07303823530673981, -0.09047801792621613, -0.2183205783367157, -0.045072972774505615, -0.006783924996852875, 0.16162818670272827, -0.045204151421785355, -0.48984020948410034, 0.32203182578086853, 0.1559617817401886, -0.09648829698562622, -0.4847474694252014, -0.27906087040901184, 0.27920636534690857, 0.16523464024066925, -0.3486142158508301, 0.3175116181373596, 0.02135206013917923, -0.09183871746063232, -0.21680894494056702, 0.3463965058326721, 0.37992897629737854, 0.050360824912786484, 0.25330835580825806, 0.26877471804618835, 0.08558396995067596, 0.06186500936746597, 0.10317840427160263, 0.28778204321861267, 0.13007697463035583, 0.37770214676856995, 0.10957561433315277, 0.21827317774295807, -0.1657761037349701, 0.06536148488521576, 0.01262599602341652, 0.13079330325126648, -0.3206535279750824, 0.17887476086616516, -0.18561875820159912, -0.024381250143051147, 0.06670175492763519, 0.03475205600261688, -0.2864712178707123, -0.006985961459577084, 0.15713295340538025, -0.22850266098976135, 0.10785311460494995, -0.28670746088027954, 0.06484551727771759, -0.03466430678963661, 0.1881302148103714, 0.34295350313186646, 0.026396512985229492, -0.14294929802417755, 0.12501204013824463, -0.49302753806114197, 0.33469563722610474, -0.240057110786438, -0.2996950149536133, -0.03683839365839958, -0.05880149453878403, -0.05218266695737839, 0.2981151342391968, 0.020425178110599518, -0.13909640908241272, 0.02253800258040428, 0.30008918046951294, -0.20651617646217346, -0.17750616371631622, -0.23269478976726532, 0.22267356514930725, 0.010870717465877533, -0.2906755208969116, 0.5091782212257385, 0.026623740792274475, 0.02841116487979889, 0.06670273840427399, 0.0011166930198669434, 0.1702369600534439, -0.4008188247680664, 0.25012141466140747, -0.000154886394739151, 0.17339834570884705, -0.15596114099025726, -0.03365465626120567, -0.27047863602638245, -0.19668899476528168, -0.023556236177682877, 0.17603027820587158, 0.021091055124998093, -0.21707741916179657, 0.1219719722867012, -0.18245212733745575, -0.1934613436460495, 0.281624972820282, -0.230758398771286, 0.20606032013893127, 0.028257953003048897, -0.08584105223417282, 0.05342420935630798, -0.1345043182373047, -0.05381181091070175, 0.060044605284929276, -0.17850059270858765, -0.10414592176675797, -0.1968805342912674, -0.16919349133968353, 0.3762233257293701, -0.43229883909225464, 0.030207056552171707, 0.004252546466886997, 0.35861438512802124, -0.026721686124801636, -0.3035338521003723, -0.2059764862060547, 0.1973145306110382, 0.37729471921920776, 0.005871662870049477, -0.07605552673339844, 0.13104219734668732, 0.011310831643640995, -0.117593914270401, -0.005339324474334717, 0.2784770131111145, 0.047063712030649185, -0.29235750436782837, 0.36431705951690674, -0.0604863315820694 ]
https://github.com/huggingface/datasets/issues/4182
Zenodo.org download is not responding
Thanks @albertvillanova. I know that the problem lies in the source data. I just wanted to point out that these kind of problems are unavoidable without having one place where data sources are cached. Websites may go down or data sources may move. Having a copy in Hugging Face Hub would be a great solution.
## Describe the bug Source download_url from zenodo.org does not respond. `_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"` Other datasets also use zenodo.org to store data and they cannot be downloaded as well. It would be better to actually use more reliable way to store original data like s3 bucket. ## Steps to reproduce the bug ```python load_dataset("sick") ``` ## Expected results Dataset should be downloaded. ## Actual results ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)"))) ## Environment info - `datasets` version: 2.1.0 - Platform: Darwin-21.4.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 7.0.0 - Pandas version: 1.3.5
55
Zenodo.org download is not responding ## Describe the bug Source download_url from zenodo.org does not respond. `_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"` Other datasets also use zenodo.org to store data and they cannot be downloaded as well. It would be better to actually use more reliable way to store original data like s3 bucket. ## Steps to reproduce the bug ```python load_dataset("sick") ``` ## Expected results Dataset should be downloaded. ## Actual results ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)"))) ## Environment info - `datasets` version: 2.1.0 - Platform: Darwin-21.4.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 7.0.0 - Pandas version: 1.3.5 Thanks @albertvillanova. I know that the problem lies in the source data. I just wanted to point out that these kind of problems are unavoidable without having one place where data sources are cached. Websites may go down or data sources may move. Having a copy in Hugging Face Hub would be a great solution.
[ -0.0809183120727539, 0.09524381160736084, -0.10966724157333374, 0.29676809906959534, 0.40415459871292114, -0.1066378727555275, 0.17370332777500153, 0.24060386419296265, -0.28922560811042786, 0.08636993914842606, -0.5147074460983276, -0.12862534821033478, 0.43036067485809326, -0.12445157766342163, -0.009448890574276447, 0.01545879989862442, -0.060760967433452606, 0.15374965965747833, -0.19674211740493774, -0.14727270603179932, -0.09920180588960648, 0.12085270136594772, -0.12773531675338745, 0.04485751688480377, 0.15721957385540009, 0.23321132361888885, -0.2643035650253296, 0.03439432382583618, -0.2067796140909195, -0.2901788055896759, 0.44314926862716675, 0.171624556183815, 0.1056404784321785, 0.32855191826820374, -0.00011532306234585121, -0.10730428248643875, 0.31088435649871826, -0.10965205729007721, -0.281440794467926, -0.2097901552915573, -0.6278690695762634, -0.404144287109375, -0.17657959461212158, -0.0060762763023376465, 0.0385260134935379, -0.05167606845498085, 0.15348614752292633, -0.07663853466510773, 0.28334444761276245, 0.4098046123981476, 0.16600815951824188, 0.3434540629386902, 0.3697381913661957, -0.07720264792442322, 0.3209773302078247, -0.3033832311630249, -0.26970145106315613, 0.63238525390625, 0.28035515546798706, 0.18255534768104553, 0.05732075497508049, 0.1795492023229599, -0.23676007986068726, 0.05329298600554466, 0.029948251321911812, -0.025871410965919495, 0.020721834152936935, -0.20498910546302795, 0.005860656499862671, 0.2837570905685425, 0.7337824106216431, -0.008141964673995972, -0.5505897402763367, -0.1663132905960083, -0.027970485389232635, -0.11405497789382935, 0.1471860557794571, 0.08936040848493576, -0.029302090406417847, 0.24897082149982452, -0.1515399068593979, -0.08337695896625519, -0.21759654581546783, 0.5560333728790283, 0.0004052072763442993, 0.23210982978343964, -0.20541155338287354, 0.12491586804389954, -0.12739065289497375, -0.011358384042978287, 0.5908730626106262, -0.42158934473991394, -0.030800621956586838, 0.02369813248515129, -0.2710375487804413, -0.16176895797252655, -0.15800827741622925, 0.17862284183502197, 0.41408059000968933, 0.16735637187957764, 0.1856190413236618, -0.06522064656019211, 0.0773005411028862, -0.1664641797542572, 0.2943952977657318, 0.03658251836895943, -0.19545608758926392, -0.1312217116355896, 0.32040536403656006, 0.28828802704811096, 0.012329846620559692, -0.10477884858846664, -0.14186608791351318, -0.06621140986680984, 0.29458415508270264, -0.13966849446296692, 0.483076810836792, -0.2982107996940613, -0.002136955037713051, 0.12791021168231964, -0.2566865384578705, 0.030592607334256172, -0.04648646339774132, 0.3266504406929016, -0.4617665112018585, 0.43103930354118347, -0.11341556906700134, 0.08426691591739655, -0.220728799700737, -0.28117886185646057, -0.09202764183282852, -0.0727541446685791, -0.07950430363416672, 0.15329401195049286, 0.16419318318367004, -0.40709611773490906, 0.3042229115962982, 0.02112959325313568, -0.09601885080337524, -0.19844169914722443, 0.05156063288450241, -0.2140577733516693, 0.11214013397693634, 0.187416672706604, 0.26986926794052124, 0.24955512583255768, -0.08904479444026947, 0.36599743366241455, -0.03690705448389053, -0.013899341225624084, -0.3379862904548645, -0.38296452164649963, -0.22393803298473358, 0.14467060565948486, -0.4573242664337158, -0.19191838800907135, 0.1465187668800354, -0.376049667596817, 0.17907822132110596, -0.3349629044532776, 0.035922788083553314, 0.006347427144646645, -0.09477830678224564, -0.14425908029079437, 0.30715250968933105, 0.3120943307876587, 0.25774410367012024, 0.2873656153678894, -0.41988804936408997, 0.10805840790271759, 0.1074007898569107, 0.07341215759515762, -0.12338170409202576, 0.05333201587200165, -0.1752977818250656, -0.23024871945381165, 0.22036626935005188, -0.5548902750015259, -0.904107391834259, 0.1567331999540329, -0.1360912024974823, 0.08905111998319626, -0.12127601355314255, 0.2638953924179077, 0.4540862739086151, 0.09314630925655365, -0.033587053418159485, 0.3939802646636963, -0.13627538084983826, 0.08629652112722397, -0.2755466401576996, -0.22173082828521729, -0.46025025844573975, 0.07555533945560455, 0.1599290668964386, 0.02470555156469345, 0.08791336417198181, 0.1537177711725235, 0.07559333741664886, 0.24892179667949677, 0.22509509325027466, 0.37873923778533936, 0.35074836015701294, 0.12569072842597961, -0.14625303447246552, -0.10906422138214111, -0.30496442317962646, 0.17290836572647095, 0.24261292815208435, -0.07819245755672455, -0.030312076210975647, 0.051284871995449066, -0.24796640872955322, -0.06288566440343857, -0.12779735028743744, -0.05108056589961052, 0.07991943508386612, 0.1332167088985443, 0.5370116829872131, 0.3032729923725128, 0.04464998468756676, 0.28807055950164795, 0.25707948207855225, 0.29975321888923645, -0.10828059911727905, 0.39585793018341064, -0.00600372813642025, -0.20386216044425964, -0.06036790460348129, -0.1223907396197319, 0.24625402688980103, 0.04396168142557144, -0.20597612857818604, 0.2557491064071655, -0.3243948817253113, 0.339683473110199, 0.12492357939481735, 0.1467004269361496, 0.19302375614643097, -0.23869529366493225, 0.09801875054836273, 0.24719324707984924, 0.1769266575574875, 0.21746987104415894, 0.09370401501655579, 0.30225735902786255, -0.13552848994731903, 0.07786331325769424, 0.007606573402881622, 0.12352906912565231, 0.4102468490600586, -0.06955285370349884, -0.0699835866689682, 0.14114108681678772, 0.1332971304655075, -0.046541016548871994, 0.37279659509658813, 0.1050916314125061, -0.10857701301574707, 0.1416061520576477, 0.2556854784488678, -0.13313858211040497, 0.07992281764745712, 0.002363830804824829, -0.13567814230918884, -0.20466890931129456, 0.25224384665489197, 0.41642120480537415, 0.5909417271614075, 0.08702509105205536, 0.1000603437423706, -0.007960749790072441, 0.021099913865327835, -0.23728352785110474, 0.10275115817785263, 0.2508164048194885, 0.27874159812927246, 0.3714523911476135, 0.14704717695713043, 0.0901285856962204, -0.1597834825515747, -0.19523164629936218, -0.0006787218153476715, 0.11329265683889389, -0.15178051590919495, -0.02850700356066227, -0.2059134989976883, -0.1609155833721161, -0.018602069467306137, -0.16393858194351196, -0.3395490348339081, -0.5411418676376343, -0.09077736735343933, 0.8279132843017578, 0.026335496455430984, 0.0027441885322332382, -0.4467374384403229, 0.04716978967189789, -0.015859639272093773, -0.0968736857175827, -0.31022965908050537, -0.01612352952361107, -0.14489108324050903, 0.046478863805532455, 0.150655135512352, -0.2620871663093567, 0.22779005765914917, -0.3751147389411926, -0.014763468876481056, -0.6530421376228333, 0.11554544419050217, 0.07933644205331802, 0.11368110775947571, 0.22210463881492615, -0.10680392384529114, 0.3905944228172302, 0.0859350860118866, 0.07755127549171448, 0.21316833794116974, -0.2786898910999298, 0.05459553748369217, 0.13877326250076294, -0.107361800968647, 0.08650557696819305, 0.25671422481536865, -0.021607130765914917, -0.3114525377750397, -0.31392142176628113, -0.05587984621524811, -0.319629043340683, 0.07371612638235092, 0.06355725973844528, 0.07875969260931015, 0.07316039502620697, -0.09672458469867706, 0.09443628787994385, -0.12339315563440323, -0.8098713159561157, 0.6504315137863159, -0.19457809627056122, -0.27759867906570435, 0.11420586705207825, 0.014771245419979095, 0.18613454699516296, 0.10307276993989944, -0.31869369745254517, -0.091667041182518, -0.3108854591846466, 0.25388944149017334, 0.07962584495544434, -0.06650405377149582, 0.49387550354003906, -0.3028879761695862, -0.007579337805509567, -0.13479894399642944, 0.08558331429958344, -0.1985694169998169, 0.1590675711631775, 0.5342744588851929, -0.023177992552518845, 0.2165464460849762, 0.1531522125005722, 0.6773421168327332, 0.03452064469456673, -0.036807719618082047, 0.49822163581848145, -0.00374571792781353, 0.29546090960502625, 0.01577334851026535, -0.316402405500412, -0.2506551444530487, -0.22136956453323364, -0.04311610758304596, 0.01085730642080307, 0.3183298110961914, 0.2797994315624237, -0.3946998715400696, -0.3512114882469177, -0.44361943006515503, -0.3329281210899353, -0.1417403370141983, -0.07838389277458191, 0.07111963629722595, 0.324396014213562, 0.08940193802118301, -0.03217455744743347, -0.2826556861400604, -0.028615953400731087, 0.30638396739959717, 0.22498241066932678, -0.02489452064037323, 0.0411934070289135, 0.16365720331668854, -0.5039026737213135, 0.14893856644630432, -0.022222712635993958, 0.21892011165618896, 0.012075159698724747, 0.21168959140777588, 0.17938902974128723, -0.21713818609714508, 0.4456120729446411, -0.1983216553926468, 0.2985542416572571, -0.21240513026714325, -0.03150259330868721, -0.12181832641363144, -0.07321012765169144, 0.16078582406044006, -0.1364043802022934, 0.04415769875049591, 0.2620728611946106, -0.2155696153640747, -0.13962216675281525, 0.19713978469371796, -0.018875226378440857, -0.06835899502038956, -0.16420555114746094, 0.0008194819092750549, -0.4739915132522583, -0.16438163816928864, -0.10455197840929031, 0.030337674543261528, -0.01661810278892517, 0.023648101836442947, -0.2441769242286682, 0.12123071402311325, 0.2113383412361145, -0.11373889446258545, 0.02387305721640587, -0.028523001819849014, 0.024061348289251328, 0.5966392159461975, 0.08628249168395996, -0.26000192761421204, 0.38773855566978455, 0.6234219074249268, 0.24472326040267944, -0.637691080570221, 0.010325881652534008, 0.06532438844442368, -0.17702418565750122, 0.2251409888267517, 0.09019376337528229, -0.23167073726654053, -0.0036971978843212128, -0.06088753044605255, -0.08961058408021927, -0.04745618626475334, 0.33892178535461426, 0.17850135266780853, -0.0780816525220871, -0.15148130059242249, 0.24437060952186584, -0.05042567104101181, -0.02094900608062744, 0.4658898413181305, 0.06650081276893616, -0.02312626875936985, -0.09105023741722107, 0.1524452567100525, 1.1107234954833984, -0.36654651165008545, 0.41839635372161865, 0.27463459968566895, -0.35419636964797974, 0.3772697448730469, -0.0993649810552597, 0.11683354526758194, -0.1943225860595703, -0.36597028374671936, -0.13485385477542877, -0.13075760006904602, 0.1469649076461792, -0.12669643759727478, 0.01187409833073616, 0.18995162844657898, -0.029314536601305008, 0.4584021270275116, 0.25179386138916016, 0.12497450411319733, -0.3728826940059662, -0.18833613395690918, -0.3676524758338928, 0.15602058172225952, -0.08561500906944275, 0.4520825147628784, -0.08368777483701706, -0.17278479039669037, -0.38830873370170593, 0.12979161739349365, -0.23875486850738525, 0.3929644823074341, 0.08702532202005386, 0.0128868967294693, -0.35529300570487976, -0.05760085955262184, -0.42210203409194946, 0.2641981840133667, -0.09049898386001587, 0.033388834446668625, -0.2802700102329254, 0.2732568085193634, 0.10215941071510315, 0.047378286719322205, 0.30800896883010864, -0.23843733966350555, -0.10912244021892548, -0.17966777086257935, -0.2807784974575043, 0.13803784549236298, 0.05845674127340317, -0.3890753388404846, -0.1393209993839264, -0.2637568712234497, -0.14833320677280426, -0.26076576113700867, -0.07601329684257507, -0.12667307257652283, -0.02605714462697506, -0.20847927033901215, 0.12029112875461578, 0.2870618999004364, 0.03984132036566734, -0.06160300225019455, -0.1739562451839447, -0.1849493831396103, -0.07239611446857452, 0.6852256059646606, -0.1489950716495514, 0.26866352558135986, 0.10591535270214081, -0.12935984134674072, -0.14360861480236053, -0.01677168533205986, 0.3500961363315582, -0.4292447865009308, -0.2866278290748596, -0.0006990805268287659, -0.5437368154525757, 0.11605779826641083, -0.4715065062046051, -0.12959042191505432, 0.3202723264694214, -0.21662980318069458, 0.06334149837493896, -0.5338753461837769, -0.05472799390554428, 0.12515494227409363, 0.16703394055366516, -0.07942245900630951, 0.09271586686372757, -0.1436009407043457, 0.23615887761116028, -0.26939210295677185, -0.251878559589386, -0.062355250120162964, -0.17444917559623718, -0.10594969987869263, -0.10311882197856903, -0.17892682552337646, 0.1778930127620697, -0.25269055366516113, 0.058177463710308075, 0.03608917444944382, -0.20219308137893677, -0.1224948838353157, -0.17183810472488403, 0.21012623608112335, 0.22356435656547546, -0.17078657448291779, 0.13112863898277283, -0.4904717206954956, -0.03535105660557747, 0.0025084689259529114, -0.24279159307479858, 0.4196183681488037, 0.02694006636738777, -0.0944635197520256, 0.059437837451696396, 0.18884772062301636, -0.414198100566864, 0.3358595371246338, -0.23501071333885193, 0.22325429320335388, -0.07953011989593506, 0.40257665514945984, 0.20439063012599945, -0.07537182420492172, -0.5386692881584167, -0.14833012223243713, -0.15564177930355072, -0.1530342698097229, 0.8496935367584229, -0.06568537652492523, 0.07868963479995728, 0.3652045428752899, 0.30409613251686096, 0.43568408489227295, -0.07819648832082748, 0.10329822450876236, 0.04644943028688431, 0.17215535044670105, -0.11642096936702728, -0.08179914951324463, -0.23008958995342255, -0.050718072801828384, -0.06353398412466049, -0.04586576670408249, -0.2532053291797638, -0.23098155856132507, 0.17714180052280426, 0.07074934989213943, 0.5687480568885803, 0.1444004625082016, 0.11581407487392426, 0.4421880543231964, 0.07668524980545044, 0.1921868473291397, 0.2737777531147003, 0.01509641483426094, -0.054950229823589325, -0.05205871909856796, -0.09167950600385666, 0.053547829389572144, -0.16465190052986145, 0.44653427600860596, -0.04088061302900314, -0.17201294004917145, 0.08617722988128662, -0.027638733386993408, -0.2431725561618805, -0.061136938631534576, 0.07111530005931854, 0.051607951521873474, -0.08973665535449982, -0.020609932020306587, -0.3580598831176758, 0.3463129699230194, 0.03788957744836807, -0.05897030606865883, -0.23833391070365906, -0.00850745290517807, 0.0804341584444046, 0.13735271990299225, 0.03266151621937752, -0.33750319480895996, 0.40467914938926697, 0.2469685971736908, -0.051807865500450134, -0.4757176637649536, -0.06708864122629166, 0.23559367656707764, 0.13045477867126465, -0.31606438755989075, 0.3274466097354889, 0.024890385568141937, -0.16124802827835083, -0.20122261345386505, 0.2629185616970062, 0.29570233821868896, 0.09288972616195679, 0.15438592433929443, 0.26545363664627075, 0.09691256284713745, -0.04219695180654526, 0.06774235516786575, 0.24653896689414978, 0.2195138782262802, 0.3245217502117157, 0.16813045740127563, 0.19482454657554626, -0.14183135330677032, 0.18549522757530212, 0.03544466197490692, 0.09206676483154297, -0.2158668041229248, 0.22679856419563293, 0.05161062628030777, 0.009731240570545197, 0.12369797378778458, 0.08902584761381149, -0.19614538550376892, 0.0484706312417984, 0.1873895227909088, -0.3379777669906616, 0.06762292236089706, -0.22201427817344666, 0.04658892750740051, 0.04633369296789169, 0.12114778161048889, 0.394104927778244, 0.11965888738632202, -0.20665287971496582, 0.060002878308296204, -0.4173918068408966, 0.3080030679702759, -0.43225371837615967, -0.3474394679069519, -0.08364875614643097, 0.10321398824453354, -0.1018400564789772, 0.3616504669189453, 0.0590566024184227, -0.06429708749055862, 0.03590880334377289, 0.42815861105918884, -0.2531152665615082, -0.3033040761947632, -0.25949668884277344, 0.2583461403846741, -0.03051847778260708, -0.4339310824871063, 0.3855706751346588, 0.11247192323207855, 0.04958730936050415, 0.14265459775924683, -0.12122789025306702, 0.3025585114955902, -0.3076668679714203, 0.2648266553878784, 0.009057465940713882, 0.21009817719459534, -0.07110731303691864, -0.005272651091217995, -0.289480060338974, -0.10750585794448853, -0.021182404831051826, -0.019763559103012085, 0.06649038940668106, -0.19968046247959137, -0.10462441295385361, -0.12130206823348999, -0.22287477552890778, 0.21177241206169128, -0.23611143231391907, 0.1461256593465805, 0.000498439185321331, -0.08440902084112167, 0.044195666909217834, 0.05402465909719467, 0.008624768815934658, 0.0007005669176578522, -0.259441077709198, -0.04067077115178108, -0.19951632618904114, -0.09241139143705368, 0.23722919821739197, -0.37078621983528137, 0.017627138644456863, -0.006837709341198206, 0.32878929376602173, -0.13983511924743652, -0.09359471499919891, -0.004024691879749298, 0.1597832441329956, 0.4166238605976105, 0.0553867369890213, -0.10585078597068787, 0.12311406433582306, 0.19058473408222198, -0.034994274377822876, 0.02276892587542534, 0.25633686780929565, 0.020775530487298965, -0.2869865596294403, 0.2012804001569748, -0.1695287525653839 ]
https://github.com/huggingface/datasets/issues/4182
Zenodo.org download is not responding
Definitely, @dkajtoch! But we have to ask permission to the data owners. And many dataset licenses directly forbid data redistribution: in those cases we are not allowed to host their data on our Hub.
## Describe the bug Source download_url from zenodo.org does not respond. `_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"` Other datasets also use zenodo.org to store data and they cannot be downloaded as well. It would be better to actually use more reliable way to store original data like s3 bucket. ## Steps to reproduce the bug ```python load_dataset("sick") ``` ## Expected results Dataset should be downloaded. ## Actual results ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)"))) ## Environment info - `datasets` version: 2.1.0 - Platform: Darwin-21.4.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 7.0.0 - Pandas version: 1.3.5
34
Zenodo.org download is not responding ## Describe the bug Source download_url from zenodo.org does not respond. `_DOWNLOAD_URL = "https://zenodo.org/record/2787612/files/SICK.zip?download=1"` Other datasets also use zenodo.org to store data and they cannot be downloaded as well. It would be better to actually use more reliable way to store original data like s3 bucket. ## Steps to reproduce the bug ```python load_dataset("sick") ``` ## Expected results Dataset should be downloaded. ## Actual results ConnectionError: Couldn't reach https://zenodo.org/record/2787612/files/SICK.zip?download=1 (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out. (read timeout=100)"))) ## Environment info - `datasets` version: 2.1.0 - Platform: Darwin-21.4.0-x86_64-i386-64bit - Python version: 3.7.11 - PyArrow version: 7.0.0 - Pandas version: 1.3.5 Definitely, @dkajtoch! But we have to ask permission to the data owners. And many dataset licenses directly forbid data redistribution: in those cases we are not allowed to host their data on our Hub.
[ -0.15272733569145203, 0.004749983549118042, -0.09803816676139832, 0.3225697875022888, 0.41206830739974976, -0.08582396060228348, 0.19528423249721527, 0.3025968074798584, -0.145508274435997, 0.10670489072799683, -0.6057355403900146, 0.11827763170003891, 0.2712567150592804, -0.017700431868433952, -0.08036304265260696, -0.006950363516807556, -0.040654994547367096, 0.07122233510017395, -0.23423752188682556, -0.24011313915252686, -0.07776986807584763, 0.0812288373708725, -0.16945099830627441, 0.13348621129989624, 0.21785646677017212, 0.15398718416690826, -0.2241355925798416, 0.13291767239570618, -0.3210762143135071, -0.3001299202442169, 0.4510013163089752, 0.2445576936006546, 0.19005033373832703, 0.32015684247016907, -0.00011131662904517725, -0.11947721987962723, 0.3348628878593445, 0.008005404844880104, -0.17899258434772491, -0.2430589646100998, -0.5358789563179016, -0.4043768644332886, -0.20475725829601288, -0.07594326883554459, 0.0812854990363121, -0.11978181451559067, 0.11524231731891632, 0.0786866694688797, 0.2391837239265442, 0.3838649094104767, 0.19687248766422272, 0.39997565746307373, 0.40438133478164673, -0.19360366463661194, 0.3127315938472748, -0.2345760017633438, -0.31701934337615967, 0.5927185416221619, 0.3213311433792114, 0.16865819692611694, 0.01912529766559601, 0.08441950380802155, -0.2690875828266144, 0.11156637966632843, -0.010352611541748047, -0.13220928609371185, 0.089524045586586, -0.20098720490932465, -0.053074054419994354, 0.36097702383995056, 0.6741939187049866, -0.07969383150339127, -0.5182187557220459, -0.075571708381176, 0.08263019472360611, -0.10285542905330658, 0.11261088401079178, 0.060093142092227936, -0.003009895794093609, 0.2386409342288971, -0.12709079682826996, -0.0954548642039299, -0.26998060941696167, 0.46054989099502563, -0.07058398425579071, 0.3418572247028351, -0.20618237555027008, 0.10111744701862335, -0.18260066211223602, -0.11288441717624664, 0.5455029606819153, -0.40905529260635376, -0.017962854355573654, 0.026767536997795105, -0.23413492739200592, -0.16911372542381287, -0.1260237693786621, 0.15298312902450562, 0.4630870223045349, 0.18919169902801514, 0.11784032732248306, -0.04998759925365448, 0.08269675821065903, -0.14015063643455505, 0.32156234979629517, -0.08857539296150208, -0.17964032292366028, 0.013269505463540554, 0.2918044328689575, 0.308390349149704, -0.014672946184873581, -0.08795041590929031, -0.21657432615756989, -0.006615242920815945, 0.20130302011966705, -0.1370989978313446, 0.5634685158729553, -0.22900082170963287, -0.1508261263370514, 0.092564158141613, -0.18449774384498596, 0.06880819797515869, 0.005944442935287952, 0.3134230077266693, -0.5096907019615173, 0.2589855194091797, -0.18010854721069336, 0.05119766294956207, -0.17764614522457123, -0.13131015002727509, -0.13419489562511444, -0.023489993065595627, -0.024861842393875122, 0.013475167565047741, 0.16644719243049622, -0.42110463976860046, 0.21135517954826355, -0.009357448667287827, 0.08187146484851837, -0.18929877877235413, 0.03290671110153198, -0.11766202747821808, 0.050747089087963104, 0.1829700469970703, 0.3507465124130249, 0.28414487838745117, -0.09918251633644104, 0.29986852407455444, -0.059541478753089905, 0.0024118758738040924, -0.3355158269405365, -0.38454511761665344, -0.3564879596233368, 0.18715600669384003, -0.4744327664375305, -0.24589097499847412, 0.06835885345935822, -0.37047111988067627, 0.03003014624118805, -0.2755201756954193, 0.061895012855529785, 0.016034085303544998, -0.028807705268263817, -0.19367901980876923, 0.3384574353694916, 0.25583982467651367, 0.26493629813194275, 0.24760356545448303, -0.45731914043426514, 0.05482077598571777, 0.12564173340797424, 0.04458542540669441, -0.049142736941576004, 0.117324098944664, -0.1813778579235077, -0.10455796867609024, 0.29559066891670227, -0.6592511534690857, -0.8689278960227966, 0.13061462342739105, -0.0690988227725029, 0.06045541912317276, -0.11791584640741348, 0.16000965237617493, 0.4708453416824341, 0.08532233536243439, -0.05159880220890045, 0.46285635232925415, -0.014554230496287346, 0.07532921433448792, -0.19772754609584808, -0.26871737837791443, -0.4268289804458618, 0.18261177837848663, 0.21482324600219727, 0.0472666472196579, 0.20578788220882416, 0.25229281187057495, 0.23012638092041016, 0.23889969289302826, 0.20188656449317932, 0.23506610095500946, 0.4679758548736572, 0.1289883702993393, -0.12543907761573792, -0.2183736264705658, -0.2527485191822052, 0.18830516934394836, 0.19788654148578644, -0.04832383245229721, 0.029011450707912445, 0.04362286627292633, -0.3913050889968872, 0.0014737695455551147, -0.2049786001443863, -0.000059448182582855225, 0.14887146651744843, 0.02838796377182007, 0.47205716371536255, 0.28652873635292053, 0.09951715171337128, 0.1679556965827942, 0.1834990382194519, 0.32697969675064087, -0.11692576110363007, 0.4311971962451935, -0.0013086441904306412, -0.14485086500644684, 0.04985874146223068, -0.11556891351938248, 0.19644615054130554, 0.03880564123392105, -0.12963411211967468, 0.1986236572265625, -0.30867528915405273, 0.3341692388057709, 0.09191414713859558, 0.002748727798461914, 0.11008133739233017, -0.19128288328647614, 0.14041422307491302, 0.2162446230649948, 0.1819170117378235, 0.2367323935031891, 0.03410863131284714, 0.41804981231689453, -0.1476692259311676, -0.06784341484308243, -0.034046970307826996, 0.17374272644519806, 0.4318252205848694, -0.05421651899814606, -0.1301368772983551, 0.1766032576560974, 0.09625452756881714, -0.007545690983533859, 0.271822452545166, -0.026096588000655174, -0.06617099791765213, 0.020071834325790405, 0.3530751168727875, -0.168120339512825, 0.15132582187652588, -0.022008806467056274, -0.0899142250418663, -0.07269704341888428, 0.29995524883270264, 0.37178587913513184, 0.5710534453392029, 0.12284974753856659, 0.18221300840377808, 0.00937316007912159, -0.0318814180791378, -0.19825319945812225, 0.1308065801858902, 0.23278051614761353, 0.27560436725616455, 0.3471170663833618, 0.09623423963785172, 0.0629652589559555, -0.2689065933227539, -0.29034361243247986, 0.04913472384214401, 0.1904180645942688, -0.16414977610111237, -0.2221149057149887, -0.19631440937519073, -0.1325250267982483, 0.13260744512081146, -0.2022501826286316, -0.2737528681755066, -0.45119473338127136, -0.06373059749603271, 0.8270024657249451, 0.008559711277484894, 0.015277136117219925, -0.5011129975318909, -0.028531119227409363, 0.03173314779996872, -0.032848767936229706, -0.3001812696456909, 0.10799942165613174, -0.1356109082698822, 0.0978623628616333, 0.14476558566093445, -0.20355896651744843, 0.24009981751441956, -0.2276405245065689, 0.15480946004390717, -0.6092826724052429, 0.08255936950445175, 0.07443501055240631, 0.015972698107361794, 0.17527955770492554, -0.0053599923849105835, 0.32360994815826416, 0.09324425458908081, 0.10415712743997574, 0.26052188873291016, -0.3027031719684601, -0.008332164958119392, 0.1835249960422516, -0.14148443937301636, -0.014445864595472813, 0.19305092096328735, -0.06821299344301224, -0.32361268997192383, -0.41345953941345215, 0.0434761717915535, -0.13556437194347382, 0.12739653885364532, 0.11580684036016464, 0.11411292105913162, 0.14336846768856049, -0.10756393522024155, 0.008860408328473568, -0.11240535974502563, -0.7848807573318481, 0.5995422005653381, -0.1893862783908844, -0.30264362692832947, 0.13387759029865265, 0.10246814787387848, 0.1951376348733902, -0.008113425225019455, -0.23629942536354065, -0.09005127102136612, -0.3038470447063446, 0.3472253084182739, 0.03499329835176468, -0.003904106095433235, 0.33404773473739624, -0.24090807139873505, -0.01008257083594799, -0.12312126159667969, 0.15167579054832458, -0.3174774646759033, 0.2421794831752777, 0.376723051071167, -0.09799961745738983, 0.23777034878730774, 0.16616620123386383, 0.4428436756134033, 0.14413689076900482, 0.10628953576087952, 0.5215888619422913, -0.09755844622850418, 0.2383245974779129, 0.0459662489593029, -0.3513166904449463, -0.16112186014652252, -0.1429886817932129, -0.005640855059027672, 0.10744305700063705, 0.2534407675266266, 0.27425435185432434, -0.3033530116081238, -0.41596540808677673, -0.34581106901168823, -0.3277813494205475, -0.20305973291397095, -0.13244786858558655, -0.11534551531076431, 0.22364483773708344, 0.061659492552280426, -0.11800916492938995, -0.2682728171348572, 0.00564064085483551, 0.2960798442363739, 0.1246052086353302, 0.016883179545402527, 0.034354764968156815, 0.2408221960067749, -0.5474940538406372, 0.16465716063976288, -0.08020362257957458, 0.1411764919757843, -0.0038845837116241455, 0.16854798793792725, 0.2303580790758133, -0.15466438233852386, 0.5591957569122314, -0.2911543548107147, 0.37641119956970215, -0.15764263272285461, 0.09240292012691498, -0.2509383261203766, -0.12980030477046967, -0.10257426649332047, -0.0643278956413269, -0.014469794929027557, 0.39429229497909546, -0.1898115873336792, -0.11702021956443787, 0.13710087537765503, -0.19999603927135468, -0.0326010137796402, -0.19697067141532898, 0.0013194195926189423, -0.6073985695838928, -0.3114612400531769, -0.027864880859851837, 0.10800062865018845, 0.12269525974988937, -0.13086192309856415, -0.3534942865371704, 0.03879109025001526, 0.23279690742492676, 0.00818430632352829, 0.04416072741150856, -0.051395393908023834, 0.10615913569927216, 0.5368732213973999, -0.06680075824260712, -0.31408563256263733, 0.3971118628978729, 0.603808581829071, 0.25969940423965454, -0.6052103638648987, -0.06878697127103806, 0.004151505418121815, -0.16262799501419067, 0.14074982702732086, 0.017209429293870926, -0.13946577906608582, -0.08716151118278503, -0.00804997980594635, -0.142961323261261, -0.03877454251050949, 0.38195911049842834, 0.08082820475101471, -0.1435966044664383, -0.11965788155794144, 0.23653700947761536, 0.017275508493185043, -0.04771154001355171, 0.42414432764053345, 0.10732338577508926, -0.05375867336988449, -0.054885637015104294, 0.1169159933924675, 0.9285925626754761, -0.34684163331985474, 0.30367639660835266, 0.3495670557022095, -0.29615727066993713, 0.49256545305252075, 0.027471080422401428, 0.047585826367139816, -0.2321643829345703, -0.3680824637413025, -0.09718470275402069, -0.04198741912841797, 0.20352894067764282, -0.07761356234550476, -0.010627906769514084, 0.14061041176319122, -0.0004755854606628418, 0.39540910720825195, 0.14527185261249542, 0.18817655742168427, -0.5647839307785034, -0.19387789070606232, -0.4492854177951813, 0.19831371307373047, -0.06912718713283539, 0.4119124114513397, -0.037407003343105316, -0.2666783332824707, -0.36606669425964355, 0.04074414074420929, -0.17451652884483337, 0.41593775153160095, 0.24257208406925201, 0.021179471164941788, -0.29601675271987915, 0.058315470814704895, -0.26473891735076904, 0.19411839544773102, -0.11397342383861542, 0.11494883894920349, -0.3378235399723053, 0.23663099110126495, -0.006284452974796295, 0.05602908134460449, 0.2367342859506607, -0.1543581485748291, -0.09147180616855621, -0.13200834393501282, -0.29589879512786865, 0.08540961146354675, 0.1652674823999405, -0.270547479391098, -0.14644743502140045, -0.14175687730312347, -0.05917893350124359, -0.31565338373184204, -0.06811419129371643, -0.26373806595802307, -0.1282988041639328, -0.18678951263427734, 0.15747295320034027, 0.24066175520420074, -0.01133577711880207, 0.12551981210708618, -0.08501960337162018, -0.22111794352531433, -0.06401188671588898, 0.6492980122566223, -0.13650649785995483, 0.2668361961841583, 0.12322179973125458, -0.07874274253845215, -0.10805235058069229, -0.02917667292058468, 0.40652796626091003, -0.26584479212760925, -0.2970987558364868, 0.0074586886912584305, -0.39768561720848083, 0.1740201860666275, -0.31096750497817993, -0.09850497543811798, 0.26640790700912476, -0.24166494607925415, 0.06392605602741241, -0.4843536615371704, -0.035189881920814514, 0.1528899371623993, 0.16966457664966583, -0.010432325303554535, 0.07461021095514297, -0.10932190716266632, 0.20024681091308594, -0.30632585287094116, -0.29190927743911743, -0.025384681299328804, -0.22205759584903717, -0.13872089982032776, -0.1723821759223938, -0.1431845724582672, 0.10372854769229889, -0.2161552757024765, 0.10084561258554459, 0.052589140832424164, -0.15600931644439697, -0.15592780709266663, -0.22322361171245575, 0.17178280651569366, 0.2903575003147125, -0.14407554268836975, 0.08161324262619019, -0.4849247336387634, -0.16348907351493835, -0.0037317322567105293, -0.18031348288059235, 0.45134133100509644, 0.029202349483966827, -0.051562998443841934, 0.24038082361221313, 0.1825900673866272, -0.3109293580055237, 0.30464136600494385, -0.11027628183364868, 0.10103031992912292, -0.13759112358093262, 0.4011889398097992, 0.23815375566482544, -0.059981007128953934, -0.4206790328025818, -0.1629980504512787, 0.04830886051058769, -0.14226624369621277, 0.8190510869026184, 0.014179408550262451, 0.08859305083751678, 0.2626146376132965, 0.4029640257358551, 0.398242712020874, -0.042081885039806366, 0.062475159764289856, 0.002863197587430477, 0.2093697190284729, -0.18266139924526215, -0.16727221012115479, -0.21684853732585907, -0.09650314599275589, -0.05389520898461342, -0.11691870540380478, -0.3736673593521118, -0.14792658388614655, -0.02940872311592102, 0.05849101394414902, 0.5788560509681702, 0.20648860931396484, 0.014086982235312462, 0.4906125068664551, -0.08587129414081573, 0.10666067153215408, 0.33797404170036316, -0.03142816945910454, -0.04862477630376816, 0.18392221629619598, 0.04147786274552345, 0.09226195514202118, -0.14398863911628723, 0.3666748106479645, 0.04485650733113289, -0.22269192337989807, 0.03842625766992569, -0.07606078684329987, -0.18082743883132935, 0.011252198368310928, 0.04132547602057457, 0.010142721235752106, -0.10439927130937576, 0.06872516125440598, -0.4227214455604553, 0.21476058661937714, 0.026843219995498657, -0.09318573772907257, -0.3480762839317322, -0.029878385365009308, 0.03929920494556427, 0.08026129007339478, -0.005245339125394821, -0.3857714533805847, 0.28369539976119995, 0.14932972192764282, -0.059844404458999634, -0.47920313477516174, -0.16485387086868286, 0.27361080050468445, 0.08026623725891113, -0.356884628534317, 0.24423712491989136, -0.023279860615730286, -0.09050159156322479, -0.23082655668258667, 0.23643645644187927, 0.35439643263816833, 0.07581456005573273, 0.19327962398529053, 0.2643596827983856, 0.14348040521144867, -0.08525002747774124, 0.045435868203639984, 0.3258574306964874, 0.20737037062644958, 0.3653380274772644, 0.10160936415195465, 0.22828088700771332, -0.16993948817253113, 0.06489166617393494, 0.047966133803129196, 0.00841821264475584, -0.1869342178106308, 0.31320348381996155, -0.049685537815093994, -0.0830068364739418, 0.13022013008594513, 0.01577572524547577, -0.3016291558742523, -0.011108539067208767, 0.21442300081253052, -0.2423764169216156, 0.11388371139764786, -0.37255585193634033, 0.058110952377319336, -0.09035366773605347, 0.13874883949756622, 0.30814725160598755, 0.06931166350841522, -0.11527504771947861, 0.11904445290565491, -0.44396236538887024, 0.37626972794532776, -0.3204784095287323, -0.32465431094169617, -0.027602948248386383, 0.05476883798837662, -0.08790769428014755, 0.23322352766990662, -0.007610231637954712, -0.032671909779310226, 0.08026736229658127, 0.4425532817840576, -0.11770153045654297, -0.2759923040866852, -0.1348991096019745, 0.1838160902261734, -0.005904361605644226, -0.4003642499446869, 0.4455189108848572, 0.0073842620477080345, 0.0657259076833725, 0.050837013870477676, -0.10280084609985352, 0.3163742423057556, -0.3617689311504364, 0.27791547775268555, 0.00028875842690467834, 0.2698211669921875, -0.14426207542419434, 0.06001543253660202, -0.34940996766090393, -0.11734701693058014, -0.059950485825538635, 0.028735198080539703, -0.03076397255063057, -0.22742415964603424, 0.06531105935573578, -0.11826466023921967, -0.12099698930978775, 0.22952309250831604, -0.25782668590545654, 0.24647723138332367, 0.029540417715907097, -0.06423583626747131, -0.050672903656959534, 0.015531405806541443, -0.07948382943868637, -0.0896221175789833, -0.16639606654644012, -0.029151886701583862, -0.2003830075263977, -0.24272489547729492, 0.3279988169670105, -0.44269078969955444, -0.08410312235355377, -0.08009791374206543, 0.2883405089378357, -0.15664345026016235, -0.18195182085037231, -0.04198874905705452, 0.2580794394016266, 0.37521448731422424, -0.05653523653745651, -0.024513112381100655, 0.21291758120059967, 0.15629735589027405, 0.01982032135128975, 0.00329478457570076, 0.30122697353363037, 0.024570904672145844, -0.2403327077627182, 0.2889246940612793, -0.1082010567188263 ]
https://github.com/huggingface/datasets/issues/4181
Support streaming FLEURS dataset
Yes, you just have to use `dl_manager.iter_archive` instead of `dl_manager.download_and_extract`. That's because `download_and_extract` doesn't support TAR archives in streaming mode.
## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo
20
Support streaming FLEURS dataset ## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo Yes, you just have to use `dl_manager.iter_archive` instead of `dl_manager.download_and_extract`. That's because `download_and_extract` doesn't support TAR archives in streaming mode.
[ -0.47909846901893616, -0.14007359743118286, -0.04688102379441261, 0.36677879095077515, 0.062016405165195465, -0.051898956298828125, -0.04317567124962807, 0.3041354715824127, 0.26544472575187683, 0.2953125238418579, 0.07452839612960815, 0.2671474516391754, -0.06312435120344162, 0.30984875559806824, 0.12263793498277664, -0.27031347155570984, -0.11714217811822891, 0.19689857959747314, -0.15852278470993042, 0.03773009032011032, -0.19838844239711761, 0.29880407452583313, -0.05611824989318848, -0.2932032346725464, 0.29112371802330017, 0.0656985491514206, 0.22121182084083557, -0.04204154759645462, -0.2520238161087036, -0.17141284048557281, -0.023272179067134857, 0.21624673902988434, 0.5212728977203369, 0.4032505452632904, -0.00011194068792974576, -0.08377467840909958, 0.25623172521591187, -0.24804922938346863, -0.1369624137878418, -0.28457778692245483, -0.07311628758907318, -0.09421010315418243, -0.06352150440216064, -0.07606363296508789, -0.3298700451850891, -0.20226100087165833, 0.04146718978881836, -0.45956891775131226, 0.23249807953834534, 0.4177345335483551, 0.2120426744222641, 0.19611144065856934, -0.01949780061841011, -0.10065953433513641, 0.32830125093460083, -0.1589730679988861, -0.2510281801223755, -0.03432260826230049, 0.3407895863056183, 0.2341260462999344, 0.11499983817338943, 0.5586036443710327, -0.0695950910449028, -0.08549344539642334, 0.1977570652961731, -0.01276510301977396, -0.23490938544273376, -0.5422439575195312, 0.14437082409858704, 0.45654425024986267, 0.766930341720581, -0.04915408045053482, -0.3214445412158966, 0.17860376834869385, 0.10137613862752914, -0.3389003872871399, 0.08648878335952759, 0.13846784830093384, 0.006850089877843857, 0.2016601860523224, 0.03450307250022888, -0.20422859489917755, -0.4028834104537964, -0.0022563189268112183, 0.012784816324710846, 0.1496371328830719, -0.17153453826904297, 0.0005170777440071106, 0.4114878177642822, 0.03400135785341263, 0.3231413960456848, 0.1428135633468628, -0.30482563376426697, 0.007534698583185673, -0.19972194731235504, -0.20268262922763824, -0.010032616555690765, 0.17014078795909882, 0.28462353348731995, 0.5274726748466492, 0.32774797081947327, 0.258943647146225, -0.17237062752246857, 0.21622341871261597, 0.049877338111400604, 0.3189157545566559, 0.09589924663305283, 0.07124147564172745, 0.2780205011367798, 0.4303508698940277, 0.23723489046096802, -0.20679768919944763, -0.04526475816965103, -0.1671265959739685, -0.26084867119789124, 0.1330501139163971, 0.2644426226615906, -0.1773531287908554, -0.18516914546489716, 0.20480571687221527, -0.06243809312582016, -0.24979422986507416, -0.05817846581339836, 0.419328898191452, -0.17095790803432465, 0.23007294535636902, 0.005137436091899872, 0.43464261293411255, 0.030810324475169182, -0.5011197328567505, -0.1346154510974884, 0.31432589888572693, -0.008510049432516098, -0.04170744866132736, 0.050033990293741226, -0.25644925236701965, 0.08450181782245636, -0.21286317706108093, 0.19368191063404083, 0.19110515713691711, 0.22058230638504028, -0.26445960998535156, 0.14222034811973572, 0.2382672280073166, 0.34413525462150574, -0.0026132892817258835, 0.1376836895942688, 0.009502924978733063, -0.12647387385368347, 0.12203988432884216, -0.07732469588518143, -0.19218109548091888, -0.2679586708545685, 0.20404623448848724, -0.2507769465446472, -0.06102073937654495, -0.38067784905433655, 0.26341038942337036, -0.25157761573791504, -0.268643856048584, -0.003841295838356018, -0.0515202060341835, -0.046893160790205, -0.11945924162864685, 0.21691934764385223, 0.41343945264816284, -0.6103389263153076, 0.1125364899635315, -0.43794843554496765, -0.21368679404258728, 0.5279893279075623, 0.043116871267557144, 0.12463974952697754, -0.15779289603233337, -0.19443610310554504, 0.1627281755208969, 0.5072258710861206, -0.06939422339200974, -0.35735446214675903, 0.4061585068702698, -0.11505012214183807, 0.20419158041477203, 0.5186793804168701, 0.05522347614169121, 0.3701378405094147, -0.03554966673254967, -0.24908199906349182, 0.36971646547317505, -0.0004284624010324478, -0.11279631406068802, -0.1545923948287964, -0.14023150503635406, 0.08584608137607574, 0.268121600151062, 0.11009065806865692, 0.20716895163059235, 0.18708154559135437, -0.29417288303375244, 0.20405644178390503, 0.02905614860355854, 0.18249201774597168, 0.214408278465271, 0.31444251537323, 0.3931647539138794, 0.04039708524942398, 0.03589267283678055, -0.21040937304496765, 0.09709011763334274, -0.20273099839687347, 0.06009141728281975, -0.25384628772735596, -0.11262667924165726, -0.10014670342206955, -0.12029243260622025, -0.33047616481781006, -0.26112228631973267, 0.17402027547359467, 0.270752489566803, 0.002385396510362625, -0.002772010862827301, -0.263525128364563, 0.04591862112283707, 0.10572594404220581, -0.014154402539134026, -0.49615395069122314, 0.36169755458831787, -0.27232030034065247, -0.10190070420503616, 0.04720202088356018, -0.19121325016021729, 0.0853576809167862, -0.45114555954933167, 0.036646511405706406, 0.17623406648635864, -0.04808565601706505, 0.28623437881469727, 0.370707631111145, 0.011675789952278137, 0.003705434501171112, -0.28639963269233704, 0.17984850704669952, 0.38521134853363037, 0.05945960432291031, -0.009088177233934402, 0.012091480195522308, 0.1428971290588379, 0.1270228773355484, 0.14265969395637512, 0.0529412105679512, 0.1963694840669632, 0.466875821352005, 0.033250417560338974, -0.005846158601343632, -0.3620207607746124, 0.13878411054611206, -0.0015193447470664978, -0.028691697865724564, -0.5245870351791382, -0.4376513957977295, 0.06426534056663513, 0.2486686259508133, -0.11569015681743622, -0.047421760857105255, 0.19384583830833435, -0.07443580776453018, -0.09346511960029602, 0.0925661027431488, 0.25545310974121094, 0.356037437915802, 0.18548138439655304, 0.07583268731832504, 0.13204260170459747, 0.539940357208252, -0.1522381454706192, 0.17465081810951233, -0.09261664748191833, -0.08401643484830856, 0.17210784554481506, -0.17518165707588196, -0.04457072541117668, -0.33059293031692505, -0.4212954640388489, -0.048281483352184296, 0.40488651394844055, 0.024038318544626236, -0.010165676474571228, -0.3515620529651642, -0.4491966664791107, 0.000007349066436290741, -0.054397862404584885, -0.10408757627010345, -0.3324563205242157, -0.023305464535951614, 0.4059685468673706, -0.12968885898590088, 0.23828694224357605, 0.07680459320545197, -0.041602328419685364, 0.06315934658050537, 0.023844419047236443, -0.3766912817955017, -0.020890342071652412, -0.01588994637131691, 0.14821283519268036, 0.146790012717247, -0.24557310342788696, 0.3451657295227051, -0.3561928868293762, 0.06053578108549118, -0.7399901151657104, 0.020204894244670868, 0.314172625541687, -0.227312371134758, 0.08857259154319763, 0.20038986206054688, 0.490977942943573, 0.17256110906600952, 0.06587716192007065, 0.051334574818611145, -0.3188624382019043, -0.022548435255885124, 0.10490448772907257, -0.03993412107229233, 0.14727240800857544, -0.16491645574569702, -0.4091113209724426, -0.3441743552684784, -0.47452718019485474, 0.18599197268486023, 0.26295581459999084, 0.20193956792354584, -0.06458268314599991, 0.07276086509227753, 0.03438180312514305, 0.07603715360164642, -0.1472657024860382, -0.32870131731033325, -0.33797773718833923, 0.37693068385124207, -0.35073423385620117, -0.4384087920188904, 0.34538954496383667, 0.1720825433731079, -0.05235633626580238, 0.1060180738568306, -0.2946109175682068, -0.3110383450984955, -0.06772909313440323, -0.16155527532100677, -0.13659068942070007, 0.06159788370132446, 0.4200332462787628, -0.12599319219589233, 0.03369174152612686, -0.10151833295822144, -0.015996556729078293, -0.08723669499158859, 0.05516953021287918, 0.24010765552520752, 0.058069031685590744, 0.4564555287361145, -0.07991088181734085, 0.1833423376083374, 0.2754637897014618, 0.19742202758789062, 0.5049219131469727, -0.08798009157180786, 0.40403372049331665, -0.2318519949913025, -0.06148657947778702, -0.000378995668143034, -0.023813411593437195, -0.17161548137664795, 0.20763513445854187, -0.061048395931720734, -0.10119227319955826, -0.38964495062828064, 0.04066459462046623, -0.1215868815779686, -0.12509499490261078, 0.04145421087741852, -0.045552872121334076, 0.00027000904083251953, -0.16822843253612518, 0.13858577609062195, 0.0564693845808506, -0.038592033088207245, -0.009592314250767231, 0.47558116912841797, 0.29680556058883667, 0.15434005856513977, -0.3290489912033081, -0.03226412832736969, -0.5810098052024841, 0.6082451343536377, -0.17623260617256165, 0.09897703677415848, -0.14575894176959991, -0.07079911231994629, 0.1637742519378662, 0.008119739592075348, 0.38420379161834717, -0.7205040454864502, -0.07387365400791168, 0.09505780041217804, -0.047903720289468765, 0.15570974349975586, -0.16434456408023834, -0.36085039377212524, -0.13317595422267914, -0.16882380843162537, 0.09970344603061676, -0.40214699506759644, -0.015599403530359268, 0.36862558126449585, 0.1303539127111435, -0.03286242485046387, -0.138602614402771, -0.23074674606323242, -0.41616493463516235, -0.22959426045417786, -0.07520253211259842, -0.01758585497736931, 0.11090865731239319, -0.08210468292236328, 0.052590180188417435, 0.3200715482234955, -0.05300317704677582, 0.247036874294281, 0.14165347814559937, 0.3534877896308899, -0.00006112006667535752, -0.08184349536895752, 0.11722606420516968, -0.08436296880245209, 0.45925217866897583, 0.59089195728302, 0.002578169107437134, -0.3557657301425934, 0.2208385169506073, -0.2013353556394577, 0.20534202456474304, 0.15255483984947205, -0.1501099318265915, 0.30980369448661804, -0.022402267903089523, 0.2763608694076538, -0.05183609947562218, -0.06497984379529953, 0.38813215494155884, -0.31291455030441284, -0.362174928188324, -0.7552617192268372, 0.11562363803386688, 0.08458735048770905, 0.10430455207824707, 0.19972781836986542, -0.12801146507263184, -0.056682974100112915, 0.2733144164085388, -0.26976484060287476, 1.0644041299819946, 0.062100231647491455, -0.12087325751781464, 0.09262687712907791, -0.06678832322359085, 0.1375063955783844, -0.42542994022369385, 0.07736045122146606, -0.36162519454956055, -0.545721173286438, -0.167251855134964, 0.06356281042098999, 0.2677881717681885, -0.06934107095003128, -0.6045858263969421, 0.371849000453949, -0.16829940676689148, 0.2105102390050888, -0.0301265437155962, 0.2540742754936218, -0.5436532497406006, -0.17690303921699524, -0.1901616007089615, 0.16774703562259674, 0.09284921735525131, 0.31467127799987793, -0.11493609845638275, -0.325387179851532, 0.14960598945617676, -0.27311456203460693, -0.3201991319656372, 0.25813502073287964, -0.391099214553833, -0.10036914795637131, -0.24835103750228882, -0.5063991546630859, 0.12492802739143372, 0.2669302225112915, -0.06674955785274506, -0.0451229102909565, -0.11787019670009613, 0.005772773176431656, 0.015715766698122025, -0.200937420129776, -0.03327378258109093, 0.0024663489311933517, 0.05030173808336258, -0.19159525632858276, -0.15366016328334808, 0.2295772135257721, -0.011906838044524193, -0.21174553036689758, -0.015971124172210693, -0.07007715106010437, -0.07082518935203552, 0.02305404655635357, -0.3370261788368225, -0.00890842080116272, -0.3774242401123047, -0.1143084317445755, 0.14544068276882172, 0.1499657928943634, -0.3450486361980438, 0.022835668176412582, -0.018669772893190384, -0.011712737381458282, -0.24883608520030975, 0.3103320896625519, 0.1224515438079834, 0.11619924008846283, 0.2756141126155853, 0.2824876606464386, -0.16236844658851624, -0.31614863872528076, -0.11863849312067032, 0.325761616230011, -0.4352983832359314, -0.04410865157842636, 0.08189336210489273, -0.04749521613121033, 0.139678955078125, 0.2721881568431854, -0.051926761865615845, 0.09949483722448349, -0.18861736357212067, -0.419567734003067, -0.08551504462957382, 0.088458351790905, -0.18899767100811005, 0.09942969679832458, 0.03630155324935913, 0.022896073758602142, 0.05979734659194946, -0.02967171184718609, -0.36638709902763367, -0.09069519490003586, -0.09664538502693176, -0.05414489656686783, 0.1748603731393814, 0.12284135818481445, 0.4439636170864105, -0.014666751027107239, 0.09583652019500732, 0.18606100976467133, -0.4226126968860626, -0.09742634743452072, 0.050731707364320755, 0.14661626517772675, -0.00561087392270565, -0.06330356746912003, -0.20045791566371918, -0.16086605191230774, -0.3742808401584625, -0.06054750084877014, 0.15614482760429382, 0.20156806707382202, -0.008533783257007599, 0.06982079148292542, 0.059879206120967865, 0.004756435751914978, -0.2832982540130615, -0.0625520795583725, 0.03726783022284508, 0.38388633728027344, -0.1392432004213333, -0.0007982552051544189, -0.0028928720857948065, -0.12191016227006912, 0.04406145215034485, 0.06988142430782318, 0.22907376289367676, 0.3126556873321533, 0.5678818225860596, 0.028599919751286507, 0.18275178968906403, -0.010707234032452106, 0.6023522615432739, 0.38385850191116333, -0.16961300373077393, -0.028875602409243584, 0.2598316967487335, 0.22431214153766632, -0.2940560579299927, -0.10723480582237244, 0.1474321037530899, 0.05759522318840027, 0.07075235247612, 0.34211963415145874, 0.24955451488494873, 0.2495262324810028, 0.2935080826282501, 0.046910420060157776, 0.35003557801246643, -0.054354600608348846, 0.38176172971725464, 0.17732226848602295, -0.13144342601299286, 0.13535480201244354, 0.06286373734474182, 0.16541434824466705, 0.07345777750015259, 0.0339590348303318, -0.2040039598941803, 0.3912421762943268, -0.030881062150001526, -0.09253840148448944, 0.035018566995859146, -0.6003274917602539, -0.07456782460212708, 0.13045154511928558, 0.10671363770961761, 0.30941951274871826, 0.04581760987639427, 0.30264803767204285, -0.22389954328536987, 0.2839135229587555, -0.38082727789878845, 0.05442719906568527, 0.09418797492980957, 0.20735831558704376, 0.124549999833107, -0.15406936407089233, -0.253402978181839, -0.0909532979130745, 0.14692866802215576, 0.20354260504245758, -0.2184462547302246, 0.1534111201763153, -0.03203959763050079, 0.23784907162189484, -0.19838130474090576, -0.22958555817604065, 0.06877534091472626, -0.2751249372959137, 0.1945890337228775, 0.16867846250534058, 0.2154218852519989, 0.08707477152347565, 0.11688504368066788, 0.34486356377601624, 0.1772478073835373, 0.24627569317817688, 0.057647280395030975, -0.12629401683807373, -0.10569892078638077, 0.02257733792066574, 0.15065167844295502, 0.24153070151805878, -0.20428957045078278, 0.31091028451919556, 0.13608068227767944, -0.18791353702545166, 0.4409501552581787, 0.08127845823764801, 0.339944452047348, 0.027072660624980927, -0.09704569727182388, -0.0911843553185463, 0.021121077239513397, -0.5166300535202026, -0.2790684103965759, -0.5020620226860046, 0.09577161073684692, 0.010182088240981102, -0.026625972241163254, -0.004383365623652935, -0.22313717007637024, 0.07994725555181503, 0.1281740665435791, 0.36768198013305664, 0.36326104402542114, -0.24598899483680725, -0.21733489632606506, -0.3759377598762512, -0.5361045598983765, 0.2974441349506378, -0.05176590010523796, 0.12017855048179626, -0.20490024983882904, 0.18372952938079834, 0.15860792994499207, 0.26455438137054443, 0.2467997521162033, -0.07816778123378754, 0.14630992710590363, 0.37352481484413147, -0.11445870995521545, -0.2749329209327698, 0.19752922654151917, 0.23328207433223724, -0.024467550218105316, -0.050937965512275696, 0.0269305482506752, -0.1402093917131424, 0.155015230178833, -0.31122148036956787, -0.038233086466789246, -0.2846249043941498, -0.13309505581855774, 0.568566620349884, 0.09743057191371918, 0.4402075707912445, -0.22388038039207458, -0.05561602860689163, -0.13913996517658234, -0.08063717186450958, -0.18837472796440125, 0.03564045578241348, 0.305622398853302, 0.2790892422199249, 0.148744136095047, -0.19809836149215698, -0.5905574560165405, 0.4324365556240082, -0.23412634432315826, 0.13191863894462585, -0.41118353605270386, 0.15942774713039398, 0.02522939443588257, 0.018018003553152084, 0.07910415530204773, -0.008989259600639343, 0.007285375148057938, -0.17223431169986725, -0.36888086795806885, -0.378341406583786, 0.47808724641799927, 0.03399140387773514, -0.34262552857398987, 0.10307411849498749, -0.03488464653491974, -0.013884253799915314, -0.13360141217708588, -0.45989319682121277, 0.38088908791542053, -0.04509725049138069, 0.03381805866956711, 0.08027778565883636, 0.14962124824523926, -0.06691460311412811, -0.011139985173940659, 0.011860094964504242, 0.22730238735675812, 0.2995946705341339, -0.1304936707019806, -0.04072573035955429, -0.09856607019901276 ]
https://github.com/huggingface/datasets/issues/4181
Support streaming FLEURS dataset
Tried to make it streamable, but I don't think it's really possible. @lhoestq @polinaeterna maybe you guys can check: https://huggingface.co/datasets/google/fleurs/commit/dcf80160cd77977490a8d32b370c027107f2407b real quick. I think the problem is that we cannot ensure that the metadata file is found before the audio. Or is this possible somehow @lhoestq ?
## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo
47
Support streaming FLEURS dataset ## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo Tried to make it streamable, but I don't think it's really possible. @lhoestq @polinaeterna maybe you guys can check: https://huggingface.co/datasets/google/fleurs/commit/dcf80160cd77977490a8d32b370c027107f2407b real quick. I think the problem is that we cannot ensure that the metadata file is found before the audio. Or is this possible somehow @lhoestq ?
[ -0.4423677921295166, -0.04256629943847656, -0.017324933782219887, 0.2918567359447479, 0.06784002482891083, -0.15289223194122314, -0.03197392448782921, 0.06573708355426788, -0.02529258280992508, 0.28807756304740906, -0.035766392946243286, 0.38128861784935, -0.17722980678081512, 0.04568317532539368, 0.13688574731349945, -0.2074490189552307, -0.12033731490373611, 0.19171874225139618, -0.08776204288005829, 0.049762122333049774, -0.1478683054447174, 0.13299331068992615, -0.12176388502120972, -0.33083611726760864, 0.2196989506483078, 0.10402894765138626, 0.26371803879737854, -0.045683443546295166, -0.335612028837204, -0.12131747603416443, -0.06500604748725891, 0.29990658164024353, 0.3467089831829071, 0.4287585914134979, -0.00011936375813093036, -0.05360393226146698, 0.366763710975647, -0.2841808795928955, -0.14001859724521637, -0.302520751953125, -0.2945091426372528, 0.04246925562620163, -0.13664011657238007, 0.15439170598983765, -0.23517575860023499, -0.15740317106246948, -0.018816696479916573, -0.5743880271911621, 0.2046935260295868, 0.4032028913497925, 0.12203268706798553, 0.15851038694381714, -0.011220991611480713, 0.13183583319187164, 0.3347753584384918, -0.04941824823617935, -0.22748151421546936, -0.02855004370212555, 0.434853196144104, 0.29655158519744873, 0.14457479119300842, 0.5174635052680969, -0.06393370032310486, -0.07768401503562927, 0.2798716127872467, -0.1463622897863388, -0.3458637297153473, -0.5517038106918335, 0.19948643445968628, 0.5308954119682312, 0.9421054720878601, -0.09250416606664658, -0.46539831161499023, 0.15309137105941772, 0.20120465755462646, -0.33294427394866943, 0.18027208745479584, 0.06881337612867355, -0.019118668511509895, 0.1989123821258545, -0.06257959455251694, -0.29087960720062256, -0.38447481393814087, -0.012046746909618378, 0.11088782548904419, 0.3265036940574646, -0.12151192128658295, -0.058859072625637054, 0.3417145907878876, -0.010191570967435837, 0.3312457501888275, 0.15134616196155548, -0.2666044533252716, 0.22448298335075378, -0.2659291923046112, -0.19333091378211975, -0.1167655810713768, 0.10315242409706116, 0.1906760334968567, 0.49564415216445923, 0.22744500637054443, 0.32529985904693604, -0.3629153370857239, 0.26468583941459656, 0.1587357521057129, 0.11997441947460175, 0.055772073566913605, -0.036435164511203766, 0.3690134286880493, 0.3024604320526123, 0.2756953835487366, -0.20081940293312073, -0.07496996223926544, -0.12290970981121063, -0.24257738888263702, 0.13328394293785095, 0.2800939083099365, -0.2937818169593811, -0.30746105313301086, 0.11337841302156448, -0.3486534357070923, -0.2661481201648712, 0.07181157916784286, 0.27524110674858093, -0.15938575565814972, 0.242044597864151, -0.09980280697345734, 0.4661094546318054, 0.07265281677246094, -0.47625625133514404, -0.042060673236846924, 0.2725057899951935, 0.06023939326405525, 0.06737569719552994, 0.07985582947731018, -0.36258378624916077, 0.12789374589920044, -0.16109764575958252, 0.23179280757904053, 0.06294319778680801, 0.1759481430053711, -0.13289742171764374, 0.07214465737342834, 0.25585389137268066, 0.18832075595855713, 0.018386831507086754, -0.055859487503767014, -0.0017509087920188904, -0.1723070740699768, 0.0721261277794838, -0.09700512140989304, -0.20766203105449677, -0.1980493664741516, 0.10910125821828842, -0.2556800842285156, 0.05402715876698494, -0.3740899860858917, 0.29698362946510315, -0.2185600996017456, -0.424591988325119, -0.0592728927731514, 0.008814049884676933, -0.16788727045059204, -0.06601578742265701, 0.26444804668426514, 0.3477156460285187, -0.6282850503921509, 0.0848584771156311, -0.44840580224990845, -0.07326057553291321, 0.52052241563797, 0.03236066922545433, 0.05476493760943413, -0.2040640413761139, -0.2116144448518753, 0.15634377300739288, 0.49641844630241394, -0.19483603537082672, -0.47329026460647583, 0.32511863112449646, -0.09259054064750671, 0.2880440652370453, 0.5400863289833069, 0.029520323500037193, 0.4442213475704193, -0.1910654604434967, -0.10990655422210693, 0.38922327756881714, -0.0020906180143356323, -0.09466947615146637, -0.14182353019714355, -0.1790311485528946, 0.07771972566843033, 0.3065328598022461, -0.03189169242978096, 0.23037216067314148, 0.24160385131835938, -0.15750591456890106, 0.14708171784877777, 0.13173067569732666, 0.2109633982181549, 0.33632606267929077, 0.41786783933639526, 0.3033443093299866, -0.09558602422475815, -0.06870342791080475, -0.12337964028120041, -0.0649712085723877, -0.10082793980836868, 0.14815248548984528, -0.28680598735809326, -0.22012275457382202, -0.015722176060080528, -0.16992023587226868, -0.40390530228614807, -0.1414046734571457, 0.09135809540748596, 0.41269955039024353, -0.08897536993026733, -0.006800580769777298, -0.3026634454727173, 0.032145947217941284, 0.13545623421669006, -0.12081784754991531, -0.45927807688713074, 0.2917996942996979, -0.07584796845912933, -0.048362523317337036, 0.19550059735774994, -0.024644486606121063, 0.17973987758159637, -0.3397434949874878, -0.012097816914319992, 0.34237831830978394, 0.019148949533700943, 0.4220869541168213, 0.18010327219963074, 0.22048324346542358, 0.19762109220027924, -0.35129258036613464, 0.14346612989902496, 0.4410783350467682, 0.05998559296131134, -0.15589052438735962, -0.007760860025882721, 0.08437596261501312, 0.23912271857261658, 0.194175124168396, 0.22793768346309662, 0.12527087330818176, 0.39341238141059875, 0.2575991451740265, -0.33591675758361816, -0.22357362508773804, 0.083648182451725, -0.20780223608016968, 0.10503995418548584, -0.4254491329193115, -0.4656693637371063, -0.007987305521965027, 0.29399511218070984, -0.08404497057199478, -0.08438930660486221, 0.11231253296136856, -0.14708057045936584, -0.16685891151428223, 0.1714845895767212, 0.1409742683172226, 0.39926570653915405, 0.10733456164598465, 0.23289470374584198, 0.007614543661475182, 0.40795066952705383, -0.11751428991556168, 0.1045435443520546, -0.039813458919525146, -0.1290701925754547, 0.19514939188957214, -0.09792131930589676, -0.07623869925737381, -0.33441489934921265, -0.3636057376861572, 0.0075718071311712265, 0.34026873111724854, -0.09103505313396454, -0.09636469185352325, -0.4527093768119812, -0.31304535269737244, -0.054744474589824677, -0.24738948047161102, -0.22523880004882812, -0.2916491627693176, -0.016150131821632385, 0.5202674269676208, -0.03188956901431084, 0.30055639147758484, 0.07337678968906403, -0.03434501588344574, -0.08951514959335327, 0.028790928423404694, -0.3098909556865692, 0.1412331759929657, 0.0778718888759613, 0.05462360009551048, 0.2466459423303604, -0.19763556122779846, 0.3309207856655121, -0.08281006664037704, 0.013412963598966599, -0.6729464530944824, -0.023335836827754974, 0.29141736030578613, 0.005098309367895126, -0.005921702831983566, 0.08770430833101273, 0.3850175738334656, 0.22915364801883698, -0.01270999200642109, -0.08814885467290878, -0.20807595551013947, 0.026110300794243813, 0.03563160076737404, -0.07529769837856293, 0.2651040554046631, -0.1025930643081665, -0.350604772567749, -0.45631158351898193, -0.4397653639316559, 0.16895119845867157, 0.0867946445941925, 0.04111356660723686, 0.024125386029481888, -0.049602944403886795, -0.013222262263298035, 0.03005567193031311, -0.004513490945100784, -0.2992441654205322, -0.39240071177482605, 0.4373363256454468, -0.30624544620513916, -0.3540065586566925, 0.30669960379600525, 0.22773458063602448, 0.1340862661600113, 0.18081775307655334, -0.15926340222358704, -0.1868191957473755, 0.02050560899078846, -0.2643566131591797, -0.16405606269836426, 0.08076673746109009, 0.45999249815940857, -0.07022688537836075, 0.17454871535301208, -0.1276794970035553, -0.05997385457158089, -0.1962941288948059, 0.12816911935806274, 0.37390196323394775, 0.13696470856666565, 0.4693249464035034, -0.17901991307735443, 0.3303438425064087, 0.280836284160614, 0.1825438141822815, 0.41348350048065186, -0.0871029645204544, 0.37376052141189575, -0.21798226237297058, 0.013501526787877083, 0.06757335364818573, -0.057953789830207825, -0.24455218017101288, 0.23055939376354218, 0.03677244111895561, -0.13018575310707092, -0.35217130184173584, 0.1994379162788391, -0.11135391145944595, -0.07037634402513504, -0.07339024543762207, -0.19023357331752777, 0.044292956590652466, -0.09050820767879486, 0.23610594868659973, 0.1746058315038681, -0.08656411617994308, 0.057650256901979446, 0.526757001876831, 0.4380052089691162, 0.13642144203186035, -0.3736375570297241, -0.06352369487285614, -0.433929979801178, 0.30965301394462585, -0.21166355907917023, 0.38957351446151733, -0.18321889638900757, 0.031378693878650665, 0.1646914780139923, 0.024192839860916138, 0.257771372795105, -0.7878849506378174, -0.07878318428993225, 0.13925597071647644, 0.1737445443868637, 0.26732832193374634, -0.09964194893836975, -0.23647357523441315, -0.07936158776283264, -0.058194298297166824, 0.19638925790786743, -0.3828757703304291, 0.07922909408807755, 0.20066362619400024, 0.07076152414083481, 0.116684690117836, -0.13347399234771729, -0.24255093932151794, -0.3887217044830322, -0.09055450558662415, -0.14349433779716492, -0.012544029392302036, 0.09113214910030365, -0.07094335556030273, 0.0033033154904842377, 0.3911449909210205, -0.035746991634368896, 0.3906344771385193, 0.11621688306331635, 0.32841742038726807, 0.06608987599611282, 0.07204896211624146, 0.1769806444644928, -0.06944949924945831, 0.5520476698875427, 0.5737535953521729, 0.19269123673439026, -0.4087405204772949, 0.28843066096305847, -0.20981918275356293, 0.39247336983680725, 0.19796377420425415, -0.09712322056293488, 0.3320987820625305, 0.16789884865283966, 0.12134432792663574, -0.13779647648334503, -0.09039804339408875, 0.4372219443321228, -0.32984623312950134, -0.4770800769329071, -0.8613113164901733, 0.1668177843093872, 0.07927462458610535, 0.059471651911735535, 0.29585695266723633, -0.04997070133686066, -0.039942897856235504, 0.19820155203342438, -0.25111767649650574, 1.2021894454956055, 0.09193208068609238, -0.1909642368555069, -0.029748283326625824, -0.1596146821975708, 0.10426711291074753, -0.6539319157600403, 0.09046623110771179, -0.2132633626461029, -0.4966438114643097, -0.2330942302942276, 0.13058538734912872, 0.22560155391693115, -0.01314041018486023, -0.5151381492614746, 0.2995249032974243, -0.022060420364141464, 0.33789530396461487, -0.0013557029888033867, 0.34568077325820923, -0.49069637060165405, -0.3257049322128296, -0.28341859579086304, 0.07798004150390625, 0.022506318986415863, 0.3247505724430084, 0.05039164423942566, -0.3399343490600586, 0.19241872429847717, -0.18271109461784363, -0.33817964792251587, 0.2137133777141571, -0.3931516110897064, -0.12067751586437225, -0.3117488920688629, -0.4375104308128357, 0.26616790890693665, 0.1132575199007988, -0.17045858502388, 0.053512100130319595, -0.15179572999477386, 0.09472373127937317, 0.0781233087182045, -0.0007261590799316764, -0.027359530329704285, 0.09083445370197296, -0.04344205558300018, -0.14034274220466614, -0.10076406598091125, 0.35740306973457336, -0.052865803241729736, -0.4012121558189392, -0.07333675771951675, -0.17428700625896454, 0.07548459619283676, 0.19882534444332123, -0.2646304965019226, 0.0894538089632988, -0.25369569659233093, -0.1385539472103119, 0.07983090728521347, 0.20331646502017975, -0.455679714679718, 0.03474162518978119, -0.0728021115064621, 0.02071893960237503, -0.2685478925704956, 0.4441029131412506, 0.044843848794698715, 0.021455761045217514, 0.2922654151916504, 0.18341463804244995, -0.16741202771663666, -0.23431304097175598, 0.0073686689138412476, 0.17228497564792633, -0.3168042302131653, -0.29182887077331543, 0.05616117641329765, -0.05665591359138489, -0.02307213470339775, 0.08549055457115173, -0.18998245894908905, 0.0917535275220871, -0.3953913748264313, -0.4201728105545044, -0.23878838121891022, 0.051821447908878326, -0.13276323676109314, 0.12905091047286987, -0.16650506854057312, -0.07717522978782654, -0.004215143620967865, -0.08671756833791733, -0.26024532318115234, -0.1959475725889206, 0.04101813584566116, -0.16133730113506317, 0.2138795107603073, 0.2741284966468811, 0.36325064301490784, -0.06197794899344444, 0.02882339246571064, 0.12139281630516052, -0.2794439196586609, 0.03785695880651474, 0.10854947566986084, 0.1848151832818985, 0.16434234380722046, -0.1562802493572235, -0.23920148611068726, -0.2615198493003845, -0.45776259899139404, 0.029977770522236824, 0.21021054685115814, 0.2817211449146271, 0.07443349808454514, -0.038938622921705246, -0.0021272189915180206, -0.010484747588634491, -0.20551180839538574, -0.012768208980560303, 0.16308248043060303, 0.26135990023612976, -0.10889319330453873, 0.06209370493888855, 0.09219454228878021, -0.14980390667915344, -0.03545938804745674, 0.14345327019691467, 0.11026300489902496, 0.2582745850086212, 0.5434607267379761, -0.04036539047956467, 0.2785867750644684, 0.023183681070804596, 0.5955295562744141, 0.5139540433883667, -0.07634676247835159, -0.022187352180480957, 0.3341103196144104, 0.13477204740047455, -0.14866237342357635, -0.22385543584823608, 0.05834164470434189, 0.029277034103870392, 0.0808740109205246, 0.26864439249038696, 0.18722349405288696, 0.301670104265213, 0.2930189371109009, 0.0395769439637661, 0.2587701976299286, -0.0996636301279068, 0.37819239497184753, 0.3034449815750122, -0.13761618733406067, 0.15738116204738617, -0.019252503290772438, 0.07742954790592194, 0.00817965716123581, 0.08011986315250397, -0.1949085295200348, 0.46238210797309875, 0.06308814138174057, -0.22548773884773254, 0.08673179149627686, -0.5201523900032043, -0.2856461703777313, 0.15034659206867218, 0.15502414107322693, 0.3325640559196472, 0.164728581905365, 0.3051941394805908, -0.33824077248573303, 0.13650986552238464, -0.3227332830429077, -0.09135876595973969, 0.13711273670196533, 0.12099482119083405, 0.1489323079586029, -0.18932539224624634, -0.19068053364753723, -0.06841222941875458, 0.18645504117012024, 0.33296072483062744, -0.30833399295806885, 0.0325026772916317, 0.0922861397266388, 0.3243822455406189, -0.2649680972099304, -0.12296051532030106, 0.14633367955684662, -0.19766469299793243, 0.230076864361763, 0.09697380661964417, 0.31849047541618347, 0.24467076361179352, 0.0029609408229589462, 0.272249698638916, 0.20003743469715118, 0.20105361938476562, 0.06526795774698257, -0.08932526409626007, -0.1633070856332779, 0.1582423597574234, 0.3020942211151123, 0.2943524718284607, -0.25271540880203247, 0.322052001953125, 0.029694752767682076, -0.0813814327120781, 0.49715161323547363, 0.09213623404502869, 0.31762877106666565, -0.10241687297821045, -0.03355080634355545, -0.3252919018268585, -0.0018096528947353363, -0.35176151990890503, -0.2936713695526123, -0.3805404305458069, 0.02416286990046501, 0.09206454455852509, 0.03784402459859848, -0.05397605895996094, -0.18920625746250153, -0.0038684047758579254, 0.06102261692285538, 0.1984729766845703, 0.4123988151550293, -0.27067509293556213, -0.00830582994967699, -0.3835434317588806, -0.7123810648918152, 0.19366571307182312, 0.008644230663776398, 0.062389954924583435, -0.1976279616355896, 0.11704900860786438, 0.2988094091415405, 0.2800721526145935, 0.22714251279830933, -0.1156611368060112, 0.17317180335521698, 0.29646027088165283, -0.04009374603629112, -0.3492765724658966, 0.17116978764533997, 0.27933117747306824, -0.13014942407608032, -0.1038670688867569, 0.040664397180080414, -0.029426973313093185, 0.046258531510829926, -0.2461249679327011, 0.02592669427394867, -0.4021410048007965, -0.04824861139059067, 0.5022997856140137, -0.0021417513489723206, 0.5220553874969482, -0.232560932636261, -0.14202086627483368, -0.26919615268707275, 0.051124367862939835, -0.15148858726024628, -0.016695566475391388, 0.12556032836437225, 0.49125972390174866, 0.19184114038944244, -0.1584508717060089, -0.6885190606117249, 0.4003210663795471, -0.2698531448841095, 0.0932413712143898, -0.5262882709503174, 0.2133582979440689, -0.13972783088684082, 0.1399032324552536, 0.09990005940198898, -0.22885078191757202, -0.01982680708169937, -0.15300831198692322, -0.2665395140647888, -0.25826165080070496, 0.5091895461082458, 0.026056282222270966, -0.22780007123947144, -0.036915797740221024, 0.07145480811595917, -0.02585839480161667, -0.12144116312265396, -0.6193568110466003, 0.23637712001800537, -0.00017671287059783936, 0.002519231289625168, 0.19376696646213531, 0.0986367017030716, -0.04771117866039276, 0.04760846123099327, 0.0002575032413005829, 0.1541990041732788, 0.2857040762901306, -0.03579767048358917, 0.12292906641960144, -0.11245889961719513 ]
https://github.com/huggingface/datasets/issues/4181
Support streaming FLEURS dataset
@patrickvonplaten I think the metadata file should be found first because the audio files are contained in a folder next to the metadata files (just as in common voice), so the metadata files should be "on top of the list" as they are closer to the root in the directories hierarchy
## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo
51
Support streaming FLEURS dataset ## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo @patrickvonplaten I think the metadata file should be found first because the audio files are contained in a folder next to the metadata files (just as in common voice), so the metadata files should be "on top of the list" as they are closer to the root in the directories hierarchy
[ -0.3240826427936554, -0.06928247958421707, -0.00073280930519104, 0.3203551769256592, -0.00619690865278244, -0.12938779592514038, 0.00787368044257164, 0.06390659511089325, 0.06511034071445465, 0.2378500998020172, -0.05749165266752243, 0.3065184950828552, -0.13342486321926117, -0.019788246601819992, 0.12384986132383347, -0.15001466870307922, -0.11448546499013901, 0.26455745100975037, -0.03844207525253296, -0.05404067784547806, -0.22993721067905426, 0.25203338265419006, -0.1621854305267334, -0.28743404150009155, 0.13577495515346527, 0.08832482248544693, 0.2969452440738678, 0.08248576521873474, -0.28607937693595886, -0.1401747763156891, -0.03957498073577881, 0.2739332914352417, 0.3151000440120697, 0.5201894640922546, -0.00011969923798460513, -0.10851947218179703, 0.2770156264305115, -0.29651638865470886, -0.07446034252643585, -0.27357280254364014, -0.33706921339035034, 0.1470046192407608, -0.1929570436477661, 0.1678343415260315, -0.20914530754089355, -0.14949145913124084, -0.016044313088059425, -0.6207013726234436, 0.08497800678014755, 0.43323585391044617, 0.10474792867898941, 0.1616932600736618, -0.08723849058151245, 0.07128584384918213, 0.3952864408493042, -0.0453605130314827, -0.16015736758708954, -0.008272834122180939, 0.4782567322254181, 0.23112662136554718, 0.14827439188957214, 0.5160109400749207, -0.0543370395898819, -0.15313290059566498, 0.29677820205688477, -0.08005508035421371, -0.33768752217292786, -0.6154656410217285, 0.17529815435409546, 0.4518766701221466, 0.9234507083892822, -0.11998634785413742, -0.3567395806312561, 0.13207334280014038, 0.14741618931293488, -0.3062748908996582, 0.21432071924209595, -0.02512701041996479, -0.016393445432186127, 0.18706420063972473, -0.007876907475292683, -0.2898006737232208, -0.32720136642456055, 0.03942270204424858, 0.09398475289344788, 0.3458464741706848, -0.11086320877075195, -0.12339950352907181, 0.36549946665763855, 0.00808754749596119, 0.2899234890937805, 0.13263925909996033, -0.2100713551044464, 0.24645857512950897, -0.3120686411857605, -0.1769959181547165, -0.02673686295747757, 0.05201844125986099, 0.15252423286437988, 0.5067061185836792, 0.28426724672317505, 0.2844298481941223, -0.38000503182411194, 0.24354121088981628, 0.15660616755485535, 0.19836284220218658, 0.07179825007915497, -0.06348047405481339, 0.4038082957267761, 0.3371393382549286, 0.33384913206100464, -0.2098437249660492, -0.1167706549167633, -0.11607401072978973, -0.21391290426254272, 0.14037273824214935, 0.2744378447532654, -0.2885408401489258, -0.3027229309082031, 0.1432005763053894, -0.28863781690597534, -0.3387417793273926, 0.12983299791812897, 0.3376615047454834, -0.031696222722530365, 0.3235834836959839, -0.11139179766178131, 0.4924291968345642, 0.0394170880317688, -0.4376440942287445, -0.017146257683634758, 0.2267082780599594, 0.0990912914276123, 0.08808550238609314, 0.11011961102485657, -0.2985902726650238, 0.17860709130764008, -0.14503468573093414, 0.24425603449344635, 0.0014504790306091309, 0.17562338709831238, -0.13692216575145721, 0.06274650990962982, 0.2531282603740692, 0.1319071501493454, 0.08642207831144333, -0.06816956400871277, 0.06841540336608887, -0.18965010344982147, 0.16050367057323456, -0.16130003333091736, -0.3384304642677307, -0.1529262810945511, 0.11624018102884293, -0.1698787361383438, 0.035833198577165604, -0.3599531352519989, 0.2557542622089386, -0.15376856923103333, -0.5048311948776245, 0.01652666926383972, -0.062004633247852325, -0.13831329345703125, -0.05342734977602959, 0.26460030674934387, 0.31745195388793945, -0.6579257249832153, 0.09884099662303925, -0.4517675042152405, -0.039717625826597214, 0.45617932081222534, 0.06089667230844498, 0.07175195962190628, -0.185151606798172, -0.28107282519340515, 0.2768680453300476, 0.5578505396842957, -0.2481050044298172, -0.49137136340141296, 0.2616148889064789, -0.15287050604820251, 0.26418399810791016, 0.5069348812103271, 0.07060352712869644, 0.3925696313381195, -0.20510061085224152, -0.1099931001663208, 0.3705349564552307, 0.006913933902978897, -0.06761397421360016, -0.10672402381896973, -0.08797655254602432, 0.07498186826705933, 0.277457594871521, -0.02550831064581871, 0.14845280349254608, 0.20200872421264648, -0.23437713086605072, 0.10920128226280212, 0.015414770692586899, 0.13888317346572876, 0.33695465326309204, 0.4351969063282013, 0.28940311074256897, 0.0060148960910737514, -0.03351426124572754, -0.08960672467947006, -0.0033627301454544067, -0.0740959495306015, 0.11253046989440918, -0.2701943516731262, -0.2037656158208847, -0.10079377889633179, -0.24933484196662903, -0.48670753836631775, -0.11593401432037354, 0.04904387891292572, 0.42943498492240906, -0.14358021318912506, -0.0804358571767807, -0.38565120100975037, 0.04825585335493088, 0.16377557814121246, -0.09192385524511337, -0.4617009460926056, 0.31496915221214294, -0.14822152256965637, -0.009853034280240536, 0.14735521376132965, 0.04906892403960228, 0.18836048245429993, -0.35945892333984375, -0.043089739978313446, 0.33280736207962036, 0.023418959230184555, 0.3641432523727417, 0.17122533917427063, 0.16315141320228577, 0.1902671754360199, -0.3626168668270111, 0.16410766541957855, 0.512781023979187, 0.07220754027366638, -0.16986536979675293, -0.00011077523231506348, 0.05922728776931763, 0.2616826295852661, 0.19266453385353088, 0.1961255818605423, 0.06165666878223419, 0.35043105483055115, 0.34745070338249207, -0.16349133849143982, -0.26025915145874023, 0.10043681412935257, -0.08884255588054657, 0.1976822167634964, -0.32157543301582336, -0.5096832513809204, 0.06054006144404411, 0.38772323727607727, -0.15359918773174286, 0.0000249519944190979, 0.10317198932170868, -0.11892563849687576, -0.13090255856513977, 0.16322548687458038, 0.13260997831821442, 0.46274954080581665, 0.0919550210237503, 0.19308114051818848, -0.02015107311308384, 0.4554719030857086, -0.19923563301563263, 0.0633745864033699, -0.02427748590707779, -0.05183510482311249, 0.26092034578323364, -0.03955800458788872, -0.03481361269950867, -0.37351280450820923, -0.47578874230384827, -0.00825951062142849, 0.3300042450428009, -0.13979722559452057, -0.13793645799160004, -0.3297610580921173, -0.29836055636405945, -0.062026239931583405, -0.2939879894256592, -0.2996876537799835, -0.2451080083847046, 0.0983353778719902, 0.4177961051464081, -0.010135062038898468, 0.25194185972213745, 0.024667493999004364, 0.03565850853919983, -0.04993080347776413, 0.07486022263765335, -0.23803728818893433, 0.25527840852737427, -0.025465011596679688, 0.03404359892010689, 0.2764133810997009, -0.18401454389095306, 0.23425248265266418, -0.11820562183856964, 0.05048258602619171, -0.5779987573623657, 0.015463121235370636, 0.28850245475769043, -0.030535250902175903, -0.026163311675190926, 0.07470545172691345, 0.3526325225830078, 0.22841475903987885, -0.1170608177781105, -0.08262715488672256, -0.1949782371520996, -0.03289562463760376, 0.03460295870900154, -0.017328498885035515, 0.20301774144172668, -0.12038637697696686, -0.5013320446014404, -0.44542068243026733, -0.462589293718338, 0.11822126805782318, 0.10474355518817902, 0.0997975766658783, -0.07942301779985428, -0.17143402993679047, -0.00741965789347887, 0.07520164549350739, 0.08449946343898773, -0.2647898495197296, -0.3860805630683899, 0.44118645787239075, -0.2686173617839813, -0.2638278603553772, 0.26145368814468384, 0.1708536446094513, 0.1410502791404724, 0.1581292748451233, -0.09874227643013, -0.2732355296611786, 0.009147356264293194, -0.21186022460460663, -0.16317908465862274, 0.04855622351169586, 0.5226867198944092, -0.041094109416007996, 0.187437504529953, -0.11200246214866638, -0.0706997662782669, -0.16053232550621033, 0.1769466996192932, 0.3467271327972412, 0.1197771430015564, 0.45014894008636475, -0.20356853306293488, 0.37118393182754517, 0.26975497603416443, 0.32237330079078674, 0.3609885573387146, -0.022680966183543205, 0.29106405377388, -0.21407300233840942, 0.032853446900844574, 0.13839799165725708, -0.0005812644958496094, -0.1613001972436905, 0.31701046228408813, 0.10598384588956833, -0.13588722050189972, -0.29316794872283936, 0.09395121037960052, -0.17532098293304443, 0.007514540106058121, -0.021438369527459145, -0.19534233212471008, 0.12262328714132309, -0.1368894726037979, 0.24317863583564758, 0.14684882760047913, -0.05547415465116501, 0.01824437640607357, 0.534453272819519, 0.33501946926116943, 0.11774516105651855, -0.3608611524105072, -0.1602945178747177, -0.403296560049057, 0.3288591802120209, -0.12234077602624893, 0.4254724979400635, -0.18019264936447144, 0.019736263900995255, 0.14740018546581268, 0.011136859655380249, 0.22434395551681519, -0.8003432750701904, -0.18659564852714539, 0.06181766465306282, 0.22447362542152405, 0.30910080671310425, -0.13715878129005432, -0.2564977705478668, -0.0642661601305008, -0.03851668909192085, 0.14519256353378296, -0.3392312228679657, 0.02996508777141571, 0.25177422165870667, 0.10466092824935913, 0.1103881448507309, -0.1581924557685852, -0.22377808392047882, -0.4274081289768219, -0.10159577429294586, -0.1797148883342743, -0.01682230457663536, 0.08988726139068604, -0.1110740453004837, 0.06505054235458374, 0.54117351770401, -0.030933380126953125, 0.4560317397117615, 0.15877790749073029, 0.36674928665161133, 0.06670170277357101, 0.017213385552167892, 0.24642673134803772, -0.004569999873638153, 0.5088993310928345, 0.6024662852287292, 0.19721229374408722, -0.3864278495311737, 0.24579459428787231, -0.21361324191093445, 0.4945528507232666, 0.2378101348876953, -0.13078872859477997, 0.3436715304851532, 0.04162461310625076, 0.08283670246601105, -0.0447593629360199, -0.12061601877212524, 0.5735648274421692, -0.3438885807991028, -0.41760826110839844, -0.8583754897117615, 0.1597098708152771, 0.102665975689888, -0.012464039027690887, 0.21515269577503204, -0.028211764991283417, -0.08915974944829941, 0.1439647674560547, -0.3830200135707855, 1.1908985376358032, 0.14513656497001648, -0.14856700599193573, 0.009537933394312859, -0.16486766934394836, -0.02640061266720295, -0.6858999729156494, 0.1513383537530899, -0.21934540569782257, -0.5221880078315735, -0.27293625473976135, 0.08242668211460114, 0.12861962616443634, 0.02639281563460827, -0.5310841798782349, 0.42449599504470825, -0.05326163396239281, 0.2722001075744629, 0.0057006110437214375, 0.33497729897499084, -0.48442214727401733, -0.2960337698459625, -0.19459044933319092, 0.051987484097480774, 0.09114082902669907, 0.32429102063179016, -0.012326258234679699, -0.25426429510116577, 0.12733562290668488, -0.24632804095745087, -0.24448581039905548, 0.19208121299743652, -0.4505927264690399, -0.14782176911830902, -0.23680970072746277, -0.4635835289955139, 0.30534228682518005, 0.15204297006130219, -0.14840270578861237, 0.02586369402706623, -0.13269510865211487, 0.07315495610237122, 0.18398600816726685, 0.08889140188694, 0.01184871606528759, 0.0203111432492733, 0.014257140457630157, -0.13757747411727905, -0.1297091692686081, 0.23913022875785828, -0.062042076140642166, -0.32815277576446533, -0.22590269148349762, -0.13059884309768677, 0.09616376459598541, 0.12877397239208221, -0.29336971044540405, 0.1207483559846878, -0.2762574255466461, -0.11589691042900085, 0.06875507533550262, 0.20140796899795532, -0.49954459071159363, 0.009922318160533905, -0.14744575321674347, 0.08525867760181427, -0.2479429990053177, 0.3091471195220947, 0.05030858516693115, 0.020258523523807526, 0.3868110477924347, 0.1346558928489685, -0.18252339959144592, -0.2317555546760559, -0.0955028086900711, 0.27005478739738464, -0.3196098804473877, -0.2886776030063629, 0.026654139161109924, -0.149330735206604, 0.05762775242328644, 0.12508022785186768, -0.11741289496421814, 0.001320965588092804, -0.37856951355934143, -0.433074414730072, -0.22579503059387207, 0.0930885300040245, -0.07489548623561859, 0.1616874784231186, -0.2104560136795044, -0.056331563740968704, 0.06713972985744476, -0.10330197215080261, -0.2579389810562134, -0.1523694097995758, 0.028772512450814247, -0.10243627429008484, 0.21422076225280762, 0.2305249571800232, 0.34049147367477417, -0.015643393620848656, 0.019419031217694283, 0.08874120563268661, -0.22073771059513092, 0.05021219700574875, 0.2286382019519806, 0.1985597163438797, 0.07992764562368393, -0.20287227630615234, -0.1711781919002533, -0.234578937292099, -0.4615696370601654, -0.03813104331493378, 0.15940524637699127, 0.1874033510684967, 0.09109924733638763, -0.017401712015271187, -0.032350149005651474, -0.1747226119041443, -0.17911271750926971, 0.05110078305006027, 0.1309230923652649, 0.1854245662689209, -0.07688351720571518, 0.10418930649757385, 0.01355927623808384, -0.16380102932453156, 0.04940478876233101, 0.2613748610019684, 0.10399666428565979, 0.2912473678588867, 0.5109957456588745, -0.16786764562129974, 0.3261066973209381, 0.06436282396316528, 0.6032934188842773, 0.4664337933063507, -0.08577396720647812, 0.017227379605174065, 0.2395717203617096, 0.13292770087718964, -0.19988569617271423, -0.2803058922290802, 0.14274495840072632, 0.07559426873922348, 0.07210825383663177, 0.34036681056022644, 0.27467381954193115, 0.26030266284942627, 0.2804025411605835, 0.03357965126633644, 0.213118314743042, -0.06013382226228714, 0.38273248076438904, 0.18949538469314575, -0.11326843500137329, 0.13243697583675385, 0.05899941176176071, 0.015751013532280922, -0.035379089415073395, 0.15532493591308594, -0.2614330053329468, 0.4867453873157501, 0.12115803360939026, -0.24790892004966736, 0.15730568766593933, -0.6364495158195496, -0.2319062203168869, 0.14939047396183014, 0.18792051076889038, 0.2820892035961151, 0.21043440699577332, 0.3814854025840759, -0.3946303129196167, 0.09181885421276093, -0.31892889738082886, -0.11367715895175934, 0.024539712816476822, 0.16483323276042938, 0.17690478265285492, -0.21738305687904358, -0.18115705251693726, -0.10423164069652557, 0.15365272760391235, 0.32828766107559204, -0.34850120544433594, 0.014478079974651337, 0.03181647136807442, 0.2856293320655823, -0.20481526851654053, -0.13828343152999878, 0.1458761990070343, -0.1722818911075592, 0.3540341556072235, 0.1332150548696518, 0.24433521926403046, 0.2777230739593506, 0.058561015874147415, 0.22365747392177582, 0.17929206788539886, 0.19460135698318481, 0.11964181065559387, -0.060531552881002426, -0.17497549951076508, 0.12260709702968597, 0.19714303314685822, 0.2183707356452942, -0.14403413236141205, 0.23798306286334991, 0.0346628874540329, -0.08312792330980301, 0.46930575370788574, 0.12981317937374115, 0.28718316555023193, -0.0731864720582962, -0.010593399405479431, -0.3397131562232971, -0.12328149378299713, -0.38937437534332275, -0.3483162820339203, -0.4246734380722046, 0.05610474944114685, 0.18369881808757782, 0.06336385011672974, 0.016971983015537262, -0.17028997838497162, -0.002181829884648323, 0.1263890266418457, 0.049101799726486206, 0.40583112835884094, -0.28188085556030273, -0.028611063957214355, -0.4893755316734314, -0.7618790864944458, 0.195919930934906, 0.036778032779693604, 0.075617715716362, -0.17213183641433716, 0.12066839635372162, 0.26246753334999084, 0.11374245584011078, 0.36454230546951294, -0.16345541179180145, 0.10283876955509186, 0.2910493016242981, -0.1250968873500824, -0.35008344054222107, 0.108406201004982, 0.27646738290786743, -0.12020876258611679, -0.12321857362985611, -0.03337489441037178, -0.013012779876589775, 0.043225087225437164, -0.2172548770904541, 0.10230402648448944, -0.4350874125957489, -0.007192138582468033, 0.37634462118148804, -0.0018806159496307373, 0.5444241166114807, -0.20351991057395935, -0.07065211981534958, -0.19164273142814636, 0.04347497224807739, -0.2255861759185791, -0.0242503359913826, 0.150340273976326, 0.5547454357147217, 0.1346648931503296, -0.08324101567268372, -0.6959639191627502, 0.32895514369010925, -0.1520838439464569, 0.09225217998027802, -0.5981793999671936, 0.2888716459274292, -0.22541376948356628, 0.08501698821783066, 0.1918775886297226, -0.14080485701560974, -0.01988396793603897, -0.17381972074508667, -0.32023853063583374, -0.30042511224746704, 0.4753248393535614, 0.11606641858816147, -0.256894052028656, -0.13045498728752136, 0.1653955727815628, -0.03888312727212906, -0.04398544877767563, -0.5804190039634705, 0.21230527758598328, 0.045413464307785034, -0.014907129108905792, 0.12374161183834076, 0.11284449696540833, -0.048270706087350845, -0.08296218514442444, 0.013675283640623093, 0.1563054323196411, 0.31898605823516846, -0.13679984211921692, 0.1393200010061264, -0.0812993273139 ]
https://github.com/huggingface/datasets/issues/4181
Support streaming FLEURS dataset
The order of the files is determined when the TAR archive is created, depending on the commands the creator ran. If the metadata file is not at the beginning of the file, that makes streaming completely inefficient. In this case the TAR archive needs to be recreated in an appropriate order.
## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo
51
Support streaming FLEURS dataset ## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo The order of the files is determined when the TAR archive is created, depending on the commands the creator ran. If the metadata file is not at the beginning of the file, that makes streaming completely inefficient. In this case the TAR archive needs to be recreated in an appropriate order.
[ -0.3356230854988098, -0.24042099714279175, 0.00006131082773208618, 0.41838502883911133, -0.017210017889738083, -0.07027951627969742, -0.05507167801260948, 0.08669155836105347, 0.11756797134876251, 0.14829176664352417, 0.10341821610927582, 0.28879299759864807, -0.014658904634416103, 0.10463326424360275, 0.10525035113096237, -0.2023019790649414, -0.16156262159347534, 0.24458226561546326, -0.08123959600925446, 0.03437712788581848, -0.17776381969451904, 0.2148783802986145, -0.052557140588760376, -0.3101130723953247, 0.2279375046491623, 0.1470016986131668, 0.2496948540210724, -0.06692039221525192, -0.22879630327224731, -0.16151848435401917, 0.04646530747413635, 0.29803457856178284, 0.34489285945892334, 0.380989670753479, -0.0001184198263217695, -0.11630631238222122, 0.22985976934432983, -0.2153514325618744, -0.10368287563323975, -0.27938175201416016, -0.19012436270713806, -0.0543314591050148, -0.13478201627731323, 0.027942568063735962, -0.28911420702934265, -0.11964403837919235, 0.017391599714756012, -0.5812059044837952, 0.1511783003807068, 0.34144383668899536, 0.13200342655181885, 0.1949392557144165, -0.12180092930793762, 0.006839430890977383, 0.38060206174850464, -0.07401219010353088, -0.26498302817344666, -0.030804533511400223, 0.3583289682865143, 0.27139654755592346, 0.09574976563453674, 0.5593695640563965, -0.08731752634048462, -0.05639949068427086, 0.33466824889183044, -0.06523764878511429, -0.2612684965133667, -0.5290287733078003, 0.09652821719646454, 0.46956175565719604, 0.9172616600990295, -0.013509783893823624, -0.3898825943470001, 0.09757830947637558, 0.16957718133926392, -0.319038987159729, 0.2084020972251892, 0.10982963442802429, 0.11057183146476746, 0.11461393535137177, -0.008265095762908459, -0.14226338267326355, -0.3819950819015503, -0.010540291666984558, -0.01695089042186737, 0.32311707735061646, -0.1254018396139145, -0.05794776976108551, 0.32626691460609436, 0.076861172914505, 0.36769524216651917, 0.06109195575118065, -0.22346451878547668, 0.06918483227491379, -0.2413000613451004, -0.14138942956924438, -0.06732773035764694, 0.12067583948373795, 0.1588400900363922, 0.5886049270629883, 0.290865957736969, 0.25089937448501587, -0.2067813128232956, 0.1710650622844696, 0.04973236471414566, 0.2525497376918793, -0.027473509311676025, 0.02848902717232704, 0.28873586654663086, 0.37217867374420166, 0.27833372354507446, -0.21521863341331482, -0.016301875934004784, -0.09308276325464249, -0.31731218099594116, 0.1689818799495697, 0.260711133480072, -0.21730664372444153, -0.2943601906299591, 0.17443324625492096, -0.1995587944984436, -0.29575836658477783, 0.057415109127759933, 0.30764585733413696, -0.23062986135482788, 0.27915188670158386, -0.04778463765978813, 0.33100223541259766, 0.06040237843990326, -0.47870954871177673, -0.10312124341726303, 0.14053334295749664, -0.054976724088191986, 0.05237528681755066, -0.01972085051238537, -0.3638377785682678, 0.04201870411634445, -0.1413959413766861, 0.19566260278224945, 0.18560296297073364, 0.25829923152923584, -0.27044740319252014, 0.17326487600803375, 0.3386436700820923, 0.17709675431251526, 0.16845425963401794, 0.03891119733452797, 0.08799996972084045, -0.2091168314218521, 0.0773889571428299, -0.26377245783805847, -0.37229272723197937, -0.2482113391160965, 0.1400107443332672, -0.21820710599422455, 0.02909553423523903, -0.438511461019516, 0.1829514056444168, -0.18238967657089233, -0.34324076771736145, -0.10828802734613419, -0.001624520868062973, -0.10189581662416458, -0.1225861981511116, 0.14930355548858643, 0.4417518377304077, -0.7088465094566345, 0.12097077071666718, -0.48569950461387634, -0.03704363480210304, 0.5882567763328552, 0.03553874418139458, 0.033035438507795334, -0.17774707078933716, -0.26587989926338196, 0.11683864891529083, 0.5361272692680359, -0.14574074745178223, -0.4285142421722412, 0.3566260039806366, -0.20321665704250336, 0.301003098487854, 0.5980575084686279, 0.1776992380619049, 0.4140545129776001, -0.22589756548404694, -0.1823023557662964, 0.44037187099456787, 0.03185019642114639, -0.029976289719343185, -0.1438179761171341, -0.13745008409023285, 0.007085338234901428, 0.26683273911476135, -0.0387285090982914, 0.2268265187740326, 0.17164435982704163, -0.2244993895292282, 0.09947499632835388, 0.0008392296731472015, 0.14466968178749084, 0.3153153657913208, 0.2968099117279053, 0.4123600125312805, 0.00851532630622387, 0.08734340220689774, -0.2023354470729828, 0.13714462518692017, -0.015133801847696304, 0.009560946375131607, -0.23374541103839874, -0.18931151926517487, -0.032626379281282425, -0.24069525301456451, -0.36893221735954285, -0.12055902183055878, 0.0769033282995224, 0.4769456386566162, -0.10690492391586304, -0.11824002861976624, -0.2995915114879608, 0.1515660583972931, 0.0616852268576622, -0.06191382184624672, -0.47802430391311646, 0.3157735764980316, -0.13659337162971497, 0.00107624102383852, 0.089474156498909, -0.15038305521011353, 0.17334239184856415, -0.40383222699165344, -0.01216779462993145, 0.257290780544281, -0.03387666866183281, 0.3004598319530487, 0.25296875834465027, 0.08493433892726898, 0.0932866558432579, -0.26999109983444214, 0.13522449135780334, 0.5215070247650146, -0.011661595664918423, -0.12743805348873138, -0.06966326385736465, 0.25929486751556396, 0.22629642486572266, 0.22121703624725342, 0.1369202584028244, 0.11720376461744308, 0.37984946370124817, 0.16800342500209808, -0.10514956712722778, -0.3643370270729065, 0.24647659063339233, -0.031980082392692566, 0.08095641434192657, -0.3853144645690918, -0.46673691272735596, 0.12261839210987091, 0.31472688913345337, -0.06516259908676147, -0.09684544056653976, 0.19738277792930603, -0.04677947610616684, -0.0566026046872139, 0.03334185108542442, 0.2018432468175888, 0.40859341621398926, 0.1279386579990387, 0.10876622796058655, 0.05512873828411102, 0.48417818546295166, -0.23738987743854523, 0.0742974504828453, -0.09471113979816437, -0.10092257708311081, 0.21419036388397217, -0.04375995695590973, 0.027440525591373444, -0.26321402192115784, -0.45897889137268066, 0.030621474608778954, 0.359786719083786, -0.08187957108020782, 0.06192804127931595, -0.38147562742233276, -0.40625134110450745, -0.058836549520492554, -0.16810651123523712, -0.21688374876976013, -0.3122388422489166, -0.00728592649102211, 0.4173724353313446, -0.009144322946667671, 0.20026466250419617, 0.05805770680308342, -0.02326737344264984, 0.016663933172822, 0.08544446527957916, -0.42788103222846985, 0.14749661087989807, 0.05820203572511673, 0.05960613116621971, 0.18931016325950623, -0.2596774101257324, 0.3974021077156067, -0.1997450441122055, 0.05813978612422943, -0.6955514550209045, -0.0977378562092781, 0.24702045321464539, -0.0763997733592987, 0.024341166019439697, 0.1627516746520996, 0.4335786700248718, 0.23844559490680695, 0.012042629532516003, -0.0022647830191999674, -0.22478702664375305, -0.009822016581892967, 0.13205565512180328, -0.14396092295646667, 0.18664202094078064, -0.10424107313156128, -0.39497822523117065, -0.28911712765693665, -0.38700637221336365, 0.1098310649394989, 0.28946706652641296, 0.1472173035144806, -0.09348595142364502, -0.1592901647090912, -0.09642879664897919, 0.04951705038547516, -0.040820106863975525, -0.2435455024242401, -0.48128223419189453, 0.4566020667552948, -0.2704949676990509, -0.2939703166484833, 0.31515008211135864, 0.1930438131093979, -0.03782754763960838, 0.2628728747367859, -0.2649915814399719, -0.3057032823562622, -0.10389150679111481, -0.16149283945560455, -0.26514819264411926, -0.009877307340502739, 0.4668020009994507, -0.22728489339351654, 0.1405823677778244, -0.10779327154159546, -0.034581705927848816, -0.14533814787864685, 0.10610172152519226, 0.29054874181747437, 0.0036815889179706573, 0.48935946822166443, -0.11295773088932037, 0.28982579708099365, 0.2678564190864563, 0.19383127987384796, 0.41747090220451355, 0.05046956241130829, 0.3039824068546295, -0.17436999082565308, 0.04670744389295578, 0.06950563192367554, 0.030072785913944244, -0.06245437636971474, 0.2462417036294937, 0.0316343791782856, -0.07513640820980072, -0.29604554176330566, 0.16333763301372528, -0.14136937260627747, 0.027609791606664658, 0.004959629848599434, -0.13278765976428986, 0.09297715872526169, -0.1903194934129715, 0.15852001309394836, 0.07855267822742462, -0.1185065358877182, -0.02588953822851181, 0.5626156330108643, 0.39339786767959595, 0.11258966475725174, -0.334891676902771, -0.012978248298168182, -0.4407358765602112, 0.428189218044281, -0.18071691691875458, 0.08975362777709961, -0.07978637516498566, 0.04633253067731857, 0.31209713220596313, -0.05037679895758629, 0.3549776077270508, -0.7811678647994995, -0.07840730249881744, 0.11578230559825897, 0.08945174515247345, 0.17737255990505219, -0.24560411274433136, -0.2957967221736908, -0.026482900604605675, -0.05696361884474754, 0.2709859013557434, -0.4256749749183655, -0.056798115372657776, 0.35747233033180237, 0.028708338737487793, 0.012617778033018112, -0.22660839557647705, -0.31593233346939087, -0.4480448067188263, -0.08336520195007324, -0.08258045464754105, -0.06470206379890442, 0.05112648382782936, -0.0709429606795311, 0.04367278143763542, 0.3172577917575836, 0.03981492668390274, 0.3034191131591797, 0.10993954539299011, 0.3564158082008362, 0.06419844925403595, 0.05612869933247566, 0.18765287101268768, 0.002826344221830368, 0.5051730871200562, 0.5808930993080139, 0.1738121062517166, -0.48080217838287354, 0.18059760332107544, -0.20183657109737396, 0.22890779376029968, 0.262245774269104, -0.1280352622270584, 0.4032517075538635, 0.026643499732017517, 0.21858307719230652, -0.07569651305675507, -0.12974515557289124, 0.5539481043815613, -0.4960135817527771, -0.5256834626197815, -0.9249371886253357, 0.14097674190998077, 0.1506536304950714, 0.05514732003211975, 0.22031117975711823, -0.0469478964805603, -0.08648759126663208, 0.17831020057201385, -0.07167515903711319, 1.2417972087860107, -0.0618523508310318, -0.09911926090717316, 0.03731485828757286, -0.10445047914981842, 0.17051485180854797, -0.580906331539154, 0.1395513415336609, -0.42813047766685486, -0.7056016325950623, -0.2623662054538727, 0.05511701479554176, 0.24822750687599182, -0.017437957227230072, -0.5339740514755249, 0.3555334806442261, -0.1615564227104187, 0.3544081747531891, -0.060149408876895905, 0.28983089327812195, -0.4567408263683319, -0.2235288769006729, -0.3027096390724182, 0.08259418606758118, 0.030012454837560654, 0.29926806688308716, -0.11093801259994507, -0.2648499011993408, 0.19995266199111938, -0.20523078739643097, -0.25824761390686035, 0.2547662854194641, -0.3938291370868683, -0.10837839543819427, -0.32647842168807983, -0.45076096057891846, 0.16753974556922913, 0.1499411165714264, -0.04273966699838638, -0.06619156897068024, -0.06936062127351761, 0.08043220639228821, 0.11559796333312988, -0.12942928075790405, -0.02533961646258831, -0.09498365223407745, -0.06278194487094879, -0.15433448553085327, 0.02348487824201584, 0.23179930448532104, 0.01315403264015913, -0.32271647453308105, -0.12334796786308289, -0.054279625415802, 0.07322382181882858, 0.1456601619720459, -0.28469225764274597, 0.1272842288017273, -0.31910350918769836, -0.1180831789970398, 0.07611002027988434, 0.19020360708236694, -0.33414605259895325, 0.035254836082458496, -0.21064983308315277, 0.004017941653728485, -0.2828347980976105, 0.432535856962204, 0.1777551770210266, 0.17832238972187042, 0.2842952609062195, 0.17198270559310913, -0.2316274493932724, -0.1990162432193756, -0.11828507483005524, 0.1950286328792572, -0.47422948479652405, -0.16321484744548798, 0.05488494411110878, -0.014643490314483643, 0.22421804070472717, 0.22489136457443237, -0.1088377833366394, 0.04265639930963516, -0.3406655192375183, -0.39427271485328674, -0.011775962077081203, -0.04622231423854828, -0.1776839941740036, 0.030274398624897003, -0.13748420774936676, -0.046056218445301056, -0.04937237501144409, 0.017807822674512863, -0.2901325225830078, -0.12925642728805542, 0.060563236474990845, -0.06039571017026901, 0.18545423448085785, 0.24483218789100647, 0.3886776268482208, -0.007143863942474127, 0.03769797086715698, 0.1317116618156433, -0.29130691289901733, -0.019797295331954956, 0.09678234159946442, 0.18824262917041779, 0.016743242740631104, -0.14418430626392365, -0.26388072967529297, -0.3120473623275757, -0.47118839621543884, -0.11072494089603424, 0.14852552115917206, 0.2301989197731018, 0.06225530803203583, -0.09664953500032425, 0.04322002828121185, -0.007282167673110962, -0.3134504556655884, 0.04210497438907623, 0.060851484537124634, 0.23829887807369232, -0.19065414369106293, 0.055139556527137756, -0.030785489827394485, -0.10042966902256012, 0.020712750032544136, 0.11341744661331177, 0.20146003365516663, 0.34433919191360474, 0.5739116668701172, -0.11576290428638458, 0.27889230847358704, 0.026080606505274773, 0.5910475254058838, 0.4434531033039093, -0.045482032001018524, -0.14164334535598755, 0.2069343626499176, 0.13734419643878937, -0.23063287138938904, -0.266759991645813, 0.16745628416538239, 0.14534728229045868, -0.006013739854097366, 0.28636690974235535, 0.2707177996635437, 0.334098756313324, 0.20419898629188538, 0.06978044658899307, 0.3177869915962219, -0.052499763667583466, 0.4214414954185486, 0.2874312996864319, 0.054882463067770004, 0.15984094142913818, 0.09823902696371078, 0.08745379000902176, 0.014204859733581543, 0.05266350880265236, -0.017064526677131653, 0.49758079648017883, 0.0660117119550705, -0.15916644036769867, -0.044415123760700226, -0.7036072611808777, -0.10201522707939148, 0.18942099809646606, 0.15637192130088806, 0.3230375647544861, 0.1850840449333191, 0.21797171235084534, -0.23160552978515625, 0.17206789553165436, -0.48787543177604675, -0.04295085743069649, 0.08619456738233566, 0.2053394913673401, 0.1219341903924942, -0.1448928415775299, -0.16067880392074585, -0.039699818938970566, 0.045491136610507965, 0.3450220823287964, -0.2515127956867218, 0.1324160099029541, 0.05694336071610451, 0.21763759851455688, -0.20578235387802124, -0.16967228055000305, 0.2819669544696808, -0.19019728899002075, 0.23639269173145294, 0.1565665304660797, 0.2976298928260803, 0.1318691372871399, 0.04758457839488983, 0.23532980680465698, 0.2381087690591812, 0.30223098397254944, 0.08862801641225815, -0.05085821822285652, -0.14930246770381927, 0.0360095389187336, 0.18239560723304749, 0.25396817922592163, -0.26424628496170044, 0.2667767107486725, 0.06012767553329468, -0.1648162603378296, 0.5647528171539307, 0.04012402519583702, 0.36703771352767944, -0.017900649458169937, -0.14851796627044678, -0.23805072903633118, -0.051153428852558136, -0.3526962399482727, -0.28885093331336975, -0.3781459927558899, 0.10069532692432404, 0.1410207748413086, 0.07095973193645477, -0.06544022262096405, -0.16008028388023376, 0.013418152928352356, 0.14640454947948456, 0.24938467144966125, 0.3832252323627472, -0.3196686804294586, -0.17764632403850555, -0.4517636299133301, -0.6599299311637878, 0.26250362396240234, -0.13405363261699677, 0.12722565233707428, -0.1682041883468628, 0.18825100362300873, 0.16274094581604004, 0.13676735758781433, 0.29738765954971313, -0.1995219886302948, 0.21424125134944916, 0.4264179468154907, -0.1228780746459961, -0.3521488904953003, 0.18366768956184387, 0.15222802758216858, -0.1705361306667328, -0.053961314260959625, 0.00616089254617691, -0.030105862766504288, 0.0957130715250969, -0.26734453439712524, 0.03234424442052841, -0.28033775091171265, 0.03207850456237793, 0.49416035413742065, 0.009391260333359241, 0.4699868857860565, -0.14193233847618103, -0.1302371323108673, -0.23997700214385986, 0.011510513722896576, -0.21952809393405914, 0.11624129116535187, 0.23043900728225708, 0.44518139958381653, 0.17860595881938934, -0.09041188657283783, -0.709010660648346, 0.39310580492019653, -0.1875419318675995, 0.15647733211517334, -0.5116577744483948, 0.23047123849391937, -0.12519191205501556, 0.13267745077610016, 0.07089979201555252, -0.01963832974433899, 0.09078731387853622, -0.1708146035671234, -0.2986959218978882, -0.34195637702941895, 0.5078471899032593, 0.060778215527534485, -0.20482777059078217, 0.03367159143090248, 0.1023426279425621, -0.00013638287782669067, 0.004569685086607933, -0.4544656574726105, 0.2628403902053833, 0.08545687049627304, -0.06005764752626419, 0.12464053928852081, 0.19839751720428467, 0.00222164299339056, 0.03567915037274361, -0.017224181443452835, 0.11937414109706879, 0.31513339281082153, -0.26535922288894653, 0.051841769367456436, -0.05059545114636421 ]
https://github.com/huggingface/datasets/issues/4181
Support streaming FLEURS dataset
Actually we could maybe just host the metadata file ourselves and then stream the audio data only. Don't think that this would be a problem for the FLEURS authors (I can ask them :-))
## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo
34
Support streaming FLEURS dataset ## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo Actually we could maybe just host the metadata file ourselves and then stream the audio data only. Don't think that this would be a problem for the FLEURS authors (I can ask them :-))
[ -0.3465266823768616, 0.04778289794921875, -0.011321984231472015, 0.35819244384765625, 0.010883653536438942, -0.18242496252059937, 0.1321621984243393, 0.09554201364517212, 0.009387273341417313, 0.3383342921733856, -0.08467349410057068, 0.35499680042266846, -0.20761525630950928, 0.03967783600091934, 0.07718870043754578, -0.12629394233226776, -0.17723241448402405, 0.2091529369354248, -0.09726890921592712, -0.006757102906703949, -0.17362676560878754, 0.13883903622627258, -0.05908161774277687, -0.25104397535324097, 0.22489503026008606, 0.13816995918750763, 0.3737018406391144, -0.004704080522060394, -0.3317725956439972, -0.1025734394788742, 0.022424330934882164, 0.2986322343349457, 0.33820641040802, 0.37448158860206604, -0.00011692382395267487, -0.0809723362326622, 0.28614819049835205, -0.31816959381103516, -0.04365259408950806, -0.2458704262971878, -0.30006951093673706, 0.03487230837345123, -0.21524116396903992, 0.11014873534440994, -0.24835205078125, -0.16508081555366516, -0.12586665153503418, -0.5348570346832275, 0.17925336956977844, 0.3949444890022278, 0.14088542759418488, 0.14991621673107147, -0.12869776785373688, 0.15751448273658752, 0.4355321228504181, -0.07745927572250366, -0.16299127042293549, 0.004535137675702572, 0.5227056741714478, 0.22646279633045197, 0.0891093835234642, 0.6124958395957947, -0.1811639964580536, -0.07710185647010803, 0.2782347500324249, -0.1681106686592102, -0.31004783511161804, -0.6150920391082764, 0.2490234673023224, 0.5604381561279297, 0.9131397008895874, -0.11904863268136978, -0.3767666816711426, 0.18013370037078857, 0.1983644962310791, -0.32376667857170105, 0.1531999260187149, 0.14570623636245728, -0.02313188835978508, 0.1866730898618698, -0.016562659293413162, -0.26667389273643494, -0.3694910407066345, -0.03263772279024124, 0.1463838815689087, 0.2792654037475586, -0.15374073386192322, -0.017832934856414795, 0.33502280712127686, -0.040859438478946686, 0.3526967763900757, 0.13544994592666626, -0.24969741702079773, 0.2528280019760132, -0.19140984117984772, -0.22534877061843872, -0.10794786363840103, -0.022962480783462524, 0.23270905017852783, 0.45108288526535034, 0.19737505912780762, 0.32498598098754883, -0.3871859312057495, 0.28963354229927063, 0.19903132319450378, 0.06172501668334007, 0.10823962092399597, -0.011093477718532085, 0.364631712436676, 0.3095226287841797, 0.3413383364677429, -0.19912979006767273, -0.0538567453622818, -0.09240297973155975, -0.2356451451778412, 0.16283515095710754, 0.3621971011161804, -0.31505969166755676, -0.2789810001850128, 0.18765927851200104, -0.29412105679512024, -0.24614045023918152, 0.03898341581225395, 0.23128634691238403, -0.09251028299331665, 0.3123287856578827, -0.11691172420978546, 0.5035737156867981, 0.08672632277011871, -0.5104272961616516, -0.0029089639429003, 0.3033917248249054, 0.11937373876571655, 0.08321778476238251, 0.0959518551826477, -0.2939254641532898, 0.12865349650382996, -0.11201716214418411, 0.2980926036834717, -0.01669308915734291, 0.2071099728345871, -0.171617791056633, 0.053022585809230804, 0.26360711455345154, 0.1982685923576355, 0.03481343388557434, -0.06740589439868927, -0.029340555891394615, -0.20312848687171936, 0.14275696873664856, -0.18661758303642273, -0.23635020852088928, -0.25983962416648865, 0.1449696123600006, -0.2591233253479004, 0.11391861736774445, -0.4070033133029938, 0.26571395993232727, -0.18265357613563538, -0.46764329075813293, 0.010508023202419281, 0.011026723310351372, -0.16399849951267242, -0.028747543692588806, 0.26653963327407837, 0.34719276428222656, -0.5918578505516052, 0.15281496942043304, -0.3711465001106262, -0.07953661680221558, 0.4846859872341156, 0.07274028658866882, 0.011609198525547981, -0.1874217689037323, -0.17177154123783112, 0.15817807614803314, 0.4975656270980835, -0.1795368641614914, -0.4102560579776764, 0.18320681154727936, -0.09548074007034302, 0.27325254678726196, 0.4980642795562744, 0.12663599848747253, 0.422903448343277, -0.1972799301147461, -0.07819148898124695, 0.3558439016342163, 0.06342509388923645, -0.05013429373502731, -0.13113807141780853, -0.22060881555080414, 0.07223361730575562, 0.360360324382782, -0.036543671041727066, 0.263235867023468, 0.20940174162387848, -0.22887451946735382, 0.19573071599006653, 0.08977913856506348, 0.22152002155780792, 0.2921297550201416, 0.3827856779098511, 0.3689916729927063, -0.07282289117574692, -0.13158032298088074, -0.020994514226913452, -0.02473866380751133, -0.10213132202625275, 0.1697690486907959, -0.22037334740161896, -0.25961393117904663, -0.09723653644323349, -0.1672205626964569, -0.35130923986434937, -0.23682987689971924, 0.10477298498153687, 0.30010655522346497, -0.21748770773410797, -0.015769993886351585, -0.304070383310318, 0.02621019259095192, 0.1325041651725769, -0.1488073468208313, -0.520018458366394, 0.2710456848144531, -0.09179732948541641, -0.01346804853528738, 0.1762211173772812, 0.03737727180123329, 0.13277649879455566, -0.28753602504730225, 0.0006851945072412491, 0.2810632884502411, 0.10218740254640579, 0.41845524311065674, 0.23289668560028076, 0.22994238138198853, 0.11195342987775803, -0.3197920620441437, 0.13740450143814087, 0.4395703673362732, 0.1346970945596695, -0.13624784350395203, 0.03971671313047409, 0.1260547637939453, 0.29003119468688965, 0.21613597869873047, 0.11820092797279358, 0.1800968497991562, 0.3529725968837738, 0.23174327611923218, -0.27319562435150146, -0.21821165084838867, 0.07213246077299118, -0.1679667830467224, 0.07169610261917114, -0.38558557629585266, -0.4508510231971741, -0.0226740762591362, 0.2906952500343323, -0.09148140251636505, -0.057302385568618774, 0.0920812115073204, -0.18234756588935852, -0.13345038890838623, 0.19516269862651825, 0.1314355880022049, 0.3152715861797333, 0.07279366999864578, 0.1466713696718216, 0.0364614874124527, 0.5099164843559265, -0.0875779390335083, 0.1280166208744049, -0.028091594576835632, -0.17663107812404633, 0.10241229832172394, -0.06362726539373398, -0.08769549429416656, -0.34756556153297424, -0.4063440263271332, -0.047320567071437836, 0.3527105450630188, -0.13288672268390656, -0.1323511153459549, -0.3588336408138275, -0.29837557673454285, -0.021012987941503525, -0.31829196214675903, -0.2944062650203705, -0.23839251697063446, 0.026943206787109375, 0.5002352595329285, -0.16653083264827728, 0.23893891274929047, 0.05544764921069145, -0.02166612446308136, -0.0594281367957592, 0.08073937892913818, -0.283176988363266, 0.06774824112653732, 0.0716976523399353, 0.06815719604492188, 0.263650506734848, -0.1535738706588745, 0.28709909319877625, -0.12179914861917496, -0.04850253090262413, -0.6523526310920715, 0.12576472759246826, 0.24102799594402313, 0.05561337247490883, -0.03345075249671936, 0.08429145067930222, 0.4319612383842468, 0.28038299083709717, -0.05404673516750336, -0.08214504271745682, -0.15316344797611237, 0.07236514240503311, 0.10750164091587067, -0.007350292056798935, 0.299852192401886, -0.1346268653869629, -0.3743998408317566, -0.4467798173427582, -0.4395461678504944, 0.12234663963317871, 0.03153737261891365, 0.19462159276008606, 0.048693668097257614, -0.09661435335874557, 0.004600665532052517, -0.0001797117292881012, -0.04530797898769379, -0.3398095369338989, -0.43936747312545776, 0.41448941826820374, -0.22364714741706848, -0.33659037947654724, 0.29601582884788513, 0.27115434408187866, 0.03271927312016487, 0.197262242436409, -0.17530271410942078, -0.3161945641040802, 0.11263590306043625, -0.259674072265625, -0.17768512666225433, 0.08377247303724289, 0.44221729040145874, -0.031024569645524025, 0.1424797773361206, -0.10981927067041397, -0.04600612074136734, -0.22271710634231567, 0.08611235022544861, 0.22954881191253662, 0.05279510095715523, 0.36224427819252014, -0.2010880708694458, 0.32710951566696167, 0.22160978615283966, 0.26179608702659607, 0.37303826212882996, -0.07604378461837769, 0.38778796792030334, -0.19023481011390686, -0.0024084411561489105, 0.044789332896471024, -0.016561254858970642, -0.3007690906524658, 0.2356594353914261, 0.06943787634372711, -0.1281733363866806, -0.3470674753189087, 0.23149007558822632, -0.0668201595544815, -0.14699776470661163, -0.08199138194322586, -0.11235159635543823, 0.1105678603053093, -0.04121195897459984, 0.2360946238040924, 0.1724216192960739, -0.0921478345990181, 0.051615383476018906, 0.5479170083999634, 0.34186655282974243, 0.10584887117147446, -0.3939477801322937, -0.07647252082824707, -0.3949281573295593, 0.3586543798446655, -0.19045841693878174, 0.39639949798583984, -0.1783776581287384, 0.02335246652364731, 0.18819162249565125, 0.03920058161020279, 0.1998981088399887, -0.8085697293281555, -0.05541592836380005, 0.0778929591178894, 0.3049313426017761, 0.28231438994407654, -0.17223773896694183, -0.26545485854148865, -0.05401099473237991, -0.07923339307308197, 0.20527423918247223, -0.35050421953201294, 0.010898923501372337, 0.15916471183300018, 0.11112465709447861, 0.12966839969158173, -0.0816800594329834, -0.18215619027614594, -0.46785229444503784, -0.10627224296331406, -0.09720578044652939, 0.010824864730238914, 0.12536998093128204, -0.008557198569178581, 0.024186942726373672, 0.4635472893714905, 0.11497073620557785, 0.46794283390045166, 0.12323902547359467, 0.29038161039352417, 0.07655826210975647, 0.004837837070226669, 0.052619483321905136, -0.10084247589111328, 0.5284032821655273, 0.6033200025558472, 0.20356732606887817, -0.38136041164398193, 0.23743504285812378, -0.23425829410552979, 0.3524128496646881, 0.20589491724967957, -0.08388318866491318, 0.3682756721973419, 0.11278314143419266, 0.1614520400762558, -0.1498515009880066, -0.052590686827898026, 0.3983606994152069, -0.37562212347984314, -0.3740899860858917, -0.8834089636802673, 0.1469656229019165, 0.052236396819353104, 0.037179455161094666, 0.2348800003528595, -0.09046304225921631, -0.04402191936969757, 0.19469544291496277, -0.25396040081977844, 1.1974945068359375, 0.12199422717094421, -0.128261998295784, -0.0009909290820360184, -0.2270044982433319, 0.08345463126897812, -0.6740967035293579, -0.003450687974691391, -0.2118026465177536, -0.43940800428390503, -0.22510677576065063, 0.14560705423355103, 0.17753276228904724, 0.01584060862660408, -0.42534422874450684, 0.32888731360435486, -0.055184341967105865, 0.27235400676727295, -0.019252927973866463, 0.262919545173645, -0.48571068048477173, -0.3587038815021515, -0.26032310724258423, 0.09089598804712296, 0.004267122596502304, 0.21504594385623932, -0.012058735825121403, -0.3151988983154297, 0.1570291966199875, -0.21092458069324493, -0.3711957335472107, 0.22640559077262878, -0.3600931763648987, -0.14988183975219727, -0.3611082434654236, -0.45968788862228394, 0.28323864936828613, 0.026451613754034042, -0.26330310106277466, 0.09605927765369415, -0.1288839876651764, 0.035792749375104904, 0.06809534877538681, 0.1211693212389946, -0.024264000356197357, 0.07933713495731354, -0.0891132727265358, -0.09293243288993835, -0.07924896478652954, 0.3013419806957245, -0.06604927778244019, -0.28975313901901245, -0.08916932344436646, -0.08830513060092926, 0.08220729231834412, 0.13981333374977112, -0.26683345437049866, 0.06336357444524765, -0.20280642807483673, -0.0932970643043518, 0.08594290912151337, 0.24043793976306915, -0.5589905977249146, 0.01988029107451439, -0.12808334827423096, 0.018829263746738434, -0.18479393422603607, 0.35867321491241455, 0.1413058638572693, 0.018341466784477234, 0.26127171516418457, 0.15905191004276276, -0.08210097253322601, -0.2802610397338867, 0.027820482850074768, 0.18174591660499573, -0.363163560628891, -0.26958832144737244, 0.10819261521100998, -0.13208946585655212, -0.05357535928487778, 0.07389616221189499, -0.19912229478359222, 0.10859987139701843, -0.340271919965744, -0.47339919209480286, -0.21555790305137634, 0.07687555998563766, -0.11774170398712158, 0.09205459803342819, -0.13592427968978882, -0.06373460590839386, -0.05137854814529419, -0.11265867948532104, -0.2818334102630615, -0.12435316294431686, -0.03191971406340599, -0.05504010617733002, 0.19498777389526367, 0.22686484456062317, 0.29109203815460205, -0.08594417572021484, 0.002601856365799904, 0.05541437119245529, -0.3503640294075012, 0.021107938140630722, 0.11097711324691772, 0.19601893424987793, 0.13003218173980713, -0.13597261905670166, -0.23688261210918427, -0.27513575553894043, -0.451091468334198, 0.019525829702615738, 0.17103612422943115, 0.34502458572387695, 0.09477972984313965, -0.030686281621456146, -0.07436379790306091, 0.022884618490934372, -0.3300971984863281, 0.021094979718327522, 0.1059446707367897, 0.1302901953458786, -0.14870591461658478, 0.037069469690322876, 0.0408601313829422, -0.13731804490089417, 0.007563801947981119, 0.20316660404205322, 0.08473078906536102, 0.23607733845710754, 0.5368524193763733, 0.03664281964302063, 0.3758805990219116, 0.09006204456090927, 0.5837079286575317, 0.5505301356315613, -0.1584787517786026, -0.07565610855817795, 0.3321889638900757, 0.15675969421863556, -0.17763228714466095, -0.23485039174556732, 0.048143256455659866, -0.030643805861473083, 0.03754257783293724, 0.2877923846244812, 0.20738035440444946, 0.27136358618736267, 0.2925157845020294, 0.028725963085889816, 0.22372858226299286, -0.11549949645996094, 0.3524424433708191, 0.2658206522464752, -0.2498472034931183, 0.0747755616903305, -0.07351413369178772, 0.04592239111661911, -0.03130648285150528, 0.09702827036380768, -0.19479534029960632, 0.5202224850654602, 0.2164362370967865, -0.2609175443649292, 0.09640921652317047, -0.5426163077354431, -0.2720952033996582, 0.16369648277759552, 0.2801593542098999, 0.3600963056087494, 0.09417496621608734, 0.3067089319229126, -0.3732592463493347, 0.18142728507518768, -0.21300557255744934, -0.0745290070772171, 0.12946325540542603, 0.15226678550243378, 0.21247924864292145, -0.1421261578798294, -0.21186457574367523, -0.1351991444826126, 0.13963787257671356, 0.3787609934806824, -0.35571274161338806, -0.0027743130922317505, 0.009579688310623169, 0.33843448758125305, -0.32577574253082275, -0.04942450672388077, 0.10150989890098572, -0.2193453013896942, 0.20437444746494293, 0.12454738467931747, 0.3276558220386505, 0.23522500693798065, 0.06845899671316147, 0.259470134973526, 0.1739385426044464, 0.24482232332229614, 0.10389091819524765, -0.04086925834417343, -0.10780836641788483, 0.13181623816490173, 0.20445358753204346, 0.3160470128059387, -0.20843873918056488, 0.35816189646720886, 0.03476624935865402, -0.09487611800432205, 0.46446138620376587, 0.09991443157196045, 0.2994821071624756, -0.10784180462360382, -0.028397507965564728, -0.24106475710868835, -0.08616013079881668, -0.36314424872398376, -0.27155643701553345, -0.36621999740600586, 0.03281382471323013, 0.12590868771076202, 0.11889886111021042, 0.01787445694208145, -0.17498080432415009, 0.010415902361273766, 0.029030816629529, 0.1946169137954712, 0.3990720510482788, -0.31683966517448425, 0.0018834089860320091, -0.38295674324035645, -0.7671827673912048, 0.22707664966583252, -0.053446393460035324, 0.038942039012908936, -0.17165106534957886, 0.06464581936597824, 0.37672141194343567, 0.3190668225288391, 0.18319809436798096, -0.0567740835249424, 0.09550563246011734, 0.30709296464920044, -0.08839815109968185, -0.3043619990348816, 0.13268589973449707, 0.30474865436553955, -0.09004779905080795, -0.13782596588134766, 0.001674022525548935, 0.0216747485101223, 0.06853808462619781, -0.1743931919336319, -0.004277508705854416, -0.41103264689445496, 0.029260890558362007, 0.4564928114414215, 0.024915779009461403, 0.4320080578327179, -0.22266998887062073, -0.13359080255031586, -0.29646778106689453, -0.015640122815966606, -0.14902126789093018, -0.051357075572013855, 0.14461533725261688, 0.42190882563591003, 0.19855482876300812, -0.1451823115348816, -0.6406862735748291, 0.42856624722480774, -0.2640475630760193, 0.17259952425956726, -0.5428699254989624, 0.18461057543754578, -0.1017361581325531, 0.15775267779827118, 0.047361310571432114, -0.22287535667419434, 0.004081565886735916, -0.1827024668455124, -0.36553841829299927, -0.3227790892124176, 0.5737431645393372, 0.1045813038945198, -0.34238436818122864, -0.020782608538866043, 0.2529553174972534, -0.07417290657758713, -0.12596701085567474, -0.6210111975669861, 0.2687746286392212, 0.005014396738260984, 0.0033148061484098434, 0.12935897707939148, 0.05297171324491501, -0.16406843066215515, -0.029817301779985428, 0.008770264685153961, 0.11383534967899323, 0.30330854654312134, -0.09217178821563721, 0.13093286752700806, -0.16545023024082184 ]
https://github.com/huggingface/datasets/issues/4181
Support streaming FLEURS dataset
I made a PR to their repo to support streaming (by uploading the metadata file to the Hub). See: - https://huggingface.co/datasets/google/fleurs/discussions/4
## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo
21
Support streaming FLEURS dataset ## Dataset viewer issue for '*name of the dataset*' https://huggingface.co/datasets/google/fleurs ``` Status code: 400 Exception: NotImplementedError Message: Extraction protocol for TAR archives like 'https://storage.googleapis.com/xtreme_translations/FLEURS/af_za.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead. ``` Am I the one who added this dataset ? Yes Can I fix this somehow in the script? @lhoestq @severo I made a PR to their repo to support streaming (by uploading the metadata file to the Hub). See: - https://huggingface.co/datasets/google/fleurs/discussions/4
[ -0.4422245919704437, -0.21560819447040558, 0.02430889382958412, 0.3373895287513733, 0.028103573247790337, -0.06792489439249039, -0.002459954470396042, 0.08839099854230881, 0.17809782922267914, 0.3295021653175354, 0.03949349373579025, 0.303334504365921, -0.10033111274242401, 0.17418211698532104, 0.1483173668384552, -0.11870025098323822, -0.09705974906682968, 0.19584137201309204, -0.0028715431690216064, 0.04195990413427353, -0.13310545682907104, 0.2164050042629242, -0.0021455734968185425, -0.3270977735519409, 0.177400603890419, 0.1500687599182129, 0.22727128863334656, -0.06748213618993759, -0.26848626136779785, -0.08559779822826385, 0.06736402958631516, 0.25254881381988525, 0.3961019814014435, 0.36312729120254517, -0.00012348937161732465, -0.06070000305771828, 0.34705913066864014, -0.21844251453876495, -0.12124572694301605, -0.21728719770908356, -0.17470961809158325, -0.07101521641016006, 0.03545977175235748, 0.06066238135099411, -0.2474040687084198, -0.09306827187538147, 0.07755642384290695, -0.48249271512031555, 0.094563789665699, 0.31721386313438416, 0.08379880338907242, 0.26892733573913574, -0.03256365656852722, -0.024727415293455124, 0.29451632499694824, -0.1741609126329422, -0.2775813043117523, 0.039008840918540955, 0.422884076833725, 0.2840098440647125, 0.043253201991319656, 0.5287249684333801, -0.07731225341558456, -0.09037698805332184, 0.29075154662132263, -0.07303749024868011, -0.3128916919231415, -0.5815659761428833, 0.1617863029241562, 0.4677574634552002, 0.7632164359092712, 0.01601283624768257, -0.4306313693523407, 0.09608084708452225, 0.23067721724510193, -0.32604914903640747, 0.14701250195503235, 0.11798132956027985, 0.06479670107364655, 0.20431777834892273, -0.062334466725587845, -0.33189234137535095, -0.442626416683197, 0.00974639505147934, -0.010750092566013336, 0.3422783315181732, -0.1154835969209671, -0.0127316415309906, 0.2840157449245453, 0.12404479086399078, 0.45416751503944397, 0.07387658208608627, -0.30782490968704224, 0.06800398230552673, -0.3127202093601227, -0.18047823011875153, -0.053534187376499176, 0.2689463198184967, 0.1375797688961029, 0.542273223400116, 0.2858409285545349, 0.3229843080043793, -0.29170024394989014, 0.2664351463317871, 0.11593803763389587, 0.28032875061035156, 0.0591772124171257, 0.0376913957297802, 0.3507349491119385, 0.4157085418701172, 0.34794512391090393, -0.1993977129459381, -0.010652212426066399, -0.0935777947306633, -0.3027689754962921, 0.12143006175756454, 0.3127487897872925, -0.1707342118024826, -0.2842373251914978, 0.2293737232685089, -0.23407453298568726, -0.26643919944763184, 0.07232590019702911, 0.2927708029747009, -0.21976947784423828, 0.2972153127193451, -0.09427283704280853, 0.37716662883758545, 0.04577619582414627, -0.5681217908859253, -0.13213691115379333, 0.2686702609062195, 0.05103853717446327, 0.007349840365350246, 0.022723276168107986, -0.4799017012119293, -0.030868982896208763, -0.19696103036403656, 0.29622235894203186, 0.11880098283290863, 0.15190039575099945, -0.2286309450864792, 0.061442337930202484, 0.2681381404399872, 0.24235132336616516, 0.06960879266262054, 0.14611174166202545, 0.005051020532846451, -0.0885181650519371, 0.026761207729578018, -0.14934563636779785, -0.32775822281837463, -0.28846773505210876, 0.08953386545181274, -0.3095220923423767, -0.06346525251865387, -0.387216180562973, 0.27512332797050476, -0.2876209020614624, -0.32507801055908203, -0.055503569543361664, 0.07640321552753448, 0.007116671651601791, -0.07669119536876678, 0.21706189215183258, 0.4469914436340332, -0.5830473303794861, 0.06161890923976898, -0.4924883246421814, -0.1307273656129837, 0.523332953453064, -0.0003732144832611084, 0.0901099368929863, -0.17854836583137512, -0.15279477834701538, 0.12743137776851654, 0.4680967628955841, -0.07424841076135635, -0.48297566175460815, 0.2972975969314575, -0.09233236312866211, 0.236357644200325, 0.5025602579116821, 0.11901301890611649, 0.37380337715148926, -0.07961944490671158, -0.14204835891723633, 0.377444863319397, 0.03054305538535118, -0.12603925168514252, -0.14465297758579254, -0.21183663606643677, 0.03859661519527435, 0.30749356746673584, 0.19961939752101898, 0.2685045301914215, 0.2513689398765564, -0.3048973083496094, 0.07929515093564987, 0.035472191870212555, 0.22714440524578094, 0.2716097831726074, 0.3697882294654846, 0.3904774785041809, -0.03858762979507446, -0.01908930204808712, -0.17709693312644958, 0.07849172502756119, -0.1877427101135254, 0.11806219816207886, -0.24451832473278046, -0.16966010630130768, -0.044383883476257324, -0.17884594202041626, -0.357199490070343, -0.20381450653076172, 0.0663190633058548, 0.3460357189178467, -0.11932291090488434, -0.018432170152664185, -0.34508320689201355, 0.1180436834692955, 0.043860048055648804, 0.010341058485209942, -0.5593832731246948, 0.4021203815937042, -0.10427884012460709, -0.07703977078199387, 0.03890281170606613, -0.14099660515785217, 0.17411284148693085, -0.34996628761291504, 0.00006556790322065353, 0.22697997093200684, -0.11457895487546921, 0.4719187617301941, 0.42643338441848755, 0.07180091738700867, 0.13307994604110718, -0.3066113591194153, 0.18041929602622986, 0.4213894009590149, 0.04460947588086128, -0.059303876012563705, 0.03713173419237137, 0.14308708906173706, 0.17180746793746948, 0.13756659626960754, 0.06000295281410217, 0.2549763023853302, 0.33704838156700134, 0.1886054128408432, -0.12258318066596985, -0.3521186113357544, 0.16068722307682037, -0.06934860348701477, -0.0069540925323963165, -0.5138200521469116, -0.46921050548553467, -0.001752212643623352, 0.19424542784690857, -0.0435229167342186, -0.0509321391582489, 0.21527931094169617, -0.1410956084728241, -0.09873826801776886, 0.18944787979125977, 0.1519806832075119, 0.32804974913597107, 0.037736859172582626, 0.09615642577409744, 0.09658777713775635, 0.48680639266967773, -0.14702872931957245, 0.13776284456253052, -0.0064947158098220825, -0.10966762155294418, 0.1375986933708191, -0.10695528239011765, -0.013399829156696796, -0.3253694176673889, -0.39784401655197144, -0.014406139962375164, 0.3627968728542328, -0.08005952090024948, -0.01195436529815197, -0.4124411940574646, -0.3422221839427948, 0.07819397747516632, -0.21864593029022217, -0.20524612069129944, -0.4134397506713867, -0.08197371661663055, 0.5284876823425293, -0.02735995128750801, 0.15162134170532227, 0.017460260540246964, 0.012340471148490906, -0.07338130474090576, 0.07493549585342407, -0.41281113028526306, 0.055864762514829636, 0.01308046467602253, 0.05043472722172737, 0.157313272356987, -0.29093137383461, 0.31799376010894775, -0.17643262445926666, 0.13369256258010864, -0.7569721341133118, -0.040271468460559845, 0.3160587251186371, -0.15229915082454681, 0.06508517265319824, 0.21081165969371796, 0.4605976939201355, 0.13365519046783447, 0.09009359776973724, -0.016586922109127045, -0.28402525186538696, 0.04398934543132782, 0.10485590249300003, -0.10963718593120575, 0.22802415490150452, -0.09807884693145752, -0.24852168560028076, -0.38834619522094727, -0.37030383944511414, 0.19200141727924347, 0.20828408002853394, 0.0931476578116417, -0.04187954217195511, -0.056393008679151535, 0.012208149768412113, 0.05472928285598755, -0.18839062750339508, -0.26504218578338623, -0.3950463533401489, 0.45821452140808105, -0.25538527965545654, -0.35448628664016724, 0.37684202194213867, 0.24175332486629486, 0.024009080603718758, 0.1776343137025833, -0.28752702474594116, -0.37357354164123535, -0.006676003336906433, -0.22927042841911316, -0.10505300760269165, 0.02472427487373352, 0.47974324226379395, -0.15610577166080475, 0.14798808097839355, -0.0959964394569397, -0.026944341138005257, -0.20517957210540771, 0.12758958339691162, 0.27681246399879456, 0.05947590619325638, 0.397530198097229, -0.1380053609609604, 0.23086053133010864, 0.37126076221466064, 0.27442851662635803, 0.5125529170036316, 0.024733858183026314, 0.3888486921787262, -0.2109883427619934, -0.055781230330467224, 0.008891209959983826, -0.014174163341522217, -0.21606530249118805, 0.22813749313354492, -0.009167904034256935, -0.108455128967762, -0.423728883266449, 0.03809613361954689, -0.13582047820091248, -0.07265021651983261, -0.02026325650513172, -0.17435896396636963, 0.07168213278055191, -0.20402170717716217, 0.17694127559661865, 0.05408696457743645, -0.15938085317611694, -0.03046492673456669, 0.5538303256034851, 0.3718329966068268, 0.135792538523674, -0.25570598244667053, -0.12144774943590164, -0.5311111211776733, 0.5497161149978638, -0.25945258140563965, 0.22636502981185913, -0.12107709050178528, 0.10254364460706711, 0.2684239149093628, 0.017376044765114784, 0.3081853985786438, -0.8827753067016602, -0.17268948256969452, 0.07447165250778198, 0.06672518700361252, 0.156856968998909, -0.21967826783657074, -0.2765108048915863, -0.06090743839740753, -0.13754461705684662, 0.15811482071876526, -0.3892405033111572, 0.023233886808156967, 0.32681936025619507, -0.018518812954425812, -0.002438124269247055, -0.1498958319425583, -0.2607097923755646, -0.38918858766555786, -0.10371767729520798, -0.14394798874855042, -0.08122596144676208, 0.08982349932193756, -0.06418626010417938, 0.07794041931629181, 0.26377323269844055, -0.0019017308950424194, 0.3620750904083252, 0.09766045212745667, 0.296665221452713, 0.017790766432881355, -0.10277988016605377, 0.2234801948070526, -0.009060807526111603, 0.4360290765762329, 0.6249144077301025, 0.20414596796035767, -0.4479127526283264, 0.27775225043296814, -0.14121775329113007, 0.25101226568222046, 0.2821550667285919, -0.11293456703424454, 0.3666853606700897, 0.12010347843170166, 0.22286981344223022, -0.04993192106485367, -0.20755141973495483, 0.44885119795799255, -0.4165225923061371, -0.4758993685245514, -0.7671467661857605, 0.1919286698102951, 0.07647134363651276, 0.06848497688770294, 0.3085412383079529, -0.027467668056488037, -0.05181421339511871, 0.13701699674129486, -0.10122061520814896, 1.2647517919540405, 0.05988283455371857, -0.1451031118631363, -0.01552760973572731, -0.1183130294084549, 0.1807231456041336, -0.5794534683227539, 0.07380373775959015, -0.38719475269317627, -0.6016601324081421, -0.33194178342819214, 0.0754559338092804, 0.399162232875824, -0.1384354829788208, -0.5546610355377197, 0.41778865456581116, -0.1703876107931137, 0.4282951354980469, 0.0074228025041520596, 0.2368777096271515, -0.6257097125053406, -0.26265689730644226, -0.23314854502677917, 0.07253489643335342, 0.0001531541347503662, 0.3381141126155853, -0.10149667412042618, -0.2704674005508423, 0.09075668454170227, -0.17796878516674042, -0.42576926946640015, 0.21939963102340698, -0.3096907436847687, -0.095740407705307, -0.2697128653526306, -0.49593597650527954, 0.15188632905483246, 0.18329116702079773, -0.04011104255914688, -0.10180769860744476, -0.18793420493602753, 0.06784312427043915, 0.02280573919415474, -0.08711838722229004, -0.02474866434931755, -0.02178432047367096, 0.008477514609694481, -0.14713001251220703, -0.11967643350362778, 0.3506696820259094, -0.045491497963666916, -0.354358434677124, -0.12294308841228485, -0.032878272235393524, 0.006329584866762161, 0.15713384747505188, -0.2774663269519806, 0.049237314611673355, -0.29949262738227844, -0.11187441647052765, 0.03786370903253555, 0.22231735289096832, -0.31144970655441284, 0.005875065922737122, -0.07004328072071075, 0.0034077540040016174, -0.316982626914978, 0.4000300467014313, 0.1683562695980072, 0.06793254613876343, 0.2729032337665558, 0.1605420559644699, -0.2042720913887024, -0.17857626080513, -0.08112647384405136, 0.22914142906665802, -0.48073795437812805, -0.25308144092559814, -0.008427946828305721, -0.032990165054798126, 0.1514831781387329, 0.16643743216991425, -0.08007870614528656, 0.18879175186157227, -0.3711475431919098, -0.46412187814712524, -0.06532131135463715, 0.06439556181430817, -0.15174411237239838, 0.15514953434467316, -0.09144961833953857, -0.0331234373152256, 0.05277232825756073, -0.10703006386756897, -0.2235856056213379, -0.12323487550020218, -0.031592387706041336, -0.15342774987220764, 0.05577713996171951, 0.23574411869049072, 0.43040192127227783, -0.09301057457923889, -0.029762249439954758, 0.16477519273757935, -0.31740501523017883, 0.053583480417728424, 0.10752597451210022, 0.21247512102127075, 0.09787638485431671, -0.11221975833177567, -0.3183996081352234, -0.17073646187782288, -0.3691989481449127, -0.038888826966285706, 0.19145363569259644, 0.26863378286361694, 0.08778911828994751, -0.07062337547540665, 0.21861211955547333, -0.03093615174293518, -0.30516284704208374, -0.03829161077737808, 0.10632070899009705, 0.3736896514892578, -0.15513962507247925, 0.009504511952400208, 0.07545304298400879, -0.0805160254240036, 0.0003447366179898381, 0.14279238879680634, 0.23302023112773895, 0.28772759437561035, 0.5941315293312073, -0.0493735671043396, 0.29386448860168457, -0.06688040494918823, 0.5107927322387695, 0.4096035361289978, -0.13765867054462433, -0.0707402378320694, 0.24700120091438293, 0.10293249785900116, -0.1344507932662964, -0.22437810897827148, 0.19916817545890808, 0.11891099810600281, -0.035624198615550995, 0.27715083956718445, 0.3034076988697052, 0.3082515597343445, 0.19724491238594055, 0.07962895929813385, 0.3007236123085022, -0.0671875849366188, 0.48737654089927673, 0.2137080430984497, -0.06408426910638809, 0.15673671662807465, 0.039239753037691116, 0.056121550500392914, -0.012144207954406738, 0.02512924186885357, -0.1285148561000824, 0.3970409333705902, 0.01667211577296257, -0.07409629225730896, 0.08802814036607742, -0.6398984789848328, -0.17608290910720825, 0.10865531861782074, 0.09018819034099579, 0.34462714195251465, 0.09213565289974213, 0.3326756954193115, -0.31250572204589844, 0.27881649136543274, -0.4948931038379669, 0.00543564185500145, 0.10066452622413635, 0.20637454092502594, 0.10055521130561829, -0.18108943104743958, -0.19663137197494507, -0.022173432633280754, 0.12498359382152557, 0.3107353150844574, -0.3127051293849945, 0.14422334730625153, -0.06009851396083832, 0.2842113971710205, -0.17914000153541565, -0.11683227866888046, 0.29312852025032043, -0.22896714508533478, 0.16890914738178253, 0.13477635383605957, 0.2952096462249756, 0.1390043944120407, 0.11975954473018646, 0.24273163080215454, 0.16240739822387695, 0.2347744256258011, 0.09360425174236298, 0.014779636636376381, -0.1480242908000946, 0.10509543865919113, 0.19957078993320465, 0.37208616733551025, -0.23686255514621735, 0.2628546953201294, 0.018853871151804924, -0.1058744341135025, 0.5488556027412415, -0.09472255408763885, 0.4406391680240631, -0.05231308192014694, 0.05833560973405838, -0.22055786848068237, -0.004710830748081207, -0.34900107979774475, -0.2946855127811432, -0.44112247228622437, 0.138466015458107, 0.08377759158611298, 0.03730231896042824, -0.09976808726787567, -0.19609224796295166, -0.018816834315657616, 0.14002427458763123, 0.3442889451980591, 0.40614691376686096, -0.2730119526386261, -0.11619996279478073, -0.43859803676605225, -0.6028561592102051, 0.280767560005188, -0.004892703145742416, 0.1963154673576355, -0.14671915769577026, 0.11350381374359131, 0.16030439734458923, 0.25321024656295776, 0.2621231973171234, -0.13665322959423065, 0.16041728854179382, 0.3696693778038025, -0.0354793481528759, -0.33599334955215454, 0.24580766260623932, 0.2210753858089447, -0.10182154178619385, 0.028173543512821198, 0.07602158933877945, -0.016832083463668823, 0.031298987567424774, -0.2405937761068344, -0.01123269647359848, -0.29867634177207947, -0.1531061828136444, 0.5338089466094971, 0.08716442435979843, 0.4952833950519562, -0.154237762093544, -0.1147807314991951, -0.30992457270622253, -0.054078128188848495, -0.1705191731452942, 0.06328781694173813, 0.16459421813488007, 0.4114266335964203, 0.21614451706409454, -0.24017243087291718, -0.6113901138305664, 0.4774772822856903, -0.19956815242767334, 0.19963568449020386, -0.5036329627037048, 0.11264633387327194, -0.1338861584663391, 0.09667050838470459, 0.13861577212810516, -0.04024556279182434, 0.09392144531011581, -0.14419244229793549, -0.31540533900260925, -0.33900707960128784, 0.4753705561161041, -0.021907366812229156, -0.24450582265853882, 0.024029593914747238, -0.010204613208770752, 0.02175562083721161, -0.10109812766313553, -0.5152842998504639, 0.2623039484024048, 0.026653144508600235, -0.03992270678281784, 0.2147342413663864, 0.16844408214092255, 0.03616862744092941, 0.019217606633901596, -0.02374361827969551, 0.11562200635671616, 0.281329482793808, -0.06024065613746643, 0.12144584953784943, -0.03097997047007084 ]
https://github.com/huggingface/datasets/issues/4180
Add some iteration method on a dataset column (specific for inference)
Thanks for the suggestion ! I agree it would be nice to have something directly in `datasets` to do something as simple as that cc @albertvillanova @mariosasko @polinaeterna What do you think if we have something similar to pandas `Series` that wouldn't bring everything in memory when doing `dataset["audio"]` ? Currently it returns a list with all the decoded audio data in memory. It would be a breaking change though, since `isinstance(dataset["audio"], list)` wouldn't work anymore, but we could implement a `Sequence` so that `dataset["audio"][0]` still works and only loads one item in memory. Your alternative suggestion with `iterate` is also sensible, though maybe less satisfactory in terms of experience IMO
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq
111
Add some iteration method on a dataset column (specific for inference) **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq Thanks for the suggestion ! I agree it would be nice to have something directly in `datasets` to do something as simple as that cc @albertvillanova @mariosasko @polinaeterna What do you think if we have something similar to pandas `Series` that wouldn't bring everything in memory when doing `dataset["audio"]` ? Currently it returns a list with all the decoded audio data in memory. It would be a breaking change though, since `isinstance(dataset["audio"], list)` wouldn't work anymore, but we could implement a `Sequence` so that `dataset["audio"][0]` still works and only loads one item in memory. Your alternative suggestion with `iterate` is also sensible, though maybe less satisfactory in terms of experience IMO
[ -0.3390595614910126, -0.11449776589870453, -0.12802329659461975, 0.05840074270963669, 0.2029086947441101, -0.15144756436347961, 0.25771448016166687, 0.018089205026626587, -0.0479571670293808, 0.38207507133483887, -0.060508109629154205, 0.3480745255947113, -0.252398818731308, 0.002231234684586525, 0.11201558262109756, -0.264465868473053, -0.0016953572630882263, 0.2691253125667572, -0.3120144307613373, -0.041651248931884766, -0.3345964848995209, -0.1758759617805481, -0.11022257059812546, -0.22638095915317535, -0.06442449986934662, -0.12148014456033707, 0.0020147208124399185, -0.26105988025665283, -0.01038450188934803, -0.49068179726600647, -0.0038685835897922516, 0.47824567556381226, 0.30859312415122986, 0.3956209719181061, -0.00011313418508507311, -0.24147869646549225, 0.3711286783218384, -0.01985332928597927, -0.22426670789718628, -0.015538990497589111, -0.41176730394363403, -0.16881947219371796, 0.06848179548978806, -0.33159613609313965, 0.057079508900642395, -0.07486480474472046, -0.02407435141503811, -0.45075783133506775, 0.24227207899093628, 0.11954057961702347, 0.14546050131320953, 0.16596168279647827, -0.40927425026893616, 0.008845320902764797, -0.00959053635597229, 0.23016947507858276, -0.06675370037555695, -0.35470640659332275, 0.4092804491519928, -0.10226313024759293, -0.14776939153671265, 0.44925782084465027, 0.036799170076847076, 0.17232845723628998, 0.1364215463399887, 0.024691300466656685, -0.036841779947280884, -0.3222109377384186, -0.0018170364201068878, 0.3410739302635193, 0.6236734986305237, -0.17229726910591125, -0.5368268489837646, -0.37055084109306335, -0.0642554834485054, -0.22929763793945312, -0.22637701034545898, 0.17465277016162872, -0.34338024258613586, 0.12676049768924713, -0.2537133991718292, -0.0038786688819527626, -0.05694541335105896, 0.02382904663681984, 0.0800318568944931, 0.17323634028434753, 0.08326832950115204, 0.05823293700814247, 0.17575514316558838, -0.1752311736345291, 0.30762729048728943, -0.12353028357028961, 0.040201447904109955, 0.39659640192985535, -0.38176092505455017, -0.44054070115089417, 0.2670994997024536, -0.1926192343235016, 0.26346737146377563, 0.026895206421613693, -0.016674574464559555, 0.04572628438472748, -0.01059077400714159, 0.13246163725852966, 0.48113250732421875, -0.27429744601249695, -0.16238176822662354, 0.009428299032151699, 0.29007139801979065, -0.09993712604045868, 0.2921893000602722, -0.17497023940086365, -0.03859780356287956, 0.13755306601524353, 0.38711610436439514, -0.018150508403778076, 0.051812343299388885, -0.01808418333530426, 0.13138902187347412, -0.18288452923297882, -0.0815197229385376, -0.06923091411590576, 0.17169871926307678, 0.3872207999229431, 0.11839969456195831, 0.6709001064300537, -0.13332366943359375, 0.0008912272751331329, 0.11571647971868515, 0.07325324416160583, -0.05245217680931091, 0.035775326192379, -0.03941493481397629, 0.29446637630462646, 0.09706659615039825, 0.4806830585002899, 0.09222352504730225, -0.17026498913764954, 0.1900515854358673, -0.028481796383857727, 0.1716223955154419, -0.06316965818405151, 0.08454244583845139, 0.10580837726593018, -0.31326064467430115, 0.15762442350387573, -0.2327565997838974, 0.18791364133358002, -0.36478930711746216, 0.2273673415184021, 0.15643419325351715, -0.33080509305000305, 0.07227445393800735, 0.08948477357625961, -0.27721863985061646, -0.04461250454187393, -0.23988908529281616, 0.6547067165374756, 0.011301837861537933, -0.11357003450393677, 0.04006218910217285, 0.013273391872644424, -0.4495581388473511, 0.028141280636191368, 0.23303869366645813, 0.3498317301273346, -0.1387587934732437, -0.3326033055782318, -0.3864554166793823, 0.038417261093854904, -0.028601698577404022, 0.24274104833602905, -0.2549128830432892, 0.3011053204536438, 0.007657958194613457, -0.013885147869586945, 0.45084866881370544, -0.33315858244895935, -0.28682181239128113, 0.057209957391023636, 0.06318674981594086, 0.2511320412158966, 0.2280465066432953, 0.3034191429615021, 0.1066066101193428, -0.09922995418310165, 0.14721259474754333, 0.38970911502838135, -0.2189405858516693, 0.2570701241493225, -0.03416227549314499, -0.1764373928308487, 0.08014848828315735, 0.2189176082611084, 0.15446238219738007, 0.26560065150260925, -0.25298187136650085, 0.138896182179451, 0.2521294951438904, -0.26100751757621765, 0.04801640659570694, 0.09220154583454132, 0.7260245680809021, -0.25709623098373413, -0.028298726305365562, -0.7333397269248962, -0.07083649188280106, 0.08861569315195084, -0.0021889153867959976, 0.20179763436317444, -0.2342795580625534, -0.15885701775550842, 0.02646499127149582, 0.2306070774793625, 0.12325963377952576, -0.013985160738229752, 0.09518654644489288, 0.1851591318845749, -0.03944752737879753, -0.3192109763622284, -0.15359121561050415, 0.27005645632743835, 0.051521025598049164, -0.22077389061450958, -0.2705674171447754, 0.20063278079032898, 0.2884030342102051, 0.006651647388935089, 0.0024236999452114105, 0.15953345596790314, 0.012494459748268127, 0.12257756292819977, -0.012026110664010048, 0.16825293004512787, 0.25571760535240173, 0.13660019636154175, 0.04757623374462128, 0.4964619278907776, 0.05262688919901848, -0.1181492879986763, 0.07541141659021378, -0.046658437699079514, 0.18986575305461884, 0.04960675537586212, -0.1736811101436615, 0.4656038284301758, 0.03200272470712662, 0.28094053268432617, 0.12445613741874695, -0.05068104714155197, 0.4095713198184967, 0.03662889078259468, -0.44703513383865356, 0.06047573685646057, -0.028707291930913925, 0.15074051916599274, 0.1258544623851776, 0.19284369051456451, -0.25705385208129883, -0.17367079854011536, 0.4323655664920807, -0.1738213747739792, -0.01371840387582779, 0.12190262973308563, -0.2157089114189148, -0.14904826879501343, 0.19683285057544708, 0.23912455141544342, 0.3305312395095825, 0.2823484241962433, 0.07180622965097427, -0.10158943384885788, 0.09800811111927032, 0.14547602832317352, 0.18743965029716492, 0.42864465713500977, 0.05772620812058449, 0.027002699673175812, 0.27740252017974854, -0.17910774052143097, -0.27384424209594727, -0.44731900095939636, 0.004582598805427551, 0.22160784900188446, 0.05027027800679207, 0.009265562519431114, 0.09511559456586838, -0.032921601086854935, -0.16182884573936462, -0.3017004728317261, 0.2193412482738495, -0.06593906879425049, 0.16164478659629822, 0.28703388571739197, -0.33298999071121216, 0.29381364583969116, 0.14912022650241852, 0.6609230637550354, 0.2127603441476822, -0.03449813276529312, -0.4097171723842621, -0.2508559823036194, 0.2282184362411499, 0.049678314477205276, -0.008708450011909008, 0.0004180576652288437, 0.20619025826454163, 0.34341996908187866, -0.0484505295753479, -0.12211469560861588, -0.17972777783870697, -0.027498260140419006, 0.23926961421966553, 0.23450155556201935, -0.029212161898612976, 0.12725910544395447, 0.3107130527496338, -0.37803369760513306, -0.0492212250828743, -0.16392885148525238, 0.08665329217910767, 0.12436835467815399, 0.18759077787399292, 0.02214321680366993, 0.23780927062034607, -0.17952975630760193, -0.29376325011253357, -0.5720624923706055, 0.35216760635375977, -0.042648591101169586, 0.04904206842184067, 0.27079033851623535, 0.08448686450719833, -0.1909043937921524, 0.18712322413921356, 0.1990259736776352, -0.20672184228897095, 0.03498182073235512, 0.36744165420532227, -0.010716813616454601, -0.08099730312824249, -0.3821258842945099, -0.49684685468673706, -0.006264515221118927, 0.3981204628944397, -0.17028191685676575, -0.12612175941467285, -0.40541380643844604, -0.01215331070125103, 0.07210064679384232, 0.058321233838796616, 0.291390597820282, 0.16825366020202637, -0.038892559707164764, 0.0788593515753746, -0.10554832220077515, -0.233750581741333, 0.25265875458717346, -0.040682680904865265, 0.07412172108888626, 0.5452193021774292, 0.04738755151629448, 0.3300744891166687, 0.22797201573848724, -0.03328679874539375, -0.08434773981571198, 0.012457109987735748, -0.04291139170527458, -0.008006907999515533, -0.18266530334949493, -0.27254050970077515, -0.08778311312198639, -0.46477067470550537, 0.20854870975017548, -0.057976506650447845, -0.3656092882156372, -0.1092679500579834, 0.23706930875778198, 0.1898597776889801, -0.31061381101608276, 0.2280300110578537, -0.37979257106781006, 0.2091054916381836, 0.10254231095314026, 0.11369050294160843, -0.4669243097305298, 0.0944942757487297, -0.04047665745019913, -0.22467704117298126, 0.18882828950881958, -0.26370710134506226, -0.586458683013916, 0.07438380271196365, -0.5048633217811584, 0.12005723267793655, 0.2634695768356323, 0.5512325763702393, 0.1662212461233139, -0.11885319650173187, -0.07253959774971008, 0.07445071637630463, 0.5397483706474304, -0.2093842774629593, -0.5880625247955322, -0.16422320902347565, -0.3902621269226074, -0.25382351875305176, 0.11904533207416534, -0.47198686003685, -0.06812293827533722, -0.06819865107536316, 0.19931507110595703, -0.2591322958469391, -0.2120581567287445, 0.22440439462661743, 0.18700678646564484, -0.09064122289419174, -0.045886874198913574, 0.07734102010726929, -0.04009830951690674, -0.2342965304851532, 0.12070243060588837, 0.27536439895629883, 0.07733158022165298, 0.03806563466787338, -0.2471417635679245, -0.013460787013173103, 0.05036236345767975, 0.32562270760536194, 0.19266565144062042, 0.09204994887113571, 0.10336100310087204, 0.27022260427474976, -0.08499783277511597, -0.46628108620643616, -0.08377229422330856, -0.010261531919240952, 0.04034272953867912, -0.2832722067832947, 0.02383974753320217, 0.1490759551525116, 0.302884578704834, 0.3303024470806122, -0.07777846604585648, 0.31178024411201477, 0.17741844058036804, 0.20584635436534882, -0.5833317041397095, 0.1568058282136917, 0.23930959403514862, 0.2718510925769806, -0.2576015889644623, -0.7175819873809814, 0.764092743396759, 0.010701101273298264, -0.27211451530456543, 0.5923120975494385, -0.12771505117416382, -0.20000848174095154, 0.49573737382888794, -0.04655706137418747, 0.8452875018119812, -0.03150387853384018, 0.007975660264492035, 0.2256544530391693, -0.1752052903175354, 0.3718658983707428, -0.318508505821228, 0.22429914772510529, 0.0574776716530323, -0.34843572974205017, -0.02200770378112793, -0.09116128087043762, -0.16904973983764648, 0.3814905881881714, -0.20084550976753235, 0.36235931515693665, 0.3069833517074585, 0.08339416235685349, 0.2826401889324188, 0.13774697482585907, -0.1436205804347992, -0.439377099275589, -0.3225923180580139, 0.1106654703617096, 0.11273584514856339, -0.1156618595123291, -0.09374643862247467, -0.001082899048924446, 0.2098485827445984, -0.09037181735038757, -0.393648624420166, -0.1596289873123169, -0.01966087333858013, 0.19518618285655975, 0.0487435981631279, -0.1996595859527588, 0.1899901181459427, 0.12192735075950623, -0.20275692641735077, 0.26689252257347107, -0.18883205950260162, 0.29834434390068054, -0.11189424246549606, 0.238819420337677, -0.1133938729763031, 0.21187151968479156, 0.24781031906604767, 0.13546380400657654, -0.35003459453582764, 0.09385601431131363, 0.0023530414327979088, -0.34679001569747925, 0.00972089171409607, -0.0395779088139534, 0.37164366245269775, -0.21114405989646912, -0.3087073564529419, 0.2792654037475586, -0.38880831003189087, -0.20370788872241974, 0.18306322395801544, 0.15968942642211914, -0.522361695766449, 0.5580499172210693, 0.05708584189414978, -0.10052662342786789, -0.016041085124015808, 0.12789803743362427, 0.158598393201828, 0.007049579173326492, 0.3427700400352478, -0.0989406555891037, -0.2226404845714569, -0.21988537907600403, -0.0849594920873642, 0.07313332706689835, -0.1480734944343567, 0.24849218130111694, -0.09288069605827332, -0.3370960056781769, -0.2666859030723572, -0.1367558389902115, 0.05071891099214554, 0.032111816108226776, -0.40123069286346436, -0.09813137352466583, -0.5013527870178223, 0.3235084116458893, 0.08542630076408386, 0.5921757221221924, -0.024014748632907867, -0.0036079417914152145, -0.47170403599739075, 0.27205902338027954, -0.3449355363845825, -0.3541651666164398, -0.40497511625289917, 0.23647508025169373, 0.08990821987390518, -0.1281011402606964, -0.01210765354335308, -0.03213975951075554, 0.10541939735412598, 0.13672898709774017, -0.20284892618656158, -0.18005993962287903, -0.03796084225177765, 0.1374998837709427, 0.09707579761743546, -0.07757962495088577, 0.1097375899553299, -0.10096640884876251, -0.13727106153964996, -0.4919317960739136, 0.06300592422485352, 0.18435820937156677, -0.06481339037418365, 0.3748829662799835, 0.2845628559589386, -0.27046775817871094, -0.26505908370018005, 0.19292916357517242, 0.0894617810845375, -0.23332442343235016, 0.009889665991067886, 0.4799518585205078, 0.033074941486120224, -0.07728921622037888, -0.34729817509651184, 0.36209744215011597, 0.21703599393367767, -0.25437095761299133, 0.22534126043319702, 0.23247553408145905, -0.07818374037742615, 0.1269075721502304, 0.3369845747947693, 0.38668739795684814, 0.0788717120885849, 0.14160166680812836, 0.08165773004293442, 0.28913798928260803, -0.31321918964385986, -0.017673831433057785, -0.2679760456085205, -0.18696552515029907, 0.4628666639328003, 0.22079865634441376, -0.10089018940925598, 0.029942288994789124, 0.4216603636741638, -0.13134127855300903, 0.28827840089797974, -0.2764967679977417, 0.20770709216594696, 0.3206089735031128, 0.2848246693611145, -0.0821516364812851, 0.09328014403581619, 0.29981738328933716, 0.2917724847793579, 0.3589928150177002, -0.15135467052459717, 0.12816281616687775, -0.04794040322303772, 0.013744324445724487, -0.030581936240196228, 0.03287150338292122, -0.08269187808036804, 0.2845662832260132, 0.10165208578109741, 0.1329360008239746, 0.23577412962913513, -0.00818198174238205, 0.09933901578187943, 0.18120987713336945, -0.1637595146894455, -0.02527938410639763, 0.10042347013950348, -0.32802847027778625, 0.06878215819597244, -0.07894738763570786, -0.09291084110736847, -0.14434009790420532, 0.2211410105228424, -0.21018578112125397, 0.2494041919708252, 0.05440611392259598, 0.3540582060813904, -0.21544507145881653, 0.28549709916114807, 0.21836143732070923, 0.22620832920074463, -0.42601537704467773, -0.09132895618677139, 0.1638723909854889, 0.14563313126564026, 0.20543059706687927, 0.2544724643230438, 0.0965641438961029, 0.25073230266571045, -0.06166134402155876, 0.4142817258834839, -0.08647455275058746, -0.2757767140865326, -0.1073678657412529, 0.09205029159784317, -0.07722033560276031, 0.34269991517066956, 0.013016719371080399, 0.15474411845207214, -0.13553649187088013, 0.006983872503042221, 0.0666523203253746, -0.13643436133861542, -0.6438219547271729, 0.5122450590133667, 0.146049365401268, -0.1700926125049591, 0.05577917397022247, -0.17431053519248962, -0.09160565584897995, -0.037489019334316254, 0.1110529899597168, -0.5791400671005249, 0.03866705670952797, 0.2715194523334503, 0.07123996317386627, -0.4069547951221466, 0.0660514235496521, 0.1478288322687149, 0.42000460624694824, -0.1544581800699234, -0.06901474297046661, -0.290345698595047, -0.295955628156662, 0.13623405992984772, -0.053129710257053375, 0.31188860535621643, 0.2121945470571518, 0.07390926778316498, 0.35430908203125, -0.19376255571842194, -0.2788049578666687, -0.5271292328834534, 0.2997528314590454, -0.3774675726890564, -0.22593314945697784, -0.04725906252861023, 0.2707805037498474, 0.12123338878154755, -0.38789182901382446, -0.16723176836967468, 0.15675489604473114, -0.0023300349712371826, -0.05859184265136719, 0.11404512822628021, -0.014096848666667938, 0.1352112591266632, 0.0765940397977829, 0.08235551416873932, 0.37392061948776245, -0.21534299850463867, 0.17420907318592072, -0.10463182628154755, -0.49237075448036194, -0.30192744731903076, -0.3698619604110718, -0.04001534357666969, 0.39156147837638855, 0.11243581026792526, 0.034086085855960846, -0.1233166977763176, 0.033240288496017456, -0.015298182144761086, -0.19862473011016846, -0.31666672229766846, 0.07892369478940964, -0.2937162220478058, 0.2644639313220978, -0.18718460202217102, 0.09944257140159607, 0.026988834142684937, 0.14974427223205566, -0.19541916251182556, -0.13409337401390076, 0.505151093006134, -0.10046859830617905, -0.5012765526771545, -0.18990594148635864, 0.20479264855384827, -0.09359733015298843, -0.22212794423103333, -0.5644005537033081, -0.07036489248275757, 0.18461644649505615, -0.14639320969581604, -0.15947462618350983, 0.29179608821868896, 0.15671543776988983, -0.04141157120466232, -0.1606566309928894, 0.4260803461074829, 0.040221646428108215, -0.010806918144226074, -0.23306576907634735, -0.4965277910232544 ]
https://github.com/huggingface/datasets/issues/4180
Add some iteration method on a dataset column (specific for inference)
I agree that current behavior (decoding all audio file sin the dataset when accessing `dataset["audio"]`) is not useful, IMHO. Indeed in our docs, we are constantly warning our collaborators not to do that. Therefore I upvote for a "useful" behavior of `dataset["audio"]`. I don't think the breaking change is important in this case, as I guess no many people use it with its current behavior. Therefore, for me it seems reasonable to return a generator (instead of an in-memeory list) for "special" features, like Audio/Image. @lhoestq on the other hand I don't understand your proposal about Pandas-like...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq
97
Add some iteration method on a dataset column (specific for inference) **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq I agree that current behavior (decoding all audio file sin the dataset when accessing `dataset["audio"]`) is not useful, IMHO. Indeed in our docs, we are constantly warning our collaborators not to do that. Therefore I upvote for a "useful" behavior of `dataset["audio"]`. I don't think the breaking change is important in this case, as I guess no many people use it with its current behavior. Therefore, for me it seems reasonable to return a generator (instead of an in-memeory list) for "special" features, like Audio/Image. @lhoestq on the other hand I don't understand your proposal about Pandas-like...
[ -0.32837003469467163, -0.11577454954385757, -0.06613398343324661, 0.06359097361564636, 0.1763317734003067, -0.20337125658988953, 0.26251399517059326, -0.021314028650522232, -0.06802192330360413, 0.4297323226928711, -0.1349969208240509, 0.3932083547115326, -0.24968881905078888, 0.07223036885261536, 0.062193430960178375, -0.19023291766643524, -0.029524125158786774, 0.3479433059692383, -0.27627280354499817, -0.038019612431526184, -0.3512257933616638, -0.08702752739191055, -0.19761237502098083, -0.16292549669742584, 0.06777531653642654, -0.047107599675655365, 0.04949580132961273, -0.24806615710258484, -0.04369150847196579, -0.4995972514152527, -0.00688878633081913, 0.49370381236076355, 0.23634856939315796, 0.31972169876098633, -0.00011441330570960417, -0.1308843493461609, 0.45104217529296875, -0.08807630836963654, -0.22496743500232697, -0.05748443305492401, -0.3770774006843567, -0.13853111863136292, -0.02510557696223259, -0.3377872705459595, -0.06322546303272247, -0.10254865884780884, -0.0024482514709234238, -0.4165826141834259, 0.30210456252098083, 0.09598471224308014, 0.13158345222473145, 0.25641530752182007, -0.3042989671230316, 0.11241026967763901, 0.022290635854005814, 0.19519111514091492, -0.0952300950884819, -0.326231449842453, 0.39517566561698914, 0.0024390211328864098, -0.22432011365890503, 0.5238760709762573, 0.05453965812921524, 0.19352106750011444, 0.2101832926273346, 0.05602318048477173, -0.026684433221817017, -0.3684793710708618, -0.008221663534641266, 0.35618844628334045, 0.556556761264801, -0.10375801473855972, -0.5703186392784119, -0.39230528473854065, -0.08528626710176468, -0.3221709132194519, -0.14887657761573792, 0.16692444682121277, -0.2953454554080963, 0.2424832582473755, -0.2382446974515915, 0.01491575874388218, -0.16374504566192627, -0.012016117572784424, 0.0754416286945343, 0.12211634963750839, -0.07049638777971268, 0.12103243172168732, 0.18699628114700317, -0.1511501520872116, 0.1942494809627533, -0.05838111788034439, -0.010456092655658722, 0.3149232268333435, -0.35105863213539124, -0.5101617574691772, 0.2381148338317871, -0.041291408240795135, 0.3254971206188202, 0.13328583538532257, 0.0129124466329813, 0.1453757882118225, 0.02939489111304283, 0.1570090353488922, 0.5040565729141235, -0.32712581753730774, -0.09694685786962509, -0.027702797204256058, 0.3333682417869568, -0.043719131499528885, 0.2889196276664734, -0.17950564622879028, -0.023205358535051346, 0.105617955327034, 0.2909512519836426, 0.05473312735557556, 0.20089788734912872, -0.020946834236383438, 0.23152855038642883, -0.2451971173286438, -0.08664416521787643, -0.06020495295524597, 0.19135314226150513, 0.44490376114845276, 0.2205207645893097, 0.6930990815162659, -0.2808064818382263, 0.07166214287281036, 0.005697157233953476, -0.1429762840270996, -0.014691315591335297, -0.06314374506473541, -0.007319130003452301, 0.27152401208877563, 0.061385732144117355, 0.44574347138404846, 0.04157821089029312, -0.14667129516601562, 0.10928785800933838, -0.13734936714172363, 0.15815702080726624, -0.1050378829240799, 0.1365804225206375, 0.09153540432453156, -0.25408270955085754, 0.16193482279777527, -0.2531238794326782, 0.08394770324230194, -0.34915149211883545, 0.16120311617851257, 0.008865438401699066, -0.34154844284057617, 0.061080776154994965, 0.05953691154718399, -0.27156147360801697, -0.037334613502025604, -0.18917110562324524, 0.6494181752204895, -0.01324819028377533, -0.2054610699415207, -0.02005959302186966, -0.00034104660153388977, -0.47170111536979675, -0.004339256323873997, 0.19665616750717163, 0.3175787031650543, -0.01569250598549843, -0.2991783916950226, -0.25354230403900146, -0.024261225014925003, 0.08522514998912811, 0.2370954304933548, -0.3338465392589569, 0.2297382652759552, -0.047113627195358276, 0.0550139844417572, 0.5335552096366882, -0.3856254518032074, -0.3488178551197052, 0.1352100521326065, 0.05622202157974243, 0.2882460057735443, 0.23100546002388, 0.19020476937294006, 0.15823210775852203, -0.19504377245903015, 0.07825152575969696, 0.4651809334754944, -0.20996564626693726, 0.2997130751609802, -0.03623441606760025, -0.1305215209722519, 0.036052267998456955, 0.19558334350585938, 0.016505133360624313, 0.263823002576828, -0.2735481262207031, 0.07555296272039413, 0.33870911598205566, -0.3194026052951813, 0.05387929081916809, 0.08226149529218674, 0.7110108137130737, -0.28316646814346313, 0.05873578041791916, -0.6127212643623352, -0.13242238759994507, 0.0855964794754982, -0.03996849060058594, 0.11489705741405487, -0.33768272399902344, -0.20742058753967285, 0.04958689212799072, 0.23442910611629486, -0.055674824863672256, -0.05734296515583992, 0.0921446904540062, 0.3038826584815979, -0.060215651988983154, -0.32399946451187134, -0.21465589106082916, 0.1733158528804779, 0.10135374963283539, -0.10645388066768646, -0.3398154377937317, 0.14842237532138824, 0.2690029740333557, 0.09938245266675949, -0.050202056765556335, 0.09988818317651749, 0.053207214921712875, -0.07893960922956467, -0.02170218527317047, 0.26438626646995544, 0.3128945827484131, 0.19690841436386108, -0.07989414781332016, 0.4478599429130554, 0.06478145718574524, -0.19380003213882446, 0.0522458516061306, -0.07757461071014404, 0.18715965747833252, 0.12414436787366867, -0.1125255897641182, 0.5307092070579529, -0.045060958713293076, 0.3076407015323639, 0.12348857522010803, -0.056042298674583435, 0.4256021976470947, -0.059997182339429855, -0.5982383489608765, 0.026487581431865692, -0.03265591338276863, 0.010232477448880672, 0.061043571680784225, 0.13662518560886383, -0.17063650488853455, -0.14529576897621155, 0.5767084956169128, -0.2073017805814743, -0.12923800945281982, 0.1689096987247467, -0.1933746039867401, -0.17574253678321838, 0.10556958615779877, 0.3408683240413666, 0.303713321685791, 0.23093824088573456, 0.1704222857952118, -0.11535459011793137, 0.11128111928701401, 0.13955417275428772, 0.18137142062187195, 0.39704668521881104, 0.04584578052163124, 0.19470390677452087, 0.2987765371799469, -0.1842668205499649, -0.27183255553245544, -0.5085833668708801, 0.07928059250116348, 0.1760646402835846, 0.04245232418179512, 0.09640179574489594, 0.07100946456193924, -0.04912322759628296, -0.2838379740715027, -0.32492420077323914, 0.33167946338653564, -0.09092342853546143, 0.10112783312797546, 0.3201775550842285, -0.39620283246040344, 0.29478979110717773, 0.24648690223693848, 0.5954877734184265, 0.19582946598529816, 0.0625440925359726, -0.3850988447666168, -0.1664324551820755, 0.23673519492149353, -0.0017717648297548294, 0.013361950404942036, -0.08558863401412964, 0.09355589747428894, 0.23740066587924957, -0.08200722932815552, -0.10671677440404892, -0.22848814725875854, 0.11425518989562988, 0.22118701040744781, 0.22392040491104126, -0.008184149861335754, 0.12140603363513947, 0.4304502010345459, -0.3942447900772095, 0.0874377191066742, -0.18923020362854004, 0.11767105758190155, 0.20336495339870453, 0.18093860149383545, 0.009620324708521366, 0.1323646456003189, -0.15777453780174255, -0.2535353899002075, -0.5747323036193848, 0.3724653720855713, -0.09830518066883087, 0.07215970009565353, 0.35028499364852905, -0.04583944380283356, -0.14940501749515533, 0.16422121226787567, 0.23167243599891663, -0.1926557719707489, -0.010933015495538712, 0.326214462518692, -0.09649764001369476, -0.12450733780860901, -0.3757253587245941, -0.4796014428138733, -0.02968226745724678, 0.3948823809623718, -0.17126503586769104, -0.21418887376785278, -0.3411489427089691, -0.02892819419503212, -0.0275486558675766, -0.028727198019623756, 0.17738747596740723, 0.17853735387325287, 0.0007227491587400436, 0.014273285865783691, -0.06561503559350967, -0.15394657850265503, 0.2514146566390991, 0.019930586218833923, 0.10922372341156006, 0.5140140652656555, 0.11763300001621246, 0.3462350368499756, 0.3257785439491272, -0.03400732949376106, -0.1289525032043457, 0.011177733540534973, -0.007006648927927017, -0.0017894655466079712, -0.14875468611717224, -0.22000956535339355, -0.1251409351825714, -0.44194018840789795, 0.26153671741485596, -0.03998753800988197, -0.36859869956970215, -0.131349116563797, 0.1823865920305252, 0.17119687795639038, -0.4426696300506592, 0.24703820049762726, -0.19701436161994934, 0.16359737515449524, 0.09615476429462433, 0.21386998891830444, -0.3277164697647095, 0.1786862313747406, -0.04122938960790634, -0.09623889625072479, 0.2761828899383545, -0.2513284683227539, -0.5051486492156982, 0.004242665134370327, -0.540215790271759, 0.12371835112571716, 0.207070454955101, 0.5770032405853271, 0.2512407600879669, -0.17198330163955688, -0.030747488141059875, -0.06114531680941582, 0.46625250577926636, -0.23900525271892548, -0.4255921244621277, -0.202968567609787, -0.25193142890930176, -0.19992613792419434, 0.13180023431777954, -0.4492746889591217, -0.04867871478199959, 0.029842238873243332, 0.2485925406217575, -0.35774412751197815, -0.25601452589035034, 0.24952982366085052, 0.18513892590999603, -0.02861463464796543, -0.00617781188338995, 0.06747996807098389, -0.09843660891056061, -0.2887629568576813, 0.0735245943069458, 0.23350854218006134, 0.0487675815820694, 0.05680582672357559, -0.24679172039031982, 0.03984423726797104, 0.04720499366521835, 0.28395944833755493, 0.23381058871746063, 0.10502651333808899, 0.07191649079322815, 0.21607884764671326, -0.036585964262485504, -0.3813575804233551, -0.1296839565038681, 0.14455516636371613, 0.10194447636604309, -0.4094517230987549, 0.03714486584067345, 0.12682756781578064, 0.2811872363090515, 0.3792957365512848, -0.12493422627449036, 0.3575827479362488, 0.2093551605939865, 0.21454155445098877, -0.6158234477043152, 0.21919934451580048, 0.2976963222026825, 0.2792854607105255, -0.3299921751022339, -0.6070325970649719, 0.7433083057403564, -0.07498466223478317, -0.24830268323421478, 0.5726335048675537, -0.058678075671195984, -0.12356352806091309, 0.6281512379646301, -0.1955728828907013, 0.851070761680603, 0.09247678518295288, -0.09091906249523163, 0.23659825325012207, -0.2633468508720398, 0.3728545904159546, -0.4458281397819519, 0.20915326476097107, 0.07860791683197021, -0.34155288338661194, -0.04867120832204819, -0.09446394443511963, -0.09363626688718796, 0.2995493412017822, -0.23844002187252045, 0.3738088011741638, 0.3667948842048645, 0.08329702913761139, 0.17871816456317902, 0.17276215553283691, -0.14097845554351807, -0.4862538278102875, -0.29849788546562195, 0.0667639896273613, 0.03829287737607956, 0.03209400177001953, 0.0024519814178347588, -0.138021320104599, 0.2848772406578064, -0.15629957616329193, -0.37499552965164185, -0.12811298668384552, -0.03607552498579025, 0.12169681489467621, 0.08153250813484192, -0.29210007190704346, 0.24174925684928894, 0.0787585973739624, -0.2320592850446701, 0.26121991872787476, -0.219989612698555, 0.3054898977279663, -0.0870947614312172, 0.26229003071784973, -0.15364602208137512, 0.19847428798675537, 0.16960804164409637, 0.1225542202591896, -0.27853924036026, 0.019148577004671097, 0.03126684948801994, -0.26281917095184326, 0.09913207590579987, -0.026540040969848633, 0.41565418243408203, -0.2511034309864044, -0.24230240285396576, 0.299413800239563, -0.42881742119789124, -0.2108275294303894, 0.15107929706573486, 0.07228207588195801, -0.588660717010498, 0.47600194811820984, 0.0061974674463272095, -0.1285211592912674, 0.021916430443525314, 0.08193236589431763, 0.10834493488073349, 0.006020616739988327, 0.32987385988235474, -0.16953115165233612, -0.18316589295864105, -0.16794875264167786, -0.011488702148199081, -0.00013246387243270874, -0.24001768231391907, 0.16666172444820404, -0.03337418660521507, -0.22757120430469513, -0.1866111308336258, -0.12411369383335114, -0.003928609192371368, 0.025769289582967758, -0.47178640961647034, -0.15073013305664062, -0.41909724473953247, 0.28161412477493286, 0.061999253928661346, 0.4813268780708313, 0.01530522108078003, 0.15551868081092834, -0.5335676074028015, 0.3446379601955414, -0.32721221446990967, -0.29843199253082275, -0.34735098481178284, 0.24585504829883575, 0.14704151451587677, -0.18512582778930664, -0.0009143480565398932, 0.030686210840940475, 0.09200748801231384, 0.2370980679988861, -0.2597627639770508, -0.10552076250314713, -0.08036956191062927, 0.14036107063293457, 0.05709821358323097, -0.04252846539020538, 0.060060594230890274, -0.05360237509012222, -0.1676102578639984, -0.49692782759666443, 0.11760309338569641, 0.05677162855863571, -0.024532124400138855, 0.3621565103530884, 0.15990211069583893, -0.21535757184028625, -0.30257248878479004, 0.09316657483577728, 0.14224711060523987, -0.17858101427555084, -0.0555691197514534, 0.4453731179237366, -0.14161401987075806, -0.05223682522773743, -0.4371577501296997, 0.2973414361476898, 0.2793170213699341, -0.2806375026702881, 0.333563894033432, 0.18811140954494476, 0.03275151178240776, 0.08498461544513702, 0.4096337556838989, 0.4366714656352997, 0.038834888488054276, 0.13016892969608307, 0.07655244320631027, 0.2707206904888153, -0.28038090467453003, 0.02946612983942032, -0.21217599511146545, -0.22982779145240784, 0.46481573581695557, 0.22487454116344452, -0.1166008859872818, 0.05628375709056854, 0.48684072494506836, -0.1579832136631012, 0.32836806774139404, -0.2687896490097046, 0.20822268724441528, 0.36451292037963867, 0.18236184120178223, -0.051147881895303726, 0.10021756589412689, 0.2687958776950836, 0.35750308632850647, 0.3939860463142395, -0.25018173456192017, 0.06880328059196472, -0.07268655300140381, 0.08367301523685455, -0.04199633747339249, -0.06371322274208069, -0.10112954676151276, 0.32632479071617126, 0.14480222761631012, 0.16244295239448547, 0.2577087879180908, 0.05870210379362106, 0.0026343539357185364, 0.16641636192798615, -0.19413305819034576, 0.08435706794261932, 0.15269964933395386, -0.37186548113822937, 0.10313829779624939, -0.04406852647662163, -0.07126469165086746, -0.14152847230434418, 0.1882612258195877, -0.07781629264354706, 0.09831753373146057, 0.11565741896629333, 0.43650728464126587, -0.23016998171806335, 0.1817714273929596, 0.09485356509685516, 0.34258973598480225, -0.4449884295463562, 0.11063988506793976, 0.25143951177597046, 0.18047615885734558, 0.27748265862464905, 0.10339459031820297, 0.11864328384399414, 0.15219861268997192, -0.029497895389795303, 0.39779120683670044, -0.20140515267848969, -0.2507983446121216, -0.11606288701295853, 0.11120142787694931, -0.019667066633701324, 0.2612179219722748, 0.18380360305309296, 0.09738840907812119, -0.12351736426353455, 0.0038299597799777985, 0.0031521618366241455, -0.10948289930820465, -0.5918784141540527, 0.5352460741996765, 0.09264089912176132, -0.0948634147644043, -0.031887806951999664, -0.3214981257915497, -0.14160382747650146, -0.09438220411539078, -0.009005572646856308, -0.4637095332145691, 0.07907489687204361, 0.24724264442920685, 0.06663451343774796, -0.3442986011505127, 0.02877041883766651, 0.11414787173271179, 0.34543976187705994, -0.12858827412128448, -0.06944992393255234, -0.3331277072429657, -0.2535039186477661, 0.19774101674556732, -0.08887726068496704, 0.3516136705875397, 0.2812190055847168, 0.16502881050109863, 0.3706560730934143, -0.22318090498447418, -0.3201163113117218, -0.367718368768692, 0.3229976296424866, -0.3759117126464844, -0.20533664524555206, -0.02958829700946808, 0.19657002389431, 0.11979533731937408, -0.43184104561805725, -0.1331545114517212, 0.25526493787765503, -0.04117320477962494, -0.014010529965162277, 0.1551235467195511, -0.0141454404219985, -0.01573709398508072, 0.012334998697042465, 0.1108531504869461, 0.37283897399902344, -0.24495071172714233, 0.09997911006212234, -0.12603993713855743, -0.4732058048248291, -0.39552244544029236, -0.37255460023880005, -0.0013917125761508942, 0.4320274889469147, 0.16528242826461792, 0.048147689551115036, -0.17075002193450928, -0.03129454329609871, 0.003916241228580475, -0.17244543135166168, -0.34525904059410095, 0.1644233912229538, -0.26017361879348755, 0.20830421149730682, -0.14065641164779663, 0.15032176673412323, 0.07814083993434906, 0.13964883983135223, -0.24538078904151917, -0.21126320958137512, 0.6495828628540039, -0.08999782055616379, -0.4957495331764221, 0.01918976381421089, 0.2924520969390869, -0.10489311069250107, -0.1739150732755661, -0.6411993503570557, -0.01647956669330597, 0.13991177082061768, -0.17651298642158508, -0.21297238767147064, 0.35721832513809204, 0.20749221742153168, -0.09138748049736023, -0.14698149263858795, 0.49822744727134705, 0.18799906969070435, -0.11131788045167923, -0.2218816578388214, -0.40209490060806274 ]
https://github.com/huggingface/datasets/issues/4180
Add some iteration method on a dataset column (specific for inference)
I recall I had the same idea while working on the `Image` feature, so I agree implementing something similar to `pd.Series` that lazily brings elements in memory would be beneficial.
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq
30
Add some iteration method on a dataset column (specific for inference) **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq I recall I had the same idea while working on the `Image` feature, so I agree implementing something similar to `pd.Series` that lazily brings elements in memory would be beneficial.
[ -0.3346264362335205, -0.19927111268043518, -0.11578552424907684, 0.04216688871383667, 0.1764325648546219, -0.1835937201976776, 0.23586447536945343, 0.014674775302410126, -0.040915586054325104, 0.4126091003417969, -0.05059220641851425, 0.324953556060791, -0.25804394483566284, 0.06245885789394379, 0.0825333222746849, -0.27955037355422974, -0.037310801446437836, 0.34985822439193726, -0.20742982625961304, -0.06431315094232559, -0.315736323595047, -0.16656802594661713, -0.15294292569160461, -0.24929066002368927, -0.013952204957604408, -0.12493643909692764, 0.0016737375408411026, -0.19000297784805298, -0.04944741725921631, -0.44728851318359375, -0.11907415091991425, 0.5251895189285278, 0.21330252289772034, 0.29202044010162354, -0.00011024976265616715, -0.2230624407529831, 0.3550608158111572, -0.0756671205163002, -0.11506444215774536, 0.026545748114585876, -0.267468124628067, -0.2494766265153885, -0.0036525162868201733, -0.3981911838054657, -0.04504713788628578, -0.07539783418178558, -0.022194212302565575, -0.3230273425579071, 0.2788727283477783, 0.10529069602489471, 0.17409707605838776, 0.28367456793785095, -0.3407360315322876, -0.004206377547234297, 0.007570318877696991, 0.2514481544494629, -0.07016533613204956, -0.3905031681060791, 0.34810560941696167, -0.13652697205543518, -0.16892144083976746, 0.5199184417724609, 0.044015057384967804, 0.19866304099559784, 0.25381460785865784, 0.06364068388938904, -0.05060814321041107, -0.3182905316352844, -0.0180722177028656, 0.32753318548202515, 0.5454252362251282, -0.08994362503290176, -0.49818071722984314, -0.3838486671447754, -0.08219700306653976, -0.2203700989484787, -0.21757817268371582, 0.1499611735343933, -0.37751615047454834, 0.10805016756057739, -0.27277567982673645, 0.042448122054338455, -0.05749902501702309, -0.01604466140270233, 0.04976816475391388, 0.1415867805480957, 0.11075156182050705, 0.07745558023452759, 0.2236512005329132, -0.2173822969198227, 0.23667283356189728, -0.03597373515367508, 0.09168943017721176, 0.4191615581512451, -0.22790153324604034, -0.4358987808227539, 0.290862500667572, -0.1826108694076538, 0.3361121118068695, 0.053481779992580414, 0.04402436316013336, 0.06480100005865097, -0.009697365574538708, 0.1494254469871521, 0.4352130889892578, -0.25189173221588135, -0.2119423747062683, 0.0034460844472050667, 0.3012966513633728, -0.03511874005198479, 0.22789731621742249, -0.16202548146247864, -0.014118336141109467, 0.08810988068580627, 0.4141571521759033, -0.061589501798152924, 0.07501381635665894, -0.008273229002952576, 0.22152182459831238, -0.2670057713985443, 0.022410377860069275, 0.05025448650121689, 0.16647064685821533, 0.4827975332736969, 0.1471409946680069, 0.6775833368301392, -0.10233607143163681, -0.041120149195194244, 0.013388628140091896, 0.020944982767105103, -0.0670766681432724, -0.029513008892536163, -0.06076793000102043, 0.2823958098888397, 0.027452725917100906, 0.5372599363327026, 0.12298189848661423, -0.1968931257724762, 0.16064363718032837, -0.0988316684961319, 0.15930114686489105, -0.06588517874479294, 0.14411164820194244, 0.08380019664764404, -0.3007495701313019, 0.11561576277017593, -0.2311345785856247, 0.15416209399700165, -0.3821617066860199, 0.20752543210983276, 0.09231005609035492, -0.25261226296424866, 0.03117036260664463, 0.10315252095460892, -0.20708520710468292, -0.01853899657726288, -0.1507990062236786, 0.65544193983078, 0.020126506686210632, -0.18689844012260437, -0.04412158578634262, -0.0045545995235443115, -0.48681238293647766, -0.019731424748897552, 0.2618900537490845, 0.43752288818359375, 0.010588765144348145, -0.35728439688682556, -0.2702818214893341, 0.054470229893922806, -0.007855884730815887, 0.2559514045715332, -0.26121941208839417, 0.23912349343299866, -0.00974621344357729, 0.02381979674100876, 0.436487078666687, -0.35065391659736633, -0.25606095790863037, -0.013657891191542149, 0.0863305926322937, 0.21370455622673035, 0.165327250957489, 0.2811077833175659, 0.09677505493164062, -0.04862839728593826, 0.14463041722774506, 0.4392186999320984, -0.2289373278617859, 0.31474506855010986, -0.06810560822486877, -0.1766604334115982, 0.07335419952869415, 0.22015193104743958, 0.12829995155334473, 0.2693289518356323, -0.26887646317481995, 0.105112724006176, 0.2663043737411499, -0.2750324606895447, 0.07201048731803894, 0.13754333555698395, 0.7414751648902893, -0.2864121198654175, -0.03141379728913307, -0.654766321182251, -0.09120374172925949, 0.14056864380836487, -0.05306630581617355, 0.19109277427196503, -0.2742348313331604, -0.1356653869152069, -0.015463845804333687, 0.22998236119747162, 0.15091077983379364, -0.04748984053730965, 0.1228131353855133, 0.23426105082035065, -0.036046963185071945, -0.31329289078712463, -0.10754579305648804, 0.23229166865348816, 0.10609839856624603, -0.15777480602264404, -0.34993594884872437, 0.17548221349716187, 0.25941550731658936, -0.009218773804605007, -0.04094488173723221, 0.09120425581932068, 0.0718214362859726, 0.0951123759150505, 0.011897494085133076, 0.20154061913490295, 0.29607921838760376, 0.1293778419494629, -0.004510950297117233, 0.42476731538772583, 0.06757169961929321, -0.13571316003799438, 0.11595429480075836, -0.07583338022232056, 0.20979338884353638, 0.09493836015462875, -0.18097808957099915, 0.5281136631965637, -0.018629644066095352, 0.18333593010902405, 0.12808410823345184, -0.0363377220928669, 0.46582192182540894, -0.018509898334741592, -0.4297446012496948, 0.03293804079294205, -0.0479544959962368, 0.17727987468242645, 0.121389240026474, 0.18697185814380646, -0.21625399589538574, -0.14067772030830383, 0.43199214339256287, -0.16020497679710388, -0.05665300786495209, 0.14779311418533325, -0.15961268544197083, -0.16648492217063904, 0.14341410994529724, 0.2051570564508438, 0.28510504961013794, 0.28589168190956116, 0.09890058636665344, -0.12697693705558777, 0.042721930891275406, 0.1813601702451706, 0.14405901730060577, 0.3459901213645935, 0.04560429975390434, 0.062371522188186646, 0.3520572781562805, -0.20777826011180878, -0.26328244805336, -0.4150790870189667, 0.01763135753571987, 0.19142654538154602, 0.08193475008010864, 0.004257623106241226, 0.15173375606536865, 0.0008240677416324615, -0.215413898229599, -0.23502224683761597, 0.19460903108119965, -0.0007775956764817238, 0.16194626688957214, 0.29371529817581177, -0.4040144681930542, 0.2899269163608551, 0.1613236516714096, 0.6645099520683289, 0.2617793381214142, -0.030799681320786476, -0.4143388867378235, -0.17500227689743042, 0.2711833715438843, 0.0442681647837162, -0.05373777821660042, 0.09051059186458588, 0.19055427610874176, 0.28728652000427246, -0.02118702605366707, -0.11062967032194138, -0.21910321712493896, 0.033659107983112335, 0.22934775054454803, 0.26049190759658813, 0.024256184697151184, 0.09934365004301071, 0.3840405344963074, -0.29145345091819763, 0.05607602000236511, -0.29529115557670593, 0.04787842184305191, 0.12829189002513885, 0.21646691858768463, -0.014466137625277042, 0.19274787604808807, -0.11666878312826157, -0.2966512441635132, -0.5842863321304321, 0.32253754138946533, 0.03382924571633339, 0.054060421884059906, 0.29885321855545044, 0.1241590827703476, -0.17013366520404816, 0.21682563424110413, 0.19308190047740936, -0.16584248840808868, 0.07044507563114166, 0.3046286106109619, -0.0639123022556305, -0.10336528718471527, -0.41941550374031067, -0.5106688737869263, -0.083880215883255, 0.40464699268341064, -0.1490705907344818, -0.26203107833862305, -0.3810946047306061, 0.02540414407849312, -0.013583384454250336, -0.018869781866669655, 0.2563765048980713, 0.16797900199890137, -0.08179778605699539, 0.03743356466293335, -0.11571185290813446, -0.12576785683631897, 0.3184213638305664, 0.002467729151248932, 0.03195756673812866, 0.4250023365020752, 0.028013061732053757, 0.2975054681301117, 0.20259499549865723, -0.07925237715244293, -0.04052437096834183, 0.0173799991607666, -0.04057415947318077, -0.027189210057258606, -0.13172903656959534, -0.3085709810256958, -0.06956340372562408, -0.4534377455711365, 0.21357163786888123, -0.06379903107881546, -0.3961108922958374, -0.12106343358755112, 0.20911264419555664, 0.17885428667068481, -0.33413103222846985, 0.2553141713142395, -0.2144751250743866, 0.22293636202812195, 0.05557570978999138, 0.13219305872917175, -0.5075240135192871, 0.10635402798652649, -0.1106332540512085, -0.23684023320674896, 0.2278473675251007, -0.2639240026473999, -0.5100920796394348, 0.15622077882289886, -0.5494316816329956, 0.11933165043592453, 0.2734309434890747, 0.4742273688316345, 0.17546743154525757, -0.21037155389785767, -0.08220531046390533, 0.00010291114449501038, 0.5120519399642944, -0.18912236392498016, -0.500452995300293, -0.12386597692966461, -0.34230417013168335, -0.23546023666858673, 0.1223800778388977, -0.4366702437400818, -0.1847444474697113, -0.06814849376678467, 0.27281951904296875, -0.30900174379348755, -0.1985865980386734, 0.20647919178009033, 0.14269383251667023, -0.0974009707570076, 0.07122692465782166, 0.023740869015455246, -0.1618565320968628, -0.22832360863685608, 0.1545691341161728, 0.291668176651001, 0.07849214971065521, 0.10126353055238724, -0.21438302099704742, -0.011371811851859093, 0.06168036162853241, 0.1906103491783142, 0.25406545400619507, 0.1910514235496521, 0.04172733053565025, 0.2605302929878235, -0.049746304750442505, -0.37309303879737854, -0.1367511749267578, 0.03941262885928154, -0.001553654670715332, -0.30557316541671753, -0.001891179010272026, 0.2067953199148178, 0.24770194292068481, 0.3734780550003052, -0.011257262900471687, 0.3301237225532532, 0.1588182896375656, 0.25271615386009216, -0.5905292630195618, 0.21014779806137085, 0.2365325540304184, 0.23102723062038422, -0.19448181986808777, -0.6113834381103516, 0.718827486038208, -0.0917900800704956, -0.2527453303337097, 0.48906928300857544, -0.18539489805698395, -0.1935080587863922, 0.6062965393066406, -0.014868035912513733, 0.882863461971283, -0.08672687411308289, 0.0058240145444869995, 0.17111220955848694, -0.22589494287967682, 0.3451285660266876, -0.3428806662559509, 0.20800434052944183, 0.020086240023374557, -0.3713201582431793, 0.021715836599469185, -0.056621674448251724, -0.1849733293056488, 0.3099513649940491, -0.2699897289276123, 0.30519899725914, 0.3260367512702942, 0.08775608241558075, 0.1997624784708023, 0.1050029844045639, -0.08698605000972748, -0.5009827613830566, -0.3723563551902771, 0.13210636377334595, 0.07484327256679535, -0.07392732799053192, -0.042769961059093475, -0.06328638643026352, 0.2457328736782074, -0.14234736561775208, -0.2979186475276947, -0.1628960371017456, -0.08974586427211761, 0.20220285654067993, 0.08559291809797287, -0.1729646921157837, 0.04694664850831032, 0.1326790153980255, -0.2798115611076355, 0.26583656668663025, -0.19129230082035065, 0.3382672369480133, -0.0414142906665802, 0.18401865661144257, -0.16212767362594604, 0.20493380725383759, 0.27193593978881836, 0.14042094349861145, -0.2996368110179901, 0.03198811784386635, -0.02547454833984375, -0.32510000467300415, 0.018502891063690186, -0.026128575205802917, 0.3369709849357605, -0.21136362850666046, -0.2658417522907257, 0.266731321811676, -0.3896089494228363, -0.20451286435127258, 0.1947951316833496, 0.15066269040107727, -0.5146873593330383, 0.49299025535583496, 0.12928980588912964, -0.11823064088821411, 0.037040334194898605, 0.14603693783283234, 0.13594749569892883, -0.002019878476858139, 0.27561047673225403, -0.15454521775245667, -0.17054957151412964, -0.2164311408996582, -0.03953458368778229, 0.026994699612259865, -0.19181767106056213, 0.29957419633865356, -0.06729942560195923, -0.34969788789749146, -0.17627474665641785, -0.08302333950996399, 0.07011342793703079, -0.04859406501054764, -0.44416141510009766, -0.024826254695653915, -0.5134682655334473, 0.32123640179634094, 0.11947254836559296, 0.6079110503196716, -0.009982366114854813, 0.044756390154361725, -0.4517693519592285, 0.3310505151748657, -0.3748894929885864, -0.345242440700531, -0.47439461946487427, 0.24517501890659332, 0.08027832210063934, -0.19571268558502197, -0.05865859612822533, 0.008401719853281975, 0.13370412588119507, 0.23529359698295593, -0.24862593412399292, -0.1741088330745697, -0.06511279940605164, 0.1182871162891388, 0.03600941598415375, -0.07170800119638443, 0.06289304792881012, -0.061491601169109344, -0.1440986692905426, -0.4940545856952667, 0.10906465351581573, 0.10329965502023697, -0.07604768872261047, 0.29000356793403625, 0.1542774885892868, -0.22949913144111633, -0.24610157310962677, 0.17478445172309875, 0.11689634621143341, -0.2818334102630615, -0.003225368680432439, 0.47008946537971497, -0.1030493900179863, -0.051166292279958725, -0.2612287402153015, 0.3161712884902954, 0.27609336376190186, -0.2906486392021179, 0.21225452423095703, 0.272879421710968, -0.08608457446098328, 0.08107304573059082, 0.4002798795700073, 0.32084155082702637, 0.029597904533147812, 0.1893460601568222, 0.10217872262001038, 0.3311375379562378, -0.37549009919166565, -0.0040972367860376835, -0.26856955885887146, -0.22281555831432343, 0.492642879486084, 0.25830158591270447, -0.11379066854715347, 0.06282366812229156, 0.38993382453918457, -0.13740000128746033, 0.26620185375213623, -0.27891629934310913, 0.08448469638824463, 0.30865320563316345, 0.24459166824817657, -0.07844382524490356, 0.1250753104686737, 0.2886701822280884, 0.40794989466667175, 0.3796159029006958, -0.1252785623073578, 0.1353328824043274, -0.17042309045791626, 0.08312523365020752, -0.06870078295469284, -0.008083950728178024, -0.09243312478065491, 0.300159215927124, 0.15732067823410034, 0.2583170235157013, 0.18357181549072266, 0.02593693882226944, 0.014821114018559456, 0.08417416363954544, -0.24758818745613098, 0.08530969172716141, 0.09252853691577911, -0.38496285676956177, 0.16943107545375824, -0.09414135664701462, -0.18325389921665192, -0.12339097261428833, 0.24398484826087952, -0.14414604008197784, 0.18425539135932922, 0.06149587780237198, 0.3540453314781189, -0.17589716613292694, 0.21193572878837585, 0.14364688098430634, 0.30127081274986267, -0.48240718245506287, -0.03168576955795288, 0.17313721776008606, 0.1241588220000267, 0.19081448018550873, 0.1798110455274582, 0.08125322312116623, 0.24572508037090302, -0.08048282563686371, 0.38429659605026245, -0.10564318299293518, -0.21574312448501587, -0.15676534175872803, 0.09054368734359741, 0.005065016448497772, 0.3427904546260834, 0.07234068214893341, 0.14710339903831482, -0.18361496925354004, -0.028269577771425247, -0.026308219879865646, -0.09097681939601898, -0.6011698246002197, 0.4872508943080902, 0.1274103820323944, -0.13650286197662354, -0.050986915826797485, -0.24211734533309937, -0.09735283255577087, -0.03773678094148636, -0.014190223067998886, -0.5556020140647888, 0.07983952015638351, 0.3295402526855469, 0.08520706743001938, -0.3808889389038086, 0.142707958817482, 0.08898717910051346, 0.3669525682926178, -0.1486237347126007, -0.08220160752534866, -0.33201712369918823, -0.258024126291275, 0.14502181112766266, -0.1045856773853302, 0.3313675820827484, 0.26062580943107605, 0.09405733644962311, 0.28132373094558716, -0.1893424242734909, -0.25970402359962463, -0.42131924629211426, 0.268730491399765, -0.37290626764297485, -0.24696670472621918, -0.12342885136604309, 0.20921804010868073, 0.19293442368507385, -0.4500698447227478, -0.15704447031021118, 0.18213655054569244, 0.03686320036649704, -0.006825700402259827, 0.10875236988067627, 0.006096310913562775, 0.13590486347675323, 0.10277970880270004, 0.04461962729692459, 0.35377630591392517, -0.22183623909950256, 0.1460578590631485, -0.12883791327476501, -0.5139632821083069, -0.3453102111816406, -0.4582441747188568, 0.003851296380162239, 0.37994182109832764, 0.18191207945346832, 0.08926376700401306, -0.15718898177146912, 0.04833166301250458, 0.0788460299372673, -0.19956447184085846, -0.2806372344493866, 0.07795114815235138, -0.2497570812702179, 0.18348157405853271, -0.16030707955360413, 0.15281814336776733, 0.002454552799463272, 0.07108524441719055, -0.23060879111289978, -0.18283610045909882, 0.597068190574646, 0.00476639810949564, -0.4650297462940216, -0.09031947702169418, 0.19986781477928162, -0.10859925299882889, -0.19907131791114807, -0.6796603798866272, -0.07845361530780792, 0.09256511181592941, -0.09109673649072647, -0.23905742168426514, 0.34416162967681885, 0.1402648687362671, -0.12347134947776794, -0.17650987207889557, 0.48035484552383423, 0.0661335438489914, 0.01621425710618496, -0.24689242243766785, -0.392419695854187 ]
https://github.com/huggingface/datasets/issues/4180
Add some iteration method on a dataset column (specific for inference)
@lhoestq @mariosasko Could you please give a link to that new feature of `pandas.Series`? As far as I remember since I worked with pandas for more than 6 years, there was no lazy in-memory feature; it was everything in-memory; that was the reason why other frameworks were created, like Vaex or Dask, e.g.
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq
53
Add some iteration method on a dataset column (specific for inference) **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq @lhoestq @mariosasko Could you please give a link to that new feature of `pandas.Series`? As far as I remember since I worked with pandas for more than 6 years, there was no lazy in-memory feature; it was everything in-memory; that was the reason why other frameworks were created, like Vaex or Dask, e.g.
[ -0.3586830794811249, -0.17081627249717712, -0.1054128110408783, 0.0674954280257225, 0.1956336498260498, -0.05679140239953995, 0.24556179344654083, 0.010656503960490227, -0.04988846927881241, 0.421486496925354, -0.05719994008541107, 0.2929973304271698, -0.19495035707950592, 0.012748708948493004, -0.0027332743629813194, -0.2876276671886444, 0.026621758937835693, 0.2824605107307434, -0.32913684844970703, -0.0009921789169311523, -0.3534656763076782, -0.1648857146501541, -0.16823238134384155, -0.2817857265472412, -0.14566931128501892, -0.1795325130224228, -0.09819673001766205, -0.3232879340648651, -0.005397830158472061, -0.5234812498092651, 0.07162442803382874, 0.443372905254364, 0.2940412163734436, 0.4423182010650635, -0.0001109808508772403, -0.2875823378562927, 0.38991087675094604, -0.023002885282039642, -0.18137210607528687, 0.11661532521247864, -0.3615160584449768, -0.18634876608848572, 0.11748215556144714, -0.4069397747516632, 0.08487382531166077, -0.07983808219432831, 0.057434335350990295, -0.40364378690719604, 0.3140896260738373, 0.1384187787771225, 0.15435053408145905, 0.10633422434329987, -0.343722403049469, -0.07604961097240448, -0.1214258000254631, 0.19615161418914795, -0.055197715759277344, -0.2625674903392792, 0.3066837191581726, -0.1369047462940216, -0.1651732623577118, 0.3768908977508545, 0.012589430436491966, 0.1844552457332611, 0.16202646493911743, -0.008036443032324314, 0.11637101322412491, -0.3147076666355133, 0.019083069637417793, 0.32908475399017334, 0.6239457726478577, -0.16969889402389526, -0.541716456413269, -0.353086918592453, -0.09063553810119629, -0.1542234569787979, -0.223388671875, 0.06269031763076782, -0.30766206979751587, 0.16144926846027374, -0.1356561779975891, 0.03912990167737007, -0.058317966759204865, 0.07414569705724716, 0.062331944704055786, 0.18178054690361023, 0.11622516065835953, 0.014461256563663483, 0.1221485435962677, -0.20257224142551422, 0.3085150122642517, -0.08016417175531387, 0.06296728551387787, 0.38893845677375793, -0.3603573739528656, -0.37177568674087524, 0.2615559995174408, -0.2382630705833435, 0.18213054537773132, -0.02592598646879196, 0.030566375702619553, 0.02028895728290081, -0.0516090951859951, 0.1309526264667511, 0.45102524757385254, -0.17197458446025848, -0.25445640087127686, -0.05768875777721405, 0.27536332607269287, -0.0342666320502758, 0.2316417694091797, -0.18182373046875, -0.014923712238669395, 0.1302006095647812, 0.4540771543979645, -0.06698045134544373, -0.02304505929350853, 0.04149049147963524, 0.1291748434305191, -0.21582244336605072, -0.08970749378204346, -0.06685508042573929, 0.10314207524061203, 0.4172225892543793, 0.010727432556450367, 0.7173675298690796, -0.11600449681282043, -0.0771917849779129, 0.043653711676597595, 0.18589286506175995, -0.07955043762922287, 0.10748313367366791, -0.04946526512503624, 0.2534821331501007, 0.04900198057293892, 0.44026705622673035, 0.09980232268571854, -0.12798289954662323, 0.14751484990119934, -0.012582961469888687, 0.16107934713363647, -0.1451147198677063, 0.03600640222430229, 0.08261702954769135, -0.321365624666214, 0.15061239898204803, -0.2702518403530121, 0.14618757367134094, -0.3478473424911499, 0.19622060656547546, 0.1689460724592209, -0.3187083601951599, 0.04007209464907646, 0.10511607676744461, -0.2749475836753845, -0.021062884479761124, -0.09445255249738693, 0.6725257039070129, -0.045877642929553986, -0.18313899636268616, 0.06983797252178192, 0.009494611993432045, -0.32898005843162537, -0.022960728034377098, 0.21890224516391754, 0.4401353597640991, -0.1363026350736618, -0.24571406841278076, -0.34823283553123474, 0.09064279496669769, 0.020059742033481598, 0.24949295818805695, -0.2223435640335083, 0.24791690707206726, -0.014712808653712273, -0.07584448158740997, 0.4358476996421814, -0.37260323762893677, -0.2863695025444031, 0.10743493586778641, 0.10106910765171051, 0.23969094455242157, 0.320235013961792, 0.302918940782547, 0.10727798193693161, -0.080903559923172, 0.11842282116413116, 0.34018123149871826, -0.18789754807949066, 0.2117665410041809, -0.0700473040342331, -0.1739463359117508, 0.0303870290517807, 0.17247962951660156, 0.1475326418876648, 0.2745969295501709, -0.19856715202331543, 0.15883828699588776, 0.21548235416412354, -0.2113923728466034, 0.08826129883527756, 0.09628231823444366, 0.7214688062667847, -0.1851271241903305, 0.010091934353113174, -0.7405367493629456, -0.12176116555929184, 0.10601920634508133, 0.0431147962808609, 0.20623911917209625, -0.26007282733917236, -0.18047958612442017, -0.009053576737642288, 0.20987793803215027, 0.14687255024909973, -0.02265317738056183, 0.08968321979045868, 0.2511677145957947, 0.003443412482738495, -0.23380409181118011, -0.13829833269119263, 0.33385294675827026, 0.13371801376342773, -0.2206484079360962, -0.25237375497817993, 0.13825562596321106, 0.26029515266418457, -0.08457093685865402, 0.04866541177034378, 0.08833225071430206, 0.053450748324394226, 0.06856038421392441, -0.031983859837055206, 0.1918075680732727, 0.2203945368528366, 0.15966379642486572, -0.008570224046707153, 0.44789183139801025, 0.052749115973711014, -0.10195564478635788, 0.04551824927330017, -0.08544118702411652, 0.21807365119457245, 0.04466667026281357, -0.14765432476997375, 0.3955345153808594, -0.08272360265254974, 0.16847029328346252, 0.14658422768115997, -0.029573695734143257, 0.47863849997520447, -0.025957485660910606, -0.3929912745952606, 0.01743430644273758, -0.06050283834338188, 0.1997901350259781, 0.08392608165740967, 0.22008587419986725, -0.30215126276016235, -0.18108126521110535, 0.40667688846588135, -0.18113501369953156, -0.009384781122207642, 0.055460091680288315, -0.10911507159471512, -0.13312247395515442, 0.19767703115940094, 0.1707281470298767, 0.2994368076324463, 0.21764805912971497, 0.07119464129209518, -0.11573226004838943, 0.09595265984535217, 0.07793433964252472, 0.17246493697166443, 0.4157842993736267, 0.05596665292978287, 0.06297104805707932, 0.3342020511627197, -0.14217111468315125, -0.24594366550445557, -0.3997681736946106, 0.08626332134008408, 0.24890932440757751, 0.11083795130252838, 0.011545328423380852, 0.07299620658159256, 0.0058011338114738464, -0.20456181466579437, -0.3509262800216675, 0.24131590127944946, -0.10022054612636566, 0.10173998773097992, 0.36777937412261963, -0.30876919627189636, 0.284253865480423, 0.13971830904483795, 0.6429679989814758, 0.26483646035194397, -0.038986340165138245, -0.48601919412612915, -0.1803136020898819, 0.25141069293022156, 0.055119361728429794, -0.012036599218845367, 0.09507786482572556, 0.17042282223701477, 0.37204283475875854, -0.01273793913424015, -0.16964603960514069, -0.13156282901763916, -0.09797540307044983, 0.23371756076812744, 0.2733369469642639, 0.037224479019641876, 0.11166053265333176, 0.26874589920043945, -0.33045753836631775, -0.03498893603682518, -0.20085781812667847, 0.14095233380794525, 0.07207697629928589, 0.16138504445552826, 0.06274444609880447, 0.17927266657352448, -0.16032147407531738, -0.2600760757923126, -0.6053082942962646, 0.36895835399627686, 0.05423480644822121, 0.03221536800265312, 0.16927102208137512, 0.06059889867901802, -0.17060419917106628, 0.25424695014953613, 0.2394324392080307, -0.20383964478969574, 0.04152191802859306, 0.4191523790359497, -0.04653797298669815, -0.08582210540771484, -0.3147164583206177, -0.5375617146492004, -0.008277170360088348, 0.3624134659767151, -0.18354710936546326, -0.21389228105545044, -0.3770628273487091, 0.05616391822695732, 0.06127040460705757, 0.06032145023345947, 0.2930107116699219, 0.18598097562789917, -0.061339735984802246, 0.10731460899114609, -0.11720365285873413, -0.1422041654586792, 0.22082337737083435, -0.11615674942731857, 0.09099497646093369, 0.5565491914749146, 0.02911360189318657, 0.27645254135131836, 0.21797116100788116, 0.023862577974796295, 0.0019022226333618164, 0.01642613485455513, -0.06465359032154083, -0.013355232775211334, -0.1583293229341507, -0.3220415711402893, -0.11602970957756042, -0.4046837091445923, 0.1325559914112091, -0.1441963016986847, -0.3101101219654083, -0.13849301636219025, 0.1829788237810135, 0.18825027346611023, -0.23535175621509552, 0.21982377767562866, -0.4457888901233673, 0.2578732669353485, 0.11234237253665924, 0.1273832619190216, -0.5248492956161499, 0.10330254584550858, 0.0032941773533821106, -0.2147437483072281, 0.1915874481201172, -0.2784009277820587, -0.43133026361465454, 0.13281063735485077, -0.5606130361557007, 0.16029343008995056, 0.2800098657608032, 0.5469937324523926, 0.2355920821428299, -0.13359269499778748, -0.038675978779792786, 0.03190365806221962, 0.6130146384239197, -0.18864242732524872, -0.6312987804412842, -0.1112869530916214, -0.5148541331291199, -0.2490358054637909, 0.1312445104122162, -0.4423077404499054, -0.16206270456314087, -0.1320868581533432, 0.10948053002357483, -0.30024775862693787, -0.2306603193283081, 0.3035322427749634, 0.10061872750520706, -0.1378089189529419, -0.08595527708530426, 0.04353208467364311, -0.13128864765167236, -0.1646168828010559, 0.05600610375404358, 0.30323001742362976, 0.08659054338932037, 0.15581968426704407, -0.19377939403057098, -0.1824321299791336, 0.0707254558801651, 0.2787311375141144, 0.1349657028913498, 0.052706629037857056, 0.15202078223228455, 0.23199427127838135, -0.09660053253173828, -0.4643038809299469, -0.11809799075126648, -0.059298381209373474, 0.0015840604901313782, -0.2826879322528839, -0.04490794241428375, 0.20520074665546417, 0.2667076289653778, 0.3378680944442749, -0.08144854009151459, 0.30583447217941284, 0.13265126943588257, 0.17812776565551758, -0.5900758504867554, 0.12448805570602417, 0.251689076423645, 0.24198828637599945, -0.22262895107269287, -0.7599793076515198, 0.7254578471183777, 0.004148097708821297, -0.248967707157135, 0.4675506353378296, -0.12107296288013458, -0.2296247035264969, 0.5162129402160645, -0.02974160760641098, 0.8367229104042053, -0.04158101975917816, 0.015128690749406815, 0.3326169550418854, -0.04612283036112785, 0.4079495072364807, -0.28494763374328613, 0.24504603445529938, 0.06728905439376831, -0.3808010220527649, -0.026484094560146332, -0.056615106761455536, -0.11595217138528824, 0.2451181858778, -0.19869506359100342, 0.4064105153083801, 0.30860453844070435, 0.10678413510322571, 0.24012650549411774, 0.22106674313545227, -0.16213145852088928, -0.4307648241519928, -0.3737441301345825, 0.11887107789516449, 0.1926013082265854, -0.11208634078502655, -0.10695823282003403, -0.06254398077726364, 0.2531571388244629, -0.029024016112089157, -0.28793129324913025, -0.2064090371131897, 0.055947259068489075, 0.2651126980781555, 0.07095426321029663, -0.0752175971865654, 0.11562773585319519, 0.1253315508365631, -0.13952820003032684, 0.23973101377487183, -0.19272129237651825, 0.2994096279144287, -0.14670005440711975, 0.13115468621253967, -0.13080552220344543, 0.18422995507717133, 0.4208391010761261, 0.1217607632279396, -0.2842586934566498, 0.21262845396995544, -0.013145744800567627, -0.28629177808761597, 0.017728105187416077, -0.05997748672962189, 0.2945922613143921, -0.2552538812160492, -0.39503833651542664, 0.20766541361808777, -0.46924835443496704, -0.20622600615024567, 0.19328710436820984, 0.20910122990608215, -0.48693379759788513, 0.5562134981155396, -0.011914826929569244, -0.07460305839776993, -0.08859437704086304, 0.15623711049556732, 0.12559664249420166, 0.08000540733337402, 0.35521721839904785, -0.0782686173915863, -0.2553063631057739, -0.16971570253372192, -0.16931873559951782, 0.03321421146392822, -0.14236825704574585, 0.30930715799331665, -0.06554026156663895, -0.3101681172847748, -0.23020772635936737, -0.03231765702366829, 0.11474141478538513, 0.06641942262649536, -0.45798441767692566, -0.0616014339029789, -0.5093143582344055, 0.30765941739082336, 0.16656623780727386, 0.5467932224273682, -0.04310232773423195, 0.040541231632232666, -0.42215558886528015, 0.30788448452949524, -0.35918131470680237, -0.3286212384700775, -0.45509272813796997, 0.22793617844581604, 0.012507254257798195, -0.171146422624588, -0.06665582954883575, 0.0586669035255909, 0.13842250406742096, 0.27868661284446716, -0.20614008605480194, -0.17255890369415283, -0.038059916347265244, 0.12458271533250809, 0.0732327252626419, -0.06069188565015793, 0.08091665804386139, -0.11794786900281906, -0.15925335884094238, -0.4887484312057495, 0.07405078411102295, 0.15148711204528809, -0.143938347697258, 0.4049989879131317, 0.3262137770652771, -0.30516213178634644, -0.29127979278564453, 0.2303905189037323, 0.11954989284276962, -0.23812107741832733, -0.10265941917896271, 0.4540559947490692, -0.060265686362981796, -0.0635375827550888, -0.24913570284843445, 0.3366054594516754, 0.11510356515645981, -0.2127768099308014, 0.25725463032722473, 0.2566642761230469, -0.127970352768898, 0.12822681665420532, 0.3670678734779358, 0.3787522614002228, 0.06934981793165207, 0.14838053286075592, 0.12646305561065674, 0.26777568459510803, -0.3546544015407562, 0.012644913978874683, -0.2717975080013275, -0.18302571773529053, 0.506108283996582, 0.21325312554836273, -0.14918838441371918, 0.004752106964588165, 0.34916818141937256, -0.09563640505075455, 0.24270282685756683, -0.2840688228607178, 0.1290699690580368, 0.2916916310787201, 0.31353360414505005, -0.073249951004982, 0.22274047136306763, 0.3729330003261566, 0.27102065086364746, 0.36991769075393677, -0.136956125497818, 0.05863258242607117, -0.1293046474456787, 0.07672342658042908, -0.1018114760518074, 0.0785491019487381, -0.04312989488244057, 0.31874051690101624, 0.04297655448317528, 0.14722713828086853, 0.2114265263080597, -0.043449632823467255, 0.06876207143068314, 0.23223328590393066, -0.16351233422756195, 0.04409269988536835, 0.04765675961971283, -0.3000619411468506, 0.1331101655960083, -0.05404972285032272, -0.12072120606899261, -0.0936296284198761, 0.20348216593265533, -0.16795071959495544, 0.3024563193321228, 0.06342922151088715, 0.38470739126205444, -0.1417672485113144, 0.31839144229888916, 0.14355608820915222, 0.313909649848938, -0.4563677906990051, -0.1594531387090683, 0.14377284049987793, 0.051138728857040405, 0.058626689016819, 0.28364014625549316, 0.08398263156414032, 0.20205023884773254, -0.07976321876049042, 0.3794158101081848, -0.15284213423728943, -0.2747274339199066, -0.05646444857120514, 0.19105347990989685, -0.013038091361522675, 0.3827260136604309, -0.003920982591807842, 0.1531083881855011, -0.17331050336360931, 0.06674234569072723, 0.01854769140481949, -0.06983223557472229, -0.7748567461967468, 0.4783277213573456, 0.17620736360549927, -0.15946856141090393, 0.03734646365046501, -0.10191222280263901, -0.12336607277393341, -0.034795355051755905, 0.01283502671867609, -0.6941595077514648, 0.034173764288425446, 0.2453075796365738, 0.0797363668680191, -0.42432767152786255, 0.11014946550130844, 0.12760202586650848, 0.4330954849720001, -0.13481391966342926, -0.0656609982252121, -0.3368561267852783, -0.26762518286705017, 0.19619067013263702, -0.06691008061170578, 0.35646817088127136, 0.2342173010110855, 0.007053561508655548, 0.27074697613716125, -0.26802074909210205, -0.1807575225830078, -0.5681551098823547, 0.3336022198200226, -0.36610114574432373, -0.24570505321025848, -0.2002752274274826, 0.21337345242500305, 0.11297762393951416, -0.3904237151145935, -0.04836532846093178, 0.10898984968662262, 0.04431207478046417, 0.005770744755864143, 0.05993417650461197, 0.05178244784474373, 0.18244197964668274, 0.08013985306024551, 0.120754174888134, 0.24992117285728455, -0.21390748023986816, 0.18757537007331848, -0.08637776970863342, -0.4399537146091461, -0.20106227695941925, -0.3203376829624176, -0.029015008360147476, 0.3762718141078949, 0.08633550256490707, 0.09131067991256714, -0.11978670209646225, 0.0868220329284668, -0.02973371371626854, -0.22104398906230927, -0.34232616424560547, 0.06729809194803238, -0.3293606638908386, 0.2029595673084259, -0.11814848333597183, 0.15527629852294922, 0.013581886887550354, 0.09293283522129059, -0.19411924481391907, -0.07688375562429428, 0.4865628778934479, -0.14119741320610046, -0.47362470626831055, -0.23275384306907654, 0.16162437200546265, 0.011256776750087738, -0.199233740568161, -0.49416452646255493, -0.01775994896888733, 0.180904820561409, -0.03245691582560539, -0.23130324482917786, 0.2836439311504364, 0.15425735712051392, -0.016142576932907104, -0.18635079264640808, 0.3337239623069763, 0.09808177500963211, 0.04655958712100983, -0.22057770192623138, -0.41671478748321533 ]
https://github.com/huggingface/datasets/issues/4180
Add some iteration method on a dataset column (specific for inference)
Yea pandas doesn't do lazy loading. I was referring to pandas.Series to say that they have a dedicated class to represent a column ;)
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq
24
Add some iteration method on a dataset column (specific for inference) **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Currently, `dataset["audio"]` will load EVERY element in the dataset in RAM, which can be quite big for an audio dataset. Having an iterator (or sequence) type of object, would make inference with `transformers` 's `pipeline` easier to use and not so memory hungry. **Describe the solution you'd like** A clear and concise description of what you want to happen. For a non breaking change: ```python for audio in dataset.iterate("audio"): # {"array": np.array(...), "sampling_rate":...} ``` For a breaking change solution (not necessary), changing the type of `dataset["audio"]` to a sequence type so that ```python pipe = pipeline(model="...") for out in pipe(dataset["audio"]): # {"text":....} ``` could work **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. ```python def iterate(dataset, key): for item in dataset: yield dataset[key] for out in pipeline(iterate(dataset, "audio")): # {"array": ...} ``` This works but requires the helper function which feels slightly clunky. **Additional context** Add any other context about the feature request here. The context is actually to showcase better integration between `pipeline` and `datasets` in the Quicktour demo: https://github.com/huggingface/transformers/pull/16723/files @lhoestq Yea pandas doesn't do lazy loading. I was referring to pandas.Series to say that they have a dedicated class to represent a column ;)
[ -0.3311901092529297, -0.13776728510856628, -0.09782674908638, 0.060063865035772324, 0.19525116682052612, -0.10979987680912018, 0.37822484970092773, -0.0013356581330299377, 0.003966877236962318, 0.3533790707588196, -0.11393577605485916, 0.38511836528778076, -0.19743411242961884, 0.08765977621078491, 0.06248972937464714, -0.284860223531723, -0.03279329091310501, 0.35952523350715637, -0.3034149706363678, -0.02448095753788948, -0.341053307056427, -0.15286847949028015, -0.13220730423927307, -0.21493469178676605, -0.05521119013428688, -0.08720003068447113, -0.06068272888660431, -0.25314754247665405, 0.0069991592317819595, -0.44430243968963623, 0.04788234084844589, 0.4961124062538147, 0.2889385521411896, 0.4016384184360504, -0.00010932749137282372, -0.2291446328163147, 0.35874223709106445, -0.02305014804005623, -0.18763865530490875, 0.04098603129386902, -0.2813183069229126, -0.24380385875701904, 0.06475657224655151, -0.42024368047714233, -0.04633083939552307, -0.08997435122728348, -0.03586892783641815, -0.284263014793396, 0.24355238676071167, 0.09404211491346359, 0.17328466475009918, 0.21264557540416718, -0.3788941502571106, -0.03465155139565468, -0.06090395897626877, 0.15099850296974182, -0.02884748950600624, -0.22537094354629517, 0.31420233845710754, -0.0883483961224556, -0.22680658102035522, 0.43760889768600464, 0.029665758833289146, 0.18923147022724152, 0.1857283115386963, 0.018285265192389488, 0.0957408994436264, -0.29192864894866943, 0.04805765300989151, 0.40151941776275635, 0.6242349147796631, -0.07033781707286835, -0.5349678993225098, -0.4128744900226593, -0.03813869506120682, -0.1804979145526886, -0.20805040001869202, 0.07399142533540726, -0.22255992889404297, 0.1567690372467041, -0.12395580857992172, 0.046023864299058914, -0.0629236251115799, 0.02430756762623787, 0.010870769619941711, 0.1825421005487442, 0.06504621356725693, 0.0316011942923069, 0.1242084801197052, -0.22669397294521332, 0.3286004066467285, -0.09693136066198349, 0.0705757737159729, 0.4406169354915619, -0.38828015327453613, -0.41674748063087463, 0.22029909491539001, -0.1764705777168274, 0.1583690643310547, 0.05785872042179108, 0.06413604319095612, 0.06553447246551514, -0.013154285959899426, 0.1333238184452057, 0.4548572599887848, -0.23301488161087036, -0.1917993426322937, 0.028555892407894135, 0.26292526721954346, -0.015337267890572548, 0.22040578722953796, -0.15337377786636353, -0.08185742050409317, 0.10416620224714279, 0.407971054315567, -0.03444391489028931, 0.025739599019289017, 0.031760189682245255, 0.14793840050697327, -0.21202456951141357, -0.005564980208873749, -0.010578714311122894, 0.13582468032836914, 0.4715932309627533, 0.04365220665931702, 0.7638558745384216, -0.1578414887189865, -0.017838899046182632, 0.056546762585639954, 0.07250574976205826, -0.06370794773101807, 0.07670649886131287, 0.041794825345277786, 0.2618084251880646, 0.05310126766562462, 0.4474969804286957, 0.08454524725675583, -0.15985479950904846, 0.15999267995357513, -0.1196126937866211, 0.08878196775913239, -0.09719954431056976, 0.0066737160086631775, 0.10361509025096893, -0.30508819222450256, 0.15071485936641693, -0.20819886028766632, 0.08139955997467041, -0.3247472941875458, 0.1632102131843567, 0.10375480353832245, -0.28961336612701416, 0.04526926577091217, 0.12373796850442886, -0.2540730834007263, -0.06072352081537247, -0.17324459552764893, 0.641349196434021, -0.014523275196552277, -0.14361518621444702, 0.012061446905136108, 0.015945468097925186, -0.3732694387435913, 0.004548008553683758, 0.21068695187568665, 0.37207311391830444, -0.06231773644685745, -0.33225077390670776, -0.3471454977989197, 0.07079286128282547, 0.00025443732738494873, 0.24269486963748932, -0.23166362941265106, 0.27490270137786865, 0.017299382016062737, -0.053163155913352966, 0.4677303433418274, -0.3045019507408142, -0.3084777295589447, 0.15018293261528015, 0.044634051620960236, 0.3173390328884125, 0.22876352071762085, 0.27728092670440674, 0.1283452808856964, -0.13750699162483215, 0.14981213212013245, 0.4296231269836426, -0.14724493026733398, 0.26656708121299744, -0.0333370715379715, -0.18944112956523895, 0.07309752702713013, 0.24051208794116974, 0.15168246626853943, 0.2926981449127197, -0.2798526883125305, 0.10405433177947998, 0.27201876044273376, -0.27802854776382446, 0.002228684723377228, 0.11406765878200531, 0.6467103362083435, -0.1968867927789688, -0.0047487253323197365, -0.6862487196922302, -0.1458236575126648, 0.13750773668289185, -0.021977843716740608, 0.1653810739517212, -0.20768268406391144, -0.23962506651878357, -0.06285985559225082, 0.22604285180568695, 0.0923689752817154, 0.004179678857326508, 0.11840078234672546, 0.19897112250328064, -0.019152292981743813, -0.3275533616542816, -0.14430353045463562, 0.27064669132232666, 0.012573247775435448, -0.16497214138507843, -0.29870420694351196, 0.1465386301279068, 0.26602867245674133, 0.02197694033384323, 0.06486961245536804, 0.11852645128965378, 0.06658357381820679, 0.03171893209218979, -0.0014527952298521996, 0.226898193359375, 0.19842953979969025, 0.16114990413188934, -0.0406135618686676, 0.419242799282074, 0.020306967198848724, -0.07384499162435532, 0.002350572496652603, -0.016969602555036545, 0.22658807039260864, 0.0753769800066948, -0.21690115332603455, 0.5118588805198669, -0.11263918876647949, 0.19216620922088623, 0.1162877082824707, -0.04554521292448044, 0.520442545413971, -0.018133368343114853, -0.4739360511302948, 0.019741490483283997, -0.05550416186451912, 0.14502348005771637, 0.07045209407806396, 0.23242084681987762, -0.2680709958076477, -0.16170358657836914, 0.39975011348724365, -0.22274117171764374, -0.015863776206970215, 0.12203926593065262, -0.16670793294906616, -0.10636366903781891, 0.0838121622800827, 0.2622566521167755, 0.2584090828895569, 0.2570453882217407, 0.08724053204059601, -0.18685686588287354, 0.05659584328532219, 0.11095479130744934, 0.20819726586341858, 0.3723340630531311, 0.06198638677597046, 0.07744776457548141, 0.3280304968357086, -0.19713923335075378, -0.2841746509075165, -0.44893303513526917, 0.07284452021121979, 0.2430199235677719, 0.03163468465209007, 0.01827550120651722, 0.12902724742889404, 0.0053598955273628235, -0.15323272347450256, -0.396053671836853, 0.26416486501693726, -0.061730705201625824, 0.11151877790689468, 0.3102302849292755, -0.3556967079639435, 0.25075995922088623, 0.07937972247600555, 0.6093612313270569, 0.29087990522384644, -0.035092175006866455, -0.3809041380882263, -0.2493491917848587, 0.29805612564086914, 0.07170543074607849, -0.028666973114013672, 0.06194913014769554, 0.08938194811344147, 0.22519329190254211, -0.008978350088000298, -0.06107724457979202, -0.1661541908979416, -0.049876682460308075, 0.2143518030643463, 0.20524080097675323, -0.02368803322315216, 0.1656331717967987, 0.3200998306274414, -0.3047841489315033, -0.0006953818956390023, -0.23939596116542816, 0.15609721839427948, 0.10372636467218399, 0.18476565182209015, 0.028020238503813744, 0.19480781257152557, -0.16081294417381287, -0.2380376011133194, -0.563086211681366, 0.35042089223861694, 0.03049958124756813, 0.08009606599807739, 0.21467028558254242, 0.0895206481218338, -0.14899969100952148, 0.278379887342453, 0.25504326820373535, -0.2284480333328247, -0.0492321141064167, 0.4156349301338196, -0.037113506346940994, -0.17658117413520813, -0.38888853788375854, -0.5211957097053528, -0.04558466002345085, 0.21772344410419464, -0.13500790297985077, -0.17822043597698212, -0.4197206199169159, 0.018633048981428146, 0.04259689524769783, -0.027332047000527382, 0.22106795012950897, 0.1800638884305954, -0.059779971837997437, 0.06710929423570633, -0.10089480876922607, -0.14986974000930786, 0.2583947479724884, -0.09782104939222336, 0.039075903594493866, 0.5020308494567871, -0.015542635694146156, 0.2647168040275574, 0.1688155084848404, -0.06859293580055237, -0.0797552615404129, -0.001399824395775795, -0.04376216605305672, 0.0012608543038368225, -0.18218475580215454, -0.3356633484363556, -0.1312236785888672, -0.33374589681625366, 0.24595776200294495, -0.11919926851987839, -0.34442535042762756, -0.12982752919197083, 0.20141713321208954, 0.14807361364364624, -0.32170382142066956, 0.25814855098724365, -0.39062488079071045, 0.14209190011024475, 0.12189680337905884, 0.19382184743881226, -0.49575868248939514, 0.14280807971954346, -0.019955042749643326, -0.18973876535892487, 0.22198808193206787, -0.31444695591926575, -0.38451799750328064, 0.11421090364456177, -0.5367223024368286, 0.1523565649986267, 0.24564853310585022, 0.5471445322036743, 0.25066909193992615, -0.15722328424453735, -0.02755243331193924, -0.03650253266096115, 0.5369513034820557, -0.2140374630689621, -0.491695761680603, -0.10783447325229645, -0.3699948787689209, -0.3064150810241699, 0.10915583372116089, -0.4548409879207611, -0.16561178863048553, -0.039358798414468765, 0.2457529902458191, -0.35630813241004944, -0.17996464669704437, 0.27149197459220886, 0.1518370658159256, -0.15015774965286255, -0.09670156985521317, -0.019612733274698257, -0.1233065128326416, -0.1997700333595276, 0.11832660436630249, 0.2503100633621216, 0.14984405040740967, 0.018853597342967987, -0.20422625541687012, -0.09947673976421356, 0.011993762105703354, 0.30190205574035645, 0.2481878250837326, 0.08068156242370605, 0.150466188788414, 0.25973939895629883, -0.07378459721803665, -0.4209616780281067, -0.24814307689666748, 0.07389115542173386, 0.03234950453042984, -0.31938445568084717, -0.014095570892095566, 0.15705983340740204, 0.25189563632011414, 0.3402429223060608, -0.04388202354311943, 0.35020801424980164, 0.11991696059703827, 0.18247921764850616, -0.5397794842720032, 0.15002651512622833, 0.2529980540275574, 0.287964791059494, -0.2380531132221222, -0.7179014086723328, 0.7795929908752441, -0.016564475372433662, -0.2544931471347809, 0.4534556567668915, -0.14865729212760925, -0.17821291089057922, 0.5385094285011292, -0.06782153993844986, 0.8100148439407349, -0.096181720495224, -0.08494125306606293, 0.20650163292884827, -0.1793646514415741, 0.4034747779369354, -0.3431805968284607, 0.18813511729240417, 0.035472970455884933, -0.46309801936149597, 0.0033261198550462723, -0.023689476773142815, -0.12302631884813309, 0.31219232082366943, -0.21462610363960266, 0.35731956362724304, 0.22971324622631073, 0.12623390555381775, 0.24955420196056366, 0.21150332689285278, -0.1383262276649475, -0.4956970512866974, -0.4600316286087036, 0.12628988921642303, 0.11786019802093506, -0.07883007824420929, -0.04005496948957443, -0.05932833254337311, 0.21437925100326538, -0.1173526868224144, -0.2692434787750244, -0.14799931645393372, 0.15035130083560944, 0.19353999197483063, 0.09089900553226471, -0.17371095716953278, 0.11633279919624329, 0.0739000141620636, -0.23453839123249054, 0.21401652693748474, -0.18049675226211548, 0.318677693605423, -0.13064566254615784, 0.22285839915275574, -0.16661417484283447, 0.22388668358325958, 0.2969689667224884, 0.15698257088661194, -0.2651342451572418, 0.13745585083961487, -0.04109989479184151, -0.2601596713066101, 0.08988937735557556, -0.05670560896396637, 0.3216906785964966, -0.2620546817779541, -0.3407496213912964, 0.19863194227218628, -0.40998080372810364, -0.2457502782344818, 0.20159652829170227, 0.15207511186599731, -0.5462902784347534, 0.5060089826583862, 0.13035236299037933, -0.13079236447811127, -0.011994380503892899, 0.19170622527599335, 0.14182615280151367, 0.11268474161624908, 0.3663068413734436, -0.09732925146818161, -0.2057209461927414, -0.1952584981918335, -0.09351921081542969, 0.03589661046862602, -0.19494083523750305, 0.2661636471748352, -0.05329349264502525, -0.3081775903701782, -0.2084539830684662, -0.06025528535246849, 0.11345309764146805, 0.04175464063882828, -0.47282838821411133, -0.1071997582912445, -0.5006480813026428, 0.25754228234291077, 0.15494973957538605, 0.5483836531639099, 0.0023999102413654327, 0.06540319323539734, -0.4352042078971863, 0.3975208103656769, -0.38087204098701477, -0.31842225790023804, -0.4541763365268707, 0.25924617052078247, 0.06970635801553726, -0.19303828477859497, -0.0223676934838295, 0.038918931037187576, 0.1683565229177475, 0.2216857224702835, -0.1362619698047638, -0.1886664628982544, -0.08821655809879303, 0.11108747869729996, 0.04833822697401047, 0.009580496698617935, 0.05067311227321625, -0.05761495232582092, -0.16757531464099884, -0.49563249945640564, 0.07618322968482971, 0.06706156581640244, -0.11061996221542358, 0.30057084560394287, 0.18084849417209625, -0.254341721534729, -0.353046715259552, 0.1636892557144165, 0.039852775633335114, -0.2712482213973999, -0.06252464652061462, 0.3977067768573761, -0.06425555795431137, -0.03654922544956207, -0.2508591413497925, 0.3146480917930603, 0.2056773453950882, -0.3055018186569214, 0.32213836908340454, 0.18378058075904846, -0.014679264277219772, 0.10115271806716919, 0.3669968545436859, 0.4179084897041321, 0.11066596210002899, 0.14135439693927765, 0.09734093397855759, 0.3147464990615845, -0.4299124777317047, 0.02800213173031807, -0.2671777904033661, -0.22399774193763733, 0.5194499492645264, 0.23046410083770752, -0.15028095245361328, 0.00589270144701004, 0.3987460732460022, -0.11397172510623932, 0.28112488985061646, -0.22406359016895294, 0.1130634993314743, 0.4061194956302643, 0.2746443748474121, -0.06550830602645874, 0.24809888005256653, 0.27717623114585876, 0.2835984528064728, 0.3211851119995117, -0.1818358302116394, 0.001390058547258377, -0.1492004692554474, 0.1096840649843216, -0.10610871762037277, -0.006658690050244331, -0.03767718747258186, 0.31381523609161377, 0.11607807129621506, 0.19511833786964417, 0.23224696516990662, 0.0313153900206089, 0.01806575059890747, 0.23849859833717346, -0.23284582793712616, 0.08847358822822571, 0.0693921223282814, -0.3975668251514435, 0.06431449949741364, -0.055502235889434814, -0.10806329548358917, -0.13487136363983154, 0.20260187983512878, -0.18375708162784576, 0.22171016037464142, 0.055969685316085815, 0.39700156450271606, -0.2435959428548813, 0.21600213646888733, 0.101966992020607, 0.3313620388507843, -0.4522742033004761, -0.06061641126871109, 0.19736294448375702, 0.1113484650850296, 0.19809763133525848, 0.153310164809227, 0.06974834203720093, 0.17751803994178772, -0.05475131794810295, 0.39086097478866577, -0.14675995707511902, -0.25793367624282837, -0.03171566128730774, 0.15185284614562988, -0.03550398349761963, 0.27492985129356384, 0.14790084958076477, 0.17285394668579102, -0.20328974723815918, 0.06886452436447144, 0.020734459161758423, -0.06256404519081116, -0.6503017544746399, 0.5730147361755371, 0.15540388226509094, -0.15273380279541016, -0.08642053604125977, -0.20206421613693237, -0.08642274141311646, -0.07044170796871185, -0.029182106256484985, -0.5635619759559631, 0.03654167801141739, 0.2577243745326996, 0.09513548761606216, -0.3374050557613373, 0.14018568396568298, 0.12851876020431519, 0.389761745929718, -0.11571017652750015, -0.014300867915153503, -0.38707926869392395, -0.26599040627479553, 0.14404405653476715, -0.10948886722326279, 0.38019871711730957, 0.22586314380168915, 0.09455310553312302, 0.2887192964553833, -0.21479301154613495, -0.19838669896125793, -0.4255324900150299, 0.33574745059013367, -0.32828396558761597, -0.19764526188373566, -0.16039203107357025, 0.23869706690311432, 0.08706801384687424, -0.40941378474235535, -0.13941590487957, 0.12016674876213074, 0.0694848969578743, 0.02066890336573124, 0.1085682362318039, -0.01286399457603693, 0.04619376361370087, 0.050517670810222626, 0.019836220890283585, 0.3450922667980194, -0.22251564264297485, 0.19096900522708893, -0.08045168220996857, -0.41373372077941895, -0.2912614643573761, -0.311855286359787, 0.04241044819355011, 0.3476923108100891, 0.21312755346298218, 0.12685386836528778, -0.08936572819948196, 0.048709724098443985, -0.0008451119065284729, -0.19774283468723297, -0.33727967739105225, 0.1414472907781601, -0.3301084339618683, 0.21340572834014893, -0.177085280418396, 0.13913466036319733, 0.034613221883773804, 0.07828300446271896, -0.1933925747871399, -0.16990435123443604, 0.5651543736457825, -0.18713735044002533, -0.49231407046318054, -0.13152216374874115, 0.226497620344162, -0.0666842982172966, -0.1584627479314804, -0.4859486520290375, -0.000273972749710083, 0.1497795283794403, -0.08584235608577728, -0.188268780708313, 0.27812325954437256, 0.14861339330673218, 0.0006733164191246033, -0.2466115653514862, 0.36390364170074463, 0.09299278259277344, 0.056099310517311096, -0.32875585556030273, -0.4486372470855713 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Another thing, but maybe this should be a separate issue: As I see from the code, it would try to use up to 16 simultaneous downloads? This is problematic for Librispeech or anything on OpenSLR. On [the homepage](https://www.openslr.org/), it says: > If you want to download things from this site, please download them one at a time, and please don't use any fancy software-- just download things from your browser or use 'wget'. We have a firewall rule to drop connections from hosts with more than 5 simultaneous connections, and certain types of download software may activate this rule. Related: https://github.com/tensorflow/datasets/issues/3885
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
101
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Another thing, but maybe this should be a separate issue: As I see from the code, it would try to use up to 16 simultaneous downloads? This is problematic for Librispeech or anything on OpenSLR. On [the homepage](https://www.openslr.org/), it says: > If you want to download things from this site, please download them one at a time, and please don't use any fancy software-- just download things from your browser or use 'wget'. We have a firewall rule to drop connections from hosts with more than 5 simultaneous connections, and certain types of download software may activate this rule. Related: https://github.com/tensorflow/datasets/issues/3885
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Sorry maybe the docs haven't been super clear here. By `split` we mean one of `train.500`, `train.360`, `train.100`, `validation`, `test`. For Librispeech, you'll have to specific a config (either `other` or `clean`) though: ```py datasets.load_dataset("librispeech_asr", "clean") ``` should work and give you all splits (being "train", "test", ...) for the clean config of the dataset.
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
55
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Sorry maybe the docs haven't been super clear here. By `split` we mean one of `train.500`, `train.360`, `train.100`, `validation`, `test`. For Librispeech, you'll have to specific a config (either `other` or `clean`) though: ```py datasets.load_dataset("librispeech_asr", "clean") ``` should work and give you all splits (being "train", "test", ...) for the clean config of the dataset.
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
If you need both `"clean"` and `"other"` I think you'll have to do concatenate them as follows: ```py from datasets import concatenate_datasets, load_dataset other = load_dataset("librispeech_asr", "other") clean = load_dataset("librispeech_asr", "clean") librispeech = concatenate_datasets([other, clean]) ``` See https://huggingface.co/docs/datasets/v2.1.0/en/process#concatenate
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
38
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 If you need both `"clean"` and `"other"` I think you'll have to do concatenate them as follows: ```py from datasets import concatenate_datasets, load_dataset other = load_dataset("librispeech_asr", "other") clean = load_dataset("librispeech_asr", "clean") librispeech = concatenate_datasets([other, clean]) ``` See https://huggingface.co/docs/datasets/v2.1.0/en/process#concatenate
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Downloading one split would be: ```py from datasets import load_dataset other = load_dataset("librispeech_asr", "other", split="train.500") ```
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
16
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Downloading one split would be: ```py from datasets import load_dataset other = load_dataset("librispeech_asr", "other", split="train.500") ```
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Ah thanks. But wouldn't it be easier/nicer (and more canonical) to just make it in a way that simply `load_dataset("librispeech_asr")` works?
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
21
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Ah thanks. But wouldn't it be easier/nicer (and more canonical) to just make it in a way that simply `load_dataset("librispeech_asr")` works?
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Pinging @lhoestq here, think this could make sense! Not sure however how the dictionary would then look like
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
18
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Pinging @lhoestq here, think this could make sense! Not sure however how the dictionary would then look like
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Would it make sense to have `clean` as the default config ? Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config I also opened a PR to improve the doc: https://github.com/huggingface/datasets/pull/4183
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
41
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Would it make sense to have `clean` as the default config ? Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config I also opened a PR to improve the doc: https://github.com/huggingface/datasets/pull/4183
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
> Would it make sense to have `clean` as the default config ? I think a user would expect that the default would give you the full dataset. > Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config It does raise an error, but this error confused me because I did not understand why I needed a config, or why I could not simply download the whole dataset, which is what people usually do with Librispeech.
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
86
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 > Would it make sense to have `clean` as the default config ? I think a user would expect that the default would give you the full dataset. > Also I think `load_dataset("librispeech_asr")` should have raised you an error that says that you need to specify a config It does raise an error, but this error confused me because I did not understand why I needed a config, or why I could not simply download the whole dataset, which is what people usually do with Librispeech.
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
+1 for @albertz. Also think lots of people download the whole dataset (`"clean"` + `"other"`) for Librispeech. Think there are also some people though who: - a) Don't have the memory to store the whole dataset - b) Just want to evaluate on one of the two configs
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
48
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 +1 for @albertz. Also think lots of people download the whole dataset (`"clean"` + `"other"`) for Librispeech. Think there are also some people though who: - a) Don't have the memory to store the whole dataset - b) Just want to evaluate on one of the two configs
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Ok ! Adding the "all" configuration would do the job then, thanks ! In the "all" configuration we can merge all the train.xxx splits into one "train" split, or keep them separate depending on what's the most practical to use (probably put everything in "train" no ?)
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
47
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Ok ! Adding the "all" configuration would do the job then, thanks ! In the "all" configuration we can merge all the train.xxx splits into one "train" split, or keep them separate depending on what's the most practical to use (probably put everything in "train" no ?)
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
I'm not too familiar with how to work with HuggingFace datasets, but people often do some curriculum learning scheme, where they start with train.100, later go over to train.100 + train.360, and then later use the whole train (960h). It would be good if this is easily possible.
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
48
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 I'm not too familiar with how to work with HuggingFace datasets, but people often do some curriculum learning scheme, where they start with train.100, later go over to train.100 + train.360, and then later use the whole train (960h). It would be good if this is easily possible.
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Hey @albertz, opened a PR here. Think by adding the "subdataset" class to each split "train", "dev", "other" as shown here: https://github.com/huggingface/datasets/pull/4184/files#r853272727 it should be easily possible (e.g. with the filter function https://huggingface.co/docs/datasets/v2.1.0/en/package_reference/main_classes#datasets.Dataset.filter )
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
34
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Hey @albertz, opened a PR here. Think by adding the "subdataset" class to each split "train", "dev", "other" as shown here: https://github.com/huggingface/datasets/pull/4184/files#r853272727 it should be easily possible (e.g. with the filter function https://huggingface.co/docs/datasets/v2.1.0/en/package_reference/main_classes#datasets.Dataset.filter )
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
But also since everything is cached one could also just do: ```python load_dataset("librispeech", "clean", "train.100") load_dataset("librispeech", "clean", "train.100+train.360") load_dataset("librispeech" "all", "train") ```
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
22
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 But also since everything is cached one could also just do: ```python load_dataset("librispeech", "clean", "train.100") load_dataset("librispeech", "clean", "train.100+train.360") load_dataset("librispeech" "all", "train") ```
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Hi @patrickvonplaten , load_dataset("librispeech_asr", "clean", "train.100") actually downloads the whole dataset and not the 100 hr split, is this a bug?
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
21
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Hi @patrickvonplaten , load_dataset("librispeech_asr", "clean", "train.100") actually downloads the whole dataset and not the 100 hr split, is this a bug?
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
Hmm, I don't really see how that's possible: https://github.com/huggingface/datasets/blob/d22e39a0693d4be7410cf9a5d41fd5aac22be3cc/datasets/librispeech_asr/librispeech_asr.py#L51 Note that all datasets related to `"clean"` are downloaded, but only `"train.100"` should be used. cc @lhoestq @albertvillanova @mariosasko can we do anything against download dataset links that are not related to the "split" that one actually needs. E.g. why should the split `"train.360"` be downloaded if for the user executes the above command: ```py load_dataset("librispeech_asr", "clean", "train.100") ```
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
68
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 Hmm, I don't really see how that's possible: https://github.com/huggingface/datasets/blob/d22e39a0693d4be7410cf9a5d41fd5aac22be3cc/datasets/librispeech_asr/librispeech_asr.py#L51 Note that all datasets related to `"clean"` are downloaded, but only `"train.100"` should be used. cc @lhoestq @albertvillanova @mariosasko can we do anything against download dataset links that are not related to the "split" that one actually needs. E.g. why should the split `"train.360"` be downloaded if for the user executes the above command: ```py load_dataset("librispeech_asr", "clean", "train.100") ```
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
@patrickvonplaten This problem is a bit harder than it may seem, and it has to do with how our scripts are structured - `_split_generators` downloads data for a split before its definition. There was an attempt to fix this in https://github.com/huggingface/datasets/pull/2249, but it wasn't flexible enough. Luckily, I have a plan of attack, and this issue is on our short-term roadmap, so I'll work on it soon. In the meantime, one can use streaming or manually download a dataset script, remove unwanted splits and load a dataset via `load_dataset`.
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
89
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 @patrickvonplaten This problem is a bit harder than it may seem, and it has to do with how our scripts are structured - `_split_generators` downloads data for a split before its definition. There was an attempt to fix this in https://github.com/huggingface/datasets/pull/2249, but it wasn't flexible enough. Luckily, I have a plan of attack, and this issue is on our short-term roadmap, so I'll work on it soon. In the meantime, one can use streaming or manually download a dataset script, remove unwanted splits and load a dataset via `load_dataset`.
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4179
Dataset librispeech_asr fails to load
> load_dataset("librispeech_asr", "clean", "train.100") actually downloads the whole dataset and not the 100 hr split, is this a bug? Since this bug is still there and google led me here when I was searching for a solution, I am writing down how to quickly fix it (as suggested by @mariosasko) for whoever else is not familiar with how the HF Hub works. Download the [librispeech_asr.py](https://huggingface.co/datasets/librispeech_asr/blob/main/librispeech_asr.py) script and remove the unwanted splits both from the [`_DL_URLS` dictionary](https://huggingface.co/datasets/librispeech_asr/blob/main/librispeech_asr.py#L47-L68) and from the [`_split_generators` function](https://huggingface.co/datasets/librispeech_asr/blob/main/librispeech_asr.py#L121-L241). [Here ](https://huggingface.co/datasets/andreagasparini/librispeech_test_only) I made an example with only the test sets. Then either save the script locally and load the dataset via ```python load_dataset("${local_path}/librispeech_asr.py") ``` or [create a new dataset repo on the hub](https://huggingface.co/new-dataset) named "librispeech_asr" and upload the script there, then you can just run ```python load_dataset("${hugging_face_username}/librispeech_asr") ```
## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2
130
Dataset librispeech_asr fails to load ## Describe the bug The dataset librispeech_asr (standard Librispeech) fails to load. ## Steps to reproduce the bug ```python datasets.load_dataset("librispeech_asr") ``` ## Expected results It should download and prepare the whole dataset (all subsets). In [the doc](https://huggingface.co/datasets/librispeech_asr), it says it has two configurations (clean and other). However, the dataset doc says that not specifying `split` should just load the whole dataset, which is what I want. Also, in case of this specific dataset, this is also the standard what the community uses. When you look at any publications with results on Librispeech, they always use the whole train dataset for training. ## Actual results ``` ... File "/home/az/.cache/huggingface/modules/datasets_modules/datasets/librispeech_asr/1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c/librispeech_asr.py", line 119, in LibrispeechASR._split_generators line: archive_path = dl_manager.download(_DL_URLS[self.config.name]) locals: archive_path = <not found> dl_manager = <local> <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160> dl_manager.download = <local> <bound method DownloadManager.download of <datasets.utils.download_manager.DownloadManager object at 0x7fc07b426160>> _DL_URLS = <global> {'clean': {'dev': 'http://www.openslr.org/resources/12/dev-clean.tar.gz', 'test': 'http://www.openslr.org/resources/12/test-clean.tar.gz', 'train.100': 'http://www.openslr.org/resources/12/train-clean-100.tar.gz', 'train.360': 'http://www.openslr.org/resources/12/train-clean-360.tar.gz'}, 'other'... self = <local> <datasets_modules.datasets.librispeech_asr.1f4602f6b5fed8d3ab3e3382783173f2e12d9877e98775e34d7780881175096c.librispeech_asr.LibrispeechASR object at 0x7fc12a633310> self.config = <local> BuilderConfig(name='default', version=0.0.0, data_dir='/home/az/i6/setups/2022-03-20--sis/work/i6_core/datasets/huggingface/DownloadAndPrepareHuggingFaceDatasetJob.TV6Nwm6dFReF/output/data_dir', data_files=None, description=None) self.config.name = <local> 'default', len = 7 KeyError: 'default' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.1.0 - Platform: Linux-5.4.0-107-generic-x86_64-with-glibc2.31 - Python version: 3.9.9 - PyArrow version: 6.0.1 - Pandas version: 1.4.2 > load_dataset("librispeech_asr", "clean", "train.100") actually downloads the whole dataset and not the 100 hr split, is this a bug? Since this bug is still there and google led me here when I was searching for a solution, I am writing down how to quickly fix it (as suggested by @mariosasko) for whoever else is not familiar with how the HF Hub works. Download the [librispeech_asr.py](https://huggingface.co/datasets/librispeech_asr/blob/main/librispeech_asr.py) script and remove the unwanted splits both from the [`_DL_URLS` dictionary](https://huggingface.co/datasets/librispeech_asr/blob/main/librispeech_asr.py#L47-L68) and from the [`_split_generators` function](https://huggingface.co/datasets/librispeech_asr/blob/main/librispeech_asr.py#L121-L241). [Here ](https://huggingface.co/datasets/andreagasparini/librispeech_test_only) I made an example with only the test sets. Then either save the script locally and load the dataset via ```python load_dataset("${local_path}/librispeech_asr.py") ``` or [create a new dataset repo on the hub](https://huggingface.co/new-dataset) named "librispeech_asr" and upload the script there, then you can just run ```python load_dataset("${hugging_face_username}/librispeech_asr") ```
[ -0.2864779829978943, -0.4839605987071991, 0.06809908151626587, 0.6340241432189941, 0.15258166193962097, 0.23556256294250488, 0.1461004912853241, 0.23709970712661743, 0.21236111223697662, -0.05331432819366455, -0.13003890216350555, 0.09482104331254959, -0.3211013078689575, 0.24119038879871368, 0.058502811938524246, -0.05129759758710861, -0.11850065737962723, 0.23195748031139374, -0.17473992705345154, -0.12028151750564575, -0.23817574977874756, 0.3758115768432617, -0.2446475327014923, -0.0021680891513824463, -0.1384706199169159, 0.18624962866306305, -0.009389782324433327, 0.3627569377422333, -0.12918595969676971, -0.19263967871665955, 0.44507232308387756, -0.32618603110313416, 0.4011131525039673, 0.3390728831291199, -0.00011467988952063024, 0.03299646079540253, 0.1974485069513321, -0.20524999499320984, -0.27862852811813354, -0.2898064851760864, -0.36609387397766113, 0.07280825078487396, 0.22443357110023499, 0.06167495995759964, -0.14160796999931335, 0.09590695798397064, -0.09597210586071014, -0.36921241879463196, 0.3581375777721405, 0.33089205622673035, 0.2421029657125473, 0.26758524775505066, -0.1595790684223175, -0.1363958716392517, 0.22565099596977234, 0.02440176159143448, -0.20522740483283997, 0.05328153073787689, -0.023129574954509735, 0.13626252114772797, -0.1791895031929016, 0.07028792798519135, 0.061972476541996, 0.14736045897006989, 0.2199430763721466, 0.0459807924926281, -0.3919776976108551, -0.3175208568572998, 0.2746732234954834, 0.336995929479599, 0.2833818793296814, -0.05111195892095566, -0.1968613713979721, -0.09765540063381195, -0.1813509464263916, -0.2642344832420349, 0.22283026576042175, 0.4577167332172394, -0.14319874346256256, 0.3312959671020508, -0.03952169418334961, -0.22519628703594208, -0.028797399252653122, 0.17779280245304108, -0.2345649003982544, 0.2480500191450119, -0.3421911895275116, 0.11911771446466446, 0.27138054370880127, 0.29801350831985474, 0.04752141982316971, 0.037446945905685425, -0.107628732919693, 0.10535255074501038, -0.40987512469291687, 0.12016165256500244, -0.023075483739376068, 0.3578154444694519, 0.3183114528656006, 0.2543184161186218, 0.3351864218711853, -0.05679125338792801, -0.10302172601222992, 0.041885390877723694, 0.17148809134960175, 0.1504790484905243, 0.3353460431098938, 0.24449749290943146, 0.12733009457588196, 0.29697713255882263, 0.07332824170589447, -0.02872321754693985, -0.14538617432117462, 0.02652851864695549, -0.3238973915576935, -0.25162839889526367, 0.09057904034852982, -0.4356733560562134, -0.4299795925617218, 0.14284773170948029, -0.28519609570503235, -0.25646620988845825, 0.231199711561203, 0.4139815866947174, -0.289787232875824, 0.08070677518844604, 0.08651642501354218, 0.09739763289690018, -0.09418252110481262, -0.05441506206989288, -0.3120335340499878, 0.05321911722421646, -0.4024542272090912, 0.08642241358757019, 0.23352839052677155, -0.6066649556159973, 0.503790557384491, 0.08980148285627365, -0.22035382688045502, -0.1728704422712326, -0.10837382823228836, -0.019338613376021385, 0.08642848581075668, 0.24565263092517853, 0.013394780457019806, 0.1891666203737259, 0.1134425550699234, 0.13837191462516785, -0.1508447229862213, -0.0395277738571167, -0.018018588423728943, -0.33204352855682373, -0.06371702998876572, 0.1756085455417633, -0.3146347999572754, 0.06158510223031044, -0.08990011364221573, 0.16760994493961334, 0.06221482530236244, -0.005513858050107956, 0.03183399885892868, -0.08532443642616272, -0.2076772004365921, -0.19023652374744415, 0.5690099596977234, 0.3730202913284302, -0.13668940961360931, -0.16861507296562195, -0.04068450629711151, -0.32168635725975037, 0.385733038187027, 0.07628243416547775, -0.1504858434200287, -0.0010952800512313843, -0.34052255749702454, 0.009965986013412476, 0.28325948119163513, -0.014816366136074066, -0.48522835969924927, 0.27862998843193054, -0.0556643009185791, 0.22388093173503876, 0.15176454186439514, -0.09784062951803207, 0.1624521017074585, 0.04910407215356827, -0.0757375955581665, 0.5340372920036316, -0.07313336431980133, -0.18590573966503143, -0.4255147874355316, -0.350122332572937, -0.028313905000686646, 0.2779068946838379, 0.03951110690832138, 0.0713546946644783, 0.06865933537483215, 0.3833119869232178, 0.4047588109970093, 0.019324511289596558, 0.13651986420154572, 0.049299195408821106, -0.1654880940914154, 0.18805088102817535, -0.057599760591983795, -0.11973360180854797, -0.630585253238678, 0.18518295884132385, 0.11237400770187378, 0.036836571991443634, 0.06969693303108215, -0.02980029210448265, -0.3020535111427307, -0.2867826819419861, -0.39262837171554565, -0.6270394921302795, -0.03132850304245949, 0.3522004187107086, 0.18136125802993774, -0.12998881936073303, -0.3942681849002838, 0.40970125794410706, -0.06668651103973389, 0.3003084361553192, -0.35434940457344055, 0.314995139837265, -0.012172674760222435, -0.04589100554585457, 0.03361234813928604, 0.22075068950653076, -0.05111008882522583, -0.3450973629951477, -0.10652967542409897, 0.4643595218658447, -0.047154489904642105, -0.20431877672672272, -0.09676184505224228, -0.2002747803926468, 0.18867789208889008, -0.3146890103816986, 0.030930818989872932, 0.026733415201306343, -0.06754807382822037, -0.042965732514858246, -0.2815946638584137, 0.040490999817848206, -0.07441169023513794, 0.24298319220542908, 0.1321256458759308, 0.2587028443813324, 0.04295068234205246, -0.2466963529586792, -0.16870510578155518, -0.30014973878860474, 0.3115948438644409, -0.4033464789390564, 0.3609391748905182, 0.13414835929870605, -0.5161653757095337, -0.2940067946910858, 0.38049864768981934, 0.038051459938287735, -0.07316473871469498, 0.19331419467926025, -0.2947477698326111, 0.10058199614286423, 0.12287844717502594, 0.19452135264873505, 0.33566927909851074, 0.1269969940185547, 0.13288207352161407, -0.04740780591964722, -0.06651518493890762, -0.17646795511245728, 0.11675585806369781, -0.04644045978784561, 0.10448415577411652, 0.17688380181789398, -0.15355829894542694, -0.0009026126936078072, -0.42797738313674927, -0.12387716770172119, 0.0457642525434494, 0.31321433186531067, -0.2257511168718338, -0.08348674327135086, -0.23231904208660126, -0.025745488703250885, -0.3625425398349762, -0.21858303248882294, -0.17672404646873474, -0.13440538942813873, -0.24043335020542145, 0.023120827972888947, 0.06582789123058319, 0.2553323209285736, -0.20933093130588531, 0.04551568627357483, -0.2299625724554062, -0.08611363917589188, -0.0676850974559784, 0.1722489893436432, -0.490547239780426, 0.06195699796080589, 0.30330032110214233, -0.022727305069565773, 0.28650277853012085, -0.23481936752796173, -0.21461360156536102, -0.1950170248746872, -0.12984542548656464, 0.30567100644111633, -0.1167072206735611, 0.18267890810966492, 0.36291274428367615, 0.13712820410728455, -0.09583349525928497, -0.31026020646095276, 0.4518944323062897, -0.17247171700000763, -0.03257427737116814, 0.15899482369422913, 0.2692781388759613, 0.33573222160339355, -0.1583154946565628, -0.5478571057319641, -0.12258941680192947, -0.4533904492855072, 0.13285326957702637, -0.00014943629503250122, 0.10310845077037811, -0.0180252343416214, 0.0207393616437912, 0.08043189346790314, -0.23050642013549805, -0.03418603539466858, -0.198406383395195, -0.16290584206581116, 0.18815495073795319, -0.21122436225414276, -0.2533051073551178, -0.12149488925933838, 0.02482197806239128, 0.28587135672569275, 0.27203911542892456, -0.552484393119812, 0.19946414232254028, -0.20491757988929749, 0.06155753508210182, -0.22030109167099, 0.20754508674144745, 0.17685778439044952, 0.01082992646843195, 0.10454697906970978, -0.19764873385429382, -0.1342061460018158, 0.09783264249563217, -0.3393349051475525, 0.4048064053058624, 0.026120314374566078, 0.3284212350845337, 0.17989937961101532, 0.508293867111206, 0.34390029311180115, -0.15058685839176178, 0.20794841647148132, -0.07677746564149857, 0.12708868086338043, -0.13876873254776, -0.46147406101226807, 0.21459023654460907, -0.05419175326824188, 0.08598726987838745, 0.38388150930404663, 0.17704099416732788, 0.08672639727592468, -0.2817545533180237, 0.21102046966552734, -0.20392534136772156, -0.25026240944862366, 0.0856243297457695, -0.06549328565597534, 0.2703853249549866, -0.046658553183078766, 0.34277722239494324, 0.4439866244792938, -0.11374284327030182, 0.15404389798641205, 0.26072490215301514, 0.10558044910430908, 0.1045864075422287, -0.21477393805980682, 0.2323487401008606, -0.5890897512435913, 0.25247812271118164, -0.20333321392536163, 0.2313736230134964, 0.1067977100610733, -0.23437362909317017, 0.14684894680976868, 0.17480605840682983, 0.5568485260009766, -0.10380947589874268, 0.03125954791903496, -0.02693989872932434, 0.03639107942581177, -0.38863593339920044, 0.06029513105750084, -0.12354503571987152, 0.3572956323623657, 0.26045575737953186, 0.12888389825820923, -0.4553012549877167, -0.3058999478816986, 0.4625312387943268, 0.362463116645813, -0.0781303197145462, -0.10101615637540817, -0.2698165774345398, -0.3832365572452545, -0.07136975228786469, 0.009488672018051147, -0.1053614616394043, 0.2986243963241577, 0.032691940665245056, -0.02906515821814537, -0.09174662083387375, -0.23172539472579956, 0.3436344265937805, 0.04884343966841698, 0.46203872561454773, -0.024444758892059326, 0.3545615077018738, 0.20908492803573608, 0.152975395321846, 0.1588899940252304, 0.7753599286079407, -0.5309985280036926, -0.32344189286231995, 0.33942899107933044, -0.059377435594797134, 0.3591524064540863, 0.24751928448677063, -0.1589203029870987, -0.10596635192632675, 0.0791805163025856, 0.114909827709198, -0.17431548237800598, 0.2773791551589966, 0.21579401195049286, -0.14690625667572021, -0.3367115259170532, -0.6409854888916016, 0.5244450569152832, 0.2109764814376831, -0.037901777774095535, 0.43874695897102356, 0.05568576231598854, -0.22247934341430664, 0.2947353720664978, -0.08734244853258133, 0.7359082102775574, -0.1430235654115677, 0.13947241008281708, 0.009900782257318497, -0.06529048085212708, 0.4976041615009308, 0.009597212076187134, 0.17633555829524994, -0.3800455927848816, -0.09512872993946075, 0.010097900405526161, -0.1598966121673584, 0.08566710352897644, 0.11846073716878891, -0.21413829922676086, 0.24538740515708923, -0.13600493967533112, 0.15207315981388092, 0.16553442180156708, 0.4593966007232666, -0.27053236961364746, -0.2743239104747772, -0.13315609097480774, 0.05679672956466675, -0.0011413022875785828, 0.5052092671394348, 0.11928973346948624, 0.022622153162956238, -0.019052136689424515, -0.21018165349960327, -0.2829743027687073, 0.12765270471572876, -0.3869451582431793, -0.07229802757501602, -0.12752924859523773, -0.4924769997596741, 0.19438092410564423, 0.2935848534107208, -0.027395136654376984, 0.1404881775379181, -0.08030316978693008, 0.06772568076848984, 0.06552847474813461, 0.02844703197479248, 0.05269123241305351, 0.06770636141300201, 0.18912993371486664, 0.1178574487566948, 0.10711982101202011, 0.16397219896316528, -0.06983072310686111, -0.14009875059127808, 0.13900992274284363, 0.15915198624134064, 0.14995567500591278, -0.6286537647247314, -0.16612295806407928, 0.15146790444850922, 0.19008201360702515, -0.28091612458229065, 0.08612915873527527, 0.24869389832019806, -0.1896345317363739, 0.0260319784283638, 0.009027034044265747, -0.3273124396800995, -0.2984624207019806, 0.1726154237985611, -0.03418973088264465, -0.0999760851264, 0.30359649658203125, 0.21280346810817719, 0.06768454611301422, -0.17727762460708618, -0.015931949019432068, 0.31539660692214966, -0.6423522233963013, 0.0941707119345665, -0.24094165861606598, 0.022035419940948486, 0.1095629408955574, 0.39328038692474365, 0.2531158924102783, 0.015295229852199554, -0.07602245360612869, -0.3590139150619507, -0.06829490512609482, 0.2626481056213379, -0.059302087873220444, 0.27590250968933105, -0.20439258217811584, 0.32084617018699646, 0.004686266183853149, -0.05407536029815674, -0.2642841339111328, 0.16183458268642426, -0.14540337026119232, 0.05195879936218262, 0.1910521388053894, 0.0785941332578659, 0.41215780377388, 0.021690580993890762, 0.1333601325750351, 0.15547960996627808, -0.18341173231601715, -0.1200241819024086, -0.2534930109977722, 0.17414170503616333, 0.07706127315759659, -0.01955539546906948, -0.257418692111969, -0.03138916939496994, -0.07719942927360535, -0.18024183809757233, 0.2131405472755432, 0.16788843274116516, 0.009199094027280807, 0.029804781079292297, 0.1381463259458542, 0.04819626733660698, -0.24649351835250854, 0.026142839342355728, -0.15729722380638123, 0.17871184647083282, 0.2133847177028656, 0.2083948254585266, 0.09179279953241348, 0.00919380784034729, 0.13963279128074646, -0.010337956249713898, 0.03794698044657707, -0.06246822327375412, 0.1630110740661621, -0.1767684370279312, -0.01629488728940487, 0.3522198498249054, 0.3606504201889038, 0.647794246673584, 0.024540843442082405, 0.03398018330335617, 0.04956304281949997, 0.18782801926136017, -0.03215091675519943, 0.09803540259599686, -0.10045574605464935, 0.09194857627153397, 0.05600031092762947, 0.4105978012084961, -0.053152307868003845, -0.013250991702079773, -0.11288931965827942, 0.07490251958370209, 0.27827590703964233, 0.14770594239234924, 0.32985246181488037, 0.511722981929779, -0.18507890403270721, 0.16154718399047852, 0.2609502971172333, -0.2239236831665039, 0.1490020900964737, 0.17104101181030273, -0.1418037712574005, 0.12913262844085693, -0.3158320188522339, 0.29906412959098816, 0.05471578240394592, -0.4963175654411316, -0.018596019595861435, 0.2168692946434021, 0.06634584069252014, 0.05624641478061676, -0.37703874707221985, 0.7253004908561707, -0.4944148063659668, -0.03633127734065056, -0.12242955714464188, 0.06709536164999008, -0.15996146202087402, -0.10320605337619781, 0.048866309225559235, -0.31580087542533875, -0.24050259590148926, 0.15460777282714844, -0.14009371399879456, -0.16643781960010529, 0.3451709747314453, -0.010983280837535858, -0.2324228435754776, -0.1736876219511032, -0.27477842569351196, 0.2652489244937897, -0.06395002454519272, -0.21202994883060455, 0.4075477719306946, 0.02000930905342102, -0.07373403012752533, 0.0842471495270729, 0.2317492514848709, 0.07048620283603668, 0.13537265360355377, 0.12805023789405823, -0.1436004638671875, -0.007835222408175468, 0.11662515997886658, -0.20233096182346344, 0.3975360691547394, 0.18915700912475586, 0.08824238181114197, 0.40732190012931824, 0.10426978021860123, -0.19811825454235077, -0.0012607760727405548, -0.15648479759693146, 0.127236470580101, -0.40125465393066406, 0.3482399880886078, -0.08759716153144836, -0.052476659417152405, 0.03568281605839729, -0.032832928001880646, -0.3564704656600952, 0.0889318436384201, 0.0010806526988744736, -0.03702303022146225, -0.04476596787571907, -0.14718760550022125, 0.053282879292964935, 0.2223324328660965, 0.2792680263519287, 0.29855069518089294, 0.19869586825370789, -0.38082122802734375, -0.5446333885192871, -0.677058219909668, 0.133483424782753, -0.06900021433830261, -0.18249233067035675, -0.05050985515117645, 0.2689978778362274, 0.06305651366710663, 0.2376859486103058, 0.026030316948890686, 0.1445348560810089, 0.17663247883319855, 0.09072147309780121, 0.07402375340461731, -0.1434728056192398, -0.00020620226860046387, 0.09709318727254868, -0.024245403707027435, -0.37492895126342773, 0.06441766768693924, -0.16492532193660736, -0.05268159881234169, -0.23581333458423615, -0.17802566289901733, 0.21204827725887299, -0.21464863419532776, 0.2914561927318573, 0.19772997498512268, 0.2918567657470703, -0.008964810520410538, -0.27924010157585144, -0.3359558582305908, -0.2533471882343292, -0.19101053476333618, 0.12185822427272797, 0.024880610406398773, 0.489628404378891, -0.17170411348342896, -0.2483382672071457, -0.5496248006820679, 0.33220940828323364, 0.3946076035499573, 0.1816074550151825, -0.210671067237854, 0.07247662544250488, -0.06930150836706161, -0.08523264527320862, 0.5066686868667603, 0.7129358649253845, -0.2175033986568451, -0.13990305364131927, -0.23830516636371613, -0.44740137457847595, 0.36516982316970825, -0.21786664426326752, -0.026425104588270187, 0.03688127547502518, 0.2639952003955841, 0.36389800906181335, -0.20475059747695923, -0.7203478813171387, -0.20531858503818512, 0.30490627884864807, 0.005009979009628296, -0.23384882509708405, 0.07284225523471832, 0.01746734231710434, -0.05520135164260864, -0.048360344022512436, 0.21599586308002472, 0.249884694814682, -0.6144576072692871, 0.42305639386177063, -0.2094125598669052 ]
https://github.com/huggingface/datasets/issues/4169
Timit_asr dataset cannot be previewed recently
Thanks for reporting. The bug has already been detected, and we hope to fix it soon.
## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No
16
Timit_asr dataset cannot be previewed recently ## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No Thanks for reporting. The bug has already been detected, and we hope to fix it soon.
[ -0.4550260901451111, -0.36819303035736084, -0.06202225387096405, 0.17472749948501587, 0.039184726774692535, 0.04929514229297638, 0.18239589035511017, 0.2734488844871521, -0.37225788831710815, 0.20602166652679443, -0.3304498493671417, 0.18516071140766144, -0.17799262702465057, 0.16334478557109833, 0.08469200134277344, -0.1212460994720459, 0.11034069210290909, 0.00235043466091156, -0.43380656838417053, 0.10013799369335175, -0.1540517956018448, 0.057852745056152344, -0.014241449534893036, 0.07537608593702316, 0.0956178829073906, 0.0010236892849206924, -0.020579613745212555, -0.21104079484939575, -0.2252255529165268, -0.4096702039241791, 0.2578173279762268, 0.10089261829853058, 0.131604865193367, 0.31438714265823364, -0.0001089139113901183, 0.21893541514873505, 0.3245871067047119, 0.1276589035987854, -0.1899050772190094, -0.04454946517944336, 0.03881774842739105, -0.11358949542045593, 0.08862774074077606, 0.13467738032341003, -0.3892156779766083, -0.16441023349761963, 0.21502313017845154, -0.17897802591323853, 0.1166638508439064, 0.15069226920604706, 0.3068259656429291, 0.5181670188903809, 0.030509483069181442, -0.3369991183280945, 0.30648306012153625, 0.17052118480205536, -0.43672558665275574, -0.057297442108392715, 0.1747959554195404, 0.16690580546855927, 0.06798379123210907, 0.21558253467082977, 0.22034141421318054, -0.036112185567617416, 0.18132422864437103, -0.03606796637177467, -0.04116055369377136, -0.3475615978240967, -0.10192728787660599, 0.10148447006940842, 0.7567371129989624, 0.00662430003285408, -0.24669325351715088, 0.12274906784296036, -0.08092498779296875, -0.029564304277300835, 0.12425211071968079, -0.0377027690410614, 0.06920899450778961, 0.254258930683136, -0.1939338892698288, -0.02816464751958847, -0.1810973882675171, 0.4019297957420349, 0.2342950403690338, -0.044695332646369934, -0.22576288878917694, 0.11310702562332153, -0.09888897836208344, -0.009147349745035172, -0.026255235075950623, 0.167683407664299, -0.21792423725128174, 0.2785758078098297, 0.08543958514928818, -0.11420348286628723, 0.13254623115062714, 0.03235435113310814, 0.1972997486591339, 0.3028908967971802, 0.2222728282213211, 0.016696296632289886, -0.3522554934024811, -0.06611573696136475, 0.03507671877741814, 0.025935418903827667, 0.17499090731143951, -0.012586727738380432, 0.4858649969100952, 0.1548476219177246, 0.37042036652565, -0.04322393238544464, 0.01932966709136963, 0.04049856588244438, -0.24443885684013367, -0.41641587018966675, 0.3738073706626892, -0.3186887502670288, -0.45569804310798645, -0.09771722555160522, -0.028717726469039917, -0.0499456562101841, -0.13879190385341644, 0.23054403066635132, -0.07086848467588425, -0.15704938769340515, 0.004245966672897339, 0.245369553565979, -0.06434177607297897, -0.12505000829696655, -0.23574501276016235, -0.0393400713801384, 0.06625944375991821, -0.05075749009847641, 0.17602625489234924, -0.432325154542923, 0.048577263951301575, 0.07122670114040375, -0.01513102650642395, 0.06638218462467194, -0.2447630614042282, 0.1094607561826706, -0.2875944674015045, 0.3189534544944763, -0.17049109935760498, 0.3896026313304901, -0.09801486134529114, 0.008777081966400146, 0.013231538236141205, 0.12450771033763885, -0.08926073461771011, -0.10578277707099915, -0.2574526071548462, 0.21263670921325684, -0.3724207282066345, -0.003980107605457306, -0.16184958815574646, 0.19414272904396057, -0.00023879855871200562, -0.053308382630348206, -0.08649598807096481, 0.305142879486084, -0.44235798716545105, -0.1322992444038391, 0.046876102685928345, 0.2895672917366028, -0.40301451086997986, -0.28107917308807373, -0.30320844054222107, -0.4932410418987274, 0.0826798677444458, 0.19499026238918304, -0.12883546948432922, 0.060065023601055145, -0.26237326860427856, -0.18322259187698364, 0.23583745956420898, -0.027000881731510162, -0.4946194589138031, 0.06552911549806595, -0.3072313070297241, 0.017490403726696968, 0.11944302916526794, 0.16842752695083618, 0.20637062191963196, -0.16209158301353455, -0.23825010657310486, -0.054563507437705994, 0.29060783982276917, -0.1056859940290451, -0.3100874125957489, -0.18165886402130127, 0.25489234924316406, 0.29893210530281067, 0.17511574923992157, 0.15820613503456116, 0.2904326915740967, 0.057350680232048035, 0.2798701822757721, 0.2818366289138794, 0.16611163318157196, 0.18678469955921173, 0.2304236888885498, -0.05784754455089569, 0.09748814254999161, -0.3001326322555542, -0.08634022623300552, 0.012149903923273087, 0.1065056324005127, 0.16309502720832825, 0.2925877571105957, -0.053746964782476425, -0.437529057264328, 0.014868168160319328, -0.14070802927017212, -0.27577340602874756, 0.12764674425125122, 0.32296353578567505, -0.07099011540412903, 0.2897248864173889, 0.023939672857522964, 0.2967345416545868, -0.09439817816019058, -0.10677051544189453, -0.10897102952003479, 0.11312918365001678, -0.016367467120289803, 0.04964641109108925, 0.2036590874195099, -0.006090424954891205, 0.13766157627105713, -0.25246137380599976, -0.07815323770046234, 0.27286648750305176, -0.138801708817482, 0.09676725417375565, 0.03536281734704971, -0.12613187730312347, 0.1440073400735855, -0.49984467029571533, 0.022138889878988266, 0.16753925383090973, -0.048598513007164, 0.010869994759559631, -0.15501296520233154, 0.23338526487350464, 0.00425439327955246, -0.050220049917697906, -0.08632315695285797, 0.2588596045970917, 0.255228191614151, 0.029793541878461838, -0.00026465393602848053, -0.20227058231830597, 0.5367342829704285, -0.21094951033592224, 0.05991541966795921, -0.20604506134986877, -0.31615138053894043, 0.3181208670139313, -0.08012227714061737, 0.03360797092318535, -0.1623496115207672, 0.4991077780723572, -0.15835344791412354, 0.2851920425891876, -0.07636382430791855, -0.1432216763496399, 0.1333501785993576, 0.19659078121185303, -0.11415944993495941, -0.11489894241094589, 0.06347835808992386, -0.09767061471939087, 0.11790218949317932, 0.1836162805557251, -0.16808457672595978, 0.01583198457956314, 0.338933527469635, -0.07595609128475189, -0.3929285407066345, 0.2108355313539505, 0.10370844602584839, 0.2832469344139099, -0.33491089940071106, 0.012839136645197868, -0.03697381541132927, -0.3653852939605713, 0.13640804588794708, -0.11651363223791122, -0.16729015111923218, -0.30238574743270874, 0.23553603887557983, 0.260714590549469, 0.10471157729625702, 0.34002217650413513, -0.10505317151546478, 0.37207356095314026, -0.0022411514073610306, 0.42273852229118347, -0.19173315167427063, 0.4031893014907837, -0.06067075580358505, 0.24801546335220337, 0.15284959971904755, -0.21249240636825562, 0.4807227849960327, -0.13292615115642548, 0.36343610286712646, -0.5030326843261719, -0.355378121137619, 0.03247024863958359, -0.14057202637195587, 0.7062949538230896, -0.04242005944252014, 0.14412716031074524, -0.012992998585104942, -0.07730437070131302, 0.09130648523569107, -0.1588020622730255, -0.4064098000526428, -0.047503143548965454, -0.2189505249261856, -0.07385993748903275, -0.14417487382888794, -0.21451976895332336, -0.3153384029865265, -0.30051231384277344, 0.3844369649887085, 0.22045116126537323, 0.08113213628530502, 0.11626105010509491, -0.16804897785186768, -0.047190070152282715, -0.07473886013031006, -0.03169015049934387, -0.34308305382728577, -0.34753596782684326, 0.4385596513748169, -0.4707172214984894, -0.5732048153877258, 0.07227008044719696, 0.2233746349811554, -0.03202759101986885, -0.2185901552438736, -0.5044666528701782, 0.16111065447330475, -0.25704291462898254, 0.1585426926612854, -0.007391832768917084, -0.3173673450946808, 0.23988595604896545, -0.2363307774066925, -0.12637853622436523, -0.147334486246109, -0.024395732209086418, 0.01659908890724182, -0.29513341188430786, 0.3056362569332123, -0.10231675952672958, 0.402420312166214, -0.055867940187454224, 0.5778729915618896, 0.2730042338371277, -0.03835143521428108, 0.3353111147880554, -0.2778189480304718, 0.49503135681152344, -0.08885445445775986, -0.419921338558197, -0.06649629771709442, 0.005258142948150635, 0.1960880309343338, 0.18275171518325806, 0.08456218987703323, -0.23180560767650604, -0.16012662649154663, -0.12644006311893463, 0.052889034152030945, -0.04216189682483673, -0.1397239714860916, -0.10690923035144806, 0.23309367895126343, 0.15818338096141815, 0.11102739721536636, 0.05166751518845558, -0.6337602138519287, 0.023973781615495682, 0.48982566595077515, 0.10148607939481735, -0.008116918615996838, -0.2803023159503937, 0.1742398738861084, -0.5153297781944275, 0.27412259578704834, 0.040434159338474274, 0.43874219059944153, -0.30105695128440857, -0.20421966910362244, 0.28289949893951416, 0.2386535257101059, 0.5800696015357971, -0.21438297629356384, 0.05634878948330879, 0.28225064277648926, 0.07602079957723618, -0.3611019551753998, -0.06639596074819565, -0.22395393252372742, 0.3864254355430603, 0.053320370614528656, 0.5625381469726562, 0.12538492679595947, -0.09516816586256027, 0.4417337477207184, -0.14613685011863708, -0.2665165066719055, -0.1637386828660965, -0.3022524416446686, -0.1806386113166809, 0.038220033049583435, -0.03541915863752365, -0.04607352241873741, 0.050057996064424515, -0.2613503038883209, 0.03006216511130333, -0.2763682007789612, 0.03599216789007187, 0.16062939167022705, -0.03322509676218033, 0.30005985498428345, 0.18429304659366608, 0.7465463280677795, 0.44751638174057007, -0.00810086727142334, 0.1248626783490181, 0.33789777755737305, 0.02109510824084282, -0.28278848528862, 0.23294603824615479, -0.15057681500911713, 0.28078925609588623, 0.3654623031616211, -0.2619766294956207, 0.3550148904323578, -0.07867688685655594, 0.24410633742809296, -0.3216001093387604, 0.2995123267173767, 0.21587581932544708, -0.26887935400009155, -0.43279218673706055, -0.23491938412189484, 0.4219713807106018, -0.03340613842010498, -0.12636502087116241, 0.3495393693447113, 0.028623010963201523, -0.021325990557670593, -0.005792233627289534, -0.09426941722631454, 0.9036145806312561, -0.11915220320224762, -0.011592075228691101, 0.1096215769648552, 0.021459251642227173, 0.17715759575366974, -0.19606786966323853, 0.05497821420431137, -0.26602903008461, -0.3767184019088745, -0.09628963470458984, -0.14572535455226898, 0.1393970549106598, -0.1881687492132187, -0.02989839017391205, -0.15974634885787964, 0.09386265277862549, 0.343650758266449, -0.005901794880628586, 0.1172226220369339, 0.08242831379175186, -0.037352800369262695, 0.12146156281232834, 0.23277831077575684, -0.14182661473751068, 0.3898265063762665, 0.10659026354551315, -0.010356543585658073, -0.1024661436676979, -0.1813274770975113, -0.5141810178756714, -0.03663257509469986, 0.03470519930124283, 0.05172411724925041, 0.05683416128158569, -0.5157635807991028, 0.45377686619758606, 0.017032794654369354, 0.0849439948797226, 0.14903347194194794, -0.23218968510627747, 0.1576344072818756, -0.1998632252216339, -0.10723032057285309, -0.19605746865272522, 0.16790740191936493, 0.038239751011133194, -0.1573108732700348, -0.10681934654712677, 0.16051986813545227, 0.04095432907342911, -0.10697735846042633, -0.37350964546203613, 0.1113714799284935, -0.07651391625404358, -0.4211956858634949, 0.19699591398239136, -0.20748743414878845, 0.11144888401031494, -0.4033263027667999, 0.1776067167520523, 0.19298502802848816, -0.02079509012401104, -0.10327348858118057, 0.2282317578792572, -0.25014832615852356, -0.09391391277313232, 0.7179891467094421, 0.046710629016160965, -0.011019771918654442, 0.4517028033733368, 0.13859784603118896, -0.2875506281852722, -0.20796853303909302, 0.30825328826904297, 0.07013816386461258, -0.5159491300582886, 0.03164087235927582, -0.06461623311042786, 0.4541904926300049, 0.019169818609952927, 0.4929465651512146, 0.0708562433719635, -0.3342123031616211, -0.21568304300308228, -0.443009614944458, -0.21248918771743774, 0.20175184309482574, -0.1467365175485611, 0.2023155838251114, -0.17722564935684204, 0.1654120832681656, 0.12172852456569672, 0.03440716862678528, -0.3525817394256592, 0.019519217312335968, 0.03456241637468338, 0.003982247784733772, 0.16455337405204773, 0.056628499180078506, 0.30559733510017395, -0.061564069241285324, 0.08132398128509521, 0.210577592253685, -0.3221606910228729, -0.21736788749694824, -0.17915299534797668, 0.12820814549922943, -0.10051605850458145, -0.31244105100631714, -0.01601138897240162, 0.061638832092285156, -0.05816974118351936, 0.25647661089897156, 0.02107546478509903, -0.10007089376449585, 0.061283763498067856, -0.19244222342967987, 0.0431857630610466, -0.29388779401779175, 0.26572513580322266, 0.05347227305173874, 0.12215718626976013, 0.4430927634239197, 0.08225231617689133, 0.13206875324249268, -0.16018912196159363, -0.11122103780508041, 0.07281805574893951, -0.0062126219272613525, 0.15666820108890533, 0.011567691341042519, 0.020318225026130676, -0.3671433925628662, 0.1218135803937912, 0.18670879304409027, 0.2478095293045044, 0.2378360778093338, -0.2503196597099304, 0.0799294263124466, 0.21486076712608337, 0.14657074213027954, -0.268445760011673, -0.15513375401496887, -0.02217152714729309, 0.15176372230052948, -0.09847253561019897, 0.10205298662185669, 0.22403889894485474, 0.14678138494491577, 0.2758324146270752, 0.18525511026382446, 0.29417818784713745, -0.116933673620224, 0.13103409111499786, 0.38564667105674744, -0.12524636089801788, 0.03711072728037834, 0.32417383790016174, 0.16634757816791534, -0.10708547383546829, 0.7215311527252197, 0.11718342453241348, 0.18288996815681458, -0.16980692744255066, 0.17514052987098694, 0.193778395652771, -0.42968088388442993, -0.050497088581323624, -0.011665061116218567, -0.08435356616973877, 0.10677564144134521, 0.16703003644943237, 0.6774289608001709, 0.0165555402636528, 0.07465853542089462, -0.5262162685394287, 0.1387372761964798, -0.10074680298566818, -0.02653231844305992, -0.10076234489679337, -0.3902895748615265, -0.22099454700946808, 0.11059172451496124, -0.09836578369140625, -0.07838806509971619, 0.34800970554351807, 0.06475039571523666, -0.12650111317634583, -0.29350629448890686, -0.03405207395553589, 0.17826595902442932, 0.18926796317100525, -0.21161648631095886, 0.1888768970966339, 0.08631084114313126, 0.1754109412431717, 0.04688597843050957, 0.277823805809021, 0.3026514947414398, -0.1349198967218399, 0.12544596195220947, 0.1805659830570221, -0.21254543960094452, -0.23123101890087128, 0.10986897349357605, 0.5577795505523682, 0.25570371747016907, -0.21878491342067719, 0.18046115338802338, 0.0934552550315857, -0.17585621774196625, 0.3297443985939026, 0.21414466202259064, 0.3858867883682251, -0.33998966217041016, 0.050666313618421555, -0.6282080411911011, -0.07414963096380234, -0.23117706179618835, -0.405023455619812, 0.02870546281337738, 0.31961512565612793, 0.31149691343307495, 0.018448790535330772, 0.06887207180261612, -0.3888684809207916, 0.10851553082466125, 0.00043120793998241425, 0.4634878635406494, 0.15412145853042603, 0.14447230100631714, -0.14745473861694336, -0.6278426647186279, -0.5726701617240906, 0.06861536204814911, -0.11033941805362701, 0.2264590859413147, -0.01263224147260189, 0.03624612092971802, 0.051900822669267654, 0.2559417486190796, 0.5198646187782288, 0.02346407063305378, -0.12552723288536072, 0.24040420353412628, -0.1969919353723526, -0.036875758320093155, 0.12654347717761993, 0.19023747742176056, -0.018730994313955307, -0.16568800806999207, 0.17455525696277618, -0.25429826974868774, 0.046523548662662506, -0.25417643785476685, -0.05587286502122879, -0.09256002306938171, 0.13375452160835266, 0.32194244861602783, 0.02739107795059681, 0.20631438493728638, 0.011543549597263336, -0.1663672924041748, -0.42583274841308594, -0.6691666841506958, -0.10332020372152328, 0.28439801931381226, 0.03951717168092728, 0.35739248991012573, -0.11059737950563431, -0.38689202070236206, -0.0788574293255806, 0.05044126883149147, 0.02402500808238983, 0.21268409490585327, -0.3393748104572296, 0.011346336454153061, -0.3256094753742218, -0.07314193993806839, 0.2244986742734909, 0.14154869318008423, 0.1309644877910614, -0.03011571615934372, -0.33248171210289, -0.5092864036560059, 0.38216572999954224, -0.32445400953292847, -0.16904501616954803, 0.09624336659908295, -0.001459270715713501, 0.08456087857484818, -0.4442313015460968, -0.4346553385257721, 0.08420529216527939, 0.4750429391860962, -0.04374123364686966, 0.2842288613319397, 0.3657219707965851, 0.005756593309342861, 0.030235249549150467, -0.0741598904132843, 0.7967597246170044, 0.13989347219467163, -0.06154060363769531, 0.2689974904060364, -0.23489052057266235 ]
https://github.com/huggingface/datasets/issues/4169
Timit_asr dataset cannot be previewed recently
TIMIT is now a dataset that requires manual download, see #4145 Therefore it might take a bit more time to fix it
## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No
22
Timit_asr dataset cannot be previewed recently ## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No TIMIT is now a dataset that requires manual download, see #4145 Therefore it might take a bit more time to fix it
[ -0.4907505214214325, -0.3528871536254883, -0.09211957454681396, 0.11584697663784027, 0.022326689213514328, 0.013112634420394897, 0.16243450343608856, 0.241331085562706, -0.4454856812953949, 0.1590493619441986, -0.29785966873168945, 0.19180752336978912, -0.1897067427635193, 0.21223437786102295, 0.02704278752207756, -0.14521610736846924, 0.05036332830786705, 0.033056288957595825, -0.5349830389022827, 0.14218126237392426, -0.1174202412366867, 0.05666385591030121, 0.014757521450519562, 0.0934261605143547, 0.14665992558002472, -0.02379784546792507, -0.0025233812630176544, -0.2403128445148468, -0.2559134066104889, -0.4056576192378998, 0.1778244823217392, 0.15645210444927216, 0.19634419679641724, 0.2847177982330322, -0.00010747337364591658, 0.2040955275297165, 0.25638270378112793, 0.1256958544254303, -0.21475329995155334, -0.04124079644680023, 0.02827213704586029, -0.07773677259683609, 0.13474026322364807, 0.0907532200217247, -0.3086465001106262, -0.07468755543231964, 0.24082890152931213, -0.17673908174037933, 0.13230165839195251, 0.179322749376297, 0.31984755396842957, 0.4647768437862396, -0.008011601865291595, -0.35973769426345825, 0.28467413783073425, 0.08427085727453232, -0.35513749718666077, -0.027557380497455597, 0.16028451919555664, 0.1939629763364792, 0.08828689157962799, 0.19494172930717468, 0.20319576561450958, 0.01478849072009325, 0.17936933040618896, -0.05773049592971802, 0.0066168904304504395, -0.39786046743392944, -0.11501830071210861, -0.002150595188140869, 0.9146886467933655, -0.06429683417081833, -0.2304326593875885, 0.20658496022224426, -0.07464951276779175, 0.007406329736113548, 0.1594972014427185, -0.09924757480621338, 0.03931506350636482, 0.23271356523036957, -0.1661621332168579, -0.058715566992759705, -0.17319880425930023, 0.37378406524658203, 0.17218650877475739, -0.09914781153202057, -0.21319758892059326, 0.09540817141532898, -0.11441799998283386, -0.05266162008047104, 0.018493816256523132, 0.15888936817646027, -0.22341912984848022, 0.2758505344390869, 0.15826515853405, -0.06817439943552017, 0.11659969389438629, -0.019916169345378876, 0.09411968290805817, 0.36202317476272583, 0.27347493171691895, 0.037139441817998886, -0.32227346301078796, -0.07634557038545609, 0.03915518894791603, 0.026322312653064728, 0.11163562536239624, -0.03154420480132103, 0.45452481508255005, 0.14196516573429108, 0.3376835286617279, -0.06047212332487106, -0.07659208029508591, -0.0424794927239418, -0.23888306319713593, -0.3465624451637268, 0.3518022298812866, -0.30199214816093445, -0.5410757660865784, -0.09381010383367538, -0.04665105417370796, -0.04614443704485893, -0.12859968841075897, 0.1780642569065094, -0.10504768043756485, -0.10703165084123611, 0.04537530988454819, 0.21339069306850433, -0.07228251546621323, -0.135151207447052, -0.19302408397197723, -0.09769517183303833, 0.09016409516334534, -0.08356940001249313, 0.2255399078130722, -0.4286987781524658, 0.02048896998167038, 0.05140095204114914, -0.05569888651371002, 0.13264603912830353, -0.17827622592449188, 0.05037866160273552, -0.2946653664112091, 0.2844405770301819, -0.07849995791912079, 0.42337918281555176, -0.12409110367298126, -0.02117254212498665, 0.02973095327615738, 0.10097134858369827, -0.08343806117773056, -0.10487659275531769, -0.15493841469287872, 0.2528139054775238, -0.3284749984741211, -0.061592116951942444, -0.0989212766289711, 0.150941401720047, -0.05300479382276535, -0.08512428402900696, -0.14808934926986694, 0.2996426820755005, -0.3470171093940735, -0.17067362368106842, 0.057001516222953796, 0.24147000908851624, -0.5114645957946777, -0.15891006588935852, -0.3029690682888031, -0.5188812017440796, 0.08338634669780731, 0.1490621268749237, -0.10849828273057938, 0.19001704454421997, -0.2104073017835617, -0.16552309691905975, 0.23753775656223297, -0.07908128201961517, -0.4887852966785431, 0.10898435115814209, -0.3202173709869385, -0.004361599683761597, 0.10802040994167328, 0.18381379544734955, 0.190579354763031, -0.1456228345632553, -0.19352710247039795, -0.023620158433914185, 0.28588882088661194, -0.12192623317241669, -0.3000461459159851, -0.17686671018600464, 0.21343135833740234, 0.28963300585746765, 0.25714242458343506, 0.1023598164319992, 0.2578655183315277, 0.13603372871875763, 0.25914815068244934, 0.27586308121681213, 0.15468287467956543, 0.16579648852348328, 0.1885860562324524, -0.08103488385677338, 0.03729261830449104, -0.2713906168937683, -0.008502446115016937, -0.036265816539525986, 0.11822789907455444, 0.1707729697227478, 0.24845212697982788, -0.044938426464796066, -0.43188637495040894, -0.045118480920791626, -0.09396681189537048, -0.18372759222984314, 0.17250490188598633, 0.38331103324890137, -0.1379745900630951, 0.26879778504371643, 0.005451563745737076, 0.3045823574066162, -0.07533939927816391, -0.12773649394512177, -0.056216415017843246, 0.10937941074371338, -0.06286527961492538, 0.03805232793092728, 0.1436617076396942, -0.03991413116455078, 0.05399951711297035, -0.24075300991535187, -0.06973084062337875, 0.3056177794933319, -0.19071204960346222, 0.08249102532863617, 0.07223828136920929, -0.14034076035022736, 0.1038900688290596, -0.49807003140449524, -0.005489645525813103, 0.18190540373325348, -0.055532436817884445, -0.007901661098003387, -0.17364415526390076, 0.15126913785934448, -0.04753955826163292, -0.027343131601810455, -0.06154356896877289, 0.25593921542167664, 0.15025287866592407, 0.018984664231538773, -0.01171129010617733, -0.17701572179794312, 0.5276641845703125, -0.15060503780841827, -0.00043394044041633606, -0.2812616527080536, -0.23170684278011322, 0.26550719141960144, -0.12826626002788544, 0.06526930630207062, -0.11647028475999832, 0.3995649814605713, -0.10497050732374191, 0.316904753446579, -0.12650425732135773, -0.11575628817081451, 0.1911887228488922, 0.22014358639717102, -0.06771236658096313, -0.12200004607439041, 0.017202768474817276, -0.08453905582427979, 0.11433826386928558, 0.18808168172836304, -0.1727314591407776, 0.030291900038719177, 0.18824216723442078, -0.06062132492661476, -0.3407764136791229, 0.11256995797157288, 0.16854818165302277, 0.33885428309440613, -0.32981547713279724, -0.06575535982847214, -0.01168283075094223, -0.34602609276771545, 0.20489370822906494, -0.11649414151906967, -0.11937651038169861, -0.32700785994529724, 0.1616436094045639, 0.23675529658794403, 0.09971438348293304, 0.29725828766822815, -0.12052373588085175, 0.3087581992149353, 0.0035550761967897415, 0.4161713421344757, -0.09200473874807358, 0.36443865299224854, -0.07999987155199051, 0.2842416763305664, 0.20186077058315277, -0.19559252262115479, 0.5340922474861145, -0.2305808812379837, 0.4122092127799988, -0.47419989109039307, -0.2952647805213928, -0.002305198460817337, -0.14372564852237701, 0.6619394421577454, -0.014184437692165375, 0.16298070549964905, -0.08756333589553833, -0.12335438281297684, 0.11787282675504684, -0.08603731542825699, -0.32535865902900696, -0.09893982857465744, -0.20535239577293396, -0.12616968154907227, -0.12836338579654694, -0.24139970541000366, -0.28798264265060425, -0.3187236189842224, 0.3722079396247864, 0.26461151242256165, 0.11998322606086731, 0.16261141002178192, -0.10511026531457901, 0.03395838662981987, 0.029271576553583145, 0.03703256696462631, -0.28696492314338684, -0.3234187662601471, 0.39398232102394104, -0.4130396246910095, -0.5819922089576721, 0.0790325403213501, 0.3099082112312317, 0.04350356012582779, -0.06971680372953415, -0.5258342027664185, 0.21174556016921997, -0.1930551379919052, 0.1999531090259552, -0.04610174894332886, -0.26971864700317383, 0.20622500777244568, -0.1301397681236267, -0.16898103058338165, -0.12325455248355865, 0.057889800518751144, -0.01713459938764572, -0.3142184615135193, 0.33728519082069397, -0.11881565302610397, 0.416226327419281, -0.01231190375983715, 0.5272240042686462, 0.23550155758857727, -0.06435316801071167, 0.2956058382987976, -0.2364155650138855, 0.44832155108451843, -0.021214187145233154, -0.4152604043483734, -0.07687055319547653, -0.018537402153015137, 0.18642312288284302, 0.19855692982673645, 0.08216390758752823, -0.20081013441085815, -0.23179131746292114, -0.08850716054439545, 0.006368465721607208, -0.06790831685066223, -0.12774838507175446, -0.1896810382604599, 0.2870245575904846, 0.17725442349910736, 0.0999276414513588, -0.012156669050455093, -0.6010996103286743, 0.030396148562431335, 0.4948551654815674, 0.05499504134058952, -0.02294117584824562, -0.34035706520080566, 0.09499001502990723, -0.48741912841796875, 0.2683604955673218, 0.06461907178163528, 0.44410446286201477, -0.2990892827510834, -0.19458025693893433, 0.2950719892978668, 0.1864703744649887, 0.5068640112876892, -0.2892611622810364, 0.01718270778656006, 0.2867317199707031, 0.18260794878005981, -0.3742391765117645, -0.06468360126018524, -0.25528448820114136, 0.3819504380226135, 0.05129101127386093, 0.4522097706794739, 0.152948796749115, -0.1421332061290741, 0.39624083042144775, -0.09564477205276489, -0.2644374668598175, -0.09249726682901382, -0.19363848865032196, -0.22718212008476257, 0.05763739347457886, -0.100432388484478, -0.1521076261997223, 0.013660702854394913, -0.24871720373630524, 0.11102670431137085, -0.3005905747413635, 0.0876251608133316, 0.21241632103919983, -0.05464717373251915, 0.30795982480049133, 0.21415916085243225, 0.6978848576545715, 0.4484841227531433, 0.034771569073200226, 0.10400877892971039, 0.31338590383529663, 0.02239266037940979, -0.18648695945739746, 0.2562476694583893, -0.17925521731376648, 0.2676777243614197, 0.3624539077281952, -0.21816636621952057, 0.276712566614151, -0.14449837803840637, 0.2647695541381836, -0.3021707534790039, 0.4010527729988098, 0.2953837513923645, -0.32163530588150024, -0.49571409821510315, -0.21942169964313507, 0.41705766320228577, -0.003149617463350296, -0.1172674298286438, 0.39597180485725403, -0.07533101737499237, -0.07781646400690079, -0.004367240704596043, -0.06370946019887924, 0.864425003528595, -0.11516202986240387, 0.033944271504879, 0.07729506492614746, 0.09242486953735352, 0.10952961444854736, -0.2814563512802124, 0.023625731468200684, -0.19926033914089203, -0.3345543444156647, -0.11692803353071213, -0.10647475719451904, 0.13080060482025146, -0.12099215388298035, -0.14685998857021332, -0.209361732006073, 0.17078061401844025, 0.41865023970603943, 0.07349821925163269, 0.1240309327840805, 0.03951222822070122, -0.014035757631063461, 0.23881708085536957, 0.25427621603012085, -0.12501560151576996, 0.3700104355812073, 0.05372028797864914, -0.012396344915032387, -0.09544394910335541, -0.1468343436717987, -0.4619576930999756, -0.0744652971625328, -0.004268425051122904, 0.1465880274772644, -0.11644084751605988, -0.4494003653526306, 0.39460352063179016, 0.028764529153704643, 0.0867813378572464, 0.1997237205505371, -0.23637932538986206, 0.1407017707824707, -0.18135789036750793, -0.15449407696723938, -0.16825716197490692, 0.2188086360692978, -0.021965669468045235, -0.18125006556510925, -0.11124707758426666, 0.19834771752357483, 0.054643675684928894, -0.06505748629570007, -0.39961397647857666, 0.04735758155584335, -0.01088639348745346, -0.4459979832172394, 0.27380138635635376, -0.12770874798297882, 0.016482148319482803, -0.314075767993927, 0.19865824282169342, 0.1282719522714615, 0.040606539696455, 0.032753538340330124, 0.2413349151611328, -0.2918494939804077, -0.09397895634174347, 0.7297286987304688, 0.002817191183567047, -0.014519702643156052, 0.49825525283813477, 0.0724305808544159, -0.28187352418899536, -0.2407667636871338, 0.3153532147407532, -0.010869698598980904, -0.4546484649181366, -0.062362734228372574, -0.07592891156673431, 0.4678836464881897, 0.05848662927746773, 0.44245824217796326, 0.1359107941389084, -0.38253769278526306, -0.19690318405628204, -0.3906022608280182, -0.23449715971946716, 0.211720272898674, -0.03209777548909187, 0.2409946173429489, -0.22611358761787415, 0.15609309077262878, 0.20845985412597656, -0.060313962399959564, -0.3751846253871918, 0.02482939325273037, 0.057654090225696564, 0.05023576319217682, 0.1484328806400299, 0.04017289727926254, 0.3046305179595947, -0.028236588463187218, 0.12855498492717743, 0.16959749162197113, -0.3172305226325989, -0.24297189712524414, -0.13903452455997467, 0.10791975259780884, -0.09520816057920456, -0.36494046449661255, -0.008363918401300907, -0.001975150778889656, -0.025542814284563065, 0.289212167263031, -0.05732791870832443, -0.08239132910966873, 0.05711944028735161, -0.13891826570034027, 0.09387588500976562, -0.19889196753501892, 0.22680692374706268, 0.09457302838563919, 0.13076773285865784, 0.42924827337265015, 0.03770584613084793, 0.18600323796272278, -0.14330753684043884, -0.09632247686386108, 0.0032995750661939383, 0.017519544810056686, 0.18936890363693237, -0.03612218052148819, 0.016846243292093277, -0.42232459783554077, 0.21196076273918152, 0.15532809495925903, 0.24277031421661377, 0.39166614413261414, -0.22068147361278534, 0.02082163281738758, 0.2063496708869934, 0.1963840276002884, -0.21627187728881836, -0.08055492490530014, -0.1796012669801712, 0.1318085789680481, -0.1276787668466568, 0.02631557732820511, 0.1835326999425888, 0.10829861462116241, 0.32365381717681885, 0.1841496229171753, 0.28487974405288696, -0.07982070744037628, 0.11876159906387329, 0.5239648222923279, -0.08514866232872009, -0.00983017310500145, 0.23367273807525635, 0.11966626346111298, -0.17565467953681946, 0.6696925163269043, 0.0014089196920394897, 0.13974963128566742, -0.2304043173789978, 0.19372065365314484, 0.17238768935203552, -0.4297650456428528, -0.11186762154102325, 0.00037482380867004395, -0.050389841198921204, 0.0783495157957077, 0.21451981365680695, 0.6561745405197144, 0.004699948243796825, 0.06114505976438522, -0.49713727831840515, 0.1187221109867096, -0.06995505839586258, -0.04977768287062645, -0.25956881046295166, -0.39685630798339844, -0.25147169828414917, 0.0987720787525177, -0.13062214851379395, -0.07359787821769714, 0.2863111197948456, 0.11691542714834213, -0.1018742024898529, -0.32462891936302185, -0.07995855808258057, 0.13480350375175476, 0.15635260939598083, -0.22476638853549957, 0.16290509700775146, 0.1317347288131714, 0.20910312235355377, 0.07947338372468948, 0.2775667607784271, 0.3140471577644348, -0.06475333124399185, -0.00299123115837574, 0.24135340750217438, -0.2357548624277115, -0.2015998363494873, 0.06102095544338226, 0.5169788599014282, 0.2554085850715637, -0.2091948390007019, 0.21388405561447144, 0.1341097056865692, -0.187799334526062, 0.3012869954109192, 0.14322002232074738, 0.2654120922088623, -0.25942373275756836, 0.05771335959434509, -0.5034254789352417, -0.0636858195066452, -0.12037566304206848, -0.47561904788017273, -0.04199496656656265, 0.3067057728767395, 0.3522765040397644, 0.02642122283577919, 0.08797245472669601, -0.3786647617816925, 0.1150306761264801, 0.006987580098211765, 0.47200602293014526, 0.22031371295452118, 0.1713455617427826, -0.19710136950016022, -0.6522889733314514, -0.5589725971221924, 0.028107888996601105, -0.109896719455719, 0.16652695834636688, -0.04038947448134422, 0.0224077757447958, 0.02538175880908966, 0.3152983784675598, 0.5377382040023804, 0.04127388820052147, -0.1974954754114151, 0.30678191781044006, -0.23021844029426575, -0.022452425211668015, 0.12986427545547485, 0.2197636067867279, -0.04362086206674576, -0.2045176923274994, 0.1538519263267517, -0.21580538153648376, 0.09374377876520157, -0.3498944044113159, -0.08484236150979996, 0.002966035157442093, 0.1921176165342331, 0.35278967022895813, -0.0544118732213974, 0.24830390512943268, 0.02786252647638321, -0.14800523221492767, -0.4626169800758362, -0.6537512540817261, -0.055133573710918427, 0.29919886589050293, 0.07324884831905365, 0.27418839931488037, -0.13791079819202423, -0.30226829648017883, -0.06853700429201126, 0.00970466248691082, -0.05832336097955704, 0.30606716871261597, -0.2912464141845703, -0.05276275426149368, -0.2265741527080536, -0.032945528626441956, 0.18605782091617584, 0.17467978596687317, 0.15544436872005463, 0.010270621627569199, -0.4648485779762268, -0.507228672504425, 0.3635595738887787, -0.29022017121315, -0.12819531559944153, 0.15800786018371582, -0.02948668599128723, 0.05345088616013527, -0.3410634696483612, -0.4034970700740814, 0.055950142443180084, 0.505831241607666, -0.10596936196088791, 0.22387897968292236, 0.3504636883735657, 0.051588274538517, 0.009565290063619614, -0.0755123496055603, 0.8052225112915039, 0.077159583568573, -0.08484172821044922, 0.14080803096294403, -0.20197147130966187 ]
https://github.com/huggingface/datasets/issues/4169
Timit_asr dataset cannot be previewed recently
> TIMIT is now a dataset that requires manual download, see #4145 > > Therefore it might take a bit more time to fix it Thank you for your quickly response. Exactly, I also found the manual download issue in the morning. But when I used *list_datasets()* to check the available datasets, *'timit_asr'* is still in the list. So I am a little bit confused. If *'timit_asr'* need to be manually downloaded, does that mean we can **not** automatically download it **any more** in the future?
## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No
86
Timit_asr dataset cannot be previewed recently ## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No > TIMIT is now a dataset that requires manual download, see #4145 > > Therefore it might take a bit more time to fix it Thank you for your quickly response. Exactly, I also found the manual download issue in the morning. But when I used *list_datasets()* to check the available datasets, *'timit_asr'* is still in the list. So I am a little bit confused. If *'timit_asr'* need to be manually downloaded, does that mean we can **not** automatically download it **any more** in the future?
[ -0.2399715930223465, -0.37758269906044006, -0.13030317425727844, 0.18907059729099274, 0.011896999552845955, 0.1102466806769371, 0.16031649708747864, 0.057088837027549744, -0.31386101245880127, 0.03445688635110855, -0.19323574006557465, 0.13996608555316925, -0.23434622585773468, 0.0799180418252945, 0.17638380825519562, 0.013078805059194565, 0.11132431030273438, -0.051802992820739746, -0.3212525546550751, -0.034286074340343475, -0.21761442720890045, 0.10725260525941849, -0.015851974487304688, 0.06491874903440475, 0.18884015083312988, -0.050927385687828064, -0.010760486125946045, -0.3011382520198822, -0.255322128534317, -0.43951043486595154, 0.10646864771842957, 0.259384423494339, 0.23681482672691345, 0.12807713449001312, -0.00011682399053825065, 0.1441553384065628, 0.2435869723558426, 0.009385468438267708, -0.4047401249408722, -0.1558205932378769, -0.21669289469718933, -0.09311198443174362, 0.18039503693580627, 0.053907833993434906, -0.06192571669816971, 0.10118897259235382, 0.31196457147598267, -0.21290884912014008, 0.1177966445684433, 0.2258685678243637, 0.21615031361579895, 0.515172004699707, 0.05442953482270241, -0.34401729702949524, 0.375596821308136, 0.19167017936706543, -0.2058100402355194, 0.0399910993874073, -0.008256986737251282, 0.3306940197944641, 0.28276267647743225, 0.1641702800989151, 0.15947113931179047, 0.11412784457206726, 0.2992822229862213, 0.03437007591128349, -0.15696001052856445, -0.6738827228546143, -0.12302391976118088, 0.0843920111656189, 0.9695640206336975, -0.06274890154600143, -0.2685093879699707, 0.01961006224155426, -0.09649408608675003, 0.01674509234726429, 0.08287074416875839, 0.0419783890247345, -0.06440316140651703, 0.16406148672103882, -0.11628067493438721, -0.27053073048591614, -0.1133587509393692, 0.42399293184280396, -0.016131095588207245, 0.04189169779419899, -0.2752269506454468, 0.25986894965171814, -0.0854751467704773, 0.11106296628713608, -0.13714562356472015, -0.024503063410520554, -0.12591509521007538, 0.27507227659225464, 0.17018330097198486, -0.12146547436714172, 0.07868832349777222, 0.03016858920454979, 0.18149733543395996, 0.39345473051071167, 0.36091768741607666, -0.030611451715230942, -0.42713111639022827, -0.10651338845491409, 0.14155012369155884, -0.03215321898460388, 0.08164898306131363, -0.0030117803253233433, 0.4597923755645752, 0.09309715032577515, 0.38515162467956543, -0.08621953427791595, -0.06852801144123077, 0.08161618560552597, -0.05907599255442619, -0.30746498703956604, 0.5078725218772888, -0.2305774837732315, -0.5386066436767578, 0.01179018709808588, -0.1239817887544632, -0.14281050860881805, -0.22129809856414795, 0.15095725655555725, -0.1781296283006668, -0.0468045175075531, -0.015415774658322334, 0.1856001317501068, 0.10929412394762039, -0.07973696291446686, -0.08350478857755661, -0.12845055758953094, 0.10076761245727539, 0.00038210395723581314, 0.09547404944896698, -0.3785625398159027, 0.07924892753362656, -0.006588451564311981, 0.0033544376492500305, 0.08464115858078003, -0.2562674880027771, -0.12126055359840393, -0.18616709113121033, 0.377021849155426, -0.16673265397548676, 0.5522064566612244, -0.1726696491241455, -0.039047129452228546, -0.07038314640522003, 0.26662132143974304, -0.05068116635084152, -0.2080335021018982, 0.024733971804380417, 0.17095884680747986, -0.3062428832054138, -0.10213539004325867, -0.2269982397556305, 0.10372477769851685, 0.02627047896385193, -0.12361101806163788, -0.071222223341465, 0.2026485800743103, -0.20647357404232025, -0.24086779356002808, -0.07311230897903442, 0.3088051676750183, -0.6323819160461426, -0.07022042572498322, -0.2979368269443512, -0.4510328471660614, 0.023719780147075653, 0.18265536427497864, -0.20610958337783813, 0.2782540023326874, -0.27742254734039307, -0.19924452900886536, 0.2656172811985016, -0.024378493428230286, -0.42772603034973145, 0.015637079253792763, -0.21791450679302216, 0.11558812111616135, 0.10782794654369354, 0.29363223910331726, 0.11825661361217499, -0.2186986654996872, -0.24749144911766052, -0.11233872175216675, 0.1870342195034027, -0.377267062664032, -0.3066253960132599, -0.16537097096443176, 0.23383307456970215, 0.1507316678762436, 0.3408754765987396, 0.2225058674812317, 0.19089558720588684, 0.25874653458595276, 0.31340643763542175, 0.3088248670101166, 0.1011943370103836, 0.2171100229024887, 0.20132644474506378, 0.012206166982650757, 0.06856344640254974, -0.21551254391670227, -0.24658894538879395, 0.00044645369052886963, 0.07278592139482498, 0.15480656921863556, 0.04237864911556244, -0.059507325291633606, -0.4242190420627594, -0.0860615000128746, -0.07947838306427002, -0.03150356188416481, 0.0327000766992569, 0.6120994091033936, -0.10318717360496521, 0.20526209473609924, -0.1987859010696411, 0.4546182453632355, -0.2505020499229431, -0.0640605092048645, -0.2461874634027481, 0.09211499989032745, 0.06991472840309143, 0.1637357920408249, -0.009055323898792267, -0.10937068611383438, 0.04871580749750137, -0.2801688313484192, 0.05503667891025543, 0.279936820268631, -0.09913963079452515, -0.06299400329589844, -0.05157816410064697, -0.12475861608982086, 0.11446280777454376, -0.3708854913711548, -0.07451048493385315, 0.322247713804245, 0.11982518434524536, -0.05264688655734062, -0.0799778625369072, 0.15141376852989197, -0.03861583396792412, 0.0511622428894043, -0.03504965454339981, 0.10339392721652985, 0.1494813859462738, 0.11680515110492706, -0.17785431444644928, -0.19548353552818298, 0.34446191787719727, 0.08567202091217041, 0.12055893242359161, -0.1647535264492035, -0.4823189079761505, 0.2119300365447998, 0.008350282907485962, -0.06968435645103455, -0.14458084106445312, 0.4707123339176178, -0.09837395697832108, 0.3781372904777527, -0.18377812206745148, -0.056779637932777405, 0.3405888080596924, 0.18804901838302612, -0.04800790175795555, -0.2174023687839508, 0.10418212413787842, -0.11657639592885971, 0.16645598411560059, 0.4055827260017395, -0.1538776159286499, 0.10010061413049698, 0.08969161659479141, 0.016984887421131134, -0.3971235156059265, 0.09446614980697632, 0.1747083216905594, 0.2899910509586334, -0.34514138102531433, -0.06927676498889923, -0.012028437107801437, -0.3504708409309387, 0.1155676618218422, -0.09102413803339005, -0.2666517198085785, -0.36112433671951294, 0.056530699133872986, 0.214094877243042, 0.11113947629928589, 0.21040025353431702, -0.17327594757080078, 0.345131516456604, -0.2133244127035141, 0.26616376638412476, -0.04159146919846535, 0.3888540267944336, -0.2094673216342926, 0.1732712686061859, 0.17713673412799835, -0.33843350410461426, 0.630975067615509, -0.3092481791973114, 0.3468272089958191, -0.41114553809165955, -0.20414331555366516, 0.12766563892364502, -0.10891677439212799, 0.6119735836982727, -0.008340708911418915, 0.2837725281715393, 0.016817789524793625, -0.12233005464076996, -0.016679171472787857, -0.03203974664211273, -0.2830342650413513, -0.2153405249118805, -0.15504667162895203, -0.04270545765757561, -0.011343203485012054, -0.32523420453071594, -0.42872023582458496, -0.2941318452358246, 0.37617433071136475, 0.3905734419822693, 0.17776262760162354, 0.23481948673725128, -0.3252829611301422, 0.04078560322523117, 0.03516490012407303, 0.13596145808696747, -0.36274242401123047, -0.3029213547706604, 0.4572520852088928, -0.171240895986557, -0.42459365725517273, 0.14952649176120758, 0.10593442618846893, -0.03856672719120979, 0.0014756075106561184, -0.5330908894538879, 0.12444638460874557, -0.16178098320960999, 0.29345205426216125, -0.07475221157073975, -0.22029699385166168, 0.35754162073135376, -0.18915288150310516, -0.07023753225803375, -0.13107125461101532, -0.020114019513130188, 0.0015951767563819885, -0.12330956012010574, 0.4423234760761261, 0.08393701910972595, 0.37438589334487915, -0.06882902979850769, 0.6690326929092407, 0.22165341675281525, 0.03559239208698273, 0.3629830479621887, -0.1521458625793457, 0.5660229921340942, -0.06602682918310165, -0.386614054441452, -0.30165183544158936, -0.10319864749908447, 0.07717587053775787, 0.1844387799501419, 0.024925798177719116, -0.21449331939220428, -0.18819743394851685, 0.07839317619800568, -0.12042897939682007, -0.10631135106086731, -0.02452329732477665, -0.1301621049642563, 0.25045472383499146, 0.2946401834487915, 0.03854820132255554, -0.0029373671859502792, -0.47380805015563965, -0.03656010329723358, 0.5637922286987305, 0.3225397765636444, -0.05765977501869202, -0.320779412984848, 0.11997395753860474, -0.4690244197845459, 0.36117279529571533, 0.049430325627326965, 0.4769762456417084, -0.19979152083396912, -0.17001885175704956, 0.3602712154388428, 0.1634862869977951, 0.432547390460968, -0.32490217685699463, -0.17158834636211395, 0.26483163237571716, 0.26201900839805603, -0.24001261591911316, -0.12796646356582642, -0.2584344744682312, 0.3274301588535309, 0.16672493517398834, 0.28165894746780396, -0.09721263498067856, -0.1199440136551857, 0.33129411935806274, 0.09214559942483902, -0.30549708008766174, -0.11967994272708893, -0.23294267058372498, -0.24524524807929993, -0.0025840308517217636, -0.11199242621660233, -0.07309778034687042, -0.07801156491041183, -0.16523520648479462, 0.2044888436794281, -0.2867613732814789, 0.013570457696914673, 0.2728331685066223, -0.22949007153511047, 0.3428385555744171, 0.4005345106124878, 0.5099681615829468, 0.3900400996208191, 0.08688324689865112, 0.056362465023994446, 0.3949727416038513, 0.020687885582447052, -0.2259739637374878, 0.16769248247146606, -0.10825920850038528, 0.24142727255821228, 0.46057042479515076, -0.17312027513980865, 0.35920092463493347, -0.09592171013355255, 0.17725339531898499, -0.29785478115081787, 0.3063688278198242, 0.33275479078292847, -0.4893588721752167, -0.6220932006835938, -0.49838805198669434, 0.44794195890426636, -0.0784645825624466, -0.2576447129249573, 0.3783334791660309, -0.08999848365783691, -0.1308201402425766, -0.07425869256258011, -0.01943555474281311, 1.0600827932357788, -0.0765841156244278, 0.08348414301872253, 0.0005463752895593643, 0.12836621701717377, 0.25701484084129333, -0.36813849210739136, 0.03658685460686684, -0.15289078652858734, -0.1648452877998352, -0.22552384436130524, -0.12308457493782043, 0.15369687974452972, -0.09504184126853943, -0.04733375459909439, -0.04419631510972977, 0.06650364398956299, 0.5970910787582397, 0.17175695300102234, 0.12883968651294708, -0.11823175102472305, 0.003472168929874897, 0.26312464475631714, 0.10381796956062317, -0.12957994639873505, 0.5004432201385498, -0.015068305656313896, -0.12522092461585999, 0.015064466744661331, -0.30026066303253174, -0.44776207208633423, -0.291594535112381, -0.15131106972694397, 0.025840282440185547, -0.20752792060375214, -0.44171983003616333, 0.2020828276872635, 0.08817387372255325, 0.14772537350654602, 0.09978030622005463, -0.13103912770748138, 0.08462639153003693, -0.12008380144834518, -0.013900586403906345, -0.12779955565929413, 0.09568936377763748, 0.030670080333948135, -0.12170577049255371, -0.024581409990787506, 0.18695059418678284, -0.13370178639888763, -0.1366572380065918, -0.6552413702011108, 0.20043830573558807, 0.1444653868675232, -0.39472562074661255, 0.12908652424812317, 0.06772351264953613, -0.060813166201114655, -0.2405293583869934, 0.10889297723770142, 0.2186606228351593, 0.04295232892036438, 0.16792738437652588, -0.011066585779190063, -0.3308803141117096, -0.21362513303756714, 0.7067387700080872, 0.17951196432113647, 0.0751989558339119, 0.4883555769920349, -0.23709051311016083, -0.2770876884460449, -0.1829409897327423, 0.4123024642467499, -0.08363474160432816, -0.5610711574554443, 0.03241296485066414, -0.028498774394392967, 0.5606651902198792, -0.10504917055368423, 0.4472658038139343, 0.169829860329628, -0.3257215619087219, -0.2519429922103882, -0.468681663274765, -0.19535604119300842, 0.24468690156936646, 0.10737720131874084, 0.24265193939208984, -0.2422519028186798, 0.10805889964103699, 0.31193920969963074, -0.1333281695842743, -0.28483402729034424, -0.020940223708748817, 0.019104262813925743, 0.15289370715618134, 0.15534861385822296, 0.21327582001686096, 0.23531021177768707, -0.027105094864964485, 0.05246435105800629, 0.18816378712654114, -0.30066075921058655, -0.1338646411895752, -0.05522262305021286, 0.1813814491033554, -0.052809618413448334, -0.18918395042419434, -0.008516036905348301, -0.10201026499271393, 0.06569869816303253, 0.2963154911994934, -0.09296572208404541, 0.0006358139216899872, 0.07980762422084808, -0.1729905605316162, 0.17799580097198486, -0.05294249951839447, 0.14205501973628998, 0.16620588302612305, 0.043194446712732315, 0.4847095012664795, 0.1699473261833191, 0.2383303940296173, -0.10290275514125824, 0.025348961353302002, 0.006429875735193491, -0.061634860932826996, 0.22839073836803436, -0.15353843569755554, -0.02947615087032318, -0.5416858792304993, 0.11649098992347717, 0.029800688847899437, 0.2837374210357666, 0.6063399910926819, -0.2172531634569168, -0.03385617583990097, 0.2653220295906067, 0.09917271137237549, -0.2747247517108917, -0.04355488717556, -0.19389685988426208, 0.24095715582370758, -0.16995753347873688, 0.22317370772361755, 0.29729679226875305, 0.039501406252384186, 0.4887244701385498, 0.12095186859369278, 0.24196837842464447, -0.07752816379070282, 0.22470994293689728, 0.5041940212249756, 0.06692612171173096, 0.17412665486335754, 0.24030578136444092, 0.18345966935157776, -0.20436546206474304, 0.5537781119346619, -0.11730179935693741, 0.2034914493560791, -0.2074774205684662, 0.1565355360507965, 0.34267160296440125, -0.6165925860404968, -0.016495611518621445, 0.15738071501255035, -0.057709142565727234, 0.1316150426864624, 0.24958445131778717, 0.4535635709762573, 0.06939803808927536, 0.0590764619410038, -0.5210750102996826, 0.05156002938747406, -0.11757690459489822, -0.019285768270492554, -0.25368547439575195, -0.5466459393501282, -0.11682017147541046, 0.16220110654830933, -0.0589272566139698, -0.26335346698760986, 0.1491270363330841, 0.04702778905630112, -0.14853204786777496, -0.4223784804344177, -0.13368022441864014, -0.08048523217439651, 0.1521882563829422, -0.24651235342025757, 0.25351017713546753, 0.13158102333545685, 0.14655546844005585, 0.13460053503513336, 0.26824814081192017, 0.20836816728115082, 0.1243412122130394, 0.11116406321525574, 0.28035277128219604, -0.13638852536678314, -0.16296832263469696, 0.03524664416909218, 0.4848562479019165, 0.24933640658855438, -0.17390099167823792, 0.2460760623216629, 0.08126775175333023, -0.14151284098625183, 0.4951144754886627, 0.10648699104785919, 0.12362615764141083, -0.4457789659500122, 0.2616386413574219, -0.4482772946357727, -0.057857904583215714, -0.06806094199419022, -0.36537396907806396, -0.102402463555336, 0.28411033749580383, 0.39239242672920227, 0.011560765095055103, 0.06482013314962387, -0.3382369875907898, 0.05594748258590698, -0.09051269292831421, 0.3662514388561249, 0.17468596994876862, 0.10995179414749146, -0.3229326605796814, -0.4916152358055115, -0.6331315040588379, 0.021056093275547028, -0.15222790837287903, 0.17762742936611176, 0.08623863011598587, 0.06260982155799866, 0.02304360270500183, 0.3798983693122864, 0.4623575210571289, 0.006702883634716272, -0.2151636928319931, 0.45411667227745056, -0.18269939720630646, -0.06505781412124634, 0.0479968786239624, 0.24900607764720917, -0.10555419325828552, -0.21605059504508972, 0.19375132024288177, -0.3036147952079773, -0.03376852348446846, -0.3930513858795166, -0.015010610222816467, 0.08479943871498108, 0.4370287358760834, 0.48511746525764465, -0.025557218119502068, 0.2291175276041031, 0.0035039708018302917, -0.14681074023246765, -0.32088470458984375, -0.5082892179489136, -0.08103886246681213, 0.38702651858329773, 0.07493439316749573, 0.2322063148021698, -0.18534155189990997, -0.16556189954280853, -0.07805965095758438, -0.0973447933793068, 0.018249787390232086, 0.32069554924964905, -0.3410607576370239, -0.2085428684949875, -0.2974257171154022, 0.045717332512140274, 0.21752795577049255, 0.29408177733421326, 0.18741872906684875, -0.05240185558795929, -0.47251641750335693, -0.4151337742805481, 0.47287502884864807, -0.33788788318634033, -0.18204155564308167, 0.1574745774269104, 0.021205894649028778, 0.09942757338285446, -0.43088498711586, -0.396640419960022, -0.05505423620343208, 0.6749300956726074, -0.16477438807487488, 0.23227381706237793, 0.2516654431819916, 0.09265215694904327, -0.0554104708135128, -0.11004132032394409, 0.735499382019043, 0.0900866687297821, -0.1757434904575348, 0.11862991750240326, -0.29923224449157715 ]
https://github.com/huggingface/datasets/issues/4169
Timit_asr dataset cannot be previewed recently
Yes exactly. If you try to load the dataset it will ask you to download it manually first, and to pass the downloaded and extracted data like `load_dataset("timir_asr", data_dir="path/to/extracted/data")` The URL we were using was coming from a host that doesn't have the permission to redistribute the data, and the dataset owners (LDC) notified us about it.
## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No
57
Timit_asr dataset cannot be previewed recently ## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No Yes exactly. If you try to load the dataset it will ask you to download it manually first, and to pass the downloaded and extracted data like `load_dataset("timir_asr", data_dir="path/to/extracted/data")` The URL we were using was coming from a host that doesn't have the permission to redistribute the data, and the dataset owners (LDC) notified us about it.
[ -0.31463029980659485, -0.24931326508522034, -0.04436338692903519, 0.3087725043296814, -0.01273619756102562, -0.009399756789207458, 0.1674087643623352, 0.1074036955833435, -0.358037531375885, 0.20383208990097046, -0.3066551685333252, 0.16909265518188477, -0.2346719652414322, 0.014098668470978737, 0.13133327662944794, -0.07021305710077286, -0.04645625501871109, -0.03598704934120178, -0.4427013099193573, 0.12570826709270477, -0.14309218525886536, 0.06847355514764786, 0.009337902069091797, 0.10923321545124054, 0.09147191047668457, 0.06302718818187714, -0.03409754857420921, -0.06129554659128189, -0.24780826270580292, -0.47306081652641296, 0.3486562967300415, 0.22843901813030243, 0.20687255263328552, 0.3254184126853943, -0.00010934848978649825, 0.22226129472255707, 0.3557865619659424, 0.07574474066495895, -0.39108482003211975, -0.08747178316116333, -0.04863954707980156, -0.09043585509061813, 0.10992617905139923, 0.04908519238233566, -0.30615371465682983, -0.13602927327156067, 0.18144738674163818, -0.2544889450073242, 0.2578718662261963, 0.25564688444137573, 0.2838907837867737, 0.44482964277267456, -0.11264151334762573, -0.336272269487381, 0.2815311849117279, 0.1527004837989807, -0.2816375195980072, 0.1690957099199295, 0.1113380417227745, 0.25868117809295654, 0.10576016455888748, 0.07126963138580322, 0.08264831453561783, 0.029868781566619873, 0.27248671650886536, -0.11133477836847305, -0.11613907665014267, -0.40327543020248413, -0.01702168583869934, 0.12249595671892166, 0.9915800094604492, 0.010950859636068344, -0.20291182398796082, 0.13149932026863098, -0.011489796452224255, 0.04646468162536621, 0.1458328664302826, -0.006429510191082954, 0.04624783620238304, 0.29663655161857605, -0.23278045654296875, -0.09090648591518402, -0.2174336165189743, 0.38378554582595825, 0.07779480516910553, -0.027547940611839294, -0.28428488969802856, 0.17813041806221008, -0.12810805439949036, 0.038890864700078964, 0.07291285693645477, 0.05712207034230232, -0.21335741877555847, 0.309256911277771, 0.20019541680812836, 0.052801333367824554, 0.04019635543227196, 0.011938389390707016, 0.17302939295768738, 0.3974943161010742, 0.2573256194591522, 0.011024698615074158, -0.374533087015152, -0.05347929149866104, 0.024846084415912628, 0.08005817234516144, 0.09119881689548492, 0.0017483541741967201, 0.40370553731918335, 0.08855337649583817, 0.36750081181526184, -0.05225753039121628, -0.12768563628196716, 0.06420233845710754, -0.4269946217536926, -0.40141361951828003, 0.44745391607284546, -0.2782633304595947, -0.5395562052726746, -0.10959113389253616, -0.053722724318504333, -0.045663751661777496, -0.10544116795063019, 0.31610873341560364, -0.12700209021568298, -0.06715869903564453, -0.04041530564427376, 0.175837442278862, 0.027279390022158623, -0.09307590872049332, -0.21859562397003174, -0.024642951786518097, -0.0027686171233654022, -0.023485446348786354, 0.17092856764793396, -0.3301101326942444, 0.0010247044265270233, -0.004162447527050972, -0.002401307225227356, -0.007279112935066223, -0.2086750715970993, 0.10562494397163391, -0.21886485815048218, 0.3417297601699829, -0.1308296024799347, 0.43524298071861267, -0.0858122706413269, -0.18752719461917877, 0.007219716906547546, 0.1294282078742981, -0.17142236232757568, -0.24717608094215393, -0.2031290978193283, 0.19869957864284515, -0.40587902069091797, -0.055353373289108276, -0.25147563219070435, 0.1387292444705963, -0.07672690600156784, -0.10232110321521759, -0.11450497061014175, 0.328266978263855, -0.3271753787994385, -0.20482462644577026, 0.1918788105249405, 0.48496150970458984, -0.5022087097167969, -0.1952246129512787, -0.3104599714279175, -0.43771523237228394, 0.09375952929258347, 0.14826887845993042, -0.2158338874578476, 0.17973244190216064, -0.24106985330581665, -0.2247602790594101, 0.2776340842247009, -0.06821279227733612, -0.5234845876693726, 0.17154239118099213, -0.29353323578834534, 0.08992600440979004, 0.12555064260959625, 0.1699780374765396, 0.17385853826999664, -0.16192841529846191, -0.2880689203739166, 0.12807755172252655, 0.36182984709739685, -0.1410353034734726, -0.29006513953208923, -0.22879496216773987, 0.2693457007408142, 0.2484694868326187, 0.15848256647586823, 0.24727001786231995, 0.34178489446640015, 0.16016535460948944, 0.30957019329071045, 0.146980419754982, 0.14543576538562775, 0.18004590272903442, 0.15121270716190338, -0.0006895586848258972, 0.0037602484226226807, -0.22779935598373413, -0.09661435335874557, 0.06561023741960526, 0.21405388414859772, 0.21706543862819672, 0.12904706597328186, -0.07384778559207916, -0.5136529803276062, 0.005855299532413483, -0.2542906403541565, -0.3100380599498749, 0.10708463191986084, 0.5479087233543396, -0.09444989264011383, 0.25053346157073975, -0.056695930659770966, 0.29661494493484497, -0.08189406245946884, -0.11302860826253891, -0.19917188584804535, 0.12427827715873718, 0.0350114107131958, 0.20748020708560944, 0.1262454092502594, 0.0005854368209838867, 0.11725626140832901, -0.2519233226776123, -0.04693150892853737, 0.3266919255256653, -0.1742754429578781, 0.13603617250919342, 0.15876317024230957, -0.20425467193126678, 0.12943997979164124, -0.5647801756858826, 0.20991098880767822, 0.16860558092594147, -0.010420012287795544, 0.00829567015171051, -0.051057636737823486, 0.2477220594882965, -0.03788023069500923, -0.015690110623836517, -0.01423439010977745, 0.18080207705497742, 0.20534193515777588, -0.021108713001012802, -0.01020604744553566, -0.13423240184783936, 0.4144798517227173, 0.02292623557150364, 0.10676182806491852, -0.1928412914276123, -0.28110653162002563, 0.23824551701545715, -0.18913376331329346, -0.04936596751213074, -0.2036798894405365, 0.4161689579486847, -0.10756256431341171, 0.18109726905822754, -0.12979432940483093, 0.042275864630937576, 0.16284093260765076, 0.2083100825548172, -0.03214937075972557, -0.1268276423215866, 0.0830509141087532, -0.10145311057567596, 0.15357711911201477, 0.1073976457118988, -0.12612207233905792, 0.023762613534927368, 0.12982653081417084, 0.018530817702412605, -0.38456082344055176, 0.10533450543880463, 0.15832005441188812, 0.38317787647247314, -0.3493465483188629, 0.09396947175264359, -0.06287243962287903, -0.31494155526161194, 0.11381188780069351, -0.21298658847808838, -0.27027422189712524, -0.2806101441383362, 0.1549183875322342, 0.19858233630657196, 0.13239657878875732, 0.20950770378112793, -0.19516222178936005, 0.452129065990448, -0.09026017040014267, 0.3600696921348572, -0.1591123342514038, 0.27283790707588196, -0.15784186124801636, 0.23628732562065125, 0.31224170327186584, -0.07318109273910522, 0.5148600339889526, -0.10945705324411392, 0.4107038974761963, -0.3972684144973755, -0.1971680223941803, 0.046104006469249725, -0.13791458308696747, 0.6420601010322571, -0.06461066007614136, 0.1711338311433792, -0.038563430309295654, -0.13567200303077698, 0.010031471028923988, -0.06370894610881805, -0.2597757875919342, -0.05396303907036781, -0.17833176255226135, -0.04346663877367973, -0.09482219815254211, -0.2897804081439972, -0.3923243582248688, -0.3043227195739746, 0.32337892055511475, 0.25645530223846436, 0.14169345796108246, 0.19139693677425385, -0.11662805825471878, 0.08272632211446762, 0.16210411489009857, -0.011451300233602524, -0.3617655038833618, -0.3788336217403412, 0.40047699213027954, -0.4668675661087036, -0.528937578201294, 0.0071497224271297455, 0.31225013732910156, -0.01339152455329895, -0.07011095434427261, -0.6565834283828735, 0.15839731693267822, -0.14580588042736053, 0.17576315999031067, -0.03512972593307495, -0.31588754057884216, 0.14481665194034576, -0.2102409303188324, -0.10991988331079483, -0.1119159460067749, -0.003344394266605377, -0.1156303808093071, -0.35034579038619995, 0.381178617477417, -0.05061168223619461, 0.3576747477054596, -0.01978527009487152, 0.6679776906967163, 0.1882031410932541, -0.0212370865046978, 0.37344539165496826, -0.2712304890155792, 0.5687625408172607, 0.013439148664474487, -0.38383737206459045, -0.06705741584300995, 0.002619132399559021, 0.06399255245923996, 0.1993296891450882, 0.09349918365478516, -0.1255185455083847, -0.21634143590927124, -0.06956752389669418, -0.051929689943790436, -0.04738941788673401, -0.17676058411598206, -0.2376461625099182, 0.18259742856025696, 0.10817800462245941, 0.0805262103676796, -0.007977369241416454, -0.5764773488044739, 0.023182645440101624, 0.46947890520095825, 0.11414413154125214, 0.044867366552352905, -0.3267257809638977, 0.20178911089897156, -0.5352242588996887, 0.3209283947944641, 0.008641130290925503, 0.40659835934638977, -0.2539524734020233, -0.1747373640537262, 0.4079113006591797, 0.11383429914712906, 0.5461347103118896, -0.24816583096981049, 0.10816354304552078, 0.23411676287651062, 0.25695839524269104, -0.3616008460521698, 0.008556462824344635, -0.13660944998264313, 0.42278149724006653, 0.02941468171775341, 0.3949841558933258, 0.02986513078212738, -0.1675397753715515, 0.36646589636802673, -0.0011199511354789138, -0.3843619227409363, -0.09318704903125763, -0.2755540907382965, -0.4446406960487366, -0.010423528961837292, -0.1554829478263855, -0.11256935447454453, 0.05696466192603111, -0.19949038326740265, 0.10395792126655579, -0.28403639793395996, 0.13656187057495117, 0.2457980513572693, -0.07444194704294205, 0.27068018913269043, 0.37099766731262207, 0.4472588896751404, 0.46699774265289307, 0.1571769118309021, 0.09701025485992432, 0.48515936732292175, 0.008848262950778008, -0.09295132756233215, 0.19067227840423584, -0.06336276978254318, 0.1512853056192398, 0.40274813771247864, -0.14982615411281586, 0.20338723063468933, -0.046825818717479706, 0.16569572687149048, -0.3110632002353668, 0.3731924891471863, 0.18599098920822144, -0.40012821555137634, -0.6158136129379272, -0.4082081913948059, 0.5245473384857178, -0.12464550137519836, -0.16392701864242554, 0.3720957338809967, 0.07655242085456848, -0.11501447856426239, -0.05817868933081627, -0.009267829358577728, 1.0376567840576172, -0.16133105754852295, 0.060731831938028336, 0.2017006278038025, 0.11565150320529938, 0.21832585334777832, -0.24266985058784485, -0.06379718333482742, -0.16663499176502228, -0.22141911089420319, -0.16654211282730103, -0.10230989009141922, 0.06270603090524673, -0.15518543124198914, 0.031639065593481064, -0.15298761427402496, 0.07965604960918427, 0.3728397786617279, 0.1376393437385559, 0.3203745484352112, 0.02951958402991295, 0.09768950939178467, 0.11835380643606186, 0.2333785593509674, -0.14250779151916504, 0.294935017824173, 0.027845531702041626, -0.09862346947193146, -0.11968711018562317, -0.1933162361383438, -0.4041230082511902, 0.023685436695814133, -0.02961617521941662, 0.23014268279075623, -0.10942119359970093, -0.5559049844741821, 0.3006657361984253, 0.0871003270149231, 0.014346890151500702, 0.10161688923835754, -0.2921425402164459, 0.21686755120754242, -0.2815513014793396, -0.12488476186990738, -0.225997194647789, 0.13809050619602203, 0.0328437015414238, -0.13924908638000488, -0.10080301761627197, 0.2246018648147583, 0.05668705701828003, -0.2378057986497879, -0.2560098171234131, 0.10637933015823364, -0.05156437307596207, -0.3096604645252228, 0.1590002030134201, -0.05714736878871918, -0.004830176010727882, -0.2967189848423004, 0.1564290076494217, 0.08967872709035873, -0.05307561904191971, -0.12339157611131668, 0.15016482770442963, -0.34929585456848145, -0.11136804521083832, 0.6899862289428711, 0.07025164365768433, -0.008504515513777733, 0.5251851081848145, 0.027412202209234238, -0.2523851990699768, -0.16122689843177795, 0.282234787940979, 0.056085970252752304, -0.5830128788948059, -0.05364042893052101, -0.1528533697128296, 0.4878811240196228, 0.010502178221940994, 0.39101749658584595, 0.1254482865333557, -0.2796843945980072, -0.23140116035938263, -0.5020452737808228, -0.17922373116016388, 0.1741667091846466, -0.0646321028470993, 0.25248363614082336, -0.17391300201416016, 0.13217149674892426, 0.12250275909900665, -0.04104316979646683, -0.3436424732208252, 0.04774224013090134, 0.08012951910495758, -0.02338484674692154, 0.17954297363758087, 0.12884469330310822, 0.35840216279029846, -0.044425662606954575, 0.08497068285942078, 0.15623417496681213, -0.29471924901008606, -0.18802350759506226, -0.1357789784669876, 0.16374701261520386, -0.023713063448667526, -0.3557667136192322, -0.23545584082603455, -0.1124020591378212, 0.0542038194835186, 0.2330664098262787, 0.03105156123638153, 0.03830862045288086, -0.0011754035949707031, -0.2453688532114029, 0.04015180468559265, -0.09057945758104324, 0.15724705159664154, 0.18741358816623688, 0.11690688133239746, 0.45357900857925415, 0.15048955380916595, 0.21872322261333466, -0.12862391769886017, -0.1080869510769844, -0.06762149184942245, 0.03433475270867348, 0.17911474406719208, -0.05310581624507904, 0.03389973193407059, -0.32450157403945923, 0.1852947324514389, 0.10331464558839798, 0.18709908425807953, 0.4285726249217987, -0.2606789767742157, -0.023544149473309517, 0.17235201597213745, 0.12547063827514648, -0.15744192898273468, -0.1088901236653328, -0.28300270438194275, 0.029450219124555588, -0.24550463259220123, 0.06772234290838242, 0.1577819287776947, 0.08193148672580719, 0.10590343177318573, 0.11510395258665085, 0.353340744972229, -0.02333146333694458, 0.1172763854265213, 0.40392178297042847, -0.1847108155488968, 0.05088873580098152, 0.24826091527938843, 0.149354487657547, -0.11984487622976303, 0.6506927013397217, -0.04907073825597763, 0.2790917456150055, -0.11059785634279251, 0.1523856818675995, 0.11628744006156921, -0.47569990158081055, 0.042268238961696625, -0.020905137062072754, -0.0968414843082428, 0.18148916959762573, 0.16678127646446228, 0.6056179404258728, -0.05876633897423744, 0.11577291786670685, -0.5252875685691833, 0.16230565309524536, 0.026177868247032166, -0.049234747886657715, -0.2900221347808838, -0.4988727271556854, -0.27931976318359375, 0.1687985211610794, -0.15376287698745728, -0.2747933864593506, 0.15659299492835999, 0.0932333916425705, -0.21993078291416168, -0.3568672239780426, 0.007917366921901703, 0.1039409190416336, 0.14136365056037903, -0.2551160752773285, 0.20014029741287231, 0.14339911937713623, 0.21678149700164795, 0.14410395920276642, 0.19252558052539825, 0.3480900228023529, 0.012079369276762009, 0.06004851683974266, 0.24582253396511078, -0.1410941183567047, -0.237283393740654, 0.04782966524362564, 0.4970909059047699, 0.23537063598632812, -0.200748011469841, 0.24779976904392242, 0.13026808202266693, -0.15547238290309906, 0.2762625217437744, 0.18910469114780426, 0.37112322449684143, -0.3377875089645386, 0.1194366067647934, -0.508525013923645, -0.04445791617035866, -0.12258446216583252, -0.3333343267440796, -0.132811039686203, 0.3388795852661133, 0.3549284338951111, -0.02297253906726837, 0.1294991672039032, -0.38137727975845337, 0.08463694155216217, -0.05494115874171257, 0.5738146305084229, 0.3026978671550751, 0.20757073163986206, -0.0920063704252243, -0.5992964506149292, -0.7278353571891785, 0.10297960042953491, -0.06600327789783478, 0.1081344336271286, -0.03449699655175209, -0.03676088526844978, 0.044570766389369965, 0.27520477771759033, 0.2899947464466095, 0.16143260896205902, -0.03249327465891838, 0.2258642613887787, -0.12283594906330109, -0.05161900445818901, 0.07406730204820633, 0.3302401900291443, -0.14254173636436462, -0.24677112698554993, 0.13080918788909912, -0.2110566645860672, 0.02159970998764038, -0.28602349758148193, -0.10795128345489502, -0.04821070283651352, 0.21616986393928528, 0.3647072911262512, 0.03237106651067734, 0.28100794553756714, -0.0011625662446022034, -0.16225029528141022, -0.5342822074890137, -0.6012507081031799, -0.030204083770513535, 0.24768748879432678, 0.07147705554962158, 0.20985174179077148, -0.01975170522928238, -0.17952562868595123, -0.11521240323781967, 0.07705213129520416, -0.020002953708171844, 0.3904893100261688, -0.3436957001686096, -0.19587495923042297, -0.30242305994033813, -0.017621701583266258, 0.21789763867855072, 0.23872444033622742, 0.14517289400100708, 0.02602212317287922, -0.2944292426109314, -0.4155164062976837, 0.43052008748054504, -0.4174537658691406, -0.13192003965377808, 0.1912466585636139, 0.05756138265132904, 0.12343811988830566, -0.40568602085113525, -0.42613065242767334, 0.17730242013931274, 0.5533139705657959, -0.10153049975633621, 0.16034665703773499, 0.3204086124897003, -0.07041168212890625, 0.012125138193368912, -0.06947011500597, 0.7041944265365601, 0.09157440066337585, -0.17903248965740204, 0.2250405251979828, -0.2226213812828064 ]
https://github.com/huggingface/datasets/issues/4169
Timit_asr dataset cannot be previewed recently
I downloaded the timit_asr data and unzipped. But I can't run my code. Could you resolve this problem for me? Thanks import soundfile as sf import torch from datasets import load_dataset dataset = load_dataset("timit_asr", data_dir="/Users/nguyenvannham/Documents/test_case/data") Generating train split: 0 examples [00:00, ? examples/s] Generating train split: 0 examples [00:00, ? examples/s]Traceback (most recent call last): File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1571, in _prepare_split_single for key, record in generator: File "/Users/nguyenvannham/.cache/huggingface/modules/datasets_modules/datasets/timit_asr/43f9448dd5db58e95ee48a277f466481b151f112ea53e27f8173784da9254fb2/timit_asr.py", line 138, in _generate_examples with txt_path.open(encoding="utf-8") as op: File "/opt/anaconda3/envs/audio/lib/python3.9/pathlib.py", line 1252, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/opt/anaconda3/envs/audio/lib/python3.9/pathlib.py", line 1120, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: '/Users/nguyenvannham/Documents/test_case/data/train/DR1/FCJF0/SA1.WAV.TXT' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/var/folders/t9/l8d3rwpn1k33_gjtqs732lzc0000gn/T/ipykernel_3891/1203313828.py", line 1, in <module> dataset = load_dataset("timit_asr", data_dir="/Users/nguyenvannham/Documents/test_case/data") File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/load.py", line 1758, in load_dataset builder_instance.download_and_prepare( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 860, in download_and_prepare self._download_and_prepare( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1612, in _download_and_prepare super()._download_and_prepare( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 953, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1450, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1607, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e DatasetGenerationError: An error occurred while generating the dataset
## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No
199
Timit_asr dataset cannot be previewed recently ## Dataset viewer issue for '*timit_asr*' **Link:** *https://huggingface.co/datasets/timit_asr* Issue: The timit-asr dataset cannot be previewed recently. Am I the one who added this dataset ? Yes-No No I downloaded the timit_asr data and unzipped. But I can't run my code. Could you resolve this problem for me? Thanks import soundfile as sf import torch from datasets import load_dataset dataset = load_dataset("timit_asr", data_dir="/Users/nguyenvannham/Documents/test_case/data") Generating train split: 0 examples [00:00, ? examples/s] Generating train split: 0 examples [00:00, ? examples/s]Traceback (most recent call last): File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1571, in _prepare_split_single for key, record in generator: File "/Users/nguyenvannham/.cache/huggingface/modules/datasets_modules/datasets/timit_asr/43f9448dd5db58e95ee48a277f466481b151f112ea53e27f8173784da9254fb2/timit_asr.py", line 138, in _generate_examples with txt_path.open(encoding="utf-8") as op: File "/opt/anaconda3/envs/audio/lib/python3.9/pathlib.py", line 1252, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/opt/anaconda3/envs/audio/lib/python3.9/pathlib.py", line 1120, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: '/Users/nguyenvannham/Documents/test_case/data/train/DR1/FCJF0/SA1.WAV.TXT' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/var/folders/t9/l8d3rwpn1k33_gjtqs732lzc0000gn/T/ipykernel_3891/1203313828.py", line 1, in <module> dataset = load_dataset("timit_asr", data_dir="/Users/nguyenvannham/Documents/test_case/data") File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/load.py", line 1758, in load_dataset builder_instance.download_and_prepare( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 860, in download_and_prepare self._download_and_prepare( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1612, in _download_and_prepare super()._download_and_prepare( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 953, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1450, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/opt/anaconda3/envs/audio/lib/python3.9/site-packages/datasets/builder.py", line 1607, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e DatasetGenerationError: An error occurred while generating the dataset
[ -0.6112358570098877, -0.29167884588241577, -0.08124051988124847, 0.31857895851135254, 0.16411542892456055, 0.016920797526836395, 0.24358047544956207, 0.24114622175693512, -0.5477694869041443, 0.3521900773048401, -0.44972458481788635, 0.31241312623023987, -0.431844562292099, -0.1257331520318985, 0.012014735490083694, -0.16670474410057068, 0.0784798115491867, 0.028194047510623932, -0.470052033662796, 0.13178953528404236, -0.19237667322158813, 0.10754599422216415, -0.13131201267242432, 0.09590165317058563, -0.05284919962286949, -0.09179950505495071, 0.010797427967190742, -0.11914143711328506, -0.24927635490894318, -0.4855024814605713, 0.1536049246788025, 0.15508799254894257, 0.30366334319114685, 0.6332986354827881, -0.00012343228445388377, 0.17292290925979614, 0.2613673210144043, 0.0002713724970817566, -0.2514380216598511, -0.34072643518447876, 0.1586054563522339, -0.027769573032855988, 0.11740575730800629, 0.04108981043100357, -0.3871183693408966, -0.13647335767745972, 0.09074322879314423, -0.3259315490722656, 0.4166935682296753, 0.42980435490608215, 0.16417726874351501, 0.2507762610912323, -0.005821973085403442, -0.11212431639432907, 0.27391794323921204, 0.23965677618980408, -0.22724087536334991, 0.06917659938335419, 0.15389548242092133, 0.1966637820005417, 0.09292510896921158, 0.12726759910583496, 0.06422314792871475, -0.031241487711668015, 0.2291995882987976, -0.1681053191423416, -0.2836407721042633, -0.4935523569583893, -0.11770888417959213, 0.06597945839166641, 0.862667441368103, -0.3294559419155121, -0.3647080957889557, 0.10219898074865341, -0.0040460992604494095, -0.12613719701766968, 0.04280313849449158, 0.07191188633441925, -0.10475972294807434, 0.167779803276062, -0.28248876333236694, -0.02138930931687355, -0.19659501314163208, 0.38657617568969727, 0.4217505156993866, -0.09156806766986847, -0.20919589698314667, 0.1703779697418213, 0.08208762854337692, -0.065336212515831, 0.05474008619785309, 0.16593049466609955, -0.059798043221235275, 0.47487300634384155, -0.0021379105746746063, -0.07927871495485306, -0.0007190108299255371, -0.13046160340309143, 0.003199964761734009, 0.29588043689727783, 0.12520697712898254, 0.08573900163173676, -0.20438043773174286, -0.007581852376461029, 0.015069730579853058, 0.06237691268324852, 0.1920526921749115, 0.06817183643579483, 0.4150623679161072, 0.12380527704954147, 0.23764359951019287, -0.10470869392156601, -0.3819122016429901, -0.13695842027664185, -0.27028414607048035, -0.13818126916885376, 0.4052598476409912, -0.3196985423564911, -0.4826439321041107, -0.15255439281463623, -0.2078286111354828, -0.16362233459949493, 0.10785242170095444, 0.3888621926307678, -0.037936922162771225, -0.1576673686504364, 0.14191466569900513, 0.3526856303215027, -0.0032836655154824257, -0.11624178290367126, -0.04525011405348778, 0.02973889373242855, -0.04464598745107651, 0.00832802802324295, 0.2533990740776062, -0.47255048155784607, 0.0971003845334053, -0.013069665990769863, 0.03617202490568161, -0.06908392161130905, -0.09262345731258392, -0.07938329875469208, -0.20304879546165466, 0.1663934290409088, 0.02762085571885109, 0.35898101329803467, -0.08056813478469849, 0.15963955223560333, -0.08308327198028564, 0.2550402581691742, -0.036238327622413635, -0.16487428545951843, -0.07498223334550858, 0.07731446623802185, -0.47654294967651367, 0.1780598759651184, -0.15543487668037415, 0.12719322741031647, 0.03674400597810745, -0.25244686007499695, 0.01876842975616455, 0.024869199842214584, -0.4501076936721802, -0.1729222536087036, 0.24336588382720947, 0.4144328236579895, -0.4052712023258209, -0.11496859043836594, -0.24729163944721222, -0.3353347182273865, 0.04382183030247688, 0.08977174758911133, -0.20521104335784912, 0.32964518666267395, -0.3025810718536377, -0.1888580322265625, 0.4964500665664673, -0.2743991017341614, -0.467558890581131, 0.031081078574061394, -0.19550059735774994, 0.09553848952054977, 0.3028758466243744, 0.11698934435844421, 0.2782263457775116, -0.2797700762748718, -0.08851338922977448, -0.05463492125272751, 0.4160129129886627, -0.17108464241027832, -0.170437753200531, -0.218142569065094, 0.2782696783542633, 0.2891843020915985, 0.07973040640354156, 0.14432880282402039, 0.26877933740615845, 0.1864427775144577, 0.39998695254325867, 0.19794681668281555, 0.11136270314455032, 0.23740361630916595, 0.15212391316890717, 0.06883233785629272, -0.04429301619529724, -0.47340112924575806, 0.1250007152557373, 0.029815226793289185, 0.1497425138950348, 0.170683354139328, 0.06571201980113983, -0.0341857448220253, -0.3215717375278473, -0.04672550410032272, -0.3983372747898102, -0.304495245218277, 0.047336556017398834, 0.37541162967681885, 0.11289434134960175, 0.17975352704524994, -0.018679160624742508, 0.2700973451137543, -0.08270592242479324, -0.13321714103221893, -0.30036166310310364, 0.14185693860054016, 0.053014375269412994, -0.11092552542686462, 0.19476182758808136, 0.259132444858551, 0.22387021780014038, -0.25219443440437317, -0.10619742423295975, 0.5114871859550476, -0.004259011242538691, 0.05093124136328697, -0.2402382493019104, -0.10616554319858551, -0.014839628711342812, -0.650550127029419, 0.2939097583293915, 0.260282427072525, -0.017032217234373093, 0.04461955279111862, -0.0342930406332016, 0.14676620066165924, -0.045240771025419235, 0.08692184090614319, 0.05482569336891174, 0.09112805873155594, -0.07584322988986969, 0.15667018294334412, -0.17583948373794556, 0.07878753542900085, 0.4380643963813782, -0.2671378552913666, 0.20893827080726624, -0.15665479004383087, -0.25358638167381287, 0.015053875744342804, 0.07198271155357361, -0.07496126741170883, -0.15908250212669373, 0.4132694900035858, -0.2349211573600769, 0.2379235029220581, -0.10766063630580902, -0.15482504665851593, 0.24212005734443665, 0.1724490076303482, -0.08272355794906616, -0.04447951912879944, 0.06669802963733673, 0.033291347324848175, 0.15053683519363403, 0.17180152237415314, -0.11604872345924377, 0.172463521361351, 0.10124767571687698, 0.002834598533809185, -0.2047085165977478, -0.13497771322727203, -0.013862695544958115, 0.45224544405937195, -0.40078750252723694, 0.0015363618731498718, -0.05727096647024155, -0.27601704001426697, -0.12937146425247192, -0.20314568281173706, -0.19971026480197906, -0.04858492314815521, -0.0256924070417881, 0.3570980131626129, 0.2897021770477295, 0.37881240248680115, -0.07625735551118851, 0.0029612183570861816, 0.03377296030521393, 0.03498734533786774, -0.06680262833833694, 0.3738251030445099, 0.017555424943566322, 0.10883922874927521, 0.40840214490890503, -0.06185496225953102, 0.3772865831851959, -0.0880228579044342, 0.1734781563282013, -0.2953079342842102, 0.05812414735555649, -0.10762329399585724, -0.12005981802940369, 0.5907010436058044, 0.04829612374305725, 0.1032179743051529, 0.06191674619913101, -0.3041774034500122, 0.173485666513443, -0.1003093421459198, -0.19233763217926025, -0.06065583974123001, 0.047505877912044525, 0.0043219514191150665, -0.00884953886270523, -0.3433949053287506, -0.39838191866874695, -0.40636032819747925, 0.4974767565727234, 0.11677636206150055, 0.2154582142829895, 0.1861334592103958, 0.11269707977771759, 0.039003293961286545, 0.07522634416818619, 0.11788247525691986, -0.21381384134292603, -0.3800615072250366, 0.4370230436325073, -0.38929715752601624, -0.4746740162372589, -0.06568378210067749, 0.23295877873897552, 0.16557280719280243, 0.06069597601890564, -0.43539494276046753, 0.2738482654094696, -0.08023209124803543, 0.12075634300708771, -0.14318116009235382, -0.10074770450592041, 0.2634546756744385, -0.062372881919145584, 0.06359459459781647, -0.15105324983596802, 0.07016794383525848, -0.05041082948446274, -0.38091251254081726, 0.32710155844688416, 0.16460400819778442, 0.5895659327507019, -0.20192693173885345, 0.7977868914604187, 0.36357584595680237, -0.09221591055393219, 0.22212359309196472, -0.3623311519622803, 0.4710412919521332, -0.013513721525669098, -0.5219092965126038, -0.03529087081551552, 0.0027638524770736694, 0.04415234923362732, 0.14170430600643158, -0.01850990578532219, 0.011690618470311165, -0.24516263604164124, -0.05272689089179039, -0.08803902566432953, 0.018977414816617966, -0.04563772678375244, -0.4114721715450287, 0.3162502348423004, -0.007708719000220299, 0.2659844160079956, 0.04441205412149429, -0.43807747960090637, 0.004373565316200256, 0.3895031809806824, 0.23713329434394836, 0.08985315263271332, -0.3423563838005066, -0.04863012954592705, -0.435139000415802, 0.2502707242965698, 0.16180993616580963, 0.6104379296302795, -0.26015740633010864, -0.1735270917415619, 0.28218144178390503, 0.23661135137081146, 0.6483487486839294, -0.2302217036485672, 0.12073113769292831, 0.3191060721874237, 0.11813284456729889, -0.39250844717025757, -0.0011501945555210114, -0.12677624821662903, 0.3671256899833679, 0.05356897786259651, 0.3868015706539154, 0.16540375351905823, -0.26851513981819153, 0.3386342525482178, 0.20482401549816132, -0.09701760858297348, -0.08963155001401901, -0.2795191705226898, -0.2482028603553772, -0.06413766741752625, -0.08680465072393417, 0.043734245002269745, 0.1015307828783989, -0.2853769361972809, 0.090505450963974, -0.1867617964744568, -0.011181438341736794, 0.3688538670539856, 0.02689548209309578, 0.47890999913215637, 0.10186062753200531, 0.5712854862213135, 0.5786527395248413, -0.050529927015304565, 0.2285238802433014, 0.37471669912338257, -0.08154170215129852, -0.21880686283111572, 0.31184878945350647, -0.08997593820095062, 0.3748578727245331, 0.29842907190322876, -0.304320752620697, 0.25561004877090454, -0.15294761955738068, 0.19537095725536346, -0.41254955530166626, 0.3575129806995392, 0.32999780774116516, -0.12957964837551117, -0.5208162069320679, -0.5271226763725281, 0.30912697315216064, 0.028224758803844452, -0.09380282461643219, 0.40680333971977234, -0.20947204530239105, -0.12852121889591217, -0.04792005196213722, -0.1981337070465088, 0.9608397483825684, -0.12930026650428772, 0.044045936316251755, 0.06641736626625061, 0.05103141814470291, 0.10113496333360672, -0.44905465841293335, 0.05151183530688286, -0.1920866072177887, -0.1828623116016388, -0.05217037349939346, -0.24177423119544983, 0.0711255744099617, 0.019906993955373764, -0.10423512756824493, -0.013194822706282139, 0.034287504851818085, 0.29383644461631775, 0.034719109535217285, 0.339224636554718, 0.025927457958459854, 0.020579403266310692, 0.011314822360873222, 0.09698052704334259, -0.07805058360099792, 0.3624555468559265, 0.1317574381828308, -0.11188731342554092, -0.25794127583503723, -0.24601654708385468, -0.4439602494239807, -0.044631022959947586, -0.2761678993701935, 0.11043723672628403, -0.22799384593963623, -0.6612169146537781, 0.6586804389953613, 0.3470451235771179, -0.01655518263578415, 0.19951526820659637, -0.1457446962594986, 0.04825714975595474, -0.19289270043373108, -0.11761478334665298, -0.13376156985759735, 0.2706027328968048, -0.0006127785891294479, -0.113788902759552, -0.17797353863716125, 0.2763858735561371, 0.0041009290143847466, -0.14416977763175964, -0.19847765564918518, -0.040382541716098785, 0.16960741579532623, -0.4518827795982361, 0.09716691076755524, -0.19546166062355042, -0.012845499441027641, -0.27983495593070984, 0.06236474961042404, 0.18303245306015015, -0.2568501830101013, -0.005529828369617462, 0.0684557855129242, -0.1716960072517395, 0.01723174937069416, 0.7379084825515747, 0.018728356808423996, -0.1408417522907257, 0.645740270614624, 0.17780877649784088, -0.14936009049415588, -0.13850781321525574, 0.34876540303230286, 0.12119419872760773, -0.6032325625419617, -0.10746754705905914, -0.05831291526556015, 0.5112059712409973, -0.11746236681938171, 0.2441253811120987, -0.045528411865234375, -0.24272462725639343, -0.20639687776565552, -0.3909686505794525, -0.3084319531917572, 0.20993070304393768, 0.07894080132246017, 0.3507101833820343, -0.22739917039871216, 0.18776284158229828, 0.1056133508682251, -0.133589968085289, -0.21098273992538452, 0.052024565637111664, 0.1300770342350006, 0.09518234431743622, 0.21829670667648315, 0.02887258306145668, 0.26814261078834534, -0.043835531920194626, 0.02545859105885029, 0.20089897513389587, -0.21814365684986115, -0.07772232592105865, -0.11358997225761414, 0.19549919664859772, -0.14358606934547424, -0.3583850860595703, -0.14615117013454437, -0.1240314394235611, -0.017644792795181274, 0.15400174260139465, -0.12519222497940063, 0.07515193521976471, 0.08334511518478394, -0.06277695298194885, -0.0070914216339588165, -0.12366177886724472, 0.09109675884246826, 0.0593172162771225, 0.057824619114398956, 0.31741833686828613, 0.13991601765155792, 0.1980583816766739, -0.04773176833987236, -0.11044326424598694, -0.2427554875612259, -0.0034499242901802063, 0.23860760033130646, -0.16230550408363342, -0.007822081446647644, -0.26882225275039673, 0.13770507276058197, 0.057401008903980255, 0.38391634821891785, 0.5413047075271606, -0.29962554574012756, -0.01436049584299326, 0.38856229186058044, 0.013900008983910084, -0.22560212016105652, 0.06690347194671631, -0.21154934167861938, -0.10202314704656601, -0.0545252226293087, 0.20558390021324158, 0.004313774406909943, 0.055769190192222595, 0.25902387499809265, 0.10566826909780502, 0.36379608511924744, 0.04366637021303177, 0.25734561681747437, 0.5908803343772888, -0.08158474415540695, -0.12422195076942444, 0.16278669238090515, 0.24540002644062042, -0.05199866741895676, 0.7773250937461853, -0.19871965050697327, 0.2606823146343231, -0.24368533492088318, -0.03026502951979637, 0.17644432187080383, -0.31916773319244385, -0.23575414717197418, 0.00933295488357544, -0.0020789727568626404, -0.006875485181808472, -0.11319030821323395, 0.7984184622764587, -0.19624550640583038, 0.02463623136281967, -0.16100478172302246, 0.142430379986763, -0.015140600502490997, -0.038286544382572174, -0.09386993944644928, -0.38239961862564087, -0.3154018819332123, -0.04443337395787239, -0.026396233588457108, -0.21630685031414032, 0.0628376230597496, 0.10723099112510681, -0.10257868468761444, -0.1124885231256485, -0.010106921195983887, 0.30557355284690857, 0.12218090891838074, -0.28019610047340393, 0.1931147426366806, 0.1429489105939865, 0.2606126070022583, 0.10441666841506958, 0.040647029876708984, 0.5137129426002502, -0.02764517068862915, -0.051279086619615555, 0.2042105346918106, -0.23713187873363495, -0.09633434563875198, 0.30347326397895813, 0.42984333634376526, 0.15886004269123077, -0.0868251770734787, 0.2263367474079132, 0.018050117418169975, -0.04435090720653534, 0.08698496967554092, 0.2223670333623886, 0.22531339526176453, -0.3565775156021118, 0.1761602759361267, -0.623824954032898, -0.11261434853076935, -0.058681026101112366, -0.3434036672115326, -0.18712210655212402, 0.28948259353637695, 0.3226063847541809, 0.11665195971727371, -0.018246479332447052, -0.24851185083389282, 0.001569928601384163, -0.11774241924285889, 0.28550511598587036, 0.24756856262683868, 0.3941822052001953, -0.2573992609977722, -0.667985737323761, -0.6541597843170166, -0.09253475815057755, 0.07271768152713776, 0.03110048733651638, -0.08870495855808258, -0.027635442093014717, 0.05328844115138054, 0.3035787343978882, 0.3849153518676758, 0.022417889907956123, -0.1355489045381546, 0.474056214094162, -0.127668559551239, -0.12467043101787567, -0.13055144250392914, 0.3612923324108124, 0.002657875418663025, -0.2963685393333435, -0.09862959384918213, -0.21288348734378815, -0.07152391970157623, -0.25888556241989136, -0.11508731544017792, -0.21782472729682922, -0.007728744298219681, 0.37919697165489197, -0.12339627742767334, 0.4456613063812256, 0.07973863929510117, -0.0793435201048851, -0.40330249071121216, -0.41317278146743774, 0.018297575414180756, 0.2918491065502167, 0.13165588676929474, 0.5032992362976074, -0.14638486504554749, -0.27476948499679565, -0.33112451434135437, 0.08296889811754227, 0.044286519289016724, 0.17213597893714905, -0.24515993893146515, -0.0706344023346901, -0.2763863801956177, 0.11758530884981155, 0.21734027564525604, 0.10764618963003159, 0.06437642872333527, 0.11561571061611176, -0.5884904265403748, -0.32071325182914734, 0.6170629262924194, -0.38911667466163635, -0.19428753852844238, 0.06322232633829117, 0.12848225235939026, 0.10981740057468414, -0.29371878504753113, -0.6647348403930664, 0.17530399560928345, 0.5812285542488098, 0.02390330098569393, 0.16186173260211945, 0.2841130197048187, -0.18811582028865814, 0.09803685545921326, 0.06121358647942543, 0.5792800188064575, -0.025033805519342422, -0.012554334476590157, 0.24990764260292053, -0.32022202014923096 ]
https://github.com/huggingface/datasets/issues/4163
Optional Content Warning for Datasets
Hi! You can use the `extra_gated_prompt` YAML field in a dataset card for displaying custom messages/warnings that the user must accept before gaining access to the actual dataset. This option also keeps the viewer hidden until the user agrees to terms.
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here.
41
Optional Content Warning for Datasets **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here. Hi! You can use the `extra_gated_prompt` YAML field in a dataset card for displaying custom messages/warnings that the user must accept before gaining access to the actual dataset. This option also keeps the viewer hidden until the user agrees to terms.
[ -0.26008298993110657, -0.3120526969432831, -0.05632442981004715, -0.1086026281118393, 0.018699657171964645, 0.366629034280777, 0.35255736112594604, 0.23881494998931885, 0.30746060609817505, 0.2498289942741394, 0.1395486742258072, 0.32378074526786804, -0.2098609358072281, 0.032320089638233185, -0.401486337184906, 0.03756518289446831, -0.135563462972641, 0.04506160318851471, 0.1742628514766693, 0.01834379881620407, -0.06601540744304657, -0.16750100255012512, -0.1520346999168396, 0.09973661601543427, -0.5523027181625366, -0.07378584891557693, 0.050766997039318085, -0.10659603029489517, -0.11404522508382797, -0.6684667468070984, 0.47343912720680237, 0.3985247015953064, -0.012448378838598728, 0.00004840642213821411, -0.00011857647768920287, -0.21980372071266174, 0.4861977696418762, 0.1373051404953003, -0.3184049129486084, -0.33672189712524414, -0.4671016037464142, -0.2632942497730255, 0.05521831661462784, 0.025777369737625122, -0.38685423135757446, 0.08318988233804703, 0.11779753118753433, -0.04237201064825058, 0.2869320511817932, -0.0051122792065143585, 0.05076548084616661, 0.2904304265975952, -0.34778618812561035, -0.036350686103105545, -0.19537115097045898, 0.7292245626449585, -0.19542348384857178, 0.012220277450978756, 0.18484680354595184, 0.264684796333313, -0.2798989713191986, 0.3929869532585144, 0.01504458300769329, -0.07886561751365662, 0.21475690603256226, -0.10534363985061646, 0.0832923948764801, -0.272710919380188, -0.30397894978523254, 0.4805745482444763, 0.8407346606254578, -0.09751232713460922, -0.21969842910766602, -0.4503370225429535, 0.2987208366394043, -0.06742511689662933, 0.20973727107048035, 0.13241440057754517, -0.4388146698474884, 0.19776839017868042, -0.2001974880695343, -0.3247447907924652, -0.20118804275989532, 0.10655361413955688, 0.1606951653957367, 0.2748229205608368, 0.05570802837610245, 0.019258949905633926, 0.012519143521785736, -0.27955949306488037, 0.4264497458934784, -0.23788467049598694, -0.29783403873443604, 0.18723711371421814, -0.06214941665530205, -0.6047000885009766, -0.04092895984649658, -0.10707268863916397, -0.055024560540914536, -0.15839262306690216, -0.17416180670261383, 0.07460419833660126, -0.4253591299057007, 0.06277796626091003, 0.44737038016319275, -0.2514369487762451, 0.24035489559173584, 0.5698625445365906, 0.13730019330978394, 0.12555857002735138, 0.6701498627662659, 0.028705794364213943, 0.037443362176418304, 0.11124484986066818, -0.2503022849559784, 0.2841651141643524, 0.23874150216579437, -0.14183229207992554, -0.35778263211250305, -0.023113440722227097, -0.02538510225713253, 0.1621815711259842, 0.1905032992362976, 0.14015308022499084, 0.01867172122001648, -0.09298918396234512, -0.13250282406806946, 0.07943776994943619, 0.10247805714607239, -0.3871196508407593, 0.009413937106728554, 0.002052363008260727, -0.21503931283950806, 0.44781866669654846, 0.3190627694129944, 0.346164733171463, -0.0038850251585245132, 0.29875800013542175, 0.27701374888420105, 0.3223114013671875, -0.29116836190223694, -0.03325445204973221, 0.13617491722106934, 0.1608203798532486, -0.18700607120990753, 0.28106924891471863, -0.06419709324836731, 0.1965797394514084, -0.23849719762802124, 0.36247941851615906, -0.11705806106328964, -0.41777756810188293, -0.23302890360355377, 0.03999834880232811, -0.5103546977043152, 0.02148278057575226, -0.16423171758651733, 0.36910197138786316, -0.22007763385772705, 0.02306295558810234, 0.35726210474967957, 0.26261356472969055, -0.667306125164032, -0.10142596065998077, -0.10171031206846237, 0.7487767338752747, -0.33535024523735046, -0.20053869485855103, -0.25935807824134827, -0.36283376812934875, -0.2939445674419403, -0.16068312525749207, -0.40009307861328125, -0.044687919318675995, -0.2200537472963333, 0.24122433364391327, -0.05837417393922806, -0.533425509929657, -0.21883556246757507, 0.49686098098754883, -0.287214994430542, 0.23047836124897003, 0.005403846502304077, 0.36349359154701233, -0.028635278344154358, -0.3078194558620453, -0.06535224616527557, 0.11356569826602936, 0.17037183046340942, -0.09364171326160431, -0.22643610835075378, -0.33787810802459717, 0.28558599948883057, 0.20897820591926575, -0.14875909686088562, 0.009030528366565704, -0.09203345328569412, 0.2363874912261963, 0.4526764452457428, 0.07273044437170029, 0.10141481459140778, 0.04651925340294838, 0.5217705965042114, -0.11671648919582367, -0.32126584649086, -0.15301547944545746, -0.41398900747299194, 0.06024862080812454, 0.11387723684310913, 0.2131585031747818, -0.07468381524085999, -0.2953968048095703, -0.07604742795228958, -0.15158848464488983, -0.15105770528316498, 0.025806628167629242, 0.010298099368810654, -0.2817922532558441, -0.07351744174957275, -0.1736844927072525, -0.03355807065963745, 0.7577884197235107, -0.5005912184715271, 0.21769295632839203, 0.19808706641197205, -0.08436726778745651, 0.20944932103157043, -0.02609972655773163, 0.21265873312950134, -0.003556296229362488, 0.31020841002464294, 0.25776955485343933, -0.10523481667041779, 0.4256013035774231, -0.009892310947179794, 0.26540395617485046, -0.0118340402841568, -0.11311905086040497, 0.4095868766307831, -0.5264103412628174, 0.2539433240890503, -0.0027019623667001724, -0.2552107572555542, 0.2582782506942749, -0.42603445053100586, 0.2765370011329651, -0.10264891386032104, -0.047212518751621246, -0.40103769302368164, -0.07156163454055786, -0.09338606148958206, 0.09234246611595154, -0.2298022210597992, -0.49654528498649597, -0.049205806106328964, 0.37797340750694275, -0.037109874188899994, 0.15081538259983063, 0.09852537512779236, -0.04232015460729599, 0.019117888063192368, 0.05380218103528023, 0.10207612067461014, 0.008283320814371109, 0.07748528569936752, -0.0942641869187355, 0.5324180126190186, -0.03172580897808075, 0.49893081188201904, 0.10519038140773773, -0.30592772364616394, 0.003928700461983681, -0.3084845542907715, -0.043680936098098755, -0.03584112972021103, 0.039670541882514954, -0.336989164352417, 0.05807817727327347, 0.16006335616111755, -0.0643296018242836, -0.1711491048336029, -0.0006710179150104523, 0.12333665043115616, -0.12388239800930023, -0.2527584731578827, -0.28534257411956787, -0.13903333246707916, -0.3434426784515381, 0.3146907687187195, -0.16233104467391968, -0.0985485166311264, -0.1001662090420723, 0.4874391555786133, 0.07756293565034866, -0.16115982830524445, 0.22685687243938446, -0.18443484604358673, 0.4042415916919708, -0.13381662964820862, 0.14281073212623596, 0.06461045891046524, 0.11072569340467453, 0.1688617467880249, 0.0778580904006958, -0.2160465270280838, 0.29018527269363403, 0.2680780291557312, 0.09885580092668533, 0.2639581561088562, -0.47711125016212463, 0.031431883573532104, 0.24127055704593658, 0.0031988918781280518, 0.3212566673755646, 0.050857968628406525, 0.14636793732643127, 0.15135207772254944, -0.4017407298088074, -0.036776017397642136, 0.12486954033374786, 0.014637714251875877, -0.2519006133079529, 0.10217861086130142, 0.08375775068998337, 0.061393219977617264, -0.08649293333292007, -0.2816234230995178, -0.2860403060913086, -0.12991689145565033, -0.15239065885543823, -0.03480992466211319, 0.0682041347026825, 0.21014295518398285, -0.2899157702922821, -0.21264956891536713, -0.27053359150886536, -0.13046081364154816, -0.4669395387172699, 0.15378664433956146, -0.24899764358997345, 0.20280784368515015, 0.0848354697227478, 0.00017435289919376373, -0.03482646867632866, 0.039502643048763275, -0.47744572162628174, 0.12690415978431702, -0.07356587052345276, 0.4012124240398407, -0.03609961271286011, -0.5866671204566956, 0.23457522690296173, -0.006890885066241026, 0.06807146966457367, -0.039214570075273514, 0.04933992400765419, -0.061065711081027985, 0.028262708336114883, 0.3752945065498352, 0.012016214430332184, -0.15552815794944763, 0.3233235776424408, 0.26955097913742065, 0.28613412380218506, -0.05997597053647041, 0.1474718451499939, 0.24062664806842804, 0.5404553413391113, 0.29361486434936523, 0.05910269170999527, -0.15511314570903778, 0.44464099407196045, 0.2020331472158432, 0.20445942878723145, -0.05024809390306473, -0.09386499226093292, 0.0245913565158844, -0.3579581677913666, -0.015676133334636688, -0.32636651396751404, -0.11992132663726807, -0.2614261209964752, 0.2298855483531952, -0.012381620705127716, -0.034922193735837936, -0.2405879646539688, -0.3971807360649109, 0.14349661767482758, 0.5373786091804504, 0.5064864158630371, -0.09436256438493729, -0.2636023461818695, 0.0021891945507377386, -0.08229642361402512, -0.1640896052122116, 0.1856345385313034, 0.14697927236557007, -0.2574268877506256, 0.05314169079065323, -0.03954552114009857, 0.5117414593696594, 0.11406227201223373, -0.3860023617744446, -0.051210395991802216, -0.0989694595336914, 0.15035250782966614, -0.12649664282798767, -0.12749844789505005, 0.016235385090112686, 0.37435421347618103, -0.25347229838371277, 0.251592218875885, -0.04341999068856239, -0.359281450510025, 0.36499372124671936, -0.010229432955384254, -0.15851613879203796, -0.5498184561729431, 0.1487502008676529, 0.5573649406433105, -0.2787579298019409, 0.26590073108673096, 0.18268868327140808, -0.04333440959453583, -0.3116695284843445, -0.3194653391838074, 0.2591842710971832, 0.09847793728113174, 0.17020002007484436, 0.09825976192951202, 0.010868016630411148, 0.1366356611251831, 0.32306742668151855, 0.024282345548272133, -0.08857399225234985, 0.43207603693008423, 0.13005021214485168, 0.28823450207710266, -0.35831013321876526, -0.3075413107872009, -0.26839330792427063, 0.03608519583940506, 0.41819244623184204, 0.0075303614139556885, 0.2335210144519806, -0.12124365568161011, -0.0620780885219574, -0.420682430267334, 0.22513379156589508, 0.1913037747144699, -0.3055592477321625, -0.3385891318321228, -0.11293643712997437, 0.3723553717136383, 0.038221195340156555, -0.32991915941238403, 0.2645435333251953, 0.1747402548789978, -0.2779105603694916, -0.08569321781396866, 0.3606998920440674, 0.780046284198761, 0.3114872872829437, -0.05361422523856163, -0.08521471172571182, 0.35409557819366455, 0.5727859139442444, -0.19030603766441345, -0.004820356145501137, 0.09164577722549438, -0.3857429325580597, -0.14258800446987152, -0.20161381363868713, 0.1708083599805832, 0.5043879747390747, 0.031944166868925095, -0.10221502929925919, -0.2260809689760208, 0.2174127846956253, -0.13367605209350586, 0.14728698134422302, -0.4646112620830536, -0.2537985146045685, 0.07150442898273468, 0.033987246453762054, 0.10354849696159363, 0.37099939584732056, -0.09995528310537338, 0.001219288446009159, 0.09782391786575317, -0.1994248330593109, -0.7309504747390747, -0.03368643298745155, 0.13116087019443512, -0.17707569897174835, -0.22823551297187805, 0.028918199241161346, 0.6755715608596802, 0.2743171453475952, 0.3941699266433716, 0.5468801259994507, -0.27583053708076477, 0.24451451003551483, -0.04955650866031647, -0.12590305507183075, -0.5752058625221252, -0.0772615596652031, 0.2919157147407532, 0.061970241367816925, -0.55003422498703, 0.3033027946949005, 0.24013644456863403, -0.14760635793209076, -0.2531469464302063, -0.3590161204338074, 0.03580359369516373, -0.49569037556648254, -0.17062075436115265, 0.08241863548755646, 0.12835875153541565, -0.02535332180559635, 0.11018775403499603, 0.04039929807186127, 0.008364073932170868, -0.07368188351392746, 0.12454590201377869, -0.2606929540634155, -0.15807655453681946, 0.12102505564689636, -0.07093866914510727, -0.41639623045921326, 0.1744295209646225, 0.0067969635128974915, -0.24084784090518951, -0.24699777364730835, -0.0658639520406723, -0.08142249286174774, -0.19468869268894196, -0.128839910030365, 0.30569738149642944, 0.16679947078227997, -0.1253216564655304, 0.16313421726226807, -0.06556140631437302, 0.18528208136558533, -0.09757030010223389, -0.20327505469322205, -0.2564777433872223, 0.2433898001909256, -0.4480477273464203, 0.3374953269958496, -0.3315630257129669, 0.06728149205446243, 0.12049296498298645, 0.16012269258499146, -0.2227756679058075, -0.2334374040365219, -0.14985063672065735, 0.030412059277296066, -0.05426020920276642, 0.4625248610973358, 0.061920855194330215, -0.23408134281635284, -0.08034467697143555, 0.031320709735155106, -0.002687896601855755, -0.07547232508659363, -0.13127265870571136, 0.21459628641605377, 0.3041367828845978, -0.046691134572029114, -0.1017993912100792, -0.21840962767601013, 0.2249576598405838, 0.08874008804559708, 0.3448931574821472, 0.4393678307533264, -0.043920643627643585, 0.2540987432003021, 0.17375369369983673, 0.17024895548820496, -0.2692674994468689, 0.2205606997013092, -0.044358521699905396, 0.32550761103630066, 0.06891489773988724, -0.03620469570159912, 0.10128705948591232, 0.0032109394669532776, 0.12421318888664246, 0.2636483609676361, 0.14601625502109528, 0.26348891854286194, -0.22152042388916016, 0.2939414978027344, 0.08383364975452423, 0.06804345548152924, 0.08722709864377975, -0.013773567974567413, -0.013322601094841957, -0.3288155496120453, 0.11410807073116302, 0.09447555243968964, -0.11864961683750153, -0.27732259035110474, -0.16665339469909668, -0.18417121469974518, 0.15589328110218048, 0.06454163789749146, 0.2634223997592926, 0.2236117124557495, 0.28286170959472656, 0.08601825684309006, 0.219658762216568, -0.17080585658550262, 0.3408659100532532, 0.7056554555892944, -0.17672453820705414, -0.00854816660284996, 0.21667246520519257, 0.23937353491783142, 0.22270071506500244, 0.23528407514095306, 0.07771739363670349, 0.25471603870391846, 0.2898293733596802, 0.06924288719892502, 0.08693265169858932, -0.26960015296936035, 0.05052543058991432, 0.1558130830526352, -0.2057369351387024, 0.03240091726183891, 0.18366287648677826, -0.21552473306655884, -0.058587972074747086, 0.19713857769966125, -0.39324453473091125, -0.07766744494438171, -0.10075641423463821, 0.044863127171993256, -0.23023925721645355, -0.09034713357686996, -0.2397136390209198, 0.09751079976558685, 0.11635404825210571, -0.34114527702331543, -0.03791746497154236, -0.08773908019065857, -0.04675553739070892, 0.05269555002450943, 0.5497195720672607, 0.23981916904449463, 0.26274290680885315, -0.09396296739578247, -0.1967869997024536, -0.05163860321044922, 0.03401323780417442, 0.555149257183075, 0.10297756642103195, -0.014489207416772842, 0.1861172765493393, 0.10502660274505615, 0.14414268732070923, -0.25113150477409363, 0.06250793486833572, 0.25638845562934875, 0.33296364545822144, -0.04380716383457184, 0.07539060711860657, -0.008934232406318188, 0.140373095870018, -0.09669676423072815, 0.22992756962776184, -0.011774551123380661, 0.18558955192565918, -0.3305182456970215, 0.22652912139892578, 0.17907926440238953, -0.04946887493133545, 0.02571316435933113, -0.021238647401332855, 0.20952346920967102, -0.1855943500995636, 0.47892698645591736, -0.2557561695575714, -0.024411875754594803, -0.19423915445804596, 0.024179842323064804, -0.13450853526592255, 0.07452636957168579, 0.3687160611152649, -0.19308173656463623, -0.3459177613258362, 0.012576483190059662, -0.13394111394882202, 0.23221322894096375, -0.18282043933868408, -0.008385811001062393, 0.04583190008997917, -0.3449840247631073, -0.09132116287946701, 0.4794864058494568, -0.03596559166908264, 0.11566046625375748, -0.13389669358730316, 0.07700644433498383, -0.24881863594055176, 0.1482212245464325, 0.09203869849443436, 0.20382247865200043, -0.0482344776391983, -0.09662634134292603, 0.03481847420334816, 0.5004889369010925, -0.15491823852062225, -0.11983123421669006, 0.06957769393920898, 0.18433795869350433, 0.07254338264465332, 0.18302300572395325, 0.025606848299503326, 0.36202672123908997, -0.0029462799429893494, 0.021381640806794167, -0.13480541110038757, -0.08185134083032608, -0.06095567345619202, 0.05438060313463211, 0.21769468486309052, 0.31530874967575073, -0.17439261078834534, 0.1998322457075119, -0.11849778145551682, 0.028870567679405212, -0.03557091951370239, -0.06366336345672607, -0.3544699251651764, -0.06155560165643692, -0.26424092054367065, 0.03073165938258171, -0.046216387301683426, 0.0011832788586616516, 0.055335015058517456, 0.026239601895213127, 0.23226161301136017, -0.16528473794460297, 0.23699921369552612, -0.04152398556470871, 0.121267169713974, -0.14463551342487335, 0.041770122945308685, 0.0859871581196785, -0.06324566900730133, -0.5350522994995117, 0.22283756732940674, 0.3174123764038086, 0.011503912508487701, 0.16880688071250916, 0.08431588113307953, 0.18403087556362152, -0.07252935320138931, -0.07070249319076538, 0.567252516746521, -0.028858322650194168, 0.0744912177324295, 0.0006955899298191071, -0.1817510724067688 ]
https://github.com/huggingface/datasets/issues/4163
Optional Content Warning for Datasets
Hi @mariosasko, thanks for explaining how to add this feature. If the current dataset yaml is: ``` --- annotations_creators: - expert language_creators: - expert-generated languages: - en license: - cc-by-4.0 multilinguality: - monolingual pretty_name: HatemojiBuild size_categories: - 1K<n<10K source_datasets: - original task_categories: - text-classification task_ids: - hate-speech-detection --- ``` Can you provide a minimal working example of how to added the gated prompt? Thanks!
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here.
64
Optional Content Warning for Datasets **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here. Hi @mariosasko, thanks for explaining how to add this feature. If the current dataset yaml is: ``` --- annotations_creators: - expert language_creators: - expert-generated languages: - en license: - cc-by-4.0 multilinguality: - monolingual pretty_name: HatemojiBuild size_categories: - 1K<n<10K source_datasets: - original task_categories: - text-classification task_ids: - hate-speech-detection --- ``` Can you provide a minimal working example of how to added the gated prompt? Thanks!
[ -0.3173736333847046, -0.31351789832115173, -0.055861398577690125, -0.1293681114912033, -0.018319275230169296, 0.37431156635284424, 0.44415223598480225, 0.249332457780838, 0.32215625047683716, 0.2341974973678589, 0.0664084255695343, 0.18715311586856842, -0.23977087438106537, 0.03944326192140579, -0.34444448351860046, 0.04680518060922623, -0.07526213675737381, -0.01740027219057083, 0.14189103245735168, -0.03285618871450424, -0.09293761849403381, -0.08738459646701813, -0.19826415181159973, 0.13574615120887756, -0.5260792374610901, -0.10052154213190079, -0.00186968594789505, -0.012883692979812622, -0.03139256685972214, -0.650945782661438, 0.46597519516944885, 0.3877159655094147, -0.008875924162566662, 0.01283092051744461, -0.00012175492156529799, -0.24530859291553497, 0.4841558337211609, 0.07921762764453888, -0.2648291289806366, -0.35374945402145386, -0.38755783438682556, -0.28452903032302856, -0.02183844894170761, -0.004024960100650787, -0.3376082181930542, 0.10460532456636429, 0.1397903859615326, -0.02528543397784233, 0.3452285826206207, 0.036766745150089264, 0.01171744242310524, 0.2388412058353424, -0.2414333075284958, -0.012131921947002411, -0.25410786271095276, 0.6982236504554749, -0.19107243418693542, 0.04771239683032036, 0.20060577988624573, 0.20668599009513855, -0.2532423138618469, 0.38654908537864685, -0.019560109823942184, -0.07584075629711151, 0.2030949890613556, -0.1146896705031395, 0.09883956611156464, -0.29189860820770264, -0.2960803508758545, 0.5240397453308105, 0.7913212776184082, -0.11030776053667068, -0.16423843801021576, -0.4700366258621216, 0.24232058227062225, -0.09489557892084122, 0.1377144157886505, 0.14155825972557068, -0.5153706073760986, 0.2262790948152542, -0.22561651468276978, -0.3902731239795685, -0.20005673170089722, 0.1404857039451599, 0.20329195261001587, 0.38787636160850525, 0.06899863481521606, 0.055838365107774734, -0.00534951314330101, -0.2462637573480606, 0.41627395153045654, -0.25581395626068115, -0.2207363247871399, 0.2674250304698944, -0.12724831700325012, -0.6166746616363525, 0.03097156435251236, -0.10853766649961472, -0.019204655662178993, -0.0785423144698143, -0.26843205094337463, 0.019443780183792114, -0.339918315410614, 0.038536787033081055, 0.42542922496795654, -0.14534367620944977, 0.28275802731513977, 0.5184836983680725, 0.1328408122062683, 0.1659732460975647, 0.6579530835151672, 0.039449676871299744, -0.015256794169545174, 0.04813305661082268, -0.15276604890823364, 0.3110693395137787, 0.2828308939933777, -0.10572196543216705, -0.40406718850135803, 0.043536968529224396, -0.082502081990242, 0.129342183470726, 0.18609663844108582, 0.2112123966217041, -0.009408937767148018, -0.16237986087799072, -0.20535624027252197, 0.12352830916643143, 0.0994013324379921, -0.4034968316555023, 0.013180907815694809, 0.06099383533000946, -0.1936701536178589, 0.4366879165172577, 0.2998707592487335, 0.36966457962989807, 0.013975480571389198, 0.2511689364910126, 0.25994327664375305, 0.3089095950126648, -0.31869614124298096, -0.03354426845908165, 0.1128528043627739, 0.1286400854587555, -0.11144739389419556, 0.27498456835746765, -0.07988512516021729, 0.10784383118152618, -0.2615233063697815, 0.3874688446521759, -0.08041683584451675, -0.4313339591026306, -0.1274324506521225, -0.0019527617841959, -0.5148225426673889, 0.024605322629213333, -0.18166285753250122, 0.45112860202789307, -0.1865733563899994, 0.09786783158779144, 0.388432115316391, 0.35288459062576294, -0.6574690937995911, -0.09216438978910446, -0.1173558160662651, 0.7971298098564148, -0.347959965467453, -0.2392733246088028, -0.31917956471443176, -0.3545021414756775, -0.2615826725959778, -0.13352295756340027, -0.32709968090057373, 0.000886872410774231, -0.19253869354724884, 0.3979552984237671, -0.15888413786888123, -0.6643210649490356, -0.18609191477298737, 0.5292674899101257, -0.2912822365760803, 0.2987404465675354, 0.02158098667860031, 0.3031131327152252, 0.014401057735085487, -0.341187983751297, -0.11523576080799103, 0.18877170979976654, 0.18849369883537292, -0.12820161879062653, -0.20456825196743011, -0.2701641917228699, 0.30521512031555176, 0.2597689926624298, -0.153460294008255, 0.008040092885494232, -0.049398355185985565, 0.3161986172199249, 0.4598844349384308, 0.046606726944446564, 0.167249396443367, 0.05439309775829315, 0.5680031776428223, -0.07860799133777618, -0.2958173453807831, -0.167098730802536, -0.41564735770225525, 0.02536454051733017, 0.1887904405593872, 0.23096990585327148, -0.09982125461101532, -0.26614487171173096, -0.12459176033735275, -0.13899566233158112, -0.21337686479091644, -0.05904752388596535, -0.021955452859401703, -0.33683186769485474, -0.05074741691350937, -0.15962955355644226, 0.010847892612218857, 0.7944019436836243, -0.5265506505966187, 0.2584715485572815, 0.2119186967611313, -0.14306996762752533, 0.23309628665447235, -0.004188994877040386, 0.18365447223186493, 0.037446558475494385, 0.3249353766441345, 0.15574172139167786, -0.07893553376197815, 0.49323952198028564, -0.013094797730445862, 0.2036266028881073, -0.045157864689826965, -0.15074054896831512, 0.3330928385257721, -0.5206210613250732, 0.20064237713813782, -0.03953750804066658, -0.24702979624271393, 0.193109393119812, -0.33738046884536743, 0.3276718258857727, -0.09932498633861542, -0.010517284274101257, -0.4283382296562195, -0.09514866769313812, -0.0849519595503807, 0.010967392474412918, -0.22016441822052002, -0.39434245228767395, 0.037115201354026794, 0.3292265236377716, -0.00777803547680378, 0.1245625764131546, 0.07442235946655273, -0.10784249752759933, -0.021266203373670578, -0.03331689536571503, 0.12932327389717102, 0.03131609037518501, 0.07232522964477539, -0.08458070456981659, 0.5520485043525696, -0.01945304498076439, 0.5539175868034363, 0.05454637482762337, -0.2646728754043579, 0.04017159342765808, -0.2982095181941986, -0.008838564157485962, -0.04213150590658188, -0.03705432265996933, -0.2772364318370819, 0.14956678450107574, 0.1618860512971878, -0.12491994351148605, -0.2195778489112854, -0.021524865180253983, 0.08063656091690063, -0.10027731209993362, -0.22816257178783417, -0.25894057750701904, -0.07132916152477264, -0.2417890727519989, 0.3261626958847046, -0.10869356244802475, -0.10659341514110565, -0.022547908127307892, 0.4663086533546448, 0.10216714441776276, -0.08594757318496704, 0.26537665724754333, -0.09308330714702606, 0.4278066158294678, -0.18390581011772156, 0.2109176516532898, 0.07317107915878296, 0.09840061515569687, 0.15051153302192688, 0.04436628147959709, -0.18415594100952148, 0.25303179025650024, 0.19617128372192383, 0.09104757010936737, 0.282026469707489, -0.4942031502723694, 0.0399971678853035, 0.19440613687038422, -0.03449217975139618, 0.44928380846977234, -0.008141212165355682, 0.19884832203388214, 0.1422736495733261, -0.45613521337509155, -0.06759026646614075, 0.2332458198070526, -0.054003164172172546, -0.254940390586853, 0.08670426160097122, 0.024832013994455338, 0.07761399447917938, -0.030734628438949585, -0.35427743196487427, -0.28205811977386475, -0.12309327721595764, -0.14364862442016602, -0.03447824716567993, 0.10242640227079391, 0.14349855482578278, -0.3546408712863922, -0.11919915676116943, -0.24428865313529968, -0.13366290926933289, -0.42296135425567627, 0.22115255892276764, -0.26491233706474304, 0.24731168150901794, 0.05799197033047676, -0.09549281746149063, 0.035620324313640594, -0.0005795666947960854, -0.43603646755218506, 0.20820969343185425, -0.050748616456985474, 0.42563316226005554, -0.04421506077051163, -0.5813355445861816, 0.2542444169521332, -0.05501285567879677, 0.12083061039447784, -0.078651562333107, 0.166995570063591, -0.07287784665822983, -0.016167044639587402, 0.40823543071746826, -0.011008389294147491, -0.14347288012504578, 0.3598262071609497, 0.32926803827285767, 0.2249109447002411, -0.012574542313814163, 0.183767631649971, 0.3094070553779602, 0.5331968665122986, 0.31149718165397644, 0.01531953550875187, -0.12999233603477478, 0.414339542388916, 0.1608521044254303, 0.2448524385690689, -0.008256914094090462, -0.17270691692829132, 0.009690683335065842, -0.3898234963417053, -0.07739651203155518, -0.29486164450645447, -0.1863378882408142, -0.15179653465747833, 0.2870028018951416, 0.06693312525749207, -0.08094315230846405, -0.19927793741226196, -0.4061410129070282, 0.17438878118991852, 0.6052821278572083, 0.5066199898719788, -0.06548259407281876, -0.3125554621219635, -0.040239401161670685, -0.07711922377347946, -0.16092635691165924, 0.15672942996025085, 0.07756809145212173, -0.3113405406475067, 0.010849107056856155, -0.009267114102840424, 0.4885738492012024, 0.20422857999801636, -0.3850562870502472, -0.03584251552820206, -0.2330428957939148, 0.21522364020347595, -0.00461159460246563, -0.151688814163208, -0.012438524514436722, 0.38031625747680664, -0.17875055968761444, 0.2579185366630554, -0.14722543954849243, -0.26834407448768616, 0.32522115111351013, 0.010355857200920582, -0.19980208575725555, -0.5471435785293579, 0.14774397015571594, 0.5467556715011597, -0.3314213454723358, 0.34949997067451477, 0.2221996784210205, 0.021486209705471992, -0.2203884720802307, -0.25638335943222046, 0.30978497862815857, 0.14521044492721558, 0.21218320727348328, 0.13070479035377502, -0.01382964663207531, 0.11927465349435806, 0.30827057361602783, -0.03636530786752701, -0.13695493340492249, 0.41700294613838196, 0.0531679168343544, 0.2580845057964325, -0.4292988181114197, -0.36580780148506165, -0.2181689590215683, 0.07826724648475647, 0.4290246069431305, 0.00811421312391758, 0.19576451182365417, -0.07414201647043228, -0.047259606420993805, -0.35692232847213745, 0.25171276926994324, 0.22319351136684418, -0.13335101306438446, -0.3224209249019623, -0.059813305735588074, 0.26929399371147156, -0.004306798800826073, -0.3603953719139099, 0.2524055242538452, 0.13931746780872345, -0.3114757835865021, -0.0662039965391159, 0.3054766058921814, 0.8519352078437805, 0.2881837487220764, -0.0482853539288044, -0.08145534992218018, 0.3764185905456543, 0.4522954225540161, -0.18956440687179565, -0.004038821905851364, 0.13538552820682526, -0.2996141016483307, -0.13973122835159302, -0.16908448934555054, 0.20497021079063416, 0.5868169069290161, 0.0703447163105011, -0.12357457727193832, -0.16798532009124756, 0.09653143584728241, -0.13524644076824188, 0.13748858869075775, -0.3996259272098541, -0.22575755417346954, 0.13185502588748932, -0.015106622129678726, 0.12103848904371262, 0.459347665309906, -0.10529859364032745, 0.009717406705021858, 0.0792023241519928, -0.21356165409088135, -0.8156308531761169, -0.05234585702419281, 0.18787357211112976, -0.1402171552181244, -0.15325988829135895, -0.010142579674720764, 0.6184293627738953, 0.2522983253002167, 0.3905544877052307, 0.5599096417427063, -0.19994008541107178, 0.28671297430992126, 0.06199446693062782, -0.12137613445520401, -0.5490679740905762, -0.09479159116744995, 0.3132242262363434, 0.03137686848640442, -0.5602920055389404, 0.3357590436935425, 0.22294797003269196, -0.19262854754924774, -0.2969684600830078, -0.37584084272384644, 0.03177032992243767, -0.4997194707393646, -0.20188163220882416, 0.1484779417514801, 0.13076253235340118, -0.03777839615941048, 0.06307125091552734, 0.0056154802441596985, 0.01384320855140686, -0.1802094578742981, 0.09256894886493683, -0.29156696796417236, -0.14291036128997803, 0.10271582752466202, -0.06782476603984833, -0.3553255796432495, 0.2084820568561554, 0.04276203736662865, -0.2686213254928589, -0.19997352361679077, -0.07477723062038422, -0.03771869093179703, -0.20095428824424744, -0.08258558809757233, 0.3816528916358948, 0.1919468194246292, -0.2332988828420639, 0.14971883594989777, -0.03492124378681183, 0.22996264696121216, -0.05837663263082504, -0.23252370953559875, -0.2224428504705429, 0.23215606808662415, -0.5086542963981628, 0.27714216709136963, -0.26439380645751953, 0.13801662623882294, 0.10253080725669861, 0.16377420723438263, -0.1815255582332611, -0.2594316005706787, -0.18352273106575012, 0.026169562712311745, -0.012603644281625748, 0.41416236758232117, -0.023679321631789207, -0.23771843314170837, -0.102603018283844, -0.002102375030517578, -0.028682410717010498, -0.052135054022073746, -0.16626998782157898, 0.23130939900875092, 0.31651571393013, -0.04487420618534088, -0.09503435343503952, -0.1713305562734604, 0.27896761894226074, 0.09229067713022232, 0.32677602767944336, 0.3805907070636749, -0.04917971044778824, 0.2753269374370575, 0.2475099116563797, 0.17553186416625977, -0.3022516965866089, 0.14991651475429535, -0.08206143975257874, 0.266887903213501, 0.07135145366191864, -0.016023367643356323, 0.20060290396213531, 0.011955536901950836, 0.00903526321053505, 0.23610997200012207, 0.14807626605033875, 0.2455413043498993, -0.19268923997879028, 0.30679309368133545, 0.08637095987796783, 0.04998592287302017, 0.10459244251251221, -0.018649235367774963, -0.011073453351855278, -0.35352006554603577, 0.13828378915786743, 0.05602046847343445, -0.17871341109275818, -0.22982396185398102, -0.2114386111497879, -0.26499637961387634, 0.1273902952671051, 0.011344648897647858, 0.2021331787109375, 0.24533340334892273, 0.3471107482910156, 0.09688055515289307, 0.21225066483020782, -0.08230694383382797, 0.27996981143951416, 0.7687823176383972, -0.20774975419044495, 0.03908603638410568, 0.2841069996356964, 0.19809715449810028, 0.18638023734092712, 0.2759113311767578, 0.0290575809776783, 0.207444965839386, 0.21472063660621643, 0.13276785612106323, 0.07575707137584686, -0.29159486293792725, -0.0032684989273548126, 0.06913583725690842, -0.22353079915046692, -0.005036249756813049, 0.1666223108768463, -0.16381797194480896, 0.056531500071287155, 0.1547757387161255, -0.33261778950691223, -0.0009156838059425354, -0.13623762130737305, 0.0034456225112080574, -0.2269611358642578, -0.0652330070734024, -0.2863283157348633, 0.09342369437217712, 0.1302156001329422, -0.427639365196228, -0.05885571241378784, -0.0824926495552063, -0.0458800345659256, 0.0729924812912941, 0.541733980178833, 0.14004552364349365, 0.20786741375923157, -0.09044328331947327, -0.20508189499378204, -0.030138999223709106, 0.04216318577528, 0.5176765322685242, 0.022974058985710144, 0.007828257977962494, 0.1768772453069687, 0.11596974730491638, 0.20000724494457245, -0.31911513209342957, 0.05331854522228241, 0.23481601476669312, 0.35663431882858276, 0.008786313235759735, 0.18784257769584656, -0.08599290251731873, 0.08848649263381958, -0.08331330120563507, 0.2905007004737854, 0.06429226696491241, 0.02611393854022026, -0.29899081587791443, 0.19270426034927368, 0.1674862504005432, -0.12528254091739655, -0.06631431728601456, 0.005055427551269531, 0.20130228996276855, -0.16568753123283386, 0.4017122685909271, -0.2626815438270569, -0.0834769457578659, -0.2732323408126831, -0.0009235180914402008, -0.1871308535337448, 0.03686845302581787, 0.36219537258148193, -0.14798110723495483, -0.39115041494369507, -0.018891416490077972, -0.19773398339748383, 0.24187365174293518, -0.2718505561351776, -0.06790180504322052, 0.019354309886693954, -0.33286887407302856, -0.060155220329761505, 0.528091549873352, -0.10395519435405731, 0.12643465399742126, -0.22030313313007355, 0.15256920456886292, -0.3015129566192627, 0.219263955950737, 0.10767994821071625, 0.25825077295303345, -0.07504236698150635, -0.07471364736557007, 0.09253834187984467, 0.5024588108062744, -0.20621374249458313, -0.05910810828208923, 0.03651959449052811, 0.2103091925382614, 0.21301525831222534, 0.1088811606168747, -0.020417073741555214, 0.41920214891433716, -0.037621721625328064, 0.02763315849006176, -0.10484929382801056, -0.060422513633966446, -0.05995102599263191, 0.05826130136847496, 0.25095653533935547, 0.28001219034194946, -0.18977656960487366, 0.14239363372325897, -0.030367108061909676, 0.15137101709842682, 0.013748109340667725, -0.22466786205768585, -0.3192128837108612, -0.0748857632279396, -0.2551182210445404, 0.026107965037226677, -0.043517302721738815, 0.010900788009166718, 0.03966568782925606, 0.005372503772377968, 0.1878671795129776, -0.22878310084342957, 0.28461766242980957, -0.09664656966924667, 0.05144018307328224, -0.1548995077610016, 0.058172762393951416, 0.17216619849205017, -0.14547593891620636, -0.47064629197120667, 0.18818449974060059, 0.3045792877674103, 0.06073487922549248, 0.15219363570213318, 0.16585712134838104, 0.1023494154214859, -0.1359260082244873, -0.033919598907232285, 0.4189417362213135, -0.056839101016521454, 0.00390549935400486, -0.0009211450815200806, -0.23088663816452026 ]
https://github.com/huggingface/datasets/issues/4163
Optional Content Warning for Datasets
``` --- annotations_creators: - expert language_creators: - expert-generated languages: - en license: - cc-by-4.0 multilinguality: - monolingual pretty_name: HatemojiBuild size_categories: - 1K<n<10K source_datasets: - original task_categories: - text-classification task_ids: - hate-speech-detection extra_gated_prompt: "This repository contains harmful content." --- ``` \+ enable `User Access requests` under the Settings pane. There's a brief guide here https://discuss.huggingface.co/t/how-to-customize-the-user-access-requests-message/13953 , and you can see the field in action here, https://huggingface.co/datasets/mozilla-foundation/common_voice_7_0/blob/main/README.md (you need to agree the terms in the Dataset Card pane to be able to access the files pane, so this comes up 403 at first). And a working example here! https://huggingface.co/datasets/DDSC/dkhate :) Great to be able to mitigate harms in text.
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here.
107
Optional Content Warning for Datasets **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here. ``` --- annotations_creators: - expert language_creators: - expert-generated languages: - en license: - cc-by-4.0 multilinguality: - monolingual pretty_name: HatemojiBuild size_categories: - 1K<n<10K source_datasets: - original task_categories: - text-classification task_ids: - hate-speech-detection extra_gated_prompt: "This repository contains harmful content." --- ``` \+ enable `User Access requests` under the Settings pane. There's a brief guide here https://discuss.huggingface.co/t/how-to-customize-the-user-access-requests-message/13953 , and you can see the field in action here, https://huggingface.co/datasets/mozilla-foundation/common_voice_7_0/blob/main/README.md (you need to agree the terms in the Dataset Card pane to be able to access the files pane, so this comes up 403 at first). And a working example here! https://huggingface.co/datasets/DDSC/dkhate :) Great to be able to mitigate harms in text.
[ -0.21442699432373047, -0.25920504331588745, -0.05897955223917961, -0.05752057582139969, 0.037621378898620605, 0.28025057911872864, 0.27311408519744873, 0.22200503945350647, 0.22316884994506836, 0.20868833363056183, -0.020538251847028732, 0.28157365322113037, -0.2302243709564209, -0.03732946142554283, -0.3806568682193756, 0.011048953980207443, -0.18339747190475464, 0.005443483591079712, 0.15297341346740723, 0.014207981526851654, 0.006088588386774063, -0.01022844947874546, -0.13099244236946106, 0.11368899047374725, -0.46974417567253113, -0.09303158521652222, 0.0641217902302742, -0.03692695498466492, -0.11848818510770798, -0.6594213247299194, 0.4415082633495331, 0.39439061284065247, -0.02542523853480816, 0.09878284484148026, -0.00011813310266006738, -0.1694655865430832, 0.4396114945411682, 0.14047008752822876, -0.2663901448249817, -0.43370234966278076, -0.32711881399154663, -0.2513381242752075, -0.02955850027501583, 0.07112861424684525, -0.38342100381851196, 0.16389484703540802, 0.15839089453220367, 0.013492420315742493, 0.3291521668434143, 0.0423160195350647, 0.04046352952718735, 0.3413923680782318, -0.22968289256095886, 0.045616913586854935, -0.18019378185272217, 0.6998433470726013, -0.2361595332622528, 0.15061600506305695, 0.16405907273292542, 0.3050176203250885, -0.26655665040016174, 0.49236810207366943, -0.0056536514312028885, -0.10830895602703094, 0.22452720999717712, -0.09927845001220703, -0.022273175418376923, -0.35117459297180176, -0.2734942138195038, 0.5447090268135071, 0.7702147960662842, -0.07332554459571838, -0.1838899552822113, -0.4077271819114685, 0.30310672521591187, -0.0538204051554203, 0.15727928280830383, 0.1423211246728897, -0.4253300428390503, 0.2410144954919815, -0.23438595235347748, -0.35202857851982117, -0.1241525262594223, 0.13484206795692444, 0.27870142459869385, 0.23458817601203918, -0.061244167387485504, 0.016480833292007446, 0.10477131605148315, -0.38323110342025757, 0.14589674770832062, -0.22453640401363373, -0.2063971757888794, 0.2442438304424286, -0.03194804862141609, -0.6087223291397095, 0.001556307077407837, -0.17511194944381714, 0.0142897367477417, -0.1740635335445404, -0.1343792825937271, 0.04182017222046852, -0.5375356674194336, 0.014948394149541855, 0.41226693987846375, -0.17180533707141876, 0.24388891458511353, 0.45346716046333313, 0.20435985922813416, 0.25053736567497253, 0.7296956181526184, 0.04150562360882759, 0.06743613630533218, 0.10169048607349396, -0.3607647120952606, 0.24642184376716614, 0.2642771005630493, -0.1046643853187561, -0.4234294593334198, 0.06013171002268791, -0.07774177193641663, 0.13071370124816895, 0.21391478180885315, 0.1958981156349182, 0.022945482283830643, -0.11661379784345627, -0.09616497159004211, 0.11310552060604095, 0.061357155442237854, -0.4019695818424225, -0.015072565525770187, 0.06650746613740921, -0.2254440039396286, 0.43136709928512573, 0.3215620815753937, 0.2386835366487503, 0.04972197115421295, 0.24329228699207306, 0.3357393741607666, 0.20837178826332092, -0.35582438111305237, 0.006744103506207466, 0.09101322293281555, 0.13160297274589539, -0.2079189568758011, 0.24560411274433136, -0.05909082666039467, 0.07354728877544403, -0.271151602268219, 0.28032806515693665, -0.12594369053840637, -0.3765581250190735, -0.2022252380847931, -0.0041890935972332954, -0.45819491147994995, 0.0719403326511383, -0.23900166153907776, 0.4273192882537842, -0.2169397473335266, 0.14206017553806305, 0.4112270772457123, 0.35378170013427734, -0.6624346375465393, -0.047166403383016586, -0.04896771162748337, 0.763130247592926, -0.18549852073192596, -0.25626617670059204, -0.18901117146015167, -0.38873738050460815, -0.3336958885192871, -0.13387319445610046, -0.3436581790447235, -0.11396849900484085, -0.1876777708530426, 0.30771082639694214, -0.08372891694307327, -0.5409746766090393, -0.21978919208049774, 0.5148540139198303, -0.3166174292564392, 0.20072771608829498, 0.009431570768356323, 0.3241502642631531, -0.13225947320461273, -0.37290269136428833, -0.03331494331359863, 0.13836713135242462, 0.26986265182495117, -0.01611221581697464, -0.22002065181732178, -0.3743301033973694, 0.24921055138111115, 0.14995603263378143, -0.21623294055461884, 0.020454950630664825, -0.07956289499998093, 0.13504140079021454, 0.4981805682182312, 0.07917169481515884, 0.08638560026884079, 0.03444092348217964, 0.4491733908653259, -0.021183304488658905, -0.31195318698883057, -0.1502733826637268, -0.4123581647872925, 0.016993500292301178, 0.10679523646831512, 0.30252695083618164, -0.12138444185256958, -0.30137503147125244, -0.11434302479028702, -0.1427629142999649, -0.14416806399822235, -0.04564647749066353, 0.005415759980678558, -0.3165399432182312, -0.03657472878694534, -0.12479996681213379, -0.014120426028966904, 0.6763477325439453, -0.5225151777267456, 0.26980268955230713, -0.0019212514162063599, -0.054957613348960876, 0.17947541177272797, -0.015245855785906315, 0.2355235517024994, 0.06662620604038239, 0.29818296432495117, 0.20103424787521362, -0.07860668748617172, 0.476767897605896, -0.10734672099351883, 0.3313039243221283, 0.03035636618733406, -0.037628427147865295, 0.3962915241718292, -0.545900285243988, 0.30455097556114197, 0.026426078751683235, -0.20464789867401123, 0.3116757571697235, -0.2875095009803772, 0.31987935304641724, -0.08612684905529022, -0.028772108256816864, -0.4247424602508545, -0.11241015791893005, -0.05858251079916954, 0.04789682850241661, -0.2561730146408081, -0.4089706540107727, -0.014075417071580887, 0.39865824580192566, -0.024591535329818726, 0.1650952845811844, 0.03428666293621063, -0.14791300892829895, 0.006045795977115631, -0.02969607524573803, 0.07308503985404968, 0.07516792416572571, 0.0028638243675231934, -0.06100538372993469, 0.5671876072883606, -0.1832151710987091, 0.47701340913772583, 0.03714333102107048, -0.2840135395526886, 0.05058581009507179, -0.18639610707759857, -0.034665584564208984, -0.07119602710008621, -0.022961027920246124, -0.3717420995235443, 0.08379610627889633, 0.12760066986083984, -0.058478567749261856, -0.3522965610027313, -0.058200299739837646, -0.012109014205634594, -0.10311199724674225, -0.26394122838974, -0.2793049216270447, -0.08318910002708435, -0.2983890771865845, 0.31444552540779114, -0.10690853744745255, -0.2750284671783447, -0.05000772327184677, 0.4337664842605591, 0.09538260847330093, -0.16613711416721344, 0.24322906136512756, -0.14670611917972565, 0.41657111048698425, -0.2116713523864746, 0.22638991475105286, 0.0346318855881691, 0.20284293591976166, 0.22397485375404358, 0.05538491532206535, -0.1662062406539917, 0.22485800087451935, 0.21911370754241943, 0.03720264136791229, 0.18182072043418884, -0.45538824796676636, 0.03432382643222809, 0.2391429990530014, -0.036079391837120056, 0.2830815017223358, 0.015295319259166718, 0.12435770034790039, 0.24501194059848785, -0.45306432247161865, 0.0033362703397870064, 0.13897350430488586, -0.025754883885383606, -0.19736072421073914, 0.1616392284631729, 0.08092992752790451, 0.0435352586209774, -0.026869595050811768, -0.2626108229160309, -0.29272446036338806, -0.05801456421613693, -0.19783098995685577, -0.018445134162902832, 0.08405479788780212, 0.16289493441581726, -0.1758217066526413, -0.3229917287826538, -0.1540483832359314, -0.21031399071216583, -0.4566180408000946, 0.10213043540716171, -0.21370680630207062, 0.22459453344345093, 0.08222469687461853, -0.005643695592880249, 0.005289457738399506, -0.016638826578855515, -0.46748995780944824, 0.06292496621608734, -0.11425548791885376, 0.35987958312034607, -0.04803777486085892, -0.46692970395088196, 0.2815232276916504, -0.09591320157051086, 0.09341824054718018, 0.03049027919769287, 0.03670411929488182, -0.1687723994255066, 0.033088069409132004, 0.3524474501609802, 0.055943045765161514, -0.1365869641304016, 0.34619513154029846, 0.39465272426605225, 0.3938882052898407, -0.04842158034443855, 0.17291226983070374, 0.255581796169281, 0.6201998591423035, 0.3487537205219269, 0.05695948749780655, -0.09431018680334091, 0.39882975816726685, 0.20964789390563965, 0.27993983030319214, -0.026652082800865173, -0.05269559472799301, -0.002887450158596039, -0.3716541826725006, -0.06958825141191483, -0.3581465184688568, -0.10789622366428375, -0.1875830441713333, 0.23450502753257751, -0.02286861464381218, -0.026556488126516342, -0.17622150480747223, -0.42601990699768066, 0.15753498673439026, 0.6575720906257629, 0.47370675206184387, -0.1095026507973671, -0.276249498128891, -0.04906823858618736, -0.2552368938922882, -0.11391402781009674, 0.2137322574853897, 0.09182775020599365, -0.29967328906059265, 0.03444169461727142, 0.030248478055000305, 0.5538982152938843, 0.13390758633613586, -0.3733334541320801, -0.03131615370512009, -0.17395071685314178, 0.13936160504817963, -0.007715016603469849, -0.11611458659172058, 0.014809228479862213, 0.4063960909843445, -0.19413773715496063, 0.31424516439437866, -0.16490912437438965, -0.4035777151584625, 0.35080620646476746, -0.06856635212898254, -0.10939696431159973, -0.4804472327232361, 0.11713790893554688, 0.5123155117034912, -0.3432215452194214, 0.30640241503715515, 0.25758475065231323, -0.05448500066995621, -0.23820309340953827, -0.24150948226451874, 0.397160142660141, 0.11610328406095505, 0.2318643033504486, 0.15323036909103394, -0.045125555247068405, 0.28147971630096436, 0.18841704726219177, 0.10180766135454178, -0.18087886273860931, 0.34930771589279175, 0.21550248563289642, 0.23748718202114105, -0.43174058198928833, -0.3945637047290802, -0.1886686086654663, 0.05089748278260231, 0.48122522234916687, 0.013131476007401943, 0.19831442832946777, -0.05935513973236084, -0.014572523534297943, -0.5083183646202087, 0.19815026223659515, 0.2868596613407135, -0.19402293860912323, -0.29598498344421387, -0.04124016314744949, 0.3699444532394409, 0.002816835418343544, -0.36843907833099365, 0.2132575958967209, 0.19429722428321838, -0.28657251596450806, -0.10545995086431503, 0.25364047288894653, 0.8538393974304199, 0.30051928758621216, 0.029625196009874344, -0.1107458844780922, 0.363614559173584, 0.5662196278572083, -0.19320321083068848, -0.010569555684924126, 0.15177488327026367, -0.3820747137069702, -0.14314685761928558, -0.16684776544570923, 0.12786492705345154, 0.4685353636741638, 0.0486869253218174, -0.10487225651741028, -0.20398235321044922, 0.23494656383991241, -0.17771288752555847, 0.19464556872844696, -0.474165678024292, -0.2515803277492523, 0.037530191242694855, 0.03798004239797592, 0.04729799926280975, 0.5041602253913879, -0.08689868450164795, -0.0013565383851528168, 0.07863180339336395, -0.23237477242946625, -0.7996726632118225, -0.0006892401725053787, 0.14112482964992523, -0.20913885533809662, -0.10278986394405365, 0.033691808581352234, 0.7256093621253967, 0.27551132440567017, 0.38479405641555786, 0.5298253297805786, -0.2257263958454132, 0.20207244157791138, -0.024988748133182526, -0.12100353091955185, -0.5852378606796265, -0.05703907087445259, 0.2592107951641083, 0.09518226236104965, -0.45696207880973816, 0.2898268401622772, 0.2960025668144226, -0.11707965284585953, -0.2460423707962036, -0.35738587379455566, -0.061958059668540955, -0.5294933319091797, -0.12078757584095001, 0.24141345918178558, 0.06243548169732094, 0.024479221552610397, 0.08321712911128998, 0.11677651107311249, -0.1086467057466507, -0.21841853857040405, 0.16115573048591614, -0.28171923756599426, -0.07380004227161407, 0.15869691967964172, -0.10089706629514694, -0.40800175070762634, 0.1832369863986969, 0.012454170733690262, -0.29098987579345703, -0.19244685769081116, -0.1470203399658203, -0.034601662307977676, -0.2606049180030823, -0.09095092117786407, 0.3821108937263489, 0.12978996336460114, -0.2446393370628357, 0.16152147948741913, -0.11237984895706177, 0.2069980800151825, -0.0804944634437561, -0.12550854682922363, -0.21882052719593048, 0.24923518300056458, -0.4661240875720978, 0.29909878969192505, -0.31561926007270813, 0.15198840200901031, 0.15571355819702148, 0.17166823148727417, -0.2169172465801239, -0.17593079805374146, -0.16881512105464935, -0.013178478926420212, -0.022215742617845535, 0.3906131684780121, 0.09241510182619095, -0.2427481859922409, -0.10843129456043243, 0.006074406206607819, -0.13221214711666107, -0.06049562618136406, -0.1820596158504486, 0.2131548672914505, 0.3028457462787628, -0.1033216193318367, -0.037546828389167786, -0.1865658015012741, 0.33403804898262024, 0.049623049795627594, 0.36769312620162964, 0.4377732574939728, -0.014367900788784027, 0.2649284303188324, 0.13783302903175354, 0.19982078671455383, -0.1965530961751938, 0.19138473272323608, -0.07713073492050171, 0.36983370780944824, 0.1822071522474289, -0.023352771997451782, 0.06918909400701523, 0.03579436242580414, 0.0701611265540123, 0.3172527253627777, 0.11082098633050919, 0.30668237805366516, -0.20202749967575073, 0.3759644627571106, -0.0015216730535030365, 0.08257972449064255, 0.14144103229045868, -0.02234286069869995, -0.06129366531968117, -0.30420228838920593, 0.09500601142644882, 0.07871897518634796, -0.1019839495420456, -0.22108778357505798, -0.11029863357543945, -0.20432697236537933, 0.16242863237857819, 0.006064057350158691, 0.2117023766040802, 0.3297717571258545, 0.2930174469947815, 0.07626740634441376, 0.20509479939937592, -0.11081989109516144, 0.3361896276473999, 0.5802600979804993, -0.20751900970935822, -0.026153769344091415, 0.30258598923683167, 0.24283404648303986, 0.2578066289424896, 0.020417872816324234, 0.011559709906578064, 0.23699292540550232, 0.15534156560897827, 0.15716399252414703, 0.12426022440195084, -0.2906763255596161, -0.04730817303061485, 0.1627141833305359, -0.19067037105560303, 0.08521751314401627, 0.15817289054393768, -0.1382845640182495, -0.044252678751945496, 0.19504839181900024, -0.3642026484012604, -0.005588866770267487, -0.12448275834321976, 0.011839477345347404, -0.25197893381118774, -0.07330158352851868, -0.3314533531665802, 0.06836983561515808, 0.06148576736450195, -0.42918235063552856, -0.02344706654548645, -0.0980633944272995, -0.10830064117908478, 0.022802162915468216, 0.47928985953330994, 0.15139919519424438, 0.2768871486186981, -0.0768582671880722, -0.1471976935863495, -0.07179571688175201, 0.07600628584623337, 0.49550318717956543, 0.14378294348716736, -0.016075458377599716, 0.10774344205856323, 0.21182049810886383, 0.16881513595581055, -0.2455829530954361, 0.11630235612392426, 0.2027733325958252, 0.373017817735672, -0.08219952881336212, 0.14722619950771332, -0.036551252007484436, 0.12019564211368561, -0.1118440330028534, 0.18792054057121277, -0.014543812721967697, 0.1535426825284958, -0.3556402623653412, 0.26661622524261475, 0.08072999119758606, -0.015637855976819992, -0.07900653034448624, -0.08731856197118759, 0.18832260370254517, -0.06684065610170364, 0.3902469277381897, -0.3505720794200897, -0.030112367123365402, -0.2366919368505478, 0.01877521350979805, -0.07319121062755585, 0.02793971635401249, 0.4513012170791626, -0.1777111291885376, -0.3487989604473114, 0.006951548159122467, -0.1910703182220459, 0.2401522397994995, -0.17033091187477112, 0.07096870988607407, -0.008133385330438614, -0.3155839145183563, -0.03696183115243912, 0.5436087846755981, -0.05401909351348877, 0.04720674827694893, -0.2420966625213623, 0.027168001979589462, -0.22040912508964539, 0.1334570050239563, 0.016316402703523636, 0.2351933717727661, 0.0022252388298511505, -0.019519774243235588, 0.0035784803330898285, 0.4810239374637604, -0.19333651661872864, -0.11514388024806976, 0.08638748526573181, 0.029488615691661835, 0.031076237559318542, 0.2118724286556244, 0.05185363441705704, 0.23705169558525085, -0.03552665933966637, -0.06680300831794739, -0.12724320590496063, -0.04265981167554855, -0.09225518256425858, 0.02303026244044304, 0.1990925818681717, 0.35885855555534363, -0.18924392759799957, 0.20555834472179413, -0.1252947896718979, 0.142634779214859, 0.019191227853298187, -0.11771361529827118, -0.3553324043750763, -0.08490877598524094, -0.26049917936325073, -0.012191057205200195, -0.07948672771453857, 0.1185474842786789, 0.04448092728853226, 0.013512944802641869, 0.21861828863620758, -0.20439249277114868, 0.28485235571861267, -0.12238171696662903, 0.13292796909809113, -0.1053578332066536, 0.048203542828559875, 0.1317490190267563, -0.1486596018075943, -0.4739673137664795, 0.296912282705307, 0.2537125051021576, 0.10540875047445297, 0.13623106479644775, 0.03792908042669296, 0.007961524650454521, -0.19264909625053406, -0.05217774584889412, 0.4903431832790375, 0.0092307198792696, 0.009676935151219368, 0.11588394641876221, -0.24176150560379028 ]
https://github.com/huggingface/datasets/issues/4163
Optional Content Warning for Datasets
-- is there a way to gate content anonymously, i.e. without registering which users access it?
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here.
16
Optional Content Warning for Datasets **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here. -- is there a way to gate content anonymously, i.e. without registering which users access it?
[ -0.19659309089183807, -0.21003057062625885, -0.05630885809659958, -0.11867927014827728, -0.10297268629074097, 0.2650572955608368, 0.4788660705089569, 0.27669525146484375, 0.29416990280151367, 0.19777536392211914, 0.10929394513368607, 0.19738557934761047, -0.21145083010196686, 0.03520188480615616, -0.3968331515789032, 0.05109875649213791, -0.13476714491844177, -0.02252422273159027, 0.14434155821800232, -0.01921144127845764, -0.08281680941581726, -0.13680079579353333, -0.1934897005558014, 0.0032704398036003113, -0.5640645623207092, -0.04268241673707962, 0.03313387930393219, -0.10876210778951645, -0.10823909938335419, -0.6250153183937073, 0.42013707756996155, 0.4545413553714752, 0.022358011454343796, 0.01574365794658661, -0.000120765675092116, -0.25715166330337524, 0.42379218339920044, 0.1556546837091446, -0.3085152804851532, -0.30396807193756104, -0.48288461565971375, -0.163192018866539, 0.03551921248435974, 0.012039564549922943, -0.3759557902812958, 0.1712934821844101, 0.1939615160226822, 0.003621019423007965, 0.27587783336639404, -0.007970239967107773, 0.023997869342565536, 0.2738141715526581, -0.32150498032569885, 0.06500831991434097, -0.18379339575767517, 0.6859356164932251, -0.17832259833812714, 0.07609529793262482, 0.15697389841079712, 0.24137836694717407, -0.29138877987861633, 0.41261351108551025, -0.028470514342188835, -0.04514216259121895, 0.29685384035110474, -0.13862727582454681, -0.020506374537944794, -0.30739307403564453, -0.29153621196746826, 0.47829219698905945, 0.9004024863243103, -0.06498014181852341, -0.16333751380443573, -0.3190123736858368, 0.263272762298584, -0.04410778731107712, 0.20050391554832458, 0.15059098601341248, -0.4280058741569519, 0.2652167081832886, -0.2603834569454193, -0.323085218667984, -0.16870492696762085, 0.08290393650531769, 0.18413642048835754, 0.3172093331813812, 0.024518754333257675, 0.019646022468805313, -0.15663550794124603, -0.34182631969451904, 0.37178710103034973, -0.2994840741157532, -0.2008102834224701, 0.16055895388126373, 0.011652562767267227, -0.6142520904541016, 0.045873187482357025, -0.1754431128501892, -0.0636468231678009, -0.08523363620042801, -0.24674810469150543, 0.03469390049576759, -0.4331289827823639, 0.00899605080485344, 0.4401664733886719, -0.1334846466779709, 0.26780858635902405, 0.5317882299423218, 0.22370043396949768, 0.13882231712341309, 0.6316985487937927, 0.06579572707414627, 0.022750262171030045, 0.10196945071220398, -0.2860943675041199, 0.29274189472198486, 0.2637011408805847, -0.1961950957775116, -0.4580535292625427, -0.001989046111702919, 0.05015338957309723, 0.1592041552066803, 0.21376346051692963, 0.13091489672660828, 0.07915321737527847, -0.18077290058135986, -0.0742257833480835, 0.07013257592916489, 0.05725464969873428, -0.41479480266571045, 0.017911329865455627, -0.008844368159770966, -0.21928372979164124, 0.3656928837299347, 0.3537162244319916, 0.40674421191215515, -0.05375824123620987, 0.268346905708313, 0.3064252734184265, 0.2650819420814514, -0.25136107206344604, -0.01582125574350357, 0.09667684882879257, 0.1347605139017105, -0.21184909343719482, 0.1644575297832489, -0.082029327750206, 0.03783981502056122, -0.25435033440589905, 0.31855103373527527, -0.016076281666755676, -0.41320088505744934, -0.20221005380153656, -0.024801287800073624, -0.5054745078086853, 0.06794699281454086, -0.08578798919916153, 0.4034084677696228, -0.19829511642456055, 0.03852316364645958, 0.40371739864349365, 0.4113163352012634, -0.6348158717155457, -0.11285630613565445, -0.12028326839208603, 0.7932674288749695, -0.21400195360183716, -0.1900702267885208, -0.13234907388687134, -0.32514140009880066, -0.2432224452495575, -0.10614238679409027, -0.319415420293808, -0.13453087210655212, -0.11248204857110977, 0.19602598249912262, -0.16037783026695251, -0.5574458837509155, -0.19193027913570404, 0.5187568664550781, -0.3127627968788147, 0.1878543198108673, 0.11784754693508148, 0.3507786691188812, -0.0561194121837616, -0.3554142415523529, -0.03172595798969269, 0.14197860658168793, 0.26701197028160095, -0.05176817625761032, -0.22940123081207275, -0.3317067325115204, 0.4104871153831482, 0.20739106833934784, -0.17367076873779297, 0.07647006213665009, -0.05616862326860428, 0.12109684199094772, 0.423694372177124, 0.02789916656911373, 0.08918657898902893, -0.04565533995628357, 0.5111132860183716, -0.12267105281352997, -0.298374742269516, -0.0802273228764534, -0.34108468890190125, 0.05120505392551422, 0.18195120990276337, 0.22191137075424194, -0.06456440687179565, -0.3353429436683655, -0.003334546461701393, -0.18281610310077667, -0.07764606177806854, 0.016524095088243484, -0.02909158542752266, -0.28935694694519043, -0.11515536904335022, -0.2114507555961609, -0.09051467478275299, 0.7120478749275208, -0.482178270816803, 0.2260238379240036, 0.07493484765291214, -0.1412924826145172, 0.27188840508461, -0.035232070833444595, 0.2827795445919037, -0.018311865627765656, 0.3226156234741211, 0.26454243063926697, -0.11845801025629044, 0.4029303193092346, -0.018851587548851967, 0.2553521990776062, 0.10700246691703796, -0.03252488374710083, 0.3736547529697418, -0.5305546522140503, 0.2896634042263031, 0.07667919248342514, -0.22564971446990967, 0.27486953139305115, -0.4395025670528412, 0.295643150806427, -0.07660846412181854, -0.12240695208311081, -0.43853914737701416, -0.03496044874191284, -0.08652275800704956, -0.004848770797252655, -0.22706718742847443, -0.38360029458999634, -0.034950193017721176, 0.4251604974269867, -0.07122008502483368, 0.16882407665252686, 0.06993895769119263, -0.020843401551246643, -0.16782985627651215, 0.030665457248687744, 0.185845285654068, -0.03526775538921356, 0.08349243551492691, -0.05077209696173668, 0.5678279995918274, -0.1330053061246872, 0.4747958779335022, 0.07007912546396255, -0.23817980289459229, -0.057513900101184845, -0.22609171271324158, -0.06326135247945786, -0.008611612021923065, -0.07176589965820312, -0.4917614758014679, -0.019468538463115692, 0.1041317954659462, -0.048268359154462814, -0.21604928374290466, -0.10534310340881348, 0.08894442021846771, -0.18510201573371887, -0.2531856894493103, -0.3230946362018585, -0.10670807212591171, -0.32973238825798035, 0.4295855462551117, -0.06678728759288788, -0.15228936076164246, 0.02599221281707287, 0.4512367248535156, 0.16489148139953613, -0.2053886353969574, 0.18675608932971954, -0.24135124683380127, 0.5294519066810608, -0.22381532192230225, 0.2690756320953369, 0.03413088619709015, 0.14898709952831268, 0.258912056684494, 0.05681871250271797, -0.17691995203495026, 0.36930951476097107, 0.22536972165107727, 0.07254430651664734, 0.3008130192756653, -0.4665534496307373, 0.06687437742948532, 0.11572550982236862, 0.01827201247215271, 0.3564213216304779, -0.038521021604537964, 0.16578111052513123, 0.10283686220645905, -0.3954372704029083, -0.10880691558122635, 0.1830497831106186, 0.00945054180920124, -0.2019895762205124, 0.08693888038396835, -0.009717049077153206, 0.07426489889621735, 0.05192155763506889, -0.24839384853839874, -0.27937355637550354, -0.0888700783252716, -0.10439068078994751, 0.024604786187410355, 0.13224083185195923, 0.11290636658668518, -0.33289599418640137, -0.1817963421344757, -0.21102690696716309, -0.1360713541507721, -0.5343443155288696, 0.17487733066082, -0.2644687592983246, 0.2372795194387436, 0.09027545154094696, 0.016493748873472214, -0.08453771471977234, 0.053542621433734894, -0.41056084632873535, 0.1577531099319458, -0.06920064985752106, 0.4467456042766571, 0.018344826996326447, -0.56369948387146, 0.2614032030105591, -0.060172248631715775, 0.08455470949411392, -0.05114026740193367, 0.1217883974313736, -0.19682425260543823, 0.016896164044737816, 0.4384789764881134, 0.0012066047638654709, -0.28070148825645447, 0.37470123171806335, 0.3372732996940613, 0.34437012672424316, -0.009136591106653214, 0.18475720286369324, 0.2860046923160553, 0.5564987659454346, 0.3643471598625183, 0.1363232135772705, -0.09693282097578049, 0.3668056130409241, 0.16052031517028809, 0.24306659400463104, 0.0030714264139533043, -0.1256715953350067, -0.04612031951546669, -0.44994452595710754, -0.07692669332027435, -0.3576633036136627, -0.13714125752449036, -0.1524120569229126, 0.3281497359275818, 0.04955268278717995, 0.022158540785312653, -0.273986279964447, -0.45798876881599426, 0.15117868781089783, 0.6557149887084961, 0.5203281044960022, -0.15345905721187592, -0.29454490542411804, -0.026360569521784782, -0.21912729740142822, -0.09391273558139801, 0.11861279606819153, 0.11278892308473587, -0.25408896803855896, 0.018641021102666855, 0.011138126254081726, 0.5290478467941284, 0.11747939884662628, -0.4342428147792816, 0.0379752591252327, -0.13849544525146484, 0.2967907786369324, -0.046449463814496994, -0.07230617105960846, 0.000375404953956604, 0.39739030599594116, -0.26534897089004517, 0.16580995917320251, -0.09986749291419983, -0.30996042490005493, 0.30446773767471313, -0.13655637204647064, -0.14549709856510162, -0.6120855212211609, 0.1115013062953949, 0.5741918683052063, -0.25736531615257263, 0.27685484290122986, 0.23558752238750458, -0.09391149878501892, -0.39989224076271057, -0.24879756569862366, 0.2651507556438446, 0.20756641030311584, 0.25466442108154297, 0.08829858899116516, -0.021147346124053, 0.26505953073501587, 0.24910077452659607, 0.08281409740447998, -0.14430125057697296, 0.3211301565170288, 0.1360369324684143, 0.33838462829589844, -0.38125860691070557, -0.33202624320983887, -0.1279582679271698, 0.01419007033109665, 0.5543649792671204, 0.051555853337049484, 0.27388954162597656, -0.040498122572898865, -0.07513326406478882, -0.39338812232017517, 0.14802707731723785, 0.1293579488992691, -0.2713114023208618, -0.18368123471736908, -0.042473841458559036, 0.3199330270290375, -0.01172022894024849, -0.39861637353897095, 0.26393476128578186, 0.12388494610786438, -0.2074023187160492, -0.04255940765142441, 0.27851781249046326, 0.9420562386512756, 0.3677912950515747, -0.015024479478597641, -0.15854030847549438, 0.33094632625579834, 0.45785316824913025, -0.1359926462173462, 0.10007032006978989, 0.18569886684417725, -0.4272586703300476, -0.15938371419906616, -0.19602437317371368, 0.12972021102905273, 0.43693065643310547, 0.03790035471320152, -0.11501425504684448, -0.2935260534286499, 0.20357820391654968, -0.20559141039848328, 0.08435855805873871, -0.5300185084342957, -0.18514014780521393, 0.1538236141204834, 0.008795671164989471, 0.0762660875916481, 0.4292842745780945, -0.124919094145298, -0.024305209517478943, 0.14936144649982452, -0.24806559085845947, -0.6492255926132202, 0.009015683084726334, 0.32061946392059326, -0.12020312249660492, -0.12114745378494263, 0.09214179217815399, 0.5791189670562744, 0.2172398567199707, 0.42328429222106934, 0.519385576248169, -0.227862149477005, 0.26018667221069336, 0.09713001549243927, -0.10231810808181763, -0.5528998970985413, 0.011926795355975628, 0.21885934472084045, 0.08065256476402283, -0.5365877151489258, 0.28380927443504333, 0.26907092332839966, -0.15563231706619263, -0.2903934121131897, -0.34893953800201416, -0.010303415358066559, -0.5316232442855835, -0.004578190855681896, 0.17650461196899414, 0.07813180983066559, -0.0032376907765865326, 0.09053009748458862, 0.10444413125514984, -0.011072400026023388, -0.04540321230888367, 0.06742300093173981, -0.2611251473426819, -0.0989777147769928, 0.20347541570663452, -0.011857260018587112, -0.291279137134552, 0.15253829956054688, -0.04538834095001221, -0.2950456142425537, -0.18823546171188354, -0.05603640899062157, -0.12507547438144684, -0.1704007089138031, -0.08051396906375885, 0.24021972715854645, 0.19695891439914703, -0.23110491037368774, 0.192659392952919, -0.040144629776477814, 0.2691882848739624, -0.08665375411510468, -0.17522026598453522, -0.22623102366924286, 0.29100048542022705, -0.47531643509864807, 0.2813209593296051, -0.3909720778465271, 0.06956098973751068, 0.15951485931873322, 0.11647514998912811, -0.2042628526687622, -0.27338850498199463, -0.21627604961395264, 0.02326260134577751, -0.028738416731357574, 0.3712095618247986, 0.006074927747249603, -0.23590616881847382, -0.12633755803108215, 0.012333927676081657, -0.04500168561935425, -0.04830513894557953, -0.1516098827123642, 0.22782745957374573, 0.3125505745410919, -0.07650071382522583, -0.13945521414279938, -0.2776647210121155, 0.2202625274658203, 0.17820794880390167, 0.33033737540245056, 0.4588223695755005, -0.015283487737178802, 0.12813960015773773, 0.12600575387477875, 0.1573188453912735, -0.2933388948440552, 0.21596883237361908, 0.0428679883480072, 0.30328524112701416, 0.05896468088030815, -0.050786398351192474, 0.04028508812189102, 0.01585376262664795, 0.15095914900302887, 0.22101783752441406, 0.18971863389015198, 0.2756345868110657, -0.21469959616661072, 0.352078378200531, 0.06845620274543762, 0.016710253432393074, 0.0186900794506073, -0.0069757625460624695, -0.07210635393857956, -0.2851833701133728, 0.08078552782535553, 0.084361232817173, -0.15215080976486206, -0.25687575340270996, -0.284071147441864, -0.06257431209087372, 0.1320161074399948, -0.051883988082408905, 0.2322886884212494, 0.2000596821308136, 0.31011414527893066, 0.11008841544389725, 0.06925462186336517, -0.12105372548103333, 0.21512769162654877, 0.575999915599823, -0.2423504889011383, -0.0668049305677414, 0.27039235830307007, 0.308879554271698, 0.15676452219486237, 0.14401406049728394, 0.14207682013511658, 0.19018854200839996, 0.20118969678878784, 0.12054213881492615, 0.09860850125551224, -0.23011936247348785, -0.022545766085386276, 0.11336822062730789, -0.1314876228570938, 0.09323374927043915, 0.20009130239486694, -0.3617519736289978, -0.08292944729328156, 0.279004842042923, -0.35736608505249023, -0.10316973924636841, -0.10105257481336594, -0.005281356628984213, -0.3103753924369812, -0.06448126584291458, -0.2532844543457031, 0.04120447859168053, 0.0756354033946991, -0.32723069190979004, -0.056219056248664856, -0.06943395733833313, -0.040332943201065063, 0.04522266983985901, 0.5191441774368286, 0.24281516671180725, 0.3830147981643677, -0.1467084437608719, -0.19893674552440643, 0.0013638660311698914, 0.09382359683513641, 0.6045364141464233, 0.16947974264621735, -0.010193612426519394, 0.09315109997987747, 0.1235104501247406, 0.1545707881450653, -0.22651183605194092, 0.014739325270056725, 0.20778338611125946, 0.32205963134765625, 0.011468969285488129, 0.19368711113929749, -0.044434115290641785, 0.09785760939121246, -0.05262993648648262, 0.3018369674682617, -0.02718110755085945, 0.12368743121623993, -0.3735164999961853, 0.2694947123527527, 0.15899482369422913, -0.12151412665843964, 0.024380849674344063, -0.10982707887887955, 0.1677727997303009, -0.13866348564624786, 0.4245730936527252, -0.28139886260032654, -0.0159143153578043, -0.236826092004776, -0.0017219223082065582, -0.161057710647583, -0.010333586484193802, 0.35313963890075684, -0.09134424477815628, -0.3148764967918396, -0.04632064700126648, -0.07740651071071625, 0.29648151993751526, -0.22711405158042908, -0.04769068956375122, -0.014704635366797447, -0.2944476008415222, -0.07455133646726608, 0.5403291583061218, -0.1393290013074875, 0.06072160229086876, -0.2588258981704712, 0.11733591556549072, -0.24281767010688782, 0.21200254559516907, 0.07226618379354477, 0.25487297773361206, -0.019550926983356476, -0.10103796422481537, 0.1285668909549713, 0.49497660994529724, -0.20858922600746155, -0.02497994527220726, 0.02848409116268158, 0.18622365593910217, 0.17075496912002563, 0.25643855333328247, -0.012739354744553566, 0.33637672662734985, -0.006714612245559692, -0.006270432844758034, -0.14011958241462708, -0.04905950278043747, -0.035212576389312744, -0.005391202867031097, 0.2797996699810028, 0.24269241094589233, -0.1762152910232544, 0.2855391204357147, 0.04548666998744011, 0.1438363492488861, -0.07155704498291016, -0.12854106724262238, -0.3170930743217468, -0.19693082571029663, -0.31051406264305115, 0.025838349014520645, -0.06865985691547394, 0.09122820198535919, 0.020158637315034866, -0.03523886948823929, 0.23929370939731598, -0.18035894632339478, 0.33999255299568176, -0.20150822401046753, 0.047160159796476364, -0.18398970365524292, 0.15556703507900238, 0.13861456513404846, -0.1740790456533432, -0.40341717004776, 0.21201294660568237, 0.2234513908624649, 0.04097874462604523, 0.22720474004745483, -0.014279186725616455, 0.13594847917556763, -0.14422549307346344, -0.08322687447071075, 0.46559375524520874, -0.040076844394207, 0.036020517349243164, -0.04304130747914314, -0.2482718527317047 ]
https://github.com/huggingface/datasets/issues/4163
Optional Content Warning for Datasets
+1 to @leondz's question. One scenario is if you don't want the dataset to be indexed by search engines or viewed in browser b/c of upstream conditions on data, but don't want to collect emails. Some ability to turn off the dataset viewer or add a gating mechanism without emails would be fantastic.
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here.
53
Optional Content Warning for Datasets **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning message that appears before the dataset preview? Otherwise, people immediately see hate speech when clicking on this dataset. **Describe the solution you'd like** A clear and concise description of what you want to happen. Implementation of a content warning message that separates users from the dataset preview until they click out of the warning. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Possibly just a way to remove the dataset preview completely? I think I like the content warning option better, though. **Additional context** Add any other context about the feature request here. +1 to @leondz's question. One scenario is if you don't want the dataset to be indexed by search engines or viewed in browser b/c of upstream conditions on data, but don't want to collect emails. Some ability to turn off the dataset viewer or add a gating mechanism without emails would be fantastic.
[ -0.26793915033340454, -0.19581308960914612, -0.06399209797382355, -0.1323363184928894, -0.008632734417915344, 0.3384946882724762, 0.3052767813205719, 0.27597784996032715, 0.3115525543689728, 0.2807517647743225, 0.1271590292453766, 0.2625782787799835, -0.2400340586900711, 0.059867456555366516, -0.43882012367248535, 0.032392147928476334, -0.18120315670967102, 0.1095907986164093, 0.09631732106208801, 0.031997278332710266, -0.02739091031253338, -0.1660265028476715, -0.10485212504863739, -0.013396695256233215, -0.4753292202949524, -0.11844097822904587, 0.046487435698509216, -0.1500510573387146, -0.1432933658361435, -0.6426849961280823, 0.4250129759311676, 0.4414016902446747, 0.022529255598783493, -0.04319380968809128, -0.00011829553113784641, -0.18287703394889832, 0.5136277079582214, 0.13755522668361664, -0.3131675720214844, -0.28587180376052856, -0.3775474429130554, -0.19595617055892944, 0.13038747012615204, 0.02289462834596634, -0.3851744830608368, 0.20481304824352264, 0.13803233206272125, -0.056413691490888596, 0.25130653381347656, 0.034817516803741455, 0.038093194365501404, 0.3585236966609955, -0.3753456771373749, 0.0527336485683918, -0.24103301763534546, 0.6762945055961609, -0.2648455798625946, 0.037649717181921005, 0.09178683906793594, 0.3203965723514557, -0.3290196359157562, 0.4560510516166687, -0.04637981951236725, -0.029528498649597168, 0.18489471077919006, -0.10017555207014084, 0.012314893305301666, -0.3466329872608185, -0.2515771687030792, 0.4756392538547516, 0.954395592212677, -0.10196464508771896, -0.20788350701332092, -0.3854008615016937, 0.33693739771842957, -0.0441705659031868, 0.15124687552452087, 0.1045338436961174, -0.4206072986125946, 0.31364724040031433, -0.2613285481929779, -0.3547359108924866, -0.17512403428554535, 0.13800084590911865, 0.18535834550857544, 0.21545177698135376, -0.024764060974121094, -0.013447634875774384, 0.03367214649915695, -0.24010725319385529, 0.40378138422966003, -0.2733626067638397, -0.25422802567481995, 0.12494663894176483, 0.013639703392982483, -0.6777440309524536, -0.003926418721675873, -0.13432827591896057, -0.060195259749889374, -0.15902844071388245, -0.16514989733695984, 0.05446773022413254, -0.42019417881965637, 0.025580383837223053, 0.4682364761829376, -0.25057390332221985, 0.253583163022995, 0.5084776878356934, 0.19693435728549957, 0.11335799098014832, 0.6614146828651428, 0.026256635785102844, 0.07906705141067505, 0.18369130790233612, -0.19182464480400085, 0.24732419848442078, 0.2608461380004883, -0.1561671644449234, -0.4183742105960846, -0.011141869239509106, -0.08529327809810638, 0.22793519496917725, 0.15839065611362457, 0.14918020367622375, 0.04288886860013008, -0.05148482322692871, -0.14451810717582703, 0.10055539757013321, 0.05372409522533417, -0.40357616543769836, 0.002697200980037451, -0.031134404242038727, -0.1650543063879013, 0.41064536571502686, 0.33176857233047485, 0.30081814527511597, -0.010422358289361, 0.29021820425987244, 0.2955940365791321, 0.27968865633010864, -0.2761983573436737, -0.0445503368973732, 0.08484581857919693, 0.2045479118824005, -0.24306897819042206, 0.24905355274677277, -0.08754339814186096, 0.1632641851902008, -0.2596983015537262, 0.3467424213886261, -0.14614766836166382, -0.40718650817871094, -0.24701561033725739, 0.024858761578798294, -0.5422034859657288, -0.025410674512386322, -0.13417664170265198, 0.464091420173645, -0.2655676305294037, 0.07894404232501984, 0.36671775579452515, 0.3040074110031128, -0.6956520676612854, -0.07092200219631195, -0.07445340603590012, 0.7631849050521851, -0.2834756672382355, -0.21237437427043915, -0.2852049767971039, -0.37984153628349304, -0.33145028352737427, -0.15598545968532562, -0.3572331368923187, -0.048480547964572906, -0.16501636803150177, 0.05019611120223999, -0.01785919815301895, -0.4425140917301178, -0.22894753515720367, 0.477811723947525, -0.25285232067108154, 0.24616558849811554, -0.005410939455032349, 0.39876994490623474, -0.06982506066560745, -0.3096480369567871, -0.17784002423286438, 0.15095514059066772, 0.1740267276763916, -0.03604403883218765, -0.19085320830345154, -0.3752507269382477, 0.29839807748794556, 0.18749195337295532, -0.13251401484012604, 0.0832640528678894, -0.08935684710741043, 0.12256846576929092, 0.36912864446640015, 0.06011465564370155, 0.08196014165878296, 0.041122131049633026, 0.4303494393825531, -0.09923164546489716, -0.28490012884140015, -0.18686556816101074, -0.4648479223251343, 0.04215998202562332, 0.20439565181732178, 0.2277912199497223, -0.09795510768890381, -0.3348492383956909, 0.013140454888343811, -0.1838388890028, -0.0853910744190216, 0.011725334450602531, -0.011664973571896553, -0.343580424785614, -0.09109114110469818, -0.12400805950164795, -0.03537141531705856, 0.6277656555175781, -0.4885587990283966, 0.23129844665527344, 0.15062107145786285, -0.07784345746040344, 0.2618476450443268, -0.011497263796627522, 0.2811288833618164, -0.048364847898483276, 0.273160457611084, 0.2867036759853363, -0.08182815462350845, 0.38369783759117126, -0.0238366536796093, 0.3099628686904907, 0.09142745286226273, 0.002458930015563965, 0.3002399504184723, -0.5062052011489868, 0.2777695059776306, 0.07829715311527252, -0.2600754499435425, 0.3036501109600067, -0.4121038317680359, 0.2762395143508911, -0.06223130598664284, -0.033250026404857635, -0.4511879086494446, -0.10279574245214462, -0.05974118411540985, 0.009789425879716873, -0.27489790320396423, -0.48274004459381104, -0.111111581325531, 0.3474864661693573, 0.012917377054691315, 0.15994615852832794, -0.028733059763908386, -0.06464406102895737, -0.02596878632903099, 0.03213774785399437, 0.13263046741485596, 0.03635118529200554, 0.01905413344502449, -0.12296838313341141, 0.4714548885822296, -0.13022516667842865, 0.47862523794174194, 0.10206253826618195, -0.21715542674064636, 0.023227818310260773, -0.22876374423503876, -0.018126897513866425, -0.07308614999055862, 0.06171943247318268, -0.26380881667137146, 0.02325509488582611, 0.15247200429439545, -0.04765738174319267, -0.32780054211616516, -0.014901557937264442, 0.016325393691658974, -0.11683979630470276, -0.2513464689254761, -0.25607922673225403, -0.1105068102478981, -0.31603777408599854, 0.2743520736694336, -0.061136264353990555, -0.23152494430541992, -0.09058481454849243, 0.5103703141212463, 0.11067762970924377, -0.18782810866832733, 0.20551817119121552, -0.21247859299182892, 0.49664306640625, -0.07393287122249603, 0.17686012387275696, 0.05853326618671417, 0.1291520744562149, 0.2392345368862152, 0.07606293261051178, -0.22588227689266205, 0.3009122908115387, 0.29252368211746216, 0.04956279695034027, 0.21733205020427704, -0.44350960850715637, 0.05381808429956436, 0.2605888843536377, 0.0386599563062191, 0.31578975915908813, 0.02134624868631363, 0.17219874262809753, 0.1683548092842102, -0.35668936371803284, -0.11583272367715836, 0.06252184510231018, 0.02881833352148533, -0.23661348223686218, 0.1448720544576645, 0.10030627995729446, 0.09553450345993042, -0.034015849232673645, -0.2672960162162781, -0.25602468848228455, -0.15477150678634644, -0.17841719090938568, -0.023342475295066833, 0.04474315419793129, 0.13174094259738922, -0.29911327362060547, -0.2583440840244293, -0.23443834483623505, -0.1333852857351303, -0.44906747341156006, 0.15342724323272705, -0.23886102437973022, 0.24092647433280945, 0.07488736510276794, -0.008123856037855148, -0.12297622859477997, 0.050978031009435654, -0.49352943897247314, 0.06542797386646271, -0.09665422141551971, 0.3086768090724945, -0.034775860607624054, -0.592336893081665, 0.232443705201149, -0.05826467648148537, 0.08631838858127594, -0.04168909415602684, 0.1517563760280609, -0.14352700114250183, -0.008898038417100906, 0.3307619094848633, 0.03532841429114342, -0.18230551481246948, 0.3160833418369293, 0.3418933153152466, 0.31631988286972046, -0.10247702896595001, 0.05946649610996246, 0.26103511452674866, 0.6327480673789978, 0.28355735540390015, 0.07526057213544846, -0.13053342700004578, 0.40648525953292847, 0.11318936944007874, 0.2551438808441162, -0.0515483021736145, -0.142622172832489, 0.0029816217720508575, -0.2807660400867462, -0.0015775784850120544, -0.3346259891986847, -0.09580034017562866, -0.27726641297340393, 0.2666420340538025, -0.0252686757594347, 0.003042347729206085, -0.1523909866809845, -0.4178088307380676, 0.1824953258037567, 0.6001105904579163, 0.49255049228668213, -0.12403544783592224, -0.22215375304222107, -0.011587504297494888, -0.21112704277038574, -0.15477634966373444, 0.1631445586681366, 0.07903875410556793, -0.18908244371414185, 0.05546305328607559, -0.012331351637840271, 0.5427156090736389, 0.12607066333293915, -0.4895974397659302, -0.059677377343177795, -0.16366451978683472, 0.1702834963798523, -0.06544328480958939, -0.06927305459976196, -0.05841175094246864, 0.42916396260261536, -0.24099834263324738, 0.20041301846504211, -0.03814154118299484, -0.36078429222106934, 0.43111661076545715, -0.03566882386803627, -0.16096128523349762, -0.5942782163619995, 0.10525505244731903, 0.558003306388855, -0.22569359838962555, 0.29713740944862366, 0.22454379498958588, -0.0963137149810791, -0.34419527649879456, -0.34973084926605225, 0.23853912949562073, 0.08978231251239777, 0.17281214892864227, 0.06787736713886261, -0.04566081613302231, 0.2089802324771881, 0.2576257288455963, 0.07934118807315826, -0.11541026830673218, 0.4161403775215149, 0.16252227127552032, 0.29220908880233765, -0.40256941318511963, -0.33425045013427734, -0.1910758763551712, 0.019592009484767914, 0.4026901125907898, 0.04280334711074829, 0.1852697730064392, -0.12528392672538757, -0.010798059403896332, -0.4829955995082855, 0.19210368394851685, 0.20397628843784332, -0.2633442282676697, -0.3687988817691803, -0.1075124740600586, 0.42230090498924255, 0.001862047240138054, -0.32601985335350037, 0.21034440398216248, 0.06794648617506027, -0.23356615006923676, -0.08234266936779022, 0.29054751992225647, 0.7643027901649475, 0.34880685806274414, -0.09856273233890533, -0.11800781637430191, 0.29392117261886597, 0.596361517906189, -0.1240212619304657, 0.05545218288898468, 0.11255928874015808, -0.4620457589626312, -0.15213297307491302, -0.18161779642105103, 0.14820292592048645, 0.518488883972168, 0.05563941225409508, -0.09251905977725983, -0.16395936906337738, 0.22995200753211975, -0.1606472283601761, 0.1933870166540146, -0.4366486668586731, -0.21455366909503937, 0.06636306643486023, 0.025483060628175735, 0.060139235109090805, 0.357837438583374, -0.04681961610913277, 0.045727018266916275, 0.2040148675441742, -0.22147637605667114, -0.7059969902038574, -0.020971132442355156, 0.2174491137266159, -0.15235131978988647, -0.19878935813903809, -0.009682558476924896, 0.642081081867218, 0.23490798473358154, 0.35016411542892456, 0.5404058694839478, -0.2843286991119385, 0.2260385900735855, -0.050633274018764496, -0.10376902669668198, -0.5625346302986145, -0.08768608421087265, 0.27649617195129395, 0.12229838222265244, -0.4593915343284607, 0.25490614771842957, 0.2341328263282776, -0.15630750358104706, -0.12936043739318848, -0.4236583709716797, -0.02880086749792099, -0.5251761078834534, -0.1086316704750061, 0.16453047096729279, 0.15607120096683502, -0.01595183089375496, 0.09241333603858948, 0.0919496938586235, 0.013752276077866554, -0.07486579567193985, 0.07291798293590546, -0.2349291741847992, -0.13427439332008362, 0.12879681587219238, -0.004778839647769928, -0.40143468976020813, 0.08657322824001312, 0.015284989029169083, -0.32542479038238525, -0.20589596033096313, -0.028519392013549805, -0.0651467964053154, -0.17699912190437317, -0.01384847890585661, 0.3227531611919403, 0.2085440307855606, -0.2029126137495041, 0.12517046928405762, -0.16704291105270386, 0.2037023901939392, -0.21310845017433167, -0.14548692107200623, -0.19557712972164154, 0.2509578466415405, -0.4200931191444397, 0.358718603849411, -0.259287029504776, 0.034185007214546204, 0.1380346119403839, 0.13000398874282837, -0.21327754855155945, -0.27962520718574524, -0.14336471259593964, 0.011176640167832375, -0.02263667806982994, 0.41653257608413696, 0.06069543585181236, -0.2551080584526062, -0.1274079531431198, -0.04691505432128906, -0.003679366782307625, -0.056587740778923035, -0.11459499597549438, 0.22121110558509827, 0.26480600237846375, 0.034755706787109375, -0.06328689306974411, -0.2361881583929062, 0.18969200551509857, 0.05909429490566254, 0.3826972246170044, 0.4374268651008606, -0.0697745531797409, 0.2393701821565628, 0.16880059242248535, 0.1347537338733673, -0.22097976505756378, 0.16733932495117188, -0.0954417884349823, 0.3436804413795471, 0.13882973790168762, 0.022711684927344322, 0.126287579536438, 0.06240321695804596, 0.19738918542861938, 0.3022635877132416, 0.11620993912220001, 0.23145639896392822, -0.22461187839508057, 0.32839757204055786, 0.035807717591524124, 0.09128059446811676, 0.133187934756279, 0.027490083128213882, -0.057226721197366714, -0.32208412885665894, 0.13914895057678223, 0.08987549692392349, -0.16007128357887268, -0.22325104475021362, -0.13273847103118896, -0.13126258552074432, 0.18797801434993744, 0.046749405562877655, 0.18213286995887756, 0.24625164270401, 0.31547263264656067, 0.08026102930307388, 0.2227402925491333, -0.13700823485851288, 0.3272061049938202, 0.6503919363021851, -0.13693922758102417, -0.0282437764108181, 0.24430721998214722, 0.2867158353328705, 0.22268305718898773, 0.17149081826210022, 0.1446896493434906, 0.2146681398153305, 0.3325265049934387, 0.17926278710365295, 0.06666886806488037, -0.20485636591911316, 0.026236483827233315, 0.1266106516122818, -0.20641887187957764, 0.11025884747505188, 0.2088743895292282, -0.26468268036842346, -0.02099435031414032, 0.19519728422164917, -0.3966188132762909, -0.08699139952659607, -0.0836283266544342, 0.08145001530647278, -0.2251335233449936, -0.024453282356262207, -0.19649940729141235, 0.17387355864048004, 0.09006231278181076, -0.3054087162017822, -0.03920890390872955, -0.10724516212940216, -0.040267571806907654, 0.027944965288043022, 0.5383517742156982, 0.18161901831626892, 0.33742040395736694, -0.09341290593147278, -0.2517988681793213, -0.06182236969470978, 0.11323533207178116, 0.5098506808280945, 0.1850549876689911, -0.08962148427963257, 0.11419514566659927, 0.15772967040538788, 0.12182929366827011, -0.17492671310901642, 0.023541094735264778, 0.22677478194236755, 0.2943933606147766, -0.06373567879199982, 0.12231118977069855, 0.0014426782727241516, 0.12050171196460724, -0.06661231070756912, 0.2922859191894531, -0.07640440762042999, 0.22365301847457886, -0.36271899938583374, 0.22583898901939392, 0.26544225215911865, -0.010976623743772507, -0.002503015100955963, -0.09675640612840652, 0.20748049020767212, -0.1862221658229828, 0.40238383412361145, -0.3533119261264801, -0.07071398198604584, -0.17003566026687622, 0.023163095116615295, -0.14116518199443817, 0.02957986108958721, 0.4135614037513733, -0.12414234131574631, -0.25724995136260986, 0.03245390206575394, -0.12289555370807648, 0.2177715301513672, -0.17358383536338806, 0.06505201011896133, 0.07364019006490707, -0.35303357243537903, -0.11935373395681381, 0.5951164364814758, -0.048179417848587036, 0.13509871065616608, -0.1715998649597168, 0.059248145669698715, -0.19441340863704681, 0.15454068779945374, -0.02188941091299057, 0.2216102033853531, -0.03878233581781387, -0.06141190975904465, -0.005362402647733688, 0.5154217481613159, -0.19322139024734497, -0.07998531311750412, 0.07221822440624237, 0.08196850121021271, 0.016187001019716263, 0.20973190665245056, 0.08607910573482513, 0.34998005628585815, -0.0037392508238554, -0.006507301703095436, -0.09808370471000671, -0.0898657962679863, -0.1297205686569214, 0.03762917220592499, 0.2150546908378601, 0.2797381579875946, -0.17661654949188232, 0.21819089353084564, -0.06057249754667282, 0.03301126882433891, -0.031143594533205032, -0.020065562799572945, -0.35461148619651794, -0.13133040070533752, -0.2656691372394562, 0.03386828303337097, -0.07903579622507095, 0.031328171491622925, 0.05126744508743286, -0.0550394207239151, 0.2493472844362259, -0.16699978709220886, 0.21208977699279785, -0.030854374170303345, 0.11881789565086365, -0.14664553105831146, 0.047044478356838226, 0.11914099752902985, -0.08402324467897415, -0.5181407928466797, 0.1897035539150238, 0.2954384982585907, 0.006418738514184952, 0.19386379420757294, 0.07003495842218399, 0.14056305587291718, -0.0888058990240097, -0.08488776534795761, 0.5395346879959106, 0.02590263821184635, 0.04637901484966278, -0.019953353330492973, -0.2598325312137604 ]
https://github.com/huggingface/datasets/issues/4152
ArrayND error in pyarrow 5
Where do we bump the required pyarrow version? Any inputs on how I fix this issue?
As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5: ```python import pyarrow as pa from datasets import Array2D from datasets.table import cast_array_to_feature arr = pa.array([[[0]]]) feature_type = Array2D(shape=(1, 1), dtype="int64") cast_array_to_feature(arr, feature_type) ``` raises ```python --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-8-04610f9fa78c> in <module> ----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32")) ~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs) 1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) 1673 else: -> 1674 return func(array, *args, **kwargs) 1675 1676 return wrapper ~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str) 1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str) 1807 elif not isinstance(feature, (Sequence, dict, list, tuple)): -> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) 1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") 1810 ~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs) 1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) 1673 else: -> 1674 return func(array, *args, **kwargs) 1675 1676 return wrapper ~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str) 1705 array = array.storage 1706 if isinstance(pa_type, pa.ExtensionType): -> 1707 return pa_type.wrap_array(array) 1708 elif pa.types.is_struct(array.type): 1709 if pa.types.is_struct(pa_type) and ( AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array' ``` The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails. `wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5
16
ArrayND error in pyarrow 5 As found in https://github.com/huggingface/datasets/pull/3903, The ArrayND features fail on pyarrow 5: ```python import pyarrow as pa from datasets import Array2D from datasets.table import cast_array_to_feature arr = pa.array([[[0]]]) feature_type = Array2D(shape=(1, 1), dtype="int64") cast_array_to_feature(arr, feature_type) ``` raises ```python --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-8-04610f9fa78c> in <module> ----> 1 cast_array_to_feature(pa.array([[[0]]]), Array2D(shape=(1, 1), dtype="int32")) ~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs) 1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) 1673 else: -> 1674 return func(array, *args, **kwargs) 1675 1676 return wrapper ~/Desktop/hf/datasets/src/datasets/table.py in cast_array_to_feature(array, feature, allow_number_to_str) 1806 return array_cast(array, get_nested_type(feature), allow_number_to_str=allow_number_to_str) 1807 elif not isinstance(feature, (Sequence, dict, list, tuple)): -> 1808 return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) 1809 raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{feature}") 1810 ~/Desktop/hf/datasets/src/datasets/table.py in wrapper(array, *args, **kwargs) 1672 return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) 1673 else: -> 1674 return func(array, *args, **kwargs) 1675 1676 return wrapper ~/Desktop/hf/datasets/src/datasets/table.py in array_cast(array, pa_type, allow_number_to_str) 1705 array = array.storage 1706 if isinstance(pa_type, pa.ExtensionType): -> 1707 return pa_type.wrap_array(array) 1708 elif pa.types.is_struct(array.type): 1709 if pa.types.is_struct(pa_type) and ( AttributeError: 'Array2DExtensionType' object has no attribute 'wrap_array' ``` The thing is that `cast_array_to_feature` is called when writing an Arrow file, so creating an Arrow dataset using any ArrayND type currently fails. `wrap_array` has been added in pyarrow 6, so we can either bump the required pyarrow version or fix this for pyarrow 5 Where do we bump the required pyarrow version? Any inputs on how I fix this issue?
[ -0.27178874611854553, 0.0057998597621917725, -0.09467674791812897, 0.07623609900474548, 0.17722000181674957, -0.13541190326213837, 0.5197150111198425, 0.28534582257270813, -0.150676429271698, -0.15376414358615875, -0.38038378953933716, 0.10658343136310577, 0.00128842331469059, 0.10347532480955124, 0.0800986960530281, -0.18475337326526642, -0.03334123641252518, 0.21531274914741516, -0.08204710483551025, 0.16366195678710938, -0.2497321516275406, 0.1367577761411667, -0.36536192893981934, 0.35666102170944214, -0.01739555038511753, 0.1811755895614624, 0.12129579484462738, -0.036400407552719116, -0.07846672832965851, -0.49175748229026794, 0.5164661407470703, -0.24085548520088196, 0.02156987413764, -0.09414208680391312, -0.00011475250357761979, 0.04572519659996033, 0.2521471679210663, 0.0827406570315361, 0.0017754286527633667, 0.18415024876594543, 0.4386560022830963, -0.03728700429201126, 0.17795321345329285, -0.33028849959373474, 0.07210128009319305, -0.46650394797325134, -0.09151364117860794, 0.6173185706138611, 0.33078503608703613, 0.1018359586596489, 0.21714356541633606, 0.3780941367149353, 0.6151909232139587, -0.019419528543949127, 0.37063223123550415, 0.41305285692214966, -0.2798079550266266, 0.2551673650741577, 0.16709305346012115, -0.22087913751602173, 0.21045756340026855, -0.04278721660375595, -0.25578999519348145, 0.1453922539949417, 0.23628273606300354, 0.14894108474254608, 0.27677246928215027, -0.15705756843090057, -0.02648383378982544, -0.022114679217338562, 0.2115543782711029, -0.2876385748386383, -0.19343677163124084, -0.09083779156208038, -0.05962792783975601, -0.3843427896499634, -0.03534912317991257, 0.10442593693733215, -0.22767624258995056, 0.23337429761886597, -0.05564923956990242, 0.21522660553455353, -0.15353044867515564, 0.2728591561317444, -0.19015870988368988, -0.07328721880912781, 0.04066053032875061, 0.035104334354400635, -0.03746921196579933, -0.3355245590209961, 0.010416977107524872, 0.1093519926071167, 0.12528863549232483, -0.022331345826387405, -0.06593631207942963, -0.10539766401052475, -0.004494599997997284, -0.5112830400466919, 0.27023354172706604, -0.11162649095058441, -0.1669173240661621, -0.05915295332670212, 0.012638560496270657, 0.24406081438064575, -0.14708611369132996, -0.09672567248344421, 0.011401653289794922, -0.018156029284000397, 0.09477262198925018, 0.006601704750210047, 0.15753795206546783, 0.07859105616807938, 0.2705767750740051, -0.17415441572666168, 0.240276500582695, -0.16813260316848755, 0.6953444480895996, -0.262577623128891, -0.333761602640152, -0.0657653883099556, -0.1223004087805748, -0.09924682974815369, 0.06651444733142853, 0.3537713587284088, 0.2728580832481384, -0.09134203940629959, -0.12022170424461365, 0.1806822121143341, -0.22503872215747833, -0.1263047158718109, -0.08699603378772736, 0.17956510186195374, -0.019549746066331863, -0.015776777639985085, 0.21659313142299652, 0.2129371017217636, 0.23880617320537567, 0.03882532939314842, 0.00205887109041214, 0.44129693508148193, -0.26376914978027344, -0.07114066183567047, 0.09578128159046173, 0.280743807554245, -0.1506766527891159, 0.005022089928388596, 0.04424845054745674, 0.17230957746505737, -0.08807534724473953, 0.08583591133356094, -0.14215701818466187, -0.09972918033599854, -0.21354584395885468, 0.19178569316864014, -0.03305381163954735, -0.003722984343767166, -0.07201311737298965, -0.10902568697929382, 0.33629587292671204, -0.5219531059265137, 0.10835084319114685, -0.45679789781570435, -0.1994604766368866, -0.32145583629608154, 0.2787404954433441, -0.018679559230804443, -0.10946369171142578, -0.06759396195411682, 0.22900989651679993, -0.11690093576908112, 0.1602257639169693, 0.24207334220409393, -0.1380014419555664, -0.07389115542173386, -0.17892369627952576, 0.35441499948501587, 0.343727171421051, 0.11715276539325714, -0.339192658662796, -0.07504210621118546, 0.19799746572971344, -0.033718835562467575, -0.0441422238945961, 0.10839423537254333, 0.08807491511106491, -0.13438262045383453, 0.09213387221097946, 0.3776664137840271, -0.012001825496554375, -0.10831499844789505, -0.3249002993106842, -0.17414841055870056, 0.3777461647987366, 0.20525041222572327, 0.006411761045455933, -0.044923774898052216, 0.2224486768245697, 0.07204192876815796, -0.023235216736793518, -0.36678895354270935, 0.10933921486139297, -0.021257169544696808, 0.37426260113716125, -0.2663787007331848, 0.1487690955400467, -0.462875634431839, -0.42004314064979553, 0.1641431748867035, -0.2759966254234314, -0.1430664211511612, -0.32258808612823486, 0.0459221750497818, -0.1851160228252411, 0.18299566209316254, -0.13328047096729279, -0.1322416365146637, 0.10952292382717133, -0.09811072051525116, 0.009136538952589035, -0.038670942187309265, -0.0963958278298378, -0.0754866749048233, -0.06345731019973755, 0.17061302065849304, -0.30399730801582336, 0.6566857695579529, -0.25510504841804504, -0.6518365144729614, -0.1243504211306572, 0.17188048362731934, 0.11400685459375381, 0.05590914189815521, 0.007512921467423439, 0.2563118636608124, -0.03016337938606739, -0.3432929515838623, -0.5049982070922852, 0.1940208375453949, 0.0912524089217186, -0.4416203200817108, -0.06804290413856506, 0.1615922898054123, 0.04069080948829651, -0.14570078253746033, 0.362591415643692, 0.2576723098754883, -0.17974688112735748, 0.12535761296749115, 0.10681448876857758, 0.16454863548278809, 0.08983009308576584, 0.19741210341453552, 0.3377680480480194, 0.004974052309989929, 0.1279381662607193, -0.19787153601646423, 0.17315402626991272, -0.05218653380870819, -0.17005136609077454, 0.37136563658714294, 0.23927561938762665, 0.04783188924193382, 0.16173042356967926, 0.1344880759716034, 0.029621411114931107, -0.03145873174071312, 0.040901146829128265, -0.45447060465812683, 0.30850744247436523, 0.24662268161773682, -0.11218447983264923, 0.19394855201244354, -0.28923484683036804, -0.05182187631726265, 0.033412300050258636, -0.005317941308021545, 0.16799110174179077, 0.17515507340431213, 0.24593660235404968, 0.06741741299629211, -0.24292078614234924, -0.3855276107788086, 0.09909088909626007, 0.3407403230667114, -0.38883593678474426, -0.11046735942363739, -0.1255934238433838, -0.3685087263584137, -0.09414175897836685, -0.25206074118614197, -0.19952747225761414, -0.10950762778520584, -0.02791167050600052, 0.5324671864509583, -0.12539488077163696, 0.25603821873664856, -0.18498045206069946, -0.4749094843864441, 0.20233154296875, 0.010995261371135712, -0.046133480966091156, 0.014010842889547348, 0.059238217771053314, 0.08072075247764587, 0.21200765669345856, 0.20204608142375946, 0.09105326980352402, 0.005198197439312935, -0.16616453230381012, -0.26375266909599304, -0.35942545533180237, 0.07058504968881607, -0.09041832387447357, 0.0878947377204895, 0.2975558042526245, 0.19076117873191833, -0.41724294424057007, -0.33693423867225647, 0.40292567014694214, -0.08394234627485275, -0.39999377727508545, 0.4370785057544708, -0.030186133459210396, -0.21295079588890076, -0.23331646621227264, -0.25821393728256226, -0.20155774056911469, -0.29284095764160156, 0.19572407007217407, -0.0790848582983017, 0.08108779042959213, 0.11981478333473206, 0.049113303422927856, 0.07883729785680771, -0.05581849440932274, -0.011556385084986687, 0.04088430479168892, 0.5339933633804321, 0.302731454372406, -0.20833928883075714, -0.2443571239709854, -0.27198705077171326, -0.12094460427761078, 0.011971049010753632, 0.2026372104883194, -0.014131169766187668, -0.48182764649391174, -0.3377826511859894, 0.613494336605072, -0.18298961222171783, -0.14729070663452148, 0.33569881319999695, 0.020671095699071884, -0.05545904487371445, 0.09589671343564987, -0.004916539415717125, 0.1266743242740631, 0.21657982468605042, -0.0614047572016716, 0.007805444300174713, 0.16851338744163513, -0.12755906581878662, 0.4383891224861145, -0.17037229239940643, -0.02068692073225975, 0.4818204641342163, -0.18016155064105988, 0.04783184826374054, -0.15547269582748413, -0.3173239231109619, -0.05190720781683922, 0.01985543966293335, -0.03231571614742279, -0.06654952466487885, -0.19709286093711853, -0.2736833989620209, -0.023288793861865997, -0.3783113956451416, -0.21303734183311462, -0.08281312137842178, -0.038829341530799866, 0.19660326838493347, 0.31600627303123474, 0.011784117668867111, -0.0354379341006279, 0.19062162935733795, -0.14730381965637207, -0.09171402454376221, -0.12243828177452087, 0.12256867438554764, -0.12416225671768188, -0.5762774348258972, -0.486705482006073, -0.1274280846118927, 0.33311209082603455, 0.31554120779037476, 0.32469528913497925, -0.15919911861419678, -0.041128695011138916, -0.06304088234901428, -0.026357850059866905, 0.46140342950820923, 0.1515037715435028, 0.14360439777374268, 0.21500720083713531, 0.06310420483350754, -0.5561505556106567, -0.4562472701072693, -0.12279748916625977, -0.21713712811470032, 0.07334169745445251, -0.09554217755794525, -0.3264753818511963, 0.05437136068940163, 0.5049539804458618, 0.14812712371349335, -0.007146801799535751, -0.00749463215470314, -0.2030957043170929, -0.4225265681743622, -0.16577498614788055, -0.08696449548006058, 0.21923744678497314, 0.23361855745315552, 0.054851047694683075, 0.1027715653181076, -0.1042403131723404, 0.04345294088125229, -0.16777156293392181, 0.23738472163677216, 0.11438602209091187, -0.2315850704908371, 0.2744174003601074, -0.3416726887226105, 0.15887251496315002, 0.1925714612007141, 0.19881711900234222, 0.3738138973712921, -0.24581393599510193, -0.05722185969352722, -0.031093239784240723, 0.1900518536567688, -0.09897930920124054, -0.2556058168411255, 0.06980664283037186, -0.30418968200683594, 0.0340687558054924, 0.42009079456329346, -0.15453863143920898, 0.43005678057670593, -0.26909852027893066, 0.06636267155408859, -0.04695666581392288, 0.4011407494544983, -0.09564734995365143, 0.1474834829568863, -0.1665928214788437, 0.2590816020965576, 0.0039372569881379604, 0.19860920310020447, 0.03812301531434059, 0.49340033531188965, 0.2660193145275116, -0.034450795501470566, 0.7776418924331665, -0.42477768659591675, 0.11356081068515778, 0.34239327907562256, 0.07790464162826538, -0.3839230537414551, -0.2817510664463043, -0.04419254511594772, -0.12269726395606995, -0.0848175659775734, -0.17916598916053772, -0.21807047724723816, 0.2563405930995941, 0.23681505024433136, 0.20449122786521912, 0.09226583689451218, -0.14907169342041016, 0.27086883783340454, 0.0031320927664637566, -0.3886566758155823, 0.05797576904296875, -0.22122062742710114, -0.011884365230798721, -0.05370365455746651, -0.25853586196899414, 0.09772680699825287, -0.2184644639492035, -0.13994652032852173, 0.17761129140853882, -0.12151305377483368, 0.4267791509628296, 0.37417182326316833, -0.19357648491859436, -0.09030203521251678, 0.08262189477682114, 0.06167241930961609, -0.33403700590133667, -0.15781064331531525, -0.04948880150914192, -0.07776489108800888, 0.09469259530305862, 0.04467421770095825, 0.012466139160096645, 0.4280087351799011, -0.2440129518508911, -0.22696538269519806, 0.052121974527835846, 0.04158007353544235, 0.014514423906803131, -0.31589269638061523, -0.1245136708021164, -0.0170983225107193, -0.47743722796440125, -0.14737778902053833, -0.2501296401023865, -0.20973347127437592, -0.2710486650466919, 0.08905822038650513, -0.11024433374404907, -0.018356015905737877, 0.19496449828147888, -0.17015688121318817, -0.19883540272712708, -0.148162841796875, 0.2623702883720398, 0.02254895120859146, 0.06578212231397629, 0.35848742723464966, 0.15518905222415924, -0.1844782531261444, -0.05086390674114227, -0.20283758640289307, 0.2677136957645416, -0.7148476839065552, -0.018247246742248535, -0.04872877523303032, 0.391501784324646, 0.03792586177587509, 0.14585021138191223, 0.021904807537794113, 0.06131114438176155, 0.03463023528456688, -0.13965073227882385, -0.18023429811000824, 0.5466535687446594, 0.12172111868858337, 0.034017644822597504, 0.2133859395980835, 0.281750351190567, 0.001970941200852394, -0.17293590307235718, -0.27646559476852417, -0.022930782288312912, 0.022491218522191048, 0.23479335010051727, -0.13194282352924347, -0.11522894352674484, -0.10555338114500046, 0.04744115471839905, 0.14227110147476196, 0.1121634989976883, -0.1685362160205841, -0.16868841648101807, 0.1477321833372116, 0.12391625344753265, -0.07979392260313034, -0.20996873080730438, -0.27228638529777527, 0.08932441473007202, -0.20988787710666656, -0.02964409813284874, 0.0013571809977293015, 0.10198680311441422, -0.08070296049118042, 0.3909902572631836, -0.05952377989888191, 0.15404146909713745, -0.09028127044439316, 0.20667453110218048, -0.22511133551597595, -0.07357054948806763, 0.019457612186670303, 0.3448610305786133, -0.10892829298973083, 0.0014797300100326538, -0.47068724036216736, -0.08297402411699295, -0.3386877775192261, -0.17038312554359436, 0.21823492646217346, -0.5811411142349243, -0.36964279413223267, -0.373119056224823, 0.5394624471664429, 0.1633262038230896, -0.15127219259738922, 0.02453341893851757, 0.19848939776420593, 0.1882714331150055, -0.42169082164764404, 0.16828399896621704, 0.7164902091026306, 0.18147973716259003, 0.04763605073094368, 0.22802621126174927, 0.21704164147377014, -0.2522489130496979, 0.08794192224740982, 0.34025850892066956, 0.18649938702583313, -0.014535617083311081, -0.22085458040237427, 0.7124539017677307, 0.11334198713302612, 0.08071266114711761, 0.3296816945075989, 0.1996254175901413, 0.30486613512039185, 0.42834538221359253, -0.3584875464439392, 0.27294695377349854, -0.016942277550697327, 0.04187276214361191, 0.3258669376373291, 0.16253294050693512, -0.36500534415245056, 0.10246742516756058, 0.27937155961990356, -0.08657804876565933, 0.02680792659521103, 0.29248109459877014, 0.19746969640254974, -0.5114814639091492, -0.05889704078435898, 0.3605253994464874, -0.21150463819503784, 0.29538944363594055, 0.1333400458097458, -0.11801426112651825, -0.01774357631802559, -0.11026249825954437, -0.09513743221759796, -0.015212886035442352, 0.4596325159072876, 0.04843303561210632, -0.14722366631031036, -0.26482507586479187, 0.6610993146896362, 0.35123634338378906, 0.1475151628255844, -0.09636341035366058, 0.027220800518989563, 0.45991653203964233, -0.2927056849002838, -0.020855218172073364, 0.5216980576515198, 0.5801743865013123, 0.2747909426689148, -0.006537130102515221, -0.2131662368774414, -0.16250523924827576, -0.1972871720790863, 0.11373667418956757, 0.025819258764386177, -0.07783260941505432, 0.4600672721862793, 0.2007567137479782, 0.12065359950065613, -0.10135984420776367, 0.14649349451065063, 0.021171782165765762, 0.0428219810128212, -0.2806961238384247, 0.25084686279296875, -0.19982577860355377, -0.5479168891906738, 0.14786376059055328, -0.020157836377620697, -0.3164597451686859, 0.027344316244125366, 0.04935678094625473, 0.2129112184047699, 0.06747271120548248, 0.08669443428516388, 0.07205840945243835, -0.03734920918941498, 0.34025028347969055, 0.35781970620155334, 0.16932225227355957, -0.031864285469055176, 0.08582793176174164, -0.45420610904693604, 0.19407658278942108, -0.1598658561706543, -0.1302824467420578, 0.41953185200691223, 0.13030345737934113, -0.06013993173837662, 0.22005605697631836, 0.11441856622695923, 0.06193317845463753, -0.2224251925945282, 0.608285665512085, -0.3561330735683441, 0.10858671367168427, 0.21392427384853363, 0.0018685515969991684, -0.1952570080757141, -0.13962754607200623, 0.3736504018306732, -0.45889630913734436, 0.06343349814414978, 0.020490115508437157, -0.025024469941854477, 0.11068131029605865, 0.2262789011001587, 0.0990687683224678, 0.21217277646064758, 0.3203153908252716, 0.07215946167707443, 0.13178156316280365, -0.11626364290714264, -0.49481135606765747, 0.09301110357046127, 0.37749505043029785, 0.031111229211091995, 0.5099117755889893, 0.1838466078042984, 0.10020090639591217, -0.18631437420845032, 0.6576113104820251, -0.22857248783111572, -0.04999298229813576, 0.18094417452812195, 0.20506326854228973, -0.00877726823091507, 0.10074687004089355, -0.27037954330444336, -0.23599624633789062, 0.1015472337603569, 0.048053160309791565, -0.38783544301986694, -0.746871829032898, 0.41380658745765686, 0.031371355056762695, -0.22521373629570007, -0.13887760043144226, 0.18841436505317688, 0.468020498752594, 0.06751277297735214, -0.5640658140182495, -0.11533329635858536, 0.3598385155200958, 0.004320718348026276, -0.13997066020965576, 0.26865726709365845, 0.15256533026695251, 0.018704835325479507, -0.09527039527893066, 0.18614953756332397, -0.09058044850826263, -0.33761709928512573, 0.008541427552700043, -0.10262267291545868 ]